
    <g?I                     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                   T   e Zd ZdZ	 ddd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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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d8 Zd9 Zd: Zd; Zd< Zy)>V1ContainerStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    zdict(str, str)zlist[V1ResourceStatus]strV1ContainerStateboolV1ResourceRequirementsintV1ContainerUserzlist[V1VolumeMountStatus])allocated_resourcesallocated_resources_statuscontainer_idimageimage_id
last_statenameready	resourcesrestart_countstartedstateuservolume_mountsallocatedResourcesallocatedResourcesStatuscontainerIDr   imageID	lastStater   r   r   restartCountr   r   r   volumeMountsNc                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        || _        || _        ||| _        || _        || _        |	|	| _        |
| _        ||| _        ||| _        ||| _        ||| _        yy)z.V1ContainerStatus - a model defined in OpenAPIN)r   local_vars_configuration_allocated_resources_allocated_resources_status_container_id_image	_image_id_last_state_name_ready
_resources_restart_count_started_state_user_volume_mountsdiscriminatorr   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"   s                   a/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_container_status.py__init__zV1ContainerStatus.__init__E   s*   #+'4$(@%$(!+/(!
"
"!*':D$%1.HD+# ,D
 !(DO	
 &DN*"DLDJDI$!.D %    c                     | j                   S )a  Gets the allocated_resources of this V1ContainerStatus.  # noqa: E501

        AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.  # noqa: E501

        :return: The allocated_resources of this V1ContainerStatus.  # noqa: E501
        :rtype: dict(str, str)
        r#   r2   s    r3   r   z%V1ContainerStatus.allocated_resourcess   s     (((r5   c                     || _         y)a  Sets the allocated_resources of this V1ContainerStatus.

        AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.  # noqa: E501

        :param allocated_resources: The allocated_resources of this V1ContainerStatus.  # noqa: E501
        :type: dict(str, str)
        Nr7   )r2   r   s     r3   r   z%V1ContainerStatus.allocated_resources~   s     %8!r5   c                     | j                   S )aI  Gets the allocated_resources_status of this V1ContainerStatus.  # noqa: E501

        AllocatedResourcesStatus represents the status of various resources allocated for this Pod.  # noqa: E501

        :return: The allocated_resources_status of this V1ContainerStatus.  # noqa: E501
        :rtype: list[V1ResourceStatus]
        r$   r8   s    r3   r   z,V1ContainerStatus.allocated_resources_status   s     ///r5   c                     || _         y)aT  Sets the allocated_resources_status of this V1ContainerStatus.

        AllocatedResourcesStatus represents the status of various resources allocated for this Pod.  # noqa: E501

        :param allocated_resources_status: The allocated_resources_status of this V1ContainerStatus.  # noqa: E501
        :type: list[V1ResourceStatus]
        Nr;   )r2   r   s     r3   r   z,V1ContainerStatus.allocated_resources_status   s     ,F(r5   c                     | j                   S )a~  Gets the container_id of this V1ContainerStatus.  # noqa: E501

        ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd").  # noqa: E501

        :return: The container_id of this V1ContainerStatus.  # noqa: E501
        :rtype: str
        r%   r8   s    r3   r   zV1ContainerStatus.container_id   s     !!!r5   c                     || _         y)a{  Sets the container_id of this V1ContainerStatus.

        ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd").  # noqa: E501

        :param container_id: The container_id of this V1ContainerStatus.  # noqa: E501
        :type: str
        Nr>   )r2   r   s     r3   r   zV1ContainerStatus.container_id   s     *r5   c                     | j                   S )a  Gets the image of this V1ContainerStatus.  # noqa: E501

        Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.  # noqa: E501

        :return: The image of this V1ContainerStatus.  # noqa: E501
        :rtype: str
        )r&   r8   s    r3   r   zV1ContainerStatus.image        {{r5   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the image of this V1ContainerStatus.

        Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.  # noqa: E501

        :param image: The image of this V1ContainerStatus.  # noqa: E501
        :type: str
        Nz-Invalid value for `image`, must not be `None`)r"   client_side_validation
ValueErrorr&   )r2   r   s     r3   r   zV1ContainerStatus.image   *     ((??EMLMMr5   c                     | j                   S )a_  Gets the image_id of this V1ContainerStatus.  # noqa: E501

        ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.  # noqa: E501

        :return: The image_id of this V1ContainerStatus.  # noqa: E501
        :rtype: str
        )r'   r8   s    r3   r   zV1ContainerStatus.image_id   s     ~~r5   c                 X    | j                   j                  r|t        d      || _        y)aX  Sets the image_id of this V1ContainerStatus.

        ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.  # noqa: E501

        :param image_id: The image_id of this V1ContainerStatus.  # noqa: E501
        :type: str
        Nz0Invalid value for `image_id`, must not be `None`)r"   rC   rD   r'   )r2   r   s     r3   r   zV1ContainerStatus.image_id   s+     ((??HDTOPP!r5   c                     | j                   S )zGets the last_state of this V1ContainerStatus.  # noqa: E501


        :return: The last_state of this V1ContainerStatus.  # noqa: E501
        :rtype: V1ContainerState
        r(   r8   s    r3   r   zV1ContainerStatus.last_state   s     r5   c                     || _         y)zSets the last_state of this V1ContainerStatus.


        :param last_state: The last_state of this V1ContainerStatus.  # noqa: E501
        :type: V1ContainerState
        NrI   )r2   r   s     r3   r   zV1ContainerStatus.last_state   s     &r5   c                     | j                   S )aP  Gets the name of this V1ContainerStatus.  # noqa: E501

        Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.  # noqa: E501

        :return: The name of this V1ContainerStatus.  # noqa: E501
        :rtype: str
        )r)   r8   s    r3   r   zV1ContainerStatus.name   s     zzr5   c                 X    | j                   j                  r|t        d      || _        y)aE  Sets the name of this V1ContainerStatus.

        Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.  # noqa: E501

        :param name: The name of this V1ContainerStatus.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r"   rC   rD   r)   )r2   r   s     r3   r   zV1ContainerStatus.name
  s*     ((??DLKLL
r5   c                     | j                   S )a  Gets the ready of this V1ContainerStatus.  # noqa: E501

        Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).  The value is typically used to determine whether a container is ready to accept traffic.  # noqa: E501

        :return: The ready of this V1ContainerStatus.  # noqa: E501
        :rtype: bool
        )r*   r8   s    r3   r   zV1ContainerStatus.ready  rA   r5   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the ready of this V1ContainerStatus.

        Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).  The value is typically used to determine whether a container is ready to accept traffic.  # noqa: E501

        :param ready: The ready of this V1ContainerStatus.  # noqa: E501
        :type: bool
        Nz-Invalid value for `ready`, must not be `None`)r"   rC   rD   r*   )r2   r   s     r3   r   zV1ContainerStatus.ready#  rE   r5   c                     | j                   S )zGets the resources of this V1ContainerStatus.  # noqa: E501


        :return: The resources of this V1ContainerStatus.  # noqa: E501
        :rtype: V1ResourceRequirements
        r+   r8   s    r3   r   zV1ContainerStatus.resources1  s     r5   c                     || _         y)zSets the resources of this V1ContainerStatus.


        :param resources: The resources of this V1ContainerStatus.  # noqa: E501
        :type: V1ResourceRequirements
        NrP   )r2   r   s     r3   r   zV1ContainerStatus.resources;  s     $r5   c                     | j                   S )a  Gets the restart_count of this V1ContainerStatus.  # noqa: E501

        RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.  # noqa: E501

        :return: The restart_count of this V1ContainerStatus.  # noqa: E501
        :rtype: int
        )r,   r8   s    r3   r   zV1ContainerStatus.restart_countF       """r5   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the restart_count of this V1ContainerStatus.

        RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.  # noqa: E501

        :param restart_count: The restart_count of this V1ContainerStatus.  # noqa: E501
        :type: int
        Nz5Invalid value for `restart_count`, must not be `None`)r"   rC   rD   r,   )r2   r   s     r3   r   zV1ContainerStatus.restart_countQ  s,     ((??MDYTUU+r5   c                     | j                   S )a  Gets the started of this V1ContainerStatus.  # noqa: E501

        Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.  # noqa: E501

        :return: The started of this V1ContainerStatus.  # noqa: E501
        :rtype: bool
        r-   r8   s    r3   r   zV1ContainerStatus.started_  s     }}r5   c                     || _         y)a  Sets the started of this V1ContainerStatus.

        Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.  # noqa: E501

        :param started: The started of this V1ContainerStatus.  # noqa: E501
        :type: bool
        NrV   )r2   r   s     r3   r   zV1ContainerStatus.startedj  s      r5   c                     | j                   S )zGets the state of this V1ContainerStatus.  # noqa: E501


        :return: The state of this V1ContainerStatus.  # noqa: E501
        :rtype: V1ContainerState
        r.   r8   s    r3   r   zV1ContainerStatus.statev  s     {{r5   c                     || _         y)zSets the state of this V1ContainerStatus.


        :param state: The state of this V1ContainerStatus.  # noqa: E501
        :type: V1ContainerState
        NrY   )r2   r   s     r3   r   zV1ContainerStatus.state  s     r5   c                     | j                   S )zGets the user of this V1ContainerStatus.  # noqa: E501


        :return: The user of this V1ContainerStatus.  # noqa: E501
        :rtype: V1ContainerUser
        r/   r8   s    r3   r   zV1ContainerStatus.user  s     zzr5   c                     || _         y)zSets the user of this V1ContainerStatus.


        :param user: The user of this V1ContainerStatus.  # noqa: E501
        :type: V1ContainerUser
        Nr\   )r2   r   s     r3   r   zV1ContainerStatus.user  s     
r5   c                     | j                   S )zGets the volume_mounts of this V1ContainerStatus.  # noqa: E501

        Status of volume mounts.  # noqa: E501

        :return: The volume_mounts of this V1ContainerStatus.  # noqa: E501
        :rtype: list[V1VolumeMountStatus]
        r0   r8   s    r3   r   zV1ContainerStatus.volume_mounts  rS   r5   c                     || _         y)zSets the volume_mounts of this V1ContainerStatus.

        Status of volume mounts.  # noqa: E501

        :param volume_mounts: The volume_mounts of this V1ContainerStatus.  # noqa: E501
        :type: list[V1VolumeMountStatus]
        Nr_   )r2   r   s     r3   r   zV1ContainerStatus.volume_mounts  s     ,r5   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hasattrrc   )xs    r3   <lambda>z+V1ContainerStatus.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr5   rc   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rc   r   rd   )items    r3   rg   z+V1ContainerStatus.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r5   )six	iteritemsopenapi_typesgetattr
isinstancelistmapre   rc   dictitems)r2   resultattr_values        r3   rc   zV1ContainerStatus.to_dict  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r5   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrc   r8   s    r3   to_strzV1ContainerStatus.to_str  s    ~~dlln--r5   c                 "    | j                         S )zFor `print` and `pprint`)r{   r8   s    r3   __repr__zV1ContainerStatus.__repr__  s    {{}r5   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFro   r   rc   r2   others     r3   __eq__zV1ContainerStatus.__eq__  s'    %!23||~00r5   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr   r   s     r3   __ne__zV1ContainerStatus.__ne__  s'    %!23||~00r5   )NNNNNNNNNNNNNNN)__name__
__module____qualname____doc__rm   attribute_mapr4   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   rc   r{   r}   r   r    r5   r3   r   r      s	     0&>(-#!4M$  4&@%! ''M",/\ ) ) 	8  	8 0 0  &&	F '	F " " 	* 	*   \\    __" "     & &   
[[    \\    $ $ # # , ,   ^^	  	    \\    
[[  # # 	, 	,0.11r5   r   )r   ry   rerk   kubernetes.client.configurationr   objectr   r   r5   r3   <module>r      s&     	 
 9N1 N1r5   