diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index ddc2a1c04..980ae01f7 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -7cdccf5974c2a1e31cf43518b38cb3aa0b11ad4b \ No newline at end of file +5230f09987edeee12021be61cadb7dabb1084f17 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 67f16c82e..c2748531a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1780,6 +1780,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIden databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspacePermission.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTaskOutput.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTaskPriorityClass.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AlertEvaluationState.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AlertTask.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AlertTaskOutput.java linguist-generated=true @@ -3592,6 +3593,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/Setting. databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/SettingsMetadata.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/StringMessage.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/UserPreference.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceLabelMessage.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceSettingsV2API.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceSettingsV2Impl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceSettingsV2Service.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 0253e86e5..ae797c4b8 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -18,4 +18,9 @@ * Add `unityCatalogImagePath` field for `com.databricks.sdk.service.jobs.AiRuntimeTask`. * Add `featureViewSource` field for `com.databricks.sdk.service.ml.DataSource`. * Add `budgetPolicyId` and `tags` fields for `com.databricks.sdk.service.ml.PublishSpec`. -* Add `development` field for `com.databricks.sdk.service.pipelines.StartUpdate`. \ No newline at end of file +* Add `development` field for `com.databricks.sdk.service.pipelines.StartUpdate`. +* Add `priorityClass` field for `com.databricks.sdk.service.jobs.AiRuntimeTask`. +* Add `ucServiceCredentialName` field for `com.databricks.sdk.service.serving.AmazonBedrockConfig`. +* Add `excludedScopes` field for `com.databricks.sdk.service.settings.CustomerFacingIngressNetworkPolicyWorkspaceApiDestination`. +* Add `effectiveWorkspaceLabel` and `workspaceLabel` fields for `com.databricks.sdk.service.settingsv2.Setting`. +* Add `GPU_8X_B300` enum value for `com.databricks.sdk.service.jobs.ComputeSpecAcceleratorType`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieAPI.java index 19ff7a75f..12944360a 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieAPI.java @@ -189,12 +189,9 @@ public GenieGetMessageQueryResultResponse executeMessageQuery( *

### **Warning: Databricks strongly recommends that you protect the URLs that are returned by * the `EXTERNAL_LINKS` disposition.** * - *

When you use the `EXTERNAL_LINKS` disposition, a short-lived, URL is generated, which can be - * used to download the results directly from . As a short-lived is embedded in this URL, you - * should protect the URL. - * - *

Because URLs are already generated with embedded temporary s, you must not set an - * `Authorization` header in the download requests. + *

When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated + * to download the results. The URL contains temporary access credentials, so protect it and do + * not set an `Authorization` header in the download request. * *

See [Execute Statement](:method:statementexecution/executestatement) for more details. * @@ -290,12 +287,9 @@ public GenieGetDownloadFullQueryResultResponse getDownloadFullQueryResult( *

### **Warning: Databricks strongly recommends that you protect the URLs that are returned by * the `EXTERNAL_LINKS` disposition.** * - *

When you use the `EXTERNAL_LINKS` disposition, a short-lived, URL is generated, which can be - * used to download the results directly from . As a short-lived is embedded in this URL, you - * should protect the URL. - * - *

Because URLs are already generated with embedded temporary s, you must not set an - * `Authorization` header in the download requests. + *

When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated + * to download the results. The URL contains temporary access credentials, so protect it and do + * not set an `Authorization` header in the download request. * *

See [Execute Statement](:method:statementexecution/executestatement) for more details. * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieService.java index 2452c18a6..2d39eaf14 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieService.java @@ -70,12 +70,9 @@ GenieGetMessageQueryResultResponse executeMessageQuery( *

### **Warning: Databricks strongly recommends that you protect the URLs that are returned by * the `EXTERNAL_LINKS` disposition.** * - *

When you use the `EXTERNAL_LINKS` disposition, a short-lived, URL is generated, which can be - * used to download the results directly from . As a short-lived is embedded in this URL, you - * should protect the URL. - * - *

Because URLs are already generated with embedded temporary s, you must not set an - * `Authorization` header in the download requests. + *

When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated + * to download the results. The URL contains temporary access credentials, so protect it and do + * not set an `Authorization` header in the download request. * *

See [Execute Statement](:method:statementexecution/executestatement) for more details. * @@ -120,12 +117,9 @@ GenieListEvalResultsResponse genieListEvalResults( *

### **Warning: Databricks strongly recommends that you protect the URLs that are returned by * the `EXTERNAL_LINKS` disposition.** * - *

When you use the `EXTERNAL_LINKS` disposition, a short-lived, URL is generated, which can be - * used to download the results directly from . As a short-lived is embedded in this URL, you - * should protect the URL. - * - *

Because URLs are already generated with embedded temporary s, you must not set an - * `Authorization` header in the download requests. + *

When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated + * to download the results. The URL contains temporary access credentials, so protect it and do + * not set an `Authorization` header in the download request. * *

See [Execute Statement](:method:statementexecution/executestatement) for more details. * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java index f006aebcd..bc2ff419d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java @@ -76,6 +76,14 @@ public class AiRuntimeTask { @JsonProperty("mlflow_run") private String mlflowRun; + /** + * Scheduling priority class for the workload. May only be set together with a pre-provisioned + * capacity reservation (a deployment's `compute.provisioned_capacity_id`); it is rejected on a + * workload that runs on on-demand capacity. + */ + @JsonProperty("priority_class") + private AiRuntimeTaskPriorityClass priorityClass; + /** * Optional Unity Catalog path for a custom container image. When set, the task runs on the * specified container image instead of the default Databricks client image. Format: @@ -147,6 +155,15 @@ public String getMlflowRun() { return mlflowRun; } + public AiRuntimeTask setPriorityClass(AiRuntimeTaskPriorityClass priorityClass) { + this.priorityClass = priorityClass; + return this; + } + + public AiRuntimeTaskPriorityClass getPriorityClass() { + return priorityClass; + } + public AiRuntimeTask setUnityCatalogImagePath(String unityCatalogImagePath) { this.unityCatalogImagePath = unityCatalogImagePath; return this; @@ -168,6 +185,7 @@ public boolean equals(Object o) { && Objects.equals(mlflowArtifactLocation, that.mlflowArtifactLocation) && Objects.equals(mlflowExperimentDirectory, that.mlflowExperimentDirectory) && Objects.equals(mlflowRun, that.mlflowRun) + && Objects.equals(priorityClass, that.priorityClass) && Objects.equals(unityCatalogImagePath, that.unityCatalogImagePath); } @@ -181,6 +199,7 @@ public int hashCode() { mlflowArtifactLocation, mlflowExperimentDirectory, mlflowRun, + priorityClass, unityCatalogImagePath); } @@ -194,6 +213,7 @@ public String toString() { .add("mlflowArtifactLocation", mlflowArtifactLocation) .add("mlflowExperimentDirectory", mlflowExperimentDirectory) .add("mlflowRun", mlflowRun) + .add("priorityClass", priorityClass) .add("unityCatalogImagePath", unityCatalogImagePath) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTaskPriorityClass.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTaskPriorityClass.java new file mode 100644 index 000000000..15e2c8a76 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTaskPriorityClass.java @@ -0,0 +1,16 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.jobs; + +import com.databricks.sdk.support.Generated; + +/** + * Scheduling priority class for a workload — its priority and preemptability when the scheduler + * ranks pending work. + */ +@Generated +public enum AiRuntimeTaskPriorityClass { + BEST_EFFORT, + CRITICAL, + NORMAL, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ComputeSpecAcceleratorType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ComputeSpecAcceleratorType.java index 74b82f227..3c6dc45b7 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ComputeSpecAcceleratorType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ComputeSpecAcceleratorType.java @@ -17,6 +17,9 @@ public enum ComputeSpecAcceleratorType { @JsonProperty("GPU_1xH100") GPU_1X_H100, + @JsonProperty("GPU_8xB300") + GPU_8X_B300, + @JsonProperty("GPU_8xH100") GPU_8X_H100, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java index dd125abf3..9559a9eff 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java @@ -60,11 +60,14 @@ public class CreateJob { private JobEmailNotifications emailNotifications; /** - * A list of task execution environment specifications that can be referenced by serverless tasks - * of this job. For serverless notebook tasks, if the environment_key is not specified, the - * notebook environment will be used if present. If a jobs environment is specified, it will - * override the notebook environment. For other serverless tasks, the task environment is required - * to be specified using environment_key in the task settings. + * A list of task execution environment specifications that can be referenced by tasks that use + * serverless compute or a compute resource that uses Environments mode. + * + *

For notebook tasks that use serverless compute or a compute resource that uses Environments + * mode, if the environment_key is not specified, the notebook environment will be used if + * present. If a jobs environment is specified, it will override the notebook environment. For + * other tasks that use serverless compute or a compute resource that uses Environments mode, the + * task environment is required to be specified using environment_key in the task settings. */ @JsonProperty("environments") private Collection environments; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java index 099fec021..ec3c688d8 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java @@ -56,11 +56,14 @@ public class JobSettings { private JobEmailNotifications emailNotifications; /** - * A list of task execution environment specifications that can be referenced by serverless tasks - * of this job. For serverless notebook tasks, if the environment_key is not specified, the - * notebook environment will be used if present. If a jobs environment is specified, it will - * override the notebook environment. For other serverless tasks, the task environment is required - * to be specified using environment_key in the task settings. + * A list of task execution environment specifications that can be referenced by tasks that use + * serverless compute or a compute resource that uses Environments mode. + * + *

For notebook tasks that use serverless compute or a compute resource that uses Environments + * mode, if the environment_key is not specified, the notebook environment will be used if + * present. If a jobs environment is specified, it will override the notebook environment. For + * other tasks that use serverless compute or a compute resource that uses Environments mode, the + * task environment is required to be specified using environment_key in the task settings. */ @JsonProperty("environments") private Collection environments; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java index 3428492de..e4a53f5bc 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java @@ -148,7 +148,8 @@ public class RunTask { /** * The key that references an environment spec in a job. This field is required for Python script, - * Python wheel and dbt tasks when using serverless compute. + * Python wheel and dbt tasks when using serverless compute or a compute resource that uses + * Environments mode. */ @JsonProperty("environment_key") private String environmentKey; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitTask.java index 37c85196e..e49637ac7 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitTask.java @@ -95,7 +95,8 @@ public class SubmitTask { /** * The key that references an environment spec in a job. This field is required for Python script, - * Python wheel and dbt tasks when using serverless compute. + * Python wheel and dbt tasks when using serverless compute or a compute resource that uses + * Environments mode. */ @JsonProperty("environment_key") private String environmentKey; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java index b1ac68ce8..dccdff591 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java @@ -96,7 +96,8 @@ public class Task { /** * The key that references an environment spec in a job. This field is required for Python script, - * Python wheel and dbt tasks when using serverless compute. + * Python wheel and dbt tasks when using serverless compute or a compute resource that uses + * Environments mode. */ @JsonProperty("environment_key") private String environmentKey; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java index 9a4a51a61..02af7506e 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java @@ -92,8 +92,8 @@ public void deleteRun(DeleteRun request) { /** * Bulk delete runs in an experiment that were created prior to or at the specified timestamp. - * Deletes at most max_runs per request. To call this API from a Databricks Notebook in Python, - * you can use the client code snippet on + * Deletes at most max_runs per request. See the cloud-specific MLflow runs documentation for a + * Python client example. */ public DeleteRunsResponse deleteRuns(DeleteRuns request) { return impl.deleteRuns(request); @@ -358,8 +358,8 @@ public void restoreRun(RestoreRun request) { /** * Bulk restore runs in an experiment that were deleted no earlier than the specified timestamp. - * Restores at most max_runs per request. To call this API from a Databricks Notebook in Python, - * you can use the client code snippet on + * Restores at most max_runs per request. See the cloud-specific MLflow runs documentation for a + * Python client example. */ public RestoreRunsResponse restoreRuns(RestoreRuns request) { return impl.restoreRuns(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java index 510e817b9..b3835354d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java @@ -56,8 +56,8 @@ public interface ExperimentsService { /** * Bulk delete runs in an experiment that were created prior to or at the specified timestamp. - * Deletes at most max_runs per request. To call this API from a Databricks Notebook in Python, - * you can use the client code snippet on + * Deletes at most max_runs per request. See the cloud-specific MLflow runs documentation for a + * Python client example. */ DeleteRunsResponse deleteRuns(DeleteRuns deleteRuns); @@ -223,8 +223,8 @@ ExperimentPermissions getPermissions( /** * Bulk restore runs in an experiment that were deleted no earlier than the specified timestamp. - * Restores at most max_runs per request. To call this API from a Databricks Notebook in Python, - * you can use the client code snippet on + * Restores at most max_runs per request. See the cloud-specific MLflow runs documentation for a + * Python client example. */ RestoreRunsResponse restoreRuns(RestoreRuns restoreRuns); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/PermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/PermissionLevel.java index d4aa69a14..7bd6a2683 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/PermissionLevel.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/PermissionLevel.java @@ -6,7 +6,10 @@ /** * Permission level of the requesting user on the object. For what is allowed at each level, see - * [MLflow Model permissions](..). + * [MLflow Model permissions]. + * + *

[MLflow Model permissions]: + * https://docs.databricks.com/aws/en/machine-learning/manage-model-lifecycle/workspace-model-registry#permissions */ @Generated public enum PermissionLevel { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AmazonBedrockConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AmazonBedrockConfig.java index 430410354..10c0292ce 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AmazonBedrockConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AmazonBedrockConfig.java @@ -65,6 +65,13 @@ public class AmazonBedrockConfig { @JsonProperty("instance_profile_arn") private String instanceProfileArn; + /** + * The name of the Unity Catalog service credential that the external model uses to access AWS + * resources. + */ + @JsonProperty("uc_service_credential_name") + private String ucServiceCredentialName; + public AmazonBedrockConfig setAwsAccessKeyId(String awsAccessKeyId) { this.awsAccessKeyId = awsAccessKeyId; return this; @@ -129,6 +136,15 @@ public String getInstanceProfileArn() { return instanceProfileArn; } + public AmazonBedrockConfig setUcServiceCredentialName(String ucServiceCredentialName) { + this.ucServiceCredentialName = ucServiceCredentialName; + return this; + } + + public String getUcServiceCredentialName() { + return ucServiceCredentialName; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -140,7 +156,8 @@ public boolean equals(Object o) { && Objects.equals(awsSecretAccessKey, that.awsSecretAccessKey) && Objects.equals(awsSecretAccessKeyPlaintext, that.awsSecretAccessKeyPlaintext) && Objects.equals(bedrockProvider, that.bedrockProvider) - && Objects.equals(instanceProfileArn, that.instanceProfileArn); + && Objects.equals(instanceProfileArn, that.instanceProfileArn) + && Objects.equals(ucServiceCredentialName, that.ucServiceCredentialName); } @Override @@ -152,7 +169,8 @@ public int hashCode() { awsSecretAccessKey, awsSecretAccessKeyPlaintext, bedrockProvider, - instanceProfileArn); + instanceProfileArn, + ucServiceCredentialName); } @Override @@ -165,6 +183,7 @@ public String toString() { .add("awsSecretAccessKeyPlaintext", awsSecretAccessKeyPlaintext) .add("bedrockProvider", bedrockProvider) .add("instanceProfileArn", instanceProfileArn) + .add("ucServiceCredentialName", ucServiceCredentialName) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CustomerFacingIngressNetworkPolicyWorkspaceApiDestination.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CustomerFacingIngressNetworkPolicyWorkspaceApiDestination.java index 111f4f8ef..4a4e561b8 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CustomerFacingIngressNetworkPolicyWorkspaceApiDestination.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CustomerFacingIngressNetworkPolicyWorkspaceApiDestination.java @@ -11,6 +11,13 @@ /** Matches workspace-level Databricks API endpoints for an ingress network policy rule. */ @Generated public class CustomerFacingIngressNetworkPolicyWorkspaceApiDestination { + /** + * Inverse of `scopes`: matches every API scope EXCEPT those listed here ("allow all except"). + * Mutually exclusive with `scopes` — a single destination may set at most one of the two. + */ + @JsonProperty("excluded_scopes") + private Collection excludedScopes; + /** Qualifies the breadth of API access for the listed scopes. See ApiScopeQualifier. */ @JsonProperty("scope_qualifier") private CustomerFacingIngressNetworkPolicyApiScopeQualifier scopeQualifier; @@ -19,6 +26,16 @@ public class CustomerFacingIngressNetworkPolicyWorkspaceApiDestination { @JsonProperty("scopes") private Collection scopes; + public CustomerFacingIngressNetworkPolicyWorkspaceApiDestination setExcludedScopes( + Collection excludedScopes) { + this.excludedScopes = excludedScopes; + return this; + } + + public Collection getExcludedScopes() { + return excludedScopes; + } + public CustomerFacingIngressNetworkPolicyWorkspaceApiDestination setScopeQualifier( CustomerFacingIngressNetworkPolicyApiScopeQualifier scopeQualifier) { this.scopeQualifier = scopeQualifier; @@ -45,18 +62,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; CustomerFacingIngressNetworkPolicyWorkspaceApiDestination that = (CustomerFacingIngressNetworkPolicyWorkspaceApiDestination) o; - return Objects.equals(scopeQualifier, that.scopeQualifier) + return Objects.equals(excludedScopes, that.excludedScopes) + && Objects.equals(scopeQualifier, that.scopeQualifier) && Objects.equals(scopes, that.scopes); } @Override public int hashCode() { - return Objects.hash(scopeQualifier, scopes); + return Objects.hash(excludedScopes, scopeQualifier, scopes); } @Override public String toString() { return new ToStringer(CustomerFacingIngressNetworkPolicyWorkspaceApiDestination.class) + .add("excludedScopes", excludedScopes) .add("scopeQualifier", scopeQualifier) .add("scopes", scopes) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/Setting.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/Setting.java index 3fcfeb721..0bebb3f58 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/Setting.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/Setting.java @@ -129,6 +129,13 @@ public class Setting { @JsonProperty("effective_string_val") private StringMessage effectiveStringVal; + /** + * Effective setting value for workspace_label setting. This is the final effective value of + * setting. To set a value use workspace_label. + */ + @JsonProperty("effective_workspace_label") + private WorkspaceLabelMessage effectiveWorkspaceLabel; + /** * Setting value for integer type setting. This is the setting value set by consumers, check * effective_integer_val for final setting value. @@ -168,6 +175,13 @@ public class Setting { @JsonProperty("string_val") private StringMessage stringVal; + /** + * Setting value for workspace_label setting. This is the setting value set by consumers, check + * effective_workspace_label for final setting value. + */ + @JsonProperty("workspace_label") + private WorkspaceLabelMessage workspaceLabel; + public Setting setAibiDashboardEmbeddingAccessPolicy( AibiDashboardEmbeddingAccessPolicy aibiDashboardEmbeddingAccessPolicy) { this.aibiDashboardEmbeddingAccessPolicy = aibiDashboardEmbeddingAccessPolicy; @@ -334,6 +348,15 @@ public StringMessage getEffectiveStringVal() { return effectiveStringVal; } + public Setting setEffectiveWorkspaceLabel(WorkspaceLabelMessage effectiveWorkspaceLabel) { + this.effectiveWorkspaceLabel = effectiveWorkspaceLabel; + return this; + } + + public WorkspaceLabelMessage getEffectiveWorkspaceLabel() { + return effectiveWorkspaceLabel; + } + public Setting setIntegerVal(IntegerMessage integerVal) { this.integerVal = integerVal; return this; @@ -390,6 +413,15 @@ public StringMessage getStringVal() { return stringVal; } + public Setting setWorkspaceLabel(WorkspaceLabelMessage workspaceLabel) { + this.workspaceLabel = workspaceLabel; + return this; + } + + public WorkspaceLabelMessage getWorkspaceLabel() { + return workspaceLabel; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -422,12 +454,14 @@ public boolean equals(Object o) { && Objects.equals(effectivePersonalCompute, that.effectivePersonalCompute) && Objects.equals(effectiveRestrictWorkspaceAdmins, that.effectiveRestrictWorkspaceAdmins) && Objects.equals(effectiveStringVal, that.effectiveStringVal) + && Objects.equals(effectiveWorkspaceLabel, that.effectiveWorkspaceLabel) && Objects.equals(integerVal, that.integerVal) && Objects.equals(name, that.name) && Objects.equals(operationalEmailCustomRecipient, that.operationalEmailCustomRecipient) && Objects.equals(personalCompute, that.personalCompute) && Objects.equals(restrictWorkspaceAdmins, that.restrictWorkspaceAdmins) - && Objects.equals(stringVal, that.stringVal); + && Objects.equals(stringVal, that.stringVal) + && Objects.equals(workspaceLabel, that.workspaceLabel); } @Override @@ -450,12 +484,14 @@ public int hashCode() { effectivePersonalCompute, effectiveRestrictWorkspaceAdmins, effectiveStringVal, + effectiveWorkspaceLabel, integerVal, name, operationalEmailCustomRecipient, personalCompute, restrictWorkspaceAdmins, - stringVal); + stringVal, + workspaceLabel); } @Override @@ -484,12 +520,14 @@ public String toString() { .add("effectivePersonalCompute", effectivePersonalCompute) .add("effectiveRestrictWorkspaceAdmins", effectiveRestrictWorkspaceAdmins) .add("effectiveStringVal", effectiveStringVal) + .add("effectiveWorkspaceLabel", effectiveWorkspaceLabel) .add("integerVal", integerVal) .add("name", name) .add("operationalEmailCustomRecipient", operationalEmailCustomRecipient) .add("personalCompute", personalCompute) .add("restrictWorkspaceAdmins", restrictWorkspaceAdmins) .add("stringVal", stringVal) + .add("workspaceLabel", workspaceLabel) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceLabelMessage.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceLabelMessage.java new file mode 100644 index 000000000..7261b57d3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settingsv2/WorkspaceLabelMessage.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.settingsv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** Workspace label and color for display (e.g. in account console). */ +@Generated +public class WorkspaceLabelMessage { + /** */ + @JsonProperty("color") + private String color; + + /** */ + @JsonProperty("label") + private String label; + + public WorkspaceLabelMessage setColor(String color) { + this.color = color; + return this; + } + + public String getColor() { + return color; + } + + public WorkspaceLabelMessage setLabel(String label) { + this.label = label; + return this; + } + + public String getLabel() { + return label; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + WorkspaceLabelMessage that = (WorkspaceLabelMessage) o; + return Objects.equals(color, that.color) && Objects.equals(label, that.label); + } + + @Override + public int hashCode() { + return Objects.hash(color, label); + } + + @Override + public String toString() { + return new ToStringer(WorkspaceLabelMessage.class) + .add("color", color) + .add("label", label) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java index 20fa8940b..7256b5eee 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java @@ -49,8 +49,8 @@ public class ExecuteStatementRequest { * authentication information (typically a personal access token, OAuth token, or similar) _must * be removed_ when fetching from these links. * - *

2. These are URLs with a specific expiration, indicated in the response. The behavior when - * attempting to use an expired link is cloud specific. + *

2. These are short-lived cloud-storage URLs with a specific expiration, indicated in the + * response. The behavior when attempting to use an expired link is cloud specific. */ @JsonProperty("disposition") private Disposition disposition; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java index 569281981..c56793c91 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java @@ -29,9 +29,10 @@ public class ExternalLink { private String expiration; /** - * A URL pointing to a chunk of result data, hosted by an external service, with a short - * expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be - * considered sensitive and the client should not expose this URL in a log. + * A short-lived cloud-storage URL pointing to a chunk of result data, hosted by an external + * service, with a short expiration time (<= 15 minutes). As this URL contains a temporary + * credential, it should be considered sensitive and the client should not expose this URL in a + * log. */ @JsonProperty("external_link") private String externalLink; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java index 217e370f9..7dac3a3c2 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java @@ -10,10 +10,10 @@ /** * Contains the result data of a single chunk when using `INLINE` disposition. When using - * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide URLs to the - * result data in cloud storage. Exactly one of these alternatives is used. (While the - * `external_links` array prepares the API to return multiple links in a single response. Currently - * only a single link is returned.) + * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide short-lived + * cloud-storage URLs to the result data in cloud storage. Exactly one of these alternatives is + * used. (While the `external_links` array prepares the API to return multiple links in a single + * response. Currently only a single link is returned.) */ @Generated public class ResultData { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionAPI.java index 1f84dd01d..95b392607 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionAPI.java @@ -135,29 +135,26 @@ public void cancelExecution(CancelExecutionRequest request) { * *

Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets * efficiently. The main differences from using `INLINE` disposition are that the result data is - * accessed with URLs, and that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and - * `CSV` compared to only `JSON_ARRAY` with `INLINE`. + * accessed with short-lived cloud-storage URLs, and that there are 3 supported formats: + * `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with `INLINE`. * - *

** URLs** + *

**External-link URLs** * - *

External links point to data stored within your workspace's internal storage, in the form of - * a URL. The URLs are valid for only a short period, <= 15 minutes. Alongside each - * `external_link` is an expiration field indicating the time at which the URL is no longer valid. - * In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel. + *

External links point to data stored within your workspace's internal cloud storage. The URLs + * are valid for only a short period, <= 15 minutes. Alongside each `external_link` is an + * expiration field indicating the time at which the URL is no longer valid. In `EXTERNAL_LINKS` + * mode, chunks can be resolved and fetched multiple times and in parallel. * *

---- * *

### **Warning: Databricks strongly recommends that you protect the URLs that are returned by * the `EXTERNAL_LINKS` disposition.** * - *

When you use the `EXTERNAL_LINKS` disposition, a short-lived, URL is generated, which can be - * used to download the results directly from . As a short-lived is embedded in this URL, you - * should protect the URL. + *

When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated + * to download the results. The URL contains temporary access credentials, so protect it and do + * not set an `Authorization` header in the download request. * - *

Because URLs are already generated with embedded temporary s, you must not set an - * `Authorization` header in the download requests. - * - *

The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a support case. + *

The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a [support case]. * *

See also [Security best practices]. * @@ -171,6 +168,7 @@ public void cancelExecution(CancelExecutionRequest request) { * *

[Security best practices]: * https://docs.databricks.com/sql/admin/sql-execution-tutorial.html#security-best-practices + * [support case]: https://docs.databricks.com/resources/support.html */ public StatementResponse executeStatement(ExecuteStatementRequest request) { return impl.executeStatement(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionService.java index 8cad20969..9218df67d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionService.java @@ -120,29 +120,26 @@ public interface StatementExecutionService { * *

Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets * efficiently. The main differences from using `INLINE` disposition are that the result data is - * accessed with URLs, and that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and - * `CSV` compared to only `JSON_ARRAY` with `INLINE`. + * accessed with short-lived cloud-storage URLs, and that there are 3 supported formats: + * `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with `INLINE`. * - *

** URLs** + *

**External-link URLs** * - *

External links point to data stored within your workspace's internal storage, in the form of - * a URL. The URLs are valid for only a short period, <= 15 minutes. Alongside each - * `external_link` is an expiration field indicating the time at which the URL is no longer valid. - * In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel. + *

External links point to data stored within your workspace's internal cloud storage. The URLs + * are valid for only a short period, <= 15 minutes. Alongside each `external_link` is an + * expiration field indicating the time at which the URL is no longer valid. In `EXTERNAL_LINKS` + * mode, chunks can be resolved and fetched multiple times and in parallel. * *

---- * *

### **Warning: Databricks strongly recommends that you protect the URLs that are returned by * the `EXTERNAL_LINKS` disposition.** * - *

When you use the `EXTERNAL_LINKS` disposition, a short-lived, URL is generated, which can be - * used to download the results directly from . As a short-lived is embedded in this URL, you - * should protect the URL. + *

When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated + * to download the results. The URL contains temporary access credentials, so protect it and do + * not set an `Authorization` header in the download request. * - *

Because URLs are already generated with embedded temporary s, you must not set an - * `Authorization` header in the download requests. - * - *

The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a support case. + *

The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a [support case]. * *

See also [Security best practices]. * @@ -156,6 +153,7 @@ public interface StatementExecutionService { * *

[Security best practices]: * https://docs.databricks.com/sql/admin/sql-execution-tutorial.html#security-best-practices + * [support case]: https://docs.databricks.com/resources/support.html */ StatementResponse executeStatement(ExecuteStatementRequest executeStatementRequest);