Class: Google::Apis::ComputeV1::GlobalVmExtensionPolicyExtensionPolicy

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

Policy for a single extension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GlobalVmExtensionPolicyExtensionPolicy

Returns a new instance of GlobalVmExtensionPolicyExtensionPolicy.



16347
16348
16349
# File 'lib/google/apis/compute_v1/classes.rb', line 16347

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

Instance Attribute Details

#pinned_versionString

Optional. The version pinning for the extension. If empty, the extension will be installed with the latest version released by the extension producer. Corresponds to the JSON property pinnedVersion

Returns:

  • (String)


16339
16340
16341
# File 'lib/google/apis/compute_v1/classes.rb', line 16339

def pinned_version
  @pinned_version
end

#string_configString

Optional. String configuration. Any string payload that the extension understands. Corresponds to the JSON property stringConfig

Returns:

  • (String)


16345
16346
16347
# File 'lib/google/apis/compute_v1/classes.rb', line 16345

def string_config
  @string_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16352
16353
16354
16355
# File 'lib/google/apis/compute_v1/classes.rb', line 16352

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