Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.32 KB

File metadata and controls

31 lines (24 loc) · 1.32 KB

V1LifecycleHandler

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.

Properties

Name Type Description Notes
_exec V1ExecAction [optional]
http_get V1HTTPGetAction [optional]
sleep V1SleepAction [optional]
tcp_socket V1TCPSocketAction [optional]

Example

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)

[Back to Model list] [Back to API list] [Back to README]