databricks-sdk 0.70.0__py3-none-any.whl → 0.71.0__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 databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/__init__.py +24 -24
- databricks/sdk/mixins/files.py +10 -10
- databricks/sdk/service/agentbricks.py +2 -0
- databricks/sdk/service/apps.py +10 -0
- databricks/sdk/service/billing.py +13 -3
- databricks/sdk/service/catalog.py +129 -46
- databricks/sdk/service/cleanrooms.py +11 -3
- databricks/sdk/service/compute.py +54 -0
- databricks/sdk/service/dashboards.py +10 -0
- databricks/sdk/service/database.py +12 -0
- databricks/sdk/service/dataquality.py +4 -0
- databricks/sdk/service/files.py +7 -72
- databricks/sdk/service/iam.py +26 -36
- databricks/sdk/service/iamv2.py +6 -0
- databricks/sdk/service/jobs.py +13 -116
- databricks/sdk/service/marketplace.py +18 -0
- databricks/sdk/service/ml.py +171 -17
- databricks/sdk/service/oauth2.py +10 -18
- databricks/sdk/service/pipelines.py +23 -0
- databricks/sdk/service/provisioning.py +9 -0
- databricks/sdk/service/qualitymonitorv2.py +2 -0
- databricks/sdk/service/serving.py +16 -21
- databricks/sdk/service/settings.py +43 -72
- databricks/sdk/service/settingsv2.py +2 -0
- databricks/sdk/service/sharing.py +23 -31
- databricks/sdk/service/sql.py +48 -24
- databricks/sdk/service/tags.py +2 -0
- databricks/sdk/service/vectorsearch.py +8 -0
- databricks/sdk/service/workspace.py +18 -91
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.71.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.71.0.dist-info}/RECORD +36 -36
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.71.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.71.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.71.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.71.0.dist-info}/top_level.txt +0 -0
databricks/sdk/service/files.py
CHANGED
|
@@ -51,24 +51,6 @@ class CloseResponse:
|
|
|
51
51
|
return cls()
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
@dataclass
|
|
55
|
-
class CreateDirectoryResponse:
|
|
56
|
-
def as_dict(self) -> dict:
|
|
57
|
-
"""Serializes the CreateDirectoryResponse into a dictionary suitable for use as a JSON request body."""
|
|
58
|
-
body = {}
|
|
59
|
-
return body
|
|
60
|
-
|
|
61
|
-
def as_shallow_dict(self) -> dict:
|
|
62
|
-
"""Serializes the CreateDirectoryResponse into a shallow dictionary of its immediate attributes."""
|
|
63
|
-
body = {}
|
|
64
|
-
return body
|
|
65
|
-
|
|
66
|
-
@classmethod
|
|
67
|
-
def from_dict(cls, d: Dict[str, Any]) -> CreateDirectoryResponse:
|
|
68
|
-
"""Deserializes the CreateDirectoryResponse from a dictionary."""
|
|
69
|
-
return cls()
|
|
70
|
-
|
|
71
|
-
|
|
72
54
|
@dataclass
|
|
73
55
|
class CreateResponse:
|
|
74
56
|
handle: Optional[int] = None
|
|
@@ -95,24 +77,6 @@ class CreateResponse:
|
|
|
95
77
|
return cls(handle=d.get("handle", None))
|
|
96
78
|
|
|
97
79
|
|
|
98
|
-
@dataclass
|
|
99
|
-
class DeleteDirectoryResponse:
|
|
100
|
-
def as_dict(self) -> dict:
|
|
101
|
-
"""Serializes the DeleteDirectoryResponse into a dictionary suitable for use as a JSON request body."""
|
|
102
|
-
body = {}
|
|
103
|
-
return body
|
|
104
|
-
|
|
105
|
-
def as_shallow_dict(self) -> dict:
|
|
106
|
-
"""Serializes the DeleteDirectoryResponse into a shallow dictionary of its immediate attributes."""
|
|
107
|
-
body = {}
|
|
108
|
-
return body
|
|
109
|
-
|
|
110
|
-
@classmethod
|
|
111
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteDirectoryResponse:
|
|
112
|
-
"""Deserializes the DeleteDirectoryResponse from a dictionary."""
|
|
113
|
-
return cls()
|
|
114
|
-
|
|
115
|
-
|
|
116
80
|
@dataclass
|
|
117
81
|
class DeleteResponse:
|
|
118
82
|
def as_dict(self) -> dict:
|
|
@@ -290,24 +254,6 @@ class FileInfo:
|
|
|
290
254
|
)
|
|
291
255
|
|
|
292
256
|
|
|
293
|
-
@dataclass
|
|
294
|
-
class GetDirectoryMetadataResponse:
|
|
295
|
-
def as_dict(self) -> dict:
|
|
296
|
-
"""Serializes the GetDirectoryMetadataResponse into a dictionary suitable for use as a JSON request body."""
|
|
297
|
-
body = {}
|
|
298
|
-
return body
|
|
299
|
-
|
|
300
|
-
def as_shallow_dict(self) -> dict:
|
|
301
|
-
"""Serializes the GetDirectoryMetadataResponse into a shallow dictionary of its immediate attributes."""
|
|
302
|
-
body = {}
|
|
303
|
-
return body
|
|
304
|
-
|
|
305
|
-
@classmethod
|
|
306
|
-
def from_dict(cls, d: Dict[str, Any]) -> GetDirectoryMetadataResponse:
|
|
307
|
-
"""Deserializes the GetDirectoryMetadataResponse from a dictionary."""
|
|
308
|
-
return cls()
|
|
309
|
-
|
|
310
|
-
|
|
311
257
|
@dataclass
|
|
312
258
|
class GetMetadataResponse:
|
|
313
259
|
content_length: Optional[int] = None
|
|
@@ -496,24 +442,6 @@ class ReadResponse:
|
|
|
496
442
|
return cls(bytes_read=d.get("bytes_read", None), data=d.get("data", None))
|
|
497
443
|
|
|
498
444
|
|
|
499
|
-
@dataclass
|
|
500
|
-
class UploadResponse:
|
|
501
|
-
def as_dict(self) -> dict:
|
|
502
|
-
"""Serializes the UploadResponse into a dictionary suitable for use as a JSON request body."""
|
|
503
|
-
body = {}
|
|
504
|
-
return body
|
|
505
|
-
|
|
506
|
-
def as_shallow_dict(self) -> dict:
|
|
507
|
-
"""Serializes the UploadResponse into a shallow dictionary of its immediate attributes."""
|
|
508
|
-
body = {}
|
|
509
|
-
return body
|
|
510
|
-
|
|
511
|
-
@classmethod
|
|
512
|
-
def from_dict(cls, d: Dict[str, Any]) -> UploadResponse:
|
|
513
|
-
"""Deserializes the UploadResponse from a dictionary."""
|
|
514
|
-
return cls()
|
|
515
|
-
|
|
516
|
-
|
|
517
445
|
class DbfsAPI:
|
|
518
446
|
"""DBFS API makes it simple to interact with various data sources without having to include a users
|
|
519
447
|
credentials every time to read a file."""
|
|
@@ -534,6 +462,7 @@ class DbfsAPI:
|
|
|
534
462
|
|
|
535
463
|
|
|
536
464
|
"""
|
|
465
|
+
|
|
537
466
|
body = {}
|
|
538
467
|
if data is not None:
|
|
539
468
|
body["data"] = data
|
|
@@ -555,6 +484,7 @@ class DbfsAPI:
|
|
|
555
484
|
|
|
556
485
|
|
|
557
486
|
"""
|
|
487
|
+
|
|
558
488
|
body = {}
|
|
559
489
|
if handle is not None:
|
|
560
490
|
body["handle"] = handle
|
|
@@ -582,6 +512,7 @@ class DbfsAPI:
|
|
|
582
512
|
|
|
583
513
|
:returns: :class:`CreateResponse`
|
|
584
514
|
"""
|
|
515
|
+
|
|
585
516
|
body = {}
|
|
586
517
|
if overwrite is not None:
|
|
587
518
|
body["overwrite"] = overwrite
|
|
@@ -619,6 +550,7 @@ class DbfsAPI:
|
|
|
619
550
|
|
|
620
551
|
|
|
621
552
|
"""
|
|
553
|
+
|
|
622
554
|
body = {}
|
|
623
555
|
if path is not None:
|
|
624
556
|
body["path"] = path
|
|
@@ -690,6 +622,7 @@ class DbfsAPI:
|
|
|
690
622
|
|
|
691
623
|
|
|
692
624
|
"""
|
|
625
|
+
|
|
693
626
|
body = {}
|
|
694
627
|
if path is not None:
|
|
695
628
|
body["path"] = path
|
|
@@ -713,6 +646,7 @@ class DbfsAPI:
|
|
|
713
646
|
|
|
714
647
|
|
|
715
648
|
"""
|
|
649
|
+
|
|
716
650
|
body = {}
|
|
717
651
|
if destination_path is not None:
|
|
718
652
|
body["destination_path"] = destination_path
|
|
@@ -746,6 +680,7 @@ class DbfsAPI:
|
|
|
746
680
|
|
|
747
681
|
|
|
748
682
|
"""
|
|
683
|
+
|
|
749
684
|
body = {}
|
|
750
685
|
if contents is not None:
|
|
751
686
|
body["contents"] = contents
|
databricks/sdk/service/iam.py
CHANGED
|
@@ -501,24 +501,6 @@ class ConsistencyToken:
|
|
|
501
501
|
return cls(value=d.get("value", None))
|
|
502
502
|
|
|
503
503
|
|
|
504
|
-
@dataclass
|
|
505
|
-
class DeleteResponse:
|
|
506
|
-
def as_dict(self) -> dict:
|
|
507
|
-
"""Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body."""
|
|
508
|
-
body = {}
|
|
509
|
-
return body
|
|
510
|
-
|
|
511
|
-
def as_shallow_dict(self) -> dict:
|
|
512
|
-
"""Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
|
|
513
|
-
body = {}
|
|
514
|
-
return body
|
|
515
|
-
|
|
516
|
-
@classmethod
|
|
517
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteResponse:
|
|
518
|
-
"""Deserializes the DeleteResponse from a dictionary."""
|
|
519
|
-
return cls()
|
|
520
|
-
|
|
521
|
-
|
|
522
504
|
@dataclass
|
|
523
505
|
class DeleteWorkspacePermissionAssignmentResponse:
|
|
524
506
|
def as_dict(self) -> dict:
|
|
@@ -1465,24 +1447,6 @@ class PatchOp(Enum):
|
|
|
1465
1447
|
REPLACE = "replace"
|
|
1466
1448
|
|
|
1467
1449
|
|
|
1468
|
-
@dataclass
|
|
1469
|
-
class PatchResponse:
|
|
1470
|
-
def as_dict(self) -> dict:
|
|
1471
|
-
"""Serializes the PatchResponse into a dictionary suitable for use as a JSON request body."""
|
|
1472
|
-
body = {}
|
|
1473
|
-
return body
|
|
1474
|
-
|
|
1475
|
-
def as_shallow_dict(self) -> dict:
|
|
1476
|
-
"""Serializes the PatchResponse into a shallow dictionary of its immediate attributes."""
|
|
1477
|
-
body = {}
|
|
1478
|
-
return body
|
|
1479
|
-
|
|
1480
|
-
@classmethod
|
|
1481
|
-
def from_dict(cls, d: Dict[str, Any]) -> PatchResponse:
|
|
1482
|
-
"""Deserializes the PatchResponse from a dictionary."""
|
|
1483
|
-
return cls()
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
1450
|
class PatchSchema(Enum):
|
|
1487
1451
|
|
|
1488
1452
|
URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP = "urn:ietf:params:scim:api:messages:2.0:PatchOp"
|
|
@@ -2338,6 +2302,7 @@ class AccountAccessControlAPI:
|
|
|
2338
2302
|
|
|
2339
2303
|
:returns: :class:`RuleSetResponse`
|
|
2340
2304
|
"""
|
|
2305
|
+
|
|
2341
2306
|
body = {}
|
|
2342
2307
|
if name is not None:
|
|
2343
2308
|
body["name"] = name
|
|
@@ -2444,6 +2409,7 @@ class AccountAccessControlProxyAPI:
|
|
|
2444
2409
|
|
|
2445
2410
|
:returns: :class:`RuleSetResponse`
|
|
2446
2411
|
"""
|
|
2412
|
+
|
|
2447
2413
|
body = {}
|
|
2448
2414
|
if name is not None:
|
|
2449
2415
|
body["name"] = name
|
|
@@ -2494,6 +2460,7 @@ class AccountGroupsV2API:
|
|
|
2494
2460
|
|
|
2495
2461
|
:returns: :class:`AccountGroup`
|
|
2496
2462
|
"""
|
|
2463
|
+
|
|
2497
2464
|
body = {}
|
|
2498
2465
|
if display_name is not None:
|
|
2499
2466
|
body["displayName"] = display_name
|
|
@@ -2628,6 +2595,7 @@ class AccountGroupsV2API:
|
|
|
2628
2595
|
|
|
2629
2596
|
|
|
2630
2597
|
"""
|
|
2598
|
+
|
|
2631
2599
|
body = {}
|
|
2632
2600
|
if operations is not None:
|
|
2633
2601
|
body["Operations"] = [v.as_dict() for v in operations]
|
|
@@ -2666,6 +2634,7 @@ class AccountGroupsV2API:
|
|
|
2666
2634
|
|
|
2667
2635
|
|
|
2668
2636
|
"""
|
|
2637
|
+
|
|
2669
2638
|
body = {}
|
|
2670
2639
|
if display_name is not None:
|
|
2671
2640
|
body["displayName"] = display_name
|
|
@@ -2721,6 +2690,7 @@ class AccountServicePrincipalsV2API:
|
|
|
2721
2690
|
|
|
2722
2691
|
:returns: :class:`AccountServicePrincipal`
|
|
2723
2692
|
"""
|
|
2693
|
+
|
|
2724
2694
|
body = {}
|
|
2725
2695
|
if active is not None:
|
|
2726
2696
|
body["active"] = active
|
|
@@ -2860,6 +2830,7 @@ class AccountServicePrincipalsV2API:
|
|
|
2860
2830
|
|
|
2861
2831
|
|
|
2862
2832
|
"""
|
|
2833
|
+
|
|
2863
2834
|
body = {}
|
|
2864
2835
|
if operations is not None:
|
|
2865
2836
|
body["Operations"] = [v.as_dict() for v in operations]
|
|
@@ -2905,6 +2876,7 @@ class AccountServicePrincipalsV2API:
|
|
|
2905
2876
|
|
|
2906
2877
|
|
|
2907
2878
|
"""
|
|
2879
|
+
|
|
2908
2880
|
body = {}
|
|
2909
2881
|
if active is not None:
|
|
2910
2882
|
body["active"] = active
|
|
@@ -2976,6 +2948,7 @@ class AccountUsersV2API:
|
|
|
2976
2948
|
|
|
2977
2949
|
:returns: :class:`AccountUser`
|
|
2978
2950
|
"""
|
|
2951
|
+
|
|
2979
2952
|
body = {}
|
|
2980
2953
|
if active is not None:
|
|
2981
2954
|
body["active"] = active
|
|
@@ -3162,6 +3135,7 @@ class AccountUsersV2API:
|
|
|
3162
3135
|
|
|
3163
3136
|
|
|
3164
3137
|
"""
|
|
3138
|
+
|
|
3165
3139
|
body = {}
|
|
3166
3140
|
if operations is not None:
|
|
3167
3141
|
body["Operations"] = [v.as_dict() for v in operations]
|
|
@@ -3208,6 +3182,7 @@ class AccountUsersV2API:
|
|
|
3208
3182
|
|
|
3209
3183
|
|
|
3210
3184
|
"""
|
|
3185
|
+
|
|
3211
3186
|
body = {}
|
|
3212
3187
|
if active is not None:
|
|
3213
3188
|
body["active"] = active
|
|
@@ -3299,6 +3274,7 @@ class GroupsV2API:
|
|
|
3299
3274
|
|
|
3300
3275
|
:returns: :class:`Group`
|
|
3301
3276
|
"""
|
|
3277
|
+
|
|
3302
3278
|
body = {}
|
|
3303
3279
|
if display_name is not None:
|
|
3304
3280
|
body["displayName"] = display_name
|
|
@@ -3433,6 +3409,7 @@ class GroupsV2API:
|
|
|
3433
3409
|
|
|
3434
3410
|
|
|
3435
3411
|
"""
|
|
3412
|
+
|
|
3436
3413
|
body = {}
|
|
3437
3414
|
if operations is not None:
|
|
3438
3415
|
body["Operations"] = [v.as_dict() for v in operations]
|
|
@@ -3481,6 +3458,7 @@ class GroupsV2API:
|
|
|
3481
3458
|
|
|
3482
3459
|
|
|
3483
3460
|
"""
|
|
3461
|
+
|
|
3484
3462
|
body = {}
|
|
3485
3463
|
if display_name is not None:
|
|
3486
3464
|
body["displayName"] = display_name
|
|
@@ -3533,6 +3511,7 @@ class PermissionMigrationAPI:
|
|
|
3533
3511
|
|
|
3534
3512
|
:returns: :class:`MigratePermissionsResponse`
|
|
3535
3513
|
"""
|
|
3514
|
+
|
|
3536
3515
|
body = {}
|
|
3537
3516
|
if from_workspace_group_name is not None:
|
|
3538
3517
|
body["from_workspace_group_name"] = from_workspace_group_name
|
|
@@ -3644,6 +3623,7 @@ class PermissionsAPI:
|
|
|
3644
3623
|
|
|
3645
3624
|
:returns: :class:`ObjectPermissions`
|
|
3646
3625
|
"""
|
|
3626
|
+
|
|
3647
3627
|
body = {}
|
|
3648
3628
|
if access_control_list is not None:
|
|
3649
3629
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -3678,6 +3658,7 @@ class PermissionsAPI:
|
|
|
3678
3658
|
|
|
3679
3659
|
:returns: :class:`ObjectPermissions`
|
|
3680
3660
|
"""
|
|
3661
|
+
|
|
3681
3662
|
body = {}
|
|
3682
3663
|
if access_control_list is not None:
|
|
3683
3664
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -3739,6 +3720,7 @@ class ServicePrincipalsV2API:
|
|
|
3739
3720
|
|
|
3740
3721
|
:returns: :class:`ServicePrincipal`
|
|
3741
3722
|
"""
|
|
3723
|
+
|
|
3742
3724
|
body = {}
|
|
3743
3725
|
if active is not None:
|
|
3744
3726
|
body["active"] = active
|
|
@@ -3873,6 +3855,7 @@ class ServicePrincipalsV2API:
|
|
|
3873
3855
|
|
|
3874
3856
|
|
|
3875
3857
|
"""
|
|
3858
|
+
|
|
3876
3859
|
body = {}
|
|
3877
3860
|
if operations is not None:
|
|
3878
3861
|
body["Operations"] = [v.as_dict() for v in operations]
|
|
@@ -3924,6 +3907,7 @@ class ServicePrincipalsV2API:
|
|
|
3924
3907
|
|
|
3925
3908
|
|
|
3926
3909
|
"""
|
|
3910
|
+
|
|
3927
3911
|
body = {}
|
|
3928
3912
|
if active is not None:
|
|
3929
3913
|
body["active"] = active
|
|
@@ -4010,6 +3994,7 @@ class UsersV2API:
|
|
|
4010
3994
|
|
|
4011
3995
|
:returns: :class:`User`
|
|
4012
3996
|
"""
|
|
3997
|
+
|
|
4013
3998
|
body = {}
|
|
4014
3999
|
if active is not None:
|
|
4015
4000
|
body["active"] = active
|
|
@@ -4224,6 +4209,7 @@ class UsersV2API:
|
|
|
4224
4209
|
|
|
4225
4210
|
|
|
4226
4211
|
"""
|
|
4212
|
+
|
|
4227
4213
|
body = {}
|
|
4228
4214
|
if operations is not None:
|
|
4229
4215
|
body["Operations"] = [v.as_dict() for v in operations]
|
|
@@ -4246,6 +4232,7 @@ class UsersV2API:
|
|
|
4246
4232
|
|
|
4247
4233
|
:returns: :class:`PasswordPermissions`
|
|
4248
4234
|
"""
|
|
4235
|
+
|
|
4249
4236
|
body = {}
|
|
4250
4237
|
if access_control_list is not None:
|
|
4251
4238
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -4303,6 +4290,7 @@ class UsersV2API:
|
|
|
4303
4290
|
|
|
4304
4291
|
|
|
4305
4292
|
"""
|
|
4293
|
+
|
|
4306
4294
|
body = {}
|
|
4307
4295
|
if active is not None:
|
|
4308
4296
|
body["active"] = active
|
|
@@ -4340,6 +4328,7 @@ class UsersV2API:
|
|
|
4340
4328
|
|
|
4341
4329
|
:returns: :class:`PasswordPermissions`
|
|
4342
4330
|
"""
|
|
4331
|
+
|
|
4343
4332
|
body = {}
|
|
4344
4333
|
if access_control_list is not None:
|
|
4345
4334
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -4441,6 +4430,7 @@ class WorkspaceAssignmentAPI:
|
|
|
4441
4430
|
|
|
4442
4431
|
:returns: :class:`PermissionAssignment`
|
|
4443
4432
|
"""
|
|
4433
|
+
|
|
4444
4434
|
body = {}
|
|
4445
4435
|
if permissions is not None:
|
|
4446
4436
|
body["permissions"] = [v.value for v in permissions]
|
databricks/sdk/service/iamv2.py
CHANGED
|
@@ -472,6 +472,7 @@ class AccountIamV2API:
|
|
|
472
472
|
|
|
473
473
|
:returns: :class:`ResolveGroupResponse`
|
|
474
474
|
"""
|
|
475
|
+
|
|
475
476
|
body = {}
|
|
476
477
|
if external_id is not None:
|
|
477
478
|
body["external_id"] = external_id
|
|
@@ -498,6 +499,7 @@ class AccountIamV2API:
|
|
|
498
499
|
|
|
499
500
|
:returns: :class:`ResolveServicePrincipalResponse`
|
|
500
501
|
"""
|
|
502
|
+
|
|
501
503
|
body = {}
|
|
502
504
|
if external_id is not None:
|
|
503
505
|
body["external_id"] = external_id
|
|
@@ -524,6 +526,7 @@ class AccountIamV2API:
|
|
|
524
526
|
|
|
525
527
|
:returns: :class:`ResolveUserResponse`
|
|
526
528
|
"""
|
|
529
|
+
|
|
527
530
|
body = {}
|
|
528
531
|
if external_id is not None:
|
|
529
532
|
body["external_id"] = external_id
|
|
@@ -587,6 +590,7 @@ class WorkspaceIamV2API:
|
|
|
587
590
|
|
|
588
591
|
:returns: :class:`ResolveGroupResponse`
|
|
589
592
|
"""
|
|
593
|
+
|
|
590
594
|
body = {}
|
|
591
595
|
if external_id is not None:
|
|
592
596
|
body["external_id"] = external_id
|
|
@@ -608,6 +612,7 @@ class WorkspaceIamV2API:
|
|
|
608
612
|
|
|
609
613
|
:returns: :class:`ResolveServicePrincipalResponse`
|
|
610
614
|
"""
|
|
615
|
+
|
|
611
616
|
body = {}
|
|
612
617
|
if external_id is not None:
|
|
613
618
|
body["external_id"] = external_id
|
|
@@ -631,6 +636,7 @@ class WorkspaceIamV2API:
|
|
|
631
636
|
|
|
632
637
|
:returns: :class:`ResolveUserResponse`
|
|
633
638
|
"""
|
|
639
|
+
|
|
634
640
|
body = {}
|
|
635
641
|
if external_id is not None:
|
|
636
642
|
body["external_id"] = external_id
|
databricks/sdk/service/jobs.py
CHANGED
|
@@ -449,42 +449,6 @@ class BaseRun:
|
|
|
449
449
|
)
|
|
450
450
|
|
|
451
451
|
|
|
452
|
-
@dataclass
|
|
453
|
-
class CancelAllRunsResponse:
|
|
454
|
-
def as_dict(self) -> dict:
|
|
455
|
-
"""Serializes the CancelAllRunsResponse into a dictionary suitable for use as a JSON request body."""
|
|
456
|
-
body = {}
|
|
457
|
-
return body
|
|
458
|
-
|
|
459
|
-
def as_shallow_dict(self) -> dict:
|
|
460
|
-
"""Serializes the CancelAllRunsResponse into a shallow dictionary of its immediate attributes."""
|
|
461
|
-
body = {}
|
|
462
|
-
return body
|
|
463
|
-
|
|
464
|
-
@classmethod
|
|
465
|
-
def from_dict(cls, d: Dict[str, Any]) -> CancelAllRunsResponse:
|
|
466
|
-
"""Deserializes the CancelAllRunsResponse from a dictionary."""
|
|
467
|
-
return cls()
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
@dataclass
|
|
471
|
-
class CancelRunResponse:
|
|
472
|
-
def as_dict(self) -> dict:
|
|
473
|
-
"""Serializes the CancelRunResponse into a dictionary suitable for use as a JSON request body."""
|
|
474
|
-
body = {}
|
|
475
|
-
return body
|
|
476
|
-
|
|
477
|
-
def as_shallow_dict(self) -> dict:
|
|
478
|
-
"""Serializes the CancelRunResponse into a shallow dictionary of its immediate attributes."""
|
|
479
|
-
body = {}
|
|
480
|
-
return body
|
|
481
|
-
|
|
482
|
-
@classmethod
|
|
483
|
-
def from_dict(cls, d: Dict[str, Any]) -> CancelRunResponse:
|
|
484
|
-
"""Deserializes the CancelRunResponse from a dictionary."""
|
|
485
|
-
return cls()
|
|
486
|
-
|
|
487
|
-
|
|
488
452
|
class CleanRoomTaskRunLifeCycleState(Enum):
|
|
489
453
|
"""Copied from elastic-spark-common/api/messages/runs.proto. Using the original definition to
|
|
490
454
|
remove coupling with jobs API definition"""
|
|
@@ -1515,42 +1479,6 @@ class DbtTask:
|
|
|
1515
1479
|
)
|
|
1516
1480
|
|
|
1517
1481
|
|
|
1518
|
-
@dataclass
|
|
1519
|
-
class DeleteResponse:
|
|
1520
|
-
def as_dict(self) -> dict:
|
|
1521
|
-
"""Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body."""
|
|
1522
|
-
body = {}
|
|
1523
|
-
return body
|
|
1524
|
-
|
|
1525
|
-
def as_shallow_dict(self) -> dict:
|
|
1526
|
-
"""Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
|
|
1527
|
-
body = {}
|
|
1528
|
-
return body
|
|
1529
|
-
|
|
1530
|
-
@classmethod
|
|
1531
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteResponse:
|
|
1532
|
-
"""Deserializes the DeleteResponse from a dictionary."""
|
|
1533
|
-
return cls()
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
@dataclass
|
|
1537
|
-
class DeleteRunResponse:
|
|
1538
|
-
def as_dict(self) -> dict:
|
|
1539
|
-
"""Serializes the DeleteRunResponse into a dictionary suitable for use as a JSON request body."""
|
|
1540
|
-
body = {}
|
|
1541
|
-
return body
|
|
1542
|
-
|
|
1543
|
-
def as_shallow_dict(self) -> dict:
|
|
1544
|
-
"""Serializes the DeleteRunResponse into a shallow dictionary of its immediate attributes."""
|
|
1545
|
-
body = {}
|
|
1546
|
-
return body
|
|
1547
|
-
|
|
1548
|
-
@classmethod
|
|
1549
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteRunResponse:
|
|
1550
|
-
"""Deserializes the DeleteRunResponse from a dictionary."""
|
|
1551
|
-
return cls()
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
1482
|
@dataclass
|
|
1555
1483
|
class EnforcePolicyComplianceForJobResponseJobClusterSettingsChange:
|
|
1556
1484
|
"""Represents a change to the job cluster's settings that would be required for the job clusters to
|
|
@@ -4212,24 +4140,6 @@ class RepairRunResponse:
|
|
|
4212
4140
|
return cls(repair_id=d.get("repair_id", None))
|
|
4213
4141
|
|
|
4214
4142
|
|
|
4215
|
-
@dataclass
|
|
4216
|
-
class ResetResponse:
|
|
4217
|
-
def as_dict(self) -> dict:
|
|
4218
|
-
"""Serializes the ResetResponse into a dictionary suitable for use as a JSON request body."""
|
|
4219
|
-
body = {}
|
|
4220
|
-
return body
|
|
4221
|
-
|
|
4222
|
-
def as_shallow_dict(self) -> dict:
|
|
4223
|
-
"""Serializes the ResetResponse into a shallow dictionary of its immediate attributes."""
|
|
4224
|
-
body = {}
|
|
4225
|
-
return body
|
|
4226
|
-
|
|
4227
|
-
@classmethod
|
|
4228
|
-
def from_dict(cls, d: Dict[str, Any]) -> ResetResponse:
|
|
4229
|
-
"""Deserializes the ResetResponse from a dictionary."""
|
|
4230
|
-
return cls()
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
4143
|
@dataclass
|
|
4234
4144
|
class ResolvedConditionTaskValues:
|
|
4235
4145
|
left: Optional[str] = None
|
|
@@ -8056,9 +7966,6 @@ class TriggerSettings:
|
|
|
8056
7966
|
periodic: Optional[PeriodicTriggerConfiguration] = None
|
|
8057
7967
|
"""Periodic trigger settings."""
|
|
8058
7968
|
|
|
8059
|
-
table: Optional[TableUpdateTriggerConfiguration] = None
|
|
8060
|
-
"""Old table trigger settings name. Deprecated in favor of `table_update`."""
|
|
8061
|
-
|
|
8062
7969
|
table_update: Optional[TableUpdateTriggerConfiguration] = None
|
|
8063
7970
|
|
|
8064
7971
|
def as_dict(self) -> dict:
|
|
@@ -8070,8 +7977,6 @@ class TriggerSettings:
|
|
|
8070
7977
|
body["pause_status"] = self.pause_status.value
|
|
8071
7978
|
if self.periodic:
|
|
8072
7979
|
body["periodic"] = self.periodic.as_dict()
|
|
8073
|
-
if self.table:
|
|
8074
|
-
body["table"] = self.table.as_dict()
|
|
8075
7980
|
if self.table_update:
|
|
8076
7981
|
body["table_update"] = self.table_update.as_dict()
|
|
8077
7982
|
return body
|
|
@@ -8085,8 +7990,6 @@ class TriggerSettings:
|
|
|
8085
7990
|
body["pause_status"] = self.pause_status
|
|
8086
7991
|
if self.periodic:
|
|
8087
7992
|
body["periodic"] = self.periodic
|
|
8088
|
-
if self.table:
|
|
8089
|
-
body["table"] = self.table
|
|
8090
7993
|
if self.table_update:
|
|
8091
7994
|
body["table_update"] = self.table_update
|
|
8092
7995
|
return body
|
|
@@ -8098,7 +8001,6 @@ class TriggerSettings:
|
|
|
8098
8001
|
file_arrival=_from_dict(d, "file_arrival", FileArrivalTriggerConfiguration),
|
|
8099
8002
|
pause_status=_enum(d, "pause_status", PauseStatus),
|
|
8100
8003
|
periodic=_from_dict(d, "periodic", PeriodicTriggerConfiguration),
|
|
8101
|
-
table=_from_dict(d, "table", TableUpdateTriggerConfiguration),
|
|
8102
8004
|
table_update=_from_dict(d, "table_update", TableUpdateTriggerConfiguration),
|
|
8103
8005
|
)
|
|
8104
8006
|
|
|
@@ -8159,24 +8061,6 @@ class TriggerType(Enum):
|
|
|
8159
8061
|
TABLE = "TABLE"
|
|
8160
8062
|
|
|
8161
8063
|
|
|
8162
|
-
@dataclass
|
|
8163
|
-
class UpdateResponse:
|
|
8164
|
-
def as_dict(self) -> dict:
|
|
8165
|
-
"""Serializes the UpdateResponse into a dictionary suitable for use as a JSON request body."""
|
|
8166
|
-
body = {}
|
|
8167
|
-
return body
|
|
8168
|
-
|
|
8169
|
-
def as_shallow_dict(self) -> dict:
|
|
8170
|
-
"""Serializes the UpdateResponse into a shallow dictionary of its immediate attributes."""
|
|
8171
|
-
body = {}
|
|
8172
|
-
return body
|
|
8173
|
-
|
|
8174
|
-
@classmethod
|
|
8175
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateResponse:
|
|
8176
|
-
"""Deserializes the UpdateResponse from a dictionary."""
|
|
8177
|
-
return cls()
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
8064
|
@dataclass
|
|
8181
8065
|
class ViewItem:
|
|
8182
8066
|
content: Optional[str] = None
|
|
@@ -8418,6 +8302,7 @@ class JobsAPI:
|
|
|
8418
8302
|
|
|
8419
8303
|
|
|
8420
8304
|
"""
|
|
8305
|
+
|
|
8421
8306
|
body = {}
|
|
8422
8307
|
if all_queued_runs is not None:
|
|
8423
8308
|
body["all_queued_runs"] = all_queued_runs
|
|
@@ -8440,6 +8325,7 @@ class JobsAPI:
|
|
|
8440
8325
|
Long-running operation waiter for :class:`Run`.
|
|
8441
8326
|
See :method:wait_get_run_job_terminated_or_skipped for more details.
|
|
8442
8327
|
"""
|
|
8328
|
+
|
|
8443
8329
|
body = {}
|
|
8444
8330
|
if run_id is not None:
|
|
8445
8331
|
body["run_id"] = run_id
|
|
@@ -8584,6 +8470,7 @@ class JobsAPI:
|
|
|
8584
8470
|
|
|
8585
8471
|
:returns: :class:`CreateResponse`
|
|
8586
8472
|
"""
|
|
8473
|
+
|
|
8587
8474
|
body = {}
|
|
8588
8475
|
if access_control_list is not None:
|
|
8589
8476
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -8653,6 +8540,7 @@ class JobsAPI:
|
|
|
8653
8540
|
|
|
8654
8541
|
|
|
8655
8542
|
"""
|
|
8543
|
+
|
|
8656
8544
|
body = {}
|
|
8657
8545
|
if job_id is not None:
|
|
8658
8546
|
body["job_id"] = job_id
|
|
@@ -8670,6 +8558,7 @@ class JobsAPI:
|
|
|
8670
8558
|
|
|
8671
8559
|
|
|
8672
8560
|
"""
|
|
8561
|
+
|
|
8673
8562
|
body = {}
|
|
8674
8563
|
if run_id is not None:
|
|
8675
8564
|
body["run_id"] = run_id
|
|
@@ -9096,6 +8985,7 @@ class JobsAPI:
|
|
|
9096
8985
|
Long-running operation waiter for :class:`Run`.
|
|
9097
8986
|
See :method:wait_get_run_job_terminated_or_skipped for more details.
|
|
9098
8987
|
"""
|
|
8988
|
+
|
|
9099
8989
|
body = {}
|
|
9100
8990
|
if dbt_commands is not None:
|
|
9101
8991
|
body["dbt_commands"] = [v for v in dbt_commands]
|
|
@@ -9191,6 +9081,7 @@ class JobsAPI:
|
|
|
9191
9081
|
|
|
9192
9082
|
|
|
9193
9083
|
"""
|
|
9084
|
+
|
|
9194
9085
|
body = {}
|
|
9195
9086
|
if job_id is not None:
|
|
9196
9087
|
body["job_id"] = job_id
|
|
@@ -9331,6 +9222,7 @@ class JobsAPI:
|
|
|
9331
9222
|
Long-running operation waiter for :class:`Run`.
|
|
9332
9223
|
See :method:wait_get_run_job_terminated_or_skipped for more details.
|
|
9333
9224
|
"""
|
|
9225
|
+
|
|
9334
9226
|
body = {}
|
|
9335
9227
|
if dbt_commands is not None:
|
|
9336
9228
|
body["dbt_commands"] = [v for v in dbt_commands]
|
|
@@ -9420,6 +9312,7 @@ class JobsAPI:
|
|
|
9420
9312
|
|
|
9421
9313
|
:returns: :class:`JobPermissions`
|
|
9422
9314
|
"""
|
|
9315
|
+
|
|
9423
9316
|
body = {}
|
|
9424
9317
|
if access_control_list is not None:
|
|
9425
9318
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -9509,6 +9402,7 @@ class JobsAPI:
|
|
|
9509
9402
|
Long-running operation waiter for :class:`Run`.
|
|
9510
9403
|
See :method:wait_get_run_job_terminated_or_skipped for more details.
|
|
9511
9404
|
"""
|
|
9405
|
+
|
|
9512
9406
|
body = {}
|
|
9513
9407
|
if access_control_list is not None:
|
|
9514
9408
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -9615,6 +9509,7 @@ class JobsAPI:
|
|
|
9615
9509
|
|
|
9616
9510
|
|
|
9617
9511
|
"""
|
|
9512
|
+
|
|
9618
9513
|
body = {}
|
|
9619
9514
|
if fields_to_remove is not None:
|
|
9620
9515
|
body["fields_to_remove"] = [v for v in fields_to_remove]
|
|
@@ -9639,6 +9534,7 @@ class JobsAPI:
|
|
|
9639
9534
|
|
|
9640
9535
|
:returns: :class:`JobPermissions`
|
|
9641
9536
|
"""
|
|
9537
|
+
|
|
9642
9538
|
body = {}
|
|
9643
9539
|
if access_control_list is not None:
|
|
9644
9540
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -9680,6 +9576,7 @@ class PolicyComplianceForJobsAPI:
|
|
|
9680
9576
|
|
|
9681
9577
|
:returns: :class:`EnforcePolicyComplianceResponse`
|
|
9682
9578
|
"""
|
|
9579
|
+
|
|
9683
9580
|
body = {}
|
|
9684
9581
|
if job_id is not None:
|
|
9685
9582
|
body["job_id"] = job_id
|