diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index b7f56b6d8a..19009050ac 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -e2018bb00cba203508f8afe5a6d41bd49789ba25 \ No newline at end of file +59c4c0f3d5f0ef00cd5350b5674e941a7606d91a \ No newline at end of file diff --git a/.gitignore b/.gitignore index b1ac989e33..4ca629d2f5 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ cli *.log coverage.txt coverage-acceptance.txt +.coverage __pycache__ *.pyc diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index eca2f33fb5..3d6d696cf4 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -7,8 +7,10 @@ ### CLI ### Dependency updates +* Upgrade Go SDK to 0.91.0 ([#3948](https://github.com/databricks/cli/pull/3948)) * Bump Alpine Linux to 3.22 in the Docker image ([#3942](https://github.com/databricks/cli/pull/3942)) + ### Bundles * Update templates to use serverless environment version 4 and matching Python version ([#3897](https://github.com/databricks/cli/pull/3897)) * Add a language prompt to the `default-minimal` template ([#3918](https://github.com/databricks/cli/pull/3918)) diff --git a/bundle/internal/schema/annotations_openapi.yml b/bundle/internal/schema/annotations_openapi.yml index 9c8a8e413a..6e1b1da081 100644 --- a/bundle/internal/schema/annotations_openapi.yml +++ b/bundle/internal/schema/annotations_openapi.yml @@ -3176,7 +3176,9 @@ github.com/databricks/databricks-sdk-go/service/jobs.Source: github.com/databricks/databricks-sdk-go/service/jobs.SparkJarTask: "jar_uri": "description": |- - Deprecated since 04/2016. Provide a `jar` through the `libraries` field instead. For an example, see :method:jobs/create. + 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. + + See the examples of classic and serverless compute usage at the top of the page. "deprecation_message": |- This field is deprecated "main_class_name": @@ -3791,6 +3793,20 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionSourceType: CONFLUENCE - |- META_MARKETING + - |- + GOOGLE_ADS + - |- + TIKTOK_ADS + - |- + SALESFORCE_MARKETING_CLOUD + - |- + HUBSPOT + - |- + WORKDAY_HCM + - |- + GUIDEWIRE + - |- + ZENDESK - |- FOREIGN_CATALOG github.com/databricks/databricks-sdk-go/service/pipelines.ManualTrigger: {} diff --git a/bundle/internal/validation/generated/enum_fields.go b/bundle/internal/validation/generated/enum_fields.go index 9975314ffc..c8b13327fc 100644 --- a/bundle/internal/validation/generated/enum_fields.go +++ b/bundle/internal/validation/generated/enum_fields.go @@ -116,7 +116,7 @@ var EnumFields = map[string][]string{ "resources.pipelines.*.ingestion_definition.objects[*].report.table_configuration.scd_type": {"APPEND_ONLY", "SCD_TYPE_1", "SCD_TYPE_2"}, "resources.pipelines.*.ingestion_definition.objects[*].schema.table_configuration.scd_type": {"APPEND_ONLY", "SCD_TYPE_1", "SCD_TYPE_2"}, "resources.pipelines.*.ingestion_definition.objects[*].table.table_configuration.scd_type": {"APPEND_ONLY", "SCD_TYPE_1", "SCD_TYPE_2"}, - "resources.pipelines.*.ingestion_definition.source_type": {"BIGQUERY", "CONFLUENCE", "DYNAMICS365", "FOREIGN_CATALOG", "GA4_RAW_DATA", "MANAGED_POSTGRESQL", "META_MARKETING", "MYSQL", "NETSUITE", "ORACLE", "POSTGRESQL", "REDSHIFT", "SALESFORCE", "SERVICENOW", "SHAREPOINT", "SQLDW", "SQLSERVER", "TERADATA", "WORKDAY_RAAS"}, + "resources.pipelines.*.ingestion_definition.source_type": {"BIGQUERY", "CONFLUENCE", "DYNAMICS365", "FOREIGN_CATALOG", "GA4_RAW_DATA", "GOOGLE_ADS", "GUIDEWIRE", "HUBSPOT", "MANAGED_POSTGRESQL", "META_MARKETING", "MYSQL", "NETSUITE", "ORACLE", "POSTGRESQL", "REDSHIFT", "SALESFORCE", "SALESFORCE_MARKETING_CLOUD", "SERVICENOW", "SHAREPOINT", "SQLDW", "SQLSERVER", "TERADATA", "TIKTOK_ADS", "WORKDAY_HCM", "WORKDAY_RAAS", "ZENDESK"}, "resources.pipelines.*.ingestion_definition.table_configuration.scd_type": {"APPEND_ONLY", "SCD_TYPE_1", "SCD_TYPE_2"}, "resources.pipelines.*.restart_window.days_of_week[*]": {"FRIDAY", "MONDAY", "SATURDAY", "SUNDAY", "THURSDAY", "TUESDAY", "WEDNESDAY"}, diff --git a/bundle/schema/jsonschema.json b/bundle/schema/jsonschema.json index bf2d08b01b..3a92b4e929 100644 --- a/bundle/schema/jsonschema.json +++ b/bundle/schema/jsonschema.json @@ -6023,7 +6023,7 @@ "type": "object", "properties": { "jar_uri": { - "description": "Deprecated since 04/2016. Provide a `jar` through the `libraries` field instead. For an example, see :method:jobs/create.", + "description": "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.\n\nSee the examples of classic and serverless compute usage at the top of the page.", "$ref": "#/$defs/string", "deprecationMessage": "This field is deprecated", "deprecated": true @@ -7106,6 +7106,13 @@ "DYNAMICS365", "CONFLUENCE", "META_MARKETING", + "GOOGLE_ADS", + "TIKTOK_ADS", + "SALESFORCE_MARKETING_CLOUD", + "HUBSPOT", + "WORKDAY_HCM", + "GUIDEWIRE", + "ZENDESK", "FOREIGN_CATALOG" ] }, diff --git a/cmd/account/workspaces/workspaces.go b/cmd/account/workspaces/workspaces.go index 6a360bcd48..9272b1f8a1 100755 --- a/cmd/account/workspaces/workspaces.go +++ b/cmd/account/workspaces/workspaces.go @@ -95,7 +95,7 @@ func newCreate() *cobra.Command { PREMIUM, STANDARD, UNKNOWN, -]`) +].`) cmd.Flags().StringVar(&createReq.PrivateAccessSettingsId, "private-access-settings-id", createReq.PrivateAccessSettingsId, `ID of the workspace's private access settings object.`) cmd.Flags().StringVar(&createReq.StorageConfigurationId, "storage-configuration-id", createReq.StorageConfigurationId, `ID of the workspace's storage configuration object.`) cmd.Flags().StringVar(&createReq.StorageCustomerManagedKeyId, "storage-customer-managed-key-id", createReq.StorageCustomerManagedKeyId, `The ID of the workspace's storage encryption key configuration object.`) @@ -399,7 +399,7 @@ func newUpdate() *cobra.Command { NOT_PROVISIONED, PROVISIONING, RUNNING, -]`) +].`) // TODO: complex arg: gcp_managed_network_config // TODO: complex arg: gke_config cmd.Flags().StringVar(&updateReq.CustomerFacingWorkspace.Location, "location", updateReq.CustomerFacingWorkspace.Location, `The Google Cloud region of the workspace data plane in your Google account (for example, us-east4).`) diff --git a/cmd/auth/login.go b/cmd/auth/login.go index 265f2c8ad0..3f73fd8f74 100644 --- a/cmd/auth/login.go +++ b/cmd/auth/login.go @@ -261,6 +261,7 @@ func setHostAndAccountId(ctx context.Context, existingProfile *profile.Profile, // If the account-id was not provided as a cmd line flag, try to read it from // the specified profile. + //nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes isAccountClient := (&config.Config{Host: authArguments.Host}).IsAccountClient() accountID := authArguments.AccountID if isAccountClient && accountID == "" { diff --git a/cmd/auth/profiles.go b/cmd/auth/profiles.go index 6f4bff5f5e..7181f2b1c6 100644 --- a/cmd/auth/profiles.go +++ b/cmd/auth/profiles.go @@ -51,6 +51,7 @@ func (c *profileMetadata) Load(ctx context.Context, configFilePath string, skipV return } + //nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes if cfg.IsAccountClient() { a, err := databricks.NewAccountClient((*databricks.Config)(cfg)) if err != nil { diff --git a/cmd/auth/token_test.go b/cmd/auth/token_test.go index feb0b0ae59..e342b27e77 100644 --- a/cmd/auth/token_test.go +++ b/cmd/auth/token_test.go @@ -66,6 +66,14 @@ func (m *MockApiClient) GetWorkspaceOAuthEndpoints(ctx context.Context, workspac }, nil } +// GetUnifiedOAuthEndpoints implements u2m.OAuthEndpointSupplier. +func (m *MockApiClient) GetUnifiedOAuthEndpoints(ctx context.Context, host, accountId string) (*u2m.OAuthAuthorizationServer, error) { + return &u2m.OAuthAuthorizationServer{ + TokenEndpoint: host + "/token", + AuthorizationEndpoint: host + "/authorize", + }, nil +} + var _ u2m.OAuthEndpointSupplier = (*MockApiClient)(nil) func TestToken_loadToken(t *testing.T) { diff --git a/cmd/labs/project/entrypoint.go b/cmd/labs/project/entrypoint.go index 9b7adfa340..b6150bd6fd 100644 --- a/cmd/labs/project/entrypoint.go +++ b/cmd/labs/project/entrypoint.go @@ -248,6 +248,7 @@ func (e *Entrypoint) validLogin(cmd *cobra.Command) (*config.Config, error) { // an account profile during installation (anymore) and just prompt for it, when context // does require it. This also means that we always prompt for account-level commands, unless // users specify a `--profile` flag. + //nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes isACC := cfg.IsAccountClient() if e.IsAccountLevel && cfg.Profile == "" { if !cmdio.IsPromptSupported(ctx) { diff --git a/cmd/labs/project/installer.go b/cmd/labs/project/installer.go index c401793f0d..5025ae28dd 100644 --- a/cmd/labs/project/installer.go +++ b/cmd/labs/project/installer.go @@ -177,6 +177,7 @@ func (i *installer) login(ctx context.Context) (*databricks.WorkspaceClient, err } else if err != nil { return nil, fmt.Errorf("valid: %w", err) } + //nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes if !i.HasAccountLevelCommands() && cfg.IsAccountClient() { return nil, errors.New("got account-level client, but no account-level commands") } diff --git a/cmd/labs/project/login.go b/cmd/labs/project/login.go index 1102773744..b8245e1ac9 100644 --- a/cmd/labs/project/login.go +++ b/cmd/labs/project/login.go @@ -23,6 +23,7 @@ type loginConfig struct { } func (lc *loginConfig) askWorkspace(ctx context.Context, cfg *config.Config) (*databricks.WorkspaceClient, error) { + //nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes if cfg.IsAccountClient() { return nil, nil } diff --git a/cmd/workspace/apps/apps.go b/cmd/workspace/apps/apps.go index a3b18a0b08..8def993cc6 100755 --- a/cmd/workspace/apps/apps.go +++ b/cmd/workspace/apps/apps.go @@ -97,7 +97,7 @@ func newCreate() *cobra.Command { cmd.Use = "create NAME" cmd.Short = `Create an app.` cmd.Long = `Create an app. - + Creates a new app. Arguments: @@ -205,20 +205,20 @@ func newCreateUpdate() *cobra.Command { cmd.Use = "create-update APP_NAME UPDATE_MASK" cmd.Short = `Create an app update.` cmd.Long = `Create an app update. - + Creates an app update and starts the update process. The update process is asynchronous and the status of the update can be checked with the GetAppUpdate method. Arguments: - APP_NAME: + APP_NAME: UPDATE_MASK: The field mask must be a single string, with multiple fields separated by commas (no spaces). The field path is relative to the resource object, using a dot (.) to navigate sub-fields (e.g., author.given_name). Specification of elements in sequence or map fields is not allowed, as only the entire collection field can be specified. Field names must exactly match the resource field names. - + A field mask of * indicates full replacement. It’s recommended to always explicitly list the fields being updated and avoid using * wildcards, as it can lead to unintended results if the API changes in the @@ -315,7 +315,7 @@ func newDelete() *cobra.Command { cmd.Use = "delete NAME" cmd.Short = `Delete an app.` cmd.Long = `Delete an app. - + Deletes an app. Arguments: @@ -387,7 +387,7 @@ func newDeploy() *cobra.Command { cmd.Use = "deploy APP_NAME" cmd.Short = `Create an app deployment.` cmd.Long = `Create an app deployment. - + Creates an app deployment for the app with the supplied name. Arguments: @@ -474,7 +474,7 @@ func newGet() *cobra.Command { cmd.Use = "get NAME" cmd.Short = `Get an app.` cmd.Long = `Get an app. - + Retrieves information for the app with the supplied name. Arguments: @@ -530,7 +530,7 @@ func newGetDeployment() *cobra.Command { cmd.Use = "get-deployment APP_NAME DEPLOYMENT_ID" cmd.Short = `Get an app deployment.` cmd.Long = `Get an app deployment. - + Retrieves information for the app deployment with the supplied name and deployment id. @@ -589,7 +589,7 @@ func newGetPermissionLevels() *cobra.Command { cmd.Use = "get-permission-levels APP_NAME" cmd.Short = `Get app permission levels.` cmd.Long = `Get app permission levels. - + Gets the permission levels that a user can have on an object. Arguments: @@ -645,7 +645,7 @@ func newGetPermissions() *cobra.Command { cmd.Use = "get-permissions APP_NAME" cmd.Short = `Get app permissions.` cmd.Long = `Get app permissions. - + Gets the permissions of an app. Apps can inherit permissions from their root object. @@ -702,7 +702,7 @@ func newGetUpdate() *cobra.Command { cmd.Use = "get-update APP_NAME" cmd.Short = `Get an app update.` cmd.Long = `Get an app update. - + Gets the status of an app update. Arguments: @@ -761,7 +761,7 @@ func newList() *cobra.Command { cmd.Use = "list" cmd.Short = `List apps.` cmd.Long = `List apps. - + Lists all apps in the workspace.` cmd.Annotations = make(map[string]string) @@ -812,7 +812,7 @@ func newListDeployments() *cobra.Command { cmd.Use = "list-deployments APP_NAME" cmd.Short = `List app deployments.` cmd.Long = `List app deployments. - + Lists all app deployments for the app with the supplied name. Arguments: @@ -870,7 +870,7 @@ func newSetPermissions() *cobra.Command { cmd.Use = "set-permissions APP_NAME" cmd.Short = `Set app permissions.` cmd.Long = `Set app permissions. - + Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their root object. @@ -946,7 +946,7 @@ func newStart() *cobra.Command { cmd.Use = "start NAME" cmd.Short = `Start an app.` cmd.Long = `Start an app. - + Start the last active deployment of the app in the workspace. Arguments: @@ -1027,7 +1027,7 @@ func newStop() *cobra.Command { cmd.Use = "stop NAME" cmd.Short = `Stop an app.` cmd.Long = `Stop an app. - + Stops the active deployment of the app in the workspace. Arguments: @@ -1117,7 +1117,7 @@ func newUpdate() *cobra.Command { cmd.Use = "update NAME" cmd.Short = `Update an app.` cmd.Long = `Update an app. - + Updates the app with the supplied name. Arguments: @@ -1191,7 +1191,7 @@ func newUpdatePermissions() *cobra.Command { cmd.Use = "update-permissions APP_NAME" cmd.Short = `Update app permissions.` cmd.Long = `Update app permissions. - + Updates the permissions on an app. Apps can inherit permissions from their root object. diff --git a/cmd/workspace/clusters/clusters.go b/cmd/workspace/clusters/clusters.go index 9d99e81062..ebaa1e7803 100755 --- a/cmd/workspace/clusters/clusters.go +++ b/cmd/workspace/clusters/clusters.go @@ -215,7 +215,7 @@ func newCreate() *cobra.Command { NONE, SINGLE_USER, USER_ISOLATION, -]`) +].`) // TODO: complex arg: docker_image cmd.Flags().StringVar(&createReq.DriverInstancePoolId, "driver-instance-pool-id", createReq.DriverInstancePoolId, `The optional ID of the instance pool for the driver of the cluster belongs.`) cmd.Flags().StringVar(&createReq.DriverNodeTypeId, "driver-node-type-id", createReq.DriverNodeTypeId, `The node type of the Spark driver.`) @@ -490,7 +490,7 @@ func newEdit() *cobra.Command { NONE, SINGLE_USER, USER_ISOLATION, -]`) +].`) // TODO: complex arg: docker_image cmd.Flags().StringVar(&editReq.DriverInstancePoolId, "driver-instance-pool-id", editReq.DriverInstancePoolId, `The optional ID of the instance pool for the driver of the cluster belongs.`) cmd.Flags().StringVar(&editReq.DriverNodeTypeId, "driver-node-type-id", editReq.DriverNodeTypeId, `The node type of the Spark driver.`) diff --git a/cmd/workspace/model-registry/model-registry.go b/cmd/workspace/model-registry/model-registry.go index 8340a80cc9..618b22cce1 100755 --- a/cmd/workspace/model-registry/model-registry.go +++ b/cmd/workspace/model-registry/model-registry.go @@ -2148,7 +2148,7 @@ func newTestRegistryWebhook() *cobra.Command { TRANSITION_REQUEST_TO_ARCHIVED_CREATED, TRANSITION_REQUEST_TO_PRODUCTION_CREATED, TRANSITION_REQUEST_TO_STAGING_CREATED, -]`) +].`) cmd.Use = "test-registry-webhook ID" cmd.Short = `Test a webhook.` diff --git a/cmd/workspace/pipelines/pipelines.go b/cmd/workspace/pipelines/pipelines.go index d58dd5f605..758c398640 100755 --- a/cmd/workspace/pipelines/pipelines.go +++ b/cmd/workspace/pipelines/pipelines.go @@ -763,7 +763,7 @@ func newStartUpdate() *cobra.Command { SCHEMA_CHANGE, SERVICE_UPGRADE, USER_ACTION, -]`) +].`) cmd.Flags().BoolVar(&startUpdateReq.FullRefresh, "full-refresh", startUpdateReq.FullRefresh, `If true, this update will reset all tables before running.`) // TODO: array: full_refresh_selection // TODO: array: refresh_selection diff --git a/cmd/workspace/policies/policies.go b/cmd/workspace/policies/policies.go index 15a45238f9..3115ce9a5f 100755 --- a/cmd/workspace/policies/policies.go +++ b/cmd/workspace/policies/policies.go @@ -93,7 +93,7 @@ func newCreatePolicy() *cobra.Command { STORAGE_CREDENTIAL, TABLE, VOLUME, -]`) +].`) // TODO: complex arg: row_filter cmd.Flags().StringVar(&createPolicyReq.PolicyInfo.WhenCondition, "when-condition", createPolicyReq.PolicyInfo.WhenCondition, `Optional condition when the policy should take effect.`) @@ -432,7 +432,7 @@ func newUpdatePolicy() *cobra.Command { STORAGE_CREDENTIAL, TABLE, VOLUME, -]`) +].`) // TODO: complex arg: row_filter cmd.Flags().StringVar(&updatePolicyReq.PolicyInfo.WhenCondition, "when-condition", updatePolicyReq.PolicyInfo.WhenCondition, `Optional condition when the policy should take effect.`) diff --git a/cmd/workspace/workspace/workspace.go b/cmd/workspace/workspace/workspace.go index 502b11fdb7..0b4b7e7ddf 100755 --- a/cmd/workspace/workspace/workspace.go +++ b/cmd/workspace/workspace/workspace.go @@ -180,7 +180,7 @@ func newExport() *cobra.Command { RAW, R_MARKDOWN, SOURCE, -]`) +].`) cmd.Use = "export PATH" cmd.Short = `Export a workspace object.` @@ -444,7 +444,7 @@ func newImport() *cobra.Command { RAW, R_MARKDOWN, SOURCE, -]`) +].`) cmd.Flags().Var(&importReq.Language, "language", `The language of the object. Supported values: [PYTHON, R, SCALA, SQL]`) cmd.Flags().BoolVar(&importReq.Overwrite, "overwrite", importReq.Overwrite, `The flag that specifies whether to overwrite existing object.`) diff --git a/go.mod b/go.mod index 4820f0b25a..597d0080e0 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/BurntSushi/toml v1.5.0 // MIT github.com/Masterminds/semver/v3 v3.4.0 // MIT github.com/briandowns/spinner v1.23.1 // Apache 2.0 - github.com/databricks/databricks-sdk-go v0.89.0 // Apache 2.0 + github.com/databricks/databricks-sdk-go v0.91.0 // Apache 2.0 github.com/fatih/color v1.18.0 // MIT github.com/google/uuid v1.6.0 // BSD-3-Clause github.com/gorilla/mux v1.8.1 // BSD 3-Clause diff --git a/go.sum b/go.sum index 16ecc9ff0e..290d6f8826 100644 --- a/go.sum +++ b/go.sum @@ -29,8 +29,8 @@ github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s= github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= -github.com/databricks/databricks-sdk-go v0.89.0 h1:x3bolIsX49Hov08O/BvH3QGcibD0VuiIOCBnTUGI8zs= -github.com/databricks/databricks-sdk-go v0.89.0/go.mod h1:hWoHnHbNLjPKiTm5K/7bcIv3J3Pkgo5x9pPzh8K3RVE= +github.com/databricks/databricks-sdk-go v0.91.0 h1:ygoPB5j1SlLFnfO1k9CkIoCekGJ4yi2N0Fj2mpL3bE4= +github.com/databricks/databricks-sdk-go v0.91.0/go.mod h1:hWoHnHbNLjPKiTm5K/7bcIv3J3Pkgo5x9pPzh8K3RVE= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/libs/auth/arguments.go b/libs/auth/arguments.go index 899fc19a9e..d0242992a0 100644 --- a/libs/auth/arguments.go +++ b/libs/auth/arguments.go @@ -19,6 +19,7 @@ func (a AuthArguments) ToOAuthArgument() (u2m.OAuthArgument, error) { AccountID: a.AccountID, } host := cfg.CanonicalHostName() + //nolint:staticcheck // SA1019: IsAccountClient is deprecated but is still used here to avoid breaking changes if cfg.IsAccountClient() { return u2m.NewBasicAccountOAuthArgument(host, cfg.AccountID) } diff --git a/python/databricks/bundles/jobs/_models/spark_jar_task.py b/python/databricks/bundles/jobs/_models/spark_jar_task.py index 40bbe92ba0..9b72738437 100644 --- a/python/databricks/bundles/jobs/_models/spark_jar_task.py +++ b/python/databricks/bundles/jobs/_models/spark_jar_task.py @@ -26,7 +26,9 @@ class SparkJarTask: jar_uri: VariableOrOptional[str] = None """ - [DEPRECATED] Deprecated since 04/2016. Provide a `jar` through the `libraries` field instead. For an example, see :method:jobs/create. + [DEPRECATED] 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. + + See the examples of classic and serverless compute usage at the top of the page. """ parameters: VariableOrList[str] = field(default_factory=list) @@ -61,7 +63,9 @@ class SparkJarTaskDict(TypedDict, total=False): jar_uri: VariableOrOptional[str] """ - [DEPRECATED] Deprecated since 04/2016. Provide a `jar` through the `libraries` field instead. For an example, see :method:jobs/create. + [DEPRECATED] 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. + + See the examples of classic and serverless compute usage at the top of the page. """ parameters: VariableOrList[str]