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 v1alpha 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-03-21 UTC."],[[["The `OSPolicyAssignment.Types.LabelSet` class in the Google Cloud OS Config v1alpha API represents a set of key-value labels for virtual machines (VMs)."],["A `LabelSet` acts as a filter, and a VM must possess all the labels defined within the `LabelSet` to match the filter criteria."],["The `LabelSet` class is part of the `Google.Cloud.OsConfig.V1Alpha` namespace and is implemented using the `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` interfaces."],["The class provides two constructors, a default one and another that accepts an existing `LabelSet` as an argument for copying purposes."],["The `Labels` property within a `LabelSet` uses a `MapField` to store key-value pairs, ensuring that a VM must contain all specified key/value pairs to be selected."]]],[]]