Class: Google::Apis::ComputeAlpha::VmExtension
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::VmExtension
- 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
Overview
A VM extension that can be installed on a VM.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the vm extension.
-
#versions ⇒ Array<String>
The latest 10 versions of the vm extension.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmExtension
constructor
A new instance of VmExtension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmExtension
Returns a new instance of VmExtension.
80718 80719 80720 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 80718 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the vm extension.
Corresponds to the JSON property name
80711 80712 80713 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 80711 def name @name end |
#versions ⇒ Array<String>
The latest 10 versions of the vm extension.
Corresponds to the JSON property versions
80716 80717 80718 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 80716 def versions @versions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
80723 80724 80725 80726 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 80723 def update!(**args) @name = args[:name] if args.key?(:name) @versions = args[:versions] if args.key?(:versions) end |