o
    È6÷d ¾  ã                   @   s  d Z ddlmZ 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ƒZe e¡ZG dd„ dejƒZe e¡ZG dd„ dejƒZe e¡ZG dd„ deƒZe e¡ZG dd„ deƒZe e¡ZG dd„ deƒZe e¡ZG dd„ dejƒZe e¡ZG dd„ dejƒZe e¡ZG dd„ deƒZe e¡Z G dd„ dejƒZ!e e!¡Z"G dd„ dejƒZ#e e#¡Z$G dd „ d ejƒZ%e e%¡Z&G d!d"„ d"ejƒZ'e e'¡Z(G d#d$„ d$eƒZ)e e)¡Z*G d%d&„ d&ejƒZ+e e+¡Z,G d'd(„ d(ejƒZ-e e-¡Z.G d)d*„ d*ejƒZ/e e/¡Z0G d+d,„ d,eƒZ1e e1¡Z2G d-d.„ d.eƒZ3e e3¡Z4G d/d0„ d0ejƒZ5e e5¡Z6G d1d2„ d2ejƒZ7e e7¡Z8G d3d4„ d4ejƒZ9e e9¡Z:G d5d6„ d6ejƒZ;e e;¡Z<G d7d8„ d8eƒZ=e e=¡Z>ej?d9d:d;Z@e Ae ?¡ ¡ZBe C¡ e_De C¡ e_EejDejEd<œe_Fed=ƒe_Ged>ƒe_Hi e_FejF IejF¡ e J¡ ejK_LeMd?gƒe_Nd?ejKjLfge_Oej?d9d@ejP_Le
jQejR_Le Ae&¡ejS_Le T¡ ejU_Le Ae ?¡ ¡ejV_LeMg dA¢ƒe_NdBejPjLfdCejRjLfdDejSjLfdEejUjLfdFejVjLfge_Oe C¡ e_We C¡ e_Xe C¡ e_Ye C¡ e_Ze C¡ e_[e C¡ e_\ejWejXejYejZej[ej\dGœe_FejF IejF¡ edHƒe_]edIƒe_^edJƒe__edKƒe_`edLƒe_aedMƒe_be C¡ e_ce C¡ e_dejcejddNœe_FejF IejF¡ edOƒe_eedPƒe_fi e_FejF IejF¡ e ge$¡ejh_LeMdQgƒe_NdQejhjLfge_Oe ge@¡eji_LeMdRgƒe_NdRejijLfge_Oe C¡ e_jdSejjie_FejF IejF¡ edSƒe_ke ge$¡e!jh_LeMdQgƒe!_NdQe!jhjLfge!_Oe@e#jl_Lej?d9d@e#jm_Lej?d9d@e#jP_Le Ae
jQ¡e#jR_Le	jne#jo_Le Ae&¡e#jS_Le T¡ e#jp_Le q¡ e#jr_Le Ae ?¡ ¡e#jV_LeMg dT¢ƒe#_NdUe#jljLfdVe#jmjLfdBe#jPjLfdCe#jRjLfdWe#jojLfdDe#jSjLfdXe#jpjLfdYe#jrjLfdFe#jVjLfg	e#_Oe	jne%jS_Le Ae,¡e%js_LeMdDdZgƒe%_NdDe%jSjLfdZe%jsjLfge%_Oe@e'jl_LeMdUgƒe'_NdUe'jljLfge'_Oi e)_Fe)jF IejF¡ e C¡ e+_te C¡ e+_ue C¡ e+_ve C¡ e+_we C¡ e+_xe C¡ e+_Ee+jte+jue+jve+jwe+jxe+jEd[œe+_Fe+d\ƒe+_ye+d]ƒe+_ze+d^ƒe+_{e+d_ƒe+_|e+d`ƒe+_}e+d>ƒe+_He J¡ e-j~_LeMdagƒe-_Ndae-j~jLfge-_Oe ?¡ e/j_LeMdbgƒe/_Ndbe/jjLfge/_Oe C¡ e1_€dce1j€ie1_Fe1jF IejF¡ e1dcƒe1_i e3_Fe3jF IejF¡ e ge$¡e5jh_LeMdQgƒe5_NdQe5jhjLfge5_Oe ge$¡e7jh_Le ?¡ e7j_Le T¡ e7j‚_LeMg dd¢ƒe7_NdQe7jhjLfdbe7jjLfdee7j‚jLfge7_Oe@e9jl_Le Aej?d9d@¡e9jP_Le Ae
jQ¡e9jR_Le<e9jS_Le Ae T¡ ¡e9jU_Le Ae ?¡ ¡e9jV_LeMg df¢ƒe9_NdUe9jljLfdBe9jPjLfdCe9jRjLfdDe9jSjLfdEe9jUjLfdFe9jVjLfge9_Oe C¡ e;_ƒe Ae&¡e;_„e C¡ e;_Ee;jƒe;j„e;jEdgœe;_Fe;dhƒe;_…e;d>ƒe;_Hi e=_Fe=jF IejF¡ diejU_†dje-j~_†e;j…e9jS_†e ‡dkd9dle C¡ eedmdndodpœ¡Zˆe ‡dqd9dlee$edmdndodpœ¡Z‰e ‡drd9dlee"e dmdndodpœ¡ZŠe ‡dsd9dle C¡ eedmdndodpœ¡Z‹e ‡dtd9dle(e$e*dmdndodpœ¡ZŒe ‡dudvdle.e8e4dmdndodpœ¡Ze ‡dud9dle C¡ e6e4dmdndodpœ¡ZŽe ‡dwd9dle0e8e2dmdndodpœ¡Ze ‡dxd9dle:e$e>dmdndodpœ¡ZIeˆe‰eŠe‹eŒeeŽeeIdyœ	ZdzS ){zO
This namespace contains endpoints and data types for file request operations.
é    )Úunicode_literals)Ú
stone_base)Ústone_validators)Úcommon)Úfilesc                       s<   e Zd ZdZdZdZdZdd„ Zdd„ Z‡ fdd	„Z	‡  Z
S )
ÚGeneralFileRequestsErrora“  
    There is an error accessing the file requests functionality.

    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 file_requests.GeneralFileRequestsError.disabled_for_team: This user's
        Dropbox Business team doesn't allow file requests.
    ÚotherNc                 C   ó
   | j dkS )zX
        Check if the union tag is ``disabled_for_team``.

        :rtype: bool
        Údisabled_for_team©Z_tag©Úself© r   úlC:\Users\jesus\OneDrive\Desktop\erpjis_fastapi\backend\jisbackend\Lib\site-packages\dropbox/file_requests.pyÚis_disabled_for_team#   ó   
