
    x
h                         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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 ej"                         e_         ej&                         e_        ej$                  ej(                  de_         ed      e_        e	ej.                  _         edg      e_        dej.                  j0                  fge_         ej&                         e_         ej&                         e_         ej&                         e_         ej&                         e_         ej&                         e_          ej&                         e_        ej8                  ej:                  ej<                  ej>                  ej@                  ej(                  de_         ed      e_!         ed      e_"         ed      e_#         ed      e_$         ed      e_%         ed      e_         ej"                         ejL                  _         edg      e_        dejL                  j0                  fge_         ejN                  dddeeedddd      Z(de(iZ)y)    )unicode_literals)
stone_base)stone_validatorsc                   L     e Zd ZdZdZdZed        Zd Zd Z	d Z
 fdZ xZS )	PhotoSourceArga$  
    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 str account.PhotoSourceArg.base64_data: Image data in base64-encoded
        bytes.
    otherNc                      | d|      S )z
        Create an instance of this class set to the ``base64_data`` tag with
        value ``val``.

        :param str val:
        :rtype: PhotoSourceArg
        base64_data )clsvals     T/var/www/html/lionshead-backend/venv/lib/python3.12/site-packages/dropbox/account.pyr
   zPhotoSourceArg.base64_data   s     =#&&    c                      | j                   dk(  S )zR
        Check if the union tag is ``base64_data``.

        :rtype: bool
        r
   _tagselfs    r   is_base64_datazPhotoSourceArg.is_base64_data#   s     yyM))r   c                      | j                   dk(  S zL
        Check if the union tag is ``other``.

        :rtype: bool
        r   r   r   s    r   is_otherzPhotoSourceArg.is_other+        yyG##r   c                 P    | j                         st        d      | j                  S )z
        Image data in base64-encoded bytes.

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

        :rtype: str
        ztag 'base64_data' not set)r   AttributeError_valuer   s    r   get_base64_datazPhotoSourceArg.get_base64_data3   s&     ""$ !<=={{r   c                 0    t         t        |   |||       y N)superr   _process_custom_annotationsr   annotation_type
field_path	processor	__class__s       r   r!   z*PhotoSourceArg._process_custom_annotations?   s    nd?Q[]fgr   )__name__
__module____qualname____doc__
_catch_allr   classmethodr
   r   r   r   r!   __classcell__r&   s   @r   r   r   
   sA     JE' '*$
h hr   r   c                   ^     e Zd ZdZdgZdZ	 ddZ ej                  dd      Z	 fdZ
 xZS )	SetProfilePhotoArgzg
    :ivar account.SetProfilePhotoArg.photo: Image to set as the user's new
        profile photo.
    _photo_valueTc                 B    t         j                  | _        ||| _        y y r   )bbNOT_SETr1   photo)r   r5   s     r   __init__zSetProfilePhotoArg.__init__P   s     JJDJ r   r5   )user_definedc                 0    t         t        |   |||       y r   )r    r0   r!   r"   s       r   r!   z.SetProfilePhotoArg._process_custom_annotationsY   s     $COU_ajkr   r   )r'   r(   r)   r*   	__slots___has_required_fieldsr6   r3   	Attributer5   r!   r-   r.   s   @r   r0   r0   D   sF     	I    BLLt4El lr   r0   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 )SetProfilePhotoErrora  
    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 account.SetProfilePhotoError.file_type_error: File cannot be set as
        profile photo.
    :ivar account.SetProfilePhotoError.file_size_error: File cannot exceed 10
        MB.
    :ivar account.SetProfilePhotoError.dimension_error: Image must be larger
        than 128 x 128.
    :ivar account.SetProfilePhotoError.thumbnail_error: Image could not be
        thumbnailed.
    :ivar account.SetProfilePhotoError.transient_error: Temporary infrastructure
        failure, please retry.
    r   Nc                      | j                   dk(  S )zV
        Check if the union tag is ``file_type_error``.

        :rtype: bool
        file_type_errorr   r   s    r   is_file_type_errorz'SetProfilePhotoError.is_file_type_error~        yy---r   c                      | j                   dk(  S )zV
        Check if the union tag is ``file_size_error``.

        :rtype: bool
        file_size_errorr   r   s    r   is_file_size_errorz'SetProfilePhotoError.is_file_size_error   rA   r   c                      | j                   dk(  S )zV
        Check if the union tag is ``dimension_error``.

        :rtype: bool
        dimension_errorr   r   s    r   is_dimension_errorz'SetProfilePhotoError.is_dimension_error   rA   r   c                      | j                   dk(  S )zV
        Check if the union tag is ``thumbnail_error``.

        :rtype: bool
        thumbnail_errorr   r   s    r   is_thumbnail_errorz'SetProfilePhotoError.is_thumbnail_error   rA   r   c                      | j                   dk(  S )zV
        Check if the union tag is ``transient_error``.

        :rtype: bool
        transient_errorr   r   s    r   is_transient_errorz'SetProfilePhotoError.is_transient_error   rA   r   c                      | j                   dk(  S r   r   r   s    r   r   zSetProfilePhotoError.is_other   r   r   c                 0    t         t        |   |||       y r   )r    r=   r!   r"   s       r   r!   z0SetProfilePhotoError._process_custom_annotations   s    "DEoWaclmr   )r'   r(   r)   r*   r+   r?   rC   rF   rI   rL   r   r@   rD   rG   rJ   rM   r   r!   r-   r.   s   @r   r=   r=   ^   sW    " JOOOOOE.....$n n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 )SetProfilePhotoResultz
    :ivar account.SetProfilePhotoResult.profile_photo_url: URL for the photo
        representing the user, if one is set.
    _profile_photo_url_valueTc                 B    t         j                  | _        ||| _        y y r   )r3   r4   rR   profile_photo_url)r   rT   s     r   r6   zSetProfilePhotoResult.__init__   s!    (*

%(%6D" )r   rT   c                 0    t         t        |   |||       y r   )r    rQ   r!   r"   s       r   r!   z1SetProfilePhotoResult._process_custom_annotations   s    #TFXbdmnr   r   )r'   r(   r)   r*   r9   r:   r6   r3   r;   rT   r!   r-   r.   s   @r   rQ   rQ      sF     	#I   $(7 %%89o or   rQ   )r
   r   r   r5   )r?   rC   rF   rI   rL   r   r?   rC   rF   rI   rL   rT   set_profile_photo   Fuserapirpc)authhoststyleN)*
__future__r   stone.backends.python_rsrcr   r3   r   bvUnionr   PhotoSourceArg_validatorStructr0   SetProfilePhotoArg_validatorr=   SetProfilePhotoError_validatorrQ   SetProfilePhotoResult_validatorString_base64_data_validatorVoid_other_validator_tagmapr   r5   	validatorset_all_field_names__all_fields__file_type_error_validator_file_size_error_validator_dimension_error_validator_thumbnail_error_validator_transient_error_validatorr?   rC   rF   rI   rL   rT   RouterV   ROUTESr   r   r   <module>rw      s   ( 7 =6hRXX 6hp $288N3 l l0  )ryy);< Qn288 Qnf "**>!? oBII o0 #,")),A"B (1		 %")"'') !88,, 
 &g. %=    "'*G9~  $$+-?-E-E-O-O#P"Q  29"'')  /29"'')  /29"'')  /29"'')  /29"'')  /(/	  %+FF+FF+FF+FF+FF!22    (<<M'N  $';<M'N  $';<M'N  $';<M'N  $';<M'N  $1':  4=BIIK  ' ' 1*-/B.C*D  '':<Q<c<c<m<m&n%o  "BHH	 #"
  *
r   