# Class SchedulingNodeAffinity (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.3 1.10.0 1.9.1 1.8.5 1.7.0 1.6.2 1.5.1 1.4.0 1.3.3 1.2.0 1.1.2 1.0.0 0.1.0

    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 ||
|---|---|
| **Name** | **Description** |
| `key` | `str` The label key of Node resource to reference. |
| `operator` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/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.