o
    g,                     @   s<   d Z ddlZddlZddlZddlmZ G d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.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                	   @   s@  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d5ddZedd Zej	dd Zedd Z
e
j	dd Z
edd Zej	dd Zedd Zej	dd Zedd  Zej	d!d  Zed"d# Zej	d$d# Zed%d& Zej	d'd& Zed(d) Zej	d*d) Zd+d, Zd-d. Zd/d0 Zd1d2 Zd3d4 ZdS )6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
           
      C   s   |	du rt  }	|	| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
|dur,|| _|dur3|| _|dur:|| _|durA|| _|durH|| _|| _|durR|| _|| _dS )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    r   b/var/www/visachat/venv/lib/python3.10/site-packages/kubernetes/client/models/v1_deployment_spec.py__init__9   s4   
zV1DeploymentSpec.__init__c                 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   r   r   r    r	   X      	z"V1DeploymentSpec.min_ready_secondsc                 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: int
        Nr#   )r   r	   r   r   r    r	   c      

c                 C   r"   )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$   r   r   r    r
   o   r%   zV1DeploymentSpec.pausedc                 C   r&   )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
   r   r   r    r
   z   r'   c                 C   r"   )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$   r   r   r    r      r%   z*V1DeploymentSpec.progress_deadline_secondsc                 C   r&   )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   r   r   r    r      r'   c                 C   r"   )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$   r   r   r    r      r%   zV1DeploymentSpec.replicasc                 C   r&   )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
        Nr*   )r   r   r   r   r    r      r'   c                 C   r"   )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$   r   r   r    r      r%   z'V1DeploymentSpec.revision_history_limitc                 C   r&   )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
        Nr+   )r   r   r   r   r    r      r'   c                 C   r"   )zGets the selector of this V1DeploymentSpec.  # noqa: E501


        :return: The selector of this V1DeploymentSpec.  # noqa: E501
        :rtype: V1LabelSelector
        )r   r$   r   r   r    r         zV1DeploymentSpec.selectorc                 C   "   | j jr|du rtd|| _dS )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   r   r   r    r         
c                 C   r"   )zGets the strategy of this V1DeploymentSpec.  # noqa: E501


        :return: The strategy of this V1DeploymentSpec.  # noqa: E501
        :rtype: V1DeploymentStrategy
        r   r$   r   r   r    r      r,   zV1DeploymentSpec.strategyc                 C   r&   )zSets the strategy of this V1DeploymentSpec.


        :param strategy: The strategy of this V1DeploymentSpec.  # noqa: E501
        :type: V1DeploymentStrategy
        Nr1   )r   r   r   r   r    r      s   
	c                 C   r"   )zGets the template of this V1DeploymentSpec.  # noqa: E501


        :return: The template of this V1DeploymentSpec.  # noqa: E501
        :rtype: V1PodTemplateSpec
        )r   r$   r   r   r    r      r,   zV1DeploymentSpec.templatec                 C   r-   )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   r.   r/   r   )r   r   r   r   r    r     r0   c                 C   s   i }t | jD ]=\}}t| |}t|tr"ttdd |||< qt|dr.| ||< qt|t	rAt	tdd |
 ||< q|||< q|S )z&Returns the model properties as a dictc                 S   s   t | dr	|  S | S )Nto_dicthasattrr2   )xr   r   r    <lambda>  s    z*V1DeploymentSpec.to_dict.<locals>.<lambda>r2   c                 S   s&   t | d dr| d | d  fS | S )N   r2   r   r3   )itemr   r   r    r6     s   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr4   r2   dictitems)r   resultattr_valuer   r   r    r2     s"   




zV1DeploymentSpec.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatr2   r$   r   r   r    to_str&  s   zV1DeploymentSpec.to_strc                 C   s   |   S )zFor `print` and `pprint`)rH   r$   r   r   r    __repr__*  s   zV1DeploymentSpec.__repr__c                 C   s   t |tsdS |  | kS )z&Returns true if both objects are equalFr=   r   r2   r   otherr   r   r    __eq__.     
zV1DeploymentSpec.__eq__c                 C   s   t |tsdS |  | kS )z*Returns true if both objects are not equalTrJ   rK   r   r   r    __ne__5  rN   zV1DeploymentSpec.__ne__)	NNNNNNNNN)__name__
__module____qualname____doc__r;   attribute_mapr!   propertyr	   setterr
   r   r   r   r   r   r   r2   rH   rI   rM   rO   r   r   r   r    r      sv    
















	

	


	
r   )rS   rF   rer9   kubernetes.client.configurationr   objectr   r   r   r   r    <module>   s   
