Class: Google::Apis::ComputeBeta::GlobalVmExtensionPolicyInstanceSelector
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::GlobalVmExtensionPolicyInstanceSelector
- 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
Selector to target VMs for a zone VM extension policy.
Instance Attribute Summary collapse
-
#label_selector ⇒ Google::Apis::ComputeBeta::GlobalVmExtensionPolicyLabelSelector
A LabelSelector is applicable for a VM only if it matches all labels in the LabelSelector.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GlobalVmExtensionPolicyInstanceSelector
constructor
A new instance of GlobalVmExtensionPolicyInstanceSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GlobalVmExtensionPolicyInstanceSelector
Returns a new instance of GlobalVmExtensionPolicyInstanceSelector.
16146 16147 16148 |
# File 'lib/google/apis/compute_beta/classes.rb', line 16146 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_selector ⇒ Google::Apis::ComputeBeta::GlobalVmExtensionPolicyLabelSelector
A LabelSelector is applicable for a VM only if it matches all labels in
the LabelSelector.
Corresponds to the JSON property labelSelector
16144 16145 16146 |
# File 'lib/google/apis/compute_beta/classes.rb', line 16144 def label_selector @label_selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16151 16152 16153 |
# File 'lib/google/apis/compute_beta/classes.rb', line 16151 def update!(**args) @label_selector = args[:label_selector] if args.key?(:label_selector) end |