Class: Google::Apis::ComputeV1::VmExtensionPolicyExtensionPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



65741
65742
65743
# File 'lib/google/apis/compute_v1/classes.rb', line 65741

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

Instance Attribute Details

#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)


65734
65735
65736
# File 'lib/google/apis/compute_v1/classes.rb', line 65734

def pinned_version
  @pinned_version
end

#string_configString

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

Returns:

  • (String)


65739
65740
65741
# File 'lib/google/apis/compute_v1/classes.rb', line 65739

def string_config
  @string_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



65746
65747
65748
65749
# File 'lib/google/apis/compute_v1/classes.rb', line 65746

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