
    #                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)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            	          e Zd ZdZ	 dddddddddZddd	d
dddddZ	 	 	 	 	 	 	 	 d&dZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d         Zd! Zd" Zd# Zd$ Zd% Zy)'V1ContainerStatuszw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strV1ContainerStateboolint)container_idimageimage_id
last_statenamereadyrestart_countstatecontainerIDr   imageID	lastStater   r   restartCountr   Nc	                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        || _
        || _        ||| _        || _        || _        || _        ||| _        yy)z@
        V1ContainerStatus - a model defined in Swagger
        N)_container_id_image	_image_id_last_state_name_ready_restart_count_statediscriminatorr   r   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            ?lib/third_party/kubernetes/client/models/v1_container_status.py__init__zV1ContainerStatus.__init__4   s     DDKDNDDJDKDDKD&dDJDM"doDIDJ&Ddj     c                     | j                   S )z
        Gets the container_id of this V1ContainerStatus.
        Container's ID in the format 'docker://<container_id>'.

        :return: The container_id of this V1ContainerStatus.
        :rtype: str
        r   r!   s    r"   r   zV1ContainerStatus.container_idW   s     r$   c                     || _         y)z
        Sets the container_id of this V1ContainerStatus.
        Container's ID in the format 'docker://<container_id>'.

        :param container_id: The container_id of this V1ContainerStatus.
        :type: str
        Nr&   )r!   r   s     r"   r   zV1ContainerStatus.container_idb   s     &Dr$   c                     | j                   S )z
        Gets the image of this V1ContainerStatus.
        The image the container is running. More info:
        https://kubernetes.io/docs/concepts/containers/images

        :return: The image of this V1ContainerStatus.
        :rtype: str
        )r   r'   s    r"   r   zV1ContainerStatus.imagen   s     ;;r$   c                 ,    |t        d      || _        y)z
        Sets the image of this V1ContainerStatus.
        The image the container is running. More info:
        https://kubernetes.io/docs/concepts/containers/images

        :param image: The image of this V1ContainerStatus.
        :type: str
        Nz-Invalid value for `image`, must not be `None`)
