databricks-sdk 0.56.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.

Files changed (31) hide show
  1. databricks/sdk/__init__.py +15 -9
  2. databricks/sdk/service/aibuilder.py +157 -16
  3. databricks/sdk/service/apps.py +14 -42
  4. databricks/sdk/service/billing.py +17 -51
  5. databricks/sdk/service/catalog.py +198 -399
  6. databricks/sdk/service/cleanrooms.py +11 -33
  7. databricks/sdk/service/compute.py +63 -189
  8. databricks/sdk/service/dashboards.py +21 -63
  9. databricks/sdk/service/database.py +45 -30
  10. databricks/sdk/service/files.py +18 -54
  11. databricks/sdk/service/iam.py +55 -165
  12. databricks/sdk/service/jobs.py +232 -85
  13. databricks/sdk/service/marketplace.py +46 -146
  14. databricks/sdk/service/ml.py +455 -216
  15. databricks/sdk/service/oauth2.py +17 -45
  16. databricks/sdk/service/pipelines.py +81 -40
  17. databricks/sdk/service/provisioning.py +30 -90
  18. databricks/sdk/service/qualitymonitorv2.py +5 -15
  19. databricks/sdk/service/serving.py +30 -42
  20. databricks/sdk/service/settings.py +103 -314
  21. databricks/sdk/service/sharing.py +30 -86
  22. databricks/sdk/service/sql.py +74 -184
  23. databricks/sdk/service/vectorsearch.py +13 -43
  24. databricks/sdk/service/workspace.py +35 -105
  25. databricks/sdk/version.py +1 -1
  26. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/METADATA +1 -1
  27. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/RECORD +31 -31
  28. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/WHEEL +0 -0
  29. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/LICENSE +0 -0
  30. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/NOTICE +0 -0
  31. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/top_level.txt +0 -0
@@ -2962,9 +2962,7 @@ class ProvidersAPI:
2962
2962
  comment: Optional[str] = None,
2963
2963
  recipient_profile_str: Optional[str] = None,
2964
2964
  ) -> ProviderInfo:
2965
- """Create an auth provider.
2966
-
2967
- 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
2968
2966
  must be an admin on the metastore.
2969
2967
 
2970
2968
  :param name: str
@@ -2997,9 +2995,7 @@ class ProvidersAPI:
2997
2995
  return ProviderInfo.from_dict(res)
2998
2996
 
2999
2997
  def delete(self, name: str):
3000
- """Delete a provider.
3001
-
3002
- 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
3003
2999
  provider.
3004
3000
 
3005
3001
  :param name: str
@@ -3013,9 +3009,7 @@ class ProvidersAPI:
3013
3009
  self._api.do("DELETE", f"/api/2.1/unity-catalog/providers/{name}", headers=headers)
3014
3010
 
3015
3011
  def get(self, name: str) -> ProviderInfo:
3016
- """Get a provider.
3017
-
3018
- 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
3019
3013
  either be a metastore admin or the owner of the provider.
3020
3014
 
3021
3015
  :param name: str
@@ -3038,9 +3032,7 @@ class ProvidersAPI:
3038
3032
  max_results: Optional[int] = None,
3039
3033
  page_token: Optional[str] = None,
3040
3034
  ) -> Iterator[ProviderInfo]:
3041
- """List providers.
3042
-
3043
- 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
3044
3036
  the owner of the providers. Providers not owned by the caller are not included in the response. There
3045
3037
  is no guarantee of a specific ordering of the elements in the array.
3046
3038
 
@@ -3093,9 +3085,7 @@ class ProvidersAPI:
3093
3085
  table_max_results: Optional[int] = None,
3094
3086
  volume_max_results: Optional[int] = None,
3095
3087
  ) -> ListProviderShareAssetsResponse:
3096
- """List assets by provider share.
3097
-
3098
- 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
3099
3089
  share.
3100
3090
 
3101
3091
  :param provider_name: str
@@ -3135,9 +3125,7 @@ class ProvidersAPI:
3135
3125
  def list_shares(
3136
3126
  self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3137
3127
  ) -> Iterator[ProviderShare]:
3138
- """List shares by Provider.
3139
-
3140
- 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:
3141
3129
 
3142
3130
  * the caller is a metastore admin, or * the caller is the owner.
3143
3131
 
@@ -3186,9 +3174,7 @@ class ProvidersAPI:
3186
3174
  owner: Optional[str] = None,
3187
3175
  recipient_profile_str: Optional[str] = None,
3188
3176
  ) -> ProviderInfo:
