From 4601e51a6c769479228604c953b68806a8307986 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-2[bot]" <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com> Date: Fri, 14 Aug 2026 04:18:57 +0000 Subject: [PATCH] Update SDK to 2edb6f77fbec2b8fd50254b72d9c55cf7e1df941 --- .codegen/_openapi_sha | 2 +- .gitattributes | 2 + NEXT_CHANGELOG.md | 9 +++ .../dashboards/GenieConversationSummary.java | 22 ++++++- .../dashboards/GenieConversationType.java | 16 +++++ .../dashboards/TextAttachmentPurpose.java | 1 + .../sdk/service/iamv2/AccountIamV2API.java | 62 ++++++++++++++----- .../service/iamv2/AccountIamV2Service.java | 29 ++++++--- .../sdk/service/iamv2/DirectGroupMember.java | 18 +++++- .../service/iamv2/WorkspaceAssignment.java | 2 +- .../iamv2/WorkspaceAssignmentDetail.java | 2 +- .../sdk/service/iamv2/WorkspaceIamV2API.java | 56 +++++++++++++---- .../service/iamv2/WorkspaceIamV2Service.java | 26 +++++--- .../databricks/sdk/service/jobs/RunTask.java | 19 ++++++ .../sdk/service/postgres/NewPipelineSpec.java | 20 +++++- .../NewPipelineSpecPipelineChannel.java | 16 +++++ .../service/postgres/UpdateBranchRequest.java | 2 +- .../postgres/UpdateDataApiRequest.java | 2 +- .../postgres/UpdateDatabaseRequest.java | 2 +- .../postgres/UpdateEndpointRequest.java | 2 +- .../postgres/UpdateProjectRequest.java | 2 +- .../service/postgres/UpdateRoleRequest.java | 5 +- 22 files changed, 257 insertions(+), 60 deletions(-) create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationType.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpecPipelineChannel.java diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index faa13a0ec..f6c3e5373 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -bf4454409196b59985f60de1b7bc97f70526f8f3 \ No newline at end of file +2edb6f77fbec2b8fd50254b72d9c55cf7e1df941 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 192baaea8..9c1b71ec2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1190,6 +1190,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieAPI databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieAttachment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversation.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationSummary.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateConversationMessageRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateEvalRunRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateMessageCommentRequest.java linguist-generated=true @@ -2792,6 +2793,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListProjec databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListRolesRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListRolesResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpec.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpecPipelineChannel.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/OpenApiMode.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Operation.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresAPI.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 062c137ea..1366a05b3 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -15,3 +15,12 @@ ### Internal Changes ### API Changes +* Add `agentType` field for `com.databricks.sdk.service.dashboards.GenieConversationSummary`. +* Add `groupId` field for `com.databricks.sdk.service.iamv2.DirectGroupMember`. +* Add `effectiveServerlessComputeId` field for `com.databricks.sdk.service.jobs.RunTask`. +* Add `pipelineChannel` field for `com.databricks.sdk.service.postgres.NewPipelineSpec`. +* Add `TEXT_ATTACHMENT_PURPOSE_ANSWER` enum value for `com.databricks.sdk.service.dashboards.TextAttachmentPurpose`. +* [Breaking] Add pagination for `accountClient.accountIamV2().listDirectGroupMembers()` method. +* [Breaking] Add pagination for `accountClient.accountIamV2().listWorkspaceAssignmentDetails()` method. +* [Breaking] Add pagination for `workspaceClient.workspaceIamV2().listDirectGroupMembersProxy()` method. +* [Breaking] Add pagination for `workspaceClient.workspaceIamV2().listWorkspaceAssignmentDetailsProxy()` method. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationSummary.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationSummary.java index 7c9778186..0d8f01293 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationSummary.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationSummary.java @@ -9,6 +9,13 @@ @Generated public class GenieConversationSummary { + /** + * Whether this is a classic chat or an agent-mode conversation. Allows callers to route message + * retrieval (chat vs. agent endpoint) without an extra lookup. + */ + @JsonProperty("agent_type") + private GenieConversationType agentType; + /** */ @JsonProperty("conversation_id") private String conversationId; @@ -21,6 +28,15 @@ public class GenieConversationSummary { @JsonProperty("title") private String title; + public GenieConversationSummary setAgentType(GenieConversationType agentType) { + this.agentType = agentType; + return this; + } + + public GenieConversationType getAgentType() { + return agentType; + } + public GenieConversationSummary setConversationId(String conversationId) { this.conversationId = conversationId; return this; @@ -53,19 +69,21 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GenieConversationSummary that = (GenieConversationSummary) o; - return Objects.equals(conversationId, that.conversationId) + return Objects.equals(agentType, that.agentType) + && Objects.equals(conversationId, that.conversationId) && Objects.equals(createdTimestamp, that.createdTimestamp) && Objects.equals(title, that.title); } @Override public int hashCode() { - return Objects.hash(conversationId, createdTimestamp, title); + return Objects.hash(agentType, conversationId, createdTimestamp, title); } @Override public String toString() { return new ToStringer(GenieConversationSummary.class) + .add("agentType", agentType) .add("conversationId", conversationId) .add("createdTimestamp", createdTimestamp) .add("title", title) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationType.java new file mode 100644 index 000000000..a8c081bc7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieConversationType.java @@ -0,0 +1,16 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +import com.databricks.sdk.support.Generated; + +/** + * The type of a Genie conversation. Distinguishes an agent-mode conversation from a classic chat + * conversation so callers can route message retrieval accordingly without a per-conversation + * lookup. + */ +@Generated +public enum GenieConversationType { + GENIE_CONVERSATION_TYPE_AGENT, + GENIE_CONVERSATION_TYPE_CHAT, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TextAttachmentPurpose.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TextAttachmentPurpose.java index b372231ef..cbc8d97b0 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TextAttachmentPurpose.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TextAttachmentPurpose.java @@ -8,4 +8,5 @@ @Generated public enum TextAttachmentPurpose { FOLLOW_UP_QUESTION, + TEXT_ATTACHMENT_PURPOSE_ANSWER, } 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 3b8c973f1..972be44e5 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 @@ -37,8 +37,9 @@ public DirectGroupMember createDirectGroupMember(CreateDirectGroupMemberRequest * one that is not synced from the customer's identity provider, and can be created whether or not * Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalGroup - * resource to sync groups from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveGroup; to read an + * existing external identity, use the ExternalGroup resource. */ public Group createGroup(CreateGroupRequest request) { return impl.createGroup(request); @@ -49,9 +50,9 @@ public Group createGroup(CreateGroupRequest request) { * principal. A local service principal is one that is not synced from the customer's identity * provider, and can be created whether or not Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the - * ExternalServicePrincipal resource to sync service principals from the identity provider - * instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveServicePrincipal; to + * read an existing external identity, use the ExternalServicePrincipal resource. */ public ServicePrincipal createServicePrincipal(CreateServicePrincipalRequest request) { return impl.createServicePrincipal(request); @@ -62,8 +63,9 @@ public ServicePrincipal createServicePrincipal(CreateServicePrincipalRequest req * one that is not synced from the customer's identity provider, and can be created whether or not * Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalUser - * resource to sync users from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveUser; to read an + * existing external identity, use the ExternalUser resource. */ public User createUser(CreateUserRequest request) { return impl.createUser(request); @@ -242,7 +244,7 @@ public WorkspaceAssignmentDetail getWorkspaceAssignmentDetail( return impl.getWorkspaceAssignmentDetail(request); } - public ListDirectGroupMembersResponse listDirectGroupMembers(long groupId) { + public Iterable listDirectGroupMembers(long groupId) { return listDirectGroupMembers(new ListDirectGroupMembersRequest().setGroupId(groupId)); } @@ -250,9 +252,18 @@ public ListDirectGroupMembersResponse listDirectGroupMembers(long groupId) { * Lists provisioned direct members of a group with their membership source (internal or from * identity provider). */ - public ListDirectGroupMembersResponse listDirectGroupMembers( - ListDirectGroupMembersRequest request) { - return impl.listDirectGroupMembers(request); + public Iterable listDirectGroupMembers(ListDirectGroupMembersRequest request) { + return Paginator.newTokenPagination( + request, + impl::listDirectGroupMembers, + ListDirectGroupMembersResponse::getDirectGroupMembers, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); } /** @@ -320,7 +331,7 @@ public Iterable listUsers(ListUsersRequest request) { }); } - public ListWorkspaceAssignmentDetailsResponse listWorkspaceAssignmentDetails(long workspaceId) { + public Iterable listWorkspaceAssignmentDetails(long workspaceId) { return listWorkspaceAssignmentDetails( new ListWorkspaceAssignmentDetailsRequest().setWorkspaceId(workspaceId)); } @@ -330,9 +341,19 @@ public ListWorkspaceAssignmentDetailsResponse listWorkspaceAssignmentDetails(lon * entitlement fields (`entitlements` and `effective_entitlements`). To read the entitlements for * a single principal, get that principal's assignment detail. */ - public ListWorkspaceAssignmentDetailsResponse listWorkspaceAssignmentDetails( + public Iterable listWorkspaceAssignmentDetails( ListWorkspaceAssignmentDetailsRequest request) { - return impl.listWorkspaceAssignmentDetails(request); + return Paginator.newTokenPagination( + request, + impl::listWorkspaceAssignmentDetails, + ListWorkspaceAssignmentDetailsResponse::getWorkspaceAssignmentDetails, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); } public ListWorkspaceAssignmentsResponse listWorkspaceAssignments(long workspaceId) { @@ -381,6 +402,9 @@ public ResolveUserResponse resolveUser(ResolveUserRequest request) { /** * Updates an existing group in the Databricks account. Only the fields named in the update mask * are modified. Returns the updated Group resource. + * + *