z-GeneralFileRequestsError.is_disabled_for_teamc                 C   r	   ©zL
        Check if the union tag is ``other``.

        :rtype: bool
        r   r   r   r   r   r   Úis_other+   r   z!GeneralFileRequestsError.is_otherc                    ó   t t| ƒ |||¡ d S ©N)Úsuperr   Ú_process_custom_annotations©r   Zannotation_typeZ
field_pathÚ	processor©Ú	__class__r   r   r   3   ó   z4GeneralFileRequestsError._process_custom_annotations)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
_catch_allr
   r   r   r   r   Ú__classcell__r   r   r   r   r      s    r   c                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )ÚCountFileRequestsErrorzù
    There was an error counting the file requests.

    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.
    c                    r   r   )r   r$   r   r   r   r   r   r   A   r   z2CountFileRequestsError._process_custom_annotations©r   r   r   r    r   r"   r   r   r   r   r$   8   ó    r$   c                       ó@   e Zd ZdZdgZdZ	d
dd„Ze d¡Z	‡ fdd	„Z
‡  ZS )ÚCountFileRequestsResultzÊ
    Result for :meth:`dropbox.dropbox_client.Dropbox.file_requests_count`.

    :ivar file_requests.CountFileRequestsResult.file_request_count: The number
        file requests owner by this user.
    Ú_file_request_count_valueTNc                 C   ó   t j| _|d ur|| _d S d S r   )ÚbbÚNOT_SETr)   Úfile_request_count)r   r-   r   r   r   Ú__init__T   ó   
ÿz CountFileRequestsResult.__init__r-   c                    r   r   )r   r(   r   r   r   r   r   r   ]   r   z3CountFileRequestsResult._process_custom_annotationsr   )r   r   r   r    Ú	__slots__Ú_has_required_fieldsr.   r+   Ú	Attributer-   r   r"   r   r   r   r   r(   F   ó    ÿ
ÿ
r(   c                       s|   e Zd ZdZg d¢ZdZ					ddd„Ze d¡Z	e d¡Z
ejd	ddd
Ze d¡ZejdddZ‡ fdd„Z‡  ZS )ÚCreateFileRequestArgsa”  
    Arguments for :meth:`dropbox.dropbox_client.Dropbox.file_requests_create`.

    :ivar file_requests.CreateFileRequestArgs.title: The title of the file
        request. Must not be empty.
    :ivar file_requests.CreateFileRequestArgs.destination: The path of the
        folder in the Dropbox where uploaded files will be sent. For apps with
        the app folder permission, this will be relative to the app folder.
    :ivar file_requests.CreateFileRequestArgs.deadline: The deadline for the
        file request. Deadlines can only be set by Professional and Business
        accounts.
    :ivar file_requests.CreateFileRequestArgs.open: Whether or not the file
        request should be open. If the file request is closed, it will not
        accept any file submissions, but it can be opened later.
    :ivar file_requests.CreateFileRequestArgs.description: A description of the
        file request.
    )Ú_title_valueÚ_destination_valueÚ_deadline_valueÚ_open_valueÚ_description_valueTNc                 C   sv   t j| _t j| _t j| _t j| _t j| _|d ur|| _|d ur"|| _|d ur)|| _	|d ur0|| _
|d ur9|| _d S d S r   )r+   r,   r5   r6   r7   r8   r9   ÚtitleÚdestinationÚdeadlineÚopenÚdescription)r   r:   r;   r<   r=   r>   r   r   r   r.      s    
ÿzCreateFileRequestArgs.__init__r:   r;   r<   ©ÚnullableÚuser_definedr=   r>   ©r@   c                    r   r   )r   r4   r   r   r   r   r   r   ¤   r   z1CreateFileRequestArgs._process_custom_annotations)NNNNN)r   r   r   r    r0   r1   r.   r+   r2   r:   r;   r<   r=   r>   r   r"   r   r   r   r   r4   b   s     
û


r4   c                       sh   e Zd ZdZdZdZdZdZdZdZ	dd„ Z
dd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z‡ fdd„Z‡  ZS )ÚFileRequestErrora  
    There is an error with the file request.

    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 file_requests.FileRequestError.not_found: This file request ID was not
        found.
    :ivar file_requests.FileRequestError.not_a_folder: The specified path is not
        a folder.
    :ivar file_requests.FileRequestError.app_lacks_access: This file request is
        not accessible to this app. Apps with the app folder permission can only
        access file requests in their app folder.
    :ivar file_requests.FileRequestError.no_permission: This user doesn't have
        permission to access or modify this file request.
    :ivar file_requests.FileRequestError.email_unverified: This user's email
        address is not verified. File requests are only available on accounts
        with a verified email address. Users can verify their email address
        `here <https://www.dropbox.com/help/317>`_.
    :ivar file_requests.FileRequestError.validation_error: There was an error
        validating the request. For example, the title was invalid, or there
        were disallowed characters in the destination path.
    Nc                 C   r	   )zP
        Check if the union tag is ``not_found``.

        :rtype: bool
        Ú	not_foundr   r   r   r   r   Úis_not_foundÐ   r   zFileRequestError.is_not_foundc                 C   r	   )zS
        Check if the union tag is ``not_a_folder``.

        :rtype: bool
        Únot_a_folderr   r   r   r   r   Úis_not_a_folderØ   r   z FileRequestError.is_not_a_folderc                 C   r	   )zW
        Check if the union tag is ``app_lacks_access``.

        :rtype: bool
        Úapp_lacks_accessr   r   r   r   r   Úis_app_lacks_accessà   r   z$FileRequestError.is_app_lacks_accessc                 C   r	   )zT
        Check if the union tag is ``no_permission``.

        :rtype: bool
        Úno_permissionr   r   r   r   r   Úis_no_permissionè   r   z!FileRequestError.is_no_permissionc                 C   r	   )zW
        Check if the union tag is ``email_unverified``.

        :rtype: bool
        Úemail_unverifiedr   r   r   r   r   Úis_email_unverifiedð   r   z$FileRequestError.is_email_unverifiedc                 C   r	   )zW
        Check if the union tag is ``validation_error``.

        :rtype: bool
        Úvalidation_errorr   r   r   r   r   Úis_validation_errorø   r   z$FileRequestError.is_validation_errorc                    r   r   )r   rC   r   r   r   r   r   r      r   z,FileRequestError._process_custom_annotations)r   r   r   r    rD   rF   rH   rJ   rL   rN   rE   rG   rI   rK   rM   rO   r   r"   r   r   r   r   rC   ©   s    rC   c                       s8   e Zd ZdZdZdZdd„ Zdd„ Z‡ fdd„Z‡  Z	S )	ÚCreateFileRequestErrora7  
    There was an error creating the file request.

    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 file_requests.CreateFileRequestError.invalid_location: File requests
        are not available on the specified folder.
    :ivar file_requests.CreateFileRequestError.rate_limit: The user has reached
        the rate limit for creating file requests. The limit is currently 4000
        file requests total.
    Nc                 C   r	   )zW
        Check if the union tag is ``invalid_location``.

        :rtype: bool
        Úinvalid_locationr   r   r   r   r   Úis_invalid_location  r   z*CreateFileRequestError.is_invalid_locationc                 C   r	   )zQ
        Check if the union tag is ``rate_limit``.

        :rtype: bool
        Ú
