Class: Google::Apis::OsconfigV1beta::AssignmentGroupLabel
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::AssignmentGroupLabel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Represents a group of VM intances that can be identified as having all these labels, for example "env=prod and app=web".
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssignmentGroupLabel
constructor
A new instance of AssignmentGroupLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AssignmentGroupLabel
Returns a new instance of AssignmentGroupLabel.
184 185 186 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 184 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
Corresponds to the JSON property labels
182 183 184 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 182 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
189 190 191 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 189 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |