def __init__(__self__, *, key: Optional[pulumi.Input[str]]=None, operator: Optional[pulumi.Input['SchedulingNodeAffinityOperator']]=None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
    "\n        Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.\n        :param pulumi.Input[str] key: Corresponds to the label key of Node resource.\n        :param pulumi.Input['SchedulingNodeAffinityOperator'] operator: Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Corresponds to the label values of Node resource.\n        "
    if (key is not None):
        pulumi.set(__self__, 'key', key)
    if (operator is not None):
        pulumi.set(__self__, 'operator', operator)
    if (values is not None):
        pulumi.set(__self__, 'values', values)
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
:param pulumi.Input[str] key: Corresponds to the label key of Node resource.
:param pulumi.Input['SchedulingNodeAffinityOperator'] operator: Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Corresponds to the label values of Node resource.
def __init__(__self__, *, key: Optional[pulumi.Input[str]]=None, operator: Optional[pulumi.Input['SchedulingNodeAffinityOperator']]=None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
    "\n        Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.\n        :param pulumi.Input[str] key: Corresponds to the label key of Node resource.\n        :param pulumi.Input['SchedulingNodeAffinityOperator'] operator: Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Corresponds to the label values of Node resource.\n        "
    if (key is not None):
        pulumi.set(__self__, 'key', key)
    if (operator is not None):
        pulumi.set(__self__, 'operator', operator)
    if (values is not None):
        pulumi.set(__self__, 'values', values)