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"]],[["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\u003eThis document provides reference information for the \u003ccode\u003eOSPolicyAssignment.Types.LabelSet\u003c/code\u003e class within the Google Cloud OS Config v1 API.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eLabelSet\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabelSet\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, and inherits properties and methods from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains one property, \u003ccode\u003eLabels\u003c/code\u003e, which is a \u003ccode\u003eMapField\u003c/code\u003e of key-value pairs represented as strings, and that the \u003ccode\u003eLabelSet\u003c/code\u003e objects can be created using two constructors, one empty and the other with another \u003ccode\u003eLabelSet\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]