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.



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

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


80977
80978
80979
# File 'lib/google/apis/compute_alpha/classes.rb', line 80977

def name
  @name
end

#versionsArray<String>

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

Returns:

  • (Array<String>)


80982
80983
80984
# File 'lib/google/apis/compute_alpha/classes.rb', line 80982

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80989
80990
80991
80992
# File 'lib/google/apis/compute_alpha/classes.rb', line 80989

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