kubernetes.aio.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: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_container_restart_rule.V1ContainerRestartRule(action=None, exit_codes=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.
- 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:
- 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