kubernetes_asyncio.client.models.v1_container_restart_rule 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.V1ContainerRestartRule(action=None, exit_codes=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.

property action

Gets the action of this V1ContainerRestartRule. # noqa: E501

Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is “Restart” to restart the container. # noqa: E501

Returns:

The action of this V1ContainerRestartRule. # noqa: E501

Return type:

str

attribute_map = {'action': 'action', 'exit_codes': 'exitCodes'}
property exit_codes

Gets the exit_codes of this V1ContainerRestartRule. # noqa: E501

Returns:

The exit_codes of this V1ContainerRestartRule. # noqa: E501

Return type:

V1ContainerRestartRuleOnExitCodes

openapi_types = {'action': 'str', 'exit_codes': 'V1ContainerRestartRuleOnExitCodes'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model