Class: Google::Apis::ComputeV1::VmExtensionPolicyInstanceSelector

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

Defines how to select VMs to apply a zone VM extension policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmExtensionPolicyInstanceSelector

Returns a new instance of VmExtensionPolicyInstanceSelector.



65762
65763
65764
# File 'lib/google/apis/compute_v1/classes.rb', line 65762

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

Instance Attribute Details

#label_selectorGoogle::Apis::ComputeV1::VmExtensionPolicyLabelSelector

A LabelSelector is applied to a VM only if it matches all the specified labels. Corresponds to the JSON property labelSelector



65760
65761
65762
# File 'lib/google/apis/compute_v1/classes.rb', line 65760

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



65767
65768
65769
# File 'lib/google/apis/compute_v1/classes.rb', line 65767

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