
    x
h                      &   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ej                        Z ej                  e      Z G d	 d
e      Z ej                  e      Z G d dej                         Z ej                   e      Z G d dej                         Z ej                   e      Z G d de      Z ej                  e      Z G d de      Z ej                  e      Z G d de      Z ej                  e      Z G d dej                         Z ej                   e      Z G d dej                         Z ej                   e      Z G d de      Z ej                  e      Z  G d dej                         Z! ej                   e!      Z" G d dej                         Z# ej                   e#      Z$ G d d ej                         Z% ej                   e%      Z& G d! d"ej                         Z' ej                   e'      Z( G d# d$e      Z) ej                  e)      Z* G d% d&ej                        Z+ ej                  e+      Z, G d' d(ej                         Z- ej                   e-      Z. G d) d*ej                         Z/ ej                   e/      Z0 G d+ d,e      Z1 ej                  e1      Z2 G d- d.e      Z3 ej                  e3      Z4 G d/ d0ej                         Z5 ej                   e5      Z6 G d1 d2ej                         Z7 ej                   e7      Z8 G d3 d4ej                         Z9 ej                   e9      Z: G d5 d6ej                        Z; ej                  e;      Z< G d7 d8e      Z= ej                  e=      Z> ej~                  d9d:;      Z@ ej                   ej~                               ZB ej                         e_D         ej                         e_E        ej                  ej                  d<e_F         ed=      e_G         ed>      e_H        i e_F        ej                  j                  ej                          ej                         ej                  _L         eMd?g      e_N        d?ej                  j                  fge_O         ej~                  d9@      ej                  _L        e
j                  ej                  _L         ej                  e&      ej                  _L         ej                         ej                  _L         ej                   ej~                               ej                  _L         eMg dA      e_N        dBej                  j                  fdCej                  j                  fdDej                  j                  fdEej                  j                  fdFej                  j                  fge_O         ej                         e_W         ej                         e_X         ej                         e_Y         ej                         e_Z         ej                         e_[         ej                         e_\        ej                  ej                  ej                  ej                  ej                  ej                  dGe_F        ej                  j                  ej                          edH      e_]         edI      e_^         edJ      e__         edK      e_`         edL      e_a         edM      e_b         ej                         e_c         ej                         e_d        ej                  ej                  dNe_F        ej                  j                  ej                          edO      e_e         edP      e_f        i e_F        ej                  j                  ej                          ej                  e$      ej                  _L         eMdQg      e_N        dQej                  j                  fge_O         ej                  e@      ej                  _L         eMdRg      e_N        dRej                  j                  fge_O         ej                         e_j        dSej                  ie_F        ej                  j                  ej                          edS      e_k         ej                  e$      e!j                  _L         eMdQg      e!_N        dQe!j                  j                  fge!_O        e@e#j                  _L         ej~                  d9@      e#j                  _L         ej~                  d9@      e#j                  _L         ej                  e
j                        e#j                  _L        e	j                  e#j                  _L         ej                  e&      e#j                  _L         ej                         e#j                  _L         ej                         e#j                  _L         ej                   ej~                               e#j                  _L         eMg dT      e#_N        dUe#j                  j                  fdVe#j                  j                  fdBe#j                  j                  fdCe#j                  j                  fdWe#j                  j                  fdDe#j                  j                  fdXe#j                  j                  fdYe#j                  j                  fdFe#j                  j                  fg	e#_O        e	j                  e%j                  _L         ej                  e,      e%j                  _L         eMdDdZg      e%_N        dDe%j                  j                  fdZe%j                  j                  fge%_O        e@e'j                  _L         eMdUg      e'_N        dUe'j                  j                  fge'_O        i e)_F        e)j                  j                  ej                          ej                         e+_t         ej                         e+_u         ej                         e+_v         ej                         e+_w         ej                         e+_x         ej                         e+_E        e+j                  e+j                  e+j                  e+j                  e+j                  e+j                  d[e+_F         e+d\      e+_y         e+d]      e+_z         e+d^      e+_{         e+d_      e+_|         e+d`      e+_}         e+d>      e+_H         ej                         e-j                  _L         eMdag      e-_N        dae-j                  j                  fge-_O         ej~                         e/j                  _L         eMdbg      e/_N        dbe/j                  j                  fge/_O         ej                         e1_        dce1j                   ie1_F        e1j                  j                  ej                          e1dc      e1_        i e3_F        e3j                  j                  ej                          ej                  e$      e5j                  _L         eMdQg      e5_N        dQe5j                  j                  fge5_O         ej                  e$      e7j                  _L         ej~                         e7j                  _L         ej                         e7j                  _L         eMg dd      e7_N        dQe7j                  j                  fdbe7j                  j                  fdee7j                  j                  fge7_O        e@e9j                  _L         ej                   ej~                  d9@            e9j                  _L         ej                  e
j                        e9j                  _L        e<e9j                  _L         ej                   ej                               e9j                  _L         ej                   ej~                               e9j                  _L         eMg df      e9_N        dUe9j                  j                  fdBe9j                  j                  fdCe9j                  j                  fdDe9j                  j                  fdEe9j                  j                  fdFe9j                  j                  fge9_O         ej                         e;_         ej                  e&      e;_         ej                         e;_E        e;j                  e;j                  e;j                  dge;_F         e;dh      e;_         e;d>      e;_H        i e=_F        e=j                  j                  ej                         diej                  _        dje-j                  _        e;j
                  e9j                  _         ej                  dkd9dl ej                         eedmdndodp      Z ej                  dqd9dlee$edmdndodp      Z ej                  drd9dlee"e dmdndodp      Z ej                  dsd9dl ej                         eedmdndodp      Z ej                  dtd9dle(e$e*dmdndodp      Z ej                  dudvdle.e8e4dmdndodp      Z ej                  dud9dl ej                         e6e4dmdndodp      Z ej                  dwd9dle0e8e2dmdndodp      Z ej                  dxd9dle:e$e>dmdndodp      ZIeeeeeeeeeIdy	Zyz){zO
