public sealed class LabelSet : IMessage<OSPolicyAssignment.Types.LabelSet>, IEquatable<OSPolicyAssignment.Types.LabelSet>, IDeepCloneable<OSPolicyAssignment.Types.LabelSet>, IBufferMessage, IMessage
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 latest version available is 2.0.0-alpha06, while 1.0.0-alpha04 is also documented here, and these represent different versions of the `OSPolicyAssignment.Types.LabelSet`."],["A LabelSet is a collection of key-value pairs (labels) associated with a VM, used to determine if a set of configurations apply."],["LabelSets operate using an \"AND\" logic, meaning that all labels within a LabelSet must match a VM's labels for the LabelSet to be considered applicable to it."],["The `LabelSet` class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and contains a `Labels` property which is a map of key-value strings."],["The `LabelSet` class is a sealed class, inheriting from the `Object` class, and it contains two constructors: a default one and another that takes in a `OSPolicyAssignment.Types.LabelSet` parameter."]]],[]]