Class: Google::Apis::ComputeBeta::GlobalVmExtensionPolicyInstanceSelector

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GlobalVmExtensionPolicyInstanceSelector

Returns a new instance of GlobalVmExtensionPolicyInstanceSelector.



17455
17456
17457
# File 'lib/google/apis/compute_beta/classes.rb', line 17455

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

Instance Attribute Details

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



17453
17454
17455
# File 'lib/google/apis/compute_beta/classes.rb', line 17453

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17460
17461
17462
# File 'lib/google/apis/compute_beta/classes.rb', line 17460

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