databricks-sdk 0.53.0__py3-none-any.whl → 0.55.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.

@@ -5,7 +5,6 @@ from typing import Optional
5
5
 
6
6
  import databricks.sdk.core as client
7
7
  import databricks.sdk.dbutils as dbutils
8
- import databricks.sdk.service as service
9
8
  from databricks.sdk import azure
10
9
  from databricks.sdk.credentials_provider import CredentialsStrategy
11
10
  from databricks.sdk.data_plane import DataPlaneTokenSource
@@ -14,6 +13,26 @@ from databricks.sdk.mixins.files import DbfsExt, FilesExt
14
13
  from databricks.sdk.mixins.jobs import JobsExt
15
14
  from databricks.sdk.mixins.open_ai_client import ServingEndpointsExt
16
15
  from databricks.sdk.mixins.workspace import WorkspaceExt
16
+ from databricks.sdk.service import apps as pkg_apps
17
+ from databricks.sdk.service import billing as pkg_billing
18
+ from databricks.sdk.service import catalog as pkg_catalog
19
+ from databricks.sdk.service import cleanrooms as pkg_cleanrooms
20
+ from databricks.sdk.service import compute as pkg_compute
21
+ from databricks.sdk.service import dashboards as pkg_dashboards
22
+ from databricks.sdk.service import files as pkg_files
23
+ from databricks.sdk.service import iam as pkg_iam
24
+ from databricks.sdk.service import jobs as pkg_jobs
25
+ from databricks.sdk.service import marketplace as pkg_marketplace
26
+ from databricks.sdk.service import ml as pkg_ml
27
+ from databricks.sdk.service import oauth2 as pkg_oauth2
28
+ from databricks.sdk.service import pipelines as pkg_pipelines
29
+ from databricks.sdk.service import provisioning as pkg_provisioning
30
+ from databricks.sdk.service import serving as pkg_serving
31
+ from databricks.sdk.service import settings as pkg_settings
32
+ from databricks.sdk.service import sharing as pkg_sharing
33
+ from databricks.sdk.service import sql as pkg_sql
34
+ from databricks.sdk.service import vectorsearch as pkg_vectorsearch
35
+ from databricks.sdk.service import workspace as pkg_workspace
17
36
  from databricks.sdk.service.apps import AppsAPI
