3 fY@s8dZddlmZddlmZddlZGdddeZdS)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@seZdZdZd$ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ ddZddZddZd d!Zd"d#ZdS)%V1ContainerStateTerminatedzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsZdddddddd|_ddddd d d d|_||_||_||_||_||_||_||_d S) aP V1ContainerStateTerminated - 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. strintdatetime) container_id exit_code finished_atmessagereasonsignal started_atZ containerIDZexitCodeZ finishedAtr r r startedAtN) swagger_types attribute_map _container_id _exit_code _finished_at_message_reason_signal _started_at)selfrr r r r r rrg/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_container_state_terminated.py__init__s*   z#V1ContainerStateTerminated.__init__cCs|jS)z Gets the container_id of this V1ContainerStateTerminated. Container's ID in the format 'docker://' :return: The container_id of this V1ContainerStateTerminated. :rtype: str )r)rrrrr=s z'V1ContainerStateTerminated.container_idcCs ||_dS)z Sets the container_id of this V1ContainerStateTerminated. Container's ID in the format 'docker://' :param container_id: The container_id of this V1ContainerStateTerminated. :type: str N)r)rrrrrrHs cCs|jS)z Gets the exit_code of this V1ContainerStateTerminated. Exit status from the last termination of the container :return: The exit_code of this V1ContainerStateTerminated. :rtype: int )r)rrrrr Ts z$V1ContainerStateTerminated.exit_codecCs|dkrtd||_dS)z Sets the exit_code of this V1ContainerStateTerminated. Exit status from the last termination of the container :param exit_code: The exit_code of this V1ContainerStateTerminated. :type: int Nz1Invalid value for `exit_code`, must not be `None`) ValueErrorr)rr rrrr _s cCs|jS)z Gets the finished_at of this V1ContainerStateTerminated. Time at which the container last terminated :return: The finished_at of this V1ContainerStateTerminated. :rtype: datetime )r)rrrrr ms z&V1ContainerStateTerminated.finished_atcCs ||_dS)z Sets the finished_at of this V1ContainerStateTerminated. Time at which the container last terminated :param finished_at: The finished_at of this V1ContainerStateTerminated. :type: datetime N)r)rr rrrr xs cCs|jS)z Gets the message of this V1ContainerStateTerminated. Message regarding the last termination of the container :return: The message of this V1ContainerStateTerminated. :rtype: str )r)rrrrr s z"V1ContainerStateTerminated.messagecCs ||_dS)z Sets the message of this V1ContainerStateTerminated. Message regarding the last termination of the container :param message: The message of this V1ContainerStateTerminated. :type: str N)r)rr rrrr s cCs|jS)z Gets the reason of this V1ContainerStateTerminated. (brief) reason from the last termination of the container :return: The reason of this V1ContainerStateTerminated. :rtype: str )r)rrrrr s z!V1ContainerStateTerminated.reasoncCs ||_dS)z Sets the reason of this V1ContainerStateTerminated. (brief) reason from the last termination of the container :param reason: The reason of this V1ContainerStateTerminated. :type: str N)r)rr rrrr s cCs|jS)z Gets the signal of this V1ContainerStateTerminated. Signal from the last termination of the container :return: The signal of this V1ContainerStateTerminated. :rtype: int )r)rrrrr s z!V1ContainerStateTerminated.signalcCs ||_dS)z Sets the signal of this V1ContainerStateTerminated. Signal from the last termination of the container :param signal: The signal of this V1ContainerStateTerminated. :type: int N)r)rr rrrr s cCs|jS)z Gets the started_at of this V1ContainerStateTerminated. Time at which previous execution of the container started :return: The started_at of this V1ContainerStateTerminated. :rtype: datetime )r)rrrrrs z%V1ContainerStateTerminated.started_atcCs ||_dS)z Sets the started_at of this V1ContainerStateTerminated. Time at which previous execution of the container started :param started_at: The started_at of this V1ContainerStateTerminated. :type: datetime N)r)rrrrrrs cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz4V1ContainerStateTerminated.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrr!s) rrgetattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     z"V1ContainerStateTerminated.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz!V1ContainerStateTerminated.to_strcCs|jS)z* For `print` and `pprint` )r.)rrrr__repr__sz#V1ContainerStateTerminated.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r%r__dict__)rotherrrr__eq__s z!V1ContainerStateTerminated.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr1rrr__ne__sz!V1ContainerStateTerminated.__ne__)NNNNNNN)__name__ __module__ __qualname____doc__rpropertyrsetterr r r r r rrr.r/r2r3rrrrrs* %         r)r7pprintrsixrreobjectrrrrr s