Compute Engine v1 API - Class VmExtensionPolicyLabelSelector (3.27.0)

public sealed class VmExtensionPolicyLabelSelector : IMessage<VmExtensionPolicyLabelSelector>, IEquatable<VmExtensionPolicyLabelSelector>, IDeepCloneable<VmExtensionPolicyLabelSelector>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class VmExtensionPolicyLabelSelector.

A LabelSelector is applied to a VM only if it matches all the specified labels.

Inheritance

object > VmExtensionPolicyLabelSelector

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

VmExtensionPolicyLabelSelector()

public VmExtensionPolicyLabelSelector()

VmExtensionPolicyLabelSelector(VmExtensionPolicyLabelSelector)

public VmExtensionPolicyLabelSelector(VmExtensionPolicyLabelSelector other)
Parameter
Name Description
other VmExtensionPolicyLabelSelector

Properties

InclusionLabels

public MapField<string, string> InclusionLabels { get; }

Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels specified in this map to be selected (logical AND).

e.g. If the inclusion_labels are {("key1", "value1"), ("key2", "value2")}, the VM labels must contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are ("key1", "value1") and ("something", "else"), it will not be selected.

If the map is empty, it's considered a match.

Property Value
Type Description
MapFieldstringstring