Class: Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyExtensionPolicy

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

Policy for a single extension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GlobalVmExtensionPolicyExtensionPolicy

Returns a new instance of GlobalVmExtensionPolicyExtensionPolicy.



18232
18233
18234
# File 'lib/google/apis/compute_alpha/classes.rb', line 18232

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)


18224
18225
18226
# File 'lib/google/apis/compute_alpha/classes.rb', line 18224

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)


18230
18231
18232
# File 'lib/google/apis/compute_alpha/classes.rb', line 18230

def string_config
  @string_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18237
18238
18239
18240
# File 'lib/google/apis/compute_alpha/classes.rb', line 18237

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