databricks-sdk 0.55.0__py3-none-any.whl → 0.57.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of databricks-sdk might be problematic. Click here for more details.

Files changed (31) hide show
  1. databricks/sdk/__init__.py +41 -24
  2. databricks/sdk/service/aibuilder.py +505 -0
  3. databricks/sdk/service/apps.py +14 -42
  4. databricks/sdk/service/billing.py +167 -220
  5. databricks/sdk/service/catalog.py +462 -1235
  6. databricks/sdk/service/cleanrooms.py +26 -43
  7. databricks/sdk/service/compute.py +75 -211
  8. databricks/sdk/service/dashboards.py +77 -511
  9. databricks/sdk/service/database.py +1271 -0
  10. databricks/sdk/service/files.py +20 -54
  11. databricks/sdk/service/iam.py +61 -171
  12. databricks/sdk/service/jobs.py +453 -68
  13. databricks/sdk/service/marketplace.py +46 -146
  14. databricks/sdk/service/ml.py +453 -477
  15. databricks/sdk/service/oauth2.py +17 -45
  16. databricks/sdk/service/pipelines.py +125 -40
  17. databricks/sdk/service/provisioning.py +30 -93
  18. databricks/sdk/service/qualitymonitorv2.py +265 -0
  19. databricks/sdk/service/serving.py +106 -46
  20. databricks/sdk/service/settings.py +1062 -390
  21. databricks/sdk/service/sharing.py +33 -88
  22. databricks/sdk/service/sql.py +292 -185
  23. databricks/sdk/service/vectorsearch.py +13 -43
  24. databricks/sdk/service/workspace.py +35 -105
  25. databricks/sdk/version.py +1 -1
  26. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/METADATA +1 -1
  27. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/RECORD +31 -28
  28. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/WHEEL +0 -0
  29. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/LICENSE +0 -0
  30. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/NOTICE +0 -0
  31. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/top_level.txt +0 -0
@@ -1696,6 +1696,68 @@ class CreateQueryRequestQuery:
1696
1696
  )
1697
1697
 
1698
1698
 
1699
+ @dataclass
1700
+ class CreateQueryVisualizationsLegacyRequest:
1701
+ """Add visualization to a query"""
1702
+
1703
+ query_id: str
1704
+ """The identifier returned by :method:queries/create"""
1705
+
1706
+ type: str
1707
+ """The type of visualization: chart, table, pivot table, and so on."""
1708
+
1709
+ options: Any
1710
+ """The options object varies widely from one visualization type to the next and is unsupported.
1711
+ Databricks does not recommend modifying visualization settings in JSON."""
1712
+
1713
+ description: Optional[str] = None
1714
+ """A short description of this visualization. This is not displayed in the UI."""
1715
+
1716
+ name: Optional[str] = None
1717
+ """The name of the visualization that appears on dashboards and the query screen."""
1718
+
1719
+ def as_dict(self) -> dict:
1720
+ """Serializes the CreateQueryVisualizationsLegacyRequest into a dictionary suitable for use as a JSON request body."""
1721
+ body = {}
1722
+ if self.description is not None:
1723
+ body["description"] = self.description
1724
+ if self.name is not None:
1725
+ body["name"] = self.name
1726
+ if self.options:
1727
+ body["options"] = self.options
1728
+ if self.query_id is not None:
1729
+ body["query_id"] = self.query_id
1730
+ if self.type is not None:
1731
+ body["type"] = self.type
1732
+ return body
1733
+
1734
+ def as_shallow_dict(self) -> dict:
1735
+ """Serializes the CreateQueryVisualizationsLegacyRequest into a shallow dictionary of its immediate attributes."""
1736
+ body = {}
1737
+ if self.description is not None:
1738
+ body["description"] = self.description
1739
+ if self.name is not None:
1740
+ body["name"] = self.name
1741
+ if self.options:
1742
+ body["options"] = self.options
1743
+ if self.query_id is not None:
1744
+ body["query_id"] = self.query_id
1745
+ if self.type is not None:
1746
+ body["type"] = self.type
1747
+ return body
1748
+
1749
+ @classmethod
1750
+ def from_dict(cls, d: Dict[str, Any]) -> CreateQueryVisualizationsLegacyRequest:
1751
+ """Deserializes the CreateQueryVisualizationsLegacyRequest from a dictionary."""
1752
+ return cls(
1753
+ description=d.get("description", None),
1754
+ name=d.get("name", None),
1755
+ options=d.get("options", None),
1756
+ query_id=d.get("query_id", None),
1757
+ type=d.get("type", None),
1758
+ )
1759
+
1760
+
1699
1761
  @dataclass
1700
1762
  class CreateVisualizationRequest:
1701
1763
  visualization: Optional[CreateVisualizationRequestVisualization] = None
@@ -5657,12 +5719,16 @@ class QueryEditContent:
5657
5719
  @dataclass
5658
5720
  class QueryFilter:
5659
5721
  query_start_time_range: Optional[TimeRange] = None
5660
- """A range filter for query submitted time. The time range must be <= 30 days."""
5722
+ """A range filter for query submitted time. The time range must be less than or equal to 30 days."""
5661
5723
 
5662
5724
  statement_ids: Optional[List[str]] = None
5663
5725
  """A list of statement IDs."""
5664
5726
 
5665
5727
  statuses: Optional[List[QueryStatus]] = None
5728
+ """A list of statuses (QUEUED, RUNNING, CANCELED, FAILED, FINISHED) to match query results.
5729
+ Corresponds to the `status` field in the response. Filtering for multiple statuses is not
5730
+ recommended. Instead, opt to filter by a single status multiple times and then combine the
5731
+ results."""
5666
5732
 
5667
5733
  user_ids: Optional[List[int]] = None
5668
5734
  """A list of user IDs who ran the queries."""
@@ -5723,7 +5789,9 @@ class QueryInfo:
5723
5789
  are expected to remain static over time, this cannot be guaranteed."""
5724
5790
 
5725
5791
  duration: Optional[int] = None
5726
- """Total execution time of the statement ( excluding result fetch time )."""
5792
+ """Total time of the statement execution. This value does not include the time taken to retrieve
5793
+ the results, which can result in a discrepancy between this value and the start-to-finish
5794
+ wall-clock time."""
5727
5795
 
5728
5796
  endpoint_id: Optional[str] = None
5729
5797
  """Alias for `warehouse_id`."""
@@ -6047,6 +6115,10 @@ class QueryMetrics:
6047
6115
  spill_to_disk_bytes: Optional[int] = None
6048
6116
  """Size of data temporarily written to disk while executing the query, in bytes."""
6049
6117
 
6118
+ task_time_over_time_range: Optional[TaskTimeOverRange] = None
6119
+ """sum of task times completed in a range of wall clock time, approximated to a configurable number
6120
+ of points aggregated over all stages and jobs in the query (based on task_total_time_ms)"""
6121
+
6050
6122
  task_total_time_ms: Optional[int] = None
6051
6123
  """Sum of execution time for all of the query’s tasks, in milliseconds."""
6052
6124
 
@@ -6097,6 +6169,8 @@ class QueryMetrics:
6097
6169
  body["rows_read_count"] = self.rows_read_count
6098
6170
  if self.spill_to_disk_bytes is not None:
6099
6171
  body["spill_to_disk_bytes"] = self.spill_to_disk_bytes
6172
+ if self.task_time_over_time_range:
6173
+ body["task_time_over_time_range"] = self.task_time_over_time_range.as_dict()
6100
6174
  if self.task_total_time_ms is not None:
6101
6175
  body["task_total_time_ms"] = self.task_total_time_ms
6102
6176
  if self.total_time_ms is not None:
@@ -6146,6 +6220,8 @@ class QueryMetrics:
6146
6220
  body["rows_read_count"] = self.rows_read_count
6147
6221
  if self.spill_to_disk_bytes is not None:
6148
6222
  body["spill_to_disk_bytes"] = self.spill_to_disk_bytes
6223
+ if self.task_time_over_time_range:
6224
+ body["task_time_over_time_range"] = self.task_time_over_time_range
6149
6225
  if self.task_total_time_ms is not None:
6150
6226
  body["task_total_time_ms"] = self.task_total_time_ms
6151
6227
  if self.total_time_ms is not None:
@@ -6177,6 +6253,7 @@ class QueryMetrics:
6177
6253
  rows_produced_count=d.get("rows_produced_count", None),
6178
6254
  rows_read_count=d.get("rows_read_count", None),
6179
6255
  spill_to_disk_bytes=d.get("spill_to_disk_bytes", None),
6256
+ task_time_over_time_range=_from_dict(d, "task_time_over_time_range", TaskTimeOverRange),
6180
6257
  task_total_time_ms=d.get("task_total_time_ms", None),
6181
6258
  total_time_ms=d.get("total_time_ms", None),
6182
6259
  write_remote_bytes=d.get("write_remote_bytes", None),
@@ -6763,6 +6840,50 @@ class ServiceErrorCode(Enum):
6763
6840
  WORKSPACE_TEMPORARILY_UNAVAILABLE = "WORKSPACE_TEMPORARILY_UNAVAILABLE"
6764
6841
 
6765
6842
 
6843
+ @dataclass
6844
+ class SetRequest:
6845
+ """Set object ACL"""
6846
+
6847
+ access_control_list: Optional[List[AccessControl]] = None
6848
+
6849
+ object_id: Optional[str] = None
6850
+ """Object ID. The ACL for the object with this UUID is overwritten by this request's POST content."""
6851
+
6852
+ object_type: Optional[ObjectTypePlural] = None
6853
+ """The type of object permission to set."""
6854
+
6855
+ def as_dict(self) -> dict:
6856
+ """Serializes the SetRequest into a dictionary suitable for use as a JSON request body."""
6857
+ body = {}
6858
+ if self.access_control_list:
6859
+ body["access_control_list"] = [v.as_dict() for v in self.access_control_list]
6860
+ if self.object_id is not None:
6861
+ body["objectId"] = self.object_id
6862
+ if self.object_type is not None:
6863
+ body["objectType"] = self.object_type.value
6864
+ return body
6865
+
6866
+ def as_shallow_dict(self) -> dict:
6867
+ """Serializes the SetRequest into a shallow dictionary of its immediate attributes."""
6868
+ body = {}
6869
+ if self.access_control_list:
6870
+ body["access_control_list"] = self.access_control_list
6871
+ if self.object_id is not None:
6872
+ body["objectId"] = self.object_id
6873
+ if self.object_type is not None:
6874
+ body["objectType"] = self.object_type
6875
+ return body
6876
+
6877
+ @classmethod
6878
+ def from_dict(cls, d: Dict[str, Any]) -> SetRequest:
6879
+ """Deserializes the SetRequest from a dictionary."""
6880
+ return cls(
6881
+ access_control_list=_repeated_dict(d, "access_control_list", AccessControl),
6882
+ object_id=d.get("objectId", None),
6883
+ object_type=_enum(d, "objectType", ObjectTypePlural),
6884
+ )
6885
+
6886
+
6766
6887
  @dataclass
6767
6888
  class SetResponse:
6768
6889
  access_control_list: Optional[List[AccessControl]] = None
@@ -7167,6 +7288,63 @@ class SuccessMessage(Enum):
7167
7288
  SUCCESS = "Success"
7168
7289
 
7169
7290
 
7291
+ @dataclass
7292
+ class TaskTimeOverRange:
7293
+ entries: Optional[List[TaskTimeOverRangeEntry]] = None
7294
+
7295
+ interval: Optional[int] = None
7296
+ """interval length for all entries (difference in start time and end time of an entry range) the
7297
+ same for all entries start time of first interval is query_start_time_ms"""
7298
+
7299
+ def as_dict(self) -> dict:
7300
+ """Serializes the TaskTimeOverRange into a dictionary suitable for use as a JSON request body."""
7301
+ body = {}
7302
+ if self.entries:
7303
+ body["entries"] = [v.as_dict() for v in self.entries]
7304
+ if self.interval is not None:
7305
+ body["interval"] = self.interval
7306
+ return body
7307
+
7308
+ def as_shallow_dict(self) -> dict:
7309
+ """Serializes the TaskTimeOverRange into a shallow dictionary of its immediate attributes."""
7310
+ body = {}
7311
+ if self.entries:
7312
+ body["entries"] = self.entries
7313
+ if self.interval is not None:
7314
+ body["interval"] = self.interval
7315
+ return body
7316
+
7317
+ @classmethod
7318
+ def from_dict(cls, d: Dict[str, Any]) -> TaskTimeOverRange:
7319
+ """Deserializes the TaskTimeOverRange from a dictionary."""
7320
+ return cls(entries=_repeated_dict(d, "entries", TaskTimeOverRangeEntry), interval=d.get("interval", None))
7321
+
7322
+
7323
+ @dataclass
7324
+ class TaskTimeOverRangeEntry:
7325
+ task_completed_time_ms: Optional[int] = None
7326
+ """total task completion time in this time range, aggregated over all stages and jobs in the query"""
7327
+
7328
+ def as_dict(self) -> dict:
7329
+ """Serializes the TaskTimeOverRangeEntry into a dictionary suitable for use as a JSON request body."""
7330
+ body = {}
7331
+ if self.task_completed_time_ms is not None:
7332
+ body["task_completed_time_ms"] = self.task_completed_time_ms
7333
+ return body
7334
+
7335
+ def as_shallow_dict(self) -> dict:
7336
+ """Serializes the TaskTimeOverRangeEntry into a shallow dictionary of its immediate attributes."""
7337
+ body = {}
7338
+ if self.task_completed_time_ms is not None:
7339
+ body["task_completed_time_ms"] = self.task_completed_time_ms
7340
+ return body
7341
+
7342
+ @classmethod
7343
+ def from_dict(cls, d: Dict[str, Any]) -> TaskTimeOverRangeEntry:
7344
+ """Deserializes the TaskTimeOverRangeEntry from a dictionary."""
7345
+ return cls(task_completed_time_ms=d.get("task_completed_time_ms", None))
7346
+
7347
+
7170
7348
  @dataclass
