
                         >    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Z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d Zd Zd Zd Zd Zy	)ExtensionsV1beta1ScaleStatuszw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intzdict(str, str)str)replicasselectortarget_selectorr	   r
   targetSelectorNc                 p    d| _         d| _        d| _        d| _        || _        ||| _        ||| _        yy)zK
        ExtensionsV1beta1ScaleStatus - a model defined in Swagger
        N)	_replicas	_selector_target_selectordiscriminatorr	   r
   r   )selfr	   r
   r   s       Klib/third_party/kubernetes/client/models/extensions_v1beta1_scale_status.py__init__z%ExtensionsV1beta1ScaleStatus.__init__*   sI    
 DNDN DDDMdm",d #    c                     | j                   S )z
        Gets the replicas of this ExtensionsV1beta1ScaleStatus.
        actual number of observed instances of the scaled object.

        :return: The replicas of this ExtensionsV1beta1ScaleStatus.
        :rtype: int
        )r   r   s    r   r	   z%ExtensionsV1beta1ScaleStatus.replicas:   s     >>r   c                 ,    |t        d      || _        y)z
        Sets the replicas of this ExtensionsV1beta1ScaleStatus.
        actual number of observed instances of the scaled object.

        :param replicas: The replicas of this ExtensionsV1beta1ScaleStatus.
        :type: int
        Nz0Invalid value for `replicas`, must not be `None`)
ValueErrorr   )r   r	   s     r   r	   z%ExtensionsV1beta1ScaleStatus.replicasE   s     IJJDNr   c                     | j                   S )a@  
        Gets the selector of this ExtensionsV1beta1ScaleStatus.
        label query over pods that should match the replicas count. More info:
        http://kubernetes.io/docs/user-guide/labels#label-selectors

        :return: The selector of this ExtensionsV1beta1ScaleStatus.
        :rtype: dict(str, str)
        r   r   s    r   r
   z%ExtensionsV1beta1ScaleStatus.selectorS   s     >>r   c                     || _         y)aG  
        Sets the selector of this ExtensionsV1beta1ScaleStatus.
        label query over pods that should match the replicas count. More info:
        http://kubernetes.io/docs/user-guide/labels#label-selectors

        :param selector: The selector of this ExtensionsV1beta1ScaleStatus.
        :type: dict(str, str)
        Nr   )r   r
   s     r   r
   z%ExtensionsV1beta1ScaleStatus.selector_   s     DNr   c                     | j                   S )a  
        Gets the target_selector of this ExtensionsV1beta1ScaleStatus.
        label selector for pods that should match the replicas count. This is a
        serializated version of both map-based and more expressive set-based
        selectors. This is done to avoid introspection in the clients. The
        string will be in the same format as the query-param syntax. If the
        target type only supports map-based selectors, both this field and
        map-based selector field are populated. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :return: The target_selector of this ExtensionsV1beta1ScaleStatus.
        :rtype: str
        r   r   s    r   r   z,ExtensionsV1beta1ScaleStatus.target_selectorl   s        r   c                     || _         y)a  
        Sets the target_selector of this ExtensionsV1beta1ScaleStatus.
        label selector for pods that should match the replicas count. This is a
        serializated version of both map-based and more expressive set-based
        selectors. This is done to avoid introspection in the clients. The
        string will be in the same format as the query-param syntax. If the
        target type only supports map-based selectors, both this field and
        map-based selector field are populated. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :param target_selector: The target_selector of this
        ExtensionsV1beta1ScaleStatus.
        :type: str
        Nr   )r   r   s     r   r   z,ExtensionsV1beta1ScaleStatus.target_selector}   s    " ,D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>z6ExtensionsV1beta1ScaleStatus.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&   z6ExtensionsV1beta1ScaleStatus.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$ExtensionsV1beta1ScaleStatus.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#ExtensionsV1beta1ScaleStatus.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r6   r   s    r   __repr__z%ExtensionsV1beta1ScaleStatus.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r,   r   __dict__r   others     r   __eq__z#ExtensionsV1beta1ScaleStatus.__eq__   s%     e9:==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r;   s     r   __ne__z#ExtensionsV1beta1ScaleStatus.__ne__   s     u}r   )NNN)__name__
__module____qualname____doc__r*   attribute_mapr   propertyr	   setterr
   r   r"   r6   r8   r=   r@   r?   r   r   r   r      s     "- )--    ??  	 	 ??
 
 ! !  , ,$.#+r   r   )rD   pprintr   sixr   reobjectr   r?   r   r   <module>rL      s#   	   	n6 nr   