databricks-sdk 0.56.0__py3-none-any.whl → 0.58.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 +38 -11
  2. databricks/sdk/service/aibuilder.py +122 -17
  3. databricks/sdk/service/apps.py +15 -45
  4. databricks/sdk/service/billing.py +70 -74
  5. databricks/sdk/service/catalog.py +1898 -557
  6. databricks/sdk/service/cleanrooms.py +14 -55
  7. databricks/sdk/service/compute.py +305 -508
  8. databricks/sdk/service/dashboards.py +148 -223
  9. databricks/sdk/service/database.py +657 -127
  10. databricks/sdk/service/files.py +18 -54
  11. databricks/sdk/service/iam.py +55 -165
  12. databricks/sdk/service/jobs.py +238 -214
  13. databricks/sdk/service/marketplace.py +47 -146
  14. databricks/sdk/service/ml.py +1137 -447
  15. databricks/sdk/service/oauth2.py +17 -46
  16. databricks/sdk/service/pipelines.py +93 -69
  17. databricks/sdk/service/provisioning.py +34 -212
  18. databricks/sdk/service/qualitymonitorv2.py +5 -33
  19. databricks/sdk/service/serving.py +69 -55
  20. databricks/sdk/service/settings.py +106 -434
  21. databricks/sdk/service/sharing.py +33 -95
  22. databricks/sdk/service/sql.py +164 -254
  23. databricks/sdk/service/vectorsearch.py +13 -62
  24. databricks/sdk/service/workspace.py +36 -110
  25. databricks/sdk/version.py +1 -1
  26. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/METADATA +1 -1
  27. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/RECORD +31 -31
  28. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/WHEEL +0 -0
  29. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/licenses/LICENSE +0 -0
  30. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/licenses/NOTICE +0 -0
  31. {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/top_level.txt +0 -0
@@ -61,7 +61,6 @@ class CreateProvider:
61
61
  """The name of the Provider."""
62
62
 
63
63
  authentication_type: AuthenticationType
64
- """The delta sharing authentication type."""
65
64
 
66
65
  comment: Optional[str] = None
67
66
  """Description about the provider."""
@@ -113,7 +112,6 @@ class CreateRecipient:
113
112
  """Name of Recipient."""
114
113
 
115
114
  authentication_type: AuthenticationType
116
- """The delta sharing authentication type."""
117
115
 
118
116
  comment: Optional[str] = None
119
117
  """Description about the recipient."""
@@ -265,10 +263,8 @@ class DeltaSharingDependency:
265
263
  """Represents a UC dependency."""
266
264
 
267
265
  function: Optional[DeltaSharingFunctionDependency] = None
268
- """A Function in UC as a dependency."""
269
266
 
270
267
  table: Optional[DeltaSharingTableDependency] = None
271
- """A Table in UC as a dependency."""
272
268
 
273
269
  def as_dict(self) -> dict:
274
270
  """Serializes the DeltaSharingDependency into a dictionary suitable for use as a JSON request body."""
@@ -1405,7 +1401,8 @@ class Privilege(Enum):
1405
1401
  @dataclass
1406
1402
  class PrivilegeAssignment:
1407
1403
  principal: Optional[str] = None
1408
- """The principal (user email address or group name)."""
1404
+ """The principal (user email address or group name). For deleted principals, `principal` is empty
1405
+ while `principal_id` is populated."""
1409
1406
 
1410
1407
  privileges: Optional[List[Privilege]] = None
1411
1408
  """The privileges assigned to the principal."""
@@ -1437,7 +1434,6 @@ class PrivilegeAssignment:
1437
1434
  @dataclass
1438
1435
  class ProviderInfo:
1439
1436
  authentication_type: Optional[AuthenticationType] = None
1440
- """The delta sharing authentication type."""
1441
1437
 
1442
1438
  cloud: Optional[str] = None
1443
1439
  """Cloud vendor of the provider's UC metastore. This field is only present when the
@@ -1607,7 +1603,6 @@ class RecipientInfo:
1607
1603
  retrieved."""
1608
1604
 
1609
1605
  authentication_type: Optional[AuthenticationType] = None
1610
- """The delta sharing authentication type."""
1611
1606
 
1612
1607
  cloud: Optional[str] = None
1613
1608
  """Cloud vendor of the recipient's Unity Catalog Metastore. This field is only present when the
@@ -2962,15 +2957,12 @@ class ProvidersAPI:
2962
2957
  comment: Optional[str] = None,
2963
2958
  recipient_profile_str: Optional[str] = None,
2964
2959
  ) -> ProviderInfo:
2965
- """Create an auth provider.
2966
-
2967
- Creates a new authentication provider minimally based on a name and authentication type. The caller
2960
+ """Creates a new authentication provider minimally based on a name and authentication type. The caller
2968
2961
  must be an admin on the metastore.
2969
2962
 
2970
2963
  :param name: str
2971
2964
  The name of the Provider.
2972
2965
  :param authentication_type: :class:`AuthenticationType`
2973
- The delta sharing authentication type.
2974
2966
  :param comment: str (optional)
2975
2967
  Description about the provider.
2976
2968
  :param recipient_profile_str: str (optional)
@@ -2997,9 +2989,7 @@ class ProvidersAPI:
2997
2989
  return ProviderInfo.from_dict(res)
2998
2990
 
2999
2991
  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
2992
+ """Deletes an authentication provider, if the caller is a metastore admin or is the owner of the
3003
2993
  provider.
3004
2994
 
3005
2995
  :param name: str
@@ -3013,9 +3003,7 @@ class ProvidersAPI:
3013
3003
  self._api.do("DELETE", f"/api/2.1/unity-catalog/providers/{name}", headers=headers)
3014
3004
 
3015
3005
  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
3006
+ """Gets a specific authentication provider. The caller must supply the name of the provider, and must
3019
3007
  either be a metastore admin or the owner of the provider.
3020
3008
 
3021
3009
  :param name: str
@@ -3038,9 +3026,7 @@ class ProvidersAPI:
3038
3026
  max_results: Optional[int] = None,
3039
3027
  page_token: Optional[str] = None,
3040
3028
  ) -> Iterator[ProviderInfo]:
3041
- """List providers.
3042
-
3043
- Gets an array of available authentication providers. The caller must either be a metastore admin or
3029
+ """Gets an array of available authentication providers. The caller must either be a metastore admin or
3044
3030
  the owner of the providers. Providers not owned by the caller are not included in the response. There
3045
3031
  is no guarantee of a specific ordering of the elements in the array.
3046
3032
 
@@ -3093,9 +3079,7 @@ class ProvidersAPI:
3093
3079
  table_max_results: Optional[int] = None,
3094
3080
  volume_max_results: Optional[int] = None,
3095
3081
  ) -> 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
3082
+ """Get arrays of assets associated with a specified provider's share. The caller is the recipient of the
3099
3083
  share.
3100
3084
 
3101
3085
  :param provider_name: str
@@ -3135,9 +3119,7 @@ class ProvidersAPI:
3135
3119
  def list_shares(
3136
3120
  self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3137
3121
  ) -> Iterator[ProviderShare]:
3138
- """List shares by Provider.
3139
-
3140
- Gets an array of a specified provider's shares within the metastore where:
3122
+ """Gets an array of a specified provider's shares within the metastore where:
3141
3123
 
3142
3124
  * the caller is a metastore admin, or * the caller is the owner.
3143
3125
 
@@ -3186,9 +3168,7 @@ class ProvidersAPI:
3186
3168
  owner: Optional[str] = None,
3187
3169
  recipient_profile_str: Optional[str] = None,
3188
3170
  ) -> ProviderInfo:
