diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index ed18d818d..03d5ad3c3 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -37e2bbe0cbcbbbe78a06a018d4fab06314a26a40 \ No newline at end of file +cde487f4948666f7eff0f7566cd0d2704bb2e2fa \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 60206fb47..a02f9c4f7 100755 --- a/.gitattributes +++ b/.gitattributes @@ -22,6 +22,41 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/Tempora databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/TooManyRequests.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/Unauthenticated.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/Unknown.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/ActionConfiguration.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/ActionConfigurationType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/AlertConfiguration.java linguist-generated=true @@ -40,6 +75,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetConfi databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsImpl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBudgetConfigurationBudget.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBudgetConfigurationBudgetActionConfigurations.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBudgetConfigurationBudgetAlertConfigurations.java linguist-generated=true @@ -51,6 +88,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/DeleteBudge databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/DeliveryStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/DownloadRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/DownloadResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBudgetConfigurationRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBudgetConfigurationResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetLogDeliveryRequest.java linguist-generated=true @@ -70,6 +109,10 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UpdateBudge databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UpdateBudgetConfigurationRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UpdateBudgetConfigurationResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UpdateLogDeliveryConfigurationStatusRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/WrappedCreateLogDeliveryConfiguration.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/WrappedLogDeliveryConfiguration.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/WrappedLogDeliveryConfigurations.java linguist-generated=true @@ -1417,6 +1460,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineP databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineSpec.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineState.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineTrigger.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesImpl.java linguist-generated=true @@ -1523,18 +1567,6 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/Ai21LabsCon databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AmazonBedrockConfig.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AmazonBedrockConfigBedrockProvider.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AnthropicConfig.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AutoCaptureConfigInput.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AutoCaptureConfigOutput.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AutoCaptureState.java linguist-generated=true @@ -1543,12 +1575,9 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/BuildLogsRe databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ChatMessage.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ChatMessageRole.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CohereConfig.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateServingEndpoint.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DatabricksModelServingConfig.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DataframeSplitInput.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteServingEndpointRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EmbeddingsV1ResponseEmbeddingElement.java linguist-generated=true @@ -1561,16 +1590,12 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointSta databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointStateConfigUpdate.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointStateReady.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointTag.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExportMetricsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExportMetricsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExternalModel.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExternalModelProvider.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExternalModelUsageElement.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/FoundationModel.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetOpenApiRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetOpenApiResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetServingEndpointPermissionLevelsRequest.java linguist-generated=true @@ -1578,10 +1603,6 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetServingE databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetServingEndpointPermissionsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetServingEndpointRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GoogleCloudVertexAiConfig.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListEndpointsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/LogsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ModelDataPlaneInfo.java linguist-generated=true @@ -1625,11 +1646,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndp databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsDataPlaneService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsImpl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsService.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/TrafficConfig.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/V1ResponseChoiceElement.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsImpl.java linguist-generated=true diff --git a/CHANGELOG.md b/CHANGELOG.md index f54d2a5be..d117035c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,156 @@ # Version changelog +## [Release] Release v0.28.0 + +### Bug Fixes + + * Add missing token URL and client ID in Github OIDC Credentials Provider ([#322](https://github.com/databricks/databricks-sdk-java/pull/322)). + + +### Internal Changes + + * Add example for workspace unified authentication ([#320](https://github.com/databricks/databricks-sdk-java/pull/320)). + * Fix processing of `quoted` titles ([#314](https://github.com/databricks/databricks-sdk-java/pull/314)). + * Fixed SqlIT integration tests ([#326](https://github.com/databricks/databricks-sdk-java/pull/326)). + * Move PR message validation to a separate workflow ([#312](https://github.com/databricks/databricks-sdk-java/pull/312)). + * Trigger the validate workflow in the merge queue ([#313](https://github.com/databricks/databricks-sdk-java/pull/313)). + * Update OpenAPI spec ([#316](https://github.com/databricks/databricks-sdk-java/pull/316)). + + +### API Changes: + + * Added `com.databricks.sdk.service.apps` package. + * Added `accountClient.usageDashboards()` service. + * Added `workspaceClient.alertsLegacy()` service, `workspaceClient.queriesLegacy()` service and `workspaceClient.queryVisualizationsLegacy()` service. + * Added `workspaceClient.genie()` service. + * Added `workspaceClient.notificationDestinations()` service. + * Added `listVisualizations()` method for `workspaceClient.queries()` service. + * Added `com.databricks.sdk.service.catalog.GetBindingsSecurableType` and `com.databricks.sdk.service.catalog.UpdateBindingsSecurableType` classes. + * Added `com.databricks.sdk.service.pipelines.PipelineStateInfoHealth` class. + * Added `com.databricks.sdk.service.billing.ActionConfiguration`, `com.databricks.sdk.service.billing.ActionConfigurationType`, `com.databricks.sdk.service.billing.AlertConfiguration`, `com.databricks.sdk.service.billing.AlertConfigurationQuantityType`, `com.databricks.sdk.service.billing.AlertConfigurationTimePeriod`, `com.databricks.sdk.service.billing.AlertConfigurationTriggerType`, `com.databricks.sdk.service.billing.BudgetConfiguration`, `com.databricks.sdk.service.billing.BudgetConfigurationFilter`, `com.databricks.sdk.service.billing.BudgetConfigurationFilterClause`, `com.databricks.sdk.service.billing.BudgetConfigurationFilterOperator`, `com.databricks.sdk.service.billing.BudgetConfigurationFilterTagClause`, `com.databricks.sdk.service.billing.BudgetConfigurationFilterWorkspaceIdClause`, `com.databricks.sdk.service.billing.CreateBillingUsageDashboardRequest`, `com.databricks.sdk.service.billing.CreateBillingUsageDashboardResponse`, `com.databricks.sdk.service.billing.CreateBudgetConfigurationBudget`, `com.databricks.sdk.service.billing.CreateBudgetConfigurationBudgetActionConfigurations`, `com.databricks.sdk.service.billing.CreateBudgetConfigurationBudgetAlertConfigurations`, `com.databricks.sdk.service.billing.CreateBudgetConfigurationRequest`, `com.databricks.sdk.service.billing.CreateBudgetConfigurationResponse`, `com.databricks.sdk.service.billing.DeleteBudgetConfigurationRequest`, `Object`, `com.databricks.sdk.service.billing.GetBillingUsageDashboardRequest`, `com.databricks.sdk.service.billing.GetBillingUsageDashboardResponse`, `com.databricks.sdk.service.billing.GetBudgetConfigurationRequest`, `com.databricks.sdk.service.billing.GetBudgetConfigurationResponse`, `com.databricks.sdk.service.billing.ListBudgetConfigurationsRequest`, `com.databricks.sdk.service.billing.ListBudgetConfigurationsResponse`, `com.databricks.sdk.service.billing.UpdateBudgetConfigurationBudget`, `com.databricks.sdk.service.billing.UpdateBudgetConfigurationRequest`, `com.databricks.sdk.service.billing.UpdateBudgetConfigurationResponse` and `com.databricks.sdk.service.billing.UsageDashboardType` classes. + * Added `com.databricks.sdk.service.compute.ListClustersFilterBy`, `com.databricks.sdk.service.compute.ListClustersSortBy`, `com.databricks.sdk.service.compute.ListClustersSortByDirection` and `com.databricks.sdk.service.compute.ListClustersSortByField` classes. + * Added `com.databricks.sdk.service.dashboards.ExecuteMessageQueryRequest`, `com.databricks.sdk.service.dashboards.GenieAttachment`, `com.databricks.sdk.service.dashboards.GenieConversation`, `com.databricks.sdk.service.dashboards.GenieCreateConversationMessageRequest`, `com.databricks.sdk.service.dashboards.GenieGetConversationMessageRequest`, `com.databricks.sdk.service.dashboards.GenieGetMessageQueryResultRequest`, `com.databricks.sdk.service.dashboards.GenieGetMessageQueryResultResponse`, `com.databricks.sdk.service.dashboards.GenieMessage`, `com.databricks.sdk.service.dashboards.GenieStartConversationMessageRequest`, `com.databricks.sdk.service.dashboards.GenieStartConversationResponse`, `com.databricks.sdk.service.dashboards.MessageError`, `com.databricks.sdk.service.dashboards.MessageErrorType`, `com.databricks.sdk.service.dashboards.MessageStatus`, `com.databricks.sdk.service.dashboards.QueryAttachment`, `com.databricks.sdk.service.dashboards.Result` and `com.databricks.sdk.service.dashboards.TextAttachment` classes. + * Added `Object`, `com.databricks.sdk.service.iam.MigratePermissionsRequest` and `com.databricks.sdk.service.iam.MigratePermissionsResponse` classes. + * Added `com.databricks.sdk.service.oauth2.ListCustomAppIntegrationsRequest` and `com.databricks.sdk.service.oauth2.ListPublishedAppIntegrationsRequest` classes. + * Added `com.databricks.sdk.service.serving.GoogleCloudVertexAiConfig` class. + * Added `com.databricks.sdk.service.settings.Config`, `com.databricks.sdk.service.settings.CreateNotificationDestinationRequest`, `com.databricks.sdk.service.settings.DeleteNotificationDestinationRequest`, `com.databricks.sdk.service.settings.DestinationType`, `com.databricks.sdk.service.settings.EmailConfig`, `Object`, `com.databricks.sdk.service.settings.GenericWebhookConfig`, `com.databricks.sdk.service.settings.GetNotificationDestinationRequest`, `com.databricks.sdk.service.settings.ListNotificationDestinationsRequest`, `com.databricks.sdk.service.settings.ListNotificationDestinationsResponse`, `com.databricks.sdk.service.settings.ListNotificationDestinationsResult`, `com.databricks.sdk.service.settings.MicrosoftTeamsConfig`, `com.databricks.sdk.service.settings.NotificationDestination`, `com.databricks.sdk.service.settings.PagerdutyConfig`, `com.databricks.sdk.service.settings.SlackConfig` and `com.databricks.sdk.service.settings.UpdateNotificationDestinationRequest` classes. + * Added `com.databricks.sdk.service.sql.AlertCondition`, `com.databricks.sdk.service.sql.AlertConditionOperand`, `com.databricks.sdk.service.sql.AlertConditionThreshold`, `com.databricks.sdk.service.sql.AlertOperandColumn`, `com.databricks.sdk.service.sql.AlertOperandValue`, `com.databricks.sdk.service.sql.AlertOperator`, `com.databricks.sdk.service.sql.ClientCallContext`, `com.databricks.sdk.service.sql.ContextFilter`, `com.databricks.sdk.service.sql.CreateAlertRequest`, `com.databricks.sdk.service.sql.CreateAlertRequestAlert`, `com.databricks.sdk.service.sql.CreateQueryRequest`, `com.databricks.sdk.service.sql.CreateQueryRequestQuery`, `com.databricks.sdk.service.sql.CreateQueryVisualizationsLegacyRequest`, `com.databricks.sdk.service.sql.CreateVisualizationRequest`, `com.databricks.sdk.service.sql.CreateVisualizationRequestVisualization`, `com.databricks.sdk.service.sql.DatePrecision`, `com.databricks.sdk.service.sql.DateRange`, `com.databricks.sdk.service.sql.DateRangeValue`, `com.databricks.sdk.service.sql.DateRangeValueDynamicDateRange`, `com.databricks.sdk.service.sql.DateValue`, `com.databricks.sdk.service.sql.DateValueDynamicDate`, `com.databricks.sdk.service.sql.DeleteAlertsLegacyRequest`, `com.databricks.sdk.service.sql.DeleteQueriesLegacyRequest`, `com.databricks.sdk.service.sql.DeleteQueryVisualizationsLegacyRequest`, `com.databricks.sdk.service.sql.DeleteVisualizationRequest`, `Object`, `com.databricks.sdk.service.sql.EncodedText`, `com.databricks.sdk.service.sql.EncodedTextEncoding`, `com.databricks.sdk.service.sql.EnumValue`, `com.databricks.sdk.service.sql.GetAlertsLegacyRequest`, `com.databricks.sdk.service.sql.GetQueriesLegacyRequest`, `com.databricks.sdk.service.sql.LegacyAlert`, `com.databricks.sdk.service.sql.LegacyAlertState`, `com.databricks.sdk.service.sql.LegacyQuery`, `com.databricks.sdk.service.sql.LegacyVisualization`, `com.databricks.sdk.service.sql.LifecycleState`, `com.databricks.sdk.service.sql.ListAlertsRequest`, `com.databricks.sdk.service.sql.ListAlertsResponse`, `com.databricks.sdk.service.sql.ListAlertsResponseAlert`, `com.databricks.sdk.service.sql.ListQueriesLegacyRequest`, `com.databricks.sdk.service.sql.ListQueryObjectsResponse`, `com.databricks.sdk.service.sql.ListQueryObjectsResponseQuery`, `com.databricks.sdk.service.sql.ListVisualizationsForQueryRequest`, `com.databricks.sdk.service.sql.ListVisualizationsForQueryResponse`, `com.databricks.sdk.service.sql.NumericValue`, `com.databricks.sdk.service.sql.QueryBackedValue`, `com.databricks.sdk.service.sql.QueryParameter`, `com.databricks.sdk.service.sql.QuerySource`, `com.databricks.sdk.service.sql.QuerySourceDriverInfo`, `com.databricks.sdk.service.sql.QuerySourceEntryPoint`, `com.databricks.sdk.service.sql.QuerySourceJobManager`, `com.databricks.sdk.service.sql.QuerySourceTrigger`, `com.databricks.sdk.service.sql.RestoreQueriesLegacyRequest`, `com.databricks.sdk.service.sql.RunAsMode`, `com.databricks.sdk.service.sql.ServerlessChannelInfo`, `com.databricks.sdk.service.sql.StatementResponse`, `com.databricks.sdk.service.sql.TextValue`, `com.databricks.sdk.service.sql.TrashAlertRequest`, `com.databricks.sdk.service.sql.TrashQueryRequest`, `com.databricks.sdk.service.sql.UpdateAlertRequest`, `com.databricks.sdk.service.sql.UpdateAlertRequestAlert`, `com.databricks.sdk.service.sql.UpdateQueryRequest`, `com.databricks.sdk.service.sql.UpdateQueryRequestQuery`, `com.databricks.sdk.service.sql.UpdateVisualizationRequest` and `com.databricks.sdk.service.sql.UpdateVisualizationRequestVisualization` classes. + * Added `force` field for `com.databricks.sdk.service.catalog.DeleteSchemaRequest`. + * Added `filterBy`, `pageSize`, `pageToken` and `sortBy` fields for `com.databricks.sdk.service.compute.ListClustersRequest`. + * Added `nextPageToken` and `prevPageToken` fields for `com.databricks.sdk.service.compute.ListClustersResponse`. + * Added `pageToken` field for `com.databricks.sdk.service.jobs.GetRunRequest`. + * Added `iterations`, `nextPageToken` and `prevPageToken` fields for `com.databricks.sdk.service.jobs.Run`. + * Added `createTime`, `createdBy`, `creatorUsername` and `scopes` fields for `com.databricks.sdk.service.oauth2.GetCustomAppIntegrationOutput`. + * Added `nextPageToken` field for `com.databricks.sdk.service.oauth2.GetCustomAppIntegrationsOutput`. + * Added `createTime` and `createdBy` fields for `com.databricks.sdk.service.oauth2.GetPublishedAppIntegrationOutput`. + * Added `nextPageToken` field for `com.databricks.sdk.service.oauth2.GetPublishedAppIntegrationsOutput`. + * Added `enableLocalDiskEncryption` field for `com.databricks.sdk.service.pipelines.PipelineCluster`. + * Added `whl` field for `com.databricks.sdk.service.pipelines.PipelineLibrary`. + * Added `health` field for `com.databricks.sdk.service.pipelines.PipelineStateInfo`. + * Added `ai21labsApiKeyPlaintext` field for `com.databricks.sdk.service.serving.Ai21LabsConfig`. + * Added `awsAccessKeyIdPlaintext` and `awsSecretAccessKeyPlaintext` fields for `com.databricks.sdk.service.serving.AmazonBedrockConfig`. + * Added `anthropicApiKeyPlaintext` field for `com.databricks.sdk.service.serving.AnthropicConfig`. + * Added `cohereApiBase` and `cohereApiKeyPlaintext` fields for `com.databricks.sdk.service.serving.CohereConfig`. + * Added `databricksApiTokenPlaintext` field for `com.databricks.sdk.service.serving.DatabricksModelServingConfig`. + * Added `googleCloudVertexAiConfig` field for `com.databricks.sdk.service.serving.ExternalModel`. + * Added `microsoftEntraClientSecretPlaintext` and `openaiApiKeyPlaintext` fields for `com.databricks.sdk.service.serving.OpenAiConfig`. + * Added `palmApiKeyPlaintext` field for `com.databricks.sdk.service.serving.PaLmConfig`. + * Added `nextPageToken` field for `com.databricks.sdk.service.sharing.GetRecipientSharePermissionsResponse`. + * Added `nextPageToken` field for `com.databricks.sdk.service.sharing.ListProviderSharesResponse`. + * Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.sharing.ListProvidersRequest`. + * Added `nextPageToken` field for `com.databricks.sdk.service.sharing.ListProvidersResponse`. + * Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.sharing.ListRecipientsRequest`. + * Added `nextPageToken` field for `com.databricks.sdk.service.sharing.ListRecipientsResponse`. + * Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.sharing.ListSharesRequest`. + * Added `nextPageToken` field for `com.databricks.sdk.service.sharing.ListSharesResponse`. + * Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.sharing.SharePermissionsRequest`. + * Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.sharing.UpdateSharePermissions`. + * Added `condition`, `createTime`, `customBody`, `customSubject`, `displayName`, `lifecycleState`, `ownerUserName`, `parentPath`, `queryId`, `secondsToRetrigger`, `triggerTime` and `updateTime` fields for `com.databricks.sdk.service.sql.Alert`. + * Added `id` field for `com.databricks.sdk.service.sql.GetAlertRequest`. + * Added `id` field for `com.databricks.sdk.service.sql.GetQueryRequest`. + * Added `pageToken` field for `com.databricks.sdk.service.sql.ListQueriesRequest`. + * Added `applyAutoLimit`, `catalog`, `createTime`, `displayName`, `lastModifierUserName`, `lifecycleState`, `ownerUserName`, `parameters`, `parentPath`, `queryText`, `runAsMode`, `schema`, `updateTime` and `warehouseId` fields for `com.databricks.sdk.service.sql.Query`. + * Added `contextFilter` field for `com.databricks.sdk.service.sql.QueryFilter`. + * Added `querySource` field for `com.databricks.sdk.service.sql.QueryInfo`. + * Added `createTime`, `displayName`, `queryId`, `serializedOptions`, `serializedQueryPlan` and `updateTime` fields for `com.databricks.sdk.service.sql.Visualization`. + * Changed `create()` method for `accountClient.budgets()` service . New request type is `com.databricks.sdk.service.billing.CreateBudgetConfigurationRequest` class. + * Changed `create()` method for `accountClient.budgets()` service to return `com.databricks.sdk.service.billing.CreateBudgetConfigurationResponse` class. + * Changed `delete()` method for `accountClient.budgets()` service . New request type is `com.databricks.sdk.service.billing.DeleteBudgetConfigurationRequest` class. + * Changed `delete()` method for `accountClient.budgets()` service to return `Object` class. + * Changed `get()` method for `accountClient.budgets()` service . New request type is `com.databricks.sdk.service.billing.GetBudgetConfigurationRequest` class. + * Changed `get()` method for `accountClient.budgets()` service to return `com.databricks.sdk.service.billing.GetBudgetConfigurationResponse` class. + * Changed `list()` method for `accountClient.budgets()` service to require request of `com.databricks.sdk.service.billing.ListBudgetConfigurationsRequest` class. + * Changed `list()` method for `accountClient.budgets()` service to return `com.databricks.sdk.service.billing.ListBudgetConfigurationsResponse` class. + * Changed `update()` method for `accountClient.budgets()` service to return `com.databricks.sdk.service.billing.UpdateBudgetConfigurationResponse` class. + * Changed `update()` method for `accountClient.budgets()` service . New request type is `com.databricks.sdk.service.billing.UpdateBudgetConfigurationRequest` class. + * Changed `create()` method for `accountClient.customAppIntegration()` service with new required argument order. + * Changed `list()` method for `accountClient.customAppIntegration()` service to require request of `com.databricks.sdk.service.oauth2.ListCustomAppIntegrationsRequest` class. + * Changed `list()` method for `accountClient.publishedAppIntegration()` service to require request of `com.databricks.sdk.service.oauth2.ListPublishedAppIntegrationsRequest` class. + * Changed `delete()` method for `accountClient.workspaceAssignment()` service to return `Object` class. + * Changed `update()` method for `accountClient.workspaceAssignment()` service with new required argument order. + * Changed `create()` method for `workspaceClient.alerts()` service . New request type is `com.databricks.sdk.service.sql.CreateAlertRequest` class. + * Changed `delete()` method for `workspaceClient.alerts()` service to return `Object` class. + * Changed `delete()` method for `workspaceClient.alerts()` service . New request type is `com.databricks.sdk.service.sql.TrashAlertRequest` class. + * Changed `get()` method for `workspaceClient.alerts()` service with new required argument order. + * Changed `list()` method for `workspaceClient.alerts()` service to require request of `com.databricks.sdk.service.sql.ListAlertsRequest` class. + * Changed `list()` method for `workspaceClient.alerts()` service to return `com.databricks.sdk.service.sql.ListAlertsResponse` class. + * Changed `update()` method for `workspaceClient.alerts()` service . New request type is `com.databricks.sdk.service.sql.UpdateAlertRequest` class. + * Changed `update()` method for `workspaceClient.alerts()` service to return `com.databricks.sdk.service.sql.Alert` class. + * Changed `migratePermissions()` method for `workspaceClient.permissionMigration()` service to return `com.databricks.sdk.service.iam.MigratePermissionsResponse` class. + * Changed `migratePermissions()` method for `workspaceClient.permissionMigration()` service . New request type is `com.databricks.sdk.service.iam.MigratePermissionsRequest` class. + * Changed `create()` method for `workspaceClient.queries()` service . New request type is `com.databricks.sdk.service.sql.CreateQueryRequest` class. + * Changed `delete()` method for `workspaceClient.queries()` service to return `Object` class. + * Changed `delete()` method for `workspaceClient.queries()` service . New request type is `com.databricks.sdk.service.sql.TrashQueryRequest` class. + * Changed `get()` method for `workspaceClient.queries()` service with new required argument order. + * Changed `list()` method for `workspaceClient.queries()` service to return `com.databricks.sdk.service.sql.ListQueryObjectsResponse` class. + * Changed `update()` method for `workspaceClient.queries()` service . New request type is `com.databricks.sdk.service.sql.UpdateQueryRequest` class. + * Changed `create()` method for `workspaceClient.queryVisualizations()` service . New request type is `com.databricks.sdk.service.sql.CreateVisualizationRequest` class. + * Changed `delete()` method for `workspaceClient.queryVisualizations()` service . New request type is `com.databricks.sdk.service.sql.DeleteVisualizationRequest` class. + * Changed `delete()` method for `workspaceClient.queryVisualizations()` service to return `Object` class. + * Changed `update()` method for `workspaceClient.queryVisualizations()` service . New request type is `com.databricks.sdk.service.sql.UpdateVisualizationRequest` class. + * Changed `list()` method for `workspaceClient.shares()` service to require request of `com.databricks.sdk.service.sharing.ListSharesRequest` class. + * Changed `executeStatement()` and `getStatement()` methods for `workspaceClient.statementExecution()` service to return `com.databricks.sdk.service.sql.StatementResponse` class. + * Changed `securableType` field for `com.databricks.sdk.service.catalog.GetBindingsRequest` to `com.databricks.sdk.service.catalog.GetBindingsSecurableType` class. + * Changed `securableType` field for `com.databricks.sdk.service.catalog.UpdateWorkspaceBindingsParameters` to `com.databricks.sdk.service.catalog.UpdateBindingsSecurableType` class. + * Changed `permissions` field for `com.databricks.sdk.service.iam.UpdateWorkspaceAssignments` to no longer be required. + * Changed `name` and `redirectUrls` fields for `com.databricks.sdk.service.oauth2.CreateCustomAppIntegration` to no longer be required. + * Changed `ai21labsApiKey` field for `com.databricks.sdk.service.serving.Ai21LabsConfig` to no longer be required. + * Changed `awsAccessKeyId` and `awsSecretAccessKey` fields for `com.databricks.sdk.service.serving.AmazonBedrockConfig` to no longer be required. + * Changed `anthropicApiKey` field for `com.databricks.sdk.service.serving.AnthropicConfig` to no longer be required. + * Changed `cohereApiKey` field for `com.databricks.sdk.service.serving.CohereConfig` to no longer be required. + * Changed `databricksApiToken` field for `com.databricks.sdk.service.serving.DatabricksModelServingConfig` to no longer be required. + * Changed `palmApiKey` field for `com.databricks.sdk.service.serving.PaLmConfig` to no longer be required. + * Changed `tags` field for `com.databricks.sdk.service.sql.Query` to `com.databricks.sdk.service.sql.List` class. + * Changed `userIds` and `warehouseIds` fields for `com.databricks.sdk.service.sql.QueryFilter` to `com.databricks.sdk.service.sql.List` class. + * Changed `results` field for `com.databricks.sdk.service.sql.QueryList` to `com.databricks.sdk.service.sql.LegacyQueryList` class. + * Changed `visualization` field for `com.databricks.sdk.service.sql.Widget` to `com.databricks.sdk.service.sql.LegacyVisualization` class. + * Removed `workspaceClient.apps()` service. + * Removed `restore()` method for `workspaceClient.queries()` service. + * Removed `com.databricks.sdk.service.marketplace.FilterType`, `com.databricks.sdk.service.marketplace.ProviderIconFile`, `com.databricks.sdk.service.marketplace.ProviderIconType`, `com.databricks.sdk.service.marketplace.ProviderListingSummaryInfo`, `com.databricks.sdk.service.marketplace.SortBy` and `com.databricks.sdk.service.marketplace.VisibilityFilter` classes. + * Removed `com.databricks.sdk.service.billing.Budget`, `com.databricks.sdk.service.billing.BudgetAlert`, `com.databricks.sdk.service.billing.BudgetList`, `com.databricks.sdk.service.billing.BudgetWithStatus`, `com.databricks.sdk.service.billing.BudgetWithStatusStatusDailyItem`, `com.databricks.sdk.service.billing.DeleteBudgetRequest`, `Object`, `com.databricks.sdk.service.billing.GetBudgetRequest`, `Object`, `com.databricks.sdk.service.billing.WrappedBudget` and `com.databricks.sdk.service.billing.WrappedBudgetWithStatus` classes. + * Removed `Object`, `com.databricks.sdk.service.iam.PermissionMigrationRequest` and `com.databricks.sdk.service.iam.PermissionMigrationResponse` classes. + * Removed `com.databricks.sdk.service.serving.App`, `com.databricks.sdk.service.serving.AppDeployment`, `com.databricks.sdk.service.serving.AppDeploymentArtifacts`, `com.databricks.sdk.service.serving.AppDeploymentMode`, `com.databricks.sdk.service.serving.AppDeploymentState`, `com.databricks.sdk.service.serving.AppDeploymentStatus`, `com.databricks.sdk.service.serving.AppEnvironment`, `com.databricks.sdk.service.serving.AppState`, `com.databricks.sdk.service.serving.AppStatus`, `com.databricks.sdk.service.serving.CreateAppDeploymentRequest`, `com.databricks.sdk.service.serving.CreateAppRequest`, `com.databricks.sdk.service.serving.DeleteAppRequest`, `com.databricks.sdk.service.serving.EnvVariable`, `com.databricks.sdk.service.serving.GetAppDeploymentRequest`, `com.databricks.sdk.service.serving.GetAppEnvironmentRequest`, `com.databricks.sdk.service.serving.GetAppRequest`, `com.databricks.sdk.service.serving.ListAppDeploymentsRequest`, `com.databricks.sdk.service.serving.ListAppDeploymentsResponse`, `com.databricks.sdk.service.serving.ListAppsRequest`, `com.databricks.sdk.service.serving.ListAppsResponse`, `com.databricks.sdk.service.serving.StartAppRequest`, `com.databricks.sdk.service.serving.StopAppRequest`, `Object` and `com.databricks.sdk.service.serving.UpdateAppRequest` classes. + * Removed `com.databricks.sdk.service.sql.CreateQueryVisualizationRequest`, `com.databricks.sdk.service.sql.DeleteAlertRequest`, `com.databricks.sdk.service.sql.DeleteQueryRequest`, `com.databricks.sdk.service.sql.DeleteQueryVisualizationRequest`, `com.databricks.sdk.service.sql.ExecuteStatementResponse`, `com.databricks.sdk.service.sql.GetStatementResponse`, `com.databricks.sdk.service.sql.RestoreQueryRequest`, `com.databricks.sdk.service.sql.StatementId`, `com.databricks.sdk.service.sql.UserId` and `com.databricks.sdk.service.sql.WarehouseId` classes. + * Removed `canUseClient` field for `com.databricks.sdk.service.compute.ListClustersRequest`. + * Removed `isAscending` and `sortBy` fields for `com.databricks.sdk.service.marketplace.ListListingsRequest`. + * Removed `providerSummary` field for `com.databricks.sdk.service.marketplace.Listing`. + * Removed `filters` field for `com.databricks.sdk.service.marketplace.ListingSetting`. + * Removed `metastoreId` field for `com.databricks.sdk.service.marketplace.ListingSummary`. + * Removed `isAscending` and `sortBy` fields for `com.databricks.sdk.service.marketplace.SearchListingsRequest`. + * Removed `createdAt`, `lastTriggeredAt`, `name`, `options`, `parent`, `query`, `rearm`, `updatedAt` and `user` fields for `com.databricks.sdk.service.sql.Alert`. + * Removed `alertId` field for `com.databricks.sdk.service.sql.GetAlertRequest`. + * Removed `queryId` field for `com.databricks.sdk.service.sql.GetQueryRequest`. + * Removed `order`, `page` and `q` fields for `com.databricks.sdk.service.sql.ListQueriesRequest`. + * Removed `includeMetrics` field for `com.databricks.sdk.service.sql.ListQueryHistoryRequest`. + * Removed `canEdit`, `createdAt`, `dataSourceId`, `isArchived`, `isDraft`, `isFavorite`, `isSafe`, `lastModifiedBy`, `lastModifiedById`, `latestQueryDataId`, `name`, `options`, `parent`, `permissionTier`, `query`, `queryHash`, `runAsRole`, `updatedAt`, `user`, `userId` and `visualizations` fields for `com.databricks.sdk.service.sql.Query`. + * Removed `statementIds` field for `com.databricks.sdk.service.sql.QueryFilter`. + * Removed `canSubscribeToLiveQuery` field for `com.databricks.sdk.service.sql.QueryInfo`. + * Removed `metadataTimeMs`, `planningTimeMs` and `queryExecutionTimeMs` fields for `com.databricks.sdk.service.sql.QueryMetrics`. + * Removed `createdAt`, `description`, `name`, `options`, `query` and `updatedAt` fields for `com.databricks.sdk.service.sql.Visualization`. + +OpenAPI SHA: cde487f4948666f7eff0f7566cd0d2704bb2e2fa, Date: 2024-08-01 + + ## 0.27.1 ### New Features and Improvements diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index 2ebea1955..73c2dbad9 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.27.1 + 0.28.0 databricks-sdk-java diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java index 8a1add46c..5df917515 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java @@ -12,6 +12,8 @@ import com.databricks.sdk.service.billing.BudgetsService; import com.databricks.sdk.service.billing.LogDeliveryAPI; import com.databricks.sdk.service.billing.LogDeliveryService; +import com.databricks.sdk.service.billing.UsageDashboardsAPI; +import com.databricks.sdk.service.billing.UsageDashboardsService; import com.databricks.sdk.service.catalog.AccountMetastoreAssignmentsAPI; import com.databricks.sdk.service.catalog.AccountMetastoreAssignmentsService; import com.databricks.sdk.service.catalog.AccountMetastoresAPI; @@ -85,6 +87,7 @@ public class AccountClient { private AccountSettingsAPI settingsAPI; private StorageAPI storageAPI; private AccountStorageCredentialsAPI storageCredentialsAPI; + private UsageDashboardsAPI usageDashboardsAPI; private AccountUsersAPI usersAPI; private VpcEndpointsAPI vpcEndpointsAPI; private WorkspaceAssignmentAPI workspaceAssignmentAPI; @@ -119,6 +122,7 @@ public AccountClient(DatabricksConfig config) { settingsAPI = new AccountSettingsAPI(apiClient); storageAPI = new StorageAPI(apiClient); storageCredentialsAPI = new AccountStorageCredentialsAPI(apiClient); + usageDashboardsAPI = new UsageDashboardsAPI(apiClient); usersAPI = new AccountUsersAPI(apiClient); vpcEndpointsAPI = new VpcEndpointsAPI(apiClient); workspaceAssignmentAPI = new WorkspaceAssignmentAPI(apiClient); @@ -390,6 +394,15 @@ public AccountStorageCredentialsAPI storageCredentials() { return storageCredentialsAPI; } + /** + * These APIs manage usage dashboards for this account. Usage dashboards enable you to gain + * insights into your usage with pre-built dashboards: visualize breakdowns, analyze tag + * attributions, and identify cost drivers. + */ + public UsageDashboardsAPI usageDashboards() { + return usageDashboardsAPI; + } + /** * User identities recognized by Databricks and represented by email addresses. * @@ -675,6 +688,17 @@ public AccountClient withStorageCredentialsAPI( return this; } + /** Replace the default UsageDashboardsService with a custom implementation. */ + public AccountClient withUsageDashboardsImpl(UsageDashboardsService usageDashboards) { + return this.withUsageDashboardsAPI(new UsageDashboardsAPI(usageDashboards)); + } + + /** Replace the default UsageDashboardsAPI with a custom implementation. */ + public AccountClient withUsageDashboardsAPI(UsageDashboardsAPI usageDashboards) { + this.usageDashboardsAPI = usageDashboards; + return this; + } + /** Replace the default AccountUsersService with a custom implementation. */ public AccountClient withUsersImpl(AccountUsersService accountUsers) { return this.withUsersAPI(new AccountUsersAPI(accountUsers)); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java index f5640117d..e6aa0c6b5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java @@ -8,6 +8,8 @@ import com.databricks.sdk.mixin.ClustersExt; import com.databricks.sdk.mixin.DbfsExt; import com.databricks.sdk.mixin.SecretsExt; +import com.databricks.sdk.service.apps.AppsAPI; +import com.databricks.sdk.service.apps.AppsService; import com.databricks.sdk.service.catalog.ArtifactAllowlistsAPI; import com.databricks.sdk.service.catalog.ArtifactAllowlistsService; import com.databricks.sdk.service.catalog.CatalogsAPI; @@ -112,8 +114,6 @@ import com.databricks.sdk.service.ml.ModelRegistryService; import com.databricks.sdk.service.pipelines.PipelinesAPI; import com.databricks.sdk.service.pipelines.PipelinesService; -import com.databricks.sdk.service.serving.AppsAPI; -import com.databricks.sdk.service.serving.AppsService; import com.databricks.sdk.service.serving.ServingEndpointsAPI; import com.databricks.sdk.service.serving.ServingEndpointsService; import com.databricks.sdk.service.settings.CredentialsManagerAPI; @@ -406,7 +406,9 @@ public AlertsAPI alerts() { * using the `sql_task` type of the Jobs API, e.g. :method:jobs/create. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public AlertsLegacyAPI alertsLegacy() { return alertsLegacyAPI; @@ -606,8 +608,9 @@ public DashboardsAPI dashboards() { * workspace. We advise you to use any text editor, REST client, or `grep` to search the response * from this API for the name of your SQL warehouse as it appears in Databricks SQL. * - *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + *

