Skip to content

Commit 698ba47

Browse files
Merge branch 'main' into hectorcast-db/duration-timestamp
2 parents 389e0c6 + 9743868 commit 698ba47

File tree

222 files changed

+13789
-6200
lines changed

Some content is hidden

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

222 files changed

+13789
-6200
lines changed

.codegen.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"databricks/sdk/version.py": "__version__ = \"$VERSION\""
66
},
77
"toolchain": {
8-
"required": ["python3"],
8+
"required": ["python3.12"],
99
"pre_setup": [
10-
"python3 -m venv .databricks"
10+
"python3.12 -m venv .databricks"
1111
],
1212
"prepend_path": ".databricks/bin",
1313
"setup": [
@@ -17,7 +17,7 @@
1717
"make fmt",
1818
"pytest -m 'not integration' --cov=databricks --cov-report html tests",
1919
"pip install .",
20-
"python docs/gen-client-docs.py"
20+
"python3.12 docs/gen-client-docs.py"
2121
]
2222
}
2323
}

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d4c86c045ee9d0410a41ef07e8ae708673b95fa1
1+
033bcb9242b006001e2cf3956896711681de1a8c

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
databricks/sdk/__init__.py linguist-generated=true
22
databricks/sdk/errors/overrides.py linguist-generated=true
33
databricks/sdk/errors/platform.py linguist-generated=true
4+
databricks/sdk/service/aibuilder.py linguist-generated=true
45
databricks/sdk/service/apps.py linguist-generated=true
56
databricks/sdk/service/billing.py linguist-generated=true
67
databricks/sdk/service/catalog.py linguist-generated=true
78
databricks/sdk/service/cleanrooms.py linguist-generated=true
89
databricks/sdk/service/compute.py linguist-generated=true
910
databricks/sdk/service/dashboards.py linguist-generated=true
11+
databricks/sdk/service/database.py linguist-generated=true
1012
databricks/sdk/service/files.py linguist-generated=true
1113
databricks/sdk/service/iam.py linguist-generated=true
1214
databricks/sdk/service/jobs.py linguist-generated=true
@@ -15,6 +17,7 @@ databricks/sdk/service/ml.py linguist-generated=true
1517
databricks/sdk/service/oauth2.py linguist-generated=true
1618
databricks/sdk/service/pipelines.py linguist-generated=true
1719
databricks/sdk/service/provisioning.py linguist-generated=true
20+
databricks/sdk/service/qualitymonitorv2.py linguist-generated=true
1821
databricks/sdk/service/serving.py linguist-generated=true
1922
databricks/sdk/service/settings.py linguist-generated=true
2023
databricks/sdk/service/sharing.py linguist-generated=true

.github/workflows/tagging.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- name: Generate GitHub App Token
2323
id: generate-token
24-
uses: actions/create-github-app-token@v1
24+
uses: actions/create-github-app-token@v2
2525
with:
2626
app-id: ${{ secrets.DECO_SDK_TAGGING_APP_ID }}
2727
private-key: ${{ secrets.DECO_SDK_TAGGING_PRIVATE_KEY }}
@@ -49,4 +49,3 @@ jobs:
4949
GITHUB_REPOSITORY: ${{ github.repository }}
5050
run: |
5151
python tagging.py
52-

.release_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"timestamp": "2025-05-02 16:45:37+0000"
2+
"timestamp": "2025-06-12 19:21:54+0000"
33
}

CHANGELOG.md

Lines changed: 187 additions & 0 deletions
Large diffs are not rendered by default.

NEXT_CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NEXT CHANGELOG
22

3-
## Release v0.54.0
3+
## Release v0.58.0
44

55
### New Features and Improvements
66

@@ -11,3 +11,15 @@
1111
### Internal Changes
1212

1313
### API Changes
14+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.ClusterAttributes`.
15+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.ClusterDetails`.
16+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.ClusterSpec`.
17+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.CreateCluster`.
18+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.CreateInstancePool`.
19+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.EditCluster`.
20+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.EditInstancePool`.
21+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.GetInstancePool`.
22+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.InstancePoolAndStats`.
23+
* Added `remote_disk_throughput` and `total_initial_remote_disk_size` fields for `databricks.sdk.service.compute.UpdateClusterResource`.
24+
* Added `r` enum value for `databricks.sdk.service.compute.Language`.
25+
* Added `continuous` and `continuous_restart` enum values for `databricks.sdk.service.jobs.TriggerType`.

databricks/sdk/__init__.py

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

databricks/sdk/config.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,21 @@ def with_user_agent_extra(key: str, value: str):
6060
class Config:
6161
host: str = ConfigAttribute(env="DATABRICKS_HOST")
6262
account_id: str = ConfigAttribute(env="DATABRICKS_ACCOUNT_ID")
63+
64+
# PAT token.
6365
token: str = ConfigAttribute(env="DATABRICKS_TOKEN", auth="pat", sensitive=True)
66+
67+
# Audience for OIDC ID token source accepting an audience as a parameter.
68+
# For example, the GitHub action ID token source.
6469
token_audience: str = ConfigAttribute(env="DATABRICKS_TOKEN_AUDIENCE", auth="github-oidc")
70+
71+
# Environment variable for OIDC token.
72+
oidc_token_env: str = ConfigAttribute(env="DATABRICKS_OIDC_TOKEN_ENV", auth="env-oidc")
73+
oidc_token_filepath: str = ConfigAttribute(env="DATABRICKS_OIDC_TOKEN_FILE", auth="file-oidc")
74+
6575
username: str = ConfigAttribute(env="DATABRICKS_USERNAME", auth="basic")
6676
password: str = ConfigAttribute(env="DATABRICKS_PASSWORD", auth="basic", sensitive=True)
77+
6778
client_id: str = ConfigAttribute(env="DATABRICKS_CLIENT_ID", auth="oauth")
6879
client_secret: str = ConfigAttribute(env="DATABRICKS_CLIENT_SECRET", auth="oauth", sensitive=True)
6980
profile: str = ConfigAttribute(env="DATABRICKS_CONFIG_PROFILE")
@@ -194,7 +205,7 @@ def oauth_token(self) -> Token:
194205
def wrap_debug_info(self, message: str) -> str:
195206
debug_string = self.debug_string()
196207
if debug_string:
197-
message = f'{message.rstrip(".")}. {debug_string}'
208+
message = f"{message.rstrip('.')}. {debug_string}"
198209
return message
199210

200211
@staticmethod
@@ -337,9 +348,9 @@ def debug_string(self) -> str:
337348
safe = "***" if attr.sensitive else f"{value}"
338349
attrs_used.append(f"{attr.name}={safe}")
339350
if attrs_used:
340-
buf.append(f'Config: {", ".join(attrs_used)}')
351+
buf.append(f"Config: {', '.join(attrs_used)}")
341352
if envs_used:
342-
buf.append(f'Env: {", ".join(envs_used)}')
353+
buf.append(f"Env: {', '.join(envs_used)}")
343354
return ". ".join(buf)
344355

345356
def to_dict(self) -> Dict[str, any]:
@@ -481,7 +492,7 @@ def _known_file_config_loader(self):
481492
if profile not in profiles:
482493
raise ValueError(f"resolve: {config_path} has no {profile} profile configured")
483494
raw_config = profiles[profile]
484-
logger.info(f'loading {profile} profile from {config_file}: {", ".join(raw_config.keys())}')
495+
logger.info(f"loading {profile} profile from {config_file}: {', '.join(raw_config.keys())}")
485496
for k, v in raw_config.items():
486497
if k in self._inner:
487498
# don't overwrite a value previously set

0 commit comments

Comments
 (0)