
    <                     >    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ddZ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d Zd Zd Zd Zd Zy) V1JobStatuszw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    intdatetimezlist[V1JobCondition])activecompletion_time
conditionsfailed
start_time	succeededr	   completionTimer   r   	startTimer   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        yy)z:
        V1JobStatus - a model defined in Swagger
        N)_active_completion_time_conditions_failed_start_time
_succeededdiscriminatorr	   r
   r   r   r   r   )selfr	   r
   r   r   r   r   s          9lib/third_party/kubernetes/client/models/v1_job_status.py__init__zV1JobStatus.__init__0   s     DL DDDLDDODdk",d"dodk"do dn     c                     | j                   S )z
        Gets the active of this V1JobStatus.
        The number of actively running pods.

        :return: The active of this V1JobStatus.
        :rtype: int
        r   r   s    r   r	   zV1JobStatus.activeP        <<r   c                     || _         y)z
        Sets the active of this V1JobStatus.
        The number of actively running pods.

        :param active: The active of this V1JobStatus.
        :type: int
        Nr   )r   r	   s     r   r	   zV1JobStatus.active[        DLr   c                     | j                   S )a[  
        Gets the completion_time of this V1JobStatus.
        Represents time when the job was completed. It is not guaranteed to be
        set in happens-before order across separate operations. It is
        represented in RFC3339 form and is in UTC.

        :return: The completion_time of this V1JobStatus.
        :rtype: datetime
        r   r   s    r   r
   zV1JobStatus.completion_timeg   s        r   c                     || _         y)ai  
        Sets the completion_time of this V1JobStatus.
        Represents time when the job was completed. It is not guaranteed to be
        set in happens-before order across separate operations. It is
        represented in RFC3339 form and is in UTC.

        :param completion_time: The completion_time of this V1JobStatus.
        :type: datetime
        Nr$   )r   r
   s     r   r
   zV1JobStatus.completion_timet   s     ,Dr   c                     | j                   S )aJ  
        Gets the conditions of this V1JobStatus.
        The latest available observations of an object's current state. More
        info:
        https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

        :return: The conditions of this V1JobStatus.
        :rtype: list[V1JobCondition]
        r   r   s    r   r   zV1JobStatus.conditions        r   c                     || _         y)aS  
        Sets the conditions of this V1JobStatus.
        The latest available observations of an object's current state. More
        info:
        https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

        :param conditions: The conditions of this V1JobStatus.
        :type: list[V1JobCondition]
        Nr'   )r   r   s     r   r   zV1JobStatus.conditions        "Dr   c                     | j                   S )z
        Gets the failed of this V1JobStatus.
        The number of pods which reached phase Failed.

        :return: The failed of this V1JobStatus.
        :rtype: int
        r   r   s    r   r   zV1JobStatus.failed   r    r   c                     || _         y)z
        Sets the failed of this V1JobStatus.
        The number of pods which reached phase Failed.

        :param failed: The failed of this V1JobStatus.
        :type: int
        Nr,   )r   r   s     r   r   zV1JobStatus.failed   r"   r   c                     | j                   S )aj  
        Gets the start_time of this V1JobStatus.
        Represents time when the job was acknowledged by the job controller. It
        is not guaranteed to be set in happens-before order across separate
        operations. It is represented in RFC3339 form and is in UTC.

        :return: The start_time of this V1JobStatus.
        :rtype: datetime
        r   r   s    r   r   zV1JobStatus.start_time   r(   r   c                     || _         y)as  
        Sets the start_time of this V1JobStatus.
        Represents time when the job was acknowledged by the job controller. It
        is not guaranteed to be set in happens-before order across separate
        operations. It is represented in RFC3339 form and is in UTC.

        :param start_time: The start_time of this V1JobStatus.
        :type: datetime
        Nr/   )r   r   s     r   r   zV1JobStatus.start_time   r*   r   c                     | j                   S )z
        Gets the succeeded of this V1JobStatus.
        The number of pods which reached phase Succeeded.

        :return: The succeeded of this V1JobStatus.
        :rtype: int
        r   r   s    r   r   zV1JobStatus.succeeded   s     ??r   c                     || _         y)z
        Sets the succeeded of this V1JobStatus.
        The number of pods which reached phase Succeeded.

        :param succeeded: The succeeded of this V1JobStatus.
        :type: int
        Nr2   )r   r   s     r   r   zV1JobStatus.succeeded   s      DOr   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hasattrr6   )xs    r   <lambda>z%V1JobStatus.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r6   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r6   r   r7   )items    r   r:   z%V1JobStatus.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr8   r6   dictitems)r   resultattr_values        r   r6   zV1JobStatus.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   r6   r   s    r   to_strzV1JobStatus.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rJ   r   s    r   __repr__zV1JobStatus.__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V1JobStatus.__eq__	  s$     e[)==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rO   s     r   __ne__zV1JobStatus.__ne__  s     u}r   )NNNNNN)__name__
__module____qualname____doc__r>   attribute_mapr   propertyr	   setterr
   r   r   r   r   r6   rJ   rL   rQ   rT   rS   r   r   r   r      s    #*- ) - #!@   
==	 	 
! 
! , , 
 
 " "   
==	 	 
 
 " "   	  	 .#+r   r   )rX   pprintr   sixr   reobjectr   rS   r   r   <module>r`      s#   	   	D& Dr   