Class SchedulingNodeAffinity (1.8.2)

SchedulingNodeAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling

Attributes

NameDescription
key str
The label key of Node resource to reference.
operator google.cloud.vmmigration_v1.types.SchedulingNodeAffinity.Operator
The operator to use for the node resources specified in the values parameter.
values MutableSequence[str]
Corresponds to the label values of Node resource.

Classes

Operator

Operator(value)

Possible types of node selection operators. Valid operators are IN for affinity and NOT_IN for anti-affinity.

Values: OPERATOR_UNSPECIFIED (0): An unknown, unexpected behavior. IN (1): The node resource group should be in these resources affinity. NOT_IN (2): The node resource group should not be in these resources affinity.