databricks-sdk 0.55.0__py3-none-any.whl → 0.57.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 +41 -24
- databricks/sdk/service/aibuilder.py +505 -0
- databricks/sdk/service/apps.py +14 -42
- databricks/sdk/service/billing.py +167 -220
- databricks/sdk/service/catalog.py +462 -1235
- databricks/sdk/service/cleanrooms.py +26 -43
- databricks/sdk/service/compute.py +75 -211
- databricks/sdk/service/dashboards.py +77 -511
- databricks/sdk/service/database.py +1271 -0
- databricks/sdk/service/files.py +20 -54
- databricks/sdk/service/iam.py +61 -171
- databricks/sdk/service/jobs.py +453 -68
- databricks/sdk/service/marketplace.py +46 -146
- databricks/sdk/service/ml.py +453 -477
- databricks/sdk/service/oauth2.py +17 -45
- databricks/sdk/service/pipelines.py +125 -40
- databricks/sdk/service/provisioning.py +30 -93
- databricks/sdk/service/qualitymonitorv2.py +265 -0
- databricks/sdk/service/serving.py +106 -46
- databricks/sdk/service/settings.py +1062 -390
- databricks/sdk/service/sharing.py +33 -88
- databricks/sdk/service/sql.py +292 -185
- databricks/sdk/service/vectorsearch.py +13 -43
- databricks/sdk/service/workspace.py +35 -105
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/RECORD +31 -28
- {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/top_level.txt +0 -0
|
@@ -22,6 +22,7 @@ class AuthenticationType(Enum):
|
|
|
22
22
|
|
|
23
23
|
DATABRICKS = "DATABRICKS"
|
|
24
24
|
OAUTH_CLIENT_CREDENTIALS = "OAUTH_CLIENT_CREDENTIALS"
|
|
25
|
+
OIDC_FEDERATION = "OIDC_FEDERATION"
|
|
25
26
|
TOKEN = "TOKEN"
|
|
26
27
|
|
|
27
28
|
|
|
@@ -2763,7 +2764,7 @@ class UpdateShare:
|
|
|
2763
2764
|
@dataclass
|
|
2764
2765
|
class UpdateSharePermissions:
|
|
2765
2766
|
changes: Optional[List[PermissionsChange]] = None
|
|
2766
|
-
"""Array of
|
|
2767
|
+
"""Array of permissions change objects."""
|
|
2767
2768
|
|
|
2768
2769
|
name: Optional[str] = None
|
|
2769
2770
|
"""The name of the share."""
|
|
@@ -2961,9 +2962,7 @@ class ProvidersAPI:
|
|
|
2961
2962
|
comment: Optional[str] = None,
|
|
2962
2963
|
recipient_profile_str: Optional[str] = None,
|
|
2963
2964
|
) -> ProviderInfo:
|
|
2964
|
-
"""
|
|
2965
|
-
|
|
2966
|
-
Creates a new authentication provider minimally based on a name and authentication type. The caller
|
|
2965
|
+
"""Creates a new authentication provider minimally based on a name and authentication type. The caller
|
|
2967
2966
|
must be an admin on the metastore.
|
|
2968
2967
|
|
|
2969
2968
|
:param name: str
|
|
@@ -2996,9 +2995,7 @@ class ProvidersAPI:
|
|
|
2996
2995
|
return ProviderInfo.from_dict(res)
|
|
2997
2996
|
|
|
2998
2997
|
def delete(self, name: str):
|
|
2999
|
-
"""
|
|
3000
|
-
|
|
3001
|
-
Deletes an authentication provider, if the caller is a metastore admin or is the owner of the
|
|
2998
|
+
"""Deletes an authentication provider, if the caller is a metastore admin or is the owner of the
|
|
3002
2999
|
provider.
|
|
3003
3000
|
|
|
3004
3001
|
:param name: str
|
|
@@ -3012,9 +3009,7 @@ class ProvidersAPI:
|
|
|
3012
3009
|
self._api.do("DELETE", f"/api/2.1/unity-catalog/providers/{name}", headers=headers)
|
|
3013
3010
|
|
|
3014
3011
|
def get(self, name: str) -> ProviderInfo:
|
|
3015
|
-
"""
|
|
3016
|
-
|
|
3017
|
-
Gets a specific authentication provider. The caller must supply the name of the provider, and must
|
|
3012
|
+
"""Gets a specific authentication provider. The caller must supply the name of the provider, and must
|
|
3018
3013
|
either be a metastore admin or the owner of the provider.
|
|
3019
3014
|
|
|
3020
3015
|
:param name: str
|
|
@@ -3037,9 +3032,7 @@ class ProvidersAPI:
|
|
|
3037
3032
|
max_results: Optional[int] = None,
|
|
3038
3033
|
page_token: Optional[str] = None,
|
|
3039
3034
|
) -> Iterator[ProviderInfo]:
|
|
3040
|
-
"""
|
|
3041
|
-
|
|
3042
|
-
Gets an array of available authentication providers. The caller must either be a metastore admin or
|
|
3035
|
+
"""Gets an array of available authentication providers. The caller must either be a metastore admin or
|
|
3043
3036
|
the owner of the providers. Providers not owned by the caller are not included in the response. There
|
|
3044
3037
|
is no guarantee of a specific ordering of the elements in the array.
|
|
3045
3038
|
|
|
@@ -3092,9 +3085,7 @@ class ProvidersAPI:
|
|
|
3092
3085
|
table_max_results: Optional[int] = None,
|
|
3093
3086
|
volume_max_results: Optional[int] = None,
|
|
3094
3087
|
) -> ListProviderShareAssetsResponse:
|
|
3095
|
-
"""
|
|
3096
|
-
|
|
3097
|
-
Get arrays of assets associated with a specified provider's share. The caller is the recipient of the
|
|
3088
|
+
"""Get arrays of assets associated with a specified provider's share. The caller is the recipient of the
|
|
3098
3089
|
share.
|
|
3099
3090
|
|
|
3100
3091
|
:param provider_name: str
|
|
@@ -3134,9 +3125,7 @@ class ProvidersAPI:
|
|
|
3134
3125
|
def list_shares(
|
|
3135
3126
|
self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
|
|
3136
3127
|
) -> Iterator[ProviderShare]:
|
|
3137
|
-
"""
|
|
3138
|
-
|
|
3139
|
-
Gets an array of a specified provider's shares within the metastore where:
|
|
3128
|
+
"""Gets an array of a specified provider's shares within the metastore where:
|
|
3140
3129
|
|
|
3141
3130
|
* the caller is a metastore admin, or * the caller is the owner.
|
|
3142
3131
|
|
|
@@ -3185,9 +3174,7 @@ class ProvidersAPI:
|
|
|
3185
3174
|
owner: Optional[str] = None,
|
|
3186
3175
|
recipient_profile_str: Optional[str] = None,
|
|
3187
3176
|
) -> ProviderInfo:
|
|
3188
|
-
"""
|
|
3189
|
-
|
|
3190
|
-
Updates the information for an authentication provider, if the caller is a metastore admin or is the
|
|
3177
|
+
"""Updates the information for an authentication provider, if the caller is a metastore admin or is the
|
|
3191
3178
|
owner of the provider. If the update changes the provider name, the caller must be both a metastore
|
|
3192
3179
|
admin and the owner of the provider.
|
|
3193
3180
|
|
|
@@ -3236,9 +3223,7 @@ class RecipientActivationAPI:
|
|
|
3236
3223
|
self._api = api_client
|
|
3237
3224
|
|
|
3238
3225
|
def get_activation_url_info(self, activation_url: str):
|
|
3239
|
-
"""
|
|
3240
|
-
|
|
3241
|
-
Gets an activation URL for a share.
|
|
3226
|
+
"""Gets an activation URL for a share.
|
|
3242
3227
|
|
|
3243
3228
|
:param activation_url: str
|
|
3244
3229
|
The one time activation url. It also accepts activation token.
|
|
@@ -3255,9 +3240,7 @@ class RecipientActivationAPI:
|
|
|
3255
3240
|
)
|
|
3256
3241
|
|
|
3257
3242
|
def retrieve_token(self, activation_url: str) -> RetrieveTokenResponse:
|
|
3258
|
-
"""
|
|
3259
|
-
|
|
3260
|
-
Retrieve access token with an activation url. This is a public API without any authentication.
|
|
3243
|
+
"""Retrieve access token with an activation url. This is a public API without any authentication.
|
|
3261
3244
|
|
|
3262
3245
|
:param activation_url: str
|
|
3263
3246
|
The one time activation url. It also accepts activation token.
|
|
@@ -3300,9 +3283,7 @@ class RecipientFederationPoliciesAPI:
|
|
|
3300
3283
|
self._api = api_client
|
|
3301
3284
|
|
|
3302
3285
|
def create(self, recipient_name: str, policy: FederationPolicy) -> FederationPolicy:
|
|
3303
|
-
"""Create
|
|
3304
|
-
|
|
3305
|
-
Create a federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to
|
|
3286
|
+
"""Create a federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to
|
|
3306
3287
|
non-Databricks recipients. The caller must be the owner of the recipient. When sharing data from
|
|
3307
3288
|
Databricks to non-Databricks clients, you can define a federation policy to authenticate
|
|
3308
3289
|
non-Databricks recipients. The federation policy validates OIDC claims in federated tokens and is
|
|
@@ -3342,9 +3323,7 @@ class RecipientFederationPoliciesAPI:
|
|
|
3342
3323
|
return FederationPolicy.from_dict(res)
|
|
3343
3324
|
|
|
3344
3325
|
def delete(self, recipient_name: str, name: str):
|
|
3345
|
-
"""
|
|
3346
|
-
|
|
3347
|
-
Deletes an existing federation policy for an OIDC_FEDERATION recipient. The caller must be the owner
|
|
3326
|
+
"""Deletes an existing federation policy for an OIDC_FEDERATION recipient. The caller must be the owner
|
|
3348
3327
|
of the recipient.
|
|
3349
3328
|
|
|
3350
3329
|
:param recipient_name: str
|
|
@@ -3364,9 +3343,7 @@ class RecipientFederationPoliciesAPI:
|
|
|
3364
3343
|
)
|
|
3365
3344
|
|
|
3366
3345
|
def get_federation_policy(self, recipient_name: str, name: str) -> FederationPolicy:
|
|
3367
|
-
"""
|
|
3368
|
-
|
|
3369
|
-
Reads an existing federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks
|
|
3346
|
+
"""Reads an existing federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks
|
|
3370
3347
|
to non-Databricks recipients. The caller must have read access to the recipient.
|
|
3371
3348
|
|
|
3372
3349
|
:param recipient_name: str
|
|
@@ -3389,9 +3366,7 @@ class RecipientFederationPoliciesAPI:
|
|
|
3389
3366
|
def list(
|
|
3390
3367
|
self, recipient_name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
|
|
3391
3368
|
) -> Iterator[FederationPolicy]:
|
|
3392
|
-
"""
|
|
3393
|
-
|
|
3394
|
-
Lists federation policies for an OIDC_FEDERATION recipient for sharing data from Databricks to
|
|
3369
|
+
"""Lists federation policies for an OIDC_FEDERATION recipient for sharing data from Databricks to
|
|
3395
3370
|
non-Databricks recipients. The caller must have read access to the recipient.
|
|
3396
3371
|
|
|
3397
3372
|
:param recipient_name: str
|
|
@@ -3428,9 +3403,7 @@ class RecipientFederationPoliciesAPI:
|
|
|
3428
3403
|
def update(
|
|
3429
3404
|
self, recipient_name: str, name: str, policy: FederationPolicy, *, update_mask: Optional[str] = None
|
|
3430
3405
|
) -> FederationPolicy:
|
|
3431
|
-
"""
|
|
3432
|
-
|
|
3433
|
-
Updates an existing federation policy for an OIDC_RECIPIENT. The caller must be the owner of the
|
|
3406
|
+
"""Updates an existing federation policy for an OIDC_RECIPIENT. The caller must be the owner of the
|
|
3434
3407
|
recipient.
|
|
3435
3408
|
|
|
3436
3409
|
:param recipient_name: str
|
|
@@ -3497,9 +3470,7 @@ class RecipientsAPI:
|
|
|
3497
3470
|
properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None,
|
|
3498
3471
|
sharing_code: Optional[str] = None,
|
|
3499
3472
|
) -> RecipientInfo:
|
|
3500
|
-
"""
|
|
3501
|
-
|
|
3502
|
-
Creates a new recipient with the delta sharing authentication type in the metastore. The caller must
|
|
3473
|
+
"""Creates a new recipient with the delta sharing authentication type in the metastore. The caller must
|
|
3503
3474
|
be a metastore admin or have the **CREATE_RECIPIENT** privilege on the metastore.
|
|
3504
3475
|
|
|
3505
3476
|
:param name: str
|
|
@@ -3556,9 +3527,7 @@ class RecipientsAPI:
|
|
|
3556
3527
|
return RecipientInfo.from_dict(res)
|
|
3557
3528
|
|
|
3558
3529
|
def delete(self, name: str):
|
|
3559
|
-
"""
|
|
3560
|
-
|
|
3561
|
-
Deletes the specified recipient from the metastore. The caller must be the owner of the recipient.
|
|
3530
|
+
"""Deletes the specified recipient from the metastore. The caller must be the owner of the recipient.
|
|
3562
3531
|
|
|
3563
3532
|
:param name: str
|
|
3564
3533
|
Name of the recipient.
|
|
@@ -3571,9 +3540,7 @@ class RecipientsAPI:
|
|
|
3571
3540
|
self._api.do("DELETE", f"/api/2.1/unity-catalog/recipients/{name}", headers=headers)
|
|
3572
3541
|
|
|
3573
3542
|
def get(self, name: str) -> RecipientInfo:
|
|
3574
|
-
"""
|
|
3575
|
-
|
|
3576
|
-
Gets a share recipient from the metastore if:
|
|
3543
|
+
"""Gets a share recipient from the metastore if:
|
|
3577
3544
|
|
|
3578
3545
|
* the caller is the owner of the share recipient, or: * is a metastore admin
|
|
3579
3546
|
|
|
@@ -3597,9 +3564,7 @@ class RecipientsAPI:
|
|
|
3597
3564
|
max_results: Optional[int] = None,
|
|
3598
3565
|
page_token: Optional[str] = None,
|
|
3599
3566
|
) -> Iterator[RecipientInfo]:
|
|
3600
|
-
"""
|
|
3601
|
-
|
|
3602
|
-
Gets an array of all share recipients within the current metastore where:
|
|
3567
|
+
"""Gets an array of all share recipients within the current metastore where:
|
|
3603
3568
|
|
|
3604
3569
|
* the caller is a metastore admin, or * the caller is the owner. There is no guarantee of a specific
|
|
3605
3570
|
ordering of the elements in the array.
|
|
@@ -3644,9 +3609,7 @@ class RecipientsAPI:
|
|
|
3644
3609
|
query["page_token"] = json["next_page_token"]
|
|
3645
3610
|
|
|
3646
3611
|
def rotate_token(self, name: str, existing_token_expire_in_seconds: int) -> RecipientInfo:
|
|
3647
|
-
"""
|
|
3648
|
-
|
|
3649
|
-
Refreshes the specified recipient's delta sharing authentication token with the provided token info.
|
|
3612
|
+
"""Refreshes the specified recipient's delta sharing authentication token with the provided token info.
|
|
3650
3613
|
The caller must be the owner of the recipient.
|
|
3651
3614
|
|
|
3652
3615
|
:param name: str
|
|
@@ -3672,9 +3635,7 @@ class RecipientsAPI:
|
|
|
3672
3635
|
def share_permissions(
|
|
3673
3636
|
self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
|
|
3674
3637
|
) -> GetRecipientSharePermissionsResponse:
|
|
3675
|
-
"""
|
|
3676
|
-
|
|
3677
|
-
Gets the share permissions for the specified Recipient. The caller must be a metastore admin or the
|
|
3638
|
+
"""Gets the share permissions for the specified Recipient. The caller must be a metastore admin or the
|
|
3678
3639
|
owner of the Recipient.
|
|
3679
3640
|
|
|
3680
3641
|
:param name: str
|
|
@@ -3718,9 +3679,7 @@ class RecipientsAPI:
|
|
|
3718
3679
|
owner: Optional[str] = None,
|
|
3719
3680
|
properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None,
|
|
3720
3681
|
) -> RecipientInfo:
|
|
3721
|
-
"""
|
|
3722
|
-
|
|
3723
|
-
Updates an existing recipient in the metastore. The caller must be a metastore admin or the owner of
|
|
3682
|
+
"""Updates an existing recipient in the metastore. The caller must be a metastore admin or the owner of
|
|
3724
3683
|
the recipient. If the recipient name will be updated, the user must be both a metastore admin and the
|
|
3725
3684
|
owner of the recipient.
|
|
3726
3685
|
|
|
@@ -3775,9 +3734,7 @@ class SharesAPI:
|
|
|
3775
3734
|
self._api = api_client
|
|
3776
3735
|
|
|
3777
3736
|
def create(self, name: str, *, comment: Optional[str] = None, storage_root: Optional[str] = None) -> ShareInfo:
|
|
3778
|
-
"""
|
|
3779
|
-
|
|
3780
|
-
Creates a new share for data objects. Data objects can be added after creation with **update**. The
|
|
3737
|
+
"""Creates a new share for data objects. Data objects can be added after creation with **update**. The
|
|
3781
3738
|
caller must be a metastore admin or have the **CREATE_SHARE** privilege on the metastore.
|
|
3782
3739
|
|
|
3783
3740
|
:param name: str
|
|
@@ -3805,9 +3762,7 @@ class SharesAPI:
|
|
|
3805
3762
|
return ShareInfo.from_dict(res)
|
|
3806
3763
|
|
|
3807
3764
|
def delete(self, name: str):
|
|
3808
|
-
"""
|
|
3809
|
-
|
|
3810
|
-
Deletes a data object share from the metastore. The caller must be an owner of the share.
|
|
3765
|
+
"""Deletes a data object share from the metastore. The caller must be an owner of the share.
|
|
3811
3766
|
|
|
3812
3767
|
:param name: str
|
|
3813
3768
|
The name of the share.
|
|
@@ -3820,9 +3775,7 @@ class SharesAPI:
|
|
|
3820
3775
|
self._api.do("DELETE", f"/api/2.1/unity-catalog/shares/{name}", headers=headers)
|
|
3821
3776
|
|
|
3822
3777
|
def get(self, name: str, *, include_shared_data: Optional[bool] = None) -> ShareInfo:
|
|
3823
|
-
"""
|
|
3824
|
-
|
|
3825
|
-
Gets a data object share from the metastore. The caller must be a metastore admin or the owner of the
|
|
3778
|
+
"""Gets a data object share from the metastore. The caller must be a metastore admin or the owner of the
|
|
3826
3779
|
share.
|
|
3827
3780
|
|
|
3828
3781
|
:param name: str
|
|
@@ -3844,9 +3797,7 @@ class SharesAPI:
|
|
|
3844
3797
|
return ShareInfo.from_dict(res)
|
|
3845
3798
|
|
|
3846
3799
|
def list(self, *, max_results: Optional[int] = None, page_token: Optional[str] = None) -> Iterator[ShareInfo]:
|
|
3847
|
-
"""
|
|
3848
|
-
|
|
3849
|
-
Gets an array of data object shares from the metastore. The caller must be a metastore admin or the
|
|
3800
|
+
"""Gets an array of data object shares from the metastore. The caller must be a metastore admin or the
|
|
3850
3801
|
owner of the share. There is no guarantee of a specific ordering of the elements in the array.
|
|
3851
3802
|
|
|
3852
3803
|
:param max_results: int (optional)
|
|
@@ -3886,9 +3837,7 @@ class SharesAPI:
|
|
|
3886
3837
|
def share_permissions(
|
|
3887
3838
|
self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
|
|
3888
3839
|
) -> GetSharePermissionsResponse:
|
|
3889
|
-
"""
|
|
3890
|
-
|
|
3891
|
-
Gets the permissions for a data share from the metastore. The caller must be a metastore admin or the
|
|
3840
|
+
"""Gets the permissions for a data share from the metastore. The caller must be a metastore admin or the
|
|
3892
3841
|
owner of the share.
|
|
3893
3842
|
|
|
3894
3843
|
:param name: str
|
|
@@ -3929,15 +3878,13 @@ class SharesAPI:
|
|
|
3929
3878
|
storage_root: Optional[str] = None,
|
|
3930
3879
|
updates: Optional[List[SharedDataObjectUpdate]] = None,
|
|
3931
3880
|
) -> ShareInfo:
|
|
3932
|
-
"""
|
|
3933
|
-
|
|
3934
|
-
Updates the share with the changes and data objects in the request. The caller must be the owner of
|
|
3881
|
+
"""Updates the share with the changes and data objects in the request. The caller must be the owner of
|
|
3935
3882
|
the share or a metastore admin.
|
|
3936
3883
|
|
|
3937
3884
|
When the caller is a metastore admin, only the __owner__ field can be updated.
|
|
3938
3885
|
|
|
3939
|
-
In the case
|
|
3940
|
-
|
|
3886
|
+
In the case the share name is changed, **updateShare** requires that the caller is the owner of the
|
|
3887
|
+
share and has the CREATE_SHARE privilege.
|
|
3941
3888
|
|
|
3942
3889
|
If there are notebook files in the share, the __storage_root__ field cannot be updated.
|
|
3943
3890
|
|
|
@@ -3988,9 +3935,7 @@ class SharesAPI:
|
|
|
3988
3935
|
changes: Optional[List[PermissionsChange]] = None,
|
|
3989
3936
|
omit_permissions_list: Optional[bool] = None,
|
|
3990
3937
|
) -> UpdateSharePermissionsResponse:
|
|
3991
|
-
"""
|
|
3992
|
-
|
|
3993
|
-
Updates the permissions for a data share in the metastore. The caller must be a metastore admin or an
|
|
3938
|
+
"""Updates the permissions for a data share in the metastore. The caller must be a metastore admin or an
|
|
3994
3939
|
owner of the share.
|
|
3995
3940
|
|
|
3996
3941
|
For new recipient grants, the user must also be the recipient owner or metastore admin. recipient
|
|
@@ -3999,7 +3944,7 @@ class SharesAPI:
|
|
|
3999
3944
|
:param name: str
|
|
4000
3945
|
The name of the share.
|
|
4001
3946
|
:param changes: List[:class:`PermissionsChange`] (optional)
|
|
4002
|
-
Array of
|
|
3947
|
+
Array of permissions change objects.
|
|
4003
3948
|
:param omit_permissions_list: bool (optional)
|
|
4004
3949
|
Optional. Whether to return the latest permissions list of the share in the response.
|
|
4005
3950
|
|