
    	]j$                        d Z ddlmZ ddlmZ ddlmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZmZmZ ddlmZmZ ddlmZmZ dd	lmZmZmZmZ  ed
 edgdd edej>                  ddd      gddgddgd             ed edgdddeiddgddgd             G d  d!e                    Z  ed
 edgd"d#d$ddgd
dgd             ed% edgd&d'deiddgd(dgd             ed) edgd*d+d$ddgd)dgd             G d, d-e                           Z! ed edgd.d/ ed0ej>                  d1d23      gd$ddgd4dgd5             G d6 d7e             Z" ed edgd8d9deid: ed;<      iddgd=dgd>             G d? d@e             Z# ed edgdAdBdeid: ed;<      idCdgd=dgd>             G dD dEe             Z$ ed
 edgdFdG edej>                  ddd      gdCdgddgd             ed edgdHdIdeidCdgddgd             G dJ dKe                    Z% ed
 edgdLdMd$dCdgd
dgd             ed% edgdNdOdeidCdgd(dgd             ed) edgdPdQd$dCdgd)dgd             G dR dSe
                           Z& ed edgdTdUd$dCdgd4dgd             G dV dWe             Z' G dX dYe      Z( G dZ d[e      Z)y$)\zThis file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
    )method_decorator)OpenApiTypes)OpenApiParameterOpenApiResponseextend_schema)
ExportStorageDetailAPIExportStorageFormLayoutAPIExportStorageListAPIExportStorageSyncAPIExportStorageValidateAPIImportStorageDetailAPIImportStorageFormLayoutAPIImportStorageListAPIImportStorageSyncAPIImportStorageValidateAPI)S3ExportStorageS3ImportStorage)S3ExportStorageSerializerS3ImportStorageSerializer   )_s3_export_storage_schema!_s3_export_storage_schema_with_id_s3_import_storage_schema!_s3_import_storage_schema_with_idgetzStorage: S3zList S3 import storagez0Get a list of all S3 import storage connections.projectqueryz
Project IDT)nametypelocationdescriptionrequiredimport_storages3listpublic)zx-fern-sdk-group-namezx-fern-sdk-method-namezx-fern-audiences)tagssummaryr!   
parameters
extensions)r   	decoratorpostzCreate new S3 storagezCreate new S3 import storagezapplication/jsoncreate)r'   r(   r!   requestr*   c                   D    e Zd Zej                  j                         ZeZy)S3ImportStorageListAPIN	__name__
__module____qualname__r   objectsallquerysetr   serializer_class     I/root/env/lib/python3.12/site-packages/label_studio/io_storages/s3/api.pyr0   r0          N &&**,H0r:   r0   zGet import storagez,Get a specific S3 import storage connection.NpatchzUpdate import storagez/Update a specific S3 import storage connection.updatedeletezDelete import storagez/Delete a specific S3 import storage connection.c                   D    e Zd Zej                  j                         ZeZy)S3ImportStorageDetailAPINr1   r9   r:   r;   rA   rA   H       Z &&**,H0r:   rA   zSync import storagez0Sync tasks from an S3 import storage connection.idpathz
Storage ID)r   r   r    r!   sync)r'   r(   r!   r)   r.   r*   c                       e Zd ZeZy)S3ImportStorageSyncAPINr2   r3   r4   r   r8   r9   r:   r;   rG   rG   y   s
    . 1r:   rG   zValidate import storagez1Validate a specific S3 import storage connection.   zValidation successful)r!   validate)r'   r(   r!   r.   	responsesr*   c                       e Zd ZeZy)S3ImportStorageValidateAPINrH   r9   r:   r;   rM   rM      
    $ 1r:   rM   zValidate export storagez1Validate a specific S3 export storage connection.export_storagec                       e Zd ZeZy)S3ExportStorageValidateAPINr2   r3   r4   r   r8   r9   r:   r;   rQ   rQ      rN   r:   rQ   zGet all export storagez0Get a list of all S3 export storage connections.zCreate export storagez?Create a new S3 export storage connection to store annotations.c                   D    e Zd Zej                  j                         ZeZy)S3ExportStorageListAPIN	r2   r3   r4   r   r5   r6   r7   r   r8   r9   r:   r;   rT   rT      r<   r:   rT   zGet export storagez,Get a specific S3 export storage connection.zUpdate export storagez/Update a specific S3 export storage connection.zDelete export storagez/Delete a specific S3 export storage connection.c                   D    e Zd Zej                  j                         ZeZy)S3ExportStorageDetailAPINrU   r9   r:   r;   rW   rW      rB   r:   rW   zSync export storagez0Sync tasks from an S3 export storage connection.c                       e Zd ZeZy)S3ExportStorageSyncAPINrR   r9   r:   r;   rY   rY     s
     1r:   rY   c                       e Zd Zy)S3ImportStorageFormLayoutAPINr2   r3   r4   r9   r:   r;   r[   r[   +      r:   r[   c                       e Zd Zy)S3ExportStorageFormLayoutAPINr\   r9   r:   r;   r_   r_   /  r]   r:   r_   )*__doc__django.utils.decoratorsr   drf_spectacular.typesr   drf_spectacular.utilsr   r   r   io_storages.apir   r	   r
   r   r   r   r   r   r   r   io_storages.s3.modelsr   r   io_storages.s3.serializersr   r   openapi_schemar   r   r   r   INTr0   rA   rG   rM   rQ   rT   rW   rY   r[   r_   r9   r:   r;   <module>ri      s   4 . R R   C [  	_(F!%% (
 '7%=&,!)

, 	_'2 9
 '7%=&.!)

 11 1!-L1
 	_$B&6%=&+!)


 	_'E 9
 '7%=&.!)

  	_'E&6%=&.!)


15 1!X1
 	_%F!%%(	
 &6%=&,!)

,11 1-,1 	_)G A
 4KLM&6%=&0!)

"1!9 1#"1 	_)G A
 4KLM&6%=&0!)

"1!9 1#"1 	_(F!%% (
 '7%=&,!)

, 	_'U 9
 '7%=&.!)

 11 1!-L1
 	_$B&6%=&+!)


 	_'E 9
 '7%=&.!)

  	_'E&6%=&.!)


15 1!X1
 	_%F&6%=&,!)


11 11	#= 		#= 	r:   