3189
- """Update a provider.
3190
-
3191
- 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
3192
3178
  owner of the provider. If the update changes the provider name, the caller must be both a metastore
3193
3179
  admin and the owner of the provider.
3194
3180
 
@@ -3237,9 +3223,7 @@ class RecipientActivationAPI:
3237
3223
  self._api = api_client
3238
3224
 
3239
3225
  def get_activation_url_info(self, activation_url: str):
3240
- """Get a share activation URL.
3241
-
3242
- Gets an activation URL for a share.
3226
+ """Gets an activation URL for a share.
3243
3227
 
3244
3228
  :param activation_url: str
3245
3229
  The one time activation url. It also accepts activation token.
@@ -3256,9 +3240,7 @@ class RecipientActivationAPI:
3256
3240
  )
3257
3241
 
3258
3242
  def retrieve_token(self, activation_url: str) -> RetrieveTokenResponse:
3259
- """Get an access token.
3260
-
3261
- 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.
3262
3244
 
3263
3245
  :param activation_url: str
3264
3246
  The one time activation url. It also accepts activation token.
@@ -3301,9 +3283,7 @@ class RecipientFederationPoliciesAPI:
3301
3283
  self._api = api_client
3302
3284
 
3303
3285
  def create(self, recipient_name: str, policy: FederationPolicy) -> FederationPolicy:
3304
- """Create recipient federation policy.
3305
-
3306
- 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
3307
3287
  non-Databricks recipients. The caller must be the owner of the recipient. When sharing data from
3308
3288
  Databricks to non-Databricks clients, you can define a federation policy to authenticate
3309
3289
  non-Databricks recipients. The federation policy validates OIDC claims in federated tokens and is
@@ -3343,9 +3323,7 @@ class RecipientFederationPoliciesAPI:
3343
3323
  return FederationPolicy.from_dict(res)
3344
3324
 
3345
3325
  def delete(self, recipient_name: str, name: str):
3346
- """Delete recipient federation policy.
3347
-
3348
- 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
3349
3327
  of the recipient.
3350
3328
 
3351
3329
  :param recipient_name: str
@@ -3365,9 +3343,7 @@ class RecipientFederationPoliciesAPI:
3365
3343
  )
3366
3344
 
3367
3345
  def get_federation_policy(self, recipient_name: str, name: str) -> FederationPolicy:
3368
- """Get recipient federation policy.
3369
-
3370
- 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
3371
3347
  to non-Databricks recipients. The caller must have read access to the recipient.
3372
3348
 
3373
3349
  :param recipient_name: str
@@ -3390,9 +3366,7 @@ class RecipientFederationPoliciesAPI:
3390
3366
  def list(
3391
3367
  self, recipient_name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3392
3368
  ) -> Iterator[FederationPolicy]:
3393
- """List recipient federation policies.
3394
-
3395
- 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
3396
3370
  non-Databricks recipients. The caller must have read access to the recipient.
3397
3371
 
3398
3372
  :param recipient_name: str
@@ -3429,9 +3403,7 @@ class RecipientFederationPoliciesAPI:
3429
3403
  def update(
3430
3404
  self, recipient_name: str, name: str, policy: FederationPolicy, *, update_mask: Optional[str] = None
3431
3405
  ) -> FederationPolicy:
3432
- """Update recipient federation policy.
3433
-
3434
- 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
3435
3407
  recipient.
3436
3408
 
3437
3409
  :param recipient_name: str
@@ -3498,9 +3470,7 @@ class RecipientsAPI:
3498
3470
  properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None,
3499
3471
  sharing_code: Optional[str] = None,
3500
3472
  ) -> RecipientInfo:
3501
- """Create a share recipient.
3502
-
3503
- 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
3504
3474
  be a metastore admin or have the **CREATE_RECIPIENT** privilege on the metastore.
3505
3475
 
3506
3476
  :param name: str
@@ -3557,9 +3527,7 @@ class RecipientsAPI:
3557
3527
  return RecipientInfo.from_dict(res)
3558
3528
 
3559
3529
  def delete(self, name: str):
3560
- """Delete a share recipient.
3561
-
3562
- 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.
3563
3531
 
3564
3532
  :param name: str
3565
3533
  Name of the recipient.
@@ -3572,9 +3540,7 @@ class RecipientsAPI:
3572
3540
  self._api.do("DELETE", f"/api/2.1/unity-catalog/recipients/{name}", headers=headers)
3573
3541
 
3574
3542
  def get(self, name: str) -> RecipientInfo:
3575
- """Get a share recipient.
3576
-
3577
- Gets a share recipient from the metastore if:
3543
+ """Gets a share recipient from the metastore if:
3578
3544
 
3579
3545
  * the caller is the owner of the share recipient, or: * is a metastore admin
3580
3546
 
@@ -3598,9 +3564,7 @@ class RecipientsAPI:
3598
3564
  max_results: Optional[int] = None,
3599
3565
  page_token: Optional[str] = None,
3600
3566
  ) -> Iterator[RecipientInfo]:
3601
- """List share recipients.
3602
-
3603
- 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:
3604
3568
 