3189
- """Update a provider.
3190
-
3191
- Updates the information for an authentication provider, if the caller is a metastore admin or is the
3171
+ """Updates the information for an authentication provider, if the caller is a metastore admin or is the
3192
3172
  owner of the provider. If the update changes the provider name, the caller must be both a metastore
3193
3173
  admin and the owner of the provider.
3194
3174
 
@@ -3237,9 +3217,7 @@ class RecipientActivationAPI:
3237
3217
  self._api = api_client
3238
3218
 
3239
3219
  def get_activation_url_info(self, activation_url: str):
3240
- """Get a share activation URL.
3241
-
3242
- Gets an activation URL for a share.
3220
+ """Gets an activation URL for a share.
3243
3221
 
3244
3222
  :param activation_url: str
3245
3223
  The one time activation url. It also accepts activation token.
@@ -3256,9 +3234,7 @@ class RecipientActivationAPI:
3256
3234
  )
3257
3235
 
3258
3236
  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.
3237
+ """Retrieve access token with an activation url. This is a public API without any authentication.
3262
3238
 
3263
3239
  :param activation_url: str
3264
3240
  The one time activation url. It also accepts activation token.
@@ -3301,9 +3277,7 @@ class RecipientFederationPoliciesAPI:
3301
3277
  self._api = api_client
3302
3278
 
3303
3279
  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
3280
+ """Create a federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to
3307
3281
  non-Databricks recipients. The caller must be the owner of the recipient. When sharing data from
3308
3282
  Databricks to non-Databricks clients, you can define a federation policy to authenticate
