ContainerRestartRule describes how a container exit is handled.
| Name | Type | Description | Notes |
|---|---|---|---|
| action | str | Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is "Restart" to restart the container. | |
| exit_codes | V1ContainerRestartRuleOnExitCodes | [optional] |
from kubernetes.client.models.v1_container_restart_rule import V1ContainerRestartRule
# TODO update the JSON string below
json = "{}"
# create an instance of V1ContainerRestartRule from a JSON string
v1_container_restart_rule_instance = V1ContainerRestartRule.from_json(json)
# print the JSON string representation of the object
print(V1ContainerRestartRule.to_json())
# convert the object into a dict
v1_container_restart_rule_dict = v1_container_restart_rule_instance.to_dict()
# create an instance of V1ContainerRestartRule from a dict
v1_container_restart_rule_from_dict = V1ContainerRestartRule.from_dict(v1_container_restart_rule_dict)