Class: Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet
- Inherits:
-
Object
- Object
- Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignments.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
andtype=webserver
will only be applicable for those VMs with both labels present.
Defined Under Namespace
Classes: LabelsEntry
Instance Attribute Summary collapse
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Labels are identified by key/value pairs in this map.
Instance Attribute Details
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns 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.
115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignments.rb', line 115 class LabelSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |