VmExtensionPolicyLabelSelector(
mapping=None, *, ignore_unknown_fields=False, **kwargs
)A LabelSelector is applied to a VM only if it matches all the specified labels.
Attribute |
|
|---|---|
| Name | Description |
inclusion_labels |
MutableMapping[str, str]
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.
|
Classes
InclusionLabelsEntry
InclusionLabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |