
    N                     >    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
)V1beta2ReplicaSetSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intV1LabelSelectorV1PodTemplateSpec)min_ready_secondsreplicasselectortemplateminReadySecondsr   r   r   Nc                     d| _         d| _        d| _        d| _        d| _        ||| _        ||| _        || _        ||| _        yy)zD
        V1beta2ReplicaSetSpec - a model defined in Swagger
        N)	_min_ready_seconds	_replicas	_selector	_templatediscriminatorr
   r   r   r   )selfr
   r   r   r   s        Dlib/third_party/kubernetes/client/models/v1beta2_replica_set_spec.py__init__zV1beta2ReplicaSetSpec.__init__,   s]     #DDNDNDND$0ddmDMdm     c                     | j                   S )a  
        Gets the min_ready_seconds of this V1beta2ReplicaSetSpec.
        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 V1beta2ReplicaSetSpec.
        :rtype: int
        r   r   s    r   r
   z'V1beta2ReplicaSetSpec.min_ready_secondsC   s     """r   c                     || _         y)a  
        Sets the min_ready_seconds of this V1beta2ReplicaSetSpec.
        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
        V1beta2ReplicaSetSpec.
        :type: int
        Nr   )r   r
   s     r   r
   z'V1beta2ReplicaSetSpec.min_ready_secondsQ   s     0Dr   c                     | j                   S )a  
        Gets the replicas of this V1beta2ReplicaSetSpec.
        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 V1beta2ReplicaSetSpec.
        :rtype: int
        r   r   s    r   r   zV1beta2ReplicaSetSpec.replicasa        >>r   c                     || _         y)a  
        Sets the replicas of this V1beta2ReplicaSetSpec.
        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 V1beta2ReplicaSetSpec.
        :type: int
        Nr   )r   r   s     r   r   zV1beta2ReplicaSetSpec.replicaso   s     DNr   c                     | j                   S )a  
        Gets the selector of this V1beta2ReplicaSetSpec.
        Selector is a label query over pods that should match the replica count.
        Label keys and values that must match in order to be controlled by this
        replica set. It must match the pod template's labels. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :return: The selector of this V1beta2ReplicaSetSpec.
        :rtype: V1LabelSelector
        )r   r   s    r   r   zV1beta2ReplicaSetSpec.selector~   r   r   c                 ,    |t        d      || _        y)a  
        Sets the selector of this V1beta2ReplicaSetSpec.
        Selector is a label query over pods that should match the replica count.
        Label keys and values that must match in order to be controlled by this
        replica set. It must match the pod template's labels. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :param selector: The selector of this V1beta2ReplicaSetSpec.
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)
ValueErrorr   )r   r   s     r   r   zV1beta2ReplicaSetSpec.selector   s     IJJDNr   c                     | j                   S )a  
        Gets the template of this V1beta2ReplicaSetSpec.
        Template is the object that describes the pod that will be created if
        insufficient replicas are detected. More info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

        :return: The template of this V1beta2ReplicaSetSpec.
        :rtype: V1PodTemplateSpec
        r   r   s    r   r   zV1beta2ReplicaSetSpec.template   s     >>r   c                     || _         y)a  
        Sets the template of this V1beta2ReplicaSetSpec.
        Template is the object that describes the pod that will be created if
        insufficient replicas are detected. More info:
        https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template

        :param template: The template of this V1beta2ReplicaSetSpec.
        :type: V1PodTemplateSpec
        Nr%   )r   r   s     r   r   zV1beta2ReplicaSetSpec.template   s     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/V1beta2ReplicaSetSpec.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-   z/V1beta2ReplicaSetSpec.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V1beta2ReplicaSetSpec.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V1beta2ReplicaSetSpec.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r=   r   s    r   __repr__zV1beta2ReplicaSetSpec.__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V1beta2ReplicaSetSpec.__eq__   s%     e23==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rB   s     r   __ne__zV1beta2ReplicaSetSpec.__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   ??    ??   
 
 ?? .#+r   r   )rK   pprintr   sixr   reobjectr   rF   r   r   <module>rS      s#   	   	VF Vr   