kubernetes_asyncio.client.models.v1_weighted_pod_affinity_term 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_weighted_pod_affinity_term.V1WeightedPodAffinityTerm(pod_affinity_term=None, weight=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 = {'pod_affinity_term': 'podAffinityTerm', 'weight': 'weight'}
openapi_types = {'pod_affinity_term': 'V1PodAffinityTerm', 'weight': 'int'}
property pod_affinity_term

Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. # noqa: E501

Returns:

The pod_affinity_term of this V1WeightedPodAffinityTerm. # noqa: E501

Return type:

V1PodAffinityTerm

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property weight

Gets the weight of this V1WeightedPodAffinityTerm. # noqa: E501

weight associated with matching the corresponding podAffinityTerm, in the range 1-100. # noqa: E501

Returns:

The weight of this V1WeightedPodAffinityTerm. # noqa: E501

Return type:

int