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.
81599 81600 81601 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 81599 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the vm extension.
Corresponds to the JSON property name
81592 81593 81594 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 81592 def name @name end |
#versions ⇒ Array<String>
The latest 10 versions of the vm extension.
Corresponds to the JSON property versions
81597 81598 81599 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 81597 def versions @versions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
81604 81605 81606 81607 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 81604 def update!(**args) @name = args[:name] if args.key?(:name) @versions = args[:versions] if args.key?(:versions) end |