Class: Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyInstanceSelector

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GlobalVmExtensionPolicyInstanceSelector

Returns a new instance of GlobalVmExtensionPolicyInstanceSelector.



18784
18785
18786
# File 'lib/google/apis/compute_alpha/classes.rb', line 18784

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

Instance Attribute Details

#label_selectorGoogle::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



18782
18783
18784
# File 'lib/google/apis/compute_alpha/classes.rb', line 18782

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18789
18790
18791
# File 'lib/google/apis/compute_alpha/classes.rb', line 18789

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