class Google::Apis::OsconfigV1::PatchInstanceFilterGroupLabel
Targets a group of VM instances by using their [assigned labels](cloud. google.com/compute/docs/labeling-resources). Labels are key-value pairs. A ` GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following ` GroupLabel`: ““env”:“test”, “app”:“web”“. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`.
Attributes
labels[RW]
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/osconfig_v1/classes.rb, line 1270 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_v1/classes.rb, line 1275 def update!(**args) @labels = args[:labels] if args.key?(:labels) end