
                         >    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                   f   e Zd ZdZ	 ddddddZ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d Zd Zd Zd Zd Zy)V1LeaseSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    datetimestrint)acquire_timeholder_identitylease_duration_secondslease_transitions
renew_timeacquireTimeholderIdentityleaseDurationSecondsleaseTransitions	renewTimeNc                     d| _         d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _	        ||| _
        yy)z:
        V1LeaseSpec - a model defined in Swagger
        N)_acquire_time_holder_identity_lease_duration_seconds_lease_transitions_renew_timediscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   s         9lib/third_party/kubernetes/client/models/v1_lease_spec.py__init__zV1LeaseSpec.__init__.   s~     D D#'D "DDD&d",d)$:d!$0d"do     c                     | j                   S )z
        Gets the acquire_time of this V1LeaseSpec.
        acquireTime is a time when the current lease was acquired.

        :return: The acquire_time of this V1LeaseSpec.
        :rtype: datetime
        r   r   s    r   r
   zV1LeaseSpec.acquire_timeJ   s     r   c                     || _         y)z
        Sets the acquire_time of this V1LeaseSpec.
        acquireTime is a time when the current lease was acquired.

        :param acquire_time: The acquire_time of this V1LeaseSpec.
        :type: datetime
        Nr    )r   r
   s     r   r
   zV1LeaseSpec.acquire_timeU   s     &Dr   c                     | j                   S )z
        Gets the holder_identity of this V1LeaseSpec.
        holderIdentity contains the identity of the holder of a current lease.

        :return: The holder_identity of this V1LeaseSpec.
        :rtype: str
        r   r!   s    r   r   zV1LeaseSpec.holder_identitya   s        r   c                     || _         y)z
        Sets the holder_identity of this V1LeaseSpec.
        holderIdentity contains the identity of the holder of a current lease.

        :param holder_identity: The holder_identity of this V1LeaseSpec.
        :type: str
        Nr$   )r   r   s     r   r   zV1LeaseSpec.holder_identityl   s     ,Dr   c                     | j                   S )aN  
        Gets the lease_duration_seconds of this V1LeaseSpec.
        leaseDurationSeconds is a duration that candidates for a lease need to
        wait to force acquire it. This is measure against time of last observed
        RenewTime.

        :return: The lease_duration_seconds of this V1LeaseSpec.
        :rtype: int
        r   r!   s    r   r   z"V1LeaseSpec.lease_duration_secondsx   s     '''r   c                     || _         y)ak  
        Sets the lease_duration_seconds of this V1LeaseSpec.
        leaseDurationSeconds is a duration that candidates for a lease need to
        wait to force acquire it. This is measure against time of last observed
        RenewTime.

        :param lease_duration_seconds: The lease_duration_seconds of this
        V1LeaseSpec.
        :type: int
        Nr'   )r   r   s     r   r   z"V1LeaseSpec.lease_duration_seconds   s     $:D r   c                     | j                   S )z
        Gets the lease_transitions of this V1LeaseSpec.
        leaseTransitions is the number of transitions of a lease between
        holders.

        :return: The lease_transitions of this V1LeaseSpec.
        :rtype: int
        r   r!   s    r   r   zV1LeaseSpec.lease_transitions   s     """r   c                     || _         y)z
        Sets the lease_transitions of this V1LeaseSpec.
        leaseTransitions is the number of transitions of a lease between
        holders.

        :param lease_transitions: The lease_transitions of this V1LeaseSpec.
        :type: int
        Nr*   )r   r   s     r   r   zV1LeaseSpec.lease_transitions   s     0Dr   c                     | j                   S )z
        Gets the renew_time of this V1LeaseSpec.
        renewTime is a time when the current holder of a lease has last updated
        the lease.

        :return: The renew_time of this V1LeaseSpec.
        :rtype: datetime
        r   r!   s    r   r   zV1LeaseSpec.renew_time   s     r   c                     || _         y)z
        Sets the renew_time of this V1LeaseSpec.
        renewTime is a time when the current holder of a lease has last updated
        the lease.

        :param renew_time: The renew_time of this V1LeaseSpec.
        :type: datetime
        Nr-   )r   r   s     r   r   zV1LeaseSpec.renew_time   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hasattrr1   )xs    r   <lambda>z%V1LeaseSpec.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r1   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r1   r   r2   )items    r   r5   z%V1LeaseSpec.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr3   r1   dictitems)r   resultattr_values        r   r1   zV1LeaseSpec.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   r1   r!   s    r   to_strzV1LeaseSpec.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rE   r!   s    r   __repr__zV1LeaseSpec.__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V1LeaseSpec.__eq__   s$     e[)==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rJ   s     r   __ne__zV1LeaseSpec.__ne__   s     u}r   )NNNNN)__name__
__module____qualname____doc__r9   attribute_mapr   propertyr
   setterr   r   r   r   r1   rE   rG   rL   rO   rN   r   r   r   r      sQ    ! % - $) 6-- !#&*!%#8   	& 	& ! ! 	, 	, 
( 
(   : !: 	# 	# 
0 
0 	 	 
" 
".#+r   r   )rS   pprintr   sixr   reobjectr   rN   r   r   <module>r[      s#   	   	d& dr   