LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
| Name | Type | Description | Notes |
|---|---|---|---|
| _exec | V1ExecAction | [optional] | |
| http_get | V1HTTPGetAction | [optional] | |
| sleep | V1SleepAction | [optional] | |
| tcp_socket | V1TCPSocketAction | [optional] |
from kubernetes.client.models.v1_lifecycle_handler import V1LifecycleHandler
# TODO update the JSON string below
json = "{}"
# create an instance of V1LifecycleHandler from a JSON string
v1_lifecycle_handler_instance = V1LifecycleHandler.from_json(json)
# print the JSON string representation of the object
print(V1LifecycleHandler.to_json())
# convert the object into a dict
v1_lifecycle_handler_dict = v1_lifecycle_handler_instance.to_dict()
# create an instance of V1LifecycleHandler from a dict
v1_lifecycle_handler_from_dict = V1LifecycleHandler.from_dict(v1_lifecycle_handler_dict)