From 02aa2df17adfc2ae99bcb3dafbe7333aa88ea566 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-2[bot]" <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com> Date: Thu, 3 Dec 2026 03:22:03 +0000 Subject: [PATCH] Release databricks-sdk-java --- .codegen/_last_sha | 2 +- .github/workflows/package.yml | 38 +++- CHANGELOG.md | 15 ++ databricks-sdk-java/lockfile.json | 2 +- databricks-sdk-java/pom.xml | 2 +- .../com/databricks/sdk/core/UserAgent.java | 2 +- .../sdk/service/apps/AppPermissionLevel.java | 1 - .../databricks/sdk/service/apps/Space.java | 18 -- .../sdk/service/apps/SpaceSharingPolicy.java | 10 - .../sdk/service/catalog/PolicyInfo.java | 20 ++ .../sdk/service/catalog/PolicyType.java | 1 + .../sdk/service/catalog/ServiceOptions.java | 172 ++++++++++++++++++ .../service/catalog/ServiceOptionsAction.java | 13 ++ .../catalog/ServiceOptionsBuiltin.java | 60 ++++++ .../ServiceOptionsBuiltinLlmJudge.java | 82 +++++++++ ...erviceOptionsBuiltinLlmJudgeGuardrail.java | 13 ++ .../ServiceOptionsBuiltinSensitiveData.java | 68 +++++++ ...OptionsBuiltinSensitiveDataClassifier.java | 50 +++++ .../ServiceOptionsConversationWindow.java | 48 +++++ .../service/catalog/ServiceOptionsCustom.java | 78 ++++++++ .../catalog/ServiceOptionsCustomLlmJudge.java | 99 ++++++++++ .../ServiceOptionsCustomPythonFunction.java | 85 +++++++++ .../ServiceOptionsCustomSqlFunction.java | 70 +++++++ .../catalog/ServiceOptionsExecutionPhase.java | 12 ++ .../catalog/ServiceOptionsExternal.java | 112 ++++++++++++ .../service/catalog/ServiceOptionsMode.java | 12 ++ .../catalog/ServiceOptionsStreamMode.java | 12 ++ .../compute/UpdateComputePolicyRequest.java | 10 +- .../sdk/service/files/DirectoryEntry.java | 5 +- .../genieagents/CreateGenieAgentRequest.java | 4 +- .../sdk/service/genieagents/GenieAgent.java | 17 +- .../service/genieagents/GenieAgentsAPI.java | 2 +- .../genieagents/GenieAgentsService.java | 2 +- .../genieagents/ListGenieAgentsRequest.java | 3 +- .../genieagents/ListGenieAgentsResponse.java | 2 +- .../genieagents/UpdateGenieAgentRequest.java | 7 +- .../service/geniemigrate/ProjectConfig.java | 4 +- .../sdk/service/iam/PermissionLevel.java | 1 - .../sdk/service/iamv2/AccountIamV2API.java | 43 +++++ .../sdk/service/iamv2/AccountIamV2Impl.java | 45 +++++ .../service/iamv2/AccountIamV2Service.java | 14 ++ .../sdk/service/iamv2/GetMeRequest.java | 44 +++++ .../GetMeTransitiveParentGroupRequest.java | 44 +++++ .../ListMeTransitiveParentGroupsRequest.java | 84 +++++++++ .../ListMeTransitiveParentGroupsResponse.java | 62 +++++++ .../com/databricks/sdk/service/iamv2/Me.java | 137 ++++++++++++++ .../iamv2/MeTransitiveParentGroup.java | 109 +++++++++++ .../jobs/ComputeSpecAcceleratorType.java | 3 + .../sdk/service/ml/OnlineStoreConfig.java | 19 +- ...OnlineStoreConfigServingOptimizations.java | 53 ++++++ .../sdk/service/ml/SawtoothWindow.java | 24 ++- .../sdk/service/postgres/PostgresAPI.java | 5 +- .../sdk/service/postgres/PostgresService.java | 5 +- .../sdk/service/postgres/ScheduleCadence.java | 6 +- .../provisioning/CreateWorkspaceRequest.java | 13 +- examples/docs/pom.xml | 2 +- examples/spring-boot-oauth-u2m-demo/pom.xml | 2 +- lockfile.json | 2 +- pom.xml | 2 +- shaded/pom.xml | 2 +- 60 files changed, 1789 insertions(+), 85 deletions(-) delete mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/SpaceSharingPolicy.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptions.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsAction.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltin.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudge.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudgeGuardrail.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveData.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveDataClassifier.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsConversationWindow.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustom.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomLlmJudge.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomPythonFunction.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomSqlFunction.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExecutionPhase.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExternal.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsMode.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsStreamMode.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeTransitiveParentGroupRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Me.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/MeTransitiveParentGroup.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfigServingOptimizations.java diff --git a/.codegen/_last_sha b/.codegen/_last_sha index 6e9603f95..a3a2a9a38 100644 --- a/.codegen/_last_sha +++ b/.codegen/_last_sha @@ -1 +1 @@ -87ad00d1beb89e2c7efa32e8d4df78b6a715a1fa \ No newline at end of file +ad6cce94f282ef6f6d2b1636ea56a29e55da5d8e \ No newline at end of file diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index fb2a37dec..b26960ee7 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,6 +9,10 @@ on: description: "The version tag to package (e.g. v0.35.0)." required: true type: string + commit_sha: + description: "Full source commit SHA verified by the release publisher." + required: false + type: string permissions: id-token: write @@ -21,17 +25,35 @@ jobs: labels: linux-ubuntu-latest timeout-minutes: 20 steps: - - name: Validate tag format + - name: Validate release inputs + env: + TAG: ${{ inputs.tag }} + COMMIT_SHA: ${{ inputs.commit_sha }} run: | - if [[ ! "${{ inputs.tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then - echo "::error::Invalid tag format '${{ inputs.tag }}'. Expected vX.Y.Z or vX.Y.Z-suffix (e.g. v0.35.0, v0.0.0-test.1)." + if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.+-]+)?$ ]]; then + echo "::error::Expected a version tag (vX.Y.Z or vX.Y.Z-suffix)." + exit 1 + fi + if [[ -n "$COMMIT_SHA" && ! "$COMMIT_SHA" =~ ^[0-9a-f]{40}$ ]]; then + echo "::error::Expected a full commit SHA." exit 1 fi - name: Checkout uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 with: - ref: ${{ inputs.tag }} + ref: ${{ inputs.commit_sha || format('refs/tags/{0}', inputs.tag) }} + fetch-depth: 0 + + - name: Verify source before packaging + env: + TAG: ${{ inputs.tag }} + run: | + if [[ "$(git rev-parse --verify "refs/tags/${TAG}^{commit}")" != "$(git rev-parse HEAD)" ]]; then + echo "::error::The release tag no longer points to the packaging commit." + exit 1 + fi + git merge-base --is-ancestor HEAD refs/remotes/origin/main - name: Cache Maven packages uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 @@ -100,9 +122,9 @@ jobs: - name: Stage and sign release artifacts env: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + TAG: ${{ inputs.tag }} run: | - VERSION="${{ inputs.tag }}" - VERSION="${VERSION#v}" + VERSION="${TAG#v}" echo "Version: ${VERSION}" # The repo is a multi-module Maven project: @@ -154,9 +176,11 @@ jobs: if-no-files-found: error - name: Write release notes + env: + TAG: ${{ inputs.tag }} run: | mkdir -p staging/release-notes - git for-each-ref --format='%(body)' "refs/tags/${{ inputs.tag }}" > staging/release-notes/release-notes.md + git for-each-ref --format='%(body)' "refs/tags/${TAG}" > staging/release-notes/release-notes.md echo "Release notes:" cat staging/release-notes/release-notes.md diff --git a/CHANGELOG.md b/CHANGELOG.md index d3761914e..02d62560d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Version changelog +## Release v0.188.0 (2026-12-03) + +### API Changes +* Add `getMe()`, `getMeTransitiveParentGroup()` and `listMeTransitiveParentGroups()` methods for `accountClient.accountIamV2()` service. +* Add `service` field for `com.databricks.sdk.service.catalog.PolicyInfo`. +* Add `servingOptimizations` field for `com.databricks.sdk.service.ml.OnlineStoreConfig`. +* Add `step` field for `com.databricks.sdk.service.ml.SawtoothWindow`. +* Add `POLICY_TYPE_SERVICE` enum value for `com.databricks.sdk.service.catalog.PolicyType`. +* Add `GPU_1X_RTX6000` enum value for `com.databricks.sdk.service.jobs.ComputeSpecAcceleratorType`. +* [Breaking] Change `sourceDialect` field for `com.databricks.sdk.service.geniemigrate.ProjectConfig` to be required. +* Change `sourceDialect` field for `com.databricks.sdk.service.geniemigrate.ProjectConfig` to be required. +* [Breaking] Remove `sharingPolicy` field for `com.databricks.sdk.service.apps.Space`. +* [Breaking] Remove `CAN_BUILD` enum value for `com.databricks.sdk.service.apps.AppPermissionLevel`. +* [Breaking] Remove `CAN_BUILD` enum value for `com.databricks.sdk.service.iam.PermissionLevel`. + ## Release v0.187.0 (2026-12-02) ### API Changes diff --git a/databricks-sdk-java/lockfile.json b/databricks-sdk-java/lockfile.json index e9e79a9d8..46042f58c 100644 --- a/databricks-sdk-java/lockfile.json +++ b/databricks-sdk-java/lockfile.json @@ -1,7 +1,7 @@ { "artifactId": "databricks-sdk-java", "groupId": "com.databricks", - "version": "0.187.0", + "version": "0.188.0", "lockFileVersion": 1, "dependencies": [ { diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index b12765ec5..003414289 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.187.0 + 0.188.0 databricks-sdk-java Databricks SDK for Java diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java index a546f97b1..d717915e0 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java @@ -36,7 +36,7 @@ public String getValue() { // TODO: check if reading from // /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties // or getClass().getPackage().getImplementationVersion() is enough. - private static final String version = "0.187.0"; + private static final String version = "0.188.0"; public static void withProduct(String product, String productVersion) { UserAgent.product = product; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java index fa851a819..5b2b07c9b 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java @@ -7,7 +7,6 @@ /** Permission level */ @Generated public enum AppPermissionLevel { - CAN_BUILD, CAN_MANAGE, CAN_USE, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/Space.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/Space.java index 27bd0cf9b..4d09e4124 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/Space.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/Space.java @@ -75,12 +75,6 @@ public class Space { @JsonProperty("service_principal_name") private String servicePrincipalName; - /** - * Decides what the creator of an app in this space is granted on it. Set only at space creation. - */ - @JsonProperty("sharing_policy") - private SpaceSharingPolicy sharingPolicy; - /** * The kind of app space. A default space is available to every workspace user and can't be * updated or deleted. @@ -219,15 +213,6 @@ public String getServicePrincipalName() { return servicePrincipalName; } - public Space setSharingPolicy(SpaceSharingPolicy sharingPolicy) { - this.sharingPolicy = sharingPolicy; - return this; - } - - public SpaceSharingPolicy getSharingPolicy() { - return sharingPolicy; - } - public Space setSpaceType(SpaceType spaceType) { this.spaceType = spaceType; return this; @@ -299,7 +284,6 @@ public boolean equals(Object o) { && Objects.equals(servicePrincipalClientId, that.servicePrincipalClientId) && Objects.equals(servicePrincipalId, that.servicePrincipalId) && Objects.equals(servicePrincipalName, that.servicePrincipalName) - && Objects.equals(sharingPolicy, that.sharingPolicy) && Objects.equals(spaceType, that.spaceType) && Objects.equals(status, that.status) && Objects.equals(updateTime, that.updateTime) @@ -323,7 +307,6 @@ public int hashCode() { servicePrincipalClientId, servicePrincipalId, servicePrincipalName, - sharingPolicy, spaceType, status, updateTime, @@ -347,7 +330,6 @@ public String toString() { .add("servicePrincipalClientId", servicePrincipalClientId) .add("servicePrincipalId", servicePrincipalId) .add("servicePrincipalName", servicePrincipalName) - .add("sharingPolicy", sharingPolicy) .add("spaceType", spaceType) .add("status", status) .add("updateTime", updateTime) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/SpaceSharingPolicy.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/SpaceSharingPolicy.java deleted file mode 100644 index f17844805..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/SpaceSharingPolicy.java +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.apps; - -import com.databricks.sdk.support.Generated; - -@Generated -public enum SpaceSharingPolicy { - CREATOR_CANNOT_SHARE, -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyInfo.java index 8352df1fc..c8a636d07 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyInfo.java @@ -106,6 +106,14 @@ public class PolicyInfo { @JsonProperty("row_filter") private RowFilterOptions rowFilter; + /** + * Options for service policies. Valid only if `policy_type` is `POLICY_TYPE_SERVICE`. Required on + * create and optional on update. When specified on update, the new options will replace the + * existing options as a whole. + */ + @JsonProperty("service") + private ServiceOptions service; + /** * List of user or group names that the policy applies to. Required on create and optional on * update. @@ -269,6 +277,15 @@ public RowFilterOptions getRowFilter() { return rowFilter; } + public PolicyInfo setService(ServiceOptions service) { + this.service = service; + return this; + } + + public ServiceOptions getService() { + return service; + } + public PolicyInfo setToPrincipals(Collection toPrincipals) { this.toPrincipals = toPrincipals; return this; @@ -326,6 +343,7 @@ public boolean equals(Object o) { && Objects.equals(onSecurableType, that.onSecurableType) && Objects.equals(policyType, that.policyType) && Objects.equals(rowFilter, that.rowFilter) + && Objects.equals(service, that.service) && Objects.equals(toPrincipals, that.toPrincipals) && Objects.equals(updatedAt, that.updatedAt) && Objects.equals(updatedBy, that.updatedBy) @@ -351,6 +369,7 @@ public int hashCode() { onSecurableType, policyType, rowFilter, + service, toPrincipals, updatedAt, updatedBy, @@ -376,6 +395,7 @@ public String toString() { .add("onSecurableType", onSecurableType) .add("policyType", policyType) .add("rowFilter", rowFilter) + .add("service", service) .add("toPrincipals", toPrincipals) .add("updatedAt", updatedAt) .add("updatedBy", updatedBy) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyType.java index 02e39b19e..03c97051f 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyType.java @@ -10,4 +10,5 @@ public enum PolicyType { POLICY_TYPE_DENY, POLICY_TYPE_GRANT, POLICY_TYPE_ROW_FILTER, + POLICY_TYPE_SERVICE, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptions.java new file mode 100644 index 000000000..bfbd73e7f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptions.java @@ -0,0 +1,172 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +/** + * LINT.IfChange(service_policy_limits) Configuration of a service policy, which evaluates requests + * to and responses from model services, model provider services, and MCP services. Exactly one of + * `builtin`, `custom`, or `external` is required. + */ +@Generated +public class ServiceOptions { + /** A Databricks-provided policy. */ + @JsonProperty("builtin") + private ServiceOptionsBuiltin builtin; + + /** + * Conversation history supplied to the policy evaluator. Supported only for policies on model + * services and model provider services, and requires the PRE_CALL phase unless the policy is + * external. Not supported for sensitive-data or HALLUCINATION policies. If unset, the entire + * conversation is supplied. + */ + @JsonProperty("conversation_window") + private ServiceOptionsConversationWindow conversationWindow; + + /** A user-defined policy, such as a Unity Catalog function or an LLM judge with your prompt. */ + @JsonProperty("custom") + private ServiceOptionsCustom custom; + + /** A policy evaluated by a partner or another external provider. */ + @JsonProperty("external") + private ServiceOptionsExternal external; + + /** Whether policy outcomes are enforced or only recorded. */ + @JsonProperty("mode") + private ServiceOptionsMode mode; + + /** + * Invocation phases in which the policy runs. SQL and Python function policies must specify both + * PRE_CALL and POST_CALL; the function distinguishes them with `event.type`. + */ + @JsonProperty("phases") + private Collection phases; + + /** + * Order in which policies that apply to the same invocation run, from 1 to 100. Lower ranks run + * first on the request and last on the response. If unset, the policy runs after all ranked + * policies on the request and before them on the response. + */ + @JsonProperty("rank") + private Long rank; + + /** + * How POST_CALL policies are evaluated on streamed responses. If unset, responses use full + * response evaluation (FULLY_BUFFERED) and do not stream. Applies when the policy and request + * support streaming evaluation. Not supported for policies on MCP services. + */ + @JsonProperty("stream_mode") + private ServiceOptionsStreamMode streamMode; + + public ServiceOptions setBuiltin(ServiceOptionsBuiltin builtin) { + this.builtin = builtin; + return this; + } + + public ServiceOptionsBuiltin getBuiltin() { + return builtin; + } + + public ServiceOptions setConversationWindow(ServiceOptionsConversationWindow conversationWindow) { + this.conversationWindow = conversationWindow; + return this; + } + + public ServiceOptionsConversationWindow getConversationWindow() { + return conversationWindow; + } + + public ServiceOptions setCustom(ServiceOptionsCustom custom) { + this.custom = custom; + return this; + } + + public ServiceOptionsCustom getCustom() { + return custom; + } + + public ServiceOptions setExternal(ServiceOptionsExternal external) { + this.external = external; + return this; + } + + public ServiceOptionsExternal getExternal() { + return external; + } + + public ServiceOptions setMode(ServiceOptionsMode mode) { + this.mode = mode; + return this; + } + + public ServiceOptionsMode getMode() { + return mode; + } + + public ServiceOptions setPhases(Collection phases) { + this.phases = phases; + return this; + } + + public Collection getPhases() { + return phases; + } + + public ServiceOptions setRank(Long rank) { + this.rank = rank; + return this; + } + + public Long getRank() { + return rank; + } + + public ServiceOptions setStreamMode(ServiceOptionsStreamMode streamMode) { + this.streamMode = streamMode; + return this; + } + + public ServiceOptionsStreamMode getStreamMode() { + return streamMode; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptions that = (ServiceOptions) o; + return Objects.equals(builtin, that.builtin) + && Objects.equals(conversationWindow, that.conversationWindow) + && Objects.equals(custom, that.custom) + && Objects.equals(external, that.external) + && Objects.equals(mode, that.mode) + && Objects.equals(phases, that.phases) + && Objects.equals(rank, that.rank) + && Objects.equals(streamMode, that.streamMode); + } + + @Override + public int hashCode() { + return Objects.hash( + builtin, conversationWindow, custom, external, mode, phases, rank, streamMode); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptions.class) + .add("builtin", builtin) + .add("conversationWindow", conversationWindow) + .add("custom", custom) + .add("external", external) + .add("mode", mode) + .add("phases", phases) + .add("rank", rank) + .add("streamMode", streamMode) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsAction.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsAction.java new file mode 100644 index 000000000..deb1c8bd3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsAction.java @@ -0,0 +1,13 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** Action taken when a service policy detects a violation. */ +@Generated +public enum ServiceOptionsAction { + ASK, + BLOCK, + MASK, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltin.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltin.java new file mode 100644 index 000000000..2a8238d3f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltin.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** A Databricks-provided policy. Exactly one option is required. */ +@Generated +public class ServiceOptionsBuiltin { + /** A Databricks-provided LLM judge. */ + @JsonProperty("llm_judge") + private ServiceOptionsBuiltinLlmJudge llmJudge; + + /** Deterministic sensitive-data detection. */ + @JsonProperty("sensitive_data") + private ServiceOptionsBuiltinSensitiveData sensitiveData; + + public ServiceOptionsBuiltin setLlmJudge(ServiceOptionsBuiltinLlmJudge llmJudge) { + this.llmJudge = llmJudge; + return this; + } + + public ServiceOptionsBuiltinLlmJudge getLlmJudge() { + return llmJudge; + } + + public ServiceOptionsBuiltin setSensitiveData(ServiceOptionsBuiltinSensitiveData sensitiveData) { + this.sensitiveData = sensitiveData; + return this; + } + + public ServiceOptionsBuiltinSensitiveData getSensitiveData() { + return sensitiveData; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsBuiltin that = (ServiceOptionsBuiltin) o; + return Objects.equals(llmJudge, that.llmJudge) + && Objects.equals(sensitiveData, that.sensitiveData); + } + + @Override + public int hashCode() { + return Objects.hash(llmJudge, sensitiveData); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsBuiltin.class) + .add("llmJudge", llmJudge) + .add("sensitiveData", sensitiveData) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudge.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudge.java new file mode 100644 index 000000000..c96253a7f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudge.java @@ -0,0 +1,82 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** A Databricks-provided LLM judge that checks requests or responses for a guardrail. */ +@Generated +public class ServiceOptionsBuiltinLlmJudge { + /** Databricks-provided guardrail to run. */ + @JsonProperty("guardrail") + private ServiceOptionsBuiltinLlmJudgeGuardrail guardrail; + + /** + * Whether the referenced model service has been deleted or can no longer be found. If its name + * can no longer be determined, `model_service_name` is empty. + */ + @JsonProperty("is_deleted") + private Boolean isDeleted; + + /** + * Resource name of the model service that evaluates the request or response, in the form + * `model-services/{catalog}.{schema}.{model_service}`. + */ + @JsonProperty("model_service_name") + private String modelServiceName; + + public ServiceOptionsBuiltinLlmJudge setGuardrail( + ServiceOptionsBuiltinLlmJudgeGuardrail guardrail) { + this.guardrail = guardrail; + return this; + } + + public ServiceOptionsBuiltinLlmJudgeGuardrail getGuardrail() { + return guardrail; + } + + public ServiceOptionsBuiltinLlmJudge setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + return this; + } + + public Boolean getIsDeleted() { + return isDeleted; + } + + public ServiceOptionsBuiltinLlmJudge setModelServiceName(String modelServiceName) { + this.modelServiceName = modelServiceName; + return this; + } + + public String getModelServiceName() { + return modelServiceName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsBuiltinLlmJudge that = (ServiceOptionsBuiltinLlmJudge) o; + return Objects.equals(guardrail, that.guardrail) + && Objects.equals(isDeleted, that.isDeleted) + && Objects.equals(modelServiceName, that.modelServiceName); + } + + @Override + public int hashCode() { + return Objects.hash(guardrail, isDeleted, modelServiceName); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsBuiltinLlmJudge.class) + .add("guardrail", guardrail) + .add("isDeleted", isDeleted) + .add("modelServiceName", modelServiceName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudgeGuardrail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudgeGuardrail.java new file mode 100644 index 000000000..18feaacfb --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinLlmJudgeGuardrail.java @@ -0,0 +1,13 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** Databricks-provided guardrails. */ +@Generated +public enum ServiceOptionsBuiltinLlmJudgeGuardrail { + HALLUCINATION, + JAILBREAK, + UNSAFE_CONTENT, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveData.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveData.java new file mode 100644 index 000000000..fb336a62d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveData.java @@ -0,0 +1,68 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +/** Detects selected categories of sensitive data in requests or responses. */ +@Generated +public class ServiceOptionsBuiltinSensitiveData { + /** + * Action taken when a selected data category is detected: BLOCK, MASK, or ASK. ASK is supported + * only for MCP services and only in the PRE_CALL phase. + */ + @JsonProperty("action") + private ServiceOptionsAction action; + + /** + * One to 15 data classifiers to apply. Classifier names must be unique. A PATCH request that + * selects only `service.builtin.sensitive_data.action` in the update mask can omit this field. + * The policy keeps its stored classifiers. + */ + @JsonProperty("classifiers") + private Collection classifiers; + + public ServiceOptionsBuiltinSensitiveData setAction(ServiceOptionsAction action) { + this.action = action; + return this; + } + + public ServiceOptionsAction getAction() { + return action; + } + + public ServiceOptionsBuiltinSensitiveData setClassifiers( + Collection classifiers) { + this.classifiers = classifiers; + return this; + } + + public Collection getClassifiers() { + return classifiers; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsBuiltinSensitiveData that = (ServiceOptionsBuiltinSensitiveData) o; + return Objects.equals(action, that.action) && Objects.equals(classifiers, that.classifiers); + } + + @Override + public int hashCode() { + return Objects.hash(action, classifiers); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsBuiltinSensitiveData.class) + .add("action", action) + .add("classifiers", classifiers) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveDataClassifier.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveDataClassifier.java new file mode 100644 index 000000000..e0e0b88d2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsBuiltinSensitiveDataClassifier.java @@ -0,0 +1,50 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** A data classifier that detects one category of sensitive data. */ +@Generated +public class ServiceOptionsBuiltinSensitiveDataClassifier { + /** + * Resource name of a built-in data classifier, in the form + * `classifiers/system.data_classification.{classifier}`, such as + * `classifiers/system.data_classification.us_ssn`. The classifier name must be lowercase. + */ + @JsonProperty("classifier_name") + private String classifierName; + + public ServiceOptionsBuiltinSensitiveDataClassifier setClassifierName(String classifierName) { + this.classifierName = classifierName; + return this; + } + + public String getClassifierName() { + return classifierName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsBuiltinSensitiveDataClassifier that = + (ServiceOptionsBuiltinSensitiveDataClassifier) o; + return Objects.equals(classifierName, that.classifierName); + } + + @Override + public int hashCode() { + return Objects.hash(classifierName); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsBuiltinSensitiveDataClassifier.class) + .add("classifierName", classifierName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsConversationWindow.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsConversationWindow.java new file mode 100644 index 000000000..ee650e9a4 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsConversationWindow.java @@ -0,0 +1,48 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** Limits the conversation history supplied to the policy evaluator. */ +@Generated +public class ServiceOptionsConversationWindow { + /** + * Maximum number of recent conversation turns made available to the evaluator, from 1 to 100. + * Unset means the entire conversation. + */ + @JsonProperty("max_turns") + private Long maxTurns; + + public ServiceOptionsConversationWindow setMaxTurns(Long maxTurns) { + this.maxTurns = maxTurns; + return this; + } + + public Long getMaxTurns() { + return maxTurns; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsConversationWindow that = (ServiceOptionsConversationWindow) o; + return Objects.equals(maxTurns, that.maxTurns); + } + + @Override + public int hashCode() { + return Objects.hash(maxTurns); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsConversationWindow.class) + .add("maxTurns", maxTurns) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustom.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustom.java new file mode 100644 index 000000000..978762cc5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustom.java @@ -0,0 +1,78 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** + * A user-defined policy. Exactly one of `llm_judge`, `sql_function`, or `python_function` is + * required. + */ +@Generated +public class ServiceOptionsCustom { + /** A Unity Catalog model service that evaluates requests or responses against your prompt. */ + @JsonProperty("llm_judge") + private ServiceOptionsCustomLlmJudge llmJudge; + + /** A Python Unity Catalog function. */ + @JsonProperty("python_function") + private ServiceOptionsCustomPythonFunction pythonFunction; + + /** A SQL Unity Catalog function. */ + @JsonProperty("sql_function") + private ServiceOptionsCustomSqlFunction sqlFunction; + + public ServiceOptionsCustom setLlmJudge(ServiceOptionsCustomLlmJudge llmJudge) { + this.llmJudge = llmJudge; + return this; + } + + public ServiceOptionsCustomLlmJudge getLlmJudge() { + return llmJudge; + } + + public ServiceOptionsCustom setPythonFunction(ServiceOptionsCustomPythonFunction pythonFunction) { + this.pythonFunction = pythonFunction; + return this; + } + + public ServiceOptionsCustomPythonFunction getPythonFunction() { + return pythonFunction; + } + + public ServiceOptionsCustom setSqlFunction(ServiceOptionsCustomSqlFunction sqlFunction) { + this.sqlFunction = sqlFunction; + return this; + } + + public ServiceOptionsCustomSqlFunction getSqlFunction() { + return sqlFunction; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsCustom that = (ServiceOptionsCustom) o; + return Objects.equals(llmJudge, that.llmJudge) + && Objects.equals(pythonFunction, that.pythonFunction) + && Objects.equals(sqlFunction, that.sqlFunction); + } + + @Override + public int hashCode() { + return Objects.hash(llmJudge, pythonFunction, sqlFunction); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsCustom.class) + .add("llmJudge", llmJudge) + .add("pythonFunction", pythonFunction) + .add("sqlFunction", sqlFunction) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomLlmJudge.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomLlmJudge.java new file mode 100644 index 000000000..b91043987 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomLlmJudge.java @@ -0,0 +1,99 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** A Unity Catalog model service that evaluates requests or responses against your prompt. */ +@Generated +public class ServiceOptionsCustomLlmJudge { + /** + * Action taken when the judge detects a violation: BLOCK or ASK. ASK is supported only for MCP + * services and only in the PRE_CALL phase. + */ + @JsonProperty("action") + private ServiceOptionsAction action; + + /** + * Whether the referenced model service has been deleted or can no longer be found. If its name + * can no longer be determined, `model_service_name` is empty. + */ + @JsonProperty("is_deleted") + private Boolean isDeleted; + + /** + * Resource name of the model service that evaluates the request or response, in the form + * `model-services/{catalog}.{schema}.{model_service}`. + */ + @JsonProperty("model_service_name") + private String modelServiceName; + + /** Policy prompt evaluated by the LLM judge. Must not exceed 8 KiB. */ + @JsonProperty("prompt") + private String prompt; + + public ServiceOptionsCustomLlmJudge setAction(ServiceOptionsAction action) { + this.action = action; + return this; + } + + public ServiceOptionsAction getAction() { + return action; + } + + public ServiceOptionsCustomLlmJudge setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + return this; + } + + public Boolean getIsDeleted() { + return isDeleted; + } + + public ServiceOptionsCustomLlmJudge setModelServiceName(String modelServiceName) { + this.modelServiceName = modelServiceName; + return this; + } + + public String getModelServiceName() { + return modelServiceName; + } + + public ServiceOptionsCustomLlmJudge setPrompt(String prompt) { + this.prompt = prompt; + return this; + } + + public String getPrompt() { + return prompt; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsCustomLlmJudge that = (ServiceOptionsCustomLlmJudge) o; + return Objects.equals(action, that.action) + && Objects.equals(isDeleted, that.isDeleted) + && Objects.equals(modelServiceName, that.modelServiceName) + && Objects.equals(prompt, that.prompt); + } + + @Override + public int hashCode() { + return Objects.hash(action, isDeleted, modelServiceName, prompt); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsCustomLlmJudge.class) + .add("action", action) + .add("isDeleted", isDeleted) + .add("modelServiceName", modelServiceName) + .add("prompt", prompt) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomPythonFunction.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomPythonFunction.java new file mode 100644 index 000000000..1c70a8a2d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomPythonFunction.java @@ -0,0 +1,85 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; +import java.util.Objects; + +/** A Python Unity Catalog function that evaluates the policy event. */ +@Generated +public class ServiceOptionsCustomPythonFunction { + /** + * Configuration supplied to the Python function as its `config` argument. Up to 32 entries with + * keys of up to 256 characters; the serialized configuration must not exceed 8 KiB. + */ + @JsonProperty("config") + private Map config; + + /** + * Resource name of the existing Python Unity Catalog function, in the form + * `functions/{catalog}.{schema}.{function}`. + */ + @JsonProperty("function_name") + private String functionName; + + /** + * Whether the referenced function has been deleted or can no longer be found. If its name can no + * longer be determined, `function_name` is empty. + */ + @JsonProperty("is_deleted") + private Boolean isDeleted; + + public ServiceOptionsCustomPythonFunction setConfig(Map config) { + this.config = config; + return this; + } + + public Map getConfig() { + return config; + } + + public ServiceOptionsCustomPythonFunction setFunctionName(String functionName) { + this.functionName = functionName; + return this; + } + + public String getFunctionName() { + return functionName; + } + + public ServiceOptionsCustomPythonFunction setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + return this; + } + + public Boolean getIsDeleted() { + return isDeleted; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsCustomPythonFunction that = (ServiceOptionsCustomPythonFunction) o; + return Objects.equals(config, that.config) + && Objects.equals(functionName, that.functionName) + && Objects.equals(isDeleted, that.isDeleted); + } + + @Override + public int hashCode() { + return Objects.hash(config, functionName, isDeleted); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsCustomPythonFunction.class) + .add("config", config) + .add("functionName", functionName) + .add("isDeleted", isDeleted) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomSqlFunction.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomSqlFunction.java new file mode 100644 index 000000000..523aebf7d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsCustomSqlFunction.java @@ -0,0 +1,70 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** + * A SQL Unity Catalog function that evaluates the policy event. Model-service events expose + * `context.message`; MCP-service events expose `context.tool`. + */ +@Generated +public class ServiceOptionsCustomSqlFunction { + /** + * Resource name of the existing Unity Catalog function, in the form + * `functions/{catalog}.{schema}.{function}`. The function must take one VARIANT parameter + * (`event`) or two (`event`, `config`) and return VARIANT or STRUCT. + */ + @JsonProperty("function_name") + private String functionName; + + /** + * Whether the referenced function has been deleted or can no longer be found. If its name can no + * longer be determined, `function_name` is empty. + */ + @JsonProperty("is_deleted") + private Boolean isDeleted; + + public ServiceOptionsCustomSqlFunction setFunctionName(String functionName) { + this.functionName = functionName; + return this; + } + + public String getFunctionName() { + return functionName; + } + + public ServiceOptionsCustomSqlFunction setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + return this; + } + + public Boolean getIsDeleted() { + return isDeleted; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsCustomSqlFunction that = (ServiceOptionsCustomSqlFunction) o; + return Objects.equals(functionName, that.functionName) + && Objects.equals(isDeleted, that.isDeleted); + } + + @Override + public int hashCode() { + return Objects.hash(functionName, isDeleted); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsCustomSqlFunction.class) + .add("functionName", functionName) + .add("isDeleted", isDeleted) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExecutionPhase.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExecutionPhase.java new file mode 100644 index 000000000..e28176efd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExecutionPhase.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** Point in the service invocation at which the policy runs. */ +@Generated +public enum ServiceOptionsExecutionPhase { + POST_CALL, + PRE_CALL, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExternal.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExternal.java new file mode 100644 index 000000000..af710200d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsExternal.java @@ -0,0 +1,112 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.protobuf.Duration; +import java.util.Objects; + +/** A policy evaluated by an external provider, called through a Unity Catalog connection. */ +@Generated +public class ServiceOptionsExternal { + /** + * Resource name of the Unity Catalog connection used to call the external provider, in the form + * `connections/{catalog}.{schema}.{connection}`. + */ + @JsonProperty("connection_name") + private String connectionName; + + /** + * Whether the referenced connection has been deleted or can no longer be found. If its name can + * no longer be determined, `connection_name` is empty. + */ + @JsonProperty("is_deleted") + private Boolean isDeleted; + + /** Subpath appended to the connection's base URL. If unset, `/` is used. */ + @JsonProperty("path") + private String path; + + /** Provider-specific configuration supplied on every evaluation, as a JSON object. */ + @JsonProperty("policy_config") + private String policyConfig; + + /** Maximum external evaluation time, from 1ms to 10s. If unset, 5 seconds is used. */ + @JsonProperty("timeout") + private Duration timeout; + + public ServiceOptionsExternal setConnectionName(String connectionName) { + this.connectionName = connectionName; + return this; + } + + public String getConnectionName() { + return connectionName; + } + + public ServiceOptionsExternal setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + return this; + } + + public Boolean getIsDeleted() { + return isDeleted; + } + + public ServiceOptionsExternal setPath(String path) { + this.path = path; + return this; + } + + public String getPath() { + return path; + } + + public ServiceOptionsExternal setPolicyConfig(String policyConfig) { + this.policyConfig = policyConfig; + return this; + } + + public String getPolicyConfig() { + return policyConfig; + } + + public ServiceOptionsExternal setTimeout(Duration timeout) { + this.timeout = timeout; + return this; + } + + public Duration getTimeout() { + return timeout; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ServiceOptionsExternal that = (ServiceOptionsExternal) o; + return Objects.equals(connectionName, that.connectionName) + && Objects.equals(isDeleted, that.isDeleted) + && Objects.equals(path, that.path) + && Objects.equals(policyConfig, that.policyConfig) + && Objects.equals(timeout, that.timeout); + } + + @Override + public int hashCode() { + return Objects.hash(connectionName, isDeleted, path, policyConfig, timeout); + } + + @Override + public String toString() { + return new ToStringer(ServiceOptionsExternal.class) + .add("connectionName", connectionName) + .add("isDeleted", isDeleted) + .add("path", path) + .add("policyConfig", policyConfig) + .add("timeout", timeout) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsMode.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsMode.java new file mode 100644 index 000000000..f70d072c0 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsMode.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** Whether policy outcomes affect the invocation or are only recorded. */ +@Generated +public enum ServiceOptionsMode { + ENFORCE, + LOG, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsStreamMode.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsStreamMode.java new file mode 100644 index 000000000..018281bf9 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ServiceOptionsStreamMode.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** Streaming evaluation modes for POST_CALL policies. */ +@Generated +public enum ServiceOptionsStreamMode { + FULLY_BUFFERED, + WINDOWED_SYNC, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/UpdateComputePolicyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/UpdateComputePolicyRequest.java index 13756b74e..ec50c4cde 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/UpdateComputePolicyRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/UpdateComputePolicyRequest.java @@ -24,11 +24,11 @@ public class UpdateComputePolicyRequest { /** * Fields to update, relative to `compute_policy`. Must contain at least one path; the supported - * paths are `display_name` and `allowed_compute_products`. Supplied product arms replace their - * constraints and omitted products remain unchanged. An empty arm clears that product's limits; - * an absent or empty products object is invalid. Removing a product requires its delete API. - * Nested masks and wildcards are unsupported. `display_name` cannot be cleared: if it is in the - * mask it must be non-empty. + * paths are `display_name` and `allowed_compute_products`. Updating `allowed_compute_products` + * replaces the complete product set and each supplied product's constraints. Omitted products are + * removed; an empty arm clears that product's limits. An absent or empty products object is + * invalid. Removed Automated compute follows its recovery period. Nested masks and wildcards are + * unsupported. `display_name` cannot be cleared: if it is in the mask it must be non-empty. */ @JsonIgnore @QueryParam("update_mask") diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/DirectoryEntry.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/DirectoryEntry.java index 53339e663..021b577e3 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/DirectoryEntry.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/DirectoryEntry.java @@ -17,7 +17,10 @@ public class DirectoryEntry { @JsonProperty("is_directory") private Boolean isDirectory; - /** Last modification time of given file in milliseconds since unix epoch. */ + /** + * Last modification time of the file in milliseconds since the Unix epoch. This field is omitted + * for directories. + */ @JsonProperty("last_modified") private Long lastModified; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/CreateGenieAgentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/CreateGenieAgentRequest.java index 48560a06a..54f58290e 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/CreateGenieAgentRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/CreateGenieAgentRequest.java @@ -18,8 +18,8 @@ public class CreateGenieAgentRequest { /** * The ID for the new Genie Agent: 32 lowercase hexadecimal characters (a UUID without dashes), * not all zeros. Assigned by the server if omitted. Fails with ALREADY_EXISTS if the ID is in use - * in the workspace, including by a Genie Agent in the trash, or PERMISSION_DENIED if the caller - * cannot view the Genie Agent using it. + * in the workspace, including by a Genie Agent in the trash, or PERMISSION_DENIED if the ID + * belongs to a Genie Agent the caller can't view. */ @JsonIgnore @QueryParam("genie_agent_id") diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java index 54157e96f..afbe6a8e1 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java @@ -16,12 +16,12 @@ public class GenieAgent { private Timestamp createTime; /** - * The definition of the Genie Agent: its sample questions, data sources, instructions, and + * The definition of the Genie Agent: its sample questions, resources, instructions, and * benchmarks. Create requires at least one table, volume, MCP connection, or sub-agent in - * `data_sources`. Returned on get and on list with `GENIE_AGENT_VIEW_FULL`. Create and update - * return a submitted definition unchanged; one the service would store differently, or with a - * column config the workspace can't keep (unknown column, or a display name while those are - * disabled), is rejected with INVALID_PARAMETER_VALUE. + * `resources`. Returned on get and on list with `GENIE_AGENT_VIEW_FULL`. Create and update return + * a submitted definition unchanged. A definition that the service would not store exactly as + * submitted is rejected with INVALID_PARAMETER_VALUE, for example a column config for a column + * that doesn't exist, or a column display name when display names are disabled for the workspace. */ @JsonProperty("definition") private GenieAgentDefinition definition; @@ -36,7 +36,7 @@ public class GenieAgent { private String description; /** - * Display name of the Genie Agent. Must be unique within its folder (effective_parent_path): a + * Display name of the Genie Agent. Must be unique within its folder (`effective_parent_path`): a * create, rename, or move that would collide with an existing Genie Agent's name in the target * folder is rejected with ALREADY_EXISTS. * @@ -66,7 +66,8 @@ public class GenieAgent { /** * The workspace folder to create the Genie Agent in. If omitted, the caller's home folder is * used. Returned exactly as submitted; see `effective_parent_path` for the current folder. On - * update, setting it moves the Genie Agent and clearing it does not. At most 4,096 characters. + * update, setting it moves the Genie Agent and clearing it does not. The maximum length is 4,096 + * characters. */ @JsonProperty("parent_path") private String parentPath; @@ -75,7 +76,7 @@ public class GenieAgent { @JsonProperty("update_time") private Timestamp updateTime; - /** Warehouse associated with the Genie Agent. */ + /** The ID of the SQL warehouse the Genie Agent uses to run queries. */ @JsonProperty("warehouse_id") private String warehouseId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsAPI.java index 7549f2171..58e1d1717 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsAPI.java @@ -70,7 +70,7 @@ public Iterable listGenieAgents(ListGenieAgentsRequest request) { }); } - /** Updates a Genie Agent. Only the fields named in update_mask are applied. */ + /** Updates a Genie Agent. Only the fields named in `update_mask` are applied. */ public GenieAgent updateGenieAgent(UpdateGenieAgentRequest request) { return impl.updateGenieAgent(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsService.java index 82a1b5dd5..1f26bcb4b 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentsService.java @@ -30,6 +30,6 @@ public interface GenieAgentsService { */ ListGenieAgentsResponse listGenieAgents(ListGenieAgentsRequest listGenieAgentsRequest); - /** Updates a Genie Agent. Only the fields named in update_mask are applied. */ + /** Updates a Genie Agent. Only the fields named in `update_mask` are applied. */ GenieAgent updateGenieAgent(UpdateGenieAgentRequest updateGenieAgentRequest); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsRequest.java index 2722dcd67..cea54f394 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsRequest.java @@ -29,7 +29,8 @@ public class ListGenieAgentsRequest { /** * The fields to return for each Genie Agent. Defaults to `GENIE_AGENT_VIEW_BASIC`. Use - * `GENIE_AGENT_VIEW_FULL` only when the agent bodies are needed, since it returns smaller pages. + * `GENIE_AGENT_VIEW_FULL` only when the Genie Agent definitions are needed, since it returns + * smaller pages. */ @JsonIgnore @QueryParam("view") diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsResponse.java index 7660cd406..d04d18161 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsResponse.java @@ -15,7 +15,7 @@ public class ListGenieAgentsResponse { @JsonProperty("genie_agents") private Collection genieAgents; - /** Token to get the next page of results. */ + /** Token to get the next page of results. Absent when there are no more results. */ @JsonProperty("next_page_token") private String nextPageToken; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java index 74281b8f3..d986123f6 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java @@ -14,15 +14,16 @@ public class UpdateGenieAgentRequest { /** * Etag from a previous read. On mismatch the update fails with ABORTED (metadata changes may - * already be applied); get the agent and retry. May return TEMPORARILY_UNAVAILABLE. + * already be applied); get the Genie Agent and retry. The update can also fail with + * TEMPORARILY_UNAVAILABLE; retry it. */ @JsonIgnore @QueryParam("etag") private String etag; /** - * The Genie Agent to update. Its `name` identifies the resource; fields named in update_mask are - * applied. + * The Genie Agent to update. Its `name` identifies the resource; fields named in `update_mask` + * are applied. */ @JsonProperty("genie_agent") private GenieAgent genieAgent; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java index 5a602960e..e9c8f5a0b 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java @@ -25,8 +25,8 @@ public class ProjectConfig { private Location lineageLocation; /** - * The dialect of the project's source files. Can't be changed when `Project.changes_locked` is - * `true`. + * The dialect of the project's source files. Required on create, and can't be + * `SOURCE_DIALECT_UNSPECIFIED`. Can't be changed when `Project.changes_locked` is `true`. */ @JsonProperty("source_dialect") private SourceDialect sourceDialect; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java index 05b184bff..bfd2f524b 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java @@ -9,7 +9,6 @@ public enum PermissionLevel { CAN_ATTACH_TO, CAN_BIND, - CAN_BUILD, CAN_CREATE, CAN_CREATE_APP, CAN_EDIT, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2API.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2API.java index 2271d4ffe..e0487ff78 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2API.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2API.java @@ -293,6 +293,28 @@ public IdentityVisibilityFilter getIdentityVisibilityFilter( return impl.getIdentityVisibilityFilter(request); } + public Me getMe(String name) { + return getMe(new GetMeRequest().setName(name)); + } + + /** Gets the principal's identity. */ + public Me getMe(GetMeRequest request) { + return impl.getMe(request); + } + + public MeTransitiveParentGroup getMeTransitiveParentGroup(String name) { + return getMeTransitiveParentGroup(new GetMeTransitiveParentGroupRequest().setName(name)); + } + + /** + * Gets one direct or inherited parent group of the principal. Returns a NOT_FOUND error if the + * group is not a direct or inherited parent group of the principal. + */ + public MeTransitiveParentGroup getMeTransitiveParentGroup( + GetMeTransitiveParentGroupRequest request) { + return impl.getMeTransitiveParentGroup(request); + } + public ServicePrincipal getServicePrincipal(String name) { return getServicePrincipal(new GetServicePrincipalRequest().setName(name)); } @@ -425,6 +447,27 @@ public Iterable listIdentityVisibilityFilters( }); } + public Iterable listMeTransitiveParentGroups(String parent) { + return listMeTransitiveParentGroups( + new ListMeTransitiveParentGroupsRequest().setParent(parent)); + } + + /** Lists direct and inherited parent groups for the principal. */ + public Iterable listMeTransitiveParentGroups( + ListMeTransitiveParentGroupsRequest request) { + return Paginator.newTokenPagination( + request, + impl::listMeTransitiveParentGroups, + ListMeTransitiveParentGroupsResponse::getMeTransitiveParentGroups, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); + } + public Iterable listServicePrincipals(String parent) { return listServicePrincipals(new ListServicePrincipalsRequest().setParent(parent)); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Impl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Impl.java index 9a209bb5b..faaaac948 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Impl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Impl.java @@ -317,6 +317,35 @@ public IdentityVisibilityFilter getIdentityVisibilityFilter( } } + @Override + public Me getMe(GetMeRequest request) { + String path = String.format("/api/2.0/identity/%s", request.getName()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + return apiClient.execute(req, Me.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public MeTransitiveParentGroup getMeTransitiveParentGroup( + GetMeTransitiveParentGroupRequest request) { + String path = String.format("/api/2.0/identity/%s", request.getName()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + return apiClient.execute(req, MeTransitiveParentGroup.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + @Override public ServicePrincipal getServicePrincipal(GetServicePrincipalRequest request) { String path = String.format("/api/2.0/identity/%s", request.getName()); @@ -436,6 +465,22 @@ public ListIdentityVisibilityFiltersResponse listIdentityVisibilityFilters( } } + @Override + public ListMeTransitiveParentGroupsResponse listMeTransitiveParentGroups( + ListMeTransitiveParentGroupsRequest request) { + String path = + String.format("/api/2.0/identity/%s/transitive-parent-groups", request.getParent()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + return apiClient.execute(req, ListMeTransitiveParentGroupsResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + @Override public ListServicePrincipalsResponse listServicePrincipals(ListServicePrincipalsRequest request) { String path = String.format("/api/2.0/identity/%s/service-principals", request.getParent()); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Service.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Service.java index 6f91d2a00..e5a10ba36 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Service.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/AccountIamV2Service.java @@ -189,6 +189,16 @@ ExternalServicePrincipal getExternalServicePrincipal( IdentityVisibilityFilter getIdentityVisibilityFilter( GetIdentityVisibilityFilterRequest getIdentityVisibilityFilterRequest); + /** Gets the principal's identity. */ + Me getMe(GetMeRequest getMeRequest); + + /** + * Gets one direct or inherited parent group of the principal. Returns a NOT_FOUND error if the + * group is not a direct or inherited parent group of the principal. + */ + MeTransitiveParentGroup getMeTransitiveParentGroup( + GetMeTransitiveParentGroupRequest getMeTransitiveParentGroupRequest); + /** Gets a service principal by its Databricks ID. */ ServicePrincipal getServicePrincipal(GetServicePrincipalRequest getServicePrincipalRequest); @@ -241,6 +251,10 @@ ListDirectGroupMembersResponse listDirectGroupMembers( ListIdentityVisibilityFiltersResponse listIdentityVisibilityFilters( ListIdentityVisibilityFiltersRequest listIdentityVisibilityFiltersRequest); + /** Lists direct and inherited parent groups for the principal. */ + ListMeTransitiveParentGroupsResponse listMeTransitiveParentGroups( + ListMeTransitiveParentGroupsRequest listMeTransitiveParentGroupsRequest); + /** * Lists the service principals in your account, sorted by Databricks ID. Service principals in * your identity provider that haven't been added to Databricks aren't included. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeRequest.java new file mode 100644 index 000000000..ef35d6214 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeRequest.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.iamv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.util.Objects; + +@Generated +public class GetMeRequest { + /** + * The Me resource name. Use accounts/{account_id}/me on an account host or me on a workspace + * host. + */ + @JsonIgnore private String name; + + public GetMeRequest setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetMeRequest that = (GetMeRequest) o; + return Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + return new ToStringer(GetMeRequest.class).add("name", name).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeTransitiveParentGroupRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeTransitiveParentGroupRequest.java new file mode 100644 index 000000000..d5bcb87d2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetMeTransitiveParentGroupRequest.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.iamv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.util.Objects; + +@Generated +public class GetMeTransitiveParentGroupRequest { + /** + * The parent group name. Use accounts/{account_id}/me/transitive-parent-groups/{group_id} on an + * account host or me/transitive-parent-groups/{group_id} on a workspace host. + */ + @JsonIgnore private String name; + + public GetMeTransitiveParentGroupRequest setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetMeTransitiveParentGroupRequest that = (GetMeTransitiveParentGroupRequest) o; + return Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + return new ToStringer(GetMeTransitiveParentGroupRequest.class).add("name", name).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsRequest.java new file mode 100644 index 000000000..3c2dd5704 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsRequest.java @@ -0,0 +1,84 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.iamv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.util.Objects; + +@Generated +public class ListMeTransitiveParentGroupsRequest { + /** + * Omitted or zero defaults to 1,000. Values above 1,000 are clamped to 1,000. Negative values + * return an INVALID_PARAMETER_VALUE error. + */ + @JsonIgnore + @QueryParam("page_size") + private Long pageSize; + + /** + * Cursor from a prior page. Use it with the same parent and request context to continue the + * listing; the page size may change between requests. + */ + @JsonIgnore + @QueryParam("page_token") + private String pageToken; + + /** + * The parent Me view. Use accounts/{account_id}/me on an account host or me on a workspace host. + */ + @JsonIgnore private String parent; + + public ListMeTransitiveParentGroupsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListMeTransitiveParentGroupsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + public ListMeTransitiveParentGroupsRequest setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListMeTransitiveParentGroupsRequest that = (ListMeTransitiveParentGroupsRequest) o; + return Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken) + && Objects.equals(parent, that.parent); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, pageToken, parent); + } + + @Override + public String toString() { + return new ToStringer(ListMeTransitiveParentGroupsRequest.class) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .add("parent", parent) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsResponse.java new file mode 100644 index 000000000..6011e09f7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListMeTransitiveParentGroupsResponse.java @@ -0,0 +1,62 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.iamv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +/** Response to listing the principal's transitive parent groups. */ +@Generated +public class ListMeTransitiveParentGroupsResponse { + /** The direct and inherited parent groups visible in the current request context. */ + @JsonProperty("me_transitive_parent_groups") + private Collection meTransitiveParentGroups; + + /** A token for the next page. Omitted when there are no more groups. */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListMeTransitiveParentGroupsResponse setMeTransitiveParentGroups( + Collection meTransitiveParentGroups) { + this.meTransitiveParentGroups = meTransitiveParentGroups; + return this; + } + + public Collection getMeTransitiveParentGroups() { + return meTransitiveParentGroups; + } + + public ListMeTransitiveParentGroupsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListMeTransitiveParentGroupsResponse that = (ListMeTransitiveParentGroupsResponse) o; + return Objects.equals(meTransitiveParentGroups, that.meTransitiveParentGroups) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(meTransitiveParentGroups, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListMeTransitiveParentGroupsResponse.class) + .add("meTransitiveParentGroups", meTransitiveParentGroups) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Me.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Me.java new file mode 100644 index 000000000..3502bf57e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Me.java @@ -0,0 +1,137 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.iamv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.JsonNode; +import java.util.Collection; +import java.util.Map; +import java.util.Objects; + +/** + * This API allows retrieving information about the current user, service principal, or group whose + * permissions are being used to make the request. + */ +@Generated +public class Me { + /** + * The user's given and family names joined with a space, when available. This field is absent for + * groups and service principals. + */ + @JsonProperty("display_name") + private String displayName; + + /** The principal is a group. */ + @JsonProperty("group") + private Group group; + + /** + * Identity attributes for a user or service principal, with each key mapped to a list of strings. + * Includes allowed predefined and custom attributes with stored values. Unset attributes are + * omitted; groups have an empty map. Country uses an ISO 3166-1 alpha-2 code, and manager + * contains the IdP-provided value without user resolution. + */ + @JsonProperty("identity_attributes") + private Map> identityAttributes; + + /** + * The Me resource name, in the format accounts/{account_id}/me on an account host or me on a + * workspace host. + */ + @JsonProperty("name") + private String name; + + /** The principal is a service principal. */ + @JsonProperty("service_principal") + private ServicePrincipal servicePrincipal; + + /** The principal is a user. */ + @JsonProperty("user") + private User user; + + public Me setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public Me setGroup(Group group) { + this.group = group; + return this; + } + + public Group getGroup() { + return group; + } + + public Me setIdentityAttributes(Map> identityAttributes) { + this.identityAttributes = identityAttributes; + return this; + } + + public Map> getIdentityAttributes() { + return identityAttributes; + } + + public Me setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public Me setServicePrincipal(ServicePrincipal servicePrincipal) { + this.servicePrincipal = servicePrincipal; + return this; + } + + public ServicePrincipal getServicePrincipal() { + return servicePrincipal; + } + + public Me setUser(User user) { + this.user = user; + return this; + } + + public User getUser() { + return user; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Me that = (Me) o; + return Objects.equals(displayName, that.displayName) + && Objects.equals(group, that.group) + && Objects.equals(identityAttributes, that.identityAttributes) + && Objects.equals(name, that.name) + && Objects.equals(servicePrincipal, that.servicePrincipal) + && Objects.equals(user, that.user); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, group, identityAttributes, name, servicePrincipal, user); + } + + @Override + public String toString() { + return new ToStringer(Me.class) + .add("displayName", displayName) + .add("group", group) + .add("identityAttributes", identityAttributes) + .add("name", name) + .add("servicePrincipal", servicePrincipal) + .add("user", user) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/MeTransitiveParentGroup.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/MeTransitiveParentGroup.java new file mode 100644 index 000000000..625c66904 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/MeTransitiveParentGroup.java @@ -0,0 +1,109 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.iamv2; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** A direct or inherited parent group of the principal in the current request context. */ +@Generated +public class MeTransitiveParentGroup { + /** The account ID of the parent group. */ + @JsonProperty("account_id") + private String accountId; + + /** The external ID of the parent group in the customer's identity provider, if present. */ + @JsonProperty("external_id") + private String externalId; + + /** The internal ID of the parent group. */ + @JsonProperty("group_id") + private String groupId; + + /** The name of the parent group. */ + @JsonProperty("group_name") + private String groupName; + + /** + * The parent group resource name, in the format + * accounts/{account_id}/me/transitive-parent-groups/{group_id} on an account host or + * me/transitive-parent-groups/{group_id} on a workspace host. + */ + @JsonProperty("name") + private String name; + + public MeTransitiveParentGroup setAccountId(String accountId) { + this.accountId = accountId; + return this; + } + + public String getAccountId() { + return accountId; + } + + public MeTransitiveParentGroup setExternalId(String externalId) { + this.externalId = externalId; + return this; + } + + public String getExternalId() { + return externalId; + } + + public MeTransitiveParentGroup setGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + public String getGroupId() { + return groupId; + } + + public MeTransitiveParentGroup setGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + public String getGroupName() { + return groupName; + } + + public MeTransitiveParentGroup setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + MeTransitiveParentGroup that = (MeTransitiveParentGroup) o; + return Objects.equals(accountId, that.accountId) + && Objects.equals(externalId, that.externalId) + && Objects.equals(groupId, that.groupId) + && Objects.equals(groupName, that.groupName) + && Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, externalId, groupId, groupName, name); + } + + @Override + public String toString() { + return new ToStringer(MeTransitiveParentGroup.class) + .add("accountId", accountId) + .add("externalId", externalId) + .add("groupId", groupId) + .add("groupName", groupName) + .add("name", name) + .toString(); + } +} 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 3c6dc45b7..6d2513035 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_1xRTX6000") + GPU_1X_RTX6000, + @JsonProperty("GPU_8xB300") GPU_8X_B300, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfig.java index ba4f58c71..9898ac6d1 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfig.java @@ -28,6 +28,10 @@ public class OnlineStoreConfig { @JsonProperty("schema_name") private String schemaName; + /** Read optimizations for the online table. */ + @JsonProperty("serving_optimizations") + private OnlineStoreConfigServingOptimizations servingOptimizations; + /** * Prefix for Unity Catalog table name. The materialized feature will be stored in a Lakebase * table with this prefix and a generated postfix. @@ -62,6 +66,16 @@ public String getSchemaName() { return schemaName; } + public OnlineStoreConfig setServingOptimizations( + OnlineStoreConfigServingOptimizations servingOptimizations) { + this.servingOptimizations = servingOptimizations; + return this; + } + + public OnlineStoreConfigServingOptimizations getServingOptimizations() { + return servingOptimizations; + } + public OnlineStoreConfig setTableNamePrefix(String tableNamePrefix) { this.tableNamePrefix = tableNamePrefix; return this; @@ -79,12 +93,14 @@ public boolean equals(Object o) { return Objects.equals(catalogName, that.catalogName) && Objects.equals(onlineStoreName, that.onlineStoreName) && Objects.equals(schemaName, that.schemaName) + && Objects.equals(servingOptimizations, that.servingOptimizations) && Objects.equals(tableNamePrefix, that.tableNamePrefix); } @Override public int hashCode() { - return Objects.hash(catalogName, onlineStoreName, schemaName, tableNamePrefix); + return Objects.hash( + catalogName, onlineStoreName, schemaName, servingOptimizations, tableNamePrefix); } @Override @@ -93,6 +109,7 @@ public String toString() { .add("catalogName", catalogName) .add("onlineStoreName", onlineStoreName) .add("schemaName", schemaName) + .add("servingOptimizations", servingOptimizations) .add("tableNamePrefix", tableNamePrefix) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfigServingOptimizations.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfigServingOptimizations.java new file mode 100644 index 000000000..4c0e5ab54 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/OnlineStoreConfigServingOptimizations.java @@ -0,0 +1,53 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.ml; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** + * How the online table is tuned for the reads it will serve. Only supported for streaming + * materializations. + */ +@Generated +public class OnlineStoreConfigServingOptimizations { + /** + * Adds a covering index so SecondaryKeys Features can read all of an entity's rows from the index + * alone. The index holds every Feature value, so Postgres's index limits apply: at most 32 key + * and value columns in total, and Features with ARRAY, MAP, STRUCT, APPROX_COUNT_DISTINCT or + * APPROX_PERCENTILE values cannot be materialized to a table with this optimization. + */ + @JsonProperty("secondary_key_index") + private Boolean secondaryKeyIndex; + + public OnlineStoreConfigServingOptimizations setSecondaryKeyIndex(Boolean secondaryKeyIndex) { + this.secondaryKeyIndex = secondaryKeyIndex; + return this; + } + + public Boolean getSecondaryKeyIndex() { + return secondaryKeyIndex; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + OnlineStoreConfigServingOptimizations that = (OnlineStoreConfigServingOptimizations) o; + return Objects.equals(secondaryKeyIndex, that.secondaryKeyIndex); + } + + @Override + public int hashCode() { + return Objects.hash(secondaryKeyIndex); + } + + @Override + public String toString() { + return new ToStringer(OnlineStoreConfigServingOptimizations.class) + .add("secondaryKeyIndex", secondaryKeyIndex) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/SawtoothWindow.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/SawtoothWindow.java index d46950a92..51265a187 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/SawtoothWindow.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/SawtoothWindow.java @@ -21,6 +21,14 @@ public class SawtoothWindow { @JsonProperty("delay") private Duration delay; + /** + * How often the batch-computed part of the window refreshes. The served window covers between + * window_duration - step and window_duration of data. Must be one of 1h, 2h, 3h, 4h, 6h, 8h, 12h + * or 24h, and window_duration must be more than twice the step. Defaults to 24h. + */ + @JsonProperty("step") + private Duration step; + /** * The duration of the window. Must be positive and span more than twice the step (two days at the * default 24h step) when set, so that both the batch (N-1 day) and stale-path (N-2 day) partial @@ -39,6 +47,15 @@ public Duration getDelay() { return delay; } + public SawtoothWindow setStep(Duration step) { + this.step = step; + return this; + } + + public Duration getStep() { + return step; + } + public SawtoothWindow setWindowDuration(Duration windowDuration) { this.windowDuration = windowDuration; return this; @@ -53,18 +70,21 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SawtoothWindow that = (SawtoothWindow) o; - return Objects.equals(delay, that.delay) && Objects.equals(windowDuration, that.windowDuration); + return Objects.equals(delay, that.delay) + && Objects.equals(step, that.step) + && Objects.equals(windowDuration, that.windowDuration); } @Override public int hashCode() { - return Objects.hash(delay, windowDuration); + return Objects.hash(delay, step, windowDuration); } @Override public String toString() { return new ToStringer(SawtoothWindow.class) .add("delay", delay) + .add("step", step) .add("windowDuration", windowDuration) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresAPI.java index d84a4e0ef..7379ad7e0 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresAPI.java @@ -434,7 +434,8 @@ public SnapshotSchedule getSnapshotSchedule(String name) { /** * Retrieves the snapshot schedule for a branch. A branch with no configured schedule returns an - * empty schedule (not NOT_FOUND). + * empty schedule (not NOT_FOUND). Snapshots that the schedule takes are returned by List + * Snapshots along with the project's other snapshots. */ public SnapshotSchedule getSnapshotSchedule(GetSnapshotScheduleRequest request) { return impl.getSnapshotSchedule(request); @@ -741,7 +742,7 @@ public UpdateRoleOperation updateRole(UpdateRoleRequest request) { /** * Sets the snapshot schedule for a branch. The `schedule` field is replaced wholesale; an empty - * schedule disables automatic snapshots. + * schedule disables automatic snapshots. The caller needs CAN_MANAGE permission on the project. */ public UpdateSnapshotScheduleOperation updateSnapshotSchedule( UpdateSnapshotScheduleRequest request) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresService.java index cd6a09e90..33f24af02 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresService.java @@ -221,7 +221,8 @@ DatabaseCredential generateDatabaseCredential( /** * Retrieves the snapshot schedule for a branch. A branch with no configured schedule returns an - * empty schedule (not NOT_FOUND). + * empty schedule (not NOT_FOUND). Snapshots that the schedule takes are returned by List + * Snapshots along with the project's other snapshots. */ SnapshotSchedule getSnapshotSchedule(GetSnapshotScheduleRequest getSnapshotScheduleRequest); @@ -334,7 +335,7 @@ RevealRolePasswordResponse revealRolePassword( /** * Sets the snapshot schedule for a branch. The `schedule` field is replaced wholesale; an empty - * schedule disables automatic snapshots. + * schedule disables automatic snapshots. The caller needs CAN_MANAGE permission on the project. */ Operation updateSnapshotSchedule(UpdateSnapshotScheduleRequest updateSnapshotScheduleRequest); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ScheduleCadence.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ScheduleCadence.java index 3de1e8a79..9a422f195 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ScheduleCadence.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ScheduleCadence.java @@ -20,9 +20,9 @@ public class ScheduleCadence { private MonthlySchedule monthlySchedule; /** - * How long snapshots from this cadence are kept before automatic deletion. Must be at least 1 - * hour. Applied when a snapshot is taken; not retroactive, so changing it affects only later - * snapshots. + * How long snapshots from this cadence are kept before automatic deletion. The retention must be + * between 1 hour and 35 days. It is applied when a snapshot is taken and is not retroactive, so + * changing it affects only later snapshots. */ @JsonProperty("retention") private Duration retention; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CreateWorkspaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CreateWorkspaceRequest.java index 40e3fd63c..976b40f80 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CreateWorkspaceRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CreateWorkspaceRequest.java @@ -28,9 +28,11 @@ public class CreateWorkspaceRequest { /** * If the compute mode is `SERVERLESS`, a serverless workspace is created that comes * pre-configured with serverless compute and default storage, providing a fully-managed, - * enterprise-ready SaaS experience. This means you don't need to provide any resources managed by - * you, such as credentials, storage, or network. If the compute mode is `HYBRID` (which is the - * default option), a classic workspace is created that uses customer-managed resources. + * enterprise-ready SaaS experience. You don't need to provide any resources managed by you, such + * as credentials, storage, or network. On AWS, you can optionally set `storage_configuration_id` + * to use your own S3 bucket for workspace storage instead of default storage. When you do, + * `credentials_id` and `network_id` are not supported. If the compute mode is `HYBRID` (which is + * the default option), a classic workspace is created that uses customer-managed resources. */ @JsonProperty("compute_mode") private CustomerFacingComputeMode computeMode; @@ -124,7 +126,10 @@ public class CreateWorkspaceRequest { @JsonProperty("private_access_settings_id") private String privateAccessSettingsId; - /** ID of the workspace's storage configuration object. */ + /** + * ID of the workspace's storage configuration object. For `SERVERLESS` workspaces this is + * optional: if set, workspace storage uses your S3 bucket instead of default storage. + */ @JsonProperty("storage_configuration_id") private String storageConfigurationId; diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index 5d7227718..40771f845 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.187.0 + 0.188.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index b22279db7..63ddabfc5 100644 --- a/examples/spring-boot-oauth-u2m-demo/pom.xml +++ b/examples/spring-boot-oauth-u2m-demo/pom.xml @@ -40,7 +40,7 @@ com.databricks databricks-sdk-java - 0.187.0 + 0.188.0 diff --git a/lockfile.json b/lockfile.json index 54f530d92..0162eec6f 100644 --- a/lockfile.json +++ b/lockfile.json @@ -1,7 +1,7 @@ { "artifactId": "databricks-sdk-parent", "groupId": "com.databricks", - "version": "0.187.0", + "version": "0.188.0", "lockFileVersion": 1, "dependencies": [], "mavenPlugins": [], diff --git a/pom.xml b/pom.xml index a349024db..bcc0de67d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.187.0 + 0.188.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for diff --git a/shaded/pom.xml b/shaded/pom.xml index ce316ad1e..975e63a08 100644 --- a/shaded/pom.xml +++ b/shaded/pom.xml @@ -4,7 +4,7 @@ 4.0.0 - 0.187.0 + 0.188.0 com.databricks