kubernetes_asyncio.client.models.v1_lifecycle 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_lifecycle.V1Lifecycle(post_start=None, pre_stop=None, stop_signal=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.

attribute_map = {'post_start': 'postStart', 'pre_stop': 'preStop', 'stop_signal': 'stopSignal'}
openapi_types = {'post_start': 'V1LifecycleHandler', 'pre_stop': 'V1LifecycleHandler', 'stop_signal': 'str'}
property post_start

Gets the post_start of this V1Lifecycle. # noqa: E501

Returns:

The post_start of this V1Lifecycle. # noqa: E501

Return type:

V1LifecycleHandler

property pre_stop

Gets the pre_stop of this V1Lifecycle. # noqa: E501

Returns:

The pre_stop of this V1Lifecycle. # noqa: E501

Return type:

V1LifecycleHandler

property stop_signal

Gets the stop_signal of this V1Lifecycle. # noqa: E501

StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name # noqa: E501

Returns:

The stop_signal of this V1Lifecycle. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model