Class: Google::Apis::ComputeAlpha::VmExtension

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

Overview

A VM extension that can be installed on a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmExtension

Returns a new instance of VmExtension.



81656
81657
81658
# File 'lib/google/apis/compute_alpha/classes.rb', line 81656

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

Instance Attribute Details

#nameString

The name of the vm extension. Corresponds to the JSON property name

Returns:

  • (String)


81649
81650
81651
# File 'lib/google/apis/compute_alpha/classes.rb', line 81649

def name
  @name
end

#versionsArray<String>

The latest 10 versions of the vm extension. Corresponds to the JSON property versions

Returns:

  • (Array<String>)


81654
81655
81656
# File 'lib/google/apis/compute_alpha/classes.rb', line 81654

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



81661
81662
81663
81664
# File 'lib/google/apis/compute_alpha/classes.rb', line 81661

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