label-studio-sdk 2.0.8__py3-none-any.whl → 2.0.9__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 (70) hide show
  1. label_studio_sdk/__init__.py +36 -16
  2. label_studio_sdk/base_client.py +0 -4
  3. label_studio_sdk/core/client_wrapper.py +1 -1
  4. label_studio_sdk/export_storage/__init__.py +13 -2
  5. label_studio_sdk/export_storage/client.py +4 -0
  6. label_studio_sdk/export_storage/databricks/client.py +1406 -0
  7. label_studio_sdk/import_storage/__init__.py +13 -2
  8. label_studio_sdk/import_storage/client.py +4 -0
  9. label_studio_sdk/import_storage/databricks/__init__.py +2 -0
  10. label_studio_sdk/import_storage/databricks/client.py +1466 -0
  11. label_studio_sdk/import_storage/gcswif/client.py +30 -0
  12. label_studio_sdk/projects/__init__.py +0 -2
  13. label_studio_sdk/projects/client.py +186 -32
  14. label_studio_sdk/projects/client_ext.py +20 -8
  15. label_studio_sdk/projects/types/__init__.py +0 -2
  16. label_studio_sdk/projects/types/lse_project_create_request_sampling.py +2 -2
  17. label_studio_sdk/projects/types/patched_lse_project_update_request_sampling.py +2 -2
  18. label_studio_sdk/prompts/client.py +340 -1
  19. label_studio_sdk/prompts/runs/client.py +127 -0
  20. label_studio_sdk/tasks/client.py +7 -2
  21. label_studio_sdk/types/__init__.py +36 -12
  22. label_studio_sdk/types/all_roles_project_list.py +10 -10
  23. label_studio_sdk/types/all_roles_project_list_sampling.py +2 -2
  24. label_studio_sdk/types/azure_blob_import_storage.py +5 -0
  25. label_studio_sdk/types/cancel_model_run_response.py +19 -0
  26. label_studio_sdk/types/configurable_permission_option.py +2 -2
  27. label_studio_sdk/types/databricks_export_storage.py +113 -0
  28. label_studio_sdk/types/databricks_export_storage_request.py +107 -0
  29. label_studio_sdk/types/databricks_import_storage.py +123 -0
  30. label_studio_sdk/types/databricks_import_storage_request.py +117 -0
  31. label_studio_sdk/types/default165enum.py +5 -0
  32. label_studio_sdk/types/gcs_import_storage.py +5 -0
  33. label_studio_sdk/types/gcswif_import_storage.py +5 -0
  34. label_studio_sdk/types/gcswif_import_storage_request.py +5 -0
  35. label_studio_sdk/types/local_files_import_storage.py +5 -0
  36. label_studio_sdk/types/lse_project_counts.py +8 -8
  37. label_studio_sdk/types/lse_project_create_sampling.py +2 -2
  38. label_studio_sdk/types/{project.py → lse_project_response.py} +44 -31
  39. label_studio_sdk/types/lse_project_response_sampling.py +7 -0
  40. label_studio_sdk/types/{project_skip_queue.py → lse_project_response_skip_queue.py} +1 -1
  41. label_studio_sdk/types/lse_project_sampling.py +2 -2
  42. label_studio_sdk/types/lse_project_update_sampling.py +2 -2
  43. label_studio_sdk/types/lse_task.py +6 -0
  44. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +6 -0
  45. label_studio_sdk/types/lse_user.py +1 -0
  46. label_studio_sdk/types/lse_user_api.py +1 -0
  47. label_studio_sdk/types/options165enum.py +5 -0
  48. label_studio_sdk/types/organization_permission.py +7 -4
  49. label_studio_sdk/types/paginated_project_member.py +1 -0
  50. label_studio_sdk/types/paginated_project_subset_tasks_response_list.py +23 -0
  51. label_studio_sdk/types/project_subset_item.py +21 -0
  52. label_studio_sdk/types/project_subset_task_item.py +24 -0
  53. label_studio_sdk/types/project_subset_tasks_response.py +27 -0
  54. label_studio_sdk/types/review_settings.py +14 -0
  55. label_studio_sdk/types/review_settings_request.py +14 -0
  56. label_studio_sdk/types/review_settings_request_sampling.py +8 -0
  57. label_studio_sdk/types/review_settings_sampling.py +8 -0
  58. label_studio_sdk/types/review_settings_sampling_enum.py +5 -0
  59. label_studio_sdk/types/{sampling_enum.py → sampling_de5enum.py} +1 -1
  60. label_studio_sdk/types/who_am_i_user.py +1 -0
  61. {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/METADATA +41 -90
  62. {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/RECORD +65 -52
  63. label_studio_sdk/blueprints/client.py +0 -272
  64. label_studio_sdk/projects/types/projects_list_request_filter.py +0 -5
  65. label_studio_sdk/types/blueprint.py +0 -41
  66. label_studio_sdk/types/configurable_permission_option_default.py +0 -7
  67. label_studio_sdk/types/project_sampling.py +0 -7
  68. /label_studio_sdk/{blueprints → export_storage/databricks}/__init__.py +0 -0
  69. {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/LICENSE +0 -0
  70. {label_studio_sdk-2.0.8.dist-info → label_studio_sdk-2.0.9.dist-info}/WHEEL +0 -0
@@ -36,19 +36,23 @@ from .billing_checks import BillingChecks
36
36
  from .billing_flags import BillingFlags
37
37
  from .billing_info_response import BillingInfoResponse
38
38
  from .blank_enum import BlankEnum
39
- from .blueprint import Blueprint
40
39
  from .blueprint_list import BlueprintList
41
40
  from .budget_reset_period_enum import BudgetResetPeriodEnum
41
+ from .cancel_model_run_response import CancelModelRunResponse
42
42
  from .child_filter import ChildFilter
43
43
  from .comment import Comment
44
44
  from .comment_request import CommentRequest
45
45
  from .comment_serializer_with_expanded_user import CommentSerializerWithExpandedUser
46
46
  from .configurable_permission_option import ConfigurablePermissionOption
47
- from .configurable_permission_option_default import ConfigurablePermissionOptionDefault
48
47
  from .converted_format import ConvertedFormat
49
48
  from .converted_format_request import ConvertedFormatRequest
50
49
  from .count_limit import CountLimit
51
50
  from .custom_scripts_editable_by_enum import CustomScriptsEditableByEnum
51
+ from .databricks_export_storage import DatabricksExportStorage
52
+ from .databricks_export_storage_request import DatabricksExportStorageRequest
53
+ from .databricks_import_storage import DatabricksImportStorage
54
+ from .databricks_import_storage_request import DatabricksImportStorageRequest
55
+ from .default165enum import Default165Enum
52
56
  from .default_role import DefaultRole
53
57
  from .default_role_custom_scripts_editable_by import DefaultRoleCustomScriptsEditableBy
54
58
  from .edition_enum import EditionEnum
@@ -87,6 +91,9 @@ from .lse_project_counts import LseProjectCounts
87
91
  from .lse_project_create import LseProjectCreate
88
92
  from .lse_project_create_sampling import LseProjectCreateSampling
89
93
  from .lse_project_create_skip_queue import LseProjectCreateSkipQueue
94
+ from .lse_project_response import LseProjectResponse
95
+ from .lse_project_response_sampling import LseProjectResponseSampling
96
+ from .lse_project_response_skip_queue import LseProjectResponseSkipQueue
90
97
  from .lse_project_sampling import LseProjectSampling
91
98
  from .lse_project_skip_queue import LseProjectSkipQueue
92
99
  from .lse_project_update import LseProjectUpdate
@@ -135,6 +142,7 @@ from .model_run import ModelRun
135
142
  from .model_run_status_enum import ModelRunStatusEnum
136
143
  from .null_enum import NullEnum
137
144
  from .onboarding_state_enum import OnboardingStateEnum
145
+ from .options165enum import Options165Enum
138
146
  from .organization_billing import OrganizationBilling
139
147
  from .organization_id import OrganizationId
140
148
  from .organization_invite import OrganizationInvite
@@ -149,12 +157,12 @@ from .paginated_lse_project_counts_list import PaginatedLseProjectCountsList
149
157
  from .paginated_lse_user_list import PaginatedLseUserList
150
158
  from .paginated_paginated_project_member_list import PaginatedPaginatedProjectMemberList
151
159
  from .paginated_project_member import PaginatedProjectMember
160
+ from .paginated_project_subset_tasks_response_list import PaginatedProjectSubsetTasksResponseList
152
161
  from .paginated_role_based_task_list import PaginatedRoleBasedTaskList
153
162
  from .pause import Pause
154
163
  from .pause_request import PauseRequest
155
164
  from .prediction import Prediction
156
165
  from .prediction_request import PredictionRequest
157
- from .project import Project
158
166
  from .project_group import ProjectGroup
159
167
  from .project_group_request import ProjectGroupRequest
160
168
  from .project_group_role_enum import ProjectGroupRoleEnum
@@ -162,9 +170,10 @@ from .project_import import ProjectImport
162
170
  from .project_label_config import ProjectLabelConfig
163
171
  from .project_label_config_request import ProjectLabelConfigRequest
164
172
  from .project_member_bulk_assign_roles_request import ProjectMemberBulkAssignRolesRequest
165
- from .project_sampling import ProjectSampling
166
- from .project_skip_queue import ProjectSkipQueue
167
173
  from .project_subset_enum import ProjectSubsetEnum
174
+ from .project_subset_item import ProjectSubsetItem
175
+ from .project_subset_task_item import ProjectSubsetTaskItem
176
+ from .project_subset_tasks_response import ProjectSubsetTasksResponse
168
177
  from .project_template import ProjectTemplate
169
178
  from .project_template_request import ProjectTemplateRequest
170
179
  from .prompts_status_enum import PromptsStatusEnum
@@ -179,8 +188,11 @@ from .review_settings import ReviewSettings
179
188
  from .review_settings_request import ReviewSettingsRequest
180
189
  from .review_settings_request_requeue_rejected_tasks_mode import ReviewSettingsRequestRequeueRejectedTasksMode
181
190
  from .review_settings_request_review_criteria import ReviewSettingsRequestReviewCriteria
191
+ from .review_settings_request_sampling import ReviewSettingsRequestSampling
182
192
  from .review_settings_requeue_rejected_tasks_mode import ReviewSettingsRequeueRejectedTasksMode
183
193
  from .review_settings_review_criteria import ReviewSettingsReviewCriteria
194
+ from .review_settings_sampling import ReviewSettingsSampling
195
+ from .review_settings_sampling_enum import ReviewSettingsSamplingEnum
184
196
  from .reviewed_enum import ReviewedEnum
185
197
  from .role9e7enum import Role9E7Enum
186
198
  from .role_based_task import RoleBasedTask
@@ -188,7 +200,7 @@ from .s3export_storage import S3ExportStorage
188
200
  from .s3import_storage import S3ImportStorage
189
201
  from .saml_settings import SamlSettings
190
202
  from .saml_settings_update import SamlSettingsUpdate
191
- from .sampling_enum import SamplingEnum
203
+ from .sampling_de5enum import SamplingDe5Enum
192
204
  from .scim_settings import ScimSettings
193
205
  from .scim_settings_update import ScimSettingsUpdate
194
206
  from .scope_enum import ScopeEnum
@@ -261,19 +273,23 @@ __all__ = [
261
273
  "BillingFlags",
262
274
  "BillingInfoResponse",
263
275
  "BlankEnum",
264
- "Blueprint",
265
276
  "BlueprintList",
266
277
  "BudgetResetPeriodEnum",
278
+ "CancelModelRunResponse",
267
279
  "ChildFilter",
268
280
  "Comment",
269
281
  "CommentRequest",
270
282
  "CommentSerializerWithExpandedUser",
271
283
  "ConfigurablePermissionOption",
272
- "ConfigurablePermissionOptionDefault",
273
284
  "ConvertedFormat",
274
285
  "ConvertedFormatRequest",
275
286
  "CountLimit",
276
287
  "CustomScriptsEditableByEnum",
288
+ "DatabricksExportStorage",
289
+ "DatabricksExportStorageRequest",
290
+ "DatabricksImportStorage",
291
+ "DatabricksImportStorageRequest",
292
+ "Default165Enum",
277
293
  "DefaultRole",
278
294
  "DefaultRoleCustomScriptsEditableBy",
279
295
  "EditionEnum",
@@ -312,6 +328,9 @@ __all__ = [
312
328
  "LseProjectCreate",
313
329
  "LseProjectCreateSampling",
314
330
  "LseProjectCreateSkipQueue",
331
+ "LseProjectResponse",
332
+ "LseProjectResponseSampling",
333
+ "LseProjectResponseSkipQueue",
315
334
  "LseProjectSampling",
316
335
  "LseProjectSkipQueue",
317
336
  "LseProjectUpdate",
@@ -360,6 +379,7 @@ __all__ = [
360
379
  "ModelRunStatusEnum",
361
380
  "NullEnum",
362
381
  "OnboardingStateEnum",
382
+ "Options165Enum",
363
383
  "OrganizationBilling",
364
384
  "OrganizationId",
365
385
  "OrganizationInvite",
@@ -374,12 +394,12 @@ __all__ = [
374
394
  "PaginatedLseUserList",
375
395
  "PaginatedPaginatedProjectMemberList",
376
396
  "PaginatedProjectMember",
397
+ "PaginatedProjectSubsetTasksResponseList",
377
398
  "PaginatedRoleBasedTaskList",
378
399
  "Pause",
379
400
  "PauseRequest",
380
401
  "Prediction",
381
402
  "PredictionRequest",
382
- "Project",
383
403
  "ProjectGroup",
384
404
  "ProjectGroupRequest",
385
405
  "ProjectGroupRoleEnum",
@@ -387,9 +407,10 @@ __all__ = [
387
407
  "ProjectLabelConfig",
388
408
  "ProjectLabelConfigRequest",
389
409
  "ProjectMemberBulkAssignRolesRequest",
390
- "ProjectSampling",
391
- "ProjectSkipQueue",
392
410
  "ProjectSubsetEnum",
411
+ "ProjectSubsetItem",
412
+ "ProjectSubsetTaskItem",
413
+ "ProjectSubsetTasksResponse",
393
414
  "ProjectTemplate",
394
415
  "ProjectTemplateRequest",
395
416
  "PromptsStatusEnum",
@@ -404,8 +425,11 @@ __all__ = [
404
425
  "ReviewSettingsRequest",
405
426
  "ReviewSettingsRequestRequeueRejectedTasksMode",
406
427
  "ReviewSettingsRequestReviewCriteria",
428
+ "ReviewSettingsRequestSampling",
407
429
  "ReviewSettingsRequeueRejectedTasksMode",
408
430
  "ReviewSettingsReviewCriteria",
431
+ "ReviewSettingsSampling",
432
+ "ReviewSettingsSamplingEnum",
409
433
  "ReviewedEnum",
410
434
  "Role9E7Enum",
411
435
  "RoleBasedTask",
@@ -413,7 +437,7 @@ __all__ = [
413
437
  "S3ImportStorage",
414
438
  "SamlSettings",
415
439
  "SamlSettingsUpdate",
416
- "SamplingEnum",
440
+ "SamplingDe5Enum",
417
441
  "ScimSettings",
418
442
  "ScimSettingsUpdate",
419
443
  "ScopeEnum",
@@ -19,7 +19,7 @@ class AllRolesProjectList(UncheckedBaseModel):
19
19
  make sure, that you use correct one(Project.objects.with_counts())
20
20
  """
21
21
 
22
- allow_stream: str
22
+ allow_stream: bool
23
23
  annotation_limit_count: typing.Optional[int] = None
24
24
  annotation_limit_percent: typing.Optional[str] = None
25
25
  annotator_evaluation_minimum_score: typing.Optional[str] = None
@@ -114,7 +114,7 @@ class AllRolesProjectList(UncheckedBaseModel):
114
114
  Machine learning model version
115
115
  """
116
116
 
117
- num_tasks_with_annotations: str
117
+ num_tasks_with_annotations: int
118
118
  organization: typing.Optional[int] = None
119
119
  overlap_cohort_percentage: typing.Optional[int] = None
120
120
  parsed_label_config: typing.Optional[typing.Any] = None
@@ -125,11 +125,11 @@ class AllRolesProjectList(UncheckedBaseModel):
125
125
  """
126
126
 
127
127
  prompts: str
128
- queue_done: str
129
- queue_left: str
128
+ queue_done: int
129
+ queue_left: int
130
130
  queue_total: str
131
- ready: str
132
- rejected: str
131
+ ready: bool
132
+ rejected: int
133
133
  require_comment_on_skip: typing.Optional[bool] = None
134
134
  reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
135
135
  """
@@ -137,9 +137,9 @@ class AllRolesProjectList(UncheckedBaseModel):
137
137
  """
138
138
 
139
139
  review_settings: ReviewSettings
140
- review_total_tasks: str
141
- reviewed_number: str
142
- reviewer_queue_total: str
140
+ review_total_tasks: int
141
+ reviewed_number: int
142
+ reviewer_queue_total: int
143
143
  sampling: typing.Optional[AllRolesProjectListSampling] = None
144
144
  show_annotation_history: typing.Optional[bool] = pydantic.Field(default=None)
145
145
  """
@@ -183,7 +183,7 @@ class AllRolesProjectList(UncheckedBaseModel):
183
183
 
184
184
  total_annotations_number: str
185
185
  total_predictions_number: int
186
- useful_annotation_number: str
186
+ useful_annotation_number: typing.Optional[int] = None
187
187
  workspace: str
188
188
  workspace_title: str
189
189
 
@@ -1,7 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  import typing
4
- from .sampling_enum import SamplingEnum
4
+ from .sampling_de5enum import SamplingDe5Enum
5
5
  from .null_enum import NullEnum
6
6
 
7
- AllRolesProjectListSampling = typing.Union[SamplingEnum, NullEnum]
7
+ AllRolesProjectListSampling = typing.Union[SamplingDe5Enum, NullEnum]
@@ -67,6 +67,11 @@ class AzureBlobImportStorage(UncheckedBaseModel):
67
67
  A unique integer value identifying this project.
68
68
  """
69
69
 
70
+ recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
71
+ """
72
+ Perform recursive scan over the container content
73
+ """
74
+
70
75
  regex_filter: typing.Optional[str] = pydantic.Field(default=None)
71
76
  """
72
77
  Cloud storage regex for filtering objects
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class CancelModelRunResponse(UncheckedBaseModel):
10
+ detail: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -2,14 +2,14 @@
2
2
 
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
- from .configurable_permission_option_default import ConfigurablePermissionOptionDefault
6
5
  from .role9e7enum import Role9E7Enum
7
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
7
  import pydantic
9
8
 
10
9
 
11
10
  class ConfigurablePermissionOption(UncheckedBaseModel):
12
- default: typing.Optional[ConfigurablePermissionOptionDefault] = None
11
+ default: typing.List[Role9E7Enum]
12
+ group: typing.Optional[str] = None
13
13
  label: typing.Optional[str] = None
14
14
  options: typing.List[Role9E7Enum]
15
15
  permission: str
@@ -0,0 +1,113 @@
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
+ import typing_extensions
8
+ from ..core.serialization import FieldMetadata
9
+ from .status_c5a_enum import StatusC5AEnum
10
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
+
12
+
13
+ class DatabricksExportStorage(UncheckedBaseModel):
14
+ can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
15
+ """
16
+ Deletion from storage enabled
17
+ """
18
+
19
+ catalog: str = pydantic.Field()
20
+ """
21
+ UC catalog name
22
+ """
23
+
24
+ created_at: dt.datetime = pydantic.Field()
25
+ """
26
+ Creation time
27
+ """
28
+
29
+ description: typing.Optional[str] = pydantic.Field(default=None)
30
+ """
31
+ Cloud storage description
32
+ """
33
+
34
+ host: str = pydantic.Field()
35
+ """
36
+ Databricks workspace base URL (https://...)
37
+ """
38
+
39
+ id: int
40
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
41
+ """
42
+ Last sync finished time
43
+ """
44
+
45
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
46
+ """
47
+ Count of tasks synced last time
48
+ """
49
+
50
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
51
+ """
52
+ Last sync job ID
53
+ """
54
+
55
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
56
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
57
+ """
58
+ Export path prefix under the volume
59
+ """
60
+
61
+ project: int = pydantic.Field()
62
+ """
63
+ A unique integer value identifying this project.
64
+ """
65
+
66
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
67
+ """
68
+ Regex for filtering objects
69
+ """
70
+
71
+ request_timeout_s: typing.Optional[int] = None
72
+ schema_: typing_extensions.Annotated[str, FieldMetadata(alias="schema")] = pydantic.Field()
73
+ """
74
+ UC schema name
75
+ """
76
+
77
+ status: typing.Optional[StatusC5AEnum] = None
78
+ stream_chunk_bytes: typing.Optional[int] = None
79
+ synchronizable: typing.Optional[bool] = None
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
+ type: str
91
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
92
+ """
93
+ Generate blob URLs in tasks
94
+ """
95
+
96
+ verify_tls: typing.Optional[bool] = pydantic.Field(default=None)
97
+ """
98
+ Verify TLS certificates
99
+ """
100
+
101
+ volume: str = pydantic.Field()
102
+ """
103
+ UC volume name
104
+ """
105
+
106
+ if IS_PYDANTIC_V2:
107
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
108
+ else:
109
+
110
+ class Config:
111
+ frozen = True
112
+ smart_union = True
113
+ extra = pydantic.Extra.allow
@@ -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
+ import typing_extensions
8
+ from ..core.serialization import FieldMetadata
9
+ from .status_c5a_enum import StatusC5AEnum
10
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
+
12
+
13
+ class DatabricksExportStorageRequest(UncheckedBaseModel):
14
+ can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
15
+ """
16
+ Deletion from storage enabled
17
+ """
18
+
19
+ catalog: str = pydantic.Field()
20
+ """
21
+ UC catalog name
22
+ """
23
+
24
+ description: typing.Optional[str] = pydantic.Field(default=None)
25
+ """
26
+ Cloud storage description
27
+ """
28
+
29
+ host: str = pydantic.Field()
30
+ """
31
+ Databricks workspace base URL (https://...)
32
+ """
33
+
34
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
35
+ """
36
+ Last sync finished time
37
+ """
38
+
39
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
40
+ """
41
+ Count of tasks synced last time
42
+ """
43
+
44
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
45
+ """
46
+ Last sync job ID
47
+ """
48
+
49
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
50
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
51
+ """
52
+ Export path prefix under the volume
53
+ """
54
+
55
+ project: int = pydantic.Field()
56
+ """
57
+ A unique integer value identifying this project.
58
+ """
59
+
60
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
61
+ """
62
+ Regex for filtering objects
63
+ """
64
+
65
+ request_timeout_s: typing.Optional[int] = None
66
+ schema_: typing_extensions.Annotated[str, FieldMetadata(alias="schema")] = pydantic.Field()
67
+ """
68
+ UC schema name
69
+ """
70
+
71
+ status: typing.Optional[StatusC5AEnum] = None
72
+ stream_chunk_bytes: typing.Optional[int] = None
73
+ synchronizable: typing.Optional[bool] = None
74
+ title: typing.Optional[str] = pydantic.Field(default=None)
75
+ """
76
+ Cloud storage title
77
+ """
78
+
79
+ token: typing.Optional[str] = None
80
+ traceback: typing.Optional[str] = pydantic.Field(default=None)
81
+ """
82
+ Traceback report for the last failed sync
83
+ """
84
+
85
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
86
+ """
87
+ Generate blob URLs in tasks
88
+ """
89
+
90
+ verify_tls: typing.Optional[bool] = pydantic.Field(default=None)
91
+ """
92
+ Verify TLS certificates
93
+ """
94
+
95
+ volume: str = pydantic.Field()
96
+ """
97
+ UC volume name
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,123 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import pydantic
5
+ import datetime as dt
6
+ import typing
7
+ import typing_extensions
8
+ from ..core.serialization import FieldMetadata
9
+ from .status_c5a_enum import StatusC5AEnum
10
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
+
12
+
13
+ class DatabricksImportStorage(UncheckedBaseModel):
14
+ catalog: str = pydantic.Field()
15
+ """
16
+ UC catalog name
17
+ """
18
+
19
+ created_at: dt.datetime = pydantic.Field()
20
+ """
21
+ Creation time
22
+ """
23
+
24
+ description: typing.Optional[str] = pydantic.Field(default=None)
25
+ """
26
+ Cloud storage description
27
+ """
28
+
29
+ host: str = pydantic.Field()
30
+ """
31
+ Databricks workspace base URL (https://...)
32
+ """
33
+
34
+ id: int
35
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
36
+ """
37
+ Last sync finished time
38
+ """
39
+
40
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
41
+ """
42
+ Count of tasks synced last time
43
+ """
44
+
45
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
46
+ """
47
+ Last sync job ID
48
+ """
49
+
50
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
51
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
52
+ """
53
+ Path under the volume
54
+ """
55
+
56
+ presign: typing.Optional[bool] = pydantic.Field(default=None)
57
+ """
58
+ Presign not supported; always proxied
59
+ """
60
+
61
+ presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
62
+ """
63
+ Unused for Databricks; kept for compatibility
64
+ """
65
+
66
+ project: int = pydantic.Field()
67
+ """
68
+ A unique integer value identifying this project.
69
+ """
70
+
71
+ recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
72
+ """
73
+ Perform recursive scan
74
+ """
75
+
76
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
77
+ """
78
+ Regex for filtering objects
79
+ """
80
+
81
+ request_timeout_s: typing.Optional[int] = None
82
+ schema_: typing_extensions.Annotated[str, FieldMetadata(alias="schema")] = pydantic.Field()
83
+ """
84
+ UC schema name
85
+ """
86
+
87
+ status: typing.Optional[StatusC5AEnum] = None
88
+ stream_chunk_bytes: typing.Optional[int] = 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
+ type: str
101
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
102
+ """
103
+ Generate blob URLs in tasks
104
+ """
105
+
106
+ verify_tls: typing.Optional[bool] = pydantic.Field(default=None)
107
+ """
108
+ Verify TLS certificates
109
+ """
110
+
111
+ volume: str = pydantic.Field()
112
+ """
113
+ UC volume name
114
+ """
115
+
116
+ if IS_PYDANTIC_V2:
117
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
118
+ else:
119
+
120
+ class Config:
121
+ frozen = True
122
+ smart_union = True
123
+ extra = pydantic.Extra.allow