
                         >    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Z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d Zd Zd Zd Zd Zy
)V1ReplicationControllerSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intzdict(str, str)V1PodTemplateSpec)min_ready_secondsreplicasselectortemplateminReadySecondsr
   r   r   Nc                     d| _         d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        yy)zJ
        V1ReplicationControllerSpec - a model defined in Swagger
        N)	_min_ready_seconds	_replicas	_selector	_templatediscriminatorr	   r
   r   r   )selfr	   r
   r   r   s        Jlib/third_party/kubernetes/client/models/v1_replication_controller_spec.py__init__z$V1ReplicationControllerSpec.__init__,   sc     #DDNDNDND$0ddmdmdm     c                     | j                   S )a  
        Gets the min_ready_seconds of this V1ReplicationControllerSpec.
        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 V1ReplicationControllerSpec.
        :rtype: int
        r   r   s    r   r	   z-V1ReplicationControllerSpec.min_ready_secondsD   s     """r   c                     || _         y)a  
        Sets the min_ready_seconds of this V1ReplicationControllerSpec.
        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
        V1ReplicationControllerSpec.
        :type: int
        Nr   )r   r	   s     r   r	   z-V1ReplicationControllerSpec.min_ready_secondsR   s     0Dr   c                     | j                   S )a  
        Gets the replicas of this V1ReplicationControllerSpec.
        Replicas is the number of desired replicas. This is a pointer to
        distinguish between explicit zero and unspecified. Defaults to 1. More
        info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller

        :return: The replicas of this V1ReplicationControllerSpec.
        :rtype: int
        r   r   s    r   r
   z$V1ReplicationControllerSpec.replicasb        >>r   c                     || _         y)a  
        Sets the replicas of this V1ReplicationControllerSpec.
        Replicas is the number of desired replicas. This is a pointer to
        distinguish between explicit zero and unspecified. Defaults to 1. More
        info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller

        :param replicas: The replicas of this V1ReplicationControllerSpec.
        :type: int
        Nr   )r   r
   s     r   r
   z$V1ReplicationControllerSpec.replicasp        DNr   c                     | j                   S )ai  
        Gets the selector of this V1ReplicationControllerSpec.
        Selector is a label query over pods that should match the Replicas
        count. If Selector is empty, it is defaulted to the labels present on
        the Pod template. Label keys and values that must match in order to be
        controlled by this replication controller, if empty defaulted to labels
        on Pod template. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :return: The selector of this V1ReplicationControllerSpec.
        :rtype: dict(str, str)
        r   r   s    r   r   z$V1ReplicationControllerSpec.selector   s     >>r   c                     || _         y)ap  
        Sets the selector of this V1ReplicationControllerSpec.
        Selector is a label query over pods that should match the Replicas
        count. If Selector is empty, it is defaulted to the labels present on
        the Pod template. Label keys and values that must match in order to be
        controlled by this replication controller, if empty defaulted to labels
        on Pod template. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :param selector: The selector of this V1ReplicationControllerSpec.
        :type: dict(str, str)
        Nr"   )r   r   s     r   r   z$V1ReplicationControllerSpec.selector   s     DNr   c                     | j                   S )a  
        Gets the template of this V1ReplicationControllerSpec.
        Template is the object that describes the pod that will be created if
        insufficient replicas are detected. This takes precedence over a
        TemplateRef. More info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

        :return: The template of this V1ReplicationControllerSpec.
        :rtype: V1PodTemplateSpec
        r   r   s    r   r   z$V1ReplicationControllerSpec.template   r   r   c                     || _         y)a  
        Sets the template of this V1ReplicationControllerSpec.
        Template is the object that describes the pod that will be created if
        insufficient replicas are detected. This takes precedence over a
        TemplateRef. More info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

        :param template: The template of this V1ReplicationControllerSpec.
        :type: V1PodTemplateSpec
        Nr%   )r   r   s     r   r   z$V1ReplicationControllerSpec.template   r    r   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>z5V1ReplicationControllerSpec.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r)   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r)   r   r*   )items    r   r-   z5V1ReplicationControllerSpec.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr+   r)   dictitems)r   resultattr_values        r   r)   z#V1ReplicationControllerSpec.to_dict   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"V1ReplicationControllerSpec.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r=   r   s    r   __repr__z$V1ReplicationControllerSpec.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r3   r   __dict__r   others     r   __eq__z"V1ReplicationControllerSpec.__eq__   s%     e89==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rB   s     r   __ne__z"V1ReplicationControllerSpec.__ne__   s     u}r   )NNNN)__name__
__module____qualname____doc__r1   attribute_mapr   propertyr	   setterr
   r   r   r)   r=   r?   rD   rG   rF   r   r   r   r      s    !"%	- -	- "&	0 # # 0 0   ??    ??     ?? .#+r   r   )rK   pprintr   sixr   reobjectr   rF   r   r   <module>rS      s#   	   	[& [r   