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.



18092
18093
18094
# File 'lib/google/apis/compute_alpha/classes.rb', line 18092

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


18085
18086
18087
# File 'lib/google/apis/compute_alpha/classes.rb', line 18085

def name
  @name
end

#versionsArray<String>

Corresponds to the JSON property versions

Returns:

  • (Array<String>)


18090
18091
18092
# File 'lib/google/apis/compute_alpha/classes.rb', line 18090

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18097
18098
18099
18100
# File 'lib/google/apis/compute_alpha/classes.rb', line 18097

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