diff --git a/.gitattributes b/.gitattributes index 2faf367f5..2444d92ca 100755 --- a/.gitattributes +++ b/.gitattributes @@ -56,6 +56,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/AwsAttribu databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/AwsAvailability.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/AzureAttributes.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/AzureAvailability.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/BaseClusterInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ChangeClusterOwner.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClientsTypes.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/CloudProviderNodeInfo.java linguist-generated=true @@ -150,11 +151,10 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/Read.java ling databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/ReadResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/AwsCredentials.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/AwsKeyInfo.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CloudResourceBucket.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CloudResourceContainer.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateAwsKeyInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateCredentialRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateCustomerManagedKeyRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateGcpNetwork.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateNetworkRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateStorageConfigurationRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateVpcEndpointRequest.java linguist-generated=true @@ -162,6 +162,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateWo databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Credential.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CredentialsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CredentialsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CustomerFacingGcpCloudResourceContainer.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CustomerManagedKey.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteCredentialRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteEncryptionKeyRequest.java linguist-generated=true @@ -174,11 +175,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Encrypti databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/EncryptionKeysService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/EndpointUseCase.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/ErrorType.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpCommonNetworkConfig.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpManagedNetworkConfig.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpNetwork.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpNetworkInfo.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpProjectContainer.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetCredentialRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetEncryptionKeyRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetNetworkRequest.java linguist-generated=true @@ -186,7 +184,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetPriva databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetStorageRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetVpcEndpointRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetWorkspaceRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GkeConnectivityType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GkeConfig.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GkeConfigConnectivityType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/KeyUseCase.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Network.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworkHealth.java linguist-generated=true @@ -215,6 +214,36 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Workspac databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspaceStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/BuildLogsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/BuildLogsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/CreateServingEndpoint.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/DeleteServingEndpointRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointCoreConfigInput.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointCoreConfigOutput.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointCoreConfigSummary.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointPendingConfig.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointState.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointStateConfigUpdate.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/EndpointStateReady.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ExportMetricsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/GetServingEndpointRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ListEndpointsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/LogsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/QueryEndpointResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/QueryRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/Route.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServedModelInput.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServedModelOutput.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServedModelSpec.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServedModelState.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServedModelStateDeployment.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServerLogsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServingEndpoint.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServingEndpointDetailed.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServingEndpointDetailedPermissionLevel.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServingEndpointsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/ServingEndpointsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/endpoints/TrafficConfig.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/gitcredentials/CreateCredentials.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/gitcredentials/CreateCredentialsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/gitcredentials/CredentialInfo.java linguist-generated=true @@ -276,10 +305,14 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAcc databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/ListType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/ReplaceIpAccessList.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/UpdateIpAccessList.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseJob.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseRun.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CancelAllRuns.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CancelRun.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ClusterInstance.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ClusterSpec.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Continuous.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ContinuousPauseStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJobFormat.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateResponse.java linguist-generated=true @@ -340,6 +373,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkJarTask.j databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkPythonTask.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkSubmitTask.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlAlertOutput.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlAlertState.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardOutput.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardWidgetOutput.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardWidgetOutputStatus.java linguist-generated=true @@ -351,6 +385,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTask.java l databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskAlert.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskDashboard.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskQuery.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskSubscription.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitRun.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitRunResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TaskDependenciesItem.java linguist-generated=true @@ -653,9 +688,14 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertOptions.ja databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertState.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CancelExecutionRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Channel.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChunkInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ColumnInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ColumnInfoTypeName.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateAlert.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateDashboardRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateRefreshSchedule.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateSubscription.java linguist-generated=true @@ -677,6 +717,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteScheduleR databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteWarehouseRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Destination.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DestinationType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditAlert.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointConfPair.java linguist-generated=true @@ -684,11 +725,18 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointHealth. databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointTagPair.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointTags.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Format.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetAlertRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetDashboardRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetDbsqlPermissionRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetQueryRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementResultChunkNRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetSubscriptionsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java linguist-generated=true @@ -715,6 +763,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/PlansState.java databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryEditContent.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryFilter.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryHistoryAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryHistoryService.java linguist-generated=true @@ -730,6 +779,11 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/RefreshSchedule databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/RepeatedEndpointConfPairs.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/RestoreDashboardRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/RestoreQueryRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultManifest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultSchema.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ServiceError.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ServiceErrorCode.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetWorkspaceWarehouseConfigRequest.java linguist-generated=true @@ -737,6 +791,10 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetWorkspaceWar databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SpotInstancePolicy.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StartRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/State.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementExecutionService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementState.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Status.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StopRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Subscription.java linguist-generated=true @@ -747,6 +805,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TerminationReas databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TerminationReasonCode.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TerminationReasonType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TimeRange.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TimeoutAction.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TransferOwnershipObjectId.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/TransferOwnershipRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/UnsubscribeRequest.java linguist-generated=true @@ -776,6 +835,12 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/tokens/PublicTokenI databricks-sdk-java/src/main/java/com/databricks/sdk/service/tokens/RevokeTokenRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/tokens/TokensAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/tokens/TokensService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AccountMetastoreAssignmentsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AccountMetastoreAssignmentsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AccountMetastoresAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AccountMetastoresService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AccountStorageCredentialsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AccountStorageCredentialsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AuthenticationType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AwsIamRole.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AzureServicePrincipal.java linguist-generated=true @@ -784,9 +849,15 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Catalo databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnInfo.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnInfoTypeName.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnMask.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnTypeName.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateCatalog.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateExternalLocation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateFunction.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateFunctionParameterStyle.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateFunctionRoutineBody.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateFunctionSecurityType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateFunctionSqlDataAccess.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastore.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastoreAssignment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateProvider.java linguist-generated=true @@ -794,41 +865,69 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Create databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateSchema.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateShare.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateStorageCredential.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateTableConstraint.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DataSourceFormat.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteAccountMetastoreAssignmentRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteAccountMetastoreRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteCatalogRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteExternalLocationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteFunctionRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteMetastoreRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteProviderRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteRecipientRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteSchemaRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteShareRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteStorageCredentialRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteTableConstraintRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteTableRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Dependency.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/EffectivePermissionsList.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/EffectivePrivilege.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/EffectivePrivilegeAssignment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ForeignKeyConstraint.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionDependency.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionInfoParameterStyle.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionInfoRoutineBody.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionInfoSecurityType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionInfoSqlDataAccess.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionParameterInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionParameterMode.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionParameterType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/FunctionsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GcpServiceAccountKey.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetAccountMetastoreAssignmentRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetAccountMetastoreRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetAccountStorageCredentialRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetActivationUrlInfoRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetCatalogRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetEffectiveRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetExternalLocationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetFunctionRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetGrantRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponseDeltaSharingScope.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetPermissionsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetProviderRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetRecipientRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetRecipientSharePermissionsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetSchemaRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetSharePermissionsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetShareRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetStorageCredentialRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetTableRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/IpAccessList.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListAccountMetastoreAssignmentsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListAccountStorageCredentialsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListCatalogsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListExternalLocationsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListFunctionsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListFunctionsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListMetastoresResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListProviderSharesResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListProvidersRequest.java linguist-generated=true @@ -839,17 +938,22 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSc databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSchemasResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSharesRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSharesResponse.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListStorageCredentialsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSummariesRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTableSummariesResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTablesRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTablesResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreAssignment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreInfoDeltaSharingScope.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/NamedTableConstraint.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Partition.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/PartitionValue.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/PartitionValueOp.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/PermissionsChange.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/PermissionsList.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/PrimaryKeyConstraint.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Privilege.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/PrivilegeAssignment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProviderInfo.java linguist-generated=true @@ -869,6 +973,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Rotate databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemaInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SecurablePropertiesMap.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SecurableType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ShareInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharePermissionsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ShareToPrivilegeAssignment.java linguist-generated=true @@ -881,8 +987,13 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Shares databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableConstraint.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableConstraintList.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableConstraintsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableConstraintsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableDependency.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableInfo.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableSummariesRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableRowFilter.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableSummary.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesAPI.java linguist-generated=true @@ -890,8 +1001,10 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Tables databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UnassignRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateCatalog.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateExternalLocation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateFunction.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastore.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastoreAssignment.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastoreDeltaSharingScope.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdatePermissions.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateProvider.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateRecipient.java linguist-generated=true @@ -899,6 +1012,11 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/Update databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateShare.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSharePermissions.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateStorageCredential.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ValidateStorageCredential.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ValidateStorageCredentialResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ValidationResult.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ValidationResultOperation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ValidationResultResult.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/Delete.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/Export.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ExportFormat.java linguist-generated=true diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index db310368f..343020c58 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -11,12 +11,21 @@ databricks-sdk-java + + 2.12.2 + 4.5.13 + 1.8 + 1.8 + UTF-8 + 5.9.2 + + org.junit junit-bom - 5.9.2 + ${junit-bom.version} pom import diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksAccount.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksAccount.java index a56c4f840..21d7642a6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksAccount.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksAccount.java @@ -18,6 +18,10 @@ import com.databricks.sdk.service.scim.AccountGroupsService; import com.databricks.sdk.service.billing.LogDeliveryAPI; import com.databricks.sdk.service.billing.LogDeliveryService; +import com.databricks.sdk.service.unitycatalog.AccountMetastoreAssignmentsAPI; +import com.databricks.sdk.service.unitycatalog.AccountMetastoreAssignmentsService; +import com.databricks.sdk.service.unitycatalog.AccountMetastoresAPI; +import com.databricks.sdk.service.unitycatalog.AccountMetastoresService; import com.databricks.sdk.service.deployment.NetworksAPI; import com.databricks.sdk.service.deployment.NetworksService; import com.databricks.sdk.service.deployment.PrivateAccessAPI; @@ -26,6 +30,8 @@ import com.databricks.sdk.service.scim.AccountServicePrincipalsService; import com.databricks.sdk.service.deployment.StorageAPI; import com.databricks.sdk.service.deployment.StorageService; +import com.databricks.sdk.service.unitycatalog.AccountStorageCredentialsAPI; +import com.databricks.sdk.service.unitycatalog.AccountStorageCredentialsService; import com.databricks.sdk.service.scim.AccountUsersAPI; import com.databricks.sdk.service.scim.AccountUsersService; import com.databricks.sdk.service.deployment.VpcEndpointsAPI; @@ -48,10 +54,13 @@ public class DatabricksAccount { private EncryptionKeysService encryptionKeysService; private AccountGroupsService accountGroupsService; private LogDeliveryService logDeliveryService; + private AccountMetastoreAssignmentsService accountMetastoreAssignmentsService; + private AccountMetastoresService accountMetastoresService; private NetworksService networksService; private PrivateAccessService privateAccessService; private AccountServicePrincipalsService accountServicePrincipalsService; private StorageService storageService; + private AccountStorageCredentialsService accountStorageCredentialsService; private AccountUsersService accountUsersService; private VpcEndpointsService vpcEndpointsService; private WorkspaceAssignmentService workspaceAssignmentService; @@ -71,10 +80,13 @@ public DatabricksAccount(DatabricksConfig config) { encryptionKeysService = new EncryptionKeysAPI(apiClient); accountGroupsService = new AccountGroupsAPI(apiClient); logDeliveryService = new LogDeliveryAPI(apiClient); + accountMetastoreAssignmentsService = new AccountMetastoreAssignmentsAPI(apiClient); + accountMetastoresService = new AccountMetastoresAPI(apiClient); networksService = new NetworksAPI(apiClient); privateAccessService = new PrivateAccessAPI(apiClient); accountServicePrincipalsService = new AccountServicePrincipalsAPI(apiClient); storageService = new StorageAPI(apiClient); + accountStorageCredentialsService = new AccountStorageCredentialsAPI(apiClient); accountUsersService = new AccountUsersAPI(apiClient); vpcEndpointsService = new VpcEndpointsAPI(apiClient); workspaceAssignmentService = new WorkspaceAssignmentAPI(apiClient); @@ -214,11 +226,25 @@ public LogDeliveryService logDelivery() { return logDeliveryService; } + /** + * These APIs manage metastore assignments to a workspace. + */ + public AccountMetastoreAssignmentsService accountMetastoreAssignments() { + return accountMetastoreAssignmentsService; + } + + /** + * These APIs manage Unity Catalog metastores for an account. A metastore + * contains catalogs that can be associated with workspaces + */ + public AccountMetastoresService accountMetastores() { + return accountMetastoresService; + } + /** * These APIs manage network configurations for customer-managed VPCs - * (optional). A network configuration encapsulates the IDs for AWS VPCs, - * subnets, and security groups. Its ID is used when creating a new - * workspace if you use customer-managed VPCs. + * (optional). Its ID is used when creating a new workspace if you use + * customer-managed VPCs. */ public NetworksService networks() { return networksService; @@ -264,6 +290,13 @@ public StorageService storage() { return storageService; } + /** + * These APIs manage storage credentials for a particular metastore. + */ + public AccountStorageCredentialsService accountStorageCredentials() { + return accountStorageCredentialsService; + } + /** * User identities recognized by Databricks and represented by email * addresses. @@ -370,6 +403,22 @@ public DatabricksAccount setLogDeliveryService(LogDeliveryService logDelivery) { return this; } + /** + * Override AccountMetastoreAssignmentsService with mock + */ + public DatabricksAccount setAccountMetastoreAssignmentsService(AccountMetastoreAssignmentsService accountMetastoreAssignments) { + accountMetastoreAssignmentsService = accountMetastoreAssignments; + return this; + } + + /** + * Override AccountMetastoresService with mock + */ + public DatabricksAccount setAccountMetastoresService(AccountMetastoresService accountMetastores) { + accountMetastoresService = accountMetastores; + return this; + } + /** * Override NetworksService with mock */ @@ -402,6 +451,14 @@ public DatabricksAccount setStorageService(StorageService storage) { return this; } + /** + * Override AccountStorageCredentialsService with mock + */ + public DatabricksAccount setAccountStorageCredentialsService(AccountStorageCredentialsService accountStorageCredentials) { + accountStorageCredentialsService = accountStorageCredentials; + return this; + } + /** * Override AccountUsersService with mock */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksWorkspace.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksWorkspace.java index a7edb7b20..d81a1773d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksWorkspace.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/DatabricksWorkspace.java @@ -30,6 +30,8 @@ import com.databricks.sdk.service.mlflow.ExperimentsService; import com.databricks.sdk.service.unitycatalog.ExternalLocationsAPI; import com.databricks.sdk.service.unitycatalog.ExternalLocationsService; +import com.databricks.sdk.service.unitycatalog.FunctionsAPI; +import com.databricks.sdk.service.unitycatalog.FunctionsService; import com.databricks.sdk.service.gitcredentials.GitCredentialsAPI; import com.databricks.sdk.service.gitcredentials.GitCredentialsService; import com.databricks.sdk.service.globalinitscripts.GlobalInitScriptsAPI; @@ -90,10 +92,16 @@ import com.databricks.sdk.service.secrets.SecretsService; import com.databricks.sdk.service.scim.ServicePrincipalsAPI; import com.databricks.sdk.service.scim.ServicePrincipalsService; +import com.databricks.sdk.service.endpoints.ServingEndpointsAPI; +import com.databricks.sdk.service.endpoints.ServingEndpointsService; import com.databricks.sdk.service.unitycatalog.SharesAPI; import com.databricks.sdk.service.unitycatalog.SharesService; +import com.databricks.sdk.service.sql.StatementExecutionAPI; +import com.databricks.sdk.service.sql.StatementExecutionService; import com.databricks.sdk.service.unitycatalog.StorageCredentialsAPI; import com.databricks.sdk.service.unitycatalog.StorageCredentialsService; +import com.databricks.sdk.service.unitycatalog.TableConstraintsAPI; +import com.databricks.sdk.service.unitycatalog.TableConstraintsService; import com.databricks.sdk.service.unitycatalog.TablesAPI; import com.databricks.sdk.service.unitycatalog.TablesService; import com.databricks.sdk.service.tokenmanagement.TokenManagementAPI; @@ -130,6 +138,7 @@ public class DatabricksWorkspace { private DbsqlPermissionsService dbsqlPermissionsService; private ExperimentsService experimentsService; private ExternalLocationsService externalLocationsService; + private FunctionsService functionsService; private GitCredentialsService gitCredentialsService; private GlobalInitScriptsService globalInitScriptsService; private GrantsService grantsService; @@ -160,8 +169,11 @@ public class DatabricksWorkspace { private SchemasService schemasService; private SecretsService secretsService; private ServicePrincipalsService servicePrincipalsService; + private ServingEndpointsService servingEndpointsService; private SharesService sharesService; + private StatementExecutionService statementExecutionService; private StorageCredentialsService storageCredentialsService; + private TableConstraintsService tableConstraintsService; private TablesService tablesService; private TokenManagementService tokenManagementService; private TokensService tokensService; @@ -191,6 +203,7 @@ public DatabricksWorkspace(DatabricksConfig config) { dbsqlPermissionsService = new DbsqlPermissionsAPI(apiClient); experimentsService = new ExperimentsAPI(apiClient); externalLocationsService = new ExternalLocationsAPI(apiClient); + functionsService = new FunctionsAPI(apiClient); gitCredentialsService = new GitCredentialsAPI(apiClient); globalInitScriptsService = new GlobalInitScriptsAPI(apiClient); grantsService = new GrantsAPI(apiClient); @@ -221,8 +234,11 @@ public DatabricksWorkspace(DatabricksConfig config) { schemasService = new SchemasAPI(apiClient); secretsService = new SecretsAPI(apiClient); servicePrincipalsService = new ServicePrincipalsAPI(apiClient); + servingEndpointsService = new ServingEndpointsAPI(apiClient); sharesService = new SharesAPI(apiClient); + statementExecutionService = new StatementExecutionAPI(apiClient); storageCredentialsService = new StorageCredentialsAPI(apiClient); + tableConstraintsService = new TableConstraintsAPI(apiClient); tablesService = new TablesAPI(apiClient); tokenManagementService = new TokenManagementAPI(apiClient); tokensService = new TokensAPI(apiClient); @@ -238,6 +254,10 @@ public DatabricksWorkspace(DatabricksConfig config) { * is a Databricks SQL object that periodically runs a query, evaluates a * condition of its result, and notifies one or more users and/or alert * destinations if the condition was met. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks + * SQL API are deprecated. Alert refresh schedules can be created, updated, + * fetched and deleted using Jobs API, e.g. :method:jobs/create. */ public AlertsService alerts() { return alertsService; @@ -342,6 +362,10 @@ public CurrentUserService currentUser() { * collection of related query IDs. The API can also be used to duplicate * multiple dashboards at once since you can get a dashboard definition with * a GET request and then POST it to create a new one. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks + * SQL API are deprecated. Dashboard refresh schedules can be created, + * updated, fetched and deleted using Jobs API, e.g. :method:jobs/create. */ public DashboardsService dashboards() { return dashboardsService; @@ -373,9 +397,9 @@ public DbfsService dbfs() { /** * The SQL Permissions API is similar to the endpoints of the - * :method:permissions/setobjectpermissions. However, this exposes only one - * endpoint, which gets the Access Control List for a given object. You - * cannot modify any permissions using this API. + * :method:permissions/set. However, this exposes only one endpoint, which + * gets the Access Control List for a given object. You cannot modify any + * permissions using this API. * * There are three levels of permission: * @@ -408,12 +432,25 @@ public ExperimentsService experiments() { * credentials directly. * * To create external locations, you must be a metastore admin or a user - * with the CREATE_EXTERNAL_LOCATION privilege. + * with the **CREATE_EXTERNAL_LOCATION** privilege. */ public ExternalLocationsService externalLocations() { return externalLocationsService; } + /** + * Functions implement User-Defined Functions (UDFs) in Unity Catalog. + * + * The function implementation can be any SQL expression or Query, and it + * can be invoked wherever a table reference is allowed in a query. In Unity + * Catalog, a function resides at the same level as a table, so it can be + * referenced with the form + * __catalog_name__.__schema_name__.__function_name__. + */ + public FunctionsService functions() { + return functionsService; + } + /** * Registers personal access token for Databricks to do operations on behalf * of the user. @@ -449,10 +486,6 @@ public GlobalInitScriptsService globalInitScripts() { * schema that contains the object. Securable objects in Unity Catalog are * hierarchical and privileges are inherited downward. * - * Initially, users have no access to data in a metastore. Access can be - * granted by either a metastore admin, the owner of an object, or the owner - * of the catalog or schema that contains the object. - * * Securable objects in Unity Catalog are hierarchical and privileges are * inherited downward. This means that granting a privilege on the catalog * automatically grants the privilege to all current and future objects @@ -513,8 +546,7 @@ public InstanceProfilesService instanceProfiles() { } /** - * The IP Access List API enables Databricks admins to configure IP access - * lists for a workspace. + * IP Access List enables admins to configure IP access lists. * * IP access lists affect web application access and REST API access to this * workspace only. If the feature is disabled for a workspace, all access is @@ -629,7 +661,7 @@ public MLflowRunsService mLflowRuns() { * NOTE: This metastore is distinct from the metastore included in * Databricks workspaces created before Unity Catalog was released. If your * workspace includes a legacy Hive metastore, the data in that metastore is - * available in Unity Catalog in a catalog named hive_metastore. + * available in a catalog named hive_metastore. */ public MetastoresService metastores() { return metastoresService; @@ -700,6 +732,10 @@ public ProvidersService providers() { * These endpoints are used for CRUD operations on query definitions. Query * definitions include the target SQL warehouse, query text, name, * description, tags, execution schedule, parameters, and visualizations. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks + * SQL API are deprecated. Query refresh schedules can be created, updated, + * fetched and deleted using Jobs API, e.g. :method:jobs/create. */ public QueriesService queries() { return queriesService; @@ -755,10 +791,10 @@ public ReposService repos() { /** * A schema (also called a database) is the second layer of Unity - * Catalog’s three-level namespace. A schema organizes tables and views. - * To access (or list) a table or view in a schema, users must have the - * USE_SCHEMA data permission on the schema and its parent catalog, and they - * must have the SELECT permission on the table or view. + * Catalog’s three-level namespace. A schema organizes tables, views and + * functions. To access (or list) a table or view in a schema, users must + * have the USE_SCHEMA data permission on the schema and its parent catalog, + * and they must have the SELECT permission on the table or view. */ public SchemasService schemas() { return schemasService; @@ -795,6 +831,25 @@ public ServicePrincipalsService servicePrincipals() { return servicePrincipalsService; } + /** + * The Serverless Real-Time Inference Serving Endpoints API allows you to + * create, update, and delete model serving endpoints. + * + * You can use a serving endpoint to serve models from the Databricks Model + * Registry. Endpoints expose the underlying models as scalable REST API + * endpoints using serverless compute. This means the endpoints and + * associated compute resources are fully managed by Databricks and will not + * appear in your cloud account. A serving endpoint can consist of one or + * more MLflow models from the Databricks Model Registry, called served + * models. A serving endpoint can have at most ten served models. You can + * configure traffic settings to define how requests should be routed to + * your served models behind an endpoint. Additionally, you can configure + * the scale of resources that should be applied to each served model. + */ + public ServingEndpointsService servingEndpoints() { + return servingEndpointsService; + } + /** * Databricks Delta Sharing: Shares REST API */ @@ -802,14 +857,204 @@ public SharesService shares() { return sharesService; } + /** + * The SQL Statement Execution API manages the execution of arbitrary SQL + * statements and the fetching of result data. + * + * **Release status** + * + * This feature is in [Public Preview]. + * + * **Getting started** + * + * We suggest beginning with the [SQL Statement Execution API tutorial]. + * + * **Overview of statement execution and result fetching** + * + * Statement execution begins by issuing a + * :method:statementexecution/executeStatement request with a valid SQL + * statement and warehouse ID, along with optional parameters such as the + * data catalog and output format. + * + * When submitting the statement, the call can behave synchronously or + * asynchronously, based on the `wait_timeout` setting. When set between + * 5-50 seconds (default: 10) the call behaves synchronously and waits for + * results up to the specified timeout; when set to `0s`, the call is + * asynchronous and responds immediately with a statement ID that can be + * used to fetch the results in a separate call. + * + * **Call mode: synchronous** + * + * In synchronous mode, when statement execution completes within the `wait + * timeout`, the result data is returned directly in the response. This + * response will contain `statement_id`, `status`, `manifest`, and `result` + * fields. The `status` field confirms success whereas the `manifest` field + * contains the result data column schema and metadata about the result set. + * The `result` field contains the first chunk of result data according to + * the specified `disposition`, and links to fetch any remaining chunks. + * + * If the execution does not complete before `wait_timeout`, the setting + * `on_wait_timeout` determines how the system responds. + * + * By default, `on_wait_timeout=CONTINUE`, and after reaching + * `wait_timeout`, a response is returned and statement execution continues + * asynchronously. The response will contain only `statement_id` and + * `status` fields, and the caller must now follow the flow described for + * asynchronous call mode to poll and fetch the result. + * + * Alternatively, `on_wait_timeout` can also be set to `CANCEL`; in this + * case if the timeout is reached before execution completes, the underlying + * statement execution is canceled, and a `CANCELED` status is returned in + * the response. + * + * **Call mode: asynchronous** + * + * In asynchronous mode, or after a timed-out synchronous request continues, + * a `statement_id` and `status` will be returned. In this case polling + * :method:statementexecution/getStatement calls are required to fetch the + * result and metadata. + * + * Next, a caller must poll until execution completes (`SUCCEEDED`, + * `FAILED`, etc.) by issuing :method:statementexecution/getStatement + * requests for the given `statement_id`. + * + * When execution has succeeded, the response will contain `status`, + * `manifest`, and `result` fields. These fields and the structure are + * identical to those in the response to a successful synchronous + * submission. The `result` field will contain the first chunk of result + * data, either `INLINE` or as `EXTERNAL_LINKS` depending on `disposition`. + * Additional chunks of result data can be fetched by checking for the + * presence of the `next_chunk_internal_link` field, and iteratively `GET` + * those paths until that field is unset: `GET + * https://$DATABRICKS_HOST/{next_chunk_internal_link}`. + * + * **Fetching result data: format and disposition** + * + * Result data from statement execution is available in two formats: JSON, + * and [Apache Arrow Columnar]. Statements producing a result set smaller + * than 16 MiB can be fetched as `format=JSON_ARRAY`, using the + * `disposition=INLINE`. When a statement executed in `INLINE` disposition + * exceeds this limit, the execution is aborted, and no result can be + * fetched. Using `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS` + * allows large result sets, and with higher throughput. + * + * The API uses defaults of `format=JSON_ARRAY` and `disposition=INLINE`. + * `We advise explicitly setting format and disposition in all production + * use cases. + * + * **Statement response: statement_id, status, manifest, and result** + * + * The base call :method:statementexecution/getStatement returns a single + * response combining `statement_id`, `status`, a result `manifest`, and a + * `result` data chunk or link, depending on the `disposition`. The + * `manifest` contains the result schema definition and the result summary + * metadata. When using `disposition=EXTERNAL_LINKS`, it also contains a + * full listing of all chunks and their summary metadata. + * + * **Use case: small result sets with INLINE + JSON_ARRAY** + * + * For flows that generate small and predictable result sets (<= 16 MiB), + * `INLINE` downloads of `JSON_ARRAY` result data are typically the simplest + * way to execute and fetch result data. + * + * When the result set with `disposition=INLINE` is larger, the result can + * be transferred in chunks. After receiving the initial chunk with + * :method:statementexecution/executeStatement or + * :method:statementexecution/getStatement subsequent calls are required to + * iteratively fetch each chunk. Each result response contains a link to the + * next chunk, when there are additional chunks to fetch; it can be found in + * the field `.next_chunk_internal_link`. This link is an absolute `path` to + * be joined with your `$DATABRICKS_HOST`, and of the form + * `/api/2.0/sql/statements/{statement_id}/result/chunks/{chunk_index}`. The + * next chunk can be fetched by issuing a + * :method:statementexecution/getStatementResultChunkN request. + * + * When using this mode, each chunk may be fetched once, and in order. A + * chunk without a field `next_chunk_internal_link` indicates we reached the + * last chunk and all chunks have been fetched from the result set. + * + * **Use case: large result sets with EXTERNAL_LINKS + ARROW_STREAM** + * + * Using `EXTERNAL_LINKS` to fetch result data in Arrow format allows you to + * fetch large result sets efficiently. The primary difference from using + * `INLINE` disposition is that fetched result chunks contain resolved + * `external_links` URLs, which can be fetched with standard HTTP. + * + * **Presigned URLs** + * + * External links point to data stored within your workspace's internal + * DBFS, in the form of a presigned URL. The URLs are valid for only a short + * period, <= 15 minutes. Alongside each `external_link` is an expiration + * field indicating the time at which the URL is no longer valid. In + * `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times + * and in parallel. + * + * ---- + * + * ### **Warning: drop the authorization header when fetching data through + * external links** + * + * External link URLs do not require an Authorization header or token, and + * thus all calls to fetch external links must remove the Authorization + * header. + * + * ---- + * + * Similar to `INLINE` mode, callers can iterate through the result set, by + * using the `next_chunk_internal_link` field. Each internal link response + * will contain an external link to the raw chunk data, and additionally + * contain the `next_chunk_internal_link` if there are more chunks. + * + * Unlike `INLINE` mode, when using `EXTERNAL_LINKS`, chunks may be fetched + * out of order, and in parallel to achieve higher throughput. + * + * **Limits and limitations** + * + * Note: All byte limits are calculated based on internal storage metrics + * and will not match byte counts of actual payloads. + * + * - Statements with `disposition=INLINE` are limited to 16 MiB and will + * abort when this limit is exceeded. - Statements with + * `disposition=EXTERNAL_LINKS` are limited to 100 GiB. - The maximum query + * text size is 16 MiB. - Cancelation may silently fail. A successful + * response from a cancel request indicates that the cancel request was + * successfully received and sent to the processing engine. However, for + * example, an outstanding statement may complete execution during signal + * delivery, with the cancel signal arriving too late to be meaningful. + * Polling for status until a terminal state is reached is a reliable way to + * determine the final state. - Wait timeouts are approximate, occur + * server-side, and cannot account for caller delays, network latency from + * caller to service, and similarly. - After a statement has been submitted + * and a statement_id is returned, that statement's status and result will + * automatically close after either of 2 conditions: - The last result chunk + * is fetched (or resolved to an external link). - Ten (10) minutes pass + * with no calls to get status or fetch result data. Best practice: in + * asynchronous clients, poll for status regularly (and with backoff) to + * keep the statement open and alive. - After a `CANCEL` or `CLOSE` + * operation, the statement will no longer be visible from the API which + * means that a subsequent poll request may return an HTTP 404 NOT FOUND + * error. - After fetching the last result chunk (including chunk_index=0), + * the statement is closed; shortly after closure the statement will no + * longer be visible to the API and so, further calls such as + * :method:statementexecution/getStatement may return an HTTP 404 NOT FOUND + * error. + * + * [Apache Arrow Columnar]: https://arrow.apache.org/overview/ + * [Public Preview]: https://docs.databricks.com/release-notes/release-types.html + * [SQL Statement Execution API tutorial]: https://docs.databricks.com/sql/api/sql-execution-tutorial.html + */ + public StatementExecutionService statementExecution() { + return statementExecutionService; + } + /** * A storage credential represents an authentication and authorization - * mechanism for accessing data stored on your cloud tenant, using an IAM - * role. Each storage credential is subject to Unity Catalog access-control - * policies that control which users and groups can access the credential. - * If a user does not have access to a storage credential in Unity Catalog, - * the request fails and Unity Catalog does not attempt to authenticate to - * your cloud tenant on the user’s behalf. + * mechanism for accessing data stored on your cloud tenant. Each storage + * credential is subject to Unity Catalog access-control policies that + * control which users and groups can access the credential. If a user does + * not have access to a storage credential in Unity Catalog, the request + * fails and Unity Catalog does not attempt to authenticate to your cloud + * tenant on the user’s behalf. * * Databricks recommends using external locations rather than using storage * credentials directly. @@ -822,6 +1067,25 @@ public StorageCredentialsService storageCredentials() { return storageCredentialsService; } + /** + * Primary key and foreign key constraints encode relationships between + * fields in tables. + * + * Primary and foreign keys are informational only and are not enforced. + * Foreign keys must reference a primary key in another table. This primary + * key is the parent constraint of the foreign key and the table this + * primary key is on is the parent table of the foreign key. Similarly, the + * foreign key is the child constraint of its referenced primary key; the + * table of the foreign key is the child table of the primary key. + * + * You can declare primary keys and foreign keys as part of the table + * specification during table creation. You can also add or drop constraints + * on existing tables. + */ + public TableConstraintsService tableConstraints() { + return tableConstraintsService; + } + /** * A table resides in the third layer of Unity Catalog’s three-level * namespace. It contains rows of data. To create a table, users must have @@ -831,7 +1095,8 @@ public StorageCredentialsService storageCredentials() { * USE_CATALOG permission on its parent catalog and the USE_SCHEMA * permission on its parent schema. * - * A table can be managed or external. + * A table can be managed or external. From an API perspective, a __VIEW__ + * is a particular kind of table (rather than a managed or external table). */ public TablesService tables() { return tablesService; @@ -1001,6 +1266,14 @@ public DatabricksWorkspace setExternalLocationsService(ExternalLocationsService return this; } + /** + * Override FunctionsService with mock + */ + public DatabricksWorkspace setFunctionsService(FunctionsService functions) { + functionsService = functions; + return this; + } + /** * Override GitCredentialsService with mock */ @@ -1241,6 +1514,14 @@ public DatabricksWorkspace setServicePrincipalsService(ServicePrincipalsService return this; } + /** + * Override ServingEndpointsService with mock + */ + public DatabricksWorkspace setServingEndpointsService(ServingEndpointsService servingEndpoints) { + servingEndpointsService = servingEndpoints; + return this; + } + /** * Override SharesService with mock */ @@ -1249,6 +1530,14 @@ public DatabricksWorkspace setSharesService(SharesService shares) { return this; } + /** + * Override StatementExecutionService with mock + */ + public DatabricksWorkspace setStatementExecutionService(StatementExecutionService statementExecution) { + statementExecutionService = statementExecution; + return this; + } + /** * Override StorageCredentialsService with mock */ @@ -1257,6 +1546,14 @@ public DatabricksWorkspace setStorageCredentialsService(StorageCredentialsServic return this; } + /** + * Override TableConstraintsService with mock + */ + public DatabricksWorkspace setTableConstraintsService(TableConstraintsService tableConstraints) { + tableConstraintsService = tableConstraints; + return this; + } + /** * Override TablesService with mock */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ApiClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ApiClient.java index 9101e2e43..f9174a2d7 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ApiClient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ApiClient.java @@ -1,6 +1,7 @@ package com.databricks.sdk.client; import com.databricks.sdk.annotation.QueryParam; +import com.databricks.sdk.service.deployment.KeyUseCase; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; @@ -68,6 +69,13 @@ public ApiClient(DatabricksConfig config) { hc = makeClosableHttpClient(); mapper = makeObjectMapper(); random = new Random(); + + try { + KeyUseCase deserialize = deserialize("\"FOOOOOO\"", KeyUseCase.class); + System.out.println(deserialize); + } catch (JsonProcessingException e) { + throw new RuntimeException(e); + } } private ObjectMapper makeObjectMapper() { @@ -253,7 +261,7 @@ public HttpRequestBase withEntity(HttpEntityEnclosingRequestBase request, T return request; } - private T deserialize(String body, Class target) throws JsonProcessingException { + public T deserialize(String body, Class target) throws JsonProcessingException { return mapper.readValue(body, target); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ConfigLoader.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ConfigLoader.java index 8d30f9081..5e2f908b4 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ConfigLoader.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/client/ConfigLoader.java @@ -65,6 +65,9 @@ private static void loadFromConfig(DatabricksConfig cfg) Ini ini = parseDatabricksCfg(cfg); if (ini == null) return; String profile = cfg.getProfile(); + if (profile == null) { + return; + } boolean hasExplicitProfile = !profile.equals(""); if (!hasExplicitProfile) { profile = "DEFAULT"; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateLogDeliveryConfigurationParams.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateLogDeliveryConfigurationParams.java index c4a939dc3..ca9b18d05 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateLogDeliveryConfigurationParams.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateLogDeliveryConfigurationParams.java @@ -20,10 +20,9 @@ public class CreateLogDeliveryConfigurationParams { private String configName; /** - * The ID for a method:CredetialConfigurations/createCredentialConfig that - * represents the AWS IAM role with policy and trust relationship as - * described in the main billable usage documentation page. See [Configure - * billable usage delivery]. + * The ID for a method:credentials/create that represents the AWS IAM role + * with policy and trust relationship as described in the main billable + * usage documentation page. See [Configure billable usage delivery]. * * [Configure billable usage delivery]: https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html */ @@ -91,10 +90,9 @@ public class CreateLogDeliveryConfigurationParams { private LogDeliveryConfigStatus status; /** - * "The ID for a method:StorageConfiguration/createCredentialConfig that - * represents the S3 bucket with bucket policy as described in the main - * billable usage documentation page. See [Configure billable usage - * delivery]." + * "The ID for a method:storage/create that represents the S3 bucket with + * bucket policy as described in the main billable usage documentation page. + * See [Configure billable usage delivery]." * * [Configure billable usage delivery]: https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/LogDeliveryConfiguration.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/LogDeliveryConfiguration.java index 4fd9b1abd..e09e9b6d9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/LogDeliveryConfiguration.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/LogDeliveryConfiguration.java @@ -39,10 +39,9 @@ public class LogDeliveryConfiguration { private Long creationTime; /** - * The ID for a method:CredetialConfigurations/createCredentialConfig that - * represents the AWS IAM role with policy and trust relationship as - * described in the main billable usage documentation page. See [Configure - * billable usage delivery]. + * The ID for a method:credentials/create that represents the AWS IAM role + * with policy and trust relationship as described in the main billable + * usage documentation page. See [Configure billable usage delivery]. * * [Configure billable usage delivery]: https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html */ @@ -116,10 +115,9 @@ public class LogDeliveryConfiguration { private LogDeliveryConfigStatus status; /** - * "The ID for a method:StorageConfiguration/createCredentialConfig that - * represents the S3 bucket with bucket policy as described in the main - * billable usage documentation page. See [Configure billable usage - * delivery]." + * "The ID for a method:storage/create that represents the S3 bucket with + * bucket policy as described in the main billable usage documentation page. + * See [Configure billable usage delivery]." * * [Configure billable usage delivery]: https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterAttributes.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterAttributes.java index 2225aeaf1..a55c6ce4a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterAttributes.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterAttributes.java @@ -124,7 +124,7 @@ public class ClusterAttributes { * each of the Spark nodes in this cluster. For example, the Spark nodes can * be provisioned and optimized for memory or compute intensive workloads. A * list of available node types can be retrieved by using the - * :method:listNodeTypes API call. + * :method:clusters/listNodeTypes API call. */ @JsonProperty("node_type_id") private String nodeTypeId; @@ -173,7 +173,7 @@ public class ClusterAttributes { /** * The Spark version of the cluster, e.g. `3.3.x-scala2.11`. A list of * available Spark versions can be retrieved by using the - * :method:sparkVersions API call. + * :method:clusters/sparkVersions API call. */ @JsonProperty("spark_version") private String sparkVersion; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterInfo.java index 70a6cfc09..f87178062 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/ClusterInfo.java @@ -223,7 +223,7 @@ public class ClusterInfo { * each of the Spark nodes in this cluster. For example, the Spark nodes can * be provisioned and optimized for memory or compute intensive workloads. A * list of available node types can be retrieved by using the - * :method:listNodeTypes API call. + * :method:clusters/listNodeTypes API call. */ @JsonProperty("node_type_id") private String nodeTypeId; @@ -301,7 +301,7 @@ public class ClusterInfo { /** * The Spark version of the cluster, e.g. `3.3.x-scala2.11`. A list of * available Spark versions can be retrieved by using the - * :method:sparkVersions API call. + * :method:clusters/sparkVersions API call. */ @JsonProperty("spark_version") private String sparkVersion; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/CreateCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/CreateCluster.java index 3e6f1bf72..526c1a7af 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/CreateCluster.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/CreateCluster.java @@ -139,7 +139,7 @@ public class CreateCluster { * each of the Spark nodes in this cluster. For example, the Spark nodes can * be provisioned and optimized for memory or compute intensive workloads. A * list of available node types can be retrieved by using the - * :method:listNodeTypes API call. + * :method:clusters/listNodeTypes API call. */ @JsonProperty("node_type_id") private String nodeTypeId; @@ -203,7 +203,7 @@ public class CreateCluster { /** * The Spark version of the cluster, e.g. `3.3.x-scala2.11`. A list of * available Spark versions can be retrieved by using the - * :method:sparkVersions API call. + * :method:clusters/sparkVersions API call. */ @JsonProperty("spark_version") private String sparkVersion; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/EditCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/EditCluster.java index cc7fdb0bf..5ac685a9d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/EditCluster.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/clusters/EditCluster.java @@ -145,7 +145,7 @@ public class EditCluster { * each of the Spark nodes in this cluster. For example, the Spark nodes can * be provisioned and optimized for memory or compute intensive workloads. A * list of available node types can be retrieved by using the - * :method:listNodeTypes API call. + * :method:clusters/listNodeTypes API call. */ @JsonProperty("node_type_id") private String nodeTypeId; @@ -209,7 +209,7 @@ public class EditCluster { /** * The Spark version of the cluster, e.g. `3.3.x-scala2.11`. A list of * available Spark versions can be retrieved by using the - * :method:sparkVersions API call. + * :method:clusters/sparkVersions API call. */ @JsonProperty("spark_version") private String sparkVersion; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/commands/Results.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/commands/Results.java index 567eaff76..07349667f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/commands/Results.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/commands/Results.java @@ -59,7 +59,7 @@ public class Results { * The table schema */ @JsonProperty("schema") - private java.util.List> schema; + private java.util.List> schema; /** * The summary of the error @@ -136,12 +136,12 @@ public ResultType getResultType() { return resultType; } - public Results setSchema(java.util.List> schema) { + public Results setSchema(java.util.List> schema) { this.schema = schema; return this; } - public java.util.List> getSchema() { + public java.util.List> getSchema() { return schema; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsAPI.java index ea5cdd578..865d121eb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsAPI.java @@ -179,7 +179,7 @@ public void move(Move request) { * be thrown if this limit is exceeded. * * If you want to upload large files, use the streaming upload. For details, - * see :method:create, :method:addBlock, :method:close. + * see :method:dbfs/create, :method:dbfs/addBlock, :method:dbfs/close. */ @Override public void put(Put request) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsService.java index 34ed60fef..2b2e9c8fa 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dbfs/DbfsService.java @@ -139,7 +139,7 @@ public interface DbfsService { * be thrown if this limit is exceeded. * * If you want to upload large files, use the streaming upload. For details, - * see :method:create, :method:addBlock, :method:close. + * see :method:dbfs/create, :method:dbfs/addBlock, :method:dbfs/close. */ void put(Put put); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateWorkspaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateWorkspaceRequest.java index ec1054439..1cab7a77e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateWorkspaceRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/CreateWorkspaceRequest.java @@ -29,8 +29,8 @@ public class CreateWorkspaceRequest { * The general workspace configurations that are specific to cloud * providers. */ - @JsonProperty("cloud_resource_bucket") - private CloudResourceBucket cloudResourceBucket; + @JsonProperty("cloud_resource_container") + private CloudResourceContainer cloudResourceContainer; /** * ID of the workspace's credential configuration object. @@ -94,41 +94,7 @@ public class CreateWorkspaceRequest { private String managedServicesCustomerManagedKeyId; /** - * The network configurations for the workspace. If you provide a network - * configuration ID for a new workspace, Databricks deploys the new - * workspace into that associated customer-managed VPC. If omitted, by - * default Databricks creates a new Databricks-managed VPC for the workspace - * in your Google account and manages its lifecycle. - * - * All the IP range configurations must be mutually exclusive. An attempt to - * create a workspace fails if Databricks detects an IP range overlap. - * - * Specify custom IP ranges in CIDR format. The IP ranges for these fields - * must not overlap, and all IP addresses must be entirely within the - * following ranges: `10.0.0.0/8`, `100.64.0.0/10`, `172.16.0.0/12`, - * `192.168.0.0/16`, and `240.0.0.0/4`. - * - * The sizes of these IP ranges affect the maximum number of nodes for the - * workspace. - * - * **Important**: Confirm the IP ranges used by your Databricks workspace - * before creating the workspace. You cannot change them after your - * workspace is deployed. If the IP address ranges for your Databricks are - * too small, IP exhaustion can occur, causing your Databricks jobs to fail. - * To determine the address range sizes that you need, Databricks provides a - * calculator as a Microsoft Excel spreadsheet. See [calculate subnet sizes - * for a new workspace]. - * - * [calculate subnet sizes for a new workspace]: https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/network-sizing.html - */ - @JsonProperty("network") - private CreateGcpNetwork network; - - /** - * The ID of the workspace's network configuration object. To use [AWS - * PrivateLink] (Public Preview), this field is required. - * - * [AWS PrivateLink]: https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html + */ @JsonProperty("network_id") private String networkId; @@ -197,13 +163,13 @@ public String getCloud() { return cloud; } - public CreateWorkspaceRequest setCloudResourceBucket(CloudResourceBucket cloudResourceBucket) { - this.cloudResourceBucket = cloudResourceBucket; + public CreateWorkspaceRequest setCloudResourceContainer(CloudResourceContainer cloudResourceContainer) { + this.cloudResourceContainer = cloudResourceContainer; return this; } - public CloudResourceBucket getCloudResourceBucket() { - return cloudResourceBucket; + public CloudResourceContainer getCloudResourceContainer() { + return cloudResourceContainer; } public CreateWorkspaceRequest setCredentialsId(String credentialsId) { @@ -242,15 +208,6 @@ public String getManagedServicesCustomerManagedKeyId() { return managedServicesCustomerManagedKeyId; } - public CreateWorkspaceRequest setNetwork(CreateGcpNetwork network) { - this.network = network; - return this; - } - - public CreateGcpNetwork getNetwork() { - return network; - } - public CreateWorkspaceRequest setNetworkId(String networkId) { this.networkId = networkId; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteNetworkRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteNetworkRequest.java index 056e12154..fc615fdd4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteNetworkRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteNetworkRequest.java @@ -10,7 +10,7 @@ /** - * Delete network configuration + * Delete a network configuration */ @Generated("databricks-sdk-generator") public class DeleteNetworkRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteWorkspaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteWorkspaceRequest.java index 9f916951c..58b70bb55 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteWorkspaceRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/DeleteWorkspaceRequest.java @@ -10,7 +10,7 @@ /** - * Delete workspace + * Delete a workspace */ @Generated("databricks-sdk-generator") public class DeleteWorkspaceRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpManagedNetworkConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpManagedNetworkConfig.java index e7757b142..11032f7e9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpManagedNetworkConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GcpManagedNetworkConfig.java @@ -12,7 +12,27 @@ /** * The network settings for the workspace. The configurations are only for * Databricks-managed VPCs. It is ignored if you specify a customer-managed VPC - * in the `network_id` field. + * in the `network_id` field.", All the IP range configurations must be mutually + * exclusive. An attempt to create a workspace fails if Databricks detects an IP + * range overlap. + * + * Specify custom IP ranges in CIDR format. The IP ranges for these fields must + * not overlap, and all IP addresses must be entirely within the following + * ranges: `10.0.0.0/8`, `100.64.0.0/10`, `172.16.0.0/12`, `192.168.0.0/16`, and + * `240.0.0.0/4`. + * + * The sizes of these IP ranges affect the maximum number of nodes for the + * workspace. + * + * **Important**: Confirm the IP ranges used by your Databricks workspace before + * creating the workspace. You cannot change them after your workspace is + * deployed. If the IP address ranges for your Databricks are too small, IP + * exhaustion can occur, causing your Databricks jobs to fail. To determine the + * address range sizes that you need, Databricks provides a calculator as a + * Microsoft Excel spreadsheet. See [calculate subnet sizes for a new + * workspace]. + * + * [calculate subnet sizes for a new workspace]: https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/network-sizing.html */ @Generated("databricks-sdk-generator") public class GcpManagedNetworkConfig { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetWorkspaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetWorkspaceRequest.java index 488e353d9..a5364ac6a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetWorkspaceRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/GetWorkspaceRequest.java @@ -10,7 +10,7 @@ /** - * Get workspace + * Get a workspace */ @Generated("databricks-sdk-generator") public class GetWorkspaceRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksAPI.java index 4871d2fd2..4f27a0597 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksAPI.java @@ -13,9 +13,8 @@ /** * These APIs manage network configurations for customer-managed VPCs - * (optional). A network configuration encapsulates the IDs for AWS VPCs, - * subnets, and security groups. Its ID is used when creating a new workspace if - * you use customer-managed VPCs. + * (optional). Its ID is used when creating a new workspace if you use + * customer-managed VPCs. */ @Generated("databricks-sdk-generator") public class NetworksAPI implements NetworksService { @@ -28,27 +27,9 @@ public NetworksAPI(ApiClient apiClient) { /** * Create network configuration. * - * Creates a Databricks network configuration that represents an AWS VPC and - * its resources. The VPC will be used for new Databricks clusters. This - * requires a pre-existing VPC and subnets. For VPC requirements, see - * [Customer-managed VPC]. - * - * **Important**: You can share one customer-managed VPC with multiple - * workspaces in a single account. Therefore, you can share one VPC across - * multiple Account API network configurations. However, you **cannot** - * reuse subnets or Security Groups between workspaces. Because a Databricks - * Account API network configuration encapsulates this information, you - * cannot reuse a Databricks Account API network configuration across - * workspaces. If you plan to share one VPC with multiple workspaces, make - * sure you size your VPC and subnets accordingly. For information about how - * to create a new workspace with this API, see [Create a new workspace - * using the Account API]. - * - * This operation is available only if your account is on the E2 version of - * the platform. - * - * [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html - * [Customer-managed VPC]: http://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html + * Creates a Databricks network configuration that represents an VPC and its + * resources. The VPC will be used for new Databricks clusters. This + * requires a pre-existing VPC and subnets. */ @Override public Network create(CreateNetworkRequest request) { @@ -57,9 +38,9 @@ public Network create(CreateNetworkRequest request) { } /** - * Delete network configuration. + * Delete a network configuration. * - * Deletes a Databricks network configuration, which represents an AWS VPC + * Deletes a Databricks network configuration, which represents a cloud VPC * and its resources. You cannot delete a network that is associated with a * workspace. * @@ -75,14 +56,8 @@ public void delete(DeleteNetworkRequest request) { /** * Get a network configuration. * - * Gets a Databricks network configuration, which represents an AWS VPC and - * its resources. This requires a pre-existing VPC and subnets. For VPC - * requirements, see [Customer-managed VPC]. - * - * This operation is available only if your account is on the E2 version of - * the platform. - * - * [Customer-managed VPC]: http://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html + * Gets a Databricks network configuration, which represents a cloud VPC and + * its resources. */ @Override public Network get(GetNetworkRequest request) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksService.java index 4b2a9e163..6563ff6dd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/NetworksService.java @@ -7,9 +7,8 @@ /** * These APIs manage network configurations for customer-managed VPCs - * (optional). A network configuration encapsulates the IDs for AWS VPCs, - * subnets, and security groups. Its ID is used when creating a new workspace if - * you use customer-managed VPCs. + * (optional). Its ID is used when creating a new workspace if you use + * customer-managed VPCs. * * This is the high-level interface, that contains generated methods. * @@ -20,34 +19,16 @@ public interface NetworksService { /** * Create network configuration. * - * Creates a Databricks network configuration that represents an AWS VPC and - * its resources. The VPC will be used for new Databricks clusters. This - * requires a pre-existing VPC and subnets. For VPC requirements, see - * [Customer-managed VPC]. - * - * **Important**: You can share one customer-managed VPC with multiple - * workspaces in a single account. Therefore, you can share one VPC across - * multiple Account API network configurations. However, you **cannot** - * reuse subnets or Security Groups between workspaces. Because a Databricks - * Account API network configuration encapsulates this information, you - * cannot reuse a Databricks Account API network configuration across - * workspaces. If you plan to share one VPC with multiple workspaces, make - * sure you size your VPC and subnets accordingly. For information about how - * to create a new workspace with this API, see [Create a new workspace - * using the Account API]. - * - * This operation is available only if your account is on the E2 version of - * the platform. - * - * [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html - * [Customer-managed VPC]: http://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html + * Creates a Databricks network configuration that represents an VPC and its + * resources. The VPC will be used for new Databricks clusters. This + * requires a pre-existing VPC and subnets. */ Network create(CreateNetworkRequest createNetworkRequest); /** - * Delete network configuration. + * Delete a network configuration. * - * Deletes a Databricks network configuration, which represents an AWS VPC + * Deletes a Databricks network configuration, which represents a cloud VPC * and its resources. You cannot delete a network that is associated with a * workspace. * @@ -59,14 +40,8 @@ public interface NetworksService { /** * Get a network configuration. * - * Gets a Databricks network configuration, which represents an AWS VPC and - * its resources. This requires a pre-existing VPC and subnets. For VPC - * requirements, see [Customer-managed VPC]. - * - * This operation is available only if your account is on the E2 version of - * the platform. - * - * [Customer-managed VPC]: http://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html + * Gets a Databricks network configuration, which represents a cloud VPC and + * its resources. */ Network get(GetNetworkRequest getNetworkRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Workspace.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Workspace.java index 4582148d5..51bf0f59e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Workspace.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/Workspace.java @@ -34,8 +34,8 @@ public class Workspace { * The general workspace configurations that are specific to cloud * providers. */ - @JsonProperty("cloud_resource_bucket") - private CloudResourceBucket cloudResourceBucket; + @JsonProperty("cloud_resource_container") + private CloudResourceContainer cloudResourceContainer; /** * Time in epoch milliseconds when the workspace was created. @@ -60,6 +60,40 @@ public class Workspace { @JsonProperty("deployment_name") private String deploymentName; + /** + * The network settings for the workspace. The configurations are only for + * Databricks-managed VPCs. It is ignored if you specify a customer-managed + * VPC in the `network_id` field.", All the IP range configurations must be + * mutually exclusive. An attempt to create a workspace fails if Databricks + * detects an IP range overlap. + * + * Specify custom IP ranges in CIDR format. The IP ranges for these fields + * must not overlap, and all IP addresses must be entirely within the + * following ranges: `10.0.0.0/8`, `100.64.0.0/10`, `172.16.0.0/12`, + * `192.168.0.0/16`, and `240.0.0.0/4`. + * + * The sizes of these IP ranges affect the maximum number of nodes for the + * workspace. + * + * **Important**: Confirm the IP ranges used by your Databricks workspace + * before creating the workspace. You cannot change them after your + * workspace is deployed. If the IP address ranges for your Databricks are + * too small, IP exhaustion can occur, causing your Databricks jobs to fail. + * To determine the address range sizes that you need, Databricks provides a + * calculator as a Microsoft Excel spreadsheet. See [calculate subnet sizes + * for a new workspace]. + * + * [calculate subnet sizes for a new workspace]: https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/network-sizing.html + */ + @JsonProperty("gcp_managed_network_config") + private GcpManagedNetworkConfig gcpManagedNetworkConfig; + + /** + * The configurations for the GKE cluster of a Databricks workspace. + */ + @JsonProperty("gke_config") + private GkeConfig gkeConfig; + /** * The Google Cloud region of the workspace data plane in your Google * account (for example, `us-east4`). @@ -74,10 +108,11 @@ public class Workspace { private String managedServicesCustomerManagedKeyId; /** - + * The network configuration ID that is attached to the workspace. This + * field is available only if the network is a customer-managed network. */ - @JsonProperty("network") - private GcpNetwork network; + @JsonProperty("network_id") + private String networkId; /** * The pricing tier of the workspace. For pricing tier information, see [AWS @@ -117,7 +152,7 @@ public class Workspace { private String storageCustomerManagedKeyId; /** - * Workspace ID. + * A unique integer ID for the workspace */ @JsonProperty("workspace_id") private Long workspaceId; @@ -169,13 +204,13 @@ public String getCloud() { return cloud; } - public Workspace setCloudResourceBucket(CloudResourceBucket cloudResourceBucket) { - this.cloudResourceBucket = cloudResourceBucket; + public Workspace setCloudResourceContainer(CloudResourceContainer cloudResourceContainer) { + this.cloudResourceContainer = cloudResourceContainer; return this; } - public CloudResourceBucket getCloudResourceBucket() { - return cloudResourceBucket; + public CloudResourceContainer getCloudResourceContainer() { + return cloudResourceContainer; } public Workspace setCreationTime(Long creationTime) { @@ -205,6 +240,24 @@ public String getDeploymentName() { return deploymentName; } + public Workspace setGcpManagedNetworkConfig(GcpManagedNetworkConfig gcpManagedNetworkConfig) { + this.gcpManagedNetworkConfig = gcpManagedNetworkConfig; + return this; + } + + public GcpManagedNetworkConfig getGcpManagedNetworkConfig() { + return gcpManagedNetworkConfig; + } + + public Workspace setGkeConfig(GkeConfig gkeConfig) { + this.gkeConfig = gkeConfig; + return this; + } + + public GkeConfig getGkeConfig() { + return gkeConfig; + } + public Workspace setLocation(String location) { this.location = location; return this; @@ -223,13 +276,13 @@ public String getManagedServicesCustomerManagedKeyId() { return managedServicesCustomerManagedKeyId; } - public Workspace setNetwork(GcpNetwork network) { - this.network = network; + public Workspace setNetworkId(String networkId) { + this.networkId = networkId; return this; } - public GcpNetwork getNetwork() { - return network; + public String getNetworkId() { + return networkId; } public Workspace setPricingTier(PricingTier pricingTier) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesAPI.java index 208d3c205..bab483a29 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesAPI.java @@ -33,13 +33,7 @@ public WorkspacesAPI(ApiClient apiClient) { /** * Create a new workspace. * - * Creates a new workspace using a credential configuration and a storage - * configuration, an optional network configuration (if using a - * customer-managed VPC), an optional managed services key configuration (if - * using customer-managed keys for managed services), and an optional - * storage key configuration (if using customer-managed keys for storage). - * The key configurations used for managed services and storage encryption - * can be the same or different. + * Creates a new workspace. * * **Important**: This operation is asynchronous. A response with HTTP * status code 200 means the request has been accepted and is in progress, @@ -49,26 +43,6 @@ public WorkspacesAPI(ApiClient apiClient) { * new workspace and make repeated `GET` requests with the workspace ID and * check its status. The workspace becomes available when the status changes * to `RUNNING`. - * - * You can share one customer-managed VPC with multiple workspaces in a - * single account. It is not required to create a new VPC for each - * workspace. However, you **cannot** reuse subnets or Security Groups - * between workspaces. If you plan to share one VPC with multiple - * workspaces, make sure you size your VPC and subnets accordingly. Because - * a Databricks Account API network configuration encapsulates this - * information, you cannot reuse a Databricks Account API network - * configuration across workspaces.\nFor information about how to create a - * new workspace with this API **including error handling**, see [Create a - * new workspace using the Account API]. - * - * **Important**: Customer-managed VPCs, PrivateLink, and customer-managed - * keys are supported on a limited set of deployment and subscription types. - * If you have questions about availability, contact your Databricks - * representative.\n\nThis operation is available only if your account is on - * the E2 version of the platform or on a select custom plan that allows - * multiple workspaces per account. - * - * [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html */ @Override public Workspace create(CreateWorkspaceRequest request) { @@ -77,7 +51,7 @@ public Workspace create(CreateWorkspaceRequest request) { } /** - * Delete workspace. + * Delete a workspace. * * Terminates and deletes a Databricks workspace. From an API perspective, * deletion is immediate. However, it might take a few minutes for all @@ -95,7 +69,7 @@ public void delete(DeleteWorkspaceRequest request) { } /** - * Get workspace. + * Get a workspace. * * Gets information including status for a Databricks workspace, specified * by ID. In the response, the `workspace_status` field indicates the diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesService.java index 78cac0e5c..1c2f4e33e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/deployment/WorkspacesService.java @@ -25,13 +25,7 @@ public interface WorkspacesService { /** * Create a new workspace. * - * Creates a new workspace using a credential configuration and a storage - * configuration, an optional network configuration (if using a - * customer-managed VPC), an optional managed services key configuration (if - * using customer-managed keys for managed services), and an optional - * storage key configuration (if using customer-managed keys for storage). - * The key configurations used for managed services and storage encryption - * can be the same or different. + * Creates a new workspace. * * **Important**: This operation is asynchronous. A response with HTTP * status code 200 means the request has been accepted and is in progress, @@ -41,31 +35,11 @@ public interface WorkspacesService { * new workspace and make repeated `GET` requests with the workspace ID and * check its status. The workspace becomes available when the status changes * to `RUNNING`. - * - * You can share one customer-managed VPC with multiple workspaces in a - * single account. It is not required to create a new VPC for each - * workspace. However, you **cannot** reuse subnets or Security Groups - * between workspaces. If you plan to share one VPC with multiple - * workspaces, make sure you size your VPC and subnets accordingly. Because - * a Databricks Account API network configuration encapsulates this - * information, you cannot reuse a Databricks Account API network - * configuration across workspaces.\nFor information about how to create a - * new workspace with this API **including error handling**, see [Create a - * new workspace using the Account API]. - * - * **Important**: Customer-managed VPCs, PrivateLink, and customer-managed - * keys are supported on a limited set of deployment and subscription types. - * If you have questions about availability, contact your Databricks - * representative.\n\nThis operation is available only if your account is on - * the E2 version of the platform or on a select custom plan that allows - * multiple workspaces per account. - * - * [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html */ Workspace create(CreateWorkspaceRequest createWorkspaceRequest); /** - * Delete workspace. + * Delete a workspace. * * Terminates and deletes a Databricks workspace. From an API perspective, * deletion is immediate. However, it might take a few minutes for all @@ -79,7 +53,7 @@ public interface WorkspacesService { void delete(DeleteWorkspaceRequest deleteWorkspaceRequest); /** - * Get workspace. + * Get a workspace. * * Gets information including status for a Databricks workspace, specified * by ID. In the response, the `workspace_status` field indicates the diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsAPI.java index abd00fed2..ea67d28b8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsAPI.java @@ -12,8 +12,7 @@ import com.databricks.sdk.client.DatabricksException; /** - * The IP Access List API enables Databricks admins to configure IP access lists - * for a workspace. + * IP Access List enables admins to configure IP access lists. * * IP access lists affect web application access and REST API access to this * workspace only. If the feature is disabled for a workspace, all access is @@ -46,9 +45,11 @@ public IpAccessListsAPI(ApiClient apiClient) { /** * Create access list. * - * Creates an IP access list for this workspace. A list can be an allow list - * or a block list. See the top of this file for a description of how the - * server treats allow lists and block lists at runtime. + * Creates an IP access list for this workspace. + * + * A list can be an allow list or a block list. See the top of this file for + * a description of how the server treats allow lists and block lists at + * runtime. * * When creating or updating an IP access list: * @@ -105,17 +106,19 @@ public GetIpAccessListResponse list() { /** * Replace access list. * - * Replaces an IP access list, specified by its ID. A list can include allow - * lists and block lists. See the top of this file for a description of how - * the server treats allow lists and block lists at run time. When replacing - * an IP access list: * For all allow lists and block lists combined, the - * API supports a maximum of 1000 IP/CIDR values, where one CIDR counts as a - * single value. Attempts to exceed that number return error 400 with - * `error_code` value `QUOTA_EXCEEDED`. * If the resulting list would block - * the calling user's current IP, error 400 is returned with `error_code` - * value `INVALID_STATE`. It can take a few minutes for the changes to take - * effect. Note that your resulting IP access list has no effect until you - * enable the feature. See :method:workspaceconf/setStatus. + * Replaces an IP access list, specified by its ID. + * + * A list can include allow lists and block lists. See the top of this file + * for a description of how the server treats allow lists and block lists at + * run time. When replacing an IP access list: * For all allow lists and + * block lists combined, the API supports a maximum of 1000 IP/CIDR values, + * where one CIDR counts as a single value. Attempts to exceed that number + * return error 400 with `error_code` value `QUOTA_EXCEEDED`. * If the + * resulting list would block the calling user's current IP, error 400 is + * returned with `error_code` value `INVALID_STATE`. It can take a few + * minutes for the changes to take effect. Note that your resulting IP + * access list has no effect until you enable the feature. See + * :method:workspaceconf/setStatus. */ @Override public void replace(ReplaceIpAccessList request) { @@ -126,10 +129,11 @@ public void replace(ReplaceIpAccessList request) { /** * Update access list. * - * Updates an existing IP access list, specified by its ID. A list can - * include allow lists and block lists. See the top of this file for a - * description of how the server treats allow lists and block lists at run - * time. + * Updates an existing IP access list, specified by its ID. + * + * A list can include allow lists and block lists. See the top of this file + * for a description of how the server treats allow lists and block lists at + * run time. * * When updating an IP access list: * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsService.java index 0424812ea..4cb52b2a5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/IpAccessListsService.java @@ -6,8 +6,7 @@ import java.util.Map; /** - * The IP Access List API enables Databricks admins to configure IP access lists - * for a workspace. + * IP Access List enables admins to configure IP access lists. * * IP access lists affect web application access and REST API access to this * workspace only. If the feature is disabled for a workspace, all access is @@ -38,9 +37,11 @@ public interface IpAccessListsService { /** * Create access list. * - * Creates an IP access list for this workspace. A list can be an allow list - * or a block list. See the top of this file for a description of how the - * server treats allow lists and block lists at runtime. + * Creates an IP access list for this workspace. + * + * A list can be an allow list or a block list. See the top of this file for + * a description of how the server treats allow lists and block lists at + * runtime. * * When creating or updating an IP access list: * @@ -81,27 +82,30 @@ public interface IpAccessListsService { /** * Replace access list. * - * Replaces an IP access list, specified by its ID. A list can include allow - * lists and block lists. See the top of this file for a description of how - * the server treats allow lists and block lists at run time. When replacing - * an IP access list: * For all allow lists and block lists combined, the - * API supports a maximum of 1000 IP/CIDR values, where one CIDR counts as a - * single value. Attempts to exceed that number return error 400 with - * `error_code` value `QUOTA_EXCEEDED`. * If the resulting list would block - * the calling user's current IP, error 400 is returned with `error_code` - * value `INVALID_STATE`. It can take a few minutes for the changes to take - * effect. Note that your resulting IP access list has no effect until you - * enable the feature. See :method:workspaceconf/setStatus. + * Replaces an IP access list, specified by its ID. + * + * A list can include allow lists and block lists. See the top of this file + * for a description of how the server treats allow lists and block lists at + * run time. When replacing an IP access list: * For all allow lists and + * block lists combined, the API supports a maximum of 1000 IP/CIDR values, + * where one CIDR counts as a single value. Attempts to exceed that number + * return error 400 with `error_code` value `QUOTA_EXCEEDED`. * If the + * resulting list would block the calling user's current IP, error 400 is + * returned with `error_code` value `INVALID_STATE`. It can take a few + * minutes for the changes to take effect. Note that your resulting IP + * access list has no effect until you enable the feature. See + * :method:workspaceconf/setStatus. */ void replace(ReplaceIpAccessList replaceIpAccessList); /** * Update access list. * - * Updates an existing IP access list, specified by its ID. A list can - * include allow lists and block lists. See the top of this file for a - * description of how the server treats allow lists and block lists at run - * time. + * Updates an existing IP access list, specified by its ID. + * + * A list can include allow lists and block lists. See the top of this file + * for a description of how the server treats allow lists and block lists at + * run time. * * When updating an IP access list: * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/ListType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/ListType.java index b598ca3dc..704fadfed 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/ListType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ipaccesslists/ListType.java @@ -15,6 +15,6 @@ public enum ListType{ ALLOW,// An allow list. Include this IP or range. BLOCK,// A block list. Exclude this IP or range. IP addresses in the block list are -// excluded even if they are included in an allow list.", +// excluded even if they are included in an allow list. } \ No newline at end of file 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 5761ea289..190cd6b3f 100755 --- 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 @@ -18,6 +18,14 @@ public class CreateJob { @JsonProperty("access_control_list") private java.util.List accessControlList; + /** + * An optional continuous property for this job. The continuous property + * will ensure that there is always one run executing. Only one of + * `schedule` and `continuous` can be used. + */ + @JsonProperty("continuous") + private Continuous continuous; + /** * An optional set of email addresses that is notified when runs of this job * begin or complete as well as when this job is deleted. The default @@ -122,6 +130,15 @@ public CreateJob setAccessControlList(java.util.List return accessControlList; } + public CreateJob setContinuous(Continuous continuous) { + this.continuous = continuous; + return this; + } + + public Continuous getContinuous() { + return continuous; + } + public CreateJob setEmailNotifications(JobEmailNotifications emailNotifications) { this.emailNotifications = emailNotifications; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/DbtTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/DbtTask.java index 38323515e..5517a3023 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/DbtTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/DbtTask.java @@ -12,6 +12,15 @@ @Generated("databricks-sdk-generator") public class DbtTask { + /** + * Optional name of the catalog to use. The value is the top level in the + * 3-level namespace of Unity Catalog (catalog / schema / relation). The + * catalog value can only be specified if a warehouse_id is specified. + * Requires dbt-databricks >= 1.1.1. + */ + @JsonProperty("catalog") + private String catalog; + /** * A list of dbt commands to execute. All commands must start with `dbt`. * This parameter must not be empty. A maximum of up to 10 commands can be @@ -52,6 +61,15 @@ public class DbtTask { @JsonProperty("warehouse_id") private String warehouseId; + public DbtTask setCatalog(String catalog) { + this.catalog = catalog; + return this; + } + + public String getCatalog() { + return catalog; + } + public DbtTask setCommands(java.util.List commands) { this.commands = commands; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java index 5cf5205e9..9a6b59b9d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java @@ -12,6 +12,14 @@ @Generated("databricks-sdk-generator") public class JobSettings { + /** + * An optional continuous property for this job. The continuous property + * will ensure that there is always one run executing. Only one of + * `schedule` and `continuous` can be used. + */ + @JsonProperty("continuous") + private Continuous continuous; + /** * An optional set of email addresses that is notified when runs of this job * begin or complete as well as when this job is deleted. The default @@ -107,6 +115,15 @@ public class JobSettings { @JsonProperty("webhook_notifications") private JobWebhookNotifications webhookNotifications; + public JobSettings setContinuous(Continuous continuous) { + this.continuous = continuous; + return this; + } + + public Continuous getContinuous() { + return continuous; + } + public JobSettings setEmailNotifications(JobEmailNotifications emailNotifications) { this.emailNotifications = emailNotifications; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListJobsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListJobsResponse.java index fea188f89..4ac339ba8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListJobsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListJobsResponse.java @@ -22,7 +22,7 @@ public class ListJobsResponse { * The list of jobs. */ @JsonProperty("jobs") - private java.util.List jobs; + private java.util.List jobs; public ListJobsResponse setHasMore(Boolean hasMore) { this.hasMore = hasMore; @@ -33,12 +33,12 @@ public Boolean getHasMore() { return hasMore; } - public ListJobsResponse setJobs(java.util.List jobs) { + public ListJobsResponse setJobs(java.util.List jobs) { this.jobs = jobs; return this; } - public java.util.List getJobs() { + public java.util.List getJobs() { return jobs; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRuns.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRuns.java index b2501892d..be53d4c27 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRuns.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRuns.java @@ -60,7 +60,7 @@ public class ListRuns { /** * The type of runs to return. For a description of run types, see - * :method:getRun. + * :method:jobs/getRun. */ @QueryParam("run_type") private ListRunsRunType runType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsResponse.java index a73fd9741..9385a92a2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsResponse.java @@ -23,7 +23,7 @@ public class ListRunsResponse { * A list of runs, from most recently started to least. */ @JsonProperty("runs") - private java.util.List runs; + private java.util.List runs; public ListRunsResponse setHasMore(Boolean hasMore) { this.hasMore = hasMore; @@ -34,12 +34,12 @@ public Boolean getHasMore() { return hasMore; } - public ListRunsResponse setRuns(java.util.List runs) { + public ListRunsResponse setRuns(java.util.List runs) { this.runs = runs; return this; } - public java.util.List getRuns() { + public java.util.List getRuns() { return runs; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRunType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRunType.java index d7c066d78..3221e508a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRunType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRunType.java @@ -13,8 +13,8 @@ * This describes an enum */ public enum ListRunsRunType{ - JOB_RUN,// Normal job run. A run created with :method:runNow. - SUBMIT_RUN,// Submit run. A run created with :method:submit. + JOB_RUN,// Normal job run. A run created with :method:jobs/runNow. + SUBMIT_RUN,// Submit run. A run created with :method:jobs/submit. WORKFLOW_RUN,// Workflow run. A run created with // [dbutils.notebook.run](/dev-tools/databricks-utils.html#dbutils-workflow). diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/NotebookTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/NotebookTask.java index 212756f1d..8a45982a1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/NotebookTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/NotebookTask.java @@ -14,8 +14,8 @@ public class NotebookTask { /** * Base parameters to be used for each run of this job. If the run is - * initiated by a call to :method:runNow with parameters specified, the two - * parameters maps are merged. If the same key is specified in + * initiated by a call to :method:jobs/runNow with parameters specified, the + * two parameters maps are merged. If the same key is specified in * `base_parameters` and in `run-now`, the value from `run-now` is used. * * Use [Task parameter variables] to set parameters containing information diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java index fa479099a..17fb917dc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java @@ -49,6 +49,12 @@ public class Run { @JsonProperty("cluster_spec") private ClusterSpec clusterSpec; + /** + * The continuous trigger that triggered this run. + */ + @JsonProperty("continuous") + private Continuous continuous; + /** * The creator user name. This field won’t be included in the response if * the user has already been deleted. @@ -197,7 +203,7 @@ public class Run { private java.util.List tasks; /** - * The type of trigger that fired this run. + * This describes an enum */ @JsonProperty("trigger") private TriggerType trigger; @@ -238,6 +244,15 @@ public ClusterSpec getClusterSpec() { return clusterSpec; } + public Run setContinuous(Continuous continuous) { + this.continuous = continuous; + return this; + } + + public Continuous getContinuous() { + return continuous; + } + public Run setCreatorUserName(String creatorUserName) { this.creatorUserName = creatorUserName; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunOutput.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunOutput.java index 7fa4628ee..316dc62e8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunOutput.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunOutput.java @@ -35,11 +35,10 @@ public class RunOutput { /** * The output from tasks that write to standard streams (stdout/stderr) such - * as :schema:sparkjartask, :schema:sparkpythontask, - * :schema:pythonwheeltask. + * as spark_jar_task, spark_python_task, python_wheel_task. * - * It's not supported for the :schema:notebooktask, :schema:pipelinetask or - * :schema:sparksubmittask. + * It's not supported for the notebook_task, pipeline_task or + * spark_submit_task. * * Databricks restricts this API to return the last 5 MB of these logs. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunType.java index f85a02bc0..0ef74c274 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunType.java @@ -13,8 +13,8 @@ * This describes an enum */ public enum RunType{ - JOB_RUN,// Normal job run. A run created with :method:runNow. - SUBMIT_RUN,// Submit run. A run created with :method:submit. + JOB_RUN,// Normal job run. A run created with :method:jobs/runNow. + SUBMIT_RUN,// Submit run. A run created with :method:jobs/submit. WORKFLOW_RUN,// Workflow run. A run created with // [dbutils.notebook.run](/dev-tools/databricks-utils.html#dbutils-workflow). diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkJarTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkJarTask.java index 88dfa511d..af0e926a2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkJarTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SparkJarTask.java @@ -14,7 +14,7 @@ public class SparkJarTask { /** * Deprecated since 04/2016\\. Provide a `jar` through the `libraries` field - * instead. For an example, see :method:create. + * instead. For an example, see :method:jobs/create. */ @JsonProperty("jar_uri") private String jarUri; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlAlertOutput.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlAlertOutput.java index 8d3141e31..a4d0bfb8c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlAlertOutput.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlAlertOutput.java @@ -12,6 +12,16 @@ @Generated("databricks-sdk-generator") public class SqlAlertOutput { + /** + * The state of the SQL alert. + * + * * UNKNOWN: alert yet to be evaluated * OK: alert evaluated and did not + * fulfill trigger conditions * TRIGGERED: alert evaluated and fulfilled + * trigger conditions + */ + @JsonProperty("alert_state") + private SqlAlertState alertState; + /** * The link to find the output results. */ @@ -29,7 +39,7 @@ public class SqlAlertOutput { * Information about SQL statements executed in the run. */ @JsonProperty("sql_statements") - private SqlStatementOutput sqlStatements; + private java.util.List sqlStatements; /** * The canonical identifier of the SQL warehouse. @@ -37,6 +47,15 @@ public class SqlAlertOutput { @JsonProperty("warehouse_id") private String warehouseId; + public SqlAlertOutput setAlertState(SqlAlertState alertState) { + this.alertState = alertState; + return this; + } + + public SqlAlertState getAlertState() { + return alertState; + } + public SqlAlertOutput setOutputLink(String outputLink) { this.outputLink = outputLink; return this; @@ -55,12 +74,12 @@ public String getQueryText() { return queryText; } - public SqlAlertOutput setSqlStatements(SqlStatementOutput sqlStatements) { + public SqlAlertOutput setSqlStatements(java.util.List sqlStatements) { this.sqlStatements = sqlStatements; return this; } - public SqlStatementOutput getSqlStatements() { + public java.util.List getSqlStatements() { return sqlStatements; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardOutput.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardOutput.java index d710646f0..05c238eaa 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardOutput.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlDashboardOutput.java @@ -12,12 +12,27 @@ @Generated("databricks-sdk-generator") public class SqlDashboardOutput { + /** + * The canonical identifier of the SQL warehouse. + */ + @JsonProperty("warehouse_id") + private String warehouseId; + /** * Widgets executed in the run. Only SQL query based widgets are listed. */ @JsonProperty("widgets") private SqlDashboardWidgetOutput widgets; + public SqlDashboardOutput setWarehouseId(String warehouseId) { + this.warehouseId = warehouseId; + return this; + } + + public String getWarehouseId() { + return warehouseId; + } + public SqlDashboardOutput setWidgets(SqlDashboardWidgetOutput widgets) { this.widgets = widgets; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlQueryOutput.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlQueryOutput.java index 80e823706..a2c88b5b5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlQueryOutput.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlQueryOutput.java @@ -29,7 +29,7 @@ public class SqlQueryOutput { * Information about SQL statements executed in the run. */ @JsonProperty("sql_statements") - private SqlStatementOutput sqlStatements; + private java.util.List sqlStatements; /** * The canonical identifier of the SQL warehouse. @@ -55,12 +55,12 @@ public String getQueryText() { return queryText; } - public SqlQueryOutput setSqlStatements(SqlStatementOutput sqlStatements) { + public SqlQueryOutput setSqlStatements(java.util.List sqlStatements) { this.sqlStatements = sqlStatements; return this; } - public SqlStatementOutput getSqlStatements() { + public java.util.List getSqlStatements() { return sqlStatements; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskAlert.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskAlert.java index ea3cf7f92..0269fdd0a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskAlert.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskAlert.java @@ -18,6 +18,18 @@ public class SqlTaskAlert { @JsonProperty("alert_id") private String alertId; + /** + * If true, the alert notifications are not sent to subscribers. + */ + @JsonProperty("pause_subscriptions") + private Boolean pauseSubscriptions; + + /** + * If specified, alert notifications are sent to subscribers. + */ + @JsonProperty("subscriptions") + private java.util.List subscriptions; + public SqlTaskAlert setAlertId(String alertId) { this.alertId = alertId; return this; @@ -27,4 +39,22 @@ public String getAlertId() { return alertId; } + public SqlTaskAlert setPauseSubscriptions(Boolean pauseSubscriptions) { + this.pauseSubscriptions = pauseSubscriptions; + return this; + } + + public Boolean getPauseSubscriptions() { + return pauseSubscriptions; + } + + public SqlTaskAlert setSubscriptions(java.util.List subscriptions) { + this.subscriptions = subscriptions; + return this; + } + + public java.util.List getSubscriptions() { + return subscriptions; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskDashboard.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskDashboard.java index d9f579c8d..375caadde 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskDashboard.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskDashboard.java @@ -12,12 +12,40 @@ @Generated("databricks-sdk-generator") public class SqlTaskDashboard { + /** + * Subject of the email sent to subscribers of this task. + */ + @JsonProperty("custom_subject") + private String customSubject; + /** * The canonical identifier of the SQL dashboard. */ @JsonProperty("dashboard_id") private String dashboardId; + /** + * If true, the dashboard snapshot is not taken, and emails are not sent to + * subscribers. + */ + @JsonProperty("pause_subscriptions") + private Boolean pauseSubscriptions; + + /** + * If specified, dashboard snapshots are sent to subscriptions. + */ + @JsonProperty("subscriptions") + private java.util.List subscriptions; + + public SqlTaskDashboard setCustomSubject(String customSubject) { + this.customSubject = customSubject; + return this; + } + + public String getCustomSubject() { + return customSubject; + } + public SqlTaskDashboard setDashboardId(String dashboardId) { this.dashboardId = dashboardId; return this; @@ -27,4 +55,22 @@ public String getDashboardId() { return dashboardId; } + public SqlTaskDashboard setPauseSubscriptions(Boolean pauseSubscriptions) { + this.pauseSubscriptions = pauseSubscriptions; + return this; + } + + public Boolean getPauseSubscriptions() { + return pauseSubscriptions; + } + + public SqlTaskDashboard setSubscriptions(java.util.List subscriptions) { + this.subscriptions = subscriptions; + return this; + } + + public java.util.List getSubscriptions() { + return subscriptions; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Alert.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Alert.java index 0979eb535..40cccccfc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Alert.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Alert.java @@ -42,6 +42,13 @@ public class Alert { @JsonProperty("options") private AlertOptions options; + /** + * The identifier of the parent folder containing the alert. Available for + * alerts in workspace. + */ + @JsonProperty("parent") + private String parent; + /** */ @@ -121,6 +128,15 @@ public AlertOptions getOptions() { return options; } + public Alert setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + public Alert setQuery(Query query) { this.query = query; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java index c5ed8600c..da7f0becd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java @@ -16,6 +16,10 @@ * a Databricks SQL object that periodically runs a query, evaluates a condition * of its result, and notifies one or more users and/or alert destinations if * the condition was met. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks SQL + * API are deprecated. Alert refresh schedules can be created, updated, fetched + * and deleted using Jobs API, e.g. :method:jobs/create. */ @Generated("databricks-sdk-generator") public class AlertsAPI implements AlertsService { @@ -33,17 +37,20 @@ public AlertsAPI(ApiClient apiClient) { * alert destinations if the condition was met. */ @Override - public Alert create(EditAlert request) { + public Alert create(CreateAlert request) { String path = "/api/2.0/preview/sql/alerts"; return apiClient.POST(path, request, Alert.class); } /** - * Create a refresh schedule. + * [DEPRECATED] Create a refresh schedule. * * Creates a new refresh schedule for an alert. * * **Note:** The structure of refresh schedules is subject to change. + * + * **Note:** This API is deprecated: Use :method:jobs/create to create a job + * with the alert. */ @Override public RefreshSchedule createSchedule(CreateRefreshSchedule request) { @@ -65,10 +72,13 @@ public void delete(DeleteAlertRequest request) { } /** - * Delete a refresh schedule. + * [DEPRECATED] Delete a refresh schedule. * * Deletes an alert's refresh schedule. The refresh schedule specifies when * to refresh and evaluate the associated query result. + * + * **Note:** This API is deprecated: Use :method:jobs/delete to delete a job + * for the alert. */ @Override public void deleteSchedule(DeleteScheduleRequest request) { @@ -88,13 +98,16 @@ public Alert get(GetAlertRequest request) { } /** - * Get an alert's subscriptions. + * [DEPRECATED] Get an alert's subscriptions. * * Get the subscriptions for an alert. An alert subscription represents * exactly one recipient being notified whenever the alert is triggered. The * alert recipient is specified by either the `user` field or the * `destination` field. The `user` field is ignored if `destination` is * non-`null`. + * + * **Note:** This API is deprecated: Use :method:jobs/get to get the + * subscriptions associated with a job for an alert. */ @Override public List getSubscriptions(GetSubscriptionsRequest request) { @@ -114,7 +127,7 @@ public List list() { } /** - * Get refresh schedules. + * [DEPRECATED] Get refresh schedules. * * Gets the refresh schedules for the specified alert. Alerts can have * refresh schedules that specify when to refresh and evaluate the @@ -123,6 +136,9 @@ public List list() { * **Note:** Although refresh schedules are returned in a list, only one * refresh schedule per alert is currently supported. The structure of * refresh schedules is subject to change. + * + * **Note:** This API is deprecated: Use :method:jobs/list to list jobs and + * filter by the alert. */ @Override public List listSchedules(ListSchedulesRequest request) { @@ -131,7 +147,10 @@ public List listSchedules(ListSchedulesRequest request) { } /** - * Subscribe to an alert. + * [DEPRECATED] Subscribe to an alert. + * + * **Note:** This API is deprecated: Use :method:jobs/update to subscribe to + * a job for an alert. */ @Override public Subscription subscribe(CreateSubscription request) { @@ -140,9 +159,12 @@ public Subscription subscribe(CreateSubscription request) { } /** - * Unsubscribe to an alert. + * [DEPRECATED] Unsubscribe to an alert. * * Unsubscribes a user or a destination to an alert. + * + * **Note:** This API is deprecated: Use :method:jobs/update to unsubscribe + * to a job for an alert. */ @Override public void unsubscribe(UnsubscribeRequest request) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsService.java index 0e973a723..a54107ac8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsService.java @@ -10,6 +10,10 @@ * a Databricks SQL object that periodically runs a query, evaluates a condition * of its result, and notifies one or more users and/or alert destinations if * the condition was met. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks SQL + * API are deprecated. Alert refresh schedules can be created, updated, fetched + * and deleted using Jobs API, e.g. :method:jobs/create. * * This is the high-level interface, that contains generated methods. * @@ -24,14 +28,17 @@ public interface AlertsService { * runs a query, evaluates a condition of its result, and notifies users or * alert destinations if the condition was met. */ - Alert create(EditAlert editAlert); + Alert create(CreateAlert createAlert); /** - * Create a refresh schedule. + * [DEPRECATED] Create a refresh schedule. * * Creates a new refresh schedule for an alert. * * **Note:** The structure of refresh schedules is subject to change. + * + * **Note:** This API is deprecated: Use :method:jobs/create to create a job + * with the alert. */ RefreshSchedule createSchedule(CreateRefreshSchedule createRefreshSchedule); @@ -45,10 +52,13 @@ public interface AlertsService { void delete(DeleteAlertRequest deleteAlertRequest); /** - * Delete a refresh schedule. + * [DEPRECATED] Delete a refresh schedule. * * Deletes an alert's refresh schedule. The refresh schedule specifies when * to refresh and evaluate the associated query result. + * + * **Note:** This API is deprecated: Use :method:jobs/delete to delete a job + * for the alert. */ void deleteSchedule(DeleteScheduleRequest deleteScheduleRequest); @@ -60,13 +70,16 @@ public interface AlertsService { Alert get(GetAlertRequest getAlertRequest); /** - * Get an alert's subscriptions. + * [DEPRECATED] Get an alert's subscriptions. * * Get the subscriptions for an alert. An alert subscription represents * exactly one recipient being notified whenever the alert is triggered. The * alert recipient is specified by either the `user` field or the * `destination` field. The `user` field is ignored if `destination` is * non-`null`. + * + * **Note:** This API is deprecated: Use :method:jobs/get to get the + * subscriptions associated with a job for an alert. */ List getSubscriptions(GetSubscriptionsRequest getSubscriptionsRequest); @@ -78,7 +91,7 @@ public interface AlertsService { List list(); /** - * Get refresh schedules. + * [DEPRECATED] Get refresh schedules. * * Gets the refresh schedules for the specified alert. Alerts can have * refresh schedules that specify when to refresh and evaluate the @@ -87,18 +100,27 @@ public interface AlertsService { * **Note:** Although refresh schedules are returned in a list, only one * refresh schedule per alert is currently supported. The structure of * refresh schedules is subject to change. + * + * **Note:** This API is deprecated: Use :method:jobs/list to list jobs and + * filter by the alert. */ List listSchedules(ListSchedulesRequest listSchedulesRequest); /** - * Subscribe to an alert. + * [DEPRECATED] Subscribe to an alert. + * + * **Note:** This API is deprecated: Use :method:jobs/update to subscribe to + * a job for an alert. */ Subscription subscribe(CreateSubscription createSubscription); /** - * Unsubscribe to an alert. + * [DEPRECATED] Unsubscribe to an alert. * * Unsubscribes a user or a destination to an alert. + * + * **Note:** This API is deprecated: Use :method:jobs/update to unsubscribe + * to a job for an alert. */ void unsubscribe(UnsubscribeRequest unsubscribeRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java index fe873a6ba..105ce5cb7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java @@ -9,9 +9,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -/** - * Name of the channel - */ + public enum ChannelName{ CHANNEL_NAME_CURRENT, CHANNEL_NAME_CUSTOM, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateDashboardRequest.java index 882336ec2..530083796 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateDashboardRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateDashboardRequest.java @@ -41,6 +41,13 @@ public class CreateDashboardRequest { @JsonProperty("name") private String name; + /** + * The identifier of the workspace folder containing the dashboard. The + * default is the user's home folder. + */ + @JsonProperty("parent") + private String parent; + /** */ @@ -92,6 +99,15 @@ public String getName() { return name; } + public CreateDashboardRequest setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + public CreateDashboardRequest setTags(java.util.List tags) { this.tags = tags; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java index b46fbf568..c8f5f5a46 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java @@ -77,6 +77,13 @@ public class Dashboard { @JsonProperty("options") private DashboardOptions options; + /** + * The identifier of the parent folder containing the dashboard. Available + * for dashboards in workspace. + */ + @JsonProperty("parent") + private String parent; + /** * This describes an enum */ @@ -201,6 +208,15 @@ public DashboardOptions getOptions() { return options; } + public Dashboard setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + public Dashboard setPermissionTier(PermissionLevel permissionTier) { this.permissionTier = permissionTier; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java index e9fa003db..c25285ef1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java @@ -17,6 +17,10 @@ * query IDs. The API can also be used to duplicate multiple dashboards at once * since you can get a dashboard definition with a GET request and then POST it * to create a new one. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks SQL + * API are deprecated. Dashboard refresh schedules can be created, updated, + * fetched and deleted using Jobs API, e.g. :method:jobs/create. */ @Generated("databricks-sdk-generator") public class DashboardsAPI implements DashboardsService { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java index 9dd9d5c85..4b0ec26dc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java @@ -11,6 +11,10 @@ * query IDs. The API can also be used to duplicate multiple dashboards at once * since you can get a dashboard definition with a GET request and then POST it * to create a new one. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks SQL + * API are deprecated. Dashboard refresh schedules can be created, updated, + * fetched and deleted using Jobs API, e.g. :method:jobs/create. * * This is the high-level interface, that contains generated methods. * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java index f69a25d9c..6b0bddc2b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java @@ -13,9 +13,9 @@ /** * The SQL Permissions API is similar to the endpoints of the - * :method:permissions/setobjectpermissions. However, this exposes only one - * endpoint, which gets the Access Control List for a given object. You cannot - * modify any permissions using this API. + * :method:permissions/set. However, this exposes only one endpoint, which gets + * the Access Control List for a given object. You cannot modify any permissions + * using this API. * * There are three levels of permission: * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java index 4d8ef5bbf..2533c9033 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java @@ -7,9 +7,9 @@ /** * The SQL Permissions API is similar to the endpoints of the - * :method:permissions/setobjectpermissions. However, this exposes only one - * endpoint, which gets the Access Control List for a given object. You cannot - * modify any permissions using this API. + * :method:permissions/set. However, this exposes only one endpoint, which gets + * the Access Control List for a given object. You cannot modify any permissions + * using this API. * * There are three levels of permission: * diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteScheduleRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteScheduleRequest.java index c318913f8..ae9bcccb2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteScheduleRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteScheduleRequest.java @@ -10,7 +10,7 @@ /** - * Delete a refresh schedule + * [DEPRECATED] Delete a refresh schedule */ @Generated("databricks-sdk-generator") public class DeleteScheduleRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java index d6c1734d4..e0a324589 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java @@ -50,8 +50,7 @@ public class EditWarehouseRequest { * Configures whether the endpoint should use Databricks Compute (aka * Nephos) * - * Deprecated: Use enable_serverless_compute TODO(SC-79930): Remove the - * field once clients are updated + * Deprecated: Use enable_serverless_compute */ @JsonProperty("enable_databricks_compute") private Boolean enableDatabricksCompute; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java index 296fa08b9..184970c84 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java @@ -50,8 +50,7 @@ public class EndpointInfo { * Configures whether the endpoint should use Databricks Compute (aka * Nephos) * - * Deprecated: Use enable_serverless_compute TODO(SC-79930): Remove the - * field once clients are updated + * Deprecated: Use enable_serverless_compute */ @JsonProperty("enable_databricks_compute") private Boolean enableDatabricksCompute; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetSubscriptionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetSubscriptionsRequest.java index 2120124de..3c1fdb8da 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetSubscriptionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetSubscriptionsRequest.java @@ -10,7 +10,7 @@ /** - * Get an alert's subscriptions + * [DEPRECATED] Get an alert's subscriptions */ @Generated("databricks-sdk-generator") public class GetSubscriptionsRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java index 424d2df29..c78223d8a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java @@ -50,8 +50,7 @@ public class GetWarehouseResponse { * Configures whether the endpoint should use Databricks Compute (aka * Nephos) * - * Deprecated: Use enable_serverless_compute TODO(SC-79930): Remove the - * field once clients are updated + * Deprecated: Use enable_serverless_compute */ @JsonProperty("enable_databricks_compute") private Boolean enableDatabricksCompute; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWorkspaceWarehouseConfigResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWorkspaceWarehouseConfigResponse.java index 157f53c00..3c8478328 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWorkspaceWarehouseConfigResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWorkspaceWarehouseConfigResponse.java @@ -34,8 +34,7 @@ public class GetWorkspaceWarehouseConfigResponse { /** * Enable Serverless compute for SQL Endpoints * - * Deprecated: Use enable_serverless_compute TODO(SC-79930): Remove the - * field once clients are updated + * Deprecated: Use enable_serverless_compute */ @JsonProperty("enable_databricks_compute") private Boolean enableDatabricksCompute; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListQueriesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListQueriesRequest.java index 1da5d3a9b..f1f9b4c78 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListQueriesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListQueriesRequest.java @@ -22,9 +22,8 @@ public class ListQueriesRequest { * * - `created_at`: The timestamp the query was created. * - * - `schedule`: The refresh interval for each query. For example: "Every 5 - * Hours" or "Every 5 Minutes". "Never" is treated as the highest value for - * sorting. + * - `schedule`: [DEPRECATED] Sorting results by refresh schedule is + * deprecated. Use :method:jobs/list to list jobs and filter for a query. * * - `runtime`: The time it took to run this query. This is blank for * parameterized queries. A blank value is treated as the highest value for diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListSchedulesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListSchedulesRequest.java index eebbb2fae..a4cdce1a9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListSchedulesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ListSchedulesRequest.java @@ -10,7 +10,7 @@ /** - * Get refresh schedules + * [DEPRECATED] Get refresh schedules */ @Generated("databricks-sdk-generator") public class ListSchedulesRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java index 98d432d4a..bf8b56b70 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java @@ -15,6 +15,10 @@ * These endpoints are used for CRUD operations on query definitions. Query * definitions include the target SQL warehouse, query text, name, description, * tags, execution schedule, parameters, and visualizations. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks SQL + * API are deprecated. Query refresh schedules can be created, updated, fetched + * and deleted using Jobs API, e.g. :method:jobs/create. */ @Generated("databricks-sdk-generator") public class QueriesAPI implements QueriesService { @@ -101,7 +105,7 @@ public void restore(RestoreQueryRequest request) { * **Note**: You cannot undo this operation. */ @Override - public Query update(QueryPostContent request) { + public Query update(QueryEditContent request) { String path = String.format("/api/2.0/preview/sql/queries/%s", request.getQueryId()); return apiClient.POST(path, request, Query.class); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesService.java index add9b6762..c60ad2d41 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesService.java @@ -9,6 +9,10 @@ * These endpoints are used for CRUD operations on query definitions. Query * definitions include the target SQL warehouse, query text, name, description, * tags, execution schedule, parameters, and visualizations. + * + * **Note**: Programmatic operations on refresh schedules via the Databricks SQL + * API are deprecated. Query refresh schedules can be created, updated, fetched + * and deleted using Jobs API, e.g. :method:jobs/create. * * This is the high-level interface, that contains generated methods. * @@ -72,6 +76,6 @@ public interface QueriesService { * * **Note**: You cannot undo this operation. */ - Query update(QueryPostContent queryPostContent); + Query update(QueryEditContent queryEditContent); } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java index 745356a38..2131e11dc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java @@ -111,6 +111,13 @@ public class Query { @JsonProperty("options") private QueryOptions options; + /** + * The identifier of the parent folder containing the query. Available for + * queries in workspace. + */ + @JsonProperty("parent") + private String parent; + /** * This describes an enum */ @@ -291,6 +298,15 @@ public QueryOptions getOptions() { return options; } + public Query setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + public Query setPermissionTier(PermissionLevel permissionTier) { this.permissionTier = permissionTier; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryMetrics.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryMetrics.java index 2d67c6f12..55a14ce9b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryMetrics.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryMetrics.java @@ -27,7 +27,8 @@ public class QueryMetrics { private Long executionTimeMs; /** - * Total amount of data sent over the network, in bytes. + * Total amount of data sent over the network between executor nodes during + * shuffle, in bytes. */ @JsonProperty("network_sent_bytes") private Long networkSentBytes; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java index 8e9a4c907..9c8bb9d90 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java @@ -40,16 +40,17 @@ public class QueryPostContent { private Object /* MISSING TYPE */ options; /** - * The text of the query. + * The identifier of the workspace folder containing the query. The default + * is the user's home folder. */ - @JsonProperty("query") - private String query; + @JsonProperty("parent") + private String parent; /** - + * The text of the query. */ - - private String queryId; + @JsonProperty("query") + private String query; /** * JSON object that describes the scheduled execution frequency. A schedule @@ -96,22 +97,22 @@ public QueryPostContent setOptions(Object /* MISSING TYPE */ options) { return options; } - public QueryPostContent setQuery(String query) { - this.query = query; + public QueryPostContent setParent(String parent) { + this.parent = parent; return this; } - public String getQuery() { - return query; + public String getParent() { + return parent; } - public QueryPostContent setQueryId(String queryId) { - this.queryId = queryId; + public QueryPostContent setQuery(String query) { + this.query = query; return this; } - public String getQueryId() { - return queryId; + public String getQuery() { + return query; } public QueryPostContent setSchedule(QueryInterval schedule) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetWorkspaceWarehouseConfigRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetWorkspaceWarehouseConfigRequest.java index 570df673c..0a977718a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetWorkspaceWarehouseConfigRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/SetWorkspaceWarehouseConfigRequest.java @@ -34,8 +34,7 @@ public class SetWorkspaceWarehouseConfigRequest { /** * Enable Serverless compute for SQL Endpoints * - * Deprecated: Use enable_serverless_compute TODO(SC-79930): Remove the - * field once clients are updated + * Deprecated: Use enable_serverless_compute */ @JsonProperty("enable_databricks_compute") private Boolean enableDatabricksCompute; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/UnsubscribeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/UnsubscribeRequest.java index b4cfc64ee..7ed6ee89c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/UnsubscribeRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/UnsubscribeRequest.java @@ -10,7 +10,7 @@ /** - * Unsubscribe to an alert + * [DEPRECATED] Unsubscribe to an alert */ @Generated("databricks-sdk-generator") public class UnsubscribeRequest { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AuthenticationType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AuthenticationType.java index c3bb35d84..918016292 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AuthenticationType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/AuthenticationType.java @@ -15,6 +15,5 @@ public enum AuthenticationType{ DATABRICKS, TOKEN, - UNKNOWN, } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogInfo.java index 069c82cfd..6528330bf 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogInfo.java @@ -25,37 +25,37 @@ public class CatalogInfo { private String comment; /** - * Time at which this Catalog was created, in epoch milliseconds. + * Time at which this catalog was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of Catalog creator. + * Username of catalog creator. */ @JsonProperty("created_by") private String createdBy; /** - * Unique identifier of parent Metastore. + * Unique identifier of parent metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * Name of Catalog. + * Name of catalog. */ @JsonProperty("name") private String name; /** - * Username of current owner of Catalog. + * Username of current owner of catalog. */ @JsonProperty("owner") private String owner; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; @@ -63,7 +63,7 @@ public class CatalogInfo { /** * The name of delta sharing provider. * - * A Delta Sharing Catalog is a catalog that is based on a Delta share on a + * A Delta Sharing catalog is a catalog that is based on a Delta share on a * remote sharing server. */ @JsonProperty("provider_name") @@ -76,25 +76,25 @@ public class CatalogInfo { private String shareName; /** - * Storage Location URL (full path) for managed tables within Catalog. + * Storage Location URL (full path) for managed tables within catalog. */ @JsonProperty("storage_location") private String storageLocation; /** - * Storage root URL for managed tables within Catalog. + * Storage root URL for managed tables within catalog. */ @JsonProperty("storage_root") private String storageRoot; /** - * Time at which this Catalog was last modified, in epoch milliseconds. + * Time at which this catalog was last modified, in epoch milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** - * Username of user who last modified Catalog. + * Username of user who last modified catalog. */ @JsonProperty("updated_by") private String updatedBy; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsAPI.java index 610962822..344ed82b8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsAPI.java @@ -32,8 +32,8 @@ public CatalogsAPI(ApiClient apiClient) { /** * Create a catalog. * - * Creates a new catalog instance in the parent Metastore if the caller is a - * Metastore admin or has the CREATE_CATALOG privilege. + * Creates a new catalog instance in the parent metastore if the caller is a + * metastore admin or has the **CREATE_CATALOG** privilege. */ @Override public CatalogInfo create(CreateCatalog request) { @@ -45,7 +45,7 @@ public CatalogInfo create(CreateCatalog request) { * Delete a catalog. * * Deletes the catalog that matches the supplied name. The caller must be a - * Metastore admin or the owner of the catalog. + * metastore admin or the owner of the catalog. */ @Override public void delete(DeleteCatalogRequest request) { @@ -56,9 +56,9 @@ public void delete(DeleteCatalogRequest request) { /** * Get a catalog. * - * Gets an array of all catalogs in the current Metastore for which the user - * is an admin or Catalog owner, or has the USE_CATALOG privilege set for - * their account. + * Gets the specified catalog in a metastore. The caller must be a metastore + * admin, the owner of the catalog, or a user that has the **USE_CATALOG** + * privilege set for their account. */ @Override public CatalogInfo get(GetCatalogRequest request) { @@ -69,10 +69,11 @@ public CatalogInfo get(GetCatalogRequest request) { /** * List catalogs. * - * Gets an array of catalogs in the Metastore. If the caller is the - * Metastore admin, all catalogs will be retrieved. Otherwise, only catalogs - * owned by the caller (or for which the caller has the USE_CATALOG - * privilege) will be retrieved. + * Gets an array of catalogs in the metastore. If the caller is the + * metastore admin, all catalogs will be retrieved. Otherwise, only catalogs + * owned by the caller (or for which the caller has the **USE_CATALOG** + * privilege) will be retrieved. There is no guarantee of a specific + * ordering of the elements in the array. */ @Override public ListCatalogsResponse list() { @@ -84,7 +85,7 @@ public ListCatalogsResponse list() { * Update a catalog. * * Updates the catalog that matches the supplied name. The caller must be - * either the owner of the catalog, or a Metastore admin (when changing the + * either the owner of the catalog, or a metastore admin (when changing the * owner field of the catalog). */ @Override diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsService.java index dbe08f131..58a1d3de8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CatalogsService.java @@ -24,8 +24,8 @@ public interface CatalogsService { /** * Create a catalog. * - * Creates a new catalog instance in the parent Metastore if the caller is a - * Metastore admin or has the CREATE_CATALOG privilege. + * Creates a new catalog instance in the parent metastore if the caller is a + * metastore admin or has the **CREATE_CATALOG** privilege. */ CatalogInfo create(CreateCatalog createCatalog); @@ -33,26 +33,27 @@ public interface CatalogsService { * Delete a catalog. * * Deletes the catalog that matches the supplied name. The caller must be a - * Metastore admin or the owner of the catalog. + * metastore admin or the owner of the catalog. */ void delete(DeleteCatalogRequest deleteCatalogRequest); /** * Get a catalog. * - * Gets an array of all catalogs in the current Metastore for which the user - * is an admin or Catalog owner, or has the USE_CATALOG privilege set for - * their account. + * Gets the specified catalog in a metastore. The caller must be a metastore + * admin, the owner of the catalog, or a user that has the **USE_CATALOG** + * privilege set for their account. */ CatalogInfo get(GetCatalogRequest getCatalogRequest); /** * List catalogs. * - * Gets an array of catalogs in the Metastore. If the caller is the - * Metastore admin, all catalogs will be retrieved. Otherwise, only catalogs - * owned by the caller (or for which the caller has the USE_CATALOG - * privilege) will be retrieved. + * Gets an array of catalogs in the metastore. If the caller is the + * metastore admin, all catalogs will be retrieved. Otherwise, only catalogs + * owned by the caller (or for which the caller has the **USE_CATALOG** + * privilege) will be retrieved. There is no guarantee of a specific + * ordering of the elements in the array. */ ListCatalogsResponse list(); @@ -60,7 +61,7 @@ public interface CatalogsService { * Update a catalog. * * Updates the catalog that matches the supplied name. The caller must be - * either the owner of the catalog, or a Metastore admin (when changing the + * either the owner of the catalog, or a metastore admin (when changing the * owner field of the catalog). */ CatalogInfo update(UpdateCatalog updateCatalog); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnInfo.java index decc42244..1c1752761 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ColumnInfo.java @@ -13,70 +13,73 @@ @Generated("databricks-sdk-generator") public class ColumnInfo { /** - * [Create,Update:OPT] User-provided free-form text description. + * User-provided free-form text description. */ @JsonProperty("comment") private String comment; /** - * [Create:REQ Update:OPT] Name of Column. + + */ + @JsonProperty("mask") + private ColumnMask mask; + + /** + * Name of Column. */ @JsonProperty("name") private String name; /** - * [Create,Update:OPT] Whether field may be Null (default: True). + * Whether field may be Null (default: true). */ @JsonProperty("nullable") private Boolean nullable; /** - * [Create,Update:OPT] Partition index for column. + * Partition index for column. */ @JsonProperty("partition_index") private Long partitionIndex; /** - * [Create:REQ Update:OPT] Ordinal position of column (starting at position - * 0). + * Ordinal position of column (starting at position 0). */ @JsonProperty("position") private Long position; /** - * [Create: OPT, Update: OPT] Format of IntervalType. + * Format of IntervalType. */ @JsonProperty("type_interval_type") private String typeIntervalType; /** - * [Create:OPT Update:OPT] Full data type spec, JSON-serialized. + * Full data type specification, JSON-serialized. */ @JsonProperty("type_json") private String typeJson; /** - * [Create: REQ Update: OPT] Name of type (INT, STRUCT, MAP, etc.) + * Name of type (INT, STRUCT, MAP, etc.). */ @JsonProperty("type_name") - private ColumnInfoTypeName typeName; + private ColumnTypeName typeName; /** - * [Create: OPT, Update: OPT] Digits of precision; required on Create for - * DecimalTypes. + * Digits of precision; required for DecimalTypes. */ @JsonProperty("type_precision") private Long typePrecision; /** - * [Create: OPT, Update: OPT] Digits to right of decimal; Required on Create - * for DecimalTypes. + * Digits to right of decimal; Required for DecimalTypes. */ @JsonProperty("type_scale") private Long typeScale; /** - * [Create:REQ Update:OPT] Full data type spec, SQL/catalogString text. + * Full data type specification as SQL/catalogString text. */ @JsonProperty("type_text") private String typeText; @@ -90,6 +93,15 @@ public String getComment() { return comment; } + public ColumnInfo setMask(ColumnMask mask) { + this.mask = mask; + return this; + } + + public ColumnMask getMask() { + return mask; + } + public ColumnInfo setName(String name) { this.name = name; return this; @@ -144,12 +156,12 @@ public String getTypeJson() { return typeJson; } - public ColumnInfo setTypeName(ColumnInfoTypeName typeName) { + public ColumnInfo setTypeName(ColumnTypeName typeName) { this.typeName = typeName; return this; } - public ColumnInfoTypeName getTypeName() { + public ColumnTypeName getTypeName() { return typeName; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateCatalog.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateCatalog.java index 30e547cad..638238c3d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateCatalog.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateCatalog.java @@ -19,13 +19,13 @@ public class CreateCatalog { private String comment; /** - * Name of Catalog. + * Name of catalog. */ @JsonProperty("name") private String name; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; @@ -33,7 +33,7 @@ public class CreateCatalog { /** * The name of delta sharing provider. * - * A Delta Sharing Catalog is a catalog that is based on a Delta share on a + * A Delta Sharing catalog is a catalog that is based on a Delta share on a * remote sharing server. */ @JsonProperty("provider_name") @@ -46,7 +46,7 @@ public class CreateCatalog { private String shareName; /** - * Storage root URL for managed tables within Catalog. + * Storage root URL for managed tables within catalog. */ @JsonProperty("storage_root") private String storageRoot; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateExternalLocation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateExternalLocation.java index f40978f65..93cbe70c2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateExternalLocation.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateExternalLocation.java @@ -19,13 +19,13 @@ public class CreateExternalLocation { private String comment; /** - * Current name of the Storage Credential this location uses. + * Name of the storage credential used with this location. */ @JsonProperty("credential_name") private String credentialName; /** - * Name of the External Location. + * Name of the external location. */ @JsonProperty("name") private String name; @@ -44,7 +44,7 @@ public class CreateExternalLocation { private Boolean skipValidation; /** - * Path URL of the External Location. + * Path URL of the external location. */ @JsonProperty("url") private String url; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastore.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastore.java index c72a6a1bc..085d4cc5f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastore.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastore.java @@ -13,13 +13,21 @@ @Generated("databricks-sdk-generator") public class CreateMetastore { /** - * Name of Metastore. + * The user-specified name of the metastore. */ @JsonProperty("name") private String name; /** - * Storage root URL for Metastore + * Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). If + * this field is omitted, the region of the workspace receiving the request + * will be used. + */ + @JsonProperty("region") + private String region; + + /** + * The storage root URL for metastore */ @JsonProperty("storage_root") private String storageRoot; @@ -33,6 +41,15 @@ public String getName() { return name; } + public CreateMetastore setRegion(String region) { + this.region = region; + return this; + } + + public String getRegion() { + return region; + } + public CreateMetastore setStorageRoot(String storageRoot) { this.storageRoot = storageRoot; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastoreAssignment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastoreAssignment.java index 149c44d72..bc028c9d1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastoreAssignment.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateMetastoreAssignment.java @@ -13,19 +13,19 @@ @Generated("databricks-sdk-generator") public class CreateMetastoreAssignment { /** - * The name of the default catalog in the Metastore. + * The name of the default catalog in the metastore. */ @JsonProperty("default_catalog_name") private String defaultCatalogName; /** - * The ID of the Metastore. + * The unique ID of the metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * A workspace ID. + * Workspace ID. */ private Long workspaceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateProvider.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateProvider.java index 39f7e57f4..274a7e466 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateProvider.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateProvider.java @@ -31,14 +31,8 @@ public class CreateProvider { private String name; /** - * Username of Provider owner. - */ - @JsonProperty("owner") - private String owner; - - /** - * This field is required when the authentication_type is `TOKEN` or not - * provided. + * This field is required when the __authentication_type__ is **TOKEN** or + * not provided. */ @JsonProperty("recipient_profile_str") private String recipientProfileStr; @@ -70,15 +64,6 @@ public String getName() { return name; } - public CreateProvider setOwner(String owner) { - this.owner = owner; - return this; - } - - public String getOwner() { - return owner; - } - public CreateProvider setRecipientProfileStr(String recipientProfileStr) { this.recipientProfileStr = recipientProfileStr; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateRecipient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateRecipient.java index cfd3d0675..0093cf0f6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateRecipient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateRecipient.java @@ -26,9 +26,9 @@ public class CreateRecipient { /** * The global Unity Catalog metastore id provided by the data recipient.\n - * This field is only present when the authentication type is - * `DATABRICKS`.\n The identifier is of format - * ::. + * This field is required when the __authentication_type__ is + * **DATABRICKS**.\n The identifier is of format + * __cloud__:__region__:__metastore-uuid__. */ @JsonProperty("data_recipient_global_metastore_id") private Object /* MISSING TYPE */ dataRecipientGlobalMetastoreId; @@ -45,9 +45,21 @@ public class CreateRecipient { @JsonProperty("name") private String name; + /** + * Username of the recipient owner. + */ + @JsonProperty("owner") + private String owner; + + /** + * Recipient properties as map of string key-value pairs.\n + */ + @JsonProperty("properties_kvpairs") + private Object /* MISSING TYPE */ propertiesKvpairs; + /** * The one-time sharing code provided by the data recipient. This field is - * only present when the authentication type is `DATABRICKS`. + * required when the __authentication_type__ is **DATABRICKS**. */ @JsonProperty("sharing_code") private String sharingCode; @@ -97,6 +109,24 @@ public String getName() { return name; } + public CreateRecipient setOwner(String owner) { + this.owner = owner; + return this; + } + + public String getOwner() { + return owner; + } + + public CreateRecipient setPropertiesKvpairs(Object /* MISSING TYPE */ propertiesKvpairs) { + this.propertiesKvpairs = propertiesKvpairs; + return this; + } + + public Object /* MISSING TYPE */ getPropertiesKvpairs() { + return propertiesKvpairs; + } + public CreateRecipient setSharingCode(String sharingCode) { this.sharingCode = sharingCode; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateSchema.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateSchema.java index 261754403..0d4fa8e94 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateSchema.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateSchema.java @@ -13,7 +13,7 @@ @Generated("databricks-sdk-generator") public class CreateSchema { /** - * Name of parent Catalog. + * Name of parent catalog. */ @JsonProperty("catalog_name") private String catalogName; @@ -25,17 +25,23 @@ public class CreateSchema { private String comment; /** - * Name of Schema, relative to parent Catalog. + * Name of schema, relative to parent catalog. */ @JsonProperty("name") private String name; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; + /** + * Storage root URL for managed tables within schema. + */ + @JsonProperty("storage_root") + private String storageRoot; + public CreateSchema setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -72,4 +78,13 @@ public Map getProperties() { return properties; } + public CreateSchema setStorageRoot(String storageRoot) { + this.storageRoot = storageRoot; + return this; + } + + public String getStorageRoot() { + return storageRoot; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateShare.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateShare.java index d2250effa..4e356d214 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateShare.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateShare.java @@ -19,7 +19,7 @@ public class CreateShare { private String comment; /** - * Name of the Share. + * Name of the share. */ @JsonProperty("name") private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateStorageCredential.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateStorageCredential.java index ee80f8cf3..3c80a8bf9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateStorageCredential.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/CreateStorageCredential.java @@ -37,14 +37,26 @@ public class CreateStorageCredential { private GcpServiceAccountKey gcpServiceAccountKey; /** - * The credential name. The name MUST be unique within the Metastore. + * Databricks Unity Catalog metastore ID + */ + + private String metastoreId; + + /** + * The credential name. The name must be unique within the metastore. */ @JsonProperty("name") private String name; /** - * Optional. Supplying true to this argument skips validation of the created - * set of credentials. + * Whether the storage credential is only usable for read operations. + */ + @JsonProperty("read_only") + private Boolean readOnly; + + /** + * Supplying true to this argument skips validation of the created + * credential. */ @JsonProperty("skip_validation") private Boolean skipValidation; @@ -85,6 +97,15 @@ public GcpServiceAccountKey getGcpServiceAccountKey() { return gcpServiceAccountKey; } + public CreateStorageCredential setMetastoreId(String metastoreId) { + this.metastoreId = metastoreId; + return this; + } + + public String getMetastoreId() { + return metastoreId; + } + public CreateStorageCredential setName(String name) { this.name = name; return this; @@ -94,6 +115,15 @@ public String getName() { return name; } + public CreateStorageCredential setReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return this; + } + + public Boolean getReadOnly() { + return readOnly; + } + public CreateStorageCredential setSkipValidation(Boolean skipValidation) { this.skipValidation = skipValidation; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteCatalogRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteCatalogRequest.java index 679551bb4..194e957b2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteCatalogRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteCatalogRequest.java @@ -15,13 +15,13 @@ @Generated("databricks-sdk-generator") public class DeleteCatalogRequest { /** - * Force deletion even if the catalog is notempty. + * Force deletion even if the catalog is not empty. */ @QueryParam("force") private Boolean force; /** - * Required. The name of the catalog. + * The name of the catalog. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteExternalLocationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteExternalLocationRequest.java index d610e714d..5a89cef93 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteExternalLocationRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteExternalLocationRequest.java @@ -21,7 +21,7 @@ public class DeleteExternalLocationRequest { private Boolean force; /** - * Required. Name of the storage credential. + * Name of the external location. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteMetastoreRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteMetastoreRequest.java index 9b1a4d322..fb09a32b7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteMetastoreRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteMetastoreRequest.java @@ -10,7 +10,7 @@ /** - * Delete a Metastore + * Delete a metastore */ @Generated("databricks-sdk-generator") public class DeleteMetastoreRequest { @@ -21,7 +21,7 @@ public class DeleteMetastoreRequest { private Boolean force; /** - * Required. Unique ID of the Metastore (from URL). + * Unique ID of the metastore. */ private String id; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteProviderRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteProviderRequest.java index 14a8644d0..6cd7a266a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteProviderRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteProviderRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class DeleteProviderRequest { /** - * Required. Name of the provider. + * Name of the provider. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteRecipientRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteRecipientRequest.java index 8a115941d..d82ce3461 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteRecipientRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteRecipientRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class DeleteRecipientRequest { /** - * Required. Name of the recipient. + * Name of the recipient. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteSchemaRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteSchemaRequest.java index 99f5f19c4..efa3dbfb2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteSchemaRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteSchemaRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class DeleteSchemaRequest { /** - * Required. Full name of the schema (from URL). + * Full name of the schema. */ private String fullName; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteStorageCredentialRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteStorageCredentialRequest.java index c666a9175..edfc15b91 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteStorageCredentialRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteStorageCredentialRequest.java @@ -22,7 +22,7 @@ public class DeleteStorageCredentialRequest { private Boolean force; /** - * Required. Name of the storage credential. + * Name of the storage credential. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteTableRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteTableRequest.java index 0ed8b2d22..b0c8afde8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteTableRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/DeleteTableRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class DeleteTableRequest { /** - * Required. Full name of the Table (from URL). + * Full name of the table. */ private String fullName; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationInfo.java index 02cc73a11..c0ef19ff5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationInfo.java @@ -19,43 +19,43 @@ public class ExternalLocationInfo { private String comment; /** - * Time at which this External Location was created, in epoch milliseconds. + * Time at which this external location was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of External Location creator. + * Username of external location creator. */ @JsonProperty("created_by") private String createdBy; /** - * Unique ID of the location's Storage Credential. + * Unique ID of the location's storage credential. */ @JsonProperty("credential_id") private String credentialId; /** - * Current name of the Storage Credential this location uses. + * Name of the storage credential used with this location. */ @JsonProperty("credential_name") private String credentialName; /** - * Unique identifier of Metastore hosting the External Location. + * Unique identifier of metastore hosting the external location. */ @JsonProperty("metastore_id") private String metastoreId; /** - * Name of the External Location. + * Name of the external location. */ @JsonProperty("name") private String name; /** - * The owner of the External Location. + * The owner of the external location. */ @JsonProperty("owner") private String owner; @@ -67,20 +67,20 @@ public class ExternalLocationInfo { private Boolean readOnly; /** - * Time at which External Location this was last modified, in epoch + * Time at which external location this was last modified, in epoch * milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** - * Username of user who last modified the External Location. + * Username of user who last modified the external location. */ @JsonProperty("updated_by") private String updatedBy; /** - * Path URL of the External Location. + * Path URL of the external location. */ @JsonProperty("url") private String url; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsAPI.java index a1b2ce170..c385f6432 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsAPI.java @@ -24,7 +24,7 @@ * credentials directly. * * To create external locations, you must be a metastore admin or a user with - * the CREATE_EXTERNAL_LOCATION privilege. + * the **CREATE_EXTERNAL_LOCATION** privilege. */ @Generated("databricks-sdk-generator") public class ExternalLocationsAPI implements ExternalLocationsService { @@ -37,9 +37,9 @@ public ExternalLocationsAPI(ApiClient apiClient) { /** * Create an external location. * - * Creates a new External Location entry in the Metastore. The caller must - * be a Metastore admin or have the CREATE_EXTERNAL_LOCATION privilege on - * both the Metastore and the associated storage credential. + * Creates a new external location entry in the metastore. The caller must + * be a metastore admin or have the **CREATE_EXTERNAL_LOCATION** privilege + * on both the metastore and the associated storage credential. */ @Override public ExternalLocationInfo create(CreateExternalLocation request) { @@ -50,7 +50,7 @@ public ExternalLocationInfo create(CreateExternalLocation request) { /** * Delete an external location. * - * Deletes the specified external location from the Metastore. The caller + * Deletes the specified external location from the metastore. The caller * must be the owner of the external location. */ @Override @@ -62,9 +62,9 @@ public void delete(DeleteExternalLocationRequest request) { /** * Get an external location. * - * Gets an external location from the Metastore. The caller must be either a - * Metastore admin, the owner of the external location, or has some - * privilege on the external location. + * Gets an external location from the metastore. The caller must be either a + * metastore admin, the owner of the external location, or a user that has + * some privilege on the external location. */ @Override public ExternalLocationInfo get(GetExternalLocationRequest request) { @@ -75,9 +75,11 @@ public ExternalLocationInfo get(GetExternalLocationRequest request) { /** * List external locations. * - * Gets an array of External Locations (ExternalLocationInfo objects) from - * the Metastore. The caller must be a Metastore admin, is the owner of the - * external location, or has some privilege on the external location. + * Gets an array of external locations (__ExternalLocationInfo__ objects) + * from the metastore. The caller must be a metastore admin, the owner of + * the external location, or a user that has some privilege on the external + * location. There is no guarantee of a specific ordering of the elements in + * the array. */ @Override public ListExternalLocationsResponse list() { @@ -88,8 +90,8 @@ public ListExternalLocationsResponse list() { /** * Update an external location. * - * Updates an external location in the Metastore. The caller must be the - * owner of the external location, or be a Metastore admin. In the second + * Updates an external location in the metastore. The caller must be the + * owner of the external location, or be a metastore admin. In the second * case, the admin can only update the name of the external location. */ @Override diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsService.java index 10d939e21..7dc2889ba 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ExternalLocationsService.java @@ -18,7 +18,7 @@ * credentials directly. * * To create external locations, you must be a metastore admin or a user with - * the CREATE_EXTERNAL_LOCATION privilege. + * the **CREATE_EXTERNAL_LOCATION** privilege. * * This is the high-level interface, that contains generated methods. * @@ -29,16 +29,16 @@ public interface ExternalLocationsService { /** * Create an external location. * - * Creates a new External Location entry in the Metastore. The caller must - * be a Metastore admin or have the CREATE_EXTERNAL_LOCATION privilege on - * both the Metastore and the associated storage credential. + * Creates a new external location entry in the metastore. The caller must + * be a metastore admin or have the **CREATE_EXTERNAL_LOCATION** privilege + * on both the metastore and the associated storage credential. */ ExternalLocationInfo create(CreateExternalLocation createExternalLocation); /** * Delete an external location. * - * Deletes the specified external location from the Metastore. The caller + * Deletes the specified external location from the metastore. The caller * must be the owner of the external location. */ void delete(DeleteExternalLocationRequest deleteExternalLocationRequest); @@ -46,26 +46,28 @@ public interface ExternalLocationsService { /** * Get an external location. * - * Gets an external location from the Metastore. The caller must be either a - * Metastore admin, the owner of the external location, or has some - * privilege on the external location. + * Gets an external location from the metastore. The caller must be either a + * metastore admin, the owner of the external location, or a user that has + * some privilege on the external location. */ ExternalLocationInfo get(GetExternalLocationRequest getExternalLocationRequest); /** * List external locations. * - * Gets an array of External Locations (ExternalLocationInfo objects) from - * the Metastore. The caller must be a Metastore admin, is the owner of the - * external location, or has some privilege on the external location. + * Gets an array of external locations (__ExternalLocationInfo__ objects) + * from the metastore. The caller must be a metastore admin, the owner of + * the external location, or a user that has some privilege on the external + * location. There is no guarantee of a specific ordering of the elements in + * the array. */ ListExternalLocationsResponse list(); /** * Update an external location. * - * Updates an external location in the Metastore. The caller must be the - * owner of the external location, or be a Metastore admin. In the second + * Updates an external location in the metastore. The caller must be the + * owner of the external location, or be a metastore admin. In the second * case, the admin can only update the name of the external location. */ ExternalLocationInfo update(UpdateExternalLocation updateExternalLocation); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetActivationUrlInfoRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetActivationUrlInfoRequest.java index 0853ab14a..d4ced3bdf 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetActivationUrlInfoRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetActivationUrlInfoRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetActivationUrlInfoRequest { /** - * Required. The one time activation url. It also accepts activation token. + * The one time activation url. It also accepts activation token. */ private String activationUrl; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetCatalogRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetCatalogRequest.java index b2bdb568a..43bec56fc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetCatalogRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetCatalogRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetCatalogRequest { /** - * Required. The name of the catalog. + * The name of the catalog. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetExternalLocationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetExternalLocationRequest.java index 2f5de29da..28f635dde 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetExternalLocationRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetExternalLocationRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetExternalLocationRequest { /** - * Required. Name of the storage credential. + * Name of the external location. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetGrantRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetGrantRequest.java index 93f3d01df..13c480872 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetGrantRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetGrantRequest.java @@ -15,22 +15,23 @@ @Generated("databricks-sdk-generator") public class GetGrantRequest { /** - * Required. Unique identifier (full name) of Securable (from URL). + * Full name of securable. */ private String fullName; /** - * Optional. List permissions granted to this principal. + * If provided, only the permissions for the specified principal (user or + * group) are returned. */ @QueryParam("principal") private String principal; /** - * Required. Type of Securable (from URL). + * Type of securable. */ - private String securableType; + private SecurableType securableType; public GetGrantRequest setFullName(String fullName) { this.fullName = fullName; @@ -50,12 +51,12 @@ public String getPrincipal() { return principal; } - public GetGrantRequest setSecurableType(String securableType) { + public GetGrantRequest setSecurableType(SecurableType securableType) { this.securableType = securableType; return this; } - public String getSecurableType() { + public SecurableType getSecurableType() { return securableType; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreRequest.java index 8d09da9b1..69309c6f5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreRequest.java @@ -10,12 +10,12 @@ /** - * Get a Metastore + * Get a metastore */ @Generated("databricks-sdk-generator") public class GetMetastoreRequest { /** - * Required. Unique ID of the Metastore (from URL). + * Unique ID of the metastore. */ private String id; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponse.java index 23a677de2..c3a3b53f0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponse.java @@ -13,25 +13,25 @@ @Generated("databricks-sdk-generator") public class GetMetastoreSummaryResponse { /** - * Cloud vendor of the Metastore home shard (e.g., `aws`, `azure`, `gcp`). + * Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */ @JsonProperty("cloud") private String cloud; /** - * Time at which this Metastore was created, in epoch milliseconds. + * Time at which this metastore was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of Metastore creator. + * Username of metastore creator. */ @JsonProperty("created_by") private String createdBy; /** - * Unique identifier of the Metastore's (Default) Data Access Configuration. + * Unique identifier of the metastore's (Default) Data Access Configuration. */ @JsonProperty("default_data_access_config_id") private String defaultDataAccessConfigId; @@ -50,7 +50,7 @@ public class GetMetastoreSummaryResponse { private Long deltaSharingRecipientTokenLifetimeInSeconds; /** - * The scope of Delta Sharing enabled for the Metastore + * The scope of Delta Sharing enabled for the metastore. */ @JsonProperty("delta_sharing_scope") private GetMetastoreSummaryResponseDeltaSharingScope deltaSharingScope; @@ -63,13 +63,13 @@ public class GetMetastoreSummaryResponse { private String globalMetastoreId; /** - * The unique ID (UUID) of the Metastore. + * Unique identifier of metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * The user-specified name of the Metastore. + * The user-specified name of the metastore. */ @JsonProperty("name") private String name; @@ -82,19 +82,19 @@ public class GetMetastoreSummaryResponse { /** * Privilege model version of the metastore, of the form `major.minor` - * (e.g., `1.0`) + * (e.g., `1.0`). */ @JsonProperty("privilege_model_version") private String privilegeModelVersion; /** - * Cloud region of the Metastore home shard (e.g., `us-west-2`, `westus`). + * Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */ @JsonProperty("region") private String region; /** - * The storage root URL for the Metastore. + * The storage root URL for metastore */ @JsonProperty("storage_root") private String storageRoot; @@ -112,13 +112,13 @@ public class GetMetastoreSummaryResponse { private String storageRootCredentialName; /** - * Time at which this Metastore was last modified, in epoch milliseconds. + * Time at which the metastore was last modified, in epoch milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** - * Username of user who last modified the External Location. + * Username of user who last modified the metastore. */ @JsonProperty("updated_by") private String updatedBy; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponseDeltaSharingScope.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponseDeltaSharingScope.java index ac590b588..e0bdc44cb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponseDeltaSharingScope.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetMetastoreSummaryResponseDeltaSharingScope.java @@ -10,7 +10,7 @@ /** - * The scope of Delta Sharing enabled for the Metastore + * The scope of Delta Sharing enabled for the metastore. */ public enum GetMetastoreSummaryResponseDeltaSharingScope{ INTERNAL, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetProviderRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetProviderRequest.java index aa713b4b3..3efd1e8a1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetProviderRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetProviderRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetProviderRequest { /** - * Required. Name of the provider. + * Name of the provider. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetRecipientRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetRecipientRequest.java index 1a658d58f..39a1b0fee 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetRecipientRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetRecipientRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetRecipientRequest { /** - * Required. Name of the recipient. + * Name of the recipient. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetSchemaRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetSchemaRequest.java index 4ee25468b..434ee60f3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetSchemaRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetSchemaRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetSchemaRequest { /** - * Required. Full name of the schema (from URL). + * Full name of the schema. */ private String fullName; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetStorageCredentialRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetStorageCredentialRequest.java index 1585d2fd2..b4ebd404e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetStorageCredentialRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetStorageCredentialRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class GetStorageCredentialRequest { /** - * Required. Name of the storage credential. + * Name of the storage credential. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetTableRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetTableRequest.java index feae8caaa..f9df9ca9e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetTableRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GetTableRequest.java @@ -15,11 +15,17 @@ @Generated("databricks-sdk-generator") public class GetTableRequest { /** - * Required. Full name of the Table (from URL). + * Full name of the table. */ private String fullName; + /** + * Whether delta metadata should be included in the response. + */ + @QueryParam("include_delta_metadata") + private Boolean includeDeltaMetadata; + public GetTableRequest setFullName(String fullName) { this.fullName = fullName; return this; @@ -29,4 +35,13 @@ public String getFullName() { return fullName; } + public GetTableRequest setIncludeDeltaMetadata(Boolean includeDeltaMetadata) { + this.includeDeltaMetadata = includeDeltaMetadata; + return this; + } + + public Boolean getIncludeDeltaMetadata() { + return includeDeltaMetadata; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsAPI.java index dd16435e0..3c9cc4371 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsAPI.java @@ -18,10 +18,6 @@ * the object. Securable objects in Unity Catalog are hierarchical and * privileges are inherited downward. * - * Initially, users have no access to data in a metastore. Access can be granted - * by either a metastore admin, the owner of an object, or the owner of the - * catalog or schema that contains the object. - * * Securable objects in Unity Catalog are hierarchical and privileges are * inherited downward. This means that granting a privilege on the catalog * automatically grants the privilege to all current and future objects within @@ -39,23 +35,34 @@ public GrantsAPI(ApiClient apiClient) { /** * Get permissions. * - * Gets the permissions for a Securable type. + * Gets the permissions for a securable. */ @Override - public GetPermissionsResponse get(GetGrantRequest request) { + public PermissionsList get(GetGrantRequest request) { String path = String.format("/api/2.1/unity-catalog/permissions/%s/%s", request.getSecurableType(), request.getFullName()); - return apiClient.GET(path, request, GetPermissionsResponse.class); + return apiClient.GET(path, request, PermissionsList.class); + } + + /** + * Get effective permissions. + * + * Gets the effective permissions for a securable. + */ + @Override + public EffectivePermissionsList getEffective(GetEffectiveRequest request) { + String path = String.format("/api/2.1/unity-catalog/effective-permissions/%s/%s", request.getSecurableType(), request.getFullName()); + return apiClient.GET(path, request, EffectivePermissionsList.class); } /** * Update permissions. * - * Updates the permissions for a Securable type. + * Updates the permissions for a securable. */ @Override - public void update(UpdatePermissions request) { + public PermissionsList update(UpdatePermissions request) { String path = String.format("/api/2.1/unity-catalog/permissions/%s/%s", request.getSecurableType(), request.getFullName()); - apiClient.PATCH(path, request, Void.class); + return apiClient.PATCH(path, request, PermissionsList.class); } } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsService.java index f07e22c63..e34a972a4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/GrantsService.java @@ -12,10 +12,6 @@ * the object. Securable objects in Unity Catalog are hierarchical and * privileges are inherited downward. * - * Initially, users have no access to data in a metastore. Access can be granted - * by either a metastore admin, the owner of an object, or the owner of the - * catalog or schema that contains the object. - * * Securable objects in Unity Catalog are hierarchical and privileges are * inherited downward. This means that granting a privilege on the catalog * automatically grants the privilege to all current and future objects within @@ -31,15 +27,22 @@ public interface GrantsService { /** * Get permissions. * - * Gets the permissions for a Securable type. + * Gets the permissions for a securable. + */ + PermissionsList get(GetGrantRequest getGrantRequest); + + /** + * Get effective permissions. + * + * Gets the effective permissions for a securable. */ - GetPermissionsResponse get(GetGrantRequest getGrantRequest); + EffectivePermissionsList getEffective(GetEffectiveRequest getEffectiveRequest); /** * Update permissions. * - * Updates the permissions for a Securable type. + * Updates the permissions for a securable. */ - void update(UpdatePermissions updatePermissions); + PermissionsList update(UpdatePermissions updatePermissions); } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListMetastoresResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListMetastoresResponse.java index f8a388f6d..67dd4f7bf 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListMetastoresResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListMetastoresResponse.java @@ -13,7 +13,7 @@ @Generated("databricks-sdk-generator") public class ListMetastoresResponse { /** - * An array of Metastore information objects. + * An array of metastore information objects. */ @JsonProperty("metastores") private java.util.List metastores; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSchemasRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSchemasRequest.java index 4455f72ac..fd49b0971 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSchemasRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSchemasRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class ListSchemasRequest { /** - * Optional. Parent catalog for schemas of interest. + * Parent catalog for schemas of interest. */ @QueryParam("catalog_name") private String catalogName; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSharesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSharesRequest.java index b1a164911..8589f0be0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSharesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListSharesRequest.java @@ -10,12 +10,12 @@ /** - * List shares + * List shares by Provider */ @Generated("databricks-sdk-generator") public class ListSharesRequest { /** - * Required. Name of the provider in which to list shares. + * Name of the provider in which to list shares. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTableSummariesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTableSummariesResponse.java index 4c0208fc1..cacb4fd6e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTableSummariesResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTableSummariesResponse.java @@ -13,14 +13,13 @@ @Generated("databricks-sdk-generator") public class ListTableSummariesResponse { /** - * Optional. Opaque token for pagination. Empty if there's no more page. + * Opaque token for pagination. Omitted if there are no more results. */ @JsonProperty("next_page_token") private String nextPageToken; /** - * Only name, catalog_name, schema_name, full_name and table_type will be - * set. + * List of table summaries. */ @JsonProperty("tables") private java.util.List tables; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTablesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTablesRequest.java index 4f49e362d..f46243515 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTablesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ListTablesRequest.java @@ -15,13 +15,18 @@ @Generated("databricks-sdk-generator") public class ListTablesRequest { /** - * Required. Name of parent catalog for tables of interest. + * Name of parent catalog for tables of interest. */ @QueryParam("catalog_name") private String catalogName; /** - * Required (for now -- may be optional for wildcard search in future). + * Whether delta metadata should be included in the response. + */ + @QueryParam("include_delta_metadata") + private Boolean includeDeltaMetadata; + + /** * Parent schema of tables. */ @QueryParam("schema_name") @@ -36,6 +41,15 @@ public String getCatalogName() { return catalogName; } + public ListTablesRequest setIncludeDeltaMetadata(Boolean includeDeltaMetadata) { + this.includeDeltaMetadata = includeDeltaMetadata; + return this; + } + + public Boolean getIncludeDeltaMetadata() { + return includeDeltaMetadata; + } + public ListTablesRequest setSchemaName(String schemaName) { this.schemaName = schemaName; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreInfo.java index 38d312444..4073dae69 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoreInfo.java @@ -13,43 +13,63 @@ @Generated("databricks-sdk-generator") public class MetastoreInfo { /** - * Time at which this Metastore was created, in epoch milliseconds. + * Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). + */ + @JsonProperty("cloud") + private String cloud; + + /** + * Time at which this metastore was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of Metastore creator. + * Username of metastore creator. */ @JsonProperty("created_by") private String createdBy; /** - * Unique identifier of (Default) Data Access Configuration + * Unique identifier of the metastore's (Default) Data Access Configuration. */ @JsonProperty("default_data_access_config_id") private String defaultDataAccessConfigId; /** - * Whether Delta Sharing is enabled on this metastore. + * The organization name of a Delta Sharing entity, to be used in + * Databricks-to-Databricks Delta Sharing as the official name. */ - @JsonProperty("delta_sharing_enabled") - private Boolean deltaSharingEnabled; + @JsonProperty("delta_sharing_organization_name") + private String deltaSharingOrganizationName; /** - * The lifetime of delta sharing recipient token in seconds + * The lifetime of delta sharing recipient token in seconds. */ @JsonProperty("delta_sharing_recipient_token_lifetime_in_seconds") private Long deltaSharingRecipientTokenLifetimeInSeconds; /** - * Unique identifier of Metastore. + * The scope of Delta Sharing enabled for the metastore. + */ + @JsonProperty("delta_sharing_scope") + private MetastoreInfoDeltaSharingScope deltaSharingScope; + + /** + * Globally unique metastore ID across clouds and regions, of the form + * `cloud:region:metastore_id`. + */ + @JsonProperty("global_metastore_id") + private String globalMetastoreId; + + /** + * Unique identifier of metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * Name of Metastore. + * The user-specified name of the metastore. */ @JsonProperty("name") private String name; @@ -61,36 +81,57 @@ public class MetastoreInfo { private String owner; /** - * The region this metastore has an afinity to. This is used by - * accounts-manager. Ignored by Unity Catalog. + * Privilege model version of the metastore, of the form `major.minor` + * (e.g., `1.0`). + */ + @JsonProperty("privilege_model_version") + private String privilegeModelVersion; + + /** + * Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */ @JsonProperty("region") private String region; /** - * Storage root URL for Metastore + * The storage root URL for metastore */ @JsonProperty("storage_root") private String storageRoot; /** - * UUID of storage credential to access storage_root + * UUID of storage credential to access the metastore storage_root. */ @JsonProperty("storage_root_credential_id") private String storageRootCredentialId; /** - * Time at which the Metastore was last modified, in epoch milliseconds. + * Name of the storage credential to access the metastore storage_root. + */ + @JsonProperty("storage_root_credential_name") + private String storageRootCredentialName; + + /** + * Time at which the metastore was last modified, in epoch milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** - * Username of user who last modified the Metastore. + * Username of user who last modified the metastore. */ @JsonProperty("updated_by") private String updatedBy; + public MetastoreInfo setCloud(String cloud) { + this.cloud = cloud; + return this; + } + + public String getCloud() { + return cloud; + } + public MetastoreInfo setCreatedAt(Long createdAt) { this.createdAt = createdAt; return this; @@ -118,13 +159,13 @@ public String getDefaultDataAccessConfigId() { return defaultDataAccessConfigId; } - public MetastoreInfo setDeltaSharingEnabled(Boolean deltaSharingEnabled) { - this.deltaSharingEnabled = deltaSharingEnabled; + public MetastoreInfo setDeltaSharingOrganizationName(String deltaSharingOrganizationName) { + this.deltaSharingOrganizationName = deltaSharingOrganizationName; return this; } - public Boolean getDeltaSharingEnabled() { - return deltaSharingEnabled; + public String getDeltaSharingOrganizationName() { + return deltaSharingOrganizationName; } public MetastoreInfo setDeltaSharingRecipientTokenLifetimeInSeconds(Long deltaSharingRecipientTokenLifetimeInSeconds) { @@ -136,6 +177,24 @@ public Long getDeltaSharingRecipientTokenLifetimeInSeconds() { return deltaSharingRecipientTokenLifetimeInSeconds; } + public MetastoreInfo setDeltaSharingScope(MetastoreInfoDeltaSharingScope deltaSharingScope) { + this.deltaSharingScope = deltaSharingScope; + return this; + } + + public MetastoreInfoDeltaSharingScope getDeltaSharingScope() { + return deltaSharingScope; + } + + public MetastoreInfo setGlobalMetastoreId(String globalMetastoreId) { + this.globalMetastoreId = globalMetastoreId; + return this; + } + + public String getGlobalMetastoreId() { + return globalMetastoreId; + } + public MetastoreInfo setMetastoreId(String metastoreId) { this.metastoreId = metastoreId; return this; @@ -163,6 +222,15 @@ public String getOwner() { return owner; } + public MetastoreInfo setPrivilegeModelVersion(String privilegeModelVersion) { + this.privilegeModelVersion = privilegeModelVersion; + return this; + } + + public String getPrivilegeModelVersion() { + return privilegeModelVersion; + } + public MetastoreInfo setRegion(String region) { this.region = region; return this; @@ -190,6 +258,15 @@ public String getStorageRootCredentialId() { return storageRootCredentialId; } + public MetastoreInfo setStorageRootCredentialName(String storageRootCredentialName) { + this.storageRootCredentialName = storageRootCredentialName; + return this; + } + + public String getStorageRootCredentialName() { + return storageRootCredentialName; + } + public MetastoreInfo setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresAPI.java index 84e2f7927..1b3616fa4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresAPI.java @@ -25,7 +25,7 @@ * NOTE: This metastore is distinct from the metastore included in Databricks * workspaces created before Unity Catalog was released. If your workspace * includes a legacy Hive metastore, the data in that metastore is available in - * Unity Catalog in a catalog named hive_metastore. + * a catalog named hive_metastore. */ @Generated("databricks-sdk-generator") public class MetastoresAPI implements MetastoresService { @@ -38,7 +38,7 @@ public MetastoresAPI(ApiClient apiClient) { /** * Create an assignment. * - * Creates a new Metastore assignment. If an assignment for the same + * Creates a new metastore assignment. If an assignment for the same * __workspace_id__ exists, it will be overwritten by the new * __metastore_id__ and __default_catalog_name__. The caller must be an * account admin. @@ -50,9 +50,9 @@ public void assign(CreateMetastoreAssignment request) { } /** - * Create a Metastore. + * Create a metastore. * - * Creates a new Metastore based on a provided name and storage root path. + * Creates a new metastore based on a provided name and storage root path. */ @Override public MetastoreInfo create(CreateMetastore request) { @@ -61,9 +61,20 @@ public MetastoreInfo create(CreateMetastore request) { } /** - * Delete a Metastore. + * Get metastore assignment for workspace. * - * Deletes a Metastore. The caller must be a Metastore admin. + * Gets the metastore assignment for the workspace being accessed. + */ + @Override + public MetastoreAssignment current() { + String path = "/api/2.1/unity-catalog/current-metastore-assignment"; + return apiClient.GET(path, MetastoreAssignment.class); + } + + /** + * Delete a metastore. + * + * Deletes a metastore. The caller must be a metastore admin. */ @Override public void delete(DeleteMetastoreRequest request) { @@ -72,10 +83,10 @@ public void delete(DeleteMetastoreRequest request) { } /** - * Get a Metastore. + * Get a metastore. * - * Gets a Metastore that matches the supplied ID. The caller must be a - * Metastore admin to retrieve this info. + * Gets a metastore that matches the supplied ID. The caller must be a + * metastore admin to retrieve this info. */ @Override public MetastoreInfo get(GetMetastoreRequest request) { @@ -84,10 +95,11 @@ public MetastoreInfo get(GetMetastoreRequest request) { } /** - * List Metastores. + * List metastores. * - * Gets an array of the available Metastores (as MetastoreInfo objects). The - * caller must be an admin to retrieve this info. + * Gets an array of the available metastores (as __MetastoreInfo__ objects). + * The caller must be an admin to retrieve this info. There is no guarantee + * of a specific ordering of the elements in the array. */ @Override public ListMetastoresResponse list() { @@ -96,10 +108,10 @@ public ListMetastoresResponse list() { } /** - * Get a summary. + * Get a metastore summary. * - * Gets information about a Metastore. This summary includes the storage - * credential, the cloud vendor, the cloud region, and the global Metastore + * Gets information about a metastore. This summary includes the storage + * credential, the cloud vendor, the cloud region, and the global metastore * ID. */ @Override @@ -111,7 +123,7 @@ public GetMetastoreSummaryResponse summary() { /** * Delete an assignment. * - * Deletes a Metastore assignment. The caller must be an account + * Deletes a metastore assignment. The caller must be an account * administrator. */ @Override @@ -121,10 +133,10 @@ public void unassign(UnassignRequest request) { } /** - * Update a Metastore. + * Update a metastore. * - * Updates information for a specific Metastore. The caller must be a - * Metastore admin. + * Updates information for a specific metastore. The caller must be a + * metastore admin. */ @Override public MetastoreInfo update(UpdateMetastore request) { @@ -135,9 +147,9 @@ public MetastoreInfo update(UpdateMetastore request) { /** * Update an assignment. * - * Updates a Metastore assignment. This operation can be used to update + * Updates a metastore assignment. This operation can be used to update * __metastore_id__ or __default_catalog_name__ for a specified Workspace, - * if the Workspace is already assigned a Metastore. The caller must be an + * if the Workspace is already assigned a metastore. The caller must be an * account admin to update __metastore_id__; otherwise, the caller can be a * Workspace admin. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresService.java index f477f9a10..325991d9d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/MetastoresService.java @@ -19,7 +19,7 @@ * NOTE: This metastore is distinct from the metastore included in Databricks * workspaces created before Unity Catalog was released. If your workspace * includes a legacy Hive metastore, the data in that metastore is available in - * Unity Catalog in a catalog named hive_metastore. + * a catalog named hive_metastore. * * This is the high-level interface, that contains generated methods. * @@ -30,7 +30,7 @@ public interface MetastoresService { /** * Create an assignment. * - * Creates a new Metastore assignment. If an assignment for the same + * Creates a new metastore assignment. If an assignment for the same * __workspace_id__ exists, it will be overwritten by the new * __metastore_id__ and __default_catalog_name__. The caller must be an * account admin. @@ -38,40 +38,48 @@ public interface MetastoresService { void assign(CreateMetastoreAssignment createMetastoreAssignment); /** - * Create a Metastore. + * Create a metastore. * - * Creates a new Metastore based on a provided name and storage root path. + * Creates a new metastore based on a provided name and storage root path. */ MetastoreInfo create(CreateMetastore createMetastore); /** - * Delete a Metastore. + * Get metastore assignment for workspace. * - * Deletes a Metastore. The caller must be a Metastore admin. + * Gets the metastore assignment for the workspace being accessed. + */ + MetastoreAssignment current(); + + /** + * Delete a metastore. + * + * Deletes a metastore. The caller must be a metastore admin. */ void delete(DeleteMetastoreRequest deleteMetastoreRequest); /** - * Get a Metastore. + * Get a metastore. * - * Gets a Metastore that matches the supplied ID. The caller must be a - * Metastore admin to retrieve this info. + * Gets a metastore that matches the supplied ID. The caller must be a + * metastore admin to retrieve this info. */ MetastoreInfo get(GetMetastoreRequest getMetastoreRequest); /** - * List Metastores. + * List metastores. * - * Gets an array of the available Metastores (as MetastoreInfo objects). The - * caller must be an admin to retrieve this info. + * Gets an array of the available metastores (as __MetastoreInfo__ objects). + * The caller must be an admin to retrieve this info. There is no guarantee + * of a specific ordering of the elements in the array. */ ListMetastoresResponse list(); /** - * Get a summary. + * Get a metastore summary. * - * Gets information about a Metastore. This summary includes the storage - * credential, the cloud vendor, the cloud region, and the global Metastore + * Gets information about a metastore. This summary includes the storage + * credential, the cloud vendor, the cloud region, and the global metastore * ID. */ GetMetastoreSummaryResponse summary(); @@ -79,25 +87,25 @@ public interface MetastoresService { /** * Delete an assignment. * - * Deletes a Metastore assignment. The caller must be an account + * Deletes a metastore assignment. The caller must be an account * administrator. */ void unassign(UnassignRequest unassignRequest); /** - * Update a Metastore. + * Update a metastore. * - * Updates information for a specific Metastore. The caller must be a - * Metastore admin. + * Updates information for a specific metastore. The caller must be a + * metastore admin. */ MetastoreInfo update(UpdateMetastore updateMetastore); /** * Update an assignment. * - * Updates a Metastore assignment. This operation can be used to update + * Updates a metastore assignment. This operation can be used to update * __metastore_id__ or __default_catalog_name__ for a specified Workspace, - * if the Workspace is already assigned a Metastore. The caller must be an + * if the Workspace is already assigned a metastore. The caller must be an * account admin to update __metastore_id__; otherwise, the caller can be a * Workspace admin. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProviderInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProviderInfo.java index a5eacbb81..997d895ca 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProviderInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProviderInfo.java @@ -19,8 +19,8 @@ public class ProviderInfo { private AuthenticationType authenticationType; /** - * Cloud vendor of the provider's UC Metastore. This field is only present - * when the authentication_type is `DATABRICKS`. + * Cloud vendor of the provider's UC metastore. This field is only present + * when the __authentication_type__ is **DATABRICKS**. */ @JsonProperty("cloud") private String cloud; @@ -45,15 +45,15 @@ public class ProviderInfo { /** * The global UC metastore id of the data provider. This field is only - * present when the authentication type is `DATABRICKS`. The identifier is - * of format ::. + * present when the __authentication_type__ is **DATABRICKS**. The + * identifier is of format ::. */ @JsonProperty("data_provider_global_metastore_id") private String dataProviderGlobalMetastoreId; /** - * UUID of the provider's UC Metastore. This field is only present when the - * authentication type is `DATABRICKS`. + * UUID of the provider's UC metastore. This field is only present when the + * __authentication_type__ is **DATABRICKS**. */ @JsonProperty("metastore_id") private String metastoreId; @@ -78,15 +78,15 @@ public class ProviderInfo { private RecipientProfile recipientProfile; /** - * This field is required when the authentication_type is `TOKEN` or not + * This field is only present when the authentication_type is `TOKEN` or not * provided. */ @JsonProperty("recipient_profile_str") private String recipientProfileStr; /** - * Cloud region of the provider's UC Metastore. This field is only present - * when the authentication type is `DATABRICKS`. + * Cloud region of the provider's UC metastore. This field is only present + * when the __authentication_type__ is **DATABRICKS**. */ @JsonProperty("region") private String region; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersAPI.java index afd9ded33..90fe0c9b2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersAPI.java @@ -26,7 +26,7 @@ public ProvidersAPI(ApiClient apiClient) { * Create an auth provider. * * Creates a new authentication provider minimally based on a name and - * authentication type. The caller must be an admin on the Metastore. + * authentication type. The caller must be an admin on the metastore. */ @Override public ProviderInfo create(CreateProvider request) { @@ -37,7 +37,7 @@ public ProviderInfo create(CreateProvider request) { /** * Delete a provider. * - * Deletes an authentication provider, if the caller is a Metastore admin or + * Deletes an authentication provider, if the caller is a metastore admin or * is the owner of the provider. */ @Override @@ -50,7 +50,7 @@ public void delete(DeleteProviderRequest request) { * Get a provider. * * Gets a specific authentication provider. The caller must supply the name - * of the provider, and must either be a Metastore admin or the owner of the + * of the provider, and must either be a metastore admin or the owner of the * provider. */ @Override @@ -63,8 +63,9 @@ public ProviderInfo get(GetProviderRequest request) { * List providers. * * Gets an array of available authentication providers. The caller must - * either be a Metastore admin or the owner of the providers. Providers not - * owned by the caller are not included in the response. + * either be a metastore admin or the owner of the providers. Providers not + * owned by the caller are not included in the response. There is no + * guarantee of a specific ordering of the elements in the array. */ @Override public ListProvidersResponse list(ListProvidersRequest request) { @@ -73,11 +74,12 @@ public ListProvidersResponse list(ListProvidersRequest request) { } /** - * List shares. + * List shares by Provider. * - * Gets an array of all shares within the Metastore where: + * Gets an array of a specified provider's shares within the metastore + * where: * - * * the caller is a Metastore admin, or * the caller is the owner. + * * the caller is a metastore admin, or * the caller is the owner. */ @Override public ListProviderSharesResponse listShares(ListSharesRequest request) { @@ -89,8 +91,8 @@ public ListProviderSharesResponse listShares(ListSharesRequest request) { * Update a provider. * * Updates the information for an authentication provider, if the caller is - * a Metastore admin or is the owner of the provider. If the update changes - * the provider name, the caller must be both a Metastore admin and the + * a metastore admin or is the owner of the provider. If the update changes + * the provider name, the caller must be both a metastore admin and the * owner of the provider. */ @Override diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersService.java index 944638aa0..0bf29f545 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ProvidersService.java @@ -18,14 +18,14 @@ public interface ProvidersService { * Create an auth provider. * * Creates a new authentication provider minimally based on a name and - * authentication type. The caller must be an admin on the Metastore. + * authentication type. The caller must be an admin on the metastore. */ ProviderInfo create(CreateProvider createProvider); /** * Delete a provider. * - * Deletes an authentication provider, if the caller is a Metastore admin or + * Deletes an authentication provider, if the caller is a metastore admin or * is the owner of the provider. */ void delete(DeleteProviderRequest deleteProviderRequest); @@ -34,7 +34,7 @@ public interface ProvidersService { * Get a provider. * * Gets a specific authentication provider. The caller must supply the name - * of the provider, and must either be a Metastore admin or the owner of the + * of the provider, and must either be a metastore admin or the owner of the * provider. */ ProviderInfo get(GetProviderRequest getProviderRequest); @@ -43,17 +43,19 @@ public interface ProvidersService { * List providers. * * Gets an array of available authentication providers. The caller must - * either be a Metastore admin or the owner of the providers. Providers not - * owned by the caller are not included in the response. + * either be a metastore admin or the owner of the providers. Providers not + * owned by the caller are not included in the response. There is no + * guarantee of a specific ordering of the elements in the array. */ ListProvidersResponse list(ListProvidersRequest listProvidersRequest); /** - * List shares. + * List shares by Provider. * - * Gets an array of all shares within the Metastore where: + * Gets an array of a specified provider's shares within the metastore + * where: * - * * the caller is a Metastore admin, or * the caller is the owner. + * * the caller is a metastore admin, or * the caller is the owner. */ ListProviderSharesResponse listShares(ListSharesRequest listSharesRequest); @@ -61,8 +63,8 @@ public interface ProvidersService { * Update a provider. * * Updates the information for an authentication provider, if the caller is - * a Metastore admin or is the owner of the provider. If the update changes - * the provider name, the caller must be both a Metastore admin and the + * a metastore admin or is the owner of the provider. If the update changes + * the provider name, the caller must be both a metastore admin and the * owner of the provider. */ ProviderInfo update(UpdateProvider updateProvider); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationAPI.java index 19e000e12..a529296cc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationAPI.java @@ -25,7 +25,7 @@ public RecipientActivationAPI(ApiClient apiClient) { /** * Get a share activation URL. * - * Gets information about an Activation URL. + * Gets an activation URL for a share. */ @Override public void getActivationUrlInfo(GetActivationUrlInfoRequest request) { @@ -36,8 +36,8 @@ public void getActivationUrlInfo(GetActivationUrlInfoRequest request) { /** * Get an access token. * - * RPC to retrieve access token with an activation token. This is a public - * API without any authentication. + * Retrieve access token with an activation url. This is a public API + * without any authentication. */ @Override public RetrieveTokenResponse retrieveToken(RetrieveTokenRequest request) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationService.java index 975c17767..da646c0d3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientActivationService.java @@ -17,15 +17,15 @@ public interface RecipientActivationService { /** * Get a share activation URL. * - * Gets information about an Activation URL. + * Gets an activation URL for a share. */ void getActivationUrlInfo(GetActivationUrlInfoRequest getActivationUrlInfoRequest); /** * Get an access token. * - * RPC to retrieve access token with an activation token. This is a public - * API without any authentication. + * Retrieve access token with an activation url. This is a public API + * without any authentication. */ RetrieveTokenResponse retrieveToken(RetrieveTokenRequest retrieveTokenRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientInfo.java index 94348665f..24b9fd936 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientInfo.java @@ -34,7 +34,7 @@ public class RecipientInfo { /** * Cloud vendor of the recipient's Unity Catalog Metstore. This field is - * only present when the authentication type is `DATABRICKS`. + * only present when the __authentication_type__ is **DATABRICKS**`. */ @JsonProperty("cloud") private String cloud; @@ -59,9 +59,9 @@ public class RecipientInfo { /** * The global Unity Catalog metastore id provided by the data recipient.\n - * This field is only present when the authentication type is - * `DATABRICKS`.\n The identifier is of format - * ::. + * This field is only present when the __authentication_type__ is + * **DATABRICKS**.\n The identifier is of format + * __cloud__:__region__:__metastore-uuid__. */ @JsonProperty("data_recipient_global_metastore_id") private Object /* MISSING TYPE */ dataRecipientGlobalMetastoreId; @@ -73,8 +73,8 @@ public class RecipientInfo { private IpAccessList ipAccessList; /** - * Unique identifier of recipient's Unity Catalog Metastore. This field is - * only present when the authentication type is `DATABRICKS` + * Unique identifier of recipient's Unity Catalog metastore. This field is + * only present when the __authentication_type__ is **DATABRICKS** */ @JsonProperty("metastore_id") private String metastoreId; @@ -85,22 +85,34 @@ public class RecipientInfo { @JsonProperty("name") private String name; + /** + * Username of the recipient owner. + */ + @JsonProperty("owner") + private String owner; + + /** + * Recipient properties as map of string key-value pairs.\n + */ + @JsonProperty("properties_kvpairs") + private Object /* MISSING TYPE */ propertiesKvpairs; + /** * Cloud region of the recipient's Unity Catalog Metstore. This field is - * only present when the authentication type is `DATABRICKS`. + * only present when the __authentication_type__ is **DATABRICKS**. */ @JsonProperty("region") private String region; /** * The one-time sharing code provided by the data recipient. This field is - * only present when the authentication type is `DATABRICKS`. + * only present when the __authentication_type__ is **DATABRICKS**. */ @JsonProperty("sharing_code") private String sharingCode; /** - * This field is only present when the authentication type is `TOKEN`. + * This field is only present when the __authentication_type__ is **TOKEN**. */ @JsonProperty("tokens") private java.util.List tokens; @@ -216,6 +228,24 @@ public String getName() { return name; } + public RecipientInfo setOwner(String owner) { + this.owner = owner; + return this; + } + + public String getOwner() { + return owner; + } + + public RecipientInfo setPropertiesKvpairs(Object /* MISSING TYPE */ propertiesKvpairs) { + this.propertiesKvpairs = propertiesKvpairs; + return this; + } + + public Object /* MISSING TYPE */ getPropertiesKvpairs() { + return propertiesKvpairs; + } + public RecipientInfo setRegion(String region) { this.region = region; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsAPI.java index 6da9bbe3a..4febf4100 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsAPI.java @@ -26,8 +26,8 @@ public RecipientsAPI(ApiClient apiClient) { * Create a share recipient. * * Creates a new recipient with the delta sharing authentication type in the - * Metastore. The caller must be a Metastore admin or has the - * CREATE_RECIPIENT privilege on the Metastore. + * metastore. The caller must be a metastore admin or has the + * **CREATE_RECIPIENT** privilege on the metastore. */ @Override public RecipientInfo create(CreateRecipient request) { @@ -38,7 +38,7 @@ public RecipientInfo create(CreateRecipient request) { /** * Delete a share recipient. * - * Deletes the specified recipient from the Metastore. The caller must be + * Deletes the specified recipient from the metastore. The caller must be * the owner of the recipient. */ @Override @@ -50,9 +50,9 @@ public void delete(DeleteRecipientRequest request) { /** * Get a share recipient. * - * Gets a share recipient from the Metastore if: + * Gets a share recipient from the metastore if: * - * * the caller is the owner of the share recipient, or: * is a Metastore + * * the caller is the owner of the share recipient, or: * is a metastore * admin */ @Override @@ -64,9 +64,10 @@ public RecipientInfo get(GetRecipientRequest request) { /** * List share recipients. * - * Gets an array of all share recipients within the current Metastore where: + * Gets an array of all share recipients within the current metastore where: * - * * the caller is a Metastore admin, or * the caller is the owner. + * * the caller is a metastore admin, or * the caller is the owner. There is + * no guarantee of a specific ordering of the elements in the array. */ @Override public ListRecipientsResponse list(ListRecipientsRequest request) { @@ -88,10 +89,10 @@ public RecipientInfo rotateToken(RotateRecipientToken request) { } /** - * Get share permissions. + * Get recipient share permissions. * * Gets the share permissions for the specified Recipient. The caller must - * be a Metastore admin or the owner of the Recipient. + * be a metastore admin or the owner of the Recipient. */ @Override public GetRecipientSharePermissionsResponse sharePermissions(SharePermissionsRequest request) { @@ -102,9 +103,9 @@ public GetRecipientSharePermissionsResponse sharePermissions(SharePermissionsReq /** * Update a share recipient. * - * Updates an existing recipient in the Metastore. The caller must be a - * Metastore admin or the owner of the recipient. If the recipient name will - * be updated, the user must be both a Metastore admin and the owner of the + * Updates an existing recipient in the metastore. The caller must be a + * metastore admin or the owner of the recipient. If the recipient name will + * be updated, the user must be both a metastore admin and the owner of the * recipient. */ @Override diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsService.java index 51af023a6..7bbf323a4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RecipientsService.java @@ -18,15 +18,15 @@ public interface RecipientsService { * Create a share recipient. * * Creates a new recipient with the delta sharing authentication type in the - * Metastore. The caller must be a Metastore admin or has the - * CREATE_RECIPIENT privilege on the Metastore. + * metastore. The caller must be a metastore admin or has the + * **CREATE_RECIPIENT** privilege on the metastore. */ RecipientInfo create(CreateRecipient createRecipient); /** * Delete a share recipient. * - * Deletes the specified recipient from the Metastore. The caller must be + * Deletes the specified recipient from the metastore. The caller must be * the owner of the recipient. */ void delete(DeleteRecipientRequest deleteRecipientRequest); @@ -34,9 +34,9 @@ public interface RecipientsService { /** * Get a share recipient. * - * Gets a share recipient from the Metastore if: + * Gets a share recipient from the metastore if: * - * * the caller is the owner of the share recipient, or: * is a Metastore + * * the caller is the owner of the share recipient, or: * is a metastore * admin */ RecipientInfo get(GetRecipientRequest getRecipientRequest); @@ -44,9 +44,10 @@ public interface RecipientsService { /** * List share recipients. * - * Gets an array of all share recipients within the current Metastore where: + * Gets an array of all share recipients within the current metastore where: * - * * the caller is a Metastore admin, or * the caller is the owner. + * * the caller is a metastore admin, or * the caller is the owner. There is + * no guarantee of a specific ordering of the elements in the array. */ ListRecipientsResponse list(ListRecipientsRequest listRecipientsRequest); @@ -60,19 +61,19 @@ public interface RecipientsService { RecipientInfo rotateToken(RotateRecipientToken rotateRecipientToken); /** - * Get share permissions. + * Get recipient share permissions. * * Gets the share permissions for the specified Recipient. The caller must - * be a Metastore admin or the owner of the Recipient. + * be a metastore admin or the owner of the Recipient. */ GetRecipientSharePermissionsResponse sharePermissions(SharePermissionsRequest sharePermissionsRequest); /** * Update a share recipient. * - * Updates an existing recipient in the Metastore. The caller must be a - * Metastore admin or the owner of the recipient. If the recipient name will - * be updated, the user must be both a Metastore admin and the owner of the + * Updates an existing recipient in the metastore. The caller must be a + * metastore admin or the owner of the recipient. If the recipient name will + * be updated, the user must be both a metastore admin and the owner of the * recipient. */ void update(UpdateRecipient updateRecipient); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RetrieveTokenRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RetrieveTokenRequest.java index e81eb8090..0faf0f7e3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RetrieveTokenRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RetrieveTokenRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class RetrieveTokenRequest { /** - * Required. The one time activation url. It also accepts activation token. + * The one time activation url. It also accepts activation token. */ private String activationUrl; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RotateRecipientToken.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RotateRecipientToken.java index 5329fc181..540dacd3d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RotateRecipientToken.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/RotateRecipientToken.java @@ -13,15 +13,16 @@ @Generated("databricks-sdk-generator") public class RotateRecipientToken { /** - * Required. This will set the expiration_time of existing token only to a - * smaller timestamp, it cannot extend the expiration_time. Use 0 to expire - * the existing token immediately, negative number will return an error. + * The expiration time of the bearer token in ISO 8601 format. This will set + * the expiration_time of existing token only to a smaller timestamp, it + * cannot extend the expiration_time. Use 0 to expire the existing token + * immediately, negative number will return an error. */ @JsonProperty("existing_token_expire_in_seconds") private Long existingTokenExpireInSeconds; /** - * Required. The name of the recipient. + * The name of the recipient. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemaInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemaInfo.java index 95ed50101..758c237de 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemaInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemaInfo.java @@ -13,11 +13,17 @@ @Generated("databricks-sdk-generator") public class SchemaInfo { /** - * Name of parent Catalog. + * Name of parent catalog. */ @JsonProperty("catalog_name") private String catalogName; + /** + * The type of the parent catalog. + */ + @JsonProperty("catalog_type") + private String catalogType; + /** * User-provided free-form text description. */ @@ -25,43 +31,43 @@ public class SchemaInfo { private String comment; /** - * Time at which this Schema was created, in epoch milliseconds. + * Time at which this schema was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of Schema creator. + * Username of schema creator. */ @JsonProperty("created_by") private String createdBy; /** - * Full name of Schema, in form of .. + * Full name of schema, in form of __catalog_name__.__schema_name__. */ @JsonProperty("full_name") private String fullName; /** - * Unique identifier of parent Metastore. + * Unique identifier of parent metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * Name of Schema, relative to parent Catalog. + * Name of schema, relative to parent catalog. */ @JsonProperty("name") private String name; /** - * Username of current owner of Schema. + * Username of current owner of schema. */ @JsonProperty("owner") private String owner; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; @@ -79,13 +85,13 @@ public class SchemaInfo { private String storageRoot; /** - * Time at which this Schema was created, in epoch milliseconds. + * Time at which this schema was created, in epoch milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** - * Username of user who last modified Schema. + * Username of user who last modified schema. */ @JsonProperty("updated_by") private String updatedBy; @@ -99,6 +105,15 @@ public String getCatalogName() { return catalogName; } + public SchemaInfo setCatalogType(String catalogType) { + this.catalogType = catalogType; + return this; + } + + public String getCatalogType() { + return catalogType; + } + public SchemaInfo setComment(String comment) { this.comment = comment; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasAPI.java index de3dc3bfe..b4cd7ddc1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasAPI.java @@ -13,9 +13,9 @@ /** * A schema (also called a database) is the second layer of Unity Catalog’s - * three-level namespace. A schema organizes tables and views. To access (or - * list) a table or view in a schema, users must have the USE_SCHEMA data - * permission on the schema and its parent catalog, and they must have the + * three-level namespace. A schema organizes tables, views and functions. To + * access (or list) a table or view in a schema, users must have the USE_SCHEMA + * data permission on the schema and its parent catalog, and they must have the * SELECT permission on the table or view. */ @Generated("databricks-sdk-generator") @@ -30,7 +30,7 @@ public SchemasAPI(ApiClient apiClient) { * Create a schema. * * Creates a new schema for catalog in the Metatastore. The caller must be a - * Metastore admin, or have the CREATE_SCHEMA privilege in the parent + * metastore admin, or have the **CREATE_SCHEMA** privilege in the parent * catalog. */ @Override @@ -54,9 +54,9 @@ public void delete(DeleteSchemaRequest request) { /** * Get a schema. * - * Gets the specified schema for a catalog in the Metastore. The caller must - * be a Metastore admin, the owner of the schema, or a user that has the - * USE_SCHEMA privilege on the schema. + * Gets the specified schema within the metastore. The caller must be a + * metastore admin, the owner of the schema, or a user that has the + * **USE_SCHEMA** privilege on the schema. */ @Override public SchemaInfo get(GetSchemaRequest request) { @@ -67,11 +67,12 @@ public SchemaInfo get(GetSchemaRequest request) { /** * List schemas. * - * Gets an array of schemas for catalog in the Metastore. If the caller is - * the Metastore admin or the owner of the parent catalog, all schemas for + * Gets an array of schemas for a catalog in the metastore. If the caller is + * the metastore admin or the owner of the parent catalog, all schemas for * the catalog will be retrieved. Otherwise, only schemas owned by the - * caller (or for which the caller has the USE_SCHEMA privilege) will be - * retrieved. + * caller (or for which the caller has the **USE_SCHEMA** privilege) will be + * retrieved. There is no guarantee of a specific ordering of the elements + * in the array. */ @Override public ListSchemasResponse list(ListSchemasRequest request) { @@ -83,10 +84,10 @@ public ListSchemasResponse list(ListSchemasRequest request) { * Update a schema. * * Updates a schema for a catalog. The caller must be the owner of the - * schema. If the caller is a Metastore admin, only the __owner__ field can - * be changed in the update. If the __name__ field must be updated, the - * caller must be a Metastore admin or have the CREATE_SCHEMA privilege on - * the parent catalog. + * schema or a metastore admin. If the caller is a metastore admin, only the + * __owner__ field can be changed in the update. If the __name__ field must + * be updated, the caller must be a metastore admin or have the + * **CREATE_SCHEMA** privilege on the parent catalog. */ @Override public SchemaInfo update(UpdateSchema request) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasService.java index d7fda8d63..ebaca355e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SchemasService.java @@ -7,9 +7,9 @@ /** * A schema (also called a database) is the second layer of Unity Catalog’s - * three-level namespace. A schema organizes tables and views. To access (or - * list) a table or view in a schema, users must have the USE_SCHEMA data - * permission on the schema and its parent catalog, and they must have the + * three-level namespace. A schema organizes tables, views and functions. To + * access (or list) a table or view in a schema, users must have the USE_SCHEMA + * data permission on the schema and its parent catalog, and they must have the * SELECT permission on the table or view. * * This is the high-level interface, that contains generated methods. @@ -22,7 +22,7 @@ public interface SchemasService { * Create a schema. * * Creates a new schema for catalog in the Metatastore. The caller must be a - * Metastore admin, or have the CREATE_SCHEMA privilege in the parent + * metastore admin, or have the **CREATE_SCHEMA** privilege in the parent * catalog. */ SchemaInfo create(CreateSchema createSchema); @@ -38,20 +38,21 @@ public interface SchemasService { /** * Get a schema. * - * Gets the specified schema for a catalog in the Metastore. The caller must - * be a Metastore admin, the owner of the schema, or a user that has the - * USE_SCHEMA privilege on the schema. + * Gets the specified schema within the metastore. The caller must be a + * metastore admin, the owner of the schema, or a user that has the + * **USE_SCHEMA** privilege on the schema. */ SchemaInfo get(GetSchemaRequest getSchemaRequest); /** * List schemas. * - * Gets an array of schemas for catalog in the Metastore. If the caller is - * the Metastore admin or the owner of the parent catalog, all schemas for + * Gets an array of schemas for a catalog in the metastore. If the caller is + * the metastore admin or the owner of the parent catalog, all schemas for * the catalog will be retrieved. Otherwise, only schemas owned by the - * caller (or for which the caller has the USE_SCHEMA privilege) will be - * retrieved. + * caller (or for which the caller has the **USE_SCHEMA** privilege) will be + * retrieved. There is no guarantee of a specific ordering of the elements + * in the array. */ ListSchemasResponse list(ListSchemasRequest listSchemasRequest); @@ -59,10 +60,10 @@ public interface SchemasService { * Update a schema. * * Updates a schema for a catalog. The caller must be the owner of the - * schema. If the caller is a Metastore admin, only the __owner__ field can - * be changed in the update. If the __name__ field must be updated, the - * caller must be a Metastore admin or have the CREATE_SCHEMA privilege on - * the parent catalog. + * schema or a metastore admin. If the caller is a metastore admin, only the + * __owner__ field can be changed in the update. If the __name__ field must + * be updated, the caller must be a metastore admin or have the + * **CREATE_SCHEMA** privilege on the parent catalog. */ SchemaInfo update(UpdateSchema updateSchema); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ShareInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ShareInfo.java index 187ba0c51..2fe850fdf 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ShareInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/ShareInfo.java @@ -19,40 +19,46 @@ public class ShareInfo { private String comment; /** - * Time at which this Share was created, in epoch milliseconds. + * Time at which this share was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of Share creator. + * Username of share creator. */ @JsonProperty("created_by") private String createdBy; /** - * Name of the Share. + * Name of the share. */ @JsonProperty("name") private String name; /** - * A list of shared data objects within the Share. + * A list of shared data objects within the share. */ @JsonProperty("objects") private java.util.List objects; /** - * Username of current owner of Share. + * Username of current owner of share. */ @JsonProperty("owner") private String owner; /** - * Array of shared data object updates. + * Time at which this share was updated, in epoch milliseconds. */ - @JsonProperty("updates") - private java.util.List updates; + @JsonProperty("updated_at") + private Long updatedAt; + + /** + * Username of share updater. + */ + @JsonProperty("updated_by") + private String updatedBy; public ShareInfo setComment(String comment) { this.comment = comment; @@ -108,13 +114,22 @@ public String getOwner() { return owner; } - public ShareInfo setUpdates(java.util.List updates) { - this.updates = updates; + public ShareInfo setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + public ShareInfo setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; return this; } - public java.util.List getUpdates() { - return updates; + public String getUpdatedBy() { + return updatedBy; } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharePermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharePermissionsRequest.java index 9775c89eb..a3d0b3396 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharePermissionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharePermissionsRequest.java @@ -10,12 +10,12 @@ /** - * Get share permissions + * Get recipient share permissions */ @Generated("databricks-sdk-generator") public class SharePermissionsRequest { /** - * Required. The name of the Recipient. + * The name of the Recipient. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharedDataObject.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharedDataObject.java index b3ad58718..a39ea02e4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharedDataObject.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharedDataObject.java @@ -13,7 +13,7 @@ @Generated("databricks-sdk-generator") public class SharedDataObject { /** - * The time when this data object is added to the Share, in epoch + * The time when this data object is added to the share, in epoch * milliseconds. */ @JsonProperty("added_at") @@ -61,9 +61,9 @@ public class SharedDataObject { /** * A user-provided new name for the data object within the share. If this - * new name is not not provided, the object's original name will be used as - * the `shared_as` name. The `shared_as` name must be unique within a Share. - * For tables, the new name must follow the format of `.`. + * new name is not provided, the object's original name will be used as the + * `shared_as` name. The `shared_as` name must be unique within a share. For + * tables, the new name must follow the format of `.
`. */ @JsonProperty("shared_as") private String sharedAs; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesAPI.java index a8be11fc0..f1f729be8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesAPI.java @@ -26,8 +26,8 @@ public SharesAPI(ApiClient apiClient) { * Create a share. * * Creates a new share for data objects. Data objects can be added at this - * time or after creation with **update**. The caller must be a Metastore - * admin or have the CREATE_SHARE privilege on the Metastore. + * time or after creation with **update**. The caller must be a metastore + * admin or have the **CREATE_SHARE** privilege on the metastore. */ @Override public ShareInfo create(CreateShare request) { @@ -38,7 +38,7 @@ public ShareInfo create(CreateShare request) { /** * Delete a share. * - * Deletes a data object share from the Metastore. The caller must be an + * Deletes a data object share from the metastore. The caller must be an * owner of the share. */ @Override @@ -50,8 +50,8 @@ public void delete(DeleteShareRequest request) { /** * Get a share. * - * Gets a data object share from the Metastore. The caller must be a - * Metastore admin or the owner of the share. + * Gets a data object share from the metastore. The caller must be a + * metastore admin or the owner of the share. */ @Override public ShareInfo get(GetShareRequest request) { @@ -62,8 +62,9 @@ public ShareInfo get(GetShareRequest request) { /** * List shares. * - * Gets an array of data object shares from the Metastore. The caller must - * be a Metastore admin or the owner of the share. + * Gets an array of data object shares from the metastore. The caller must + * be a metastore admin or the owner of the share. There is no guarantee of + * a specific ordering of the elements in the array. */ @Override public ListSharesResponse list() { @@ -74,29 +75,29 @@ public ListSharesResponse list() { /** * Get permissions. * - * Gets the permissions for a data share from the Metastore. The caller must - * be a Metastore admin or the owner of the share. + * Gets the permissions for a data share from the metastore. The caller must + * be a metastore admin or the owner of the share. */ @Override - public GetSharePermissionsResponse sharePermissions(SharePermissionsRequest request) { + public PermissionsList sharePermissions(SharePermissionsRequest request) { String path = String.format("/api/2.1/unity-catalog/shares/%s/permissions", request.getName()); - return apiClient.GET(path, request, GetSharePermissionsResponse.class); + return apiClient.GET(path, request, PermissionsList.class); } /** * Update a share. * * Updates the share with the changes and data objects in the request. The - * caller must be the owner of the share or a Metastore admin. + * caller must be the owner of the share or a metastore admin. * - * When the caller is a Metastore admin, only the __owner__ field can be + * When the caller is a metastore admin, only the __owner__ field can be * updated. * - * In the case that the Share name is changed, **updateShare** requires that - * the caller is both the share owner and a Metastore admin. + * In the case that the share name is changed, **updateShare** requires that + * the caller is both the share owner and a metastore admin. * * For each table that is added through this method, the share owner must - * also have SELECT privilege on the table. This privilege must be + * also have **SELECT** privilege on the table. This privilege must be * maintained indefinitely for recipients to be able to access the table. * Typically, you should use a group as the share owner. * @@ -111,8 +112,8 @@ public ShareInfo update(UpdateShare request) { /** * Update permissions. * - * Updates the permissions for a data share in the Metastore. The caller - * must be a Metastore admin or an owner of the share. + * Updates the permissions for a data share in the metastore. The caller + * must be a metastore admin or an owner of the share. * * For new recipient grants, the user must also be the owner of the * recipients. recipient revocations do not require additional privileges. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesService.java index 0e9a8caf3..fc9f0553f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/SharesService.java @@ -18,15 +18,15 @@ public interface SharesService { * Create a share. * * Creates a new share for data objects. Data objects can be added at this - * time or after creation with **update**. The caller must be a Metastore - * admin or have the CREATE_SHARE privilege on the Metastore. + * time or after creation with **update**. The caller must be a metastore + * admin or have the **CREATE_SHARE** privilege on the metastore. */ ShareInfo create(CreateShare createShare); /** * Delete a share. * - * Deletes a data object share from the Metastore. The caller must be an + * Deletes a data object share from the metastore. The caller must be an * owner of the share. */ void delete(DeleteShareRequest deleteShareRequest); @@ -34,41 +34,42 @@ public interface SharesService { /** * Get a share. * - * Gets a data object share from the Metastore. The caller must be a - * Metastore admin or the owner of the share. + * Gets a data object share from the metastore. The caller must be a + * metastore admin or the owner of the share. */ ShareInfo get(GetShareRequest getShareRequest); /** * List shares. * - * Gets an array of data object shares from the Metastore. The caller must - * be a Metastore admin or the owner of the share. + * Gets an array of data object shares from the metastore. The caller must + * be a metastore admin or the owner of the share. There is no guarantee of + * a specific ordering of the elements in the array. */ ListSharesResponse list(); /** * Get permissions. * - * Gets the permissions for a data share from the Metastore. The caller must - * be a Metastore admin or the owner of the share. + * Gets the permissions for a data share from the metastore. The caller must + * be a metastore admin or the owner of the share. */ - GetSharePermissionsResponse sharePermissions(SharePermissionsRequest sharePermissionsRequest); + PermissionsList sharePermissions(SharePermissionsRequest sharePermissionsRequest); /** * Update a share. * * Updates the share with the changes and data objects in the request. The - * caller must be the owner of the share or a Metastore admin. + * caller must be the owner of the share or a metastore admin. * - * When the caller is a Metastore admin, only the __owner__ field can be + * When the caller is a metastore admin, only the __owner__ field can be * updated. * - * In the case that the Share name is changed, **updateShare** requires that - * the caller is both the share owner and a Metastore admin. + * In the case that the share name is changed, **updateShare** requires that + * the caller is both the share owner and a metastore admin. * * For each table that is added through this method, the share owner must - * also have SELECT privilege on the table. This privilege must be + * also have **SELECT** privilege on the table. This privilege must be * maintained indefinitely for recipients to be able to access the table. * Typically, you should use a group as the share owner. * @@ -79,8 +80,8 @@ public interface SharesService { /** * Update permissions. * - * Updates the permissions for a data share in the Metastore. The caller - * must be a Metastore admin or an owner of the share. + * Updates the permissions for a data share in the metastore. The caller + * must be a metastore admin or an owner of the share. * * For new recipient grants, the user must also be the owner of the * recipients. recipient revocations do not require additional privileges. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialInfo.java index d80caf544..dad3a5c92 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialInfo.java @@ -55,23 +55,28 @@ public class StorageCredentialInfo { private String id; /** - * Unique identifier of parent Metastore. + * Unique identifier of parent metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * The credential name. The name MUST be unique within the Metastore. + * The credential name. The name must be unique within the metastore. */ @JsonProperty("name") private String name; /** - * Optional. Supplying true to this argument skips validation of the created - * set of credentials. + * Username of current owner of credential. */ - @JsonProperty("skip_validation") - private Boolean skipValidation; + @JsonProperty("owner") + private String owner; + + /** + * Whether the storage credential is only usable for read operations. + */ + @JsonProperty("read_only") + private Boolean readOnly; /** * Time at which this credential was last modified, in epoch milliseconds. @@ -85,6 +90,13 @@ public class StorageCredentialInfo { @JsonProperty("updated_by") private String updatedBy; + /** + * Whether this credential is the current metastore's root storage + * credential. + */ + @JsonProperty("used_for_managed_storage") + private Boolean usedForManagedStorage; + public StorageCredentialInfo setAwsIamRole(AwsIamRole awsIamRole) { this.awsIamRole = awsIamRole; return this; @@ -166,13 +178,22 @@ public String getName() { return name; } - public StorageCredentialInfo setSkipValidation(Boolean skipValidation) { - this.skipValidation = skipValidation; + public StorageCredentialInfo setOwner(String owner) { + this.owner = owner; + return this; + } + + public String getOwner() { + return owner; + } + + public StorageCredentialInfo setReadOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } - public Boolean getSkipValidation() { - return skipValidation; + public Boolean getReadOnly() { + return readOnly; } public StorageCredentialInfo setUpdatedAt(Long updatedAt) { @@ -193,4 +214,13 @@ public String getUpdatedBy() { return updatedBy; } + public StorageCredentialInfo setUsedForManagedStorage(Boolean usedForManagedStorage) { + this.usedForManagedStorage = usedForManagedStorage; + return this; + } + + public Boolean getUsedForManagedStorage() { + return usedForManagedStorage; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsAPI.java index e5b7fca84..3f41fda4c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsAPI.java @@ -13,12 +13,11 @@ /** * A storage credential represents an authentication and authorization mechanism - * for accessing data stored on your cloud tenant, using an IAM role. Each - * storage credential is subject to Unity Catalog access-control policies that - * control which users and groups can access the credential. If a user does not - * have access to a storage credential in Unity Catalog, the request fails and - * Unity Catalog does not attempt to authenticate to your cloud tenant on the - * user’s behalf. + * for accessing data stored on your cloud tenant. Each storage credential is + * subject to Unity Catalog access-control policies that control which users and + * groups can access the credential. If a user does not have access to a storage + * credential in Unity Catalog, the request fails and Unity Catalog does not + * attempt to authenticate to your cloud tenant on the user’s behalf. * * Databricks recommends using external locations rather than using storage * credentials directly. @@ -36,7 +35,7 @@ public StorageCredentialsAPI(ApiClient apiClient) { } /** - * Create credentials. + * Create a storage credential. * * Creates a new storage credential. The request object is specific to the * cloud: @@ -44,8 +43,8 @@ public StorageCredentialsAPI(ApiClient apiClient) { * * **AwsIamRole** for AWS credentials * **AzureServicePrincipal** for * Azure credentials * **GcpServiceAcountKey** for GCP credentials. * - * The caller must be a Metastore admin and have the - * CREATE_STORAGE_CREDENTIAL privilege on the Metastore. + * The caller must be a metastore admin and have the + * **CREATE_STORAGE_CREDENTIAL** privilege on the metastore. */ @Override public StorageCredentialInfo create(CreateStorageCredential request) { @@ -56,7 +55,7 @@ public StorageCredentialInfo create(CreateStorageCredential request) { /** * Delete a credential. * - * Deletes a storage credential from the Metastore. The caller must be an + * Deletes a storage credential from the metastore. The caller must be an * owner of the storage credential. */ @Override @@ -68,9 +67,9 @@ public void delete(DeleteStorageCredentialRequest request) { /** * Get a credential. * - * Gets a storage credential from the Metastore. The caller must be a - * Metastore admin, the owner of the storage credential, or have a level of - * privilege on the storage credential. + * Gets a storage credential from the metastore. The caller must be a + * metastore admin, the owner of the storage credential, or have some + * permission on the storage credential. */ @Override public StorageCredentialInfo get(GetStorageCredentialRequest request) { @@ -81,23 +80,24 @@ public StorageCredentialInfo get(GetStorageCredentialRequest request) { /** * List credentials. * - * Gets an array of storage credentials (as StorageCredentialInfo objects). - * The array is limited to only those storage credentials the caller has the - * privilege level to access. If the caller is a Metastore admin, all - * storage credentials will be retrieved. + * Gets an array of storage credentials (as __StorageCredentialInfo__ + * objects). The array is limited to only those storage credentials the + * caller has permission to access. If the caller is a metastore admin, all + * storage credentials will be retrieved. There is no guarantee of a + * specific ordering of the elements in the array. */ @Override - public ListStorageCredentialsResponse list() { + public List list() { String path = "/api/2.1/unity-catalog/storage-credentials"; - return apiClient.GET(path, ListStorageCredentialsResponse.class); + return apiClient.GET(path, List.class); } /** * Update a credential. * - * Updates a storage credential on the Metastore. The caller must be the - * owner of the storage credential. If the caller is a Metastore admin, only - * the __owner__ credential can be changed. + * Updates a storage credential on the metastore. The caller must be the + * owner of the storage credential or a metastore admin. If the caller is a + * metastore admin, only the __owner__ credential can be changed. */ @Override public StorageCredentialInfo update(UpdateStorageCredential request) { @@ -105,4 +105,27 @@ public StorageCredentialInfo update(UpdateStorageCredential request) { return apiClient.PATCH(path, request, StorageCredentialInfo.class); } + /** + * Validate a storage credential. + * + * Validates a storage credential. 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 __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. + */ + @Override + public ValidateStorageCredentialResponse validate(ValidateStorageCredential request) { + String path = "/api/2.1/unity-catalog/validate-storage-credentials"; + return apiClient.POST(path, request, ValidateStorageCredentialResponse.class); + } + } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsService.java index 770a100ac..33f43a8dd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/StorageCredentialsService.java @@ -7,12 +7,11 @@ /** * A storage credential represents an authentication and authorization mechanism - * for accessing data stored on your cloud tenant, using an IAM role. Each - * storage credential is subject to Unity Catalog access-control policies that - * control which users and groups can access the credential. If a user does not - * have access to a storage credential in Unity Catalog, the request fails and - * Unity Catalog does not attempt to authenticate to your cloud tenant on the - * user’s behalf. + * for accessing data stored on your cloud tenant. Each storage credential is + * subject to Unity Catalog access-control policies that control which users and + * groups can access the credential. If a user does not have access to a storage + * credential in Unity Catalog, the request fails and Unity Catalog does not + * attempt to authenticate to your cloud tenant on the user’s behalf. * * Databricks recommends using external locations rather than using storage * credentials directly. @@ -28,7 +27,7 @@ @Generated("databricks-sdk-generator") public interface StorageCredentialsService { /** - * Create credentials. + * Create a storage credential. * * Creates a new storage credential. The request object is specific to the * cloud: @@ -36,15 +35,15 @@ public interface StorageCredentialsService { * * **AwsIamRole** for AWS credentials * **AzureServicePrincipal** for * Azure credentials * **GcpServiceAcountKey** for GCP credentials. * - * The caller must be a Metastore admin and have the - * CREATE_STORAGE_CREDENTIAL privilege on the Metastore. + * The caller must be a metastore admin and have the + * **CREATE_STORAGE_CREDENTIAL** privilege on the metastore. */ StorageCredentialInfo create(CreateStorageCredential createStorageCredential); /** * Delete a credential. * - * Deletes a storage credential from the Metastore. The caller must be an + * Deletes a storage credential from the metastore. The caller must be an * owner of the storage credential. */ void delete(DeleteStorageCredentialRequest deleteStorageCredentialRequest); @@ -52,29 +51,49 @@ public interface StorageCredentialsService { /** * Get a credential. * - * Gets a storage credential from the Metastore. The caller must be a - * Metastore admin, the owner of the storage credential, or have a level of - * privilege on the storage credential. + * Gets a storage credential from the metastore. The caller must be a + * metastore admin, the owner of the storage credential, or have some + * permission on the storage credential. */ StorageCredentialInfo get(GetStorageCredentialRequest getStorageCredentialRequest); /** * List credentials. * - * Gets an array of storage credentials (as StorageCredentialInfo objects). - * The array is limited to only those storage credentials the caller has the - * privilege level to access. If the caller is a Metastore admin, all - * storage credentials will be retrieved. + * Gets an array of storage credentials (as __StorageCredentialInfo__ + * objects). The array is limited to only those storage credentials the + * caller has permission to access. If the caller is a metastore admin, all + * storage credentials will be retrieved. There is no guarantee of a + * specific ordering of the elements in the array. */ - ListStorageCredentialsResponse list(); + List list(); /** * Update a credential. * - * Updates a storage credential on the Metastore. The caller must be the - * owner of the storage credential. If the caller is a Metastore admin, only - * the __owner__ credential can be changed. + * Updates a storage credential on the metastore. The caller must be the + * owner of the storage credential or a metastore admin. If the caller is a + * metastore admin, only the __owner__ credential can be changed. */ StorageCredentialInfo update(UpdateStorageCredential updateStorageCredential); + /** + * Validate a storage credential. + * + * Validates a storage credential. 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 __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. + */ + ValidateStorageCredentialResponse validate(ValidateStorageCredential validateStorageCredential); + } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableInfo.java index 80fa6b438..bc0a1f8dd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TableInfo.java @@ -13,15 +13,13 @@ @Generated("databricks-sdk-generator") public class TableInfo { /** - * Name of parent Catalog. + * Name of parent catalog. */ @JsonProperty("catalog_name") private String catalogName; /** - * This name ('columns') is what the client actually sees as the field name - * in messages that include PropertiesKVPairs using 'json_inline' (e.g., - * TableInfo). + * The array of __ColumnInfo__ definitions of the table's columns. */ @JsonProperty("columns") private java.util.List columns; @@ -33,19 +31,19 @@ public class TableInfo { private String comment; /** - * Time at which this Table was created, in epoch milliseconds. + * Time at which this table was created, in epoch milliseconds. */ @JsonProperty("created_at") private Long createdAt; /** - * Username of Table creator. + * Username of table creator. */ @JsonProperty("created_by") private String createdBy; /** - * Unique ID of the data_access_configuration to use. + * Unique ID of the Data Access Configuration to use with the table data. */ @JsonProperty("data_access_configuration_id") private String dataAccessConfigurationId; @@ -57,37 +55,57 @@ public class TableInfo { private DataSourceFormat dataSourceFormat; /** - * Full name of Table, in form of .. + * Time at which this table was deleted, in epoch milliseconds. Field is + * omitted if table is not deleted. + */ + @JsonProperty("deleted_at") + private Long deletedAt; + + /** + * Information pertaining to current state of the delta table. + */ + @JsonProperty("delta_runtime_properties_kvpairs") + private Object /* MISSING TYPE */ deltaRuntimePropertiesKvpairs; + + /** + * Full name of table, in form of + * __catalog_name__.__schema_name__.__table_name__ */ @JsonProperty("full_name") private String fullName; /** - * Unique identifier of parent Metastore. + * Unique identifier of parent metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * Name of Table, relative to parent Schema. + * Name of table, relative to parent schema. */ @JsonProperty("name") private String name; /** - * Username of current owner of Table. + * Username of current owner of table. */ @JsonProperty("owner") private String owner; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; /** - * Name of parent Schema relative to its parent Catalog. + + */ + @JsonProperty("row_filter") + private TableRowFilter rowFilter; + + /** + * Name of parent schema relative to its parent catalog. */ @JsonProperty("schema_name") private String schemaName; @@ -99,19 +117,26 @@ public class TableInfo { private String sqlPath; /** - * Name of the storage credential this table used + * Name of the storage credential, when a storage credential is configured + * for use with this table. */ @JsonProperty("storage_credential_name") private String storageCredentialName; /** - * Storage root URL for table (for MANAGED, EXTERNAL tables) + * Storage root URL for table (for **MANAGED**, **EXTERNAL** tables) */ @JsonProperty("storage_location") private String storageLocation; /** - * Name of Table, relative to parent Schema. + + */ + @JsonProperty("table_constraints") + private TableConstraintList tableConstraints; + + /** + * Name of table, relative to parent schema. */ @JsonProperty("table_id") private String tableId; @@ -123,23 +148,34 @@ public class TableInfo { private TableType tableType; /** - * Time at which this Table was last modified, in epoch milliseconds. + * Time at which this table was last modified, in epoch milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** - * Username of user who last modified the Table. + * Username of user who last modified the table. */ @JsonProperty("updated_by") private String updatedBy; /** - * View definition SQL (when table_type == "VIEW") + * View definition SQL (when __table_type__ is **VIEW**, + * **MATERIALIZED_VIEW**, or **STREAMING_TABLE**) */ @JsonProperty("view_definition") private String viewDefinition; + /** + * View dependencies (when table_type == **VIEW** or **MATERIALIZED_VIEW**, + * **STREAMING_TABLE**) - when DependencyList is None, the dependency is not + * provided; - when DependencyList is an empty list, the dependency is + * provided but is empty; - when DependencyList is not an empty list, + * dependencies are provided and recorded. + */ + @JsonProperty("view_dependencies") + private java.util.List viewDependencies; + public TableInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -203,6 +239,24 @@ public DataSourceFormat getDataSourceFormat() { return dataSourceFormat; } + public TableInfo setDeletedAt(Long deletedAt) { + this.deletedAt = deletedAt; + return this; + } + + public Long getDeletedAt() { + return deletedAt; + } + + public TableInfo setDeltaRuntimePropertiesKvpairs(Object /* MISSING TYPE */ deltaRuntimePropertiesKvpairs) { + this.deltaRuntimePropertiesKvpairs = deltaRuntimePropertiesKvpairs; + return this; + } + + public Object /* MISSING TYPE */ getDeltaRuntimePropertiesKvpairs() { + return deltaRuntimePropertiesKvpairs; + } + public TableInfo setFullName(String fullName) { this.fullName = fullName; return this; @@ -248,6 +302,15 @@ public Map getProperties() { return properties; } + public TableInfo setRowFilter(TableRowFilter rowFilter) { + this.rowFilter = rowFilter; + return this; + } + + public TableRowFilter getRowFilter() { + return rowFilter; + } + public TableInfo setSchemaName(String schemaName) { this.schemaName = schemaName; return this; @@ -284,6 +347,15 @@ public String getStorageLocation() { return storageLocation; } + public TableInfo setTableConstraints(TableConstraintList tableConstraints) { + this.tableConstraints = tableConstraints; + return this; + } + + public TableConstraintList getTableConstraints() { + return tableConstraints; + } + public TableInfo setTableId(String tableId) { this.tableId = tableId; return this; @@ -329,4 +401,13 @@ public String getViewDefinition() { return viewDefinition; } + public TableInfo setViewDependencies(java.util.List viewDependencies) { + this.viewDependencies = viewDependencies; + return this; + } + + public java.util.List getViewDependencies() { + return viewDependencies; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesAPI.java index 85d554931..8997c1d45 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesAPI.java @@ -20,7 +20,8 @@ * permission on its parent catalog and the USE_SCHEMA permission on its parent * schema. * - * A table can be managed or external. + * A table can be managed or external. From an API perspective, a __VIEW__ is a + * particular kind of table (rather than a managed or external table). */ @Generated("databricks-sdk-generator") public class TablesAPI implements TablesService { @@ -34,10 +35,10 @@ public TablesAPI(ApiClient apiClient) { * Delete a table. * * Deletes a table from the specified parent catalog and schema. The caller - * must be the owner of the parent catalog, have the USE_CATALOG privilege - * on the parent catalog and be the owner of the parent schema, or be the - * owner of the table and have the USE_CATALOG privilege on the parent - * catalog and the USE_SCHEMA privilege on the parent schema. + * must be the owner of the parent catalog, have the **USE_CATALOG** + * privilege on the parent catalog and be the owner of the parent schema, or + * be the owner of the table and have the **USE_CATALOG** privilege on the + * parent catalog and the **USE_SCHEMA** privilege on the parent schema. */ @Override public void delete(DeleteTableRequest request) { @@ -48,11 +49,11 @@ public void delete(DeleteTableRequest request) { /** * Get a table. * - * Gets a table from the Metastore for a specific catalog and schema. The - * caller must be a Metastore admin, be the owner of the table and have the - * USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege - * on the parent schema, or be the owner of the table and have the SELECT - * privilege on it as well. + * Gets a table from the metastore for a specific catalog and schema. The + * caller must be a metastore admin, be the owner of the table and have the + * **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** + * privilege on the parent schema, or be the owner of the table and have the + * **SELECT** privilege on it as well. */ @Override public TableInfo get(GetTableRequest request) { @@ -63,11 +64,13 @@ public TableInfo get(GetTableRequest request) { /** * List tables. * - * Gets an array of all tables for the current Metastore under the parent - * catalog and schema. The caller must be a Metastore admin or an owner of - * (or have the SELECT privilege on) the table. For the latter case, the - * caller must also be the owner or have the USE_CATALOG privilege on the - * parent catalog and the USE_SCHEMA privilege on the parent schema. + * Gets an array of all tables for the current metastore under the parent + * catalog and schema. The caller must be a metastore admin or an owner of + * (or have the **SELECT** privilege on) the table. For the latter case, the + * caller must also be the owner or have the **USE_CATALOG** privilege on + * the parent catalog and the **USE_SCHEMA** privilege on the parent schema. + * There is no guarantee of a specific ordering of the elements in the + * array. */ @Override public ListTablesResponse list(ListTablesRequest request) { @@ -79,18 +82,21 @@ public ListTablesResponse list(ListTablesRequest request) { * List table summaries. * * Gets an array of summaries for tables for a schema and catalog within the - * Metastore. The table summaries returned are either: + * metastore. The table summaries returned are either: * - * * summaries for all tables (within the current Metastore and parent - * catalog and schema), when the user is a Metastore admin, or: * summaries - * for all tables and schemas (within the current Metastore and parent - * catalog) for which the user has ownership or the SELECT privilege on the - * Table and ownership or USE_SCHEMA privilege on the Schema, provided that - * the user also has ownership or the USE_CATALOG privilege on the parent - * Catalog + * * summaries for all tables (within the current metastore and parent + * catalog and schema), when the user is a metastore admin, or: * summaries + * for all tables and schemas (within the current metastore and parent + * catalog) for which the user has ownership or the **SELECT** privilege on + * the table and ownership or **USE_SCHEMA** privilege on the schema, + * provided that the user also has ownership or the **USE_CATALOG** + * privilege on the parent catalog. + * + * There is no guarantee of a specific ordering of the elements in the + * array. */ @Override - public ListTableSummariesResponse tableSummaries(TableSummariesRequest request) { + public ListTableSummariesResponse listSummaries(ListSummariesRequest request) { String path = "/api/2.1/unity-catalog/table-summaries"; return apiClient.GET(path, request, ListTableSummariesResponse.class); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesService.java index 59f406258..56f361458 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/TablesService.java @@ -14,7 +14,8 @@ * permission on its parent catalog and the USE_SCHEMA permission on its parent * schema. * - * A table can be managed or external. + * A table can be managed or external. From an API perspective, a __VIEW__ is a + * particular kind of table (rather than a managed or external table). * * This is the high-level interface, that contains generated methods. * @@ -26,32 +27,34 @@ public interface TablesService { * Delete a table. * * Deletes a table from the specified parent catalog and schema. The caller - * must be the owner of the parent catalog, have the USE_CATALOG privilege - * on the parent catalog and be the owner of the parent schema, or be the - * owner of the table and have the USE_CATALOG privilege on the parent - * catalog and the USE_SCHEMA privilege on the parent schema. + * must be the owner of the parent catalog, have the **USE_CATALOG** + * privilege on the parent catalog and be the owner of the parent schema, or + * be the owner of the table and have the **USE_CATALOG** privilege on the + * parent catalog and the **USE_SCHEMA** privilege on the parent schema. */ void delete(DeleteTableRequest deleteTableRequest); /** * Get a table. * - * Gets a table from the Metastore for a specific catalog and schema. The - * caller must be a Metastore admin, be the owner of the table and have the - * USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege - * on the parent schema, or be the owner of the table and have the SELECT - * privilege on it as well. + * Gets a table from the metastore for a specific catalog and schema. The + * caller must be a metastore admin, be the owner of the table and have the + * **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** + * privilege on the parent schema, or be the owner of the table and have the + * **SELECT** privilege on it as well. */ TableInfo get(GetTableRequest getTableRequest); /** * List tables. * - * Gets an array of all tables for the current Metastore under the parent - * catalog and schema. The caller must be a Metastore admin or an owner of - * (or have the SELECT privilege on) the table. For the latter case, the - * caller must also be the owner or have the USE_CATALOG privilege on the - * parent catalog and the USE_SCHEMA privilege on the parent schema. + * Gets an array of all tables for the current metastore under the parent + * catalog and schema. The caller must be a metastore admin or an owner of + * (or have the **SELECT** privilege on) the table. For the latter case, the + * caller must also be the owner or have the **USE_CATALOG** privilege on + * the parent catalog and the **USE_SCHEMA** privilege on the parent schema. + * There is no guarantee of a specific ordering of the elements in the + * array. */ ListTablesResponse list(ListTablesRequest listTablesRequest); @@ -59,16 +62,19 @@ public interface TablesService { * List table summaries. * * Gets an array of summaries for tables for a schema and catalog within the - * Metastore. The table summaries returned are either: + * metastore. The table summaries returned are either: * - * * summaries for all tables (within the current Metastore and parent - * catalog and schema), when the user is a Metastore admin, or: * summaries - * for all tables and schemas (within the current Metastore and parent - * catalog) for which the user has ownership or the SELECT privilege on the - * Table and ownership or USE_SCHEMA privilege on the Schema, provided that - * the user also has ownership or the USE_CATALOG privilege on the parent - * Catalog + * * summaries for all tables (within the current metastore and parent + * catalog and schema), when the user is a metastore admin, or: * summaries + * for all tables and schemas (within the current metastore and parent + * catalog) for which the user has ownership or the **SELECT** privilege on + * the table and ownership or **USE_SCHEMA** privilege on the schema, + * provided that the user also has ownership or the **USE_CATALOG** + * privilege on the parent catalog. + * + * There is no guarantee of a specific ordering of the elements in the + * array. */ - ListTableSummariesResponse tableSummaries(TableSummariesRequest tableSummariesRequest); + ListTableSummariesResponse listSummaries(ListSummariesRequest listSummariesRequest); } \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UnassignRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UnassignRequest.java index 8d66fe1ba..f57d31d5e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UnassignRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UnassignRequest.java @@ -15,7 +15,7 @@ @Generated("databricks-sdk-generator") public class UnassignRequest { /** - * Query for the ID of the Metastore to delete. + * Query for the ID of the metastore to delete. */ @QueryParam("metastore_id") private String metastoreId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateCatalog.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateCatalog.java index 85ff12d4e..6b8c7fb59 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateCatalog.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateCatalog.java @@ -19,19 +19,19 @@ public class UpdateCatalog { private String comment; /** - * Name of Catalog. + * Name of catalog. */ @JsonProperty("name") private String name; /** - * Username of current owner of Catalog. + * Username of current owner of catalog. */ @JsonProperty("owner") private String owner; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateExternalLocation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateExternalLocation.java index 8d190ae9a..455923be5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateExternalLocation.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateExternalLocation.java @@ -19,7 +19,7 @@ public class UpdateExternalLocation { private String comment; /** - * Current name of the Storage Credential this location uses. + * Name of the storage credential used with this location. */ @JsonProperty("credential_name") private String credentialName; @@ -32,13 +32,13 @@ public class UpdateExternalLocation { private Boolean force; /** - * Name of the External Location. + * Name of the external location. */ @JsonProperty("name") private String name; /** - * The owner of the External Location. + * The owner of the external location. */ @JsonProperty("owner") private String owner; @@ -50,14 +50,7 @@ public class UpdateExternalLocation { private Boolean readOnly; /** - * Skips validation of the storage credential associated with the external - * location. - */ - @JsonProperty("skip_validation") - private Boolean skipValidation; - - /** - * Path URL of the External Location. + * Path URL of the external location. */ @JsonProperty("url") private String url; @@ -116,15 +109,6 @@ public Boolean getReadOnly() { return readOnly; } - public UpdateExternalLocation setSkipValidation(Boolean skipValidation) { - this.skipValidation = skipValidation; - return this; - } - - public Boolean getSkipValidation() { - return skipValidation; - } - public UpdateExternalLocation setUrl(String url) { this.url = url; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastore.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastore.java index aafb318da..e5be5e94a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastore.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastore.java @@ -13,31 +13,38 @@ @Generated("databricks-sdk-generator") public class UpdateMetastore { /** - * Unique identifier of (Default) Data Access Configuration + * The organization name of a Delta Sharing entity, to be used in + * Databricks-to-Databricks Delta Sharing as the official name. */ - @JsonProperty("default_data_access_config_id") - private String defaultDataAccessConfigId; + @JsonProperty("delta_sharing_organization_name") + private String deltaSharingOrganizationName; /** - * Whether Delta Sharing is enabled on this metastore. + * The lifetime of delta sharing recipient token in seconds. */ - @JsonProperty("delta_sharing_enabled") - private Boolean deltaSharingEnabled; + @JsonProperty("delta_sharing_recipient_token_lifetime_in_seconds") + private Long deltaSharingRecipientTokenLifetimeInSeconds; /** - * The lifetime of delta sharing recipient token in seconds + * The scope of Delta Sharing enabled for the metastore. */ - @JsonProperty("delta_sharing_recipient_token_lifetime_in_seconds") - private Long deltaSharingRecipientTokenLifetimeInSeconds; + @JsonProperty("delta_sharing_scope") + private UpdateMetastoreDeltaSharingScope deltaSharingScope; /** - * Required. Unique ID of the Metastore (from URL). + * Unique ID of the metastore. */ private String id; /** - * Name of Metastore. + * Databricks Unity Catalog metastore ID + */ + + private String metastoreId; + + /** + * The user-specified name of the metastore. */ @JsonProperty("name") private String name; @@ -49,36 +56,43 @@ public class UpdateMetastore { private String owner; /** - * UUID of storage credential to access storage_root + * Privilege model version of the metastore, of the form `major.minor` + * (e.g., `1.0`). + */ + @JsonProperty("privilege_model_version") + private String privilegeModelVersion; + + /** + * UUID of storage credential to access the metastore storage_root. */ @JsonProperty("storage_root_credential_id") private String storageRootCredentialId; - public UpdateMetastore setDefaultDataAccessConfigId(String defaultDataAccessConfigId) { - this.defaultDataAccessConfigId = defaultDataAccessConfigId; + public UpdateMetastore setDeltaSharingOrganizationName(String deltaSharingOrganizationName) { + this.deltaSharingOrganizationName = deltaSharingOrganizationName; return this; } - public String getDefaultDataAccessConfigId() { - return defaultDataAccessConfigId; + public String getDeltaSharingOrganizationName() { + return deltaSharingOrganizationName; } - public UpdateMetastore setDeltaSharingEnabled(Boolean deltaSharingEnabled) { - this.deltaSharingEnabled = deltaSharingEnabled; + public UpdateMetastore setDeltaSharingRecipientTokenLifetimeInSeconds(Long deltaSharingRecipientTokenLifetimeInSeconds) { + this.deltaSharingRecipientTokenLifetimeInSeconds = deltaSharingRecipientTokenLifetimeInSeconds; return this; } - public Boolean getDeltaSharingEnabled() { - return deltaSharingEnabled; + public Long getDeltaSharingRecipientTokenLifetimeInSeconds() { + return deltaSharingRecipientTokenLifetimeInSeconds; } - public UpdateMetastore setDeltaSharingRecipientTokenLifetimeInSeconds(Long deltaSharingRecipientTokenLifetimeInSeconds) { - this.deltaSharingRecipientTokenLifetimeInSeconds = deltaSharingRecipientTokenLifetimeInSeconds; + public UpdateMetastore setDeltaSharingScope(UpdateMetastoreDeltaSharingScope deltaSharingScope) { + this.deltaSharingScope = deltaSharingScope; return this; } - public Long getDeltaSharingRecipientTokenLifetimeInSeconds() { - return deltaSharingRecipientTokenLifetimeInSeconds; + public UpdateMetastoreDeltaSharingScope getDeltaSharingScope() { + return deltaSharingScope; } public UpdateMetastore setId(String id) { @@ -90,6 +104,15 @@ public String getId() { return id; } + public UpdateMetastore setMetastoreId(String metastoreId) { + this.metastoreId = metastoreId; + return this; + } + + public String getMetastoreId() { + return metastoreId; + } + public UpdateMetastore setName(String name) { this.name = name; return this; @@ -108,6 +131,15 @@ public String getOwner() { return owner; } + public UpdateMetastore setPrivilegeModelVersion(String privilegeModelVersion) { + this.privilegeModelVersion = privilegeModelVersion; + return this; + } + + public String getPrivilegeModelVersion() { + return privilegeModelVersion; + } + public UpdateMetastore setStorageRootCredentialId(String storageRootCredentialId) { this.storageRootCredentialId = storageRootCredentialId; return this; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastoreAssignment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastoreAssignment.java index b190206c7..77b60287a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastoreAssignment.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateMetastoreAssignment.java @@ -13,19 +13,19 @@ @Generated("databricks-sdk-generator") public class UpdateMetastoreAssignment { /** - * The name of the default catalog for the Metastore. + * The name of the default catalog for the metastore. */ @JsonProperty("default_catalog_name") private String defaultCatalogName; /** - * The unique ID of the Metastore. + * The unique ID of the metastore. */ @JsonProperty("metastore_id") private String metastoreId; /** - * A workspace ID. + * Workspace ID. */ private Long workspaceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdatePermissions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdatePermissions.java index 7428ca98f..8c1f19be4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdatePermissions.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdatePermissions.java @@ -19,22 +19,16 @@ public class UpdatePermissions { private java.util.List changes; /** - * Required. Unique identifier (full name) of Securable (from URL). + * Full name of securable. */ private String fullName; /** - * Optional. List permissions granted to this principal. + * Type of securable. */ - @QueryParam("principal") - private String principal; - /** - * Required. Type of Securable (from URL). - */ - - private String securableType; + private SecurableType securableType; public UpdatePermissions setChanges(java.util.List changes) { this.changes = changes; @@ -54,21 +48,12 @@ public String getFullName() { return fullName; } - public UpdatePermissions setPrincipal(String principal) { - this.principal = principal; - return this; - } - - public String getPrincipal() { - return principal; - } - - public UpdatePermissions setSecurableType(String securableType) { + public UpdatePermissions setSecurableType(SecurableType securableType) { this.securableType = securableType; return this; } - public String getSecurableType() { + public SecurableType getSecurableType() { return securableType; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateProvider.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateProvider.java index 1e880911d..15e28f56e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateProvider.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateProvider.java @@ -31,8 +31,8 @@ public class UpdateProvider { private String owner; /** - * This field is required when the authentication_type is `TOKEN` or not - * provided. + * This field is required when the __authentication_type__ is **TOKEN** or + * not provided. */ @JsonProperty("recipient_profile_str") private String recipientProfileStr; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateRecipient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateRecipient.java index 796df08f9..df6bd0cd6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateRecipient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateRecipient.java @@ -30,6 +30,21 @@ public class UpdateRecipient { @JsonProperty("name") private String name; + /** + * Username of the recipient owner. + */ + @JsonProperty("owner") + private String owner; + + /** + * Recipient properties as map of string key-value pairs.\n When provided in + * update request, the specified properties will override the existing + * properties. To add and remove properties, one would need to perform a + * read-modify-write. + */ + @JsonProperty("properties_kvpairs") + private Object /* MISSING TYPE */ propertiesKvpairs; + public UpdateRecipient setComment(String comment) { this.comment = comment; return this; @@ -57,4 +72,22 @@ public String getName() { return name; } + public UpdateRecipient setOwner(String owner) { + this.owner = owner; + return this; + } + + public String getOwner() { + return owner; + } + + public UpdateRecipient setPropertiesKvpairs(Object /* MISSING TYPE */ propertiesKvpairs) { + this.propertiesKvpairs = propertiesKvpairs; + return this; + } + + public Object /* MISSING TYPE */ getPropertiesKvpairs() { + return propertiesKvpairs; + } + } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSchema.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSchema.java index c941b6196..6a4059c56 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSchema.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSchema.java @@ -12,12 +12,6 @@ @Generated("databricks-sdk-generator") public class UpdateSchema { - /** - * Name of parent Catalog. - */ - @JsonProperty("catalog_name") - private String catalogName; - /** * User-provided free-form text description. */ @@ -25,44 +19,29 @@ public class UpdateSchema { private String comment; /** - * Required. Full name of the schema (from URL). + * Full name of the schema. */ private String fullName; /** - * Name of Schema, relative to parent Catalog. + * Name of schema, relative to parent catalog. */ @JsonProperty("name") private String name; /** - * Username of current owner of Schema. + * Username of current owner of schema. */ @JsonProperty("owner") private String owner; /** - + * A map of key-value properties attached to the securable. */ @JsonProperty("properties") private Map properties; - /** - * Storage root URL for managed tables within schema. - */ - @JsonProperty("storage_root") - private String storageRoot; - - public UpdateSchema setCatalogName(String catalogName) { - this.catalogName = catalogName; - return this; - } - - public String getCatalogName() { - return catalogName; - } - public UpdateSchema setComment(String comment) { this.comment = comment; return this; @@ -108,13 +87,4 @@ public Map getProperties() { return properties; } - public UpdateSchema setStorageRoot(String storageRoot) { - this.storageRoot = storageRoot; - return this; - } - - public String getStorageRoot() { - return storageRoot; - } - } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateShare.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateShare.java index 829700927..20b19aa9c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateShare.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateShare.java @@ -19,13 +19,13 @@ public class UpdateShare { private String comment; /** - * Name of the Share. + * Name of the share. */ @JsonProperty("name") private String name; /** - * Username of current owner of Share. + * Username of current owner of share. */ @JsonProperty("owner") private String owner; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSharePermissions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSharePermissions.java index 6b917b367..cdbb2f347 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSharePermissions.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateSharePermissions.java @@ -19,7 +19,7 @@ public class UpdateSharePermissions { private java.util.List changes; /** - * Required. The name of the share. + * The name of the share. */ private String name; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateStorageCredential.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateStorageCredential.java index c7abf9c17..c0a002d89 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateStorageCredential.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/unitycatalog/UpdateStorageCredential.java @@ -30,6 +30,13 @@ public class UpdateStorageCredential { @JsonProperty("comment") private String comment; + /** + * Force update even if there are dependent external locations or external + * tables. + */ + @JsonProperty("force") + private Boolean force; + /** * The GCP service account key configuration. */ @@ -37,7 +44,7 @@ public class UpdateStorageCredential { private GcpServiceAccountKey gcpServiceAccountKey; /** - * The credential name. The name MUST be unique within the Metastore. + * The credential name. The name must be unique within the metastore. */ @JsonProperty("name") private String name; @@ -48,6 +55,19 @@ public class UpdateStorageCredential { @JsonProperty("owner") private String owner; + /** + * Whether the storage credential is only usable for read operations. + */ + @JsonProperty("read_only") + private Boolean readOnly; + + /** + * Supplying true to this argument skips validation of the updated + * credential. + */ + @JsonProperty("skip_validation") + private Boolean skipValidation; + public UpdateStorageCredential setAwsIamRole(AwsIamRole awsIamRole) { this.awsIamRole = awsIamRole; return this; @@ -75,6 +95,15 @@ public String getComment() { return comment; } + public UpdateStorageCredential setForce(Boolean force) { + this.force = force; + return this; + } + + public Boolean getForce() { + return force; + } + public UpdateStorageCredential setGcpServiceAccountKey(GcpServiceAccountKey gcpServiceAccountKey) { this.gcpServiceAccountKey = gcpServiceAccountKey; return this; @@ -102,4 +131,22 @@ public String getOwner() { return owner; } + public UpdateStorageCredential setReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return this; + } + + public Boolean getReadOnly() { + return readOnly; + } + + public UpdateStorageCredential setSkipValidation(Boolean skipValidation) { + this.skipValidation = skipValidation; + return this; + } + + public Boolean getSkipValidation() { + return skipValidation; + } + } diff --git a/pom.xml b/pom.xml index 4246eb768..22d5ae037 100644 --- a/pom.xml +++ b/pom.xml @@ -13,14 +13,6 @@ databricks-sdk-java - - 2.12.2 - 4.5.13 - 1.8 - 1.8 - UTF-8 - -