Class: Google::Apis::OsconfigV1::PatchInstanceFilterGroupLabel
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::PatchInstanceFilterGroupLabel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1/classes.rb,
generated/google/apis/osconfig_v1/representations.rb,
generated/google/apis/osconfig_v1/representations.rb
Overview
Targets a group of VM instances by using their assigned labels. 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
.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchInstanceFilterGroupLabel
constructor
A new instance of PatchInstanceFilterGroupLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PatchInstanceFilterGroupLabel
Returns a new instance of PatchInstanceFilterGroupLabel.
1063 1064 1065 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 1063 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
Compute Engine instance labels that must be present for a VM instance to be
targeted by this filter.
Corresponds to the JSON property labels
1061 1062 1063 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 1061 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1068 1069 1070 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 1068 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |