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-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eOSPolicyAssignment.Types.LabelSet\u003c/code\u003e class within the Google Cloud OS Config v1alpha API.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eLabelSet\u003c/code\u003e represents a collection of key-value label pairs that are used to identify and target specific VMs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLabelSet\u003c/code\u003e applicability requires a VM to possess all the specified labels within the set, as labels within a \u003ccode\u003eLabelSet\u003c/code\u003e are ANDed together.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabels\u003c/code\u003e property, of type \u003ccode\u003eMapField<string, string>\u003c/code\u003e, is used to define the set of key-value pairs, where a VM must contain all key/value pairs to be selected.\u003c/p\u003e\n"]]],[],null,[]]