label-studio-sdk 2.0.5__py3-none-any.whl → 2.0.6__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 +52 -0
- label_studio_sdk/annotation_history/__init__.py +5 -0
- label_studio_sdk/annotation_history/client.py +415 -0
- label_studio_sdk/annotation_history/types/__init__.py +5 -0
- label_studio_sdk/annotation_history/types/annotation_history_delete_response.py +22 -0
- label_studio_sdk/annotation_reviews/__init__.py +2 -0
- label_studio_sdk/annotation_reviews/client.py +713 -0
- label_studio_sdk/base_client.py +16 -0
- label_studio_sdk/blueprints/__init__.py +2 -0
- label_studio_sdk/blueprints/client.py +272 -0
- label_studio_sdk/core/client_wrapper.py +2 -1
- label_studio_sdk/export_storage/__init__.py +2 -2
- label_studio_sdk/export_storage/azure_spi/__init__.py +2 -0
- label_studio_sdk/export_storage/azure_spi/client.py +1354 -0
- label_studio_sdk/export_storage/client.py +8 -0
- label_studio_sdk/export_storage/gcswif/__init__.py +2 -0
- label_studio_sdk/export_storage/gcswif/client.py +1376 -0
- label_studio_sdk/import_storage/__init__.py +2 -2
- label_studio_sdk/import_storage/azure_spi/__init__.py +2 -0
- label_studio_sdk/import_storage/azure_spi/client.py +1378 -0
- label_studio_sdk/import_storage/client.py +8 -0
- label_studio_sdk/import_storage/gcswif/__init__.py +2 -0
- label_studio_sdk/import_storage/gcswif/client.py +1400 -0
- label_studio_sdk/jwt_settings/client.py +10 -8
- label_studio_sdk/projects/client.py +8 -0
- label_studio_sdk/projects/members/__init__.py +2 -2
- label_studio_sdk/projects/members/bulk/client.py +46 -2
- label_studio_sdk/projects/members/client.py +4 -0
- label_studio_sdk/projects/members/paginated/__init__.py +2 -0
- label_studio_sdk/projects/members/paginated/client.py +248 -0
- label_studio_sdk/session_policy/__init__.py +2 -0
- label_studio_sdk/session_policy/client.py +247 -0
- label_studio_sdk/tasks/client.py +371 -0
- label_studio_sdk/types/__init__.py +42 -0
- label_studio_sdk/types/action_enum.py +19 -0
- label_studio_sdk/types/all_roles_project_list.py +1 -1
- label_studio_sdk/types/annotation.py +7 -0
- label_studio_sdk/types/annotation_history.py +81 -0
- label_studio_sdk/types/annotation_history_action.py +7 -0
- label_studio_sdk/types/annotation_request.py +7 -0
- label_studio_sdk/types/annotation_review.py +61 -0
- label_studio_sdk/types/annotation_review_request.py +41 -0
- label_studio_sdk/types/azure_service_principal_export_storage.py +114 -0
- label_studio_sdk/types/azure_service_principal_export_storage_request.py +107 -0
- label_studio_sdk/types/azure_service_principal_import_storage.py +115 -0
- label_studio_sdk/types/azure_service_principal_import_storage_request.py +108 -0
- label_studio_sdk/types/blueprint.py +41 -0
- label_studio_sdk/types/gcswif_export_storage.py +119 -0
- label_studio_sdk/types/gcswif_export_storage_request.py +112 -0
- label_studio_sdk/types/gcswif_import_storage.py +120 -0
- label_studio_sdk/types/gcswif_import_storage_request.py +113 -0
- label_studio_sdk/types/lse_project_update.py +1 -0
- label_studio_sdk/types/lse_task.py +1 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +1 -0
- label_studio_sdk/types/lsejwt_settings.py +1 -5
- label_studio_sdk/types/paginated_annotation_history_list.py +23 -0
- label_studio_sdk/types/paginated_lse_user_list.py +23 -0
- label_studio_sdk/types/paginated_paginated_project_member_list.py +23 -0
- label_studio_sdk/types/paginated_project_member.py +50 -0
- label_studio_sdk/types/project_member_bulk_assign_roles_request.py +21 -0
- label_studio_sdk/types/review_settings.py +5 -0
- label_studio_sdk/types/review_settings_request.py +5 -0
- label_studio_sdk/types/session_timeout_policy.py +31 -0
- label_studio_sdk/types/task_event.py +61 -0
- label_studio_sdk/workspaces/members/__init__.py +2 -2
- label_studio_sdk/workspaces/members/client.py +4 -0
- label_studio_sdk/workspaces/members/paginated/__init__.py +2 -0
- label_studio_sdk/workspaces/members/paginated/client.py +212 -0
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/METADATA +2 -2
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/RECORD +72 -29
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.6.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
import datetime as dt
|
|
7
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AzureServicePrincipalImportStorage(UncheckedBaseModel):
|
|
12
|
+
account_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
Azure Blob account name
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
client_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
18
|
+
"""
|
|
19
|
+
Azure Blob Service Principal Client ID
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
client_secret: typing.Optional[str] = pydantic.Field(default=None)
|
|
23
|
+
"""
|
|
24
|
+
Azure Blob Service Principal Client Secret
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
container: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
Azure blob container
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
created_at: dt.datetime = pydantic.Field()
|
|
33
|
+
"""
|
|
34
|
+
Creation time
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
Cloud storage description
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
id: int
|
|
43
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
44
|
+
"""
|
|
45
|
+
Last sync finished time
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
49
|
+
"""
|
|
50
|
+
Count of tasks synced last time
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
54
|
+
"""
|
|
55
|
+
Last sync job ID
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
59
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
60
|
+
"""
|
|
61
|
+
Azure blob prefix name
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
presign: typing.Optional[bool] = None
|
|
65
|
+
presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
66
|
+
"""
|
|
67
|
+
Presigned URLs TTL (in minutes)
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
project: int = pydantic.Field()
|
|
71
|
+
"""
|
|
72
|
+
A unique integer value identifying this project.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
76
|
+
"""
|
|
77
|
+
Cloud storage regex for filtering objects
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
81
|
+
synchronizable: typing.Optional[bool] = None
|
|
82
|
+
tenant_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
83
|
+
"""
|
|
84
|
+
Azure Tenant ID
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
88
|
+
"""
|
|
89
|
+
Cloud storage title
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
93
|
+
"""
|
|
94
|
+
Traceback report for the last failed sync
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
type: str
|
|
98
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
99
|
+
"""
|
|
100
|
+
Interpret objects as BLOBs and generate URLs
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
user_delegation_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
104
|
+
"""
|
|
105
|
+
User Delegation Key (Backend)
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
if IS_PYDANTIC_V2:
|
|
109
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
110
|
+
else:
|
|
111
|
+
|
|
112
|
+
class Config:
|
|
113
|
+
frozen = True
|
|
114
|
+
smart_union = True
|
|
115
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
import datetime as dt
|
|
7
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AzureServicePrincipalImportStorageRequest(UncheckedBaseModel):
|
|
12
|
+
account_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
Azure Blob account name
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
client_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
18
|
+
"""
|
|
19
|
+
Azure Blob Service Principal Client ID
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
client_secret: typing.Optional[str] = pydantic.Field(default=None)
|
|
23
|
+
"""
|
|
24
|
+
Azure Blob Service Principal Client Secret
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
container: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
Azure blob container
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
Cloud storage description
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
Last sync finished time
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
Count of tasks synced last time
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
48
|
+
"""
|
|
49
|
+
Last sync job ID
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
53
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
54
|
+
"""
|
|
55
|
+
Azure blob prefix name
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
presign: typing.Optional[bool] = None
|
|
59
|
+
presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
60
|
+
"""
|
|
61
|
+
Presigned URLs TTL (in minutes)
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
project: int = pydantic.Field()
|
|
65
|
+
"""
|
|
66
|
+
A unique integer value identifying this project.
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
70
|
+
"""
|
|
71
|
+
Cloud storage regex for filtering objects
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
75
|
+
synchronizable: typing.Optional[bool] = None
|
|
76
|
+
tenant_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
77
|
+
"""
|
|
78
|
+
Azure Tenant ID
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
82
|
+
"""
|
|
83
|
+
Cloud storage title
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
87
|
+
"""
|
|
88
|
+
Traceback report for the last failed sync
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
92
|
+
"""
|
|
93
|
+
Interpret objects as BLOBs and generate URLs
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
user_delegation_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
97
|
+
"""
|
|
98
|
+
User Delegation Key (Backend)
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
if IS_PYDANTIC_V2:
|
|
102
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
103
|
+
else:
|
|
104
|
+
|
|
105
|
+
class Config:
|
|
106
|
+
frozen = True
|
|
107
|
+
smart_union = True
|
|
108
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import datetime as dt
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Blueprint(UncheckedBaseModel):
|
|
11
|
+
created_at: dt.datetime
|
|
12
|
+
created_by: typing.Optional[int] = None
|
|
13
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
14
|
+
"""
|
|
15
|
+
Project description
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
id: int
|
|
19
|
+
label_config: typing.Optional[str] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
Labeling configuration in XML format
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
project: int
|
|
25
|
+
share_id: str
|
|
26
|
+
short_url: str
|
|
27
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
Blueprint name. Must be between 3 and 50 characters long.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
updated_at: dt.datetime
|
|
33
|
+
|
|
34
|
+
if IS_PYDANTIC_V2:
|
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
36
|
+
else:
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
import datetime as dt
|
|
7
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GcswifExportStorage(UncheckedBaseModel):
|
|
12
|
+
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
GCS bucket name
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
18
|
+
"""
|
|
19
|
+
Deletion from storage enabled
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
created_at: dt.datetime = pydantic.Field()
|
|
23
|
+
"""
|
|
24
|
+
Creation time
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
Cloud storage description
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
google_application_credentials: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
The content of GOOGLE_APPLICATION_CREDENTIALS json file
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
Google project ID
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
google_project_number: typing.Optional[str] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
Google project number
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
google_service_account_email: typing.Optional[str] = pydantic.Field(default=None)
|
|
48
|
+
"""
|
|
49
|
+
Google service account email
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
google_wif_pool_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
53
|
+
"""
|
|
54
|
+
Google WIF pool ID
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
google_wif_provider_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
58
|
+
"""
|
|
59
|
+
Google WIF provider ID
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
id: int
|
|
63
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
64
|
+
"""
|
|
65
|
+
Last sync finished time
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
69
|
+
"""
|
|
70
|
+
Count of tasks synced last time
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
74
|
+
"""
|
|
75
|
+
Last sync job ID
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
79
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
80
|
+
"""
|
|
81
|
+
GCS bucket prefix
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
project: int = pydantic.Field()
|
|
85
|
+
"""
|
|
86
|
+
A unique integer value identifying this project.
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
90
|
+
"""
|
|
91
|
+
Cloud storage regex for filtering objects
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
95
|
+
synchronizable: typing.Optional[bool] = None
|
|
96
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
97
|
+
"""
|
|
98
|
+
Cloud storage title
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
102
|
+
"""
|
|
103
|
+
Traceback report for the last failed sync
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
type: str
|
|
107
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
108
|
+
"""
|
|
109
|
+
Interpret objects as BLOBs and generate URLs
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
if IS_PYDANTIC_V2:
|
|
113
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
114
|
+
else:
|
|
115
|
+
|
|
116
|
+
class Config:
|
|
117
|
+
frozen = True
|
|
118
|
+
smart_union = True
|
|
119
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
import datetime as dt
|
|
7
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GcswifExportStorageRequest(UncheckedBaseModel):
|
|
12
|
+
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
GCS bucket name
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
18
|
+
"""
|
|
19
|
+
Deletion from storage enabled
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
23
|
+
"""
|
|
24
|
+
Cloud storage description
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
google_application_credentials: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
The content of GOOGLE_APPLICATION_CREDENTIALS json file
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
Google project ID
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
google_project_number: typing.Optional[str] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
Google project number
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
google_service_account_email: typing.Optional[str] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
Google service account email
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
google_wif_pool_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
48
|
+
"""
|
|
49
|
+
Google WIF pool ID
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
google_wif_provider_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
53
|
+
"""
|
|
54
|
+
Google WIF provider ID
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
58
|
+
"""
|
|
59
|
+
Last sync finished time
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
63
|
+
"""
|
|
64
|
+
Count of tasks synced last time
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
68
|
+
"""
|
|
69
|
+
Last sync job ID
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
73
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
74
|
+
"""
|
|
75
|
+
GCS bucket prefix
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
project: int = pydantic.Field()
|
|
79
|
+
"""
|
|
80
|
+
A unique integer value identifying this project.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
84
|
+
"""
|
|
85
|
+
Cloud storage regex for filtering objects
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
89
|
+
synchronizable: typing.Optional[bool] = None
|
|
90
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
91
|
+
"""
|
|
92
|
+
Cloud storage title
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
96
|
+
"""
|
|
97
|
+
Traceback report for the last failed sync
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
101
|
+
"""
|
|
102
|
+
Interpret objects as BLOBs and generate URLs
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
if IS_PYDANTIC_V2:
|
|
106
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
107
|
+
else:
|
|
108
|
+
|
|
109
|
+
class Config:
|
|
110
|
+
frozen = True
|
|
111
|
+
smart_union = True
|
|
112
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
import datetime as dt
|
|
7
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GcswifImportStorage(UncheckedBaseModel):
|
|
12
|
+
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
GCS bucket name
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
created_at: dt.datetime = pydantic.Field()
|
|
18
|
+
"""
|
|
19
|
+
Creation time
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
23
|
+
"""
|
|
24
|
+
Cloud storage description
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
google_application_credentials: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
The content of GOOGLE_APPLICATION_CREDENTIALS json file
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
Google project ID
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
google_project_number: typing.Optional[str] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
Google project number
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
google_service_account_email: typing.Optional[str] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
Google service account email
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
google_wif_pool_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
48
|
+
"""
|
|
49
|
+
Google WIF pool ID
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
google_wif_provider_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
53
|
+
"""
|
|
54
|
+
Google WIF provider ID
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
id: int
|
|
58
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
59
|
+
"""
|
|
60
|
+
Last sync finished time
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
64
|
+
"""
|
|
65
|
+
Count of tasks synced last time
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
69
|
+
"""
|
|
70
|
+
Last sync job ID
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
74
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
75
|
+
"""
|
|
76
|
+
GCS bucket prefix
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
presign: typing.Optional[bool] = None
|
|
80
|
+
presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
81
|
+
"""
|
|
82
|
+
Presigned URLs TTL (in minutes)
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
project: int = pydantic.Field()
|
|
86
|
+
"""
|
|
87
|
+
A unique integer value identifying this project.
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
91
|
+
"""
|
|
92
|
+
Cloud storage regex for filtering objects
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
96
|
+
synchronizable: typing.Optional[bool] = None
|
|
97
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
98
|
+
"""
|
|
99
|
+
Cloud storage title
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
103
|
+
"""
|
|
104
|
+
Traceback report for the last failed sync
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
type: str
|
|
108
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
109
|
+
"""
|
|
110
|
+
Interpret objects as BLOBs and generate URLs
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
if IS_PYDANTIC_V2:
|
|
114
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
115
|
+
else:
|
|
116
|
+
|
|
117
|
+
class Config:
|
|
118
|
+
frozen = True
|
|
119
|
+
smart_union = True
|
|
120
|
+
extra = pydantic.Extra.allow
|