
    [j-                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)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)d#Zd$ Zd% Zd& Zd' ZdS )*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
                 D   |	t          j                    }	|	| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        || _        dS )z-V1DeploymentSpec - a model defined in OpenAPIN)r   get_default_copy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
             h/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_deployment_spec.py__init__zV1DeploymentSpec.__init__<   s    #+'4'E'G'G$(@%"&*.''+$!(%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_seconds[   s     &&r'   c                     || _         dS )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 min_ready_seconds: int
        Nr)   )r$   r   s     r%   r   z"V1DeploymentSpec.min_ready_secondsf   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.pausedr   s     |r'   c                     || _         dS )zSets the paused of this V1DeploymentSpec.

        Indicates that the deployment is paused.  # noqa: E501

        :param paused: The paused of this V1DeploymentSpec.  # noqa: E501
        :type paused: bool
        Nr-   )r$   r   s     r%   r   zV1DeploymentSpec.paused}   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                     || _         dS )ai  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 progress_deadline_seconds: int
        Nr0   )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                     || _         dS )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 replicas: int
        Nr3   )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                     || _         dS )a  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 revision_history_limit: int
        Nr6   )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                 N    | j         j        r|t          d          || _        dS )zSets the selector of this V1DeploymentSpec.


        :param selector: The selector of this V1DeploymentSpec.  # noqa: E501
        :type selector: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)r   client_side_validation
ValueErrorr    )r$   r   s     r%   r   zV1DeploymentSpec.selector   2     (? 	QHDTOP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   r9   r'   c                     || _         dS )zSets the strategy of this V1DeploymentSpec.


        :param strategy: The strategy of this V1DeploymentSpec.  # noqa: E501
        :type strategy: 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   r9   r'   c                 N    | j         j        r|t          d          || _        dS )zSets the template of this V1DeploymentSpec.


        :param template: The template of this V1DeploymentSpec.  # noqa: E501
        :type template: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r   r;   r<   r"   )r$   r   s     r%   r   zV1DeploymentSpec.template  r=   r'   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   rE   argslen)xrH   	serializes     r%   convertz)V1DeploymentSpec.to_dict.<locals>.convert  s[    q)$$ %ai005t99>>99;;&99Y///r'   c                      |           S )N )rJ   rL   s    r%   <lambda>z*V1DeploymentSpec.to_dict.<locals>.<lambda>$  s    ggajj r'   c                 6    | d          | d                   fS )Nr   rF   rN   )itemrL   s    r%   rO   z*V1DeploymentSpec.to_dict.<locals>.<lambda>)  s    $q'7747+;+;!< r'   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r$   rK   resultattr_valuerL   s    `    @r%   rE   zV1DeploymentSpec.to_dict  s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr'   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrE   r*   s    r%   to_strzV1DeploymentSpec.to_str1  s    ~dllnn---r'   c                 *    |                                  S )zFor `print` and `pprint`)rd   r*   s    r%   __repr__zV1DeploymentSpec.__repr__5  s    {{}}r'   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrX   r   rE   r$   others     r%   __eq__zV1DeploymentSpec.__eq__9  s5    %!122 	5||~~00r'   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrh   ri   s     r%   __ne__zV1DeploymentSpec.__ne__@  s5    %!122 	4||~~00r'   )	NNNNNNNNN)F)__name__
__module____qualname____doc__rT   rV   r&   propertyr   setterr   r   r   r   r   r   r   rE   rd   rf   rk   rm   rN   r'   r%   r   r      s         #%*"'%*'	 	M /%>"8	 	M! ! ! !> ' ' X' 	4 	4 	4   X ]	 	 ]	 / / X/ %	D 	D &%	D   X _	" 	" _	" , , X, "	> 	> #"	>   X _
" 
" _
"   X _" " _"   X _
" 
" _
"   @. . .  1 1 11 1 1 1 1r'   r   )rq   inspectr   ImportErrorr   rb   rerR   kubernetes.client.configurationr   objectr   rN   r'   r%   <module>ry      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9m1 m1 m1 m1 m1v m1 m1 m1 m1 m1s    