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.



80986
80987
80988
# File 'lib/google/apis/compute_alpha/classes.rb', line 80986

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


80979
80980
80981
# File 'lib/google/apis/compute_alpha/classes.rb', line 80979

def name
  @name
end

#versionsArray<String>

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

Returns:

  • (Array<String>)


80984
80985
80986
# File 'lib/google/apis/compute_alpha/classes.rb', line 80984

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80991
80992
80993
80994
# File 'lib/google/apis/compute_alpha/classes.rb', line 80991

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