7171
7349
  class TerminationReason:
7172
7350
  code: Optional[TerminationReasonCode] = None
@@ -7384,6 +7562,51 @@ class TransferOwnershipObjectId:
7384
7562
  return cls(new_owner=d.get("new_owner", None))
7385
7563
 
7386
7564
 
7565
+ @dataclass
7566
+ class TransferOwnershipRequest:
7567
+ """Transfer object ownership"""
7568
+
7569
+ new_owner: Optional[str] = None
7570
+ """Email address for the new owner, who must exist in the workspace."""
7571
+
7572
+ object_id: Optional[TransferOwnershipObjectId] = None
7573
+ """The ID of the object on which to change ownership."""
7574
+
7575
+ object_type: Optional[OwnableObjectType] = None
7576
+ """The type of object on which to change ownership."""
7577
+
7578
+ def as_dict(self) -> dict:
7579
+ """Serializes the TransferOwnershipRequest into a dictionary suitable for use as a JSON request body."""
7580
+ body = {}
7581
+ if self.new_owner is not None:
7582
+ body["new_owner"] = self.new_owner
7583
+ if self.object_id:
7584
+ body["objectId"] = self.object_id.as_dict()
7585
+ if self.object_type is not None:
7586
+ body["objectType"] = self.object_type.value
7587
+ return body
7588
+
7589
+ def as_shallow_dict(self) -> dict:
7590
+ """Serializes the TransferOwnershipRequest into a shallow dictionary of its immediate attributes."""
7591
+ body = {}
7592
+ if self.new_owner is not None:
7593
+ body["new_owner"] = self.new_owner
7594
+ if self.object_id:
7595
+ body["objectId"] = self.object_id
7596
+ if self.object_type is not None:
7597
+ body["objectType"] = self.object_type
7598
+ return body
7599
+
7600
+ @classmethod
7601
+ def from_dict(cls, d: Dict[str, Any]) -> TransferOwnershipRequest:
7602
+ """Deserializes the TransferOwnershipRequest from a dictionary."""
7603
+ return cls(
7604
+ new_owner=d.get("new_owner", None),
7605
+ object_id=_from_dict(d, "objectId", TransferOwnershipObjectId),
7606
+ object_type=_enum(d, "objectType", OwnableObjectType),
7607
+ )
7608
+
7609
+
7387
7610
  @dataclass
7388
7611
  class UpdateAlertRequest:
7389
7612
  update_mask: str
@@ -8452,9 +8675,7 @@ class AlertsAPI:
8452
8675
  def create(
8453
8676
  self, *, alert: Optional[CreateAlertRequestAlert] = None, auto_resolve_display_name: Optional[bool] = None
8454
8677
  ) -> Alert:
8455
- """Create an alert.
8456
-
8457
- Creates an alert.
8678
+ """Creates an alert.
8458
8679
 
8459
8680
  :param alert: :class:`CreateAlertRequestAlert` (optional)
8460
8681
  :param auto_resolve_display_name: bool (optional)
@@ -8477,9 +8698,7 @@ class AlertsAPI:
8477
8698
  return Alert.from_dict(res)
8478
8699
 
8479
8700
  def delete(self, id: str):
8480
- """Delete an alert.
8481
-
8482
- Moves an alert to the trash. Trashed alerts immediately disappear from searches and list views, and
8701
+ """Moves an alert to the trash. Trashed alerts immediately disappear from searches and list views, and
8483
8702
  can no longer trigger. You can restore a trashed alert through the UI. A trashed alert is permanently
8484
8703
  deleted after 30 days.
8485
8704
 
@@ -8495,9 +8714,7 @@ class AlertsAPI:
8495
8714
  self._api.do("DELETE", f"/api/2.0/sql/alerts/{id}", headers=headers)
8496
8715
 
8497
8716
  def get(self, id: str) -> Alert:
8498
- """Get an alert.
8499
-
8500
- Gets an alert.
8717
+ """Gets an alert.
8501
8718
 
8502
8719
  :param id: str
8503
8720
 
@@ -8514,9 +8731,7 @@ class AlertsAPI:
8514
8731
  def list(
8515
8732
  self, *, page_size: Optional[int] = None, page_token: Optional[str] = None
8516
8733
  ) -> Iterator[ListAlertsResponseAlert]:
8517
- """List alerts.
8518
-
8519
- Gets a list of alerts accessible to the user, ordered by creation time. **Warning:** Calling this API
8734
+ """Gets a list of alerts accessible to the user, ordered by creation time. **Warning:** Calling this API
8520
8735
  concurrently 10 or more times could result in throttling, service degradation, or a temporary ban.
8521
8736
 
8522
8737
  :param page_size: int (optional)
@@ -8551,9 +8766,7 @@ class AlertsAPI:
8551
8766
  alert: Optional[UpdateAlertRequestAlert] = None,
8552
8767
  auto_resolve_display_name: Optional[bool] = None,
8553
8768
  ) -> Alert:
8554
- """Update an alert.
8555
-
8556
- Updates an alert.
8769
+ """Updates an alert.
8557
8770
 
8558
8771
  :param id: str
8559
8772
  :param update_mask: str
@@ -8612,9 +8825,7 @@ class AlertsLegacyAPI:
8612
8825
  parent: Optional[str] = None,
8613
8826
  rearm: Optional[int] = None,
8614
8827
  ) -> LegacyAlert:
8615
- """Create an alert.
8616
-
8617
- Creates an alert. An alert is a Databricks SQL object that periodically runs a query, evaluates a
8828
+ """Creates an alert. An alert is a Databricks SQL object that periodically runs a query, evaluates a
8618
8829
  condition of its result, and notifies users or notification destinations if the condition was met.
8619
8830
 
8620
8831
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/create
@@ -8656,9 +8867,7 @@ class AlertsLegacyAPI:
8656
8867
  return LegacyAlert.from_dict(res)
8657
8868
 
8658
8869
  def delete(self, alert_id: str):
8659
- """Delete an alert.
8660
-
8661
- Deletes an alert. Deleted alerts are no longer accessible and cannot be restored. **Note**: Unlike
8870
+ """Deletes an alert. Deleted alerts are no longer accessible and cannot be restored. **Note**: Unlike
8662
8871
  queries and dashboards, alerts cannot be moved to the trash.
8663
8872
 
8664
8873
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/delete
@@ -8678,9 +8887,7 @@ class AlertsLegacyAPI:
8678
8887
  self._api.do("DELETE", f"/api/2.0/preview/sql/alerts/{alert_id}", headers=headers)
8679
8888
 
8680
8889
  def get(self, alert_id: str) -> LegacyAlert:
8681
- """Get an alert.
8682
-
8683
- Gets an alert.
8890
+ """Gets an alert.
8684
8891
 
8685
8892
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/get
8686
8893
  instead. [Learn more]
@@ -8700,9 +8907,7 @@ class AlertsLegacyAPI:
8700
8907
  return LegacyAlert.from_dict(res)
8701
8908
 
8702
8909
  def list(self) -> Iterator[LegacyAlert]:
8703
- """Get alerts.
8704
-
8705
- Gets a list of alerts.
8910
+ """Gets a list of alerts.
8706
8911
 
8707
8912
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/list
8708
8913
  instead. [Learn more]
@@ -8720,9 +8925,7 @@ class AlertsLegacyAPI:
8720
8925
  return [LegacyAlert.from_dict(v) for v in res]
8721
8926
 
8722
8927
  def update(self, alert_id: str, name: str, options: AlertOptions, query_id: str, *, rearm: Optional[int] = None):
8723
- """Update an alert.
8724
-
8725
- Updates an alert.
8928
+ """Updates an alert.
8726
8929
 
8727
8930
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:alerts/update
8728
8931
  instead. [Learn more]
@@ -8760,15 +8963,13 @@ class AlertsLegacyAPI:
8760
8963
 
8761
8964
 
8762
8965
  class AlertsV2API:
8763
- """TODO: Add description"""
8966
+ """New version of SQL Alerts"""
8764
8967
 
8765
8968
  def __init__(self, api_client):
8766
8969
  self._api = api_client
8767
8970
 
8768
8971
  def create_alert(self, alert: AlertV2) -> AlertV2:
8769
- """Create an alert.
8770
-
8771
- Create Alert
8972
+ """Create Alert
8772
8973
 
8773
8974
  :param alert: :class:`AlertV2`
8774
8975
 
@@ -8784,9 +8985,7 @@ class AlertsV2API:
8784
8985
  return AlertV2.from_dict(res)
8785
8986
 
8786
8987
  def get_alert(self, id: str) -> AlertV2:
8787
- """Get an alert.
8788
-
8789
- Gets an alert.
8988
+ """Gets an alert.
8790
8989
 
8791
8990
  :param id: str
8792
8991
 
@@ -8801,9 +9000,7 @@ class AlertsV2API:
8801
9000
  return AlertV2.from_dict(res)
8802
9001
 
8803
9002
  def list_alerts(self, *, page_size: Optional[int] = None, page_token: Optional[str] = None) -> Iterator[AlertV2]:
8804
- """List alerts.
8805
-
8806
- Gets a list of alerts accessible to the user, ordered by creation time.
9003
+ """Gets a list of alerts accessible to the user, ordered by creation time.
8807
9004
 
8808
9005
  :param page_size: int (optional)
8809
9006
  :param page_token: str (optional)
@@ -8830,9 +9027,7 @@ class AlertsV2API:
8830
9027
  query["page_token"] = json["next_page_token"]
8831
9028
 
8832
9029
  def trash_alert(self, id: str):
8833
- """Delete an alert.
8834
-
8835
- Moves an alert to the trash. Trashed alerts immediately disappear from list views, and can no longer
9030
+ """Moves an alert to the trash. Trashed alerts immediately disappear from list views, and can no longer
8836
9031
  trigger. You can restore a trashed alert through the UI. A trashed alert is permanently deleted after
8837
9032
  30 days.
8838
9033
 
@@ -8848,9 +9043,7 @@ class AlertsV2API:
8848
9043
  self._api.do("DELETE", f"/api/2.0/alerts/{id}", headers=headers)
8849
9044
 
8850
9045
  def update_alert(self, id: str, alert: AlertV2, update_mask: str) -> AlertV2:
8851
- """Update an alert.
8852
-
8853
- Update alert
9046
+ """Update alert
8854
9047
 
8855
9048
  :param id: str
8856
9049
  UUID identifying the alert.
@@ -8897,7 +9090,7 @@ class DashboardWidgetsAPI:
8897
9090
  text: Optional[str] = None,
8898
9091
  visualization_id: Optional[str] = None,
8899
9092
  ) -> Widget:
8900
- """Add widget to a dashboard.
9093
+ """Add widget to a dashboard
8901
9094
 
8902
9095
  :param dashboard_id: str
8903
9096
  Dashboard ID returned by :method:dashboards/create.
@@ -8932,7 +9125,7 @@ class DashboardWidgetsAPI:
8932
9125
  return Widget.from_dict(res)
8933
9126
 
8934
9127
  def delete(self, id: str):
8935
- """Remove widget.
9128
+ """Remove widget
8936
9129
 
8937
9130
  :param id: str
8938
9131
  Widget ID returned by :method:dashboardwidgets/create
@@ -8956,7 +9149,7 @@ class DashboardWidgetsAPI:
8956
9149
  text: Optional[str] = None,
8957
9150
  visualization_id: Optional[str] = None,
8958
9151
  ) -> Widget:
8959
- """Update existing widget.
9152
+ """Update existing widget
8960
9153
 
8961
9154
  :param id: str
8962
9155
  Widget ID returned by :method:dashboardwidgets/create
@@ -9052,9 +9245,7 @@ class DashboardsAPI:
9052
9245
  return Dashboard.from_dict(res)
9053
9246
 
9054
9247
  def delete(self, dashboard_id: str):