18
37
  from databricks.sdk.service.billing import (BillableUsageAPI, BudgetPolicyAPI,
19
38
  BudgetsAPI, LogDeliveryAPI,
@@ -23,6 +42,7 @@ from databricks.sdk.service.catalog import (AccountMetastoreAssignmentsAPI,
23
42
  AccountStorageCredentialsAPI,
24
43
  ArtifactAllowlistsAPI, CatalogsAPI,
25
44
  ConnectionsAPI, CredentialsAPI,
45
+ DatabaseInstancesAPI,
26
46
  ExternalLocationsAPI, FunctionsAPI,
27
47
  GrantsAPI, MetastoresAPI,
28
48
  ModelVersionsAPI, OnlineTablesAPI,
@@ -89,12 +109,15 @@ from databricks.sdk.service.settings import (
89
109
  DisableLegacyDbfsAPI, DisableLegacyFeaturesAPI, EnableExportNotebookAPI,
90
110
  EnableIpAccessListsAPI, EnableNotebookTableClipboardAPI,
91
111
  EnableResultsDownloadingAPI, EnhancedSecurityMonitoringAPI,
92
- EsmEnablementAccountAPI, IpAccessListsAPI, NetworkConnectivityAPI,
93
- NotificationDestinationsAPI, PersonalComputeAPI,
112
+ EsmEnablementAccountAPI, IpAccessListsAPI,
113
+ LlmProxyPartnerPoweredAccountAPI, LlmProxyPartnerPoweredEnforceAPI,
114
+ LlmProxyPartnerPoweredWorkspaceAPI, NetworkConnectivityAPI,
115
+ NetworkPoliciesAPI, NotificationDestinationsAPI, PersonalComputeAPI,
94
116
  RestrictWorkspaceAdminsAPI, SettingsAPI, TokenManagementAPI, TokensAPI,
95
- WorkspaceConfAPI)
117
+ WorkspaceConfAPI, WorkspaceNetworkConfigurationAPI)
96
118
  from databricks.sdk.service.sharing import (ProvidersAPI,
97
119
  RecipientActivationAPI,
120
+ RecipientFederationPoliciesAPI,
98
121
  RecipientsAPI, SharesAPI)
99
122
  from databricks.sdk.service.sql import (AlertsAPI, AlertsLegacyAPI,
100
123
  AlertsV2API, DashboardsAPI,
@@ -205,117 +228,115 @@ class WorkspaceClient:
205
228
  self._dbutils = _make_dbutils(self._config)
206
229
  self._api_client = client.ApiClient(self._config)
207
230
  serving_endpoints = ServingEndpointsExt(self._api_client)
208
- self._access_control = service.iam.AccessControlAPI(self._api_client)
209
- self._account_access_control_proxy = service.iam.AccountAccessControlProxyAPI(self._api_client)
210
- self._alerts = service.sql.AlertsAPI(self._api_client)
211
- self._alerts_legacy = service.sql.AlertsLegacyAPI(self._api_client)
212
- self._alerts_v2 = service.sql.AlertsV2API(self._api_client)
213
- self._apps = service.apps.AppsAPI(self._api_client)
214
- self._artifact_allowlists = service.catalog.ArtifactAllowlistsAPI(self._api_client)
215
- self._catalogs = service.catalog.CatalogsAPI(self._api_client)
216
- self._clean_room_assets = service.cleanrooms.CleanRoomAssetsAPI(self._api_client)
217
- self._clean_room_task_runs = service.cleanrooms.CleanRoomTaskRunsAPI(self._api_client)
218
- self._clean_rooms = service.cleanrooms.CleanRoomsAPI(self._api_client)
219
- self._cluster_policies = service.compute.ClusterPoliciesAPI(self._api_client)
231
+ self._access_control = pkg_iam.AccessControlAPI(self._api_client)
232
+ self._account_access_control_proxy = pkg_iam.AccountAccessControlProxyAPI(self._api_client)
233
+ self._alerts = pkg_sql.AlertsAPI(self._api_client)
234
+ self._alerts_legacy = pkg_sql.AlertsLegacyAPI(self._api_client)
235
+ self._alerts_v2 = pkg_sql.AlertsV2API(self._api_client)
236
+ self._apps = pkg_apps.AppsAPI(self._api_client)
237
+ self._artifact_allowlists = pkg_catalog.ArtifactAllowlistsAPI(self._api_client)
238
+ self._catalogs = pkg_catalog.CatalogsAPI(self._api_client)
239
+ self._clean_room_assets = pkg_cleanrooms.CleanRoomAssetsAPI(self._api_client)
240
+ self._clean_room_task_runs = pkg_cleanrooms.CleanRoomTaskRunsAPI(self._api_client)
241
+ self._clean_rooms = pkg_cleanrooms.CleanRoomsAPI(self._api_client)
242
+ self._cluster_policies = pkg_compute.ClusterPoliciesAPI(self._api_client)
220
243
  self._clusters = ClustersExt(self._api_client)
221
- self._command_execution = service.compute.CommandExecutionAPI(self._api_client)
222
- self._connections = service.catalog.ConnectionsAPI(self._api_client)
223
- self._consumer_fulfillments = service.marketplace.ConsumerFulfillmentsAPI(self._api_client)
224
- self._consumer_installations = service.marketplace.ConsumerInstallationsAPI(self._api_client)
225
- self._consumer_listings = service.marketplace.ConsumerListingsAPI(self._api_client)
226
- self._consumer_personalization_requests = service.marketplace.ConsumerPersonalizationRequestsAPI(
227
- self._api_client
228
- )
229
- self._consumer_providers = service.marketplace.ConsumerProvidersAPI(self._api_client)
230
- self._credentials = service.catalog.CredentialsAPI(self._api_client)
231
- self._credentials_manager = service.settings.CredentialsManagerAPI(self._api_client)
232
- self._current_user = service.iam.CurrentUserAPI(self._api_client)
233
- self._dashboard_widgets = service.sql.DashboardWidgetsAPI(self._api_client)
234
- self._dashboards = service.sql.DashboardsAPI(self._api_client)
235
- self._data_sources = service.sql.DataSourcesAPI(self._api_client)
244
+ self._command_execution = pkg_compute.CommandExecutionAPI(self._api_client)
245
+ self._connections = pkg_catalog.ConnectionsAPI(self._api_client)
246
+ self._consumer_fulfillments = pkg_marketplace.ConsumerFulfillmentsAPI(self._api_client)
247
+ self._consumer_installations = pkg_marketplace.ConsumerInstallationsAPI(self._api_client)
248
+ self._consumer_listings = pkg_marketplace.ConsumerListingsAPI(self._api_client)
249
+ self._consumer_personalization_requests = pkg_marketplace.ConsumerPersonalizationRequestsAPI(self._api_client)
250
+ self._consumer_providers = pkg_marketplace.ConsumerProvidersAPI(self._api_client)
251
+ self._credentials = pkg_catalog.CredentialsAPI(self._api_client)
252
+ self._credentials_manager = pkg_settings.CredentialsManagerAPI(self._api_client)
253
+ self._current_user = pkg_iam.CurrentUserAPI(self._api_client)
254
+ self._dashboard_widgets = pkg_sql.DashboardWidgetsAPI(self._api_client)
255
+ self._dashboards = pkg_sql.DashboardsAPI(self._api_client)
256
+ self._data_sources = pkg_sql.DataSourcesAPI(self._api_client)
257
+ self._database_instances = pkg_catalog.DatabaseInstancesAPI(self._api_client)
236
258
  self._dbfs = DbfsExt(self._api_client)
237
- self._dbsql_permissions = service.sql.DbsqlPermissionsAPI(self._api_client)
238
- self._experiments = service.ml.ExperimentsAPI(self._api_client)
239
- self._external_locations = service.catalog.ExternalLocationsAPI(self._api_client)
259
+ self._dbsql_permissions = pkg_sql.DbsqlPermissionsAPI(self._api_client)
260
+ self._experiments = pkg_ml.ExperimentsAPI(self._api_client)
261
+ self._external_locations = pkg_catalog.ExternalLocationsAPI(self._api_client)
240
262
  self._files = _make_files_client(self._api_client, self._config)
241
- self._functions = service.catalog.FunctionsAPI(self._api_client)
242
- self._genie = service.dashboards.GenieAPI(self._api_client)
243
- self._git_credentials = service.workspace.GitCredentialsAPI(self._api_client)
244
- self._global_init_scripts = service.compute.GlobalInitScriptsAPI(self._api_client)
245
- self._grants = service.catalog.GrantsAPI(self._api_client)
246
- self._groups = service.iam.GroupsAPI(self._api_client)
247
- self._instance_pools = service.compute.InstancePoolsAPI(self._api_client)
248
- self._instance_profiles = service.compute.InstanceProfilesAPI(self._api_client)
249
- self._ip_access_lists = service.settings.IpAccessListsAPI(self._api_client)
263
+ self._functions = pkg_catalog.FunctionsAPI(self._api_client)
264
+ self._genie = pkg_dashboards.GenieAPI(self._api_client)
265
+ self._git_credentials = pkg_workspace.GitCredentialsAPI(self._api_client)
266
+ self._global_init_scripts = pkg_compute.GlobalInitScriptsAPI(self._api_client)
267
+ self._grants = pkg_catalog.GrantsAPI(self._api_client)
268
+ self._groups = pkg_iam.GroupsAPI(self._api_client)
269
+ self._instance_pools = pkg_compute.InstancePoolsAPI(self._api_client)
270
+ self._instance_profiles = pkg_compute.InstanceProfilesAPI(self._api_client)
271
+ self._ip_access_lists = pkg_settings.IpAccessListsAPI(self._api_client)
250
272
  self._jobs = JobsExt(self._api_client)
251
- self._lakeview = service.dashboards.LakeviewAPI(self._api_client)
252
- self._lakeview_embedded = service.dashboards.LakeviewEmbeddedAPI(self._api_client)
253
- self._libraries = service.compute.LibrariesAPI(self._api_client)
254
- self._metastores = service.catalog.MetastoresAPI(self._api_client)
255
- self._model_registry = service.ml.ModelRegistryAPI(self._api_client)
256
- self._model_versions = service.catalog.ModelVersionsAPI(self._api_client)
257
- self._notification_destinations = service.settings.NotificationDestinationsAPI(self._api_client)
258
- self._online_tables = service.catalog.OnlineTablesAPI(self._api_client)
259
- self._permission_migration = service.iam.PermissionMigrationAPI(self._api_client)
260
- self._permissions = service.iam.PermissionsAPI(self._api_client)
261
- self._pipelines = service.pipelines.PipelinesAPI(self._api_client)
262
- self._policy_compliance_for_clusters = service.compute.PolicyComplianceForClustersAPI(self._api_client)
263
- self._policy_compliance_for_jobs = service.jobs.PolicyComplianceForJobsAPI(self._api_client)
264
- self._policy_families = service.compute.PolicyFamiliesAPI(self._api_client)
265
- self._provider_exchange_filters = service.marketplace.ProviderExchangeFiltersAPI(self._api_client)
266
- self._provider_exchanges = service.marketplace.ProviderExchangesAPI(self._api_client)
267
- self._provider_files = service.marketplace.ProviderFilesAPI(self._api_client)
268
- self._provider_listings = service.marketplace.ProviderListingsAPI(self._api_client)
269
- self._provider_personalization_requests = service.marketplace.ProviderPersonalizationRequestsAPI(
270
- self._api_client
271
- )
272
- self._provider_provider_analytics_dashboards = service.marketplace.ProviderProviderAnalyticsDashboardsAPI(
273
+ self._lakeview = pkg_dashboards.LakeviewAPI(self._api_client)
274
+ self._lakeview_embedded = pkg_dashboards.LakeviewEmbeddedAPI(self._api_client)
275
+ self._libraries = pkg_compute.LibrariesAPI(self._api_client)
276
+ self._metastores = pkg_catalog.MetastoresAPI(self._api_client)
277
+ self._model_registry = pkg_ml.ModelRegistryAPI(self._api_client)
278
+ self._model_versions = pkg_catalog.ModelVersionsAPI(self._api_client)
279
+ self._notification_destinations = pkg_settings.NotificationDestinationsAPI(self._api_client)
280
+ self._online_tables = pkg_catalog.OnlineTablesAPI(self._api_client)
281
+ self._permission_migration = pkg_iam.PermissionMigrationAPI(self._api_client)
282
+ self._permissions = pkg_iam.PermissionsAPI(self._api_client)
283
+ self._pipelines = pkg_pipelines.PipelinesAPI(self._api_client)
284
+ self._policy_compliance_for_clusters = pkg_compute.PolicyComplianceForClustersAPI(self._api_client)
285
+ self._policy_compliance_for_jobs = pkg_jobs.PolicyComplianceForJobsAPI(self._api_client)
286
+ self._policy_families = pkg_compute.PolicyFamiliesAPI(self._api_client)
287
+ self._provider_exchange_filters = pkg_marketplace.ProviderExchangeFiltersAPI(self._api_client)
288
+ self._provider_exchanges = pkg_marketplace.ProviderExchangesAPI(self._api_client)
289
+ self._provider_files = pkg_marketplace.ProviderFilesAPI(self._api_client)
290
+ self._provider_listings = pkg_marketplace.ProviderListingsAPI(self._api_client)
291
+ self._provider_personalization_requests = pkg_marketplace.ProviderPersonalizationRequestsAPI(self._api_client)
292
+ self._provider_provider_analytics_dashboards = pkg_marketplace.ProviderProviderAnalyticsDashboardsAPI(
273
293
  self._api_client
274
294
  )
275
- self._provider_providers = service.marketplace.ProviderProvidersAPI(self._api_client)
276
- self._providers = service.sharing.ProvidersAPI(self._api_client)
277
- self._quality_monitors = service.catalog.QualityMonitorsAPI(self._api_client)
278
- self._queries = service.sql.QueriesAPI(self._api_client)
279
- self._queries_legacy = service.sql.QueriesLegacyAPI(self._api_client)
280
- self._query_execution = service.dashboards.QueryExecutionAPI(self._api_client)
281
- self._query_history = service.sql.QueryHistoryAPI(self._api_client)
282
- self._query_visualizations = service.sql.QueryVisualizationsAPI(self._api_client)
283
- self._query_visualizations_legacy = service.sql.QueryVisualizationsLegacyAPI(self._api_client)
284
- self._recipient_activation = service.sharing.RecipientActivationAPI(self._api_client)
285
- self._recipients = service.sharing.RecipientsAPI(self._api_client)
286
- self._redash_config = service.sql.RedashConfigAPI(self._api_client)
287
- self._registered_models = service.catalog.RegisteredModelsAPI(self._api_client)
288
- self._repos = service.workspace.ReposAPI(self._api_client)
289
- self._resource_quotas = service.catalog.ResourceQuotasAPI(self._api_client)
290
- self._schemas = service.catalog.SchemasAPI(self._api_client)
291
- self._secrets = service.workspace.SecretsAPI(self._api_client)
292
- self._service_principals = service.iam.ServicePrincipalsAPI(self._api_client)
295
+ self._provider_providers = pkg_marketplace.ProviderProvidersAPI(self._api_client)
296
+ self._providers = pkg_sharing.ProvidersAPI(self._api_client)
297
+ self._quality_monitors = pkg_catalog.QualityMonitorsAPI(self._api_client)
298
+ self._queries = pkg_sql.QueriesAPI(self._api_client)
299
+ self._queries_legacy = pkg_sql.QueriesLegacyAPI(self._api_client)
300
+ self._query_execution = pkg_dashboards.QueryExecutionAPI(self._api_client)
301
+ self._query_history = pkg_sql.QueryHistoryAPI(self._api_client)
302
+ self._query_visualizations = pkg_sql.QueryVisualizationsAPI(self._api_client)
303
+ self._query_visualizations_legacy = pkg_sql.QueryVisualizationsLegacyAPI(self._api_client)
304
+ self._recipient_activation = pkg_sharing.RecipientActivationAPI(self._api_client)
305
+ self._recipient_federation_policies = pkg_sharing.RecipientFederationPoliciesAPI(self._api_client)
306
+ self._recipients = pkg_sharing.RecipientsAPI(self._api_client)
307
+ self._redash_config = pkg_sql.RedashConfigAPI(self._api_client)
308
+ self._registered_models = pkg_catalog.RegisteredModelsAPI(self._api_client)
309
+ self._repos = pkg_workspace.ReposAPI(self._api_client)
310
+ self._resource_quotas = pkg_catalog.ResourceQuotasAPI(self._api_client)
311
+ self._schemas = pkg_catalog.SchemasAPI(self._api_client)
312
+ self._secrets = pkg_workspace.SecretsAPI(self._api_client)
313
+ self._service_principals = pkg_iam.ServicePrincipalsAPI(self._api_client)
293
314
  self._serving_endpoints = serving_endpoints
294
315
  serving_endpoints_data_plane_token_source = DataPlaneTokenSource(
295
316
  self._config.host, self._config.oauth_token, self._config.disable_async_token_refresh
296
317
  )
297
- self._serving_endpoints_data_plane = service.serving.ServingEndpointsDataPlaneAPI(
318
+ self._serving_endpoints_data_plane = pkg_serving.ServingEndpointsDataPlaneAPI(
298
319
  self._api_client, serving_endpoints, serving_endpoints_data_plane_token_source
299
320
  )
300
- self._settings = service.settings.SettingsAPI(self._api_client)
301
- self._shares = service.sharing.SharesAPI(self._api_client)
302
- self._statement_execution = service.sql.StatementExecutionAPI(self._api_client)
303
- self._storage_credentials = service.catalog.StorageCredentialsAPI(self._api_client)
304
- self._system_schemas = service.catalog.SystemSchemasAPI(self._api_client)
305
- self._table_constraints = service.catalog.TableConstraintsAPI(self._api_client)
306
- self._tables = service.catalog.TablesAPI(self._api_client)
307
- self._temporary_table_credentials = service.catalog.TemporaryTableCredentialsAPI(self._api_client)
308
- self._token_management = service.settings.TokenManagementAPI(self._api_client)
309
- self._tokens = service.settings.TokensAPI(self._api_client)
310
- self._users = service.iam.UsersAPI(self._api_client)
311
- self._vector_search_endpoints = service.vectorsearch.VectorSearchEndpointsAPI(self._api_client)
312
- self._vector_search_indexes = service.vectorsearch.VectorSearchIndexesAPI(self._api_client)
313
- self._volumes = service.catalog.VolumesAPI(self._api_client)
314
- self._warehouses = service.sql.WarehousesAPI(self._api_client)
321
+ self._settings = pkg_settings.SettingsAPI(self._api_client)
322
+ self._shares = pkg_sharing.SharesAPI(self._api_client)
323
+ self._statement_execution = pkg_sql.StatementExecutionAPI(self._api_client)
324
+ self._storage_credentials = pkg_catalog.StorageCredentialsAPI(self._api_client)
325
+ self._system_schemas = pkg_catalog.SystemSchemasAPI(self._api_client)
326
+ self._table_constraints = pkg_catalog.TableConstraintsAPI(self._api_client)
327
+ self._tables = pkg_catalog.TablesAPI(self._api_client)
328
+ self._temporary_table_credentials = pkg_catalog.TemporaryTableCredentialsAPI(self._api_client)
329
+ self._token_management = pkg_settings.TokenManagementAPI(self._api_client)
330
+ self._tokens = pkg_settings.TokensAPI(self._api_client)
331
+ self._users = pkg_iam.UsersAPI(self._api_client)
332
+ self._vector_search_endpoints = pkg_vectorsearch.VectorSearchEndpointsAPI(self._api_client)
333
+ self._vector_search_indexes = pkg_vectorsearch.VectorSearchIndexesAPI(self._api_client)
334
+ self._volumes = pkg_catalog.VolumesAPI(self._api_client)
335
+ self._warehouses = pkg_sql.WarehousesAPI(self._api_client)
315
336
  self._workspace = WorkspaceExt(self._api_client)
316
- self._workspace_bindings = service.catalog.WorkspaceBindingsAPI(self._api_client)
317
- self._workspace_conf = service.settings.WorkspaceConfAPI(self._api_client)
318
- self._forecasting = service.ml.ForecastingAPI(self._api_client)
337
+ self._workspace_bindings = pkg_catalog.WorkspaceBindingsAPI(self._api_client)
338
+ self._workspace_conf = pkg_settings.WorkspaceConfAPI(self._api_client)
339
+ self._forecasting = pkg_ml.ForecastingAPI(self._api_client)
319
340
 
320
341
  @property
321
342
  def config(self) -> client.Config:
@@ -330,62 +351,62 @@ class WorkspaceClient:
330
351
  return self._dbutils
331
352
 
332
353
  @property
333
- def access_control(self) -> service.iam.AccessControlAPI:
354
+ def access_control(self) -> pkg_iam.AccessControlAPI:
334
355
  """Rule based Access Control for Databricks Resources."""
335
356
  return self._access_control
336
357
 
337
358
  @property
338
- def account_access_control_proxy(self) -> service.iam.AccountAccessControlProxyAPI:
359
+ def account_access_control_proxy(self) -> pkg_iam.AccountAccessControlProxyAPI:
339
360
  """These APIs manage access rules on resources in an account."""
340
361
  return self._account_access_control_proxy
341
362
 
342
363
  @property
343
- def alerts(self) -> service.sql.AlertsAPI:
364
+ def alerts(self) -> pkg_sql.AlertsAPI:
344
365
  """The alerts API can be used to perform CRUD operations on alerts."""
345
366
  return self._alerts
346
367
 
347
368
  @property
348
- def alerts_legacy(self) -> service.sql.AlertsLegacyAPI:
369
+ def alerts_legacy(self) -> pkg_sql.AlertsLegacyAPI:
349
370
  """The alerts API can be used to perform CRUD operations on alerts."""
350
371
  return self._alerts_legacy
351
372
 
352
373
  @property
353
- def alerts_v2(self) -> service.sql.AlertsV2API:
374
+ def alerts_v2(self) -> pkg_sql.AlertsV2API:
354
375
  """TODO: Add description."""
355
376
  return self._alerts_v2
356
377
 
357
378
  @property
358
- def apps(self) -> service.apps.AppsAPI:
379
+ def apps(self) -> pkg_apps.AppsAPI:
359
380
  """Apps run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on."""
360
381
  return self._apps
361
382
 
362
383
  @property
363
- def artifact_allowlists(self) -> service.catalog.ArtifactAllowlistsAPI:
384
+ def artifact_allowlists(self) -> pkg_catalog.ArtifactAllowlistsAPI:
364
385
  """In Databricks Runtime 13.3 and above, you can add libraries and init scripts to the `allowlist` in UC so that users can leverage these artifacts on compute configured with shared access mode."""
365
386
  return self._artifact_allowlists
366
387
 
367
388
  @property
368
- def catalogs(self) -> service.catalog.CatalogsAPI:
389
+ def catalogs(self) -> pkg_catalog.CatalogsAPI:
369
390
  """A catalog is the first layer of Unity Catalog’s three-level namespace."""
370
391
  return self._catalogs
371
392
 
372
393
  @property
373
- def clean_room_assets(self) -> service.cleanrooms.CleanRoomAssetsAPI:
394
+ def clean_room_assets(self) -> pkg_cleanrooms.CleanRoomAssetsAPI:
374
395
  """Clean room assets are data and code objects — Tables, volumes, and notebooks that are shared with the clean room."""
375
396
  return self._clean_room_assets
376
397
 
377
398
  @property
378
- def clean_room_task_runs(self) -> service.cleanrooms.CleanRoomTaskRunsAPI:
399
+ def clean_room_task_runs(self) -> pkg_cleanrooms.CleanRoomTaskRunsAPI:
379
400
  """Clean room task runs are the executions of notebooks in a clean room."""
380
401
  return self._clean_room_task_runs
381
402
 
382
403
  @property
383
- def clean_rooms(self) -> service.cleanrooms.CleanRoomsAPI:
404
+ def clean_rooms(self) -> pkg_cleanrooms.CleanRoomsAPI:
384
405
  """A clean room uses Delta Sharing and serverless compute to provide a secure and privacy-protecting environment where multiple parties can work together on sensitive enterprise data without direct access to each other’s data."""
385
406
  return self._clean_rooms
386
407
 
387
408
  @property
388
- def cluster_policies(self) -> service.compute.ClusterPoliciesAPI:
409
+ def cluster_policies(self) -> pkg_compute.ClusterPoliciesAPI:
389
410
  """You can use cluster policies to control users' ability to configure clusters based on a set of rules."""
390
411
  return self._cluster_policies
391
412
 
@@ -395,137 +416,142 @@ class WorkspaceClient:
395
416
  return self._clusters
396
417
 
397
418
  @property
398
- def command_execution(self) -> service.compute.CommandExecutionAPI:
419
+ def command_execution(self) -> pkg_compute.CommandExecutionAPI:
399
420
  """This API allows execution of Python, Scala, SQL, or R commands on running Databricks Clusters."""
400
421
  return self._command_execution
401
422
 
402
423
  @property
403
- def connections(self) -> service.catalog.ConnectionsAPI:
424
+ def connections(self) -> pkg_catalog.ConnectionsAPI:
404
425
  """Connections allow for creating a connection to an external data source."""
405
426
  return self._connections
406
427
 
407
428
  @property
408
- def consumer_fulfillments(self) -> service.marketplace.ConsumerFulfillmentsAPI:
429
+ def consumer_fulfillments(self) -> pkg_marketplace.ConsumerFulfillmentsAPI:
409
430
  """Fulfillments are entities that allow consumers to preview installations."""
410
431
  return self._consumer_fulfillments
411
432
 
412
433
  @property
413
- def consumer_installations(self) -> service.marketplace.ConsumerInstallationsAPI:
434
+ def consumer_installations(self) -> pkg_marketplace.ConsumerInstallationsAPI:
414
435
  """Installations are entities that allow consumers to interact with Databricks Marketplace listings."""
415
436
  return self._consumer_installations
416
437
 
417
438
  @property
418
- def consumer_listings(self) -> service.marketplace.ConsumerListingsAPI:
439
+ def consumer_listings(self) -> pkg_marketplace.ConsumerListingsAPI:
419
440
  """Listings are the core entities in the Marketplace."""
420
441
  return self._consumer_listings
421
442
 
422
443
  @property
423
- def consumer_personalization_requests(self) -> service.marketplace.ConsumerPersonalizationRequestsAPI:
444
+ def consumer_personalization_requests(self) -> pkg_marketplace.ConsumerPersonalizationRequestsAPI:
424
445
  """Personalization Requests allow customers to interact with the individualized Marketplace listing flow."""
425
446
  return self._consumer_personalization_requests
426
447
 
427
448
  @property
428
- def consumer_providers(self) -> service.marketplace.ConsumerProvidersAPI:
449
+ def consumer_providers(self) -> pkg_marketplace.ConsumerProvidersAPI:
429
450
  """Providers are the entities that publish listings to the Marketplace."""
430
451
  return self._consumer_providers
431
452
 
432
453
  @property
433
- def credentials(self) -> service.catalog.CredentialsAPI:
454
+ def credentials(self) -> pkg_catalog.CredentialsAPI:
434
455
  """A credential represents an authentication and authorization mechanism for accessing services on your cloud tenant."""
435
456
  return self._credentials
436
457
 
437
458
  @property
438
- def credentials_manager(self) -> service.settings.CredentialsManagerAPI:
459
+ def credentials_manager(self) -> pkg_settings.CredentialsManagerAPI:
439
460
  """Credentials manager interacts with with Identity Providers to to perform token exchanges using stored credentials and refresh tokens."""
440
461
  return self._credentials_manager
441
462
 
442
463
  @property
443
- def current_user(self) -> service.iam.CurrentUserAPI:
464
+ def current_user(self) -> pkg_iam.CurrentUserAPI:
444
465
  """This API allows retrieving information about currently authenticated user or service principal."""
445
466
  return self._current_user
446
467
 
447
468
  @property
448
- def dashboard_widgets(self) -> service.sql.DashboardWidgetsAPI:
469
+ def dashboard_widgets(self) -> pkg_sql.DashboardWidgetsAPI:
449
470
  """This is an evolving API that facilitates the addition and removal of widgets from existing dashboards within the Databricks Workspace."""
450
471
  return self._dashboard_widgets
451
472
 
452
473
  @property
453
- def dashboards(self) -> service.sql.DashboardsAPI:
474
+ def dashboards(self) -> pkg_sql.DashboardsAPI:
454
475
  """In general, there is little need to modify dashboards using the API."""
455
476
  return self._dashboards
456
477
 
457
478
  @property
458
- def data_sources(self) -> service.sql.DataSourcesAPI:
479
+ def data_sources(self) -> pkg_sql.DataSourcesAPI:
459
480
  """This API is provided to assist you in making new query objects."""
460
481
  return self._data_sources
461
482
 
483
+ @property
484
+ def database_instances(self) -> pkg_catalog.DatabaseInstancesAPI:
485
+ """Database Instances provide access to a database via REST API or direct SQL."""
486
+ return self._database_instances
487
+
462
488
  @property
463
489
  def dbfs(self) -> DbfsExt:
464
490
  """DBFS API makes it simple to interact with various data sources without having to include a users credentials every time to read a file."""
465
491
  return self._dbfs
466
492
 
467
493
  @property
468
- def dbsql_permissions(self) -> service.sql.DbsqlPermissionsAPI:
494
+ def dbsql_permissions(self) -> pkg_sql.DbsqlPermissionsAPI:
469
495
  """The SQL Permissions API is similar to the endpoints of the :method:permissions/set."""
470
496
  return self._dbsql_permissions
471
497
 
472
498
  @property
473
- def experiments(self) -> service.ml.ExperimentsAPI:
499
+ def experiments(self) -> pkg_ml.ExperimentsAPI:
474
500
  """Experiments are the primary unit of organization in MLflow; all MLflow runs belong to an experiment."""
475
501
  return self._experiments
476
502
 
477
503
  @property
478
- def external_locations(self) -> service.catalog.ExternalLocationsAPI:
504
+ def external_locations(self) -> pkg_catalog.ExternalLocationsAPI:
479
505
  """An external location is an object that combines a cloud storage path with a storage credential that authorizes access to the cloud storage path."""
480
506
  return self._external_locations
481
507
 
482
508
  @property
483
- def files(self) -> service.files.FilesAPI:
509
+ def files(self) -> pkg_files.FilesAPI:
484
510
  """The Files API is a standard HTTP API that allows you to read, write, list, and delete files and directories by referring to their URI."""
485
511
  return self._files
486
512
 
487
513
  @property
488
- def functions(self) -> service.catalog.FunctionsAPI:
514
+ def functions(self) -> pkg_catalog.FunctionsAPI:
489
515
  """Functions implement User-Defined Functions (UDFs) in Unity Catalog."""
490
516
  return self._functions
491
517
 
492
518
  @property
493
- def genie(self) -> service.dashboards.GenieAPI:
519
+ def genie(self) -> pkg_dashboards.GenieAPI:
494
520
  """Genie provides a no-code experience for business users, powered by AI/BI."""
495
521
  return self._genie
496
522
 
497
523
  @property
498
- def git_credentials(self) -> service.workspace.GitCredentialsAPI:
524
+ def git_credentials(self) -> pkg_workspace.GitCredentialsAPI:
499
525
  """Registers personal access token for Databricks to do operations on behalf of the user."""
500
526
  return self._git_credentials
501
527
 
502
528
  @property
503
- def global_init_scripts(self) -> service.compute.GlobalInitScriptsAPI:
529
+ def global_init_scripts(self) -> pkg_compute.GlobalInitScriptsAPI:
504
530
  """The Global Init Scripts API enables Workspace administrators to configure global initialization scripts for their workspace."""
505
531
  return self._global_init_scripts
506
532
 
507
533
  @property
508
- def grants(self) -> service.catalog.GrantsAPI:
534
+ def grants(self) -> pkg_catalog.GrantsAPI:
509
535
  """In Unity Catalog, data is secure by default."""
510
536
  return self._grants
511
537
 
512
538
  @property
513
- def groups(self) -> service.iam.GroupsAPI:
539
+ def groups(self) -> pkg_iam.GroupsAPI:
514
540
  """Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects."""
515
541
  return self._groups
516
542
 
517
543
  @property
518
- def instance_pools(self) -> service.compute.InstancePoolsAPI:
544
+ def instance_pools(self) -> pkg_compute.InstancePoolsAPI:
519
545
  """Instance Pools API are used to create, edit, delete and list instance pools by using ready-to-use cloud instances which reduces a cluster start and auto-scaling times."""
520
546
  return self._instance_pools
521
547
 
522
548
  @property
523
- def instance_profiles(self) -> service.compute.InstanceProfilesAPI:
549
+ def instance_profiles(self) -> pkg_compute.InstanceProfilesAPI:
524
550
  """The Instance Profiles API allows admins to add, list, and remove instance profiles that users can launch clusters with."""
525
551
  return self._instance_profiles
526
552
 
527
553
  @property
528
- def ip_access_lists(self) -> service.settings.IpAccessListsAPI:
554
+ def ip_access_lists(self) -> pkg_settings.IpAccessListsAPI:
529
555
  """IP Access List enables admins to configure IP access lists."""
530
556
  return self._ip_access_lists
531
557
 
@@ -535,192 +561,197 @@ class WorkspaceClient:
535
561
  return self._jobs
536
562
 
537
563
  @property
538
- def lakeview(self) -> service.dashboards.LakeviewAPI:
564
+ def lakeview(self) -> pkg_dashboards.LakeviewAPI:
539
565
  """These APIs provide specific management operations for Lakeview dashboards."""
540
566
  return self._lakeview
541
567
 
542
568
  @property
543
- def lakeview_embedded(self) -> service.dashboards.LakeviewEmbeddedAPI:
569
+ def lakeview_embedded(self) -> pkg_dashboards.LakeviewEmbeddedAPI:
544
570
  """Token-based Lakeview APIs for embedding dashboards in external applications."""
545
571
  return self._lakeview_embedded
546
572
 
547
573
  @property
548
- def libraries(self) -> service.compute.LibrariesAPI:
574
+ def libraries(self) -> pkg_compute.LibrariesAPI:
549
575
  """The Libraries API allows you to install and uninstall libraries and get the status of libraries on a cluster."""
550
576
  return self._libraries
551
577
 
552
578
  @property
553
- def metastores(self) -> service.catalog.MetastoresAPI:
579
+ def metastores(self) -> pkg_catalog.MetastoresAPI:
554
580
  """A metastore is the top-level container of objects in Unity Catalog."""
555
581
  return self._metastores
556
582
 
557
583
  @property
558
- def model_registry(self) -> service.ml.ModelRegistryAPI:
584
+ def model_registry(self) -> pkg_ml.ModelRegistryAPI:
559
585
  """Note: This API reference documents APIs for the Workspace Model Registry."""
560
586
  return self._model_registry
561
587
 
562
588
  @property
563
- def model_versions(self) -> service.catalog.ModelVersionsAPI:
589
+ def model_versions(self) -> pkg_catalog.ModelVersionsAPI:
564
590
  """Databricks provides a hosted version of MLflow Model Registry in Unity Catalog."""
565
591
  return self._model_versions
566
592
 
567
593
  @property
568
- def notification_destinations(self) -> service.settings.NotificationDestinationsAPI:
594
+ def notification_destinations(self) -> pkg_settings.NotificationDestinationsAPI:
569
595
  """The notification destinations API lets you programmatically manage a workspace's notification destinations."""
570
596
  return self._notification_destinations
571
597
 
572
598
  @property
573
- def online_tables(self) -> service.catalog.OnlineTablesAPI:
599
+ def online_tables(self) -> pkg_catalog.OnlineTablesAPI:
574
600
  """Online tables provide lower latency and higher QPS access to data from Delta tables."""
575
601
  return self._online_tables
576
602
 
577
603
  @property
578
- def permission_migration(self) -> service.iam.PermissionMigrationAPI:
604
+ def permission_migration(self) -> pkg_iam.PermissionMigrationAPI:
579
605
  """APIs for migrating acl permissions, used only by the ucx tool: https://github.com/databrickslabs/ucx."""
580
606
  return self._permission_migration
581
607
 
582
608
  @property
583
- def permissions(self) -> service.iam.PermissionsAPI:
609
+ def permissions(self) -> pkg_iam.PermissionsAPI:
584
610
  """Permissions API are used to create read, write, edit, update and manage access for various users on different objects and endpoints."""
585
611
  return self._permissions
586
612
 
587
613
  @property
588
- def pipelines(self) -> service.pipelines.PipelinesAPI:
614
+ def pipelines(self) -> pkg_pipelines.PipelinesAPI:
589
615
  """The Delta Live Tables API allows you to create, edit, delete, start, and view details about pipelines."""
590
616
  return self._pipelines
591
617
 
592
618
  @property
593
- def policy_compliance_for_clusters(self) -> service.compute.PolicyComplianceForClustersAPI:
619
+ def policy_compliance_for_clusters(self) -> pkg_compute.PolicyComplianceForClustersAPI:
594
620
  """The policy compliance APIs allow you to view and manage the policy compliance status of clusters in your workspace."""
595
621
  return self._policy_compliance_for_clusters
596
622
 
597
623
  @property
598
- def policy_compliance_for_jobs(self) -> service.jobs.PolicyComplianceForJobsAPI:
624
+ def policy_compliance_for_jobs(self) -> pkg_jobs.PolicyComplianceForJobsAPI:
599
625
  """The compliance APIs allow you to view and manage the policy compliance status of jobs in your workspace."""
600
626
  return self._policy_compliance_for_jobs
601
627
 
602
628
  @property
603
- def policy_families(self) -> service.compute.PolicyFamiliesAPI:
629
+ def policy_families(self) -> pkg_compute.PolicyFamiliesAPI:
604
630
  """View available policy families."""
605
631
  return self._policy_families
606
632
 
607
633
  @property
608
- def provider_exchange_filters(self) -> service.marketplace.ProviderExchangeFiltersAPI:
634
+ def provider_exchange_filters(self) -> pkg_marketplace.ProviderExchangeFiltersAPI:
609
635
  """Marketplace exchanges filters curate which groups can access an exchange."""
610
636
  return self._provider_exchange_filters
611
637
 
612
638
  @property
613
- def provider_exchanges(self) -> service.marketplace.ProviderExchangesAPI:
639
+ def provider_exchanges(self) -> pkg_marketplace.ProviderExchangesAPI:
614
640
  """Marketplace exchanges allow providers to share their listings with a curated set of customers."""
615
641
  return self._provider_exchanges
616
642
 
617
643
  @property
618
- def provider_files(self) -> service.marketplace.ProviderFilesAPI:
644
+ def provider_files(self) -> pkg_marketplace.ProviderFilesAPI:
619
645
  """Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider icons."""
620
646
  return self._provider_files
621
647
 
622
648
  @property
623
- def provider_listings(self) -> service.marketplace.ProviderListingsAPI:
649
+ def provider_listings(self) -> pkg_marketplace.ProviderListingsAPI:
624
650
  """Listings are the core entities in the Marketplace."""
625
651
  return self._provider_listings
626
652
 
627
653
  @property
628
- def provider_personalization_requests(self) -> service.marketplace.ProviderPersonalizationRequestsAPI:
654
+ def provider_personalization_requests(self) -> pkg_marketplace.ProviderPersonalizationRequestsAPI:
629
655
  """Personalization requests are an alternate to instantly available listings."""
630
656
  return self._provider_personalization_requests
631
657
 
632
658
  @property
633
- def provider_provider_analytics_dashboards(self) -> service.marketplace.ProviderProviderAnalyticsDashboardsAPI:
659
+ def provider_provider_analytics_dashboards(self) -> pkg_marketplace.ProviderProviderAnalyticsDashboardsAPI:
634
660
  """Manage templated analytics solution for providers."""
635
661
  return self._provider_provider_analytics_dashboards
636
662
 
637
663
  @property
638
- def provider_providers(self) -> service.marketplace.ProviderProvidersAPI:
664
+ def provider_providers(self) -> pkg_marketplace.ProviderProvidersAPI:
639
665
  """Providers are entities that manage assets in Marketplace."""
640
666
  return self._provider_providers
641
667
 
642
668
  @property
643
- def providers(self) -> service.sharing.ProvidersAPI:
669
+ def providers(self) -> pkg_sharing.ProvidersAPI:
644
670
  """A data provider is an object representing the organization in the real world who shares the data."""
645
671
  return self._providers
646
672
 
647
673
  @property
648
- def quality_monitors(self) -> service.catalog.QualityMonitorsAPI:
674
+ def quality_monitors(self) -> pkg_catalog.QualityMonitorsAPI:
649
675
  """A monitor computes and monitors data or model quality metrics for a table over time."""
650
676
  return self._quality_monitors
651
677
 
652
678
  @property
653
- def queries(self) -> service.sql.QueriesAPI:
679
+ def queries(self) -> pkg_sql.QueriesAPI:
654
680
  """The queries API can be used to perform CRUD operations on queries."""
655
681
  return self._queries
656
682
 
657
683
  @property
658
- def queries_legacy(self) -> service.sql.QueriesLegacyAPI:
684
+ def queries_legacy(self) -> pkg_sql.QueriesLegacyAPI:
659
685
  """These endpoints are used for CRUD operations on query definitions."""
660
686
  return self._queries_legacy
661
687
 
662
688
  @property
663
- def query_execution(self) -> service.dashboards.QueryExecutionAPI:
689
+ def query_execution(self) -> pkg_dashboards.QueryExecutionAPI:
664
690
  """Query execution APIs for AI / BI Dashboards."""
665
691
  return self._query_execution
666
692
 
667
693
  @property
668
- def query_history(self) -> service.sql.QueryHistoryAPI:
694
+ def query_history(self) -> pkg_sql.QueryHistoryAPI:
669
695
  """A service responsible for storing and retrieving the list of queries run against SQL endpoints and serverless compute."""
670
696
  return self._query_history
671
697
 
672
698
  @property
673
- def query_visualizations(self) -> service.sql.QueryVisualizationsAPI:
699
+ def query_visualizations(self) -> pkg_sql.QueryVisualizationsAPI:
674
700
  """This is an evolving API that facilitates the addition and removal of visualizations from existing queries in the Databricks Workspace."""
675
701
  return self._query_visualizations
676
702
 
677
703
  @property
678
- def query_visualizations_legacy(self) -> service.sql.QueryVisualizationsLegacyAPI:
704
+ def query_visualizations_legacy(self) -> pkg_sql.QueryVisualizationsLegacyAPI:
679
705
  """This is an evolving API that facilitates the addition and removal of vizualisations from existing queries within the Databricks Workspace."""
680
706
  return self._query_visualizations_legacy
681
707
 
682
708
  @property
683
- def recipient_activation(self) -> service.sharing.RecipientActivationAPI:
709
+ def recipient_activation(self) -> pkg_sharing.RecipientActivationAPI:
684
710
  """The Recipient Activation API is only applicable in the open sharing model where the recipient object has the authentication type of `TOKEN`."""
685
711
  return self._recipient_activation
686
712
 
687
713
  @property
688
- def recipients(self) -> service.sharing.RecipientsAPI:
714
+ def recipient_federation_policies(self) -> pkg_sharing.RecipientFederationPoliciesAPI:
715
+ """The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of `OIDC_RECIPIENT`, enabling data sharing from Databricks to non-Databricks recipients."""
716
+ return self._recipient_federation_policies
717
+
718
+ @property
719
+ def recipients(self) -> pkg_sharing.RecipientsAPI:
689
720
  """A recipient is an object you create using :method:recipients/create to represent an organization which you want to allow access shares."""
690
721
  return self._recipients
691
722
 
692
723
  @property
693
- def redash_config(self) -> service.sql.RedashConfigAPI:
724
+ def redash_config(self) -> pkg_sql.RedashConfigAPI:
694
725
  """Redash V2 service for workspace configurations (internal)."""
695
726
  return self._redash_config
696
727
 
697
728
  @property
698
- def registered_models(self) -> service.catalog.RegisteredModelsAPI:
729
+ def registered_models(self) -> pkg_catalog.RegisteredModelsAPI:
699
730
  """Databricks provides a hosted version of MLflow Model Registry in Unity Catalog."""
700
731
  return self._registered_models
701
732
 
702
733
  @property
703
- def repos(self) -> service.workspace.ReposAPI:
734
+ def repos(self) -> pkg_workspace.ReposAPI:
704
735
  """The Repos API allows users to manage their git repos."""
705
736
  return self._repos
706
737
 
707
738
  @property
708
- def resource_quotas(self) -> service.catalog.ResourceQuotasAPI:
739
+ def resource_quotas(self) -> pkg_catalog.ResourceQuotasAPI:
709
740
  """Unity Catalog enforces resource quotas on all securable objects, which limits the number of resources that can be created."""
710
741
  return self._resource_quotas
711
742
 
712
743
  @property
713
- def schemas(self) -> service.catalog.SchemasAPI:
744
+ def schemas(self) -> pkg_catalog.SchemasAPI:
714
745
  """A schema (also called a database) is the second layer of Unity Catalog’s three-level namespace."""
715
746
  return self._schemas
716
747
 
717
748
  @property
718
- def secrets(self) -> service.workspace.SecretsAPI:
749
+ def secrets(self) -> pkg_workspace.SecretsAPI:
719
750
  """The Secrets API allows you to manage secrets, secret scopes, and access permissions."""
720
751
  return self._secrets
721
752
 
722
753
  @property
723
- def service_principals(self) -> service.iam.ServicePrincipalsAPI:
754
+ def service_principals(self) -> pkg_iam.ServicePrincipalsAPI:
724
755
  """Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms."""
725
756
  return self._service_principals
726
757
 
@@ -730,82 +761,82 @@ class WorkspaceClient:
730
761
  return self._serving_endpoints
731
762
 
732
763
  @property
733
- def serving_endpoints_data_plane(self) -> service.serving.ServingEndpointsDataPlaneAPI:
764
+ def serving_endpoints_data_plane(self) -> pkg_serving.ServingEndpointsDataPlaneAPI:
734
765
  """Serving endpoints DataPlane provides a set of operations to interact with data plane endpoints for Serving endpoints service."""
735
766
  return self._serving_endpoints_data_plane
736
767
 
737
768
  @property
738
- def settings(self) -> service.settings.SettingsAPI:
769
+ def settings(self) -> pkg_settings.SettingsAPI:
739
770
  """Workspace Settings API allows users to manage settings at the workspace level."""
740
771
  return self._settings
741
772
 
742
773
  @property
743
- def shares(self) -> service.sharing.SharesAPI:
774
+ def shares(self) -> pkg_sharing.SharesAPI:
744
775
  """A share is a container instantiated with :method:shares/create."""
745
776
  return self._shares
746
777
 
747
778
  @property
748
- def statement_execution(self) -> service.sql.StatementExecutionAPI:
779
+ def statement_execution(self) -> pkg_sql.StatementExecutionAPI:
749
780
  """The Databricks SQL Statement Execution API can be used to execute SQL statements on a SQL warehouse and fetch the result."""
750
781
  return self._statement_execution
751
782
 
752
783
  @property
753
- def storage_credentials(self) -> service.catalog.StorageCredentialsAPI:
784
+ def storage_credentials(self) -> pkg_catalog.StorageCredentialsAPI:
754
785
  """A storage credential represents an authentication and authorization mechanism for accessing data stored on your cloud tenant."""
755
786
  return self._storage_credentials
756
787
 
757
788
  @property
758
- def system_schemas(self) -> service.catalog.SystemSchemasAPI:
789
+ def system_schemas(self) -> pkg_catalog.SystemSchemasAPI:
759
790
  """A system schema is a schema that lives within the system catalog."""
760
791
  return self._system_schemas
761
792
 
762
793
  @property
763
- def table_constraints(self) -> service.catalog.TableConstraintsAPI:
794
+ def table_constraints(self) -> pkg_catalog.TableConstraintsAPI:
764
795
  """Primary key and foreign key constraints encode relationships between fields in tables."""
765
796
  return self._table_constraints
766
797
 
767
798
  @property
768
- def tables(self) -> service.catalog.TablesAPI:
799
+ def tables(self) -> pkg_catalog.TablesAPI:
769
800
  """A table resides in the third layer of Unity Catalog’s three-level namespace."""
770
801
  return self._tables
771
802
 
772
803
  @property
773
- def temporary_table_credentials(self) -> service.catalog.TemporaryTableCredentialsAPI:
804
+ def temporary_table_credentials(self) -> pkg_catalog.TemporaryTableCredentialsAPI:
774
805
  """Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locationswhere table data is stored in Databricks."""
775
806
  return self._temporary_table_credentials
776
807
 
777
808
  @property
778
- def token_management(self) -> service.settings.TokenManagementAPI:
809
+ def token_management(self) -> pkg_settings.TokenManagementAPI:
779
810
  """Enables administrators to get all tokens and delete tokens for other users."""
780
811
  return self._token_management
781
812
 
782
813
  @property
783
- def tokens(self) -> service.settings.TokensAPI:
814
+ def tokens(self) -> pkg_settings.TokensAPI:
784
815
  """The Token API allows you to create, list, and revoke tokens that can be used to authenticate and access Databricks REST APIs."""
785
816
  return self._tokens
786
817
 
787
818
  @property
788
- def users(self) -> service.iam.UsersAPI:
819
+ def users(self) -> pkg_iam.UsersAPI:
789
820
  """User identities recognized by Databricks and represented by email addresses."""
790
821
  return self._users
791
822
 
792
823
  @property
793
- def vector_search_endpoints(self) -> service.vectorsearch.VectorSearchEndpointsAPI:
824
+ def vector_search_endpoints(self) -> pkg_vectorsearch.VectorSearchEndpointsAPI:
794
825
  """**Endpoint**: Represents the compute resources to host vector search indexes."""
795
826
  return self._vector_search_endpoints
796
827
 
797
828
  @property
798
- def vector_search_indexes(self) -> service.vectorsearch.VectorSearchIndexesAPI:
829
+ def vector_search_indexes(self) -> pkg_vectorsearch.VectorSearchIndexesAPI:
799
830
  """**Index**: An efficient representation of your embedding vectors that supports real-time and efficient approximate nearest neighbor (ANN) search queries."""
800
831
  return self._vector_search_indexes
801
832
 
802
833
  @property
803
- def volumes(self) -> service.catalog.VolumesAPI:
834
+ def volumes(self) -> pkg_catalog.VolumesAPI:
804
835
  """Volumes are a Unity Catalog (UC) capability for accessing, storing, governing, organizing and processing files."""
805
836
  return self._volumes
806
837
 
807
838
  @property
808
- def warehouses(self) -> service.sql.WarehousesAPI:
839
+ def warehouses(self) -> pkg_sql.WarehousesAPI:
809
840
  """A SQL warehouse is a compute resource that lets you run SQL commands on data objects within Databricks SQL."""
810
841
  return self._warehouses
811
842
 
@@ -815,17 +846,17 @@ class WorkspaceClient:
815
846
  return self._workspace
816
847
 
817
848
  @property
818
- def workspace_bindings(self) -> service.catalog.WorkspaceBindingsAPI:
849
+ def workspace_bindings(self) -> pkg_catalog.WorkspaceBindingsAPI:
819
850
  """A securable in Databricks can be configured as __OPEN__ or __ISOLATED__."""
820
851
  return self._workspace_bindings
821
852
 
822
853
  @property
823
- def workspace_conf(self) -> service.settings.WorkspaceConfAPI:
854
+ def workspace_conf(self) -> pkg_settings.WorkspaceConfAPI:
824
855
  """This API allows updating known workspace settings for advanced users."""
825
856
  return self._workspace_conf
826
857
 
827
858
  @property
828
- def forecasting(self) -> service.ml.ForecastingAPI:
859
+ def forecasting(self) -> pkg_ml.ForecastingAPI:
829
860
  """The Forecasting API allows you to create and get serverless forecasting experiments."""
830
861
  return self._forecasting
831
862
 
@@ -903,35 +934,37 @@ class AccountClient:
903
934
  )
904
935
  self._config = config.copy()
905
936
  self._api_client = client.ApiClient(self._config)
906
- self._access_control = service.iam.AccountAccessControlAPI(self._api_client)
907
- self._billable_usage = service.billing.BillableUsageAPI(self._api_client)
908
- self._budget_policy = service.billing.BudgetPolicyAPI(self._api_client)
909
- self._credentials = service.provisioning.CredentialsAPI(self._api_client)
910
- self._custom_app_integration = service.oauth2.CustomAppIntegrationAPI(self._api_client)
911
- self._encryption_keys = service.provisioning.EncryptionKeysAPI(self._api_client)
912
- self._federation_policy = service.oauth2.AccountFederationPolicyAPI(self._api_client)
913
- self._groups = service.iam.AccountGroupsAPI(self._api_client)
914
- self._ip_access_lists = service.settings.AccountIpAccessListsAPI(self._api_client)
915
- self._log_delivery = service.billing.LogDeliveryAPI(self._api_client)
916
- self._metastore_assignments = service.catalog.AccountMetastoreAssignmentsAPI(self._api_client)
917
- self._metastores = service.catalog.AccountMetastoresAPI(self._api_client)
918
- self._network_connectivity = service.settings.NetworkConnectivityAPI(self._api_client)
919
- self._networks = service.provisioning.NetworksAPI(self._api_client)
920
- self._o_auth_published_apps = service.oauth2.OAuthPublishedAppsAPI(self._api_client)
921
- self._private_access = service.provisioning.PrivateAccessAPI(self._api_client)
922
- self._published_app_integration = service.oauth2.PublishedAppIntegrationAPI(self._api_client)
923
- self._service_principal_federation_policy = service.oauth2.ServicePrincipalFederationPolicyAPI(self._api_client)
924
- self._service_principal_secrets = service.oauth2.ServicePrincipalSecretsAPI(self._api_client)
925
- self._service_principals = service.iam.AccountServicePrincipalsAPI(self._api_client)
926
- self._settings = service.settings.AccountSettingsAPI(self._api_client)
927
- self._storage = service.provisioning.StorageAPI(self._api_client)
928
- self._storage_credentials = service.catalog.AccountStorageCredentialsAPI(self._api_client)
929
- self._usage_dashboards = service.billing.UsageDashboardsAPI(self._api_client)
930
- self._users = service.iam.AccountUsersAPI(self._api_client)
931
- self._vpc_endpoints = service.provisioning.VpcEndpointsAPI(self._api_client)
932
- self._workspace_assignment = service.iam.WorkspaceAssignmentAPI(self._api_client)
933
- self._workspaces = service.provisioning.WorkspacesAPI(self._api_client)
934
- self._budgets = service.billing.BudgetsAPI(self._api_client)
937
+ self._access_control = pkg_iam.AccountAccessControlAPI(self._api_client)
938
+ self._billable_usage = pkg_billing.BillableUsageAPI(self._api_client)
939
+ self._budget_policy = pkg_billing.BudgetPolicyAPI(self._api_client)
940
+ self._credentials = pkg_provisioning.CredentialsAPI(self._api_client)
941
+ self._custom_app_integration = pkg_oauth2.CustomAppIntegrationAPI(self._api_client)
942
+ self._encryption_keys = pkg_provisioning.EncryptionKeysAPI(self._api_client)
943
+ self._federation_policy = pkg_oauth2.AccountFederationPolicyAPI(self._api_client)
944
+ self._groups = pkg_iam.AccountGroupsAPI(self._api_client)
945
+ self._ip_access_lists = pkg_settings.AccountIpAccessListsAPI(self._api_client)
946
+ self._log_delivery = pkg_billing.LogDeliveryAPI(self._api_client)
947
+ self._metastore_assignments = pkg_catalog.AccountMetastoreAssignmentsAPI(self._api_client)
948
+ self._metastores = pkg_catalog.AccountMetastoresAPI(self._api_client)
949
+ self._network_connectivity = pkg_settings.NetworkConnectivityAPI(self._api_client)
950
+ self._network_policies = pkg_settings.NetworkPoliciesAPI(self._api_client)
951
+ self._networks = pkg_provisioning.NetworksAPI(self._api_client)
952
+ self._o_auth_published_apps = pkg_oauth2.OAuthPublishedAppsAPI(self._api_client)
953
+ self._private_access = pkg_provisioning.PrivateAccessAPI(self._api_client)
954
+ self._published_app_integration = pkg_oauth2.PublishedAppIntegrationAPI(self._api_client)
955
+ self._service_principal_federation_policy = pkg_oauth2.ServicePrincipalFederationPolicyAPI(self._api_client)
956
+ self._service_principal_secrets = pkg_oauth2.ServicePrincipalSecretsAPI(self._api_client)
957
+ self._service_principals = pkg_iam.AccountServicePrincipalsAPI(self._api_client)
958
+ self._settings = pkg_settings.AccountSettingsAPI(self._api_client)
959
+ self._storage = pkg_provisioning.StorageAPI(self._api_client)
960
+ self._storage_credentials = pkg_catalog.AccountStorageCredentialsAPI(self._api_client)
961
+ self._usage_dashboards = pkg_billing.UsageDashboardsAPI(self._api_client)
962
+ self._users = pkg_iam.AccountUsersAPI(self._api_client)
963
+ self._vpc_endpoints = pkg_provisioning.VpcEndpointsAPI(self._api_client)
964
+ self._workspace_assignment = pkg_iam.WorkspaceAssignmentAPI(self._api_client)
965
+ self._workspace_network_configuration = pkg_settings.WorkspaceNetworkConfigurationAPI(self._api_client)
966
+ self._workspaces = pkg_provisioning.WorkspacesAPI(self._api_client)
967
+ self._budgets = pkg_billing.BudgetsAPI(self._api_client)
935
968
 
936
969
  @property
937
970
  def config(self) -> client.Config:
@@ -942,147 +975,157 @@ class AccountClient:
942
975
  return self._api_client
943
976
 
944
977
  @property
945
- def access_control(self) -> service.iam.AccountAccessControlAPI:
978
+ def access_control(self) -> pkg_iam.AccountAccessControlAPI:
946
979
  """These APIs manage access rules on resources in an account."""
947
980
  return self._access_control
948
981
 
949
982
  @property
950
- def billable_usage(self) -> service.billing.BillableUsageAPI:
983
+ def billable_usage(self) -> pkg_billing.BillableUsageAPI:
951
984
  """This API allows you to download billable usage logs for the specified account and date range."""
952
985
  return self._billable_usage
953
986
 
954
987
  @property
955
- def budget_policy(self) -> service.billing.BudgetPolicyAPI:
988
+ def budget_policy(self) -> pkg_billing.BudgetPolicyAPI:
956
989
  """A service serves REST API about Budget policies."""
957
990
  return self._budget_policy
958
991
 
959
992
  @property
960
- def credentials(self) -> service.provisioning.CredentialsAPI:
993
+ def credentials(self) -> pkg_provisioning.CredentialsAPI:
961
994
  """These APIs manage credential configurations for this workspace."""
962
995
  return self._credentials
963
996
 
964
997
  @property
965
- def custom_app_integration(self) -> service.oauth2.CustomAppIntegrationAPI:
998
+ def custom_app_integration(self) -> pkg_oauth2.CustomAppIntegrationAPI:
966
999
  """These APIs enable administrators to manage custom OAuth app integrations, which is required for adding/using Custom OAuth App Integration like Tableau Cloud for Databricks in AWS cloud."""
967
1000
  return self._custom_app_integration
968
1001
 
969
1002
  @property
970
- def encryption_keys(self) -> service.provisioning.EncryptionKeysAPI:
1003
+ def encryption_keys(self) -> pkg_provisioning.EncryptionKeysAPI:
971
1004
  """These APIs manage encryption key configurations for this workspace (optional)."""
972
1005
  return self._encryption_keys
973
1006
 
974
1007
  @property
975
- def federation_policy(self) -> service.oauth2.AccountFederationPolicyAPI:
1008
+ def federation_policy(self) -> pkg_oauth2.AccountFederationPolicyAPI:
976
1009
  """These APIs manage account federation policies."""
977
1010
  return self._federation_policy
978
1011
 
979
1012
  @property
980
- def groups(self) -> service.iam.AccountGroupsAPI:
1013
+ def groups(self) -> pkg_iam.AccountGroupsAPI:
981
1014
  """Groups simplify identity management, making it easier to assign access to Databricks account, data, and other securable objects."""
982
1015
  return self._groups
983
1016
 
984
1017
  @property
985
- def ip_access_lists(self) -> service.settings.AccountIpAccessListsAPI:
1018
+ def ip_access_lists(self) -> pkg_settings.AccountIpAccessListsAPI:
986
1019
  """The Accounts IP Access List API enables account admins to configure IP access lists for access to the account console."""
987
1020
  return self._ip_access_lists
988
1021
 
989
1022
  @property
990
- def log_delivery(self) -> service.billing.LogDeliveryAPI:
1023
+ def log_delivery(self) -> pkg_billing.LogDeliveryAPI:
991
1024
  """These APIs manage log delivery configurations for this account."""
992
1025
  return self._log_delivery
993
1026
 
994
1027
  @property
995
- def metastore_assignments(self) -> service.catalog.AccountMetastoreAssignmentsAPI:
1028
+ def metastore_assignments(self) -> pkg_catalog.AccountMetastoreAssignmentsAPI:
996
1029
  """These APIs manage metastore assignments to a workspace."""
997
1030
  return self._metastore_assignments
998
1031
 
999
1032
  @property
1000
- def metastores(self) -> service.catalog.AccountMetastoresAPI:
1033
+ def metastores(self) -> pkg_catalog.AccountMetastoresAPI:
1001
1034
  """These APIs manage Unity Catalog metastores for an account."""
1002
1035
  return self._metastores
1003
1036
 
1004
1037
  @property
1005
- def network_connectivity(self) -> service.settings.NetworkConnectivityAPI:
1038
+ def network_connectivity(self) -> pkg_settings.NetworkConnectivityAPI:
1006
1039
  """These APIs provide configurations for the network connectivity of your workspaces for serverless compute resources."""
1007
1040
  return self._network_connectivity
1008
1041
 
1009
1042
  @property
1010
- def networks(self) -> service.provisioning.NetworksAPI:
1043
+ def network_policies(self) -> pkg_settings.NetworkPoliciesAPI:
1044
+ """These APIs manage network policies for this account."""
1045
+ return self._network_policies
1046
+
1047
+ @property
1048
+ def networks(self) -> pkg_provisioning.NetworksAPI:
1011
1049
  """These APIs manage network configurations for customer-managed VPCs (optional)."""
1012
1050
  return self._networks
1013
1051
 
1014
1052
  @property
1015
- def o_auth_published_apps(self) -> service.oauth2.OAuthPublishedAppsAPI:
1053
+ def o_auth_published_apps(self) -> pkg_oauth2.OAuthPublishedAppsAPI:
1016
1054
  """These APIs enable administrators to view all the available published OAuth applications in Databricks."""
1017
1055
  return self._o_auth_published_apps
1018
1056
 
1019
1057
  @property
1020
- def private_access(self) -> service.provisioning.PrivateAccessAPI:
1058
+ def private_access(self) -> pkg_provisioning.PrivateAccessAPI:
1021
1059
  """These APIs manage private access settings for this account."""
1022
1060
  return self._private_access
1023
1061
 
1024
1062
  @property
1025
- def published_app_integration(self) -> service.oauth2.PublishedAppIntegrationAPI:
1063
+ def published_app_integration(self) -> pkg_oauth2.PublishedAppIntegrationAPI:
1026
1064
  """These APIs enable administrators to manage published OAuth app integrations, which is required for adding/using Published OAuth App Integration like Tableau Desktop for Databricks in AWS cloud."""
1027
1065
  return self._published_app_integration
1028
1066
 
1029
1067
  @property
1030
- def service_principal_federation_policy(self) -> service.oauth2.ServicePrincipalFederationPolicyAPI:
1068
+ def service_principal_federation_policy(self) -> pkg_oauth2.ServicePrincipalFederationPolicyAPI:
1031
1069
  """These APIs manage service principal federation policies."""
1032
1070
  return self._service_principal_federation_policy
1033
1071
 
1034
1072
  @property
1035
- def service_principal_secrets(self) -> service.oauth2.ServicePrincipalSecretsAPI:
1073
+ def service_principal_secrets(self) -> pkg_oauth2.ServicePrincipalSecretsAPI:
1036
1074
  """These APIs enable administrators to manage service principal secrets."""
1037
1075
  return self._service_principal_secrets
1038
1076
 
1039
1077
  @property
1040
- def service_principals(self) -> service.iam.AccountServicePrincipalsAPI:
1078
+ def service_principals(self) -> pkg_iam.AccountServicePrincipalsAPI:
1041
1079
  """Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms."""
1042
1080
  return self._service_principals
1043
1081
 
1044
1082
  @property
1045
- def settings(self) -> service.settings.AccountSettingsAPI:
1083
+ def settings(self) -> pkg_settings.AccountSettingsAPI:
1046
1084
  """Accounts Settings API allows users to manage settings at the account level."""
1047
1085
  return self._settings
1048
1086
 
1049
1087
  @property
1050
- def storage(self) -> service.provisioning.StorageAPI:
1088
+ def storage(self) -> pkg_provisioning.StorageAPI:
1051
1089
  """These APIs manage storage configurations for this workspace."""
1052
1090
  return self._storage
1053
1091
 
1054
1092
  @property
1055
- def storage_credentials(self) -> service.catalog.AccountStorageCredentialsAPI:
1093
+ def storage_credentials(self) -> pkg_catalog.AccountStorageCredentialsAPI:
1056
1094
  """These APIs manage storage credentials for a particular metastore."""
1057
1095
  return self._storage_credentials
1058
1096
 
1059
1097
  @property
1060
- def usage_dashboards(self) -> service.billing.UsageDashboardsAPI:
1098
+ def usage_dashboards(self) -> pkg_billing.UsageDashboardsAPI:
1061
1099
  """These APIs manage usage dashboards for this account."""
1062
1100
  return self._usage_dashboards
1063
1101
 
1064
1102
  @property
1065
- def users(self) -> service.iam.AccountUsersAPI:
1103
+ def users(self) -> pkg_iam.AccountUsersAPI:
1066
1104
  """User identities recognized by Databricks and represented by email addresses."""
1067
1105
  return self._users
1068
1106
 
1069
1107
  @property
1070
- def vpc_endpoints(self) -> service.provisioning.VpcEndpointsAPI:
1108
+ def vpc_endpoints(self) -> pkg_provisioning.VpcEndpointsAPI:
1071
1109
  """These APIs manage VPC endpoint configurations for this account."""
1072
1110
  return self._vpc_endpoints
1073
1111
 
1074
1112
  @property
1075
- def workspace_assignment(self) -> service.iam.WorkspaceAssignmentAPI:
1113
+ def workspace_assignment(self) -> pkg_iam.WorkspaceAssignmentAPI:
1076
1114
  """The Workspace Permission Assignment API allows you to manage workspace permissions for principals in your account."""
1077
1115
  return self._workspace_assignment
1078
1116
 
1079
1117
  @property
1080
- def workspaces(self) -> service.provisioning.WorkspacesAPI:
1118
+ def workspace_network_configuration(self) -> pkg_settings.WorkspaceNetworkConfigurationAPI:
1119
+ """These APIs allow configuration of network settings for Databricks workspaces."""
1120
+ return self._workspace_network_configuration
1121
+
1122
+ @property
1123
+ def workspaces(self) -> pkg_provisioning.WorkspacesAPI:
1081
1124
  """These APIs manage workspaces for this account."""
1082
1125
  return self._workspaces
1083
1126
 
1084
1127
  @property
1085
- def budgets(self) -> service.billing.BudgetsAPI:
1128
+ def budgets(self) -> pkg_billing.BudgetsAPI:
1086
1129
  """These APIs manage budget configurations for this account."""
1087
1130
  return self._budgets
1088
1131