Skip to content

Commit a9984ef

Browse files
authored
Upgrade Go SDK to v0.91.0 (#3948)
## Changes <!-- Brief summary of your changes that is easy to understand --> See - https://github.com/databricks/databricks-sdk-go/releases/tag/v0.90.0 - https://github.com/databricks/databricks-sdk-go/releases/tag/v0.91.0
1 parent 6cb3c85 commit a9984ef

File tree

23 files changed

+81
-37
lines changed

23 files changed

+81
-37
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e2018bb00cba203508f8afe5a6d41bd49789ba25
1+
59c4c0f3d5f0ef00cd5350b5674e941a7606d91a

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ cli
1717
*.log
1818
coverage.txt
1919
coverage-acceptance.txt
20+
.coverage
2021

2122
__pycache__
2223
*.pyc

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
### CLI
88

99
### Dependency updates
10+
* Upgrade Go SDK to 0.91.0 ([#3948](https://github.com/databricks/cli/pull/3948))
1011
* Bump Alpine Linux to 3.22 in the Docker image ([#3942](https://github.com/databricks/cli/pull/3942))
1112

13+
1214
### Bundles
1315
* Update templates to use serverless environment version 4 and matching Python version ([#3897](https://github.com/databricks/cli/pull/3897))
1416
* Add a language prompt to the `default-minimal` template ([#3918](https://github.com/databricks/cli/pull/3918))

bundle/internal/schema/annotations_openapi.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3176,7 +3176,9 @@ github.com/databricks/databricks-sdk-go/service/jobs.Source:
31763176
github.com/databricks/databricks-sdk-go/service/jobs.SparkJarTask:
31773177
"jar_uri":
31783178
"description": |-
3179-
Deprecated since 04/2016. Provide a `jar` through the `libraries` field instead. For an example, see :method:jobs/create.
3179+
Deprecated since 04/2016. For classic compute, provide a `jar` through the `libraries` field instead. For serverless compute, provide a `jar` though the `java_dependencies` field inside the `environments` list.
3180+
3181+
See the examples of classic and serverless compute usage at the top of the page.
31803182
"deprecation_message": |-
31813183
This field is deprecated
31823184
"main_class_name":
@@ -3791,6 +3793,20 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionSourceType:
37913793
CONFLUENCE
37923794
- |-
37933795
META_MARKETING
3796+
- |-
3797+
GOOGLE_ADS
3798+
- |-
3799+
TIKTOK_ADS
3800+
- |-
3801+
SALESFORCE_MARKETING_CLOUD
3802+
- |-
3803+
HUBSPOT
3804+
- |-
3805+
WORKDAY_HCM
3806+
- |-
3807+
GUIDEWIRE
3808+
- |-
3809+
ZENDESK
37943810
- |-
37953811
FOREIGN_CATALOG
37963812
github.com/databricks/databricks-sdk-go/service/pipelines.ManualTrigger: {}

bundle/internal/validation/generated/enum_fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/schema/jsonschema.json

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

cmd/account/workspaces/workspaces.go

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

cmd/auth/login.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ func setHostAndAccountId(ctx context.Context, existingProfile *profile.Profile,
261261

262262
// If the account-id was not provided as a cmd line flag, try to read it from
263263
// the specified profile.
264+
//nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes
264265
isAccountClient := (&config.Config{Host: authArguments.Host}).IsAccountClient()
265266
accountID := authArguments.AccountID
266267
if isAccountClient && accountID == "" {

cmd/auth/profiles.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (c *profileMetadata) Load(ctx context.Context, configFilePath string, skipV
5151
return
5252
}
5353

54+
//nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes
5455
if cfg.IsAccountClient() {
5556
a, err := databricks.NewAccountClient((*databricks.Config)(cfg))
5657
if err != nil {

cmd/auth/token_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ func (m *MockApiClient) GetWorkspaceOAuthEndpoints(ctx context.Context, workspac
6666
}, nil
6767
}
6868

69+
// GetUnifiedOAuthEndpoints implements u2m.OAuthEndpointSupplier.
70+
func (m *MockApiClient) GetUnifiedOAuthEndpoints(ctx context.Context, host, accountId string) (*u2m.OAuthAuthorizationServer, error) {
71+
return &u2m.OAuthAuthorizationServer{
72+
TokenEndpoint: host + "/token",
73+
AuthorizationEndpoint: host + "/authorize",
74+
}, nil
75+
}
76+
6977
var _ u2m.OAuthEndpointSupplier = (*MockApiClient)(nil)
7078

7179
func TestToken_loadToken(t *testing.T) {

0 commit comments

Comments
 (0)