This namespace contains endpoints and data types for file request operations.
    )unicode_literals)
stone_base)stone_validators)common)filesc                   :     e Zd ZdZdZdZdZd Zd Z fdZ	 x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                      | j                   dk(  S )zX
        Check if the union tag is ``disabled_for_team``.

        :rtype: bool
        disabled_for_team_tagselfs    Z/var/www/html/lionshead-backend/venv/lib/python3.12/site-packages/dropbox/file_requests.pyis_disabled_for_teamz-GeneralFileRequestsError.is_disabled_for_team#        yy///    c                      | j                   dk(  S zL
        Check if the union tag is ``other``.

        :rtype: bool
        r
   r   r   s    r   is_otherz!GeneralFileRequestsError.is_other+        yyG##r   c                 0    t         t        |   |||       y N)superr	   _process_custom_annotationsr   annotation_type
field_path	processor	__class__s       r   r   z4GeneralFileRequestsError._process_custom_annotations3       &I/[egpqr   )__name__
__module____qualname____doc__
_catch_allr   r
   r   r   r   __classcell__r!   s   @r   r	   r	      s0    	 JE0$r rr   r	   c                   "     e Zd ZdZ fdZ x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                 0    t         t        |   |||       y r   )r   r+   r   r   s       r   r   z2CountFileRequestsError._process_custom_annotationsA       $dGYcenor   r#   r$   r%   r&   r   r(   r)   s   @r   r+   r+   8       p pr   r+   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 x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_valueTc                 B    t         j                  | _        ||| _        y y r   )bbNOT_SETr2   file_request_count)r   r6   s     r   __init__z CountFileRequestsResult.__init__T   s!    )+&)&8D# *r   r6   c                 0    t         t        |   |||       y r   )r   r1   r   r   s       r   r   z3CountFileRequestsResult._process_custom_annotations]   s    %tHZdfopr   r   )r#   r$   r%   r&   	__slots___has_required_fieldsr7   r4   	Attributer6   r   r(   r)   s   @r   r1   r1   F   sF     	$I   %)9 &&:;q qr   r1   c                        e Zd ZdZg dZdZ	 	 	 	 	 ddZ ej                  d      Z	 ej                  d      Z
 ej                  ddd      Z ej                  d	      Z ej                  d
