Class: Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyInstanceSelector
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyInstanceSelector
- 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
Selector to target VMs for a zone VM extension policy.
Instance Attribute Summary collapse
-
#label_selector ⇒ Google::Apis::ComputeAlpha::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.
15665 15666 15667 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 15665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_selector ⇒ Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyLabelSelector
A LabelSelector is applicable for a VM only if it matches all labels in the
LabelSelector.
Corresponds to the JSON property labelSelector
15663 15664 15665 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 15663 def label_selector @label_selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15670 15671 15672 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 15670 def update!(**args) @label_selector = args[:label_selector] if args.key?(:label_selector) end |