label-studio-sdk 1.0.2__py3-none-any.whl → 1.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of label-studio-sdk might be problematic. Click here for more details.
- label_studio_sdk/__init__.py +20 -1
- label_studio_sdk/actions/client.py +8 -8
- label_studio_sdk/annotations/client.py +24 -24
- label_studio_sdk/base_client.py +3 -0
- label_studio_sdk/core/client_wrapper.py +1 -1
- label_studio_sdk/core/http_client.py +36 -8
- label_studio_sdk/core/request_options.py +2 -2
- label_studio_sdk/export_storage/__init__.py +2 -1
- label_studio_sdk/export_storage/azure/client.py +28 -28
- label_studio_sdk/export_storage/client.py +7 -4
- label_studio_sdk/export_storage/gcs/client.py +28 -28
- label_studio_sdk/export_storage/local/client.py +28 -28
- label_studio_sdk/export_storage/redis/client.py +28 -28
- label_studio_sdk/export_storage/s3/client.py +28 -28
- label_studio_sdk/export_storage/s3s/__init__.py +2 -0
- label_studio_sdk/export_storage/s3s/client.py +836 -0
- label_studio_sdk/files/client.py +24 -24
- label_studio_sdk/import_storage/__init__.py +2 -1
- label_studio_sdk/import_storage/azure/client.py +28 -28
- label_studio_sdk/import_storage/client.py +7 -4
- label_studio_sdk/import_storage/gcs/client.py +28 -28
- label_studio_sdk/import_storage/local/client.py +28 -28
- label_studio_sdk/import_storage/redis/client.py +28 -28
- label_studio_sdk/import_storage/s3/client.py +28 -28
- label_studio_sdk/import_storage/s3s/__init__.py +2 -0
- label_studio_sdk/import_storage/s3s/client.py +1054 -0
- label_studio_sdk/label_interface/base.py +2 -2
- label_studio_sdk/label_interface/control_tags.py +32 -18
- label_studio_sdk/label_interface/create.py +241 -0
- label_studio_sdk/label_interface/interface.py +68 -0
- label_studio_sdk/label_interface/object_tags.py +26 -10
- label_studio_sdk/label_interface/objects.py +5 -5
- label_studio_sdk/ml/client.py +36 -36
- label_studio_sdk/predictions/client.py +24 -24
- label_studio_sdk/projects/__init__.py +8 -2
- label_studio_sdk/projects/client.py +232 -69
- label_studio_sdk/projects/client_ext.py +16 -1
- label_studio_sdk/projects/exports/client.py +38 -38
- label_studio_sdk/projects/types/__init__.py +2 -1
- label_studio_sdk/projects/types/projects_update_response.py +96 -0
- label_studio_sdk/tasks/client.py +70 -60
- label_studio_sdk/tasks/client_ext.py +4 -0
- label_studio_sdk/types/__init__.py +16 -0
- label_studio_sdk/types/base_task.py +4 -2
- label_studio_sdk/types/base_task_file_upload.py +5 -0
- label_studio_sdk/types/base_task_updated_by.py +5 -0
- label_studio_sdk/types/data_manager_task_serializer.py +3 -2
- label_studio_sdk/types/data_manager_task_serializer_annotators_item.py +5 -0
- label_studio_sdk/types/s3s_export_storage.py +80 -0
- label_studio_sdk/types/s3s_import_storage.py +129 -0
- label_studio_sdk/types/s3s_import_storage_status.py +7 -0
- label_studio_sdk/types/task.py +3 -2
- label_studio_sdk/types/task_annotators_item.py +5 -0
- label_studio_sdk/types/workspace.py +77 -0
- label_studio_sdk/users/client.py +32 -32
- label_studio_sdk/views/client.py +24 -24
- label_studio_sdk/webhooks/client.py +24 -24
- label_studio_sdk/workspaces/__init__.py +6 -0
- label_studio_sdk/workspaces/client.py +569 -0
- label_studio_sdk/workspaces/members/__init__.py +5 -0
- label_studio_sdk/workspaces/members/client.py +297 -0
- label_studio_sdk/workspaces/members/types/__init__.py +6 -0
- label_studio_sdk/workspaces/members/types/members_create_response.py +32 -0
- label_studio_sdk/workspaces/members/types/members_list_response_item.py +32 -0
- {label_studio_sdk-1.0.2.dist-info → label_studio_sdk-1.0.4.dist-info}/METADATA +11 -12
- {label_studio_sdk-1.0.2.dist-info → label_studio_sdk-1.0.4.dist-info}/RECORD +67 -46
- {label_studio_sdk-1.0.2.dist-info → label_studio_sdk-1.0.4.dist-info}/WHEEL +0 -0
|
@@ -12,6 +12,7 @@ from .gcs.client import AsyncGcsClient, GcsClient
|
|
|
12
12
|
from .local.client import AsyncLocalClient, LocalClient
|
|
13
13
|
from .redis.client import AsyncRedisClient, RedisClient
|
|
14
14
|
from .s3.client import AsyncS3Client, S3Client
|
|
15
|
+
from .s3s.client import AsyncS3SClient, S3SClient
|
|
15
16
|
from .types.export_storage_list_types_response_item import ExportStorageListTypesResponseItem
|
|
16
17
|
|
|
17
18
|
|
|
@@ -23,6 +24,7 @@ class ExportStorageClient:
|
|
|
23
24
|
self.local = LocalClient(client_wrapper=self._client_wrapper)
|
|
24
25
|
self.redis = RedisClient(client_wrapper=self._client_wrapper)
|
|
25
26
|
self.s3 = S3Client(client_wrapper=self._client_wrapper)
|
|
27
|
+
self.s3s = S3SClient(client_wrapper=self._client_wrapper)
|
|
26
28
|
|
|
27
29
|
def list_types(
|
|
28
30
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
@@ -52,9 +54,9 @@ class ExportStorageClient:
|
|
|
52
54
|
_response = self._client_wrapper.httpx_client.request(
|
|
53
55
|
"api/storages/export/types", method="GET", request_options=request_options
|
|
54
56
|
)
|
|
55
|
-
if 200 <= _response.status_code < 300:
|
|
56
|
-
return pydantic_v1.parse_obj_as(typing.List[ExportStorageListTypesResponseItem], _response.json()) # type: ignore
|
|
57
57
|
try:
|
|
58
|
+
if 200 <= _response.status_code < 300:
|
|
59
|
+
return pydantic_v1.parse_obj_as(typing.List[ExportStorageListTypesResponseItem], _response.json()) # type: ignore
|
|
58
60
|
_response_json = _response.json()
|
|
59
61
|
except JSONDecodeError:
|
|
60
62
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -69,6 +71,7 @@ class AsyncExportStorageClient:
|
|
|
69
71
|
self.local = AsyncLocalClient(client_wrapper=self._client_wrapper)
|
|
70
72
|
self.redis = AsyncRedisClient(client_wrapper=self._client_wrapper)
|
|
71
73
|
self.s3 = AsyncS3Client(client_wrapper=self._client_wrapper)
|
|
74
|
+
self.s3s = AsyncS3SClient(client_wrapper=self._client_wrapper)
|
|
72
75
|
|
|
73
76
|
async def list_types(
|
|
74
77
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
@@ -98,9 +101,9 @@ class AsyncExportStorageClient:
|
|
|
98
101
|
_response = await self._client_wrapper.httpx_client.request(
|
|
99
102
|
"api/storages/export/types", method="GET", request_options=request_options
|
|
100
103
|
)
|
|
101
|
-
if 200 <= _response.status_code < 300:
|
|
102
|
-
return pydantic_v1.parse_obj_as(typing.List[ExportStorageListTypesResponseItem], _response.json()) # type: ignore
|
|
103
104
|
try:
|
|
105
|
+
if 200 <= _response.status_code < 300:
|
|
106
|
+
return pydantic_v1.parse_obj_as(typing.List[ExportStorageListTypesResponseItem], _response.json()) # type: ignore
|
|
104
107
|
_response_json = _response.json()
|
|
105
108
|
except JSONDecodeError:
|
|
106
109
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -55,9 +55,9 @@ class GcsClient:
|
|
|
55
55
|
_response = self._client_wrapper.httpx_client.request(
|
|
56
56
|
"api/storages/export/gcs", method="GET", params={"project": project}, request_options=request_options
|
|
57
57
|
)
|
|
58
|
-
if 200 <= _response.status_code < 300:
|
|
59
|
-
return pydantic_v1.parse_obj_as(typing.List[GcsExportStorage], _response.json()) # type: ignore
|
|
60
58
|
try:
|
|
59
|
+
if 200 <= _response.status_code < 300:
|
|
60
|
+
return pydantic_v1.parse_obj_as(typing.List[GcsExportStorage], _response.json()) # type: ignore
|
|
61
61
|
_response_json = _response.json()
|
|
62
62
|
except JSONDecodeError:
|
|
63
63
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -142,9 +142,9 @@ class GcsClient:
|
|
|
142
142
|
request_options=request_options,
|
|
143
143
|
omit=OMIT,
|
|
144
144
|
)
|
|
145
|
-
if 200 <= _response.status_code < 300:
|
|
146
|
-
return pydantic_v1.parse_obj_as(GcsCreateResponse, _response.json()) # type: ignore
|
|
147
145
|
try:
|
|
146
|
+
if 200 <= _response.status_code < 300:
|
|
147
|
+
return pydantic_v1.parse_obj_as(GcsCreateResponse, _response.json()) # type: ignore
|
|
148
148
|
_response_json = _response.json()
|
|
149
149
|
except JSONDecodeError:
|
|
150
150
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -229,9 +229,9 @@ class GcsClient:
|
|
|
229
229
|
request_options=request_options,
|
|
230
230
|
omit=OMIT,
|
|
231
231
|
)
|
|
232
|
-
if 200 <= _response.status_code < 300:
|
|
233
|
-
return
|
|
234
232
|
try:
|
|
233
|
+
if 200 <= _response.status_code < 300:
|
|
234
|
+
return
|
|
235
235
|
_response_json = _response.json()
|
|
236
236
|
except JSONDecodeError:
|
|
237
237
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -270,9 +270,9 @@ class GcsClient:
|
|
|
270
270
|
_response = self._client_wrapper.httpx_client.request(
|
|
271
271
|
f"api/storages/export/gcs/{jsonable_encoder(id)}", method="GET", request_options=request_options
|
|
272
272
|
)
|
|
273
|
-
if 200 <= _response.status_code < 300:
|
|
274
|
-
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
275
273
|
try:
|
|
274
|
+
if 200 <= _response.status_code < 300:
|
|
275
|
+
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
276
276
|
_response_json = _response.json()
|
|
277
277
|
except JSONDecodeError:
|
|
278
278
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -310,9 +310,9 @@ class GcsClient:
|
|
|
310
310
|
_response = self._client_wrapper.httpx_client.request(
|
|
311
311
|
f"api/storages/export/gcs/{jsonable_encoder(id)}", method="DELETE", request_options=request_options
|
|
312
312
|
)
|
|
313
|
-
if 200 <= _response.status_code < 300:
|
|
314
|
-
return
|
|
315
313
|
try:
|
|
314
|
+
if 200 <= _response.status_code < 300:
|
|
315
|
+
return
|
|
316
316
|
_response_json = _response.json()
|
|
317
317
|
except JSONDecodeError:
|
|
318
318
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -401,9 +401,9 @@ class GcsClient:
|
|
|
401
401
|
request_options=request_options,
|
|
402
402
|
omit=OMIT,
|
|
403
403
|
)
|
|
404
|
-
if 200 <= _response.status_code < 300:
|
|
405
|
-
return pydantic_v1.parse_obj_as(GcsUpdateResponse, _response.json()) # type: ignore
|
|
406
404
|
try:
|
|
405
|
+
if 200 <= _response.status_code < 300:
|
|
406
|
+
return pydantic_v1.parse_obj_as(GcsUpdateResponse, _response.json()) # type: ignore
|
|
407
407
|
_response_json = _response.json()
|
|
408
408
|
except JSONDecodeError:
|
|
409
409
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -443,9 +443,9 @@ class GcsClient:
|
|
|
443
443
|
_response = self._client_wrapper.httpx_client.request(
|
|
444
444
|
f"api/storages/export/gcs/{jsonable_encoder(id)}/sync", method="POST", request_options=request_options
|
|
445
445
|
)
|
|
446
|
-
if 200 <= _response.status_code < 300:
|
|
447
|
-
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
448
446
|
try:
|
|
447
|
+
if 200 <= _response.status_code < 300:
|
|
448
|
+
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
449
449
|
_response_json = _response.json()
|
|
450
450
|
except JSONDecodeError:
|
|
451
451
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -491,9 +491,9 @@ class AsyncGcsClient:
|
|
|
491
491
|
_response = await self._client_wrapper.httpx_client.request(
|
|
492
492
|
"api/storages/export/gcs", method="GET", params={"project": project}, request_options=request_options
|
|
493
493
|
)
|
|
494
|
-
if 200 <= _response.status_code < 300:
|
|
495
|
-
return pydantic_v1.parse_obj_as(typing.List[GcsExportStorage], _response.json()) # type: ignore
|
|
496
494
|
try:
|
|
495
|
+
if 200 <= _response.status_code < 300:
|
|
496
|
+
return pydantic_v1.parse_obj_as(typing.List[GcsExportStorage], _response.json()) # type: ignore
|
|
497
497
|
_response_json = _response.json()
|
|
498
498
|
except JSONDecodeError:
|
|
499
499
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -578,9 +578,9 @@ class AsyncGcsClient:
|
|
|
578
578
|
request_options=request_options,
|
|
579
579
|
omit=OMIT,
|
|
580
580
|
)
|
|
581
|
-
if 200 <= _response.status_code < 300:
|
|
582
|
-
return pydantic_v1.parse_obj_as(GcsCreateResponse, _response.json()) # type: ignore
|
|
583
581
|
try:
|
|
582
|
+
if 200 <= _response.status_code < 300:
|
|
583
|
+
return pydantic_v1.parse_obj_as(GcsCreateResponse, _response.json()) # type: ignore
|
|
584
584
|
_response_json = _response.json()
|
|
585
585
|
except JSONDecodeError:
|
|
586
586
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -665,9 +665,9 @@ class AsyncGcsClient:
|
|
|
665
665
|
request_options=request_options,
|
|
666
666
|
omit=OMIT,
|
|
667
667
|
)
|
|
668
|
-
if 200 <= _response.status_code < 300:
|
|
669
|
-
return
|
|
670
668
|
try:
|
|
669
|
+
if 200 <= _response.status_code < 300:
|
|
670
|
+
return
|
|
671
671
|
_response_json = _response.json()
|
|
672
672
|
except JSONDecodeError:
|
|
673
673
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -706,9 +706,9 @@ class AsyncGcsClient:
|
|
|
706
706
|
_response = await self._client_wrapper.httpx_client.request(
|
|
707
707
|
f"api/storages/export/gcs/{jsonable_encoder(id)}", method="GET", request_options=request_options
|
|
708
708
|
)
|
|
709
|
-
if 200 <= _response.status_code < 300:
|
|
710
|
-
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
711
709
|
try:
|
|
710
|
+
if 200 <= _response.status_code < 300:
|
|
711
|
+
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
712
712
|
_response_json = _response.json()
|
|
713
713
|
except JSONDecodeError:
|
|
714
714
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -746,9 +746,9 @@ class AsyncGcsClient:
|
|
|
746
746
|
_response = await self._client_wrapper.httpx_client.request(
|
|
747
747
|
f"api/storages/export/gcs/{jsonable_encoder(id)}", method="DELETE", request_options=request_options
|
|
748
748
|
)
|
|
749
|
-
if 200 <= _response.status_code < 300:
|
|
750
|
-
return
|
|
751
749
|
try:
|
|
750
|
+
if 200 <= _response.status_code < 300:
|
|
751
|
+
return
|
|
752
752
|
_response_json = _response.json()
|
|
753
753
|
except JSONDecodeError:
|
|
754
754
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -837,9 +837,9 @@ class AsyncGcsClient:
|
|
|
837
837
|
request_options=request_options,
|
|
838
838
|
omit=OMIT,
|
|
839
839
|
)
|
|
840
|
-
if 200 <= _response.status_code < 300:
|
|
841
|
-
return pydantic_v1.parse_obj_as(GcsUpdateResponse, _response.json()) # type: ignore
|
|
842
840
|
try:
|
|
841
|
+
if 200 <= _response.status_code < 300:
|
|
842
|
+
return pydantic_v1.parse_obj_as(GcsUpdateResponse, _response.json()) # type: ignore
|
|
843
843
|
_response_json = _response.json()
|
|
844
844
|
except JSONDecodeError:
|
|
845
845
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -879,9 +879,9 @@ class AsyncGcsClient:
|
|
|
879
879
|
_response = await self._client_wrapper.httpx_client.request(
|
|
880
880
|
f"api/storages/export/gcs/{jsonable_encoder(id)}/sync", method="POST", request_options=request_options
|
|
881
881
|
)
|
|
882
|
-
if 200 <= _response.status_code < 300:
|
|
883
|
-
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
884
882
|
try:
|
|
883
|
+
if 200 <= _response.status_code < 300:
|
|
884
|
+
return pydantic_v1.parse_obj_as(GcsExportStorage, _response.json()) # type: ignore
|
|
885
885
|
_response_json = _response.json()
|
|
886
886
|
except JSONDecodeError:
|
|
887
887
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -55,9 +55,9 @@ class LocalClient:
|
|
|
55
55
|
_response = self._client_wrapper.httpx_client.request(
|
|
56
56
|
"api/storages/export/localfiles", method="GET", params={"project": project}, request_options=request_options
|
|
57
57
|
)
|
|
58
|
-
if 200 <= _response.status_code < 300:
|
|
59
|
-
return pydantic_v1.parse_obj_as(typing.List[LocalFilesExportStorage], _response.json()) # type: ignore
|
|
60
58
|
try:
|
|
59
|
+
if 200 <= _response.status_code < 300:
|
|
60
|
+
return pydantic_v1.parse_obj_as(typing.List[LocalFilesExportStorage], _response.json()) # type: ignore
|
|
61
61
|
_response_json = _response.json()
|
|
62
62
|
except JSONDecodeError:
|
|
63
63
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -132,9 +132,9 @@ class LocalClient:
|
|
|
132
132
|
request_options=request_options,
|
|
133
133
|
omit=OMIT,
|
|
134
134
|
)
|
|
135
|
-
if 200 <= _response.status_code < 300:
|
|
136
|
-
return pydantic_v1.parse_obj_as(LocalCreateResponse, _response.json()) # type: ignore
|
|
137
135
|
try:
|
|
136
|
+
if 200 <= _response.status_code < 300:
|
|
137
|
+
return pydantic_v1.parse_obj_as(LocalCreateResponse, _response.json()) # type: ignore
|
|
138
138
|
_response_json = _response.json()
|
|
139
139
|
except JSONDecodeError:
|
|
140
140
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -209,9 +209,9 @@ class LocalClient:
|
|
|
209
209
|
request_options=request_options,
|
|
210
210
|
omit=OMIT,
|
|
211
211
|
)
|
|
212
|
-
if 200 <= _response.status_code < 300:
|
|
213
|
-
return
|
|
214
212
|
try:
|
|
213
|
+
if 200 <= _response.status_code < 300:
|
|
214
|
+
return
|
|
215
215
|
_response_json = _response.json()
|
|
216
216
|
except JSONDecodeError:
|
|
217
217
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -250,9 +250,9 @@ class LocalClient:
|
|
|
250
250
|
_response = self._client_wrapper.httpx_client.request(
|
|
251
251
|
f"api/storages/export/localfiles/{jsonable_encoder(id)}", method="GET", request_options=request_options
|
|
252
252
|
)
|
|
253
|
-
if 200 <= _response.status_code < 300:
|
|
254
|
-
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
255
253
|
try:
|
|
254
|
+
if 200 <= _response.status_code < 300:
|
|
255
|
+
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
256
256
|
_response_json = _response.json()
|
|
257
257
|
except JSONDecodeError:
|
|
258
258
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -290,9 +290,9 @@ class LocalClient:
|
|
|
290
290
|
_response = self._client_wrapper.httpx_client.request(
|
|
291
291
|
f"api/storages/export/localfiles/{jsonable_encoder(id)}", method="DELETE", request_options=request_options
|
|
292
292
|
)
|
|
293
|
-
if 200 <= _response.status_code < 300:
|
|
294
|
-
return
|
|
295
293
|
try:
|
|
294
|
+
if 200 <= _response.status_code < 300:
|
|
295
|
+
return
|
|
296
296
|
_response_json = _response.json()
|
|
297
297
|
except JSONDecodeError:
|
|
298
298
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -371,9 +371,9 @@ class LocalClient:
|
|
|
371
371
|
request_options=request_options,
|
|
372
372
|
omit=OMIT,
|
|
373
373
|
)
|
|
374
|
-
if 200 <= _response.status_code < 300:
|
|
375
|
-
return pydantic_v1.parse_obj_as(LocalUpdateResponse, _response.json()) # type: ignore
|
|
376
374
|
try:
|
|
375
|
+
if 200 <= _response.status_code < 300:
|
|
376
|
+
return pydantic_v1.parse_obj_as(LocalUpdateResponse, _response.json()) # type: ignore
|
|
377
377
|
_response_json = _response.json()
|
|
378
378
|
except JSONDecodeError:
|
|
379
379
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -415,9 +415,9 @@ class LocalClient:
|
|
|
415
415
|
method="POST",
|
|
416
416
|
request_options=request_options,
|
|
417
417
|
)
|
|
418
|
-
if 200 <= _response.status_code < 300:
|
|
419
|
-
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
420
418
|
try:
|
|
419
|
+
if 200 <= _response.status_code < 300:
|
|
420
|
+
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
421
421
|
_response_json = _response.json()
|
|
422
422
|
except JSONDecodeError:
|
|
423
423
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -463,9 +463,9 @@ class AsyncLocalClient:
|
|
|
463
463
|
_response = await self._client_wrapper.httpx_client.request(
|
|
464
464
|
"api/storages/export/localfiles", method="GET", params={"project": project}, request_options=request_options
|
|
465
465
|
)
|
|
466
|
-
if 200 <= _response.status_code < 300:
|
|
467
|
-
return pydantic_v1.parse_obj_as(typing.List[LocalFilesExportStorage], _response.json()) # type: ignore
|
|
468
466
|
try:
|
|
467
|
+
if 200 <= _response.status_code < 300:
|
|
468
|
+
return pydantic_v1.parse_obj_as(typing.List[LocalFilesExportStorage], _response.json()) # type: ignore
|
|
469
469
|
_response_json = _response.json()
|
|
470
470
|
except JSONDecodeError:
|
|
471
471
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -540,9 +540,9 @@ class AsyncLocalClient:
|
|
|
540
540
|
request_options=request_options,
|
|
541
541
|
omit=OMIT,
|
|
542
542
|
)
|
|
543
|
-
if 200 <= _response.status_code < 300:
|
|
544
|
-
return pydantic_v1.parse_obj_as(LocalCreateResponse, _response.json()) # type: ignore
|
|
545
543
|
try:
|
|
544
|
+
if 200 <= _response.status_code < 300:
|
|
545
|
+
return pydantic_v1.parse_obj_as(LocalCreateResponse, _response.json()) # type: ignore
|
|
546
546
|
_response_json = _response.json()
|
|
547
547
|
except JSONDecodeError:
|
|
548
548
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -617,9 +617,9 @@ class AsyncLocalClient:
|
|
|
617
617
|
request_options=request_options,
|
|
618
618
|
omit=OMIT,
|
|
619
619
|
)
|
|
620
|
-
if 200 <= _response.status_code < 300:
|
|
621
|
-
return
|
|
622
620
|
try:
|
|
621
|
+
if 200 <= _response.status_code < 300:
|
|
622
|
+
return
|
|
623
623
|
_response_json = _response.json()
|
|
624
624
|
except JSONDecodeError:
|
|
625
625
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -658,9 +658,9 @@ class AsyncLocalClient:
|
|
|
658
658
|
_response = await self._client_wrapper.httpx_client.request(
|
|
659
659
|
f"api/storages/export/localfiles/{jsonable_encoder(id)}", method="GET", request_options=request_options
|
|
660
660
|
)
|
|
661
|
-
if 200 <= _response.status_code < 300:
|
|
662
|
-
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
663
661
|
try:
|
|
662
|
+
if 200 <= _response.status_code < 300:
|
|
663
|
+
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
664
664
|
_response_json = _response.json()
|
|
665
665
|
except JSONDecodeError:
|
|
666
666
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -698,9 +698,9 @@ class AsyncLocalClient:
|
|
|
698
698
|
_response = await self._client_wrapper.httpx_client.request(
|
|
699
699
|
f"api/storages/export/localfiles/{jsonable_encoder(id)}", method="DELETE", request_options=request_options
|
|
700
700
|
)
|
|
701
|
-
if 200 <= _response.status_code < 300:
|
|
702
|
-
return
|
|
703
701
|
try:
|
|
702
|
+
if 200 <= _response.status_code < 300:
|
|
703
|
+
return
|
|
704
704
|
_response_json = _response.json()
|
|
705
705
|
except JSONDecodeError:
|
|
706
706
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -779,9 +779,9 @@ class AsyncLocalClient:
|
|
|
779
779
|
request_options=request_options,
|
|
780
780
|
omit=OMIT,
|
|
781
781
|
)
|
|
782
|
-
if 200 <= _response.status_code < 300:
|
|
783
|
-
return pydantic_v1.parse_obj_as(LocalUpdateResponse, _response.json()) # type: ignore
|
|
784
782
|
try:
|
|
783
|
+
if 200 <= _response.status_code < 300:
|
|
784
|
+
return pydantic_v1.parse_obj_as(LocalUpdateResponse, _response.json()) # type: ignore
|
|
785
785
|
_response_json = _response.json()
|
|
786
786
|
except JSONDecodeError:
|
|
787
787
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -825,9 +825,9 @@ class AsyncLocalClient:
|
|
|
825
825
|
method="POST",
|
|
826
826
|
request_options=request_options,
|
|
827
827
|
)
|
|
828
|
-
if 200 <= _response.status_code < 300:
|
|
829
|
-
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
830
828
|
try:
|
|
829
|
+
if 200 <= _response.status_code < 300:
|
|
830
|
+
return pydantic_v1.parse_obj_as(LocalFilesExportStorage, _response.json()) # type: ignore
|
|
831
831
|
_response_json = _response.json()
|
|
832
832
|
except JSONDecodeError:
|
|
833
833
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -55,9 +55,9 @@ class RedisClient:
|
|
|
55
55
|
_response = self._client_wrapper.httpx_client.request(
|
|
56
56
|
"api/storages/export/redis", method="GET", params={"project": project}, request_options=request_options
|
|
57
57
|
)
|
|
58
|
-
if 200 <= _response.status_code < 300:
|
|
59
|
-
return pydantic_v1.parse_obj_as(typing.List[RedisExportStorage], _response.json()) # type: ignore
|
|
60
58
|
try:
|
|
59
|
+
if 200 <= _response.status_code < 300:
|
|
60
|
+
return pydantic_v1.parse_obj_as(typing.List[RedisExportStorage], _response.json()) # type: ignore
|
|
61
61
|
_response_json = _response.json()
|
|
62
62
|
except JSONDecodeError:
|
|
63
63
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -147,9 +147,9 @@ class RedisClient:
|
|
|
147
147
|
request_options=request_options,
|
|
148
148
|
omit=OMIT,
|
|
149
149
|
)
|
|
150
|
-
if 200 <= _response.status_code < 300:
|
|
151
|
-
return pydantic_v1.parse_obj_as(RedisCreateResponse, _response.json()) # type: ignore
|
|
152
150
|
try:
|
|
151
|
+
if 200 <= _response.status_code < 300:
|
|
152
|
+
return pydantic_v1.parse_obj_as(RedisCreateResponse, _response.json()) # type: ignore
|
|
153
153
|
_response_json = _response.json()
|
|
154
154
|
except JSONDecodeError:
|
|
155
155
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -239,9 +239,9 @@ class RedisClient:
|
|
|
239
239
|
request_options=request_options,
|
|
240
240
|
omit=OMIT,
|
|
241
241
|
)
|
|
242
|
-
if 200 <= _response.status_code < 300:
|
|
243
|
-
return
|
|
244
242
|
try:
|
|
243
|
+
if 200 <= _response.status_code < 300:
|
|
244
|
+
return
|
|
245
245
|
_response_json = _response.json()
|
|
246
246
|
except JSONDecodeError:
|
|
247
247
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -280,9 +280,9 @@ class RedisClient:
|
|
|
280
280
|
_response = self._client_wrapper.httpx_client.request(
|
|
281
281
|
f"api/storages/export/redis/{jsonable_encoder(id)}", method="GET", request_options=request_options
|
|
282
282
|
)
|
|
283
|
-
if 200 <= _response.status_code < 300:
|
|
284
|
-
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
285
283
|
try:
|
|
284
|
+
if 200 <= _response.status_code < 300:
|
|
285
|
+
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
286
286
|
_response_json = _response.json()
|
|
287
287
|
except JSONDecodeError:
|
|
288
288
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -320,9 +320,9 @@ class RedisClient:
|
|
|
320
320
|
_response = self._client_wrapper.httpx_client.request(
|
|
321
321
|
f"api/storages/export/redis/{jsonable_encoder(id)}", method="DELETE", request_options=request_options
|
|
322
322
|
)
|
|
323
|
-
if 200 <= _response.status_code < 300:
|
|
324
|
-
return
|
|
325
323
|
try:
|
|
324
|
+
if 200 <= _response.status_code < 300:
|
|
325
|
+
return
|
|
326
326
|
_response_json = _response.json()
|
|
327
327
|
except JSONDecodeError:
|
|
328
328
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -416,9 +416,9 @@ class RedisClient:
|
|
|
416
416
|
request_options=request_options,
|
|
417
417
|
omit=OMIT,
|
|
418
418
|
)
|
|
419
|
-
if 200 <= _response.status_code < 300:
|
|
420
|
-
return pydantic_v1.parse_obj_as(RedisUpdateResponse, _response.json()) # type: ignore
|
|
421
419
|
try:
|
|
420
|
+
if 200 <= _response.status_code < 300:
|
|
421
|
+
return pydantic_v1.parse_obj_as(RedisUpdateResponse, _response.json()) # type: ignore
|
|
422
422
|
_response_json = _response.json()
|
|
423
423
|
except JSONDecodeError:
|
|
424
424
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -458,9 +458,9 @@ class RedisClient:
|
|
|
458
458
|
_response = self._client_wrapper.httpx_client.request(
|
|
459
459
|
f"api/storages/export/redis/{jsonable_encoder(id)}/sync", method="POST", request_options=request_options
|
|
460
460
|
)
|
|
461
|
-
if 200 <= _response.status_code < 300:
|
|
462
|
-
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
463
461
|
try:
|
|
462
|
+
if 200 <= _response.status_code < 300:
|
|
463
|
+
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
464
464
|
_response_json = _response.json()
|
|
465
465
|
except JSONDecodeError:
|
|
466
466
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -506,9 +506,9 @@ class AsyncRedisClient:
|
|
|
506
506
|
_response = await self._client_wrapper.httpx_client.request(
|
|
507
507
|
"api/storages/export/redis", method="GET", params={"project": project}, request_options=request_options
|
|
508
508
|
)
|
|
509
|
-
if 200 <= _response.status_code < 300:
|
|
510
|
-
return pydantic_v1.parse_obj_as(typing.List[RedisExportStorage], _response.json()) # type: ignore
|
|
511
509
|
try:
|
|
510
|
+
if 200 <= _response.status_code < 300:
|
|
511
|
+
return pydantic_v1.parse_obj_as(typing.List[RedisExportStorage], _response.json()) # type: ignore
|
|
512
512
|
_response_json = _response.json()
|
|
513
513
|
except JSONDecodeError:
|
|
514
514
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -598,9 +598,9 @@ class AsyncRedisClient:
|
|
|
598
598
|
request_options=request_options,
|
|
599
599
|
omit=OMIT,
|
|
600
600
|
)
|
|
601
|
-
if 200 <= _response.status_code < 300:
|
|
602
|
-
return pydantic_v1.parse_obj_as(RedisCreateResponse, _response.json()) # type: ignore
|
|
603
601
|
try:
|
|
602
|
+
if 200 <= _response.status_code < 300:
|
|
603
|
+
return pydantic_v1.parse_obj_as(RedisCreateResponse, _response.json()) # type: ignore
|
|
604
604
|
_response_json = _response.json()
|
|
605
605
|
except JSONDecodeError:
|
|
606
606
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -690,9 +690,9 @@ class AsyncRedisClient:
|
|
|
690
690
|
request_options=request_options,
|
|
691
691
|
omit=OMIT,
|
|
692
692
|
)
|
|
693
|
-
if 200 <= _response.status_code < 300:
|
|
694
|
-
return
|
|
695
693
|
try:
|
|
694
|
+
if 200 <= _response.status_code < 300:
|
|
695
|
+
return
|
|
696
696
|
_response_json = _response.json()
|
|
697
697
|
except JSONDecodeError:
|
|
698
698
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -731,9 +731,9 @@ class AsyncRedisClient:
|
|
|
731
731
|
_response = await self._client_wrapper.httpx_client.request(
|
|
732
732
|
f"api/storages/export/redis/{jsonable_encoder(id)}", method="GET", request_options=request_options
|
|
733
733
|
)
|
|
734
|
-
if 200 <= _response.status_code < 300:
|
|
735
|
-
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
736
734
|
try:
|
|
735
|
+
if 200 <= _response.status_code < 300:
|
|
736
|
+
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
737
737
|
_response_json = _response.json()
|
|
738
738
|
except JSONDecodeError:
|
|
739
739
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -771,9 +771,9 @@ class AsyncRedisClient:
|
|
|
771
771
|
_response = await self._client_wrapper.httpx_client.request(
|
|
772
772
|
f"api/storages/export/redis/{jsonable_encoder(id)}", method="DELETE", request_options=request_options
|
|
773
773
|
)
|
|
774
|
-
if 200 <= _response.status_code < 300:
|
|
775
|
-
return
|
|
776
774
|
try:
|
|
775
|
+
if 200 <= _response.status_code < 300:
|
|
776
|
+
return
|
|
777
777
|
_response_json = _response.json()
|
|
778
778
|
except JSONDecodeError:
|
|
779
779
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -867,9 +867,9 @@ class AsyncRedisClient:
|
|
|
867
867
|
request_options=request_options,
|
|
868
868
|
omit=OMIT,
|
|
869
869
|
)
|
|
870
|
-
if 200 <= _response.status_code < 300:
|
|
871
|
-
return pydantic_v1.parse_obj_as(RedisUpdateResponse, _response.json()) # type: ignore
|
|
872
870
|
try:
|
|
871
|
+
if 200 <= _response.status_code < 300:
|
|
872
|
+
return pydantic_v1.parse_obj_as(RedisUpdateResponse, _response.json()) # type: ignore
|
|
873
873
|
_response_json = _response.json()
|
|
874
874
|
except JSONDecodeError:
|
|
875
875
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -909,9 +909,9 @@ class AsyncRedisClient:
|
|
|
909
909
|
_response = await self._client_wrapper.httpx_client.request(
|
|
910
910
|
f"api/storages/export/redis/{jsonable_encoder(id)}/sync", method="POST", request_options=request_options
|
|
911
911
|
)
|
|
912
|
-
if 200 <= _response.status_code < 300:
|
|
913
|
-
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
914
912
|
try:
|
|
913
|
+
if 200 <= _response.status_code < 300:
|
|
914
|
+
return pydantic_v1.parse_obj_as(RedisExportStorage, _response.json()) # type: ignore
|
|
915
915
|
_response_json = _response.json()
|
|
916
916
|
except JSONDecodeError:
|
|
917
917
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|