Ë
    	]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 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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<                  d1d2¬3«      gdddgd4dgdœ¬«      ¬«       G d5„ d6e«      «       Z! ed edgd7d8dd9dgd4dgdœ¬ «      ¬«       G d:„ d;e«      «       Z" ed edgd<d=deid> ed?¬@«      iddgdAdgdœ¬B«      ¬«       G dC„ dDe«      «       Z# ed edgdEdFdeid> ed?¬@«      id9dgdAdgdœ¬B«      ¬«       G dG„ dHe«      «       Z$ ed
 edgdIdJ edej<                  ddd¬«      gd9dgddgdœ¬K«      ¬«       ed edgdLdMdeid9dgddgdœ¬ «      ¬«       G dN„ dOe«      «       «       Z% ed
 edgdPdQdd9dgd
dgdœ¬ «      ¬«       ed% edgdRdSdeid9dgd(dgdœ¬ «      ¬«       ed) edgdTdUdd9dgd)dgdœ¬ «      ¬«       G dV„ dWe
«      «       «       «       Z& G dX„ dYe«      Z' G dZ„ d[e«      Z(y)\z¦This 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ÚImportStorageValidateAPI)ÚRedisExportStorageÚRedisImportStorage)ÚRedisExportStorageSerializerÚRedisImportStorageSerializeré   )Ú_redis_export_storage_schemaÚ$_redis_export_storage_schema_with_idÚ_redis_import_storage_schemaÚ$_redis_import_storage_schema_with_idÚgetzStorage: RediszGet all import storagez3Get a list of all Redis import storage connections.ÚprojectÚqueryz
Project IDT)ÚnameÚtypeÚlocationÚdescriptionÚrequiredNÚimport_storageÚredisÚlistÚpublic)zx-fern-sdk-group-namezx-fern-sdk-method-namezx-fern-audiences)ÚtagsÚsummaryr    Ú
parametersÚrequestÚ
extensions)r   Ú	decoratorÚpostzCreate import storagez-Create a new Redis import storage connection.zapplication/jsonÚcreate)r&   r'   r    r)   r*   c                   óD   — e Zd Zej                  j                  «       ZeZy)ÚRedisImportStorageListAPIN©	Ú__name__Ú
__module__Ú__qualname__r   ÚobjectsÚallÚquerysetr   Úserializer_class© ó    úL/root/env/lib/python3.12/site-packages/label_studio/io_storages/redis/api.pyr/   r/      s   „ ðP "×)Ñ)×-Ñ-Ó/€HØ3Ñr9   r/   zGet import storagez/Get a specific Redis import storage connection.ÚpatchzUpdate import storagez2Update a specific Redis import storage connection.ÚupdateÚdeletezDelete import storagez2Delete a specific Redis import storage connection.c                   óD   — e Zd Zej                  j                  «       ZeZy)ÚRedisImportStorageDetailAPINr0   r8   r9   r:   r?   r?   H   ó   „ ðZ "×)Ñ)×-Ñ-Ó/€HØ3Ñr9   r?   zSync import storagez2Sync tasks from a Redis import storage connection.ÚidÚpathz
Storage ID)r   r   r   r    Úsyncc                   ó   — e Zd ZeZy)ÚRedisImportStorageSyncAPIN©r1   r2   r3   r   r7   r8   r9   r:   rE   rE   y   s
   „ ð. 4Ñr9   rE   zSync export storagez2Sync tasks from a Redis export storage connection.Úexport_storagec                   ó   — e Zd ZeZy)ÚRedisExportStorageSyncAPIN©r1   r2   r3   r   r7   r8   r9   r:   rI   rI   “   s
   „ ð 4Ñr9   rI   zValidate import storagez4Validate a specific Redis import storage connection.éÈ   zValidation successful)r    Úvalidate)r&   r'   r    r)   Ú	responsesr*   c                   ó   — e Zd ZeZy)ÚRedisImportStorageValidateAPINrF   r8   r9   r:   rO   rO   ¥   ó
   „ ð$ 4Ñr9   rO   zValidate export storagez4Validate a specific Redis export storage connection.c                   ó   — e Zd ZeZy)ÚRedisExportStorageValidateAPINrJ   r8   r9   r:   rR   rR   º   rP   r9   rR   zGet all export storagez3Get a list of all Redis export storage connections.)r&   r'   r    r(   r*   zCreate export storagezBCreate a new Redis export storage connection to store annotations.c                   óD   — e Zd Zej                  j                  «       ZeZy)ÚRedisExportStorageListAPIN©	r1   r2   r3   r   r4   r5   r6   r   r7   r8   r9   r:   rT   rT   Ï   s   „ ðN "×)Ñ)×-Ñ-Ó/€HØ3Ñr9   rT   zGet export storagez/Get a specific Redis export storage connection.zUpdate export storagez2Update a specific Redis export storage connection.zDelete export storagez2Delete a specific Redis export storage connection.c                   óD   — e Zd Zej                  j                  «       ZeZy)ÚRedisExportStorageDetailAPINrU   r8   r9   r:   rW   rW   ú   r@   r9   rW   c                   ó   — e Zd Zy)ÚRedisImportStorageFormLayoutAPIN©r1   r2   r3   r8   r9   r:   rY   rY   +  ó   „ Ør9   rY   c                   ó   — e Zd Zy)ÚRedisExportStorageFormLayoutAPINrZ   r8   r9   r:   r]   r]   /  r[   r9   r]   ))Ú__doc__Údjango.utils.decoratorsr   Údrf_spectacular.typesr   Údrf_spectacular.utilsr   r   r   Úio_storages.apir   r	   r
   r   r   r   r   r   r   Úio_storages.redis.modelsr   r   Úio_storages.redis.serializersr   r   Úopenapi_schemar   r   r   r   ÚINTr/   r?   rE   rI   rO   rR   rT   rW   rY   r]   r8   r9   r:   ú<module>rg      s  ðñå 4Ý .ß RÑ R÷
