public sealed class OSPolicyAssignment.Types.LabelSet : IMessage<OSPolicyAssignment.Types.LabelSet>, IEquatable<OSPolicyAssignment.Types.LabelSet>, IDeepCloneable<OSPolicyAssignment.Types.LabelSet>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class OSPolicyAssignment.Types.LabelSet.
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.
[[["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-04-09 UTC."],[[["This document provides reference information for the `OSPolicyAssignment.Types.LabelSet` class within the Google Cloud OS Config v1 API."],["A `LabelSet` is defined as a collection of key-value label pairs, and it is applicable to a VM only if all labels in the set match the VM's labels."],["The `LabelSet` class is available across multiple versions of the API, including the latest version 2.4.0, and supports previous versions going as far back as 1.3.0."],["The class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits properties and methods from the base `object` class."],["The class contains one property, `Labels`, which is a `MapField` of key-value pairs represented as strings, and that the `LabelSet` objects can be created using two constructors, one empty and the other with another `LabelSet` object as a parameter."]]],[]]