Class Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet (v0.9.1)

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::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.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::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.
Returns
  • (::Google::Protobuf::Map{::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.