d      Z fdZ x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_valueTc                 2   t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        ||| _        ||| _        ||| _	        ||| _
        ||| _        y y r   )r4   r5   r>   r?   r@   rA   rB   titledestinationdeadlineopendescription)r   rD   rE   rF   rG   rH   s         r   r7   zCreateFileRequestArgs.__init__   s     JJ"$**!zz::"$**DJ"*D$DMDI"*D #r   rD   rE   rF   nullableuser_definedrG   rH   rJ   c                 0    t         t        |   |||       y r   )r   r=   r   r   s       r   r   z1CreateFileRequestArgs._process_custom_annotations       #TFXbdmnr   )NNNNN)r#   r$   r%   r&   r9   r:   r7   r4   r;   rD   rE   rF   rG   rH   r   r(   r)   s   @r   r=   r=   b   s    $I   !!+. BLL!E ",,}-K r||JDIH 2<<D ",,}t<Ko or   r=   c                   ^     e Zd ZdZdZdZdZdZdZdZ	d Z
d Zd Zd Zd Zd Z fd	Z x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                      | j                   dk(  S )zP
        Check if the union tag is ``not_found``.

        :rtype: bool
        	not_foundr   r   s    r   is_not_foundzFileRequestError.is_not_found        yyK''r   c                      | j                   dk(  S )zS
        Check if the union tag is ``not_a_folder``.

        :rtype: bool
        not_a_folderr   r   s    r   is_not_a_folderz FileRequestError.is_not_a_folder   s     yyN**r   c                      | j                   dk(  S )zW
        Check if the union tag is ``app_lacks_access``.

        :rtype: bool
        app_lacks_accessr   r   s    r   is_app_lacks_accessz$FileRequestError.is_app_lacks_access        yy...r   c                      | j                   dk(  S )zT
        Check if the union tag is ``no_permission``.

        :rtype: bool
        no_permissionr   r   s    r   is_no_permissionz!FileRequestError.is_no_permission   s     yyO++r   c                      | j                   dk(  S )zW
        Check if the union tag is ``email_unverified``.

        :rtype: bool
        email_unverifiedr   r   s    r   is_email_unverifiedz$FileRequestError.is_email_unverified   r[   r   c                      | j                   dk(  S )zW
        Check if the union tag is ``validation_error``.

        :rtype: bool
        validation_errorr   r   s    r   is_validation_errorz$FileRequestError.is_validation_error   r[   r   c                 0    t         t        |   |||       y r   )r   rP   r   r   s       r   r   z,FileRequestError._process_custom_annotations   s    A/S]_hir   )r#   r$   r%   r&   rR   rV   rY   r]   r`   rc   rS   rW   rZ   r^   ra   rd   r   r(   r)   s   @r   rP   rP      sU    4 ILM(+/,//j jr   rP   c                   6     e Zd ZdZdZdZd Zd Z fdZ x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                      | j                   dk(  S )zW
        Check if the union tag is ``invalid_location``.

        :rtype: bool
        invalid_locationr   r   s    r   is_invalid_locationz*CreateFileRequestError.is_invalid_location  r[   r   c                      | j                   dk(  S )zQ
        Check if the union tag is ``rate_limit``.

        :rtype: bool
        
rate_limitr   r   s    r   is_rate_limitz$CreateFileRequestError.is_rate_limit!       yyL((r   c                 0    t         t        |   |||       y r   )r   rg   r   r   s       r   r   z2CreateFileRequestError._process_custom_annotations)  r-   r   )
r#   r$   r%   r&   ri   rl   rj   rm   r   r(   r)   s   @r   rg   rg     s+     J/)p pr   rg   c                   "     e Zd ZdZ fdZ xZS ) 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                 0    t         t        |   |||       y r   )r   rq   r   r   s       r   r   z<DeleteAllClosedFileRequestsError._process_custom_annotations7  s    .QRacmoxyr   r.   r)   s   @r   rq   rq   .  s    z zr   rq   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )!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_valueTc                 B    t         j                  | _        ||| _        y y r   r4   r5   ru   file_requestsr   rx   s     r   r7   z*DeleteAllClosedFileRequestsResult.__init__K  !    $&JJ!$!.D %r   rx   c                 0    t         t        |   |||       y r   )r   rt   r   r   s       r   r   z=DeleteAllClosedFileRequestsResult._process_custom_annotationsT  s    /RSbdnpyzr   r   r#   r$   r%   r&   r9   r:   r7   r4   r;   rx   r   r(   r)   s   @r   rt   rt   <  sD     	I    $/ !BLL1M{ {r   rt   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )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_valueTc                 B    t         j                  | _        ||| _        y y r   )r4   r5   r   ids)r   r   s     r   r7   zDeleteFileRequestArgs.__init__g  s    **?DH r   r   c                 0    t         t        |   |||       y r   )r   r~   r   r   s       r   r   z1DeleteFileRequestArgs._process_custom_annotationsp  rN   r   r   )r#   r$   r%   r&   r9   r:   r7   r4   r;   r   r   r(   r)   s   @r   r~   r~   Y  sD     	I    ",,u
Co or   r~   c                   ,     e Zd ZdZdZd Z fdZ x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                      | j                   dk(  S )zX
        Check if the union tag is ``file_request_open``.

        :rtype: bool
        file_request_openr   r   s    r   is_file_request_openz+DeleteFileRequestError.is_file_request_open  r   r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z2DeleteFileRequestError._process_custom_annotations  r-   r   )r#   r$   r%   r&   r   r   r   r(   r)   s   @r   r   r   u  s!    	 0p pr   r   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )DeleteFileRequestsResultz
    Result for :meth:`dropbox.dropbox_client.Dropbox.file_requests_delete`.

    :ivar file_requests.DeleteFileRequestsResult.file_requests: The file
        requests deleted by the request.
    ru   Tc                 B    t         j                  | _        ||| _        y y r   rw   ry   s     r   r7   z!DeleteFileRequestsResult.__init__  rz   r   rx   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z4DeleteFileRequestsResult._process_custom_annotations  r"   r   r   r|   r)   s   @r   r   r     sD     	I    $/ !BLL1Mr rr   r   c                       e Zd ZdZg dZdZ	 	 	 	 	 	 	 	 	 ddZ ej                  d      Z	 ej                  d      Z
 ej                  d      Z ej                  dd	      Z ej                  d
      Z ej                  ddd      Z ej                  d      Z ej                  d      Z ej                  dd	      Z fdZ x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_valuer>   r?   _created_valuer@   _is_open_value_file_count_valuerB   Tc
                 "   t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _	        t         j                  | _
        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|	| _        y y r   )r4   r5   r   r   r>   r?   r   r@   r   r   rB   idurlrD   rE   createdrF   is_open
