public sealed class OSPolicyAssignment.Types.LabelSet : IMessage<OSPolicyAssignment.Types.LabelSet>, IEquatable<OSPolicyAssignment.Types.LabelSet>, IDeepCloneable<OSPolicyAssignment.Types.LabelSet>, IBufferMessage, IMessageReference 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=prodandtype=webserverwill only be applicable for those VMs with both labels present.
Implements
IMessageOSPolicyAssignmentTypesLabelSet, IEquatableOSPolicyAssignmentTypesLabelSet, IDeepCloneableOSPolicyAssignmentTypesLabelSet, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1Assembly
Google.Cloud.OsConfig.V1.dll
Constructors
LabelSet()
public LabelSet()LabelSet(LabelSet)
public LabelSet(OSPolicyAssignment.Types.LabelSet other)| Parameter | |
|---|---|
| Name | Description |
other |
OSPolicyAssignmentTypesLabelSet |
Properties
Labels
public MapField<string, string> Labels { get; }Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
| Property Value | |
|---|---|
| Type | Description |
MapFieldstringstring |
|