rate_limitr   r   r   r   r   Úis_rate_limit!  r   z$CreateFileRequestError.is_rate_limitc                    r   r   )r   rP   r   r   r   r   r   r   )  r   z2CreateFileRequestError._process_custom_annotations)
r   r   r   r    rQ   rS   rR   rT   r   r"   r   r   r   r   rP     s    rP   c                       r#   )Ú DeleteAllClosedFileRequestsErrora   
    There was an error deleting all closed file requests.

    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.
    c                    r   r   )r   rU   r   r   r   r   r   r   7  r   z<DeleteAllClosedFileRequestsError._process_custom_annotationsr%   r   r   r   r   rU   .  r&   rU   c                       r'   )Ú!DeleteAllClosedFileRequestsResultzÛ
    Result for
    :meth:`dropbox.dropbox_client.Dropbox.file_requests_delete_all_closed`.

    :ivar file_requests.DeleteAllClosedFileRequestsResult.file_requests: The
        file requests deleted for this user.
    Ú_file_requests_valueTNc                 C   r*   r   ©r+   r,   rW   Úfile_requests©r   rY   r   r   r   r.   K  r/   z*DeleteAllClosedFileRequestsResult.__init__rY   c                    r   r   )r   rV   r   r   r   r   r   r   T  r   z=DeleteAllClosedFileRequestsResult._process_custom_annotationsr   ©r   r   r   r    r0   r1   r.   r+   r2   rY   r   r"   r   r   r   r   rV   <  ó    	ÿ
ÿ
rV   c                       r'   )ÚDeleteFileRequestArgsz¹
    Arguments for :meth:`dropbox.dropbox_client.Dropbox.file_requests_delete`.

    :ivar file_requests.DeleteFileRequestArgs.ids: List IDs of the file requests
        to delete.
    Ú
_ids_valueTNc                 C   r*   r   )r+   r,   r^   Úids)r   r_   r   r   r   r.   g  r/   zDeleteFileRequestArgs.__init__r_   c                    r   r   )r   r]   r   r   r   r   r   r   p  r   z1DeleteFileRequestArgs._process_custom_annotationsr   )r   r   r   r    r0   r1   r.   r+   r2   r_   r   r"   r   r   r   r   r]   Y  r3   r]   c                       ó,   e Zd ZdZdZdd„ Z‡ fdd„Z‡  ZS )ÚDeleteFileRequestErrorap  
    There was an error deleting these file requests.

    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 file_requests.DeleteFileRequestError.file_request_open: One or more
        file requests currently open.
    Nc                 C   r	   )zX
        Check if the union tag is ``file_request_open``.

        :rtype: bool
        Úfile_request_openr   r   r   r   r   Úis_file_request_open„  r   z+DeleteFileRequestError.is_file_request_openc                    r   r   )r   ra   r   r   r   r   r   r   Œ  r   z2DeleteFileRequestError._process_custom_annotations)r   r   r   r    rb   rc   r   r"   r   r   r   r   ra   u  ó
    ra   c                       r'   )ÚDeleteFileRequestsResultzÄ
    Result for :meth:`dropbox.dropbox_client.Dropbox.file_requests_delete`.

    :ivar file_requests.DeleteFileRequestsResult.file_requests: The file
        requests deleted by the request.
    rW   TNc                 C   r*   r   rX   rZ   r   r   r   r.   Ÿ  r/   z!DeleteFileRequestsResult.__init__rY   c                    r   r   )r   re   r   r   r   r   r   r   ¨  r   z4DeleteFileRequestsResult._process_custom_annotationsr   r[   r   r   r   r   re   ‘  r3   re   c                       s°   e Zd ZdZg d¢ZdZ									ddd„Ze d¡Z	e d¡Z
e d	¡Zejd
ddZe d¡ZejddddZe d¡Ze d¡ZejdddZ‡ fdd„Z‡  ZS )ÚFileRequesta°  
    A `file request <https://www.dropbox.com/help/9090>`_ for receiving files
    into the user's Dropbox account.

    :ivar file_requests.FileRequest.id: The ID of the file request.
    :ivar file_requests.FileRequest.url: The URL of the file request.
    :ivar file_requests.FileRequest.title: The title of the file request.
    :ivar file_requests.FileRequest.destination: The path of the folder in the
        Dropbox where uploaded files will be sent. This can be None if the
        destination was removed. For apps with the app folder permission, this
        will be relative to the app folder.
    :ivar file_requests.FileRequest.created: When this file request was created.
    :ivar file_requests.FileRequest.deadline: The deadline for this file
        request. Only set if the request has a deadline.
    :ivar file_requests.FileRequest.is_open: Whether or not the file request is
        open. If the file request is closed, it will not accept any more file
        submissions.
    :ivar file_requests.FileRequest.file_count: The number of files this file
        request has received.
    :ivar file_requests.FileRequest.description: A description of the file
        request.
    )	Ú	_id_valueÚ
