From de70b8b080c3f207575cb98c3f50f3e0589f0f9c Mon Sep 17 00:00:00 2001 From: Edward Feng <67326663+edwardfeng-db@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:02:51 +0100 Subject: [PATCH] Release v0.21.0 (#250) API Changes: * Changed `list()` method for `workspaceClient.catalogs()` service to require request of `com.databricks.sdk.service.catalog.ListCatalogsRequest` class. * Changed `create()` method for `workspaceClient.onlineTables()` service . New request type is `com.databricks.sdk.service.catalog.CreateOnlineTableRequest` class. * Removed `com.databricks.sdk.service.catalog.AwsIamRole` class. * Changed `notifications` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.CreateStorageCredential` to `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.ExternalLocationInfo`. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.FunctionInfo`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetCatalogRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetExternalLocationRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetFunctionRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetModelVersionRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetRegisteredModelRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetSchemaRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetTableRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListExternalLocationsRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListFunctionsRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListModelVersionsRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListRegisteredModelsRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListSchemasRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListTablesRequest`. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListVolumesRequest`. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.ModelVersionInfo`. * Changed `notifications` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ReadVolumeRequest`. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.RegisteredModelInfo`. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.SchemaInfo`. * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.StorageCredentialInfo` to `com.databricks.sdk.service.catalog.AwsIamRoleResponse` class. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.TableInfo`. * Changed `notifications` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.UpdateStorageCredential` to `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.ValidateStorageCredential` to `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. * Removed `com.databricks.sdk.service.catalog.ViewData` class. * Added `browseOnly` field for `com.databricks.sdk.service.catalog.VolumeInfo`. * Added `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. * Added `com.databricks.sdk.service.catalog.AwsIamRoleResponse` class. * Added `com.databricks.sdk.service.catalog.CreateOnlineTableRequest` class. * Added `com.databricks.sdk.service.catalog.ListCatalogsRequest` class. * Changed `publish()` method for `workspaceClient.lakeview()` service to return `com.databricks.sdk.service.dashboards.PublishedDashboard` class. * Added `create()` method for `workspaceClient.lakeview()` service. * Added `get()` method for `workspaceClient.lakeview()` service. * Added `getPublished()` method for `workspaceClient.lakeview()` service. * Added `trash()` method for `workspaceClient.lakeview()` service. * Added `update()` method for `workspaceClient.lakeview()` service. * Removed `Object` class. * Added `com.databricks.sdk.service.dashboards.CreateDashboardRequest` class. * Added `com.databricks.sdk.service.dashboards.Dashboard` class. * Added `com.databricks.sdk.service.dashboards.GetDashboardRequest` class. * Added `com.databricks.sdk.service.dashboards.GetPublishedDashboardRequest` class. * Added `com.databricks.sdk.service.dashboards.LifecycleState` class. * Added `com.databricks.sdk.service.dashboards.PublishedDashboard` class. * Added `com.databricks.sdk.service.dashboards.TrashDashboardRequest` class. * Added `Object` class. * Added `com.databricks.sdk.service.dashboards.UpdateDashboardRequest` class. * Added `autoCaptureConfig` field for `com.databricks.sdk.service.serving.EndpointPendingConfig`. * Changed `get()` method for `workspaceClient.automaticClusterUpdate()` service . New request type is `com.databricks.sdk.service.settings.GetAutomaticClusterUpdateSettingRequest` class. * Changed `get()` method for `workspaceClient.cspEnablement()` service . New request type is `com.databricks.sdk.service.settings.GetCspEnablementSettingRequest` class. * Changed `get()` method for `accountClient.cspEnablementAccount()` service . New request type is `com.databricks.sdk.service.settings.GetCspEnablementAccountSettingRequest` class. * Changed `delete()` method for `workspaceClient.defaultNamespace()` service . New request type is `com.databricks.sdk.service.settings.DeleteDefaultNamespaceSettingRequest` class. * Changed `get()` method for `workspaceClient.defaultNamespace()` service . New request type is `com.databricks.sdk.service.settings.GetDefaultNamespaceSettingRequest` class. * Changed `get()` method for `workspaceClient.esmEnablement()` service . New request type is `com.databricks.sdk.service.settings.GetEsmEnablementSettingRequest` class. * Changed `get()` method for `accountClient.esmEnablementAccount()` service . New request type is `com.databricks.sdk.service.settings.GetEsmEnablementAccountSettingRequest` class. * Changed `get()` method for `workspaceClient.ipAccessLists()` service . New request type is `com.databricks.sdk.service.settings.GetIpAccessList` class. * Changed `delete()` method for `accountClient.personalCompute()` service . New request type is `com.databricks.sdk.service.settings.DeletePersonalComputeSettingRequest` class. * Changed `get()` method for `accountClient.personalCompute()` service . New request type is `com.databricks.sdk.service.settings.GetPersonalComputeSettingRequest` class. * Changed `delete()` method for `workspaceClient.restrictWorkspaceAdmins()` service . New request type is `com.databricks.sdk.service.settings.DeleteRestrictWorkspaceAdminsSettingRequest` class. * Changed `get()` method for `workspaceClient.restrictWorkspaceAdmins()` service . New request type is `com.databricks.sdk.service.settings.GetRestrictWorkspaceAdminsSettingRequest` class. * Removed `com.databricks.sdk.service.settings.DeleteDefaultNamespaceRequest` class. * Removed `com.databricks.sdk.service.settings.DeletePersonalComputeRequest` class. * Removed `com.databricks.sdk.service.settings.DeleteRestrictWorkspaceAdminRequest` class. * Removed `com.databricks.sdk.service.settings.GetAutomaticClusterUpdateRequest` class. * Removed `com.databricks.sdk.service.settings.GetCspEnablementAccountRequest` class. * Removed `com.databricks.sdk.service.settings.GetCspEnablementRequest` class. * Removed `com.databricks.sdk.service.settings.GetDefaultNamespaceRequest` class. * Removed `com.databricks.sdk.service.settings.GetEsmEnablementAccountRequest` class. * Removed `com.databricks.sdk.service.settings.GetEsmEnablementRequest` class. * Removed `com.databricks.sdk.service.settings.GetIpAccessListRequest` class. * Removed `com.databricks.sdk.service.settings.GetPersonalComputeRequest` class. * Removed `com.databricks.sdk.service.settings.GetRestrictWorkspaceAdminRequest` class. * Added `com.databricks.sdk.service.settings.DeleteDefaultNamespaceSettingRequest` class. * Added `com.databricks.sdk.service.settings.DeletePersonalComputeSettingRequest` class. * Added `com.databricks.sdk.service.settings.DeleteRestrictWorkspaceAdminsSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetAutomaticClusterUpdateSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetCspEnablementAccountSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetCspEnablementSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetDefaultNamespaceSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetEsmEnablementAccountSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetEsmEnablementSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetIpAccessList` class. * Added `com.databricks.sdk.service.settings.GetPersonalComputeSettingRequest` class. * Added `com.databricks.sdk.service.settings.GetRestrictWorkspaceAdminsSettingRequest` class. * Changed `dataObjectType` field for `com.databricks.sdk.service.sharing.SharedDataObject` to `com.databricks.sdk.service.sharing.SharedDataObjectDataObjectType` class. * Added `content` field for `com.databricks.sdk.service.sharing.SharedDataObject`. * Added `com.databricks.sdk.service.sharing.SharedDataObjectDataObjectType` class. * Added `embeddingSourceColumns` field for `com.databricks.sdk.service.vectorsearch.DirectAccessVectorIndexSpec`. * Added `scoreThreshold` field for `com.databricks.sdk.service.vectorsearch.QueryVectorIndexRequest`. OpenAPI SHA: 93763b0d7ae908520c229c786fff28b8fd623261, Date: 2024-03-20 --- .codegen/_openapi_sha | 2 +- .gitattributes | 41 ++-- CHANGELOG.md | 104 ++++++++++ databricks-sdk-java/pom.xml | 2 +- .../com/databricks/sdk/core/UserAgent.java | 2 +- .../service/catalog/AwsIamRoleRequest.java | 42 ++++ ...wsIamRole.java => AwsIamRoleResponse.java} | 12 +- .../sdk/service/catalog/CatalogInfo.java | 5 +- .../sdk/service/catalog/CatalogsAPI.java | 4 +- .../sdk/service/catalog/CatalogsImpl.java | 4 +- .../sdk/service/catalog/CatalogsService.java | 2 +- .../sdk/service/catalog/CreateMonitor.java | 6 +- ...ata.java => CreateOnlineTableRequest.java} | 13 +- .../catalog/CreateStorageCredential.java | 6 +- .../service/catalog/ExternalLocationInfo.java | 19 ++ .../service/catalog/ExternalLocationsAPI.java | 5 +- .../catalog/ExternalLocationsService.java | 5 +- .../sdk/service/catalog/FunctionInfo.java | 21 +- .../sdk/service/catalog/FunctionsAPI.java | 4 +- .../sdk/service/catalog/FunctionsService.java | 4 +- .../service/catalog/GetCatalogRequest.java | 26 ++- .../catalog/GetExternalLocationRequest.java | 26 ++- .../service/catalog/GetFunctionRequest.java | 26 ++- .../catalog/GetModelVersionRequest.java | 24 ++- .../catalog/GetRegisteredModelRequest.java | 27 ++- .../sdk/service/catalog/GetSchemaRequest.java | 27 ++- .../sdk/service/catalog/GetTableRequest.java | 20 +- .../service/catalog/ListCatalogsRequest.java | 46 +++++ .../catalog/ListExternalLocationsRequest.java | 23 ++- .../service/catalog/ListFunctionsRequest.java | 20 +- .../catalog/ListModelVersionsRequest.java | 20 +- .../catalog/ListRegisteredModelsRequest.java | 20 +- .../service/catalog/ListSchemasRequest.java | 20 +- .../service/catalog/ListTablesRequest.java | 19 ++ .../service/catalog/ListVolumesRequest.java | 20 +- .../sdk/service/catalog/ModelVersionInfo.java | 21 +- .../service/catalog/MonitorDestinations.java | 5 +- .../sdk/service/catalog/MonitorInfo.java | 6 +- .../sdk/service/catalog/OnlineTablesAPI.java | 2 +- .../sdk/service/catalog/OnlineTablesImpl.java | 2 +- .../service/catalog/OnlineTablesService.java | 2 +- .../service/catalog/ReadVolumeRequest.java | 26 ++- .../service/catalog/RegisteredModelInfo.java | 19 ++ .../sdk/service/catalog/SchemaInfo.java | 21 +- .../sdk/service/catalog/SchemasAPI.java | 5 +- .../sdk/service/catalog/SchemasService.java | 5 +- .../catalog/StorageCredentialInfo.java | 6 +- .../catalog/StorageCredentialsAPI.java | 5 +- .../catalog/StorageCredentialsService.java | 5 +- .../sdk/service/catalog/TableInfo.java | 19 ++ .../sdk/service/catalog/UpdateMonitor.java | 6 +- .../catalog/UpdateStorageCredential.java | 6 +- .../catalog/ValidateStorageCredential.java | 6 +- .../sdk/service/catalog/VolumeInfo.java | 19 ++ .../dashboards/CreateDashboardRequest.java | 92 +++++++++ .../sdk/service/dashboards/Dashboard.java | 195 ++++++++++++++++++ .../dashboards/GetDashboardRequest.java | 41 ++++ .../GetPublishedDashboardRequest.java | 43 ++++ .../sdk/service/dashboards/LakeviewAPI.java | 73 ++++++- .../sdk/service/dashboards/LakeviewImpl.java | 47 ++++- .../service/dashboards/LakeviewService.java | 37 +++- .../service/dashboards/LifecycleState.java | 11 + .../dashboards/PublishedDashboard.java | 89 ++++++++ .../dashboards/TrashDashboardRequest.java | 41 ++++ ...ponse.java => TrashDashboardResponse.java} | 4 +- .../dashboards/UpdateDashboardRequest.java | 106 ++++++++++ .../sdk/service/iam/PermissionLevel.java | 1 + .../sdk/service/serving/BuildLogsRequest.java | 5 +- .../serving/EndpointCoreConfigInput.java | 4 +- .../serving/EndpointPendingConfig.java | 23 ++- .../service/serving/ExportMetricsRequest.java | 2 +- .../sdk/service/serving/LogsRequest.java | 2 +- .../sdk/service/serving/PutRequest.java | 2 +- .../service/serving/ServingEndpointsAPI.java | 17 +- .../serving/ServingEndpointsService.java | 17 +- .../settings/AutomaticClusterUpdateAPI.java | 2 +- .../settings/AutomaticClusterUpdateImpl.java | 2 +- .../AutomaticClusterUpdateService.java | 2 +- .../service/settings/CspEnablementAPI.java | 2 +- .../settings/CspEnablementAccountAPI.java | 2 +- .../settings/CspEnablementAccountImpl.java | 2 +- .../settings/CspEnablementAccountService.java | 3 +- .../service/settings/CspEnablementImpl.java | 2 +- .../settings/CspEnablementService.java | 2 +- .../service/settings/DefaultNamespaceAPI.java | 5 +- .../settings/DefaultNamespaceImpl.java | 5 +- .../settings/DefaultNamespaceService.java | 4 +- ...DeleteDefaultNamespaceSettingRequest.java} | 8 +- ... DeletePersonalComputeSettingRequest.java} | 8 +- ...estrictWorkspaceAdminsSettingRequest.java} | 11 +- .../service/settings/EsmEnablementAPI.java | 2 +- .../settings/EsmEnablementAccountAPI.java | 2 +- .../settings/EsmEnablementAccountImpl.java | 2 +- .../settings/EsmEnablementAccountService.java | 3 +- .../service/settings/EsmEnablementImpl.java | 2 +- .../settings/EsmEnablementService.java | 2 +- ...AutomaticClusterUpdateSettingRequest.java} | 10 +- ...etCspEnablementAccountSettingRequest.java} | 8 +- ...va => GetCspEnablementSettingRequest.java} | 8 +- ...=> GetDefaultNamespaceSettingRequest.java} | 8 +- ...etEsmEnablementAccountSettingRequest.java} | 8 +- ...va => GetEsmEnablementSettingRequest.java} | 8 +- ...sListRequest.java => GetIpAccessList.java} | 10 +- ... => GetPersonalComputeSettingRequest.java} | 8 +- ...estrictWorkspaceAdminsSettingRequest.java} | 10 +- .../service/settings/IpAccessListsAPI.java | 4 +- .../service/settings/IpAccessListsImpl.java | 2 +- .../settings/IpAccessListsService.java | 2 +- .../settings/NetworkConnectivityAPI.java | 7 +- .../settings/NetworkConnectivityService.java | 7 +- .../service/settings/PersonalComputeAPI.java | 4 +- .../service/settings/PersonalComputeImpl.java | 4 +- .../settings/PersonalComputeService.java | 4 +- .../settings/RestrictWorkspaceAdminsAPI.java | 4 +- .../settings/RestrictWorkspaceAdminsImpl.java | 4 +- .../RestrictWorkspaceAdminsService.java | 4 +- .../sdk/service/sharing/SharedDataObject.java | 26 ++- .../SharedDataObjectDataObjectType.java | 17 ++ .../sdk/service/sql/AlertQuery.java | 2 +- .../databricks/sdk/service/sql/Dashboard.java | 2 +- .../com/databricks/sdk/service/sql/Query.java | 2 +- .../DirectAccessVectorIndexSpec.java | 20 +- .../vectorsearch/QueryVectorIndexRequest.java | 20 +- .../sdk/service/workspace/SecretsAPI.java | 2 +- .../sdk/service/workspace/SecretsService.java | 2 +- examples/docs/pom.xml | 2 +- examples/spring-boot-oauth-u2m-demo/pom.xml | 2 +- pom.xml | 2 +- 128 files changed, 1742 insertions(+), 259 deletions(-) create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleRequest.java rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/{AwsIamRole.java => AwsIamRoleResponse.java} (84%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/{ViewData.java => CreateOnlineTableRequest.java} (75%) create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListCatalogsRequest.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/CreateDashboardRequest.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/Dashboard.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetDashboardRequest.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetPublishedDashboardRequest.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LifecycleState.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishedDashboard.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardRequest.java rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/{PublishResponse.java => TrashDashboardResponse.java} (83%) create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/UpdateDashboardRequest.java rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{DeleteDefaultNamespaceRequest.java => DeleteDefaultNamespaceSettingRequest.java} (81%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{DeletePersonalComputeRequest.java => DeletePersonalComputeSettingRequest.java} (81%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{DeleteRestrictWorkspaceAdminRequest.java => DeleteRestrictWorkspaceAdminsSettingRequest.java} (78%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetAutomaticClusterUpdateRequest.java => GetAutomaticClusterUpdateSettingRequest.java} (79%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetCspEnablementAccountRequest.java => GetCspEnablementAccountSettingRequest.java} (81%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetCspEnablementRequest.java => GetCspEnablementSettingRequest.java} (82%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetDefaultNamespaceRequest.java => GetDefaultNamespaceSettingRequest.java} (81%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetEsmEnablementAccountRequest.java => GetEsmEnablementAccountSettingRequest.java} (81%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetEsmEnablementRequest.java => GetEsmEnablementSettingRequest.java} (82%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetIpAccessListRequest.java => GetIpAccessList.java} (73%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetPersonalComputeRequest.java => GetPersonalComputeSettingRequest.java} (81%) rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/{GetRestrictWorkspaceAdminRequest.java => GetRestrictWorkspaceAdminsSettingRequest.java} (79%) create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectDataObjectType.java diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index fb91589e9..f26f23179 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -d855b30f25a06fe84f25214efa20e7f1fffcdf9e \ No newline at end of file +93763b0d7ae908520c229c786fff28b8fd623261 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index b66a4d724..ca6d97968 100755 --- a/.gitattributes +++ b/.gitattributes @@ -61,7 +61,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ArtifactAll databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ArtifactMatcher.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ArtifactType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AssignResponse.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRole.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentity.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureServicePrincipal.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CancelRefreshRequest.java linguist-generated=true @@ -95,6 +96,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateFunct databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMetastore.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMetastoreAssignment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMonitor.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateOnlineTableRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateRegisteredModelRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateSchema.java linguist-generated=true @@ -196,6 +198,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMo databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListAccountMetastoreAssignmentsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListAccountMetastoreAssignmentsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListAccountStorageCredentialsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListCatalogsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListCatalogsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListConnectionsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListExternalLocationsRequest.java linguist-generated=true @@ -331,7 +334,6 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateSto databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResult.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultOperation.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultResult.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ViewData.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java linguist-generated=true @@ -564,11 +566,19 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/UpdateRespo databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/VolumesStorageInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/WorkloadType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/WorkspaceStorageInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/CreateDashboardRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/Dashboard.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetDashboardRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetPublishedDashboardRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewImpl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LifecycleState.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishedDashboard.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/UpdateDashboardRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/AddBlock.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/AddBlockResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/Close.java linguist-generated=true @@ -1382,16 +1392,16 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNam databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceSetting.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteAccountIpAccessListRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceSettingRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceSettingResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteIpAccessListRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteNetworkConnectivityConfigurationRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteNetworkConnectivityConfigurationResponse.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeSettingRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeSettingResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePrivateEndpointRuleRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteResponse.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminsSettingRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminsSettingResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteTokenManagementRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablement.java linguist-generated=true @@ -1409,19 +1419,19 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ExchangeTo databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ExchangeTokenResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/FetchIpAccessListResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAccountIpAccessListRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateSettingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountSettingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementSettingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceSettingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountSettingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementSettingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessList.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListsResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetNetworkConnectivityConfigurationRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeSettingRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPrivateEndpointRuleRequest.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminsSettingRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetStatusRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetTokenManagementRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetTokenPermissionLevelsResponse.java linguist-generated=true @@ -1570,6 +1580,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ShareInfo.j databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ShareToPrivilegeAssignment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObject.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectDataObjectType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectHistoryDataSharingStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectUpdate.java linguist-generated=true diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c09cf2d1..bfcc04ec0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,109 @@ # Version changelog +## 0.21.0 + + +API Changes: + + * Changed `list()` method for `workspaceClient.catalogs()` service to require request of `com.databricks.sdk.service.catalog.ListCatalogsRequest` class. + * Changed `create()` method for `workspaceClient.onlineTables()` service . New request type is `com.databricks.sdk.service.catalog.CreateOnlineTableRequest` class. + * Removed `com.databricks.sdk.service.catalog.AwsIamRole` class. + * Changed `notifications` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. + * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.CreateStorageCredential` to `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.ExternalLocationInfo`. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.FunctionInfo`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetCatalogRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetExternalLocationRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetFunctionRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetModelVersionRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetRegisteredModelRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetSchemaRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.GetTableRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListExternalLocationsRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListFunctionsRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListModelVersionsRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListRegisteredModelsRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListSchemasRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListTablesRequest`. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ListVolumesRequest`. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.ModelVersionInfo`. + * Changed `notifications` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. + * Added `includeBrowse` field for `com.databricks.sdk.service.catalog.ReadVolumeRequest`. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.RegisteredModelInfo`. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.SchemaInfo`. + * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.StorageCredentialInfo` to `com.databricks.sdk.service.catalog.AwsIamRoleResponse` class. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.TableInfo`. + * Changed `notifications` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. + * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.UpdateStorageCredential` to `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. + * Changed `awsIamRole` field for `com.databricks.sdk.service.catalog.ValidateStorageCredential` to `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. + * Removed `com.databricks.sdk.service.catalog.ViewData` class. + * Added `browseOnly` field for `com.databricks.sdk.service.catalog.VolumeInfo`. + * Added `com.databricks.sdk.service.catalog.AwsIamRoleRequest` class. + * Added `com.databricks.sdk.service.catalog.AwsIamRoleResponse` class. + * Added `com.databricks.sdk.service.catalog.CreateOnlineTableRequest` class. + * Added `com.databricks.sdk.service.catalog.ListCatalogsRequest` class. + * Changed `publish()` method for `workspaceClient.lakeview()` service to return `com.databricks.sdk.service.dashboards.PublishedDashboard` class. + * Added `create()` method for `workspaceClient.lakeview()` service. + * Added `get()` method for `workspaceClient.lakeview()` service. + * Added `getPublished()` method for `workspaceClient.lakeview()` service. + * Added `trash()` method for `workspaceClient.lakeview()` service. + * Added `update()` method for `workspaceClient.lakeview()` service. + * Removed `Object` class. + * Added `com.databricks.sdk.service.dashboards.CreateDashboardRequest` class. + * Added `com.databricks.sdk.service.dashboards.Dashboard` class. + * Added `com.databricks.sdk.service.dashboards.GetDashboardRequest` class. + * Added `com.databricks.sdk.service.dashboards.GetPublishedDashboardRequest` class. + * Added `com.databricks.sdk.service.dashboards.LifecycleState` class. + * Added `com.databricks.sdk.service.dashboards.PublishedDashboard` class. + * Added `com.databricks.sdk.service.dashboards.TrashDashboardRequest` class. + * Added `Object` class. + * Added `com.databricks.sdk.service.dashboards.UpdateDashboardRequest` class. + * Added `autoCaptureConfig` field for `com.databricks.sdk.service.serving.EndpointPendingConfig`. + * Changed `get()` method for `workspaceClient.automaticClusterUpdate()` service . New request type is `com.databricks.sdk.service.settings.GetAutomaticClusterUpdateSettingRequest` class. + * Changed `get()` method for `workspaceClient.cspEnablement()` service . New request type is `com.databricks.sdk.service.settings.GetCspEnablementSettingRequest` class. + * Changed `get()` method for `accountClient.cspEnablementAccount()` service . New request type is `com.databricks.sdk.service.settings.GetCspEnablementAccountSettingRequest` class. + * Changed `delete()` method for `workspaceClient.defaultNamespace()` service . New request type is `com.databricks.sdk.service.settings.DeleteDefaultNamespaceSettingRequest` class. + * Changed `get()` method for `workspaceClient.defaultNamespace()` service . New request type is `com.databricks.sdk.service.settings.GetDefaultNamespaceSettingRequest` class. + * Changed `get()` method for `workspaceClient.esmEnablement()` service . New request type is `com.databricks.sdk.service.settings.GetEsmEnablementSettingRequest` class. + * Changed `get()` method for `accountClient.esmEnablementAccount()` service . New request type is `com.databricks.sdk.service.settings.GetEsmEnablementAccountSettingRequest` class. + * Changed `get()` method for `workspaceClient.ipAccessLists()` service . New request type is `com.databricks.sdk.service.settings.GetIpAccessList` class. + * Changed `delete()` method for `accountClient.personalCompute()` service . New request type is `com.databricks.sdk.service.settings.DeletePersonalComputeSettingRequest` class. + * Changed `get()` method for `accountClient.personalCompute()` service . New request type is `com.databricks.sdk.service.settings.GetPersonalComputeSettingRequest` class. + * Changed `delete()` method for `workspaceClient.restrictWorkspaceAdmins()` service . New request type is `com.databricks.sdk.service.settings.DeleteRestrictWorkspaceAdminsSettingRequest` class. + * Changed `get()` method for `workspaceClient.restrictWorkspaceAdmins()` service . New request type is `com.databricks.sdk.service.settings.GetRestrictWorkspaceAdminsSettingRequest` class. + * Removed `com.databricks.sdk.service.settings.DeleteDefaultNamespaceRequest` class. + * Removed `com.databricks.sdk.service.settings.DeletePersonalComputeRequest` class. + * Removed `com.databricks.sdk.service.settings.DeleteRestrictWorkspaceAdminRequest` class. + * Removed `com.databricks.sdk.service.settings.GetAutomaticClusterUpdateRequest` class. + * Removed `com.databricks.sdk.service.settings.GetCspEnablementAccountRequest` class. + * Removed `com.databricks.sdk.service.settings.GetCspEnablementRequest` class. + * Removed `com.databricks.sdk.service.settings.GetDefaultNamespaceRequest` class. + * Removed `com.databricks.sdk.service.settings.GetEsmEnablementAccountRequest` class. + * Removed `com.databricks.sdk.service.settings.GetEsmEnablementRequest` class. + * Removed `com.databricks.sdk.service.settings.GetIpAccessListRequest` class. + * Removed `com.databricks.sdk.service.settings.GetPersonalComputeRequest` class. + * Removed `com.databricks.sdk.service.settings.GetRestrictWorkspaceAdminRequest` class. + * Added `com.databricks.sdk.service.settings.DeleteDefaultNamespaceSettingRequest` class. + * Added `com.databricks.sdk.service.settings.DeletePersonalComputeSettingRequest` class. + * Added `com.databricks.sdk.service.settings.DeleteRestrictWorkspaceAdminsSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetAutomaticClusterUpdateSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetCspEnablementAccountSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetCspEnablementSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetDefaultNamespaceSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetEsmEnablementAccountSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetEsmEnablementSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetIpAccessList` class. + * Added `com.databricks.sdk.service.settings.GetPersonalComputeSettingRequest` class. + * Added `com.databricks.sdk.service.settings.GetRestrictWorkspaceAdminsSettingRequest` class. + * Changed `dataObjectType` field for `com.databricks.sdk.service.sharing.SharedDataObject` to `com.databricks.sdk.service.sharing.SharedDataObjectDataObjectType` class. + * Added `content` field for `com.databricks.sdk.service.sharing.SharedDataObject`. + * Added `com.databricks.sdk.service.sharing.SharedDataObjectDataObjectType` class. + * Added `embeddingSourceColumns` field for `com.databricks.sdk.service.vectorsearch.DirectAccessVectorIndexSpec`. + * Added `scoreThreshold` field for `com.databricks.sdk.service.vectorsearch.QueryVectorIndexRequest`. + +OpenAPI SHA: 93763b0d7ae908520c229c786fff28b8fd623261, Date: 2024-03-20 + + ## 0.20.0 ### Features and Improvements diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index 38689e7f8..5b69e5f93 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.20.0 + 0.21.0 databricks-sdk-java diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java index 3d78171e0..40c9f9da0 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 @@ -13,7 +13,7 @@ public class UserAgent { // 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.20.0"; + private static final String version = "0.21.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/catalog/AwsIamRoleRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleRequest.java new file mode 100755 index 000000000..2eac19555 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleRequest.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class AwsIamRoleRequest { + /** The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access. */ + @JsonProperty("role_arn") + private String roleArn; + + public AwsIamRoleRequest setRoleArn(String roleArn) { + this.roleArn = roleArn; + return this; + } + + public String getRoleArn() { + return roleArn; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AwsIamRoleRequest that = (AwsIamRoleRequest) o; + return Objects.equals(roleArn, that.roleArn); + } + + @Override + public int hashCode() { + return Objects.hash(roleArn); + } + + @Override + public String toString() { + return new ToStringer(AwsIamRoleRequest.class).add("roleArn", roleArn).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRole.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleResponse.java similarity index 84% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRole.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleResponse.java index 8b07a85cb..50420d04a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRole.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AwsIamRoleResponse.java @@ -8,7 +8,7 @@ import java.util.Objects; @Generated -public class AwsIamRole { +public class AwsIamRoleResponse { /** The external ID used in role assumption to prevent confused deputy problem.. */ @JsonProperty("external_id") private String externalId; @@ -24,7 +24,7 @@ public class AwsIamRole { @JsonProperty("unity_catalog_iam_arn") private String unityCatalogIamArn; - public AwsIamRole setExternalId(String externalId) { + public AwsIamRoleResponse setExternalId(String externalId) { this.externalId = externalId; return this; } @@ -33,7 +33,7 @@ public String getExternalId() { return externalId; } - public AwsIamRole setRoleArn(String roleArn) { + public AwsIamRoleResponse setRoleArn(String roleArn) { this.roleArn = roleArn; return this; } @@ -42,7 +42,7 @@ public String getRoleArn() { return roleArn; } - public AwsIamRole setUnityCatalogIamArn(String unityCatalogIamArn) { + public AwsIamRoleResponse setUnityCatalogIamArn(String unityCatalogIamArn) { this.unityCatalogIamArn = unityCatalogIamArn; return this; } @@ -55,7 +55,7 @@ public String getUnityCatalogIamArn() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - AwsIamRole that = (AwsIamRole) o; + AwsIamRoleResponse that = (AwsIamRoleResponse) o; return Objects.equals(externalId, that.externalId) && Objects.equals(roleArn, that.roleArn) && Objects.equals(unityCatalogIamArn, that.unityCatalogIamArn); @@ -68,7 +68,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(AwsIamRole.class) + return new ToStringer(AwsIamRoleResponse.class) .add("externalId", externalId) .add("roleArn", roleArn) .add("unityCatalogIamArn", unityCatalogIamArn) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogInfo.java index 313f31c88..c0cec6fcf 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogInfo.java @@ -10,7 +10,10 @@ @Generated public class CatalogInfo { - /** Indicate whether or not the catalog info contains only browsable metadata. */ + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ @JsonProperty("browse_only") private Boolean browseOnly; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java index d9bae3a42..a86662d0a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java @@ -81,8 +81,8 @@ public CatalogInfo get(GetCatalogRequest request) { * caller has the **USE_CATALOG** privilege) will be retrieved. There is no guarantee of a * specific ordering of the elements in the array. */ - public Iterable list() { - return impl.list().getCatalogs(); + public Iterable list(ListCatalogsRequest request) { + return impl.list(request).getCatalogs(); } public CatalogInfo update(String name) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsImpl.java index d0be97ff1..404904ace 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsImpl.java @@ -41,11 +41,11 @@ public CatalogInfo get(GetCatalogRequest request) { } @Override - public ListCatalogsResponse list() { + public ListCatalogsResponse list(ListCatalogsRequest request) { String path = "/api/2.1/unity-catalog/catalogs"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); - return apiClient.GET(path, ListCatalogsResponse.class, headers); + return apiClient.GET(path, request, ListCatalogsResponse.class, headers); } @Override diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsService.java index 9047ff738..86f3a6b7d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsService.java @@ -50,7 +50,7 @@ public interface CatalogsService { * caller has the **USE_CATALOG** privilege) will be retrieved. There is no guarantee of a * specific ordering of the elements in the array. */ - ListCatalogsResponse list(); + ListCatalogsResponse list(ListCatalogsRequest listCatalogsRequest); /** * Update a catalog. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMonitor.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMonitor.java index 0beb7de43..588a5cca5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMonitor.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateMonitor.java @@ -42,7 +42,7 @@ public class CreateMonitor { /** The notification settings for the monitor. */ @JsonProperty("notifications") - private Collection notifications; + private MonitorNotificationsConfig notifications; /** Schema where output metric tables are created. */ @JsonProperty("output_schema_name") @@ -135,12 +135,12 @@ public MonitorInferenceLogProfileType getInferenceLog() { return inferenceLog; } - public CreateMonitor setNotifications(Collection notifications) { + public CreateMonitor setNotifications(MonitorNotificationsConfig notifications) { this.notifications = notifications; return this; } - public Collection getNotifications() { + public MonitorNotificationsConfig getNotifications() { return notifications; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ViewData.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateOnlineTableRequest.java similarity index 75% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ViewData.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateOnlineTableRequest.java index 9c78e4656..4b77e9b13 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ViewData.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateOnlineTableRequest.java @@ -9,7 +9,7 @@ /** Online Table information. */ @Generated -public class ViewData { +public class CreateOnlineTableRequest { /** Full three-part (catalog, schema, table) name of the table. */ @JsonProperty("name") private String name; @@ -18,7 +18,7 @@ public class ViewData { @JsonProperty("spec") private OnlineTableSpec spec; - public ViewData setName(String name) { + public CreateOnlineTableRequest setName(String name) { this.name = name; return this; } @@ -27,7 +27,7 @@ public String getName() { return name; } - public ViewData setSpec(OnlineTableSpec spec) { + public CreateOnlineTableRequest setSpec(OnlineTableSpec spec) { this.spec = spec; return this; } @@ -40,7 +40,7 @@ public OnlineTableSpec getSpec() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - ViewData that = (ViewData) o; + CreateOnlineTableRequest that = (CreateOnlineTableRequest) o; return Objects.equals(name, that.name) && Objects.equals(spec, that.spec); } @@ -51,6 +51,9 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(ViewData.class).add("name", name).add("spec", spec).toString(); + return new ToStringer(CreateOnlineTableRequest.class) + .add("name", name) + .add("spec", spec) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateStorageCredential.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateStorageCredential.java index 0054ad672..32d294648 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateStorageCredential.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateStorageCredential.java @@ -11,7 +11,7 @@ public class CreateStorageCredential { /** The AWS IAM role configuration. */ @JsonProperty("aws_iam_role") - private AwsIamRole awsIamRole; + private AwsIamRoleRequest awsIamRole; /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") @@ -45,12 +45,12 @@ public class CreateStorageCredential { @JsonProperty("skip_validation") private Boolean skipValidation; - public CreateStorageCredential setAwsIamRole(AwsIamRole awsIamRole) { + public CreateStorageCredential setAwsIamRole(AwsIamRoleRequest awsIamRole) { this.awsIamRole = awsIamRole; return this; } - public AwsIamRole getAwsIamRole() { + public AwsIamRoleRequest getAwsIamRole() { return awsIamRole; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java index 801739d2c..ef3d12232 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java @@ -13,6 +13,13 @@ public class ExternalLocationInfo { @JsonProperty("access_point") private String accessPoint; + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** User-provided free-form text description. */ @JsonProperty("comment") private String comment; @@ -74,6 +81,15 @@ public String getAccessPoint() { return accessPoint; } + public ExternalLocationInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public ExternalLocationInfo setComment(String comment) { this.comment = comment; return this; @@ -197,6 +213,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ExternalLocationInfo that = (ExternalLocationInfo) o; return Objects.equals(accessPoint, that.accessPoint) + && Objects.equals(browseOnly, that.browseOnly) && Objects.equals(comment, that.comment) && Objects.equals(createdAt, that.createdAt) && Objects.equals(createdBy, that.createdBy) @@ -216,6 +233,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( accessPoint, + browseOnly, comment, createdAt, createdBy, @@ -235,6 +253,7 @@ public int hashCode() { public String toString() { return new ToStringer(ExternalLocationInfo.class) .add("accessPoint", accessPoint) + .add("browseOnly", browseOnly) .add("comment", comment) .add("createdAt", createdAt) .add("createdBy", createdBy) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java index d9759ac31..361875fbe 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java @@ -84,9 +84,8 @@ public ExternalLocationInfo get(GetExternalLocationRequest request) { * *

Gets an array of external locations (__ExternalLocationInfo__ objects) from the metastore. * The caller must be a metastore admin, the owner of the external location, or a user that has - * some privilege on the external location. For unpaginated request, there is no guarantee of a - * specific ordering of the elements in the array. For paginated request, elements are ordered by - * their name. + * some privilege on the external location. There is no guarantee of a specific ordering of the + * elements in the array. */ public Iterable list(ListExternalLocationsRequest request) { return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsService.java index 0cefbac94..ec6a4d48d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsService.java @@ -51,9 +51,8 @@ public interface ExternalLocationsService { * *

Gets an array of external locations (__ExternalLocationInfo__ objects) from the metastore. * The caller must be a metastore admin, the owner of the external location, or a user that has - * some privilege on the external location. For unpaginated request, there is no guarantee of a - * specific ordering of the elements in the array. For paginated request, elements are ordered by - * their name. + * some privilege on the external location. There is no guarantee of a specific ordering of the + * elements in the array. */ ListExternalLocationsResponse list(ListExternalLocationsRequest listExternalLocationsRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionInfo.java index fe25a1bcf..02b5d835d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionInfo.java @@ -9,6 +9,13 @@ @Generated public class FunctionInfo { + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** Name of parent catalog. */ @JsonProperty("catalog_name") private String catalogName; @@ -130,6 +137,15 @@ public class FunctionInfo { @JsonProperty("updated_by") private String updatedBy; + public FunctionInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public FunctionInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -396,7 +412,8 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FunctionInfo that = (FunctionInfo) o; - return Objects.equals(catalogName, that.catalogName) + return Objects.equals(browseOnly, that.browseOnly) + && Objects.equals(catalogName, that.catalogName) && Objects.equals(comment, that.comment) && Objects.equals(createdAt, that.createdAt) && Objects.equals(createdBy, that.createdBy) @@ -430,6 +447,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + browseOnly, catalogName, comment, createdAt, @@ -464,6 +482,7 @@ public int hashCode() { @Override public String toString() { return new ToStringer(FunctionInfo.class) + .add("browseOnly", browseOnly) .add("catalogName", catalogName) .add("comment", comment) .add("createdAt", createdAt) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java index e5e01a85e..d4e3e587b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java @@ -94,8 +94,8 @@ public Iterable list(String catalogName, String schemaName) { * admin, all functions are returned in the output list. Otherwise, the user must have the * **USE_CATALOG** privilege on the catalog and the **USE_SCHEMA** privilege on the schema, and * the output list contains only functions for which either the user has the **EXECUTE** privilege - * or the user is the owner. For unpaginated request, there is no guarantee of a specific ordering - * of the elements in the array. For paginated request, elements are ordered by their name. + * or the user is the owner. There is no guarantee of a specific ordering of the elements in the + * array. */ public Iterable list(ListFunctionsRequest request) { return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsService.java index f891bfd19..c47075d69 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsService.java @@ -58,8 +58,8 @@ public interface FunctionsService { * admin, all functions are returned in the output list. Otherwise, the user must have the * **USE_CATALOG** privilege on the catalog and the **USE_SCHEMA** privilege on the schema, and * the output list contains only functions for which either the user has the **EXECUTE** privilege - * or the user is the owner. For unpaginated request, there is no guarantee of a specific ordering - * of the elements in the array. For paginated request, elements are ordered by their name. + * or the user is the owner. There is no guarantee of a specific ordering of the elements in the + * array. */ ListFunctionsResponse list(ListFunctionsRequest listFunctionsRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetCatalogRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetCatalogRequest.java index 6c8392670..f70ee0013 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetCatalogRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetCatalogRequest.java @@ -3,15 +3,32 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; /** Get a catalog */ @Generated public class GetCatalogRequest { + /** + * Whether to include catalogs in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** The name of the catalog. */ private String name; + public GetCatalogRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public GetCatalogRequest setName(String name) { this.name = name; return this; @@ -26,16 +43,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetCatalogRequest that = (GetCatalogRequest) o; - return Objects.equals(name, that.name); + return Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(name, that.name); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(includeBrowse, name); } @Override public String toString() { - return new ToStringer(GetCatalogRequest.class).add("name", name).toString(); + return new ToStringer(GetCatalogRequest.class) + .add("includeBrowse", includeBrowse) + .add("name", name) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetExternalLocationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetExternalLocationRequest.java index e206ae3f6..45bd02098 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetExternalLocationRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetExternalLocationRequest.java @@ -3,15 +3,32 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; /** Get an external location */ @Generated public class GetExternalLocationRequest { + /** + * Whether to include external locations in the response for which the principal can only access + * selective metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** Name of the external location. */ private String name; + public GetExternalLocationRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public GetExternalLocationRequest setName(String name) { this.name = name; return this; @@ -26,16 +43,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetExternalLocationRequest that = (GetExternalLocationRequest) o; - return Objects.equals(name, that.name); + return Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(name, that.name); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(includeBrowse, name); } @Override public String toString() { - return new ToStringer(GetExternalLocationRequest.class).add("name", name).toString(); + return new ToStringer(GetExternalLocationRequest.class) + .add("includeBrowse", includeBrowse) + .add("name", name) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetFunctionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetFunctionRequest.java index d4e0cdc60..24e22c9cc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetFunctionRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetFunctionRequest.java @@ -3,18 +3,35 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; /** Get a function */ @Generated public class GetFunctionRequest { + /** + * Whether to include functions in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * The fully-qualified name of the function (of the form * __catalog_name__.__schema_name__.__function__name__). */ private String name; + public GetFunctionRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public GetFunctionRequest setName(String name) { this.name = name; return this; @@ -29,16 +46,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetFunctionRequest that = (GetFunctionRequest) o; - return Objects.equals(name, that.name); + return Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(name, that.name); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(includeBrowse, name); } @Override public String toString() { - return new ToStringer(GetFunctionRequest.class).add("name", name).toString(); + return new ToStringer(GetFunctionRequest.class) + .add("includeBrowse", includeBrowse) + .add("name", name) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetModelVersionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetModelVersionRequest.java index 776b47df5..2d8466952 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetModelVersionRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetModelVersionRequest.java @@ -3,6 +3,7 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; @@ -12,6 +13,13 @@ public class GetModelVersionRequest { /** The three-level (fully qualified) name of the model version */ private String fullName; + /** + * Whether to include model versions in the response for which the principal can only access + * selective metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** The integer version number of the model version */ private Long version; @@ -24,6 +32,15 @@ public String getFullName() { return fullName; } + public GetModelVersionRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public GetModelVersionRequest setVersion(Long version) { this.version = version; return this; @@ -38,18 +55,21 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetModelVersionRequest that = (GetModelVersionRequest) o; - return Objects.equals(fullName, that.fullName) && Objects.equals(version, that.version); + return Objects.equals(fullName, that.fullName) + && Objects.equals(includeBrowse, that.includeBrowse) + && Objects.equals(version, that.version); } @Override public int hashCode() { - return Objects.hash(fullName, version); + return Objects.hash(fullName, includeBrowse, version); } @Override public String toString() { return new ToStringer(GetModelVersionRequest.class) .add("fullName", fullName) + .add("includeBrowse", includeBrowse) .add("version", version) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRegisteredModelRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRegisteredModelRequest.java index 0913ad906..764dda115 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRegisteredModelRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRegisteredModelRequest.java @@ -3,6 +3,7 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; @@ -12,6 +13,13 @@ public class GetRegisteredModelRequest { /** The three-level (fully qualified) name of the registered model */ private String fullName; + /** + * Whether to include registered models in the response for which the principal can only access + * selective metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + public GetRegisteredModelRequest setFullName(String fullName) { this.fullName = fullName; return this; @@ -21,21 +29,34 @@ public String getFullName() { return fullName; } + public GetRegisteredModelRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetRegisteredModelRequest that = (GetRegisteredModelRequest) o; - return Objects.equals(fullName, that.fullName); + return Objects.equals(fullName, that.fullName) + && Objects.equals(includeBrowse, that.includeBrowse); } @Override public int hashCode() { - return Objects.hash(fullName); + return Objects.hash(fullName, includeBrowse); } @Override public String toString() { - return new ToStringer(GetRegisteredModelRequest.class).add("fullName", fullName).toString(); + return new ToStringer(GetRegisteredModelRequest.class) + .add("fullName", fullName) + .add("includeBrowse", includeBrowse) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetSchemaRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetSchemaRequest.java index 23e5b7b80..4d79abe5f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetSchemaRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetSchemaRequest.java @@ -3,6 +3,7 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; @@ -12,6 +13,13 @@ public class GetSchemaRequest { /** Full name of the schema. */ private String fullName; + /** + * Whether to include schemas in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + public GetSchemaRequest setFullName(String fullName) { this.fullName = fullName; return this; @@ -21,21 +29,34 @@ public String getFullName() { return fullName; } + public GetSchemaRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetSchemaRequest that = (GetSchemaRequest) o; - return Objects.equals(fullName, that.fullName); + return Objects.equals(fullName, that.fullName) + && Objects.equals(includeBrowse, that.includeBrowse); } @Override public int hashCode() { - return Objects.hash(fullName); + return Objects.hash(fullName, includeBrowse); } @Override public String toString() { - return new ToStringer(GetSchemaRequest.class).add("fullName", fullName).toString(); + return new ToStringer(GetSchemaRequest.class) + .add("fullName", fullName) + .add("includeBrowse", includeBrowse) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetTableRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetTableRequest.java index cea52f229..4658fa3d3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetTableRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetTableRequest.java @@ -13,6 +13,13 @@ public class GetTableRequest { /** Full name of the table. */ private String fullName; + /** + * Whether to include tables in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** Whether delta metadata should be included in the response. */ @QueryParam("include_delta_metadata") private Boolean includeDeltaMetadata; @@ -26,6 +33,15 @@ public String getFullName() { return fullName; } + public GetTableRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public GetTableRequest setIncludeDeltaMetadata(Boolean includeDeltaMetadata) { this.includeDeltaMetadata = includeDeltaMetadata; return this; @@ -41,18 +57,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; GetTableRequest that = (GetTableRequest) o; return Objects.equals(fullName, that.fullName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(includeDeltaMetadata, that.includeDeltaMetadata); } @Override public int hashCode() { - return Objects.hash(fullName, includeDeltaMetadata); + return Objects.hash(fullName, includeBrowse, includeDeltaMetadata); } @Override public String toString() { return new ToStringer(GetTableRequest.class) .add("fullName", fullName) + .add("includeBrowse", includeBrowse) .add("includeDeltaMetadata", includeDeltaMetadata) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListCatalogsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListCatalogsRequest.java new file mode 100755 index 000000000..f61ff29f3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListCatalogsRequest.java @@ -0,0 +1,46 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List catalogs */ +@Generated +public class ListCatalogsRequest { + /** + * Whether to include catalogs in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + + public ListCatalogsRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListCatalogsRequest that = (ListCatalogsRequest) o; + return Objects.equals(includeBrowse, that.includeBrowse); + } + + @Override + public int hashCode() { + return Objects.hash(includeBrowse); + } + + @Override + public String toString() { + return new ToStringer(ListCatalogsRequest.class).add("includeBrowse", includeBrowse).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListExternalLocationsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListExternalLocationsRequest.java index 74ef5cbf3..a8a0e3729 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListExternalLocationsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListExternalLocationsRequest.java @@ -10,6 +10,13 @@ /** List external locations */ @Generated public class ListExternalLocationsRequest { + /** + * Whether to include external locations in the response for which the principal can only access + * selective metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * Maximum number of external locations to return. If not set, all the external locations are * returned (not recommended). - when set to a value greater than 0, the page length is the @@ -24,6 +31,15 @@ public class ListExternalLocationsRequest { @QueryParam("page_token") private String pageToken; + public ListExternalLocationsRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListExternalLocationsRequest setMaxResults(Long maxResults) { this.maxResults = maxResults; return this; @@ -47,17 +63,20 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListExternalLocationsRequest that = (ListExternalLocationsRequest) o; - return Objects.equals(maxResults, that.maxResults) && Objects.equals(pageToken, that.pageToken); + return Objects.equals(includeBrowse, that.includeBrowse) + && Objects.equals(maxResults, that.maxResults) + && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(maxResults, pageToken); + return Objects.hash(includeBrowse, maxResults, pageToken); } @Override public String toString() { return new ToStringer(ListExternalLocationsRequest.class) + .add("includeBrowse", includeBrowse) .add("maxResults", maxResults) .add("pageToken", pageToken) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListFunctionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListFunctionsRequest.java index 7b430e1a0..c33c3be8d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListFunctionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListFunctionsRequest.java @@ -14,6 +14,13 @@ public class ListFunctionsRequest { @QueryParam("catalog_name") private String catalogName; + /** + * Whether to include functions in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * Maximum number of functions to return. If not set, all the functions are returned (not * recommended). - when set to a value greater than 0, the page length is the minimum of this @@ -41,6 +48,15 @@ public String getCatalogName() { return catalogName; } + public ListFunctionsRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListFunctionsRequest setMaxResults(Long maxResults) { this.maxResults = maxResults; return this; @@ -74,6 +90,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ListFunctionsRequest that = (ListFunctionsRequest) o; return Objects.equals(catalogName, that.catalogName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(maxResults, that.maxResults) && Objects.equals(pageToken, that.pageToken) && Objects.equals(schemaName, that.schemaName); @@ -81,13 +98,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(catalogName, maxResults, pageToken, schemaName); + return Objects.hash(catalogName, includeBrowse, maxResults, pageToken, schemaName); } @Override public String toString() { return new ToStringer(ListFunctionsRequest.class) .add("catalogName", catalogName) + .add("includeBrowse", includeBrowse) .add("maxResults", maxResults) .add("pageToken", pageToken) .add("schemaName", schemaName) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListModelVersionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListModelVersionsRequest.java index 74945e49d..2df9e27c7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListModelVersionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListModelVersionsRequest.java @@ -13,6 +13,13 @@ public class ListModelVersionsRequest { /** The full three-level name of the registered model under which to list model versions */ private String fullName; + /** + * Whether to include model versions in the response for which the principal can only access + * selective metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * Maximum number of model versions to return. If not set, the page length is set to a server * configured value (100, as of 1/3/2024). - when set to a value greater than 0, the page length @@ -36,6 +43,15 @@ public String getFullName() { return fullName; } + public ListModelVersionsRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListModelVersionsRequest setMaxResults(Long maxResults) { this.maxResults = maxResults; return this; @@ -60,19 +76,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ListModelVersionsRequest that = (ListModelVersionsRequest) o; return Objects.equals(fullName, that.fullName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(maxResults, that.maxResults) && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(fullName, maxResults, pageToken); + return Objects.hash(fullName, includeBrowse, maxResults, pageToken); } @Override public String toString() { return new ToStringer(ListModelVersionsRequest.class) .add("fullName", fullName) + .add("includeBrowse", includeBrowse) .add("maxResults", maxResults) .add("pageToken", pageToken) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRegisteredModelsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRegisteredModelsRequest.java index 9f99fb3c4..c61243b5a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRegisteredModelsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRegisteredModelsRequest.java @@ -17,6 +17,13 @@ public class ListRegisteredModelsRequest { @QueryParam("catalog_name") private String catalogName; + /** + * Whether to include registered models in the response for which the principal can only access + * selective metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * Max number of registered models to return. If catalog and schema are unspecified, max_results * must be specified. If max_results is unspecified, we return all results, starting from the page @@ -45,6 +52,15 @@ public String getCatalogName() { return catalogName; } + public ListRegisteredModelsRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListRegisteredModelsRequest setMaxResults(Long maxResults) { this.maxResults = maxResults; return this; @@ -78,6 +94,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ListRegisteredModelsRequest that = (ListRegisteredModelsRequest) o; return Objects.equals(catalogName, that.catalogName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(maxResults, that.maxResults) && Objects.equals(pageToken, that.pageToken) && Objects.equals(schemaName, that.schemaName); @@ -85,13 +102,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(catalogName, maxResults, pageToken, schemaName); + return Objects.hash(catalogName, includeBrowse, maxResults, pageToken, schemaName); } @Override public String toString() { return new ToStringer(ListRegisteredModelsRequest.class) .add("catalogName", catalogName) + .add("includeBrowse", includeBrowse) .add("maxResults", maxResults) .add("pageToken", pageToken) .add("schemaName", schemaName) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListSchemasRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListSchemasRequest.java index acae1f8b1..43cdd3816 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListSchemasRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListSchemasRequest.java @@ -14,6 +14,13 @@ public class ListSchemasRequest { @QueryParam("catalog_name") private String catalogName; + /** + * Whether to include schemas in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * Maximum number of schemas to return. If not set, all the schemas are returned (not * recommended). - when set to a value greater than 0, the page length is the minimum of this @@ -37,6 +44,15 @@ public String getCatalogName() { return catalogName; } + public ListSchemasRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListSchemasRequest setMaxResults(Long maxResults) { this.maxResults = maxResults; return this; @@ -61,19 +77,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ListSchemasRequest that = (ListSchemasRequest) o; return Objects.equals(catalogName, that.catalogName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(maxResults, that.maxResults) && Objects.equals(pageToken, that.pageToken); } @Override public int hashCode() { - return Objects.hash(catalogName, maxResults, pageToken); + return Objects.hash(catalogName, includeBrowse, maxResults, pageToken); } @Override public String toString() { return new ToStringer(ListSchemasRequest.class) .add("catalogName", catalogName) + .add("includeBrowse", includeBrowse) .add("maxResults", maxResults) .add("pageToken", pageToken) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListTablesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListTablesRequest.java index 7ec16a4bf..f0667e5c5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListTablesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListTablesRequest.java @@ -14,6 +14,13 @@ public class ListTablesRequest { @QueryParam("catalog_name") private String catalogName; + /** + * Whether to include tables in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** Whether delta metadata should be included in the response. */ @QueryParam("include_delta_metadata") private Boolean includeDeltaMetadata; @@ -52,6 +59,15 @@ public String getCatalogName() { return catalogName; } + public ListTablesRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListTablesRequest setIncludeDeltaMetadata(Boolean includeDeltaMetadata) { this.includeDeltaMetadata = includeDeltaMetadata; return this; @@ -112,6 +128,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ListTablesRequest that = (ListTablesRequest) o; return Objects.equals(catalogName, that.catalogName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(includeDeltaMetadata, that.includeDeltaMetadata) && Objects.equals(maxResults, that.maxResults) && Objects.equals(omitColumns, that.omitColumns) @@ -124,6 +141,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( catalogName, + includeBrowse, includeDeltaMetadata, maxResults, omitColumns, @@ -136,6 +154,7 @@ public int hashCode() { public String toString() { return new ToStringer(ListTablesRequest.class) .add("catalogName", catalogName) + .add("includeBrowse", includeBrowse) .add("includeDeltaMetadata", includeDeltaMetadata) .add("maxResults", maxResults) .add("omitColumns", omitColumns) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListVolumesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListVolumesRequest.java index 15c6596b3..0f9095bc1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListVolumesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListVolumesRequest.java @@ -14,6 +14,13 @@ public class ListVolumesRequest { @QueryParam("catalog_name") private String catalogName; + /** + * Whether to include volumes in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** * Maximum number of volumes to return (page length). * @@ -50,6 +57,15 @@ public String getCatalogName() { return catalogName; } + public ListVolumesRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ListVolumesRequest setMaxResults(Long maxResults) { this.maxResults = maxResults; return this; @@ -83,6 +99,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ListVolumesRequest that = (ListVolumesRequest) o; return Objects.equals(catalogName, that.catalogName) + && Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(maxResults, that.maxResults) && Objects.equals(pageToken, that.pageToken) && Objects.equals(schemaName, that.schemaName); @@ -90,13 +107,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(catalogName, maxResults, pageToken, schemaName); + return Objects.hash(catalogName, includeBrowse, maxResults, pageToken, schemaName); } @Override public String toString() { return new ToStringer(ListVolumesRequest.class) .add("catalogName", catalogName) + .add("includeBrowse", includeBrowse) .add("maxResults", maxResults) .add("pageToken", pageToken) .add("schemaName", schemaName) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionInfo.java index a277049ab..87813f1c5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionInfo.java @@ -9,6 +9,13 @@ @Generated public class ModelVersionInfo { + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** The name of the catalog containing the model version */ @JsonProperty("catalog_name") private String catalogName; @@ -88,6 +95,15 @@ public class ModelVersionInfo { @JsonProperty("version") private Long version; + public ModelVersionInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public ModelVersionInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -246,7 +262,8 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ModelVersionInfo that = (ModelVersionInfo) o; - return Objects.equals(catalogName, that.catalogName) + return Objects.equals(browseOnly, that.browseOnly) + && Objects.equals(catalogName, that.catalogName) && Objects.equals(comment, that.comment) && Objects.equals(createdAt, that.createdAt) && Objects.equals(createdBy, that.createdBy) @@ -268,6 +285,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + browseOnly, catalogName, comment, createdAt, @@ -290,6 +308,7 @@ public int hashCode() { @Override public String toString() { return new ToStringer(ModelVersionInfo.class) + .add("browseOnly", browseOnly) .add("catalogName", catalogName) .add("comment", comment) .add("createdAt", createdAt) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestinations.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestinations.java index 1354e0944..8876922fa 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestinations.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestinations.java @@ -10,7 +10,10 @@ @Generated public class MonitorDestinations { - /** The list of email addresses to send the notification to. */ + /** + * The list of email addresses to send the notification to. A maximum of 5 email addresses is + * supported. + */ @JsonProperty("email_addresses") private Collection emailAddresses; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInfo.java index cd8cfde76..2f179889d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInfo.java @@ -58,7 +58,7 @@ public class MonitorInfo { /** The notification settings for the monitor. */ @JsonProperty("notifications") - private Collection notifications; + private MonitorNotificationsConfig notifications; /** Schema where output metric tables are created. */ @JsonProperty("output_schema_name") @@ -184,12 +184,12 @@ public String getMonitorVersion() { return monitorVersion; } - public MonitorInfo setNotifications(Collection notifications) { + public MonitorInfo setNotifications(MonitorNotificationsConfig notifications) { this.notifications = notifications; return this; } - public Collection getNotifications() { + public MonitorNotificationsConfig getNotifications() { return notifications; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesAPI.java index 98495b2eb..32f99a526 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesAPI.java @@ -28,7 +28,7 @@ public OnlineTablesAPI(OnlineTablesService mock) { * *

Create a new Online Table. */ - public OnlineTable create(ViewData request) { + public OnlineTable create(CreateOnlineTableRequest request) { return impl.create(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesImpl.java index 3f300ec2c..3b29957f1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesImpl.java @@ -16,7 +16,7 @@ public OnlineTablesImpl(ApiClient apiClient) { } @Override - public OnlineTable create(ViewData request) { + public OnlineTable create(CreateOnlineTableRequest request) { String path = "/api/2.0/online-tables"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesService.java index 97bd017fa..e18d13cd0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTablesService.java @@ -17,7 +17,7 @@ public interface OnlineTablesService { * *

Create a new Online Table. */ - OnlineTable create(ViewData viewData); + OnlineTable create(CreateOnlineTableRequest createOnlineTableRequest); /** * Delete an Online Table. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java index cfc998d09..bf7bf0f60 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ReadVolumeRequest.java @@ -3,15 +3,32 @@ package com.databricks.sdk.service.catalog; import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; import com.databricks.sdk.support.ToStringer; import java.util.Objects; /** Get a Volume */ @Generated public class ReadVolumeRequest { + /** + * Whether to include volumes in the response for which the principal can only access selective + * metadata for + */ + @QueryParam("include_browse") + private Boolean includeBrowse; + /** The three-level (fully qualified) name of the volume */ private String name; + public ReadVolumeRequest setIncludeBrowse(Boolean includeBrowse) { + this.includeBrowse = includeBrowse; + return this; + } + + public Boolean getIncludeBrowse() { + return includeBrowse; + } + public ReadVolumeRequest setName(String name) { this.name = name; return this; @@ -26,16 +43,19 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ReadVolumeRequest that = (ReadVolumeRequest) o; - return Objects.equals(name, that.name); + return Objects.equals(includeBrowse, that.includeBrowse) && Objects.equals(name, that.name); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(includeBrowse, name); } @Override public String toString() { - return new ToStringer(ReadVolumeRequest.class).add("name", name).toString(); + return new ToStringer(ReadVolumeRequest.class) + .add("includeBrowse", includeBrowse) + .add("name", name) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelInfo.java index 2437e9e84..072d58d13 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelInfo.java @@ -14,6 +14,13 @@ public class RegisteredModelInfo { @JsonProperty("aliases") private Collection aliases; + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** The name of the catalog where the schema and the registered model reside */ @JsonProperty("catalog_name") private String catalogName; @@ -71,6 +78,15 @@ public Collection getAliases() { return aliases; } + public RegisteredModelInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public RegisteredModelInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -185,6 +201,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; RegisteredModelInfo that = (RegisteredModelInfo) o; return Objects.equals(aliases, that.aliases) + && Objects.equals(browseOnly, that.browseOnly) && Objects.equals(catalogName, that.catalogName) && Objects.equals(comment, that.comment) && Objects.equals(createdAt, that.createdAt) @@ -203,6 +220,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( aliases, + browseOnly, catalogName, comment, createdAt, @@ -221,6 +239,7 @@ public int hashCode() { public String toString() { return new ToStringer(RegisteredModelInfo.class) .add("aliases", aliases) + .add("browseOnly", browseOnly) .add("catalogName", catalogName) .add("comment", comment) .add("createdAt", createdAt) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemaInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemaInfo.java index 1d010259a..a6c96bc23 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemaInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemaInfo.java @@ -10,6 +10,13 @@ @Generated public class SchemaInfo { + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** Name of parent catalog. */ @JsonProperty("catalog_name") private String catalogName; @@ -74,6 +81,15 @@ public class SchemaInfo { @JsonProperty("updated_by") private String updatedBy; + public SchemaInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public SchemaInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -225,7 +241,8 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SchemaInfo that = (SchemaInfo) o; - return Objects.equals(catalogName, that.catalogName) + return Objects.equals(browseOnly, that.browseOnly) + && Objects.equals(catalogName, that.catalogName) && Objects.equals(catalogType, that.catalogType) && Objects.equals(comment, that.comment) && Objects.equals(createdAt, that.createdAt) @@ -247,6 +264,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + browseOnly, catalogName, catalogType, comment, @@ -268,6 +286,7 @@ public int hashCode() { @Override public String toString() { return new ToStringer(SchemaInfo.class) + .add("browseOnly", browseOnly) .add("catalogName", catalogName) .add("catalogType", catalogType) .add("comment", comment) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java index 64eb74554..441636890 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java @@ -81,9 +81,8 @@ public Iterable list(String catalogName) { *

Gets an array of schemas for a catalog in the metastore. If the caller is the metastore * admin or the owner of the parent catalog, all schemas for the catalog will be retrieved. * Otherwise, only schemas owned by the caller (or for which the caller has the **USE_SCHEMA** - * privilege) will be retrieved. For unpaginated request, there is no guarantee of a specific - * ordering of the elements in the array. For paginated request, elements are ordered by their - * name. + * privilege) will be retrieved. There is no guarantee of a specific ordering of the elements in + * the array. */ public Iterable list(ListSchemasRequest request) { return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasService.java index 68f384c70..e18efa0d8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasService.java @@ -45,9 +45,8 @@ public interface SchemasService { *

Gets an array of schemas for a catalog in the metastore. If the caller is the metastore * admin or the owner of the parent catalog, all schemas for the catalog will be retrieved. * Otherwise, only schemas owned by the caller (or for which the caller has the **USE_SCHEMA** - * privilege) will be retrieved. For unpaginated request, there is no guarantee of a specific - * ordering of the elements in the array. For paginated request, elements are ordered by their - * name. + * privilege) will be retrieved. There is no guarantee of a specific ordering of the elements in + * the array. */ ListSchemasResponse list(ListSchemasRequest listSchemasRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialInfo.java index 2046f44ff..c0d091718 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialInfo.java @@ -11,7 +11,7 @@ public class StorageCredentialInfo { /** The AWS IAM role configuration. */ @JsonProperty("aws_iam_role") - private AwsIamRole awsIamRole; + private AwsIamRoleResponse awsIamRole; /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") @@ -73,12 +73,12 @@ public class StorageCredentialInfo { @JsonProperty("used_for_managed_storage") private Boolean usedForManagedStorage; - public StorageCredentialInfo setAwsIamRole(AwsIamRole awsIamRole) { + public StorageCredentialInfo setAwsIamRole(AwsIamRoleResponse awsIamRole) { this.awsIamRole = awsIamRole; return this; } - public AwsIamRole getAwsIamRole() { + public AwsIamRoleResponse getAwsIamRole() { return awsIamRole; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java index 1c20bfd60..69d3b4f87 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java @@ -82,9 +82,8 @@ public StorageCredentialInfo get(GetStorageCredentialRequest request) { * *

Gets an array of storage credentials (as __StorageCredentialInfo__ objects). The array is * limited to only those storage credentials the caller has permission to access. If the caller is - * a metastore admin, retrieval of credentials is unrestricted. For unpaginated request, there is - * no guarantee of a specific ordering of the elements in the array. For paginated request, - * elements are ordered by their name. + * a metastore admin, retrieval of credentials is unrestricted. There is no guarantee of a + * specific ordering of the elements in the array. */ public Iterable list(ListStorageCredentialsRequest request) { return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java index d6de7f68f..23af9af76 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsService.java @@ -50,9 +50,8 @@ public interface StorageCredentialsService { * *

Gets an array of storage credentials (as __StorageCredentialInfo__ objects). The array is * limited to only those storage credentials the caller has permission to access. If the caller is - * a metastore admin, retrieval of credentials is unrestricted. For unpaginated request, there is - * no guarantee of a specific ordering of the elements in the array. For paginated request, - * elements are ordered by their name. + * a metastore admin, retrieval of credentials is unrestricted. There is no guarantee of a + * specific ordering of the elements in the array. */ ListStorageCredentialsResponse list(ListStorageCredentialsRequest listStorageCredentialsRequest); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableInfo.java index f84d5ca58..bb0cc1da1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableInfo.java @@ -15,6 +15,13 @@ public class TableInfo { @JsonProperty("access_point") private String accessPoint; + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** Name of parent catalog. */ @JsonProperty("catalog_name") private String catalogName; @@ -163,6 +170,15 @@ public String getAccessPoint() { return accessPoint; } + public TableInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public TableInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -442,6 +458,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; TableInfo that = (TableInfo) o; return Objects.equals(accessPoint, that.accessPoint) + && Objects.equals(browseOnly, that.browseOnly) && Objects.equals(catalogName, that.catalogName) && Objects.equals(columns, that.columns) && Objects.equals(comment, that.comment) @@ -479,6 +496,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( accessPoint, + browseOnly, catalogName, columns, comment, @@ -515,6 +533,7 @@ public int hashCode() { public String toString() { return new ToStringer(TableInfo.class) .add("accessPoint", accessPoint) + .add("browseOnly", browseOnly) .add("catalogName", catalogName) .add("columns", columns) .add("comment", comment) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateMonitor.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateMonitor.java index b8e73eca9..a41e861cd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateMonitor.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateMonitor.java @@ -38,7 +38,7 @@ public class UpdateMonitor { /** The notification settings for the monitor. */ @JsonProperty("notifications") - private Collection notifications; + private MonitorNotificationsConfig notifications; /** Schema where output metric tables are created. */ @JsonProperty("output_schema_name") @@ -111,12 +111,12 @@ public MonitorInferenceLogProfileType getInferenceLog() { return inferenceLog; } - public UpdateMonitor setNotifications(Collection notifications) { + public UpdateMonitor setNotifications(MonitorNotificationsConfig notifications) { this.notifications = notifications; return this; } - public Collection getNotifications() { + public MonitorNotificationsConfig getNotifications() { return notifications; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateStorageCredential.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateStorageCredential.java index 873d551f5..72bef9b31 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateStorageCredential.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateStorageCredential.java @@ -11,7 +11,7 @@ public class UpdateStorageCredential { /** The AWS IAM role configuration. */ @JsonProperty("aws_iam_role") - private AwsIamRole awsIamRole; + private AwsIamRoleRequest awsIamRole; /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") @@ -56,12 +56,12 @@ public class UpdateStorageCredential { @JsonProperty("skip_validation") private Boolean skipValidation; - public UpdateStorageCredential setAwsIamRole(AwsIamRole awsIamRole) { + public UpdateStorageCredential setAwsIamRole(AwsIamRoleRequest awsIamRole) { this.awsIamRole = awsIamRole; return this; } - public AwsIamRole getAwsIamRole() { + public AwsIamRoleRequest getAwsIamRole() { return awsIamRole; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java index 405cdd428..3d833ac9f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java @@ -11,7 +11,7 @@ public class ValidateStorageCredential { /** The AWS IAM role configuration. */ @JsonProperty("aws_iam_role") - private AwsIamRole awsIamRole; + private AwsIamRoleRequest awsIamRole; /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") @@ -45,12 +45,12 @@ public class ValidateStorageCredential { @JsonProperty("url") private String url; - public ValidateStorageCredential setAwsIamRole(AwsIamRole awsIamRole) { + public ValidateStorageCredential setAwsIamRole(AwsIamRoleRequest awsIamRole) { this.awsIamRole = awsIamRole; return this; } - public AwsIamRole getAwsIamRole() { + public AwsIamRoleRequest getAwsIamRole() { return awsIamRole; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeInfo.java index ff2d58683..d28cf4e10 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeInfo.java @@ -13,6 +13,13 @@ public class VolumeInfo { @JsonProperty("access_point") private String accessPoint; + /** + * Indicates whether the principal is limited to retrieving metadata for the associated object + * through the BROWSE privilege when include_browse is enabled in the request. + */ + @JsonProperty("browse_only") + private Boolean browseOnly; + /** The name of the catalog where the schema and the volume are */ @JsonProperty("catalog_name") private String catalogName; @@ -82,6 +89,15 @@ public String getAccessPoint() { return accessPoint; } + public VolumeInfo setBrowseOnly(Boolean browseOnly) { + this.browseOnly = browseOnly; + return this; + } + + public Boolean getBrowseOnly() { + return browseOnly; + } + public VolumeInfo setCatalogName(String catalogName) { this.catalogName = catalogName; return this; @@ -223,6 +239,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; VolumeInfo that = (VolumeInfo) o; return Objects.equals(accessPoint, that.accessPoint) + && Objects.equals(browseOnly, that.browseOnly) && Objects.equals(catalogName, that.catalogName) && Objects.equals(comment, that.comment) && Objects.equals(createdAt, that.createdAt) @@ -244,6 +261,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( accessPoint, + browseOnly, catalogName, comment, createdAt, @@ -265,6 +283,7 @@ public int hashCode() { public String toString() { return new ToStringer(VolumeInfo.class) .add("accessPoint", accessPoint) + .add("browseOnly", browseOnly) .add("catalogName", catalogName) .add("comment", comment) .add("createdAt", createdAt) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/CreateDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/CreateDashboardRequest.java new file mode 100755 index 000000000..5977206de --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/CreateDashboardRequest.java @@ -0,0 +1,92 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +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 CreateDashboardRequest { + /** The display name of the dashboard. */ + @JsonProperty("display_name") + private String displayName; + + /** + * The workspace path of the folder containing the dashboard. Includes leading slash and no + * trailing slash. + */ + @JsonProperty("parent_path") + private String parentPath; + + /** The contents of the dashboard in serialized string form. */ + @JsonProperty("serialized_dashboard") + private String serializedDashboard; + + /** The warehouse ID used to run the dashboard. */ + @JsonProperty("warehouse_id") + private String warehouseId; + + public CreateDashboardRequest setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public CreateDashboardRequest setParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + public String getParentPath() { + return parentPath; + } + + public CreateDashboardRequest setSerializedDashboard(String serializedDashboard) { + this.serializedDashboard = serializedDashboard; + return this; + } + + public String getSerializedDashboard() { + return serializedDashboard; + } + + public CreateDashboardRequest setWarehouseId(String warehouseId) { + this.warehouseId = warehouseId; + return this; + } + + public String getWarehouseId() { + return warehouseId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateDashboardRequest that = (CreateDashboardRequest) o; + return Objects.equals(displayName, that.displayName) + && Objects.equals(parentPath, that.parentPath) + && Objects.equals(serializedDashboard, that.serializedDashboard) + && Objects.equals(warehouseId, that.warehouseId); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, parentPath, serializedDashboard, warehouseId); + } + + @Override + public String toString() { + return new ToStringer(CreateDashboardRequest.class) + .add("displayName", displayName) + .add("parentPath", parentPath) + .add("serializedDashboard", serializedDashboard) + .add("warehouseId", warehouseId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/Dashboard.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/Dashboard.java new file mode 100755 index 000000000..8353ab585 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/Dashboard.java @@ -0,0 +1,195 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +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 Dashboard { + /** The timestamp of when the dashboard was created. */ + @JsonProperty("create_time") + private String createTime; + + /** UUID identifying the dashboard. */ + @JsonProperty("dashboard_id") + private String dashboardId; + + /** The display name of the dashboard. */ + @JsonProperty("display_name") + private String displayName; + + /** + * The etag for the dashboard. Can be optionally provided on updates to ensure that the dashboard + * has not been modified since the last read. + */ + @JsonProperty("etag") + private String etag; + + /** The state of the dashboard resource. Used for tracking trashed status. */ + @JsonProperty("lifecycle_state") + private LifecycleState lifecycleState; + + /** + * The workspace path of the folder containing the dashboard. Includes leading slash and no + * trailing slash. + */ + @JsonProperty("parent_path") + private String parentPath; + + /** The workspace path of the dashboard asset, including the file name. */ + @JsonProperty("path") + private String path; + + /** The contents of the dashboard in serialized string form. */ + @JsonProperty("serialized_dashboard") + private String serializedDashboard; + + /** The timestamp of when the dashboard was last updated by the user. */ + @JsonProperty("update_time") + private String updateTime; + + /** The warehouse ID used to run the dashboard. */ + @JsonProperty("warehouse_id") + private String warehouseId; + + public Dashboard setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + public String getCreateTime() { + return createTime; + } + + public Dashboard setDashboardId(String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + public String getDashboardId() { + return dashboardId; + } + + public Dashboard setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public Dashboard setEtag(String etag) { + this.etag = etag; + return this; + } + + public String getEtag() { + return etag; + } + + public Dashboard setLifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + public Dashboard setParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + public String getParentPath() { + return parentPath; + } + + public Dashboard setPath(String path) { + this.path = path; + return this; + } + + public String getPath() { + return path; + } + + public Dashboard setSerializedDashboard(String serializedDashboard) { + this.serializedDashboard = serializedDashboard; + return this; + } + + public String getSerializedDashboard() { + return serializedDashboard; + } + + public Dashboard setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + public String getUpdateTime() { + return updateTime; + } + + public Dashboard setWarehouseId(String warehouseId) { + this.warehouseId = warehouseId; + return this; + } + + public String getWarehouseId() { + return warehouseId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Dashboard that = (Dashboard) o; + return Objects.equals(createTime, that.createTime) + && Objects.equals(dashboardId, that.dashboardId) + && Objects.equals(displayName, that.displayName) + && Objects.equals(etag, that.etag) + && Objects.equals(lifecycleState, that.lifecycleState) + && Objects.equals(parentPath, that.parentPath) + && Objects.equals(path, that.path) + && Objects.equals(serializedDashboard, that.serializedDashboard) + && Objects.equals(updateTime, that.updateTime) + && Objects.equals(warehouseId, that.warehouseId); + } + + @Override + public int hashCode() { + return Objects.hash( + createTime, + dashboardId, + displayName, + etag, + lifecycleState, + parentPath, + path, + serializedDashboard, + updateTime, + warehouseId); + } + + @Override + public String toString() { + return new ToStringer(Dashboard.class) + .add("createTime", createTime) + .add("dashboardId", dashboardId) + .add("displayName", displayName) + .add("etag", etag) + .add("lifecycleState", lifecycleState) + .add("parentPath", parentPath) + .add("path", path) + .add("serializedDashboard", serializedDashboard) + .add("updateTime", updateTime) + .add("warehouseId", warehouseId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetDashboardRequest.java new file mode 100755 index 000000000..bbdb5b13a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetDashboardRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get dashboard */ +@Generated +public class GetDashboardRequest { + /** UUID identifying the dashboard. */ + private String dashboardId; + + public GetDashboardRequest 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; + GetDashboardRequest that = (GetDashboardRequest) o; + return Objects.equals(dashboardId, that.dashboardId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId); + } + + @Override + public String toString() { + return new ToStringer(GetDashboardRequest.class).add("dashboardId", dashboardId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetPublishedDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetPublishedDashboardRequest.java new file mode 100755 index 000000000..6f29da065 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GetPublishedDashboardRequest.java @@ -0,0 +1,43 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get published dashboard */ +@Generated +public class GetPublishedDashboardRequest { + /** UUID identifying the dashboard to be published. */ + private String dashboardId; + + public GetPublishedDashboardRequest 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; + GetPublishedDashboardRequest that = (GetPublishedDashboardRequest) o; + return Objects.equals(dashboardId, that.dashboardId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId); + } + + @Override + public String toString() { + return new ToStringer(GetPublishedDashboardRequest.class) + .add("dashboardId", dashboardId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java index bc55fbe21..4f20ecb79 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java @@ -26,8 +26,47 @@ public LakeviewAPI(LakeviewService mock) { impl = mock; } - public void publish(String dashboardId) { - publish(new PublishRequest().setDashboardId(dashboardId)); + public Dashboard create(String displayName) { + return create(new CreateDashboardRequest().setDisplayName(displayName)); + } + + /** + * Create dashboard. + * + *

Create a draft dashboard. + */ + public Dashboard create(CreateDashboardRequest request) { + return impl.create(request); + } + + public Dashboard get(String dashboardId) { + return get(new GetDashboardRequest().setDashboardId(dashboardId)); + } + + /** + * Get dashboard. + * + *

Get a draft dashboard. + */ + public Dashboard get(GetDashboardRequest request) { + return impl.get(request); + } + + public PublishedDashboard getPublished(String dashboardId) { + return getPublished(new GetPublishedDashboardRequest().setDashboardId(dashboardId)); + } + + /** + * Get published dashboard. + * + *

Get the current published dashboard. + */ + public PublishedDashboard getPublished(GetPublishedDashboardRequest request) { + return impl.getPublished(request); + } + + public PublishedDashboard publish(String dashboardId) { + return publish(new PublishRequest().setDashboardId(dashboardId)); } /** @@ -35,8 +74,34 @@ public void publish(String dashboardId) { * *

Publish the current draft dashboard. */ - public void publish(PublishRequest request) { - impl.publish(request); + public PublishedDashboard publish(PublishRequest request) { + return impl.publish(request); + } + + public void trash(String dashboardId) { + trash(new TrashDashboardRequest().setDashboardId(dashboardId)); + } + + /** + * Trash dashboard. + * + *

Trash a dashboard. + */ + public void trash(TrashDashboardRequest request) { + impl.trash(request); + } + + public Dashboard update(String dashboardId) { + return update(new UpdateDashboardRequest().setDashboardId(dashboardId)); + } + + /** + * Update dashboard. + * + *

Update a draft dashboard. + */ + public Dashboard update(UpdateDashboardRequest request) { + return impl.update(request); } public LakeviewService impl() { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewImpl.java index 8386295ce..43dbbd705 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewImpl.java @@ -16,12 +16,55 @@ public LakeviewImpl(ApiClient apiClient) { } @Override - public void publish(PublishRequest request) { + public Dashboard create(CreateDashboardRequest request) { + String path = "/api/2.0/lakeview/dashboards"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, Dashboard.class, headers); + } + + @Override + public Dashboard get(GetDashboardRequest request) { + String path = String.format("/api/2.0/lakeview/dashboards/%s", request.getDashboardId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, Dashboard.class, headers); + } + + @Override + public PublishedDashboard getPublished(GetPublishedDashboardRequest request) { String path = String.format("/api/2.0/lakeview/dashboards/%s/published", request.getDashboardId()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); + return apiClient.GET(path, request, PublishedDashboard.class, headers); + } + + @Override + public PublishedDashboard publish(PublishRequest request) { + String path = + String.format("/api/2.0/lakeview/dashboards/%s/published", request.getDashboardId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, PublishedDashboard.class, headers); + } + + @Override + public void trash(TrashDashboardRequest request) { + String path = String.format("/api/2.0/lakeview/dashboards/%s", request.getDashboardId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, TrashDashboardResponse.class, headers); + } + + @Override + public Dashboard update(UpdateDashboardRequest request) { + String path = String.format("/api/2.0/lakeview/dashboards/%s", request.getDashboardId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); headers.put("Content-Type", "application/json"); - apiClient.POST(path, request, PublishResponse.class, headers); + return apiClient.PATCH(path, request, Dashboard.class, headers); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewService.java index c283a65ae..baa92a0b5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewService.java @@ -13,10 +13,45 @@ */ @Generated public interface LakeviewService { + /** + * Create dashboard. + * + *

Create a draft dashboard. + */ + Dashboard create(CreateDashboardRequest createDashboardRequest); + + /** + * Get dashboard. + * + *

Get a draft dashboard. + */ + Dashboard get(GetDashboardRequest getDashboardRequest); + + /** + * Get published dashboard. + * + *

Get the current published dashboard. + */ + PublishedDashboard getPublished(GetPublishedDashboardRequest getPublishedDashboardRequest); + /** * Publish dashboard. * *

Publish the current draft dashboard. */ - void publish(PublishRequest publishRequest); + PublishedDashboard publish(PublishRequest publishRequest); + + /** + * Trash dashboard. + * + *

Trash a dashboard. + */ + void trash(TrashDashboardRequest trashDashboardRequest); + + /** + * Update dashboard. + * + *

Update a draft dashboard. + */ + Dashboard update(UpdateDashboardRequest updateDashboardRequest); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LifecycleState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LifecycleState.java new file mode 100755 index 000000000..37abfd2a8 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LifecycleState.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum LifecycleState { + ACTIVE, + TRASHED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishedDashboard.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishedDashboard.java new file mode 100755 index 000000000..c8133c4f2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishedDashboard.java @@ -0,0 +1,89 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +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 PublishedDashboard { + /** The display name of the published dashboard. */ + @JsonProperty("display_name") + private String displayName; + + /** Indicates whether credentials are embedded in the published dashboard. */ + @JsonProperty("embed_credentials") + private Boolean embedCredentials; + + /** The timestamp of when the published dashboard was last revised. */ + @JsonProperty("revision_create_time") + private String revisionCreateTime; + + /** The warehouse ID used to run the published dashboard. */ + @JsonProperty("warehouse_id") + private String warehouseId; + + public PublishedDashboard setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public PublishedDashboard setEmbedCredentials(Boolean embedCredentials) { + this.embedCredentials = embedCredentials; + return this; + } + + public Boolean getEmbedCredentials() { + return embedCredentials; + } + + public PublishedDashboard setRevisionCreateTime(String revisionCreateTime) { + this.revisionCreateTime = revisionCreateTime; + return this; + } + + public String getRevisionCreateTime() { + return revisionCreateTime; + } + + public PublishedDashboard setWarehouseId(String warehouseId) { + this.warehouseId = warehouseId; + return this; + } + + public String getWarehouseId() { + return warehouseId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PublishedDashboard that = (PublishedDashboard) o; + return Objects.equals(displayName, that.displayName) + && Objects.equals(embedCredentials, that.embedCredentials) + && Objects.equals(revisionCreateTime, that.revisionCreateTime) + && Objects.equals(warehouseId, that.warehouseId); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, embedCredentials, revisionCreateTime, warehouseId); + } + + @Override + public String toString() { + return new ToStringer(PublishedDashboard.class) + .add("displayName", displayName) + .add("embedCredentials", embedCredentials) + .add("revisionCreateTime", revisionCreateTime) + .add("warehouseId", warehouseId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardRequest.java new file mode 100755 index 000000000..b346cd139 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Trash dashboard */ +@Generated +public class TrashDashboardRequest { + /** UUID identifying the dashboard. */ + private String dashboardId; + + public TrashDashboardRequest 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; + TrashDashboardRequest that = (TrashDashboardRequest) o; + return Objects.equals(dashboardId, that.dashboardId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId); + } + + @Override + public String toString() { + return new ToStringer(TrashDashboardRequest.class).add("dashboardId", dashboardId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardResponse.java similarity index 83% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishResponse.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardResponse.java index 9f953cd06..0f43a3a49 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/PublishResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/TrashDashboardResponse.java @@ -7,7 +7,7 @@ import java.util.Objects; @Generated -public class PublishResponse { +public class TrashDashboardResponse { @Override public boolean equals(Object o) { @@ -23,6 +23,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(PublishResponse.class).toString(); + return new ToStringer(TrashDashboardResponse.class).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/UpdateDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/UpdateDashboardRequest.java new file mode 100755 index 000000000..46a384eec --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/UpdateDashboardRequest.java @@ -0,0 +1,106 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.dashboards; + +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 UpdateDashboardRequest { + /** UUID identifying the dashboard. */ + private String dashboardId; + + /** The display name of the dashboard. */ + @JsonProperty("display_name") + private String displayName; + + /** + * The etag for the dashboard. Can be optionally provided on updates to ensure that the dashboard + * has not been modified since the last read. + */ + @JsonProperty("etag") + private String etag; + + /** The contents of the dashboard in serialized string form. */ + @JsonProperty("serialized_dashboard") + private String serializedDashboard; + + /** The warehouse ID used to run the dashboard. */ + @JsonProperty("warehouse_id") + private String warehouseId; + + public UpdateDashboardRequest setDashboardId(String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + public String getDashboardId() { + return dashboardId; + } + + public UpdateDashboardRequest setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public UpdateDashboardRequest setEtag(String etag) { + this.etag = etag; + return this; + } + + public String getEtag() { + return etag; + } + + public UpdateDashboardRequest setSerializedDashboard(String serializedDashboard) { + this.serializedDashboard = serializedDashboard; + return this; + } + + public String getSerializedDashboard() { + return serializedDashboard; + } + + public UpdateDashboardRequest setWarehouseId(String warehouseId) { + this.warehouseId = warehouseId; + return this; + } + + public String getWarehouseId() { + return warehouseId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateDashboardRequest that = (UpdateDashboardRequest) o; + return Objects.equals(dashboardId, that.dashboardId) + && Objects.equals(displayName, that.displayName) + && Objects.equals(etag, that.etag) + && Objects.equals(serializedDashboard, that.serializedDashboard) + && Objects.equals(warehouseId, that.warehouseId); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId, displayName, etag, serializedDashboard, warehouseId); + } + + @Override + public String toString() { + return new ToStringer(UpdateDashboardRequest.class) + .add("dashboardId", dashboardId) + .add("displayName", displayName) + .add("etag", etag) + .add("serializedDashboard", serializedDashboard) + .add("warehouseId", warehouseId) + .toString(); + } +} 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 18408b80b..fff729d4c 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_QUERY, CAN_READ, CAN_RESTART, CAN_RUN, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/BuildLogsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/BuildLogsRequest.java index 7c20f2efe..54558cb79 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/BuildLogsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/BuildLogsRequest.java @@ -6,10 +6,7 @@ import com.databricks.sdk.support.ToStringer; import java.util.Objects; -/** - * Retrieve the logs associated with building the model's environment for a given serving endpoint's - * served model. - */ +/** Get build logs for a served model */ @Generated public class BuildLogsRequest { /** The name of the serving endpoint that the served model belongs to. This field is required. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointCoreConfigInput.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointCoreConfigInput.java index 147006edd..f7fd03f75 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointCoreConfigInput.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointCoreConfigInput.java @@ -21,7 +21,7 @@ public class EndpointCoreConfigInput { private String name; /** - * A list of served entities for the endpoint to serve. A serving endpoint can have up to 10 + * A list of served entities for the endpoint to serve. A serving endpoint can have up to 15 * served entities. */ @JsonProperty("served_entities") @@ -29,7 +29,7 @@ public class EndpointCoreConfigInput { /** * (Deprecated, use served_entities instead) A list of served models for the endpoint to serve. A - * serving endpoint can have up to 10 served models. + * serving endpoint can have up to 15 served models. */ @JsonProperty("served_models") private Collection servedModels; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointPendingConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointPendingConfig.java index 11e71276b..6f635ed13 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointPendingConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EndpointPendingConfig.java @@ -10,6 +10,13 @@ @Generated public class EndpointPendingConfig { + /** + * Configuration for Inference Tables which automatically logs requests and responses to Unity + * Catalog. + */ + @JsonProperty("auto_capture_config") + private AutoCaptureConfigOutput autoCaptureConfig; + /** The config version that the serving endpoint is currently serving. */ @JsonProperty("config_version") private Long configVersion; @@ -33,6 +40,15 @@ public class EndpointPendingConfig { @JsonProperty("traffic_config") private TrafficConfig trafficConfig; + public EndpointPendingConfig setAutoCaptureConfig(AutoCaptureConfigOutput autoCaptureConfig) { + this.autoCaptureConfig = autoCaptureConfig; + return this; + } + + public AutoCaptureConfigOutput getAutoCaptureConfig() { + return autoCaptureConfig; + } + public EndpointPendingConfig setConfigVersion(Long configVersion) { this.configVersion = configVersion; return this; @@ -83,7 +99,8 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EndpointPendingConfig that = (EndpointPendingConfig) o; - return Objects.equals(configVersion, that.configVersion) + return Objects.equals(autoCaptureConfig, that.autoCaptureConfig) + && Objects.equals(configVersion, that.configVersion) && Objects.equals(servedEntities, that.servedEntities) && Objects.equals(servedModels, that.servedModels) && Objects.equals(startTime, that.startTime) @@ -92,12 +109,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(configVersion, servedEntities, servedModels, startTime, trafficConfig); + return Objects.hash( + autoCaptureConfig, configVersion, servedEntities, servedModels, startTime, trafficConfig); } @Override public String toString() { return new ToStringer(EndpointPendingConfig.class) + .add("autoCaptureConfig", autoCaptureConfig) .add("configVersion", configVersion) .add("servedEntities", servedEntities) .add("servedModels", servedModels) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExportMetricsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExportMetricsRequest.java index 7144a0c3b..bcdc26db2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExportMetricsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ExportMetricsRequest.java @@ -6,7 +6,7 @@ import com.databricks.sdk.support.ToStringer; import java.util.Objects; -/** Retrieve the metrics associated with a serving endpoint */ +/** Get metrics of a serving endpoint */ @Generated public class ExportMetricsRequest { /** The name of the serving endpoint to retrieve metrics for. This field is required. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/LogsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/LogsRequest.java index 50b14b273..5f2953b1e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/LogsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/LogsRequest.java @@ -6,7 +6,7 @@ import com.databricks.sdk.support.ToStringer; import java.util.Objects; -/** Retrieve the most recent log lines associated with a given serving endpoint's served model */ +/** Get the latest logs for a served model */ @Generated public class LogsRequest { /** The name of the serving endpoint that the served model belongs to. This field is required. */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/PutRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/PutRequest.java index 144442330..a2796c8b5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/PutRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/PutRequest.java @@ -8,7 +8,7 @@ import java.util.Collection; import java.util.Objects; -/** Update the rate limits of a serving endpoint */ +/** Update rate limits of a serving endpoint */ @Generated public class PutRequest { /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java index 96e1a7548..237c4e246 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java @@ -92,8 +92,7 @@ public BuildLogsResponse buildLogs(String name, String servedModelName) { } /** - * Retrieve the logs associated with building the model's environment for a given serving - * endpoint's served model. + * Get build logs for a served model. * *

Retrieves the build logs associated with the provided served model. */ @@ -130,7 +129,7 @@ public void exportMetrics(String name) { } /** - * Retrieve the metrics associated with a serving endpoint. + * Get metrics of a serving endpoint. * *

Retrieves the metrics associated with the provided serving endpoint in either Prometheus or * OpenMetrics exposition format. @@ -182,7 +181,7 @@ public ServingEndpointPermissions getPermissions(GetServingEndpointPermissionsRe return impl.getPermissions(request); } - /** Retrieve all serving endpoints. */ + /** Get all serving endpoints. */ public Iterable list() { return impl.list().getEndpoints(); } @@ -192,7 +191,7 @@ public ServerLogsResponse logs(String name, String servedModelName) { } /** - * Retrieve the most recent log lines associated with a given serving endpoint's served model. + * Get the latest logs for a served model. * *

Retrieves the service logs associated with the provided served model. */ @@ -205,7 +204,7 @@ public Iterable patch(String name) { } /** - * Patch the tags of a serving endpoint. + * Update tags of a serving endpoint. * *

Used to batch add and delete tags from a serving endpoint with a single API call. */ @@ -218,7 +217,7 @@ public PutResponse put(String name) { } /** - * Update the rate limits of a serving endpoint. + * Update rate limits of a serving endpoint. * *

Used to update the rate limits of a serving endpoint. NOTE: only external and foundation * model endpoints are supported as of now. @@ -231,7 +230,7 @@ public QueryEndpointResponse query(String name) { return query(new QueryEndpointInput().setName(name)); } - /** Query a serving endpoint with provided model input. */ + /** Query a serving endpoint. */ public QueryEndpointResponse query(QueryEndpointInput request) { return impl.query(request); } @@ -256,7 +255,7 @@ public Wait updateConfig(Strin } /** - * Update a serving endpoint with a new config. + * Update config of a serving endpoint. * *

Updates any combination of the serving endpoint's served entities, the compute configuration * of those served entities, and the endpoint's traffic config. An endpoint that already has an diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsService.java index 799bbd8bb..9a0eda68b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsService.java @@ -23,8 +23,7 @@ @Generated public interface ServingEndpointsService { /** - * Retrieve the logs associated with building the model's environment for a given serving - * endpoint's served model. + * Get build logs for a served model. * *

Retrieves the build logs associated with the provided served model. */ @@ -37,7 +36,7 @@ public interface ServingEndpointsService { void delete(DeleteServingEndpointRequest deleteServingEndpointRequest); /** - * Retrieve the metrics associated with a serving endpoint. + * Get metrics of a serving endpoint. * *

Retrieves the metrics associated with the provided serving endpoint in either Prometheus or * OpenMetrics exposition format. @@ -68,32 +67,32 @@ GetServingEndpointPermissionLevelsResponse getPermissionLevels( ServingEndpointPermissions getPermissions( GetServingEndpointPermissionsRequest getServingEndpointPermissionsRequest); - /** Retrieve all serving endpoints. */ + /** Get all serving endpoints. */ ListEndpointsResponse list(); /** - * Retrieve the most recent log lines associated with a given serving endpoint's served model. + * Get the latest logs for a served model. * *

Retrieves the service logs associated with the provided served model. */ ServerLogsResponse logs(LogsRequest logsRequest); /** - * Patch the tags of a serving endpoint. + * Update tags of a serving endpoint. * *

Used to batch add and delete tags from a serving endpoint with a single API call. */ Collection patch(PatchServingEndpointTags patchServingEndpointTags); /** - * Update the rate limits of a serving endpoint. + * Update rate limits of a serving endpoint. * *

Used to update the rate limits of a serving endpoint. NOTE: only external and foundation * model endpoints are supported as of now. */ PutResponse put(PutRequest putRequest); - /** Query a serving endpoint with provided model input. */ + /** Query a serving endpoint. */ QueryEndpointResponse query(QueryEndpointInput queryEndpointInput); /** @@ -106,7 +105,7 @@ ServingEndpointPermissions setPermissions( ServingEndpointPermissionsRequest servingEndpointPermissionsRequest); /** - * Update a serving endpoint with a new config. + * Update config of a serving endpoint. * *

Updates any combination of the serving endpoint's served entities, the compute configuration * of those served entities, and the endpoint's traffic config. An endpoint that already has an diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateAPI.java index 6b1bce1cc..fa7d583a7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateAPI.java @@ -31,7 +31,7 @@ public AutomaticClusterUpdateAPI(AutomaticClusterUpdateService mock) { * *

Gets the automatic cluster update setting. */ - public AutomaticClusterUpdateSetting get(GetAutomaticClusterUpdateRequest request) { + public AutomaticClusterUpdateSetting get(GetAutomaticClusterUpdateSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateImpl.java index b627e07e5..9771064ad 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateImpl.java @@ -16,7 +16,7 @@ public AutomaticClusterUpdateImpl(ApiClient apiClient) { } @Override - public AutomaticClusterUpdateSetting get(GetAutomaticClusterUpdateRequest request) { + public AutomaticClusterUpdateSetting get(GetAutomaticClusterUpdateSettingRequest request) { String path = "/api/2.0/settings/types/automatic_cluster_update/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateService.java index 44fe8fc2d..73d68ffb8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AutomaticClusterUpdateService.java @@ -19,7 +19,7 @@ public interface AutomaticClusterUpdateService { *

Gets the automatic cluster update setting. */ AutomaticClusterUpdateSetting get( - GetAutomaticClusterUpdateRequest getAutomaticClusterUpdateRequest); + GetAutomaticClusterUpdateSettingRequest getAutomaticClusterUpdateSettingRequest); /** * Update the automatic cluster update setting. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAPI.java index b24d8579b..facaf8b3e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAPI.java @@ -33,7 +33,7 @@ public CspEnablementAPI(CspEnablementService mock) { * *

Gets the compliance security profile setting. */ - public CspEnablementSetting get(GetCspEnablementRequest request) { + public CspEnablementSetting get(GetCspEnablementSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountAPI.java index 8d8815c65..99c33fd21 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountAPI.java @@ -36,7 +36,7 @@ public CspEnablementAccountAPI(CspEnablementAccountService mock) { * *

Gets the compliance security profile setting for new workspaces. */ - public CspEnablementAccountSetting get(GetCspEnablementAccountRequest request) { + public CspEnablementAccountSetting get(GetCspEnablementAccountSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountImpl.java index 804958b79..ee1e5cbb8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountImpl.java @@ -16,7 +16,7 @@ public CspEnablementAccountImpl(ApiClient apiClient) { } @Override - public CspEnablementAccountSetting get(GetCspEnablementAccountRequest request) { + public CspEnablementAccountSetting get(GetCspEnablementAccountSettingRequest request) { String path = String.format( "/api/2.0/accounts/%s/settings/types/shield_csp_enablement_ac/names/default", diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountService.java index f43beaecc..09bbdf343 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementAccountService.java @@ -23,7 +23,8 @@ public interface CspEnablementAccountService { * *

Gets the compliance security profile setting for new workspaces. */ - CspEnablementAccountSetting get(GetCspEnablementAccountRequest getCspEnablementAccountRequest); + CspEnablementAccountSetting get( + GetCspEnablementAccountSettingRequest getCspEnablementAccountSettingRequest); /** * Update the compliance security profile setting for new workspaces. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementImpl.java index 767c5dc36..2b8e77fec 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementImpl.java @@ -16,7 +16,7 @@ public CspEnablementImpl(ApiClient apiClient) { } @Override - public CspEnablementSetting get(GetCspEnablementRequest request) { + public CspEnablementSetting get(GetCspEnablementSettingRequest request) { String path = "/api/2.0/settings/types/shield_csp_enablement_ws_db/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementService.java index e34d6d501..5f5da79fd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CspEnablementService.java @@ -20,7 +20,7 @@ public interface CspEnablementService { * *

Gets the compliance security profile setting. */ - CspEnablementSetting get(GetCspEnablementRequest getCspEnablementRequest); + CspEnablementSetting get(GetCspEnablementSettingRequest getCspEnablementSettingRequest); /** * Update the compliance security profile setting. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceAPI.java index d5bd0a5e5..a221e76ea 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceAPI.java @@ -42,7 +42,8 @@ public DefaultNamespaceAPI(DefaultNamespaceService mock) { * request before the `DELETE` request. If the setting is updated/deleted concurrently, `DELETE` * fails with 409 and the request must be retried by using the fresh etag in the 409 response. */ - public DeleteDefaultNamespaceSettingResponse delete(DeleteDefaultNamespaceRequest request) { + public DeleteDefaultNamespaceSettingResponse delete( + DeleteDefaultNamespaceSettingRequest request) { return impl.delete(request); } @@ -51,7 +52,7 @@ public DeleteDefaultNamespaceSettingResponse delete(DeleteDefaultNamespaceReques * *

Gets the default namespace setting. */ - public DefaultNamespaceSetting get(GetDefaultNamespaceRequest request) { + public DefaultNamespaceSetting get(GetDefaultNamespaceSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceImpl.java index 4a3b47f3a..6912944f9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceImpl.java @@ -16,7 +16,8 @@ public DefaultNamespaceImpl(ApiClient apiClient) { } @Override - public DeleteDefaultNamespaceSettingResponse delete(DeleteDefaultNamespaceRequest request) { + public DeleteDefaultNamespaceSettingResponse delete( + DeleteDefaultNamespaceSettingRequest request) { String path = "/api/2.0/settings/types/default_namespace_ws/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); @@ -24,7 +25,7 @@ public DeleteDefaultNamespaceSettingResponse delete(DeleteDefaultNamespaceReques } @Override - public DefaultNamespaceSetting get(GetDefaultNamespaceRequest request) { + public DefaultNamespaceSetting get(GetDefaultNamespaceSettingRequest request) { String path = "/api/2.0/settings/types/default_namespace_ws/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceService.java index e2c865d7f..7c7626ca2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DefaultNamespaceService.java @@ -30,14 +30,14 @@ public interface DefaultNamespaceService { * fails with 409 and the request must be retried by using the fresh etag in the 409 response. */ DeleteDefaultNamespaceSettingResponse delete( - DeleteDefaultNamespaceRequest deleteDefaultNamespaceRequest); + DeleteDefaultNamespaceSettingRequest deleteDefaultNamespaceSettingRequest); /** * Get the default namespace setting. * *

Gets the default namespace setting. */ - DefaultNamespaceSetting get(GetDefaultNamespaceRequest getDefaultNamespaceRequest); + DefaultNamespaceSetting get(GetDefaultNamespaceSettingRequest getDefaultNamespaceSettingRequest); /** * Update the default namespace setting. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceSettingRequest.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceSettingRequest.java index f6b985cd6..fa8a07c90 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteDefaultNamespaceSettingRequest.java @@ -9,7 +9,7 @@ /** Delete the default namespace setting */ @Generated -public class DeleteDefaultNamespaceRequest { +public class DeleteDefaultNamespaceSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class DeleteDefaultNamespaceRequest { @QueryParam("etag") private String etag; - public DeleteDefaultNamespaceRequest setEtag(String etag) { + public DeleteDefaultNamespaceSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - DeleteDefaultNamespaceRequest that = (DeleteDefaultNamespaceRequest) o; + DeleteDefaultNamespaceSettingRequest that = (DeleteDefaultNamespaceSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(DeleteDefaultNamespaceRequest.class).add("etag", etag).toString(); + return new ToStringer(DeleteDefaultNamespaceSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeSettingRequest.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeSettingRequest.java index f117cb10f..8e4fed90b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeletePersonalComputeSettingRequest.java @@ -9,7 +9,7 @@ /** Delete Personal Compute setting */ @Generated -public class DeletePersonalComputeRequest { +public class DeletePersonalComputeSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class DeletePersonalComputeRequest { @QueryParam("etag") private String etag; - public DeletePersonalComputeRequest setEtag(String etag) { + public DeletePersonalComputeSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - DeletePersonalComputeRequest that = (DeletePersonalComputeRequest) o; + DeletePersonalComputeSettingRequest that = (DeletePersonalComputeSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(DeletePersonalComputeRequest.class).add("etag", etag).toString(); + return new ToStringer(DeletePersonalComputeSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminsSettingRequest.java similarity index 78% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminsSettingRequest.java index 907440c93..29fd8539b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteRestrictWorkspaceAdminsSettingRequest.java @@ -9,7 +9,7 @@ /** Delete the restrict workspace admins setting */ @Generated -public class DeleteRestrictWorkspaceAdminRequest { +public class DeleteRestrictWorkspaceAdminsSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class DeleteRestrictWorkspaceAdminRequest { @QueryParam("etag") private String etag; - public DeleteRestrictWorkspaceAdminRequest setEtag(String etag) { + public DeleteRestrictWorkspaceAdminsSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,8 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - DeleteRestrictWorkspaceAdminRequest that = (DeleteRestrictWorkspaceAdminRequest) o; + DeleteRestrictWorkspaceAdminsSettingRequest that = + (DeleteRestrictWorkspaceAdminsSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +46,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(DeleteRestrictWorkspaceAdminRequest.class).add("etag", etag).toString(); + return new ToStringer(DeleteRestrictWorkspaceAdminsSettingRequest.class) + .add("etag", etag) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAPI.java index 32b540d0f..fe01a2693 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAPI.java @@ -35,7 +35,7 @@ public EsmEnablementAPI(EsmEnablementService mock) { * *

Gets the enhanced security monitoring setting. */ - public EsmEnablementSetting get(GetEsmEnablementRequest request) { + public EsmEnablementSetting get(GetEsmEnablementSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountAPI.java index 2971dcd16..cec5ff9f0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountAPI.java @@ -33,7 +33,7 @@ public EsmEnablementAccountAPI(EsmEnablementAccountService mock) { * *

Gets the enhanced security monitoring setting for new workspaces. */ - public EsmEnablementAccountSetting get(GetEsmEnablementAccountRequest request) { + public EsmEnablementAccountSetting get(GetEsmEnablementAccountSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountImpl.java index 37f8e295a..6e3fb4adc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountImpl.java @@ -16,7 +16,7 @@ public EsmEnablementAccountImpl(ApiClient apiClient) { } @Override - public EsmEnablementAccountSetting get(GetEsmEnablementAccountRequest request) { + public EsmEnablementAccountSetting get(GetEsmEnablementAccountSettingRequest request) { String path = String.format( "/api/2.0/accounts/%s/settings/types/shield_esm_enablement_ac/names/default", diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountService.java index 57a73c753..51a33c99b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementAccountService.java @@ -20,7 +20,8 @@ public interface EsmEnablementAccountService { * *

Gets the enhanced security monitoring setting for new workspaces. */ - EsmEnablementAccountSetting get(GetEsmEnablementAccountRequest getEsmEnablementAccountRequest); + EsmEnablementAccountSetting get( + GetEsmEnablementAccountSettingRequest getEsmEnablementAccountSettingRequest); /** * Update the enhanced security monitoring setting for new workspaces. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementImpl.java index 03075e5ad..f8cc5ba2f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementImpl.java @@ -16,7 +16,7 @@ public EsmEnablementImpl(ApiClient apiClient) { } @Override - public EsmEnablementSetting get(GetEsmEnablementRequest request) { + public EsmEnablementSetting get(GetEsmEnablementSettingRequest request) { String path = "/api/2.0/settings/types/shield_esm_enablement_ws_db/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementService.java index d5b8cd105..73c2ebfe3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/EsmEnablementService.java @@ -22,7 +22,7 @@ public interface EsmEnablementService { * *

Gets the enhanced security monitoring setting. */ - EsmEnablementSetting get(GetEsmEnablementRequest getEsmEnablementRequest); + EsmEnablementSetting get(GetEsmEnablementSettingRequest getEsmEnablementSettingRequest); /** * Update the enhanced security monitoring setting. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateSettingRequest.java similarity index 79% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateSettingRequest.java index edebb66b6..1b81c9d66 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAutomaticClusterUpdateSettingRequest.java @@ -9,7 +9,7 @@ /** Get the automatic cluster update setting */ @Generated -public class GetAutomaticClusterUpdateRequest { +public class GetAutomaticClusterUpdateSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetAutomaticClusterUpdateRequest { @QueryParam("etag") private String etag; - public GetAutomaticClusterUpdateRequest setEtag(String etag) { + public GetAutomaticClusterUpdateSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetAutomaticClusterUpdateRequest that = (GetAutomaticClusterUpdateRequest) o; + GetAutomaticClusterUpdateSettingRequest that = (GetAutomaticClusterUpdateSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetAutomaticClusterUpdateRequest.class).add("etag", etag).toString(); + return new ToStringer(GetAutomaticClusterUpdateSettingRequest.class) + .add("etag", etag) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountSettingRequest.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountSettingRequest.java index ded435a60..6fb8f7878 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementAccountSettingRequest.java @@ -9,7 +9,7 @@ /** Get the compliance security profile setting for new workspaces */ @Generated -public class GetCspEnablementAccountRequest { +public class GetCspEnablementAccountSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetCspEnablementAccountRequest { @QueryParam("etag") private String etag; - public GetCspEnablementAccountRequest setEtag(String etag) { + public GetCspEnablementAccountSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetCspEnablementAccountRequest that = (GetCspEnablementAccountRequest) o; + GetCspEnablementAccountSettingRequest that = (GetCspEnablementAccountSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetCspEnablementAccountRequest.class).add("etag", etag).toString(); + return new ToStringer(GetCspEnablementAccountSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementSettingRequest.java similarity index 82% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementSettingRequest.java index c18eea1a8..4391ee856 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetCspEnablementSettingRequest.java @@ -9,7 +9,7 @@ /** Get the compliance security profile setting */ @Generated -public class GetCspEnablementRequest { +public class GetCspEnablementSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetCspEnablementRequest { @QueryParam("etag") private String etag; - public GetCspEnablementRequest setEtag(String etag) { + public GetCspEnablementSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetCspEnablementRequest that = (GetCspEnablementRequest) o; + GetCspEnablementSettingRequest that = (GetCspEnablementSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetCspEnablementRequest.class).add("etag", etag).toString(); + return new ToStringer(GetCspEnablementSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceSettingRequest.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceSettingRequest.java index 2db700cd8..394610a16 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetDefaultNamespaceSettingRequest.java @@ -9,7 +9,7 @@ /** Get the default namespace setting */ @Generated -public class GetDefaultNamespaceRequest { +public class GetDefaultNamespaceSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetDefaultNamespaceRequest { @QueryParam("etag") private String etag; - public GetDefaultNamespaceRequest setEtag(String etag) { + public GetDefaultNamespaceSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetDefaultNamespaceRequest that = (GetDefaultNamespaceRequest) o; + GetDefaultNamespaceSettingRequest that = (GetDefaultNamespaceSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetDefaultNamespaceRequest.class).add("etag", etag).toString(); + return new ToStringer(GetDefaultNamespaceSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountSettingRequest.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountSettingRequest.java index ddf71eeb6..0aedc70ff 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementAccountSettingRequest.java @@ -9,7 +9,7 @@ /** Get the enhanced security monitoring setting for new workspaces */ @Generated -public class GetEsmEnablementAccountRequest { +public class GetEsmEnablementAccountSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetEsmEnablementAccountRequest { @QueryParam("etag") private String etag; - public GetEsmEnablementAccountRequest setEtag(String etag) { + public GetEsmEnablementAccountSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetEsmEnablementAccountRequest that = (GetEsmEnablementAccountRequest) o; + GetEsmEnablementAccountSettingRequest that = (GetEsmEnablementAccountSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetEsmEnablementAccountRequest.class).add("etag", etag).toString(); + return new ToStringer(GetEsmEnablementAccountSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementSettingRequest.java similarity index 82% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementSettingRequest.java index 4d205ef4b..491399f62 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetEsmEnablementSettingRequest.java @@ -9,7 +9,7 @@ /** Get the enhanced security monitoring setting */ @Generated -public class GetEsmEnablementRequest { +public class GetEsmEnablementSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetEsmEnablementRequest { @QueryParam("etag") private String etag; - public GetEsmEnablementRequest setEtag(String etag) { + public GetEsmEnablementSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetEsmEnablementRequest that = (GetEsmEnablementRequest) o; + GetEsmEnablementSettingRequest that = (GetEsmEnablementSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetEsmEnablementRequest.class).add("etag", etag).toString(); + return new ToStringer(GetEsmEnablementSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessList.java similarity index 73% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessList.java index f4efb6898..a52b1c3b0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessList.java @@ -8,11 +8,11 @@ /** Get access list */ @Generated -public class GetIpAccessListRequest { +public class GetIpAccessList { /** The ID for the corresponding IP access list */ private String ipAccessListId; - public GetIpAccessListRequest setIpAccessListId(String ipAccessListId) { + public GetIpAccessList setIpAccessListId(String ipAccessListId) { this.ipAccessListId = ipAccessListId; return this; } @@ -25,7 +25,7 @@ public String getIpAccessListId() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetIpAccessListRequest that = (GetIpAccessListRequest) o; + GetIpAccessList that = (GetIpAccessList) o; return Objects.equals(ipAccessListId, that.ipAccessListId); } @@ -36,8 +36,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetIpAccessListRequest.class) - .add("ipAccessListId", ipAccessListId) - .toString(); + return new ToStringer(GetIpAccessList.class).add("ipAccessListId", ipAccessListId).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeSettingRequest.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeSettingRequest.java index 8c3805549..2998f5979 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetPersonalComputeSettingRequest.java @@ -9,7 +9,7 @@ /** Get Personal Compute setting */ @Generated -public class GetPersonalComputeRequest { +public class GetPersonalComputeSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetPersonalComputeRequest { @QueryParam("etag") private String etag; - public GetPersonalComputeRequest setEtag(String etag) { + public GetPersonalComputeSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetPersonalComputeRequest that = (GetPersonalComputeRequest) o; + GetPersonalComputeSettingRequest that = (GetPersonalComputeSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetPersonalComputeRequest.class).add("etag", etag).toString(); + return new ToStringer(GetPersonalComputeSettingRequest.class).add("etag", etag).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminsSettingRequest.java similarity index 79% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminRequest.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminsSettingRequest.java index bd667fdac..06f4c649a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetRestrictWorkspaceAdminsSettingRequest.java @@ -9,7 +9,7 @@ /** Get the restrict workspace admins setting */ @Generated -public class GetRestrictWorkspaceAdminRequest { +public class GetRestrictWorkspaceAdminsSettingRequest { /** * etag used for versioning. The response is at least as fresh as the eTag provided. This is used * for optimistic concurrency control as a way to help prevent simultaneous writes of a setting @@ -21,7 +21,7 @@ public class GetRestrictWorkspaceAdminRequest { @QueryParam("etag") private String etag; - public GetRestrictWorkspaceAdminRequest setEtag(String etag) { + public GetRestrictWorkspaceAdminsSettingRequest setEtag(String etag) { this.etag = etag; return this; } @@ -34,7 +34,7 @@ public String getEtag() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - GetRestrictWorkspaceAdminRequest that = (GetRestrictWorkspaceAdminRequest) o; + GetRestrictWorkspaceAdminsSettingRequest that = (GetRestrictWorkspaceAdminsSettingRequest) o; return Objects.equals(etag, that.etag); } @@ -45,6 +45,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(GetRestrictWorkspaceAdminRequest.class).add("etag", etag).toString(); + return new ToStringer(GetRestrictWorkspaceAdminsSettingRequest.class) + .add("etag", etag) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java index b8a4c0ac0..d20213129 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java @@ -83,7 +83,7 @@ public void delete(DeleteIpAccessListRequest request) { } public FetchIpAccessListResponse get(String ipAccessListId) { - return get(new GetIpAccessListRequest().setIpAccessListId(ipAccessListId)); + return get(new GetIpAccessList().setIpAccessListId(ipAccessListId)); } /** @@ -91,7 +91,7 @@ public FetchIpAccessListResponse get(String ipAccessListId) { * *

Gets an IP access list, specified by its list ID. */ - public FetchIpAccessListResponse get(GetIpAccessListRequest request) { + public FetchIpAccessListResponse get(GetIpAccessList request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java index 7b4b956f3..49a291cec 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java @@ -33,7 +33,7 @@ public void delete(DeleteIpAccessListRequest request) { } @Override - public FetchIpAccessListResponse get(GetIpAccessListRequest request) { + public FetchIpAccessListResponse get(GetIpAccessList request) { String path = String.format("/api/2.0/ip-access-lists/%s", request.getIpAccessListId()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsService.java index 08791e243..3222a31d5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsService.java @@ -62,7 +62,7 @@ public interface IpAccessListsService { * *

Gets an IP access list, specified by its list ID. */ - FetchIpAccessListResponse get(GetIpAccessListRequest getIpAccessListRequest); + FetchIpAccessListResponse get(GetIpAccessList getIpAccessList); /** * Get access lists. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java index 3d56ec03a..e039d64d4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java @@ -96,9 +96,10 @@ public NccAzurePrivateEndpointRule deletePrivateEndpointRule( /** * Delete a private endpoint rule. * - *

Initiates deleting a private endpoint rule. The private endpoint will be deactivated and - * will be purged after seven days of deactivation. When a private endpoint is in deactivated - * state, `deactivated` field is set to `true` and the private endpoint is not available to your + *

Initiates deleting a private endpoint rule. If the connection state is PENDING or EXPIRED, + * the private endpoint is immediately deleted. Otherwise, the private endpoint is deactivated and + * will be deleted after seven days of deactivation. When a private endpoint is deactivated, the + * `deactivated` field is set to `true` and the private endpoint is not available to your * serverless compute resources. */ public NccAzurePrivateEndpointRule deletePrivateEndpointRule( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityService.java index 6418599f0..80ba453f5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityService.java @@ -45,9 +45,10 @@ void deleteNetworkConnectivityConfiguration( /** * Delete a private endpoint rule. * - *

Initiates deleting a private endpoint rule. The private endpoint will be deactivated and - * will be purged after seven days of deactivation. When a private endpoint is in deactivated - * state, `deactivated` field is set to `true` and the private endpoint is not available to your + *

Initiates deleting a private endpoint rule. If the connection state is PENDING or EXPIRED, + * the private endpoint is immediately deleted. Otherwise, the private endpoint is deactivated and + * will be deleted after seven days of deactivation. When a private endpoint is deactivated, the + * `deactivated` field is set to `true` and the private endpoint is not available to your * serverless compute resources. */ NccAzurePrivateEndpointRule deletePrivateEndpointRule( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeAPI.java index 35370644a..df86c53f9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeAPI.java @@ -37,7 +37,7 @@ public PersonalComputeAPI(PersonalComputeService mock) { * *

Reverts back the Personal Compute setting value to default (ON) */ - public DeletePersonalComputeSettingResponse delete(DeletePersonalComputeRequest request) { + public DeletePersonalComputeSettingResponse delete(DeletePersonalComputeSettingRequest request) { return impl.delete(request); } @@ -46,7 +46,7 @@ public DeletePersonalComputeSettingResponse delete(DeletePersonalComputeRequest * *

Gets the value of the Personal Compute setting. */ - public PersonalComputeSetting get(GetPersonalComputeRequest request) { + public PersonalComputeSetting get(GetPersonalComputeSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeImpl.java index 08237fb83..1e45ec4c6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeImpl.java @@ -16,7 +16,7 @@ public PersonalComputeImpl(ApiClient apiClient) { } @Override - public DeletePersonalComputeSettingResponse delete(DeletePersonalComputeRequest request) { + public DeletePersonalComputeSettingResponse delete(DeletePersonalComputeSettingRequest request) { String path = String.format( "/api/2.0/accounts/%s/settings/types/dcp_acct_enable/names/default", @@ -27,7 +27,7 @@ public DeletePersonalComputeSettingResponse delete(DeletePersonalComputeRequest } @Override - public PersonalComputeSetting get(GetPersonalComputeRequest request) { + public PersonalComputeSetting get(GetPersonalComputeSettingRequest request) { String path = String.format( "/api/2.0/accounts/%s/settings/types/dcp_acct_enable/names/default", diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeService.java index 567118978..ba2942219 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/PersonalComputeService.java @@ -25,14 +25,14 @@ public interface PersonalComputeService { *

Reverts back the Personal Compute setting value to default (ON) */ DeletePersonalComputeSettingResponse delete( - DeletePersonalComputeRequest deletePersonalComputeRequest); + DeletePersonalComputeSettingRequest deletePersonalComputeSettingRequest); /** * Get Personal Compute setting. * *

Gets the value of the Personal Compute setting. */ - PersonalComputeSetting get(GetPersonalComputeRequest getPersonalComputeRequest); + PersonalComputeSetting get(GetPersonalComputeSettingRequest getPersonalComputeSettingRequest); /** * Update Personal Compute setting. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsAPI.java index e69be0649..1baad48a2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsAPI.java @@ -44,7 +44,7 @@ public RestrictWorkspaceAdminsAPI(RestrictWorkspaceAdminsService mock) { * response. */ public DeleteRestrictWorkspaceAdminsSettingResponse delete( - DeleteRestrictWorkspaceAdminRequest request) { + DeleteRestrictWorkspaceAdminsSettingRequest request) { return impl.delete(request); } @@ -53,7 +53,7 @@ public DeleteRestrictWorkspaceAdminsSettingResponse delete( * *

Gets the restrict workspace admins setting. */ - public RestrictWorkspaceAdminsSetting get(GetRestrictWorkspaceAdminRequest request) { + public RestrictWorkspaceAdminsSetting get(GetRestrictWorkspaceAdminsSettingRequest request) { return impl.get(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsImpl.java index 2cc33f1e7..10cafe064 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsImpl.java @@ -17,7 +17,7 @@ public RestrictWorkspaceAdminsImpl(ApiClient apiClient) { @Override public DeleteRestrictWorkspaceAdminsSettingResponse delete( - DeleteRestrictWorkspaceAdminRequest request) { + DeleteRestrictWorkspaceAdminsSettingRequest request) { String path = "/api/2.0/settings/types/restrict_workspace_admins/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); @@ -26,7 +26,7 @@ public DeleteRestrictWorkspaceAdminsSettingResponse delete( } @Override - public RestrictWorkspaceAdminsSetting get(GetRestrictWorkspaceAdminRequest request) { + public RestrictWorkspaceAdminsSetting get(GetRestrictWorkspaceAdminsSettingRequest request) { String path = "/api/2.0/settings/types/restrict_workspace_admins/names/default"; Map headers = new HashMap<>(); headers.put("Accept", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsService.java index 2f395e9a7..6e1fcd475 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/RestrictWorkspaceAdminsService.java @@ -31,7 +31,7 @@ public interface RestrictWorkspaceAdminsService { * response. */ DeleteRestrictWorkspaceAdminsSettingResponse delete( - DeleteRestrictWorkspaceAdminRequest deleteRestrictWorkspaceAdminRequest); + DeleteRestrictWorkspaceAdminsSettingRequest deleteRestrictWorkspaceAdminsSettingRequest); /** * Get the restrict workspace admins setting. @@ -39,7 +39,7 @@ DeleteRestrictWorkspaceAdminsSettingResponse delete( *

Gets the restrict workspace admins setting. */ RestrictWorkspaceAdminsSetting get( - GetRestrictWorkspaceAdminRequest getRestrictWorkspaceAdminRequest); + GetRestrictWorkspaceAdminsSettingRequest getRestrictWorkspaceAdminsSettingRequest); /** * Update the restrict workspace admins setting. diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObject.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObject.java index 381139da8..db3ddc205 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObject.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObject.java @@ -26,9 +26,17 @@ public class SharedDataObject { @JsonProperty("comment") private String comment; + /** + * The content of the notebook file when the data object type is NOTEBOOK_FILE. This should be + * base64 encoded. Required for adding a NOTEBOOK_FILE, optional for updating, ignored for other + * types. + */ + @JsonProperty("content") + private String content; + /** The type of the data object. */ @JsonProperty("data_object_type") - private String dataObjectType; + private SharedDataObjectDataObjectType dataObjectType; /** * Whether to enable or disable sharing of data history. If not specified, the default is @@ -119,12 +127,21 @@ public String getComment() { return comment; } - public SharedDataObject setDataObjectType(String dataObjectType) { + public SharedDataObject setContent(String content) { + this.content = content; + return this; + } + + public String getContent() { + return content; + } + + public SharedDataObject setDataObjectType(SharedDataObjectDataObjectType dataObjectType) { this.dataObjectType = dataObjectType; return this; } - public String getDataObjectType() { + public SharedDataObjectDataObjectType getDataObjectType() { return dataObjectType; } @@ -201,6 +218,7 @@ public boolean equals(Object o) { && Objects.equals(addedBy, that.addedBy) && Objects.equals(cdfEnabled, that.cdfEnabled) && Objects.equals(comment, that.comment) + && Objects.equals(content, that.content) && Objects.equals(dataObjectType, that.dataObjectType) && Objects.equals(historyDataSharingStatus, that.historyDataSharingStatus) && Objects.equals(name, that.name) @@ -218,6 +236,7 @@ public int hashCode() { addedBy, cdfEnabled, comment, + content, dataObjectType, historyDataSharingStatus, name, @@ -235,6 +254,7 @@ public String toString() { .add("addedBy", addedBy) .add("cdfEnabled", cdfEnabled) .add("comment", comment) + .add("content", content) .add("dataObjectType", dataObjectType) .add("historyDataSharingStatus", historyDataSharingStatus) .add("name", name) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectDataObjectType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectDataObjectType.java new file mode 100755 index 000000000..69d3ba9b8 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharedDataObjectDataObjectType.java @@ -0,0 +1,17 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.sharing; + +import com.databricks.sdk.support.Generated; + +/** The type of the data object. */ +@Generated +public enum SharedDataObjectDataObjectType { + MATERIALIZED_VIEW, + MODEL, + NOTEBOOK_FILE, + SCHEMA, + STREAMING_TABLE, + TABLE, + VIEW, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java index 627aa8edc..34800625e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java @@ -76,7 +76,7 @@ public class AlertQuery { @JsonProperty("updated_at") private String updatedAt; - /** The ID of the user who created this query. */ + /** The ID of the user who owns the query. */ @JsonProperty("user_id") private Long userId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java index 486d579ae..2b8ca46fd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Dashboard.java @@ -89,7 +89,7 @@ public class Dashboard { @JsonProperty("user") private User user; - /** The ID of the user that created and owns this dashboard. */ + /** The ID of the user who owns the dashboard. */ @JsonProperty("user_id") private Long userId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java index 5432d2c0a..f936b674c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java @@ -128,7 +128,7 @@ public class Query { @JsonProperty("user") private User user; - /** The ID of the user who created this query. */ + /** The ID of the user who owns the query. */ @JsonProperty("user_id") private Long userId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/DirectAccessVectorIndexSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/DirectAccessVectorIndexSpec.java index d2e5886ab..406639195 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/DirectAccessVectorIndexSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/DirectAccessVectorIndexSpec.java @@ -10,6 +10,10 @@ @Generated public class DirectAccessVectorIndexSpec { + /** Contains the optional model endpoint to use during query time. */ + @JsonProperty("embedding_source_columns") + private Collection embeddingSourceColumns; + /** */ @JsonProperty("embedding_vector_columns") private Collection embeddingVectorColumns; @@ -25,6 +29,16 @@ public class DirectAccessVectorIndexSpec { @JsonProperty("schema_json") private String schemaJson; + public DirectAccessVectorIndexSpec setEmbeddingSourceColumns( + Collection embeddingSourceColumns) { + this.embeddingSourceColumns = embeddingSourceColumns; + return this; + } + + public Collection getEmbeddingSourceColumns() { + return embeddingSourceColumns; + } + public DirectAccessVectorIndexSpec setEmbeddingVectorColumns( Collection embeddingVectorColumns) { this.embeddingVectorColumns = embeddingVectorColumns; @@ -49,18 +63,20 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DirectAccessVectorIndexSpec that = (DirectAccessVectorIndexSpec) o; - return Objects.equals(embeddingVectorColumns, that.embeddingVectorColumns) + return Objects.equals(embeddingSourceColumns, that.embeddingSourceColumns) + && Objects.equals(embeddingVectorColumns, that.embeddingVectorColumns) && Objects.equals(schemaJson, that.schemaJson); } @Override public int hashCode() { - return Objects.hash(embeddingVectorColumns, schemaJson); + return Objects.hash(embeddingSourceColumns, embeddingVectorColumns, schemaJson); } @Override public String toString() { return new ToStringer(DirectAccessVectorIndexSpec.class) + .add("embeddingSourceColumns", embeddingSourceColumns) .add("embeddingVectorColumns", embeddingVectorColumns) .add("schemaJson", schemaJson) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/QueryVectorIndexRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/QueryVectorIndexRequest.java index 3e7b389e8..245748834 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/QueryVectorIndexRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/QueryVectorIndexRequest.java @@ -42,6 +42,10 @@ public class QueryVectorIndexRequest { @JsonProperty("query_vector") private Collection queryVector; + /** Threshold for the approximate nearest neighbor search. Defaults to 0.0. */ + @JsonProperty("score_threshold") + private Double scoreThreshold; + public QueryVectorIndexRequest setColumns(Collection columns) { this.columns = columns; return this; @@ -96,6 +100,15 @@ public Collection getQueryVector() { return queryVector; } + public QueryVectorIndexRequest setScoreThreshold(Double scoreThreshold) { + this.scoreThreshold = scoreThreshold; + return this; + } + + public Double getScoreThreshold() { + return scoreThreshold; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -106,12 +119,14 @@ public boolean equals(Object o) { && Objects.equals(indexName, that.indexName) && Objects.equals(numResults, that.numResults) && Objects.equals(queryText, that.queryText) - && Objects.equals(queryVector, that.queryVector); + && Objects.equals(queryVector, that.queryVector) + && Objects.equals(scoreThreshold, that.scoreThreshold); } @Override public int hashCode() { - return Objects.hash(columns, filtersJson, indexName, numResults, queryText, queryVector); + return Objects.hash( + columns, filtersJson, indexName, numResults, queryText, queryVector, scoreThreshold); } @Override @@ -123,6 +138,7 @@ public String toString() { .add("numResults", numResults) .add("queryText", queryText) .add("queryVector", queryVector) + .add("scoreThreshold", scoreThreshold) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsAPI.java index 5786ad7e2..bf54b7c8e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsAPI.java @@ -41,7 +41,7 @@ public void createScope(String scope) { * Create a new secret scope. * *

The scope name must consist of alphanumeric characters, dashes, underscores, and periods, - * and may not exceed 128 characters. The maximum number of scopes in a workspace is 100. + * and may not exceed 128 characters. */ public void createScope(CreateScope request) { impl.createScope(request); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsService.java index 397dc40dc..697993a9c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/SecretsService.java @@ -24,7 +24,7 @@ public interface SecretsService { * Create a new secret scope. * *

The scope name must consist of alphanumeric characters, dashes, underscores, and periods, - * and may not exceed 128 characters. The maximum number of scopes in a workspace is 100. + * and may not exceed 128 characters. */ void createScope(CreateScope createScope); diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index e6f4ce281..16a51b662 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.20.0 + 0.21.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index b52e006ca..d69b5bd13 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.20.0 + 0.21.0 com.fasterxml.jackson.datatype diff --git a/pom.xml b/pom.xml index 282bf91ea..4958fbe1b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.20.0 + 0.21.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for