
    2/                     >    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))V1beta1StatefulSetStatuszw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intz!list[V1beta1StatefulSetCondition]str)	collision_count
conditionscurrent_replicascurrent_revisionobserved_generationready_replicasreplicasupdate_revisionupdated_replicascollisionCountr
   currentReplicascurrentRevisionobservedGenerationreadyReplicasr   updateRevisionupdatedReplicasNc
                 0   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        |	|	| _        yy)zG
        V1beta1StatefulSetStatus - a model defined in Swagger
        N)_collision_count_conditions_current_replicas_current_revision_observed_generation_ready_replicas	_replicas_update_revision_updated_replicasdiscriminatorr	   r
   r   r   r   r   r   r   r   )
selfr	   r
   r   r   r   r   r   r   r   s
             Glib/third_party/kubernetes/client/models/v1beta1_stateful_set_status.py__init__z!V1beta1StatefulSetStatus.__init__6   s     !DD!D!D $DDDN D!DD",d"do#.d#.d&!4d!*dDM",d#.d $    c                     | j                   S )a  
        Gets the collision_count of this V1beta1StatefulSetStatus.
        collisionCount is the count of hash collisions for the StatefulSet. The
        StatefulSet controller uses this field as a collision avoidance
        mechanism when it needs to create the name for the newest
        ControllerRevision.

        :return: The collision_count of this V1beta1StatefulSetStatus.
        :rtype: int
        r   r$   s    r%   r	   z(V1beta1StatefulSetStatus.collision_counta   s        r'   c                     || _         y)a  
        Sets the collision_count of this V1beta1StatefulSetStatus.
        collisionCount is the count of hash collisions for the StatefulSet. The
        StatefulSet controller uses this field as a collision avoidance
        mechanism when it needs to create the name for the newest
        ControllerRevision.

        :param collision_count: The collision_count of this
        V1beta1StatefulSetStatus.
        :type: int
        Nr)   )r$   r	   s     r%   r	   z(V1beta1StatefulSetStatus.collision_counto   s     ,Dr'   c                     | j                   S )a  
        Gets the conditions of this V1beta1StatefulSetStatus.
        Represents the latest available observations of a statefulset's current
        state.

        :return: The conditions of this V1beta1StatefulSetStatus.
        :rtype: list[V1beta1StatefulSetCondition]
        r   r*   s    r%   r
   z#V1beta1StatefulSetStatus.conditions   s     r'   c                     || _         y)a$  
        Sets the conditions of this V1beta1StatefulSetStatus.
        Represents the latest available observations of a statefulset's current
        state.

        :param conditions: The conditions of this V1beta1StatefulSetStatus.
        :type: list[V1beta1StatefulSetCondition]
        Nr-   )r$   r
   s     r%   r
   z#V1beta1StatefulSetStatus.conditions   s     "Dr'   c                     | j                   S )aA  
        Gets the current_replicas of this V1beta1StatefulSetStatus.
        currentReplicas is the number of Pods created by the StatefulSet
        controller from the StatefulSet version indicated by currentRevision.

        :return: The current_replicas of this V1beta1StatefulSetStatus.
        :rtype: int
        r   r*   s    r%   r   z)V1beta1StatefulSetStatus.current_replicas        !!!r'   c                     || _         y)aX  
        Sets the current_replicas of this V1beta1StatefulSetStatus.
        currentReplicas is the number of Pods created by the StatefulSet
        controller from the StatefulSet version indicated by currentRevision.

        :param current_replicas: The current_replicas of this
        V1beta1StatefulSetStatus.
        :type: int
        Nr0   )r$   r   s     r%   r   z)V1beta1StatefulSetStatus.current_replicas        .Dr'   c                     | j                   S )a=  
        Gets the current_revision of this V1beta1StatefulSetStatus.
        currentRevision, if not empty, indicates the version of the StatefulSet
        used to generate Pods in the sequence [0,currentReplicas).

        :return: The current_revision of this V1beta1StatefulSetStatus.
        :rtype: str
        r   r*   s    r%   r   z)V1beta1StatefulSetStatus.current_revision   r1   r'   c                     || _         y)aT  
        Sets the current_revision of this V1beta1StatefulSetStatus.
        currentRevision, if not empty, indicates the version of the StatefulSet
        used to generate Pods in the sequence [0,currentReplicas).

        :param current_revision: The current_revision of this
        V1beta1StatefulSetStatus.
        :type: str
        Nr5   )r$   r   s     r%   r   z)V1beta1StatefulSetStatus.current_revision   r3   r'   c                     | j                   S )ax  
        Gets the observed_generation of this V1beta1StatefulSetStatus.
        observedGeneration is the most recent generation observed for this
        StatefulSet. It corresponds to the StatefulSet's generation, which is
        updated on mutation by the API Server.

        :return: The observed_generation of this V1beta1StatefulSetStatus.
        :rtype: int
        r   r*   s    r%   r   z,V1beta1StatefulSetStatus.observed_generation   s     $$$r'   c                     || _         y)a  
        Sets the observed_generation of this V1beta1StatefulSetStatus.
        observedGeneration is the most recent generation observed for this
        StatefulSet. It corresponds to the StatefulSet's generation, which is
        updated on mutation by the API Server.

        :param observed_generation: The observed_generation of this
        V1beta1StatefulSetStatus.
        :type: int
        Nr8   )r$   r   s     r%   r   z,V1beta1StatefulSetStatus.observed_generation   s     !4Dr'   c                     | j                   S )a  
        Gets the ready_replicas of this V1beta1StatefulSetStatus.
        readyReplicas is the number of Pods created by the StatefulSet
        controller that have a Ready Condition.

        :return: The ready_replicas of this V1beta1StatefulSetStatus.
        :rtype: int
        r   r*   s    r%   r   z'V1beta1StatefulSetStatus.ready_replicas   s     r'   c                     || _         y)a2  
        Sets the ready_replicas of this V1beta1StatefulSetStatus.
        readyReplicas is the number of Pods created by the StatefulSet
        controller that have a Ready Condition.

        :param ready_replicas: The ready_replicas of this
        V1beta1StatefulSetStatus.
        :type: int
        Nr;   )r$   r   s     r%   r   z'V1beta1StatefulSetStatus.ready_replicas   s     *Dr'   c                     | j                   S )z
        Gets the replicas of this V1beta1StatefulSetStatus.
        replicas is the number of Pods created by the StatefulSet controller.

        :return: The replicas of this V1beta1StatefulSetStatus.
        :rtype: int
        )r    r*   s    r%   r   z!V1beta1StatefulSetStatus.replicas  s     >>r'   c                 ,    |t        d      || _        y)z
        Sets the replicas of this V1beta1StatefulSetStatus.
        replicas is the number of Pods created by the StatefulSet controller.

        :param replicas: The replicas of this V1beta1StatefulSetStatus.
        :type: int
        Nz0Invalid value for `replicas`, must not be `None`)