_url_valuer5   r6   Ú_created_valuer7   Ú_is_open_valueÚ_file_count_valuer9   TNc
           
      C   sÎ   t j| _t j| _t j| _t j| _t j| _t j| _t j| _t j| _	t j| _
|d ur+|| _|d ur2|| _|d ur9|| _|d ur@|| _|d urG|| _|d urN|| _|d urU|| _|d ur\|| _|	d ure|	| _d S d S r   )r+   r,   rg   rh   r5   r6   ri   r7   rj   rk   r9   ÚidÚurlr:   r;   Úcreatedr<   Úis_openÚ
file_countr>   )
r   rl   rm   r:   rn   ro   rp   r;   r<   r>   r   r   r   r.   Ó  s8   

ÿzFileRequest.__init__rl   rm   r:   r;   rB   rn   r<   r?   ro   rp   r>   c                    r   r   )r   rf   r   r   r   r   r   r     r   z'FileRequest._process_custom_annotations)	NNNNNNNNN)r   r   r   r    r0   r1   r.   r+   r2   rl   rm   r:   r;   rn   r<   ro   rp   r>   r   r"   r   r   r   r   rf   ­  s0    
÷
'




rf   c                       sT   e Zd ZdZddgZdZ		ddd„Ze d¡Z	ejd	ddd
Z
‡ fdd„Z‡  ZS )ÚFileRequestDeadlinea  
    :ivar file_requests.FileRequestDeadline.deadline: The deadline for this file
        request.
    :ivar file_requests.FileRequestDeadline.allow_late_uploads: If set, allow
        uploads after the deadline has passed. These     uploads will be marked
        overdue.
    r7   Ú_allow_late_uploads_valueTNc                 C   s4   t j| _t j| _|d ur|| _|d ur|| _d S d S r   )r+   r,   r7   rr   r<   Úallow_late_uploads)r   r<   rs   r   r   r   r.   )  s   
ÿzFileRequestDeadline.__init__r<   rs   r?   c                    r   r   )r   rq   r   r   r   r   r   r   9  r   z/FileRequestDeadline._process_custom_annotations)NN)r   r   r   r    r0   r1   r.   r+   r2   r<   rs   r   r"   r   r   r   r   rq     s    	þ
þ
rq   c                       r'   )ÚGetFileRequestArgsz±
    Arguments for :meth:`dropbox.dropbox_client.Dropbox.file_requests_get`.

    :ivar file_requests.GetFileRequestArgs.id: The ID of the file request to
        retrieve.
    rg   TNc                 C   r*   r   )r+   r,   rg   rl   )r   rl   r   r   r   r.   L  r/   zGetFileRequestArgs.__init__rl   c                    r   r   )r   rt   r   r   r   r   r   r   U  r   z.GetFileRequestArgs._process_custom_annotationsr   )r   r   r   r    r0   r1   r.   r+   r2   rl   r   r"   r   r   r   r   rt   >  r3   rt   c                       r#   )ÚGetFileRequestErrora  
    There was an error retrieving the specified file request.

    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.
    c                    r   r   )r   ru   r   r   r   r   r   r   c  r   z/GetFileRequestError._process_custom_annotationsr%   r   r   r   r   ru   Z  r&   ru   c                       sl   e Zd ZdZdZdZdZdZdZdZ	dZ
dd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Z‡ fdd„Z‡  ZS )ÚGracePeriodzÅ
    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.
    r   Nc                 C   r	   )zN
        Check if the union tag is ``one_day``.

        :rtype: bool
        Úone_dayr   r   r   r   r   Ú
is_one_day}  r   zGracePeriod.is_one_dayc                 C   r	   )zO
        Check if the union tag is ``two_days``.

        :rtype: bool
        Útwo_daysr   r   r   r   r   Úis_two_days…  r   zGracePeriod.is_two_daysc                 C   r	   )zQ
        Check if the union tag is ``seven_days``.

        :rtype: bool
        Ú
