Class: Google::Apis::ComputeAlpha::VmExtensionPolicyInstanceSelector

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

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.



80116
80117
80118
# File 'lib/google/apis/compute_alpha/classes.rb', line 80116

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

Instance Attribute Details

#label_selectorGoogle::Apis::ComputeAlpha::VmExtensionPolicyLabelSelector

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



80114
80115
80116
# File 'lib/google/apis/compute_alpha/classes.rb', line 80114

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80121
80122
80123
# File 'lib/google/apis/compute_alpha/classes.rb', line 80121

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