kubernetes_asyncio.client.models.v1_toleration 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_toleration.V1Toleration(effect=None, key=None, operator=None, toleration_seconds=None, value=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'effect': 'effect', 'key': 'key', 'operator': 'operator', 'toleration_seconds': 'tolerationSeconds', 'value': 'value'}
- property effect
Gets the effect of this V1Toleration. # noqa: E501
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. # noqa: E501
- Returns:
The effect of this V1Toleration. # noqa: E501
- Return type:
str
- property key
Gets the key of this V1Toleration. # noqa: E501
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. # noqa: E501
- Returns:
The key of this V1Toleration. # noqa: E501
- Return type:
str
- openapi_types = {'effect': 'str', 'key': 'str', 'operator': 'str', 'toleration_seconds': 'int', 'value': 'str'}
- property operator
Gets the operator of this V1Toleration. # noqa: E501
Operator represents a key’s relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. # noqa: E501
- Returns:
The operator of this V1Toleration. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property toleration_seconds
Gets the toleration_seconds of this V1Toleration. # noqa: E501
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. # noqa: E501
- Returns:
The toleration_seconds of this V1Toleration. # noqa: E501
- Return type:
int
- property value
Gets the value of this V1Toleration. # noqa: E501
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. # noqa: E501
- Returns:
The value of this V1Toleration. # noqa: E501
- Return type:
str