**Note**: A new version of the Databricks SQL API is now available. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public DataSourcesAPI dataSources() { return dataSourcesAPI; @@ -635,8 +638,9 @@ public DbfsExt dbfs() { *

- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of * `CAN_RUN`) * - *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + *

**Note**: A new version of the Databricks SQL API is now available. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public DbsqlPermissionsAPI dbsqlPermissions() { return dbsqlPermissionsAPI; @@ -948,6 +952,8 @@ public PermissionMigrationAPI permissionMigration() { * Permissions API are used to create read, write, edit, update and manage access for various * users on different objects and endpoints. * + *

* **[Apps permissions](:service:apps)** — Manage which users can manage or use apps. + * *

* **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or * attach to clusters. * @@ -984,7 +990,7 @@ public PermissionMigrationAPI permissionMigration() { * tokens. * *

* **[Workspace object permissions](:service:workspace)** — Manage which users can read, run, - * edit, or manage directories, files, and notebooks. + * edit, or manage alerts, dbsql-dashboards, directories, files, notebooks and queries. * *

For the mapping of the required permissions for specific actions or abilities and other * important information, see [Access Control]. @@ -1116,7 +1122,9 @@ public QueriesAPI queries() { * Queries can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public QueriesLegacyAPI queriesLegacy() { return queriesLegacyAPI; @@ -1143,7 +1151,9 @@ public QueryVisualizationsAPI queryVisualizations() { * existing queries within the Databricks Workspace. Data structures may change over time. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public QueryVisualizationsLegacyAPI queryVisualizationsLegacy() { return queryVisualizationsLegacyAPI; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java index 43df0ead5..fce8db99e 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java @@ -32,7 +32,7 @@ public String getValue() { // TODO: check if reading from // /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties // or getClass().getPackage().getImplementationVersion() is enough. - private static final String version = "0.27.1"; + private static final String version = "0.28.0"; public static void withProduct(String product, String productVersion) { UserAgent.product = product; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java similarity index 99% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java index 80245e7a3..16e2dec4b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java new file mode 100755 index 000000000..40dc96f30 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java @@ -0,0 +1,89 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class AppAccessControlRequest { + /** name of the group */ + @JsonProperty("group_name") + private String groupName; + + /** Permission level */ + @JsonProperty("permission_level") + private AppPermissionLevel permissionLevel; + + /** application ID of a service principal */ + @JsonProperty("service_principal_name") + private String servicePrincipalName; + + /** name of the user */ + @JsonProperty("user_name") + private String userName; + + public AppAccessControlRequest setGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + public String getGroupName() { + return groupName; + } + + public AppAccessControlRequest setPermissionLevel(AppPermissionLevel permissionLevel) { + this.permissionLevel = permissionLevel; + return this; + } + + public AppPermissionLevel getPermissionLevel() { + return permissionLevel; + } + + public AppAccessControlRequest setServicePrincipalName(String servicePrincipalName) { + this.servicePrincipalName = servicePrincipalName; + return this; + } + + public String getServicePrincipalName() { + return servicePrincipalName; + } + + public AppAccessControlRequest setUserName(String userName) { + this.userName = userName; + return this; + } + + public String getUserName() { + return userName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AppAccessControlRequest that = (AppAccessControlRequest) o; + return Objects.equals(groupName, that.groupName) + && Objects.equals(permissionLevel, that.permissionLevel) + && Objects.equals(servicePrincipalName, that.servicePrincipalName) + && Objects.equals(userName, that.userName); + } + + @Override + public int hashCode() { + return Objects.hash(groupName, permissionLevel, servicePrincipalName, userName); + } + + @Override + public String toString() { + return new ToStringer(AppAccessControlRequest.class) + .add("groupName", groupName) + .add("permissionLevel", permissionLevel) + .add("servicePrincipalName", servicePrincipalName) + .add("userName", userName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java new file mode 100755 index 000000000..eb6a00b76 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java @@ -0,0 +1,105 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class AppAccessControlResponse { + /** All permissions. */ + @JsonProperty("all_permissions") + private Collection allPermissions; + + /** Display name of the user or service principal. */ + @JsonProperty("display_name") + private String displayName; + + /** name of the group */ + @JsonProperty("group_name") + private String groupName; + + /** Name of the service principal. */ + @JsonProperty("service_principal_name") + private String servicePrincipalName; + + /** name of the user */ + @JsonProperty("user_name") + private String userName; + + public AppAccessControlResponse setAllPermissions(Collection allPermissions) { + this.allPermissions = allPermissions; + return this; + } + + public Collection getAllPermissions() { + return allPermissions; + } + + public AppAccessControlResponse setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public AppAccessControlResponse setGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + public String getGroupName() { + return groupName; + } + + public AppAccessControlResponse setServicePrincipalName(String servicePrincipalName) { + this.servicePrincipalName = servicePrincipalName; + return this; + } + + public String getServicePrincipalName() { + return servicePrincipalName; + } + + public AppAccessControlResponse setUserName(String userName) { + this.userName = userName; + return this; + } + + public String getUserName() { + return userName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AppAccessControlResponse that = (AppAccessControlResponse) o; + return Objects.equals(allPermissions, that.allPermissions) + && Objects.equals(displayName, that.displayName) + && Objects.equals(groupName, that.groupName) + && Objects.equals(servicePrincipalName, that.servicePrincipalName) + && Objects.equals(userName, that.userName); + } + + @Override + public int hashCode() { + return Objects.hash(allPermissions, displayName, groupName, servicePrincipalName, userName); + } + + @Override + public String toString() { + return new ToStringer(AppAccessControlResponse.class) + .add("allPermissions", allPermissions) + .add("displayName", displayName) + .add("groupName", groupName) + .add("servicePrincipalName", servicePrincipalName) + .add("userName", userName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java similarity index 99% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java index 2184c7ed8..0961135b1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java similarity index 96% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java index c7a4218d4..26666fed0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java index 80cbe7ffc..9cd2e04d0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java similarity index 83% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java index 1a9d6fb53..8142ad13a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java similarity index 96% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java index 1447a1bdf..095be8232 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java new file mode 100755 index 000000000..39fcd6726 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java @@ -0,0 +1,75 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class AppPermission { + /** */ + @JsonProperty("inherited") + private Boolean inherited; + + /** */ + @JsonProperty("inherited_from_object") + private Collection inheritedFromObject; + + /** Permission level */ + @JsonProperty("permission_level") + private AppPermissionLevel permissionLevel; + + public AppPermission setInherited(Boolean inherited) { + this.inherited = inherited; + return this; + } + + public Boolean getInherited() { + return inherited; + } + + public AppPermission setInheritedFromObject(Collection inheritedFromObject) { + this.inheritedFromObject = inheritedFromObject; + return this; + } + + public Collection getInheritedFromObject() { + return inheritedFromObject; + } + + public AppPermission setPermissionLevel(AppPermissionLevel permissionLevel) { + this.permissionLevel = permissionLevel; + return this; + } + + public AppPermissionLevel getPermissionLevel() { + return permissionLevel; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AppPermission that = (AppPermission) o; + return Objects.equals(inherited, that.inherited) + && Objects.equals(inheritedFromObject, that.inheritedFromObject) + && Objects.equals(permissionLevel, that.permissionLevel); + } + + @Override + public int hashCode() { + return Objects.hash(inherited, inheritedFromObject, permissionLevel); + } + + @Override + public String toString() { + return new ToStringer(AppPermission.class) + .add("inherited", inherited) + .add("inheritedFromObject", inheritedFromObject) + .add("permissionLevel", permissionLevel) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java new file mode 100755 index 000000000..5b2b07c9b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; + +/** Permission level */ +@Generated +public enum AppPermissionLevel { + CAN_MANAGE, + CAN_USE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java new file mode 100755 index 000000000..06a281e13 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java @@ -0,0 +1,76 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class AppPermissions { + /** */ + @JsonProperty("access_control_list") + private Collection accessControlList; + + /** */ + @JsonProperty("object_id") + private String objectId; + + /** */ + @JsonProperty("object_type") + private String objectType; + + public AppPermissions setAccessControlList( + Collection accessControlList) { + this.accessControlList = accessControlList; + return this; + } + + public Collection getAccessControlList() { + return accessControlList; + } + + public AppPermissions setObjectId(String objectId) { + this.objectId = objectId; + return this; + } + + public String getObjectId() { + return objectId; + } + + public AppPermissions setObjectType(String objectType) { + this.objectType = objectType; + return this; + } + + public String getObjectType() { + return objectType; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AppPermissions that = (AppPermissions) o; + return Objects.equals(accessControlList, that.accessControlList) + && Objects.equals(objectId, that.objectId) + && Objects.equals(objectType, that.objectType); + } + + @Override + public int hashCode() { + return Objects.hash(accessControlList, objectId, objectType); + } + + @Override + public String toString() { + return new ToStringer(AppPermissions.class) + .add("accessControlList", accessControlList) + .add("objectId", objectId) + .add("objectType", objectType) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java new file mode 100755 index 000000000..94fb8781f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class AppPermissionsDescription { + /** */ + @JsonProperty("description") + private String description; + + /** Permission level */ + @JsonProperty("permission_level") + private AppPermissionLevel permissionLevel; + + public AppPermissionsDescription setDescription(String description) { + this.description = description; + return this; + } + + public String getDescription() { + return description; + } + + public AppPermissionsDescription setPermissionLevel(AppPermissionLevel permissionLevel) { + this.permissionLevel = permissionLevel; + return this; + } + + public AppPermissionLevel getPermissionLevel() { + return permissionLevel; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AppPermissionsDescription that = (AppPermissionsDescription) o; + return Objects.equals(description, that.description) + && Objects.equals(permissionLevel, that.permissionLevel); + } + + @Override + public int hashCode() { + return Objects.hash(description, permissionLevel); + } + + @Override + public String toString() { + return new ToStringer(AppPermissionsDescription.class) + .add("description", description) + .add("permissionLevel", permissionLevel) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java new file mode 100755 index 000000000..1b3e58a80 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class AppPermissionsRequest { + /** */ + @JsonProperty("access_control_list") + private Collection accessControlList; + + /** The app for which to get or manage permissions. */ + private String appName; + + public AppPermissionsRequest setAccessControlList( + Collection accessControlList) { + this.accessControlList = accessControlList; + return this; + } + + public Collection getAccessControlList() { + return accessControlList; + } + + public AppPermissionsRequest setAppName(String appName) { + this.appName = appName; + return this; + } + + public String getAppName() { + return appName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AppPermissionsRequest that = (AppPermissionsRequest) o; + return Objects.equals(accessControlList, that.accessControlList) + && Objects.equals(appName, that.appName); + } + + @Override + public int hashCode() { + return Objects.hash(accessControlList, appName); + } + + @Override + public String toString() { + return new ToStringer(AppPermissionsRequest.class) + .add("accessControlList", accessControlList) + .add("appName", appName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java similarity index 84% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java index 1d6cc0a7a..a0606e017 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java similarity index 96% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java index 0963965db..e6b520747 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java similarity index 79% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java index cdd5949d6..b81ad3704 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java @@ -1,5 +1,5 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.core.DatabricksException; @@ -159,13 +159,9 @@ public void delete(DeleteAppRequest request) { impl.delete(request); } - public Wait deploy( - String appName, String sourceCodePath, AppDeploymentMode mode) { + public Wait deploy(String appName, String sourceCodePath) { return deploy( - new CreateAppDeploymentRequest() - .setAppName(appName) - .setSourceCodePath(sourceCodePath) - .setMode(mode)); + new CreateAppDeploymentRequest().setAppName(appName).setSourceCodePath(sourceCodePath)); } /** @@ -209,17 +205,30 @@ public AppDeployment getDeployment(GetAppDeploymentRequest request) { return impl.getDeployment(request); } - public AppEnvironment getEnvironment(String name) { - return getEnvironment(new GetAppEnvironmentRequest().setName(name)); + public GetAppPermissionLevelsResponse getPermissionLevels(String appName) { + return getPermissionLevels(new GetAppPermissionLevelsRequest().setAppName(appName)); } /** - * Get app environment. + * Get app permission levels. * - *

Retrieves app environment. + *

Gets the permission levels that a user can have on an object. */ - public AppEnvironment getEnvironment(GetAppEnvironmentRequest request) { - return impl.getEnvironment(request); + public GetAppPermissionLevelsResponse getPermissionLevels(GetAppPermissionLevelsRequest request) { + return impl.getPermissionLevels(request); + } + + public AppPermissions getPermissions(String appName) { + return getPermissions(new GetAppPermissionsRequest().setAppName(appName)); + } + + /** + * Get app permissions. + * + *

Gets the permissions of an app. Apps can inherit permissions from their root object. + */ + public AppPermissions getPermissions(GetAppPermissionsRequest request) { + return impl.getPermissions(request); } /** @@ -264,7 +273,20 @@ public Iterable listDeployments(ListAppDeploymentsRequest request }); } - public AppDeployment start(String name) { + public AppPermissions setPermissions(String appName) { + return setPermissions(new AppPermissionsRequest().setAppName(appName)); + } + + /** + * Set app permissions. + * + *

Sets permissions on an app. Apps can inherit permissions from their root object. + */ + public AppPermissions setPermissions(AppPermissionsRequest request) { + return impl.setPermissions(request); + } + + public Wait start(String name) { return start(new StartAppRequest().setName(name)); } @@ -273,8 +295,13 @@ public AppDeployment start(String name) { * *

Start the last active deployment of the app in the workspace. */ - public AppDeployment start(StartAppRequest request) { - return impl.start(request); + public Wait start(StartAppRequest request) { + AppDeployment response = impl.start(request); + return new Wait<>( + (timeout, callback) -> + waitGetDeploymentAppSucceeded( + request.getName(), response.getDeploymentId(), timeout, callback), + response); } public void stop(String name) { @@ -303,6 +330,19 @@ public App update(UpdateAppRequest request) { return impl.update(request); } + public AppPermissions updatePermissions(String appName) { + return updatePermissions(new AppPermissionsRequest().setAppName(appName)); + } + + /** + * Update app permissions. + * + *

Updates the permissions on an app. Apps can inherit permissions from their root object. + */ + public AppPermissions updatePermissions(AppPermissionsRequest request) { + return impl.updatePermissions(request); + } + public AppsService impl() { return impl; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java similarity index 73% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java index e44f5e4c9..ff6202fe7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java @@ -1,5 +1,5 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; @@ -61,11 +61,20 @@ public AppDeployment getDeployment(GetAppDeploymentRequest request) { } @Override - public AppEnvironment getEnvironment(GetAppEnvironmentRequest request) { - String path = String.format("/api/2.0/preview/apps/%s/environment", request.getName()); + public GetAppPermissionLevelsResponse getPermissionLevels(GetAppPermissionLevelsRequest request) { + String path = + String.format("/api/2.0/permissions/apps/%s/permissionLevels", request.getAppName()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); - return apiClient.GET(path, request, AppEnvironment.class, headers); + return apiClient.GET(path, request, GetAppPermissionLevelsResponse.class, headers); + } + + @Override + public AppPermissions getPermissions(GetAppPermissionsRequest request) { + String path = String.format("/api/2.0/permissions/apps/%s", request.getAppName()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, AppPermissions.class, headers); } @Override @@ -84,6 +93,15 @@ public ListAppDeploymentsResponse listDeployments(ListAppDeploymentsRequest requ return apiClient.GET(path, request, ListAppDeploymentsResponse.class, headers); } + @Override + public AppPermissions setPermissions(AppPermissionsRequest request) { + String path = String.format("/api/2.0/permissions/apps/%s", request.getAppName()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, AppPermissions.class, headers); + } + @Override public AppDeployment start(StartAppRequest request) { String path = String.format("/api/2.0/preview/apps/%s/start", request.getName()); @@ -110,4 +128,13 @@ public App update(UpdateAppRequest request) { headers.put("Content-Type", "application/json"); return apiClient.PATCH(path, request, App.class, headers); } + + @Override + public AppPermissions updatePermissions(AppPermissionsRequest request) { + String path = String.format("/api/2.0/permissions/apps/%s", request.getAppName()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PATCH(path, request, AppPermissions.class, headers); + } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java similarity index 69% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java index bd4ae037a..6025bf917 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java @@ -1,5 +1,5 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; @@ -49,11 +49,19 @@ public interface AppsService { AppDeployment getDeployment(GetAppDeploymentRequest getAppDeploymentRequest); /** - * Get app environment. + * Get app permission levels. * - *

Retrieves app environment. + *

Gets the permission levels that a user can have on an object. */ - AppEnvironment getEnvironment(GetAppEnvironmentRequest getAppEnvironmentRequest); + GetAppPermissionLevelsResponse getPermissionLevels( + GetAppPermissionLevelsRequest getAppPermissionLevelsRequest); + + /** + * Get app permissions. + * + *

Gets the permissions of an app. Apps can inherit permissions from their root object. + */ + AppPermissions getPermissions(GetAppPermissionsRequest getAppPermissionsRequest); /** * List apps. @@ -69,6 +77,13 @@ public interface AppsService { */ ListAppDeploymentsResponse listDeployments(ListAppDeploymentsRequest listAppDeploymentsRequest); + /** + * Set app permissions. + * + *

Sets permissions on an app. Apps can inherit permissions from their root object. + */ + AppPermissions setPermissions(AppPermissionsRequest appPermissionsRequest); + /** * Start an app. * @@ -89,4 +104,11 @@ public interface AppsService { *

Updates the app with the supplied name. */ App update(UpdateAppRequest updateAppRequest); + + /** + * Update app permissions. + * + *

Updates the permissions on an app. Apps can inherit permissions from their root object. + */ + AppPermissions updatePermissions(AppPermissionsRequest appPermissionsRequest); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java similarity index 98% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java index 28ea4bf88..3a258a05f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java similarity index 97% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java index aa5b59755..e63da38c3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java similarity index 95% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java index 65be91258..b06ed327c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java new file mode 100755 index 000000000..50d230ef6 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class DeleteResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(DeleteResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java similarity index 96% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java index 4da380cb0..10a5aa2fb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java new file mode 100755 index 000000000..e52527ce1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get app permission levels */ +@Generated +public class GetAppPermissionLevelsRequest { + /** The app for which to get or manage permissions. */ + private String appName; + + public GetAppPermissionLevelsRequest setAppName(String appName) { + this.appName = appName; + return this; + } + + public String getAppName() { + return appName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetAppPermissionLevelsRequest that = (GetAppPermissionLevelsRequest) o; + return Objects.equals(appName, that.appName); + } + + @Override + public int hashCode() { + return Objects.hash(appName); + } + + @Override + public String toString() { + return new ToStringer(GetAppPermissionLevelsRequest.class).add("appName", appName).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java new file mode 100755 index 000000000..a8a41f7da --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java @@ -0,0 +1,46 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class GetAppPermissionLevelsResponse { + /** Specific permission levels */ + @JsonProperty("permission_levels") + private Collection permissionLevels; + + public GetAppPermissionLevelsResponse setPermissionLevels( + Collection permissionLevels) { + this.permissionLevels = permissionLevels; + return this; + } + + public Collection getPermissionLevels() { + return permissionLevels; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetAppPermissionLevelsResponse that = (GetAppPermissionLevelsResponse) o; + return Objects.equals(permissionLevels, that.permissionLevels); + } + + @Override + public int hashCode() { + return Objects.hash(permissionLevels); + } + + @Override + public String toString() { + return new ToStringer(GetAppPermissionLevelsResponse.class) + .add("permissionLevels", permissionLevels) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java new file mode 100755 index 000000000..d93f42491 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.apps; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get app permissions */ +@Generated +public class GetAppPermissionsRequest { + /** The app for which to get or manage permissions. */ + private String appName; + + public GetAppPermissionsRequest setAppName(String appName) { + this.appName = appName; + return this; + } + + public String getAppName() { + return appName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetAppPermissionsRequest that = (GetAppPermissionsRequest) o; + return Objects.equals(appName, that.appName); + } + + @Override + public int hashCode() { + return Objects.hash(appName); + } + + @Override + public String toString() { + return new ToStringer(GetAppPermissionsRequest.class).add("appName", appName).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java similarity index 95% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java index e65a9163d..61a4072a6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java similarity index 97% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java index ac90df2e3..a4fab1005 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.QueryParam; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java similarity index 97% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java index cc68048ee..3feef0752 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java similarity index 97% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java index 82ebd39bb..90fbde530 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.QueryParam; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java similarity index 97% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java index 5290af46d..20887ad7f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java similarity index 95% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java index 4386245bc..4968c5cc4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java similarity index 95% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java index efad1f69b..22073a93f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java similarity index 93% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java index be24160d2..9e862a017 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java similarity index 97% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java index ce66c3888..edbe547cb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.serving; +package com.databricks.sdk.service.apps; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java new file mode 100755 index 000000000..60f8d7e60 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java @@ -0,0 +1,62 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class CreateBillingUsageDashboardRequest { + /** + * Workspace level usage dashboard shows usage data for the specified workspace ID. Global level + * usage dashboard shows usage data for all workspaces in the account. + */ + @JsonProperty("dashboard_type") + private UsageDashboardType dashboardType; + + /** The workspace ID of the workspace in which the usage dashboard is created. */ + @JsonProperty("workspace_id") + private Long workspaceId; + + public CreateBillingUsageDashboardRequest setDashboardType(UsageDashboardType dashboardType) { + this.dashboardType = dashboardType; + return this; + } + + public UsageDashboardType getDashboardType() { + return dashboardType; + } + + public CreateBillingUsageDashboardRequest setWorkspaceId(Long workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + public Long getWorkspaceId() { + return workspaceId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateBillingUsageDashboardRequest that = (CreateBillingUsageDashboardRequest) o; + return Objects.equals(dashboardType, that.dashboardType) + && Objects.equals(workspaceId, that.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardType, workspaceId); + } + + @Override + public String toString() { + return new ToStringer(CreateBillingUsageDashboardRequest.class) + .add("dashboardType", dashboardType) + .add("workspaceId", workspaceId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java new file mode 100755 index 000000000..f70b18fb1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class CreateBillingUsageDashboardResponse { + /** The unique id of the usage dashboard. */ + @JsonProperty("dashboard_id") + private String dashboardId; + + public CreateBillingUsageDashboardResponse setDashboardId(String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + public String getDashboardId() { + return dashboardId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateBillingUsageDashboardResponse that = (CreateBillingUsageDashboardResponse) o; + return Objects.equals(dashboardId, that.dashboardId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId); + } + + @Override + public String toString() { + return new ToStringer(CreateBillingUsageDashboardResponse.class) + .add("dashboardId", dashboardId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java new file mode 100755 index 000000000..a002b6ba7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java @@ -0,0 +1,63 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get usage dashboard */ +@Generated +public class GetBillingUsageDashboardRequest { + /** + * Workspace level usage dashboard shows usage data for the specified workspace ID. Global level + * usage dashboard shows usage data for all workspaces in the account. + */ + @QueryParam("dashboard_type") + private UsageDashboardType dashboardType; + + /** The workspace ID of the workspace in which the usage dashboard is created. */ + @QueryParam("workspace_id") + private Long workspaceId; + + public GetBillingUsageDashboardRequest setDashboardType(UsageDashboardType dashboardType) { + this.dashboardType = dashboardType; + return this; + } + + public UsageDashboardType getDashboardType() { + return dashboardType; + } + + public GetBillingUsageDashboardRequest setWorkspaceId(Long workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + public Long getWorkspaceId() { + return workspaceId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetBillingUsageDashboardRequest that = (GetBillingUsageDashboardRequest) o; + return Objects.equals(dashboardType, that.dashboardType) + && Objects.equals(workspaceId, that.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardType, workspaceId); + } + + @Override + public String toString() { + return new ToStringer(GetBillingUsageDashboardRequest.class) + .add("dashboardType", dashboardType) + .add("workspaceId", workspaceId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java new file mode 100755 index 000000000..5030e3c6f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class GetBillingUsageDashboardResponse { + /** The unique id of the usage dashboard. */ + @JsonProperty("dashboard_id") + private String dashboardId; + + /** The URL of the usage dashboard. */ + @JsonProperty("dashboard_url") + private String dashboardUrl; + + public GetBillingUsageDashboardResponse setDashboardId(String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + public String getDashboardId() { + return dashboardId; + } + + public GetBillingUsageDashboardResponse setDashboardUrl(String dashboardUrl) { + this.dashboardUrl = dashboardUrl; + return this; + } + + public String getDashboardUrl() { + return dashboardUrl; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetBillingUsageDashboardResponse that = (GetBillingUsageDashboardResponse) o; + return Objects.equals(dashboardId, that.dashboardId) + && Objects.equals(dashboardUrl, that.dashboardUrl); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId, dashboardUrl); + } + + @Override + public String toString() { + return new ToStringer(GetBillingUsageDashboardResponse.class) + .add("dashboardId", dashboardId) + .add("dashboardUrl", dashboardUrl) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java new file mode 100755 index 000000000..f56da7553 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum UsageDashboardType { + USAGE_DASHBOARD_TYPE_GLOBAL, + USAGE_DASHBOARD_TYPE_WORKSPACE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java new file mode 100755 index 000000000..93573bbda --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java @@ -0,0 +1,51 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * These APIs manage usage dashboards for this account. Usage dashboards enable you to gain insights + * into your usage with pre-built dashboards: visualize breakdowns, analyze tag attributions, and + * identify cost drivers. + */ +@Generated +public class UsageDashboardsAPI { + private static final Logger LOG = LoggerFactory.getLogger(UsageDashboardsAPI.class); + + private final UsageDashboardsService impl; + + /** Regular-use constructor */ + public UsageDashboardsAPI(ApiClient apiClient) { + impl = new UsageDashboardsImpl(apiClient); + } + + /** Constructor for mocks */ + public UsageDashboardsAPI(UsageDashboardsService mock) { + impl = mock; + } + + /** + * Create new usage dashboard. + * + *

Create a usage dashboard specified by workspaceId, accountId, and dashboard type. + */ + public CreateBillingUsageDashboardResponse create(CreateBillingUsageDashboardRequest request) { + return impl.create(request); + } + + /** + * Get usage dashboard. + * + *

Get a usage dashboard specified by workspaceId, accountId, and dashboard type. + */ + public GetBillingUsageDashboardResponse get(GetBillingUsageDashboardRequest request) { + return impl.get(request); + } + + public UsageDashboardsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java new file mode 100755 index 000000000..e677e090c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java @@ -0,0 +1,34 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of UsageDashboards */ +@Generated +class UsageDashboardsImpl implements UsageDashboardsService { + private final ApiClient apiClient; + + public UsageDashboardsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public CreateBillingUsageDashboardResponse create(CreateBillingUsageDashboardRequest request) { + String path = String.format("/api/2.0/accounts/%s/dashboard", apiClient.configuredAccountID()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreateBillingUsageDashboardResponse.class, headers); + } + + @Override + public GetBillingUsageDashboardResponse get(GetBillingUsageDashboardRequest request) { + String path = String.format("/api/2.0/accounts/%s/dashboard", apiClient.configuredAccountID()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetBillingUsageDashboardResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java new file mode 100755 index 000000000..47bcb4b94 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java @@ -0,0 +1,32 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.billing; + +import com.databricks.sdk.support.Generated; + +/** + * These APIs manage usage dashboards for this account. Usage dashboards enable you to gain insights + * into your usage with pre-built dashboards: visualize breakdowns, analyze tag attributions, and + * identify cost drivers. + * + *

This is the high-level interface, that contains generated methods. + * + *

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface UsageDashboardsService { + /** + * Create new usage dashboard. + * + *

Create a usage dashboard specified by workspaceId, accountId, and dashboard type. + */ + CreateBillingUsageDashboardResponse create( + CreateBillingUsageDashboardRequest createBillingUsageDashboardRequest); + + /** + * Get usage dashboard. + * + *

Get a usage dashboard specified by workspaceId, accountId, and dashboard type. + */ + GetBillingUsageDashboardResponse get( + GetBillingUsageDashboardRequest getBillingUsageDashboardRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java index dca4a1bdb..a75af6c6b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java @@ -13,9 +13,9 @@ public class GetPermissionRequest { private String requestObjectId; /** - * The type of the request object. Can be one of the following: authorization, clusters, - * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines, - * registered-models, repos, serving-endpoints, or warehouses. + * The type of the request object. Can be one of the following: alerts, authorization, clusters, + * cluster-policies, dbsql-dashboards, directories, experiments, files, instance-pools, jobs, + * notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or warehouses. */ private String requestObjectType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java index fff729d4c..0d1779ef2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java @@ -15,6 +15,7 @@ public enum PermissionLevel { CAN_MANAGE_PRODUCTION_VERSIONS, CAN_MANAGE_RUN, CAN_MANAGE_STAGING_VERSIONS, + CAN_MONITOR, CAN_QUERY, CAN_READ, CAN_RESTART, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java index 55eb37ad0..2eb2601d9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java @@ -10,6 +10,8 @@ * Permissions API are used to create read, write, edit, update and manage access for various users * on different objects and endpoints. * + *

* **[Apps permissions](:service:apps)** — Manage which users can manage or use apps. + * *

* **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or * attach to clusters. * @@ -46,7 +48,7 @@ * tokens. * *

* **[Workspace object permissions](:service:workspace)** — Manage which users can read, run, - * edit, or manage directories, files, and notebooks. + * edit, or manage alerts, dbsql-dashboards, directories, files, notebooks and queries. * *

For the mapping of the required permissions for specific actions or abilities and other * important information, see [Access Control]. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java index 6643d1063..17dc6e0d3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java @@ -18,9 +18,9 @@ public class PermissionsRequest { private String requestObjectId; /** - * The type of the request object. Can be one of the following: authorization, clusters, - * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines, - * registered-models, repos, serving-endpoints, or warehouses. + * The type of the request object. Can be one of the following: alerts, authorization, clusters, + * cluster-policies, dbsql-dashboards, directories, experiments, files, instance-pools, jobs, + * notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or warehouses. */ private String requestObjectType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java index b78dbb72d..e641809ea 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java @@ -7,6 +7,8 @@ * Permissions API are used to create read, write, edit, update and manage access for various users * on different objects and endpoints. * + *

* **[Apps permissions](:service:apps)** — Manage which users can manage or use apps. + * *

* **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or * attach to clusters. * @@ -43,7 +45,7 @@ * tokens. * *

* **[Workspace object permissions](:service:workspace)** — Manage which users can read, run, - * edit, or manage directories, files, and notebooks. + * edit, or manage alerts, dbsql-dashboards, directories, files, notebooks and queries. * *

For the mapping of the required permissions for specific actions or abilities and other * important information, see [Access Control]. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java index 87f027f7a..1931f15b8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java @@ -11,8 +11,10 @@ @Generated public class UpdateWorkspaceAssignments { /** - * Array of permissions assignments to update on the workspace. Note that excluding this field - * will have the same effect as providing an empty list which will result in the deletion of all + * Array of permissions assignments to update on the workspace. Valid values are "USER" and + * "ADMIN" (case-sensitive). If both "USER" and "ADMIN" are provided, "ADMIN" takes precedence. + * Other values will be ignored. Note that excluding this field, or providing unsupported values, + * will have the same effect as providing an empty list, which will result in the deletion of all * permissions for the principal. */ @JsonProperty("permissions") diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java index 86f79b30f..3d87c11fc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java @@ -18,6 +18,13 @@ public class GetRunRequest { @QueryParam("include_resolved_values") private Boolean includeResolvedValues; + /** + * To list the next page or the previous page of job tasks, set this field to the value of the + * `next_page_token` or `prev_page_token` returned in the GetJob response. + */ + @QueryParam("page_token") + private String pageToken; + /** * The canonical identifier of the run for which to retrieve the metadata. This field is required. */ @@ -42,6 +49,15 @@ public Boolean getIncludeResolvedValues() { return includeResolvedValues; } + public GetRunRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + public GetRunRequest setRunId(Long runId) { this.runId = runId; return this; @@ -58,12 +74,13 @@ public boolean equals(Object o) { GetRunRequest that = (GetRunRequest) o; return Objects.equals(includeHistory, that.includeHistory) && Objects.equals(includeResolvedValues, that.includeResolvedValues) + && Objects.equals(pageToken, that.pageToken) && Objects.equals(runId, that.runId); } @Override public int hashCode() { - return Objects.hash(includeHistory, includeResolvedValues, runId); + return Objects.hash(includeHistory, includeResolvedValues, pageToken, runId); } @Override @@ -71,6 +88,7 @@ public String toString() { return new ToStringer(GetRunRequest.class) .add("includeHistory", includeHistory) .add("includeResolvedValues", includeResolvedValues) + .add("pageToken", pageToken) .add("runId", runId) .toString(); } 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 e8efb85c1..639c1ab82 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 @@ -83,6 +83,10 @@ public class Run { @JsonProperty("git_source") private GitSource gitSource; + /** Only populated by for-each iterations. The parent for-each task is located in tasks array. */ + @JsonProperty("iterations") + private Collection iterations; + /** * A list of job cluster specifications that can be shared and reused by tasks of this job. * Libraries cannot be declared in a shared job cluster. You must declare dependent libraries in @@ -99,6 +103,10 @@ public class Run { @JsonProperty("job_parameters") private Collection jobParameters; + /** A token that can be used to list the next page of sub-resources. */ + @JsonProperty("next_page_token") + private String nextPageToken; + /** A unique identifier for this job run. This is set to the same value as `run_id`. */ @JsonProperty("number_in_job") private Long numberInJob; @@ -114,6 +122,10 @@ public class Run { @JsonProperty("overriding_parameters") private RunParameters overridingParameters; + /** A token that can be used to list the previous page of sub-resources. */ + @JsonProperty("prev_page_token") + private String prevPageToken; + /** The time in milliseconds that the run has spent in the queue. */ @JsonProperty("queue_duration") private Long queueDuration; @@ -281,6 +293,15 @@ public GitSource getGitSource() { return gitSource; } + public Run setIterations(Collection iterations) { + this.iterations = iterations; + return this; + } + + public Collection getIterations() { + return iterations; + } + public Run setJobClusters(Collection jobClusters) { this.jobClusters = jobClusters; return this; @@ -308,6 +329,15 @@ public Collection getJobParameters() { return jobParameters; } + public Run setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + public Run setNumberInJob(Long numberInJob) { this.numberInJob = numberInJob; return this; @@ -335,6 +365,15 @@ public RunParameters getOverridingParameters() { return overridingParameters; } + public Run setPrevPageToken(String prevPageToken) { + this.prevPageToken = prevPageToken; + return this; + } + + public String getPrevPageToken() { + return prevPageToken; + } + public Run setQueueDuration(Long queueDuration) { this.queueDuration = queueDuration; return this; @@ -475,12 +514,15 @@ public boolean equals(Object o) { && Objects.equals(endTime, that.endTime) && Objects.equals(executionDuration, that.executionDuration) && Objects.equals(gitSource, that.gitSource) + && Objects.equals(iterations, that.iterations) && Objects.equals(jobClusters, that.jobClusters) && Objects.equals(jobId, that.jobId) && Objects.equals(jobParameters, that.jobParameters) + && Objects.equals(nextPageToken, that.nextPageToken) && Objects.equals(numberInJob, that.numberInJob) && Objects.equals(originalAttemptRunId, that.originalAttemptRunId) && Objects.equals(overridingParameters, that.overridingParameters) + && Objects.equals(prevPageToken, that.prevPageToken) && Objects.equals(queueDuration, that.queueDuration) && Objects.equals(repairHistory, that.repairHistory) && Objects.equals(runDuration, that.runDuration) @@ -509,12 +551,15 @@ public int hashCode() { endTime, executionDuration, gitSource, + iterations, jobClusters, jobId, jobParameters, + nextPageToken, numberInJob, originalAttemptRunId, overridingParameters, + prevPageToken, queueDuration, repairHistory, runDuration, @@ -543,12 +588,15 @@ public String toString() { .add("endTime", endTime) .add("executionDuration", executionDuration) .add("gitSource", gitSource) + .add("iterations", iterations) .add("jobClusters", jobClusters) .add("jobId", jobId) .add("jobParameters", jobParameters) + .add("nextPageToken", nextPageToken) .add("numberInJob", numberInJob) .add("originalAttemptRunId", originalAttemptRunId) .add("overridingParameters", overridingParameters) + .add("prevPageToken", prevPageToken) .add("queueDuration", queueDuration) .add("repairHistory", repairHistory) .add("runDuration", runDuration) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java index 7fa5398aa..e989241e4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java @@ -21,7 +21,7 @@ public class IngestionGatewayPipelineDefinition { private String gatewayStorageCatalog; /** - * Required. The Unity Catalog-compatible naming for the gateway storage location. This is the + * Optional. The Unity Catalog-compatible name for the gateway storage location. This is the * destination to use for the data that is extracted by the gateway. Delta Live Tables system will * automatically create the storage location under the catalog and schema. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java index 516b4e1e5..2eb27a477 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java @@ -72,6 +72,10 @@ public class PipelineCluster { @JsonProperty("driver_node_type_id") private String driverNodeTypeId; + /** Whether to enable local disk encryption for the cluster. */ + @JsonProperty("enable_local_disk_encryption") + private Boolean enableLocalDiskEncryption; + /** * Attributes related to clusters running on Google Cloud Platform. If not specified at cluster * creation, a set of default values will be used. @@ -231,6 +235,15 @@ public String getDriverNodeTypeId() { return driverNodeTypeId; } + public PipelineCluster setEnableLocalDiskEncryption(Boolean enableLocalDiskEncryption) { + this.enableLocalDiskEncryption = enableLocalDiskEncryption; + return this; + } + + public Boolean getEnableLocalDiskEncryption() { + return enableLocalDiskEncryption; + } + public PipelineCluster setGcpAttributes( com.databricks.sdk.service.compute.GcpAttributes gcpAttributes) { this.gcpAttributes = gcpAttributes; @@ -336,6 +349,7 @@ public boolean equals(Object o) { && Objects.equals(customTags, that.customTags) && Objects.equals(driverInstancePoolId, that.driverInstancePoolId) && Objects.equals(driverNodeTypeId, that.driverNodeTypeId) + && Objects.equals(enableLocalDiskEncryption, that.enableLocalDiskEncryption) && Objects.equals(gcpAttributes, that.gcpAttributes) && Objects.equals(initScripts, that.initScripts) && Objects.equals(instancePoolId, that.instancePoolId) @@ -359,6 +373,7 @@ public int hashCode() { customTags, driverInstancePoolId, driverNodeTypeId, + enableLocalDiskEncryption, gcpAttributes, initScripts, instancePoolId, @@ -382,6 +397,7 @@ public String toString() { .add("customTags", customTags) .add("driverInstancePoolId", driverInstancePoolId) .add("driverNodeTypeId", driverNodeTypeId) + .add("enableLocalDiskEncryption", enableLocalDiskEncryption) .add("gcpAttributes", gcpAttributes) .add("initScripts", initScripts) .add("instancePoolId", instancePoolId) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java index ee047e91a..7954e8735 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java @@ -25,6 +25,10 @@ public class PipelineLibrary { @JsonProperty("notebook") private NotebookLibrary notebook; + /** URI of the whl to be installed. */ + @JsonProperty("whl") + private String whl; + public PipelineLibrary setFile(FileLibrary file) { this.file = file; return this; @@ -61,6 +65,15 @@ public NotebookLibrary getNotebook() { return notebook; } + public PipelineLibrary setWhl(String whl) { + this.whl = whl; + return this; + } + + public String getWhl() { + return whl; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -69,12 +82,13 @@ public boolean equals(Object o) { return Objects.equals(file, that.file) && Objects.equals(jar, that.jar) && Objects.equals(maven, that.maven) - && Objects.equals(notebook, that.notebook); + && Objects.equals(notebook, that.notebook) + && Objects.equals(whl, that.whl); } @Override public int hashCode() { - return Objects.hash(file, jar, maven, notebook); + return Objects.hash(file, jar, maven, notebook, whl); } @Override @@ -84,6 +98,7 @@ public String toString() { .add("jar", jar) .add("maven", maven) .add("notebook", notebook) + .add("whl", whl) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java index ea8a1f41c..dafa63362 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java @@ -18,6 +18,10 @@ public class PipelineStateInfo { @JsonProperty("creator_user_name") private String creatorUserName; + /** The health of a pipeline. */ + @JsonProperty("health") + private PipelineStateInfoHealth health; + /** Status of the latest updates for the pipeline. Ordered with the newest update first. */ @JsonProperty("latest_updates") private Collection latestUpdates; @@ -59,6 +63,15 @@ public String getCreatorUserName() { return creatorUserName; } + public PipelineStateInfo setHealth(PipelineStateInfoHealth health) { + this.health = health; + return this; + } + + public PipelineStateInfoHealth getHealth() { + return health; + } + public PipelineStateInfo setLatestUpdates(Collection latestUpdates) { this.latestUpdates = latestUpdates; return this; @@ -111,6 +124,7 @@ public boolean equals(Object o) { PipelineStateInfo that = (PipelineStateInfo) o; return Objects.equals(clusterId, that.clusterId) && Objects.equals(creatorUserName, that.creatorUserName) + && Objects.equals(health, that.health) && Objects.equals(latestUpdates, that.latestUpdates) && Objects.equals(name, that.name) && Objects.equals(pipelineId, that.pipelineId) @@ -121,7 +135,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - clusterId, creatorUserName, latestUpdates, name, pipelineId, runAsUserName, state); + clusterId, creatorUserName, health, latestUpdates, name, pipelineId, runAsUserName, state); } @Override @@ -129,6 +143,7 @@ public String toString() { return new ToStringer(PipelineStateInfo.class) .add("clusterId", clusterId) .add("creatorUserName", creatorUserName) + .add("health", health) .add("latestUpdates", latestUpdates) .add("name", name) .add("pipelineId", pipelineId) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java new file mode 100755 index 000000000..7ab0e7dd8 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.pipelines; + +import com.databricks.sdk.support.Generated; + +/** The health of a pipeline. */ +@Generated +public enum PipelineStateInfoHealth { + HEALTHY, + UNHEALTHY, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java deleted file mode 100755 index 9e9a507e0..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.serving; - -import com.databricks.sdk.support.Generated; -import com.databricks.sdk.support.ToStringer; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Collection; -import java.util.Objects; - -@Generated -public class AppEnvironment { - /** */ - @JsonProperty("env") - private Collection env; - - public AppEnvironment setEnv(Collection env) { - this.env = env; - return this; - } - - public Collection getEnv() { - return env; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - AppEnvironment that = (AppEnvironment) o; - return Objects.equals(env, that.env); - } - - @Override - public int hashCode() { - return Objects.hash(env); - } - - @Override - public String toString() { - return new ToStringer(AppEnvironment.class).add("env", env).toString(); - } -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java deleted file mode 100755 index 5e1ca007c..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.serving; - -import com.databricks.sdk.support.Generated; -import com.databricks.sdk.support.ToStringer; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Objects; - -@Generated -public class EnvVariable { - /** */ - @JsonProperty("name") - private String name; - - /** */ - @JsonProperty("value") - private String value; - - /** */ - @JsonProperty("value_from") - private String valueFrom; - - public EnvVariable setName(String name) { - this.name = name; - return this; - } - - public String getName() { - return name; - } - - public EnvVariable setValue(String value) { - this.value = value; - return this; - } - - public String getValue() { - return value; - } - - public EnvVariable setValueFrom(String valueFrom) { - this.valueFrom = valueFrom; - return this; - } - - public String getValueFrom() { - return valueFrom; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - EnvVariable that = (EnvVariable) o; - return Objects.equals(name, that.name) - && Objects.equals(value, that.value) - && Objects.equals(valueFrom, that.valueFrom); - } - - @Override - public int hashCode() { - return Objects.hash(name, value, valueFrom); - } - - @Override - public String toString() { - return new ToStringer(EnvVariable.class) - .add("name", name) - .add("value", value) - .add("valueFrom", valueFrom) - .toString(); - } -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java deleted file mode 100755 index e869ef07b..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.serving; - -import com.databricks.sdk.support.Generated; -import com.databricks.sdk.support.ToStringer; -import java.util.Objects; - -/** Get app environment */ -@Generated -public class GetAppEnvironmentRequest { - /** The name of the app. */ - private String name; - - public GetAppEnvironmentRequest setName(String name) { - this.name = name; - return this; - } - - public String getName() { - return name; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - GetAppEnvironmentRequest that = (GetAppEnvironmentRequest) o; - return Objects.equals(name, that.name); - } - - @Override - public int hashCode() { - return Objects.hash(name); - } - - @Override - public String toString() { - return new ToStringer(GetAppEnvironmentRequest.class).add("name", name).toString(); - } -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java index 7e13e99d9..929f88b04 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java @@ -10,10 +10,26 @@ @Generated public class GetRecipientSharePermissionsResponse { + /** + * Opaque token to retrieve the next page of results. Absent if there are no more pages. + * __page_token__ should be set to this value for the next request (for the next page of results). + */ + @JsonProperty("next_page_token") + private String nextPageToken; + /** An array of data share permissions for a recipient. */ @JsonProperty("permissions_out") private Collection permissionsOut; + public GetRecipientSharePermissionsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + public GetRecipientSharePermissionsResponse setPermissionsOut( Collection permissionsOut) { this.permissionsOut = permissionsOut; @@ -29,17 +45,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetRecipientSharePermissionsResponse that = (GetRecipientSharePermissionsResponse) o; - return Objects.equals(permissionsOut, that.permissionsOut); + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(permissionsOut, that.permissionsOut); } @Override public int hashCode() { - return Objects.hash(permissionsOut); + return Objects.hash(nextPageToken, permissionsOut); } @Override public String toString() { return new ToStringer(GetRecipientSharePermissionsResponse.class) + .add("nextPageToken", nextPageToken) .add("permissionsOut", permissionsOut) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java index ed225460d..cb8bdfcde 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java @@ -10,10 +10,26 @@ @Generated public class ListProviderSharesResponse { + /** + * Opaque token to retrieve the next page of results. Absent if there are no more pages. + * __page_token__ should be set to this value for the next request (for the next page of results). + */ + @JsonProperty("next_page_token") + private String nextPageToken; + /** An array of provider shares. */ @JsonProperty("shares") private Collection shares; + public ListProviderSharesResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + public ListProviderSharesResponse setShares(Collection shares) { this.shares = shares; return this; @@ -28,16 +44,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListProviderSharesResponse that = (ListProviderSharesResponse) o; - return Objects.equals(shares, that.shares); + return Objects.equals(nextPageToken, that.nextPageToken) && Objects.equals(shares, that.shares); } @Override public int hashCode() { - return Objects.hash(shares); + return Objects.hash(nextPageToken, shares); } @Override public String toString() { - return new ToStringer(ListProviderSharesResponse.class).add("shares", shares).toString(); + return new ToStringer(ListProviderSharesResponse.class) + .add("nextPageToken", nextPageToken) + .add("shares", shares) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java index d9567da53..c2874209c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java @@ -17,6 +17,22 @@ public class ListProvidersRequest { @QueryParam("data_provider_global_metastore_id") private String dataProviderGlobalMetastoreId; + /** + * Maximum number of providers to return. - when set to 0, the page length is set to a server + * configured value (recommended); - when set to a value greater than 0, the page length is the + * minimum of this value and a server configured value; - when set to a value less than 0, an + * invalid parameter error is returned; - If not set, all valid providers are returned (not + * recommended). - Note: The number of returned providers might be less than the specified + * max_results size, even zero. The only definitive indication that no further providers can be + * fetched is when the next_page_token is unset from the response. + */ + @QueryParam("max_results") + private Long maxResults; + + /** Opaque pagination token to go to next page based on previous query. */ + @QueryParam("page_token") + private String pageToken; + public ListProvidersRequest setDataProviderGlobalMetastoreId( String dataProviderGlobalMetastoreId) { this.dataProviderGlobalMetastoreId = dataProviderGlobalMetastoreId; @@ -27,23 +43,45 @@ public String getDataProviderGlobalMetastoreId() { return dataProviderGlobalMetastoreId; } + public ListProvidersRequest setMaxResults(Long maxResults) { + this.maxResults = maxResults; + return this; + } + + public Long getMaxResults() { + return maxResults; + } + + public ListProvidersRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListProvidersRequest that = (ListProvidersRequest) o; - return Objects.equals(dataProviderGlobalMetastoreId, that.dataProviderGlobalMetastoreId); + return Objects.equals(dataProviderGlobalMetastoreId, that.dataProviderGlobalMetastoreId) + && Objects.equals(maxResults, that.maxResults) + && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(dataProviderGlobalMetastoreId); + return Objects.hash(dataProviderGlobalMetastoreId, maxResults, pageToken); } @Override public String toString() { return new ToStringer(ListProvidersRequest.class) .add("dataProviderGlobalMetastoreId", dataProviderGlobalMetastoreId) + .add("maxResults", maxResults) + .add("pageToken", pageToken) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java index f734bf68c..5c1692ebb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java @@ -10,10 +10,26 @@ @Generated public class ListProvidersResponse { + /** + * Opaque token to retrieve the next page of results. Absent if there are no more pages. + * __page_token__ should be set to this value for the next request (for the next page of results). + */ + @JsonProperty("next_page_token") + private String nextPageToken; + /** An array of provider information objects. */ @JsonProperty("providers") private Collection providers; + public ListProvidersResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + public ListProvidersResponse setProviders(Collection providers) { this.providers = providers; return this; @@ -28,16 +44,20 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListProvidersResponse that = (ListProvidersResponse) o; - return Objects.equals(providers, that.providers); + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(providers, that.providers); } @Override public int hashCode() { - return Objects.hash(providers); + return Objects.hash(nextPageToken, providers); } @Override public String toString() { - return new ToStringer(ListProvidersResponse.class).add("providers", providers).toString(); + return new ToStringer(ListProvidersResponse.class) + .add("nextPageToken", nextPageToken) + .add("providers", providers) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java index b49970fff..fd46fd38e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java @@ -17,6 +17,22 @@ public class ListRecipientsRequest { @QueryParam("data_recipient_global_metastore_id") private String dataRecipientGlobalMetastoreId; + /** + * Maximum number of recipients to return. - when set to 0, the page length is set to a server + * configured value (recommended); - when set to a value greater than 0, the page length is the + * minimum of this value and a server configured value; - when set to a value less than 0, an + * invalid parameter error is returned; - If not set, all valid recipients are returned (not + * recommended). - Note: The number of returned recipients might be less than the specified + * max_results size, even zero. The only definitive indication that no further recipients can be + * fetched is when the next_page_token is unset from the response. + */ + @QueryParam("max_results") + private Long maxResults; + + /** Opaque pagination token to go to next page based on previous query. */ + @QueryParam("page_token") + private String pageToken; + public ListRecipientsRequest setDataRecipientGlobalMetastoreId( String dataRecipientGlobalMetastoreId) { this.dataRecipientGlobalMetastoreId = dataRecipientGlobalMetastoreId; @@ -27,23 +43,45 @@ public String getDataRecipientGlobalMetastoreId() { return dataRecipientGlobalMetastoreId; } + public ListRecipientsRequest setMaxResults(Long maxResults) { + this.maxResults = maxResults; + return this; + } + + public Long getMaxResults() { + return maxResults; + } + + public ListRecipientsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListRecipientsRequest that = (ListRecipientsRequest) o; - return Objects.equals(dataRecipientGlobalMetastoreId, that.dataRecipientGlobalMetastoreId); + return Objects.equals(dataRecipientGlobalMetastoreId, that.dataRecipientGlobalMetastoreId) + && Objects.equals(maxResults, that.maxResults) + && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(dataRecipientGlobalMetastoreId); + return Objects.hash(dataRecipientGlobalMetastoreId, maxResults, pageToken); } @Override public String toString() { return new ToStringer(ListRecipientsRequest.class) .add("dataRecipientGlobalMetastoreId", dataRecipientGlobalMetastoreId) + .add("maxResults", maxResults) + .add("pageToken", pageToken) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java index dcd704822..2d0ece97f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java @@ -10,10 +10,26 @@ @Generated public class ListRecipientsResponse { + /** + * Opaque token to retrieve the next page of results. Absent if there are no more pages. + * __page_token__ should be set to this value for the next request (for the next page of results). + */ + @JsonProperty("next_page_token") + private String nextPageToken; + /** An array of recipient information objects. */ @JsonProperty("recipients") private Collection recipients; + public ListRecipientsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + public ListRecipientsResponse setRecipients(Collection recipients) { this.recipients = recipients; return this; @@ -28,16 +44,20 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListRecipientsResponse that = (ListRecipientsResponse) o; - return Objects.equals(recipients, that.recipients); + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(recipients, that.recipients); } @Override public int hashCode() { - return Objects.hash(recipients); + return Objects.hash(nextPageToken, recipients); } @Override public String toString() { - return new ToStringer(ListRecipientsResponse.class).add("recipients", recipients).toString(); + return new ToStringer(ListRecipientsResponse.class) + .add("nextPageToken", nextPageToken) + .add("recipients", recipients) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java index dee14946e..721a53857 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java @@ -3,15 +3,41 @@ package com.databricks.sdk.service.sharing; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; /** List shares by Provider */ @Generated public class ListSharesRequest { + /** + * Maximum number of shares to return. - when set to 0, the page length is set to a server + * configured value (recommended); - when set to a value greater than 0, the page length is the + * minimum of this value and a server configured value; - when set to a value less than 0, an + * invalid parameter error is returned; - If not set, all valid shares are returned (not + * recommended). - Note: The number of returned shares might be less than the specified + * max_results size, even zero. The only definitive indication that no further shares can be + * fetched is when the next_page_token is unset from the response. + */ + @QueryParam("max_results") + private Long maxResults; + /** Name of the provider in which to list shares. */ private String name; + /** Opaque pagination token to go to next page based on previous query. */ + @QueryParam("page_token") + private String pageToken; + + public ListSharesRequest setMaxResults(Long maxResults) { + this.maxResults = maxResults; + return this; + } + + public Long getMaxResults() { + return maxResults; + } + public ListSharesRequest setName(String name) { this.name = name; return this; @@ -21,21 +47,36 @@ public String getName() { return name; } + public ListSharesRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListSharesRequest that = (ListSharesRequest) o; - return Objects.equals(name, that.name); + return Objects.equals(maxResults, that.maxResults) + && Objects.equals(name, that.name) + && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(maxResults, name, pageToken); } @Override public String toString() { - return new ToStringer(ListSharesRequest.class).add("name", name).toString(); + return new ToStringer(ListSharesRequest.class) + .add("maxResults", maxResults) + .add("name", name) + .add("pageToken", pageToken) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java index e2bd46ca0..a7e7f47d0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java @@ -10,10 +10,26 @@ @Generated public class ListSharesResponse { + /** + * Opaque token to retrieve the next page of results. Absent if there are no more pages. + * __page_token__ should be set to this value for the next request (for the next page of results). + */ + @JsonProperty("next_page_token") + private String nextPageToken; + /** An array of data share information objects. */ @JsonProperty("shares") private Collection shares; + public ListSharesResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + public ListSharesResponse setShares(Collection shares) { this.shares = shares; return this; @@ -28,16 +44,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListSharesResponse that = (ListSharesResponse) o; - return Objects.equals(shares, that.shares); + return Objects.equals(nextPageToken, that.nextPageToken) && Objects.equals(shares, that.shares); } @Override public int hashCode() { - return Objects.hash(shares); + return Objects.hash(nextPageToken, shares); } @Override public String toString() { - return new ToStringer(ListSharesResponse.class).add("shares", shares).toString(); + return new ToStringer(ListSharesResponse.class) + .add("nextPageToken", nextPageToken) + .add("shares", shares) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java index 84860b413..0adbfb15c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java @@ -78,7 +78,16 @@ public ProviderInfo get(GetProviderRequest request) { */ public Iterable list(ListProvidersRequest request) { return new Paginator<>( - request, impl::list, ListProvidersResponse::getProviders, response -> null); + request, + impl::list, + ListProvidersResponse::getProviders, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); } public Iterable listShares(String name) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java index b40fac9e5..98a185f31 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java @@ -92,7 +92,16 @@ public RecipientInfo get(GetRecipientRequest request) { */ public Iterable list(ListRecipientsRequest request) { return new Paginator<>( - request, impl::list, ListRecipientsResponse::getRecipients, response -> null); + request, + impl::list, + ListRecipientsResponse::getRecipients, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); } public RecipientInfo rotateToken(String name, long existingTokenExpireInSeconds) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java index 6ba01ce0d..2183e40c2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java @@ -3,15 +3,41 @@ package com.databricks.sdk.service.sharing; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; /** Get recipient share permissions */ @Generated public class SharePermissionsRequest { + /** + * Maximum number of permissions to return. - when set to 0, the page length is set to a server + * configured value (recommended); - when set to a value greater than 0, the page length is the + * minimum of this value and a server configured value; - when set to a value less than 0, an + * invalid parameter error is returned; - If not set, all valid permissions are returned (not + * recommended). - Note: The number of returned permissions might be less than the specified + * max_results size, even zero. The only definitive indication that no further permissions can be + * fetched is when the next_page_token is unset from the response. + */ + @QueryParam("max_results") + private Long maxResults; + /** The name of the Recipient. */ private String name; + /** Opaque pagination token to go to next page based on previous query. */ + @QueryParam("page_token") + private String pageToken; + + public SharePermissionsRequest setMaxResults(Long maxResults) { + this.maxResults = maxResults; + return this; + } + + public Long getMaxResults() { + return maxResults; + } + public SharePermissionsRequest setName(String name) { this.name = name; return this; @@ -21,21 +47,36 @@ public String getName() { return name; } + public SharePermissionsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SharePermissionsRequest that = (SharePermissionsRequest) o; - return Objects.equals(name, that.name); + return Objects.equals(maxResults, that.maxResults) + && Objects.equals(name, that.name) + && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(maxResults, name, pageToken); } @Override public String toString() { - return new ToStringer(SharePermissionsRequest.class).add("name", name).toString(); + return new ToStringer(SharePermissionsRequest.class) + .add("maxResults", maxResults) + .add("name", name) + .add("pageToken", pageToken) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java index 611f84a97..f555901ce 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java @@ -78,9 +78,18 @@ public ShareInfo get(GetShareRequest request) { * or the owner of the share. There is no guarantee of a specific ordering of the elements in the * array. */ - public Iterable list() { + public Iterable list(ListSharesRequest request) { return new Paginator<>( - null, (Void v) -> impl.list(), ListSharesResponse::getShares, response -> null); + request, + impl::list, + ListSharesResponse::getShares, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); } public com.databricks.sdk.service.catalog.PermissionsList sharePermissions(String name) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java index df8d1ffd6..cb5211ab9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java @@ -41,11 +41,11 @@ public ShareInfo get(GetShareRequest request) { } @Override - public ListSharesResponse list() { + public ListSharesResponse list(ListSharesRequest request) { String path = "/api/2.1/unity-catalog/shares"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); - return apiClient.GET(path, ListSharesResponse.class, headers); + return apiClient.GET(path, request, ListSharesResponse.class, headers); } @Override diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java index 35b388211..70ee38414 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java @@ -46,7 +46,7 @@ public interface SharesService { * or the owner of the share. There is no guarantee of a specific ordering of the elements in the * array. */ - ListSharesResponse list(); + ListSharesResponse list(ListSharesRequest listSharesRequest); /** * Get permissions. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java index 8961229be..dc1d9d583 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java @@ -3,6 +3,7 @@ package com.databricks.sdk.service.sharing; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Collection; @@ -14,9 +15,25 @@ public class UpdateSharePermissions { @JsonProperty("changes") private Collection changes; + /** + * Maximum number of permissions to return. - when set to 0, the page length is set to a server + * configured value (recommended); - when set to a value greater than 0, the page length is the + * minimum of this value and a server configured value; - when set to a value less than 0, an + * invalid parameter error is returned; - If not set, all valid permissions are returned (not + * recommended). - Note: The number of returned permissions might be less than the specified + * max_results size, even zero. The only definitive indication that no further permissions can be + * fetched is when the next_page_token is unset from the response. + */ + @QueryParam("max_results") + private Long maxResults; + /** The name of the share. */ private String name; + /** Opaque pagination token to go to next page based on previous query. */ + @QueryParam("page_token") + private String pageToken; + public UpdateSharePermissions setChanges( Collection changes) { this.changes = changes; @@ -27,6 +44,15 @@ public Collection getChang return changes; } + public UpdateSharePermissions setMaxResults(Long maxResults) { + this.maxResults = maxResults; + return this; + } + + public Long getMaxResults() { + return maxResults; + } + public UpdateSharePermissions setName(String name) { this.name = name; return this; @@ -36,24 +62,38 @@ public String getName() { return name; } + public UpdateSharePermissions setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; UpdateSharePermissions that = (UpdateSharePermissions) o; - return Objects.equals(changes, that.changes) && Objects.equals(name, that.name); + return Objects.equals(changes, that.changes) + && Objects.equals(maxResults, that.maxResults) + && Objects.equals(name, that.name) + && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(changes, name); + return Objects.hash(changes, maxResults, name, pageToken); } @Override public String toString() { return new ToStringer(UpdateSharePermissions.class) .add("changes", changes) + .add("maxResults", maxResults) .add("name", name) + .add("pageToken", pageToken) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java index 5ef97ec85..3e4b85f2f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java @@ -13,7 +13,9 @@ * using the `sql_task` type of the Jobs API, e.g. :method:jobs/create. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ @Generated public class AlertsLegacyAPI { @@ -43,7 +45,9 @@ public LegacyAlert create(String name, AlertOptions options, String queryId) { * condition was met. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/create instead. + * :method:alerts/create instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyAlert create(CreateAlert request) { return impl.create(request); @@ -60,7 +64,9 @@ public void delete(String alertId) { * Unlike queries and dashboards, alerts cannot be moved to the trash. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/delete instead. + * :method:alerts/delete instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public void delete(DeleteAlertsLegacyRequest request) { impl.delete(request); @@ -76,7 +82,9 @@ public LegacyAlert get(String alertId) { *

Gets an alert. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/get instead. + * :method:alerts/get instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyAlert get(GetAlertsLegacyRequest request) { return impl.get(request); @@ -88,7 +96,9 @@ public LegacyAlert get(GetAlertsLegacyRequest request) { *

Gets a list of alerts. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/list instead. + * :method:alerts/list instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public Iterable list() { return impl.list(); @@ -105,7 +115,9 @@ public void update(String alertId, String name, AlertOptions options, String que *

Updates an alert. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/update instead. + * :method:alerts/update instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public void update(EditAlert request) { impl.update(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java index 8544e2865..ac0b1c554 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java @@ -11,7 +11,9 @@ * using the `sql_task` type of the Jobs API, e.g. :method:jobs/create. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html * *

This is the high-level interface, that contains generated methods. * @@ -27,7 +29,9 @@ public interface AlertsLegacyService { * condition was met. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/create instead. + * :method:alerts/create instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyAlert create(CreateAlert createAlert); @@ -38,7 +42,9 @@ public interface AlertsLegacyService { * Unlike queries and dashboards, alerts cannot be moved to the trash. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/delete instead. + * :method:alerts/delete instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ void delete(DeleteAlertsLegacyRequest deleteAlertsLegacyRequest); @@ -48,7 +54,9 @@ public interface AlertsLegacyService { *

Gets an alert. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/get instead. + * :method:alerts/get instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyAlert get(GetAlertsLegacyRequest getAlertsLegacyRequest); @@ -58,7 +66,9 @@ public interface AlertsLegacyService { *

Gets a list of alerts. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/list instead. + * :method:alerts/list instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ Collection list(); @@ -68,7 +78,9 @@ public interface AlertsLegacyService { *

Updates an alert. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:alerts/update instead. + * :method:alerts/update instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ void update(EditAlert editAlert); } 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 a1900b66f..3b9d4cbb0 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 @@ -10,4 +10,5 @@ public enum ChannelName { CHANNEL_NAME_CUSTOM, CHANNEL_NAME_PREVIEW, CHANNEL_NAME_PREVIOUS, + CHANNEL_NAME_UNSPECIFIED, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java index 82cf697a9..1be8f53fa 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java @@ -16,8 +16,9 @@ * workspace. We advise you to use any text editor, REST client, or `grep` to search the response * from this API for the name of your SQL warehouse as it appears in Databricks SQL. * - *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + *

**Note**: A new version of the Databricks SQL API is now available. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ @Generated public class DataSourcesAPI { @@ -43,7 +44,9 @@ public DataSourcesAPI(DataSourcesService mock) { * to create new queries against it. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:warehouses/list instead. + * :method:warehouses/list instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public Iterable list() { return impl.list(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java index 7dba844bb..95cadf809 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java @@ -14,8 +14,9 @@ * workspace. We advise you to use any text editor, REST client, or `grep` to search the response * from this API for the name of your SQL warehouse as it appears in Databricks SQL. * - *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + *

**Note**: A new version of the Databricks SQL API is now available. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html * *

This is the high-level interface, that contains generated methods. * @@ -31,7 +32,9 @@ public interface DataSourcesService { * to create new queries against it. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:warehouses/list instead. + * :method:warehouses/list instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ Collection list(); } 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 827ad3b99..10c864e7e 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 @@ -20,8 +20,9 @@ *

- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of * `CAN_RUN`) * - *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + *

**Note**: A new version of the Databricks SQL API is now available. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ @Generated public class DbsqlPermissionsAPI { @@ -47,6 +48,11 @@ public GetResponse get(ObjectTypePlural objectType, String objectId) { * Get object ACL. * *

Gets a JSON representation of the access control list (ACL) for a specified object. + * + *

**Note**: A new version of the Databricks SQL API is now available. Please use + * :method:workspace/getpermissions instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public GetResponse get(GetDbsqlPermissionRequest request) { return impl.get(request); @@ -61,6 +67,11 @@ public SetResponse set(ObjectTypePlural objectType, String objectId) { * *

Sets the access control list (ACL) for a specified object. This operation will complete * rewrite the ACL. + * + *

**Note**: A new version of the Databricks SQL API is now available. Please use + * :method:workspace/setpermissions instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public SetResponse set(SetRequest request) { return impl.set(request); @@ -79,7 +90,9 @@ public Success transferOwnership( * key. * *

**Note**: A new version of the Databricks SQL API is now available. For queries and alerts, - * please use :method:queries/update and :method:alerts/update respectively instead. + * please use :method:queries/update and :method:alerts/update respectively instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public Success transferOwnership(TransferOwnershipRequest request) { return impl.transferOwnership(request); 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 0e7f85ad0..255f5e4b2 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 @@ -17,8 +17,9 @@ *

- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of * `CAN_RUN`) * - *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + *

**Note**: A new version of the Databricks SQL API is now available. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html * *

This is the high-level interface, that contains generated methods. * @@ -30,6 +31,11 @@ public interface DbsqlPermissionsService { * Get object ACL. * *

Gets a JSON representation of the access control list (ACL) for a specified object. + * + *

**Note**: A new version of the Databricks SQL API is now available. Please use + * :method:workspace/getpermissions instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ GetResponse get(GetDbsqlPermissionRequest getDbsqlPermissionRequest); @@ -38,6 +44,11 @@ public interface DbsqlPermissionsService { * *

Sets the access control list (ACL) for a specified object. This operation will complete * rewrite the ACL. + * + *

**Note**: A new version of the Databricks SQL API is now available. Please use + * :method:workspace/setpermissions instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ SetResponse set(SetRequest setRequest); @@ -48,7 +59,9 @@ public interface DbsqlPermissionsService { * key. * *

**Note**: A new version of the Databricks SQL API is now available. For queries and alerts, - * please use :method:queries/update and :method:alerts/update respectively instead. + * please use :method:queries/update and :method:alerts/update respectively instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ Success transferOwnership(TransferOwnershipRequest transferOwnershipRequest); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java index 8015bfb4e..fb3348b85 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java @@ -4,28 +4,6 @@ import com.databricks.sdk.support.Generated; -/** - * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`. - * - *

Statements executed with `INLINE` disposition will return result data inline, in `JSON_ARRAY` - * format, in a series of chunks. If a given statement produces a result set with a size larger than - * 25 MiB, that statement execution is aborted, and no result set will be available. - * - *

**NOTE** Byte limits are computed based upon internal representations of the result set data, - * and might not match the sizes visible in JSON responses. - * - *

Statements executed with `EXTERNAL_LINKS` disposition will return result data as external - * links: URLs that point to cloud storage internal to the workspace. Using `EXTERNAL_LINKS` - * disposition allows statements to generate arbitrarily sized result sets for fetching up to 100 - * GiB. The resulting links have two important properties: - * - *

1. They point to resources _external_ to the Databricks compute; therefore any associated - * authentication information (typically a personal access token, OAuth token, or similar) _must be - * removed_ when fetching from these links. - * - *

2. These are presigned URLs with a specific expiration, indicated in the response. The - * behavior when attempting to use an expired link is cloud specific. - */ @Generated public enum Disposition { EXTERNAL_LINKS, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java index 1e5d98553..de8ea5aec 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java @@ -29,29 +29,7 @@ public class ExecuteStatementRequest { @JsonProperty("catalog") private String catalog; - /** - * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`. - * - *

Statements executed with `INLINE` disposition will return result data inline, in - * `JSON_ARRAY` format, in a series of chunks. If a given statement produces a result set with a - * size larger than 25 MiB, that statement execution is aborted, and no result set will be - * available. - * - *

**NOTE** Byte limits are computed based upon internal representations of the result set - * data, and might not match the sizes visible in JSON responses. - * - *

Statements executed with `EXTERNAL_LINKS` disposition will return result data as external - * links: URLs that point to cloud storage internal to the workspace. Using `EXTERNAL_LINKS` - * disposition allows statements to generate arbitrarily sized result sets for fetching up to 100 - * GiB. The resulting links have two important properties: - * - *

1. They point to resources _external_ to the Databricks compute; therefore any associated - * authentication information (typically a personal access token, OAuth token, or similar) _must - * be removed_ when fetching from these links. - * - *

2. These are presigned URLs with a specific expiration, indicated in the response. The - * behavior when attempting to use an expired link is cloud specific. - */ + /** */ @JsonProperty("disposition") private Disposition disposition; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java index b1c8df224..1b88216f2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java @@ -28,11 +28,7 @@ public class ExternalLink { @JsonProperty("expiration") private String expiration; - /** - * A presigned URL pointing to a chunk of result data, hosted by an external service, with a short - * expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be - * considered sensitive and the client should not expose this URL in a log. - */ + /** */ @JsonProperty("external_link") private String externalLink; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java index 373252760..e5340c40a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java @@ -13,7 +13,9 @@ * Queries can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ @Generated public class QueriesLegacyAPI { @@ -44,7 +46,9 @@ public QueriesLegacyAPI(QueriesLegacyService mock) { *

**Note**: You cannot add a visualization until you create the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/create instead. + * :method:queries/create instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyQuery create(QueryPostContent request) { return impl.create(request); @@ -61,7 +65,9 @@ public void delete(String queryId) { * views, and they cannot be used for alerts. The trash is deleted after 30 days. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/delete instead. + * :method:queries/delete instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public void delete(DeleteQueriesLegacyRequest request) { impl.delete(request); @@ -78,7 +84,9 @@ public LegacyQuery get(String queryId) { * currently authenticated user. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/get instead. + * :method:queries/get instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyQuery get(GetQueriesLegacyRequest request) { return impl.get(request); @@ -93,7 +101,9 @@ public LegacyQuery get(GetQueriesLegacyRequest request) { * service degradation, or a temporary ban. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/list instead. + * :method:queries/list instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public Iterable list(ListQueriesLegacyRequest request) { request.setPage(1L); @@ -122,7 +132,9 @@ public void restore(String queryId) { * searches. You can use restored queries for alerts. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public void restore(RestoreQueriesLegacyRequest request) { impl.restore(request); @@ -140,7 +152,9 @@ public LegacyQuery update(String queryId) { *

**Note**: You cannot undo this operation. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/update instead. + * :method:queries/update instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyQuery update(QueryEditContent request) { return impl.update(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java index 80a7162c1..40c1761ba 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java @@ -9,7 +9,9 @@ * Queries can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html * *

This is the high-level interface, that contains generated methods. * @@ -30,7 +32,9 @@ public interface QueriesLegacyService { *

**Note**: You cannot add a visualization until you create the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/create instead. + * :method:queries/create instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyQuery create(QueryPostContent queryPostContent); @@ -41,7 +45,9 @@ public interface QueriesLegacyService { * views, and they cannot be used for alerts. The trash is deleted after 30 days. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/delete instead. + * :method:queries/delete instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ void delete(DeleteQueriesLegacyRequest deleteQueriesLegacyRequest); @@ -52,7 +58,9 @@ public interface QueriesLegacyService { * currently authenticated user. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/get instead. + * :method:queries/get instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyQuery get(GetQueriesLegacyRequest getQueriesLegacyRequest); @@ -65,7 +73,9 @@ public interface QueriesLegacyService { * service degradation, or a temporary ban. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/list instead. + * :method:queries/list instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ QueryList list(ListQueriesLegacyRequest listQueriesLegacyRequest); @@ -76,7 +86,9 @@ public interface QueriesLegacyService { * searches. You can use restored queries for alerts. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ void restore(RestoreQueriesLegacyRequest restoreQueriesLegacyRequest); @@ -88,7 +100,9 @@ public interface QueriesLegacyService { *

**Note**: You cannot undo this operation. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queries/update instead. + * :method:queries/update instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyQuery update(QueryEditContent queryEditContent); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java index 159537295..492d9bcc7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java @@ -11,7 +11,9 @@ * queries within the Databricks Workspace. Data structures may change over time. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ @Generated public class QueryVisualizationsLegacyAPI { @@ -43,7 +45,9 @@ public LegacyVisualization create(String queryId, String typeValue, Object optio *

Creates visualization in the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queryvisualizations/create instead. + * :method:queryvisualizations/create instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyVisualization create(CreateQueryVisualizationsLegacyRequest request) { return impl.create(request); @@ -59,7 +63,9 @@ public void delete(String id) { *

Removes a visualization from the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queryvisualizations/delete instead. + * :method:queryvisualizations/delete instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public void delete(DeleteQueryVisualizationsLegacyRequest request) { impl.delete(request); @@ -75,7 +81,9 @@ public LegacyVisualization update(String id) { *

Updates visualization in the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queryvisualizations/update instead. + * :method:queryvisualizations/update instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ public LegacyVisualization update(LegacyVisualization request) { return impl.update(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java index 5e2de9374..39ffa9cdd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java @@ -8,7 +8,9 @@ * queries within the Databricks Workspace. Data structures may change over time. * *

**Note**: A new version of the Databricks SQL API is now available. Please see the latest - * version. + * version. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html * *

This is the high-level interface, that contains generated methods. * @@ -22,7 +24,9 @@ public interface QueryVisualizationsLegacyService { *

Creates visualization in the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queryvisualizations/create instead. + * :method:queryvisualizations/create instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyVisualization create( CreateQueryVisualizationsLegacyRequest createQueryVisualizationsLegacyRequest); @@ -33,7 +37,9 @@ LegacyVisualization create( *

Removes a visualization from the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queryvisualizations/delete instead. + * :method:queryvisualizations/delete instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ void delete(DeleteQueryVisualizationsLegacyRequest deleteQueryVisualizationsLegacyRequest); @@ -43,7 +49,9 @@ LegacyVisualization create( *

Updates visualization in the query. * *

**Note**: A new version of the Databricks SQL API is now available. Please use - * :method:queryvisualizations/update instead. + * :method:queryvisualizations/update instead. [Learn more] + * + *

[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html */ LegacyVisualization update(LegacyVisualization legacyVisualization); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java index acd1b707c..be696df15 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java @@ -8,13 +8,6 @@ import java.util.Collection; import java.util.Objects; -/** - * Contains the result data of a single chunk when using `INLINE` disposition. When using - * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide presigned - * URLs to the result data in cloud storage. Exactly one of these alternatives is used. (While the - * `external_links` array prepares the API to return multiple links in a single response. Currently - * only a single link is returned.) - */ @Generated public class ResultData { /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java index 7f108159c..d9fb5469e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java @@ -13,13 +13,7 @@ public class StatementResponse { @JsonProperty("manifest") private ResultManifest manifest; - /** - * Contains the result data of a single chunk when using `INLINE` disposition. When using - * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide presigned - * URLs to the result data in cloud storage. Exactly one of these alternatives is used. (While the - * `external_links` array prepares the API to return multiple links in a single response. - * Currently only a single link is returned.) - */ + /** */ @JsonProperty("result") private ResultData result; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java index 9239b681d..18197e129 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java @@ -8,6 +8,7 @@ @Generated public enum WarehousePermissionLevel { CAN_MANAGE, + CAN_MONITOR, CAN_USE, IS_OWNER, } diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index f7c3495ca..f089f1f2d 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.27.1 + 0.28.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index 586889c98..96cefaa42 100644 --- a/examples/spring-boot-oauth-u2m-demo/pom.xml +++ b/examples/spring-boot-oauth-u2m-demo/pom.xml @@ -37,7 +37,7 @@ com.databricks databricks-sdk-java - 0.27.1 + 0.28.0 com.fasterxml.jackson.datatype diff --git a/pom.xml b/pom.xml index adcad5767..7ac47d456 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.27.1 + 0.28.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for diff --git a/shaded/pom.xml b/shaded/pom.xml index 7c14c8de4..09cf57af9 100644 --- a/shaded/pom.xml +++ b/shaded/pom.xml @@ -4,7 +4,7 @@ 4.0.0 - 0.27.1 + 0.28.0 com.databricks