3309
3283
  non-Databricks recipients. The federation policy validates OIDC claims in federated tokens and is
@@ -3328,6 +3302,7 @@ class RecipientFederationPoliciesAPI:
3328
3302
  :param recipient_name: str
3329
3303
  Name of the recipient. This is the name of the recipient for which the policy is being created.
3330
3304
  :param policy: :class:`FederationPolicy`
3305
+ Name of the policy. This is the name of the policy to be created.
3331
3306
 
3332
3307
  :returns: :class:`FederationPolicy`
3333
3308
  """
@@ -3343,9 +3318,7 @@ class RecipientFederationPoliciesAPI:
3343
3318
  return FederationPolicy.from_dict(res)
3344
3319
 
3345
3320
  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
3321
+ """Deletes an existing federation policy for an OIDC_FEDERATION recipient. The caller must be the owner
3349
3322
  of the recipient.
3350
3323
 
3351
3324
  :param recipient_name: str
@@ -3365,9 +3338,7 @@ class RecipientFederationPoliciesAPI:
3365
3338
  )
3366
3339
 
3367
3340
  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
3341
+ """Reads an existing federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks
3371
3342
  to non-Databricks recipients. The caller must have read access to the recipient.
3372
3343
 
3373
3344
  :param recipient_name: str
@@ -3390,9 +3361,7 @@ class RecipientFederationPoliciesAPI:
3390
3361
  def list(
3391
3362
  self, recipient_name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3392
3363
  ) -> Iterator[FederationPolicy]:
3393
- """List recipient federation policies.
3394
-
3395
- Lists federation policies for an OIDC_FEDERATION recipient for sharing data from Databricks to
3364
+ """Lists federation policies for an OIDC_FEDERATION recipient for sharing data from Databricks to
3396
3365
  non-Databricks recipients. The caller must have read access to the recipient.
3397
3366
 
3398
3367
  :param recipient_name: str
@@ -3429,9 +3398,7 @@ class RecipientFederationPoliciesAPI:
3429
3398
  def update(
3430
3399
  self, recipient_name: str, name: str, policy: FederationPolicy, *, update_mask: Optional[str] = None
3431
3400
  ) -> 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
3401
+ """Updates an existing federation policy for an OIDC_RECIPIENT. The caller must be the owner of the
3435
3402
  recipient.
3436
3403
 
3437
3404
  :param recipient_name: str
@@ -3498,15 +3465,12 @@ class RecipientsAPI:
3498
3465
  properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None,
3499
3466
  sharing_code: Optional[str] = None,
3500
3467
  ) -> RecipientInfo:
3501
- """Create a share recipient.
3502
-
3503
- Creates a new recipient with the delta sharing authentication type in the metastore. The caller must
3468
+ """Creates a new recipient with the delta sharing authentication type in the metastore. The caller must
3504
3469
  be a metastore admin or have the **CREATE_RECIPIENT** privilege on the metastore.
3505
3470
 
3506
3471
  :param name: str
3507
3472
  Name of Recipient.
3508
3473
  :param authentication_type: :class:`AuthenticationType`
3509
- The delta sharing authentication type.
3510
3474
  :param comment: str (optional)
3511
3475
  Description about the recipient.
3512
3476
  :param data_recipient_global_metastore_id: str (optional)
@@ -3557,9 +3521,7 @@ class RecipientsAPI:
3557
3521
  return RecipientInfo.from_dict(res)
3558
3522
 
3559
3523
  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.
3524
+ """Deletes the specified recipient from the metastore. The caller must be the owner of the recipient.
3563
3525
 
3564
3526
  :param name: str
3565
3527
  Name of the recipient.
@@ -3572,9 +3534,7 @@ class RecipientsAPI:
3572
3534
  self._api.do("DELETE", f"/api/2.1/unity-catalog/recipients/{name}", headers=headers)
3573
3535
 
3574
3536
  def get(self, name: str) -> RecipientInfo:
3575
- """Get a share recipient.
3576
-
3577
- Gets a share recipient from the metastore if:
3537
+ """Gets a share recipient from the metastore if:
3578
3538
 
3579
3539
  * the caller is the owner of the share recipient, or: * is a metastore admin
3580
3540
 
@@ -3598,9 +3558,7 @@ class RecipientsAPI:
3598
3558
  max_results: Optional[int] = None,
3599
3559
  page_token: Optional[str] = None,
3600
3560
  ) -> Iterator[RecipientInfo]:
3601
- """List share recipients.
3602
-
3603
- Gets an array of all share recipients within the current metastore where:
3561
+ """Gets an array of all share recipients within the current metastore where:
3604
3562
 
3605
3563
  * the caller is a metastore admin, or * the caller is the owner. There is no guarantee of a specific
3606
3564
  ordering of the elements in the array.
@@ -3645,9 +3603,7 @@ class RecipientsAPI:
3645
3603
  query["page_token"] = json["next_page_token"]
3646
3604
 
3647
3605
  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.
3606
+ """Refreshes the specified recipient's delta sharing authentication token with the provided token info.
3651
3607
  The caller must be the owner of the recipient.
