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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eOSPolicyAssignment.Types.LabelSet\u003c/code\u003e is 2.4.0, with multiple previous versions listed for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLabelSet\u003c/code\u003e is a message type representing a set of key-value pairs (labels) that are used to identify VMs.\u003c/p\u003e\n"],["\u003cp\u003eA VM must have all key-value pairs defined in a \u003ccode\u003eLabelSet\u003c/code\u003e in order to match it, and this works as a logical AND between them.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabelSet\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabels\u003c/code\u003e property of \u003ccode\u003eLabelSet\u003c/code\u003e is a map where the key-value pairs for label identification are stored.\u003c/p\u003e\n"]]],[],null,[]]