kubernetes_asyncio.client.models.v1_affinity module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_affinity.V1Affinity(node_affinity=None, pod_affinity=None, pod_anti_affinity=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'node_affinity': 'nodeAffinity', 'pod_affinity': 'podAffinity', 'pod_anti_affinity': 'podAntiAffinity'}
property node_affinity

Gets the node_affinity of this V1Affinity. # noqa: E501

Returns:

The node_affinity of this V1Affinity. # noqa: E501

Return type:

V1NodeAffinity

openapi_types = {'node_affinity': 'V1NodeAffinity', 'pod_affinity': 'V1PodAffinity', 'pod_anti_affinity': 'V1PodAntiAffinity'}
property pod_affinity

Gets the pod_affinity of this V1Affinity. # noqa: E501

Returns:

The pod_affinity of this V1Affinity. # noqa: E501

Return type:

V1PodAffinity

property pod_anti_affinity

Gets the pod_anti_affinity of this V1Affinity. # noqa: E501

Returns:

The pod_anti_affinity of this V1Affinity. # noqa: E501

Return type:

V1PodAntiAffinity

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model