(::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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.11.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.11.1/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.10.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.9.1/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.8.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.8.2/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.7.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.7.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.6.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.6.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.5.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.5.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.4.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.4.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.3.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.3.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet)\n- [0.2.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.2.2/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignment-LabelSet) \nReference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet.\n\nMessage representing label set.\n\n- A label is a key value pair set for a VM.\n- A LabelSet is a set of labels.\n- 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.\n- Example: A LabelSet with 2 labels: `env=prod` and `type=webserver` will only be applicable for those VMs with both labels present. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #labels\n\n def labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::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.\n\n### #labels=\n\n def labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::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. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::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."]]