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.



18427
18428
18429
# File 'lib/google/apis/compute_alpha/classes.rb', line 18427

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


18420
18421
18422
# File 'lib/google/apis/compute_alpha/classes.rb', line 18420

def name
  @name
end

#versionsArray<String>

Corresponds to the JSON property versions

Returns:

  • (Array<String>)


18425
18426
18427
# File 'lib/google/apis/compute_alpha/classes.rb', line 18425

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18432
18433
18434
18435
# File 'lib/google/apis/compute_alpha/classes.rb', line 18432

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