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.



18404
18405
18406
# File 'lib/google/apis/compute_alpha/classes.rb', line 18404

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


18397
18398
18399
# File 'lib/google/apis/compute_alpha/classes.rb', line 18397

def name
  @name
end

#versionsArray<String>

Corresponds to the JSON property versions

Returns:

  • (Array<String>)


18402
18403
18404
# File 'lib/google/apis/compute_alpha/classes.rb', line 18402

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18409
18410
18411
18412
# File 'lib/google/apis/compute_alpha/classes.rb', line 18409

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @versions = args[:versions] if args.key?(:versions)
end