Skip to content

Commit 1a1719a

Browse files
[Release] Release v0.44.1 (#887)
### New Features and Improvements * Introduce new Credential Strategies for Agents ([#882](#882)). ### Bug Fixes * Fix public documentation ### Internal Changes * GetRun logic paginates more arrays ([#867](#867)).
1 parent 75bcfd3 commit 1a1719a

File tree

143 files changed

+12550
-12408
lines changed

Some content is hidden

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

143 files changed

+12550
-12408
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Version changelog
22

3+
## [Release] Release v0.44.1
4+
5+
### New Features and Improvements
6+
7+
* Introduce new Credential Strategies for Agents ([#882](https://github.com/databricks/databricks-sdk-py/pull/882)).
8+
9+
10+
### Internal Changes
11+
12+
* GetRun logic paginates more arrays ([#867](https://github.com/databricks/databricks-sdk-py/pull/867)).
13+
14+
15+
316
## [Release] Release v0.44.0
417

518
### Internal Changes

databricks/sdk/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.44.0'
1+
__version__ = '0.44.1'

docs/account/billing/billable_usage.rst

+22-21
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.. py:class:: BillableUsageAPI
66
77
This API allows you to download billable usage logs for the specified account and date range. This feature
8-
works with all account types.
8+
works with all account types.
99

1010
.. py:method:: download(start_month: str, end_month: str [, personal_data: Optional[bool]]) -> DownloadResponse
1111
@@ -21,23 +21,24 @@ works with all account types.
2121
resp = a.billable_usage.download(start_month="2024-08", end_month="2024-09")
2222
2323
Return billable usage logs.
24-
25-
Returns billable usage logs in CSV format for the specified account and date range. For the data
26-
schema, see [CSV file schema]. Note that this method might take multiple minutes to complete.
27-
28-
**Warning**: Depending on the queried date range, the number of workspaces in the account, the size of
29-
the response and the internet speed of the caller, this API may hit a timeout after a few minutes. If
30-
you experience this, try to mitigate by calling the API with narrower date ranges.
31-
32-
[CSV file schema]: https://docs.databricks.com/administration-guide/account-settings/usage-analysis.html#schema
33-
34-
:param start_month: str
35-
Format: `YYYY-MM`. First month to return billable usage logs for. This field is required.
36-
:param end_month: str
37-
Format: `YYYY-MM`. Last month to return billable usage logs for. This field is required.
38-
:param personal_data: bool (optional)
39-
Specify whether to include personally identifiable information in the billable usage logs, for
40-
example the email addresses of cluster creators. Handle this information with care. Defaults to
41-
false.
42-
43-
:returns: :class:`DownloadResponse`
24+
25+
Returns billable usage logs in CSV format for the specified account and date range. For the data
26+
schema, see [CSV file schema]. Note that this method might take multiple minutes to complete.
27+
28+
**Warning**: Depending on the queried date range, the number of workspaces in the account, the size of
29+
the response and the internet speed of the caller, this API may hit a timeout after a few minutes. If
30+
you experience this, try to mitigate by calling the API with narrower date ranges.
31+
32+
[CSV file schema]: https://docs.databricks.com/administration-guide/account-settings/usage-analysis.html#schema
33+
34+
:param start_month: str
35+
Format: `YYYY-MM`. First month to return billable usage logs for. This field is required.
36+
:param end_month: str
37+
Format: `YYYY-MM`. Last month to return billable usage logs for. This field is required.
38+
:param personal_data: bool (optional)
39+
Specify whether to include personally identifiable information in the billable usage logs, for
40+
example the email addresses of cluster creators. Handle this information with care. Defaults to
41+
false.
42+
43+
:returns: :class:`DownloadResponse`
44+

docs/account/billing/budget_policy.rst

+61-60
Original file line numberDiff line numberDiff line change
@@ -9,79 +9,80 @@
99
.. py:method:: create( [, custom_tags: Optional[List[compute.CustomPolicyTag]], policy_name: Optional[str], request_id: Optional[str]]) -> BudgetPolicy
1010
1111
Create a budget policy.
12-
13-
Creates a new policy.
14-
15-
:param custom_tags: List[:class:`CustomPolicyTag`] (optional)
16-
A list of tags defined by the customer. At most 40 entries are allowed per policy.
17-
:param policy_name: str (optional)
18-
The name of the policy. - Must be unique among active policies. - Can contain only characters of
19-
0-9, a-z, A-Z, -, =, ., :, /, @, _, +, whitespace.
20-
:param request_id: str (optional)
21-
A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is
22-
recommended. This request is only idempotent if a `request_id` is provided.
23-
24-
:returns: :class:`BudgetPolicy`
25-
12+
13+
Creates a new policy.
14+
15+
:param custom_tags: List[:class:`CustomPolicyTag`] (optional)
16+
A list of tags defined by the customer. At most 40 entries are allowed per policy.
17+
:param policy_name: str (optional)
18+
The name of the policy. - Must be unique among active policies. - Can contain only characters of
19+
0-9, a-z, A-Z, -, =, ., :, /, @, _, +, whitespace.
20+
:param request_id: str (optional)
21+
A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is
22+
recommended. This request is only idempotent if a `request_id` is provided.
23+
24+
:returns: :class:`BudgetPolicy`
25+
2626

2727
.. py:method:: delete(policy_id: str)
2828
2929
Delete a budget policy.
30-
31-
Deletes a policy
32-
33-
:param policy_id: str
34-
The Id of the policy.
35-
36-
37-
30+
31+
Deletes a policy
32+
33+
:param policy_id: str
34+
The Id of the policy.
35+
36+
37+
3838

3939
.. py:method:: get(policy_id: str) -> BudgetPolicy
4040
4141
Get a budget policy.
42-
43-
Retrieves a policy by it's ID.
44-
45-
:param policy_id: str
46-
The Id of the policy.
47-
48-
:returns: :class:`BudgetPolicy`
49-
42+
43+
Retrieves a policy by it's ID.
44+
45+
:param policy_id: str
46+
The Id of the policy.
47+
48+
:returns: :class:`BudgetPolicy`
49+
5050

5151
.. py:method:: list( [, filter_by: Optional[Filter], page_size: Optional[int], page_token: Optional[str], sort_spec: Optional[SortSpec]]) -> Iterator[BudgetPolicy]
5252
5353
List policies.
54-
55-
Lists all policies. Policies are returned in the alphabetically ascending order of their names.
56-
57-
:param filter_by: :class:`Filter` (optional)
58-
A filter to apply to the list of policies.
59-
:param page_size: int (optional)
60-
The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be
61-
returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
62-
:param page_token: str (optional)
63-
A page token, received from a previous `ListServerlessPolicies` call. Provide this to retrieve the
64-
subsequent page. If unspecified, the first page will be returned.
65-
66-
When paginating, all other parameters provided to `ListServerlessPoliciesRequest` must match the
67-
call that provided the page token.
68-
:param sort_spec: :class:`SortSpec` (optional)
69-
The sort specification.
70-
71-
:returns: Iterator over :class:`BudgetPolicy`
72-
54+
55+
Lists all policies. Policies are returned in the alphabetically ascending order of their names.
56+
57+
:param filter_by: :class:`Filter` (optional)
58+
A filter to apply to the list of policies.
59+
:param page_size: int (optional)
60+
The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be
61+
returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
62+
:param page_token: str (optional)
63+
A page token, received from a previous `ListServerlessPolicies` call. Provide this to retrieve the
64+
subsequent page. If unspecified, the first page will be returned.
65+
66+
When paginating, all other parameters provided to `ListServerlessPoliciesRequest` must match the
67+
call that provided the page token.
68+
:param sort_spec: :class:`SortSpec` (optional)
69+
The sort specification.
70+
71+
:returns: Iterator over :class:`BudgetPolicy`
72+
7373

7474
.. py:method:: update(policy_id: str [, limit_config: Optional[LimitConfig], policy: Optional[BudgetPolicy]]) -> BudgetPolicy
7575
7676
Update a budget policy.
77-
78-
Updates a policy
79-
80-
:param policy_id: str
81-
The Id of the policy. This field is generated by Databricks and globally unique.
82-
:param limit_config: :class:`LimitConfig` (optional)
83-
DEPRECATED. This is redundant field as LimitConfig is part of the BudgetPolicy
84-
:param policy: :class:`BudgetPolicy` (optional)
85-
Contains the BudgetPolicy details.
86-
87-
:returns: :class:`BudgetPolicy`
77+
78+
Updates a policy
79+
80+
:param policy_id: str
81+
The Id of the policy. This field is generated by Databricks and globally unique.
82+
:param limit_config: :class:`LimitConfig` (optional)
83+
DEPRECATED. This is redundant field as LimitConfig is part of the BudgetPolicy
84+
:param policy: :class:`BudgetPolicy` (optional)
85+
Contains the BudgetPolicy details.
86+
87+
:returns: :class:`BudgetPolicy`
88+

docs/account/billing/budgets.rst

+48-47
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
.. py:class:: BudgetsAPI
66
77
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.
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.
1010

1111
.. py:method:: create(budget: CreateBudgetConfigurationBudget) -> CreateBudgetConfigurationResponse
1212
@@ -47,28 +47,28 @@ spending of specific teams, projects, or workspaces.
4747
a.budgets.delete(budget_id=created.budget.budget_configuration_id)
4848
4949
Create new budget.
50-
51-
Create a new budget configuration for an account. For full details, see
52-
https://docs.databricks.com/en/admin/account-settings/budgets.html.
53-
54-
:param budget: :class:`CreateBudgetConfigurationBudget`
55-
Properties of the new budget configuration.
56-
57-
:returns: :class:`CreateBudgetConfigurationResponse`
58-
50+
51+
Create a new budget configuration for an account. For full details, see
52+
https://docs.databricks.com/en/admin/account-settings/budgets.html.
53+
54+
:param budget: :class:`CreateBudgetConfigurationBudget`
55+
Properties of the new budget configuration.
56+
57+
:returns: :class:`CreateBudgetConfigurationResponse`
58+
5959

6060
.. py:method:: delete(budget_id: str)
6161
6262
Delete budget.
63-
64-
Deletes a budget configuration for an account. Both account and budget configuration are specified by
65-
ID. This cannot be undone.
66-
67-
:param budget_id: str
68-
The Databricks budget configuration ID.
69-
70-
71-
63+
64+
Deletes a budget configuration for an account. Both account and budget configuration are specified by
65+
ID. This cannot be undone.
66+
67+
:param budget_id: str
68+
The Databricks budget configuration ID.
69+
70+
71+
7272

7373
.. py:method:: get(budget_id: str) -> GetBudgetConfigurationResponse
7474
@@ -111,14 +111,14 @@ ID. This cannot be undone.
111111
a.budgets.delete(budget_id=created.budget.budget_configuration_id)
112112
113113
Get budget.
114-
115-
Gets a budget configuration for an account. Both account and budget configuration are specified by ID.
116-
117-
:param budget_id: str
118-
The budget configuration ID
119-
120-
:returns: :class:`GetBudgetConfigurationResponse`
121-
114+
115+
Gets a budget configuration for an account. Both account and budget configuration are specified by ID.
116+
117+
:param budget_id: str
118+
The budget configuration ID
119+
120+
:returns: :class:`GetBudgetConfigurationResponse`
121+
122122

123123
.. py:method:: list( [, page_token: Optional[str]]) -> Iterator[BudgetConfiguration]
124124
@@ -135,15 +135,15 @@ Gets a budget configuration for an account. Both account and budget configuratio
135135
all = a.budgets.list(billing.ListBudgetConfigurationsRequest())
136136
137137
Get all budgets.
138-
139-
Gets all budgets associated with this account.
140-
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`
146-
138+
139+
Gets all budgets associated with this account.
140+
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`
146+
147147

148148
.. py:method:: update(budget_id: str, budget: UpdateBudgetConfigurationBudget) -> UpdateBudgetConfigurationResponse
149149
@@ -205,13 +205,14 @@ Gets all budgets associated with this account.
205205
a.budgets.delete(budget_id=created.budget.budget_configuration_id)
206206
207207
Modify budget.
208-
209-
Updates a budget configuration for an account. Both account and budget configuration are specified by
210-
ID.
211-
212-
: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.
216-
217-
:returns: :class:`UpdateBudgetConfigurationResponse`
208+
209+
Updates a budget configuration for an account. Both account and budget configuration are specified by
210+
ID.
211+
212+
: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.
216+
217+
:returns: :class:`UpdateBudgetConfigurationResponse`
218+

0 commit comments

Comments
 (0)