
    #                     >    S r SSKJr  SSKJr  SSKr " S S\5      rg)z
Kubernetes

No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.14.4

Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                       \ rS rSrSr SSS.rSSS.rSS jr\S	 5       r	\	R                  S
 5       r	\S 5       r\R                  S 5       rS rS rS rS rS rSrg)V1Lifecycle   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
	V1Handler)
post_startpre_stop	postStartpreStopNc                 T    SU l         SU l        SU l        Ub  Xl        Ub  X l        gg)z*
V1Lifecycle - a model defined in Swagger
N_post_start	_pre_stopdiscriminatorr	   r
   )selfr	   r
   s      8lib/third_party/kubernetes/client/models/v1_lifecycle.py__init__V1Lifecycle.__init__"   s6    
 DDND"om     c                     U R                   $ )a  
Gets the post_start of this V1Lifecycle.
PostStart is called immediately after a container is created. If the
handler fails, the container is terminated and restarted according to
its restart policy. Other management of the container blocks until the
hook completes. More info:
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

:return: The post_start of this V1Lifecycle.
:rtype: V1Handler
r   r   s    r   r	   V1Lifecycle.post_start0   s     r   c                     Xl         g)a  
Sets the post_start of this V1Lifecycle.
PostStart is called immediately after a container is created. If the
handler fails, the container is terminated and restarted according to
its restart policy. Other management of the container blocks until the
hook completes. More info:
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

:param post_start: The post_start of this V1Lifecycle.
:type: V1Handler
Nr   )r   r	   s     r   r	   r   ?   s
     "r   c                     U R                   $ )a8  
Gets the pre_stop of this V1Lifecycle.
PreStop is called immediately before a container is terminated due to an
API request or management event such as liveness probe failure,
preemption, resource contention, etc. The handler is not called if the
container crashes or exits. The reason for termination is passed to the
handler. The Pod's termination grace period countdown begins before the
PreStop hooked is executed. Regardless of the outcome of the handler,
the container will eventually terminate within the Pod's termination
grace period. Other management of the container blocks until the hook
completes or until the termination grace period is reached. More info:
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

:return: The pre_stop of this V1Lifecycle.
:rtype: V1Handler
r   r   s    r   r
   V1Lifecycle.pre_stopO   s    $ >>r   c                     Xl         g)a?  
Sets the pre_stop of this V1Lifecycle.
PreStop is called immediately before a container is terminated due to an
API request or management event such as liveness probe failure,
preemption, resource contention, etc. The handler is not called if the
container crashes or exits. The reason for termination is passed to the
handler. The Pod's termination grace period countdown begins before the
PreStop hooked is executed. Regardless of the outcome of the handler,
the container will eventually terminate within the Pod's termination
grace period. Other management of the container blocks until the hook
completes or until the termination grace period is reached. More info:
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

:param pre_stop: The pre_stop of this V1Lifecycle.
:type: V1Handler
Nr   )r   r
   s     r   r
   r   c   s	    & Nr   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrr"   )xs    r   <lambda>%V1Lifecycle.to_dict.<locals>.<lambda>   s    I)>)>!))+EAEr   r"   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r"   r   r#   )items    r   r&   r'      s9    47I.. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr$   r"   dictitems)r   resultattr_values        r   r"   V1Lifecycle.to_dictx   s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   r"   r   s    r   to_strV1Lifecycle.to_str   s     4<<>""r   c                 "    U R                  5       $ )z
For `print` and `pprint`
)r8   r   s    r   __repr__V1Lifecycle.__repr__   s     ;;=r   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)r-   r   __dict__r   others     r   __eq__V1Lifecycle.__eq__   s'     e[))==ENN**r   c                     X:X  + $ )z,
Returns true if both objects are not equal
 r?   s     r   __ne__V1Lifecycle.__ne__   s     r   r   )NN)__name__
__module____qualname____firstlineno____doc__r+   attribute_mapr   propertyr	   setterr
   r"   r8   r;   rA   rE   __static_attributes__rD   r   r   r   r      s     "-+F-!,)D-   " "  & ?? (.#+r   r   )rK   pprintr   sixr   reobjectr   rD   r   r   <module>rT      s#   	   	V& Vr   