mirror of https://github.com/databricks/cli.git
3 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Andrew Nester |
20179457b9
|
Process all the fields in top level request object even if it contains request body (#2155)
## Changes When regenerating CLI with a new Go SDK https://github.com/databricks/cli/pull/2126 I've noticed that some parameters such as `no_compute` for apps are not added as flags for the CLI commands. This happened because we ignored all other top level fields if there's a request body object field. This PR relies on new AllFields method from Genkit which returns fields from both request object and request body object. |
|
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=" |
|
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). |