Class: Google::Apis::ComputeAlpha::VmExtensionPolicyExtensionPolicy

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

Configuration for a specific VM extension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmExtensionPolicyExtensionPolicy

Returns a new instance of VmExtensionPolicyExtensionPolicy.



83999
84000
84001
# File 'lib/google/apis/compute_alpha/classes.rb', line 83999

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

Instance Attribute Details

#installed_software_selectorGoogle::Apis::ComputeAlpha::VmExtensionPolicyInstalledSoftwareSelector

Defines the software requirements for a VM extension policy. Corresponds to the JSON property installedSoftwareSelector



83985
83986
83987
# File 'lib/google/apis/compute_alpha/classes.rb', line 83985

def installed_software_selector
  @installed_software_selector
end

#pinned_versionString

Optional. The specific version of the extension to install. If not set, the latest version is used. Corresponds to the JSON property pinnedVersion

Returns:

  • (String)


83992
83993
83994
# File 'lib/google/apis/compute_alpha/classes.rb', line 83992

def pinned_version
  @pinned_version
end

#string_configString

Optional. String-based configuration data for the extension. Corresponds to the JSON property stringConfig

Returns:

  • (String)


83997
83998
83999
# File 'lib/google/apis/compute_alpha/classes.rb', line 83997

def string_config
  @string_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84004
84005
84006
84007
84008
# File 'lib/google/apis/compute_alpha/classes.rb', line 84004

def update!(**args)
  @installed_software_selector = args[:installed_software_selector] if args.key?(:installed_software_selector)
  @pinned_version = args[:pinned_version] if args.key?(:pinned_version)
  @string_config = args[:string_config] if args.key?(:string_config)
end