3 f÷ÔYúã@s8dZddlmZddlmZddlZGdd„deƒZdS)zç Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git é)Úpformat)Ú iteritemsNc@sveZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dS)Ú V1Lifecyclezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)aA V1Lifecycle - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. Ú V1Handler)Ú post_startÚpre_stopZ postStartZpreStopN)Ú swagger_typesÚ attribute_mapÚ _post_startÚ _pre_stop)Úselfrr©r úV/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_lifecycle.pyÚ__init__s   zV1Lifecycle.__init__cCs|jS)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 r r rr.s zV1Lifecycle.post_startcCs ||_dS)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 N)r )r rr r rr9s cCs|jS)a6 Gets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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 pre_stop of this V1Lifecycle. :rtype: V1Handler )r )r r r rrEs zV1Lifecycle.pre_stopcCs ||_dS)a= Sets the pre_stop of this V1Lifecycle. PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks :param pre_stop: The pre_stop of this V1Lifecycle. :type: V1Handler N)r )r rr r rrPs cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr)Úxr r rÚfsz%V1Lifecycle.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemr r rrms) rrÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)r ÚresultÚattrÚ_Úvaluer r rr\s     zV1Lifecycle.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)r r r rÚto_strvszV1Lifecycle.to_strcCs|jƒS)z* For `print` and `pprint` )r )r r r rÚ__repr__|szV1Lifecycle.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)r Úotherr r rÚ__eq__‚s zV1Lifecycle.__eq__cCs ||k S)z< Returns true if both objects are not equal r )r r#r r rÚ__ne__‹szV1Lifecycle.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr r!r$r%r r r rrs     r)r)ÚpprintrÚsixrÚreÚobjectrr r r rÚ s