label-studio-sdk 2.0.5__py3-none-any.whl → 2.0.7__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.

Files changed (92) hide show
  1. label_studio_sdk/__init__.py +70 -0
  2. label_studio_sdk/annotation_history/__init__.py +5 -0
  3. label_studio_sdk/annotation_history/client.py +415 -0
  4. label_studio_sdk/annotation_history/types/__init__.py +5 -0
  5. label_studio_sdk/annotation_history/types/annotation_history_delete_response.py +22 -0
  6. label_studio_sdk/annotation_reviews/__init__.py +2 -0
  7. label_studio_sdk/annotation_reviews/client.py +713 -0
  8. label_studio_sdk/base_client.py +20 -0
  9. label_studio_sdk/blueprints/__init__.py +2 -0
  10. label_studio_sdk/blueprints/client.py +272 -0
  11. label_studio_sdk/core/client_wrapper.py +2 -1
  12. label_studio_sdk/export_storage/__init__.py +2 -2
  13. label_studio_sdk/export_storage/azure_spi/__init__.py +2 -0
  14. label_studio_sdk/export_storage/azure_spi/client.py +1354 -0
  15. label_studio_sdk/export_storage/client.py +8 -0
  16. label_studio_sdk/export_storage/gcswif/__init__.py +2 -0
  17. label_studio_sdk/export_storage/gcswif/client.py +1376 -0
  18. label_studio_sdk/import_storage/__init__.py +2 -2
  19. label_studio_sdk/import_storage/azure_spi/__init__.py +2 -0
  20. label_studio_sdk/import_storage/azure_spi/client.py +1378 -0
  21. label_studio_sdk/import_storage/client.py +8 -0
  22. label_studio_sdk/import_storage/gcswif/__init__.py +2 -0
  23. label_studio_sdk/import_storage/gcswif/client.py +1400 -0
  24. label_studio_sdk/jwt_settings/client.py +10 -8
  25. label_studio_sdk/label_interface/control_tags.py +38 -0
  26. label_studio_sdk/label_interface/data_examples.json +10 -0
  27. label_studio_sdk/label_interface/interface.py +13 -0
  28. label_studio_sdk/label_interface/object_tags.py +9 -0
  29. label_studio_sdk/ml/client.py +124 -0
  30. label_studio_sdk/organizations/__init__.py +3 -2
  31. label_studio_sdk/organizations/client.py +536 -1
  32. label_studio_sdk/organizations/invites/__init__.py +2 -0
  33. label_studio_sdk/organizations/invites/client.py +368 -0
  34. label_studio_sdk/organizations/types/__init__.py +5 -0
  35. label_studio_sdk/organizations/types/patched_default_role_request_custom_scripts_editable_by.py +7 -0
  36. label_studio_sdk/project_templates/__init__.py +2 -0
  37. label_studio_sdk/project_templates/client.py +909 -0
  38. label_studio_sdk/projects/client.py +8 -0
  39. label_studio_sdk/projects/members/__init__.py +2 -2
  40. label_studio_sdk/projects/members/bulk/client.py +46 -2
  41. label_studio_sdk/projects/members/client.py +4 -0
  42. label_studio_sdk/projects/members/paginated/__init__.py +2 -0
  43. label_studio_sdk/projects/members/paginated/client.py +248 -0
  44. label_studio_sdk/session_policy/__init__.py +2 -0
  45. label_studio_sdk/session_policy/client.py +247 -0
  46. label_studio_sdk/tasks/client.py +371 -0
  47. label_studio_sdk/types/__init__.py +56 -0
  48. label_studio_sdk/types/action_enum.py +19 -0
  49. label_studio_sdk/types/all_roles_project_list.py +1 -1
  50. label_studio_sdk/types/annotation.py +7 -0
  51. label_studio_sdk/types/annotation_history.py +81 -0
  52. label_studio_sdk/types/annotation_history_action.py +7 -0
  53. label_studio_sdk/types/annotation_request.py +7 -0
  54. label_studio_sdk/types/annotation_review.py +61 -0
  55. label_studio_sdk/types/annotation_review_request.py +41 -0
  56. label_studio_sdk/types/azure_service_principal_export_storage.py +114 -0
  57. label_studio_sdk/types/azure_service_principal_export_storage_request.py +107 -0
  58. label_studio_sdk/types/azure_service_principal_import_storage.py +115 -0
  59. label_studio_sdk/types/azure_service_principal_import_storage_request.py +108 -0
  60. label_studio_sdk/types/blueprint.py +41 -0
  61. label_studio_sdk/types/default_role.py +75 -0
  62. label_studio_sdk/types/default_role_custom_scripts_editable_by.py +7 -0
  63. label_studio_sdk/types/gcswif_export_storage.py +119 -0
  64. label_studio_sdk/types/gcswif_export_storage_request.py +112 -0
  65. label_studio_sdk/types/gcswif_import_storage.py +120 -0
  66. label_studio_sdk/types/gcswif_import_storage_request.py +113 -0
  67. label_studio_sdk/types/lse_project.py +223 -0
  68. label_studio_sdk/types/lse_project_sampling.py +7 -0
  69. label_studio_sdk/types/lse_project_skip_queue.py +7 -0
  70. label_studio_sdk/types/lse_project_update.py +1 -0
  71. label_studio_sdk/types/lse_task.py +1 -0
  72. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +1 -0
  73. label_studio_sdk/types/lsejwt_settings.py +1 -5
  74. label_studio_sdk/types/paginated_annotation_history_list.py +23 -0
  75. label_studio_sdk/types/paginated_lse_user_list.py +23 -0
  76. label_studio_sdk/types/paginated_paginated_project_member_list.py +23 -0
  77. label_studio_sdk/types/paginated_project_member.py +50 -0
  78. label_studio_sdk/types/project_member_bulk_assign_roles_request.py +21 -0
  79. label_studio_sdk/types/project_template.py +41 -0
  80. label_studio_sdk/types/project_template_request.py +38 -0
  81. label_studio_sdk/types/review_settings.py +5 -0
  82. label_studio_sdk/types/review_settings_request.py +5 -0
  83. label_studio_sdk/types/session_timeout_policy.py +31 -0
  84. label_studio_sdk/types/task_event.py +61 -0
  85. label_studio_sdk/workspaces/members/__init__.py +2 -2
  86. label_studio_sdk/workspaces/members/client.py +4 -0
  87. label_studio_sdk/workspaces/members/paginated/__init__.py +2 -0
  88. label_studio_sdk/workspaces/members/paginated/client.py +212 -0
  89. {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.7.dist-info}/METADATA +2 -2
  90. {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.7.dist-info}/RECORD +92 -36
  91. {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.7.dist-info}/LICENSE +0 -0
  92. {label_studio_sdk-2.0.5.dist-info → label_studio_sdk-2.0.7.dist-info}/WHEEL +0 -0
