
    	                     >    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)V1ManagedFieldsEntryzw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strobjectdatetime)api_versionfieldsmanager	operationtime
apiVersionr   r   r   r   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _	        ||| _
        yy)zC
        V1ManagedFieldsEntry - a model defined in Swagger
        N)_api_version_fields_manager
_operation_timediscriminatorr
   r   r   r   r   )selfr
   r   r   r   r   s         Clib/third_party/kubernetes/client/models/v1_managed_fields_entry.py__init__zV1ManagedFieldsEntry.__init__.   sw     DDLDMDODJD$ddkdl dndi     c                     | j                   S )a  
        Gets the api_version of this V1ManagedFieldsEntry.
        APIVersion defines the version of this resource that this field set
        applies to. The format is "group/version" just like the top-level
        APIVersion field. It is necessary to track the version of a field set
        because it cannot be automatically converted.

        :return: The api_version of this V1ManagedFieldsEntry.
        :rtype: str
        r   r   s    r   r
   z V1ManagedFieldsEntry.api_versionJ   s     r   c                     || _         y)a  
        Sets the api_version of this V1ManagedFieldsEntry.
        APIVersion defines the version of this resource that this field set
        applies to. The format is "group/version" just like the top-level
        APIVersion field. It is necessary to track the version of a field set
        because it cannot be automatically converted.

        :param api_version: The api_version of this V1ManagedFieldsEntry.
        :type: str
        Nr   )r   r
   s     r   r
   z V1ManagedFieldsEntry.api_versionX   s     $Dr   c                     | j                   S )z
        Gets the fields of this V1ManagedFieldsEntry.
        Fields identifies a set of fields.

        :return: The fields of this V1ManagedFieldsEntry.
        :rtype: object
        r   r   s    r   r   zV1ManagedFieldsEntry.fieldsg   s     <<r   c                     || _         y)z
        Sets the fields of this V1ManagedFieldsEntry.
        Fields identifies a set of fields.

        :param fields: The fields of this V1ManagedFieldsEntry.
        :type: object
        Nr    )r   r   s     r   r   zV1ManagedFieldsEntry.fieldsr   s     DLr   c                     | j                   S )z
        Gets the manager of this V1ManagedFieldsEntry.
        Manager is an identifier of the workflow managing these fields.

        :return: The manager of this V1ManagedFieldsEntry.
        :rtype: str
        r   r   s    r   r   zV1ManagedFieldsEntry.manager~   s     ==r   c                     || _         y)z
        Sets the manager of this V1ManagedFieldsEntry.
        Manager is an identifier of the workflow managing these fields.

        :param manager: The manager of this V1ManagedFieldsEntry.
        :type: str
        Nr#   )r   r   s     r   r   zV1ManagedFieldsEntry.manager   s     DMr   c                     | j                   S )aC  
        Gets the operation of this V1ManagedFieldsEntry.
        Operation is the type of operation which lead to this ManagedFieldsEntry
        being created. The only valid values for this field are 'Apply' and
        'Update'.

        :return: The operation of this V1ManagedFieldsEntry.
        :rtype: str
        r   r   s    r   r   zV1ManagedFieldsEntry.operation   s     ??r   c                     || _         y)aK  
        Sets the operation of this V1ManagedFieldsEntry.
        Operation is the type of operation which lead to this ManagedFieldsEntry
        being created. The only valid values for this field are 'Apply' and
        'Update'.

        :param operation: The operation of this V1ManagedFieldsEntry.
        :type: str
        Nr&   )r   r   s     r   r   zV1ManagedFieldsEntry.operation   s      DOr   c                     | j                   S )a  
        Gets the time of this V1ManagedFieldsEntry.
        Time is timestamp of when these fields were set. It should always be
        empty if Operation is 'Apply'

        :return: The time of this V1ManagedFieldsEntry.
        :rtype: datetime
        r   r   s    r   r   zV1ManagedFieldsEntry.time   s     ::r   c                     || _         y)a  
        Sets the time of this V1ManagedFieldsEntry.
        Time is timestamp of when these fields were set. It should always be
        empty if Operation is 'Apply'

        :param time: The time of this V1ManagedFieldsEntry.
        :type: datetime
        Nr)   )r   r   s     r   r   zV1ManagedFieldsEntry.time   s     DJr   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.V1ManagedFieldsEntry.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   r1   z.V1ManagedFieldsEntry.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V1ManagedFieldsEntry.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V1ManagedFieldsEntry.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rA   r   s    r   __repr__zV1ManagedFieldsEntry.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r7   r   __dict__r   others     r   __eq__zV1ManagedFieldsEntry.__eq__   s%     e12==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rF   s     r   __ne__zV1ManagedFieldsEntry.__ne__   s     u}r   )NNNNN)__name__
__module____qualname____doc__r5   attribute_mapr   propertyr
   setterr   r   r   r   r-   rA   rC   rH   rK   rJ   r   r   r   r      sK    - "-  8   $ $   
==	 	   >>	 	 
 
     	 	 ;;
 
.#+r   r   )rO   pprintr   sixr   rer   r   rJ   r   r   <module>rV      s#   	   	g6 gr   