mirror of https://github.com/databricks/cli.git
4 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
dependabot[bot] |
72e677d0ac
|
Bump github.com/databricks/databricks-sdk-go from 0.54.0 to 0.55.0 (#2126)
Bumps [github.com/databricks/databricks-sdk-go](https://github.com/databricks/databricks-sdk-go) from 0.54.0 to 0.55.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/databricks/databricks-sdk-go/releases">github.com/databricks/databricks-sdk-go's releases</a>.</em></p> <blockquote> <h2>v0.55.0</h2> <h3>Internal Changes</h3> <ul> <li>Bump staticcheck to 0.5.1 and add go 1.23 test coverage (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1106">#1106</a>).</li> <li>Bump x/net, x/crypto dependencies (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1107">#1107</a>).</li> <li>Create custom codeql.yml (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1114">#1114</a>).</li> <li>Decouple serving and oauth2 package (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1110">#1110</a>).</li> <li>Migrate workflows that need write access to use hosted runners (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1112">#1112</a>).</li> <li>Move package credentials in config (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1115">#1115</a>).</li> <li>Update Queries test (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1104">#1104</a>).</li> </ul> <h3>API Changes:</h3> <ul> <li>Added <code>NoCompute</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/apps#CreateAppRequest">apps.CreateAppRequest</a>.</li> <li>Added <code>HasMore</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#BaseJob">jobs.BaseJob</a>.</li> <li>Added <code>HasMore</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#BaseRun">jobs.BaseRun</a>.</li> <li>Added <code>PageToken</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#GetJobRequest">jobs.GetJobRequest</a>.</li> <li>Added <code>HasMore</code> and <code>NextPageToken</code> fields for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#Job">jobs.Job</a>.</li> <li>Added <code>HasMore</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#Run">jobs.Run</a>.</li> <li>Added <code>RunAs</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#CreatePipeline">pipelines.CreatePipeline</a>.</li> <li>Added <code>RunAs</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#EditPipeline">pipelines.EditPipeline</a>.</li> <li>Added <code>AuthorizationDetails</code> and <code>EndpointUrl</code> fields for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/serving#DataPlaneInfo">serving.DataPlaneInfo</a>.</li> <li>[Breaking] Changed <code>Update</code> method for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#AccountFederationPolicyAPI">a.AccountFederationPolicy</a> account-level service with new required argument order.</li> <li>[Breaking] Changed <code>Update</code> method for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#ServicePrincipalFederationPolicyAPI">a.ServicePrincipalFederationPolicy</a> account-level service with new required argument order.</li> <li>Changed <code>UpdateMask</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#UpdateAccountFederationPolicyRequest">oauth2.UpdateAccountFederationPolicyRequest</a> to no longer be required.</li> <li>Changed <code>UpdateMask</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#UpdateServicePrincipalFederationPolicyRequest">oauth2.UpdateServicePrincipalFederationPolicyRequest</a> to no longer be required.</li> <li>[Breaking] Changed <code>DaysOfWeek</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#RestartWindow">pipelines.RestartWindow</a> to type <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#DayOfWeekList">pipelines.DayOfWeekList</a>.</li> </ul> <p>OpenAPI SHA: 779817ed8d63031f5ea761fbd25ee84f38feec0d, Date: 2025-01-08</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/databricks/databricks-sdk-go/blob/main/CHANGELOG.md">github.com/databricks/databricks-sdk-go's changelog</a>.</em></p> <blockquote> <h2>[Release] Release v0.55.0</h2> <h3>Internal Changes</h3> <ul> <li>Bump staticcheck to 0.5.1 and add go 1.23 test coverage (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1106">#1106</a>).</li> <li>Bump x/net, x/crypto dependencies (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1107">#1107</a>).</li> <li>Create custom codeql.yml (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1114">#1114</a>).</li> <li>Decouple serving and oauth2 package (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1110">#1110</a>).</li> <li>Migrate workflows that need write access to use hosted runners (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1112">#1112</a>).</li> <li>Move package credentials in config (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1115">#1115</a>).</li> <li>Update Queries test (<a href="https://redirect.github.com/databricks/databricks-sdk-go/pull/1104">#1104</a>).</li> </ul> <h3>API Changes:</h3> <ul> <li>Added <code>NoCompute</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/apps#CreateAppRequest">apps.CreateAppRequest</a>.</li> <li>Added <code>HasMore</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#BaseJob">jobs.BaseJob</a>.</li> <li>Added <code>HasMore</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#BaseRun">jobs.BaseRun</a>.</li> <li>Added <code>PageToken</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#GetJobRequest">jobs.GetJobRequest</a>.</li> <li>Added <code>HasMore</code> and <code>NextPageToken</code> fields for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#Job">jobs.Job</a>.</li> <li>Added <code>HasMore</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/jobs#Run">jobs.Run</a>.</li> <li>Added <code>RunAs</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#CreatePipeline">pipelines.CreatePipeline</a>.</li> <li>Added <code>RunAs</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#EditPipeline">pipelines.EditPipeline</a>.</li> <li>Added <code>AuthorizationDetails</code> and <code>EndpointUrl</code> fields for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/serving#DataPlaneInfo">serving.DataPlaneInfo</a>.</li> <li>[Breaking] Changed <code>Update</code> method for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#AccountFederationPolicyAPI">a.AccountFederationPolicy</a> account-level service with new required argument order.</li> <li>[Breaking] Changed <code>Update</code> method for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#ServicePrincipalFederationPolicyAPI">a.ServicePrincipalFederationPolicy</a> account-level service with new required argument order.</li> <li>Changed <code>UpdateMask</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#UpdateAccountFederationPolicyRequest">oauth2.UpdateAccountFederationPolicyRequest</a> to no longer be required.</li> <li>Changed <code>UpdateMask</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#UpdateServicePrincipalFederationPolicyRequest">oauth2.UpdateServicePrincipalFederationPolicyRequest</a> to no longer be required.</li> <li>[Breaking] Changed <code>DaysOfWeek</code> field for <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#RestartWindow">pipelines.RestartWindow</a> to type <a href="https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#DayOfWeekList">pipelines.DayOfWeekList</a>.</li> </ul> <p>OpenAPI SHA: 779817ed8d63031f5ea761fbd25ee84f38feec0d, Date: 2025-01-08</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
|
Ilya Kuznetsov |
793bf2b995
|
fix: Empty schema fields in OpenAPI spec (#2045)
## Changes 1. Removes default yaml-fields during schema generation, caused by [this PR](https://github.com/databricks/cli/pull/2032) (current yaml package can't read `json` annotations in struct fields) 2. Addresses missing annotations for fields from OpenAPI spec, which are named differently in go SDK 3. Adds filtering for annotations.yaml to include only CLI package fields 4. Implements alphabetical sort for yaml keys to avoid unnecessary diff in PRs ## Tests Manually tested |
|
Andrew Nester |
59f0859e00
|
Upgrade Go SDK to 0.54.0 (#2029)
## Changes * Added [a.AccountFederationPolicy](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#AccountFederationPolicyAPI) account-level service and [a.ServicePrincipalFederationPolicy](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/oauth2#ServicePrincipalFederationPolicyAPI) account-level service. * Added `IsSingleNode`, `Kind` and `UseMlRuntime` fields for Cluster commands. * Added `UpdateParameterSyntax` field for [dashboards.MigrateDashboardRequest](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/dashboards#MigrateDashboardRequest). |
|
Ilya Kuznetsov |
042c8d88c6
|
Custom annotations for bundle-specific JSON schema fields (#1957)
## Changes Adds annotations to json-schema for fields which are not covered by OpenAPI spec. Custom descriptions were copy-pasted from documentation PR which is still WIP so descriptions for some fields are missing Further improvements: * documentation autogen based on json-schema * fix missing descriptions ## Tests This script is not part of CLI package so I didn't test all corner cases. Few high-level tests were added to be sure that schema annotations is in sync with actual config --------- Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com> |