3605
3569
  * the caller is a metastore admin, or * the caller is the owner. There is no guarantee of a specific
3606
3570
  ordering of the elements in the array.
@@ -3645,9 +3609,7 @@ class RecipientsAPI:
3645
3609
  query["page_token"] = json["next_page_token"]
3646
3610
 
3647
3611
  def rotate_token(self, name: str, existing_token_expire_in_seconds: int) -> RecipientInfo:
3648
- """Rotate a token.
3649
-
3650
- 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.
3651
3613
  The caller must be the owner of the recipient.
3652
3614
 
3653
3615
  :param name: str
@@ -3673,9 +3635,7 @@ class RecipientsAPI:
3673
3635
  def share_permissions(
3674
3636
  self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3675
3637
  ) -> GetRecipientSharePermissionsResponse:
3676
- """Get recipient share permissions.
3677
-
3678
- 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
3679
3639
  owner of the Recipient.
3680
3640
 
3681
3641
  :param name: str
@@ -3719,9 +3679,7 @@ class RecipientsAPI:
3719
3679
  owner: Optional[str] = None,
3720
3680
  properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None,
3721
3681
  ) -> RecipientInfo:
3722
- """Update a share recipient.
3723
-
3724
- 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
3725
3683
  the recipient. If the recipient name will be updated, the user must be both a metastore admin and the
3726
3684
  owner of the recipient.
3727
3685
 
@@ -3776,9 +3734,7 @@ class SharesAPI:
3776
3734
  self._api = api_client
3777
3735
 
3778
3736
  def create(self, name: str, *, comment: Optional[str] = None, storage_root: Optional[str] = None) -> ShareInfo:
3779
- """Create a share.
3780
-
3781
- 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
3782
3738
  caller must be a metastore admin or have the **CREATE_SHARE** privilege on the metastore.
3783
3739
 
3784
3740
  :param name: str
@@ -3806,9 +3762,7 @@ class SharesAPI:
3806
3762
  return ShareInfo.from_dict(res)
3807
3763
 
3808
3764
  def delete(self, name: str):
3809
- """Delete a share.
3810
-
3811
- 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.
3812
3766
 
3813
3767
  :param name: str
3814
3768
  The name of the share.
@@ -3821,9 +3775,7 @@ class SharesAPI:
3821
3775
  self._api.do("DELETE", f"/api/2.1/unity-catalog/shares/{name}", headers=headers)
3822
3776
 
3823
3777
  def get(self, name: str, *, include_shared_data: Optional[bool] = None) -> ShareInfo:
3824
- """Get a share.
3825
-
3826
- 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
3827
3779
  share.
3828
3780
 
3829
3781
  :param name: str
@@ -3845,9 +3797,7 @@ class SharesAPI:
3845
3797
  return ShareInfo.from_dict(res)
3846
3798
 
3847
3799
  def list(self, *, max_results: Optional[int] = None, page_token: Optional[str] = None) -> Iterator[ShareInfo]:
3848
- """List shares.
3849
-
3850
- 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
3851
3801
  owner of the share. There is no guarantee of a specific ordering of the elements in the array.
3852
3802
 
3853
3803
  :param max_results: int (optional)
@@ -3887,9 +3837,7 @@ class SharesAPI:
3887
3837
  def share_permissions(
3888
3838
  self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3889
3839
  ) -> GetSharePermissionsResponse:
3890
- """Get permissions.
3891
-
3892
- 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
3893
3841
  owner of the share.
3894
3842
 
3895
3843
  :param name: str
@@ -3930,15 +3878,13 @@ class SharesAPI:
3930
3878
  storage_root: Optional[str] = None,
3931
3879
  updates: Optional[List[SharedDataObjectUpdate]] = None,
3932
3880
  ) -> ShareInfo:
3933
- """Update a share.
3934
-
3935
- 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
3936
3882
  the share or a metastore admin.
3937
3883
 
3938
3884
  When the caller is a metastore admin, only the __owner__ field can be updated.
3939
3885
 
3940
- In the case that the share name is changed, **updateShare** requires that the caller is both the share
3941
- owner and a metastore admin.
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.
3942
3888
 
3943
3889
  If there are notebook files in the share, the __storage_root__ field cannot be updated.
3944
3890
 
@@ -3989,9 +3935,7 @@ class SharesAPI:
3989
3935
  changes: Optional[List[PermissionsChange]] = None,
3990
3936
  omit_permissions_list: Optional[bool] = None,
3991
3937
  ) -> UpdateSharePermissionsResponse:
3992
- """Update permissions.
3993
-
3994
- 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
3995
3939
  owner of the share.
3996
3940
 
3997
3941
  For new recipient grants, the user must also be the recipient owner or metastore admin. recipient