
    @                     >    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dddZddd	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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)0V1PodStatuszw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    zlist[V1PodCondition]zlist[V1ContainerStatus]strdatetime)
conditionscontainer_statuseshost_ipinit_container_statusesmessagenominated_node_namephasepod_ip	qos_classreason
start_timer	   containerStatuseshostIPinitContainerStatusesr   nominatedNodeNamer   podIPqosClassr   	startTimeNc                 t   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        yy)z:
        V1PodStatus - a model defined in Swagger
        N)_conditions_container_statuses_host_ip_init_container_statuses_message_nominated_node_name_phase_pod_ip
_qos_class_reason_start_timediscriminatorr	   r
   r   r   r   r   r   r   r   r   r   )selfr	   r
   r   r   r   r   r   r   r   r   r   s               9lib/third_party/kubernetes/client/models/v1_pod_status.py__init__zV1PodStatus.__init__:   s      D#DDM$(D!DM $DDKDLDODLDD"do% 2ddl*%<d"dl&!4ddjdk dndk"do     c                     | j                   S )a  
        Gets the conditions of this V1PodStatus.
        Current service state of pod. More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

        :return: The conditions of this V1PodStatus.
        :rtype: list[V1PodCondition]
        r   r(   s    r)   r	   zV1PodStatus.conditionsn   s     r+   c                     || _         y)a'  
        Sets the conditions of this V1PodStatus.
        Current service state of pod. More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

        :param conditions: The conditions of this V1PodStatus.
        :type: list[V1PodCondition]
        Nr-   )r(   r	   s     r)   r	   zV1PodStatus.conditionsz   s     "Dr+   c                     | j                   S )a  
        Gets the container_statuses of this V1PodStatus.
        The list has one entry per container in the manifest. Each entry is
        currently the output of `docker inspect`. More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

        :return: The container_statuses of this V1PodStatus.
        :rtype: list[V1ContainerStatus]
        r   r.   s    r)   r
   zV1PodStatus.container_statuses   s     ###r+   c                     || _         y)a  
        Sets the container_statuses of this V1PodStatus.
        The list has one entry per container in the manifest. Each entry is
        currently the output of `docker inspect`. More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

        :param container_statuses: The container_statuses of this V1PodStatus.
        :type: list[V1ContainerStatus]
        Nr1   )r(   r
   s     r)   r
   zV1PodStatus.container_statuses   s      2Dr+   c                     | j                   S )z
        Gets the host_ip of this V1PodStatus.
        IP address of the host to which the pod is assigned. Empty if not yet
        scheduled.

        :return: The host_ip of this V1PodStatus.
        :rtype: str
        r   r.   s    r)   r   zV1PodStatus.host_ip        ==r+   c                     || _         y)z
        Sets the host_ip of this V1PodStatus.
        IP address of the host to which the pod is assigned. Empty if not yet
        scheduled.

        :param host_ip: The host_ip of this V1PodStatus.
        :type: str
        Nr4   )r(   r   s     r)   r   zV1PodStatus.host_ip        DMr+   c                     | j                   S )a  
        Gets the init_container_statuses of this V1PodStatus.
        The list has one entry per init container in the manifest. The most
        recent successful init container will have ready = true, the most
        recently started container will have startTime set. More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

        :return: The init_container_statuses of this V1PodStatus.
        :rtype: list[V1ContainerStatus]
        r   r.   s    r)   r   z#V1PodStatus.init_container_statuses   s     (((r+   c                     || _         y)a  
        Sets the init_container_statuses of this V1PodStatus.
        The list has one entry per init container in the manifest. The most
        recent successful init container will have ready = true, the most
        recently started container will have startTime set. More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

        :param init_container_statuses: The init_container_statuses of this
        V1PodStatus.
        :type: list[V1ContainerStatus]
        Nr9   )r(   r   s     r)   r   z#V1PodStatus.init_container_statuses   s     %<D!r+   c                     | j                   S )z
        Gets the message of this V1PodStatus.
        A human readable message indicating details about why the pod is in this
        condition.

        :return: The message of this V1PodStatus.
        :rtype: str
        r    r.   s    r)   r   zV1PodStatus.message   r5   r+   c                     || _         y)z
        Sets the message of this V1PodStatus.
        A human readable message indicating details about why the pod is in this
        condition.

        :param message: The message of this V1PodStatus.
        :type: str
        Nr<   )r(   r   s     r)   r   zV1PodStatus.message   r7   r+   c                     | j                   S )a  
        Gets the nominated_node_name of this V1PodStatus.
        nominatedNodeName is set only when this pod preempts other pods on the
        node, but it cannot be scheduled right away as preemption victims
        receive their graceful termination periods. This field does not
        guarantee that the pod will be scheduled on this node. Scheduler may
        decide to place the pod elsewhere if other nodes become available
        sooner. Scheduler may also decide to give the resources on this node to
        a higher priority pod that is created after preemption. As a result,
        this field may be different than PodSpec.nodeName when the pod is
        scheduled.

        :return: The nominated_node_name of this V1PodStatus.
        :rtype: str
        r!   r.   s    r)   r   zV1PodStatus.nominated_node_name   s    " $$$r+   c                     || _         y)a  
        Sets the nominated_node_name of this V1PodStatus.
        nominatedNodeName is set only when this pod preempts other pods on the
        node, but it cannot be scheduled right away as preemption victims
        receive their graceful termination periods. This field does not
        guarantee that the pod will be scheduled on this node. Scheduler may
        decide to place the pod elsewhere if other nodes become available
        sooner. Scheduler may also decide to give the resources on this node to
        a higher priority pod that is created after preemption. As a result,
        this field may be different than PodSpec.nodeName when the pod is
        scheduled.

        :param nominated_node_name: The nominated_node_name of this V1PodStatus.
        :type: str
        Nr?   )r(   r   s     r)   r   zV1PodStatus.nominated_node_name  s    $ !4Dr+   c                     | j                   S )a  
        Gets the phase of this V1PodStatus.
        The phase of a Pod is a simple, high-level summary of where the Pod is
        in its lifecycle. The conditions array, the reason and message fields,
        and the individual container status arrays contain more detail about the
        pod's status. There are five possible phase values:  Pending: The pod
        has been accepted by the Kubernetes system, but one or more of the
        container images has not been created. This includes time before being
        scheduled as well as time spent downloading images over the network,
        which could take a while. Running: The pod has been bound to a node, and
        all of the containers have been created. At least one container is still
        running, or is in the process of starting or restarting. Succeeded: All
        containers in the pod have terminated in success, and will not be
        restarted. Failed: All containers in the pod have terminated, and at
        least one container has terminated in failure. The container either
        exited with non-zero status or was terminated by the system. Unknown:
        For some reason the state of the pod could not be obtained, typically
        due to an error in communicating with the host of the pod.  More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase

        :return: The phase of this V1PodStatus.
        :rtype: str
        r"   r.   s    r)   r   zV1PodStatus.phase  s    2 ;;r+   c                     || _         y)a  
        Sets the phase of this V1PodStatus.
        The phase of a Pod is a simple, high-level summary of where the Pod is
        in its lifecycle. The conditions array, the reason and message fields,
        and the individual container status arrays contain more detail about the
        pod's status. There are five possible phase values:  Pending: The pod
        has been accepted by the Kubernetes system, but one or more of the
        container images has not been created. This includes time before being
        scheduled as well as time spent downloading images over the network,
        which could take a while. Running: The pod has been bound to a node, and
        all of the containers have been created. At least one container is still
        running, or is in the process of starting or restarting. Succeeded: All
        containers in the pod have terminated in success, and will not be
        restarted. Failed: All containers in the pod have terminated, and at
        least one container has terminated in failure. The container either
        exited with non-zero status or was terminated by the system. Unknown:
        For some reason the state of the pod could not be obtained, typically
        due to an error in communicating with the host of the pod.  More info:
        https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase

        :param phase: The phase of this V1PodStatus.
        :type: str
        NrB   )r(   r   s     r)   r   zV1PodStatus.phase4  s    4 DKr+   c                     | j                   S )z
        Gets the pod_ip of this V1PodStatus.
        IP address allocated to the pod. Routable at least within the cluster.
        Empty if not yet allocated.

        :return: The pod_ip of this V1PodStatus.
        :rtype: str
        r#   r.   s    r)   r   zV1PodStatus.pod_ipP       <<r+   c                     || _         y)z
        Sets the pod_ip of this V1PodStatus.
        IP address allocated to the pod. Routable at least within the cluster.
        Empty if not yet allocated.

        :param pod_ip: The pod_ip of this V1PodStatus.
        :type: str
        NrE   )r(   r   s     r)   r   zV1PodStatus.pod_ip\       DLr+   c                     | j                   S )a  
        Gets the qos_class of this V1PodStatus.
        The Quality of Service (QOS) classification assigned to the pod based on
        resource requirements See PodQOSClass type for available QOS classes
        More info:
        https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md

        :return: The qos_class of this V1PodStatus.
        :rtype: str
        r$   r.   s    r)   r   zV1PodStatus.qos_classi  s     ??r+   c                     || _         y)a  
        Sets the qos_class of this V1PodStatus.
        The Quality of Service (QOS) classification assigned to the pod based on
        resource requirements See PodQOSClass type for available QOS classes
        More info:
        https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md

        :param qos_class: The qos_class of this V1PodStatus.
        :type: str
        NrJ   )r(   r   s     r)   r   zV1PodStatus.qos_classw  s      DOr+   c                     | j                   S )z
        Gets the reason of this V1PodStatus.
        A brief CamelCase message indicating details about why the pod is in
        this state. e.g. 'Evicted'

        :return: The reason of this V1PodStatus.
        :rtype: str
        r%   r.   s    r)   r   zV1PodStatus.reason  rF   r+   c                     || _         y)z
        Sets the reason of this V1PodStatus.
        A brief CamelCase message indicating details about why the pod is in
        this state. e.g. 'Evicted'

        :param reason: The reason of this V1PodStatus.
        :type: str
        NrM   )r(   r   s     r)   r   zV1PodStatus.reason  rH   r+   c                     | j                   S )a3  
        Gets the start_time of this V1PodStatus.
        RFC 3339 date and time at which the object was acknowledged by the
        Kubelet. This is before the Kubelet pulled the container image(s) for
        the pod.

        :return: The start_time of this V1PodStatus.
        :rtype: datetime
        r&   r.   s    r)   r   zV1PodStatus.start_time  s     r+   c                     || _         y)a<  
        Sets the start_time of this V1PodStatus.
        RFC 3339 date and time at which the object was acknowledged by the
        Kubelet. This is before the Kubelet pulled the container image(s) for
        the pod.

        :param start_time: The start_time of this V1PodStatus.
        :type: datetime
        NrP   )r(   r   s     r)   r   zV1PodStatus.start_time  s     "Dr+   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hasattrrT   )xs    r)   <lambda>z%V1PodStatus.to_dict.<locals>.<lambda>  s    I)>!))+EAEr+   rT   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rT   r   rU   )items    r)   rX   z%V1PodStatus.to_dict.<locals>.<lambda>  s6    47I. #1gtAw'89 9489r+   )
r   swagger_typesgetattr
isinstancelistmaprV   rT   dictitems)r(   resultattr_values        r)   rT   zV1PodStatus.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   rT   r.   s    r)   to_strzV1PodStatus.to_str  s     4<<>""r+   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rh   r.   s    r)   __repr__zV1PodStatus.__repr__  s     ;;=r+   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r^   r   __dict__r(   others     r)   __eq__zV1PodStatus.__eq__  s$     e[)==ENN**r+   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rm   s     r)   __ne__zV1PodStatus.__ne__  s     u}r+   )NNNNNNNNNNN)__name__
__module____qualname____doc__r\   attribute_mapr*   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   rT   rh   rj   ro   rr   rq   r+   r)   r   r      s    +5!:"- !/!80- "&'+#'2#h 	 	 
" 
" 
$ 
$ 2 2 	 	 >>
 
 ) ) !!< "< 	 	 >>
 
 % %$ 4 4&  4 	<< 6 	 	 
==
 
       	 	 
==
 
 
 
 " ".#+r+   r   )rv   pprintr   sixr   reobjectr   rq   r+   r)   <module>r~      s#   	   	X& Xr+   