o
    È6÷d  ã                   @   s   d dl mZ d dlmZ d dlmZ d dlmZ G dd„ dej	ƒZ
e 	e
¡ZG dd„ dejƒZe e¡Ze ej¡e
j_ed	gƒe
_d	e
jjfge
_e ej¡e_e ¡ e_ejejd
œe_edƒe_e ddde ¡ e ¡ e ¡ ddddœ¡Ze dddee ¡ eddddœ¡ZeedœZdS )é    )Úunicode_literals)Ú
stone_base)Ústone_validators)Úcommonc                       s@   e Zd ZdZdgZdZ	d
dd„Ze d¡Z	‡ fdd	„Z
‡  ZS )ÚDeleteManualContactsArgzx
    :ivar contacts.DeleteManualContactsArg.email_addresses: List of manually
        added contacts to be deleted.
    Ú_email_addresses_valueTNc                 C   s   t j| _|d ur|| _d S d S ©N)ÚbbZNOT_SETr   Úemail_addresses)Úselfr
   © r   úgC:\Users\jesus\OneDrive\Desktop\erpjis_fastapi\backend\jisbackend\Lib\site-packages\dropbox/contacts.pyÚ__init__   s   
ÿz DeleteManualContactsArg.__init__r
   c                    ó   t t| ƒ |||¡ d S r   )Úsuperr   Ú_process_custom_annotations©r   Zannotation_typeZ
field_pathÚ	processor©Ú	__class__r   r   r   !   ó   z3DeleteManualContactsArg._process_custom_annotationsr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Z_has_required_fieldsr   r	   Ú	Attributer
   r   Ú__classcell__r   r   r   r   r      s    ÿ
ÿ
r   c                       sL   e Zd ZdZdZdZedd„ ƒZdd„ Zdd	„ Z	d
d„ Z
‡ fdd„Z‡  ZS )ÚDeleteManualContactsErroraœ  
    This class acts as a tagged union. Only one of the ``is_*`` methods will
    return true. To get the associated value of a tag (if one exists), use the
    corresponding ``get_*`` method.

    :ivar list of [str] contacts.DeleteManualContactsError.contacts_not_found:
        Can't delete contacts from this list. Make sure the list only has
        manually added contacts. The deletion was cancelled.
    ÚotherNc                 C   s
   | d|ƒS )zÁ
        Create an instance of this class set to the ``contacts_not_found`` tag
        with value ``val``.

        :param list of [str] val:
        :rtype: DeleteManualContactsError
        Úcontacts_not_foundr   )ÚclsÚvalr   r   r   r    5   s   
	z,DeleteManualContactsError.contacts_not_foundc                 C   ó
   | j dkS )zY
        Check if the union tag is ``contacts_not_found``.

        :rtype: bool
        r    ©Z_tag©r   r   r   r   Úis_contacts_not_found@   ó   
z/DeleteManualContactsError.is_contacts_not_foundc                 C   r#   )zL
        Check if the union tag is ``other``.

        :rtype: bool
        r   r$   r%   r   r   r   Úis_otherH   r'   z"DeleteManualContactsError.is_otherc                 C   s   |   ¡ stdƒ‚| jS )zñ
        Can't delete contacts from this list. Make sure the list only has
        manually added contacts. The deletion was cancelled.

        Only call this if :meth:`is_contacts_not_found` is true.

        :rtype: list of [str]
        z tag 'contacts_not_found' not set)r&   ÚAttributeErrorÚ_valuer%   r   r   r   Úget_contacts_not_foundP   s   	z0DeleteManualContactsError.get_contacts_not_foundc                    r   r   )r   r   r   r   r   r   r   r   ]   r   z5DeleteManualContactsError._process_custom_annotations)r   r   r   r   Z
_catch_allr   Úclassmethodr    r&   r(   r+   r   r   r   r   r   r   r   &   s    


r   r
   )r    r   r   Údelete_manual_contactsé   FÚuserÚapiZrpc)ÚauthÚhostÚstyleÚdelete_manual_contacts_batch)r-   r4   N)Ú
__future__r   Zstone.backends.python_rsrcr   r	   r   ZbvZdropboxr   ÚStructr   Z!DeleteManualContactsArg_validatorÚUnionr   Z#DeleteManualContactsError_validatorÚListZEmailAddress_validatorr
   Ú	validatorÚsetZ_all_field_names_Z_all_fields_Z_contacts_not_found_validatorZVoidZ_other_validatorZ_tagmapr   ZRouter-   r4   ZROUTESr   r   r   r   Ú<module>   sX   

:
þ
þùþù
þ