Interface VmExtensionPolicyLabelSelectorOrBuilder (1.105.0)

public interface VmExtensionPolicyLabelSelectorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsInclusionLabels(String key)

public abstract boolean containsInclusionLabels(String key)

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.

map<string, string> inclusion_labels = 501312642;

Parameter
Name Description
key String
Returns
Type Description
boolean

getInclusionLabels() (deprecated)

public abstract Map<String,String> getInclusionLabels()
Returns
Type Description
Map<String,String>

getInclusionLabelsCount()

public abstract int getInclusionLabelsCount()

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.

map<string, string> inclusion_labels = 501312642;

Returns
Type Description
int

getInclusionLabelsMap()

public abstract Map<String,String> getInclusionLabelsMap()

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.

map<string, string> inclusion_labels = 501312642;

Returns
Type Description
Map<String,String>

getInclusionLabelsOrDefault(String key, String defaultValue)

public abstract String getInclusionLabelsOrDefault(String key, String defaultValue)

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.

map<string, string> inclusion_labels = 501312642;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getInclusionLabelsOrThrow(String key)

public abstract String getInclusionLabelsOrThrow(String key)

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.

map<string, string> inclusion_labels = 501312642;

Parameter
Name Description
key String
Returns
Type Description
String