Class: Google::Apis::OsconfigV1::OsPolicyAssignmentLabelSet
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyAssignmentLabelSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Labels are identified by key/value pairs in this map.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyAssignmentLabelSet
constructor
A new instance of OsPolicyAssignmentLabelSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyAssignmentLabelSet
Returns a new instance of OsPolicyAssignmentLabelSet.
1524 1525 1526 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
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
1522 1523 1524 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1522 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1529 1530 1531 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1529 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |