Class: Google::Apis::ComputeAlpha::GlobalVmExtension

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GlobalVmExtension

Returns a new instance of GlobalVmExtension.



18610
18611
18612
# File 'lib/google/apis/compute_alpha/classes.rb', line 18610

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timestampString

Output only. [Output Only] Creation timestamp inRFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


18575
18576
18577
# File 'lib/google/apis/compute_alpha/classes.rb', line 18575

def creation_timestamp
  @creation_timestamp
end

#descriptionString

Output only. [Output Only] An optional textual description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


18580
18581
18582
# File 'lib/google/apis/compute_alpha/classes.rb', line 18580

def description
  @description
end

#idFixnum

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


18587
18588
18589
# File 'lib/google/apis/compute_alpha/classes.rb', line 18587

def id
  @id
end

#kindString

Output only. [Output Only] Type of the resource. Alwayscompute# globalVmExtension. Corresponds to the JSON property kind

Returns:

  • (String)


18593
18594
18595
# File 'lib/google/apis/compute_alpha/classes.rb', line 18593

def kind
  @kind
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


18598
18599
18600
# File 'lib/google/apis/compute_alpha/classes.rb', line 18598

def name
  @name
end

Output only. [Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


18603
18604
18605
# File 'lib/google/apis/compute_alpha/classes.rb', line 18603

def self_link
  @self_link
end

#versionsArray<String>

Corresponds to the JSON property versions

Returns:

  • (Array<String>)


18608
18609
18610
# File 'lib/google/apis/compute_alpha/classes.rb', line 18608

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18615
18616
18617
18618
18619
18620
18621
18622
18623
# File 'lib/google/apis/compute_alpha/classes.rb', line 18615

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @versions = args[:versions] if args.key?(:versions)
end