ValueErrorr    )r$   r   s     r%   r   z!V1beta1StatefulSetStatus.replicas  s     IJJDNr'   c                     | j                   S )aQ  
        Gets the update_revision of this V1beta1StatefulSetStatus.
        updateRevision, if not empty, indicates the version of the StatefulSet
        used to generate Pods in the sequence
        [replicas-updatedReplicas,replicas)

        :return: The update_revision of this V1beta1StatefulSetStatus.
        :rtype: str
        r!   r*   s    r%   r   z(V1beta1StatefulSetStatus.update_revision  s        r'   c                     || _         y)ag  
        Sets the update_revision of this V1beta1StatefulSetStatus.
        updateRevision, if not empty, indicates the version of the StatefulSet
        used to generate Pods in the sequence
        [replicas-updatedReplicas,replicas)

        :param update_revision: The update_revision of this
        V1beta1StatefulSetStatus.
        :type: str
        NrA   )r$   r   s     r%   r   z(V1beta1StatefulSetStatus.update_revision(  s     ,Dr'   c                     | j                   S )a@  
        Gets the updated_replicas of this V1beta1StatefulSetStatus.
        updatedReplicas is the number of Pods created by the StatefulSet
        controller from the StatefulSet version indicated by updateRevision.

        :return: The updated_replicas of this V1beta1StatefulSetStatus.
        :rtype: int
        r"   r*   s    r%   r   z)V1beta1StatefulSetStatus.updated_replicas7  r1   r'   c                     || _         y)aW  
        Sets the updated_replicas of this V1beta1StatefulSetStatus.
        updatedReplicas is the number of Pods created by the StatefulSet
        controller from the StatefulSet version indicated by updateRevision.

        :param updated_replicas: The updated_replicas of this
        V1beta1StatefulSetStatus.
        :type: int
        NrD   )r$   r   s     r%   r   z)V1beta1StatefulSetStatus.updated_replicasC  r3   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hasattrrH   )xs    r%   <lambda>z2V1beta1StatefulSetStatus.to_dict.<locals>.<lambda>[  s    I)>!))+EAEr'   rH   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rH   r   rI   )items    r%   rL   z2V1beta1StatefulSetStatus.to_dict.<locals>.<lambda>a  s6    47I. #1gtAw'89 9489r'   )
r   swagger_typesgetattr
isinstancelistmaprJ   rH   dictitems)r$   resultattr_values        r%   rH   z V1beta1StatefulSetStatus.to_dictQ  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   rH   r*   s    r%   to_strzV1beta1StatefulSetStatus.to_strh  s     4<<>""r'   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r\   r*   s    r%   __repr__z!V1beta1StatefulSetStatus.__repr__n  s     ;;=r'   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rR   r   __dict__r$   others     r%   __eq__zV1beta1StatefulSetStatus.__eq__t  s%     e56==ENN**r'   c                     | |k(   S )z<
        Returns true if both objects are not equal
         ra   s     r%   __ne__zV1beta1StatefulSetStatus.__ne__}  s     u}r'   )	NNNNNNNNN)__name__
__module____qualname____doc__rP   attribute_mapr&   propertyr	   setterr
   r   r   r   r   r   r   r   rH   r\   r^   rc   rf   re   r'   r%   r   r      s,    7"
- * ++1')+
-  $ $ $#'"# $)/V ! ! , , 	 	 
" 
" 	" 	" . . 	" 	" . . 
% 
% 4 4 	  	  * *   ??  
! 
! , , 	" 	" . ..#+r'   r   )rj   pprintr   sixr   reobjectr   re   r'   r%   <module>rr      s#   	   	ov or'   