seven_daysr   r   r   r   r   Úis_seven_days  r   zGracePeriod.is_seven_daysc                 C   r	   )zR
        Check if the union tag is ``thirty_days``.

        :rtype: bool
        Úthirty_daysr   r   r   r   r   Úis_thirty_days•  r   zGracePeriod.is_thirty_daysc                 C   r	   )zM
        Check if the union tag is ``always``.

        :rtype: bool
        Úalwaysr   r   r   r   r   Ú	is_always  r   zGracePeriod.is_alwaysc                 C   r	   r   r   r   r   r   r   r   ¥  r   zGracePeriod.is_otherc                    r   r   )r   rv   r   r   r   r   r   r   ­  r   z'GracePeriod._process_custom_annotations)r   r   r   r    r!   rw   ry   r{   r}   r   r   rx   rz   r|   r~   r€   r   r   r"   r   r   r   r   rv   h  s     rv   c                       r'   )ÚListFileRequestsArgz×
    Arguments for :meth:`dropbox.dropbox_client.Dropbox.file_requests_list`.

    :ivar file_requests.ListFileRequestsArg.limit: The maximum number of file
        requests that should be returned per request.
    Ú_limit_valueFNc                 C   r*   r   )r+   r,   r‚   Úlimit)r   rƒ   r   r   r   r.   À  r/   zListFileRequestsArg.__init__rƒ   c                    r   r   )r   r   r   r   r   r   r   r   É  r   z/ListFileRequestsArg._process_custom_annotationsr   )r   r   r   r    r0   r1   r.   r+   r2   rƒ   r   r"   r   r   r   r   r   ²  r3   r   c                       r'   )ÚListFileRequestsContinueArgz
    :ivar file_requests.ListFileRequestsContinueArg.cursor: The cursor returned
        by the previous API call specified in the endpoint description.
    Ú_cursor_valueTNc                 C   r*   r   )r+   r,   r…   Úcursor)r   r†   r   r   r   r.   Ú  r/   z$ListFileRequestsContinueArg.__init__r†   c                    r   r   )r   r„   r   r   r   r   r   r   ã  r   z7ListFileRequestsContinueArg._process_custom_annotationsr   )r   r   r   r    r0   r1   r.   r+   r2   r†   r   r"   r   r   r   r   r„   Î  s    ÿ
ÿ
r„   c                       r`   )ÚListFileRequestsContinueErroraa  
    There was an error retrieving the file requests.

    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 file_requests.ListFileRequestsContinueError.invalid_cursor: The cursor
        is invalid.
    Nc                 C   r	   )zU
        Check if the union tag is ``invalid_cursor``.

        :rtype: bool
        Úinvalid_cursorr   r   r   r   r   Úis_invalid_cursor÷  r   z/ListFileRequestsContinueError.is_invalid_cursorc                    r   r   )r   r‡   r   r   r   r   r   r   ÿ  r   z9ListFileRequestsContinueError._process_custom_annotations)r   r   r   r    rˆ   r‰   r   r"   r   r   r   r   r‡   è  rd   r‡   c                       r#   )ÚListFileRequestsErrorzû
    There was an error retrieving the file requests.

    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.
    c                    r   r   )r   rŠ   r   r   r   r   r   r     r   z1ListFileRequestsError._process_custom_annotationsr%   r   r   r   r   rŠ     r&   rŠ   c                       r'   )ÚListFileRequestsResulta  
    Result for :meth:`dropbox.dropbox_client.Dropbox.file_requests_list`.

    :ivar file_requests.ListFileRequestsResult.file_requests: The file requests
        owned by this user. Apps with the app folder permission will only see
        file requests in their app folder.
    rW   TNc                 C   r*   r   rX   rZ   r   r   r   r.   !  r/   zListFileRequestsResult.__init__rY   c                    r   r   )r   r‹   r   r   r   r   r   r   *  r   z2ListFileRequestsResult._process_custom_annotationsr   r[   r   r   r   r   r‹     r\   r‹   c                       sZ   e Zd ZdZg d¢ZdZ			ddd„Ze d¡Z	e d¡Z
e d	¡Z‡ fd
d„Z‡  ZS )ÚListFileRequestsV2Resulta  
    Result for :meth:`dropbox.dropbox_client.Dropbox.file_requests_list` and
    :meth:`dropbox.dropbox_client.Dropbox.file_requests_list_continue`.

    :ivar file_requests.ListFileRequestsV2Result.file_requests: The file
        requests owned by this user. Apps with the app folder permission will
        only see file requests in their app folder.
    :ivar file_requests.ListFileRequestsV2Result.cursor: Pass the cursor into
        :meth:`dropbox.dropbox_client.Dropbox.file_requests_list_continue` to
        obtain additional file requests.
    :ivar file_requests.ListFileRequestsV2Result.has_more: Is true if there are
        additional file requests that have not been returned yet. An additional
        call to :route:list/continue` can retrieve them.
    )rW   r…   Ú_has_more_valueTNc                 C   sJ   t j| _t j| _t j| _|d ur|| _|d ur|| _|d ur#|| _d S d S r   )r+   r,   rW   r…   r   rY   r†   Úhas_more)r   rY   r†   rŽ   r   r   r   r.   G  s   
