Class: Google::Apis::ComputeV1::GlobalVmExtensionPolicyInstanceSelector

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Selector to target VMs for a zone VM extension policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GlobalVmExtensionPolicyInstanceSelector

Returns a new instance of GlobalVmExtensionPolicyInstanceSelector.



16217
16218
16219
# File 'lib/google/apis/compute_v1/classes.rb', line 16217

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#label_selectorGoogle::Apis::ComputeV1::GlobalVmExtensionPolicyLabelSelector

A LabelSelector is applicable for a VM only if it matches all labels in the LabelSelector. Corresponds to the JSON property labelSelector



16215
16216
16217
# File 'lib/google/apis/compute_v1/classes.rb', line 16215

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16222
16223
16224
# File 'lib/google/apis/compute_v1/classes.rb', line 16222

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