file_countrH   )
r   r   r   rD   r   r   r   rE   rF   rH   s
             r   r7   zFileRequest.__init__  s     **JJ"$** jj!zz jj!#"$**>DG?DHDJ"*D"DL$DM"DL!(DO"*D #r   r   r   rD   rE   rL   r   rF   rI   r   r   rH   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z'FileRequest._process_custom_annotations      k4<_jZcdr   )	NNNNNNNNN)r#   r$   r%   r&   r9   r:   r7   r4   r;   r   r   rD   rE   r   rF   r   r   rH   r   r(   r)   s   @r   r   r     s    .
I    !!$+N 
d	B ",,u
C BLL!E ",,}t<K bll9%G r||JDIH bll9%G l+J ",,}t<Ke er   r   c                        e Zd ZdZddgZdZ	 	 d
dZ ej                  d      Z	 ej                  ddd      Z
 fd	Z x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.
    r@   _allow_late_uploads_valueTc                 ~    t         j                  | _        t         j                  | _        ||| _        ||| _        y y r   )r4   r5   r@   r   rF   allow_late_uploads)r   rF   r   s      r   r7   zFileRequestDeadline.__init__)  s<      "zz)+&$DM)&8D# *r   rF   r   rI   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z/FileRequestDeadline._process_custom_annotations9      !4D_V`bklr   )NN)r#   r$   r%   r&   r9   r:   r7   r4   r;   rF   r   r   r(   r)   s   @r   r   r     sc     	#I
   $(9 r||J'H &&:TX\]m mr   r   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )GetFileRequestArgsz
    Arguments for :meth:`dropbox.dropbox_client.Dropbox.file_requests_get`.

    :ivar file_requests.GetFileRequestArgs.id: The ID of the file request to
        retrieve.
    r   Tc                 B    t         j                  | _        ||| _        y y r   )r4   r5   r   r   )r   r   s     r   r7   zGetFileRequestArgs.__init__L  s    >DG r   r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z.GetFileRequestArgs._process_custom_annotationsU  s     $COU_ajkr   r   )r#   r$   r%   r&   r9   r:   r7   r4   r;   r   r   r(   r)   s   @r   r   r   >  sD     	I    