ValueErrorr   )r!   r   s     r"   r   zV1ContainerStatus.imagez   s     }FGGDKr$   c                     | j                   S )z
        Gets the image_id of this V1ContainerStatus.
        ImageID of the container's image.

        :return: The image_id of this V1ContainerStatus.
        :rtype: str
        )r   r'   s    r"   r   zV1ContainerStatus.image_id   s     >>r$   c                 ,    |t        d      || _        y)z
        Sets the image_id of this V1ContainerStatus.
        ImageID of the container's image.

        :param image_id: The image_id of this V1ContainerStatus.
        :type: str
        Nz0Invalid value for `image_id`, must not be `None`)r+   r   )r!   r   s     r"   r   zV1ContainerStatus.image_id   s     IJJDNr$   c                     | j                   S )z
        Gets the last_state of this V1ContainerStatus.
        Details about the container's last termination condition.

        :return: The last_state of this V1ContainerStatus.
        :rtype: V1ContainerState
        r   r'   s    r"   r   zV1ContainerStatus.last_state   s     r$   c                     || _         y)z
        Sets the last_state of this V1ContainerStatus.
        Details about the container's last termination condition.

        :param last_state: The last_state of this V1ContainerStatus.
        :type: V1ContainerState
        Nr/   )r!   r   s     r"   r   zV1ContainerStatus.last_state   s     "Dr$   c                     | j                   S )z
        Gets the name of this V1ContainerStatus.
        This must be a DNS_LABEL. Each container in a pod must have a unique
        name. Cannot be updated.

        :return: The name of this V1ContainerStatus.
        :rtype: str
        )r   r'   s    r"   r   zV1ContainerStatus.name   s     ::r$   c                 ,    |t        d      || _        y)z
        Sets the name of this V1ContainerStatus.
        This must be a DNS_LABEL. Each container in a pod must have a unique
        name. Cannot be updated.

        :param name: The name of this V1ContainerStatus.
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r+   r   )r!   r   s     r"   r   zV1ContainerStatus.name   s     |EFFDJr$   c                     | j                   S )z
        Gets the ready of this V1ContainerStatus.
        Specifies whether the container has passed its readiness probe.

        :return: The ready of this V1ContainerStatus.
        :rtype: bool
        )r   r'   s    r"   r   zV1ContainerStatus.ready        ;;r$   c                 ,    |t        d      || _        y)z
        Sets the ready of this V1ContainerStatus.
        Specifies whether the container has passed its readiness probe.

        :param ready: The ready of this V1ContainerStatus.
        :type: bool
        Nz-Invalid value for `ready`, must not be `None`)r+   r   )r!   r   s     r"   r   zV1ContainerStatus.ready   s     }FGGDKr$   c                     | j                   S )a  
        Gets the restart_count of this V1ContainerStatus.
        The number of times the container has been restarted, currently based on
        the number of dead containers that have not yet been removed. Note that
        this is calculated from dead containers. But those containers are
        subject to garbage collection. This value will get capped at 5 by GC.

        :return: The restart_count of this V1ContainerStatus.
        :rtype: int
        )r   r'   s    r"   r   zV1ContainerStatus.restart_count   s     r$   c                 ,    |t        d      || _        y)a  
        Sets the restart_count of this V1ContainerStatus.
        The number of times the container has been restarted, currently based on
        the number of dead containers that have not yet been removed. Note that
        this is calculated from dead containers. But those containers are
        subject to garbage collection. This value will get capped at 5 by GC.

        :param restart_count: The restart_count of this V1ContainerStatus.
        :type: int
        Nz5Invalid value for `restart_count`, must not be `None`)r+   r   )r!   r   s     r"   r   zV1ContainerStatus.restart_count   s     NOO'Dr$   c                     | j                   S )z
        Gets the state of this V1ContainerStatus.
        Details about the container's current condition.

        :return: The state of this V1ContainerStatus.
        :rtype: V1ContainerState
        r   r'   s    r"   r   zV1ContainerStatus.state  r4   r$   c                     || _         y)z
        Sets the state of this V1ContainerStatus.
        Details about the container's current condition.

        :param state: The state of this V1ContainerStatus.
        :type: V1ContainerState
        Nr9   )r!   r   s     r"   r   zV1ContainerStatus.state  s     DKr$   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr=   )xs    r"   <lambda>z+V1ContainerStatus.to_dict.<locals>.<lambda>-  s    I)>!))+EAEr$   r=   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r=   r   r>   )items    r"   rA   z+V1ContainerStatus.to_dict.<locals>.<lambda>3  s6    47I. #1gtAw'89 9489r$   )
r   swagger_typesgetattr
isinstancelistmapr?   r=   dictitems)r!   resultattr_values        r"   r=   zV1ContainerStatus.to_dict#  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr$   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r=   r'   s    r"   to_strzV1ContainerStatus.to_str:  s     4<<>""r$   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rQ   r'   s    r"   __repr__zV1ContainerStatus.__repr__@  s     ;;=r$   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rG   r   __dict__r!   others     r"   __eq__zV1ContainerStatus.__eq__F  s%     e./==ENN**r$   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rV   s     r"   __ne__zV1ContainerStatus.__ne__O  s     u}r$   )NNNNNNNN)__name__
__module____qualname____doc__rE   attribute_mapr#   propertyr   setterr   r   r   r   r   r   r   r=   rQ   rS   rX   r[   rZ   r$   r"   r   r      s    &!	- $%	- !!!F   	& 	& 	 	 	<<    ??    	" 	" 	 	 ;;    	<<    ( (    	<<	 	.#+r$   r   )r_   pprintr   sixr   reobjectr   rZ   r$   r"   <module>rg      s#   	   	A Ar$   