class Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet
Message representing label set. * A label is a key value pair set for a VM. * A LabelSet is a set of labels. * Labels within a LabelSet are ANDed. In other words, a LabelSet is applicable for a VM only if it matches all the labels in the LabelSet. * Example: A LabelSet with 2 labels: `env=prod` and `type= webserver` will only be applicable for those VMs with both labels present.
Attributes
labels[RW]
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1224 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1229 def update!(**args) @labels = args[:labels] if args.key?(:labels) end