
    W                     >    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)V1OwnerReferencezw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strbool)api_versionblock_owner_deletion
controllerkindnameuid
apiVersionblockOwnerDeletionr   r   r   r   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        || _        ||| _        ||| _	        || _
        || _        || _        y)z?
        V1OwnerReference - a model defined in Swagger
        N)_api_version_block_owner_deletion_controller_kind_name_uiddiscriminatorr	   r
   r   r   r   r   )selfr	   r
   r   r   r   r   s          >lib/third_party/kubernetes/client/models/v1_owner_reference.py__init__zV1OwnerReference.__init__0   sq     D!%DDDJDJDID"D'"6d"doDIDIDH    c                     | j                   S )z
        Gets the api_version of this V1OwnerReference.
        API version of the referent.

        :return: The api_version of this V1OwnerReference.
        :rtype: str
        )r   r   s    r   r	   zV1OwnerReference.api_versionL   s     r   c                 ,    |t        d      || _        y)z
        Sets the api_version of this V1OwnerReference.
        API version of the referent.

        :param api_version: The api_version of this V1OwnerReference.
        :type: str
        Nz3Invalid value for `api_version`, must not be `None`)
ValueErrorr   )r   r	   s     r   r	   zV1OwnerReference.api_versionW   s     LMM#Dr   c                     | j                   S )a  
        Gets the block_owner_deletion of this V1OwnerReference.
        If true, AND if the owner has the "foregroundDeletion" finalizer, then
        the owner cannot be deleted from the key-value store until this
        reference is removed. Defaults to false. To set this field, a user needs
        "delete" permission of the owner, otherwise 422 (Unprocessable Entity)
        will be returned.

        :return: The block_owner_deletion of this V1OwnerReference.
        :rtype: bool
        r   r   s    r   r
   z%V1OwnerReference.block_owner_deletione   s     %%%r   c                     || _         y)a  
        Sets the block_owner_deletion of this V1OwnerReference.
        If true, AND if the owner has the "foregroundDeletion" finalizer, then
        the owner cannot be deleted from the key-value store until this
        reference is removed. Defaults to false. To set this field, a user needs
        "delete" permission of the owner, otherwise 422 (Unprocessable Entity)
        will be returned.

        :param block_owner_deletion: The block_owner_deletion of this
        V1OwnerReference.
        :type: bool
        Nr"   )r   r
   s     r   r
   z%V1OwnerReference.block_owner_deletiont   s     "6Dr   c                     | j                   S )z
        Gets the controller of this V1OwnerReference.
        If true, this reference points to the managing controller.

        :return: The controller of this V1OwnerReference.
        :rtype: bool
        r   r   s    r   r   zV1OwnerReference.controller   s     r   c                     || _         y)z
        Sets the controller of this V1OwnerReference.
        If true, this reference points to the managing controller.

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

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

        :param kind: The kind of this V1OwnerReference.
        :type: str
        Nz,Invalid value for `kind`, must not be `None`)r    r   )r   r   s     r   r   zV1OwnerReference.kind        |EFFDJr   c                     | j                   S )z
        Gets the name of this V1OwnerReference.
        Name of the referent. More info:
        http://kubernetes.io/docs/user-guide/identifiers#names

        :return: The name of this V1OwnerReference.
        :rtype: str
        )r   r   s    r   r   zV1OwnerReference.name   r(   r   c                 ,    |t        d      || _        y)z
        Sets the name of this V1OwnerReference.
        Name of the referent. More info:
        http://kubernetes.io/docs/user-guide/identifiers#names

        :param name: The name of this V1OwnerReference.
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r    r   )r   r   s     r   r   zV1OwnerReference.name   r*   r   c                     | j                   S )z
        Gets the uid of this V1OwnerReference.
        UID of the referent. More info:
        http://kubernetes.io/docs/user-guide/identifiers#uids

        :return: The uid of this V1OwnerReference.
        :rtype: str
        )r   r   s    r   r   zV1OwnerReference.uid   s     99r   c                 ,    |t        d      || _        y)z
        Sets the uid of this V1OwnerReference.
        UID of the referent. More info:
        http://kubernetes.io/docs/user-guide/identifiers#uids

        :param uid: The uid of this V1OwnerReference.
        :type: str
        Nz+Invalid value for `uid`, must not be `None`)r    r   )r   r   s     r   r   zV1OwnerReference.uid   s     {DEE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hasattrr1   )xs    r   <lambda>z*V1OwnerReference.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*V1OwnerReference.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V1OwnerReference.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V1OwnerReference.to_str  s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rE   r   s    r   __repr__zV1OwnerReference.__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V1OwnerReference.__eq__  s%     e-.==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rJ   s     r   __ne__zV1OwnerReference.__ne__  s     u}r   )NNNNNN)__name__
__module____qualname____doc__r9   attribute_mapr   propertyr	   setterr
   r   r   r   r   r1   rE   rG   rL   rO   rN   r   r   r   r      s    $- "2 -  $(8   $ $ & & 6 6    	" 	" 	 	 ;;  	 	 ;;  	 	 :: .#+r   r   )rS   pprintr   sixr   reobjectr   rN   r   r   <module>r[      s#   	   	Kv Kr   