@@ -0,0 +1,107 @@
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 AzureServicePrincipalExportStorageRequest(UncheckedBaseModel):
12
+ account_name: typing.Optional[str] = pydantic.Field(default=None)
13
+ """
14
+ Azure Blob account name
15
+ """
16
+
17
+ can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
18
+ """
19
+ Deletion from storage enabled
20
+ """
21
+
22
+ client_id: typing.Optional[str] = pydantic.Field(default=None)
23
+ """
24
+ Azure Blob Service Principal Client ID
25
+ """
26
+
27
+ client_secret: typing.Optional[str] = pydantic.Field(default=None)
28
+ """
29
+ Azure Blob Service Principal Client Secret
30
+ """
31
+
32
+ container: typing.Optional[str] = pydantic.Field(default=None)
33
+ """
34
+ Azure blob container
35
+ """
36
+
37
+ description: typing.Optional[str] = pydantic.Field(default=None)
38
+ """
39
+ Cloud storage description
40
+ """
41
+
42
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
43
+ """
44
+ Last sync finished time
45
+ """
46
+
47
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
48
+ """
49
+ Count of tasks synced last time
50
+ """
51
+
52
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
53
+ """
54
+ Last sync job ID
55
+ """
56
+
57
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
58
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
59
+ """
60
+ Azure blob prefix name
61
+ """
62
+
63
+ project: int = pydantic.Field()
64
+ """
65
+ A unique integer value identifying this project.
66
+ """
67
+
68
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
69
+ """
70
+ Cloud storage regex for filtering objects
71
+ """
72
+
73
+ status: typing.Optional[StatusC5AEnum] = None
74
+ synchronizable: typing.Optional[bool] = None
75
+ tenant_id: typing.Optional[str] = pydantic.Field(default=None)
76
+ """
77
+ Azure Tenant ID
78
+ """
79
+
80
+ title: typing.Optional[str] = pydantic.Field(default=None)
81
+ """
82
+ Cloud storage title
83
+ """
84
+
85
+ traceback: typing.Optional[str] = pydantic.Field(default=None)
86
+ """
87
+ Traceback report for the last failed sync
88
+ """
89
+
90
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
91
+ """
92
+ Interpret objects as BLOBs and generate URLs
93
+ """
94
+
95
+ user_delegation_key: typing.Optional[str] = pydantic.Field(default=None)
96
+ """
97
+ User Delegation Key (Backend)
98
+ """
99
+
100
+ if IS_PYDANTIC_V2:
101
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
102
+ else:
103
+
104
+ class Config:
105
+ frozen = True
106
+ smart_union = True
107
+ extra = pydantic.Extra.allow
@@ -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,75 @@
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 datetime as dt
6
+ import pydantic
7
+ from .default_role_custom_scripts_editable_by import DefaultRoleCustomScriptsEditableBy
8
+ from .default_role_enum import DefaultRoleEnum
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+
11
+
12
+ class DefaultRole(UncheckedBaseModel):
13
+ annotator_reviewer_firewall_enabled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
14
+ """
15
+ Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI.
16
+ """
17
+
18
+ custom_scripts_editable_by: typing.Optional[DefaultRoleCustomScriptsEditableBy] = pydantic.Field(default=None)
19
+ """
20
+ Set the minimum user role that can edit custom scripts in the UI.
21
+
22
+ * `AD` - Administrator
23
+ * `MA` - Manager
24
+ """
25
+
26
+ custom_scripts_enabled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
27
+ """
28
+ Set to current time to enabled custom scripts for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts.
29
+ """
30
+
31
+ default_role: typing.Optional[DefaultRoleEnum] = pydantic.Field(default=None)
32
+ """
33
+ Default membership role for invited users
34
+
35
+ * `OW` - Owner
36
+ * `AD` - Administrator
37
+ * `MA` - Manager
38
+ * `RE` - Reviewer
39
+ * `AN` - Annotator
40
+ * `DI` - Deactivated
41
+ * `NO` - Not Activated
42
+ """
43
+
44
+ email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = None
45
+ embed_domains: typing.Optional[typing.Optional[typing.Any]] = None
46
+ embed_settings: typing.Optional[typing.Optional[typing.Any]] = None
47
+ external_id: typing.Optional[str] = pydantic.Field(default=None)
48
+ """
49
+ External ID to uniquely identify this organization
50
+ """
51
+
52
+ extra_data_on_activity_logs: typing.Optional[bool] = None
53
+ label_stream_navigation_disabled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
54
+ """
55
+ Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels.
56
+ """
57
+
58
+ organization: int = pydantic.Field()
59
+ """
60
+ A unique integer value identifying this organization.
61
+ """
62
+
63
+ read_only_quick_view_enabled_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
64
+ """
65
+ Set to current time to prevent creating or editing annotations in quick view.
66
+ """
67
+
68
+ if IS_PYDANTIC_V2:
69
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
70
+ else:
71
+
72
+ class Config:
73
+ frozen = True
74
+ smart_union = True
75
+ extra = pydantic.Extra.allow
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .custom_scripts_editable_by_enum import CustomScriptsEditableByEnum
5
+ from .null_enum import NullEnum
6
+
7
+ DefaultRoleCustomScriptsEditableBy = typing.Union[CustomScriptsEditableByEnum, NullEnum]
@@ -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