3652
3608
 
3653
3609
  :param name: str
@@ -3673,9 +3629,7 @@ class RecipientsAPI:
3673
3629
  def share_permissions(
3674
3630
  self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3675
3631
  ) -> 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
3632
+ """Gets the share permissions for the specified Recipient. The caller must be a metastore admin or the
3679
3633
  owner of the Recipient.
3680
3634
 
3681
3635
  :param name: str
@@ -3719,9 +3673,7 @@ class RecipientsAPI:
3719
3673
  owner: Optional[str] = None,
3720
3674
  properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None,
3721
3675
  ) -> 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
3676
+ """Updates an existing recipient in the metastore. The caller must be a metastore admin or the owner of
3725
3677
  the recipient. If the recipient name will be updated, the user must be both a metastore admin and the
3726
3678
  owner of the recipient.
3727
3679
 
@@ -3776,9 +3728,7 @@ class SharesAPI:
3776
3728
  self._api = api_client
3777
3729
 
3778
3730
  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
3731
+ """Creates a new share for data objects. Data objects can be added after creation with **update**. The
3782
3732
  caller must be a metastore admin or have the **CREATE_SHARE** privilege on the metastore.
3783
3733
 
3784
3734
  :param name: str
@@ -3806,9 +3756,7 @@ class SharesAPI:
3806
3756
  return ShareInfo.from_dict(res)
3807
3757
 
3808
3758
  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.
3759
+ """Deletes a data object share from the metastore. The caller must be an owner of the share.
3812
3760
 
3813
3761
  :param name: str
3814
3762
  The name of the share.
@@ -3821,9 +3769,7 @@ class SharesAPI:
3821
3769
  self._api.do("DELETE", f"/api/2.1/unity-catalog/shares/{name}", headers=headers)
3822
3770
 
3823
3771
  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
3772
+ """Gets a data object share from the metastore. The caller must be a metastore admin or the owner of the
3827
3773
  share.
3828
3774
 
3829
3775
  :param name: str
@@ -3845,9 +3791,7 @@ class SharesAPI:
3845
3791
  return ShareInfo.from_dict(res)
3846
3792
 
3847
3793
  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
3794
+ """Gets an array of data object shares from the metastore. The caller must be a metastore admin or the
3851
3795
  owner of the share. There is no guarantee of a specific ordering of the elements in the array.
3852
3796
 
3853
3797
  :param max_results: int (optional)
@@ -3887,9 +3831,7 @@ class SharesAPI:
3887
3831
  def share_permissions(
3888
3832
  self, name: str, *, max_results: Optional[int] = None, page_token: Optional[str] = None
3889
3833
  ) -> 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
3834
+ """Gets the permissions for a data share from the metastore. The caller must be a metastore admin or the
3893
3835
  owner of the share.
3894
3836
 
3895
3837
  :param name: str
@@ -3930,15 +3872,13 @@ class SharesAPI:
3930
3872
  storage_root: Optional[str] = None,
3931
3873
  updates: Optional[List[SharedDataObjectUpdate]] = None,
3932
3874
  ) -> 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
3875
+ """Updates the share with the changes and data objects in the request. The caller must be the owner of
3936
3876
  the share or a metastore admin.
3937
3877
 
3938
3878
  When the caller is a metastore admin, only the __owner__ field can be updated.
3939
3879
 
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.
3880
+ In the case the share name is changed, **updateShare** requires that the caller is the owner of the
3881
+ share and has the CREATE_SHARE privilege.
3942
3882
 
3943
3883
  If there are notebook files in the share, the __storage_root__ field cannot be updated.
3944
3884
 
@@ -3989,9 +3929,7 @@ class SharesAPI:
3989
3929
  changes: Optional[List[PermissionsChange]] = None,
3990
3930
  omit_permissions_list: Optional[bool] = None,
3991
3931
  ) -> 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
3932
+ """Updates the permissions for a data share in the metastore. The caller must be a metastore admin or an
3995
3933
  owner of the share.
3996
3934
 
3997
3935
  For new recipient grants, the user must also be the recipient owner or metastore admin. recipient