Skip to content

Commit 0b07020

Browse files
committed
Autogenerate SDK
1 parent 0049696 commit 0b07020

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+739
-1983
lines changed

databricks/sdk/__init__.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/apps.py

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/compute.py

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/pipelines.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/account/billing/budgets.rst

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
.. py:class:: BudgetsAPI
66
7-
These APIs manage budget configurations for this account. Budgets enable you to monitor usage across your
8-
account. You can set up budgets to either track account-wide spending, or apply filters to track the
9-
spending of specific teams, projects, or workspaces.
7+
These APIs manage budget configuration including notifications for exceeding a budget for a period. They
8+
can also retrieve the status of each budget.
109

11-
.. py:method:: create(budget: CreateBudgetConfigurationBudget) -> CreateBudgetConfigurationResponse
10+
.. py:method:: create(budget: Budget) -> WrappedBudgetWithStatus
1211
1312
1413
Usage:
@@ -46,31 +45,29 @@
4645
# cleanup
4746
a.budgets.delete(budget_id=created.budget.budget_configuration_id)
4847
49-
Create new budget.
48+
Create a new budget.
5049

51-
Create a new budget configuration for an account. For full details, see
52-
https://docs.databricks.com/en/admin/account-settings/budgets.html.
50+
Creates a new budget in the specified account.
5351

54-
:param budget: :class:`CreateBudgetConfigurationBudget`
55-
Properties of the new budget configuration.
52+
:param budget: :class:`Budget`
53+
Budget configuration to be created.
5654

57-
:returns: :class:`CreateBudgetConfigurationResponse`
55+
:returns: :class:`WrappedBudgetWithStatus`
5856

5957

6058
.. py:method:: delete(budget_id: str)
6159
6260
Delete budget.
6361

64-
Deletes a budget configuration for an account. Both account and budget configuration are specified by
65-
ID. This cannot be undone.
62+
Deletes the budget specified by its UUID.
6663

6764
:param budget_id: str
68-
The Databricks budget configuration ID.
65+
Budget ID
6966

7067

7168

7269

73-
.. py:method:: get(budget_id: str) -> GetBudgetConfigurationResponse
70+
.. py:method:: get(budget_id: str) -> WrappedBudgetWithStatus
7471
7572
7673
Usage:
@@ -110,17 +107,18 @@
110107
# cleanup
111108
a.budgets.delete(budget_id=created.budget.budget_configuration_id)
112109
113-
Get budget.
110+
Get budget and its status.
114111

115-
Gets a budget configuration for an account. Both account and budget configuration are specified by ID.
112+
Gets the budget specified by its UUID, including noncumulative status for each day that the budget is
113+
configured to include.
116114

117115
:param budget_id: str
118-
The Databricks budget configuration ID.
116+
Budget ID
119117

120-
:returns: :class:`GetBudgetConfigurationResponse`
118+
:returns: :class:`WrappedBudgetWithStatus`
121119

122120

123-
.. py:method:: list( [, page_token: Optional[str]]) -> Iterator[BudgetConfiguration]
121+
.. py:method:: list() -> Iterator[BudgetWithStatus]
124122
125123
126124
Usage:
@@ -136,16 +134,13 @@
136134
137135
Get all budgets.
138136

139-
Gets all budgets associated with this account.
137+
Gets all budgets associated with this account, including noncumulative status for each day that the
138+
budget is configured to include.
140139

141-
:param page_token: str (optional)
142-
A page token received from a previous get all budget configurations call. This token can be used to
143-
retrieve the subsequent page. Requests first page if absent.
144-
145-
:returns: Iterator over :class:`BudgetConfiguration`
140+
:returns: Iterator over :class:`BudgetWithStatus`
146141

147142

148-
.. py:method:: update(budget_id: str, budget: UpdateBudgetConfigurationBudget) -> UpdateBudgetConfigurationResponse
143+
.. py:method:: update(budget_id: str, budget: Budget)
149144
150145
151146
Usage:
@@ -206,13 +201,12 @@
206201
207202
Modify budget.
208203

209-
Updates a budget configuration for an account. Both account and budget configuration are specified by
210-
ID.
204+
Modifies a budget in this account. Budget properties are completely overwritten.
211205

212206
:param budget_id: str
213-
The Databricks budget configuration ID.
214-
:param budget: :class:`UpdateBudgetConfigurationBudget`
215-
The updated budget. This will overwrite the budget specified by the budget ID.
207+
Budget ID
208+
:param budget: :class:`Budget`
209+
Budget configuration to be created.
210+
216211

217-
:returns: :class:`UpdateBudgetConfigurationResponse`
218212

docs/account/billing/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ Configure different aspects of Databricks billing and usage.
99

1010
billable_usage
1111
budgets
12-
log_delivery
13-
usage_dashboards
12+
log_delivery

0 commit comments

Comments
 (0)