diff --git a/.codegen/_last_sha b/.codegen/_last_sha
index b8fbe0174..249e78289 100644
--- a/.codegen/_last_sha
+++ b/.codegen/_last_sha
@@ -1 +1 @@
-da7fcfc1c46b1bf871f3a25bb82e5c2ea62cdac0
\ No newline at end of file
+07bd11eefe3ed30eebcfa846546af8b56b655973
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f95013d8c..5a37ce949 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,136 @@
# Version changelog
+## Release v0.173.0 (2026-11-02)
+
+### API Changes
+* Add `com.databricks.sdk.service.computemigrations` and `com.databricks.sdk.service.genieagents` packages.
+* Add `workspaceClient.computeMigrations()` service.
+* Add `workspaceClient.genieAgents()` service.
+* Add `downloadFile()` and `uploadFile()` methods for `workspaceClient.sandbox()` service.
+* Add `updateNetworkConnectivityConfig()` method for `accountClient.networkConnectivity()` service.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.CreateDirectGroupMemberProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.CreateDirectGroupMemberRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.CreateGroupProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.CreateGroupRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.CreateServicePrincipalProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.CreateServicePrincipalRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.CreateUserProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.CreateUserRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.CreateWorkspaceAssignmentProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.CreateWorkspaceAssignmentRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteDirectGroupMemberProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteDirectGroupMemberRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteGroupProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteGroupRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteServicePrincipalProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteServicePrincipalRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteUserProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteUserRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteWorkspaceAssignmentProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.DeleteWorkspaceAssignmentRequest`.
+* Add `name` and `parent` fields for `com.databricks.sdk.service.iamv2.DirectGroupMember`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetDirectGroupMemberProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetDirectGroupMemberRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetGroupProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetGroupRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetServicePrincipalProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetServicePrincipalRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetUserProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetUserRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetWorkspaceAccessDetailLocalRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetWorkspaceAccessDetailRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetWorkspaceAssignmentProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetWorkspaceAssignmentRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.GetWorkspaceIdentityDetailRequest`.
+* Add `name` and `parent` fields for `com.databricks.sdk.service.iamv2.Group`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListDirectGroupMembersProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListDirectGroupMembersRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.ListGroupsProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListGroupsRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.ListServicePrincipalsProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListServicePrincipalsRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListTransitiveParentGroupsProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListTransitiveParentGroupsRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.ListUsersProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListUsersRequest`.
+* Add `parent` field for `com.databricks.sdk.service.iamv2.ListWorkspaceAssignmentsProxyRequest`.
+* [Breaking] Add `parent` field for `com.databricks.sdk.service.iamv2.ListWorkspaceAssignmentsRequest`.
+* Add `name` and `parent` fields for `com.databricks.sdk.service.iamv2.ServicePrincipal`.
+* Add `name` field for `com.databricks.sdk.service.iamv2.TransitiveParentGroup`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateGroupProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateGroupRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateServicePrincipalProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateServicePrincipalRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateUserProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateUserRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateWorkspaceAssignmentProxyRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateWorkspaceAssignmentRequest`.
+* [Breaking] Add `name` field for `com.databricks.sdk.service.iamv2.UpdateWorkspaceIdentityDetailRequest`.
+* Add `name` and `parent` fields for `com.databricks.sdk.service.iamv2.User`.
+* Add `name` field for `com.databricks.sdk.service.iamv2.WorkspaceAccessDetail`.
+* Add `name` and `parent` fields for `com.databricks.sdk.service.iamv2.WorkspaceAssignment`.
+* Add `name` field for `com.databricks.sdk.service.iamv2.WorkspaceIdentityDetail`.
+* Add `serverlessCompute` field for `com.databricks.sdk.service.jobs.JobCluster`.
+* Add `jobCompletion` field for `com.databricks.sdk.service.jobs.PerTriggerState`.
+* Add `jobCompletion` field for `com.databricks.sdk.service.jobs.TriggerConfiguration`.
+* Add `jobCompletion` field for `com.databricks.sdk.service.jobs.TriggerInfo`.
+* Add `jobCompletion` field for `com.databricks.sdk.service.jobs.TriggerSettings`.
+* Add `jobCompletion` field for `com.databricks.sdk.service.jobs.TriggerStateProto`.
+* Add `billingWorkspaceId` field for `com.databricks.sdk.service.settings.NetworkConnectivityConfiguration`.
+* Add `CREATE_FEATURE` and `READ_FEATURE` enum values for `com.databricks.sdk.service.catalog.Privilege`.
+* Add `FEATURE` enum value for `com.databricks.sdk.service.catalog.SecurableType`.
+* Add `JOB_COMPLETION` enum value for `com.databricks.sdk.service.jobs.TriggerType`.
+* [Breaking] Change `createDirectGroupMember()`, `createGroup()`, `createServicePrincipal()`, `createUser()`, `createWorkspaceAssignment()`, `deleteDirectGroupMember()`, `deleteGroup()`, `deleteServicePrincipal()`, `deleteUser()`, `deleteWorkspaceAssignment()`, `getDirectGroupMember()`, `getGroup()`, `getServicePrincipal()`, `getUser()`, `getWorkspaceAccessDetail()`, `getWorkspaceAssignment()`, `listDirectGroupMembers()`, `listGroups()`, `listServicePrincipals()`, `listTransitiveParentGroups()`, `listUsers()`, `listWorkspaceAssignments()`, `updateGroup()`, `updateServicePrincipal()`, `updateUser()` and `updateWorkspaceAssignment()` methods for `accountClient.accountIamV2()` service. Method path has changed.
+* [Breaking] Change `createDirectGroupMember()`, `createGroup()`, `createServicePrincipal()`, `createUser()`, `createWorkspaceAssignment()`, `deleteDirectGroupMember()`, `deleteGroup()`, `deleteServicePrincipal()`, `deleteUser()`, `deleteWorkspaceAssignment()`, `getDirectGroupMember()`, `getGroup()`, `getServicePrincipal()`, `getUser()`, `getWorkspaceAccessDetail()`, `getWorkspaceAssignment()`, `listDirectGroupMembers()`, `listGroups()`, `listServicePrincipals()`, `listTransitiveParentGroups()`, `listUsers()`, `listWorkspaceAssignments()`, `updateGroup()`, `updateServicePrincipal()`, `updateUser()` and `updateWorkspaceAssignment()` methods for `accountClient.accountIamV2()` service with new required argument order.
+* [Breaking] Change `createDirectGroupMemberProxy()`, `deleteDirectGroupMemberProxy()`, `deleteGroupProxy()`, `deleteServicePrincipalProxy()`, `deleteUserProxy()`, `deleteWorkspaceAssignmentProxy()`, `getDirectGroupMemberProxy()`, `getGroupProxy()`, `getServicePrincipalProxy()`, `getUserProxy()`, `getWorkspaceAccessDetailLocal()`, `getWorkspaceAssignmentProxy()`, `getWorkspaceIdentityDetail()`, `listDirectGroupMembersProxy()`, `listTransitiveParentGroupsProxy()`, `updateGroupProxy()`, `updateServicePrincipalProxy()`, `updateUserProxy()`, `updateWorkspaceAssignmentProxy()` and `updateWorkspaceIdentityDetail()` methods for `workspaceClient.workspaceIamV2()` service with new required argument order.
+* [Breaking] Change `createDirectGroupMemberProxy()`, `deleteDirectGroupMemberProxy()`, `deleteGroupProxy()`, `deleteServicePrincipalProxy()`, `deleteUserProxy()`, `deleteWorkspaceAssignmentProxy()`, `getDirectGroupMemberProxy()`, `getGroupProxy()`, `getServicePrincipalProxy()`, `getUserProxy()`, `getWorkspaceAccessDetailLocal()`, `getWorkspaceAssignmentProxy()`, `getWorkspaceIdentityDetail()`, `listDirectGroupMembersProxy()`, `listTransitiveParentGroupsProxy()`, `updateGroupProxy()`, `updateServicePrincipalProxy()`, `updateUserProxy()`, `updateWorkspaceAssignmentProxy()` and `updateWorkspaceIdentityDetail()` methods for `workspaceClient.workspaceIamV2()` service. Method path has changed.
+* [Breaking] Remove `groupId` field for `com.databricks.sdk.service.iamv2.CreateDirectGroupMemberProxyRequest`.
+* [Breaking] Remove `accountId` and `groupId` fields for `com.databricks.sdk.service.iamv2.CreateDirectGroupMemberRequest`.
+* [Breaking] Remove `accountId` field for `com.databricks.sdk.service.iamv2.CreateGroupRequest`.
+* [Breaking] Remove `accountId` field for `com.databricks.sdk.service.iamv2.CreateServicePrincipalRequest`.
+* [Breaking] Remove `accountId` field for `com.databricks.sdk.service.iamv2.CreateUserRequest`.
+* [Breaking] Remove `accountId` and `workspaceId` fields for `com.databricks.sdk.service.iamv2.CreateWorkspaceAssignmentRequest`.
+* [Breaking] Remove `groupId` and `principalId` fields for `com.databricks.sdk.service.iamv2.DeleteDirectGroupMemberProxyRequest`.
+* [Breaking] Remove `accountId`, `groupId` and `principalId` fields for `com.databricks.sdk.service.iamv2.DeleteDirectGroupMemberRequest`.
+* [Breaking] Remove `groupId` field for `com.databricks.sdk.service.iamv2.DeleteGroupProxyRequest`.
+* [Breaking] Remove `accountId` and `groupId` fields for `com.databricks.sdk.service.iamv2.DeleteGroupRequest`.
+* [Breaking] Remove `servicePrincipalId` field for `com.databricks.sdk.service.iamv2.DeleteServicePrincipalProxyRequest`.
+* [Breaking] Remove `accountId` and `servicePrincipalId` fields for `com.databricks.sdk.service.iamv2.DeleteServicePrincipalRequest`.
+* [Breaking] Remove `userId` field for `com.databricks.sdk.service.iamv2.DeleteUserProxyRequest`.
+* [Breaking] Remove `accountId` and `userId` fields for `com.databricks.sdk.service.iamv2.DeleteUserRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.DeleteWorkspaceAssignmentProxyRequest`.
+* [Breaking] Remove `accountId`, `workspaceId` and `principalId` fields for `com.databricks.sdk.service.iamv2.DeleteWorkspaceAssignmentRequest`.
+* [Breaking] Remove `groupId` and `principalId` fields for `com.databricks.sdk.service.iamv2.GetDirectGroupMemberProxyRequest`.
+* [Breaking] Remove `accountId`, `groupId` and `principalId` fields for `com.databricks.sdk.service.iamv2.GetDirectGroupMemberRequest`.
+* [Breaking] Remove `groupId` field for `com.databricks.sdk.service.iamv2.GetGroupProxyRequest`.
+* [Breaking] Remove `accountId` and `groupId` fields for `com.databricks.sdk.service.iamv2.GetGroupRequest`.
+* [Breaking] Remove `servicePrincipalId` field for `com.databricks.sdk.service.iamv2.GetServicePrincipalProxyRequest`.
+* [Breaking] Remove `accountId` and `servicePrincipalId` fields for `com.databricks.sdk.service.iamv2.GetServicePrincipalRequest`.
+* [Breaking] Remove `userId` field for `com.databricks.sdk.service.iamv2.GetUserProxyRequest`.
+* [Breaking] Remove `accountId` and `userId` fields for `com.databricks.sdk.service.iamv2.GetUserRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.GetWorkspaceAccessDetailLocalRequest`.
+* [Breaking] Remove `accountId`, `workspaceId` and `principalId` fields for `com.databricks.sdk.service.iamv2.GetWorkspaceAccessDetailRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.GetWorkspaceAssignmentProxyRequest`.
+* [Breaking] Remove `accountId`, `workspaceId` and `principalId` fields for `com.databricks.sdk.service.iamv2.GetWorkspaceAssignmentRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.GetWorkspaceIdentityDetailRequest`.
+* [Breaking] Remove `groupId` field for `com.databricks.sdk.service.iamv2.ListDirectGroupMembersProxyRequest`.
+* [Breaking] Remove `accountId` and `groupId` fields for `com.databricks.sdk.service.iamv2.ListDirectGroupMembersRequest`.
+* [Breaking] Remove `accountId` field for `com.databricks.sdk.service.iamv2.ListGroupsRequest`.
+* [Breaking] Remove `accountId` field for `com.databricks.sdk.service.iamv2.ListServicePrincipalsRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.ListTransitiveParentGroupsProxyRequest`.
+* [Breaking] Remove `accountId` and `principalId` fields for `com.databricks.sdk.service.iamv2.ListTransitiveParentGroupsRequest`.
+* [Breaking] Remove `accountId` field for `com.databricks.sdk.service.iamv2.ListUsersRequest`.
+* [Breaking] Remove `accountId` and `workspaceId` fields for `com.databricks.sdk.service.iamv2.ListWorkspaceAssignmentsRequest`.
+* [Breaking] Remove `groupId` field for `com.databricks.sdk.service.iamv2.UpdateGroupProxyRequest`.
+* [Breaking] Remove `accountId` and `groupId` fields for `com.databricks.sdk.service.iamv2.UpdateGroupRequest`.
+* [Breaking] Remove `servicePrincipalId` field for `com.databricks.sdk.service.iamv2.UpdateServicePrincipalProxyRequest`.
+* [Breaking] Remove `accountId` and `servicePrincipalId` fields for `com.databricks.sdk.service.iamv2.UpdateServicePrincipalRequest`.
+* [Breaking] Remove `userId` field for `com.databricks.sdk.service.iamv2.UpdateUserProxyRequest`.
+* [Breaking] Remove `accountId` and `userId` fields for `com.databricks.sdk.service.iamv2.UpdateUserRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.UpdateWorkspaceAssignmentProxyRequest`.
+* [Breaking] Remove `accountId`, `workspaceId` and `principalId` fields for `com.databricks.sdk.service.iamv2.UpdateWorkspaceAssignmentRequest`.
+* [Breaking] Remove `principalId` field for `com.databricks.sdk.service.iamv2.UpdateWorkspaceIdentityDetailRequest`.
+
## Release v0.172.0 (2026-10-29)
### Bug Fixes
diff --git a/databricks-sdk-java/lockfile.json b/databricks-sdk-java/lockfile.json
index 6e0e2de4f..56db4b0f1 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.172.0",
+ "version": "0.173.0",
"lockFileVersion": 1,
"dependencies": [
{
diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml
index a3a59e80e..c5fed7d17 100644
--- a/databricks-sdk-java/pom.xml
+++ b/databricks-sdk-java/pom.xml
@@ -5,7 +5,7 @@
For service credentials (purpose is **SERVICE**), either the __credential_name__ or the - * cloud-specific credential must be provided. - * *
For storage credentials (purpose is **STORAGE**), at least one of __external_location_name__ * and __url__ need to be provided. If only one of them is provided, it will be used for * validation. And if both are provided, the __url__ will be used for validation, and - * __external_location_name__ will be ignored when checking overlapping urls. Either the - * __credential_name__ or the cloud-specific credential must be provided. + * __external_location_name__ will be ignored when checking overlapping urls. * *
The caller must be a metastore admin or the credential owner or have the required permission * on the metastore and the credential (e.g., **CREATE_EXTERNAL_LOCATION** when purpose is diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CredentialsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CredentialsService.java index c10706d32..8b1c71a97 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CredentialsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CredentialsService.java @@ -72,14 +72,10 @@ TemporaryCredentials generateTemporaryServiceCredential( /** * Validates a credential. * - *
For service credentials (purpose is **SERVICE**), either the __credential_name__ or the - * cloud-specific credential must be provided. - * *
For storage credentials (purpose is **STORAGE**), at least one of __external_location_name__ * and __url__ need to be provided. If only one of them is provided, it will be used for * validation. And if both are provided, the __url__ will be used for validation, and - * __external_location_name__ will be ignored when checking overlapping urls. Either the - * __credential_name__ or the cloud-specific credential must be provided. + * __external_location_name__ will be ignored when checking overlapping urls. * *
The caller must be a metastore admin or the credential owner or have the required permission * on the metastore and the credential (e.g., **CREATE_EXTERNAL_LOCATION** when purpose is diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/Privilege.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/Privilege.java index aefcf4908..5395359b9 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/Privilege.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/Privilege.java @@ -17,6 +17,7 @@ public enum Privilege { CREATE_EXTERNAL_LOCATION, CREATE_EXTERNAL_TABLE, CREATE_EXTERNAL_VOLUME, + CREATE_FEATURE, CREATE_FOREIGN_CATALOG, CREATE_FOREIGN_SECURABLE, CREATE_FUNCTION, @@ -40,6 +41,7 @@ public enum Privilege { MANAGE_ALLOWLIST, MODIFY, MODIFY_CLEAN_ROOM, + READ_FEATURE, READ_FILES, READ_METADATA, READ_PRIVATE_FILES, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java index 671861277..14872d9a5 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java @@ -18,7 +18,7 @@ public class ReadVolumeRequest { @QueryParam("include_browse") private Boolean includeBrowse; - /** The three-level (fully qualified) name of the volume */ + /** The fully qualified name of the volume. */ @JsonIgnore private String name; public ReadVolumeRequest setIncludeBrowse(Boolean includeBrowse) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableType.java index 03dbb51fe..842073272 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableType.java @@ -14,6 +14,7 @@ public enum SecurableType { CREDENTIAL, EXTERNAL_LOCATION, EXTERNAL_METADATA, + FEATURE, FUNCTION, MCP_SERVICE, METASTORE, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java index ff05dc3ec..2ae34a326 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java @@ -118,8 +118,6 @@ public StorageCredentialInfo update(UpdateStorageCredential request) { * provided, the __url__ will be used for validation, and __external_location_name__ will be * ignored when checking overlapping urls. * - *
Either the __storage_credential_name__ or the cloud-specific credential must be provided. - * *
The caller must be a metastore admin or the storage credential owner or have the * **CREATE_EXTERNAL_LOCATION** privilege on the metastore and the storage credential. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java index cc774418a..b976a778f 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java @@ -72,8 +72,6 @@ public interface StorageCredentialsService { * provided, the __url__ will be used for validation, and __external_location_name__ will be * ignored when checking overlapping urls. * - *
Either the __storage_credential_name__ or the cloud-specific credential must be provided. - * *
The caller must be a metastore admin or the storage credential owner or have the * **CREATE_EXTERNAL_LOCATION** privilege on the metastore and the storage credential. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateCredentialRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateCredentialRequest.java index 8344f2947..92b534aba 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateCredentialRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateCredentialRequest.java @@ -9,11 +9,11 @@ @Generated public class ValidateCredentialRequest { - /** */ + /** Deprecated: create a credential and pass its credential_name instead. */ @JsonProperty("aws_iam_role") private AwsIamRole awsIamRole; - /** */ + /** Deprecated: create a credential and pass its credential_name instead. */ @JsonProperty("azure_managed_identity") private AzureManagedIdentity azureManagedIdentity; @@ -21,7 +21,7 @@ public class ValidateCredentialRequest { @JsonProperty("credential_name") private String credentialName; - /** */ + /** Deprecated: create a credential and pass its credential_name instead. */ @JsonProperty("databricks_gcp_service_account") private DatabricksGcpServiceAccount databricksGcpServiceAccount; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java index b5267c325..781d1c73f 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java @@ -9,23 +9,38 @@ @Generated public class ValidateStorageCredential { - /** The AWS IAM role configuration. */ + /** + * Deprecated: create a storage credential and pass its storage_credential_name instead. The AWS + * IAM role configuration. + */ @JsonProperty("aws_iam_role") private AwsIamRoleRequest awsIamRole; - /** The Azure managed identity configuration. */ + /** + * Deprecated: create a storage credential and pass its storage_credential_name instead. The Azure + * managed identity configuration. + */ @JsonProperty("azure_managed_identity") private AzureManagedIdentityRequest azureManagedIdentity; - /** The Azure service principal configuration. */ + /** + * Deprecated: create a storage credential and pass its storage_credential_name instead. The Azure + * service principal configuration. + */ @JsonProperty("azure_service_principal") private AzureServicePrincipal azureServicePrincipal; - /** The Cloudflare API token configuration. */ + /** + * Deprecated: create a storage credential and pass its storage_credential_name instead. The + * Cloudflare API token configuration. + */ @JsonProperty("cloudflare_api_token") private CloudflareApiToken cloudflareApiToken; - /** The Databricks created GCP service account configuration. */ + /** + * Deprecated: create a storage credential and pass its storage_credential_name instead. The + * Databricks created GCP service account configuration. + */ @JsonProperty("databricks_gcp_service_account") private DatabricksGcpServiceAccountRequest databricksGcpServiceAccount; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java index 9c3b6bc3e..7826a6822 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java @@ -18,14 +18,16 @@ public class Environment { /** * The base environment this environment is built on top of. A base environment defines the * environment version and a list of dependencies for serverless compute. The value can be a file - * path to a custom `env.yaml` file (e.g., `/Workspace/path/to/env.yaml`). Support for a - * Databricks-provided base environment ID (e.g., `workspace-base-environments/databricks_ai_v4`) - * and workspace base environment ID (e.g., - * `workspace-base-environments/dbe_b849b66e-b31a-4cb5-b161-1f2b10877fb7`) is in Beta. Either - * `environment_version` or `base_environment` can be provided. For more information about - * Databricks-provided base environments, see the [list workspace base - * environments](:method:Environments/ListWorkspaceBaseEnvironments) API. For more information, - * see + * path to a custom `env.yaml` file (e.g., `/Workspace/path/to/env.yaml`). + * + *
Support for a Databricks-provided base environment ID (e.g., + * `workspace-base-environments/databricks_ai_v4`) and workspace base environment ID (e.g., + * `workspace-base-environments/dbe_b849b66e-b31a-4cb5-b161-1f2b10877fb7`) is in Beta. + * + *
Either `environment_version` or `base_environment` can be provided. + * + *
For more information about Databricks-provided base environments, see the [list workspace + * base environments](:method:Environments/ListWorkspaceBaseEnvironments) API. */ @JsonProperty("base_environment") private String baseEnvironment; @@ -36,24 +38,26 @@ public class Environment { /** * List of pip dependencies, as supported by the version of pip in this environment. Each - * dependency is a valid pip requirements file line per - * https://pip.pypa.io/en/stable/reference/requirements-file-format/. Allowed dependencies include - * a requirement specifier, an archive URL, a local project path (such as WSFS or UC Volumes in - * Databricks), or a VCS project URL. + * dependency is a valid [pip requirements file line]. Allowed dependencies include a requirement + * specifier, an archive URL, a local project path (such as WSFS or UC Volumes in Databricks), or + * a VCS project URL. + * + *
[pip requirements file line]:
+ * https://pip.pypa.io/en/stable/reference/requirements-file-format/
*/
@JsonProperty("dependencies")
private Collection Valid only when the migration is in MIGRATION_REVIEW. If supplied, the `etag` must match the
+ * current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in MIGRATION_REVIEW. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ public Migration approveMigrationExecution(ApproveMigrationExecutionRequest request) {
+ return impl.approveMigrationExecution(request);
+ }
+
+ /**
+ * Approves the working copy at the TRANSLATION_READY gate. If the migration was created with
+ * `run_validation`, the working copy is then run to verify it executes successfully before the
+ * migration is presented for execution review; otherwise it advances straight to
+ * MIGRATION_REVIEW.
+ *
+ * Valid only when the migration is in TRANSLATION_READY. If supplied, the `etag` must match
+ * the current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in TRANSLATION_READY. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ public Migration approveMigrationTranslation(ApproveMigrationTranslationRequest request) {
+ return impl.approveMigrationTranslation(request);
+ }
+
+ /**
+ * Cancels the migration, transitioning it to CANCELLED.
+ *
+ * Valid from any non-terminal state, unlike the review-gate transitions, which each require a
+ * specific state. Any in-flight agent work is abandoned and the migration stops advancing. The
+ * resource is retained for auditability.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is already in a terminal state. Returns ABORTED if the etag does not match the
+ * current resource version.
+ */
+ public Migration cancelMigration(CancelMigrationRequest request) {
+ return impl.cancelMigration(request);
+ }
+
+ /**
+ * Creates a new migration for a Classic compute asset.
+ *
+ * The migration is created in PLANNING_PENDING and advances through the state machine as
+ * planning work is scheduled. The caller must have appropriate permissions: workspace admin for
+ * infrastructure-scoped migrations, job owner/admin for individual workload migrations.
+ *
+ * At most one migration may hold an asset. Returns ALREADY_EXISTS if the asset has a migration
+ * in flight, or one that already migrated it successfully; a migration that ended without
+ * succeeding, or was deleted, releases the asset so it can be migrated again. Returns
+ * INVALID_PARAMETER_VALUE if the asset is not eligible for migration.
+ */
+ public Migration create(CreateMigrationRequest request) {
+ return impl.create(request);
+ }
+
+ public Migration delete(String migrationId) {
+ return delete(new DeleteMigrationRequest().setMigrationId(migrationId));
+ }
+
+ /**
+ * Deletes a migration (soft-delete).
+ *
+ * Allowed from any state. Deleting a migration marks the record deleted only — it does not
+ * roll back a migration that already ran, and resources created during the migration are not
+ * cleaned up. The migration resource is retained for auditability. To stop an in-flight migration
+ * (agent teardown, transition to CANCELLED), use CancelMigration instead.
+ *
+ * Returns NOT_FOUND if the migration does not exist, or was already deleted: a deleted
+ * migration is hidden from every method (Get, Update, List, and Delete), so it cannot be deleted
+ * again. Returns ABORTED if a supplied nonempty request etag does not match the resource version.
+ */
+ public Migration delete(DeleteMigrationRequest request) {
+ return impl.delete(request);
+ }
+
+ public Migration get(String migrationId) {
+ return get(new GetMigrationRequest().setMigrationId(migrationId));
+ }
+
+ /**
+ * Retrieves a migration by its ID.
+ *
+ * Returns the current state, configuration, and output artifacts of the migration. Use this to
+ * poll migration progress or inspect artifacts after state transitions. Returns NOT_FOUND if the
+ * migration does not exist in the caller's workspace.
+ */
+ public Migration get(GetMigrationRequest request) {
+ return impl.get(request);
+ }
+
+ /**
+ * Lists migrations in the caller's workspace, ordered by migration ID, with cursor-based
+ * pagination and filtering by asset type and state.
+ *
+ * Eventually consistent: results are read from a cache, and pagination is not a point-in-time
+ * snapshot, so a migration created during a List may not appear until a subsequent one.
+ */
+ public Iterable Valid only when the migration is in MIGRATION_REVIEW. If supplied, the `etag` must match the
+ * current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in MIGRATION_REVIEW. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ public Migration rejectMigrationExecution(RejectMigrationExecutionRequest request) {
+ return impl.rejectMigrationExecution(request);
+ }
+
+ /**
+ * Rejects the working copy at the TRANSLATION_READY gate, sending the migration to
+ * REVISION_PENDING to loop back for re-planning.
+ *
+ * Valid only when the migration is in TRANSLATION_READY. If supplied, the `etag` must match
+ * the current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in TRANSLATION_READY. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ public Migration rejectMigrationTranslation(RejectMigrationTranslationRequest request) {
+ return impl.rejectMigrationTranslation(request);
+ }
+
+ public ComputeMigrationsService impl() {
+ return impl;
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ComputeMigrationsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ComputeMigrationsImpl.java
new file mode 100644
index 000000000..3353777f8
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ComputeMigrationsImpl.java
@@ -0,0 +1,193 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+package com.databricks.sdk.service.computemigrations;
+
+import com.databricks.sdk.core.ApiClient;
+import com.databricks.sdk.core.DatabricksException;
+import com.databricks.sdk.core.http.Request;
+import com.databricks.sdk.support.Generated;
+import java.io.IOException;
+import java.util.UUID;
+
+/** Package-local implementation of ComputeMigrations */
+@Generated
+class ComputeMigrationsImpl implements ComputeMigrationsService {
+ private final ApiClient apiClient;
+
+ public ComputeMigrationsImpl(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ @Override
+ public Migration approveMigrationExecution(ApproveMigrationExecutionRequest request) {
+ String path =
+ String.format(
+ "/api/compute-migrations/v1/migrations/%s/approveExecution", request.getMigrationId());
+ try {
+ Request req = new Request("POST", path, apiClient.serialize(request));
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ req.withHeader("Content-Type", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration approveMigrationTranslation(ApproveMigrationTranslationRequest request) {
+ String path =
+ String.format(
+ "/api/compute-migrations/v1/migrations/%s/approveTranslation",
+ request.getMigrationId());
+ try {
+ Request req = new Request("POST", path, apiClient.serialize(request));
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ req.withHeader("Content-Type", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration cancelMigration(CancelMigrationRequest request) {
+ String path =
+ String.format("/api/compute-migrations/v1/migrations/%s/cancel", request.getMigrationId());
+ try {
+ Request req = new Request("POST", path, apiClient.serialize(request));
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ req.withHeader("Content-Type", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration create(CreateMigrationRequest request) {
+ String path = "/api/compute-migrations/v1/migrations";
+ try {
+ Request req = new Request("POST", path, apiClient.serialize(request.getMigration()));
+
+ if (request.getRequestId() == null || request.getRequestId().isEmpty()) {
+ request.setRequestId(UUID.randomUUID().toString());
+ }
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ req.withHeader("Content-Type", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration delete(DeleteMigrationRequest request) {
+ String path =
+ String.format("/api/compute-migrations/v1/migrations/%s", request.getMigrationId());
+ try {
+ Request req = new Request("DELETE", path);
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration get(GetMigrationRequest request) {
+ String path =
+ String.format("/api/compute-migrations/v1/migrations/%s", request.getMigrationId());
+ try {
+ Request req = new Request("GET", path);
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public ListMigrationsResponse list(ListMigrationsRequest request) {
+ String path = "/api/compute-migrations/v1/migrations";
+ try {
+ Request req = new Request("GET", path);
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, ListMigrationsResponse.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration rejectMigrationExecution(RejectMigrationExecutionRequest request) {
+ String path =
+ String.format(
+ "/api/compute-migrations/v1/migrations/%s/rejectExecution", request.getMigrationId());
+ try {
+ Request req = new Request("POST", path, apiClient.serialize(request));
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ req.withHeader("Content-Type", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
+ @Override
+ public Migration rejectMigrationTranslation(RejectMigrationTranslationRequest request) {
+ String path =
+ String.format(
+ "/api/compute-migrations/v1/migrations/%s/rejectTranslation", request.getMigrationId());
+ try {
+ Request req = new Request("POST", path, apiClient.serialize(request));
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/json");
+ req.withHeader("Content-Type", "application/json");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, Migration.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ComputeMigrationsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ComputeMigrationsService.java
new file mode 100644
index 000000000..6d12884b9
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ComputeMigrationsService.java
@@ -0,0 +1,130 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+package com.databricks.sdk.service.computemigrations;
+
+import com.databricks.sdk.support.Generated;
+
+/**
+ * Manage migrations of Classic compute workloads to Serverless.
+ *
+ * This is the high-level interface, that contains generated methods.
+ *
+ * Evolving: this interface is under development. Method signatures may change.
+ */
+@Generated
+public interface ComputeMigrationsService {
+ /**
+ * Approves migration execution at the MIGRATION_REVIEW gate, advancing to execution.
+ *
+ * Valid only when the migration is in MIGRATION_REVIEW. If supplied, the `etag` must match the
+ * current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in MIGRATION_REVIEW. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ Migration approveMigrationExecution(
+ ApproveMigrationExecutionRequest approveMigrationExecutionRequest);
+
+ /**
+ * Approves the working copy at the TRANSLATION_READY gate. If the migration was created with
+ * `run_validation`, the working copy is then run to verify it executes successfully before the
+ * migration is presented for execution review; otherwise it advances straight to
+ * MIGRATION_REVIEW.
+ *
+ * Valid only when the migration is in TRANSLATION_READY. If supplied, the `etag` must match
+ * the current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in TRANSLATION_READY. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ Migration approveMigrationTranslation(
+ ApproveMigrationTranslationRequest approveMigrationTranslationRequest);
+
+ /**
+ * Cancels the migration, transitioning it to CANCELLED.
+ *
+ * Valid from any non-terminal state, unlike the review-gate transitions, which each require a
+ * specific state. Any in-flight agent work is abandoned and the migration stops advancing. The
+ * resource is retained for auditability.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is already in a terminal state. Returns ABORTED if the etag does not match the
+ * current resource version.
+ */
+ Migration cancelMigration(CancelMigrationRequest cancelMigrationRequest);
+
+ /**
+ * Creates a new migration for a Classic compute asset.
+ *
+ * The migration is created in PLANNING_PENDING and advances through the state machine as
+ * planning work is scheduled. The caller must have appropriate permissions: workspace admin for
+ * infrastructure-scoped migrations, job owner/admin for individual workload migrations.
+ *
+ * At most one migration may hold an asset. Returns ALREADY_EXISTS if the asset has a migration
+ * in flight, or one that already migrated it successfully; a migration that ended without
+ * succeeding, or was deleted, releases the asset so it can be migrated again. Returns
+ * INVALID_PARAMETER_VALUE if the asset is not eligible for migration.
+ */
+ Migration create(CreateMigrationRequest createMigrationRequest);
+
+ /**
+ * Deletes a migration (soft-delete).
+ *
+ * Allowed from any state. Deleting a migration marks the record deleted only — it does not
+ * roll back a migration that already ran, and resources created during the migration are not
+ * cleaned up. The migration resource is retained for auditability. To stop an in-flight migration
+ * (agent teardown, transition to CANCELLED), use CancelMigration instead.
+ *
+ * Returns NOT_FOUND if the migration does not exist, or was already deleted: a deleted
+ * migration is hidden from every method (Get, Update, List, and Delete), so it cannot be deleted
+ * again. Returns ABORTED if a supplied nonempty request etag does not match the resource version.
+ */
+ Migration delete(DeleteMigrationRequest deleteMigrationRequest);
+
+ /**
+ * Retrieves a migration by its ID.
+ *
+ * Returns the current state, configuration, and output artifacts of the migration. Use this to
+ * poll migration progress or inspect artifacts after state transitions. Returns NOT_FOUND if the
+ * migration does not exist in the caller's workspace.
+ */
+ Migration get(GetMigrationRequest getMigrationRequest);
+
+ /**
+ * Lists migrations in the caller's workspace, ordered by migration ID, with cursor-based
+ * pagination and filtering by asset type and state.
+ *
+ * Eventually consistent: results are read from a cache, and pagination is not a point-in-time
+ * snapshot, so a migration created during a List may not appear until a subsequent one.
+ */
+ ListMigrationsResponse list(ListMigrationsRequest listMigrationsRequest);
+
+ /**
+ * Rejects migration execution at the MIGRATION_REVIEW gate, sending the migration to
+ * REVISION_PENDING to loop back for re-planning.
+ *
+ * Valid only when the migration is in MIGRATION_REVIEW. If supplied, the `etag` must match the
+ * current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in MIGRATION_REVIEW. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ Migration rejectMigrationExecution(
+ RejectMigrationExecutionRequest rejectMigrationExecutionRequest);
+
+ /**
+ * Rejects the working copy at the TRANSLATION_READY gate, sending the migration to
+ * REVISION_PENDING to loop back for re-planning.
+ *
+ * Valid only when the migration is in TRANSLATION_READY. If supplied, the `etag` must match
+ * the current server value.
+ *
+ * Returns NOT_FOUND if the migration does not exist. Returns FAILED_PRECONDITION if the
+ * migration is not in TRANSLATION_READY. Returns ABORTED if the etag does not match the current
+ * resource version.
+ */
+ Migration rejectMigrationTranslation(
+ RejectMigrationTranslationRequest rejectMigrationTranslationRequest);
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/CreateMigrationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/CreateMigrationRequest.java
new file mode 100644
index 000000000..7d35de8f6
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/CreateMigrationRequest.java
@@ -0,0 +1,68 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.computemigrations;
+
+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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Objects;
+
+@Generated
+public class CreateMigrationRequest {
+ /**
+ * The migration to create. The server generates `migration_id` and sets `state` to
+ * PLANNING_PENDING. Required fields: `asset_type`, `asset_uri`.
+ */
+ @JsonProperty("migration")
+ private Migration migration;
+
+ /**
+ * Client-generated request ID for idempotent request deduplication. The server de-duplicates
+ * requests with the same request_id for at least 24 hours, returning the existing migration
+ * instead of creating a duplicate.
+ */
+ @JsonIgnore
+ @QueryParam("request_id")
+ private String requestId;
+
+ public CreateMigrationRequest setMigration(Migration migration) {
+ this.migration = migration;
+ return this;
+ }
+
+ public Migration getMigration() {
+ return migration;
+ }
+
+ public CreateMigrationRequest setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ public String getRequestId() {
+ return requestId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ CreateMigrationRequest that = (CreateMigrationRequest) o;
+ return Objects.equals(migration, that.migration) && Objects.equals(requestId, that.requestId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(migration, requestId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(CreateMigrationRequest.class)
+ .add("migration", migration)
+ .add("requestId", requestId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/DeleteMigrationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/DeleteMigrationRequest.java
new file mode 100644
index 000000000..50bde7039
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/DeleteMigrationRequest.java
@@ -0,0 +1,59 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.computemigrations;
+
+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 DeleteMigrationRequest {
+ /** If nonempty, must match the current resource etag or the request fails with ABORTED. */
+ @JsonIgnore
+ @QueryParam("etag")
+ private String etag;
+
+ /** The ID of the migration to cancel. */
+ @JsonIgnore private String migrationId;
+
+ public DeleteMigrationRequest setEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ public String getEtag() {
+ return etag;
+ }
+
+ public DeleteMigrationRequest setMigrationId(String migrationId) {
+ this.migrationId = migrationId;
+ return this;
+ }
+
+ public String getMigrationId() {
+ return migrationId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ DeleteMigrationRequest that = (DeleteMigrationRequest) o;
+ return Objects.equals(etag, that.etag) && Objects.equals(migrationId, that.migrationId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(etag, migrationId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(DeleteMigrationRequest.class)
+ .add("etag", etag)
+ .add("migrationId", migrationId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/GetMigrationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/GetMigrationRequest.java
new file mode 100644
index 000000000..e0c6a6872
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/GetMigrationRequest.java
@@ -0,0 +1,41 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.computemigrations;
+
+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 GetMigrationRequest {
+ /** The ID of the migration to retrieve. */
+ @JsonIgnore private String migrationId;
+
+ public GetMigrationRequest setMigrationId(String migrationId) {
+ this.migrationId = migrationId;
+ return this;
+ }
+
+ public String getMigrationId() {
+ return migrationId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GetMigrationRequest that = (GetMigrationRequest) o;
+ return Objects.equals(migrationId, that.migrationId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(migrationId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetMigrationRequest.class).add("migrationId", migrationId).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ListMigrationsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ListMigrationsRequest.java
new file mode 100644
index 000000000..6b6d451be
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/computemigrations/ListMigrationsRequest.java
@@ -0,0 +1,98 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.computemigrations;
+
+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.Collection;
+import java.util.Objects;
+
+@Generated
+public class ListMigrationsRequest {
+ /** Filter by asset type. */
+ @JsonIgnore
+ @QueryParam("asset_type")
+ private MigrationAssetType assetType;
+
+ /** Maximum number of migrations to return. Default: 50, maximum: 1000. */
+ @JsonIgnore
+ @QueryParam("page_size")
+ private Long pageSize;
+
+ /**
+ * Page token from a previous ListMigrations call. When paginating, all other parameters must
+ * match the call that provided the page token.
+ */
+ @JsonIgnore
+ @QueryParam("page_token")
+ private String pageToken;
+
+ /** Filter by migration state. Returns migrations in any of the specified states. */
+ @JsonIgnore
+ @QueryParam("states")
+ private Collection The maximum length is 4,096 characters. Requests with a longer value are rejected with
+ * INVALID_PARAMETER_VALUE.
+ */
+ @JsonProperty("description")
+ private String description;
+
+ /**
+ * 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.
+ *
+ * The maximum length is 63 characters. Requests with a longer value are rejected with
+ * INVALID_PARAMETER_VALUE.
+ */
+ @JsonProperty("display_name")
+ private String displayName;
+
+ /** The workspace folder that contains the Genie Agent. */
+ @JsonProperty("effective_parent_path")
+ private String effectiveParentPath;
+
+ /**
+ * Weak etag of `definition` only; metadata changes do not affect it. Send it on update or delete
+ * to detect concurrent definition changes.
+ */
+ @JsonProperty("etag")
+ private String etag;
+
+ /**
+ * The resource name of the Genie Agent, in the form `agents/{genie_agent_id}`. Ignored on create.
+ */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * 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.
+ */
+ @JsonProperty("parent_path")
+ private String parentPath;
+
+ /** Time when the Genie Agent was last modified. */
+ @JsonProperty("update_time")
+ private Timestamp updateTime;
+
+ /** Warehouse associated with the Genie Agent. */
+ @JsonProperty("warehouse_id")
+ private String warehouseId;
+
+ public GenieAgent setCreateTime(Timestamp createTime) {
+ this.createTime = createTime;
+ return this;
+ }
+
+ public Timestamp getCreateTime() {
+ return createTime;
+ }
+
+ public GenieAgent setDefinition(GenieAgentDefinition definition) {
+ this.definition = definition;
+ return this;
+ }
+
+ public GenieAgentDefinition getDefinition() {
+ return definition;
+ }
+
+ public GenieAgent setDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public GenieAgent setDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public GenieAgent setEffectiveParentPath(String effectiveParentPath) {
+ this.effectiveParentPath = effectiveParentPath;
+ return this;
+ }
+
+ public String getEffectiveParentPath() {
+ return effectiveParentPath;
+ }
+
+ public GenieAgent setEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ public String getEtag() {
+ return etag;
+ }
+
+ public GenieAgent setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public GenieAgent setParentPath(String parentPath) {
+ this.parentPath = parentPath;
+ return this;
+ }
+
+ public String getParentPath() {
+ return parentPath;
+ }
+
+ public GenieAgent setUpdateTime(Timestamp updateTime) {
+ this.updateTime = updateTime;
+ return this;
+ }
+
+ public Timestamp getUpdateTime() {
+ return updateTime;
+ }
+
+ public GenieAgent setWarehouseId(String warehouseId) {
+ this.warehouseId = warehouseId;
+ return this;
+ }
+
+ public String getWarehouseId() {
+ return warehouseId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GenieAgent that = (GenieAgent) o;
+ return Objects.equals(createTime, that.createTime)
+ && Objects.equals(definition, that.definition)
+ && Objects.equals(description, that.description)
+ && Objects.equals(displayName, that.displayName)
+ && Objects.equals(effectiveParentPath, that.effectiveParentPath)
+ && Objects.equals(etag, that.etag)
+ && Objects.equals(name, that.name)
+ && Objects.equals(parentPath, that.parentPath)
+ && Objects.equals(updateTime, that.updateTime)
+ && Objects.equals(warehouseId, that.warehouseId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ createTime,
+ definition,
+ description,
+ displayName,
+ effectiveParentPath,
+ etag,
+ name,
+ parentPath,
+ updateTime,
+ warehouseId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GenieAgent.class)
+ .add("createTime", createTime)
+ .add("definition", definition)
+ .add("description", description)
+ .add("displayName", displayName)
+ .add("effectiveParentPath", effectiveParentPath)
+ .add("etag", etag)
+ .add("name", name)
+ .add("parentPath", parentPath)
+ .add("updateTime", updateTime)
+ .add("warehouseId", warehouseId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkAnswer.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkAnswer.java
new file mode 100644
index 000000000..a40758452
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkAnswer.java
@@ -0,0 +1,59 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.genieagents;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Objects;
+
+/** The expected answer to a benchmark question. */
+@Generated
+public class GenieAgentBenchmarkAnswer {
+ /** The answer. */
+ @JsonProperty("content")
+ private String content;
+
+ /** The format of the answer. */
+ @JsonProperty("format")
+ private GenieAgentBenchmarkAnswerFormat format;
+
+ public GenieAgentBenchmarkAnswer setContent(String content) {
+ this.content = content;
+ return this;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public GenieAgentBenchmarkAnswer setFormat(GenieAgentBenchmarkAnswerFormat format) {
+ this.format = format;
+ return this;
+ }
+
+ public GenieAgentBenchmarkAnswerFormat getFormat() {
+ return format;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GenieAgentBenchmarkAnswer that = (GenieAgentBenchmarkAnswer) o;
+ return Objects.equals(content, that.content) && Objects.equals(format, that.format);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(content, format);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GenieAgentBenchmarkAnswer.class)
+ .add("content", content)
+ .add("format", format)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkAnswerFormat.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkAnswerFormat.java
new file mode 100644
index 000000000..d1f8916a8
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkAnswerFormat.java
@@ -0,0 +1,11 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.genieagents;
+
+import com.databricks.sdk.support.Generated;
+
+/** The format of a benchmark answer. */
+@Generated
+public enum GenieAgentBenchmarkAnswerFormat {
+ GENIE_AGENT_BENCHMARK_ANSWER_FORMAT_SQL,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkQuestion.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkQuestion.java
new file mode 100644
index 000000000..9e6dd4097
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentBenchmarkQuestion.java
@@ -0,0 +1,96 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.genieagents;
+
+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;
+
+/** A benchmark question with its expected answer. */
+@Generated
+public class GenieAgentBenchmarkQuestion {
+ /**
+ * The expected answer. At most one answer is supported; omit it when the question has no expected
+ * answer.
+ */
+ @JsonProperty("answer")
+ private Collection This is the high-level interface, that contains generated methods.
+ *
+ * Evolving: this interface is under development. Method signatures may change.
+ */
+@Generated
+public interface GenieAgentsService {
+ /** Creates a Genie Agent. */
+ GenieAgent createGenieAgent(CreateGenieAgentRequest createGenieAgentRequest);
+
+ /** Deletes a Genie Agent, moving it to trash. */
+ void deleteGenieAgent(DeleteGenieAgentRequest deleteGenieAgentRequest);
+
+ /** Gets a Genie Agent. */
+ GenieAgent getGenieAgent(GetGenieAgentRequest getGenieAgentRequest);
+
+ /**
+ * Lists the Genie Agents in the workspace. Genie Agents created from an integration (for example,
+ * from a dashboard) are not listed.
+ */
+ ListGenieAgentsResponse listGenieAgents(ListGenieAgentsRequest listGenieAgentsRequest);
+
+ /** 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/GetGenieAgentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GetGenieAgentRequest.java
new file mode 100644
index 000000000..b8af405cd
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GetGenieAgentRequest.java
@@ -0,0 +1,41 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.genieagents;
+
+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 GetGenieAgentRequest {
+ /** The resource name of the Genie Agent to retrieve, in the form `agents/{genie_agent_id}`. */
+ @JsonIgnore private String name;
+
+ public GetGenieAgentRequest 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;
+ GetGenieAgentRequest that = (GetGenieAgentRequest) o;
+ return Objects.equals(name, that.name);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetGenieAgentRequest.class).add("name", name).toString();
+ }
+}
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
new file mode 100644
index 000000000..2722dcd67
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsRequest.java
@@ -0,0 +1,88 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.genieagents;
+
+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 ListGenieAgentsRequest {
+ /**
+ * Maximum number of Genie Agents to return per page. Defaults to 20 when unset or 0; values above
+ * 100 are coerced to 100. Negative values are rejected with INVALID_PARAMETER_VALUE. With
+ * `GENIE_AGENT_VIEW_FULL`, a smaller per-page maximum applies.
+ */
+ @JsonIgnore
+ @QueryParam("page_size")
+ private Long pageSize;
+
+ /**
+ * Pagination token from a previous response's `next_page_token`. A token that was not returned by
+ * this method is rejected with INVALID_PARAMETER_VALUE.
+ */
+ @JsonIgnore
+ @QueryParam("page_token")
+ private String pageToken;
+
+ /**
+ * 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.
+ */
+ @JsonIgnore
+ @QueryParam("view")
+ private GenieAgentView view;
+
+ public ListGenieAgentsRequest setPageSize(Long pageSize) {
+ this.pageSize = pageSize;
+ return this;
+ }
+
+ public Long getPageSize() {
+ return pageSize;
+ }
+
+ public ListGenieAgentsRequest setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
+ public ListGenieAgentsRequest setView(GenieAgentView view) {
+ this.view = view;
+ return this;
+ }
+
+ public GenieAgentView getView() {
+ return view;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ ListGenieAgentsRequest that = (ListGenieAgentsRequest) o;
+ return Objects.equals(pageSize, that.pageSize)
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(view, that.view);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(pageSize, pageToken, view);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(ListGenieAgentsRequest.class)
+ .add("pageSize", pageSize)
+ .add("pageToken", pageToken)
+ .add("view", view)
+ .toString();
+ }
+}
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
new file mode 100644
index 000000000..7660cd406
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/ListGenieAgentsResponse.java
@@ -0,0 +1,81 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.genieagents;
+
+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 for a list request: a page of Genie Agents plus the token for the next page. */
+@Generated
+public class ListGenieAgentsResponse {
+ /** The Genie Agents, with the fields selected by the request's `view`. */
+ @JsonProperty("genie_agents")
+ private Collection A field named in the mask takes the value from `genie_agent`, even when it is unset there:
+ * an unset `description` is cleared; an unset `display_name`, `warehouse_id`, or `definition` is
+ * rejected with INVALID_PARAMETER_VALUE; an unset `parent_path` is cleared without moving the
+ * Genie Agent. `definition` is replaced as a whole; paths within it are not supported.
+ *
+ * The special value `*` replaces the whole Genie Agent, as if every updatable field were
+ * named. It must be the only path in the mask. Prefer naming fields explicitly: with `*`, any
+ * field added to Genie Agent later is also replaced, so a client unaware of it may clear it.
+ */
+ @JsonIgnore
+ @QueryParam("update_mask")
+ private FieldMask updateMask;
+
+ public UpdateGenieAgentRequest setEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ public String getEtag() {
+ return etag;
+ }
+
+ public UpdateGenieAgentRequest setGenieAgent(GenieAgent genieAgent) {
+ this.genieAgent = genieAgent;
+ return this;
+ }
+
+ public GenieAgent getGenieAgent() {
+ return genieAgent;
+ }
+
+ public UpdateGenieAgentRequest setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public UpdateGenieAgentRequest setUpdateMask(FieldMask updateMask) {
+ this.updateMask = updateMask;
+ return this;
+ }
+
+ public FieldMask getUpdateMask() {
+ return updateMask;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ UpdateGenieAgentRequest that = (UpdateGenieAgentRequest) o;
+ return Objects.equals(etag, that.etag)
+ && Objects.equals(genieAgent, that.genieAgent)
+ && Objects.equals(name, that.name)
+ && Objects.equals(updateMask, that.updateMask);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(etag, genieAgent, name, updateMask);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(UpdateGenieAgentRequest.class)
+ .add("etag", etag)
+ .add("genieAgent", genieAgent)
+ .add("name", name)
+ .add("updateMask", updateMask)
+ .toString();
+ }
+}
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 515bf2409..a60341768 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
@@ -105,9 +105,8 @@ public WorkspaceAssignmentDetail createWorkspaceAssignmentDetail(
return impl.createWorkspaceAssignmentDetail(request);
}
- public void deleteDirectGroupMember(long groupId, long principalId) {
- deleteDirectGroupMember(
- new DeleteDirectGroupMemberRequest().setGroupId(groupId).setPrincipalId(principalId));
+ public void deleteDirectGroupMember(String name) {
+ deleteDirectGroupMember(new DeleteDirectGroupMemberRequest().setName(name));
}
/**
@@ -120,8 +119,8 @@ public void deleteDirectGroupMember(DeleteDirectGroupMemberRequest request) {
impl.deleteDirectGroupMember(request);
}
- public void deleteGroup(String groupId) {
- deleteGroup(new DeleteGroupRequest().setGroupId(groupId));
+ public void deleteGroup(String name) {
+ deleteGroup(new DeleteGroupRequest().setName(name));
}
/**
@@ -149,9 +148,8 @@ public void deleteIdentityVisibilityFilter(DeleteIdentityVisibilityFilterRequest
impl.deleteIdentityVisibilityFilter(request);
}
- public void deleteServicePrincipal(String servicePrincipalId) {
- deleteServicePrincipal(
- new DeleteServicePrincipalRequest().setServicePrincipalId(servicePrincipalId));
+ public void deleteServicePrincipal(String name) {
+ deleteServicePrincipal(new DeleteServicePrincipalRequest().setName(name));
}
/** Deletes a service principal from the Databricks account by its internal ID. */
@@ -159,8 +157,8 @@ public void deleteServicePrincipal(DeleteServicePrincipalRequest request) {
impl.deleteServicePrincipal(request);
}
- public void deleteUser(String userId) {
- deleteUser(new DeleteUserRequest().setUserId(userId));
+ public void deleteUser(String name) {
+ deleteUser(new DeleteUserRequest().setName(name));
}
/** Deletes a user from the Databricks account by its internal ID. */
@@ -168,11 +166,8 @@ public void deleteUser(DeleteUserRequest request) {
impl.deleteUser(request);
}
- public void deleteWorkspaceAssignment(long workspaceId, long principalId) {
- deleteWorkspaceAssignment(
- new DeleteWorkspaceAssignmentRequest()
- .setWorkspaceId(workspaceId)
- .setPrincipalId(principalId));
+ public void deleteWorkspaceAssignment(String name) {
+ deleteWorkspaceAssignment(new DeleteWorkspaceAssignmentRequest().setName(name));
}
/**
@@ -200,9 +195,8 @@ public void deleteWorkspaceAssignmentDetail(DeleteWorkspaceAssignmentDetailReque
impl.deleteWorkspaceAssignmentDetail(request);
}
- public DirectGroupMember getDirectGroupMember(long groupId, long principalId) {
- return getDirectGroupMember(
- new GetDirectGroupMemberRequest().setGroupId(groupId).setPrincipalId(principalId));
+ public DirectGroupMember getDirectGroupMember(String name) {
+ return getDirectGroupMember(new GetDirectGroupMemberRequest().setName(name));
}
/** Gets a provisioned direct member of a group. */
@@ -250,8 +244,8 @@ public ExternalUser getExternalUser(GetExternalUserRequest request) {
return impl.getExternalUser(request);
}
- public Group getGroup(String groupId) {
- return getGroup(new GetGroupRequest().setGroupId(groupId));
+ public Group getGroup(String name) {
+ return getGroup(new GetGroupRequest().setName(name));
}
/** Fetches a group from the Databricks account by its internal ID. */
@@ -272,9 +266,8 @@ public IdentityVisibilityFilter getIdentityVisibilityFilter(
return impl.getIdentityVisibilityFilter(request);
}
- public ServicePrincipal getServicePrincipal(String servicePrincipalId) {
- return getServicePrincipal(
- new GetServicePrincipalRequest().setServicePrincipalId(servicePrincipalId));
+ public ServicePrincipal getServicePrincipal(String name) {
+ return getServicePrincipal(new GetServicePrincipalRequest().setName(name));
}
/** Fetches a service principal from the Databricks account by its internal ID. */
@@ -282,8 +275,8 @@ public ServicePrincipal getServicePrincipal(GetServicePrincipalRequest request)
return impl.getServicePrincipal(request);
}
- public User getUser(String userId) {
- return getUser(new GetUserRequest().setUserId(userId));
+ public User getUser(String name) {
+ return getUser(new GetUserRequest().setName(name));
}
/** Fetches a user from the Databricks account by its internal ID. */
@@ -291,11 +284,8 @@ public User getUser(GetUserRequest request) {
return impl.getUser(request);
}
- public WorkspaceAccessDetail getWorkspaceAccessDetail(long workspaceId, long principalId) {
- return getWorkspaceAccessDetail(
- new GetWorkspaceAccessDetailRequest()
- .setWorkspaceId(workspaceId)
- .setPrincipalId(principalId));
+ public WorkspaceAccessDetail getWorkspaceAccessDetail(String name) {
+ return getWorkspaceAccessDetail(new GetWorkspaceAccessDetailRequest().setName(name));
}
/**
@@ -309,11 +299,8 @@ public WorkspaceAccessDetail getWorkspaceAccessDetail(GetWorkspaceAccessDetailRe
return impl.getWorkspaceAccessDetail(request);
}
- public WorkspaceAssignment getWorkspaceAssignment(long workspaceId, long principalId) {
- return getWorkspaceAssignment(
- new GetWorkspaceAssignmentRequest()
- .setWorkspaceId(workspaceId)
- .setPrincipalId(principalId));
+ public WorkspaceAssignment getWorkspaceAssignment(String name) {
+ return getWorkspaceAssignment(new GetWorkspaceAssignmentRequest().setName(name));
}
/** Returns the assignment for a principal in a workspace. */
@@ -335,8 +322,8 @@ public WorkspaceAssignmentDetail getWorkspaceAssignmentDetail(
return impl.getWorkspaceAssignmentDetail(request);
}
- public Iterable For locally managed service principals, is_agent must be set to true or false when updated.
+ * To change is_agent on a locally managed service principal, set it to true or false. Naming
+ * is_agent in the update mask without a value leaves it unchanged.
*
* 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
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 98934da6c..9a209bb5b 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
@@ -18,10 +18,7 @@ public AccountIamV2Impl(ApiClient apiClient) {
@Override
public DirectGroupMember createDirectGroupMember(CreateDirectGroupMemberRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s/direct-members",
- apiClient.configuredAccountID(), request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s/direct-members", request.getParent());
try {
Request req = new Request("POST", path, apiClient.serialize(request.getDirectGroupMember()));
@@ -36,8 +33,7 @@ public DirectGroupMember createDirectGroupMember(CreateDirectGroupMemberRequest
@Override
public Group createGroup(CreateGroupRequest request) {
- String path =
- String.format("/api/2.0/identity/accounts/%s/groups", apiClient.configuredAccountID());
+ String path = String.format("/api/2.0/identity/%s/groups", request.getParent());
try {
Request req = new Request("POST", path, apiClient.serialize(request.getGroup()));
@@ -70,9 +66,7 @@ public IdentityVisibilityFilter createIdentityVisibilityFilter(
@Override
public ServicePrincipal createServicePrincipal(CreateServicePrincipalRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/service-principals", apiClient.configuredAccountID());
+ String path = String.format("/api/2.0/identity/%s/service-principals", request.getParent());
try {
Request req = new Request("POST", path, apiClient.serialize(request.getServicePrincipal()));
@@ -87,8 +81,7 @@ public ServicePrincipal createServicePrincipal(CreateServicePrincipalRequest req
@Override
public User createUser(CreateUserRequest request) {
- String path =
- String.format("/api/2.0/identity/accounts/%s/users", apiClient.configuredAccountID());
+ String path = String.format("/api/2.0/identity/%s/users", request.getParent());
try {
Request req = new Request("POST", path, apiClient.serialize(request.getUser()));
@@ -103,10 +96,7 @@ public User createUser(CreateUserRequest request) {
@Override
public WorkspaceAssignment createWorkspaceAssignment(CreateWorkspaceAssignmentRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/workspaces/%s/workspace-assignments",
- apiClient.configuredAccountID(), request.getWorkspaceId());
+ String path = String.format("/api/2.0/identity/%s/workspace-assignments", request.getParent());
try {
Request req =
new Request("POST", path, apiClient.serialize(request.getWorkspaceAssignment()));
@@ -142,10 +132,7 @@ public WorkspaceAssignmentDetail createWorkspaceAssignmentDetail(
@Override
public void deleteDirectGroupMember(DeleteDirectGroupMemberRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s/direct-members/%s",
- apiClient.configuredAccountID(), request.getGroupId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -159,10 +146,7 @@ public void deleteDirectGroupMember(DeleteDirectGroupMemberRequest request) {
@Override
public void deleteGroup(DeleteGroupRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s",
- apiClient.configuredAccountID(), request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -190,10 +174,7 @@ public void deleteIdentityVisibilityFilter(DeleteIdentityVisibilityFilterRequest
@Override
public void deleteServicePrincipal(DeleteServicePrincipalRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/service-principals/%s",
- apiClient.configuredAccountID(), request.getServicePrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -207,10 +188,7 @@ public void deleteServicePrincipal(DeleteServicePrincipalRequest request) {
@Override
public void deleteUser(DeleteUserRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/users/%s",
- apiClient.configuredAccountID(), request.getUserId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -224,10 +202,7 @@ public void deleteUser(DeleteUserRequest request) {
@Override
public void deleteWorkspaceAssignment(DeleteWorkspaceAssignmentRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/workspaces/%s/workspace-assignments/%s",
- apiClient.configuredAccountID(), request.getWorkspaceId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -258,10 +233,7 @@ public void deleteWorkspaceAssignmentDetail(DeleteWorkspaceAssignmentDetailReque
@Override
public DirectGroupMember getDirectGroupMember(GetDirectGroupMemberRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s/direct-members/%s",
- apiClient.configuredAccountID(), request.getGroupId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -318,10 +290,7 @@ public ExternalUser getExternalUser(GetExternalUserRequest request) {
@Override
public Group getGroup(GetGroupRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s",
- apiClient.configuredAccountID(), request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -350,10 +319,7 @@ public IdentityVisibilityFilter getIdentityVisibilityFilter(
@Override
public ServicePrincipal getServicePrincipal(GetServicePrincipalRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/service-principals/%s",
- apiClient.configuredAccountID(), request.getServicePrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -367,10 +333,7 @@ public ServicePrincipal getServicePrincipal(GetServicePrincipalRequest request)
@Override
public User getUser(GetUserRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/users/%s",
- apiClient.configuredAccountID(), request.getUserId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -384,10 +347,7 @@ public User getUser(GetUserRequest request) {
@Override
public WorkspaceAccessDetail getWorkspaceAccessDetail(GetWorkspaceAccessDetailRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/workspaces/%s/workspace-access-details/%s",
- apiClient.configuredAccountID(), request.getWorkspaceId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -401,10 +361,7 @@ public WorkspaceAccessDetail getWorkspaceAccessDetail(GetWorkspaceAccessDetailRe
@Override
public WorkspaceAssignment getWorkspaceAssignment(GetWorkspaceAssignmentRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/workspaces/%s/workspace-assignments/%s",
- apiClient.configuredAccountID(), request.getWorkspaceId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -437,10 +394,7 @@ public WorkspaceAssignmentDetail getWorkspaceAssignmentDetail(
@Override
public ListDirectGroupMembersResponse listDirectGroupMembers(
ListDirectGroupMembersRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s/direct-members",
- apiClient.configuredAccountID(), request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s/direct-members", request.getParent());
try {
Request req = new Request("GET", path);
@@ -454,8 +408,7 @@ public ListDirectGroupMembersResponse listDirectGroupMembers(
@Override
public ListGroupsResponse listGroups(ListGroupsRequest request) {
- String path =
- String.format("/api/2.0/identity/accounts/%s/groups", apiClient.configuredAccountID());
+ String path = String.format("/api/2.0/identity/%s/groups", request.getParent());
try {
Request req = new Request("GET", path);
@@ -485,9 +438,7 @@ public ListIdentityVisibilityFiltersResponse listIdentityVisibilityFilters(
@Override
public ListServicePrincipalsResponse listServicePrincipals(ListServicePrincipalsRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/service-principals", apiClient.configuredAccountID());
+ String path = String.format("/api/2.0/identity/%s/service-principals", request.getParent());
try {
Request req = new Request("GET", path);
@@ -503,9 +454,7 @@ public ListServicePrincipalsResponse listServicePrincipals(ListServicePrincipals
public ListTransitiveParentGroupsResponse listTransitiveParentGroups(
ListTransitiveParentGroupsRequest request) {
String path =
- String.format(
- "/api/2.0/identity/accounts/%s/principals/%s/transitive-parent-groups",
- apiClient.configuredAccountID(), request.getPrincipalId());
+ String.format("/api/2.0/identity/%s/transitive-parent-groups", request.getParent());
try {
Request req = new Request("GET", path);
@@ -519,8 +468,7 @@ public ListTransitiveParentGroupsResponse listTransitiveParentGroups(
@Override
public ListUsersResponse listUsers(ListUsersRequest request) {
- String path =
- String.format("/api/2.0/identity/accounts/%s/users", apiClient.configuredAccountID());
+ String path = String.format("/api/2.0/identity/%s/users", request.getParent());
try {
Request req = new Request("GET", path);
@@ -553,10 +501,7 @@ public ListWorkspaceAssignmentDetailsResponse listWorkspaceAssignmentDetails(
@Override
public ListWorkspaceAssignmentsResponse listWorkspaceAssignments(
ListWorkspaceAssignmentsRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/workspaces/%s/workspace-assignments",
- apiClient.configuredAccountID(), request.getWorkspaceId());
+ String path = String.format("/api/2.0/identity/%s/workspace-assignments", request.getParent());
try {
Request req = new Request("GET", path);
@@ -625,10 +570,7 @@ public ResolveUserResponse resolveUser(ResolveUserRequest request) {
@Override
public Group updateGroup(UpdateGroupRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/groups/%s",
- apiClient.configuredAccountID(), request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("PATCH", path, apiClient.serialize(request.getGroup()));
@@ -643,10 +585,7 @@ public Group updateGroup(UpdateGroupRequest request) {
@Override
public ServicePrincipal updateServicePrincipal(UpdateServicePrincipalRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/service-principals/%s",
- apiClient.configuredAccountID(), request.getServicePrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("PATCH", path, apiClient.serialize(request.getServicePrincipal()));
@@ -661,10 +600,7 @@ public ServicePrincipal updateServicePrincipal(UpdateServicePrincipalRequest req
@Override
public User updateUser(UpdateUserRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/users/%s",
- apiClient.configuredAccountID(), request.getUserId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("PATCH", path, apiClient.serialize(request.getUser()));
@@ -679,10 +615,7 @@ public User updateUser(UpdateUserRequest request) {
@Override
public WorkspaceAssignment updateWorkspaceAssignment(UpdateWorkspaceAssignmentRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/accounts/%s/workspaces/%s/workspace-assignments/%s",
- apiClient.configuredAccountID(), request.getWorkspaceId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req =
new Request("PATCH", path, apiClient.serialize(request.getWorkspaceAssignment()));
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 d66ce253c..e441a8821 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
@@ -281,7 +281,8 @@ ResolveServicePrincipalResponse resolveServicePrincipal(
* Updates an existing service principal in the Databricks account. Only the fields named in the
* update mask are modified. Returns the updated ServicePrincipal resource.
*
- * For locally managed service principals, is_agent must be set to true or false when updated.
+ * To change is_agent on a locally managed service principal, set it to true or false. Naming
+ * is_agent in the update mask without a value leaves it unchanged.
*
* 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
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberProxyRequest.java
index 1d9eff191..88336efec 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberProxyRequest.java
@@ -14,8 +14,8 @@ public class CreateDirectGroupMemberProxyRequest {
@JsonProperty("direct_group_member")
private DirectGroupMember directGroupMember;
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private Long groupId;
+ /** The parent resource name of the group to add the member to. Format: groups/{group_id} */
+ @JsonIgnore private String parent;
public CreateDirectGroupMemberProxyRequest setDirectGroupMember(
DirectGroupMember directGroupMember) {
@@ -27,13 +27,13 @@ public DirectGroupMember getDirectGroupMember() {
return directGroupMember;
}
- public CreateDirectGroupMemberProxyRequest setGroupId(Long groupId) {
- this.groupId = groupId;
+ public CreateDirectGroupMemberProxyRequest setParent(String parent) {
+ this.parent = parent;
return this;
}
- public Long getGroupId() {
- return groupId;
+ public String getParent() {
+ return parent;
}
@Override
@@ -42,19 +42,19 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
CreateDirectGroupMemberProxyRequest that = (CreateDirectGroupMemberProxyRequest) o;
return Objects.equals(directGroupMember, that.directGroupMember)
- && Objects.equals(groupId, that.groupId);
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(directGroupMember, groupId);
+ return Objects.hash(directGroupMember, parent);
}
@Override
public String toString() {
return new ToStringer(CreateDirectGroupMemberProxyRequest.class)
.add("directGroupMember", directGroupMember)
- .add("groupId", groupId)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberRequest.java
index 179bc43f9..404fe73f5 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateDirectGroupMemberRequest.java
@@ -14,8 +14,11 @@ public class CreateDirectGroupMemberRequest {
@JsonProperty("direct_group_member")
private DirectGroupMember directGroupMember;
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private Long groupId;
+ /**
+ * The parent resource name of the group to add the member to. Format:
+ * accounts/{account_id}/groups/{group_id}
+ */
+ @JsonIgnore private String parent;
public CreateDirectGroupMemberRequest setDirectGroupMember(DirectGroupMember directGroupMember) {
this.directGroupMember = directGroupMember;
@@ -26,13 +29,13 @@ public DirectGroupMember getDirectGroupMember() {
return directGroupMember;
}
- public CreateDirectGroupMemberRequest setGroupId(Long groupId) {
- this.groupId = groupId;
+ public CreateDirectGroupMemberRequest setParent(String parent) {
+ this.parent = parent;
return this;
}
- public Long getGroupId() {
- return groupId;
+ public String getParent() {
+ return parent;
}
@Override
@@ -41,19 +44,19 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
CreateDirectGroupMemberRequest that = (CreateDirectGroupMemberRequest) o;
return Objects.equals(directGroupMember, that.directGroupMember)
- && Objects.equals(groupId, that.groupId);
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(directGroupMember, groupId);
+ return Objects.hash(directGroupMember, parent);
}
@Override
public String toString() {
return new ToStringer(CreateDirectGroupMemberRequest.class)
.add("directGroupMember", directGroupMember)
- .add("groupId", groupId)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupProxyRequest.java
index 968828918..2e2033f3f 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupProxyRequest.java
@@ -3,7 +3,9 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@@ -13,6 +15,14 @@ public class CreateGroupProxyRequest {
@JsonProperty("group")
private Group group;
+ /**
+ * The resource name of the account to create the group in, `accounts/{account_id}`. Optional:
+ * defaults to the account of the calling workspace, and any other account is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
public CreateGroupProxyRequest setGroup(Group group) {
this.group = group;
return this;
@@ -22,21 +32,33 @@ public Group getGroup() {
return group;
}
+ public CreateGroupProxyRequest 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;
CreateGroupProxyRequest that = (CreateGroupProxyRequest) o;
- return Objects.equals(group, that.group);
+ return Objects.equals(group, that.group) && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(group);
+ return Objects.hash(group, parent);
}
@Override
public String toString() {
- return new ToStringer(CreateGroupProxyRequest.class).add("group", group).toString();
+ return new ToStringer(CreateGroupProxyRequest.class)
+ .add("group", group)
+ .add("parent", parent)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupRequest.java
index ee163beb3..98d344b7b 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateGroupRequest.java
@@ -4,6 +4,7 @@
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@@ -13,6 +14,12 @@ public class CreateGroupRequest {
@JsonProperty("group")
private Group group;
+ /**
+ * The parent resource name of the account in which to create the group. Format:
+ * accounts/{account_id}
+ */
+ @JsonIgnore private String parent;
+
public CreateGroupRequest setGroup(Group group) {
this.group = group;
return this;
@@ -22,21 +29,33 @@ public Group getGroup() {
return group;
}
+ public CreateGroupRequest 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;
CreateGroupRequest that = (CreateGroupRequest) o;
- return Objects.equals(group, that.group);
+ return Objects.equals(group, that.group) && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(group);
+ return Objects.hash(group, parent);
}
@Override
public String toString() {
- return new ToStringer(CreateGroupRequest.class).add("group", group).toString();
+ return new ToStringer(CreateGroupRequest.class)
+ .add("group", group)
+ .add("parent", parent)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalProxyRequest.java
index 26d5752ca..a6d95d9d1 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalProxyRequest.java
@@ -3,16 +3,35 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateServicePrincipalProxyRequest {
+ /**
+ * The resource name of the account to create the service principal in, `accounts/{account_id}`.
+ * Optional: defaults to the account of the calling workspace, and any other account is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
/** Required. Service principal to be created in Databricks */
@JsonProperty("service_principal")
private ServicePrincipal servicePrincipal;
+ public CreateServicePrincipalProxyRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public CreateServicePrincipalProxyRequest setServicePrincipal(ServicePrincipal servicePrincipal) {
this.servicePrincipal = servicePrincipal;
return this;
@@ -27,17 +46,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateServicePrincipalProxyRequest that = (CreateServicePrincipalProxyRequest) o;
- return Objects.equals(servicePrincipal, that.servicePrincipal);
+ return Objects.equals(parent, that.parent)
+ && Objects.equals(servicePrincipal, that.servicePrincipal);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipal);
+ return Objects.hash(parent, servicePrincipal);
}
@Override
public String toString() {
return new ToStringer(CreateServicePrincipalProxyRequest.class)
+ .add("parent", parent)
.add("servicePrincipal", servicePrincipal)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalRequest.java
index 9010d9d50..a732b478b 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateServicePrincipalRequest.java
@@ -4,15 +4,31 @@
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateServicePrincipalRequest {
+ /**
+ * The parent resource name of the account in which to create the service principal. Format:
+ * accounts/{account_id}
+ */
+ @JsonIgnore private String parent;
+
/** Required. Service principal to be created in Databricks */
@JsonProperty("service_principal")
private ServicePrincipal servicePrincipal;
+ public CreateServicePrincipalRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public CreateServicePrincipalRequest setServicePrincipal(ServicePrincipal servicePrincipal) {
this.servicePrincipal = servicePrincipal;
return this;
@@ -27,17 +43,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateServicePrincipalRequest that = (CreateServicePrincipalRequest) o;
- return Objects.equals(servicePrincipal, that.servicePrincipal);
+ return Objects.equals(parent, that.parent)
+ && Objects.equals(servicePrincipal, that.servicePrincipal);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipal);
+ return Objects.hash(parent, servicePrincipal);
}
@Override
public String toString() {
return new ToStringer(CreateServicePrincipalRequest.class)
+ .add("parent", parent)
.add("servicePrincipal", servicePrincipal)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserProxyRequest.java
index 638007ef8..ed91c8f3e 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserProxyRequest.java
@@ -3,16 +3,35 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateUserProxyRequest {
+ /**
+ * The resource name of the account to create the user in, `accounts/{account_id}`. Optional:
+ * defaults to the account of the calling workspace, and any other account is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
/** Required. User to be created in Databricks */
@JsonProperty("user")
private User user;
+ public CreateUserProxyRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public CreateUserProxyRequest setUser(User user) {
this.user = user;
return this;
@@ -27,16 +46,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateUserProxyRequest that = (CreateUserProxyRequest) o;
- return Objects.equals(user, that.user);
+ return Objects.equals(parent, that.parent) && Objects.equals(user, that.user);
}
@Override
public int hashCode() {
- return Objects.hash(user);
+ return Objects.hash(parent, user);
}
@Override
public String toString() {
- return new ToStringer(CreateUserProxyRequest.class).add("user", user).toString();
+ return new ToStringer(CreateUserProxyRequest.class)
+ .add("parent", parent)
+ .add("user", user)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserRequest.java
index dbf3ec858..fae5f44f0 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateUserRequest.java
@@ -4,15 +4,31 @@
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateUserRequest {
+ /**
+ * The parent resource name of the account in which to create the user. Format:
+ * accounts/{account_id}
+ */
+ @JsonIgnore private String parent;
+
/** Required. User to be created in Databricks */
@JsonProperty("user")
private User user;
+ public CreateUserRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public CreateUserRequest setUser(User user) {
this.user = user;
return this;
@@ -27,16 +43,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateUserRequest that = (CreateUserRequest) o;
- return Objects.equals(user, that.user);
+ return Objects.equals(parent, that.parent) && Objects.equals(user, that.user);
}
@Override
public int hashCode() {
- return Objects.hash(user);
+ return Objects.hash(parent, user);
}
@Override
public String toString() {
- return new ToStringer(CreateUserRequest.class).add("user", user).toString();
+ return new ToStringer(CreateUserRequest.class)
+ .add("parent", parent)
+ .add("user", user)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentProxyRequest.java
index 4e1c219ed..f58c04620 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentProxyRequest.java
@@ -3,16 +3,36 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateWorkspaceAssignmentProxyRequest {
+ /**
+ * The resource name of the workspace to assign the principal to,
+ * `accounts/{account_id}/workspaces/{workspace_id}`. Optional: defaults to the calling workspace,
+ * and any other workspace is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
/** Required. Workspace assignment to be created in Databricks. */
@JsonProperty("workspace_assignment")
private WorkspaceAssignment workspaceAssignment;
+ public CreateWorkspaceAssignmentProxyRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public CreateWorkspaceAssignmentProxyRequest setWorkspaceAssignment(
WorkspaceAssignment workspaceAssignment) {
this.workspaceAssignment = workspaceAssignment;
@@ -28,17 +48,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateWorkspaceAssignmentProxyRequest that = (CreateWorkspaceAssignmentProxyRequest) o;
- return Objects.equals(workspaceAssignment, that.workspaceAssignment);
+ return Objects.equals(parent, that.parent)
+ && Objects.equals(workspaceAssignment, that.workspaceAssignment);
}
@Override
public int hashCode() {
- return Objects.hash(workspaceAssignment);
+ return Objects.hash(parent, workspaceAssignment);
}
@Override
public String toString() {
return new ToStringer(CreateWorkspaceAssignmentProxyRequest.class)
+ .add("parent", parent)
.add("workspaceAssignment", workspaceAssignment)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentRequest.java
index 028998469..704d37b5a 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/CreateWorkspaceAssignmentRequest.java
@@ -10,12 +10,24 @@
@Generated
public class CreateWorkspaceAssignmentRequest {
+ /**
+ * The parent resource name of the workspace to assign the principal to. Format:
+ * accounts/{account_id}/workspaces/{workspace_id}
+ */
+ @JsonIgnore private String parent;
+
/** Required. Workspace assignment to be created in Databricks. */
@JsonProperty("workspace_assignment")
private WorkspaceAssignment workspaceAssignment;
- /** Required. The workspace ID for which the workspace assignment is being created. */
- @JsonIgnore private Long workspaceId;
+ public CreateWorkspaceAssignmentRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
public CreateWorkspaceAssignmentRequest setWorkspaceAssignment(
WorkspaceAssignment workspaceAssignment) {
@@ -27,34 +39,25 @@ public WorkspaceAssignment getWorkspaceAssignment() {
return workspaceAssignment;
}
- public CreateWorkspaceAssignmentRequest setWorkspaceId(Long workspaceId) {
- this.workspaceId = workspaceId;
- return this;
- }
-
- public Long getWorkspaceId() {
- return workspaceId;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateWorkspaceAssignmentRequest that = (CreateWorkspaceAssignmentRequest) o;
- return Objects.equals(workspaceAssignment, that.workspaceAssignment)
- && Objects.equals(workspaceId, that.workspaceId);
+ return Objects.equals(parent, that.parent)
+ && Objects.equals(workspaceAssignment, that.workspaceAssignment);
}
@Override
public int hashCode() {
- return Objects.hash(workspaceAssignment, workspaceId);
+ return Objects.hash(parent, workspaceAssignment);
}
@Override
public String toString() {
return new ToStringer(CreateWorkspaceAssignmentRequest.class)
+ .add("parent", parent)
.add("workspaceAssignment", workspaceAssignment)
- .add("workspaceId", workspaceId)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberProxyRequest.java
index 32713efbd..168fa1b18 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberProxyRequest.java
@@ -9,28 +9,19 @@
@Generated
public class DeleteDirectGroupMemberProxyRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private Long groupId;
-
- /** Required. Internal ID of the principal to be unassigned from the group. */
- @JsonIgnore private Long principalId;
-
- public DeleteDirectGroupMemberProxyRequest setGroupId(Long groupId) {
- this.groupId = groupId;
- return this;
- }
-
- public Long getGroupId() {
- return groupId;
- }
-
- public DeleteDirectGroupMemberProxyRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ /**
+ * The resource name of the group membership. Format:
+ * groups/{group_id}/direct-members/{principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public DeleteDirectGroupMemberProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -38,19 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteDirectGroupMemberProxyRequest that = (DeleteDirectGroupMemberProxyRequest) o;
- return Objects.equals(groupId, that.groupId) && Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId, principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteDirectGroupMemberProxyRequest.class)
- .add("groupId", groupId)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(DeleteDirectGroupMemberProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberRequest.java
index a319d360d..da9d07b40 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteDirectGroupMemberRequest.java
@@ -9,28 +9,19 @@
@Generated
public class DeleteDirectGroupMemberRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private Long groupId;
-
- /** Required. Internal ID of the principal to be unassigned from the group. */
- @JsonIgnore private Long principalId;
-
- public DeleteDirectGroupMemberRequest setGroupId(Long groupId) {
- this.groupId = groupId;
- return this;
- }
-
- public Long getGroupId() {
- return groupId;
- }
-
- public DeleteDirectGroupMemberRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ /**
+ * The resource name of the group membership. Format:
+ * accounts/{account_id}/groups/{group_id}/direct-members/{principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public DeleteDirectGroupMemberRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -38,19 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteDirectGroupMemberRequest that = (DeleteDirectGroupMemberRequest) o;
- return Objects.equals(groupId, that.groupId) && Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId, principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteDirectGroupMemberRequest.class)
- .add("groupId", groupId)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(DeleteDirectGroupMemberRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupProxyRequest.java
index aff780869..941ba0fac 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupProxyRequest.java
@@ -9,16 +9,16 @@
@Generated
public class DeleteGroupProxyRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private String groupId;
+ /** The resource name of the group. Format: groups/{group_id} */
+ @JsonIgnore private String name;
- public DeleteGroupProxyRequest setGroupId(String groupId) {
- this.groupId = groupId;
+ public DeleteGroupProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getGroupId() {
- return groupId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteGroupProxyRequest that = (DeleteGroupProxyRequest) o;
- return Objects.equals(groupId, that.groupId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteGroupProxyRequest.class).add("groupId", groupId).toString();
+ return new ToStringer(DeleteGroupProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupRequest.java
index 560d46550..6cd8b5e37 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteGroupRequest.java
@@ -9,16 +9,16 @@
@Generated
public class DeleteGroupRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private String groupId;
+ /** The resource name of the group. Format: accounts/{account_id}/groups/{group_id} */
+ @JsonIgnore private String name;
- public DeleteGroupRequest setGroupId(String groupId) {
- this.groupId = groupId;
+ public DeleteGroupRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getGroupId() {
- return groupId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteGroupRequest that = (DeleteGroupRequest) o;
- return Objects.equals(groupId, that.groupId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteGroupRequest.class).add("groupId", groupId).toString();
+ return new ToStringer(DeleteGroupRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalProxyRequest.java
index 2e014d5ca..ad0ced620 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalProxyRequest.java
@@ -9,16 +9,18 @@
@Generated
public class DeleteServicePrincipalProxyRequest {
- /** Required. Internal ID of the service principal in Databricks. */
- @JsonIgnore private String servicePrincipalId;
+ /**
+ * The resource name of the service principal. Format: service-principals/{service_principal_id}
+ */
+ @JsonIgnore private String name;
- public DeleteServicePrincipalProxyRequest setServicePrincipalId(String servicePrincipalId) {
- this.servicePrincipalId = servicePrincipalId;
+ public DeleteServicePrincipalProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getServicePrincipalId() {
- return servicePrincipalId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,18 +28,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteServicePrincipalProxyRequest that = (DeleteServicePrincipalProxyRequest) o;
- return Objects.equals(servicePrincipalId, that.servicePrincipalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteServicePrincipalProxyRequest.class)
- .add("servicePrincipalId", servicePrincipalId)
- .toString();
+ return new ToStringer(DeleteServicePrincipalProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalRequest.java
index b3081a445..752142396 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteServicePrincipalRequest.java
@@ -9,16 +9,19 @@
@Generated
public class DeleteServicePrincipalRequest {
- /** Required. Internal ID of the service principal in Databricks. */
- @JsonIgnore private String servicePrincipalId;
-
- public DeleteServicePrincipalRequest setServicePrincipalId(String servicePrincipalId) {
- this.servicePrincipalId = servicePrincipalId;
+ /**
+ * The resource name of the service principal. Format:
+ * accounts/{account_id}/service-principals/{service_principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public DeleteServicePrincipalRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getServicePrincipalId() {
- return servicePrincipalId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,18 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteServicePrincipalRequest that = (DeleteServicePrincipalRequest) o;
- return Objects.equals(servicePrincipalId, that.servicePrincipalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteServicePrincipalRequest.class)
- .add("servicePrincipalId", servicePrincipalId)
- .toString();
+ return new ToStringer(DeleteServicePrincipalRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserProxyRequest.java
index d9d8b0d94..a33cf5da5 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserProxyRequest.java
@@ -9,16 +9,16 @@
@Generated
public class DeleteUserProxyRequest {
- /** Required. Internal ID of the user in Databricks. */
- @JsonIgnore private String userId;
+ /** The resource name of the user. Format: users/{user_id} */
+ @JsonIgnore private String name;
- public DeleteUserProxyRequest setUserId(String userId) {
- this.userId = userId;
+ public DeleteUserProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getUserId() {
- return userId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteUserProxyRequest that = (DeleteUserProxyRequest) o;
- return Objects.equals(userId, that.userId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(userId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteUserProxyRequest.class).add("userId", userId).toString();
+ return new ToStringer(DeleteUserProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserRequest.java
index 256413117..130e85431 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteUserRequest.java
@@ -9,16 +9,16 @@
@Generated
public class DeleteUserRequest {
- /** Required. Internal ID of the user in Databricks. */
- @JsonIgnore private String userId;
+ /** The resource name of the user. Format: accounts/{account_id}/users/{user_id} */
+ @JsonIgnore private String name;
- public DeleteUserRequest setUserId(String userId) {
- this.userId = userId;
+ public DeleteUserRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getUserId() {
- return userId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteUserRequest that = (DeleteUserRequest) o;
- return Objects.equals(userId, that.userId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(userId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteUserRequest.class).add("userId", userId).toString();
+ return new ToStringer(DeleteUserRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentProxyRequest.java
index 133c23ec1..ba2b993fd 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentProxyRequest.java
@@ -9,16 +9,16 @@
@Generated
public class DeleteWorkspaceAssignmentProxyRequest {
- /** Required. ID of the principal in Databricks to delete workspace assignment for. */
- @JsonIgnore private Long principalId;
+ /** The resource name of the workspace assignment. Format: workspace-assignments/{principal_id} */
+ @JsonIgnore private String name;
- public DeleteWorkspaceAssignmentProxyRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public DeleteWorkspaceAssignmentProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,18 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteWorkspaceAssignmentProxyRequest that = (DeleteWorkspaceAssignmentProxyRequest) o;
- return Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteWorkspaceAssignmentProxyRequest.class)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(DeleteWorkspaceAssignmentProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentRequest.java
index 0a5d0657c..2553a1ed5 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/DeleteWorkspaceAssignmentRequest.java
@@ -9,28 +9,19 @@
@Generated
public class DeleteWorkspaceAssignmentRequest {
- /** Required. ID of the principal in Databricks to delete workspace assignment for. */
- @JsonIgnore private Long principalId;
-
- /** The workspace ID where the principal has access. */
- @JsonIgnore private Long workspaceId;
-
- public DeleteWorkspaceAssignmentRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
- return this;
- }
-
- public Long getPrincipalId() {
- return principalId;
- }
-
- public DeleteWorkspaceAssignmentRequest setWorkspaceId(Long workspaceId) {
- this.workspaceId = workspaceId;
+ /**
+ * The resource name of the workspace assignment. Format:
+ * accounts/{account_id}/workspaces/{workspace_id}/workspace-assignments/{principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public DeleteWorkspaceAssignmentRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getWorkspaceId() {
- return workspaceId;
+ public String getName() {
+ return name;
}
@Override
@@ -38,20 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteWorkspaceAssignmentRequest that = (DeleteWorkspaceAssignmentRequest) o;
- return Objects.equals(principalId, that.principalId)
- && Objects.equals(workspaceId, that.workspaceId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, workspaceId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(DeleteWorkspaceAssignmentRequest.class)
- .add("principalId", principalId)
- .add("workspaceId", workspaceId)
- .toString();
+ return new ToStringer(DeleteWorkspaceAssignmentRequest.class).add("name", name).toString();
}
}
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 296903d52..34814a29d 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
@@ -26,6 +26,22 @@ public class DirectGroupMember {
@JsonProperty("membership_source")
private GroupMembershipSource membershipSource;
+ /**
+ * The resource name of the group membership. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/groups/{group_id}/direct-members/{principal_id} -
+ * Workspace-scoped: groups/{group_id}/direct-members/{principal_id}
+ */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * The resource name of the group that contains the membership. The format depends on the API that
+ * returned it: - Account-scoped: accounts/{account_id}/groups/{group_id} - Workspace-scoped:
+ * groups/{group_id}
+ */
+ @JsonProperty("parent")
+ private String parent;
+
/** Internal ID of the principal in Databricks. */
@JsonProperty("principal_id")
private Long principalId;
@@ -70,6 +86,24 @@ public GroupMembershipSource getMembershipSource() {
return membershipSource;
}
+ public DirectGroupMember setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public DirectGroupMember setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public DirectGroupMember setPrincipalId(Long principalId) {
this.principalId = principalId;
return this;
@@ -97,6 +131,8 @@ public boolean equals(Object o) {
&& Objects.equals(externalId, that.externalId)
&& Objects.equals(groupId, that.groupId)
&& Objects.equals(membershipSource, that.membershipSource)
+ && Objects.equals(name, that.name)
+ && Objects.equals(parent, that.parent)
&& Objects.equals(principalId, that.principalId)
&& Objects.equals(principalType, that.principalType);
}
@@ -104,7 +140,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- displayName, externalId, groupId, membershipSource, principalId, principalType);
+ displayName,
+ externalId,
+ groupId,
+ membershipSource,
+ name,
+ parent,
+ principalId,
+ principalType);
}
@Override
@@ -114,6 +157,8 @@ public String toString() {
.add("externalId", externalId)
.add("groupId", groupId)
.add("membershipSource", membershipSource)
+ .add("name", name)
+ .add("parent", parent)
.add("principalId", principalId)
.add("principalType", principalType)
.toString();
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberProxyRequest.java
index a9ebff025..da84e46ee 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberProxyRequest.java
@@ -9,28 +9,19 @@
@Generated
public class GetDirectGroupMemberProxyRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private Long groupId;
-
- /** Required. Internal ID of the principal belonging to the group in Databricks. */
- @JsonIgnore private Long principalId;
-
- public GetDirectGroupMemberProxyRequest setGroupId(Long groupId) {
- this.groupId = groupId;
- return this;
- }
-
- public Long getGroupId() {
- return groupId;
- }
-
- public GetDirectGroupMemberProxyRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ /**
+ * The resource name of the group membership. Format:
+ * groups/{group_id}/direct-members/{principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public GetDirectGroupMemberProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -38,19 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetDirectGroupMemberProxyRequest that = (GetDirectGroupMemberProxyRequest) o;
- return Objects.equals(groupId, that.groupId) && Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId, principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetDirectGroupMemberProxyRequest.class)
- .add("groupId", groupId)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(GetDirectGroupMemberProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberRequest.java
index da8451c3c..3fa170bc1 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetDirectGroupMemberRequest.java
@@ -9,28 +9,19 @@
@Generated
public class GetDirectGroupMemberRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private Long groupId;
-
- /** Required. Internal ID of the principal belonging to the group in Databricks. */
- @JsonIgnore private Long principalId;
-
- public GetDirectGroupMemberRequest setGroupId(Long groupId) {
- this.groupId = groupId;
- return this;
- }
-
- public Long getGroupId() {
- return groupId;
- }
-
- public GetDirectGroupMemberRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ /**
+ * The resource name of the group membership. Format:
+ * accounts/{account_id}/groups/{group_id}/direct-members/{principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public GetDirectGroupMemberRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -38,19 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetDirectGroupMemberRequest that = (GetDirectGroupMemberRequest) o;
- return Objects.equals(groupId, that.groupId) && Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId, principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetDirectGroupMemberRequest.class)
- .add("groupId", groupId)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(GetDirectGroupMemberRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupProxyRequest.java
index 4f10c3a6a..d81daa96b 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupProxyRequest.java
@@ -9,16 +9,16 @@
@Generated
public class GetGroupProxyRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private String groupId;
+ /** The resource name of the group. Format: groups/{group_id} */
+ @JsonIgnore private String name;
- public GetGroupProxyRequest setGroupId(String groupId) {
- this.groupId = groupId;
+ public GetGroupProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getGroupId() {
- return groupId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetGroupProxyRequest that = (GetGroupProxyRequest) o;
- return Objects.equals(groupId, that.groupId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetGroupProxyRequest.class).add("groupId", groupId).toString();
+ return new ToStringer(GetGroupProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupRequest.java
index 4f9ebf2c1..46d4aa326 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetGroupRequest.java
@@ -9,16 +9,16 @@
@Generated
public class GetGroupRequest {
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private String groupId;
+ /** The resource name of the group. Format: accounts/{account_id}/groups/{group_id} */
+ @JsonIgnore private String name;
- public GetGroupRequest setGroupId(String groupId) {
- this.groupId = groupId;
+ public GetGroupRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getGroupId() {
- return groupId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetGroupRequest that = (GetGroupRequest) o;
- return Objects.equals(groupId, that.groupId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(groupId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetGroupRequest.class).add("groupId", groupId).toString();
+ return new ToStringer(GetGroupRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalProxyRequest.java
index cba391135..5a8c46828 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalProxyRequest.java
@@ -9,16 +9,18 @@
@Generated
public class GetServicePrincipalProxyRequest {
- /** Required. Internal ID of the service principal in Databricks. */
- @JsonIgnore private String servicePrincipalId;
+ /**
+ * The resource name of the service principal. Format: service-principals/{service_principal_id}
+ */
+ @JsonIgnore private String name;
- public GetServicePrincipalProxyRequest setServicePrincipalId(String servicePrincipalId) {
- this.servicePrincipalId = servicePrincipalId;
+ public GetServicePrincipalProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getServicePrincipalId() {
- return servicePrincipalId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,18 +28,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetServicePrincipalProxyRequest that = (GetServicePrincipalProxyRequest) o;
- return Objects.equals(servicePrincipalId, that.servicePrincipalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetServicePrincipalProxyRequest.class)
- .add("servicePrincipalId", servicePrincipalId)
- .toString();
+ return new ToStringer(GetServicePrincipalProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalRequest.java
index d17d7f97e..8c7b13968 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetServicePrincipalRequest.java
@@ -9,16 +9,19 @@
@Generated
public class GetServicePrincipalRequest {
- /** Required. Internal ID of the service principal in Databricks. */
- @JsonIgnore private String servicePrincipalId;
-
- public GetServicePrincipalRequest setServicePrincipalId(String servicePrincipalId) {
- this.servicePrincipalId = servicePrincipalId;
+ /**
+ * The resource name of the service principal. Format:
+ * accounts/{account_id}/service-principals/{service_principal_id}
+ */
+ @JsonIgnore private String name;
+
+ public GetServicePrincipalRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getServicePrincipalId() {
- return servicePrincipalId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,18 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetServicePrincipalRequest that = (GetServicePrincipalRequest) o;
- return Objects.equals(servicePrincipalId, that.servicePrincipalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetServicePrincipalRequest.class)
- .add("servicePrincipalId", servicePrincipalId)
- .toString();
+ return new ToStringer(GetServicePrincipalRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserProxyRequest.java
index 46c3355ac..967dd3520 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserProxyRequest.java
@@ -9,16 +9,16 @@
@Generated
public class GetUserProxyRequest {
- /** Required. Internal ID of the user in Databricks. */
- @JsonIgnore private String userId;
+ /** The resource name of the user. Format: users/{user_id} */
+ @JsonIgnore private String name;
- public GetUserProxyRequest setUserId(String userId) {
- this.userId = userId;
+ public GetUserProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getUserId() {
- return userId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetUserProxyRequest that = (GetUserProxyRequest) o;
- return Objects.equals(userId, that.userId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(userId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetUserProxyRequest.class).add("userId", userId).toString();
+ return new ToStringer(GetUserProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserRequest.java
index 11a036c97..0bfed4e30 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetUserRequest.java
@@ -9,16 +9,16 @@
@Generated
public class GetUserRequest {
- /** Required. Internal ID of the user in Databricks. */
- @JsonIgnore private String userId;
+ /** The resource name of the user. Format: accounts/{account_id}/users/{user_id} */
+ @JsonIgnore private String name;
- public GetUserRequest setUserId(String userId) {
- this.userId = userId;
+ public GetUserRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getUserId() {
- return userId;
+ public String getName() {
+ return name;
}
@Override
@@ -26,16 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetUserRequest that = (GetUserRequest) o;
- return Objects.equals(userId, that.userId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(userId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetUserRequest.class).add("userId", userId).toString();
+ return new ToStringer(GetUserRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailLocalRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailLocalRequest.java
index 52923abdc..96333408d 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailLocalRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailLocalRequest.java
@@ -11,23 +11,23 @@
@Generated
public class GetWorkspaceAccessDetailLocalRequest {
/**
- * Required. The internal ID of the principal (user/sp/group) for which the access details are
- * being requested.
+ * The resource name of the workspace access detail. Format:
+ * workspace-access-details/{principal_id}
*/
- @JsonIgnore private Long principalId;
+ @JsonIgnore private String name;
/** Controls what fields are returned. */
@JsonIgnore
@QueryParam("view")
private WorkspaceAccessDetailView view;
- public GetWorkspaceAccessDetailLocalRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public GetWorkspaceAccessDetailLocalRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
public GetWorkspaceAccessDetailLocalRequest setView(WorkspaceAccessDetailView view) {
@@ -44,18 +44,18 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetWorkspaceAccessDetailLocalRequest that = (GetWorkspaceAccessDetailLocalRequest) o;
- return Objects.equals(principalId, that.principalId) && Objects.equals(view, that.view);
+ return Objects.equals(name, that.name) && Objects.equals(view, that.view);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, view);
+ return Objects.hash(name, view);
}
@Override
public String toString() {
return new ToStringer(GetWorkspaceAccessDetailLocalRequest.class)
- .add("principalId", principalId)
+ .add("name", name)
.add("view", view)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailRequest.java
index 39e1a686d..7e48220bf 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAccessDetailRequest.java
@@ -11,26 +11,23 @@
@Generated
public class GetWorkspaceAccessDetailRequest {
/**
- * Required. The internal ID of the principal (user/sp/group) for which the access details are
- * being requested.
+ * The resource name of the workspace access detail. Format:
+ * accounts/{account_id}/workspaces/{workspace_id}/workspace-access-details/{principal_id}
*/
- @JsonIgnore private Long principalId;
+ @JsonIgnore private String name;
/** Controls what fields are returned. */
@JsonIgnore
@QueryParam("view")
private WorkspaceAccessDetailView view;
- /** Required. The workspace ID for which the access details are being requested. */
- @JsonIgnore private Long workspaceId;
-
- public GetWorkspaceAccessDetailRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public GetWorkspaceAccessDetailRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
public GetWorkspaceAccessDetailRequest setView(WorkspaceAccessDetailView view) {
@@ -42,36 +39,24 @@ public WorkspaceAccessDetailView getView() {
return view;
}
- public GetWorkspaceAccessDetailRequest setWorkspaceId(Long workspaceId) {
- this.workspaceId = workspaceId;
- return this;
- }
-
- public Long getWorkspaceId() {
- return workspaceId;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetWorkspaceAccessDetailRequest that = (GetWorkspaceAccessDetailRequest) o;
- return Objects.equals(principalId, that.principalId)
- && Objects.equals(view, that.view)
- && Objects.equals(workspaceId, that.workspaceId);
+ return Objects.equals(name, that.name) && Objects.equals(view, that.view);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, view, workspaceId);
+ return Objects.hash(name, view);
}
@Override
public String toString() {
return new ToStringer(GetWorkspaceAccessDetailRequest.class)
- .add("principalId", principalId)
+ .add("name", name)
.add("view", view)
- .add("workspaceId", workspaceId)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentProxyRequest.java
index 87d089868..9dc275ef6 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentProxyRequest.java
@@ -9,19 +9,16 @@
@Generated
public class GetWorkspaceAssignmentProxyRequest {
- /**
- * Required. The internal ID of the principal (user/sp/group) for which the assignment is being
- * requested.
- */
- @JsonIgnore private Long principalId;
-
- public GetWorkspaceAssignmentProxyRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ /** The resource name of the workspace assignment. Format: workspace-assignments/{principal_id} */
+ @JsonIgnore private String name;
+
+ public GetWorkspaceAssignmentProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -29,18 +26,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetWorkspaceAssignmentProxyRequest that = (GetWorkspaceAssignmentProxyRequest) o;
- return Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetWorkspaceAssignmentProxyRequest.class)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(GetWorkspaceAssignmentProxyRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentRequest.java
index ff513b5ba..17edc48c1 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceAssignmentRequest.java
@@ -10,30 +10,18 @@
@Generated
public class GetWorkspaceAssignmentRequest {
/**
- * Required. The internal ID of the principal (user/sp/group) for which the assignment is being
- * requested.
+ * The resource name of the workspace assignment. Format:
+ * accounts/{account_id}/workspaces/{workspace_id}/workspace-assignments/{principal_id}
*/
- @JsonIgnore private Long principalId;
+ @JsonIgnore private String name;
- /** Required. The workspace ID for which the assignment is being requested. */
- @JsonIgnore private Long workspaceId;
-
- public GetWorkspaceAssignmentRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
- return this;
- }
-
- public Long getPrincipalId() {
- return principalId;
- }
-
- public GetWorkspaceAssignmentRequest setWorkspaceId(Long workspaceId) {
- this.workspaceId = workspaceId;
+ public GetWorkspaceAssignmentRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getWorkspaceId() {
- return workspaceId;
+ public String getName() {
+ return name;
}
@Override
@@ -41,20 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetWorkspaceAssignmentRequest that = (GetWorkspaceAssignmentRequest) o;
- return Objects.equals(principalId, that.principalId)
- && Objects.equals(workspaceId, that.workspaceId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, workspaceId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetWorkspaceAssignmentRequest.class)
- .add("principalId", principalId)
- .add("workspaceId", workspaceId)
- .toString();
+ return new ToStringer(GetWorkspaceAssignmentRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceIdentityDetailRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceIdentityDetailRequest.java
index d5ddfa57e..6735c9cec 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceIdentityDetailRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/GetWorkspaceIdentityDetailRequest.java
@@ -10,18 +10,18 @@
@Generated
public class GetWorkspaceIdentityDetailRequest {
/**
- * Required. The internal ID of the principal (user/sp/group) for which the identity details are
- * being requested.
+ * The resource name of the workspace identity detail. Format:
+ * principals/{principal_id}/workspace-identity-detail
*/
- @JsonIgnore private Long principalId;
+ @JsonIgnore private String name;
- public GetWorkspaceIdentityDetailRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public GetWorkspaceIdentityDetailRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
@Override
@@ -29,18 +29,16 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetWorkspaceIdentityDetailRequest that = (GetWorkspaceIdentityDetailRequest) o;
- return Objects.equals(principalId, that.principalId);
+ return Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(principalId);
+ return Objects.hash(name);
}
@Override
public String toString() {
- return new ToStringer(GetWorkspaceIdentityDetailRequest.class)
- .add("principalId", principalId)
- .toString();
+ return new ToStringer(GetWorkspaceIdentityDetailRequest.class).add("name", name).toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Group.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Group.java
index aa30a1eae..4c46d8787 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Group.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/Group.java
@@ -26,6 +26,20 @@ public class Group {
@JsonProperty("group_name")
private String groupName;
+ /**
+ * The resource name of the group. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/groups/{group_id} - Workspace-scoped: groups/{group_id}
+ */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * The resource name of the account that contains the group, `accounts/{account_id}`. Both the
+ * account-scoped and workspace-scoped APIs return it.
+ */
+ @JsonProperty("parent")
+ private String parent;
+
public Group setAccountId(String accountId) {
this.accountId = accountId;
return this;
@@ -62,6 +76,24 @@ public String getGroupName() {
return groupName;
}
+ public Group setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public Group setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -70,12 +102,14 @@ public boolean equals(Object o) {
return Objects.equals(accountId, that.accountId)
&& Objects.equals(externalId, that.externalId)
&& Objects.equals(groupId, that.groupId)
- && Objects.equals(groupName, that.groupName);
+ && Objects.equals(groupName, that.groupName)
+ && Objects.equals(name, that.name)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(accountId, externalId, groupId, groupName);
+ return Objects.hash(accountId, externalId, groupId, groupName, name, parent);
}
@Override
@@ -85,6 +119,8 @@ public String toString() {
.add("externalId", externalId)
.add("groupId", groupId)
.add("groupName", groupName)
+ .add("name", name)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersProxyRequest.java
index d84c55584..834315274 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersProxyRequest.java
@@ -10,9 +10,6 @@
@Generated
public class ListDirectGroupMembersProxyRequest {
- /** Required. Internal ID of the group in Databricks whose direct members are being listed. */
- @JsonIgnore private Long groupId;
-
/**
* The maximum number of members to return. The service may return fewer than this value. If not
* provided, defaults to 1000, which is also the maximum allowed. Requests for more than the
@@ -27,14 +24,10 @@ public class ListDirectGroupMembersProxyRequest {
@QueryParam("page_token")
private String pageToken;
- public ListDirectGroupMembersProxyRequest setGroupId(Long groupId) {
- this.groupId = groupId;
- return this;
- }
-
- public Long getGroupId() {
- return groupId;
- }
+ /**
+ * The parent resource name of the group whose direct members to list. Format: groups/{group_id}
+ */
+ @JsonIgnore private String parent;
public ListDirectGroupMembersProxyRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
@@ -54,27 +47,36 @@ public String getPageToken() {
return pageToken;
}
+ public ListDirectGroupMembersProxyRequest 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;
ListDirectGroupMembersProxyRequest that = (ListDirectGroupMembersProxyRequest) o;
- return Objects.equals(groupId, that.groupId)
- && Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ return Objects.equals(pageSize, that.pageSize)
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(groupId, pageSize, pageToken);
+ return Objects.hash(pageSize, pageToken, parent);
}
@Override
public String toString() {
return new ToStringer(ListDirectGroupMembersProxyRequest.class)
- .add("groupId", groupId)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersRequest.java
index 2af37ceef..e50474c1d 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListDirectGroupMembersRequest.java
@@ -10,9 +10,6 @@
@Generated
public class ListDirectGroupMembersRequest {
- /** Required. Internal ID of the group in Databricks whose direct members are being listed. */
- @JsonIgnore private Long groupId;
-
/**
* The maximum number of members to return. The service may return fewer than this value. If not
* provided, defaults to 1000, which is also the maximum allowed. Requests for more than the
@@ -30,14 +27,11 @@ public class ListDirectGroupMembersRequest {
@QueryParam("page_token")
private String pageToken;
- public ListDirectGroupMembersRequest setGroupId(Long groupId) {
- this.groupId = groupId;
- return this;
- }
-
- public Long getGroupId() {
- return groupId;
- }
+ /**
+ * The parent resource name of the group whose direct members to list. Format:
+ * accounts/{account_id}/groups/{group_id}
+ */
+ @JsonIgnore private String parent;
public ListDirectGroupMembersRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
@@ -57,27 +51,36 @@ public String getPageToken() {
return pageToken;
}
+ public ListDirectGroupMembersRequest 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;
ListDirectGroupMembersRequest that = (ListDirectGroupMembersRequest) o;
- return Objects.equals(groupId, that.groupId)
- && Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ return Objects.equals(pageSize, that.pageSize)
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(groupId, pageSize, pageToken);
+ return Objects.hash(pageSize, pageToken, parent);
}
@Override
public String toString() {
return new ToStringer(ListDirectGroupMembersRequest.class)
- .add("groupId", groupId)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsProxyRequest.java
index 548073ae4..90f4b9b26 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsProxyRequest.java
@@ -32,6 +32,14 @@ public class ListGroupsProxyRequest {
@QueryParam("page_token")
private String pageToken;
+ /**
+ * The resource name of the account to list groups in, `accounts/{account_id}`. Optional: defaults
+ * to the account of the calling workspace, and any other account is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
public ListGroupsProxyRequest setFilter(String filter) {
this.filter = filter;
return this;
@@ -59,6 +67,15 @@ public String getPageToken() {
return pageToken;
}
+ public ListGroupsProxyRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -66,12 +83,13 @@ public boolean equals(Object o) {
ListGroupsProxyRequest that = (ListGroupsProxyRequest) o;
return Objects.equals(filter, that.filter)
&& Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(filter, pageSize, pageToken);
+ return Objects.hash(filter, pageSize, pageToken, parent);
}
@Override
@@ -80,6 +98,7 @@ public String toString() {
.add("filter", filter)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsRequest.java
index ba9400064..51c923146 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListGroupsRequest.java
@@ -32,6 +32,9 @@ public class ListGroupsRequest {
@QueryParam("page_token")
private String pageToken;
+ /** The parent resource name of the account whose groups to list. Format: accounts/{account_id} */
+ @JsonIgnore private String parent;
+
public ListGroupsRequest setFilter(String filter) {
this.filter = filter;
return this;
@@ -59,6 +62,15 @@ public String getPageToken() {
return pageToken;
}
+ public ListGroupsRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -66,12 +78,13 @@ public boolean equals(Object o) {
ListGroupsRequest that = (ListGroupsRequest) o;
return Objects.equals(filter, that.filter)
&& Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(filter, pageSize, pageToken);
+ return Objects.hash(filter, pageSize, pageToken, parent);
}
@Override
@@ -80,6 +93,7 @@ public String toString() {
.add("filter", filter)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsProxyRequest.java
index 5d115bf99..192c874ca 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsProxyRequest.java
@@ -32,6 +32,14 @@ public class ListServicePrincipalsProxyRequest {
@QueryParam("page_token")
private String pageToken;
+ /**
+ * The resource name of the account to list service principals in, `accounts/{account_id}`.
+ * Optional: defaults to the account of the calling workspace, and any other account is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
public ListServicePrincipalsProxyRequest setFilter(String filter) {
this.filter = filter;
return this;
@@ -59,6 +67,15 @@ public String getPageToken() {
return pageToken;
}
+ public ListServicePrincipalsProxyRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -66,12 +83,13 @@ public boolean equals(Object o) {
ListServicePrincipalsProxyRequest that = (ListServicePrincipalsProxyRequest) o;
return Objects.equals(filter, that.filter)
&& Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(filter, pageSize, pageToken);
+ return Objects.hash(filter, pageSize, pageToken, parent);
}
@Override
@@ -80,6 +98,7 @@ public String toString() {
.add("filter", filter)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsRequest.java
index bea69db71..5b9974d1a 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListServicePrincipalsRequest.java
@@ -32,6 +32,12 @@ public class ListServicePrincipalsRequest {
@QueryParam("page_token")
private String pageToken;
+ /**
+ * The parent resource name of the account whose service principals to list. Format:
+ * accounts/{account_id}
+ */
+ @JsonIgnore private String parent;
+
public ListServicePrincipalsRequest setFilter(String filter) {
this.filter = filter;
return this;
@@ -59,6 +65,15 @@ public String getPageToken() {
return pageToken;
}
+ public ListServicePrincipalsRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -66,12 +81,13 @@ public boolean equals(Object o) {
ListServicePrincipalsRequest that = (ListServicePrincipalsRequest) o;
return Objects.equals(filter, that.filter)
&& Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(filter, pageSize, pageToken);
+ return Objects.hash(filter, pageSize, pageToken, parent);
}
@Override
@@ -80,6 +96,7 @@ public String toString() {
.add("filter", filter)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsProxyRequest.java
index 63f59f713..566753b41 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsProxyRequest.java
@@ -28,10 +28,10 @@ public class ListTransitiveParentGroupsProxyRequest {
private String pageToken;
/**
- * Required. Internal ID of the principal in Databricks whose transitive parent groups are being
- * listed.
+ * The parent resource name of the principal whose transitive parent groups to list. Format:
+ * principals/{principal_id}
*/
- @JsonIgnore private Long principalId;
+ @JsonIgnore private String parent;
public ListTransitiveParentGroupsProxyRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
@@ -51,13 +51,13 @@ public String getPageToken() {
return pageToken;
}
- public ListTransitiveParentGroupsProxyRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public ListTransitiveParentGroupsProxyRequest setParent(String parent) {
+ this.parent = parent;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getParent() {
+ return parent;
}
@Override
@@ -67,12 +67,12 @@ public boolean equals(Object o) {
ListTransitiveParentGroupsProxyRequest that = (ListTransitiveParentGroupsProxyRequest) o;
return Objects.equals(pageSize, that.pageSize)
&& Objects.equals(pageToken, that.pageToken)
- && Objects.equals(principalId, that.principalId);
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(pageSize, pageToken, principalId);
+ return Objects.hash(pageSize, pageToken, parent);
}
@Override
@@ -80,7 +80,7 @@ public String toString() {
return new ToStringer(ListTransitiveParentGroupsProxyRequest.class)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
- .add("principalId", principalId)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsRequest.java
index 1391fce38..e004c52ec 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListTransitiveParentGroupsRequest.java
@@ -28,10 +28,10 @@ public class ListTransitiveParentGroupsRequest {
private String pageToken;
/**
- * Required. Internal ID of the principal in Databricks whose transitive parent groups are being
- * listed.
+ * The parent resource name of the principal whose transitive parent groups to list. Format:
+ * accounts/{account_id}/principals/{principal_id}
*/
- @JsonIgnore private Long principalId;
+ @JsonIgnore private String parent;
public ListTransitiveParentGroupsRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
@@ -51,13 +51,13 @@ public String getPageToken() {
return pageToken;
}
- public ListTransitiveParentGroupsRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public ListTransitiveParentGroupsRequest setParent(String parent) {
+ this.parent = parent;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getParent() {
+ return parent;
}
@Override
@@ -67,12 +67,12 @@ public boolean equals(Object o) {
ListTransitiveParentGroupsRequest that = (ListTransitiveParentGroupsRequest) o;
return Objects.equals(pageSize, that.pageSize)
&& Objects.equals(pageToken, that.pageToken)
- && Objects.equals(principalId, that.principalId);
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(pageSize, pageToken, principalId);
+ return Objects.hash(pageSize, pageToken, parent);
}
@Override
@@ -80,7 +80,7 @@ public String toString() {
return new ToStringer(ListTransitiveParentGroupsRequest.class)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
- .add("principalId", principalId)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersProxyRequest.java
index e7c2489b7..35f0617ba 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersProxyRequest.java
@@ -32,6 +32,14 @@ public class ListUsersProxyRequest {
@QueryParam("page_token")
private String pageToken;
+ /**
+ * The resource name of the account to list users in, `accounts/{account_id}`. Optional: defaults
+ * to the account of the calling workspace, and any other account is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
public ListUsersProxyRequest setFilter(String filter) {
this.filter = filter;
return this;
@@ -59,6 +67,15 @@ public String getPageToken() {
return pageToken;
}
+ public ListUsersProxyRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -66,12 +83,13 @@ public boolean equals(Object o) {
ListUsersProxyRequest that = (ListUsersProxyRequest) o;
return Objects.equals(filter, that.filter)
&& Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(filter, pageSize, pageToken);
+ return Objects.hash(filter, pageSize, pageToken, parent);
}
@Override
@@ -80,6 +98,7 @@ public String toString() {
.add("filter", filter)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersRequest.java
index 3e4cc8314..6acc18b62 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListUsersRequest.java
@@ -32,6 +32,9 @@ public class ListUsersRequest {
@QueryParam("page_token")
private String pageToken;
+ /** The parent resource name of the account whose users to list. Format: accounts/{account_id} */
+ @JsonIgnore private String parent;
+
public ListUsersRequest setFilter(String filter) {
this.filter = filter;
return this;
@@ -59,6 +62,15 @@ public String getPageToken() {
return pageToken;
}
+ public ListUsersRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -66,12 +78,13 @@ public boolean equals(Object o) {
ListUsersRequest that = (ListUsersRequest) o;
return Objects.equals(filter, that.filter)
&& Objects.equals(pageSize, that.pageSize)
- && Objects.equals(pageToken, that.pageToken);
+ && Objects.equals(pageToken, that.pageToken)
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(filter, pageSize, pageToken);
+ return Objects.hash(filter, pageSize, pageToken, parent);
}
@Override
@@ -80,6 +93,7 @@ public String toString() {
.add("filter", filter)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsProxyRequest.java
index 837368142..ecc9a0092 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsProxyRequest.java
@@ -24,6 +24,15 @@ public class ListWorkspaceAssignmentsProxyRequest {
@QueryParam("page_token")
private String pageToken;
+ /**
+ * The resource name of the workspace to list assignments of,
+ * `accounts/{account_id}/workspaces/{workspace_id}`. Optional: defaults to the calling workspace,
+ * and any other workspace is rejected.
+ */
+ @JsonIgnore
+ @QueryParam("parent")
+ private String parent;
+
public ListWorkspaceAssignmentsProxyRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
@@ -42,17 +51,28 @@ public String getPageToken() {
return pageToken;
}
+ public ListWorkspaceAssignmentsProxyRequest 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;
ListWorkspaceAssignmentsProxyRequest that = (ListWorkspaceAssignmentsProxyRequest) o;
- return Objects.equals(pageSize, that.pageSize) && Objects.equals(pageToken, that.pageToken);
+ 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);
+ return Objects.hash(pageSize, pageToken, parent);
}
@Override
@@ -60,6 +80,7 @@ public String toString() {
return new ToStringer(ListWorkspaceAssignmentsProxyRequest.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/ListWorkspaceAssignmentsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsRequest.java
index 590924e2b..1c0d63ed9 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ListWorkspaceAssignmentsRequest.java
@@ -27,8 +27,11 @@ public class ListWorkspaceAssignmentsRequest {
@QueryParam("page_token")
private String pageToken;
- /** Required. The workspace ID for which the workspace assignments are being fetched. */
- @JsonIgnore private Long workspaceId;
+ /**
+ * The parent resource name of the workspace whose assignments to list. Format:
+ * accounts/{account_id}/workspaces/{workspace_id}
+ */
+ @JsonIgnore private String parent;
public ListWorkspaceAssignmentsRequest setPageSize(Long pageSize) {
this.pageSize = pageSize;
@@ -48,13 +51,13 @@ public String getPageToken() {
return pageToken;
}
- public ListWorkspaceAssignmentsRequest setWorkspaceId(Long workspaceId) {
- this.workspaceId = workspaceId;
+ public ListWorkspaceAssignmentsRequest setParent(String parent) {
+ this.parent = parent;
return this;
}
- public Long getWorkspaceId() {
- return workspaceId;
+ public String getParent() {
+ return parent;
}
@Override
@@ -64,12 +67,12 @@ public boolean equals(Object o) {
ListWorkspaceAssignmentsRequest that = (ListWorkspaceAssignmentsRequest) o;
return Objects.equals(pageSize, that.pageSize)
&& Objects.equals(pageToken, that.pageToken)
- && Objects.equals(workspaceId, that.workspaceId);
+ && Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
- return Objects.hash(pageSize, pageToken, workspaceId);
+ return Objects.hash(pageSize, pageToken, parent);
}
@Override
@@ -77,7 +80,7 @@ public String toString() {
return new ToStringer(ListWorkspaceAssignmentsRequest.class)
.add("pageSize", pageSize)
.add("pageToken", pageToken)
- .add("workspaceId", workspaceId)
+ .add("parent", parent)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ServicePrincipal.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ServicePrincipal.java
index 1568cba33..330cba9c4 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ServicePrincipal.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/ServicePrincipal.java
@@ -33,6 +33,21 @@ public class ServicePrincipal {
@JsonProperty("external_id")
private String externalId;
+ /**
+ * The resource name of the service principal. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/service-principals/{service_principal_id} -
+ * Workspace-scoped: service-principals/{service_principal_id}
+ */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * The resource name of the account that contains the service principal, `accounts/{account_id}`.
+ * Both the account-scoped and workspace-scoped APIs return it.
+ */
+ @JsonProperty("parent")
+ private String parent;
+
/** Internal service principal ID of the service principal in Databricks. */
@JsonProperty("service_principal_id")
private String servicePrincipalId;
@@ -82,6 +97,24 @@ public String getExternalId() {
return externalId;
}
+ public ServicePrincipal setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public ServicePrincipal setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public ServicePrincipal setServicePrincipalId(String servicePrincipalId) {
this.servicePrincipalId = servicePrincipalId;
return this;
@@ -101,13 +134,22 @@ public boolean equals(Object o) {
&& Objects.equals(applicationId, that.applicationId)
&& Objects.equals(displayName, that.displayName)
&& Objects.equals(externalId, that.externalId)
+ && Objects.equals(name, that.name)
+ && Objects.equals(parent, that.parent)
&& Objects.equals(servicePrincipalId, that.servicePrincipalId);
}
@Override
public int hashCode() {
return Objects.hash(
- accountId, accountSpStatus, applicationId, displayName, externalId, servicePrincipalId);
+ accountId,
+ accountSpStatus,
+ applicationId,
+ displayName,
+ externalId,
+ name,
+ parent,
+ servicePrincipalId);
}
@Override
@@ -118,6 +160,8 @@ public String toString() {
.add("applicationId", applicationId)
.add("displayName", displayName)
.add("externalId", externalId)
+ .add("name", name)
+ .add("parent", parent)
.add("servicePrincipalId", servicePrincipalId)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/TransitiveParentGroup.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/TransitiveParentGroup.java
index 4f11444d9..663cb29b6 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/TransitiveParentGroup.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/TransitiveParentGroup.java
@@ -22,6 +22,15 @@ public class TransitiveParentGroup {
@JsonProperty("group_id")
private String groupId;
+ /**
+ * The resource name of the transitive parent group. The format depends on the API that returned
+ * it: - Account-scoped:
+ * accounts/{account_id}/principals/{principal_id}/transitive-parent-groups/{group_id} -
+ * Workspace-scoped: principals/{principal_id}/transitive-parent-groups/{group_id}
+ */
+ @JsonProperty("name")
+ private String name;
+
public TransitiveParentGroup setAccountId(String accountId) {
this.accountId = accountId;
return this;
@@ -49,6 +58,15 @@ public String getGroupId() {
return groupId;
}
+ public TransitiveParentGroup setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -56,12 +74,13 @@ public boolean equals(Object o) {
TransitiveParentGroup that = (TransitiveParentGroup) o;
return Objects.equals(accountId, that.accountId)
&& Objects.equals(externalId, that.externalId)
- && Objects.equals(groupId, that.groupId);
+ && Objects.equals(groupId, that.groupId)
+ && Objects.equals(name, that.name);
}
@Override
public int hashCode() {
- return Objects.hash(accountId, externalId, groupId);
+ return Objects.hash(accountId, externalId, groupId, name);
}
@Override
@@ -70,6 +89,7 @@ public String toString() {
.add("accountId", accountId)
.add("externalId", externalId)
.add("groupId", groupId)
+ .add("name", name)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupProxyRequest.java
index 1b94dc7a5..cc0fb6c06 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupProxyRequest.java
@@ -15,8 +15,11 @@ public class UpdateGroupProxyRequest {
@JsonProperty("group")
private Group group;
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private String groupId;
+ /**
+ * The resource name of the group. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/groups/{group_id} - Workspace-scoped: groups/{group_id}
+ */
+ @JsonIgnore private String name;
/** Required. The list of fields to update. */
@JsonIgnore
@@ -32,13 +35,13 @@ public Group getGroup() {
return group;
}
- public UpdateGroupProxyRequest setGroupId(String groupId) {
- this.groupId = groupId;
+ public UpdateGroupProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getGroupId() {
- return groupId;
+ public String getName() {
+ return name;
}
public UpdateGroupProxyRequest setUpdateMask(String updateMask) {
@@ -56,20 +59,20 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
UpdateGroupProxyRequest that = (UpdateGroupProxyRequest) o;
return Objects.equals(group, that.group)
- && Objects.equals(groupId, that.groupId)
+ && Objects.equals(name, that.name)
&& Objects.equals(updateMask, that.updateMask);
}
@Override
public int hashCode() {
- return Objects.hash(group, groupId, updateMask);
+ return Objects.hash(group, name, updateMask);
}
@Override
public String toString() {
return new ToStringer(UpdateGroupProxyRequest.class)
.add("group", group)
- .add("groupId", groupId)
+ .add("name", name)
.add("updateMask", updateMask)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupRequest.java
index 782aadc28..14702dfec 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateGroupRequest.java
@@ -15,8 +15,11 @@ public class UpdateGroupRequest {
@JsonProperty("group")
private Group group;
- /** Required. Internal ID of the group in Databricks. */
- @JsonIgnore private String groupId;
+ /**
+ * The resource name of the group. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/groups/{group_id} - Workspace-scoped: groups/{group_id}
+ */
+ @JsonIgnore private String name;
/** Required. The list of fields to update. */
@JsonIgnore
@@ -32,13 +35,13 @@ public Group getGroup() {
return group;
}
- public UpdateGroupRequest setGroupId(String groupId) {
- this.groupId = groupId;
+ public UpdateGroupRequest setName(String name) {
+ this.name = name;
return this;
}
- public String getGroupId() {
- return groupId;
+ public String getName() {
+ return name;
}
public UpdateGroupRequest setUpdateMask(String updateMask) {
@@ -56,20 +59,20 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
UpdateGroupRequest that = (UpdateGroupRequest) o;
return Objects.equals(group, that.group)
- && Objects.equals(groupId, that.groupId)
+ && Objects.equals(name, that.name)
&& Objects.equals(updateMask, that.updateMask);
}
@Override
public int hashCode() {
- return Objects.hash(group, groupId, updateMask);
+ return Objects.hash(group, name, updateMask);
}
@Override
public String toString() {
return new ToStringer(UpdateGroupRequest.class)
.add("group", group)
- .add("groupId", groupId)
+ .add("name", name)
.add("updateMask", updateMask)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalProxyRequest.java
index 394b3933e..103f42868 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalProxyRequest.java
@@ -11,34 +11,38 @@
@Generated
public class UpdateServicePrincipalProxyRequest {
+ /**
+ * The resource name of the service principal. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/service-principals/{service_principal_id} -
+ * Workspace-scoped: service-principals/{service_principal_id}
+ */
+ @JsonIgnore private String name;
+
/** Required. Service principal to be updated in Databricks */
@JsonProperty("service_principal")
private ServicePrincipal servicePrincipal;
- /** Required. Internal ID of the service principal in Databricks. */
- @JsonIgnore private String servicePrincipalId;
-
/** Required. The list of fields to update. */
@JsonIgnore
@QueryParam("update_mask")
private String updateMask;
- public UpdateServicePrincipalProxyRequest setServicePrincipal(ServicePrincipal servicePrincipal) {
- this.servicePrincipal = servicePrincipal;
+ public UpdateServicePrincipalProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public ServicePrincipal getServicePrincipal() {
- return servicePrincipal;
+ public String getName() {
+ return name;
}
- public UpdateServicePrincipalProxyRequest setServicePrincipalId(String servicePrincipalId) {
- this.servicePrincipalId = servicePrincipalId;
+ public UpdateServicePrincipalProxyRequest setServicePrincipal(ServicePrincipal servicePrincipal) {
+ this.servicePrincipal = servicePrincipal;
return this;
}
- public String getServicePrincipalId() {
- return servicePrincipalId;
+ public ServicePrincipal getServicePrincipal() {
+ return servicePrincipal;
}
public UpdateServicePrincipalProxyRequest setUpdateMask(String updateMask) {
@@ -55,21 +59,21 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateServicePrincipalProxyRequest that = (UpdateServicePrincipalProxyRequest) o;
- return Objects.equals(servicePrincipal, that.servicePrincipal)
- && Objects.equals(servicePrincipalId, that.servicePrincipalId)
+ return Objects.equals(name, that.name)
+ && Objects.equals(servicePrincipal, that.servicePrincipal)
&& Objects.equals(updateMask, that.updateMask);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipal, servicePrincipalId, updateMask);
+ return Objects.hash(name, servicePrincipal, updateMask);
}
@Override
public String toString() {
return new ToStringer(UpdateServicePrincipalProxyRequest.class)
+ .add("name", name)
.add("servicePrincipal", servicePrincipal)
- .add("servicePrincipalId", servicePrincipalId)
.add("updateMask", updateMask)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalRequest.java
index 8d38ca62b..29907a022 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateServicePrincipalRequest.java
@@ -11,34 +11,38 @@
@Generated
public class UpdateServicePrincipalRequest {
+ /**
+ * The resource name of the service principal. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/service-principals/{service_principal_id} -
+ * Workspace-scoped: service-principals/{service_principal_id}
+ */
+ @JsonIgnore private String name;
+
/** Required. Service Principal to be updated in Databricks */
@JsonProperty("service_principal")
private ServicePrincipal servicePrincipal;
- /** Required. Internal ID of the service principal in Databricks. */
- @JsonIgnore private String servicePrincipalId;
-
/** Required. The list of fields to update. */
@JsonIgnore
@QueryParam("update_mask")
private String updateMask;
- public UpdateServicePrincipalRequest setServicePrincipal(ServicePrincipal servicePrincipal) {
- this.servicePrincipal = servicePrincipal;
+ public UpdateServicePrincipalRequest setName(String name) {
+ this.name = name;
return this;
}
- public ServicePrincipal getServicePrincipal() {
- return servicePrincipal;
+ public String getName() {
+ return name;
}
- public UpdateServicePrincipalRequest setServicePrincipalId(String servicePrincipalId) {
- this.servicePrincipalId = servicePrincipalId;
+ public UpdateServicePrincipalRequest setServicePrincipal(ServicePrincipal servicePrincipal) {
+ this.servicePrincipal = servicePrincipal;
return this;
}
- public String getServicePrincipalId() {
- return servicePrincipalId;
+ public ServicePrincipal getServicePrincipal() {
+ return servicePrincipal;
}
public UpdateServicePrincipalRequest setUpdateMask(String updateMask) {
@@ -55,21 +59,21 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateServicePrincipalRequest that = (UpdateServicePrincipalRequest) o;
- return Objects.equals(servicePrincipal, that.servicePrincipal)
- && Objects.equals(servicePrincipalId, that.servicePrincipalId)
+ return Objects.equals(name, that.name)
+ && Objects.equals(servicePrincipal, that.servicePrincipal)
&& Objects.equals(updateMask, that.updateMask);
}
@Override
public int hashCode() {
- return Objects.hash(servicePrincipal, servicePrincipalId, updateMask);
+ return Objects.hash(name, servicePrincipal, updateMask);
}
@Override
public String toString() {
return new ToStringer(UpdateServicePrincipalRequest.class)
+ .add("name", name)
.add("servicePrincipal", servicePrincipal)
- .add("servicePrincipalId", servicePrincipalId)
.add("updateMask", updateMask)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserProxyRequest.java
index cefe2c876..5d63405e2 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserProxyRequest.java
@@ -11,6 +11,12 @@
@Generated
public class UpdateUserProxyRequest {
+ /**
+ * The resource name of the user. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/users/{user_id} - Workspace-scoped: users/{user_id}
+ */
+ @JsonIgnore private String name;
+
/** Required. The list of fields to update. */
@JsonIgnore
@QueryParam("update_mask")
@@ -20,8 +26,14 @@ public class UpdateUserProxyRequest {
@JsonProperty("user")
private User user;
- /** Required. Internal ID of the user in Databricks. */
- @JsonIgnore private String userId;
+ public UpdateUserProxyRequest setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
public UpdateUserProxyRequest setUpdateMask(String updateMask) {
this.updateMask = updateMask;
@@ -41,36 +53,27 @@ public User getUser() {
return user;
}
- public UpdateUserProxyRequest setUserId(String userId) {
- this.userId = userId;
- return this;
- }
-
- public String getUserId() {
- return userId;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateUserProxyRequest that = (UpdateUserProxyRequest) o;
- return Objects.equals(updateMask, that.updateMask)
- && Objects.equals(user, that.user)
- && Objects.equals(userId, that.userId);
+ return Objects.equals(name, that.name)
+ && Objects.equals(updateMask, that.updateMask)
+ && Objects.equals(user, that.user);
}
@Override
public int hashCode() {
- return Objects.hash(updateMask, user, userId);
+ return Objects.hash(name, updateMask, user);
}
@Override
public String toString() {
return new ToStringer(UpdateUserProxyRequest.class)
+ .add("name", name)
.add("updateMask", updateMask)
.add("user", user)
- .add("userId", userId)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserRequest.java
index 4c836e322..b7e8f1340 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateUserRequest.java
@@ -11,6 +11,12 @@
@Generated
public class UpdateUserRequest {
+ /**
+ * The resource name of the user. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/users/{user_id} - Workspace-scoped: users/{user_id}
+ */
+ @JsonIgnore private String name;
+
/** Required. The list of fields to update. */
@JsonIgnore
@QueryParam("update_mask")
@@ -20,8 +26,14 @@ public class UpdateUserRequest {
@JsonProperty("user")
private User user;
- /** Required. Internal ID of the user in Databricks. */
- @JsonIgnore private String userId;
+ public UpdateUserRequest setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
public UpdateUserRequest setUpdateMask(String updateMask) {
this.updateMask = updateMask;
@@ -41,36 +53,27 @@ public User getUser() {
return user;
}
- public UpdateUserRequest setUserId(String userId) {
- this.userId = userId;
- return this;
- }
-
- public String getUserId() {
- return userId;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateUserRequest that = (UpdateUserRequest) o;
- return Objects.equals(updateMask, that.updateMask)
- && Objects.equals(user, that.user)
- && Objects.equals(userId, that.userId);
+ return Objects.equals(name, that.name)
+ && Objects.equals(updateMask, that.updateMask)
+ && Objects.equals(user, that.user);
}
@Override
public int hashCode() {
- return Objects.hash(updateMask, user, userId);
+ return Objects.hash(name, updateMask, user);
}
@Override
public String toString() {
return new ToStringer(UpdateUserRequest.class)
+ .add("name", name)
.add("updateMask", updateMask)
.add("user", user)
- .add("userId", userId)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentProxyRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentProxyRequest.java
index 0a567e274..7f14be640 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentProxyRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentProxyRequest.java
@@ -12,8 +12,13 @@
@Generated
public class UpdateWorkspaceAssignmentProxyRequest {
- /** Required. ID of the principal in Databricks. */
- @JsonIgnore private Long principalId;
+ /**
+ * The resource name of the workspace assignment. The format depends on the API that returned it:
+ * - Account-scoped:
+ * accounts/{account_id}/workspaces/{workspace_id}/workspace-assignments/{principal_id} -
+ * Workspace-scoped: workspace-assignments/{principal_id}
+ */
+ @JsonIgnore private String name;
/** Required. The list of fields to update. */
@JsonIgnore
@@ -24,13 +29,13 @@ public class UpdateWorkspaceAssignmentProxyRequest {
@JsonProperty("workspace_assignment")
private WorkspaceAssignment workspaceAssignment;
- public UpdateWorkspaceAssignmentProxyRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public UpdateWorkspaceAssignmentProxyRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
public UpdateWorkspaceAssignmentProxyRequest setUpdateMask(FieldMask updateMask) {
@@ -57,20 +62,20 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateWorkspaceAssignmentProxyRequest that = (UpdateWorkspaceAssignmentProxyRequest) o;
- return Objects.equals(principalId, that.principalId)
+ return Objects.equals(name, that.name)
&& Objects.equals(updateMask, that.updateMask)
&& Objects.equals(workspaceAssignment, that.workspaceAssignment);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, updateMask, workspaceAssignment);
+ return Objects.hash(name, updateMask, workspaceAssignment);
}
@Override
public String toString() {
return new ToStringer(UpdateWorkspaceAssignmentProxyRequest.class)
- .add("principalId", principalId)
+ .add("name", name)
.add("updateMask", updateMask)
.add("workspaceAssignment", workspaceAssignment)
.toString();
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentRequest.java
index 058be4896..626bada5d 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceAssignmentRequest.java
@@ -12,8 +12,13 @@
@Generated
public class UpdateWorkspaceAssignmentRequest {
- /** Required. ID of the principal in Databricks. */
- @JsonIgnore private Long principalId;
+ /**
+ * The resource name of the workspace assignment. The format depends on the API that returned it:
+ * - Account-scoped:
+ * accounts/{account_id}/workspaces/{workspace_id}/workspace-assignments/{principal_id} -
+ * Workspace-scoped: workspace-assignments/{principal_id}
+ */
+ @JsonIgnore private String name;
/** Required. The list of fields to update. */
@JsonIgnore
@@ -24,16 +29,13 @@ public class UpdateWorkspaceAssignmentRequest {
@JsonProperty("workspace_assignment")
private WorkspaceAssignment workspaceAssignment;
- /** Required. The workspace ID for which the workspace assignment is being updated. */
- @JsonIgnore private Long workspaceId;
-
- public UpdateWorkspaceAssignmentRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public UpdateWorkspaceAssignmentRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
public UpdateWorkspaceAssignmentRequest setUpdateMask(FieldMask updateMask) {
@@ -55,38 +57,27 @@ public WorkspaceAssignment getWorkspaceAssignment() {
return workspaceAssignment;
}
- public UpdateWorkspaceAssignmentRequest setWorkspaceId(Long workspaceId) {
- this.workspaceId = workspaceId;
- return this;
- }
-
- public Long getWorkspaceId() {
- return workspaceId;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateWorkspaceAssignmentRequest that = (UpdateWorkspaceAssignmentRequest) o;
- return Objects.equals(principalId, that.principalId)
+ return Objects.equals(name, that.name)
&& Objects.equals(updateMask, that.updateMask)
- && Objects.equals(workspaceAssignment, that.workspaceAssignment)
- && Objects.equals(workspaceId, that.workspaceId);
+ && Objects.equals(workspaceAssignment, that.workspaceAssignment);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, updateMask, workspaceAssignment, workspaceId);
+ return Objects.hash(name, updateMask, workspaceAssignment);
}
@Override
public String toString() {
return new ToStringer(UpdateWorkspaceAssignmentRequest.class)
- .add("principalId", principalId)
+ .add("name", name)
.add("updateMask", updateMask)
.add("workspaceAssignment", workspaceAssignment)
- .add("workspaceId", workspaceId)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceIdentityDetailRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceIdentityDetailRequest.java
index 2a27582ba..37e7a7400 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceIdentityDetailRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/UpdateWorkspaceIdentityDetailRequest.java
@@ -12,8 +12,11 @@
@Generated
public class UpdateWorkspaceIdentityDetailRequest {
- /** Required. ID of the principal in Databricks. */
- @JsonIgnore private Long principalId;
+ /**
+ * The resource name of the workspace identity detail. Format:
+ * principals/{principal_id}/workspace-identity-detail
+ */
+ @JsonIgnore private String name;
/** Required. The list of fields to update. */
@JsonIgnore
@@ -24,13 +27,13 @@ public class UpdateWorkspaceIdentityDetailRequest {
@JsonProperty("workspace_identity_detail")
private WorkspaceIdentityDetail workspaceIdentityDetail;
- public UpdateWorkspaceIdentityDetailRequest setPrincipalId(Long principalId) {
- this.principalId = principalId;
+ public UpdateWorkspaceIdentityDetailRequest setName(String name) {
+ this.name = name;
return this;
}
- public Long getPrincipalId() {
- return principalId;
+ public String getName() {
+ return name;
}
public UpdateWorkspaceIdentityDetailRequest setUpdateMask(FieldMask updateMask) {
@@ -57,20 +60,20 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateWorkspaceIdentityDetailRequest that = (UpdateWorkspaceIdentityDetailRequest) o;
- return Objects.equals(principalId, that.principalId)
+ return Objects.equals(name, that.name)
&& Objects.equals(updateMask, that.updateMask)
&& Objects.equals(workspaceIdentityDetail, that.workspaceIdentityDetail);
}
@Override
public int hashCode() {
- return Objects.hash(principalId, updateMask, workspaceIdentityDetail);
+ return Objects.hash(name, updateMask, workspaceIdentityDetail);
}
@Override
public String toString() {
return new ToStringer(UpdateWorkspaceIdentityDetailRequest.class)
- .add("principalId", principalId)
+ .add("name", name)
.add("updateMask", updateMask)
.add("workspaceIdentityDetail", workspaceIdentityDetail)
.toString();
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/User.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/User.java
index ff6b64207..308d2fb2b 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/User.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/User.java
@@ -26,6 +26,20 @@ public class User {
@JsonProperty("full_name")
private UserFullName fullName;
+ /**
+ * The resource name of the user. The format depends on the API that returned it: -
+ * Account-scoped: accounts/{account_id}/users/{user_id} - Workspace-scoped: users/{user_id}
+ */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * The resource name of the account that contains the user, `accounts/{account_id}`. Both the
+ * account-scoped and workspace-scoped APIs return it.
+ */
+ @JsonProperty("parent")
+ private String parent;
+
/** Internal userId of the user in Databricks. */
@JsonProperty("user_id")
private String userId;
@@ -70,6 +84,24 @@ public UserFullName getFullName() {
return fullName;
}
+ public User setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public User setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
public User setUserId(String userId) {
this.userId = userId;
return this;
@@ -97,13 +129,16 @@ public boolean equals(Object o) {
&& Objects.equals(accountUserStatus, that.accountUserStatus)
&& Objects.equals(externalId, that.externalId)
&& Objects.equals(fullName, that.fullName)
+ && Objects.equals(name, that.name)
+ && Objects.equals(parent, that.parent)
&& Objects.equals(userId, that.userId)
&& Objects.equals(username, that.username);
}
@Override
public int hashCode() {
- return Objects.hash(accountId, accountUserStatus, externalId, fullName, userId, username);
+ return Objects.hash(
+ accountId, accountUserStatus, externalId, fullName, name, parent, userId, username);
}
@Override
@@ -113,6 +148,8 @@ public String toString() {
.add("accountUserStatus", accountUserStatus)
.add("externalId", externalId)
.add("fullName", fullName)
+ .add("name", name)
+ .add("parent", parent)
.add("userId", userId)
.add("username", username)
.toString();
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAccessDetail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAccessDetail.java
index 98309d8d1..fc99ff1f7 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAccessDetail.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceAccessDetail.java
@@ -19,6 +19,15 @@ public class WorkspaceAccessDetail {
@JsonProperty("account_id")
private String accountId;
+ /**
+ * The resource name of the workspace access detail. The format depends on the API that returned
+ * it: - Account-scoped:
+ * accounts/{account_id}/workspaces/{workspace_id}/workspace-access-details/{principal_id} -
+ * Workspace-scoped: workspace-access-details/{principal_id}
+ */
+ @JsonProperty("name")
+ private String name;
+
/** The permissions granted to the principal in the workspace. */
@JsonProperty("permissions")
private Collection For locally managed service principals, is_agent must be set to true or false when updated.
+ * To change is_agent on a locally managed service principal, set it to true or false. Naming
+ * is_agent in the update mask without a value leaves it unchanged.
*
* 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
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Impl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Impl.java
index 43ab6672e..d82cf1908 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Impl.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIamV2Impl.java
@@ -19,7 +19,7 @@ public WorkspaceIamV2Impl(ApiClient apiClient) {
@Override
public DirectGroupMember createDirectGroupMemberProxy(
CreateDirectGroupMemberProxyRequest request) {
- String path = String.format("/api/2.0/identity/groups/%s/direct-members", request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s/direct-members", request.getParent());
try {
Request req = new Request("POST", path, apiClient.serialize(request.getDirectGroupMember()));
@@ -131,10 +131,7 @@ public WorkspaceAssignment createWorkspaceAssignmentProxy(
@Override
public void deleteDirectGroupMemberProxy(DeleteDirectGroupMemberProxyRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/groups/%s/direct-members/%s",
- request.getGroupId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -151,7 +148,7 @@ public void deleteDirectGroupMemberProxy(DeleteDirectGroupMemberProxyRequest req
@Override
public void deleteGroupProxy(DeleteGroupProxyRequest request) {
- String path = String.format("/api/2.0/identity/groups/%s", request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -168,8 +165,7 @@ public void deleteGroupProxy(DeleteGroupProxyRequest request) {
@Override
public void deleteServicePrincipalProxy(DeleteServicePrincipalProxyRequest request) {
- String path =
- String.format("/api/2.0/identity/service-principals/%s", request.getServicePrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -186,7 +182,7 @@ public void deleteServicePrincipalProxy(DeleteServicePrincipalProxyRequest reque
@Override
public void deleteUserProxy(DeleteUserProxyRequest request) {
- String path = String.format("/api/2.0/identity/users/%s", request.getUserId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -223,8 +219,7 @@ public void deleteWorkspaceAssignmentDetailProxy(
@Override
public void deleteWorkspaceAssignmentProxy(DeleteWorkspaceAssignmentProxyRequest request) {
- String path =
- String.format("/api/2.0/identity/workspace-assignments/%s", request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("DELETE", path);
@@ -241,10 +236,7 @@ public void deleteWorkspaceAssignmentProxy(DeleteWorkspaceAssignmentProxyRequest
@Override
public DirectGroupMember getDirectGroupMemberProxy(GetDirectGroupMemberProxyRequest request) {
- String path =
- String.format(
- "/api/2.0/identity/groups/%s/direct-members/%s",
- request.getGroupId(), request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -313,7 +305,7 @@ public ExternalUser getExternalUserProxy(GetExternalUserProxyRequest request) {
@Override
public Group getGroupProxy(GetGroupProxyRequest request) {
- String path = String.format("/api/2.0/identity/groups/%s", request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -330,8 +322,7 @@ public Group getGroupProxy(GetGroupProxyRequest request) {
@Override
public ServicePrincipal getServicePrincipalProxy(GetServicePrincipalProxyRequest request) {
- String path =
- String.format("/api/2.0/identity/service-principals/%s", request.getServicePrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -348,7 +339,7 @@ public ServicePrincipal getServicePrincipalProxy(GetServicePrincipalProxyRequest
@Override
public User getUserProxy(GetUserProxyRequest request) {
- String path = String.format("/api/2.0/identity/users/%s", request.getUserId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -366,8 +357,7 @@ public User getUserProxy(GetUserProxyRequest request) {
@Override
public WorkspaceAccessDetail getWorkspaceAccessDetailLocal(
GetWorkspaceAccessDetailLocalRequest request) {
- String path =
- String.format("/api/2.0/identity/workspace-access-details/%s", request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -405,8 +395,7 @@ public WorkspaceAssignmentDetail getWorkspaceAssignmentDetailProxy(
@Override
public WorkspaceAssignment getWorkspaceAssignmentProxy(
GetWorkspaceAssignmentProxyRequest request) {
- String path =
- String.format("/api/2.0/identity/workspace-assignments/%s", request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -424,8 +413,7 @@ public WorkspaceAssignment getWorkspaceAssignmentProxy(
@Override
public WorkspaceIdentityDetail getWorkspaceIdentityDetail(
GetWorkspaceIdentityDetailRequest request) {
- String path =
- String.format("/api/2.0/identity/workspace-identity-details/%s", request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("GET", path);
@@ -443,7 +431,7 @@ public WorkspaceIdentityDetail getWorkspaceIdentityDetail(
@Override
public ListDirectGroupMembersResponse listDirectGroupMembersProxy(
ListDirectGroupMembersProxyRequest request) {
- String path = String.format("/api/2.0/identity/groups/%s/direct-members", request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s/direct-members", request.getParent());
try {
Request req = new Request("GET", path);
@@ -497,8 +485,7 @@ public ListServicePrincipalsResponse listServicePrincipalsProxy(
public ListTransitiveParentGroupsResponse listTransitiveParentGroupsProxy(
ListTransitiveParentGroupsProxyRequest request) {
String path =
- String.format(
- "/api/2.0/identity/principals/%s/transitive-parent-groups", request.getPrincipalId());
+ String.format("/api/2.0/identity/%s/transitive-parent-groups", request.getParent());
try {
Request req = new Request("GET", path);
@@ -623,7 +610,7 @@ public ResolveUserResponse resolveUserProxy(ResolveUserProxyRequest request) {
@Override
public Group updateGroupProxy(UpdateGroupProxyRequest request) {
- String path = String.format("/api/2.0/identity/groups/%s", request.getGroupId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("PATCH", path, apiClient.serialize(request.getGroup()));
@@ -641,8 +628,7 @@ public Group updateGroupProxy(UpdateGroupProxyRequest request) {
@Override
public ServicePrincipal updateServicePrincipalProxy(UpdateServicePrincipalProxyRequest request) {
- String path =
- String.format("/api/2.0/identity/service-principals/%s", request.getServicePrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("PATCH", path, apiClient.serialize(request.getServicePrincipal()));
@@ -660,7 +646,7 @@ public ServicePrincipal updateServicePrincipalProxy(UpdateServicePrincipalProxyR
@Override
public User updateUserProxy(UpdateUserProxyRequest request) {
- String path = String.format("/api/2.0/identity/users/%s", request.getUserId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req = new Request("PATCH", path, apiClient.serialize(request.getUser()));
@@ -701,8 +687,7 @@ public WorkspaceAssignmentDetail updateWorkspaceAssignmentDetailProxy(
@Override
public WorkspaceAssignment updateWorkspaceAssignmentProxy(
UpdateWorkspaceAssignmentProxyRequest request) {
- String path =
- String.format("/api/2.0/identity/workspace-assignments/%s", request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req =
new Request("PATCH", path, apiClient.serialize(request.getWorkspaceAssignment()));
@@ -722,8 +707,7 @@ public WorkspaceAssignment updateWorkspaceAssignmentProxy(
@Override
public WorkspaceIdentityDetail updateWorkspaceIdentityDetail(
UpdateWorkspaceIdentityDetailRequest request) {
- String path =
- String.format("/api/2.0/identity/workspace-identity-details/%s", request.getPrincipalId());
+ String path = String.format("/api/2.0/identity/%s", request.getName());
try {
Request req =
new Request("PATCH", path, apiClient.serialize(request.getWorkspaceIdentityDetail()));
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 26af04e2e..603542a5b 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
@@ -260,7 +260,8 @@ ResolveServicePrincipalResponse resolveServicePrincipalProxy(
* workspace. Only the fields named in the update mask are modified. Returns the updated
* ServicePrincipal resource.
*
- * For locally managed service principals, is_agent must be set to true or false when updated.
+ * To change is_agent on a locally managed service principal, set it to true or false. Naming
+ * is_agent in the update mask without a value leaves it unchanged.
*
* 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
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIdentityDetail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIdentityDetail.java
index 744193111..d0b29caa8 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIdentityDetail.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iamv2/WorkspaceIdentityDetail.java
@@ -14,6 +14,13 @@ public class WorkspaceIdentityDetail {
@JsonProperty("assignment_type")
private WorkspaceIdentityDetailAssignmentType assignmentType;
+ /**
+ * The resource name of the workspace identity detail. Format:
+ * principals/{principal_id}/workspace-identity-detail
+ */
+ @JsonProperty("name")
+ private String name;
+
/** The internal ID of the principal (user/sp/group) in Databricks. */
@JsonProperty("principal_id")
private Long principalId;
@@ -36,6 +43,15 @@ public WorkspaceIdentityDetailAssignmentType getAssignmentType() {
return assignmentType;
}
+ public WorkspaceIdentityDetail setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
public WorkspaceIdentityDetail setPrincipalId(Long principalId) {
this.principalId = principalId;
return this;
@@ -69,6 +85,7 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
WorkspaceIdentityDetail that = (WorkspaceIdentityDetail) o;
return Objects.equals(assignmentType, that.assignmentType)
+ && Objects.equals(name, that.name)
&& Objects.equals(principalId, that.principalId)
&& Objects.equals(principalType, that.principalType)
&& Objects.equals(workspaceIdentityStatus, that.workspaceIdentityStatus);
@@ -76,13 +93,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(assignmentType, principalId, principalType, workspaceIdentityStatus);
+ return Objects.hash(assignmentType, name, principalId, principalType, workspaceIdentityStatus);
}
@Override
public String toString() {
return new ToStringer(WorkspaceIdentityDetail.class)
.add("assignmentType", assignmentType)
+ .add("name", name)
.add("principalId", principalId)
.add("principalType", principalType)
.add("workspaceIdentityStatus", workspaceIdentityStatus)
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CompletedJob.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CompletedJob.java
new file mode 100644
index 000000000..1427e7828
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CompletedJob.java
@@ -0,0 +1,106 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.jobs;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.protobuf.Timestamp;
+import java.util.Objects;
+
+/** A single upstream completion that contributed to triggering the run, captured at trigger time */
+@Generated
+public class CompletedJob {
+ /** The completion time of the upstream run */
+ @JsonProperty("completion_time")
+ private Timestamp completionTime;
+
+ /** The ID of the upstream job */
+ @JsonProperty("job_id")
+ private String jobId;
+
+ /** The ID of the upstream run whose completion contributed to the trigger */
+ @JsonProperty("run_id")
+ private String runId;
+
+ /** The termination code of the upstream run */
+ @JsonProperty("termination_code")
+ private TerminationCodeCode terminationCode;
+
+ /** The ID of the workspace containing the upstream job */
+ @JsonProperty("workspace_id")
+ private String workspaceId;
+
+ public CompletedJob setCompletionTime(Timestamp completionTime) {
+ this.completionTime = completionTime;
+ return this;
+ }
+
+ public Timestamp getCompletionTime() {
+ return completionTime;
+ }
+
+ public CompletedJob setJobId(String jobId) {
+ this.jobId = jobId;
+ return this;
+ }
+
+ public String getJobId() {
+ return jobId;
+ }
+
+ public CompletedJob setRunId(String runId) {
+ this.runId = runId;
+ return this;
+ }
+
+ public String getRunId() {
+ return runId;
+ }
+
+ public CompletedJob setTerminationCode(TerminationCodeCode terminationCode) {
+ this.terminationCode = terminationCode;
+ return this;
+ }
+
+ public TerminationCodeCode getTerminationCode() {
+ return terminationCode;
+ }
+
+ public CompletedJob setWorkspaceId(String workspaceId) {
+ this.workspaceId = workspaceId;
+ return this;
+ }
+
+ public String getWorkspaceId() {
+ return workspaceId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ CompletedJob that = (CompletedJob) o;
+ return Objects.equals(completionTime, that.completionTime)
+ && Objects.equals(jobId, that.jobId)
+ && Objects.equals(runId, that.runId)
+ && Objects.equals(terminationCode, that.terminationCode)
+ && Objects.equals(workspaceId, that.workspaceId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(completionTime, jobId, runId, terminationCode, workspaceId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(CompletedJob.class)
+ .add("completionTime", completionTime)
+ .add("jobId", jobId)
+ .add("runId", runId)
+ .add("terminationCode", terminationCode)
+ .add("workspaceId", workspaceId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java
index a11331885..6378777fb 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java
@@ -82,10 +82,12 @@ public class CreateJob {
* serverless compute or a compute resource that uses Environments mode.
*
* For notebook tasks that use serverless compute or a compute resource that uses Environments
- * mode, if the environment_key is not specified, the notebook environment will be used if
- * present. If a jobs environment is specified, it will override the notebook environment. For
- * other tasks that use serverless compute or a compute resource that uses Environments mode, the
- * task environment is required to be specified using environment_key in the task settings.
+ * mode, if the `environment_key` is not specified, the notebook environment will be used if
+ * present. If a jobs environment is specified, it will override the notebook environment.
+ *
+ * For other tasks that use serverless compute or a compute resource that uses Environments
+ * mode, the task environment is required to be specified using `environment_key` in the task
+ * settings.
*/
@JsonProperty("environments")
private Collection For notebook tasks that use serverless compute or a compute resource that uses Environments
- * mode, if the environment_key is not specified, the notebook environment will be used if
- * present. If a jobs environment is specified, it will override the notebook environment. For
- * other tasks that use serverless compute or a compute resource that uses Environments mode, the
- * task environment is required to be specified using environment_key in the task settings.
+ * mode, if the `environment_key` is not specified, the notebook environment will be used if
+ * present. If a jobs environment is specified, it will override the notebook environment.
+ *
+ * For other tasks that use serverless compute or a compute resource that uses Environments
+ * mode, the task environment is required to be specified using `environment_key` in the task
+ * settings.
*/
@JsonProperty("environments")
private Collection When the role already exists, the provided `role` spec fully replaces the existing one:
- * `membership_roles` is overwritten, not merged. Leaving `membership_roles` empty clears all of
- * the role's existing memberships, including `DATABRICKS_SUPERUSER`. Always send the complete
- * desired list of memberships when using this field.
+ * When the role already exists, only mutable fields are updated. Attributes omitted from the
+ * request retain their current values. Set an attribute explicitly to false to disable it.
+ * `identity_type`, `auth_method`, and `postgres_role` retain their existing values; supplied
+ * values for these fields are ignored. `membership_roles` is overwritten, not merged. Leaving
+ * `membership_roles` empty clears all of the role's existing memberships, including
+ * `DATABRICKS_SUPERUSER`. Always send the complete desired list of memberships when using this
+ * field.
*/
@JsonIgnore
@QueryParam("replace_existing")
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 8101b73e2..370990648 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
@@ -559,7 +559,14 @@ public UpdateProjectOperation updateProject(UpdateProjectRequest request) {
return new UpdateProjectOperation(impl, operation);
}
- /** Update a role for a branch. */
+ /**
+ * Updates the mutable fields of a Postgres role for a branch.
+ *
+ * The fields `spec.identity_type`, `spec.auth_method`, and `spec.postgres_role` are fixed when
+ * the role is created. UpdateRole ignores values supplied for these fields in the request body
+ * and retains their existing values. Explicitly naming one of these fields in `update_mask`
+ * returns an INVALID_PARAMETER_VALUE error.
+ */
public UpdateRoleOperation updateRole(UpdateRoleRequest request) {
Operation operation = impl.updateRole(request);
return new UpdateRoleOperation(impl, operation);
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 be42f1364..8452ca9a5 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
@@ -220,7 +220,14 @@ RevealRolePasswordResponse revealRolePassword(
/** Updates the specified database project. */
Operation updateProject(UpdateProjectRequest updateProjectRequest);
- /** Update a role for a branch. */
+ /**
+ * Updates the mutable fields of a Postgres role for a branch.
+ *
+ * The fields `spec.identity_type`, `spec.auth_method`, and `spec.postgres_role` are fixed when
+ * the role is created. UpdateRole ignores values supplied for these fields in the request body
+ * and retains their existing values. Explicitly naming one of these fields in `update_mask`
+ * returns an INVALID_PARAMETER_VALUE error.
+ */
Operation updateRole(UpdateRoleRequest updateRoleRequest);
/**
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java
index 983155859..574afa7d1 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java
@@ -32,6 +32,10 @@ public class RoleRoleSpec {
*
* NOTE: for the Databricks identity type GROUP, LAKEBASE_OAUTH_V1 is the default auth method
* (group can login as well).
+ *
+ * This field is set when the role is created and cannot be changed by UpdateRole. If provided
+ * in an UpdateRole request body, its value is ignored and the existing value is retained. Do not
+ * include this field as an explicit path in update_mask.
*/
@JsonProperty("auth_method")
private RoleAuthMethod authMethod;
@@ -40,6 +44,10 @@ public class RoleRoleSpec {
* The type of role. When specifying a managed-identity, the chosen role_id must be a valid:
*
* * application ID for SERVICE_PRINCIPAL * user email for USER * group name for GROUP
+ *
+ * This field is set when the role is created and cannot be changed by UpdateRole. If provided
+ * in an UpdateRole request body, its value is ignored and the existing value is retained. Do not
+ * include this field as an explicit path in update_mask.
*/
@JsonProperty("identity_type")
private RoleIdentityType identityType;
@@ -61,6 +69,10 @@ public class RoleRoleSpec {
*
* 1. user email for IdentityType.USER 2. app ID for IdentityType.SERVICE_PRINCIPAL 2. group
* name for IdentityType.GROUP
+ *
+ * This field is set when the role is created and cannot be changed by UpdateRole. If provided
+ * in an UpdateRole request body, its value is ignored and the existing value is retained. Do not
+ * include this field as an explicit path in update_mask.
*/
@JsonProperty("postgres_role")
private String postgresRole;
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 12ba817f1..864f6f3d5 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,7 +27,20 @@ public class UpdateRoleRequest {
@JsonProperty("role")
private Role role;
- /** The list of fields to update. */
+ /**
+ * The list of fields to update. Supported fields are `spec.membership_roles`,
+ * `spec.attributes.createdb`, `spec.attributes.createrole`, and `spec.attributes.bypassrls`.
+ *
+ * `spec.identity_type`, `spec.auth_method`, and `spec.postgres_role` cannot be changed. Values
+ * supplied for these fields in the request body are ignored. Including one of these fields as an
+ * explicit path in update_mask returns an INVALID_PARAMETER_VALUE error. When `spec` is the only
+ * path in the mask, only the supplied mutable attributes are updated. `*` by itself, or `spec`
+ * combined with other supported paths, selects all supported mutable fields. For these masks, all
+ * three attributes (`createdb`, `createrole`, and `bypassrls`) must be supplied; omitting any
+ * returns an INVALID_PARAMETER_VALUE error. Each of these mask forms replaces `membership_roles`.
+ * Omitting it or supplying an empty list clears all memberships, including
+ * `DATABRICKS_SUPERUSER`.
+ */
@JsonIgnore
@QueryParam("update_mask")
private FieldMask updateMask;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/DownloadFileRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/DownloadFileRequest.java
new file mode 100644
index 000000000..ebe23eb36
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/DownloadFileRequest.java
@@ -0,0 +1,169 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.sandbox;
+
+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 DownloadFileRequest {
+ /** A single byte range, such as bytes=0-1023 or bytes=-1024. Equivalent to the Range header. */
+ @JsonIgnore
+ @QueryParam("byte_range")
+ private String byteRange;
+
+ /**
+ * Entity tags or *. A mismatch returns 412 Precondition Failed. Equivalent to the If-Match
+ * header.
+ */
+ @JsonIgnore
+ @QueryParam("if_match")
+ private String ifMatch;
+
+ /**
+ * An HTTP-date. Returns 304 if the file has not changed since this time. Ignored when
+ * If-None-Match is present. Equivalent to the If-Modified-Since header.
+ */
+ @JsonIgnore
+ @QueryParam("if_modified_since")
+ private String ifModifiedSince;
+
+ /** Entity tags or *. A match returns 304 Not Modified. Equivalent to the If-None-Match header. */
+ @JsonIgnore
+ @QueryParam("if_none_match")
+ private String ifNoneMatch;
+
+ /**
+ * A strong entity tag. A mismatch, weak entity tag, or HTTP-date causes a full download.
+ * Equivalent to the If-Range header.
+ */
+ @JsonIgnore
+ @QueryParam("if_range")
+ private String ifRange;
+
+ /**
+ * An HTTP-date. Returns 412 if the file has changed since this time. Ignored when If-Match is
+ * present. Equivalent to the If-Unmodified-Since header.
+ */
+ @JsonIgnore
+ @QueryParam("if_unmodified_since")
+ private String ifUnmodifiedSince;
+
+ /** The sandbox resource name, in the form sandboxes/{sandbox_id}. */
+ @JsonIgnore private String parent;
+
+ /** The absolute UTF-8 path of the file inside the sandbox. */
+ @JsonIgnore
+ @QueryParam("path")
+ private String path;
+
+ public DownloadFileRequest setByteRange(String byteRange) {
+ this.byteRange = byteRange;
+ return this;
+ }
+
+ public String getByteRange() {
+ return byteRange;
+ }
+
+ public DownloadFileRequest setIfMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ public String getIfMatch() {
+ return ifMatch;
+ }
+
+ public DownloadFileRequest setIfModifiedSince(String ifModifiedSince) {
+ this.ifModifiedSince = ifModifiedSince;
+ return this;
+ }
+
+ public String getIfModifiedSince() {
+ return ifModifiedSince;
+ }
+
+ public DownloadFileRequest setIfNoneMatch(String ifNoneMatch) {
+ this.ifNoneMatch = ifNoneMatch;
+ return this;
+ }
+
+ public String getIfNoneMatch() {
+ return ifNoneMatch;
+ }
+
+ public DownloadFileRequest setIfRange(String ifRange) {
+ this.ifRange = ifRange;
+ return this;
+ }
+
+ public String getIfRange() {
+ return ifRange;
+ }
+
+ public DownloadFileRequest setIfUnmodifiedSince(String ifUnmodifiedSince) {
+ this.ifUnmodifiedSince = ifUnmodifiedSince;
+ return this;
+ }
+
+ public String getIfUnmodifiedSince() {
+ return ifUnmodifiedSince;
+ }
+
+ public DownloadFileRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
+ public DownloadFileRequest setPath(String path) {
+ this.path = path;
+ return this;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ DownloadFileRequest that = (DownloadFileRequest) o;
+ return Objects.equals(byteRange, that.byteRange)
+ && Objects.equals(ifMatch, that.ifMatch)
+ && Objects.equals(ifModifiedSince, that.ifModifiedSince)
+ && Objects.equals(ifNoneMatch, that.ifNoneMatch)
+ && Objects.equals(ifRange, that.ifRange)
+ && Objects.equals(ifUnmodifiedSince, that.ifUnmodifiedSince)
+ && Objects.equals(parent, that.parent)
+ && Objects.equals(path, that.path);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ byteRange, ifMatch, ifModifiedSince, ifNoneMatch, ifRange, ifUnmodifiedSince, parent, path);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(DownloadFileRequest.class)
+ .add("byteRange", byteRange)
+ .add("ifMatch", ifMatch)
+ .add("ifModifiedSince", ifModifiedSince)
+ .add("ifNoneMatch", ifNoneMatch)
+ .add("ifRange", ifRange)
+ .add("ifUnmodifiedSince", ifUnmodifiedSince)
+ .add("parent", parent)
+ .add("path", path)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/DownloadFileResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/DownloadFileResponse.java
new file mode 100644
index 000000000..c7f523596
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/DownloadFileResponse.java
@@ -0,0 +1,142 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.sandbox;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.Header;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import java.io.InputStream;
+import java.util.Objects;
+
+@Generated
+public class DownloadFileResponse {
+ /** The supported range unit: bytes. */
+ @JsonIgnore
+ @Header("Accept-Ranges")
+ private String acceptRanges;
+
+ /** The length of the response body in bytes. */
+ @JsonIgnore
+ @Header("Content-Length")
+ private Long contentLength;
+
+ /** The returned byte range and full file length, for a partial response. */
+ @JsonIgnore
+ @Header("Content-Range")
+ private String contentRange;
+
+ /** The media type of the response body: application/octet-stream. */
+ @JsonIgnore
+ @Header("Content-Type")
+ private String contentType;
+
+ /** */
+ @JsonIgnore private InputStream contents;
+
+ /** The entity tag used for conditional requests. */
+ @JsonIgnore
+ @Header("etag")
+ private String etag;
+
+ /** The modification time as an HTTP-date, when representable. */
+ @JsonIgnore
+ @Header("Last-Modified")
+ private String lastModified;
+
+ public DownloadFileResponse setAcceptRanges(String acceptRanges) {
+ this.acceptRanges = acceptRanges;
+ return this;
+ }
+
+ public String getAcceptRanges() {
+ return acceptRanges;
+ }
+
+ public DownloadFileResponse setContentLength(Long contentLength) {
+ this.contentLength = contentLength;
+ return this;
+ }
+
+ public Long getContentLength() {
+ return contentLength;
+ }
+
+ public DownloadFileResponse setContentRange(String contentRange) {
+ this.contentRange = contentRange;
+ return this;
+ }
+
+ public String getContentRange() {
+ return contentRange;
+ }
+
+ public DownloadFileResponse setContentType(String contentType) {
+ this.contentType = contentType;
+ return this;
+ }
+
+ public String getContentType() {
+ return contentType;
+ }
+
+ public DownloadFileResponse setContents(InputStream contents) {
+ this.contents = contents;
+ return this;
+ }
+
+ public InputStream getContents() {
+ return contents;
+ }
+
+ public DownloadFileResponse setEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ public String getEtag() {
+ return etag;
+ }
+
+ public DownloadFileResponse setLastModified(String lastModified) {
+ this.lastModified = lastModified;
+ return this;
+ }
+
+ public String getLastModified() {
+ return lastModified;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ DownloadFileResponse that = (DownloadFileResponse) o;
+ return Objects.equals(acceptRanges, that.acceptRanges)
+ && Objects.equals(contentLength, that.contentLength)
+ && Objects.equals(contentRange, that.contentRange)
+ && Objects.equals(contentType, that.contentType)
+ && Objects.equals(contents, that.contents)
+ && Objects.equals(etag, that.etag)
+ && Objects.equals(lastModified, that.lastModified);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ acceptRanges, contentLength, contentRange, contentType, contents, etag, lastModified);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(DownloadFileResponse.class)
+ .add("acceptRanges", acceptRanges)
+ .add("contentLength", contentLength)
+ .add("contentRange", contentRange)
+ .add("contentType", contentType)
+ .add("contents", contents)
+ .add("etag", etag)
+ .add("lastModified", lastModified)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxAPI.java
index 9353fa6e9..f5b989aea 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxAPI.java
@@ -54,6 +54,33 @@ public void deleteSandbox(DeleteSandboxRequest request) {
impl.deleteSandbox(request);
}
+ public DownloadFileResponse downloadFile(String parent, String path) {
+ return downloadFile(new DownloadFileRequest().setParent(parent).setPath(path));
+ }
+
+ /**
+ * Downloads a regular file from a sandbox as an application/octet-stream body. The sandbox starts
+ * automatically if it is stopped. Filesystem access uses the sandbox user's permissions and
+ * follows symbolic links.
+ *
+ * A full download returns 200 OK. A satisfiable single byte range returns 206 Partial Content.
+ * Multiple byte ranges are unsupported and return 400. Invalid ranges are ignored; an
+ * unsatisfiable range returns 416 with Content-Range describing the file length. Range is ignored
+ * for empty files.
+ *
+ * Conditional requests can return 304 Not Modified or 412 Precondition Failed. If-Range
+ * selects a partial response only when its strong entity tag matches; otherwise, the entire file
+ * is returned. HTTP-date validators in If-Range cause a full download. Reads are not snapshots:
+ * concurrent in-place writes can affect the returned bytes. HEAD is unsupported.
+ *
+ * Range and conditional options may be supplied as query parameters or HTTP headers. A
+ * parameter and one header may both be supplied when their values match exactly. Conflicting
+ * values or repeated parameters return 400.
+ */
+ public DownloadFileResponse downloadFile(DownloadFileRequest request) {
+ return impl.downloadFile(request);
+ }
+
/**
* Runs a command in the sandbox and blocks until it exits, returning the captured stdout, stderr
* and exit code in a single response.
@@ -154,6 +181,23 @@ public Sandbox updateSandbox(UpdateSandboxRequest request) {
return impl.updateSandbox(request);
}
+ /**
+ * Uploads an application/octet-stream body to a sandbox. The sandbox starts automatically if it
+ * is stopped. Filesystem access uses the sandbox user's permissions and follows symbolic links.
+ *
+ * Creates the file or replaces its entire contents, creating parent directories if missing.
+ * The completed upload becomes visible atomically. A failure before commit leaves an existing
+ * destination unchanged; a lost response after commit does not undo the upload. Completion does
+ * not guarantee crash durability.
+ *
+ * Returns 201 Created for a new file or 204 No Content for a replacement. Partial and
+ * conditional uploads are unsupported: Content-Range, If-Match, If-None-Match, and
+ * If-Unmodified-Since return 400.
+ */
+ public void uploadFile(UploadFileRequest request) {
+ impl.uploadFile(request);
+ }
+
public SandboxService impl() {
return impl;
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxImpl.java
index 050308919..c856e267a 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxImpl.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxImpl.java
@@ -87,6 +87,23 @@ public void deleteSandbox(DeleteSandboxRequest request) {
}
}
+ @Override
+ public DownloadFileResponse downloadFile(DownloadFileRequest request) {
+ String path = String.format("/api/2.0/sandbox-files/%s/content", request.getParent());
+ try {
+ Request req = new Request("GET", path);
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Accept", "application/octet-stream");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ return apiClient.execute(req, DownloadFileResponse.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
+
@Override
public ExecuteCommandSyncResponse executeCommandSync(ExecuteCommandSyncRequest request) {
String path = String.format("/api/2.0/sandbox-exec/%s/exec-sync", request.getName());
@@ -261,4 +278,21 @@ public Sandbox updateSandbox(UpdateSandboxRequest request) {
throw new DatabricksException("IO error: " + e.getMessage(), e);
}
}
+
+ @Override
+ public void uploadFile(UploadFileRequest request) {
+ String path = String.format("/api/2.0/sandbox-files/%s/content", request.getParent());
+ try {
+ Request req = new Request("PUT", path, request.getContents());
+
+ ApiClient.setQuery(req, request);
+ req.withHeader("Content-Type", "application/octet-stream");
+ if (apiClient.workspaceId() != null) {
+ req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId());
+ }
+ apiClient.execute(req, Void.class);
+ } catch (IOException e) {
+ throw new DatabricksException("IO error: " + e.getMessage(), e);
+ }
+ }
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxService.java
index ec103b8ad..3cc4d62e3 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/SandboxService.java
@@ -28,6 +28,27 @@ public interface SandboxService {
/** Deletes a Sandbox. */
void deleteSandbox(DeleteSandboxRequest deleteSandboxRequest);
+ /**
+ * Downloads a regular file from a sandbox as an application/octet-stream body. The sandbox starts
+ * automatically if it is stopped. Filesystem access uses the sandbox user's permissions and
+ * follows symbolic links.
+ *
+ * A full download returns 200 OK. A satisfiable single byte range returns 206 Partial Content.
+ * Multiple byte ranges are unsupported and return 400. Invalid ranges are ignored; an
+ * unsatisfiable range returns 416 with Content-Range describing the file length. Range is ignored
+ * for empty files.
+ *
+ * Conditional requests can return 304 Not Modified or 412 Precondition Failed. If-Range
+ * selects a partial response only when its strong entity tag matches; otherwise, the entire file
+ * is returned. HTTP-date validators in If-Range cause a full download. Reads are not snapshots:
+ * concurrent in-place writes can affect the returned bytes. HEAD is unsupported.
+ *
+ * Range and conditional options may be supplied as query parameters or HTTP headers. A
+ * parameter and one header may both be supplied when their values match exactly. Conflicting
+ * values or repeated parameters return 400.
+ */
+ DownloadFileResponse downloadFile(DownloadFileRequest downloadFileRequest);
+
/**
* Runs a command in the sandbox and blocks until it exits, returning the captured stdout, stderr
* and exit code in a single response.
@@ -72,4 +93,19 @@ ListDirectoryContentsResponse listDirectoryContents(
* or unknown paths; NOT_FOUND if the sandbox does not exist.
*/
Sandbox updateSandbox(UpdateSandboxRequest updateSandboxRequest);
+
+ /**
+ * Uploads an application/octet-stream body to a sandbox. The sandbox starts automatically if it
+ * is stopped. Filesystem access uses the sandbox user's permissions and follows symbolic links.
+ *
+ * Creates the file or replaces its entire contents, creating parent directories if missing.
+ * The completed upload becomes visible atomically. A failure before commit leaves an existing
+ * destination unchanged; a lost response after commit does not undo the upload. Completion does
+ * not guarantee crash durability.
+ *
+ * Returns 201 Created for a new file or 204 No Content for a replacement. Partial and
+ * conditional uploads are unsupported: Content-Range, If-Match, If-None-Match, and
+ * If-Unmodified-Since return 400.
+ */
+ void uploadFile(UploadFileRequest uploadFileRequest);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/UploadFileRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/UploadFileRequest.java
new file mode 100644
index 000000000..85faac215
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sandbox/UploadFileRequest.java
@@ -0,0 +1,75 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.sandbox;
+
+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.io.InputStream;
+import java.util.Objects;
+
+@Generated
+public class UploadFileRequest {
+ /** The complete file contents. An empty body creates an empty file. */
+ @JsonIgnore private InputStream contents;
+
+ /** The sandbox resource name, in the form sandboxes/{sandbox_id}. */
+ @JsonIgnore private String parent;
+
+ /** The absolute UTF-8 destination path inside the sandbox. */
+ @JsonIgnore
+ @QueryParam("path")
+ private String path;
+
+ public UploadFileRequest setContents(InputStream contents) {
+ this.contents = contents;
+ return this;
+ }
+
+ public InputStream getContents() {
+ return contents;
+ }
+
+ public UploadFileRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
+ public UploadFileRequest setPath(String path) {
+ this.path = path;
+ return this;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ UploadFileRequest that = (UploadFileRequest) o;
+ return Objects.equals(contents, that.contents)
+ && Objects.equals(parent, that.parent)
+ && Objects.equals(path, that.path);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(contents, parent, path);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(UploadFileRequest.class)
+ .add("contents", contents)
+ .add("parent", parent)
+ .add("path", path)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java
index cf8d0d1ed..3700cee4b 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java
@@ -167,6 +167,12 @@ public Iterable