Class: Google::Apis::OsconfigV1beta::PatchInstanceFilterGroupLabel
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::PatchInstanceFilterGroupLabel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb
Overview
Represents a group of VMs that can be identified as having all these labels, for example "env=prod 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.
1285 1286 1287 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1285 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
1283 1284 1285 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1283 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1290 1291 1292 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1290 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |