# Class SchedulingNodeAffinity (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

Node Affinity: the configuration of desired nodes onto which
this Instance could be scheduled.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `key` | `str` Corresponds to the label key of Node resource. This field is a member of `oneof`_ `_key`. |
| `operator` | `str` Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values. This field is a member of `oneof`_ `_operator`. |
| `values` | `MutableSequence[str]` Corresponds to the label values of Node resource. |

## Classes

### Operator

    Operator(value)

Defines the operation of node selection. Valid operators areIN for
affinity and NOT_IN for anti-affinity.