def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None):
self._node_affinity = None<EOL>self._pod_affinity = None<EOL>self._pod_anti_affinity = None<EOL>self.discriminator = None<EOL>if node_affinity is not None:<EOL><INDENT>self.node_affinity = node_affinity<EOL><DEDENT>if pod_affinity is not None:<EOL><INDENT>self.pod_affinity = pod_affinity<EOL><DEDENT>if pod_anti_affinity is not None:<EOL><INDENT>self.pod_anti_affinity = pod_anti_affinity<EOL><DEDENT>
V1Affinity - a model defined in Swagger