databricks-sdk 0.70.0__py3-none-any.whl → 0.72.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 (36) hide show
  1. databricks/sdk/__init__.py +25 -25
  2. databricks/sdk/mixins/files.py +51 -15
  3. databricks/sdk/service/agentbricks.py +2 -0
  4. databricks/sdk/service/apps.py +10 -0
  5. databricks/sdk/service/billing.py +13 -3
  6. databricks/sdk/service/catalog.py +149 -46
  7. databricks/sdk/service/cleanrooms.py +11 -3
  8. databricks/sdk/service/compute.py +55 -0
  9. databricks/sdk/service/dashboards.py +11 -0
  10. databricks/sdk/service/database.py +12 -0
  11. databricks/sdk/service/dataquality.py +4 -0
  12. databricks/sdk/service/files.py +7 -72
  13. databricks/sdk/service/iam.py +26 -36
  14. databricks/sdk/service/iamv2.py +6 -0
  15. databricks/sdk/service/jobs.py +22 -122
  16. databricks/sdk/service/marketplace.py +18 -0
  17. databricks/sdk/service/ml.py +321 -17
  18. databricks/sdk/service/oauth2.py +10 -18
  19. databricks/sdk/service/pipelines.py +44 -13
  20. databricks/sdk/service/provisioning.py +9 -0
  21. databricks/sdk/service/qualitymonitorv2.py +2 -0
  22. databricks/sdk/service/serving.py +16 -21
  23. databricks/sdk/service/settings.py +43 -72
  24. databricks/sdk/service/settingsv2.py +2 -0
  25. databricks/sdk/service/sharing.py +23 -31
  26. databricks/sdk/service/sql.py +48 -24
  27. databricks/sdk/service/tags.py +2 -0
  28. databricks/sdk/service/vectorsearch.py +11 -1
  29. databricks/sdk/service/workspace.py +18 -91
  30. databricks/sdk/version.py +1 -1
  31. {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/METADATA +1 -1
  32. {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/RECORD +36 -36
  33. {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/WHEEL +0 -0
  34. {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/licenses/LICENSE +0 -0
  35. {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/licenses/NOTICE +0 -0
  36. {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/top_level.txt +0 -0
@@ -449,42 +449,6 @@ class BaseRun:
449
449
  )
450
450
 
451
451
 
452
- @dataclass
453
- class CancelAllRunsResponse:
454
- def as_dict(self) -> dict:
455
- """Serializes the CancelAllRunsResponse into a dictionary suitable for use as a JSON request body."""
456
- body = {}
457
- return body
458
-
459
- def as_shallow_dict(self) -> dict:
460
- """Serializes the CancelAllRunsResponse into a shallow dictionary of its immediate attributes."""
461
- body = {}
462
- return body
463
-
464
- @classmethod
465
- def from_dict(cls, d: Dict[str, Any]) -> CancelAllRunsResponse:
466
- """Deserializes the CancelAllRunsResponse from a dictionary."""
467
- return cls()
468
-
469
-
470
- @dataclass
471
- class CancelRunResponse:
472
- def as_dict(self) -> dict:
473
- """Serializes the CancelRunResponse into a dictionary suitable for use as a JSON request body."""
474
- body = {}
475
- return body
476
-
477
- def as_shallow_dict(self) -> dict:
478
- """Serializes the CancelRunResponse into a shallow dictionary of its immediate attributes."""
479
- body = {}
480
- return body
481
-
482
- @classmethod
483
- def from_dict(cls, d: Dict[str, Any]) -> CancelRunResponse:
484
- """Deserializes the CancelRunResponse from a dictionary."""
485
- return cls()
486
-
487
-
488
452
  class CleanRoomTaskRunLifeCycleState(Enum):
489
453
  """Copied from elastic-spark-common/api/messages/runs.proto. Using the original definition to
490
454
  remove coupling with jobs API definition"""
@@ -1515,42 +1479,6 @@ class DbtTask:
1515
1479
  )
1516
1480
 
1517
1481
 
1518
- @dataclass
1519
- class DeleteResponse:
1520
- def as_dict(self) -> dict:
1521
- """Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body."""
1522
- body = {}
1523
- return body
1524
-
1525
- def as_shallow_dict(self) -> dict:
1526
- """Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
1527
- body = {}
1528
- return body
1529
-
1530
- @classmethod
1531
- def from_dict(cls, d: Dict[str, Any]) -> DeleteResponse:
1532
- """Deserializes the DeleteResponse from a dictionary."""
1533
- return cls()
1534
-
1535
-
1536
- @dataclass
1537
- class DeleteRunResponse:
1538
- def as_dict(self) -> dict:
1539
- """Serializes the DeleteRunResponse into a dictionary suitable for use as a JSON request body."""
1540
- body = {}
1541
- return body
1542
-
1543
- def as_shallow_dict(self) -> dict:
1544
- """Serializes the DeleteRunResponse into a shallow dictionary of its immediate attributes."""
1545
- body = {}
1546
- return body
1547
-
1548
- @classmethod
1549
- def from_dict(cls, d: Dict[str, Any]) -> DeleteRunResponse:
1550
- """Deserializes the DeleteRunResponse from a dictionary."""
1551
- return cls()
1552
-
1553
-
1554
1482
  @dataclass
1555
1483
  class EnforcePolicyComplianceForJobResponseJobClusterSettingsChange:
1556
1484
  """Represents a change to the job cluster's settings that would be required for the job clusters to
@@ -4212,24 +4140,6 @@ class RepairRunResponse:
4212
4140
  return cls(repair_id=d.get("repair_id", None))
4213
4141
 
4214
4142
 
4215
- @dataclass
4216
- class ResetResponse:
4217
- def as_dict(self) -> dict:
4218
- """Serializes the ResetResponse into a dictionary suitable for use as a JSON request body."""
4219
- body = {}
4220
- return body
4221
-
4222
- def as_shallow_dict(self) -> dict:
4223
- """Serializes the ResetResponse into a shallow dictionary of its immediate attributes."""
4224
- body = {}
4225
- return body
4226
-
4227
- @classmethod
4228
- def from_dict(cls, d: Dict[str, Any]) -> ResetResponse:
4229
- """Deserializes the ResetResponse from a dictionary."""
4230
- return cls()
4231
-
4232
-
4233
4143
  @dataclass
4234
4144
  class ResolvedConditionTaskValues:
4235
4145
  left: Optional[str] = None
@@ -6126,8 +6036,11 @@ class Source(Enum):
6126
6036
  @dataclass
6127
6037
  class SparkJarTask:
6128
6038
  jar_uri: Optional[str] = None
6129
- """Deprecated since 04/2016. Provide a `jar` through the `libraries` field instead. For an example,
6130
- see :method:jobs/create."""
6039
+ """Deprecated since 04/2016. For classic compute, provide a `jar` through the `libraries` field
6040
+ instead. For serverless compute, provide a `jar` though the `java_dependencies` field inside the
6041
+ `environments` list.
6042
+
6043
+ See the examples of classic and serverless compute usage at the top of the page."""
6131
6044
 
6132
6045
  main_class_name: Optional[str] = None
6133
6046
  """The full name of the class containing the main method to be executed. This class must be
@@ -7330,6 +7243,10 @@ class TableTriggerState:
7330
7243
 
7331
7244
  @dataclass
7332
7245
  class TableUpdateTriggerConfiguration:
7246
+ table_names: List[str]
7247
+ """A list of tables to monitor for changes. The table name must be in the format
7248
+ `catalog_name.schema_name.table_name`."""
7249
+
7333
7250
  condition: Optional[Condition] = None
7334
7251
  """The table(s) condition based on which to trigger a job run."""
7335
7252
 
@@ -7337,10 +7254,6 @@ class TableUpdateTriggerConfiguration:
7337
7254
  """If set, the trigger starts a run only after the specified amount of time has passed since the
7338
7255
  last time the trigger fired. The minimum allowed value is 60 seconds."""
7339
7256
 
7340
- table_names: Optional[List[str]] = None
7341
- """A list of tables to monitor for changes. The table name must be in the format
7342
- `catalog_name.schema_name.table_name`."""
7343
-
7344
7257
  wait_after_last_change_seconds: Optional[int] = None
7345
7258
  """If set, the trigger starts a run only after no table updates have occurred for the specified
7346
7259
  time and can be used to wait for a series of table updates before triggering a run. The minimum
@@ -8056,9 +7969,6 @@ class TriggerSettings:
8056
7969
  periodic: Optional[PeriodicTriggerConfiguration] = None
8057
7970
  """Periodic trigger settings."""
8058
7971
 
8059
- table: Optional[TableUpdateTriggerConfiguration] = None
8060
- """Old table trigger settings name. Deprecated in favor of `table_update`."""
8061
-
8062
7972
  table_update: Optional[TableUpdateTriggerConfiguration] = None
8063
7973
 
8064
7974
  def as_dict(self) -> dict:
@@ -8070,8 +7980,6 @@ class TriggerSettings:
8070
7980
  body["pause_status"] = self.pause_status.value
8071
7981
  if self.periodic:
8072
7982
  body["periodic"] = self.periodic.as_dict()
8073
- if self.table:
8074
- body["table"] = self.table.as_dict()
8075
7983
  if self.table_update:
8076
7984
  body["table_update"] = self.table_update.as_dict()
8077
7985
  return body
@@ -8085,8 +7993,6 @@ class TriggerSettings:
8085
7993
  body["pause_status"] = self.pause_status
8086
7994
  if self.periodic:
8087
7995
  body["periodic"] = self.periodic
8088
- if self.table:
8089
- body["table"] = self.table
8090
7996
  if self.table_update:
8091
7997
  body["table_update"] = self.table_update
8092
7998
  return body
@@ -8098,7 +8004,6 @@ class TriggerSettings:
8098
8004
  file_arrival=_from_dict(d, "file_arrival", FileArrivalTriggerConfiguration),
8099
8005
  pause_status=_enum(d, "pause_status", PauseStatus),
8100
8006
  periodic=_from_dict(d, "periodic", PeriodicTriggerConfiguration),
8101
- table=_from_dict(d, "table", TableUpdateTriggerConfiguration),
8102
8007
  table_update=_from_dict(d, "table_update", TableUpdateTriggerConfiguration),
8103
8008
  )
8104
8009
 
@@ -8159,24 +8064,6 @@ class TriggerType(Enum):
8159
8064
  TABLE = "TABLE"
8160
8065
 
8161
8066
 
8162
- @dataclass
8163
- class UpdateResponse:
8164
- def as_dict(self) -> dict:
8165
- """Serializes the UpdateResponse into a dictionary suitable for use as a JSON request body."""
8166
- body = {}
8167
- return body
8168
-
8169
- def as_shallow_dict(self) -> dict:
8170
- """Serializes the UpdateResponse into a shallow dictionary of its immediate attributes."""
8171
- body = {}
8172
- return body
8173
-
8174
- @classmethod
8175
- def from_dict(cls, d: Dict[str, Any]) -> UpdateResponse:
8176
- """Deserializes the UpdateResponse from a dictionary."""
8177
- return cls()
8178
-
8179
-
8180
8067
  @dataclass
8181
8068
  class ViewItem:
8182
8069
  content: Optional[str] = None
@@ -8418,6 +8305,7 @@ class JobsAPI:
8418
8305
 
8419
8306
 
8420
8307
  """
8308
+
8421
8309
  body = {}
8422
8310
  if all_queued_runs is not None:
8423
8311
  body["all_queued_runs"] = all_queued_runs
@@ -8440,6 +8328,7 @@ class JobsAPI:
8440
8328
  Long-running operation waiter for :class:`Run`.
8441
8329
  See :method:wait_get_run_job_terminated_or_skipped for more details.
8442
8330
  """
8331
+
8443
8332
  body = {}
8444
8333
  if run_id is not None:
8445
8334
  body["run_id"] = run_id
@@ -8584,6 +8473,7 @@ class JobsAPI:
8584
8473
 
8585
8474
  :returns: :class:`CreateResponse`
8586
8475
  """
8476
+
8587
8477
  body = {}
8588
8478
  if access_control_list is not None:
8589
8479
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -8653,6 +8543,7 @@ class JobsAPI:
8653
8543
 
8654
8544
 
8655
8545
  """
8546
+
8656
8547
  body = {}
8657
8548
  if job_id is not None:
8658
8549
  body["job_id"] = job_id
@@ -8670,6 +8561,7 @@ class JobsAPI:
8670
8561
 
8671
8562
 
8672
8563
  """
8564
+
8673
8565
  body = {}
8674
8566
  if run_id is not None:
8675
8567
  body["run_id"] = run_id
@@ -9096,6 +8988,7 @@ class JobsAPI:
9096
8988
  Long-running operation waiter for :class:`Run`.
9097
8989
  See :method:wait_get_run_job_terminated_or_skipped for more details.
9098
8990
  """
8991
+
9099
8992
  body = {}
9100
8993
  if dbt_commands is not None:
9101
8994
  body["dbt_commands"] = [v for v in dbt_commands]
@@ -9191,6 +9084,7 @@ class JobsAPI:
9191
9084
 
9192
9085
 
9193
9086
  """
9087
+
9194
9088
  body = {}
9195
9089
  if job_id is not None:
9196
9090
  body["job_id"] = job_id
@@ -9331,6 +9225,7 @@ class JobsAPI:
9331
9225
  Long-running operation waiter for :class:`Run`.
9332
9226
  See :method:wait_get_run_job_terminated_or_skipped for more details.
9333
9227
  """
9228
+
9334
9229
  body = {}
9335
9230
  if dbt_commands is not None:
9336
9231
  body["dbt_commands"] = [v for v in dbt_commands]
@@ -9420,6 +9315,7 @@ class JobsAPI:
9420
9315
 
9421
9316
  :returns: :class:`JobPermissions`
9422
9317
  """
9318
+
9423
9319
  body = {}
9424
9320
  if access_control_list is not None:
9425
9321
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -9509,6 +9405,7 @@ class JobsAPI:
9509
9405
  Long-running operation waiter for :class:`Run`.
9510
9406
  See :method:wait_get_run_job_terminated_or_skipped for more details.
9511
9407
  """
9408
+
9512
9409
  body = {}
9513
9410
  if access_control_list is not None:
9514
9411
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -9615,6 +9512,7 @@ class JobsAPI:
9615
9512
 
9616
9513
 
9617
9514
  """
9515
+
9618
9516
  body = {}
9619
9517
  if fields_to_remove is not None:
9620
9518
  body["fields_to_remove"] = [v for v in fields_to_remove]
@@ -9639,6 +9537,7 @@ class JobsAPI:
9639
9537
 
9640
9538
  :returns: :class:`JobPermissions`
9641
9539
  """
9540
+
9642
9541
  body = {}
9643
9542
  if access_control_list is not None:
9644
9543
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -9680,6 +9579,7 @@ class PolicyComplianceForJobsAPI:
9680
9579
 
9681
9580
  :returns: :class:`EnforcePolicyComplianceResponse`
9682
9581
  """
9582
+
9683
9583
  body = {}
9684
9584
  if job_id is not None:
9685
9585
  body["job_id"] = job_id
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import logging
6
+ import uuid
6
7
  from dataclasses import dataclass
7
8
  from enum import Enum
8
9
  from typing import Any, Dict, Iterator, List, Optional
@@ -3032,6 +3033,7 @@ class ConsumerInstallationsAPI:
3032
3033
 
3033
3034
  :returns: :class:`Installation`
3034
3035
  """
3036
+
3035
3037
  body = {}
3036
3038
  if accepted_consumer_terms is not None:
3037
3039
  body["accepted_consumer_terms"] = accepted_consumer_terms.as_dict()
@@ -3156,6 +3158,7 @@ class ConsumerInstallationsAPI:
3156
3158
 
3157
3159
  :returns: :class:`UpdateInstallationResponse`
3158
3160
  """
3161
+
3159
3162
  body = {}
3160
3163
  if installation is not None:
3161
3164
  body["installation"] = installation.as_dict()
@@ -3377,6 +3380,7 @@ class ConsumerPersonalizationRequestsAPI:
3377
3380
 
3378
3381
  :returns: :class:`CreatePersonalizationRequestResponse`
3379
3382
  """
3383
+
3380
3384
  body = {}
3381
3385
  if accepted_consumer_terms is not None:
3382
3386
  body["accepted_consumer_terms"] = accepted_consumer_terms.as_dict()
@@ -3542,6 +3546,7 @@ class ProviderExchangeFiltersAPI:
3542
3546
 
3543
3547
  :returns: :class:`CreateExchangeFilterResponse`
3544
3548
  """
3549
+
3545
3550
  body = {}
3546
3551
  if filter is not None:
3547
3552
  body["filter"] = filter.as_dict()
@@ -3607,6 +3612,7 @@ class ProviderExchangeFiltersAPI:
3607
3612
 
3608
3613
  :returns: :class:`UpdateExchangeFilterResponse`
3609
3614
  """
3615
+
3610
3616
  body = {}
3611
3617
  if filter is not None:
3612
3618
  body["filter"] = filter.as_dict()
@@ -3633,6 +3639,7 @@ class ProviderExchangesAPI:
3633
3639
 
3634
3640
  :returns: :class:`AddExchangeForListingResponse`
3635
3641
  """
3642
+
3636
3643
  body = {}
3637
3644
  if exchange_id is not None:
3638
3645
  body["exchange_id"] = exchange_id
@@ -3653,6 +3660,7 @@ class ProviderExchangesAPI:
3653
3660
 
3654
3661
  :returns: :class:`CreateExchangeResponse`
3655
3662
  """
3663
+
3656
3664
  body = {}
3657
3665
  if exchange is not None:
3658
3666
  body["exchange"] = exchange.as_dict()
@@ -3810,6 +3818,7 @@ class ProviderExchangesAPI:
3810
3818
 
3811
3819
  :returns: :class:`UpdateExchangeResponse`
3812
3820
  """
3821
+
3813
3822
  body = {}
3814
3823
  if exchange is not None:
3815
3824
  body["exchange"] = exchange.as_dict()
@@ -3845,6 +3854,7 @@ class ProviderFilesAPI:
3845
3854
 
3846
3855
  :returns: :class:`CreateFileResponse`
3847
3856
  """
3857
+
3848
3858
  body = {}
3849
3859
  if display_name is not None:
3850
3860
  body["display_name"] = display_name
@@ -3938,6 +3948,7 @@ class ProviderListingsAPI:
3938
3948
 
3939
3949
  :returns: :class:`CreateListingResponse`
3940
3950
  """
3951
+
3941
3952
  body = {}
3942
3953
  if listing is not None:
3943
3954
  body["listing"] = listing.as_dict()
@@ -4013,6 +4024,7 @@ class ProviderListingsAPI:
4013
4024
 
4014
4025
  :returns: :class:`UpdateListingResponse`
4015
4026
  """
4027
+
4016
4028
  body = {}
4017
4029
  if listing is not None:
4018
4030
  body["listing"] = listing.as_dict()
@@ -4083,6 +4095,9 @@ class ProviderPersonalizationRequestsAPI:
4083
4095
 
4084
4096
  :returns: :class:`UpdatePersonalizationRequestResponse`
4085
4097
  """
4098
+
4099
+ if request_id is None or request_id == "":
4100
+ request_id = str(uuid.uuid4())
4086
4101
  body = {}
4087
4102
  if reason is not None:
4088
4103
  body["reason"] = reason
@@ -4164,6 +4179,7 @@ class ProviderProviderAnalyticsDashboardsAPI:
4164
4179
 
4165
4180
  :returns: :class:`UpdateProviderAnalyticsDashboardResponse`
4166
4181
  """
4182
+
4167
4183
  body = {}
4168
4184
  if version is not None:
4169
4185
  body["version"] = version
@@ -4189,6 +4205,7 @@ class ProviderProvidersAPI:
4189
4205
 
4190
4206
  :returns: :class:`CreateProviderResponse`
4191
4207
  """
4208
+
4192
4209
  body = {}
4193
4210
  if provider is not None:
4194
4211
  body["provider"] = provider.as_dict()
@@ -4264,6 +4281,7 @@ class ProviderProvidersAPI:
4264
4281
 
4265
4282
  :returns: :class:`UpdateProviderResponse`
4266
4283
  """
4284
+
4267
4285
  body = {}
4268
4286
  if provider is not None:
4269
4287
  body["provider"] = provider.as_dict()