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.



79708
79709
79710
# File 'lib/google/apis/compute_alpha/classes.rb', line 79708

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


79701
79702
79703
# File 'lib/google/apis/compute_alpha/classes.rb', line 79701

def name
  @name
end

#versionsArray<String>

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

Returns:

  • (Array<String>)


79706
79707
79708
# File 'lib/google/apis/compute_alpha/classes.rb', line 79706

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



79713
79714
79715
79716
# File 'lib/google/apis/compute_alpha/classes.rb', line 79713

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