9055
- """Remove a dashboard.
9056
-
9057
- Moves a dashboard to the trash. Trashed dashboards do not appear in list views or searches, and cannot
9248
+ """Moves a dashboard to the trash. Trashed dashboards do not appear in list views or searches, and cannot
9058
9249
  be shared.
9059
9250
 
9060
9251
  :param dashboard_id: str
@@ -9069,9 +9260,7 @@ class DashboardsAPI:
9069
9260
  self._api.do("DELETE", f"/api/2.0/preview/sql/dashboards/{dashboard_id}", headers=headers)
9070
9261
 
9071
9262
  def get(self, dashboard_id: str) -> Dashboard:
9072
- """Retrieve a definition.
9073
-
9074
- Returns a JSON representation of a dashboard object, including its visualization and query objects.
9263
+ """Returns a JSON representation of a dashboard object, including its visualization and query objects.
9075
9264
 
9076
9265
  :param dashboard_id: str
9077
9266
 
@@ -9093,9 +9282,7 @@ class DashboardsAPI:
9093
9282
  page_size: Optional[int] = None,
9094
9283
  q: Optional[str] = None,
9095
9284
  ) -> Iterator[Dashboard]:
9096
- """Get dashboard objects.
9097
-
9098
- Fetch a paginated list of dashboard objects.
9285
+ """Fetch a paginated list of dashboard objects.
9099
9286
 
9100
9287
  **Warning**: Calling this API concurrently 10 or more times could result in throttling, service
9101
9288
  degradation, or a temporary ban.
@@ -9142,9 +9329,7 @@ class DashboardsAPI:
9142
9329
  query["page"] += 1
9143
9330
 
9144
9331
  def restore(self, dashboard_id: str):
9145
- """Restore a dashboard.
9146
-
9147
- A restored dashboard appears in list views and searches and can be shared.
9332
+ """A restored dashboard appears in list views and searches and can be shared.
9148
9333
 
9149
9334
  :param dashboard_id: str
9150
9335
 
@@ -9165,9 +9350,7 @@ class DashboardsAPI:
9165
9350
  run_as_role: Optional[RunAsRole] = None,
9166
9351
  tags: Optional[List[str]] = None,
9167
9352
  ) -> Dashboard:
9168
- """Change a dashboard definition.
9169
-
9170
- Modify this dashboard definition. This operation only affects attributes of the dashboard object. It
9353
+ """Modify this dashboard definition. This operation only affects attributes of the dashboard object. It
9171
9354
  does not add, modify, or remove widgets.
9172
9355
 
9173
9356
  **Note**: You cannot undo this operation.
@@ -9215,9 +9398,7 @@ class DataSourcesAPI:
9215
9398
  self._api = api_client
9216
9399
 
9217
9400
  def list(self) -> Iterator[DataSource]:
9218
- """Get a list of SQL warehouses.
9219
-
9220
- Retrieves a full list of SQL warehouses available in this workspace. All fields that appear in this
9401
+ """Retrieves a full list of SQL warehouses available in this workspace. All fields that appear in this
9221
9402
  API response are enumerated for clarity. However, you need only a SQL warehouse's `id` to create new
9222
9403
  queries against it.
9223
9404
 
@@ -9258,9 +9439,7 @@ class DbsqlPermissionsAPI:
9258
9439
  self._api = api_client
9259
9440
 
9260
9441
  def get(self, object_type: ObjectTypePlural, object_id: str) -> GetResponse:
9261
- """Get object ACL.
9262
-
9263
- Gets a JSON representation of the access control list (ACL) for a specified object.
9442
+ """Gets a JSON representation of the access control list (ACL) for a specified object.
9264
9443
 
9265
9444
  **Note**: A new version of the Databricks SQL API is now available. Please use
9266
9445
  :method:workspace/getpermissions instead. [Learn more]
@@ -9289,9 +9468,7 @@ class DbsqlPermissionsAPI:
9289
9468
  *,
9290
9469
  access_control_list: Optional[List[AccessControl]] = None,
9291
9470
  ) -> SetResponse:
9292
- """Set object ACL.
9293
-
9294
- Sets the access control list (ACL) for a specified object. This operation will complete rewrite the
9471
+ """Sets the access control list (ACL) for a specified object. This operation will complete rewrite the
9295
9472
  ACL.
9296
9473
 
9297
9474
  **Note**: A new version of the Databricks SQL API is now available. Please use
@@ -9323,9 +9500,7 @@ class DbsqlPermissionsAPI:
9323
9500
  def transfer_ownership(
9324
9501
  self, object_type: OwnableObjectType, object_id: TransferOwnershipObjectId, *, new_owner: Optional[str] = None
9325
9502
  ) -> Success:
9326
- """Transfer object ownership.
9327
-
9328
- Transfers ownership of a dashboard, query, or alert to an active user. Requires an admin API key.
9503
+ """Transfers ownership of a dashboard, query, or alert to an active user. Requires an admin API key.
9329
9504
 
9330
9505
  **Note**: A new version of the Databricks SQL API is now available. For queries and alerts, please use
9331
9506
  :method:queries/update and :method:alerts/update respectively instead. [Learn more]
@@ -9369,9 +9544,7 @@ class QueriesAPI:
9369
9544
  def create(
9370
9545
  self, *, auto_resolve_display_name: Optional[bool] = None, query: Optional[CreateQueryRequestQuery] = None
9371
9546
  ) -> Query:
9372
- """Create a query.
9373
-
9374
- Creates a query.
9547
+ """Creates a query.
9375
9548
 
9376
9549
  :param auto_resolve_display_name: bool (optional)
9377
9550
  If true, automatically resolve query display name conflicts. Otherwise, fail the request if the
@@ -9394,9 +9567,7 @@ class QueriesAPI:
9394
9567
  return Query.from_dict(res)
9395
9568
 
9396
9569
  def delete(self, id: str):
9397
- """Delete a query.
9398
-
9399
- Moves a query to the trash. Trashed queries immediately disappear from searches and list views, and
9570
+ """Moves a query to the trash. Trashed queries immediately disappear from searches and list views, and
9400
9571
  cannot be used for alerts. You can restore a trashed query through the UI. A trashed query is
9401
9572
  permanently deleted after 30 days.
9402
9573
 
@@ -9412,9 +9583,7 @@ class QueriesAPI:
9412
9583
  self._api.do("DELETE", f"/api/2.0/sql/queries/{id}", headers=headers)
9413
9584
 
9414
9585
  def get(self, id: str) -> Query:
9415
- """Get a query.
9416
-
9417
- Gets a query.
9586
+ """Gets a query.
9418
9587
 
9419
9588
  :param id: str
9420
9589
 
@@ -9431,9 +9600,7 @@ class QueriesAPI:
9431
9600
  def list(
9432
9601
  self, *, page_size: Optional[int] = None, page_token: Optional[str] = None
9433
9602
  ) -> Iterator[ListQueryObjectsResponseQuery]:
9434
- """List queries.
9435
-
9436
- Gets a list of queries accessible to the user, ordered by creation time. **Warning:** Calling this API
9603
+ """Gets a list of queries accessible to the user, ordered by creation time. **Warning:** Calling this API
9437
9604
  concurrently 10 or more times could result in throttling, service degradation, or a temporary ban.
9438
9605
 
9439
9606
  :param page_size: int (optional)
@@ -9463,9 +9630,7 @@ class QueriesAPI:
9463
9630
  def list_visualizations(
9464
9631
  self, id: str, *, page_size: Optional[int] = None, page_token: Optional[str] = None
9465
9632
  ) -> Iterator[Visualization]:
9466
- """List visualizations on a query.
9467
-
9468
- Gets a list of visualizations on a query.
9633
+ """Gets a list of visualizations on a query.
9469
9634
 
9470
9635
  :param id: str
9471
9636
  :param page_size: int (optional)
@@ -9500,9 +9665,7 @@ class QueriesAPI:
9500
9665
  auto_resolve_display_name: Optional[bool] = None,
9501
9666
  query: Optional[UpdateQueryRequestQuery] = None,
9502
9667
  ) -> Query:
9503
- """Update a query.
9504
-
9505
- Updates a query.
9668
+ """Updates a query.
9506
9669
 
9507
9670
  :param id: str
9508
9671
  :param update_mask: str
@@ -9563,9 +9726,7 @@ class QueriesLegacyAPI:
9563
9726
  run_as_role: Optional[RunAsRole] = None,
9564
9727
  tags: Optional[List[str]] = None,
9565
9728
  ) -> LegacyQuery:
9566
- """Create a new query definition.
9567
-
9568
- Creates a new query definition. Queries created with this endpoint belong to the authenticated user
9729
+ """Creates a new query definition. Queries created with this endpoint belong to the authenticated user
9569
9730
  making the request.
9570
9731
 
9571
9732
  The `data_source_id` field specifies the ID of the SQL warehouse to run this query against. You can
@@ -9629,9 +9790,7 @@ class QueriesLegacyAPI:
9629
9790
  return LegacyQuery.from_dict(res)
9630
9791
 
9631
9792
  def delete(self, query_id: str):
9632
- """Delete a query.
9633
-
9634
- Moves a query to the trash. Trashed queries immediately disappear from searches and list views, and
9793
+ """Moves a query to the trash. Trashed queries immediately disappear from searches and list views, and
9635
9794
  they cannot be used for alerts. The trash is deleted after 30 days.
9636
9795
 
9637
9796
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:queries/delete
@@ -9651,9 +9810,7 @@ class QueriesLegacyAPI:
9651
9810
  self._api.do("DELETE", f"/api/2.0/preview/sql/queries/{query_id}", headers=headers)
9652
9811
 
9653
9812
  def get(self, query_id: str) -> LegacyQuery:
9654
- """Get a query definition.
9655
-
9656
- Retrieve a query object definition along with contextual permissions information about the currently
9813
+ """Retrieve a query object definition along with contextual permissions information about the currently
9657
9814
  authenticated user.
9658
9815
 
9659
9816
  **Note**: A new version of the Databricks SQL API is now available. Please use :method:queries/get
@@ -9681,9 +9838,7 @@ class QueriesLegacyAPI:
9681
9838
  page_size: Optional[int] = None,
9682
9839
  q: Optional[str] = None,
9683
9840
  ) -> Iterator[LegacyQuery]:
9684
- """Get a list of queries.
9685
-
9686
- Gets a list of queries. Optionally, this list can be filtered by a search term.
9841
+ """Gets a list of queries. Optionally, this list can be filtered by a search term.
9687
9842
 
9688
9843
  **Warning**: Calling this API concurrently 10 or more times could result in throttling, service
9689
9844
  degradation, or a temporary ban.
@@ -9747,9 +9902,7 @@ class QueriesLegacyAPI:
9747
9902
  query["page"] += 1
9748
9903
 
9749
9904
  def restore(self, query_id: str):
9750
- """Restore a query.
9751
-
9752
- Restore a query that has been moved to the trash. A restored query appears in list views and searches.
9905
+ """Restore a query that has been moved to the trash. A restored query appears in list views and searches.
9753
9906
  You can use restored queries for alerts.
9754
9907
 
9755
9908
  **Note**: A new version of the Databricks SQL API is now available. Please see the latest version.
@@ -9780,9 +9933,7 @@ class QueriesLegacyAPI:
9780
9933
  run_as_role: Optional[RunAsRole] = None,
9781
9934
  tags: Optional[List[str]] = None,
9782
9935
  ) -> LegacyQuery:
9783
- """Change a query definition.
9784
-
9785
- Modify this query definition.
9936
+ """Modify this query definition.
9786
9937
 
9787
9938
  **Note**: You cannot undo this operation.
9788
9939
 
@@ -9853,16 +10004,16 @@ class QueryHistoryAPI:
9853
10004
  max_results: Optional[int] = None,
9854
10005
  page_token: Optional[str] = None,
9855
10006
  ) -> ListQueriesResponse:
9856
- """List Queries.
9857
-
9858
- List the history of queries through SQL warehouses, and serverless compute.
10007
+ """List the history of queries through SQL warehouses, and serverless compute.
9859
10008
 
9860
10009
  You can filter by user ID, warehouse ID, status, and time range. Most recently started queries are
9861
10010
  returned first (up to max_results in request). The pagination token returned in response can be used
9862
10011
  to list subsequent query statuses.
9863
10012
 
9864
10013
  :param filter_by: :class:`QueryFilter` (optional)
9865
- A filter to limit query history results. This field is optional.
10014
+ An optional filter object to limit query history results. Accepts parameters such as user IDs,
10015
+ endpoint IDs, and statuses to narrow the returned data. In a URL, the parameters of this filter are
10016
+ specified with dot notation. For example: `filter_by.statement_ids`.
9866
10017
  :param include_metrics: bool (optional)
9867
10018
  Whether to include the query metrics with each query. Only use this for a small subset of queries
9868
10019
  (max_results). Defaults to false.