When AIM is enabled and the group is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ public Group updateGroup(UpdateGroupRequest request) { return impl.updateGroup(request); @@ -389,6 +413,10 @@ public Group updateGroup(UpdateGroupRequest request) { /** * Updates an existing service principal in the Databricks account. Only the fields named in the * update mask are modified. Returns the updated ServicePrincipal resource. + * + *

When AIM is enabled and the service principal is an external identity (its external_id is + * set), only external_id can be updated; its other fields are sourced from your identity + * provider. */ public ServicePrincipal updateServicePrincipal(UpdateServicePrincipalRequest request) { return impl.updateServicePrincipal(request); @@ -397,8 +425,10 @@ public ServicePrincipal updateServicePrincipal(UpdateServicePrincipalRequest req /** * Updates an existing user in the Databricks account and returns the updated user. Only the * fields named in the update mask are modified. The updatable fields are fullName.givenName, - * fullName.familyName, status, and externalId. The behavior is the same whether or not Account - * Identity Management (AIM) is enabled. + * fullName.familyName, status, and externalId. + * + *

When AIM is enabled and the user is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ public User updateUser(UpdateUserRequest request) { return impl.updateUser(request); 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 f84936796..82831155d 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 @@ -22,8 +22,9 @@ DirectGroupMember createDirectGroupMember( * one that is not synced from the customer's identity provider, and can be created whether or not * Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalGroup - * resource to sync groups from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveGroup; to read an + * existing external identity, use the ExternalGroup resource. */ Group createGroup(CreateGroupRequest createGroupRequest); @@ -32,9 +33,9 @@ DirectGroupMember createDirectGroupMember( * principal. A local service principal is one that is not synced from the customer's identity * provider, and can be created whether or not Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the - * ExternalServicePrincipal resource to sync service principals from the identity provider - * instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveServicePrincipal; to + * read an existing external identity, use the ExternalServicePrincipal resource. */ ServicePrincipal createServicePrincipal( CreateServicePrincipalRequest createServicePrincipalRequest); @@ -44,8 +45,9 @@ ServicePrincipal createServicePrincipal( * one that is not synced from the customer's identity provider, and can be created whether or not * Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalUser - * resource to sync users from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveUser; to read an + * existing external identity, use the ExternalUser resource. */ User createUser(CreateUserRequest createUserRequest); @@ -195,12 +197,19 @@ ResolveServicePrincipalResponse resolveServicePrincipal( /** * Updates an existing group in the Databricks account. Only the fields named in the update mask * are modified. Returns the updated Group resource. + * + *

When AIM is enabled and the group is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ Group updateGroup(UpdateGroupRequest updateGroupRequest); /** * Updates an existing service principal in the Databricks account. Only the fields named in the * update mask are modified. Returns the updated ServicePrincipal resource. + * + *

When AIM is enabled and the service principal is an external identity (its external_id is + * set), only external_id can be updated; its other fields are sourced from your identity + * provider. */ ServicePrincipal updateServicePrincipal( UpdateServicePrincipalRequest updateServicePrincipalRequest); @@ -208,8 +217,10 @@ ServicePrincipal updateServicePrincipal( /** * Updates an existing user in the Databricks account and returns the updated user. Only the * fields named in the update mask are modified. The updatable fields are fullName.givenName, - * fullName.familyName, status, and externalId. The behavior is the same whether or not Account - * Identity Management (AIM) is enabled. + * fullName.familyName, status, and externalId. + * + *

When AIM is enabled and the user is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ User updateUser(UpdateUserRequest updateUserRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DirectGroupMember.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DirectGroupMember.java index d81ba72a3..3b615b67d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DirectGroupMember.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DirectGroupMember.java @@ -18,6 +18,10 @@ public class DirectGroupMember { @JsonProperty("external_id") private String externalId; + /** The internal ID of the group this member belongs to. */ + @JsonProperty("group_id") + private Long groupId; + /** The source of group membership (internal or from identity provider). */ @JsonProperty("membership_source") private GroupMembershipSource membershipSource; @@ -48,6 +52,15 @@ public String getExternalId() { return externalId; } + public DirectGroupMember setGroupId(Long groupId) { + this.groupId = groupId; + return this; + } + + public Long getGroupId() { + return groupId; + } + public DirectGroupMember setMembershipSource(GroupMembershipSource membershipSource) { this.membershipSource = membershipSource; return this; @@ -82,6 +95,7 @@ public boolean equals(Object o) { DirectGroupMember that = (DirectGroupMember) o; return Objects.equals(displayName, that.displayName) && Objects.equals(externalId, that.externalId) + && Objects.equals(groupId, that.groupId) && Objects.equals(membershipSource, that.membershipSource) && Objects.equals(principalId, that.principalId) && Objects.equals(principalType, that.principalType); @@ -89,7 +103,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(displayName, externalId, membershipSource, principalId, principalType); + return Objects.hash( + displayName, externalId, groupId, membershipSource, principalId, principalType); } @Override @@ -97,6 +112,7 @@ public String toString() { return new ToStringer(DirectGroupMember.class) .add("displayName", displayName) .add("externalId", externalId) + .add("groupId", groupId) .add("membershipSource", membershipSource) .add("principalId", principalId) .add("principalType", principalType) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignment.java index cebbea881..0ad4f33a9 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignment.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignment.java @@ -59,7 +59,7 @@ public class WorkspaceAssignment { @JsonProperty("principal_type") private PrincipalType principalType; - /** The workspace ID where the principal is assigned */ + /** The workspace ID where the principal is assigned. */ @JsonProperty("workspace_id") private Long workspaceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignmentDetail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignmentDetail.java index f47ead207..8746f9522 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignmentDetail.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAssignmentDetail.java @@ -59,7 +59,7 @@ public class WorkspaceAssignmentDetail { @JsonProperty("principal_type") private PrincipalType principalType; - /** The workspace ID where the principal is assigned */ + /** The workspace ID where the principal is assigned. */ @JsonProperty("workspace_id") private Long workspaceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2API.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2API.java index 51e7b6f6b..3d17dcbc9 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2API.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2API.java @@ -38,8 +38,9 @@ public DirectGroupMember createDirectGroupMemberProxy( * the created group. A local group is one that is not synced from the customer's identity * provider, and can be created whether or not Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalGroup - * resource to sync groups from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveGroup; to read an + * existing external identity, use the ExternalGroup resource. */ public Group createGroupProxy(CreateGroupProxyRequest request) { return impl.createGroupProxy(request); @@ -51,9 +52,9 @@ public Group createGroupProxy(CreateGroupProxyRequest request) { * from the customer's identity provider, and can be created whether or not Account Identity * Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the - * ExternalServicePrincipal resource to sync service principals from the identity provider - * instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveServicePrincipal; to + * read an existing external identity, use the ExternalServicePrincipal resource. */ public ServicePrincipal createServicePrincipalProxy(CreateServicePrincipalProxyRequest request) { return impl.createServicePrincipalProxy(request); @@ -64,8 +65,9 @@ public ServicePrincipal createServicePrincipalProxy(CreateServicePrincipalProxyR * the created user. A local user is one that is not synced from the customer's identity provider, * and can be created whether or not Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalUser - * resource to sync users from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveUser; to read an + * existing external identity, use the ExternalUser resource. */ public User createUserProxy(CreateUserProxyRequest request) { return impl.createUserProxy(request); @@ -268,7 +270,7 @@ public WorkspaceIdentityDetail getWorkspaceIdentityDetail( return impl.getWorkspaceIdentityDetail(request); } - public ListDirectGroupMembersResponse listDirectGroupMembersProxy(long groupId) { + public Iterable listDirectGroupMembersProxy(long groupId) { return listDirectGroupMembersProxy( new ListDirectGroupMembersProxyRequest().setGroupId(groupId)); } @@ -277,9 +279,19 @@ public ListDirectGroupMembersResponse listDirectGroupMembersProxy(long groupId) * Lists provisioned direct members of a group with their membership source (internal or from * identity provider). */ - public ListDirectGroupMembersResponse listDirectGroupMembersProxy( + public Iterable listDirectGroupMembersProxy( ListDirectGroupMembersProxyRequest request) { - return impl.listDirectGroupMembersProxy(request); + return Paginator.newTokenPagination( + request, + impl::listDirectGroupMembersProxy, + ListDirectGroupMembersResponse::getDirectGroupMembers, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); } /** @@ -353,9 +365,19 @@ public Iterable listUsersProxy(ListUsersProxyRequest request) { * per-principal entitlement fields (`entitlements` and `effective_entitlements`). To read the * entitlements for a single principal, get that principal's assignment detail. */ - public ListWorkspaceAssignmentDetailsResponse listWorkspaceAssignmentDetailsProxy( + public Iterable listWorkspaceAssignmentDetailsProxy( ListWorkspaceAssignmentDetailsProxyRequest request) { - return impl.listWorkspaceAssignmentDetailsProxy(request); + return Paginator.newTokenPagination( + request, + impl::listWorkspaceAssignmentDetailsProxy, + ListWorkspaceAssignmentDetailsResponse::getWorkspaceAssignmentDetails, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); } /** @@ -399,6 +421,9 @@ public ResolveUserResponse resolveUserProxy(ResolveUserProxyRequest request) { /** * Updates an existing group in the Databricks account that parents the calling workspace. Only * the fields named in the update mask are modified. Returns the updated Group resource. + * + *

When AIM is enabled and the group is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ public Group updateGroupProxy(UpdateGroupProxyRequest request) { return impl.updateGroupProxy(request); @@ -408,6 +433,10 @@ public Group updateGroupProxy(UpdateGroupProxyRequest request) { * Updates an existing service principal in the Databricks account that parents the calling * workspace. Only the fields named in the update mask are modified. Returns the updated * ServicePrincipal resource. + * + *

When AIM is enabled and the service principal is an external identity (its external_id is + * set), only external_id can be updated; its other fields are sourced from your identity + * provider. */ public ServicePrincipal updateServicePrincipalProxy(UpdateServicePrincipalProxyRequest request) { return impl.updateServicePrincipalProxy(request); @@ -417,6 +446,9 @@ public ServicePrincipal updateServicePrincipalProxy(UpdateServicePrincipalProxyR * Updates an existing user in the Databricks account that parents the calling workspace and * returns the updated user. Only the fields named in the update mask are modified. The updatable * fields are fullName.givenName, fullName.familyName, status, and externalId. + * + *

When AIM is enabled and the user is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ public User updateUserProxy(UpdateUserProxyRequest request) { return impl.updateUserProxy(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Service.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Service.java index 99ba4e218..a8f9e2232 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Service.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Service.java @@ -22,8 +22,9 @@ DirectGroupMember createDirectGroupMemberProxy( * the created group. A local group is one that is not synced from the customer's identity * provider, and can be created whether or not Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalGroup - * resource to sync groups from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveGroup; to read an + * existing external identity, use the ExternalGroup resource. */ Group createGroupProxy(CreateGroupProxyRequest createGroupProxyRequest); @@ -33,9 +34,9 @@ DirectGroupMember createDirectGroupMemberProxy( * from the customer's identity provider, and can be created whether or not Account Identity * Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the - * ExternalServicePrincipal resource to sync service principals from the identity provider - * instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveServicePrincipal; to + * read an existing external identity, use the ExternalServicePrincipal resource. */ ServicePrincipal createServicePrincipalProxy( CreateServicePrincipalProxyRequest createServicePrincipalProxyRequest); @@ -45,8 +46,9 @@ ServicePrincipal createServicePrincipalProxy( * the created user. A local user is one that is not synced from the customer's identity provider, * and can be created whether or not Account Identity Management (AIM) is enabled. * - *

When AIM is enabled, supplying an external ID returns an error. Use the ExternalUser - * resource to sync users from the identity provider instead. + *

When AIM is enabled, supplying an external ID returns an error. To provision the identity + * from your identity provider, resolve it by its external ID with ResolveUser; to read an + * existing external identity, use the ExternalUser resource. */ User createUserProxy(CreateUserProxyRequest createUserProxyRequest); @@ -225,6 +227,9 @@ ResolveServicePrincipalResponse resolveServicePrincipalProxy( /** * Updates an existing group in the Databricks account that parents the calling workspace. Only * the fields named in the update mask are modified. Returns the updated Group resource. + * + *

When AIM is enabled and the group is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ Group updateGroupProxy(UpdateGroupProxyRequest updateGroupProxyRequest); @@ -232,6 +237,10 @@ ResolveServicePrincipalResponse resolveServicePrincipalProxy( * Updates an existing service principal in the Databricks account that parents the calling * workspace. Only the fields named in the update mask are modified. Returns the updated * ServicePrincipal resource. + * + *

When AIM is enabled and the service principal is an external identity (its external_id is + * set), only external_id can be updated; its other fields are sourced from your identity + * provider. */ ServicePrincipal updateServicePrincipalProxy( UpdateServicePrincipalProxyRequest updateServicePrincipalProxyRequest); @@ -240,6 +249,9 @@ ServicePrincipal updateServicePrincipalProxy( * Updates an existing user in the Databricks account that parents the calling workspace and * returns the updated user. Only the fields named in the update mask are modified. The updatable * fields are fullName.givenName, fullName.familyName, status, and externalId. + * + *

When AIM is enabled and the user is an external identity (its external_id is set), only + * external_id can be updated; its other fields are sourced from your identity provider. */ User updateUserProxy(UpdateUserProxyRequest updateUserProxyRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java index dc6cf5163..3428492de 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java @@ -125,6 +125,13 @@ public class RunTask { @JsonProperty("effective_performance_target") private PerformanceTarget effectivePerformanceTarget; + /** + * The id of the serverless compute this task ran on, either explicitly configured on the task or + * the workspace default. Only set once the compute has been resolved at run trigger. + */ + @JsonProperty("effective_serverless_compute_id") + private String effectiveServerlessComputeId; + /** * An optional set of email addresses notified when the task run begins or completes. The default * behavior is to not send any emails. @@ -513,6 +520,15 @@ public PerformanceTarget getEffectivePerformanceTarget() { return effectivePerformanceTarget; } + public RunTask setEffectiveServerlessComputeId(String effectiveServerlessComputeId) { + this.effectiveServerlessComputeId = effectiveServerlessComputeId; + return this; + } + + public String getEffectiveServerlessComputeId() { + return effectiveServerlessComputeId; + } + public RunTask setEmailNotifications(JobEmailNotifications emailNotifications) { this.emailNotifications = emailNotifications; return this; @@ -877,6 +893,7 @@ public boolean equals(Object o) { && Objects.equals(disableAutoOptimization, that.disableAutoOptimization) && Objects.equals(disabled, that.disabled) && Objects.equals(effectivePerformanceTarget, that.effectivePerformanceTarget) + && Objects.equals(effectiveServerlessComputeId, that.effectiveServerlessComputeId) && Objects.equals(emailNotifications, that.emailNotifications) && Objects.equals(endTime, that.endTime) && Objects.equals(environmentKey, that.environmentKey) @@ -937,6 +954,7 @@ public int hashCode() { disableAutoOptimization, disabled, effectivePerformanceTarget, + effectiveServerlessComputeId, emailNotifications, endTime, environmentKey, @@ -997,6 +1015,7 @@ public String toString() { .add("disableAutoOptimization", disableAutoOptimization) .add("disabled", disabled) .add("effectivePerformanceTarget", effectivePerformanceTarget) + .add("effectiveServerlessComputeId", effectiveServerlessComputeId) .add("emailNotifications", emailNotifications) .add("endTime", endTime) .add("environmentKey", environmentKey) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpec.java index f8b4a790b..904c12734 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpec.java @@ -13,6 +13,13 @@ public class NewPipelineSpec { @JsonProperty("budget_policy_id") private String budgetPolicyId; + /** + * Release channel of the underlying pipeline's runtime. Some source table configurations (e.g., + * read-time CDF) require PREVIEW. Defaults to CURRENT if not specified. + */ + @JsonProperty("pipeline_channel") + private NewPipelineSpecPipelineChannel pipelineChannel; + /** * UC catalog for the pipeline to store intermediate files (checkpoints, event logs etc). This * needs to be a standard catalog where the user has permissions to create Delta tables. @@ -36,6 +43,15 @@ public String getBudgetPolicyId() { return budgetPolicyId; } + public NewPipelineSpec setPipelineChannel(NewPipelineSpecPipelineChannel pipelineChannel) { + this.pipelineChannel = pipelineChannel; + return this; + } + + public NewPipelineSpecPipelineChannel getPipelineChannel() { + return pipelineChannel; + } + public NewPipelineSpec setStorageCatalog(String storageCatalog) { this.storageCatalog = storageCatalog; return this; @@ -60,19 +76,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; NewPipelineSpec that = (NewPipelineSpec) o; return Objects.equals(budgetPolicyId, that.budgetPolicyId) + && Objects.equals(pipelineChannel, that.pipelineChannel) && Objects.equals(storageCatalog, that.storageCatalog) && Objects.equals(storageSchema, that.storageSchema); } @Override public int hashCode() { - return Objects.hash(budgetPolicyId, storageCatalog, storageSchema); + return Objects.hash(budgetPolicyId, pipelineChannel, storageCatalog, storageSchema); } @Override public String toString() { return new ToStringer(NewPipelineSpec.class) .add("budgetPolicyId", budgetPolicyId) + .add("pipelineChannel", pipelineChannel) .add("storageCatalog", storageCatalog) .add("storageSchema", storageSchema) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpecPipelineChannel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpecPipelineChannel.java new file mode 100644 index 000000000..edc1d204c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/NewPipelineSpecPipelineChannel.java @@ -0,0 +1,16 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.postgres; + +import com.databricks.sdk.support.Generated; + +/** + * Release channel of the underlying pipeline's runtime. PREVIEW provides early access to the latest + * features but may be less stable. Some source table configurations (e.g., read-time CDF) require + * PREVIEW. Defaults to CURRENT if not specified. + */ +@Generated +public enum NewPipelineSpecPipelineChannel { + CURRENT, + PREVIEW, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateBranchRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateBranchRequest.java index 466db20f8..00b454f9c 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateBranchRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateBranchRequest.java @@ -27,7 +27,7 @@ public class UpdateBranchRequest { */ @JsonIgnore private String name; - /** The list of fields to update. If unspecified, all fields will be updated when possible. */ + /** The list of fields to update. */ @JsonIgnore @QueryParam("update_mask") private FieldMask updateMask; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDataApiRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDataApiRequest.java index a7ffef655..6e415a05e 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDataApiRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDataApiRequest.java @@ -19,7 +19,7 @@ public class UpdateDataApiRequest { /** Resource name: projects/{project_id}/branches/{branch_id}/databases/{database_id}/data-api */ @JsonIgnore private String name; - /** The list of fields to update. If unspecified, all fields will be updated when possible. */ + /** The list of fields to update. */ @JsonIgnore @QueryParam("update_mask") private FieldMask updateMask; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDatabaseRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDatabaseRequest.java index 62ee9e186..c1698c883 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDatabaseRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateDatabaseRequest.java @@ -27,7 +27,7 @@ public class UpdateDatabaseRequest { */ @JsonIgnore private String name; - /** The list of fields to update. If unspecified, all fields will be updated when possible. */ + /** The list of fields to update. */ @JsonIgnore @QueryParam("update_mask") private FieldMask updateMask; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateEndpointRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateEndpointRequest.java index 082b8cdd4..534455782 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateEndpointRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateEndpointRequest.java @@ -27,7 +27,7 @@ public class UpdateEndpointRequest { */ @JsonIgnore private String name; - /** The list of fields to update. If unspecified, all fields will be updated when possible. */ + /** The list of fields to update. */ @JsonIgnore @QueryParam("update_mask") private FieldMask updateMask; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateProjectRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateProjectRequest.java index b484e80d9..6a6fc3d83 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateProjectRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateProjectRequest.java @@ -24,7 +24,7 @@ public class UpdateProjectRequest { @JsonProperty("project") private Project project; - /** The list of fields to update. If unspecified, all fields will be updated when possible. */ + /** The list of fields to update. */ @JsonIgnore @QueryParam("update_mask") private FieldMask updateMask; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateRoleRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateRoleRequest.java index 9249a2f37..12ba817f1 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateRoleRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/UpdateRoleRequest.java @@ -27,10 +27,7 @@ public class UpdateRoleRequest { @JsonProperty("role") private Role role; - /** - * The list of fields to update in Postgres Role. If unspecified, all fields will be updated when - * possible. - */ + /** The list of fields to update. */ @JsonIgnore @QueryParam("update_mask") private FieldMask updateMask;