ÿz!ListFileRequestsV2Result.__init__rY   r†   rŽ   c                    r   r   )r   rŒ   r   r   r   r   r   r   ^  r   z4ListFileRequestsV2Result._process_custom_annotations)NNN)r   r   r   r    r0   r1   r.   r+   r2   rY   r†   rŽ   r   r"   r   r   r   r   rŒ   /  s    
ý


rŒ   c                       s’   e Zd ZdZg d¢ZdZ						ddd„Ze d¡Z	ejddd	Z
ejd
dd	ZejdddZejddd	Zejddd	Z‡ fdd„Z‡  ZS )ÚUpdateFileRequestArgsaš  
    Arguments for :meth:`dropbox.dropbox_client.Dropbox.file_requests_update`.

    :ivar file_requests.UpdateFileRequestArgs.id: The ID of the file request to
        update.
    :ivar file_requests.UpdateFileRequestArgs.title: The new title of the file
        request. Must not be empty.
    :ivar file_requests.UpdateFileRequestArgs.destination: The new path of the
        folder in the Dropbox where uploaded files will be sent. For apps with
        the app folder permission, this will be relative to the app folder.
    :ivar file_requests.UpdateFileRequestArgs.deadline: The new deadline for the
        file request. Deadlines can only be set by Professional and Business
        accounts.
    :ivar file_requests.UpdateFileRequestArgs.open: Whether to set this file
        request as open or closed.
    :ivar file_requests.UpdateFileRequestArgs.description: The description of
        the file request.
    )rg   r5   r6   r7   r8   r9   TNc                 C   sŒ   t j| _t j| _t j| _t j| _t j| _t j| _|d ur|| _|d ur&|| _	|d ur-|| _
|d ur4|| _|d ur;|| _|d urD|| _d S d S r   )r+   r,   rg   r5   r6   r7   r8   r9   rl   r:   r;   r<   r=   r>   )r   rl   r:   r;   r<   r=   r>   r   r   r   r.   ‚  s&   
ÿzUpdateFileRequestArgs.__init__rl   r:   rB   r;   r<   )rA   r=   r>   c                    r   r   )r   r   r   r   r   r   r   r   ®  r   z1UpdateFileRequestArgs._process_custom_annotations)NNNNNN)r   r   r   r    r0   r1   r.   r+   r2   rl   r:   r;   r<   r=   r>   r   r"   r   r   r   r   r   c  s$    	
ú
r   c                       sX   e Zd ZdZdZdZdZedd„ ƒZdd„ Z	dd	„ Z
d
d„ Zdd„ Z‡ fdd„Z‡  ZS )ÚUpdateFileRequestDeadlineaÖ  
    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 file_requests.UpdateFileRequestDeadline.no_update: Do not change the
        file request's deadline.
    :ivar Optional[FileRequestDeadline]
        file_requests.UpdateFileRequestDeadline.update: If :val:`null`, the file
        request's deadline is cleared.
    r   Nc                 C   s
   | d|ƒS )z»
        Create an instance of this class set to the ``update`` tag with value
        ``val``.

        :param FileRequestDeadline val:
        :rtype: UpdateFileRequestDeadline
        Úupdater   )ÚclsÚvalr   r   r   r‘   Æ  s   
	z UpdateFileRequestDeadline.updatec                 C   r	   )zP
        Check if the union tag is ``no_update``.

        :rtype: bool
        Ú	no_updater   r   r   r   r   Úis_no_updateÑ  r   z&UpdateFileRequestDeadline.is_no_updatec                 C   r	   )zM
        Check if the union tag is ``update``.

        :rtype: bool
        r‘   r   r   r   r   r   Ú	is_updateÙ  r   z#UpdateFileRequestDeadline.is_updatec                 C   r	   r   r   r   r   r   r   r   á  r   z"UpdateFileRequestDeadline.is_otherc                 C   s   |   ¡ stdƒ‚| jS )z
        If None, the file request's deadline is cleared.

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

        :rtype: FileRequestDeadline
        ztag 'update' not set)r–   ÚAttributeErrorÚ_valuer   r   r   r   Ú