@@ -9901,9 +10052,7 @@ class QueryVisualizationsAPI:
9901
10052
  self._api = api_client
9902
10053
 
9903
10054
  def create(self, *, visualization: Optional[CreateVisualizationRequestVisualization] = None) -> Visualization:
9904
- """Add a visualization to a query.
9905
-
9906
- Adds a visualization to a query.
10055
+ """Adds a visualization to a query.
9907
10056
 
9908
10057
  :param visualization: :class:`CreateVisualizationRequestVisualization` (optional)
9909
10058
 
@@ -9921,9 +10070,7 @@ class QueryVisualizationsAPI:
9921
10070
  return Visualization.from_dict(res)
9922
10071
 
9923
10072
  def delete(self, id: str):
9924
- """Remove a visualization.
9925
-
9926
- Removes a visualization.
10073
+ """Removes a visualization.
9927
10074
 
9928
10075
  :param id: str
9929
10076
 
@@ -9939,9 +10086,7 @@ class QueryVisualizationsAPI:
9939
10086
  def update(
9940
10087
  self, id: str, update_mask: str, *, visualization: Optional[UpdateVisualizationRequestVisualization] = None
9941
10088
  ) -> Visualization:
9942
- """Update a visualization.
9943
-
9944
- Updates a visualization.
10089
+ """Updates a visualization.
9945
10090
 
9946
10091
  :param id: str
9947
10092
  :param update_mask: str
@@ -9987,9 +10132,7 @@ class QueryVisualizationsLegacyAPI:
9987
10132
  def create(
9988
10133
  self, query_id: str, type: str, options: Any, *, description: Optional[str] = None, name: Optional[str] = None
9989
10134
  ) -> LegacyVisualization:
9990
- """Add visualization to a query.
9991
-
9992
- Creates visualization in the query.
10135
+ """Creates visualization in the query.
9993
10136
 
9994
10137
  **Note**: A new version of the Databricks SQL API is now available. Please use
9995
10138
  :method:queryvisualizations/create instead. [Learn more]
@@ -10030,9 +10173,7 @@ class QueryVisualizationsLegacyAPI:
10030
10173
  return LegacyVisualization.from_dict(res)
10031
10174
 
10032
10175
  def delete(self, id: str):
10033
- """Remove visualization.
10034
-
10035
- Removes a visualization from the query.
10176
+ """Removes a visualization from the query.
10036
10177
 
10037
10178
  **Note**: A new version of the Databricks SQL API is now available. Please use
10038
10179
  :method:queryvisualizations/delete instead. [Learn more]
@@ -10063,9 +10204,7 @@ class QueryVisualizationsLegacyAPI:
10063
10204
  type: Optional[str] = None,
10064
10205
  updated_at: Optional[str] = None,
10065
10206
  ) -> LegacyVisualization:
10066
- """Edit existing visualization.
10067
-
10068
- Updates visualization in the query.
10207
+ """Updates visualization in the query.
10069
10208
 
10070
10209
  **Note**: A new version of the Databricks SQL API is now available. Please use
10071
10210
  :method:queryvisualizations/update instead. [Learn more]
@@ -10223,9 +10362,7 @@ class StatementExecutionAPI:
10223
10362
  self._api = api_client
10224
10363
 
10225
10364
  def cancel_execution(self, statement_id: str):
10226
- """Cancel statement execution.
10227
-
10228
- Requests that an executing statement be canceled. Callers must poll for status to see the terminal
10365
+ """Requests that an executing statement be canceled. Callers must poll for status to see the terminal
10229
10366
  state.
10230
10367
 
10231
10368
  :param statement_id: str
@@ -10254,7 +10391,7 @@ class StatementExecutionAPI:
10254
10391
  schema: Optional[str] = None,
10255
10392
  wait_timeout: Optional[str] = None,
10256
10393
  ) -> StatementResponse:
10257
- """Execute a SQL statement.
10394
+ """Execute a SQL statement
10258
10395
 
10259
10396
  :param statement: str
10260
10397
  The SQL statement to execute. The statement can optionally be parameterized, see `parameters`.
@@ -10394,9 +10531,7 @@ class StatementExecutionAPI:
10394
10531
  return StatementResponse.from_dict(res)
10395
10532
 
10396
10533
  def get_statement(self, statement_id: str) -> StatementResponse:
10397
- """Get status, manifest, and result first chunk.
10398
-
10399
- This request can be used to poll for the statement's status. When the `status.state` field is
10534
+ """This request can be used to poll for the statement's status. When the `status.state` field is
10400
10535
  `SUCCEEDED` it will also return the result manifest and the first chunk of the result data. When the
10401
10536
  statement is in the terminal states `CANCELED`, `CLOSED` or `FAILED`, it returns HTTP 200 with the
10402
10537
  state set. After at least 12 hours in terminal state, the statement is removed from the warehouse and
@@ -10419,9 +10554,7 @@ class StatementExecutionAPI:
10419
10554
  return StatementResponse.from_dict(res)
10420
10555
 
10421
10556
  def get_statement_result_chunk_n(self, statement_id: str, chunk_index: int) -> ResultData:
10422
- """Get result chunk by index.
10423
-
10424
- After the statement execution has `SUCCEEDED`, this request can be used to fetch any chunk by index.
10557
+ """After the statement execution has `SUCCEEDED`, this request can be used to fetch any chunk by index.
10425
10558
  Whereas the first chunk with `chunk_index=0` is typically fetched with
10426
10559
  :method:statementexecution/executeStatement or :method:statementexecution/getStatement, this request
10427
10560
  can be used to fetch subsequent chunks. The response structure is identical to the nested `result`
@@ -10531,9 +10664,7 @@ class WarehousesAPI:
10531
10664
  tags: Optional[EndpointTags] = None,
10532
10665
  warehouse_type: Optional[CreateWarehouseRequestWarehouseType] = None,
10533
10666
  ) -> Wait[GetWarehouseResponse]:
10534
- """Create a warehouse.
10535
-
10536
- Creates a new SQL warehouse.
10667
+ """Creates a new SQL warehouse.
10537
10668
 
10538
10669
  :param auto_stop_mins: int (optional)
10539
10670
  The amount of time in minutes that a SQL warehouse must be idle (i.e., no RUNNING queries) before it
@@ -10669,9 +10800,7 @@ class WarehousesAPI:
10669
10800
  ).result(timeout=timeout)
10670
10801
 
10671
10802
  def delete(self, id: str):
10672
- """Delete a warehouse.
10673
-
10674
- Deletes a SQL warehouse.
10803
+ """Deletes a SQL warehouse.
10675
10804
 
