
    <ge                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   @   e Zd ZdZ	 i ddddddddd	d
ddddddddddddddddddddddZi ddddddddd	ddddddddddddd dd!dddddd"dd#ZdKd%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d0        Zej                  d1        Zed2        Zej                  d3        Zed4        Zej                  d5        Zed6        Zej                  d7        Zed8        Zej                  d9        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                  dA        ZedB        Zej                  dC        ZedD        Zej                  dE        ZdF ZdG ZdH ZdI ZdJ Zy$)LV1PodStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    
conditionszlist[V1PodCondition]container_statuseszlist[V1ContainerStatus]ephemeral_container_statuseshost_ipstr	host_i_pszlist[V1HostIP]init_container_statusesmessagenominated_node_namephasepod_ippod_i_pszlist[V1PodIP]	qos_classreasonresizeresource_claim_statuseszlist[V1PodResourceClaimStatus]
start_timedatetimecontainerStatusesephemeralContainerStatuseshostIPhostIPsinitContainerStatusesnominatedNodeNamepodIPpodIPsqosClassresourceClaimStatuses	startTimeNc                 :   |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        ||| _        ||| _        ||| _         ||| _!        ||| _"        yy)z(V1PodStatus - a model defined in OpenAPIN)#r   local_vars_configuration_conditions_container_statuses_ephemeral_container_statuses_host_ip
_host_i_ps_init_container_statuses_message_nominated_node_name_phase_pod_ip	_pod_i_ps
_qos_class_reason_resize_resource_claim_statuses_start_timediscriminatorr   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r$   s                     [/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_pod_status.py__init__zV1PodStatus.__init__I   sq   #+'4$(@%#' -1*(,%$(!(,%!!(DO)&8D#'30LD-"DL &DN".+BD("DL*':D$DJ DK$DM &DN DK DK".+BD(!(DO "    c                     | j                   S )a8  Gets the conditions of this V1PodStatus.  # noqa: E501

        Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions  # noqa: E501

        :return: The conditions of this V1PodStatus.  # noqa: E501
        :rtype: list[V1PodCondition]
        r%   r6   s    r7   r   zV1PodStatus.conditions        r9   c                     || _         y)a3  Sets the conditions of this V1PodStatus.

        Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions  # noqa: E501

        :param conditions: The conditions of this V1PodStatus.  # noqa: E501
        :type: list[V1PodCondition]
        Nr;   )r6   r   s     r7   r   zV1PodStatus.conditions        &r9   c                     | j                   S )a  Gets the container_statuses of this V1PodStatus.  # noqa: E501

        Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status  # noqa: E501

        :return: The container_statuses of this V1PodStatus.  # noqa: E501
        :rtype: list[V1ContainerStatus]
        r&   r<   s    r7   r   zV1PodStatus.container_statuses   s     '''r9   c                     || _         y)a  Sets the container_statuses of this V1PodStatus.

        Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status  # noqa: E501

        :param container_statuses: The container_statuses of this V1PodStatus.  # noqa: E501
        :type: list[V1ContainerStatus]
        NrA   )r6   r   s     r7   r   zV1PodStatus.container_statuses   s     $6 r9   c                     | j                   S )a  Gets the ephemeral_container_statuses of this V1PodStatus.  # noqa: E501

        Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status  # noqa: E501

        :return: The ephemeral_container_statuses of this V1PodStatus.  # noqa: E501
        :rtype: list[V1ContainerStatus]
        r'   r<   s    r7   r   z(V1PodStatus.ephemeral_container_statuses   s     111r9   c                     || _         y)a  Sets the ephemeral_container_statuses of this V1PodStatus.

        Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status  # noqa: E501

        :param ephemeral_container_statuses: The ephemeral_container_statuses of this V1PodStatus.  # noqa: E501
        :type: list[V1ContainerStatus]
        NrD   )r6   r   s     r7   r   z(V1PodStatus.ephemeral_container_statuses   s     .J*r9   c                     | j                   S )a  Gets the host_ip of this V1PodStatus.  # noqa: E501

        hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod  # noqa: E501

        :return: The host_ip of this V1PodStatus.  # noqa: E501
        :rtype: str
        r(   r<   s    r7   r	   zV1PodStatus.host_ip        }}r9   c                     || _         y)a  Sets the host_ip of this V1PodStatus.

        hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod  # noqa: E501

        :param host_ip: The host_ip of this V1PodStatus.  # noqa: E501
        :type: str
        NrG   )r6   r	   s     r7   r	   zV1PodStatus.host_ip         r9   c                     | j                   S )a  Gets the host_i_ps of this V1PodStatus.  # noqa: E501

        hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.  # noqa: E501

        :return: The host_i_ps of this V1PodStatus.  # noqa: E501
        :rtype: list[V1HostIP]
        r)   r<   s    r7   r   zV1PodStatus.host_i_ps        r9   c                     || _         y)a  Sets the host_i_ps of this V1PodStatus.

        hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.  # noqa: E501

        :param host_i_ps: The host_i_ps of this V1PodStatus.  # noqa: E501
        :type: list[V1HostIP]
        NrL   )r6   r   s     r7   r   zV1PodStatus.host_i_ps        $r9   c                     | j                   S )a^  Gets the init_container_statuses of this V1PodStatus.  # noqa: E501

        Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status  # noqa: E501

        :return: The init_container_statuses of this V1PodStatus.  # noqa: E501
        :rtype: list[V1ContainerStatus]
        r*   r<   s    r7   r   z#V1PodStatus.init_container_statuses        ,,,r9   c                     || _         y)af  Sets the init_container_statuses of this V1PodStatus.

        Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status  # noqa: E501

        :param init_container_statuses: The init_container_statuses of this V1PodStatus.  # noqa: E501
        :type: list[V1ContainerStatus]
        NrQ   )r6   r   s     r7   r   z#V1PodStatus.init_container_statuses        )@%r9   c                     | j                   S )zGets the message of this V1PodStatus.  # noqa: E501

        A human readable message indicating details about why the pod is in this condition.  # noqa: E501

        :return: The message of this V1PodStatus.  # noqa: E501
        :rtype: str
        r+   r<   s    r7   r   zV1PodStatus.message  rH   r9   c                     || _         y)zSets the message of this V1PodStatus.

        A human readable message indicating details about why the pod is in this condition.  # noqa: E501

        :param message: The message of this V1PodStatus.  # noqa: E501
        :type: str
        NrV   )r6   r   s     r7   r   zV1PodStatus.message  rJ   r9   c                     | j                   S )a  Gets the nominated_node_name of this V1PodStatus.  # noqa: E501

        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.  # noqa: E501

        :return: The nominated_node_name of this V1PodStatus.  # noqa: E501
        :rtype: str
        r,   r<   s    r7   r   zV1PodStatus.nominated_node_name#  s     (((r9   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.  # noqa: E501

        :param nominated_node_name: The nominated_node_name of this V1PodStatus.  # noqa: E501
        :type: str
        NrY   )r6   r   s     r7   r   zV1PodStatus.nominated_node_name.  s     %8!r9   c                     | j                   S )aS  Gets the phase of this V1PodStatus.  # noqa: E501

        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  # noqa: E501

        :return: The phase of this V1PodStatus.  # noqa: E501
        :rtype: str
        r-   r<   s    r7   r   zV1PodStatus.phase:  s     {{r9   c                     || _         y)aI  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  # noqa: E501

        :param phase: The phase of this V1PodStatus.  # noqa: E501
        :type: str
        Nr\   )r6   r   s     r7   r   zV1PodStatus.phaseE  s     r9   c                     | j                   S )a  Gets the pod_ip of this V1PodStatus.  # noqa: E501

        podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.  # noqa: E501

        :return: The pod_ip of this V1PodStatus.  # noqa: E501
        :rtype: str
        r.   r<   s    r7   r   zV1PodStatus.pod_ipQ       ||r9   c                     || _         y)a  Sets the pod_ip of this V1PodStatus.

        podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.  # noqa: E501

        :param pod_ip: The pod_ip of this V1PodStatus.  # noqa: E501
        :type: str
        Nr_   )r6   r   s     r7   r   zV1PodStatus.pod_ip\       r9   c                     | j                   S )a  Gets the pod_i_ps of this V1PodStatus.  # noqa: E501

        podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.  # noqa: E501

        :return: The pod_i_ps of this V1PodStatus.  # noqa: E501
        :rtype: list[V1PodIP]
        r/   r<   s    r7   r   zV1PodStatus.pod_i_psh  s     ~~r9   c                     || _         y)a  Sets the pod_i_ps of this V1PodStatus.

        podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.  # noqa: E501

        :param pod_i_ps: The pod_i_ps of this V1PodStatus.  # noqa: E501
        :type: list[V1PodIP]
        Nrd   )r6   r   s     r7   r   zV1PodStatus.pod_i_pss  s     "r9   c                     | j                   S )a  Gets the qos_class of this V1PodStatus.  # noqa: E501

        The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes  # noqa: E501

        :return: The qos_class of this V1PodStatus.  # noqa: E501
        :rtype: str
        r0   r<   s    r7   r   zV1PodStatus.qos_class  rM   r9   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://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes  # noqa: E501

        :param qos_class: The qos_class of this V1PodStatus.  # noqa: E501
        :type: str
        Nrg   )r6   r   s     r7   r   zV1PodStatus.qos_class  rO   r9   c                     | j                   S )a  Gets the reason of this V1PodStatus.  # noqa: E501

        A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'  # noqa: E501

        :return: The reason of this V1PodStatus.  # noqa: E501
        :rtype: str
        r1   r<   s    r7   r   zV1PodStatus.reason  r`   r9   c                     || _         y)zSets the reason of this V1PodStatus.

        A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'  # noqa: E501

        :param reason: The reason of this V1PodStatus.  # noqa: E501
        :type: str
        Nrj   )r6   r   s     r7   r   zV1PodStatus.reason  rb   r9   c                     | j                   S )a[  Gets the resize of this V1PodStatus.  # noqa: E501

        Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed"  # noqa: E501

        :return: The resize of this V1PodStatus.  # noqa: E501
        :rtype: str
        r2   r<   s    r7   r   zV1PodStatus.resize  r`   r9   c                     || _         y)aR  Sets the resize of this V1PodStatus.

        Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed"  # noqa: E501

        :param resize: The resize of this V1PodStatus.  # noqa: E501
        :type: str
        Nrm   )r6   r   s     r7   r   zV1PodStatus.resize  rb   r9   c                     | j                   S )zGets the resource_claim_statuses of this V1PodStatus.  # noqa: E501

        Status of resource claims.  # noqa: E501

        :return: The resource_claim_statuses of this V1PodStatus.  # noqa: E501
        :rtype: list[V1PodResourceClaimStatus]
        r3   r<   s    r7   r   z#V1PodStatus.resource_claim_statuses  rR   r9   c                     || _         y)a  Sets the resource_claim_statuses of this V1PodStatus.

        Status of resource claims.  # noqa: E501

        :param resource_claim_statuses: The resource_claim_statuses of this V1PodStatus.  # noqa: E501
        :type: list[V1PodResourceClaimStatus]
        Nrp   )r6   r   s     r7   r   z#V1PodStatus.resource_claim_statuses  rT   r9   c                     | j                   S )aE  Gets the start_time of this V1PodStatus.  # noqa: E501

        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.  # noqa: E501

        :return: The start_time of this V1PodStatus.  # noqa: E501
        :rtype: datetime
        r4   r<   s    r7   r   zV1PodStatus.start_time  r=   r9   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.  # noqa: E501

        :param start_time: The start_time of this V1PodStatus.  # noqa: E501
        :type: datetime
        Nrs   )r6   r   s     r7   r   zV1PodStatus.start_time  r?   r9   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrrw   )xs    r7   <lambda>z%V1PodStatus.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr9   rw   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rw   r   rx   )items    r7   r{   z%V1PodStatus.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r9   )six	iteritemsopenapi_typesgetattr
isinstancelistmapry   rw   dictitems)r6   resultattr_values        r7   rw   zV1PodStatus.to_dict  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r9   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrw   r<   s    r7   to_strzV1PodStatus.to_str
  s    ~~dlln--r9   c                 "    | j                         S )zFor `print` and `pprint`)r   r<   s    r7   __repr__zV1PodStatus.__repr__  s    {{}r9   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr   r   rw   r6   others     r7   __eq__zV1PodStatus.__eq__  s&    %-||~00r9   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr   r   s     r7   __ne__zV1PodStatus.__ne__  s&    %-||~00r9   )NNNNNNNNNNNNNNNNN)__name__
__module____qualname____doc__r   attribute_mapr8   propertyr   setterr   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   rw   r   r   r   r    r9   r7   r   r      s   ,7 	'(A 	5	
 	% 	"#< 	5 	u 	 	% 	O 	U 	% 	% 	"#C  	j!M&l1 	'(D 	8	
 	Y 	"#: 	9 	2 	 	' 	H 	Z 	( 	( 	"#:  	k!M&7)r     	& 	& ( ( 	6 	6 2 2 "((	J )	J   ^^	  	    	$ 	$ - - ##	@ $	@   ^^	  	  ) ) 	8  	8   \\	 	   ]]	 	   __	" 	"   	$ 	$   ]]	 	   ]]	 	 - - ##	@ $	@     	& 	&0.11r9   r   )r   r   rer   kubernetes.client.configurationr   objectr   r   r9   r7   <module>r      s&     	 
 9I1& I1r9   