kubernetes_asyncio.client.models.v1_container_restart_rule_on_exit_codes 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_container_restart_rule_on_exit_codes.V1ContainerRestartRuleOnExitCodes(operator=None, values=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 = {'operator': 'operator', 'values': 'values'}
openapi_types = {'operator': 'str', 'values': 'list[int]'}
property operator

Gets the operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501

Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. # noqa: E501

Returns:

The operator of this V1ContainerRestartRuleOnExitCodes. # 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 values

Gets the values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501

Specifies the set of values to check for container exit codes. At most 255 elements are allowed. # noqa: E501

Returns:

The values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501

Return type:

list[int]