
    <g,                     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	 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)(V1DeploymentSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    intboolV1LabelSelectorV1DeploymentStrategyV1PodTemplateSpec)min_ready_secondspausedprogress_deadline_secondsreplicasrevision_history_limitselectorstrategytemplateminReadySecondsr   progressDeadlineSecondsr   revisionHistoryLimitr   r   r   Nc
                 0   |	
t               }	|	| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        ||| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        || _        y)z-V1DeploymentSpec - a model defined in OpenAPIN)r   local_vars_configuration_min_ready_seconds_paused_progress_deadline_seconds	_replicas_revision_history_limit	_selector	_strategy	_templatediscriminatorr   r   r   r   r   r   r   r   )
selfr   r   r   r   r   r   r   r   r   s
             `/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_deployment_spec.py__init__zV1DeploymentSpec.__init__9   s    #+'4$(@%"&*.''+$!(%6D" DK$0-FD*$DM!-*@D' $DM     c                     | j                   S )a  Gets the min_ready_seconds of this V1DeploymentSpec.  # noqa: E501

        Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)  # noqa: E501

        :return: The min_ready_seconds of this V1DeploymentSpec.  # noqa: E501
        :rtype: int
        r   r!   s    r"   r   z"V1DeploymentSpec.min_ready_secondsX   s     &&&r$   c                     || _         y)a  Sets the min_ready_seconds of this V1DeploymentSpec.

        Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)  # noqa: E501

        :param min_ready_seconds: The min_ready_seconds of this V1DeploymentSpec.  # noqa: E501
        :type: int
        Nr&   )r!   r   s     r"   r   z"V1DeploymentSpec.min_ready_secondsc   s     #4r$   c                     | j                   S )zGets the paused of this V1DeploymentSpec.  # noqa: E501

        Indicates that the deployment is paused.  # noqa: E501

        :return: The paused of this V1DeploymentSpec.  # noqa: E501
        :rtype: bool
        r   r'   s    r"   r   zV1DeploymentSpec.pausedo   s     ||r$   c                     || _         y)zSets the paused of this V1DeploymentSpec.

        Indicates that the deployment is paused.  # noqa: E501

        :param paused: The paused of this V1DeploymentSpec.  # noqa: E501
        :type: bool
        Nr*   )r!   r   s     r"   r   zV1DeploymentSpec.pausedz   s     r$   c                     | j                   S )aE  Gets the progress_deadline_seconds of this V1DeploymentSpec.  # noqa: E501

        The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.  # noqa: E501

        :return: The progress_deadline_seconds of this V1DeploymentSpec.  # noqa: E501
        :rtype: int
        r   r'   s    r"   r   z*V1DeploymentSpec.progress_deadline_seconds   s     ...r$   c                     || _         y)aO  Sets the progress_deadline_seconds of this V1DeploymentSpec.

        The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.  # noqa: E501

        :param progress_deadline_seconds: The progress_deadline_seconds of this V1DeploymentSpec.  # noqa: E501
        :type: int
        Nr-   )r!   r   s     r"   r   z*V1DeploymentSpec.progress_deadline_seconds   s     +D'r$   c                     | j                   S )a%  Gets the replicas of this V1DeploymentSpec.  # noqa: E501

        Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.  # noqa: E501

        :return: The replicas of this V1DeploymentSpec.  # noqa: E501
        :rtype: int
        r   r'   s    r"   r   zV1DeploymentSpec.replicas   s     ~~r$   c                     || _         y)a  Sets the replicas of this V1DeploymentSpec.

        Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.  # noqa: E501

        :param replicas: The replicas of this V1DeploymentSpec.  # noqa: E501
        :type: int
        Nr0   )r!   r   s     r"   r   zV1DeploymentSpec.replicas   s     "r$   c                     | j                   S )ae  Gets the revision_history_limit of this V1DeploymentSpec.  # noqa: E501

        The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.  # noqa: E501

        :return: The revision_history_limit of this V1DeploymentSpec.  # noqa: E501
        :rtype: int
        r   r'   s    r"   r   z'V1DeploymentSpec.revision_history_limit   s     +++r$   c                     || _         y)al  Sets the revision_history_limit of this V1DeploymentSpec.

        The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.  # noqa: E501

        :param revision_history_limit: The revision_history_limit of this V1DeploymentSpec.  # noqa: E501
        :type: int
        Nr3   )r!   r   s     r"   r   z'V1DeploymentSpec.revision_history_limit   s     (>$r$   c                     | j                   S )zGets the selector of this V1DeploymentSpec.  # noqa: E501


        :return: The selector of this V1DeploymentSpec.  # noqa: E501
        :rtype: V1LabelSelector
        )r   r'   s    r"   r   zV1DeploymentSpec.selector        ~~r$   c                 X    | j                   j                  r|t        d      || _        y)zSets the selector of this V1DeploymentSpec.


        :param selector: The selector of this V1DeploymentSpec.  # noqa: E501
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)r   client_side_validation
ValueErrorr   )r!   r   s     r"   r   zV1DeploymentSpec.selector   +     ((??HDTOPP!r$   c                     | j                   S )zGets the strategy of this V1DeploymentSpec.  # noqa: E501


        :return: The strategy of this V1DeploymentSpec.  # noqa: E501
        :rtype: V1DeploymentStrategy
        r   r'   s    r"   r   zV1DeploymentSpec.strategy   r6   r$   c                     || _         y)zSets the strategy of this V1DeploymentSpec.


        :param strategy: The strategy of this V1DeploymentSpec.  # noqa: E501
        :type: V1DeploymentStrategy
        Nr<   )r!   r   s     r"   r   zV1DeploymentSpec.strategy   s     "r$   c                     | j                   S )zGets the template of this V1DeploymentSpec.  # noqa: E501


        :return: The template of this V1DeploymentSpec.  # noqa: E501
        :rtype: V1PodTemplateSpec
        )r   r'   s    r"   r   zV1DeploymentSpec.template   r6   r$   c                 X    | j                   j                  r|t        d      || _        y)zSets the template of this V1DeploymentSpec.


        :param template: The template of this V1DeploymentSpec.  # noqa: E501
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r   r8   r9   r   )r!   r   s     r"   r   zV1DeploymentSpec.template  r:   r$   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hasattrrB   )xs    r"   <lambda>z*V1DeploymentSpec.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr$   rB   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rB   r   rC   )items    r"   rF   z*V1DeploymentSpec.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r$   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprD   rB   dictitems)r!   resultattr_values        r"   rB   zV1DeploymentSpec.to_dict  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r$   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrB   r'   s    r"   to_strzV1DeploymentSpec.to_str&  s    ~~dlln--r$   c                 "    | j                         S )zFor `print` and `pprint`)rZ   r'   s    r"   __repr__zV1DeploymentSpec.__repr__*  s    {{}r$   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrN   r   rB   r!   others     r"   __eq__zV1DeploymentSpec.__eq__.  s'    %!12||~00r$   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr^   r_   s     r"   __ne__zV1DeploymentSpec.__ne__5  s'    %!12||~00r$   )	NNNNNNNNN)__name__
__module____qualname____doc__rL   attribute_mapr#   propertyr   setterr   r   r   r   r   r   r   rB   rZ   r\   ra   rc    r$   r"   r   r      s    #%*"'%*'	M /%>"8	M!> ' ' 	4 	4   ]]	 	 / / %%	D &	D   __	" 	" , , ""	> #	>   __
" 
"   __" "   __
" 
"0.11r$   r   )rg   rX   rerJ   kubernetes.client.configurationr   objectr   rk   r$   r"   <module>ro      s&     	 
 9e1v e1r$   