get_updateé  s   z$UpdateFileRequestDeadline.get_updatec                    r   r   )r   r   r   r   r   r   r   r   õ  r   z5UpdateFileRequestDeadline._process_custom_annotations)r   r   r   r    r!   r”   r   Úclassmethodr‘   r•   r–   r   r™   r   r"   r   r   r   r   r   ³  s    

r   c                       r#   )ÚUpdateFileRequestErrorz÷
    There is an error updating the file request.

    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.
    c                    r   r   )r   r›   r   r   r   r   r   r     r   z2UpdateFileRequestError._process_custom_annotationsr%   r   r   r   r   r›   ú  r&   r›   é   z[-_0-9a-zA-Z]+)Ú
min_lengthÚpattern)r
   r   r
   r   r-   )r   )r:   r;   r<   r=   r>   r:   r;   r<   r=   r>   )rD   rF   rH   rJ   rL   rN   rD   rF   rH   rJ   rL   rN   )rQ   rS   rQ   rS   rY   r_   rb   )	rl   rm   r:   r;   rn   r<   ro   rp   r>   rl   rm   rn   ro   rp   rs   )rw   ry   r{   r}   r   r   rw   ry   r{   r}   r   rƒ   r†   rˆ   )rY   r†   rŽ   rŽ   )rl   r:   r;   r<   r=   r>   )r”   r‘   r   r”   Tiè  ÚcountFÚuserÚapiZrpc)ÚauthÚhostÚstyleÚcreateÚdeleteÚdelete_all_closedÚgetÚlisté   úlist/continuer‘   )	rŸ   r¥   r¦   r§   r¨   zlist:2r©   r«   r‘   N)‘r    Ú
__future__r   Zstone.backends.python_rsrcr   r+   r   ZbvZdropboxr   r   ÚUnionr   Z"GeneralFileRequestsError_validatorr$   Z CountFileRequestsError_validatorÚStructr(   Z!CountFileRequestsResult_validatorr4   ZCreateFileRequestArgs_validatorrC   ZFileRequestError_validatorrP   Z CreateFileRequestError_validatorrU   Z*DeleteAllClosedFileRequestsError_validatorrV   Z+DeleteAllClosedFileRequestsResult_validatorr]   ZDeleteFileRequestArgs_validatorra   Z DeleteFileRequestError_validatorre   Z"DeleteFileRequestsResult_validatorrf   ZFileRequest_validatorrq   ZFileRequestDeadline_validatorrt   ZGetFileRequestArgs_validatorru   ZGetFileRequestError_validatorrv   ZGracePeriod_validatorr   ZListFileRequestsArg_validatorr„   Z%ListFileRequestsContinueArg_validatorr‡   Z'ListFileRequestsContinueError_validatorrŠ   ZListFileRequestsError_validatorr‹   Z ListFileRequestsResult_validatorrŒ   Z"ListFileRequestsV2Result_validatorr   ZUpdateFileRequestArgs_validatorr   Z#UpdateFileRequestDeadline_validatorr›   Z UpdateFileRequestError_validatorÚStringZFileRequestId_validatorZNullableZ$FileRequestValidationError_validatorZVoidZ_disabled_for_team_validatorZ_other_validatorZ_tagmapr
   r   r‘   ZUInt64r-   Ú	validatorÚsetZ_all_field_names_Z_all_fields_r:   ZPath_validatorr;   r<   ÚBooleanr=   r>   Z_not_found_validatorZ_not_a_folder_validatorZ_app_lacks_access_validatorZ_no_permission_validatorZ_email_unverified_validatorZ_validation_error_validatorrD   rF   rH   rJ   rL   rN   Z_invalid_location_validatorZ_rate_limit_validatorrQ   rS   ÚListrY   r_   Z_file_request_open_validatorrb   rl   rm   ZDropboxTimestamp_validatorrn   ro   ZInt64rp   rs   Z_one_day_validatorZ_two_days_validatorZ_seven_days_validatorZ_thirty_days_validatorZ_always_validatorrw   ry   r{   r}   r   rƒ   r†   Z_invalid_cursor_validatorrˆ   rŽ   Z_no_update_validatorZ_update_validatorr”   ÚdefaultZRouterŸ   r¥   r¦   r§   r¨   Zlist_v2r©   Zlist_continueZROUTESr   r   r   r   Ú<module>   sº  
%


E
Z
'





j
#


H





2
N
E


þ







û





ú







þ


ÿ










÷
þ

þ





ú
	





ÿ



ý
	




ú
	
ý


þùþùþùþùþùþùþùþùþù
÷