10676
10805
  :param id: str
10677
10806
  Required. Id of the SQL warehouse.
@@ -10703,9 +10832,7 @@ class WarehousesAPI:
10703
10832
  tags: Optional[EndpointTags] = None,
10704
10833
  warehouse_type: Optional[EditWarehouseRequestWarehouseType] = None,
10705
10834
  ) -> Wait[GetWarehouseResponse]:
10706
- """Update a warehouse.
10707
-
10708
- Updates the configuration for a SQL warehouse.
10835
+ """Updates the configuration for a SQL warehouse.
10709
10836
 
10710
10837
  :param id: str
10711
10838
  Required. Id of the warehouse to configure.
@@ -10840,9 +10967,7 @@ class WarehousesAPI:
10840
10967
  ).result(timeout=timeout)
10841
10968
 
10842
10969
  def get(self, id: str) -> GetWarehouseResponse:
10843
- """Get warehouse info.
10844
-
10845
- Gets the information for a single SQL warehouse.
10970
+ """Gets the information for a single SQL warehouse.
10846
10971
 
10847
10972
  :param id: str
10848
10973
  Required. Id of the SQL warehouse.
@@ -10858,9 +10983,7 @@ class WarehousesAPI:
10858
10983
  return GetWarehouseResponse.from_dict(res)
10859
10984
 
10860
10985
  def get_permission_levels(self, warehouse_id: str) -> GetWarehousePermissionLevelsResponse:
10861
- """Get SQL warehouse permission levels.
10862
-
10863
- Gets the permission levels that a user can have on an object.
10986
+ """Gets the permission levels that a user can have on an object.
10864
10987
 
10865
10988
  :param warehouse_id: str
10866
10989
  The SQL warehouse for which to get or manage permissions.
@@ -10876,9 +10999,7 @@ class WarehousesAPI:
10876
10999
  return GetWarehousePermissionLevelsResponse.from_dict(res)
10877
11000
 
10878
11001
  def get_permissions(self, warehouse_id: str) -> WarehousePermissions:
10879
- """Get SQL warehouse permissions.
10880
-
10881
- Gets the permissions of a SQL warehouse. SQL warehouses can inherit permissions from their root
11002
+ """Gets the permissions of a SQL warehouse. SQL warehouses can inherit permissions from their root
10882
11003
  object.
10883
11004
 
10884
11005
  :param warehouse_id: str
@@ -10895,9 +11016,7 @@ class WarehousesAPI:
10895
11016
  return WarehousePermissions.from_dict(res)
10896
11017
 
10897
11018
  def get_workspace_warehouse_config(self) -> GetWorkspaceWarehouseConfigResponse:
10898
- """Get the workspace configuration.
10899
-
10900
- Gets the workspace level configuration that is shared by all SQL warehouses in a workspace.
11019
+ """Gets the workspace level configuration that is shared by all SQL warehouses in a workspace.
10901
11020
 
10902
11021
  :returns: :class:`GetWorkspaceWarehouseConfigResponse`
10903
11022
  """
@@ -10910,9 +11029,7 @@ class WarehousesAPI:
10910
11029
  return GetWorkspaceWarehouseConfigResponse.from_dict(res)
10911
11030
 
10912
11031
  def list(self, *, run_as_user_id: Optional[int] = None) -> Iterator[EndpointInfo]:
10913
- """List warehouses.
10914
-
10915
- Lists all SQL warehouses that a user has manager permissions on.
11032
+ """Lists all SQL warehouses that a user has manager permissions on.
10916
11033
 
10917
11034
  :param run_as_user_id: int (optional)
10918
11035
  Service Principal which will be used to fetch the list of warehouses. If not specified, the user
@@ -10935,9 +11052,7 @@ class WarehousesAPI:
10935
11052
  def set_permissions(
10936
11053
  self, warehouse_id: str, *, access_control_list: Optional[List[WarehouseAccessControlRequest]] = None
10937
11054
  ) -> WarehousePermissions:
10938
- """Set SQL warehouse permissions.
10939
-
10940
- Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct
11055
+ """Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct
10941
11056
  permissions if none are specified. Objects can inherit permissions from their root object.
10942
11057
 
10943
11058
  :param warehouse_id: str
@@ -10970,9 +11085,7 @@ class WarehousesAPI:
10970
11085
  security_policy: Optional[SetWorkspaceWarehouseConfigRequestSecurityPolicy] = None,
10971
11086
  sql_configuration_parameters: Optional[RepeatedEndpointConfPairs] = None,
10972
11087
  ):
10973
- """Set the workspace configuration.
10974
-
10975
- Sets the workspace level configuration that is shared by all SQL warehouses in a workspace.
11088
+ """Sets the workspace level configuration that is shared by all SQL warehouses in a workspace.
10976
11089
 
10977
11090
  :param channel: :class:`Channel` (optional)
10978
11091
  Optional: Channel selection details
@@ -11026,9 +11139,7 @@ class WarehousesAPI:
11026
11139
  self._api.do("PUT", "/api/2.0/sql/config/warehouses", body=body, headers=headers)
11027
11140
 
11028
11141
  def start(self, id: str) -> Wait[GetWarehouseResponse]:
11029
- """Start a warehouse.
11030
-
11031
- Starts a SQL warehouse.
11142
+ """Starts a SQL warehouse.
11032
11143
 
11033
11144
  :param id: str
11034
11145
  Required. Id of the SQL warehouse.
@@ -11049,9 +11160,7 @@ class WarehousesAPI:
11049
11160
  return self.start(id=id).result(timeout=timeout)
11050
11161
 
11051
11162
  def stop(self, id: str) -> Wait[GetWarehouseResponse]:
11052
- """Stop a warehouse.
11053
-
11054
- Stops a SQL warehouse.
11163
+ """Stops a SQL warehouse.
11055
11164
 
11056
11165
  :param id: str
11057
11166
  Required. Id of the SQL warehouse.
@@ -11074,9 +11183,7 @@ class WarehousesAPI:
11074
11183
  def update_permissions(
11075
11184
  self, warehouse_id: str, *, access_control_list: Optional[List[WarehouseAccessControlRequest]] = None
11076
11185
  ) -> WarehousePermissions:
11077
- """Update SQL warehouse permissions.
11078
-
11079
- Updates the permissions on a SQL warehouse. SQL warehouses can inherit permissions from their root
11186
+ """Updates the permissions on a SQL warehouse. SQL warehouses can inherit permissions from their root
11080
11187
  object.
11081
11188
 
11082
11189
  :param warehouse_id: str