÷ 
õ 
÷ Lß d÷ó ñ Ø	ÙØÐØ(ØIáØØ!×%Ñ%Ø Ø(Øôð
ð à&6¸Ð%@Ø&,Ø!) 
ñ
ôôñ. Ø	ÙØÐØ'ØCàÐ <ð
ð '7¸Ð%@Ø&.Ø!) 
ñ
ôôô 4Ð 4ó 4ó!ó/ðN4ñ
 Ø	ÙØÐØ$ØEØà&6¸Ð%@Ø&+Ø!) 
ñ
ô
ôñ Ø	ÙØÐØ'ØHàÐ <ð
ð '7¸Ð%@Ø&.Ø!) 
ñ
ôôñ  Ø	ÙØÐØ'ØHØà&6¸Ð%@Ø&.Ø!) 
ñ
ô
ôô4Ð"8ó 4óó!óðX4ñ
 Ø	ÙØÐØ%ØHáØØ!×%Ñ%ØØ(ô	ð
ð à&6¸Ð%@Ø&,Ø!) 
ñ
ôôô,4Ð 4ó 4ó-ð,4ñ Ø	ÙØÐØ%ØHØà&6¸Ð%@Ø&,Ø!) 
ñ
ô
ôô4Ð 4ó 4óð4ñ Ø	ÙØÐØ)ØJàÐ Dð
ð ™Ð4KÔLÐMà&6¸Ð%@Ø&0Ø!) 
ñ
ôôô"4Ð$<ó 4ó#ð"4ñ Ø	ÙØÐØ)ØJàÐ Dð
ð ™Ð4KÔLÐMà&6¸Ð%@Ø&0Ø!) 
ñ
ôôô"4Ð$<ó 4ó#ð"4ñ Ø	ÙØÐØ(ØIáØØ!×%Ñ%Ø Ø(Øôð
ð '7¸Ð%@Ø&,Ø!) 
ñ
ôôñ, Ø	ÙØÐØ'ØXàÐ <ð
ð '7¸Ð%@Ø&.Ø!) 
ñ
ôôô 4Ð 4ó 4ó!ó-ðL4ñ
 Ø	ÙØÐØ$ØEØà&6¸Ð%@Ø&+Ø!) 
ñ
ô
ôñ Ø	ÙØÐØ'ØHàÐ <ð
ð '7¸Ð%@Ø&.Ø!) 
ñ
ôôñ  Ø	ÙØÐØ'ØHØà&6¸Ð%@Ø&.Ø!) 
ñ
ô
ôô4Ð"8ó 4óó!óðX4ô
	Ð&@ô 	ô	Ð&@õ 	r9   