
    .                     >    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            
       N   e Zd ZdZ	 dddddddddd	Z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d& Zd' Zd( Zd) Zd* Zy),AppsV1beta1DeploymentSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intboolAppsV1beta1RollbackConfigV1LabelSelectorAppsV1beta1DeploymentStrategyV1PodTemplateSpec)	min_ready_secondspausedprogress_deadline_secondsreplicasrevision_history_limitrollback_toselectorstrategytemplateminReadySecondsr   progressDeadlineSecondsr   revisionHistoryLimit
rollbackTor   r   r   Nc
                 .   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	| _        y)zH
        AppsV1beta1DeploymentSpec - a model defined in Swagger
        N)_min_ready_seconds_paused_progress_deadline_seconds	_replicas_revision_history_limit_rollback_to	_selector	_strategy	_templatediscriminatorr   r   r   r   r   r   r   r   r   )
selfr   r   r   r   r   r   r   r   r   s
             Hlib/third_party/kubernetes/client/models/apps_v1beta1_deployment_spec.py__init__z"AppsV1beta1DeploymentSpec.__init__6   s     #DDL&*D#DN#'D DDNDNDND$0ddk ,'@d$dm)$:d!$ddmdmDM    c                     | j                   S )a  
        Gets the min_ready_seconds of this AppsV1beta1DeploymentSpec.
        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 AppsV1beta1DeploymentSpec.
        :rtype: int
        r   r%   s    r&   r   z+AppsV1beta1DeploymentSpec.min_ready_secondsa   s     """r(   c                     || _         y)a  
        Sets the min_ready_seconds of this AppsV1beta1DeploymentSpec.
        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
        AppsV1beta1DeploymentSpec.
        :type: int
        Nr*   )r%   r   s     r&   r   z+AppsV1beta1DeploymentSpec.min_ready_secondso   s     0Dr(   c                     | j                   S )z
        Gets the paused of this AppsV1beta1DeploymentSpec.
        Indicates that the deployment is paused.

        :return: The paused of this AppsV1beta1DeploymentSpec.
        :rtype: bool
        r   r+   s    r&   r   z AppsV1beta1DeploymentSpec.paused   s     <<r(   c                     || _         y)z
        Sets the paused of this AppsV1beta1DeploymentSpec.
        Indicates that the deployment is paused.

        :param paused: The paused of this AppsV1beta1DeploymentSpec.
        :type: bool
        Nr.   )r%   r   s     r&   r   z AppsV1beta1DeploymentSpec.paused   s     DLr(   c                     | j                   S )ae  
        Gets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec.
        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
        AppsV1beta1DeploymentSpec.
        :rtype: int
        r   r+   s    r&   r   z3AppsV1beta1DeploymentSpec.progress_deadline_seconds   s     ***r(   c                     || _         y)a}  
        Sets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec.
        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
        AppsV1beta1DeploymentSpec.
        :type: int
        Nr1   )r%   r   s     r&   r   z3AppsV1beta1DeploymentSpec.progress_deadline_seconds   s      '@D#r(   c                     | j                   S )a  
        Gets the replicas of this AppsV1beta1DeploymentSpec.
        Number of desired pods. This is a pointer to distinguish between
        explicit zero and not specified. Defaults to 1.

        :return: The replicas of this AppsV1beta1DeploymentSpec.
        :rtype: int
        r   r+   s    r&   r   z"AppsV1beta1DeploymentSpec.replicas        >>r(   c                     || _         y)a$  
        Sets the replicas of this AppsV1beta1DeploymentSpec.
        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 AppsV1beta1DeploymentSpec.
        :type: int
        Nr4   )r%   r   s     r&   r   z"AppsV1beta1DeploymentSpec.replicas        DNr(   c                     | j                   S )ad  
        Gets the revision_history_limit of this AppsV1beta1DeploymentSpec.
        The number of old ReplicaSets to retain to allow rollback. This is a
        pointer to distinguish between explicit zero and not specified. Defaults
        to 2.

        :return: The revision_history_limit of this AppsV1beta1DeploymentSpec.
        :rtype: int
        r   r+   s    r&   r   z0AppsV1beta1DeploymentSpec.revision_history_limit   s     '''r(   c                     || _         y)a  
        Sets the revision_history_limit of this AppsV1beta1DeploymentSpec.
        The number of old ReplicaSets to retain to allow rollback. This is a
        pointer to distinguish between explicit zero and not specified. Defaults
        to 2.

        :param revision_history_limit: The revision_history_limit of this
        AppsV1beta1DeploymentSpec.
        :type: int
        Nr9   )r%   r   s     r&   r   z0AppsV1beta1DeploymentSpec.revision_history_limit   s     $:D r(   c                     | j                   S )a+  
        Gets the rollback_to of this AppsV1beta1DeploymentSpec.
        DEPRECATED. The config this deployment is rolling back to. Will be
        cleared after rollback is done.

        :return: The rollback_to of this AppsV1beta1DeploymentSpec.
        :rtype: AppsV1beta1RollbackConfig
        r    r+   s    r&   r   z%AppsV1beta1DeploymentSpec.rollback_to   s     r(   c                     || _         y)a5  
        Sets the rollback_to of this AppsV1beta1DeploymentSpec.
        DEPRECATED. The config this deployment is rolling back to. Will be
        cleared after rollback is done.

        :param rollback_to: The rollback_to of this AppsV1beta1DeploymentSpec.
        :type: AppsV1beta1RollbackConfig
        Nr<   )r%   r   s     r&   r   z%AppsV1beta1DeploymentSpec.rollback_to   s     $Dr(   c                     | j                   S )a4  
        Gets the selector of this AppsV1beta1DeploymentSpec.
        Label selector for pods. Existing ReplicaSets whose pods are selected by
        this will be the ones affected by this deployment.

        :return: The selector of this AppsV1beta1DeploymentSpec.
        :rtype: V1LabelSelector
        r!   r+   s    r&   r   z"AppsV1beta1DeploymentSpec.selector  r5   r(   c                     || _         y)a;  
        Sets the selector of this AppsV1beta1DeploymentSpec.
        Label selector for pods. Existing ReplicaSets whose pods are selected by
        this will be the ones affected by this deployment.

        :param selector: The selector of this AppsV1beta1DeploymentSpec.
        :type: V1LabelSelector
        Nr?   )r%   r   s     r&   r   z"AppsV1beta1DeploymentSpec.selector  r7   r(   c                     | j                   S )a  
        Gets the strategy of this AppsV1beta1DeploymentSpec.
        The deployment strategy to use to replace existing pods with new ones.

        :return: The strategy of this AppsV1beta1DeploymentSpec.
        :rtype: AppsV1beta1DeploymentStrategy
        r"   r+   s    r&   r   z"AppsV1beta1DeploymentSpec.strategy        >>r(   c                     || _         y)a  
        Sets the strategy of this AppsV1beta1DeploymentSpec.
        The deployment strategy to use to replace existing pods with new ones.

        :param strategy: The strategy of this AppsV1beta1DeploymentSpec.
        :type: AppsV1beta1DeploymentStrategy
        NrB   )r%   r   s     r&   r   z"AppsV1beta1DeploymentSpec.strategy+  s     DNr(   c                     | j                   S )z
        Gets the template of this AppsV1beta1DeploymentSpec.
        Template describes the pods that will be created.

        :return: The template of this AppsV1beta1DeploymentSpec.
        :rtype: V1PodTemplateSpec
        )r#   r+   s    r&   r   z"AppsV1beta1DeploymentSpec.template7  rC   r(   c                 ,    |t        d      || _        y)z
        Sets the template of this AppsV1beta1DeploymentSpec.
        Template describes the pods that will be created.

        :param template: The template of this AppsV1beta1DeploymentSpec.
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)
ValueErrorr#   )r%   r   s     r&   r   z"AppsV1beta1DeploymentSpec.templateB  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hasattrrJ   )xs    r&   <lambda>z3AppsV1beta1DeploymentSpec.to_dict.<locals>.<lambda>Z  s    I)>!))+EAEr(   rJ   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rJ   r   rK   )items    r&   rN   z3AppsV1beta1DeploymentSpec.to_dict.<locals>.<lambda>`  s6    47I. #1gtAw'89 9489r(   )
r   swagger_typesgetattr
isinstancelistmaprL   rJ   dictitems)r%   resultattr_values        r&   rJ   z!AppsV1beta1DeploymentSpec.to_dictP  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   rJ   r+   s    r&   to_strz AppsV1beta1DeploymentSpec.to_strg  s     4<<>""r(   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r^   r+   s    r&   __repr__z"AppsV1beta1DeploymentSpec.__repr__m  s     ;;=r(   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rT   r   __dict__r%   others     r&   __eq__z AppsV1beta1DeploymentSpec.__eq__s  s%     e67==ENN**r(   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rc   s     r&   __ne__z AppsV1beta1DeploymentSpec.__ne__|  s     u}r(   )	NNNNNNNNN)__name__
__module____qualname____doc__rR   attribute_mapr'   propertyr   setterr   r   r   r   r   r   r   r   rJ   r^   r`   re   rh   rg   r(   r&   r   r      s&    !#( %0#1%
- -#< 6!
- "&)-&*)V # # 0 0   
==	 	 + +  ##@ $@" 	 	 ??
 
 
( 
(   : !: 	 	 
$ 
$ 	 	 ??
 
   ??	 	   ?? .#+r(   r   )rl   pprintr   sixr   reobjectr   rg   r(   r&   <module>rt      s#   	   	n nr(   