
    +                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc            	          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)(V1beta2DeploymentSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intboolV1LabelSelectorV1beta2DeploymentStrategyV1PodTemplateSpec)min_ready_secondspausedprogress_deadline_secondsreplicasrevision_history_limitselectorstrategytemplateminReadySecondsr   progressDeadlineSecondsr   revisionHistoryLimitr   r   r   Nc	                 
   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        || _        ||| _        || _        y)zD
        V1beta2DeploymentSpec - a model defined in Swagger
        N)_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   s	            Clib/third_party/kubernetes/client/models/v1beta2_deployment_spec.py__init__zV1beta2DeploymentSpec.__init__4   s     #DDL&*D#DN#'D DNDNDND$0ddk ,'@d$dm)$:d!DMdmDM    c                     | j                   S )a  
        Gets the min_ready_seconds of this V1beta2DeploymentSpec.
        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)

        :return: The min_ready_seconds of this V1beta2DeploymentSpec.
        :rtype: int
        r   r!   s    r"   r   z'V1beta2DeploymentSpec.min_ready_secondsZ   s     """r$   c                     || _         y)a  
        Sets the min_ready_seconds of this V1beta2DeploymentSpec.
        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)

        :param min_ready_seconds: The min_ready_seconds of this
        V1beta2DeploymentSpec.
        :type: int
        Nr&   )r!   r   s     r"   r   z'V1beta2DeploymentSpec.min_ready_secondsh   s     0Dr$   c                     | j                   S )z
        Gets the paused of this V1beta2DeploymentSpec.
        Indicates that the deployment is paused.

        :return: The paused of this V1beta2DeploymentSpec.
        :rtype: bool
        r   r'   s    r"   r   zV1beta2DeploymentSpec.pausedx   s     <<r$   c                     || _         y)z
        Sets the paused of this V1beta2DeploymentSpec.
        Indicates that the deployment is paused.

        :param paused: The paused of this V1beta2DeploymentSpec.
        :type: bool
        Nr*   )r!   r   s     r"   r   zV1beta2DeploymentSpec.paused   s     DLr$   c                     | j                   S )aU  
        Gets the progress_deadline_seconds of this V1beta2DeploymentSpec.
        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.

        :return: The progress_deadline_seconds of this V1beta2DeploymentSpec.
        :rtype: int
        r   r'   s    r"   r   z/V1beta2DeploymentSpec.progress_deadline_seconds   s     ***r$   c                     || _         y)au  
        Sets the progress_deadline_seconds of this V1beta2DeploymentSpec.
        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.

        :param progress_deadline_seconds: The progress_deadline_seconds of this
        V1beta2DeploymentSpec.
        :type: int
        Nr-   )r!   r   s     r"   r   z/V1beta2DeploymentSpec.progress_deadline_seconds   s      '@D#r$   c                     | j                   S )a  
        Gets the replicas of this V1beta2DeploymentSpec.
        Number of desired pods. This is a pointer to distinguish between
        explicit zero and not specified. Defaults to 1.

        :return: The replicas of this V1beta2DeploymentSpec.
        :rtype: int
        r   r'   s    r"   r   zV1beta2DeploymentSpec.replicas   s     >>r$   c                     || _         y)a  
        Sets the replicas of this V1beta2DeploymentSpec.
        Number of desired pods. This is a pointer to distinguish between
        explicit zero and not specified. Defaults to 1.

        :param replicas: The replicas of this V1beta2DeploymentSpec.
        :type: int
        Nr0   )r!   r   s     r"   r   zV1beta2DeploymentSpec.replicas   s     DNr$   c                     | j                   S )a]  
        Gets the revision_history_limit of this V1beta2DeploymentSpec.
        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.

        :return: The revision_history_limit of this V1beta2DeploymentSpec.
        :rtype: int
        r   r'   s    r"   r   z,V1beta2DeploymentSpec.revision_history_limit   s     '''r$   c                     || _         y)az  
        Sets the revision_history_limit of this V1beta2DeploymentSpec.
        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.

        :param revision_history_limit: The revision_history_limit of this
        V1beta2DeploymentSpec.
        :type: int
        Nr3   )r!   r   s     r"   r   z,V1beta2DeploymentSpec.revision_history_limit   s     $:D r$   c                     | j                   S )a]  
        Gets the selector of this V1beta2DeploymentSpec.
        Label selector for pods. Existing ReplicaSets whose pods are selected by
        this will be the ones affected by this deployment. It must match the pod
        template's labels.

        :return: The selector of this V1beta2DeploymentSpec.
        :rtype: V1LabelSelector
        )r   r'   s    r"   r   zV1beta2DeploymentSpec.selector   s     >>r$   c                 ,    |t        d      || _        y)ad  
        Sets the selector of this V1beta2DeploymentSpec.
        Label selector for pods. Existing ReplicaSets whose pods are selected by
        this will be the ones affected by this deployment. It must match the pod
        template's labels.

        :param selector: The selector of this V1beta2DeploymentSpec.
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)
ValueErrorr   )r!   r   s     r"   r   zV1beta2DeploymentSpec.selector   s     IJJDNr$   c                     | j                   S )z
        Gets the strategy of this V1beta2DeploymentSpec.
        The deployment strategy to use to replace existing pods with new ones.

        :return: The strategy of this V1beta2DeploymentSpec.
        :rtype: V1beta2DeploymentStrategy
        r   r'   s    r"   r   zV1beta2DeploymentSpec.strategy       >>r$   c                     || _         y)a   
        Sets the strategy of this V1beta2DeploymentSpec.
        The deployment strategy to use to replace existing pods with new ones.

        :param strategy: The strategy of this V1beta2DeploymentSpec.
        :type: V1beta2DeploymentStrategy
        Nr9   )r!   r   s     r"   r   zV1beta2DeploymentSpec.strategy  s     DNr$   c                     | j                   S )z
        Gets the template of this V1beta2DeploymentSpec.
        Template describes the pods that will be created.

        :return: The template of this V1beta2DeploymentSpec.
        :rtype: V1PodTemplateSpec
        )r   r'   s    r"   r   zV1beta2DeploymentSpec.template  r:   r$   c                 ,    |t        d      || _        y)z
        Sets the template of this V1beta2DeploymentSpec.
        Template describes the pods that will be created.

        :param template: The template of this V1beta2DeploymentSpec.
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r7   r   )r!   r   s     r"   r   zV1beta2DeploymentSpec.template%  s     IJJDNr$   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr@   )xs    r"   <lambda>z/V1beta2DeploymentSpec.to_dict.<locals>.<lambda>=  s    I)>!))+EAEr$   r@   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r@   r   rA   )items    r"   rD   z/V1beta2DeploymentSpec.to_dict.<locals>.<lambda>C  s6    47I. #1gtAw'89 9489r$   )
r   swagger_typesgetattr
isinstancelistmaprB   r@   dictitems)r!   resultattr_values        r"   r@   zV1beta2DeploymentSpec.to_dict3  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr$   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r@   r'   s    r"   to_strzV1beta2DeploymentSpec.to_strJ  s     4<<>""r$   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rT   r'   s    r"   __repr__zV1beta2DeploymentSpec.__repr__P  s     ;;=r$   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rJ   r   __dict__r!   others     r"   __eq__zV1beta2DeploymentSpec.__eq__V  s%     e23==ENN**r$   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rY   s     r"   __ne__zV1beta2DeploymentSpec.__ne___  s     u}r$   )NNNNNNNN)__name__
__module____qualname____doc__rH   attribute_mapr#   propertyr   setterr   r   r   r   r   r   r   r@   rT   rV   r[   r^   r]   r$   r"   r   r      s    !#( %#-%	- -#< 6	- "&)-&*$L # # 0 0   
==	 	 + + ##@ $@" 	 	 ??
 
 
( 
(   : !: 
 
 ??    ??	 	   ?? .#+r$   r   )rb   pprintr   sixr   reobjectr   r]   r$   r"   <module>rj      s#   	   	QF Qr$   