Class: Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyExtensionPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyExtensionPolicy
- 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
-
#installed_software_selector ⇒ Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyInstalledSoftwareSelector
Defines the software requirements for a VM extension policy.
-
#pinned_version ⇒ String
Optional.
-
#string_config ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GlobalVmExtensionPolicyExtensionPolicy
constructor
A new instance of GlobalVmExtensionPolicyExtensionPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GlobalVmExtensionPolicyExtensionPolicy
Returns a new instance of GlobalVmExtensionPolicyExtensionPolicy.
19848 19849 19850 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19848 def initialize(**args) update!(**args) end |
Instance Attribute Details
#installed_software_selector ⇒ Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyInstalledSoftwareSelector
Defines the software requirements for a VM extension policy.
Corresponds to the JSON property installedSoftwareSelector
19833 19834 19835 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19833 def installed_software_selector @installed_software_selector end |
#pinned_version ⇒ String
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
19840 19841 19842 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19840 def pinned_version @pinned_version end |
#string_config ⇒ String
Optional. String configuration. Any string payload that the extension
understands.
Corresponds to the JSON property stringConfig
19846 19847 19848 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19846 def string_config @string_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19853 19854 19855 19856 19857 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19853 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 |