
    l$                     >    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dZ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d Zd Zd Zd Zd Zy)!V1ObjectReferencezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    str)api_version
field_pathkindname	namespaceresource_versionuid
apiVersion	fieldPathr
   r   r   resourceVersionr   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        yy)z@
        V1ObjectReference - a model defined in Swagger
        N)_api_version_field_path_kind_name
_namespace_resource_version_uiddiscriminatorr   r	   r
   r   r   r   r   )selfr   r	   r
   r   r   r   r   s           ?lib/third_party/kubernetes/client/models/v1_object_reference.py__init__zV1ObjectReference.__init__2   s     DDDJDJDO!DDID$d"dodidi dn#.d
dh     c                     | j                   S )z
        Gets the api_version of this V1ObjectReference.
        API version of the referent.

        :return: The api_version of this V1ObjectReference.
        :rtype: str
        r   r   s    r   r   zV1ObjectReference.api_versionV   s     r   c                     || _         y)z
        Sets the api_version of this V1ObjectReference.
        API version of the referent.

        :param api_version: The api_version of this V1ObjectReference.
        :type: str
        Nr    )r   r   s     r   r   zV1ObjectReference.api_versiona   s     $Dr   c                     | j                   S )a  
        Gets the field_path of this V1ObjectReference.
        If referring to a piece of an object instead of an entire object, this
        string should contain a valid JSON/Go field access statement, such as
        desiredState.manifest.containers[2]. For example, if the object
        reference is to a container within a pod, this would take on a value
        like: "spec.containers{name}" (where "name" refers to the name of
        the container that triggered the event) or if no container name is
        specified "spec.containers[2]" (container with index 2 in this pod).
        This syntax is chosen only to have some well-defined way of referencing
        a part of an object.

        :return: The field_path of this V1ObjectReference.
        :rtype: str
        r   r!   s    r   r	   zV1ObjectReference.field_pathm   s    " r   c                     || _         y)a  
        Sets the field_path of this V1ObjectReference.
        If referring to a piece of an object instead of an entire object, this
        string should contain a valid JSON/Go field access statement, such as
        desiredState.manifest.containers[2]. For example, if the object
        reference is to a container within a pod, this would take on a value
        like: "spec.containers{name}" (where "name" refers to the name of
        the container that triggered the event) or if no container name is
        specified "spec.containers[2]" (container with index 2 in this pod).
        This syntax is chosen only to have some well-defined way of referencing
        a part of an object.

        :param field_path: The field_path of this V1ObjectReference.
        :type: str
        Nr$   )r   r	   s     r   r	   zV1ObjectReference.field_path   s    $ "Dr   c                     | j                   S )a  
        Gets the kind of this V1ObjectReference.
        Kind of the referent. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

        :return: The kind of this V1ObjectReference.
        :rtype: str
        r   r!   s    r   r
   zV1ObjectReference.kind        ::r   c                     || _         y)a  
        Sets the kind of this V1ObjectReference.
        Kind of the referent. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

        :param kind: The kind of this V1ObjectReference.
        :type: str
        Nr'   )r   r
   s     r   r
   zV1ObjectReference.kind        DJr   c                     | j                   S )a  
        Gets the name of this V1ObjectReference.
        Name of the referent. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

        :return: The name of this V1ObjectReference.
        :rtype: str
        r   r!   s    r   r   zV1ObjectReference.name   r(   r   c                     || _         y)a  
        Sets the name of this V1ObjectReference.
        Name of the referent. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

        :param name: The name of this V1ObjectReference.
        :type: str
        Nr,   )r   r   s     r   r   zV1ObjectReference.name   r*   r   c                     | j                   S )a  
        Gets the namespace of this V1ObjectReference.
        Namespace of the referent. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

        :return: The namespace of this V1ObjectReference.
        :rtype: str
        r   r!   s    r   r   zV1ObjectReference.namespace   s     ??r   c                     || _         y)a  
        Sets the namespace of this V1ObjectReference.
        Namespace of the referent. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

        :param namespace: The namespace of this V1ObjectReference.
        :type: str
        Nr/   )r   r   s     r   r   zV1ObjectReference.namespace   s      DOr   c                     | j                   S )ah  
        Gets the resource_version of this V1ObjectReference.
        Specific resourceVersion to which this reference is made, if any. More
        info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

        :return: The resource_version of this V1ObjectReference.
        :rtype: str
        r   r!   s    r   r   z"V1ObjectReference.resource_version   s     !!!r   c                     || _         y)aw  
        Sets the resource_version of this V1ObjectReference.
        Specific resourceVersion to which this reference is made, if any. More
        info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

        :param resource_version: The resource_version of this V1ObjectReference.
        :type: str
        Nr2   )r   r   s     r   r   z"V1ObjectReference.resource_version   s     .Dr   c                     | j                   S )a   
        Gets the uid of this V1ObjectReference.
        UID of the referent. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

        :return: The uid of this V1ObjectReference.
        :rtype: str
        r   r!   s    r   r   zV1ObjectReference.uid   s     99r   c                     || _         y)a  
        Sets the uid of this V1ObjectReference.
        UID of the referent. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

        :param uid: The uid of this V1ObjectReference.
        :type: str
        Nr5   )r   r   s     r   r   zV1ObjectReference.uid  s     DIr   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hasattrr9   )xs    r   <lambda>z+V1ObjectReference.to_dict.<locals>.<lambda>  s    I)>!))+EAEr   r9   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r9   r   r:   )items    r   r=   z+V1ObjectReference.to_dict.<locals>.<lambda>#  s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr;   r9   dictitems)r   resultattr_values        r   r9   zV1ObjectReference.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   r9   r!   s    r   to_strzV1ObjectReference.to_str*  s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rM   r!   s    r   __repr__zV1ObjectReference.__repr__0  s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rC   r   __dict__r   others     r   __eq__zV1ObjectReference.__eq__6  s%     e./==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rR   s     r   __ne__zV1ObjectReference.__ne__?  s     u}r   )NNNNNNN)__name__
__module____qualname____doc__rA   attribute_mapr   propertyr   setterr	   r
   r   r   r   r   r9   rM   rO   rT   rW   rV   r   r   r   r      s    - "+-   $"H   	$ 	$  $ " "& 	 	 ;;
 
 	 	 ;;
 
 	 	 
  
  
" 
" . . 	 	 ::
 
.#+r   r   )r[   pprintr   sixr   reobjectr   rV   r   r   <module>rc      s#   	   	q qr   