Class: Google::Apis::ComputeBeta::VmExtensionPolicyInstanceSelector
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::VmExtensionPolicyInstanceSelector
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Defines how to select VMs to apply a zone VM extension policy.
Instance Attribute Summary collapse
-
#label_selector ⇒ Google::Apis::ComputeBeta::VmExtensionPolicyLabelSelector
A LabelSelector is applied to a VM only if it matches all the specified labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmExtensionPolicyInstanceSelector
constructor
A new instance of VmExtensionPolicyInstanceSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmExtensionPolicyInstanceSelector
Returns a new instance of VmExtensionPolicyInstanceSelector.
68583 68584 68585 |
# File 'lib/google/apis/compute_beta/classes.rb', line 68583 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_selector ⇒ Google::Apis::ComputeBeta::VmExtensionPolicyLabelSelector
A LabelSelector is applied to a VM only if it matches all the specified
labels.
Corresponds to the JSON property labelSelector
68581 68582 68583 |
# File 'lib/google/apis/compute_beta/classes.rb', line 68581 def label_selector @label_selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
68588 68589 68590 |
# File 'lib/google/apis/compute_beta/classes.rb', line 68588 def update!(**args) @label_selector = args[:label_selector] if args.key?(:label_selector) end |