d	Bl lr   r   c                   "     e Zd ZdZ fdZ xZS )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                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z/GetFileRequestError._process_custom_annotationsc  r   r   r.   r)   s   @r   r   r   Z  s    m mr   r   c                   b     e Zd ZdZdZdZdZdZdZdZ	dZ
d Zd Zd Zd Zd Zd	 Z fd
Z x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                      | j                   dk(  S )zN
        Check if the union tag is ``one_day``.

        :rtype: bool
        one_dayr   r   s    r   
is_one_dayzGracePeriod.is_one_day}  s     yyI%%r   c                      | j                   dk(  S )zO
        Check if the union tag is ``two_days``.

        :rtype: bool
        two_daysr   r   s    r   is_two_dayszGracePeriod.is_two_days  s     yyJ&&r   c                      | j                   dk(  S )zQ
        Check if the union tag is ``seven_days``.

        :rtype: bool
        
seven_daysr   r   s    r   is_seven_dayszGracePeriod.is_seven_days  rn   r   c                      | j                   dk(  S )zR
        Check if the union tag is ``thirty_days``.

        :rtype: bool
        thirty_daysr   r   s    r   is_thirty_dayszGracePeriod.is_thirty_days  s     yyM))r   c                      | j                   dk(  S )zM
        Check if the union tag is ``always``.

        :rtype: bool
        alwaysr   r   s    r   	is_alwayszGracePeriod.is_always       yyH$$r   c                      | j                   dk(  S r   r   r   s    r   r   zGracePeriod.is_other  r   r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z'GracePeriod._process_custom_annotations  r   r   )r#   r$   r%   r&   r'   r   r   r   r   r   r
   r   r   r   r   r   r   r   r(   r)   s   @r   r   r   h  sW     JGHJKFE&')*%$e er   r   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )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_valueFc                 B    t         j                  | _        ||| _        y y r   )r4   r5   r   limit)r   r   s     r   r7   zListFileRequestsArg.__init__  s     JJDJ r   r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z/ListFileRequestsArg._process_custom_annotations  r   r   r   )r#   r$   r%   r&   r9   r:   r7   r4   r;   r   r   r(   r)   s   @r   r   r     sD     	I !  BLL!Em mr   r   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )ListFileRequestsContinueArgz
    :ivar file_requests.ListFileRequestsContinueArg.cursor: The cursor returned
        by the previous API call specified in the endpoint description.
    _cursor_valueTc                 B    t         j                  | _        ||| _        y y r   )r4   r5   r   cursor)r   r   s     r   r7   z$ListFileRequestsContinueArg.__init__  s     ZZ DK r   r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z7ListFileRequestsContinueArg._process_custom_annotations  s    )4L_^hjstr   r   )r#   r$   r%   r&   r9   r:   r7   r4   r;   r   r   r(   r)   s   @r   r   r     sD     	I   ! R\\(#Fu ur   r   c                   ,     e Zd ZdZdZd Z fdZ xZS )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                      | j                   dk(  S )zU
        Check if the union tag is ``invalid_cursor``.

        :rtype: bool
        invalid_cursorr   r   s    r   is_invalid_cursorz/ListFileRequestsContinueError.is_invalid_cursor  s     yy,,,r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z9ListFileRequestsContinueError._process_custom_annotations  s    +TN`jluvr   )r#   r$   r%   r&   r   r   r   r(   r)   s   @r   r   r     s     	 N-w wr   r   c                   "     e Zd ZdZ fdZ xZS )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                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z1ListFileRequestsError._process_custom_annotations  rN   r   r.   r)   s   @r   r   r     s    o or   r   c                   Z     e Zd ZdZdgZdZ	 ddZ ej                  d      Z	 fdZ
 xZS )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.
    ru   Tc                 B    t         j                  | _        ||| _        y y r   rw   ry   s     r   r7   zListFileRequestsResult.__init__!  rz   r   rx   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z2ListFileRequestsResult._process_custom_annotations*  r-   r   r   r|   r)   s   @r   r   r     sD     	I    $/ !BLL1Mp pr   r   c                        e Zd ZdZg dZdZ	 	 	 d	dZ ej                  d      Z	 ej                  d      Z
 ej                  d      Z fdZ x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.
    )ru   r   _has_more_valueTc                     t         j                  | _        t         j                  | _        t         j                  | _        ||| _        ||| _        ||| _        y y r   )r4   r5   ru   r   r   rx   r   has_more)r   rx   r   r   s       r   r7   z!ListFileRequestsV2Result.__init__G  sU     %'JJ!ZZ!zz$!.D DK$DM  r   rx   r   r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z4ListFileRequestsV2Result._process_custom_annotations^  r"   r   )NNN)r#   r$   r%   r&   r9   r:   r7   r4   r;   rx   r   r   r   r(   r)   s   @r   r   r   /  si    I    $% !BLL1M R\\(#F r||J'Hr rr   r   c                   .    e Zd ZdZg dZdZ	 	 	 	 	 	 ddZ ej                  d      Z	 ej                  dd      Z
 ej                  dd      Z ej                  d	d
      Z ej                  dd      Z ej                  dd      Z fdZ x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.
    )r   r>   r?   r@   rA   rB   Tc                 n   t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        ||| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        y y r   )r4   r5   r   r>   r?   r@   rA   rB   r   rD   rE   rF   rG   rH   )r   r   rD   rE   rF   rG   rH   s          r   r7   zUpdateFileRequestArgs.__init__  s     JJ"$**!zz::"$**>DGDJ"*D$DMDI"*D #r   r   rD   rL   rE   rF   )rK   rG   rH   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z1UpdateFileRequestArgs._process_custom_annotations  rN   r   )NNNNNN)r#   r$   r%   r&   r9   r:   r7   r4   r;   r   rD   rE   rF   rG   rH   r   r(   r)   s   @r   r   r   c  s    &I   !!+6 
d	B BLL40E ",,}t<K r||JT:H 2<<.D ",,}t<Ko or   r   c                   V     e Zd ZdZdZdZdZed        Zd Z	d Z
d Zd Z fd	Z x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                      | d|      S )z
        Create an instance of this class set to the ``update`` tag with value
        ``val``.

        :param FileRequestDeadline val:
        :rtype: UpdateFileRequestDeadline
        update )clsvals     r   r   z UpdateFileRequestDeadline.update  s     8S!!r   c                      | j                   dk(  S )zP
        Check if the union tag is ``no_update``.

        :rtype: bool
        	no_updater   r   s    r   is_no_updatez&UpdateFileRequestDeadline.is_no_update  rT   r   c                      | j                   dk(  S )zM
        Check if the union tag is ``update``.

        :rtype: bool
        r   r   r   s    r   	is_updatez#UpdateFileRequestDeadline.is_update  r   r   c                      | j                   dk(  S r   r   r   s    r   r   z"UpdateFileRequestDeadline.is_other  r   r   c                 P    | j                         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   s    r   
get_updatez$UpdateFileRequestDeadline.get_update  s$     ~~ !788{{r   c                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z5UpdateFileRequestDeadline._process_custom_annotations  s    'J?\fhqrr   )r#   r$   r%   r&   r'   r   r
   classmethodr   r   r   r   r   r   r(   r)   s   @r   r   r     sK    
 JIE" "(%$
s sr   r   c                   "     e Zd ZdZ fdZ xZS )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                 0    t         t        |   |||       y r   )r   r   r   r   s       r   r   z2UpdateFileRequestError._process_custom_annotations  r-   r   r.   r)   s   @r   r   r     r/   r   r      z[-_0-9a-zA-Z]+)
min_lengthpattern)r   r
   r   r
   r6   )r   )rD   rE   rF   rG   rH   rD   rE   rF   rG   rH   )rR   rV   rY   r]   r`   rc   rR   rV   rY   r]   r`   rc   )ri   rl   ri   rl   rx   r   r   )	r   r   rD   rE   r   rF   r   r   rH   r   r   r   r   r   r   )r   r   r   r   r   r
   r   r   r   r   r   r   r   r   )rx   r   r   r   )r   rD   rE   rF   rG   rH   )r   r   r
   r   Ti  countFuserapi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   stone.backends.python_rsrcr   r4   r   bvdropboxr   r   Unionr	   "GeneralFileRequestsError_validatorr+    CountFileRequestsError_validatorStructr1   !CountFileRequestsResult_validatorr=   CreateFileRequestArgs_validatorrP   FileRequestError_validatorrg    CreateFileRequestError_validatorrq   *DeleteAllClosedFileRequestsError_validatorrt   +DeleteAllClosedFileRequestsResult_validatorr~   DeleteFileRequestArgs_validatorr    DeleteFileRequestError_validatorr   "DeleteFileRequestsResult_validatorr   FileRequest_validatorr   FileRequestDeadline_validatorr   GetFileRequestArgs_validatorr   GetFileRequestError_validatorr   GracePeriod_validatorr   ListFileRequestsArg_validatorr   %ListFileRequestsContinueArg_validatorr   'ListFileRequestsContinueError_validatorr   ListFileRequestsError_validatorr    ListFileRequestsResult_validatorr   "ListFileRequestsV2Result_validatorr   UpdateFileRequestArgs_validatorr   #UpdateFileRequestDeadline_validatorr    UpdateFileRequestError_validatorStringFileRequestId_validatorNullable$FileRequestValidationError_validatorVoid_disabled_for_team_validator_other_validator_tagmapr   r
   r   UInt64r6   	validatorset_all_field_names__all_fields_rD   Path_validatorrE   rF   BooleanrG   rH   _not_found_validator_not_a_folder_validator_app_lacks_access_validator_no_permission_validator_email_unverified_validator_validation_error_validatorrR   rV   rY   r]   r`   rc   _invalid_location_validator_rate_limit_validatorri   rl   Listrx   r   _file_request_open_validatorr   r   r   DropboxTimestamp_validatorr   r   Int64r   r   _one_day_validator_two_days_validator_seven_days_validator_thirty_days_validator_always_validatorr   r   r   r   r   r   r   _invalid_cursor_validatorr   r   _no_update_validator_update_validatorr   defaultRouter   r  r  r  r  list_v2r  list_continueROUTESr   r   r   <module>rO     sD   ( 7 =  #rrxx #rJ &.RXX.F%G "
p5 
p $,288,B#C  qbii q4 %.BII.E$F !CoBII CoJ #,")),A"B Xj/ Xjt &RXX&67 %p- %pN $,288,B#C  
z'7 
z .6RXX6V-W *{		 {6 /8bii8Y.Z +oBII o4 #,")),A"B p- p4 $,288,B#C  rryy r4 &/RYY/G%H "he")) heT "		+. !m")) !mF !*		*= > l l4  )ryy);< 
m* 
m !))< = Fe"(( FeP !- m")) m4 !*		*= > u")) u0 )2		2M(N %w$< w4 +3"((3P*Q '
o4 
o #+"((+@"A pRYY p6 $-299-C#D  0rryy 0rd &/RYY/G%H "LoBII Lo\ #,")),A"B Cs CsJ '/bhh/H&I #
p- 
p $,288,B#C  #"))q:JK '2r{{9299;'? $8?	  5,3BGGI  )1NN%66$   
 .FFY-Z  *!9'!B  "      % %&>&F&F G7@ryy{  * * 4,/1E0F,G  ))=?V?i?i?s?s(t'u  $(1		Q(?    %.3.B.B  ! ! ++62;;7T+U    ('1rzz|    $.9bkk)"))+.F  ! ! +*- / +  ' #))334)55??@&//99:"''112)55??@&  " )0	  %+22779  (/6rwwy  ,,3BGGI  )/6rwwy  ,/6rwwy  ,!66$<<(DD%>>(DD(DD        8 @ @ A-k:   0 @  $45G$H  !!1/!B  $45G$H  !$45G$H  !5<RWWY  2/6rwwy  ,.JJ(>>"      % %&6&>&> ?*@AS*T  '$:<$H  !,   (   ( ( / /0@0H0H I<CBGGDY<Z ! / / 969?:K6L ! 33BDeDsDsD}D}2~1 ! .&-bgg.E&F    #*-ug,  '',.C.G.G.Q.Q&R%S  "6=bggi  3/LL"      % %&6&>&> ?+ABU+V  (3:277;P3Q  & & 0-0/1B-C  **9;S;a;a;k;k)l(m  %2 %BII3 'bii15   $/BKK0D0D$E   ! & A A   !,-J!K    *

   #+288:    $/BKK			$<   ! # 
% 
!  
;>>##$
KOO%%&k))*K++556##--.%%//0##--.;))334K++556
  *0)J)J    &3>2;;?T3U  & & 0(+- )  %
 $--778.AAKKL$   
 #:    '*D6{  $$(*<*?*?*I*I#J"K        " "#3#;#; <!( ")"'') $+BGGI !%,RWWY " '	 &rwwy --//3355++))  "), ":. $\2 %m4  * ( &/biik    #(+WI  %%,.A.G.G.Q.Q$R#S   /8ryy{  " " ,03XJ  --57R7Y7Y7c7c,d+e  (:A"'')  73MM)  %  % % , ,-E-M-M N/LM]/^  ,!      $ $%=%E%E F189N1O  $ $ .+./@+A  ((79O9]9]9g9g'h&i  #3:277;P3Q  & & 0,5BIIK    ).8bjjl  ! ! +-0 2 .  * .<<FFG'..889)22<<=)  % &=    "(3IBII4K(L    %.9bkk%:N:N.O  ! ! ++N    ('2r{{:2::<'@    $.9bkk)"))+.F  ! ! +*- / +  ' 
 ##--.#))334)55??@&//99:"''112)55??@&  " 29  ..9bkk:W.X  +-4RWWY  **??'99&77%  ! '@&L  #";G"D  "      % %&6&>&> ?%)    "$(    !)B)L)L    &	BGGI%$
	 
	#$

 
	#&$

 BHH	BGGI/.
  bhh		 !
 "((
	!&#
 rxx
	BGGI$#
 	)&+
 
	#$

 *"

r   