diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index bba9504f1..0aa4b1028 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -d38528c3e47dd81c9bdbd918272a3e49d36e09ce \ No newline at end of file +94684175b8bd65f8701f89729351f8069e8309c9 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 8ac0f8b9c..366ddc0d8 100755 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,6 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/ErrorMapper.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/ErrorOverrides.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/Aborted.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/AlreadyExists.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/platform/BadRequest.java linguist-generated=true @@ -85,7 +84,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ArtifactTyp 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/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/AzureManagedIdentityRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentityResponse.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 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CancelRefreshResponse.java linguist-generated=true @@ -259,19 +259,20 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersio databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedule.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedulePauseStatus.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetric.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetricType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDataClassificationConfig.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestinations.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileType.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileTypeProblemType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestination.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLog.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProblemType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInfoStatus.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotificationsConfig.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetric.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetricType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotifications.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfoState.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshotProfileType.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeriesProfileType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfoTrigger.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshot.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeries.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/NamedTableConstraint.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTable.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/OnlineTableSpec.java linguist-generated=true @@ -354,7 +355,9 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateWorks databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredential.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidateStorageCredentialResponse.java linguist-generated=true 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/ValidationResultAwsOperation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAzureOperation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultGcpOperation.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/VolumeInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumeType.java linguist-generated=true @@ -380,6 +383,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CancelRespo databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ChangeClusterOwner.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ChangeClusterOwnerResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClientsTypes.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CloneCluster.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CloudProviderNodeInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CloudProviderNodeStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClusterAccessControlRequest.java linguist-generated=true @@ -418,8 +422,6 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CommandExec databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CommandStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CommandStatusRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CommandStatusResponse.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpec.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpecKind.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ContextStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ContextStatusRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ContextStatusResponse.java linguist-generated=true @@ -460,6 +462,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditInstanc databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditPolicy.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditPolicyResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EventDetails.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EventDetailsCause.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EventType.java linguist-generated=true @@ -759,7 +762,6 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UsersService.ja databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentImpl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentService.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentsUpdated.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspacePermission.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspacePermissions.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseJob.java linguist-generated=true @@ -804,11 +806,11 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Job.java lingu databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobAccessControlRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobAccessControlResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCluster.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompute.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobDeployment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobDeploymentKind.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobEditMode.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobEmailNotifications.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobEnvironment.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobNotificationSettings.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobParameter.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobParameterDefinition.java linguist-generated=true @@ -890,7 +892,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SqlTaskSubscri databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitRun.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitRunResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/SubmitTask.java linguist-generated=true -databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableTriggerConfiguration.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableUpdateTriggerConfiguration.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TaskDependency.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TaskEmailNotifications.java linguist-generated=true @@ -905,6 +907,173 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ViewType.java databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ViewsToExport.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Webhook.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/WebhookNotifications.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Category.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerTerms.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ContactInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Cost.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateInstallationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequestResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefresh.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefreshInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeltaSharingRecipientType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Exchange.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilter.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilterType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeListing.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParent.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParentType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileStatus.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FilterType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FulfillmentType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetLatestVersionProviderAnalyticsDashboardResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Installation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationDetail.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationStatus.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProviderAnalyticsDashboardResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Listing.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingDetail.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingFulfillment.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSetting.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingShareType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingStatus.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSummary.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTag.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTagType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/MarketplaceFileType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequestStatus.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderAnalyticsDashboard.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersImpl.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RegionInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInstallation.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ShareInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SharedDataObject.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBy.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBySpec.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortOrder.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenDetail.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderResponse.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Visibility.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/VisibilityFilter.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Activity.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ActivityAction.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ActivityType.java linguist-generated=true diff --git a/CHANGELOG.md b/CHANGELOG.md index f5250d931..00d1251dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,127 @@ # Version changelog +## 0.23.0 + +### Improvements and Bug Fixes +* Introduce more specific exceptions, like `NotFound`, `AlreadyExists`, `BadRequest`, `PermissionDenied`, `InternalError`, and others ([#185](https://github.com/databricks/databricks-sdk-java/pull/185), [#257](https://github.com/databricks/databricks-sdk-java/pull/257)). +* Lock around field accessibility changes ([#247](https://github.com/databricks/databricks-sdk-java/pull/247)). +* Fix Changelog ([#258](https://github.com/databricks/databricks-sdk-java/pull/258)). +* Support post with no body for APIs ([#262](https://github.com/databricks/databricks-sdk-java/pull/262)). + +API Changes: + + * Changed `cancelRefresh()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `create()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `delete()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `get()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `getRefresh()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `listRefreshes()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `runRefresh()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Changed `update()` method for `workspaceClient.lakehouseMonitors()` service with new required argument order. + * Removed `com.databricks.sdk.service.catalog.AzureManagedIdentity` class. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.CancelRefreshRequest`. + * Added `tableName` field for `com.databricks.sdk.service.catalog.CancelRefreshRequest`. + * Changed `customMetrics` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `com.databricks.sdk.service.catalog.MonitorMetricList` class. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.CreateMonitor`. + * Changed `inferenceLog` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `com.databricks.sdk.service.catalog.MonitorInferenceLog` class. + * Changed `notifications` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `com.databricks.sdk.service.catalog.MonitorNotifications` class. + * Changed `snapshot` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `Object` class. + * Changed `timeSeries` field for `com.databricks.sdk.service.catalog.CreateMonitor` to `com.databricks.sdk.service.catalog.MonitorTimeSeries` class. + * Added `tableName` field for `com.databricks.sdk.service.catalog.CreateMonitor`. + * Changed `azureManagedIdentity` field for `com.databricks.sdk.service.catalog.CreateStorageCredential` to `com.databricks.sdk.service.catalog.AzureManagedIdentityRequest` class. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.DeleteLakehouseMonitorRequest`. + * Added `tableName` field for `com.databricks.sdk.service.catalog.DeleteLakehouseMonitorRequest`. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.GetLakehouseMonitorRequest`. + * Added `tableName` field for `com.databricks.sdk.service.catalog.GetLakehouseMonitorRequest`. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.GetRefreshRequest`. + * Added `tableName` field for `com.databricks.sdk.service.catalog.GetRefreshRequest`. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.ListRefreshesRequest`. + * Added `tableName` field for `com.databricks.sdk.service.catalog.ListRefreshesRequest`. + * Changed `quartzCronExpression` field for `com.databricks.sdk.service.catalog.MonitorCronSchedule` to be required. + * Changed `timezoneId` field for `com.databricks.sdk.service.catalog.MonitorCronSchedule` to be required. + * Removed `com.databricks.sdk.service.catalog.MonitorCustomMetric` class. + * Removed `com.databricks.sdk.service.catalog.MonitorCustomMetricType` class. + * Removed `com.databricks.sdk.service.catalog.MonitorDestinations` class. + * Removed `com.databricks.sdk.service.catalog.MonitorInferenceLogProfileType` class. + * Removed `com.databricks.sdk.service.catalog.MonitorInferenceLogProfileTypeProblemType` class. + * Changed `customMetrics` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `com.databricks.sdk.service.catalog.MonitorMetricList` class. + * Changed `driftMetricsTableName` field for `com.databricks.sdk.service.catalog.MonitorInfo` to be required. + * Changed `inferenceLog` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `com.databricks.sdk.service.catalog.MonitorInferenceLog` class. + * Changed `monitorVersion` field for `com.databricks.sdk.service.catalog.MonitorInfo` to be required. + * Changed `notifications` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `com.databricks.sdk.service.catalog.MonitorNotifications` class. + * Changed `profileMetricsTableName` field for `com.databricks.sdk.service.catalog.MonitorInfo` to be required. + * Changed `snapshot` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `Object` class. + * Changed `status` field for `com.databricks.sdk.service.catalog.MonitorInfo` to be required. + * Changed `tableName` field for `com.databricks.sdk.service.catalog.MonitorInfo` to be required. + * Changed `timeSeries` field for `com.databricks.sdk.service.catalog.MonitorInfo` to `com.databricks.sdk.service.catalog.MonitorTimeSeries` class. + * Removed `com.databricks.sdk.service.catalog.MonitorNotificationsConfig` class. + * Changed `refreshId` field for `com.databricks.sdk.service.catalog.MonitorRefreshInfo` to be required. + * Changed `startTimeMs` field for `com.databricks.sdk.service.catalog.MonitorRefreshInfo` to be required. + * Changed `state` field for `com.databricks.sdk.service.catalog.MonitorRefreshInfo` to be required. + * Added `trigger` field for `com.databricks.sdk.service.catalog.MonitorRefreshInfo`. + * Removed `Object` class. + * Removed `com.databricks.sdk.service.catalog.MonitorTimeSeriesProfileType` class. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.RunRefreshRequest`. + * Added `tableName` field for `com.databricks.sdk.service.catalog.RunRefreshRequest`. + * Changed `azureManagedIdentity` field for `com.databricks.sdk.service.catalog.StorageCredentialInfo` to `com.databricks.sdk.service.catalog.AzureManagedIdentityResponse` class. + * Removed `name` field for `com.databricks.sdk.service.catalog.TableRowFilter`. + * Added `functionName` field for `com.databricks.sdk.service.catalog.TableRowFilter`. + * Changed `customMetrics` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `com.databricks.sdk.service.catalog.MonitorMetricList` class. + * Removed `fullName` field for `com.databricks.sdk.service.catalog.UpdateMonitor`. + * Changed `inferenceLog` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `com.databricks.sdk.service.catalog.MonitorInferenceLog` class. + * Changed `notifications` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `com.databricks.sdk.service.catalog.MonitorNotifications` class. + * Changed `snapshot` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `Object` class. + * Changed `timeSeries` field for `com.databricks.sdk.service.catalog.UpdateMonitor` to `com.databricks.sdk.service.catalog.MonitorTimeSeries` class. + * Added `tableName` field for `com.databricks.sdk.service.catalog.UpdateMonitor`. + * Changed `azureManagedIdentity` field for `com.databricks.sdk.service.catalog.UpdateStorageCredential` to `com.databricks.sdk.service.catalog.AzureManagedIdentityResponse` class. + * Changed `azureManagedIdentity` field for `com.databricks.sdk.service.catalog.ValidateStorageCredential` to `com.databricks.sdk.service.catalog.AzureManagedIdentityRequest` class. + * Removed `operation` field for `com.databricks.sdk.service.catalog.ValidationResult`. + * Added `awsOperation` field for `com.databricks.sdk.service.catalog.ValidationResult`. + * Added `azureOperation` field for `com.databricks.sdk.service.catalog.ValidationResult`. + * Added `gcpOperation` field for `com.databricks.sdk.service.catalog.ValidationResult`. + * Removed `com.databricks.sdk.service.catalog.ValidationResultOperation` class. + * Added `com.databricks.sdk.service.catalog.AzureManagedIdentityRequest` class. + * Added `com.databricks.sdk.service.catalog.AzureManagedIdentityResponse` class. + * Added `com.databricks.sdk.service.catalog.MonitorDestination` class. + * Added `com.databricks.sdk.service.catalog.MonitorInferenceLog` class. + * Added `com.databricks.sdk.service.catalog.MonitorInferenceLogProblemType` class. + * Added `com.databricks.sdk.service.catalog.MonitorMetric` class. + * Added `com.databricks.sdk.service.catalog.MonitorMetricType` class. + * Added `com.databricks.sdk.service.catalog.MonitorNotifications` class. + * Added `com.databricks.sdk.service.catalog.MonitorRefreshInfoTrigger` class. + * Added `Object` class. + * Added `com.databricks.sdk.service.catalog.MonitorTimeSeries` class. + * Added `com.databricks.sdk.service.catalog.ValidationResultAwsOperation` class. + * Added `com.databricks.sdk.service.catalog.ValidationResultAzureOperation` class. + * Added `com.databricks.sdk.service.catalog.ValidationResultGcpOperation` class. + * Added `cloneFrom` field for `com.databricks.sdk.service.compute.ClusterSpec`. + * Removed `com.databricks.sdk.service.compute.ComputeSpec` class. + * Removed `com.databricks.sdk.service.compute.ComputeSpecKind` class. + * Added `cloneFrom` field for `com.databricks.sdk.service.compute.CreateCluster`. + * Added `cloneFrom` field for `com.databricks.sdk.service.compute.EditCluster`. + * Added `com.databricks.sdk.service.compute.CloneCluster` class. + * Added `com.databricks.sdk.service.compute.Environment` class. + * Changed `update()` method for `accountClient.workspaceAssignment()` service to return `com.databricks.sdk.service.iam.PermissionAssignment` class. + * Removed `Object` class. + * Removed `computeKey` field for `com.databricks.sdk.service.jobs.ClusterSpec`. + * Removed `compute` field for `com.databricks.sdk.service.jobs.CreateJob`. + * Added `environments` field for `com.databricks.sdk.service.jobs.CreateJob`. + * Removed `com.databricks.sdk.service.jobs.JobCompute` class. + * Removed `compute` field for `com.databricks.sdk.service.jobs.JobSettings`. + * Added `environments` field for `com.databricks.sdk.service.jobs.JobSettings`. + * Removed `computeKey` field for `com.databricks.sdk.service.jobs.RunTask`. + * Removed `com.databricks.sdk.service.jobs.TableTriggerConfiguration` class. + * Removed `computeKey` field for `com.databricks.sdk.service.jobs.Task`. + * Added `environmentKey` field for `com.databricks.sdk.service.jobs.Task`. + * Changed `table` field for `com.databricks.sdk.service.jobs.TriggerSettings` to `com.databricks.sdk.service.jobs.TableUpdateTriggerConfiguration` class. + * Changed `tableUpdate` field for `com.databricks.sdk.service.jobs.TriggerSettings` to `com.databricks.sdk.service.jobs.TableUpdateTriggerConfiguration` class. + * Added `com.databricks.sdk.service.jobs.JobEnvironment` class. + * Added `com.databricks.sdk.service.jobs.TableUpdateTriggerConfiguration` class. + * Added `com.databricks.sdk.service.marketplace` package. + +OpenAPI SHA: 94684175b8bd65f8701f89729351f8069e8309c9, Date: 2024-04-11 + + ## 0.22.0 Improvements and Bug Fixes diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index 7cbb3353c..f22a783e6 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.22.0 + 0.23.0 databricks-sdk-java diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java index 4c59e01c3..90a6c6027 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java @@ -80,6 +80,30 @@ import com.databricks.sdk.service.iam.UsersService; import com.databricks.sdk.service.jobs.JobsAPI; import com.databricks.sdk.service.jobs.JobsService; +import com.databricks.sdk.service.marketplace.ConsumerFulfillmentsAPI; +import com.databricks.sdk.service.marketplace.ConsumerFulfillmentsService; +import com.databricks.sdk.service.marketplace.ConsumerInstallationsAPI; +import com.databricks.sdk.service.marketplace.ConsumerInstallationsService; +import com.databricks.sdk.service.marketplace.ConsumerListingsAPI; +import com.databricks.sdk.service.marketplace.ConsumerListingsService; +import com.databricks.sdk.service.marketplace.ConsumerPersonalizationRequestsAPI; +import com.databricks.sdk.service.marketplace.ConsumerPersonalizationRequestsService; +import com.databricks.sdk.service.marketplace.ConsumerProvidersAPI; +import com.databricks.sdk.service.marketplace.ConsumerProvidersService; +import com.databricks.sdk.service.marketplace.ProviderExchangeFiltersAPI; +import com.databricks.sdk.service.marketplace.ProviderExchangeFiltersService; +import com.databricks.sdk.service.marketplace.ProviderExchangesAPI; +import com.databricks.sdk.service.marketplace.ProviderExchangesService; +import com.databricks.sdk.service.marketplace.ProviderFilesAPI; +import com.databricks.sdk.service.marketplace.ProviderFilesService; +import com.databricks.sdk.service.marketplace.ProviderListingsAPI; +import com.databricks.sdk.service.marketplace.ProviderListingsService; +import com.databricks.sdk.service.marketplace.ProviderPersonalizationRequestsAPI; +import com.databricks.sdk.service.marketplace.ProviderPersonalizationRequestsService; +import com.databricks.sdk.service.marketplace.ProviderProviderAnalyticsDashboardsAPI; +import com.databricks.sdk.service.marketplace.ProviderProviderAnalyticsDashboardsService; +import com.databricks.sdk.service.marketplace.ProviderProvidersAPI; +import com.databricks.sdk.service.marketplace.ProviderProvidersService; import com.databricks.sdk.service.ml.ExperimentsAPI; import com.databricks.sdk.service.ml.ExperimentsService; import com.databricks.sdk.service.ml.ModelRegistryAPI; @@ -161,6 +185,11 @@ public class WorkspaceClient { private ClustersExt clustersAPI; private CommandExecutionAPI commandExecutionAPI; private ConnectionsAPI connectionsAPI; + private ConsumerFulfillmentsAPI consumerFulfillmentsAPI; + private ConsumerInstallationsAPI consumerInstallationsAPI; + private ConsumerListingsAPI consumerListingsAPI; + private ConsumerPersonalizationRequestsAPI consumerPersonalizationRequestsAPI; + private ConsumerProvidersAPI consumerProvidersAPI; private CredentialsManagerAPI credentialsManagerAPI; private CurrentUserAPI currentUserAPI; private DashboardWidgetsAPI dashboardWidgetsAPI; @@ -191,6 +220,13 @@ public class WorkspaceClient { private PermissionsAPI permissionsAPI; private PipelinesAPI pipelinesAPI; private PolicyFamiliesAPI policyFamiliesAPI; + private ProviderExchangeFiltersAPI providerExchangeFiltersAPI; + private ProviderExchangesAPI providerExchangesAPI; + private ProviderFilesAPI providerFilesAPI; + private ProviderListingsAPI providerListingsAPI; + private ProviderPersonalizationRequestsAPI providerPersonalizationRequestsAPI; + private ProviderProviderAnalyticsDashboardsAPI providerProviderAnalyticsDashboardsAPI; + private ProviderProvidersAPI providerProvidersAPI; private ProvidersAPI providersAPI; private QueriesAPI queriesAPI; private QueryHistoryAPI queryHistoryAPI; @@ -239,6 +275,11 @@ public WorkspaceClient(DatabricksConfig config) { clustersAPI = new ClustersExt(apiClient); commandExecutionAPI = new CommandExecutionAPI(apiClient); connectionsAPI = new ConnectionsAPI(apiClient); + consumerFulfillmentsAPI = new ConsumerFulfillmentsAPI(apiClient); + consumerInstallationsAPI = new ConsumerInstallationsAPI(apiClient); + consumerListingsAPI = new ConsumerListingsAPI(apiClient); + consumerPersonalizationRequestsAPI = new ConsumerPersonalizationRequestsAPI(apiClient); + consumerProvidersAPI = new ConsumerProvidersAPI(apiClient); credentialsManagerAPI = new CredentialsManagerAPI(apiClient); currentUserAPI = new CurrentUserAPI(apiClient); dashboardWidgetsAPI = new DashboardWidgetsAPI(apiClient); @@ -269,6 +310,13 @@ public WorkspaceClient(DatabricksConfig config) { permissionsAPI = new PermissionsAPI(apiClient); pipelinesAPI = new PipelinesAPI(apiClient); policyFamiliesAPI = new PolicyFamiliesAPI(apiClient); + providerExchangeFiltersAPI = new ProviderExchangeFiltersAPI(apiClient); + providerExchangesAPI = new ProviderExchangesAPI(apiClient); + providerFilesAPI = new ProviderFilesAPI(apiClient); + providerListingsAPI = new ProviderListingsAPI(apiClient); + providerPersonalizationRequestsAPI = new ProviderPersonalizationRequestsAPI(apiClient); + providerProviderAnalyticsDashboardsAPI = new ProviderProviderAnalyticsDashboardsAPI(apiClient); + providerProvidersAPI = new ProviderProvidersAPI(apiClient); providersAPI = new ProvidersAPI(apiClient); queriesAPI = new QueriesAPI(apiClient); queryHistoryAPI = new QueryHistoryAPI(apiClient); @@ -447,6 +495,40 @@ public ConnectionsAPI connections() { return connectionsAPI; } + /** Fulfillments are entities that allow consumers to preview installations. */ + public ConsumerFulfillmentsAPI consumerFulfillments() { + return consumerFulfillmentsAPI; + } + + /** + * Installations are entities that allow consumers to interact with Databricks Marketplace + * listings. + */ + public ConsumerInstallationsAPI consumerInstallations() { + return consumerInstallationsAPI; + } + + /** + * Listings are the core entities in the Marketplace. They represent the products that are + * available for consumption. + */ + public ConsumerListingsAPI consumerListings() { + return consumerListingsAPI; + } + + /** + * Personalization Requests allow customers to interact with the individualized Marketplace + * listing flow. + */ + public ConsumerPersonalizationRequestsAPI consumerPersonalizationRequests() { + return consumerPersonalizationRequestsAPI; + } + + /** Providers are the entities that publish listings to the Marketplace. */ + public ConsumerProvidersAPI consumerProviders() { + return consumerProvidersAPI; + } + /** * Credentials manager interacts with with Identity Providers to to perform token exchanges using * stored credentials and refresh tokens. @@ -909,6 +991,52 @@ public PolicyFamiliesAPI policyFamilies() { return policyFamiliesAPI; } + /** Marketplace exchanges filters curate which groups can access an exchange. */ + public ProviderExchangeFiltersAPI providerExchangeFilters() { + return providerExchangeFiltersAPI; + } + + /** + * Marketplace exchanges allow providers to share their listings with a curated set of customers. + */ + public ProviderExchangesAPI providerExchanges() { + return providerExchangesAPI; + } + + /** + * Marketplace offers a set of file APIs for various purposes such as preview notebooks and + * provider icons. + */ + public ProviderFilesAPI providerFiles() { + return providerFilesAPI; + } + + /** + * Listings are the core entities in the Marketplace. They represent the products that are + * available for consumption. + */ + public ProviderListingsAPI providerListings() { + return providerListingsAPI; + } + + /** + * Personalization requests are an alternate to instantly available listings. Control the + * lifecycle of personalized solutions. + */ + public ProviderPersonalizationRequestsAPI providerPersonalizationRequests() { + return providerPersonalizationRequestsAPI; + } + + /** Manage templated analytics solution for providers. */ + public ProviderProviderAnalyticsDashboardsAPI providerProviderAnalyticsDashboards() { + return providerProviderAnalyticsDashboardsAPI; + } + + /** Providers are entities that manage assets in Marketplace. */ + public ProviderProvidersAPI providerProviders() { + return providerProvidersAPI; + } + /** * A data provider is an object representing the organization in the real world who shares the * data. A provider contains shares which further contain the shared data. @@ -1461,6 +1589,67 @@ public WorkspaceClient withConnectionsAPI(ConnectionsAPI connections) { return this; } + /** Replace the default ConsumerFulfillmentsService with a custom implementation. */ + public WorkspaceClient withConsumerFulfillmentsImpl( + ConsumerFulfillmentsService consumerFulfillments) { + return this.withConsumerFulfillmentsAPI(new ConsumerFulfillmentsAPI(consumerFulfillments)); + } + + /** Replace the default ConsumerFulfillmentsAPI with a custom implementation. */ + public WorkspaceClient withConsumerFulfillmentsAPI(ConsumerFulfillmentsAPI consumerFulfillments) { + this.consumerFulfillmentsAPI = consumerFulfillments; + return this; + } + + /** Replace the default ConsumerInstallationsService with a custom implementation. */ + public WorkspaceClient withConsumerInstallationsImpl( + ConsumerInstallationsService consumerInstallations) { + return this.withConsumerInstallationsAPI(new ConsumerInstallationsAPI(consumerInstallations)); + } + + /** Replace the default ConsumerInstallationsAPI with a custom implementation. */ + public WorkspaceClient withConsumerInstallationsAPI( + ConsumerInstallationsAPI consumerInstallations) { + this.consumerInstallationsAPI = consumerInstallations; + return this; + } + + /** Replace the default ConsumerListingsService with a custom implementation. */ + public WorkspaceClient withConsumerListingsImpl(ConsumerListingsService consumerListings) { + return this.withConsumerListingsAPI(new ConsumerListingsAPI(consumerListings)); + } + + /** Replace the default ConsumerListingsAPI with a custom implementation. */ + public WorkspaceClient withConsumerListingsAPI(ConsumerListingsAPI consumerListings) { + this.consumerListingsAPI = consumerListings; + return this; + } + + /** Replace the default ConsumerPersonalizationRequestsService with a custom implementation. */ + public WorkspaceClient withConsumerPersonalizationRequestsImpl( + ConsumerPersonalizationRequestsService consumerPersonalizationRequests) { + return this.withConsumerPersonalizationRequestsAPI( + new ConsumerPersonalizationRequestsAPI(consumerPersonalizationRequests)); + } + + /** Replace the default ConsumerPersonalizationRequestsAPI with a custom implementation. */ + public WorkspaceClient withConsumerPersonalizationRequestsAPI( + ConsumerPersonalizationRequestsAPI consumerPersonalizationRequests) { + this.consumerPersonalizationRequestsAPI = consumerPersonalizationRequests; + return this; + } + + /** Replace the default ConsumerProvidersService with a custom implementation. */ + public WorkspaceClient withConsumerProvidersImpl(ConsumerProvidersService consumerProviders) { + return this.withConsumerProvidersAPI(new ConsumerProvidersAPI(consumerProviders)); + } + + /** Replace the default ConsumerProvidersAPI with a custom implementation. */ + public WorkspaceClient withConsumerProvidersAPI(ConsumerProvidersAPI consumerProviders) { + this.consumerProvidersAPI = consumerProviders; + return this; + } + /** Replace the default CredentialsManagerService with a custom implementation. */ public WorkspaceClient withCredentialsManagerImpl(CredentialsManagerService credentialsManager) { return this.withCredentialsManagerAPI(new CredentialsManagerAPI(credentialsManager)); @@ -1792,6 +1981,94 @@ public WorkspaceClient withPolicyFamiliesAPI(PolicyFamiliesAPI policyFamilies) { return this; } + /** Replace the default ProviderExchangeFiltersService with a custom implementation. */ + public WorkspaceClient withProviderExchangeFiltersImpl( + ProviderExchangeFiltersService providerExchangeFilters) { + return this.withProviderExchangeFiltersAPI( + new ProviderExchangeFiltersAPI(providerExchangeFilters)); + } + + /** Replace the default ProviderExchangeFiltersAPI with a custom implementation. */ + public WorkspaceClient withProviderExchangeFiltersAPI( + ProviderExchangeFiltersAPI providerExchangeFilters) { + this.providerExchangeFiltersAPI = providerExchangeFilters; + return this; + } + + /** Replace the default ProviderExchangesService with a custom implementation. */ + public WorkspaceClient withProviderExchangesImpl(ProviderExchangesService providerExchanges) { + return this.withProviderExchangesAPI(new ProviderExchangesAPI(providerExchanges)); + } + + /** Replace the default ProviderExchangesAPI with a custom implementation. */ + public WorkspaceClient withProviderExchangesAPI(ProviderExchangesAPI providerExchanges) { + this.providerExchangesAPI = providerExchanges; + return this; + } + + /** Replace the default ProviderFilesService with a custom implementation. */ + public WorkspaceClient withProviderFilesImpl(ProviderFilesService providerFiles) { + return this.withProviderFilesAPI(new ProviderFilesAPI(providerFiles)); + } + + /** Replace the default ProviderFilesAPI with a custom implementation. */ + public WorkspaceClient withProviderFilesAPI(ProviderFilesAPI providerFiles) { + this.providerFilesAPI = providerFiles; + return this; + } + + /** Replace the default ProviderListingsService with a custom implementation. */ + public WorkspaceClient withProviderListingsImpl(ProviderListingsService providerListings) { + return this.withProviderListingsAPI(new ProviderListingsAPI(providerListings)); + } + + /** Replace the default ProviderListingsAPI with a custom implementation. */ + public WorkspaceClient withProviderListingsAPI(ProviderListingsAPI providerListings) { + this.providerListingsAPI = providerListings; + return this; + } + + /** Replace the default ProviderPersonalizationRequestsService with a custom implementation. */ + public WorkspaceClient withProviderPersonalizationRequestsImpl( + ProviderPersonalizationRequestsService providerPersonalizationRequests) { + return this.withProviderPersonalizationRequestsAPI( + new ProviderPersonalizationRequestsAPI(providerPersonalizationRequests)); + } + + /** Replace the default ProviderPersonalizationRequestsAPI with a custom implementation. */ + public WorkspaceClient withProviderPersonalizationRequestsAPI( + ProviderPersonalizationRequestsAPI providerPersonalizationRequests) { + this.providerPersonalizationRequestsAPI = providerPersonalizationRequests; + return this; + } + + /** + * Replace the default ProviderProviderAnalyticsDashboardsService with a custom implementation. + */ + public WorkspaceClient withProviderProviderAnalyticsDashboardsImpl( + ProviderProviderAnalyticsDashboardsService providerProviderAnalyticsDashboards) { + return this.withProviderProviderAnalyticsDashboardsAPI( + new ProviderProviderAnalyticsDashboardsAPI(providerProviderAnalyticsDashboards)); + } + + /** Replace the default ProviderProviderAnalyticsDashboardsAPI with a custom implementation. */ + public WorkspaceClient withProviderProviderAnalyticsDashboardsAPI( + ProviderProviderAnalyticsDashboardsAPI providerProviderAnalyticsDashboards) { + this.providerProviderAnalyticsDashboardsAPI = providerProviderAnalyticsDashboards; + return this; + } + + /** Replace the default ProviderProvidersService with a custom implementation. */ + public WorkspaceClient withProviderProvidersImpl(ProviderProvidersService providerProviders) { + return this.withProviderProvidersAPI(new ProviderProvidersAPI(providerProviders)); + } + + /** Replace the default ProviderProvidersAPI with a custom implementation. */ + public WorkspaceClient withProviderProvidersAPI(ProviderProvidersAPI providerProviders) { + this.providerProvidersAPI = providerProviders; + return this; + } + /** Replace the default ProvidersService with a custom implementation. */ public WorkspaceClient withProvidersImpl(ProvidersService providers) { return this.withProvidersAPI(new ProvidersAPI(providers)); 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 4c932cdb0..176051091 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.22.0"; + private static final String version = "0.23.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/AzureManagedIdentityRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentityRequest.java new file mode 100755 index 000000000..36122a638 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentityRequest.java @@ -0,0 +1,68 @@ +// 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 AzureManagedIdentityRequest { + /** + * The Azure resource ID of the Azure Databricks Access Connector. Use the format + * /subscriptions/{guid}/resourceGroups/{rg-name}/providers/Microsoft.Databricks/accessConnectors/{connector-name}. + */ + @JsonProperty("access_connector_id") + private String accessConnectorId; + + /** + * The Azure resource ID of the managed identity. Use the format + * /subscriptions/{guid}/resourceGroups/{rg-name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identity-name}. + * This is only available for user-assgined identities. For system-assigned identities, the + * access_connector_id is used to identify the identity. If this field is not provided, then we + * assume the AzureManagedIdentity is for a system-assigned identity. + */ + @JsonProperty("managed_identity_id") + private String managedIdentityId; + + public AzureManagedIdentityRequest setAccessConnectorId(String accessConnectorId) { + this.accessConnectorId = accessConnectorId; + return this; + } + + public String getAccessConnectorId() { + return accessConnectorId; + } + + public AzureManagedIdentityRequest setManagedIdentityId(String managedIdentityId) { + this.managedIdentityId = managedIdentityId; + return this; + } + + public String getManagedIdentityId() { + return managedIdentityId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AzureManagedIdentityRequest that = (AzureManagedIdentityRequest) o; + return Objects.equals(accessConnectorId, that.accessConnectorId) + && Objects.equals(managedIdentityId, that.managedIdentityId); + } + + @Override + public int hashCode() { + return Objects.hash(accessConnectorId, managedIdentityId); + } + + @Override + public String toString() { + return new ToStringer(AzureManagedIdentityRequest.class) + .add("accessConnectorId", accessConnectorId) + .add("managedIdentityId", managedIdentityId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentity.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentityResponse.java similarity index 84% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentity.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentityResponse.java index 2ea7f739c..91fbf7d9c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentity.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AzureManagedIdentityResponse.java @@ -8,7 +8,7 @@ import java.util.Objects; @Generated -public class AzureManagedIdentity { +public class AzureManagedIdentityResponse { /** * The Azure resource ID of the Azure Databricks Access Connector. Use the format * /subscriptions/{guid}/resourceGroups/{rg-name}/providers/Microsoft.Databricks/accessConnectors/{connector-name}. @@ -30,7 +30,7 @@ public class AzureManagedIdentity { @JsonProperty("managed_identity_id") private String managedIdentityId; - public AzureManagedIdentity setAccessConnectorId(String accessConnectorId) { + public AzureManagedIdentityResponse setAccessConnectorId(String accessConnectorId) { this.accessConnectorId = accessConnectorId; return this; } @@ -39,7 +39,7 @@ public String getAccessConnectorId() { return accessConnectorId; } - public AzureManagedIdentity setCredentialId(String credentialId) { + public AzureManagedIdentityResponse setCredentialId(String credentialId) { this.credentialId = credentialId; return this; } @@ -48,7 +48,7 @@ public String getCredentialId() { return credentialId; } - public AzureManagedIdentity setManagedIdentityId(String managedIdentityId) { + public AzureManagedIdentityResponse setManagedIdentityId(String managedIdentityId) { this.managedIdentityId = managedIdentityId; return this; } @@ -61,7 +61,7 @@ public String getManagedIdentityId() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - AzureManagedIdentity that = (AzureManagedIdentity) o; + AzureManagedIdentityResponse that = (AzureManagedIdentityResponse) o; return Objects.equals(accessConnectorId, that.accessConnectorId) && Objects.equals(credentialId, that.credentialId) && Objects.equals(managedIdentityId, that.managedIdentityId); @@ -74,7 +74,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(AzureManagedIdentity.class) + return new ToStringer(AzureManagedIdentityResponse.class) .add("accessConnectorId", accessConnectorId) .add("credentialId", credentialId) .add("managedIdentityId", managedIdentityId) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CancelRefreshRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CancelRefreshRequest.java index 308993366..edaee94b0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CancelRefreshRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CancelRefreshRequest.java @@ -9,20 +9,11 @@ /** Cancel refresh */ @Generated public class CancelRefreshRequest { - /** Full name of the table. */ - private String fullName; - /** ID of the refresh. */ private String refreshId; - public CancelRefreshRequest setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - public String getFullName() { - return fullName; - } + /** Full name of the table. */ + private String tableName; public CancelRefreshRequest setRefreshId(String refreshId) { this.refreshId = refreshId; @@ -33,24 +24,33 @@ public String getRefreshId() { return refreshId; } + public CancelRefreshRequest setTableName(String tableName) { + this.tableName = tableName; + return this; + } + + public String getTableName() { + return tableName; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CancelRefreshRequest that = (CancelRefreshRequest) o; - return Objects.equals(fullName, that.fullName) && Objects.equals(refreshId, that.refreshId); + return Objects.equals(refreshId, that.refreshId) && Objects.equals(tableName, that.tableName); } @Override public int hashCode() { - return Objects.hash(fullName, refreshId); + return Objects.hash(refreshId, tableName); } @Override public String toString() { return new ToStringer(CancelRefreshRequest.class) - .add("fullName", fullName) .add("refreshId", refreshId) + .add("tableName", tableName) .toString(); } } 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 588a5cca5..d7aa83947 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 @@ -27,22 +27,19 @@ public class CreateMonitor { * time windows). */ @JsonProperty("custom_metrics") - private Collection customMetrics; + private Collection customMetrics; /** The data classification config for the monitor. */ @JsonProperty("data_classification_config") private MonitorDataClassificationConfig dataClassificationConfig; - /** Full name of the table. */ - private String fullName; - /** Configuration for monitoring inference logs. */ @JsonProperty("inference_log") - private MonitorInferenceLogProfileType inferenceLog; + private MonitorInferenceLog inferenceLog; /** The notification settings for the monitor. */ @JsonProperty("notifications") - private MonitorNotificationsConfig notifications; + private MonitorNotifications notifications; /** Schema where output metric tables are created. */ @JsonProperty("output_schema_name") @@ -67,11 +64,14 @@ public class CreateMonitor { /** Configuration for monitoring snapshot tables. */ @JsonProperty("snapshot") - private MonitorSnapshotProfileType snapshot; + private MonitorSnapshot snapshot; + + /** Full name of the table. */ + private String tableName; /** Configuration for monitoring time series tables. */ @JsonProperty("time_series") - private MonitorTimeSeriesProfileType timeSeries; + private MonitorTimeSeries timeSeries; /** * Optional argument to specify the warehouse for dashboard creation. If not specified, the first @@ -98,12 +98,12 @@ public String getBaselineTableName() { return baselineTableName; } - public CreateMonitor setCustomMetrics(Collection customMetrics) { + public CreateMonitor setCustomMetrics(Collection customMetrics) { this.customMetrics = customMetrics; return this; } - public Collection getCustomMetrics() { + public Collection getCustomMetrics() { return customMetrics; } @@ -117,30 +117,21 @@ public MonitorDataClassificationConfig getDataClassificationConfig() { return dataClassificationConfig; } - public CreateMonitor setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - public String getFullName() { - return fullName; - } - - public CreateMonitor setInferenceLog(MonitorInferenceLogProfileType inferenceLog) { + public CreateMonitor setInferenceLog(MonitorInferenceLog inferenceLog) { this.inferenceLog = inferenceLog; return this; } - public MonitorInferenceLogProfileType getInferenceLog() { + public MonitorInferenceLog getInferenceLog() { return inferenceLog; } - public CreateMonitor setNotifications(MonitorNotificationsConfig notifications) { + public CreateMonitor setNotifications(MonitorNotifications notifications) { this.notifications = notifications; return this; } - public MonitorNotificationsConfig getNotifications() { + public MonitorNotifications getNotifications() { return notifications; } @@ -180,21 +171,30 @@ public Collection getSlicingExprs() { return slicingExprs; } - public CreateMonitor setSnapshot(MonitorSnapshotProfileType snapshot) { + public CreateMonitor setSnapshot(MonitorSnapshot snapshot) { this.snapshot = snapshot; return this; } - public MonitorSnapshotProfileType getSnapshot() { + public MonitorSnapshot getSnapshot() { return snapshot; } - public CreateMonitor setTimeSeries(MonitorTimeSeriesProfileType timeSeries) { + public CreateMonitor setTableName(String tableName) { + this.tableName = tableName; + return this; + } + + public String getTableName() { + return tableName; + } + + public CreateMonitor setTimeSeries(MonitorTimeSeries timeSeries) { this.timeSeries = timeSeries; return this; } - public MonitorTimeSeriesProfileType getTimeSeries() { + public MonitorTimeSeries getTimeSeries() { return timeSeries; } @@ -216,7 +216,6 @@ public boolean equals(Object o) { && Objects.equals(baselineTableName, that.baselineTableName) && Objects.equals(customMetrics, that.customMetrics) && Objects.equals(dataClassificationConfig, that.dataClassificationConfig) - && Objects.equals(fullName, that.fullName) && Objects.equals(inferenceLog, that.inferenceLog) && Objects.equals(notifications, that.notifications) && Objects.equals(outputSchemaName, that.outputSchemaName) @@ -224,6 +223,7 @@ public boolean equals(Object o) { && Objects.equals(skipBuiltinDashboard, that.skipBuiltinDashboard) && Objects.equals(slicingExprs, that.slicingExprs) && Objects.equals(snapshot, that.snapshot) + && Objects.equals(tableName, that.tableName) && Objects.equals(timeSeries, that.timeSeries) && Objects.equals(warehouseId, that.warehouseId); } @@ -235,7 +235,6 @@ public int hashCode() { baselineTableName, customMetrics, dataClassificationConfig, - fullName, inferenceLog, notifications, outputSchemaName, @@ -243,6 +242,7 @@ public int hashCode() { skipBuiltinDashboard, slicingExprs, snapshot, + tableName, timeSeries, warehouseId); } @@ -254,7 +254,6 @@ public String toString() { .add("baselineTableName", baselineTableName) .add("customMetrics", customMetrics) .add("dataClassificationConfig", dataClassificationConfig) - .add("fullName", fullName) .add("inferenceLog", inferenceLog) .add("notifications", notifications) .add("outputSchemaName", outputSchemaName) @@ -262,6 +261,7 @@ public String toString() { .add("skipBuiltinDashboard", skipBuiltinDashboard) .add("slicingExprs", slicingExprs) .add("snapshot", snapshot) + .add("tableName", tableName) .add("timeSeries", timeSeries) .add("warehouseId", warehouseId) .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 32d294648..23717f93d 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 @@ -15,7 +15,7 @@ public class CreateStorageCredential { /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") - private AzureManagedIdentity azureManagedIdentity; + private AzureManagedIdentityRequest azureManagedIdentity; /** The Azure service principal configuration. */ @JsonProperty("azure_service_principal") @@ -55,12 +55,12 @@ public AwsIamRoleRequest getAwsIamRole() { } public CreateStorageCredential setAzureManagedIdentity( - AzureManagedIdentity azureManagedIdentity) { + AzureManagedIdentityRequest azureManagedIdentity) { this.azureManagedIdentity = azureManagedIdentity; return this; } - public AzureManagedIdentity getAzureManagedIdentity() { + public AzureManagedIdentityRequest getAzureManagedIdentity() { return azureManagedIdentity; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/DeleteLakehouseMonitorRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/DeleteLakehouseMonitorRequest.java index ecd871b14..00de48b2f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/DeleteLakehouseMonitorRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/DeleteLakehouseMonitorRequest.java @@ -10,15 +10,15 @@ @Generated public class DeleteLakehouseMonitorRequest { /** Full name of the table. */ - private String fullName; + private String tableName; - public DeleteLakehouseMonitorRequest setFullName(String fullName) { - this.fullName = fullName; + public DeleteLakehouseMonitorRequest setTableName(String tableName) { + this.tableName = tableName; return this; } - public String getFullName() { - return fullName; + public String getTableName() { + return tableName; } @Override @@ -26,16 +26,18 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DeleteLakehouseMonitorRequest that = (DeleteLakehouseMonitorRequest) o; - return Objects.equals(fullName, that.fullName); + return Objects.equals(tableName, that.tableName); } @Override public int hashCode() { - return Objects.hash(fullName); + return Objects.hash(tableName); } @Override public String toString() { - return new ToStringer(DeleteLakehouseMonitorRequest.class).add("fullName", fullName).toString(); + return new ToStringer(DeleteLakehouseMonitorRequest.class) + .add("tableName", tableName) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetLakehouseMonitorRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetLakehouseMonitorRequest.java index f03af68cd..b8bd26b3b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetLakehouseMonitorRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetLakehouseMonitorRequest.java @@ -10,15 +10,15 @@ @Generated public class GetLakehouseMonitorRequest { /** Full name of the table. */ - private String fullName; + private String tableName; - public GetLakehouseMonitorRequest setFullName(String fullName) { - this.fullName = fullName; + public GetLakehouseMonitorRequest setTableName(String tableName) { + this.tableName = tableName; return this; } - public String getFullName() { - return fullName; + public String getTableName() { + return tableName; } @Override @@ -26,16 +26,16 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetLakehouseMonitorRequest that = (GetLakehouseMonitorRequest) o; - return Objects.equals(fullName, that.fullName); + return Objects.equals(tableName, that.tableName); } @Override public int hashCode() { - return Objects.hash(fullName); + return Objects.hash(tableName); } @Override public String toString() { - return new ToStringer(GetLakehouseMonitorRequest.class).add("fullName", fullName).toString(); + return new ToStringer(GetLakehouseMonitorRequest.class).add("tableName", tableName).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRefreshRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRefreshRequest.java index 1acf7ecd4..e94088dc8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRefreshRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/GetRefreshRequest.java @@ -9,20 +9,11 @@ /** Get refresh */ @Generated public class GetRefreshRequest { - /** Full name of the table. */ - private String fullName; - /** ID of the refresh. */ private String refreshId; - public GetRefreshRequest setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - public String getFullName() { - return fullName; - } + /** Full name of the table. */ + private String tableName; public GetRefreshRequest setRefreshId(String refreshId) { this.refreshId = refreshId; @@ -33,24 +24,33 @@ public String getRefreshId() { return refreshId; } + public GetRefreshRequest setTableName(String tableName) { + this.tableName = tableName; + return this; + } + + public String getTableName() { + return tableName; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GetRefreshRequest that = (GetRefreshRequest) o; - return Objects.equals(fullName, that.fullName) && Objects.equals(refreshId, that.refreshId); + return Objects.equals(refreshId, that.refreshId) && Objects.equals(tableName, that.tableName); } @Override public int hashCode() { - return Objects.hash(fullName, refreshId); + return Objects.hash(refreshId, tableName); } @Override public String toString() { return new ToStringer(GetRefreshRequest.class) - .add("fullName", fullName) .add("refreshId", refreshId) + .add("tableName", tableName) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsAPI.java index 13a834477..f0f36d9e4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsAPI.java @@ -31,8 +31,8 @@ public LakehouseMonitorsAPI(LakehouseMonitorsService mock) { impl = mock; } - public void cancelRefresh(String fullName, String refreshId) { - cancelRefresh(new CancelRefreshRequest().setFullName(fullName).setRefreshId(refreshId)); + public void cancelRefresh(String tableName, String refreshId) { + cancelRefresh(new CancelRefreshRequest().setTableName(tableName).setRefreshId(refreshId)); } /** @@ -51,10 +51,10 @@ public void cancelRefresh(CancelRefreshRequest request) { impl.cancelRefresh(request); } - public MonitorInfo create(String fullName, String assetsDir, String outputSchemaName) { + public MonitorInfo create(String tableName, String assetsDir, String outputSchemaName) { return create( new CreateMonitor() - .setFullName(fullName) + .setTableName(tableName) .setAssetsDir(assetsDir) .setOutputSchemaName(outputSchemaName)); } @@ -77,8 +77,8 @@ public MonitorInfo create(CreateMonitor request) { return impl.create(request); } - public void delete(String fullName) { - delete(new DeleteLakehouseMonitorRequest().setFullName(fullName)); + public void delete(String tableName) { + delete(new DeleteLakehouseMonitorRequest().setTableName(tableName)); } /** @@ -100,8 +100,8 @@ public void delete(DeleteLakehouseMonitorRequest request) { impl.delete(request); } - public MonitorInfo get(String fullName) { - return get(new GetLakehouseMonitorRequest().setFullName(fullName)); + public MonitorInfo get(String tableName) { + return get(new GetLakehouseMonitorRequest().setTableName(tableName)); } /** @@ -122,8 +122,8 @@ public MonitorInfo get(GetLakehouseMonitorRequest request) { return impl.get(request); } - public MonitorRefreshInfo getRefresh(String fullName, String refreshId) { - return getRefresh(new GetRefreshRequest().setFullName(fullName).setRefreshId(refreshId)); + public MonitorRefreshInfo getRefresh(String tableName, String refreshId) { + return getRefresh(new GetRefreshRequest().setTableName(tableName).setRefreshId(refreshId)); } /** @@ -142,8 +142,8 @@ public MonitorRefreshInfo getRefresh(GetRefreshRequest request) { return impl.getRefresh(request); } - public Iterable listRefreshes(String fullName) { - return listRefreshes(new ListRefreshesRequest().setFullName(fullName)); + public Iterable listRefreshes(String tableName) { + return listRefreshes(new ListRefreshesRequest().setTableName(tableName)); } /** @@ -162,8 +162,8 @@ public Iterable listRefreshes(ListRefreshesRequest request) return impl.listRefreshes(request); } - public MonitorRefreshInfo runRefresh(String fullName) { - return runRefresh(new RunRefreshRequest().setFullName(fullName)); + public MonitorRefreshInfo runRefresh(String tableName) { + return runRefresh(new RunRefreshRequest().setTableName(tableName)); } /** @@ -183,8 +183,9 @@ public MonitorRefreshInfo runRefresh(RunRefreshRequest request) { return impl.runRefresh(request); } - public MonitorInfo update(String fullName, String outputSchemaName) { - return update(new UpdateMonitor().setFullName(fullName).setOutputSchemaName(outputSchemaName)); + public MonitorInfo update(String tableName, String outputSchemaName) { + return update( + new UpdateMonitor().setTableName(tableName).setOutputSchemaName(outputSchemaName)); } /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsImpl.java index cb89939b6..bfc51e5f3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/LakehouseMonitorsImpl.java @@ -21,14 +21,14 @@ public void cancelRefresh(CancelRefreshRequest request) { String path = String.format( "/api/2.1/unity-catalog/tables/%s/monitor/refreshes/%s/cancel", - request.getFullName(), request.getRefreshId()); + request.getTableName(), request.getRefreshId()); Map headers = new HashMap<>(); apiClient.POST(path, null, CancelRefreshResponse.class, headers); } @Override public MonitorInfo create(CreateMonitor request) { - String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getFullName()); + String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getTableName()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); headers.put("Content-Type", "application/json"); @@ -37,14 +37,14 @@ public MonitorInfo create(CreateMonitor request) { @Override public void delete(DeleteLakehouseMonitorRequest request) { - String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getFullName()); + String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getTableName()); Map headers = new HashMap<>(); apiClient.DELETE(path, request, DeleteResponse.class, headers); } @Override public MonitorInfo get(GetLakehouseMonitorRequest request) { - String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getFullName()); + String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getTableName()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); return apiClient.GET(path, request, MonitorInfo.class, headers); @@ -55,7 +55,7 @@ public MonitorRefreshInfo getRefresh(GetRefreshRequest request) { String path = String.format( "/api/2.1/unity-catalog/tables/%s/monitor/refreshes/%s", - request.getFullName(), request.getRefreshId()); + request.getTableName(), request.getRefreshId()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); return apiClient.GET(path, request, MonitorRefreshInfo.class, headers); @@ -64,7 +64,7 @@ public MonitorRefreshInfo getRefresh(GetRefreshRequest request) { @Override public Collection listRefreshes(ListRefreshesRequest request) { String path = - String.format("/api/2.1/unity-catalog/tables/%s/monitor/refreshes", request.getFullName()); + String.format("/api/2.1/unity-catalog/tables/%s/monitor/refreshes", request.getTableName()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); return apiClient.getCollection(path, null, MonitorRefreshInfo.class, headers); @@ -73,7 +73,7 @@ public Collection listRefreshes(ListRefreshesRequest request @Override public MonitorRefreshInfo runRefresh(RunRefreshRequest request) { String path = - String.format("/api/2.1/unity-catalog/tables/%s/monitor/refreshes", request.getFullName()); + String.format("/api/2.1/unity-catalog/tables/%s/monitor/refreshes", request.getTableName()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); return apiClient.POST(path, null, MonitorRefreshInfo.class, headers); @@ -81,7 +81,7 @@ public MonitorRefreshInfo runRefresh(RunRefreshRequest request) { @Override public MonitorInfo update(UpdateMonitor request) { - String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getFullName()); + String path = String.format("/api/2.1/unity-catalog/tables/%s/monitor", request.getTableName()); Map headers = new HashMap<>(); headers.put("Accept", "application/json"); headers.put("Content-Type", "application/json"); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRefreshesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRefreshesRequest.java index 3b3f9433e..4edc8061d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRefreshesRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ListRefreshesRequest.java @@ -10,15 +10,15 @@ @Generated public class ListRefreshesRequest { /** Full name of the table. */ - private String fullName; + private String tableName; - public ListRefreshesRequest setFullName(String fullName) { - this.fullName = fullName; + public ListRefreshesRequest setTableName(String tableName) { + this.tableName = tableName; return this; } - public String getFullName() { - return fullName; + public String getTableName() { + return tableName; } @Override @@ -26,16 +26,16 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ListRefreshesRequest that = (ListRefreshesRequest) o; - return Objects.equals(fullName, that.fullName); + return Objects.equals(tableName, that.tableName); } @Override public int hashCode() { - return Objects.hash(fullName); + return Objects.hash(tableName); } @Override public String toString() { - return new ToStringer(ListRefreshesRequest.class).add("fullName", fullName).toString(); + return new ToStringer(ListRefreshesRequest.class).add("tableName", tableName).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 c61243b5a..3cc8fe9f4 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 @@ -25,9 +25,20 @@ public class ListRegisteredModelsRequest { 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 - * specified by page_token. + * Max number of registered models to return. + * + *

If both catalog and schema are specified: - when max_results is not specified, the page + * length is set to a server configured value (10000, as of 4/2/2024). - when set to a value + * greater than 0, the page length is the minimum of this value and a server configured value + * (10000, as of 4/2/2024); - when set to 0, the page length is set to a server configured value + * (10000, as of 4/2/2024); - when set to a value less than 0, an invalid parameter error is + * returned; + * + *

If neither schema nor catalog is specified: - when max_results is not specified, the page + * length is set to a server configured value (100, as of 4/2/2024). - when set to a value greater + * than 0, the page length is the minimum of this value and a server configured value (1000, as of + * 4/2/2024); - when set to 0, the page length is set to a server configured value (100, as of + * 4/2/2024); - when set to a value less than 0, an invalid parameter error is returned; */ @QueryParam("max_results") private Long maxResults; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedule.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedule.java index 1c355bd46..c8135aa11 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedule.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedule.java @@ -9,15 +9,20 @@ @Generated public class MonitorCronSchedule { - /** Whether the schedule is paused or not */ + /** Read only field that indicates whether a schedule is paused or not. */ @JsonProperty("pause_status") private MonitorCronSchedulePauseStatus pauseStatus; - /** A cron expression using quartz syntax that describes the schedule for a job. */ + /** + * The expression that determines when to run the monitor. See [examples]. + * + *

[examples]: + * https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html + */ @JsonProperty("quartz_cron_expression") private String quartzCronExpression; - /** A Java timezone id. The schedule for a job will be resolved with respect to this timezone. */ + /** The timezone id (e.g., ``"PST"``) in which to evaluate the quartz expression. */ @JsonProperty("timezone_id") private String timezoneId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedulePauseStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedulePauseStatus.java index 5b59f5385..742f75577 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedulePauseStatus.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCronSchedulePauseStatus.java @@ -4,7 +4,7 @@ import com.databricks.sdk.support.Generated; -/** Whether the schedule is paused or not */ +/** Read only field that indicates whether a schedule is paused or not. */ @Generated public enum MonitorCronSchedulePauseStatus { PAUSED, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetricType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetricType.java deleted file mode 100755 index 391515d79..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetricType.java +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.catalog; - -import com.databricks.sdk.support.Generated; - -/** The type of the custom metric. */ -@Generated -public enum MonitorCustomMetricType { - CUSTOM_METRIC_TYPE_AGGREGATE, - CUSTOM_METRIC_TYPE_DERIVED, - CUSTOM_METRIC_TYPE_DRIFT, - MONITOR_STATUS_ERROR, - MONITOR_STATUS_FAILED, -} 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/MonitorDestination.java similarity index 82% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestinations.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorDestination.java index 8876922fa..d34b42ae2 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/MonitorDestination.java @@ -9,7 +9,7 @@ import java.util.Objects; @Generated -public class MonitorDestinations { +public class MonitorDestination { /** * The list of email addresses to send the notification to. A maximum of 5 email addresses is * supported. @@ -17,7 +17,7 @@ public class MonitorDestinations { @JsonProperty("email_addresses") private Collection emailAddresses; - public MonitorDestinations setEmailAddresses(Collection emailAddresses) { + public MonitorDestination setEmailAddresses(Collection emailAddresses) { this.emailAddresses = emailAddresses; return this; } @@ -30,7 +30,7 @@ public Collection getEmailAddresses() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - MonitorDestinations that = (MonitorDestinations) o; + MonitorDestination that = (MonitorDestination) o; return Objects.equals(emailAddresses, that.emailAddresses); } @@ -41,7 +41,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(MonitorDestinations.class) + return new ToStringer(MonitorDestination.class) .add("emailAddresses", emailAddresses) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLog.java similarity index 56% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileType.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLog.java index 875aa0a3d..5ccc716a2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLog.java @@ -9,38 +9,57 @@ import java.util.Objects; @Generated -public class MonitorInferenceLogProfileType { +public class MonitorInferenceLog { /** - * List of granularities to use when aggregating data into time windows based on their timestamp. + * Granularities for aggregating data into time windows based on their timestamp. Currently the + * following static granularities are supported: {``"5 minutes"``, ``"30 minutes"``, ``"1 hour"``, + * ``"1 day"``, ``" week(s)"``, ``"1 month"``, ``"1 year"``}. */ @JsonProperty("granularities") private Collection granularities; - /** Column of the model label. */ + /** Optional column that contains the ground truth for the prediction. */ @JsonProperty("label_col") private String labelCol; - /** Column of the model id or version. */ + /** + * Column that contains the id of the model generating the predictions. Metrics will be computed + * per model id by default, and also across all model ids. + */ @JsonProperty("model_id_col") private String modelIdCol; - /** Column of the model prediction. */ + /** Column that contains the output/prediction from the model. */ @JsonProperty("prediction_col") private String predictionCol; - /** Column of the model prediction probabilities. */ + /** + * Optional column that contains the prediction probabilities for each class in a classification + * problem type. The values in this column should be a map, mapping each class label to the + * prediction probability for a given sample. The map should be of PySpark MapType(). + */ @JsonProperty("prediction_proba_col") private String predictionProbaCol; - /** Problem type the model aims to solve. */ + /** + * Problem type the model aims to solve. Determines the type of model-quality metrics that will be + * computed. + */ @JsonProperty("problem_type") - private MonitorInferenceLogProfileTypeProblemType problemType; + private MonitorInferenceLogProblemType problemType; - /** Column of the timestamp of predictions. */ + /** + * Column that contains the timestamps of requests. The column must be one of the following: - A + * ``TimestampType`` column - A column whose values can be converted to timestamps through the + * pyspark ``to_timestamp`` [function]. + * + *

[function]: + * https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.to_timestamp.html + */ @JsonProperty("timestamp_col") private String timestampCol; - public MonitorInferenceLogProfileType setGranularities(Collection granularities) { + public MonitorInferenceLog setGranularities(Collection granularities) { this.granularities = granularities; return this; } @@ -49,7 +68,7 @@ public Collection getGranularities() { return granularities; } - public MonitorInferenceLogProfileType setLabelCol(String labelCol) { + public MonitorInferenceLog setLabelCol(String labelCol) { this.labelCol = labelCol; return this; } @@ -58,7 +77,7 @@ public String getLabelCol() { return labelCol; } - public MonitorInferenceLogProfileType setModelIdCol(String modelIdCol) { + public MonitorInferenceLog setModelIdCol(String modelIdCol) { this.modelIdCol = modelIdCol; return this; } @@ -67,7 +86,7 @@ public String getModelIdCol() { return modelIdCol; } - public MonitorInferenceLogProfileType setPredictionCol(String predictionCol) { + public MonitorInferenceLog setPredictionCol(String predictionCol) { this.predictionCol = predictionCol; return this; } @@ -76,7 +95,7 @@ public String getPredictionCol() { return predictionCol; } - public MonitorInferenceLogProfileType setPredictionProbaCol(String predictionProbaCol) { + public MonitorInferenceLog setPredictionProbaCol(String predictionProbaCol) { this.predictionProbaCol = predictionProbaCol; return this; } @@ -85,17 +104,16 @@ public String getPredictionProbaCol() { return predictionProbaCol; } - public MonitorInferenceLogProfileType setProblemType( - MonitorInferenceLogProfileTypeProblemType problemType) { + public MonitorInferenceLog setProblemType(MonitorInferenceLogProblemType problemType) { this.problemType = problemType; return this; } - public MonitorInferenceLogProfileTypeProblemType getProblemType() { + public MonitorInferenceLogProblemType getProblemType() { return problemType; } - public MonitorInferenceLogProfileType setTimestampCol(String timestampCol) { + public MonitorInferenceLog setTimestampCol(String timestampCol) { this.timestampCol = timestampCol; return this; } @@ -108,7 +126,7 @@ public String getTimestampCol() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - MonitorInferenceLogProfileType that = (MonitorInferenceLogProfileType) o; + MonitorInferenceLog that = (MonitorInferenceLog) o; return Objects.equals(granularities, that.granularities) && Objects.equals(labelCol, that.labelCol) && Objects.equals(modelIdCol, that.modelIdCol) @@ -132,7 +150,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(MonitorInferenceLogProfileType.class) + return new ToStringer(MonitorInferenceLog.class) .add("granularities", granularities) .add("labelCol", labelCol) .add("modelIdCol", modelIdCol) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileTypeProblemType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProblemType.java similarity index 59% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileTypeProblemType.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProblemType.java index 11a36da5e..81529bcbe 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProfileTypeProblemType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorInferenceLogProblemType.java @@ -4,9 +4,12 @@ import com.databricks.sdk.support.Generated; -/** Problem type the model aims to solve. */ +/** + * Problem type the model aims to solve. Determines the type of model-quality metrics that will be + * computed. + */ @Generated -public enum MonitorInferenceLogProfileTypeProblemType { +public enum MonitorInferenceLogProblemType { PROBLEM_TYPE_CLASSIFICATION, PROBLEM_TYPE_REGRESSION, } 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 2f179889d..aac4fa412 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 @@ -27,9 +27,12 @@ public class MonitorInfo { * time windows). */ @JsonProperty("custom_metrics") - private Collection customMetrics; + private Collection customMetrics; - /** The ID of the generated dashboard. */ + /** + * Id of dashboard that visualizes the computed metrics. This can be empty if the monitor is in + * PENDING state. + */ @JsonProperty("dashboard_id") private String dashboardId; @@ -46,7 +49,7 @@ public class MonitorInfo { /** Configuration for monitoring inference logs. */ @JsonProperty("inference_log") - private MonitorInferenceLogProfileType inferenceLog; + private MonitorInferenceLog inferenceLog; /** The latest failure message of the monitor (if any). */ @JsonProperty("latest_monitor_failure_msg") @@ -58,7 +61,7 @@ public class MonitorInfo { /** The notification settings for the monitor. */ @JsonProperty("notifications") - private MonitorNotificationsConfig notifications; + private MonitorNotifications notifications; /** Schema where output metric tables are created. */ @JsonProperty("output_schema_name") @@ -86,7 +89,7 @@ public class MonitorInfo { /** Configuration for monitoring snapshot tables. */ @JsonProperty("snapshot") - private MonitorSnapshotProfileType snapshot; + private MonitorSnapshot snapshot; /** The status of the monitor. */ @JsonProperty("status") @@ -100,7 +103,7 @@ public class MonitorInfo { /** Configuration for monitoring time series tables. */ @JsonProperty("time_series") - private MonitorTimeSeriesProfileType timeSeries; + private MonitorTimeSeries timeSeries; public MonitorInfo setAssetsDir(String assetsDir) { this.assetsDir = assetsDir; @@ -120,12 +123,12 @@ public String getBaselineTableName() { return baselineTableName; } - public MonitorInfo setCustomMetrics(Collection customMetrics) { + public MonitorInfo setCustomMetrics(Collection customMetrics) { this.customMetrics = customMetrics; return this; } - public Collection getCustomMetrics() { + public Collection getCustomMetrics() { return customMetrics; } @@ -157,12 +160,12 @@ public String getDriftMetricsTableName() { return driftMetricsTableName; } - public MonitorInfo setInferenceLog(MonitorInferenceLogProfileType inferenceLog) { + public MonitorInfo setInferenceLog(MonitorInferenceLog inferenceLog) { this.inferenceLog = inferenceLog; return this; } - public MonitorInferenceLogProfileType getInferenceLog() { + public MonitorInferenceLog getInferenceLog() { return inferenceLog; } @@ -184,12 +187,12 @@ public String getMonitorVersion() { return monitorVersion; } - public MonitorInfo setNotifications(MonitorNotificationsConfig notifications) { + public MonitorInfo setNotifications(MonitorNotifications notifications) { this.notifications = notifications; return this; } - public MonitorNotificationsConfig getNotifications() { + public MonitorNotifications getNotifications() { return notifications; } @@ -229,12 +232,12 @@ public Collection getSlicingExprs() { return slicingExprs; } - public MonitorInfo setSnapshot(MonitorSnapshotProfileType snapshot) { + public MonitorInfo setSnapshot(MonitorSnapshot snapshot) { this.snapshot = snapshot; return this; } - public MonitorSnapshotProfileType getSnapshot() { + public MonitorSnapshot getSnapshot() { return snapshot; } @@ -256,12 +259,12 @@ public String getTableName() { return tableName; } - public MonitorInfo setTimeSeries(MonitorTimeSeriesProfileType timeSeries) { + public MonitorInfo setTimeSeries(MonitorTimeSeries timeSeries) { this.timeSeries = timeSeries; return this; } - public MonitorTimeSeriesProfileType getTimeSeries() { + public MonitorTimeSeries getTimeSeries() { return timeSeries; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetric.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetric.java similarity index 62% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetric.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetric.java index 2167187ba..1f6cdd963 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorCustomMetric.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetric.java @@ -9,7 +9,7 @@ import java.util.Objects; @Generated -public class MonitorCustomMetric { +public class MonitorMetric { /** * Jinja template for a SQL expression that specifies how to compute the metric. See [create * metric definition]. @@ -20,11 +20,14 @@ public class MonitorCustomMetric { @JsonProperty("definition") private String definition; - /** Columns on the monitored table to apply the custom metrics to. */ + /** + * A list of column names in the input table the metric should be computed for. Can use + * ``":table"`` to indicate that the metric needs information from multiple columns. + */ @JsonProperty("input_columns") private Collection inputColumns; - /** Name of the custom metric. */ + /** Name of the metric in the output tables. */ @JsonProperty("name") private String name; @@ -32,11 +35,19 @@ public class MonitorCustomMetric { @JsonProperty("output_data_type") private String outputDataType; - /** The type of the custom metric. */ + /** + * Can only be one of ``"CUSTOM_METRIC_TYPE_AGGREGATE"``, ``"CUSTOM_METRIC_TYPE_DERIVED"``, or + * ``"CUSTOM_METRIC_TYPE_DRIFT"``. The ``"CUSTOM_METRIC_TYPE_AGGREGATE"`` and + * ``"CUSTOM_METRIC_TYPE_DERIVED"`` metrics are computed on a single table, whereas the + * ``"CUSTOM_METRIC_TYPE_DRIFT"`` compare metrics across baseline and input table, or across the + * two consecutive time windows. - CUSTOM_METRIC_TYPE_AGGREGATE: only depend on the existing + * columns in your table - CUSTOM_METRIC_TYPE_DERIVED: depend on previously computed aggregate + * metrics - CUSTOM_METRIC_TYPE_DRIFT: depend on previously computed aggregate or derived metrics + */ @JsonProperty("type") - private MonitorCustomMetricType typeValue; + private MonitorMetricType typeValue; - public MonitorCustomMetric setDefinition(String definition) { + public MonitorMetric setDefinition(String definition) { this.definition = definition; return this; } @@ -45,7 +56,7 @@ public String getDefinition() { return definition; } - public MonitorCustomMetric setInputColumns(Collection inputColumns) { + public MonitorMetric setInputColumns(Collection inputColumns) { this.inputColumns = inputColumns; return this; } @@ -54,7 +65,7 @@ public Collection getInputColumns() { return inputColumns; } - public MonitorCustomMetric setName(String name) { + public MonitorMetric setName(String name) { this.name = name; return this; } @@ -63,7 +74,7 @@ public String getName() { return name; } - public MonitorCustomMetric setOutputDataType(String outputDataType) { + public MonitorMetric setOutputDataType(String outputDataType) { this.outputDataType = outputDataType; return this; } @@ -72,12 +83,12 @@ public String getOutputDataType() { return outputDataType; } - public MonitorCustomMetric setType(MonitorCustomMetricType typeValue) { + public MonitorMetric setType(MonitorMetricType typeValue) { this.typeValue = typeValue; return this; } - public MonitorCustomMetricType getType() { + public MonitorMetricType getType() { return typeValue; } @@ -85,7 +96,7 @@ public MonitorCustomMetricType getType() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - MonitorCustomMetric that = (MonitorCustomMetric) o; + MonitorMetric that = (MonitorMetric) o; return Objects.equals(definition, that.definition) && Objects.equals(inputColumns, that.inputColumns) && Objects.equals(name, that.name) @@ -100,7 +111,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(MonitorCustomMetric.class) + return new ToStringer(MonitorMetric.class) .add("definition", definition) .add("inputColumns", inputColumns) .add("name", name) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetricType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetricType.java new file mode 100755 index 000000000..e5020fecf --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorMetricType.java @@ -0,0 +1,21 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** + * Can only be one of ``"CUSTOM_METRIC_TYPE_AGGREGATE"``, ``"CUSTOM_METRIC_TYPE_DERIVED"``, or + * ``"CUSTOM_METRIC_TYPE_DRIFT"``. The ``"CUSTOM_METRIC_TYPE_AGGREGATE"`` and + * ``"CUSTOM_METRIC_TYPE_DERIVED"`` metrics are computed on a single table, whereas the + * ``"CUSTOM_METRIC_TYPE_DRIFT"`` compare metrics across baseline and input table, or across the two + * consecutive time windows. - CUSTOM_METRIC_TYPE_AGGREGATE: only depend on the existing columns in + * your table - CUSTOM_METRIC_TYPE_DERIVED: depend on previously computed aggregate metrics - + * CUSTOM_METRIC_TYPE_DRIFT: depend on previously computed aggregate or derived metrics + */ +@Generated +public enum MonitorMetricType { + CUSTOM_METRIC_TYPE_AGGREGATE, + CUSTOM_METRIC_TYPE_DERIVED, + CUSTOM_METRIC_TYPE_DRIFT, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotifications.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotifications.java new file mode 100755 index 000000000..6586c8498 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotifications.java @@ -0,0 +1,60 @@ +// 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 MonitorNotifications { + /** Who to send notifications to on monitor failure. */ + @JsonProperty("on_failure") + private MonitorDestination onFailure; + + /** Who to send notifications to when new data classification tags are detected. */ + @JsonProperty("on_new_classification_tag_detected") + private MonitorDestination onNewClassificationTagDetected; + + public MonitorNotifications setOnFailure(MonitorDestination onFailure) { + this.onFailure = onFailure; + return this; + } + + public MonitorDestination getOnFailure() { + return onFailure; + } + + public MonitorNotifications setOnNewClassificationTagDetected( + MonitorDestination onNewClassificationTagDetected) { + this.onNewClassificationTagDetected = onNewClassificationTagDetected; + return this; + } + + public MonitorDestination getOnNewClassificationTagDetected() { + return onNewClassificationTagDetected; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + MonitorNotifications that = (MonitorNotifications) o; + return Objects.equals(onFailure, that.onFailure) + && Objects.equals(onNewClassificationTagDetected, that.onNewClassificationTagDetected); + } + + @Override + public int hashCode() { + return Objects.hash(onFailure, onNewClassificationTagDetected); + } + + @Override + public String toString() { + return new ToStringer(MonitorNotifications.class) + .add("onFailure", onFailure) + .add("onNewClassificationTagDetected", onNewClassificationTagDetected) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotificationsConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotificationsConfig.java deleted file mode 100755 index 68666f166..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorNotificationsConfig.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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 MonitorNotificationsConfig { - /** Who to send notifications to on monitor failure. */ - @JsonProperty("on_failure") - private MonitorDestinations onFailure; - - public MonitorNotificationsConfig setOnFailure(MonitorDestinations onFailure) { - this.onFailure = onFailure; - return this; - } - - public MonitorDestinations getOnFailure() { - return onFailure; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - MonitorNotificationsConfig that = (MonitorNotificationsConfig) o; - return Objects.equals(onFailure, that.onFailure); - } - - @Override - public int hashCode() { - return Objects.hash(onFailure); - } - - @Override - public String toString() { - return new ToStringer(MonitorNotificationsConfig.class).add("onFailure", onFailure).toString(); - } -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfo.java index 42174fe21..15094c0fb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfo.java @@ -9,7 +9,7 @@ @Generated public class MonitorRefreshInfo { - /** The time at which the refresh ended, in epoch milliseconds. */ + /** Time at which refresh operation completed (milliseconds since 1/1/1970 UTC). */ @JsonProperty("end_time_ms") private Long endTimeMs; @@ -19,11 +19,11 @@ public class MonitorRefreshInfo { @JsonProperty("message") private String message; - /** The ID of the refresh. */ + /** Unique id of the refresh operation. */ @JsonProperty("refresh_id") private Long refreshId; - /** The time at which the refresh started, in epoch milliseconds. */ + /** Time at which refresh operation was initiated (milliseconds since 1/1/1970 UTC). */ @JsonProperty("start_time_ms") private Long startTimeMs; @@ -31,6 +31,10 @@ public class MonitorRefreshInfo { @JsonProperty("state") private MonitorRefreshInfoState state; + /** The method by which the refresh was triggered. */ + @JsonProperty("trigger") + private MonitorRefreshInfoTrigger trigger; + public MonitorRefreshInfo setEndTimeMs(Long endTimeMs) { this.endTimeMs = endTimeMs; return this; @@ -76,6 +80,15 @@ public MonitorRefreshInfoState getState() { return state; } + public MonitorRefreshInfo setTrigger(MonitorRefreshInfoTrigger trigger) { + this.trigger = trigger; + return this; + } + + public MonitorRefreshInfoTrigger getTrigger() { + return trigger; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -85,12 +98,13 @@ public boolean equals(Object o) { && Objects.equals(message, that.message) && Objects.equals(refreshId, that.refreshId) && Objects.equals(startTimeMs, that.startTimeMs) - && Objects.equals(state, that.state); + && Objects.equals(state, that.state) + && Objects.equals(trigger, that.trigger); } @Override public int hashCode() { - return Objects.hash(endTimeMs, message, refreshId, startTimeMs, state); + return Objects.hash(endTimeMs, message, refreshId, startTimeMs, state, trigger); } @Override @@ -101,6 +115,7 @@ public String toString() { .add("refreshId", refreshId) .add("startTimeMs", startTimeMs) .add("state", state) + .add("trigger", trigger) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfoTrigger.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfoTrigger.java new file mode 100755 index 000000000..906a1c881 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorRefreshInfoTrigger.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** The method by which the refresh was triggered. */ +@Generated +public enum MonitorRefreshInfoTrigger { + MANUAL, + SCHEDULE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshotProfileType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshot.java similarity index 82% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshotProfileType.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshot.java index bd2e8f0e0..c2c63dd78 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshotProfileType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorSnapshot.java @@ -7,7 +7,7 @@ import java.util.Objects; @Generated -public class MonitorSnapshotProfileType { +public class MonitorSnapshot { @Override public boolean equals(Object o) { @@ -23,6 +23,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(MonitorSnapshotProfileType.class).toString(); + return new ToStringer(MonitorSnapshot.class).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeriesProfileType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeries.java similarity index 58% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeriesProfileType.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeries.java index ee757bd08..8ad8758fd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeriesProfileType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/MonitorTimeSeries.java @@ -9,21 +9,27 @@ import java.util.Objects; @Generated -public class MonitorTimeSeriesProfileType { +public class MonitorTimeSeries { /** - * List of granularities to use when aggregating data into time windows based on their timestamp. + * Granularities for aggregating data into time windows based on their timestamp. Currently the + * following static granularities are supported: {``"5 minutes"``, ``"30 minutes"``, ``"1 hour"``, + * ``"1 day"``, ``" week(s)"``, ``"1 month"``, ``"1 year"``}. */ @JsonProperty("granularities") private Collection granularities; /** - * The timestamp column. This must be timestamp types or convertible to timestamp types using the - * pyspark to_timestamp function. + * Column that contains the timestamps of requests. The column must be one of the following: - A + * ``TimestampType`` column - A column whose values can be converted to timestamps through the + * pyspark ``to_timestamp`` [function]. + * + *

[function]: + * https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.to_timestamp.html */ @JsonProperty("timestamp_col") private String timestampCol; - public MonitorTimeSeriesProfileType setGranularities(Collection granularities) { + public MonitorTimeSeries setGranularities(Collection granularities) { this.granularities = granularities; return this; } @@ -32,7 +38,7 @@ public Collection getGranularities() { return granularities; } - public MonitorTimeSeriesProfileType setTimestampCol(String timestampCol) { + public MonitorTimeSeries setTimestampCol(String timestampCol) { this.timestampCol = timestampCol; return this; } @@ -45,7 +51,7 @@ public String getTimestampCol() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - MonitorTimeSeriesProfileType that = (MonitorTimeSeriesProfileType) o; + MonitorTimeSeries that = (MonitorTimeSeries) o; return Objects.equals(granularities, that.granularities) && Objects.equals(timestampCol, that.timestampCol); } @@ -57,7 +63,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(MonitorTimeSeriesProfileType.class) + return new ToStringer(MonitorTimeSeries.class) .add("granularities", granularities) .add("timestampCol", timestampCol) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RunRefreshRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RunRefreshRequest.java index 779d79d78..c39338c10 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RunRefreshRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RunRefreshRequest.java @@ -10,15 +10,15 @@ @Generated public class RunRefreshRequest { /** Full name of the table. */ - private String fullName; + private String tableName; - public RunRefreshRequest setFullName(String fullName) { - this.fullName = fullName; + public RunRefreshRequest setTableName(String tableName) { + this.tableName = tableName; return this; } - public String getFullName() { - return fullName; + public String getTableName() { + return tableName; } @Override @@ -26,16 +26,16 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RunRefreshRequest that = (RunRefreshRequest) o; - return Objects.equals(fullName, that.fullName); + return Objects.equals(tableName, that.tableName); } @Override public int hashCode() { - return Objects.hash(fullName); + return Objects.hash(tableName); } @Override public String toString() { - return new ToStringer(RunRefreshRequest.class).add("fullName", fullName).toString(); + return new ToStringer(RunRefreshRequest.class).add("tableName", tableName).toString(); } } 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 c0d091718..7a580ad73 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 @@ -15,7 +15,7 @@ public class StorageCredentialInfo { /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") - private AzureManagedIdentity azureManagedIdentity; + private AzureManagedIdentityResponse azureManagedIdentity; /** The Azure service principal configuration. */ @JsonProperty("azure_service_principal") @@ -82,12 +82,13 @@ public AwsIamRoleResponse getAwsIamRole() { return awsIamRole; } - public StorageCredentialInfo setAzureManagedIdentity(AzureManagedIdentity azureManagedIdentity) { + public StorageCredentialInfo setAzureManagedIdentity( + AzureManagedIdentityResponse azureManagedIdentity) { this.azureManagedIdentity = azureManagedIdentity; return this; } - public AzureManagedIdentity getAzureManagedIdentity() { + public AzureManagedIdentityResponse getAzureManagedIdentity() { return azureManagedIdentity; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java index 70347fa79..bd53b8d98 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java @@ -10,6 +10,10 @@ @Generated public class TableRowFilter { + /** The full name of the row filter SQL UDF. */ + @JsonProperty("function_name") + private String functionName; + /** * The list of table columns to be passed as input to the row filter function. The column types * should match the types of the filter function arguments. @@ -17,26 +21,22 @@ public class TableRowFilter { @JsonProperty("input_column_names") private Collection inputColumnNames; - /** The full name of the row filter SQL UDF. */ - @JsonProperty("name") - private String name; - - public TableRowFilter setInputColumnNames(Collection inputColumnNames) { - this.inputColumnNames = inputColumnNames; + public TableRowFilter setFunctionName(String functionName) { + this.functionName = functionName; return this; } - public Collection getInputColumnNames() { - return inputColumnNames; + public String getFunctionName() { + return functionName; } - public TableRowFilter setName(String name) { - this.name = name; + public TableRowFilter setInputColumnNames(Collection inputColumnNames) { + this.inputColumnNames = inputColumnNames; return this; } - public String getName() { - return name; + public Collection getInputColumnNames() { + return inputColumnNames; } @Override @@ -44,20 +44,20 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TableRowFilter that = (TableRowFilter) o; - return Objects.equals(inputColumnNames, that.inputColumnNames) - && Objects.equals(name, that.name); + return Objects.equals(functionName, that.functionName) + && Objects.equals(inputColumnNames, that.inputColumnNames); } @Override public int hashCode() { - return Objects.hash(inputColumnNames, name); + return Objects.hash(functionName, inputColumnNames); } @Override public String toString() { return new ToStringer(TableRowFilter.class) + .add("functionName", functionName) .add("inputColumnNames", inputColumnNames) - .add("name", name) .toString(); } } 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 a41e861cd..9e9130b8c 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 @@ -23,22 +23,19 @@ public class UpdateMonitor { * time windows). */ @JsonProperty("custom_metrics") - private Collection customMetrics; + private Collection customMetrics; /** The data classification config for the monitor. */ @JsonProperty("data_classification_config") private MonitorDataClassificationConfig dataClassificationConfig; - /** Full name of the table. */ - private String fullName; - /** Configuration for monitoring inference logs. */ @JsonProperty("inference_log") - private MonitorInferenceLogProfileType inferenceLog; + private MonitorInferenceLog inferenceLog; /** The notification settings for the monitor. */ @JsonProperty("notifications") - private MonitorNotificationsConfig notifications; + private MonitorNotifications notifications; /** Schema where output metric tables are created. */ @JsonProperty("output_schema_name") @@ -59,11 +56,14 @@ public class UpdateMonitor { /** Configuration for monitoring snapshot tables. */ @JsonProperty("snapshot") - private MonitorSnapshotProfileType snapshot; + private MonitorSnapshot snapshot; + + /** Full name of the table. */ + private String tableName; /** Configuration for monitoring time series tables. */ @JsonProperty("time_series") - private MonitorTimeSeriesProfileType timeSeries; + private MonitorTimeSeries timeSeries; public UpdateMonitor setBaselineTableName(String baselineTableName) { this.baselineTableName = baselineTableName; @@ -74,12 +74,12 @@ public String getBaselineTableName() { return baselineTableName; } - public UpdateMonitor setCustomMetrics(Collection customMetrics) { + public UpdateMonitor setCustomMetrics(Collection customMetrics) { this.customMetrics = customMetrics; return this; } - public Collection getCustomMetrics() { + public Collection getCustomMetrics() { return customMetrics; } @@ -93,30 +93,21 @@ public MonitorDataClassificationConfig getDataClassificationConfig() { return dataClassificationConfig; } - public UpdateMonitor setFullName(String fullName) { - this.fullName = fullName; - return this; - } - - public String getFullName() { - return fullName; - } - - public UpdateMonitor setInferenceLog(MonitorInferenceLogProfileType inferenceLog) { + public UpdateMonitor setInferenceLog(MonitorInferenceLog inferenceLog) { this.inferenceLog = inferenceLog; return this; } - public MonitorInferenceLogProfileType getInferenceLog() { + public MonitorInferenceLog getInferenceLog() { return inferenceLog; } - public UpdateMonitor setNotifications(MonitorNotificationsConfig notifications) { + public UpdateMonitor setNotifications(MonitorNotifications notifications) { this.notifications = notifications; return this; } - public MonitorNotificationsConfig getNotifications() { + public MonitorNotifications getNotifications() { return notifications; } @@ -147,21 +138,30 @@ public Collection getSlicingExprs() { return slicingExprs; } - public UpdateMonitor setSnapshot(MonitorSnapshotProfileType snapshot) { + public UpdateMonitor setSnapshot(MonitorSnapshot snapshot) { this.snapshot = snapshot; return this; } - public MonitorSnapshotProfileType getSnapshot() { + public MonitorSnapshot getSnapshot() { return snapshot; } - public UpdateMonitor setTimeSeries(MonitorTimeSeriesProfileType timeSeries) { + public UpdateMonitor setTableName(String tableName) { + this.tableName = tableName; + return this; + } + + public String getTableName() { + return tableName; + } + + public UpdateMonitor setTimeSeries(MonitorTimeSeries timeSeries) { this.timeSeries = timeSeries; return this; } - public MonitorTimeSeriesProfileType getTimeSeries() { + public MonitorTimeSeries getTimeSeries() { return timeSeries; } @@ -173,13 +173,13 @@ public boolean equals(Object o) { return Objects.equals(baselineTableName, that.baselineTableName) && Objects.equals(customMetrics, that.customMetrics) && Objects.equals(dataClassificationConfig, that.dataClassificationConfig) - && Objects.equals(fullName, that.fullName) && Objects.equals(inferenceLog, that.inferenceLog) && Objects.equals(notifications, that.notifications) && Objects.equals(outputSchemaName, that.outputSchemaName) && Objects.equals(schedule, that.schedule) && Objects.equals(slicingExprs, that.slicingExprs) && Objects.equals(snapshot, that.snapshot) + && Objects.equals(tableName, that.tableName) && Objects.equals(timeSeries, that.timeSeries); } @@ -189,13 +189,13 @@ public int hashCode() { baselineTableName, customMetrics, dataClassificationConfig, - fullName, inferenceLog, notifications, outputSchemaName, schedule, slicingExprs, snapshot, + tableName, timeSeries); } @@ -205,13 +205,13 @@ public String toString() { .add("baselineTableName", baselineTableName) .add("customMetrics", customMetrics) .add("dataClassificationConfig", dataClassificationConfig) - .add("fullName", fullName) .add("inferenceLog", inferenceLog) .add("notifications", notifications) .add("outputSchemaName", outputSchemaName) .add("schedule", schedule) .add("slicingExprs", slicingExprs) .add("snapshot", snapshot) + .add("tableName", tableName) .add("timeSeries", timeSeries) .toString(); } 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 72bef9b31..29c98b451 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 @@ -15,7 +15,7 @@ public class UpdateStorageCredential { /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") - private AzureManagedIdentity azureManagedIdentity; + private AzureManagedIdentityResponse azureManagedIdentity; /** The Azure service principal configuration. */ @JsonProperty("azure_service_principal") @@ -66,12 +66,12 @@ public AwsIamRoleRequest getAwsIamRole() { } public UpdateStorageCredential setAzureManagedIdentity( - AzureManagedIdentity azureManagedIdentity) { + AzureManagedIdentityResponse azureManagedIdentity) { this.azureManagedIdentity = azureManagedIdentity; return this; } - public AzureManagedIdentity getAzureManagedIdentity() { + public AzureManagedIdentityResponse getAzureManagedIdentity() { return azureManagedIdentity; } 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 3d833ac9f..23fb6866a 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 @@ -15,7 +15,7 @@ public class ValidateStorageCredential { /** The Azure managed identity configuration. */ @JsonProperty("azure_managed_identity") - private AzureManagedIdentity azureManagedIdentity; + private AzureManagedIdentityRequest azureManagedIdentity; /** The Azure service principal configuration. */ @JsonProperty("azure_service_principal") @@ -55,12 +55,12 @@ public AwsIamRoleRequest getAwsIamRole() { } public ValidateStorageCredential setAzureManagedIdentity( - AzureManagedIdentity azureManagedIdentity) { + AzureManagedIdentityRequest azureManagedIdentity) { this.azureManagedIdentity = azureManagedIdentity; return this; } - public AzureManagedIdentity getAzureManagedIdentity() { + public AzureManagedIdentityRequest getAzureManagedIdentity() { return azureManagedIdentity; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResult.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResult.java index 628e2b373..5d08e2a9c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResult.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResult.java @@ -9,34 +9,60 @@ @Generated public class ValidationResult { + /** The operation tested. */ + @JsonProperty("aws_operation") + private ValidationResultAwsOperation awsOperation; + + /** The operation tested. */ + @JsonProperty("azure_operation") + private ValidationResultAzureOperation azureOperation; + + /** The operation tested. */ + @JsonProperty("gcp_operation") + private ValidationResultGcpOperation gcpOperation; + /** Error message would exist when the result does not equal to **PASS**. */ @JsonProperty("message") private String message; - /** The operation tested. */ - @JsonProperty("operation") - private ValidationResultOperation operation; - /** The results of the tested operation. */ @JsonProperty("result") private ValidationResultResult result; - public ValidationResult setMessage(String message) { - this.message = message; + public ValidationResult setAwsOperation(ValidationResultAwsOperation awsOperation) { + this.awsOperation = awsOperation; return this; } - public String getMessage() { - return message; + public ValidationResultAwsOperation getAwsOperation() { + return awsOperation; + } + + public ValidationResult setAzureOperation(ValidationResultAzureOperation azureOperation) { + this.azureOperation = azureOperation; + return this; + } + + public ValidationResultAzureOperation getAzureOperation() { + return azureOperation; } - public ValidationResult setOperation(ValidationResultOperation operation) { - this.operation = operation; + public ValidationResult setGcpOperation(ValidationResultGcpOperation gcpOperation) { + this.gcpOperation = gcpOperation; return this; } - public ValidationResultOperation getOperation() { - return operation; + public ValidationResultGcpOperation getGcpOperation() { + return gcpOperation; + } + + public ValidationResult setMessage(String message) { + this.message = message; + return this; + } + + public String getMessage() { + return message; } public ValidationResult setResult(ValidationResultResult result) { @@ -53,21 +79,25 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ValidationResult that = (ValidationResult) o; - return Objects.equals(message, that.message) - && Objects.equals(operation, that.operation) + return Objects.equals(awsOperation, that.awsOperation) + && Objects.equals(azureOperation, that.azureOperation) + && Objects.equals(gcpOperation, that.gcpOperation) + && Objects.equals(message, that.message) && Objects.equals(result, that.result); } @Override public int hashCode() { - return Objects.hash(message, operation, result); + return Objects.hash(awsOperation, azureOperation, gcpOperation, message, result); } @Override public String toString() { return new ToStringer(ValidationResult.class) + .add("awsOperation", awsOperation) + .add("azureOperation", azureOperation) + .add("gcpOperation", gcpOperation) .add("message", message) - .add("operation", operation) .add("result", result) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultOperation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAwsOperation.java similarity index 81% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultOperation.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAwsOperation.java index 7337f8c88..9164cf1f4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultOperation.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAwsOperation.java @@ -6,9 +6,10 @@ /** The operation tested. */ @Generated -public enum ValidationResultOperation { +public enum ValidationResultAwsOperation { DELETE, LIST, + PATH_EXISTS, READ, WRITE, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAzureOperation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAzureOperation.java new file mode 100755 index 000000000..270ddbe5e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultAzureOperation.java @@ -0,0 +1,16 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** The operation tested. */ +@Generated +public enum ValidationResultAzureOperation { + DELETE, + HIERARCHICAL_NAMESPACE_ENABLED, + LIST, + PATH_EXISTS, + READ, + WRITE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultGcpOperation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultGcpOperation.java new file mode 100755 index 000000000..b2800c428 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ValidationResultGcpOperation.java @@ -0,0 +1,15 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; + +/** The operation tested. */ +@Generated +public enum ValidationResultGcpOperation { + DELETE, + LIST, + PATH_EXISTS, + READ, + WRITE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CloneCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CloneCluster.java new file mode 100755 index 000000000..8846cf8aa --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CloneCluster.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.compute; + +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 CloneCluster { + /** The cluster that is being cloned. */ + @JsonProperty("source_cluster_id") + private String sourceClusterId; + + public CloneCluster setSourceClusterId(String sourceClusterId) { + this.sourceClusterId = sourceClusterId; + return this; + } + + public String getSourceClusterId() { + return sourceClusterId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CloneCluster that = (CloneCluster) o; + return Objects.equals(sourceClusterId, that.sourceClusterId); + } + + @Override + public int hashCode() { + return Objects.hash(sourceClusterId); + } + + @Override + public String toString() { + return new ToStringer(CloneCluster.class).add("sourceClusterId", sourceClusterId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClusterSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClusterSpec.java index d64e22ab1..ef834b220 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClusterSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClusterSpec.java @@ -45,6 +45,13 @@ public class ClusterSpec { @JsonProperty("azure_attributes") private AzureAttributes azureAttributes; + /** + * When specified, this clones libraries from a source cluster during the creation of a new + * cluster. + */ + @JsonProperty("clone_from") + private CloneCluster cloneFrom; + /** * The configuration for delivering spark logs to a long-term storage destination. Two kinds of * destinations (dbfs and s3) are supported. Only one destination can be specified for one @@ -274,6 +281,15 @@ public AzureAttributes getAzureAttributes() { return azureAttributes; } + public ClusterSpec setCloneFrom(CloneCluster cloneFrom) { + this.cloneFrom = cloneFrom; + return this; + } + + public CloneCluster getCloneFrom() { + return cloneFrom; + } + public ClusterSpec setClusterLogConf(ClusterLogConf clusterLogConf) { this.clusterLogConf = clusterLogConf; return this; @@ -491,6 +507,7 @@ public boolean equals(Object o) { && Objects.equals(autoterminationMinutes, that.autoterminationMinutes) && Objects.equals(awsAttributes, that.awsAttributes) && Objects.equals(azureAttributes, that.azureAttributes) + && Objects.equals(cloneFrom, that.cloneFrom) && Objects.equals(clusterLogConf, that.clusterLogConf) && Objects.equals(clusterName, that.clusterName) && Objects.equals(clusterSource, that.clusterSource) @@ -524,6 +541,7 @@ public int hashCode() { autoterminationMinutes, awsAttributes, azureAttributes, + cloneFrom, clusterLogConf, clusterName, clusterSource, @@ -557,6 +575,7 @@ public String toString() { .add("autoterminationMinutes", autoterminationMinutes) .add("awsAttributes", awsAttributes) .add("azureAttributes", azureAttributes) + .add("cloneFrom", cloneFrom) .add("clusterLogConf", clusterLogConf) .add("clusterName", clusterName) .add("clusterSource", clusterSource) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpecKind.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpecKind.java deleted file mode 100755 index 28521670c..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpecKind.java +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.compute; - -import com.databricks.sdk.support.Generated; - -/** The kind of compute described by this compute specification. */ -@Generated -public enum ComputeSpecKind { - SERVERLESS_PREVIEW, -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateCluster.java index dc294c91b..01824b261 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateCluster.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateCluster.java @@ -45,6 +45,13 @@ public class CreateCluster { @JsonProperty("azure_attributes") private AzureAttributes azureAttributes; + /** + * When specified, this clones libraries from a source cluster during the creation of a new + * cluster. + */ + @JsonProperty("clone_from") + private CloneCluster cloneFrom; + /** * The configuration for delivering spark logs to a long-term storage destination. Two kinds of * destinations (dbfs and s3) are supported. Only one destination can be specified for one @@ -274,6 +281,15 @@ public AzureAttributes getAzureAttributes() { return azureAttributes; } + public CreateCluster setCloneFrom(CloneCluster cloneFrom) { + this.cloneFrom = cloneFrom; + return this; + } + + public CloneCluster getCloneFrom() { + return cloneFrom; + } + public CreateCluster setClusterLogConf(ClusterLogConf clusterLogConf) { this.clusterLogConf = clusterLogConf; return this; @@ -491,6 +507,7 @@ public boolean equals(Object o) { && Objects.equals(autoterminationMinutes, that.autoterminationMinutes) && Objects.equals(awsAttributes, that.awsAttributes) && Objects.equals(azureAttributes, that.azureAttributes) + && Objects.equals(cloneFrom, that.cloneFrom) && Objects.equals(clusterLogConf, that.clusterLogConf) && Objects.equals(clusterName, that.clusterName) && Objects.equals(clusterSource, that.clusterSource) @@ -524,6 +541,7 @@ public int hashCode() { autoterminationMinutes, awsAttributes, azureAttributes, + cloneFrom, clusterLogConf, clusterName, clusterSource, @@ -557,6 +575,7 @@ public String toString() { .add("autoterminationMinutes", autoterminationMinutes) .add("awsAttributes", awsAttributes) .add("azureAttributes", azureAttributes) + .add("cloneFrom", cloneFrom) .add("clusterLogConf", clusterLogConf) .add("clusterName", clusterName) .add("clusterSource", clusterSource) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditCluster.java index 1113ae904..3da5b88c7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditCluster.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditCluster.java @@ -45,6 +45,13 @@ public class EditCluster { @JsonProperty("azure_attributes") private AzureAttributes azureAttributes; + /** + * When specified, this clones libraries from a source cluster during the creation of a new + * cluster. + */ + @JsonProperty("clone_from") + private CloneCluster cloneFrom; + /** ID of the cluser */ @JsonProperty("cluster_id") private String clusterId; @@ -278,6 +285,15 @@ public AzureAttributes getAzureAttributes() { return azureAttributes; } + public EditCluster setCloneFrom(CloneCluster cloneFrom) { + this.cloneFrom = cloneFrom; + return this; + } + + public CloneCluster getCloneFrom() { + return cloneFrom; + } + public EditCluster setClusterId(String clusterId) { this.clusterId = clusterId; return this; @@ -504,6 +520,7 @@ public boolean equals(Object o) { && Objects.equals(autoterminationMinutes, that.autoterminationMinutes) && Objects.equals(awsAttributes, that.awsAttributes) && Objects.equals(azureAttributes, that.azureAttributes) + && Objects.equals(cloneFrom, that.cloneFrom) && Objects.equals(clusterId, that.clusterId) && Objects.equals(clusterLogConf, that.clusterLogConf) && Objects.equals(clusterName, that.clusterName) @@ -538,6 +555,7 @@ public int hashCode() { autoterminationMinutes, awsAttributes, azureAttributes, + cloneFrom, clusterId, clusterLogConf, clusterName, @@ -572,6 +590,7 @@ public String toString() { .add("autoterminationMinutes", autoterminationMinutes) .add("awsAttributes", awsAttributes) .add("azureAttributes", azureAttributes) + .add("cloneFrom", cloneFrom) .add("clusterId", clusterId) .add("clusterLogConf", clusterLogConf) .add("clusterName", clusterName) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java new file mode 100755 index 000000000..4b900e916 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/Environment.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.compute; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +/** + * The a environment entity used to preserve serverless environment side panel and jobs' environment + * for non-notebook task. In this minimal environment spec, only pip dependencies are supported. + * Next ID: 5 + */ +@Generated +public class Environment { + /** + * * User-friendly name for the client version: “client”: “1” The version is a string, consisting + * of the major client version + */ + @JsonProperty("client") + private String client; + + /** + * List of pip dependencies, as supported by the version of pip in this environment. Each + * dependency is a pip requirement file line + * https://pip.pypa.io/en/stable/reference/requirements-file-format/ Allowed dependency could be + * , , (WSFS or Volumes in + * Databricks), E.g. dependencies: ["foo==0.0.1", "-r + * /Workspace/test/requirements.txt"] + */ + @JsonProperty("dependencies") + private Collection dependencies; + + public Environment setClient(String client) { + this.client = client; + return this; + } + + public String getClient() { + return client; + } + + public Environment setDependencies(Collection dependencies) { + this.dependencies = dependencies; + return this; + } + + public Collection getDependencies() { + return dependencies; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Environment that = (Environment) o; + return Objects.equals(client, that.client) && Objects.equals(dependencies, that.dependencies); + } + + @Override + public int hashCode() { + return Objects.hash(client, dependencies); + } + + @Override + public String toString() { + return new ToStringer(Environment.class) + .add("client", client) + .add("dependencies", dependencies) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java index 7a25723e7..dca4a1bdb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java @@ -15,7 +15,7 @@ public class GetPermissionRequest { /** * The type of the request object. Can be one of the following: authorization, clusters, * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines, - * registered-models, repos, serving-endpoints, or sql-warehouses. + * registered-models, repos, serving-endpoints, or warehouses. */ private String requestObjectType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java index f559eb51d..6643d1063 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java @@ -20,7 +20,7 @@ public class PermissionsRequest { /** * The type of the request object. Can be one of the following: authorization, clusters, * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines, - * registered-models, repos, serving-endpoints, or sql-warehouses. + * registered-models, repos, serving-endpoints, or warehouses. */ private String requestObjectType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PrincipalOutput.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PrincipalOutput.java index ce5380f71..e3810f4d8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PrincipalOutput.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PrincipalOutput.java @@ -13,7 +13,7 @@ public class PrincipalOutput { @JsonProperty("display_name") private String displayName; - /** The group name of the groupl. Present only if the principal is a group. */ + /** The group name of the group. Present only if the principal is a group. */ @JsonProperty("group_name") private String groupName; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java index 3089c6e8b..8a0c4bd90 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java @@ -10,7 +10,11 @@ @Generated public class UpdateWorkspaceAssignments { - /** Array of permissions assignments to update on the workspace. */ + /** + * Array of permissions assignments to update on the workspace. Note that excluding this field + * will have the same effect as providing an empty list which will result in the deletion of all + * permissions for the principal. + */ @JsonProperty("permissions") private Collection permissions; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentAPI.java index 7b7e56a80..b6a21e025 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentAPI.java @@ -71,9 +71,9 @@ public Iterable list(ListWorkspaceAssignmentRequest reques return impl.list(request).getPermissionAssignments(); } - public void update( + public PermissionAssignment update( long workspaceId, long principalId, Collection permissions) { - update( + return update( new UpdateWorkspaceAssignments() .setWorkspaceId(workspaceId) .setPrincipalId(principalId) @@ -86,8 +86,8 @@ public void update( *

Creates or updates the workspace permissions assignment in a given account and workspace for * the specified principal. */ - public void update(UpdateWorkspaceAssignments request) { - impl.update(request); + public PermissionAssignment update(UpdateWorkspaceAssignments request) { + return impl.update(request); } public WorkspaceAssignmentService impl() { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentImpl.java index 4372b5dd9..49ffc9ca8 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentImpl.java @@ -49,7 +49,7 @@ public PermissionAssignments list(ListWorkspaceAssignmentRequest request) { } @Override - public void update(UpdateWorkspaceAssignments request) { + public PermissionAssignment update(UpdateWorkspaceAssignments request) { String path = String.format( "/api/2.0/accounts/%s/workspaces/%s/permissionassignments/principals/%s", @@ -57,6 +57,6 @@ public void update(UpdateWorkspaceAssignments request) { Map headers = new HashMap<>(); headers.put("Accept", "application/json"); headers.put("Content-Type", "application/json"); - apiClient.PUT(path, request, WorkspaceAssignmentsUpdated.class, headers); + return apiClient.PUT(path, request, PermissionAssignment.class, headers); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentService.java index 45bf51b24..4ec0dca6d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentService.java @@ -42,5 +42,5 @@ public interface WorkspaceAssignmentService { *

Creates or updates the workspace permissions assignment in a given account and workspace for * the specified principal. */ - void update(UpdateWorkspaceAssignments updateWorkspaceAssignments); + PermissionAssignment update(UpdateWorkspaceAssignments updateWorkspaceAssignments); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ClusterSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ClusterSpec.java index bccbc6780..4e080a1e3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ClusterSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ClusterSpec.java @@ -10,13 +10,6 @@ @Generated public class ClusterSpec { - /** - * The key of the compute requirement, specified in `job.settings.compute`, to use for execution - * of this task. - */ - @JsonProperty("compute_key") - private String computeKey; - /** * If existing_cluster_id, the ID of an existing cluster that is used for all runs. When running * jobs or tasks on an existing cluster, you may need to manually restart the cluster if it stops @@ -43,15 +36,6 @@ public class ClusterSpec { @JsonProperty("new_cluster") private com.databricks.sdk.service.compute.ClusterSpec newCluster; - public ClusterSpec setComputeKey(String computeKey) { - this.computeKey = computeKey; - return this; - } - - public String getComputeKey() { - return computeKey; - } - public ClusterSpec setExistingClusterId(String existingClusterId) { this.existingClusterId = existingClusterId; return this; @@ -94,8 +78,7 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ClusterSpec that = (ClusterSpec) o; - return Objects.equals(computeKey, that.computeKey) - && Objects.equals(existingClusterId, that.existingClusterId) + return Objects.equals(existingClusterId, that.existingClusterId) && Objects.equals(jobClusterKey, that.jobClusterKey) && Objects.equals(libraries, that.libraries) && Objects.equals(newCluster, that.newCluster); @@ -103,13 +86,12 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(computeKey, existingClusterId, jobClusterKey, libraries, newCluster); + return Objects.hash(existingClusterId, jobClusterKey, libraries, newCluster); } @Override public String toString() { return new ToStringer(ClusterSpec.class) - .add("computeKey", computeKey) .add("existingClusterId", existingClusterId) .add("jobClusterKey", jobClusterKey) .add("libraries", libraries) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java index 613414c36..8c55da7c0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CreateJob.java @@ -15,10 +15,6 @@ public class CreateJob { @JsonProperty("access_control_list") private Collection accessControlList; - /** A list of compute requirements that can be referenced by tasks of this job. */ - @JsonProperty("compute") - private Collection compute; - /** * An optional continuous property for this job. The continuous property will ensure that there is * always one run executing. Only one of `schedule` and `continuous` can be used. @@ -52,6 +48,13 @@ public class CreateJob { @JsonProperty("email_notifications") private JobEmailNotifications emailNotifications; + /** + * A list of task execution environment specifications that can be referenced by tasks of this + * job. + */ + @JsonProperty("environments") + private Collection environments; + /** * Used to tell what is the format of the job. This field is ignored in Create/Update/Reset calls. * When using the Jobs API 2.1 this value is always set to `"MULTI_TASK"`. @@ -173,15 +176,6 @@ public Collection getAccess return accessControlList; } - public CreateJob setCompute(Collection compute) { - this.compute = compute; - return this; - } - - public Collection getCompute() { - return compute; - } - public CreateJob setContinuous(Continuous continuous) { this.continuous = continuous; return this; @@ -227,6 +221,15 @@ public JobEmailNotifications getEmailNotifications() { return emailNotifications; } + public CreateJob setEnvironments(Collection environments) { + this.environments = environments; + return this; + } + + public Collection getEnvironments() { + return environments; + } + public CreateJob setFormat(Format format) { this.format = format; return this; @@ -377,12 +380,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; CreateJob that = (CreateJob) o; return Objects.equals(accessControlList, that.accessControlList) - && Objects.equals(compute, that.compute) && Objects.equals(continuous, that.continuous) && Objects.equals(deployment, that.deployment) && Objects.equals(description, that.description) && Objects.equals(editMode, that.editMode) && Objects.equals(emailNotifications, that.emailNotifications) + && Objects.equals(environments, that.environments) && Objects.equals(format, that.format) && Objects.equals(gitSource, that.gitSource) && Objects.equals(health, that.health) @@ -405,12 +408,12 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( accessControlList, - compute, continuous, deployment, description, editMode, emailNotifications, + environments, format, gitSource, health, @@ -433,12 +436,12 @@ public int hashCode() { public String toString() { return new ToStringer(CreateJob.class) .add("accessControlList", accessControlList) - .add("compute", compute) .add("continuous", continuous) .add("deployment", deployment) .add("description", description) .add("editMode", editMode) .add("emailNotifications", emailNotifications) + .add("environments", environments) .add("format", format) .add("gitSource", gitSource) .add("health", health) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompute.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompute.java deleted file mode 100755 index 7a738f26a..000000000 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompute.java +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. - -package com.databricks.sdk.service.jobs; - -import com.databricks.sdk.support.Generated; -import com.databricks.sdk.support.ToStringer; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Objects; - -@Generated -public class JobCompute { - /** - * A unique name for the compute requirement. This field is required and must be unique within the - * job. `JobTaskSettings` may refer to this field to determine the compute requirements for the - * task execution. - */ - @JsonProperty("compute_key") - private String computeKey; - - /** */ - @JsonProperty("spec") - private com.databricks.sdk.service.compute.ComputeSpec spec; - - public JobCompute setComputeKey(String computeKey) { - this.computeKey = computeKey; - return this; - } - - public String getComputeKey() { - return computeKey; - } - - public JobCompute setSpec(com.databricks.sdk.service.compute.ComputeSpec spec) { - this.spec = spec; - return this; - } - - public com.databricks.sdk.service.compute.ComputeSpec getSpec() { - return spec; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - JobCompute that = (JobCompute) o; - return Objects.equals(computeKey, that.computeKey) && Objects.equals(spec, that.spec); - } - - @Override - public int hashCode() { - return Objects.hash(computeKey, spec); - } - - @Override - public String toString() { - return new ToStringer(JobCompute.class) - .add("computeKey", computeKey) - .add("spec", spec) - .toString(); - } -} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobEnvironment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobEnvironment.java new file mode 100755 index 000000000..9fb6ddbdd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobEnvironment.java @@ -0,0 +1,62 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.jobs; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class JobEnvironment { + /** The key of an environment. It has to be unique within a job. */ + @JsonProperty("environment_key") + private String environmentKey; + + /** + * The a environment entity used to preserve serverless environment side panel and jobs' + * environment for non-notebook task. In this minimal environment spec, only pip dependencies are + * supported. Next ID: 5 + */ + @JsonProperty("spec") + private com.databricks.sdk.service.compute.Environment spec; + + public JobEnvironment setEnvironmentKey(String environmentKey) { + this.environmentKey = environmentKey; + return this; + } + + public String getEnvironmentKey() { + return environmentKey; + } + + public JobEnvironment setSpec(com.databricks.sdk.service.compute.Environment spec) { + this.spec = spec; + return this; + } + + public com.databricks.sdk.service.compute.Environment getSpec() { + return spec; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + JobEnvironment that = (JobEnvironment) o; + return Objects.equals(environmentKey, that.environmentKey) && Objects.equals(spec, that.spec); + } + + @Override + public int hashCode() { + return Objects.hash(environmentKey, spec); + } + + @Override + public String toString() { + return new ToStringer(JobEnvironment.class) + .add("environmentKey", environmentKey) + .add("spec", spec) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java index 6ec191d42..b604e002a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobSettings.java @@ -11,10 +11,6 @@ @Generated public class JobSettings { - /** A list of compute requirements that can be referenced by tasks of this job. */ - @JsonProperty("compute") - private Collection compute; - /** * An optional continuous property for this job. The continuous property will ensure that there is * always one run executing. Only one of `schedule` and `continuous` can be used. @@ -48,6 +44,13 @@ public class JobSettings { @JsonProperty("email_notifications") private JobEmailNotifications emailNotifications; + /** + * A list of task execution environment specifications that can be referenced by tasks of this + * job. + */ + @JsonProperty("environments") + private Collection environments; + /** * Used to tell what is the format of the job. This field is ignored in Create/Update/Reset calls. * When using the Jobs API 2.1 this value is always set to `"MULTI_TASK"`. @@ -159,15 +162,6 @@ public class JobSettings { @JsonProperty("webhook_notifications") private WebhookNotifications webhookNotifications; - public JobSettings setCompute(Collection compute) { - this.compute = compute; - return this; - } - - public Collection getCompute() { - return compute; - } - public JobSettings setContinuous(Continuous continuous) { this.continuous = continuous; return this; @@ -213,6 +207,15 @@ public JobEmailNotifications getEmailNotifications() { return emailNotifications; } + public JobSettings setEnvironments(Collection environments) { + this.environments = environments; + return this; + } + + public Collection getEnvironments() { + return environments; + } + public JobSettings setFormat(Format format) { this.format = format; return this; @@ -362,12 +365,12 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; JobSettings that = (JobSettings) o; - return Objects.equals(compute, that.compute) - && Objects.equals(continuous, that.continuous) + return Objects.equals(continuous, that.continuous) && Objects.equals(deployment, that.deployment) && Objects.equals(description, that.description) && Objects.equals(editMode, that.editMode) && Objects.equals(emailNotifications, that.emailNotifications) + && Objects.equals(environments, that.environments) && Objects.equals(format, that.format) && Objects.equals(gitSource, that.gitSource) && Objects.equals(health, that.health) @@ -389,12 +392,12 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - compute, continuous, deployment, description, editMode, emailNotifications, + environments, format, gitSource, health, @@ -416,12 +419,12 @@ public int hashCode() { @Override public String toString() { return new ToStringer(JobSettings.class) - .add("compute", compute) .add("continuous", continuous) .add("deployment", deployment) .add("description", description) .add("editMode", editMode) .add("emailNotifications", emailNotifications) + .add("environments", environments) .add("format", format) .add("gitSource", gitSource) .add("health", health) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java index 8b840c073..4a46148a5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java @@ -37,13 +37,6 @@ public class RunTask { @JsonProperty("cluster_instance") private ClusterInstance clusterInstance; - /** - * The key of the compute requirement, specified in `job.settings.compute`, to use for execution - * of this task. - */ - @JsonProperty("compute_key") - private String computeKey; - /** * If condition_task, specifies a condition with an outcome that can be used to control the * execution of other tasks. Does not require a cluster to execute and does not support retries or @@ -291,15 +284,6 @@ public ClusterInstance getClusterInstance() { return clusterInstance; } - public RunTask setComputeKey(String computeKey) { - this.computeKey = computeKey; - return this; - } - - public String getComputeKey() { - return computeKey; - } - public RunTask setConditionTask(RunConditionTask conditionTask) { this.conditionTask = conditionTask; return this; @@ -614,7 +598,6 @@ public boolean equals(Object o) { return Objects.equals(attemptNumber, that.attemptNumber) && Objects.equals(cleanupDuration, that.cleanupDuration) && Objects.equals(clusterInstance, that.clusterInstance) - && Objects.equals(computeKey, that.computeKey) && Objects.equals(conditionTask, that.conditionTask) && Objects.equals(dbtTask, that.dbtTask) && Objects.equals(dependsOn, that.dependsOn) @@ -657,7 +640,6 @@ public int hashCode() { attemptNumber, cleanupDuration, clusterInstance, - computeKey, conditionTask, dbtTask, dependsOn, @@ -700,7 +682,6 @@ public String toString() { .add("attemptNumber", attemptNumber) .add("cleanupDuration", cleanupDuration) .add("clusterInstance", clusterInstance) - .add("computeKey", computeKey) .add("conditionTask", conditionTask) .add("dbtTask", dbtTask) .add("dependsOn", dependsOn) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableTriggerConfiguration.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableUpdateTriggerConfiguration.java similarity index 83% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableTriggerConfiguration.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableUpdateTriggerConfiguration.java index ac3233968..db8989c2e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableTriggerConfiguration.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TableUpdateTriggerConfiguration.java @@ -9,7 +9,7 @@ import java.util.Objects; @Generated -public class TableTriggerConfiguration { +public class TableUpdateTriggerConfiguration { /** The table(s) condition based on which to trigger a job run. */ @JsonProperty("condition") private Condition condition; @@ -36,7 +36,7 @@ public class TableTriggerConfiguration { @JsonProperty("wait_after_last_change_seconds") private Long waitAfterLastChangeSeconds; - public TableTriggerConfiguration setCondition(Condition condition) { + public TableUpdateTriggerConfiguration setCondition(Condition condition) { this.condition = condition; return this; } @@ -45,7 +45,7 @@ public Condition getCondition() { return condition; } - public TableTriggerConfiguration setMinTimeBetweenTriggersSeconds( + public TableUpdateTriggerConfiguration setMinTimeBetweenTriggersSeconds( Long minTimeBetweenTriggersSeconds) { this.minTimeBetweenTriggersSeconds = minTimeBetweenTriggersSeconds; return this; @@ -55,7 +55,7 @@ public Long getMinTimeBetweenTriggersSeconds() { return minTimeBetweenTriggersSeconds; } - public TableTriggerConfiguration setTableNames(Collection tableNames) { + public TableUpdateTriggerConfiguration setTableNames(Collection tableNames) { this.tableNames = tableNames; return this; } @@ -64,7 +64,8 @@ public Collection getTableNames() { return tableNames; } - public TableTriggerConfiguration setWaitAfterLastChangeSeconds(Long waitAfterLastChangeSeconds) { + public TableUpdateTriggerConfiguration setWaitAfterLastChangeSeconds( + Long waitAfterLastChangeSeconds) { this.waitAfterLastChangeSeconds = waitAfterLastChangeSeconds; return this; } @@ -77,7 +78,7 @@ public Long getWaitAfterLastChangeSeconds() { public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - TableTriggerConfiguration that = (TableTriggerConfiguration) o; + TableUpdateTriggerConfiguration that = (TableUpdateTriggerConfiguration) o; return Objects.equals(condition, that.condition) && Objects.equals(minTimeBetweenTriggersSeconds, that.minTimeBetweenTriggersSeconds) && Objects.equals(tableNames, that.tableNames) @@ -92,7 +93,7 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(TableTriggerConfiguration.class) + return new ToStringer(TableUpdateTriggerConfiguration.class) .add("condition", condition) .add("minTimeBetweenTriggersSeconds", minTimeBetweenTriggersSeconds) .add("tableNames", tableNames) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java index 22dc56609..0f9026396 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Task.java @@ -10,13 +10,6 @@ @Generated public class Task { - /** - * The key of the compute requirement, specified in `job.settings.compute`, to use for execution - * of this task. - */ - @JsonProperty("compute_key") - private String computeKey; - /** * If condition_task, specifies a condition with an outcome that can be used to control the * execution of other tasks. Does not require a cluster to execute and does not support retries or @@ -56,6 +49,13 @@ public class Task { @JsonProperty("email_notifications") private TaskEmailNotifications emailNotifications; + /** + * The key that references an environment spec in a job. This field is required for Python script, + * Python wheel and dbt tasks when using serverless compute. + */ + @JsonProperty("environment_key") + private String environmentKey; + /** * If existing_cluster_id, the ID of an existing cluster that is used for all runs. When running * jobs or tasks on an existing cluster, you may need to manually restart the cluster if it stops @@ -203,15 +203,6 @@ public class Task { @JsonProperty("webhook_notifications") private WebhookNotifications webhookNotifications; - public Task setComputeKey(String computeKey) { - this.computeKey = computeKey; - return this; - } - - public String getComputeKey() { - return computeKey; - } - public Task setConditionTask(ConditionTask conditionTask) { this.conditionTask = conditionTask; return this; @@ -266,6 +257,15 @@ public TaskEmailNotifications getEmailNotifications() { return emailNotifications; } + public Task setEnvironmentKey(String environmentKey) { + this.environmentKey = environmentKey; + return this; + } + + public String getEnvironmentKey() { + return environmentKey; + } + public Task setExistingClusterId(String existingClusterId) { this.existingClusterId = existingClusterId; return this; @@ -469,13 +469,13 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Task that = (Task) o; - return Objects.equals(computeKey, that.computeKey) - && Objects.equals(conditionTask, that.conditionTask) + return Objects.equals(conditionTask, that.conditionTask) && Objects.equals(dbtTask, that.dbtTask) && Objects.equals(dependsOn, that.dependsOn) && Objects.equals(description, that.description) && Objects.equals(disableAutoOptimization, that.disableAutoOptimization) && Objects.equals(emailNotifications, that.emailNotifications) + && Objects.equals(environmentKey, that.environmentKey) && Objects.equals(existingClusterId, that.existingClusterId) && Objects.equals(forEachTask, that.forEachTask) && Objects.equals(health, that.health) @@ -503,13 +503,13 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - computeKey, conditionTask, dbtTask, dependsOn, description, disableAutoOptimization, emailNotifications, + environmentKey, existingClusterId, forEachTask, health, @@ -537,13 +537,13 @@ public int hashCode() { @Override public String toString() { return new ToStringer(Task.class) - .add("computeKey", computeKey) .add("conditionTask", conditionTask) .add("dbtTask", dbtTask) .add("dependsOn", dependsOn) .add("description", description) .add("disableAutoOptimization", disableAutoOptimization) .add("emailNotifications", emailNotifications) + .add("environmentKey", environmentKey) .add("existingClusterId", existingClusterId) .add("forEachTask", forEachTask) .add("health", health) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TriggerSettings.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TriggerSettings.java index ae1fb8731..069ac1c68 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TriggerSettings.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/TriggerSettings.java @@ -19,11 +19,11 @@ public class TriggerSettings { /** Old table trigger settings name. Deprecated in favor of `table_update`. */ @JsonProperty("table") - private TableTriggerConfiguration table; + private TableUpdateTriggerConfiguration table; /** */ @JsonProperty("table_update") - private TableTriggerConfiguration tableUpdate; + private TableUpdateTriggerConfiguration tableUpdate; public TriggerSettings setFileArrival(FileArrivalTriggerConfiguration fileArrival) { this.fileArrival = fileArrival; @@ -43,21 +43,21 @@ public PauseStatus getPauseStatus() { return pauseStatus; } - public TriggerSettings setTable(TableTriggerConfiguration table) { + public TriggerSettings setTable(TableUpdateTriggerConfiguration table) { this.table = table; return this; } - public TableTriggerConfiguration getTable() { + public TableUpdateTriggerConfiguration getTable() { return table; } - public TriggerSettings setTableUpdate(TableTriggerConfiguration tableUpdate) { + public TriggerSettings setTableUpdate(TableUpdateTriggerConfiguration tableUpdate) { this.tableUpdate = tableUpdate; return this; } - public TableTriggerConfiguration getTableUpdate() { + public TableUpdateTriggerConfiguration getTableUpdate() { return tableUpdate; } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingRequest.java new file mode 100755 index 000000000..8c788493a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingRequest.java @@ -0,0 +1,58 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 AddExchangeForListingRequest { + /** */ + @JsonProperty("exchange_id") + private String exchangeId; + + /** */ + @JsonProperty("listing_id") + private String listingId; + + public AddExchangeForListingRequest setExchangeId(String exchangeId) { + this.exchangeId = exchangeId; + return this; + } + + public String getExchangeId() { + return exchangeId; + } + + public AddExchangeForListingRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AddExchangeForListingRequest that = (AddExchangeForListingRequest) o; + return Objects.equals(exchangeId, that.exchangeId) && Objects.equals(listingId, that.listingId); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeId, listingId); + } + + @Override + public String toString() { + return new ToStringer(AddExchangeForListingRequest.class) + .add("exchangeId", exchangeId) + .add("listingId", listingId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingResponse.java new file mode 100755 index 000000000..4dc2a5d00 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AddExchangeForListingResponse.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 AddExchangeForListingResponse { + /** */ + @JsonProperty("exchange_for_listing") + private ExchangeListing exchangeForListing; + + public AddExchangeForListingResponse setExchangeForListing(ExchangeListing exchangeForListing) { + this.exchangeForListing = exchangeForListing; + return this; + } + + public ExchangeListing getExchangeForListing() { + return exchangeForListing; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AddExchangeForListingResponse that = (AddExchangeForListingResponse) o; + return Objects.equals(exchangeForListing, that.exchangeForListing); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeForListing); + } + + @Override + public String toString() { + return new ToStringer(AddExchangeForListingResponse.class) + .add("exchangeForListing", exchangeForListing) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java new file mode 100755 index 000000000..f77ffde80 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java @@ -0,0 +1,15 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum AssetType { + ASSET_TYPE_DATA_TABLE, + ASSET_TYPE_GIT_REPO, + ASSET_TYPE_MEDIA, + ASSET_TYPE_MODEL, + ASSET_TYPE_NOTEBOOK, + ASSET_TYPE_UNSPECIFIED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Category.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Category.java new file mode 100755 index 000000000..9aa94d271 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Category.java @@ -0,0 +1,31 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum Category { + ADVERTISING_AND_MARKETING, + CLIMATE_AND_ENVIRONMENT, + COMMERCE, + DEMOGRAPHICS, + ECONOMICS, + EDUCATION, + ENERGY, + FINANCIAL, + GAMING, + GEOSPATIAL, + HEALTH, + LOOKUP_TABLES, + MANUFACTURING, + MEDIA, + OTHER, + PUBLIC_SECTOR, + RETAIL, + SCIENCE_AND_RESEARCH, + SECURITY, + SPORTS, + TRANSPORTATION_AND_LOGISTICS, + TRAVEL_AND_TOURISM, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java new file mode 100755 index 000000000..bfb94cfdc --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java @@ -0,0 +1,79 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** Fulfillments are entities that allow consumers to preview installations. */ +@Generated +public class ConsumerFulfillmentsAPI { + private static final Logger LOG = LoggerFactory.getLogger(ConsumerFulfillmentsAPI.class); + + private final ConsumerFulfillmentsService impl; + + /** Regular-use constructor */ + public ConsumerFulfillmentsAPI(ApiClient apiClient) { + impl = new ConsumerFulfillmentsImpl(apiClient); + } + + /** Constructor for mocks */ + public ConsumerFulfillmentsAPI(ConsumerFulfillmentsService mock) { + impl = mock; + } + + public Iterable get(String listingId) { + return get(new GetListingContentMetadataRequest().setListingId(listingId)); + } + + /** + * Get listing content metadata. + * + *

Get a high level preview of the metadata of listing installable content. + */ + public Iterable get(GetListingContentMetadataRequest request) { + return new Paginator<>( + request, + impl::get, + GetListingContentMetadataResponse::getSharedDataObjects, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public Iterable list(String listingId) { + return list(new ListFulfillmentsRequest().setListingId(listingId)); + } + + /** + * List all listing fulfillments. + * + *

Get all listings fulfillments associated with a listing. A _fulfillment_ is a potential + * installation. Standard installations contain metadata about the attached share or git repo. + * Only one of these fields will be present. Personalized installations contain metadata about the + * attached share or git repo, as well as the Delta Sharing recipient type. + */ + public Iterable list(ListFulfillmentsRequest request) { + return new Paginator<>( + request, + impl::list, + ListFulfillmentsResponse::getFulfillments, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public ConsumerFulfillmentsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsImpl.java new file mode 100755 index 000000000..98c870847 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsImpl.java @@ -0,0 +1,36 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ConsumerFulfillments */ +@Generated +class ConsumerFulfillmentsImpl implements ConsumerFulfillmentsService { + private final ApiClient apiClient; + + public ConsumerFulfillmentsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public GetListingContentMetadataResponse get(GetListingContentMetadataRequest request) { + String path = + String.format("/api/2.1/marketplace-consumer/listings/%s/content", request.getListingId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetListingContentMetadataResponse.class, headers); + } + + @Override + public ListFulfillmentsResponse list(ListFulfillmentsRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/fulfillments", request.getListingId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListFulfillmentsResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsService.java new file mode 100755 index 000000000..0a7737bd6 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsService.java @@ -0,0 +1,32 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Fulfillments are entities that allow consumers to preview installations. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ConsumerFulfillmentsService { + /** + * Get listing content metadata. + * + *

Get a high level preview of the metadata of listing installable content. + */ + GetListingContentMetadataResponse get( + GetListingContentMetadataRequest getListingContentMetadataRequest); + + /** + * List all listing fulfillments. + * + *

Get all listings fulfillments associated with a listing. A _fulfillment_ is a potential + * installation. Standard installations contain metadata about the attached share or git repo. + * Only one of these fields will be present. Personalized installations contain metadata about the + * attached share or git repo, as well as the Delta Sharing recipient type. + */ + ListFulfillmentsResponse list(ListFulfillmentsRequest listFulfillmentsRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java new file mode 100755 index 000000000..4cb983d47 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java @@ -0,0 +1,122 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Installations are entities that allow consumers to interact with Databricks Marketplace listings. + */ +@Generated +public class ConsumerInstallationsAPI { + private static final Logger LOG = LoggerFactory.getLogger(ConsumerInstallationsAPI.class); + + private final ConsumerInstallationsService impl; + + /** Regular-use constructor */ + public ConsumerInstallationsAPI(ApiClient apiClient) { + impl = new ConsumerInstallationsImpl(apiClient); + } + + /** Constructor for mocks */ + public ConsumerInstallationsAPI(ConsumerInstallationsService mock) { + impl = mock; + } + + public Installation create(String listingId) { + return create(new CreateInstallationRequest().setListingId(listingId)); + } + + /** + * Install from a listing. + * + *

Install payload associated with a Databricks Marketplace listing. + */ + public Installation create(CreateInstallationRequest request) { + return impl.create(request); + } + + public void delete(String listingId, String installationId) { + delete( + new DeleteInstallationRequest().setListingId(listingId).setInstallationId(installationId)); + } + + /** + * Uninstall from a listing. + * + *

Uninstall an installation associated with a Databricks Marketplace listing. + */ + public void delete(DeleteInstallationRequest request) { + impl.delete(request); + } + + /** + * List all installations. + * + *

List all installations across all listings. + */ + public Iterable list(ListAllInstallationsRequest request) { + return new Paginator<>( + request, + impl::list, + ListAllInstallationsResponse::getInstallations, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public Iterable listListingInstallations(String listingId) { + return listListingInstallations(new ListInstallationsRequest().setListingId(listingId)); + } + + /** + * List installations for a listing. + * + *

List all installations for a particular listing. + */ + public Iterable listListingInstallations(ListInstallationsRequest request) { + return new Paginator<>( + request, + impl::listListingInstallations, + ListInstallationsResponse::getInstallations, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public UpdateInstallationResponse update( + String listingId, String installationId, InstallationDetail installation) { + return update( + new UpdateInstallationRequest() + .setListingId(listingId) + .setInstallationId(installationId) + .setInstallation(installation)); + } + + /** + * Update an installation. + * + *

This is a update API that will update the part of the fields defined in the installation + * table as well as interact with external services according to the fields not included in the + * installation table 1. the token will be rotate if the rotateToken flag is true 2. the token + * will be forcibly rotate if the rotateToken flag is true and the tokenInfo field is empty + */ + public UpdateInstallationResponse update(UpdateInstallationRequest request) { + return impl.update(request); + } + + public ConsumerInstallationsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsImpl.java new file mode 100755 index 000000000..6a8f91809 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsImpl.java @@ -0,0 +1,69 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ConsumerInstallations */ +@Generated +class ConsumerInstallationsImpl implements ConsumerInstallationsService { + private final ApiClient apiClient; + + public ConsumerInstallationsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public Installation create(CreateInstallationRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/installations", request.getListingId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, Installation.class, headers); + } + + @Override + public void delete(DeleteInstallationRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/installations/%s", + request.getListingId(), request.getInstallationId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, DeleteInstallationResponse.class, headers); + } + + @Override + public ListAllInstallationsResponse list(ListAllInstallationsRequest request) { + String path = "/api/2.1/marketplace-consumer/installations"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListAllInstallationsResponse.class, headers); + } + + @Override + public ListInstallationsResponse listListingInstallations(ListInstallationsRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/installations", request.getListingId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListInstallationsResponse.class, headers); + } + + @Override + public UpdateInstallationResponse update(UpdateInstallationRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/installations/%s", + request.getListingId(), request.getInstallationId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdateInstallationResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsService.java new file mode 100755 index 000000000..0b94c9a25 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsService.java @@ -0,0 +1,53 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Installations are entities that allow consumers to interact with Databricks Marketplace listings. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ConsumerInstallationsService { + /** + * Install from a listing. + * + *

Install payload associated with a Databricks Marketplace listing. + */ + Installation create(CreateInstallationRequest createInstallationRequest); + + /** + * Uninstall from a listing. + * + *

Uninstall an installation associated with a Databricks Marketplace listing. + */ + void delete(DeleteInstallationRequest deleteInstallationRequest); + + /** + * List all installations. + * + *

List all installations across all listings. + */ + ListAllInstallationsResponse list(ListAllInstallationsRequest listAllInstallationsRequest); + + /** + * List installations for a listing. + * + *

List all installations for a particular listing. + */ + ListInstallationsResponse listListingInstallations( + ListInstallationsRequest listInstallationsRequest); + + /** + * Update an installation. + * + *

This is a update API that will update the part of the fields defined in the installation + * table as well as interact with external services according to the fields not included in the + * installation table 1. the token will be rotate if the rotateToken flag is true 2. the token + * will be forcibly rotate if the rotateToken flag is true and the tokenInfo field is empty + */ + UpdateInstallationResponse update(UpdateInstallationRequest updateInstallationRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java new file mode 100755 index 000000000..ef71edbf4 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java @@ -0,0 +1,89 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Listings are the core entities in the Marketplace. They represent the products that are available + * for consumption. + */ +@Generated +public class ConsumerListingsAPI { + private static final Logger LOG = LoggerFactory.getLogger(ConsumerListingsAPI.class); + + private final ConsumerListingsService impl; + + /** Regular-use constructor */ + public ConsumerListingsAPI(ApiClient apiClient) { + impl = new ConsumerListingsImpl(apiClient); + } + + /** Constructor for mocks */ + public ConsumerListingsAPI(ConsumerListingsService mock) { + impl = mock; + } + + public GetListingResponse get(String id) { + return get(new GetListingRequest().setId(id)); + } + + /** + * Get listing. + * + *

Get a published listing in the Databricks Marketplace that the consumer has access to. + */ + public GetListingResponse get(GetListingRequest request) { + return impl.get(request); + } + + /** + * List listings. + * + *

List all published listings in the Databricks Marketplace that the consumer has access to. + */ + public Iterable

list(ListListingsRequest request) { + return new Paginator<>( + request, + impl::list, + ListListingsResponse::getListings, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public Iterable search(String query) { + return search(new SearchListingsRequest().setQuery(query)); + } + + /** + * Search listings. + * + *

Search published listings in the Databricks Marketplace that the consumer has access to. + * This query supports a variety of different search parameters and performs fuzzy matching. + */ + public Iterable

search(SearchListingsRequest request) { + return new Paginator<>( + request, + impl::search, + SearchListingsResponse::getListings, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public ConsumerListingsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsImpl.java new file mode 100755 index 000000000..d930c0631 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsImpl.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ConsumerListings */ +@Generated +class ConsumerListingsImpl implements ConsumerListingsService { + private final ApiClient apiClient; + + public ConsumerListingsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public GetListingResponse get(GetListingRequest request) { + String path = String.format("/api/2.1/marketplace-consumer/listings/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetListingResponse.class, headers); + } + + @Override + public ListListingsResponse list(ListListingsRequest request) { + String path = "/api/2.1/marketplace-consumer/listings"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListListingsResponse.class, headers); + } + + @Override + public SearchListingsResponse search(SearchListingsRequest request) { + String path = "/api/2.1/marketplace-consumer/search-listings"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, SearchListingsResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsService.java new file mode 100755 index 000000000..d26e8e174 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsService.java @@ -0,0 +1,37 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Listings are the core entities in the Marketplace. They represent the products that are available + * for consumption. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ConsumerListingsService { + /** + * Get listing. + * + *

Get a published listing in the Databricks Marketplace that the consumer has access to. + */ + GetListingResponse get(GetListingRequest getListingRequest); + + /** + * List listings. + * + *

List all published listings in the Databricks Marketplace that the consumer has access to. + */ + ListListingsResponse list(ListListingsRequest listListingsRequest); + + /** + * Search listings. + * + *

Search published listings in the Databricks Marketplace that the consumer has access to. + * This query supports a variety of different search parameters and performs fuzzy matching. + */ + SearchListingsResponse search(SearchListingsRequest searchListingsRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java new file mode 100755 index 000000000..a762f3e82 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java @@ -0,0 +1,85 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Personalization Requests allow customers to interact with the individualized Marketplace listing + * flow. + */ +@Generated +public class ConsumerPersonalizationRequestsAPI { + private static final Logger LOG = + LoggerFactory.getLogger(ConsumerPersonalizationRequestsAPI.class); + + private final ConsumerPersonalizationRequestsService impl; + + /** Regular-use constructor */ + public ConsumerPersonalizationRequestsAPI(ApiClient apiClient) { + impl = new ConsumerPersonalizationRequestsImpl(apiClient); + } + + /** Constructor for mocks */ + public ConsumerPersonalizationRequestsAPI(ConsumerPersonalizationRequestsService mock) { + impl = mock; + } + + public CreatePersonalizationRequestResponse create( + String listingId, String intendedUse, ConsumerTerms acceptedConsumerTerms) { + return create( + new CreatePersonalizationRequest() + .setListingId(listingId) + .setIntendedUse(intendedUse) + .setAcceptedConsumerTerms(acceptedConsumerTerms)); + } + + /** + * Create a personalization request. + * + *

Create a personalization request for a listing. + */ + public CreatePersonalizationRequestResponse create(CreatePersonalizationRequest request) { + return impl.create(request); + } + + public GetPersonalizationRequestResponse get(String listingId) { + return get(new GetPersonalizationRequestRequest().setListingId(listingId)); + } + + /** + * Get the personalization request for a listing. + * + *

Get the personalization request for a listing. Each consumer can make at *most* one + * personalization request for a listing. + */ + public GetPersonalizationRequestResponse get(GetPersonalizationRequestRequest request) { + return impl.get(request); + } + + /** + * List all personalization requests. + * + *

List personalization requests for a consumer across all listings. + */ + public Iterable list(ListAllPersonalizationRequestsRequest request) { + return new Paginator<>( + request, + impl::list, + ListAllPersonalizationRequestsResponse::getPersonalizationRequests, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public ConsumerPersonalizationRequestsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsImpl.java new file mode 100755 index 000000000..6f35542a7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsImpl.java @@ -0,0 +1,49 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ConsumerPersonalizationRequests */ +@Generated +class ConsumerPersonalizationRequestsImpl implements ConsumerPersonalizationRequestsService { + private final ApiClient apiClient; + + public ConsumerPersonalizationRequestsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public CreatePersonalizationRequestResponse create(CreatePersonalizationRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/personalization-requests", + request.getListingId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreatePersonalizationRequestResponse.class, headers); + } + + @Override + public GetPersonalizationRequestResponse get(GetPersonalizationRequestRequest request) { + String path = + String.format( + "/api/2.1/marketplace-consumer/listings/%s/personalization-requests", + request.getListingId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetPersonalizationRequestResponse.class, headers); + } + + @Override + public ListAllPersonalizationRequestsResponse list( + ListAllPersonalizationRequestsRequest request) { + String path = "/api/2.1/marketplace-consumer/personalization-requests"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListAllPersonalizationRequestsResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsService.java new file mode 100755 index 000000000..076d75c1c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsService.java @@ -0,0 +1,40 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Personalization Requests allow customers to interact with the individualized Marketplace listing + * flow. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ConsumerPersonalizationRequestsService { + /** + * Create a personalization request. + * + *

Create a personalization request for a listing. + */ + CreatePersonalizationRequestResponse create( + CreatePersonalizationRequest createPersonalizationRequest); + + /** + * Get the personalization request for a listing. + * + *

Get the personalization request for a listing. Each consumer can make at *most* one + * personalization request for a listing. + */ + GetPersonalizationRequestResponse get( + GetPersonalizationRequestRequest getPersonalizationRequestRequest); + + /** + * List all personalization requests. + * + *

List personalization requests for a consumer across all listings. + */ + ListAllPersonalizationRequestsResponse list( + ListAllPersonalizationRequestsRequest listAllPersonalizationRequestsRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java new file mode 100755 index 000000000..1b586c5f0 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java @@ -0,0 +1,62 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** Providers are the entities that publish listings to the Marketplace. */ +@Generated +public class ConsumerProvidersAPI { + private static final Logger LOG = LoggerFactory.getLogger(ConsumerProvidersAPI.class); + + private final ConsumerProvidersService impl; + + /** Regular-use constructor */ + public ConsumerProvidersAPI(ApiClient apiClient) { + impl = new ConsumerProvidersImpl(apiClient); + } + + /** Constructor for mocks */ + public ConsumerProvidersAPI(ConsumerProvidersService mock) { + impl = mock; + } + + public GetProviderResponse get(String id) { + return get(new GetProviderRequest().setId(id)); + } + + /** + * Get a provider. + * + *

Get a provider in the Databricks Marketplace with at least one visible listing. + */ + public GetProviderResponse get(GetProviderRequest request) { + return impl.get(request); + } + + /** + * List providers. + * + *

List all providers in the Databricks Marketplace with at least one visible listing. + */ + public Iterable list(ListProvidersRequest request) { + return new Paginator<>( + request, + impl::list, + ListProvidersResponse::getProviders, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public ConsumerProvidersService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersImpl.java new file mode 100755 index 000000000..261557fdd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersImpl.java @@ -0,0 +1,33 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ConsumerProviders */ +@Generated +class ConsumerProvidersImpl implements ConsumerProvidersService { + private final ApiClient apiClient; + + public ConsumerProvidersImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public GetProviderResponse get(GetProviderRequest request) { + String path = String.format("/api/2.1/marketplace-consumer/providers/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetProviderResponse.class, headers); + } + + @Override + public ListProvidersResponse list(ListProvidersRequest request) { + String path = "/api/2.1/marketplace-consumer/providers"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListProvidersResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersService.java new file mode 100755 index 000000000..2f78fd91c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersService.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Providers are the entities that publish listings to the Marketplace. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ConsumerProvidersService { + /** + * Get a provider. + * + *

Get a provider in the Databricks Marketplace with at least one visible listing. + */ + GetProviderResponse get(GetProviderRequest getProviderRequest); + + /** + * List providers. + * + *

List all providers in the Databricks Marketplace with at least one visible listing. + */ + ListProvidersResponse list(ListProvidersRequest listProvidersRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerTerms.java similarity index 50% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpec.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerTerms.java index f38ca517b..4be619f52 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ComputeSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerTerms.java @@ -1,6 +1,6 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.compute; +package com.databricks.sdk.service.marketplace; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; @@ -8,35 +8,35 @@ import java.util.Objects; @Generated -public class ComputeSpec { - /** The kind of compute described by this compute specification. */ - @JsonProperty("kind") - private ComputeSpecKind kind; +public class ConsumerTerms { + /** */ + @JsonProperty("version") + private String version; - public ComputeSpec setKind(ComputeSpecKind kind) { - this.kind = kind; + public ConsumerTerms setVersion(String version) { + this.version = version; return this; } - public ComputeSpecKind getKind() { - return kind; + public String getVersion() { + return version; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - ComputeSpec that = (ComputeSpec) o; - return Objects.equals(kind, that.kind); + ConsumerTerms that = (ConsumerTerms) o; + return Objects.equals(version, that.version); } @Override public int hashCode() { - return Objects.hash(kind); + return Objects.hash(version); } @Override public String toString() { - return new ToStringer(ComputeSpec.class).add("kind", kind).toString(); + return new ToStringer(ConsumerTerms.class).add("version", version).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ContactInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ContactInfo.java new file mode 100755 index 000000000..e0e4135e6 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ContactInfo.java @@ -0,0 +1,90 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** contact info for the consumer requesting data or performing a listing installation */ +@Generated +public class ContactInfo { + /** */ + @JsonProperty("company") + private String company; + + /** */ + @JsonProperty("email") + private String email; + + /** */ + @JsonProperty("first_name") + private String firstName; + + /** */ + @JsonProperty("last_name") + private String lastName; + + public ContactInfo setCompany(String company) { + this.company = company; + return this; + } + + public String getCompany() { + return company; + } + + public ContactInfo setEmail(String email) { + this.email = email; + return this; + } + + public String getEmail() { + return email; + } + + public ContactInfo setFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + public String getFirstName() { + return firstName; + } + + public ContactInfo setLastName(String lastName) { + this.lastName = lastName; + return this; + } + + public String getLastName() { + return lastName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ContactInfo that = (ContactInfo) o; + return Objects.equals(company, that.company) + && Objects.equals(email, that.email) + && Objects.equals(firstName, that.firstName) + && Objects.equals(lastName, that.lastName); + } + + @Override + public int hashCode() { + return Objects.hash(company, email, firstName, lastName); + } + + @Override + public String toString() { + return new ToStringer(ContactInfo.class) + .add("company", company) + .add("email", email) + .add("firstName", firstName) + .add("lastName", lastName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Cost.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Cost.java new file mode 100755 index 000000000..ca81d42dc --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Cost.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum Cost { + FREE, + PAID, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterRequest.java new file mode 100755 index 000000000..964a88910 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterRequest.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateExchangeFilterRequest { + /** */ + @JsonProperty("filter") + private ExchangeFilter filter; + + public CreateExchangeFilterRequest setFilter(ExchangeFilter filter) { + this.filter = filter; + return this; + } + + public ExchangeFilter getFilter() { + return filter; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateExchangeFilterRequest that = (CreateExchangeFilterRequest) o; + return Objects.equals(filter, that.filter); + } + + @Override + public int hashCode() { + return Objects.hash(filter); + } + + @Override + public String toString() { + return new ToStringer(CreateExchangeFilterRequest.class).add("filter", filter).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterResponse.java new file mode 100755 index 000000000..152a5baa4 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeFilterResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateExchangeFilterResponse { + /** */ + @JsonProperty("filter_id") + private String filterId; + + public CreateExchangeFilterResponse setFilterId(String filterId) { + this.filterId = filterId; + return this; + } + + public String getFilterId() { + return filterId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateExchangeFilterResponse that = (CreateExchangeFilterResponse) o; + return Objects.equals(filterId, that.filterId); + } + + @Override + public int hashCode() { + return Objects.hash(filterId); + } + + @Override + public String toString() { + return new ToStringer(CreateExchangeFilterResponse.class).add("filterId", filterId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeRequest.java new file mode 100755 index 000000000..09e19edee --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeRequest.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateExchangeRequest { + /** */ + @JsonProperty("exchange") + private Exchange exchange; + + public CreateExchangeRequest setExchange(Exchange exchange) { + this.exchange = exchange; + return this; + } + + public Exchange getExchange() { + return exchange; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateExchangeRequest that = (CreateExchangeRequest) o; + return Objects.equals(exchange, that.exchange); + } + + @Override + public int hashCode() { + return Objects.hash(exchange); + } + + @Override + public String toString() { + return new ToStringer(CreateExchangeRequest.class).add("exchange", exchange).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeResponse.java new file mode 100755 index 000000000..528bf3ff7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateExchangeResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateExchangeResponse { + /** */ + @JsonProperty("exchange_id") + private String exchangeId; + + public CreateExchangeResponse setExchangeId(String exchangeId) { + this.exchangeId = exchangeId; + return this; + } + + public String getExchangeId() { + return exchangeId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateExchangeResponse that = (CreateExchangeResponse) o; + return Objects.equals(exchangeId, that.exchangeId); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeId); + } + + @Override + public String toString() { + return new ToStringer(CreateExchangeResponse.class).add("exchangeId", exchangeId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileRequest.java new file mode 100755 index 000000000..886bbdefc --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileRequest.java @@ -0,0 +1,89 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateFileRequest { + /** */ + @JsonProperty("display_name") + private String displayName; + + /** */ + @JsonProperty("file_parent") + private FileParent fileParent; + + /** */ + @JsonProperty("marketplace_file_type") + private MarketplaceFileType marketplaceFileType; + + /** */ + @JsonProperty("mime_type") + private String mimeType; + + public CreateFileRequest setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public CreateFileRequest setFileParent(FileParent fileParent) { + this.fileParent = fileParent; + return this; + } + + public FileParent getFileParent() { + return fileParent; + } + + public CreateFileRequest setMarketplaceFileType(MarketplaceFileType marketplaceFileType) { + this.marketplaceFileType = marketplaceFileType; + return this; + } + + public MarketplaceFileType getMarketplaceFileType() { + return marketplaceFileType; + } + + public CreateFileRequest setMimeType(String mimeType) { + this.mimeType = mimeType; + return this; + } + + public String getMimeType() { + return mimeType; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateFileRequest that = (CreateFileRequest) o; + return Objects.equals(displayName, that.displayName) + && Objects.equals(fileParent, that.fileParent) + && Objects.equals(marketplaceFileType, that.marketplaceFileType) + && Objects.equals(mimeType, that.mimeType); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, fileParent, marketplaceFileType, mimeType); + } + + @Override + public String toString() { + return new ToStringer(CreateFileRequest.class) + .add("displayName", displayName) + .add("fileParent", fileParent) + .add("marketplaceFileType", marketplaceFileType) + .add("mimeType", mimeType) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileResponse.java new file mode 100755 index 000000000..a980c61d1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateFileResponse.java @@ -0,0 +1,58 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateFileResponse { + /** */ + @JsonProperty("file_info") + private FileInfo fileInfo; + + /** Pre-signed POST URL to blob storage */ + @JsonProperty("upload_url") + private String uploadUrl; + + public CreateFileResponse setFileInfo(FileInfo fileInfo) { + this.fileInfo = fileInfo; + return this; + } + + public FileInfo getFileInfo() { + return fileInfo; + } + + public CreateFileResponse setUploadUrl(String uploadUrl) { + this.uploadUrl = uploadUrl; + return this; + } + + public String getUploadUrl() { + return uploadUrl; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateFileResponse that = (CreateFileResponse) o; + return Objects.equals(fileInfo, that.fileInfo) && Objects.equals(uploadUrl, that.uploadUrl); + } + + @Override + public int hashCode() { + return Objects.hash(fileInfo, uploadUrl); + } + + @Override + public String toString() { + return new ToStringer(CreateFileResponse.class) + .add("fileInfo", fileInfo) + .add("uploadUrl", uploadUrl) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateInstallationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateInstallationRequest.java new file mode 100755 index 000000000..03dc42208 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateInstallationRequest.java @@ -0,0 +1,119 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateInstallationRequest { + /** */ + @JsonProperty("accepted_consumer_terms") + private ConsumerTerms acceptedConsumerTerms; + + /** */ + @JsonProperty("catalog_name") + private String catalogName; + + /** */ + private String listingId; + + /** */ + @JsonProperty("recipient_type") + private DeltaSharingRecipientType recipientType; + + /** for git repo installations */ + @JsonProperty("repo_detail") + private RepoInstallation repoDetail; + + /** */ + @JsonProperty("share_name") + private String shareName; + + public CreateInstallationRequest setAcceptedConsumerTerms(ConsumerTerms acceptedConsumerTerms) { + this.acceptedConsumerTerms = acceptedConsumerTerms; + return this; + } + + public ConsumerTerms getAcceptedConsumerTerms() { + return acceptedConsumerTerms; + } + + public CreateInstallationRequest setCatalogName(String catalogName) { + this.catalogName = catalogName; + return this; + } + + public String getCatalogName() { + return catalogName; + } + + public CreateInstallationRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public CreateInstallationRequest setRecipientType(DeltaSharingRecipientType recipientType) { + this.recipientType = recipientType; + return this; + } + + public DeltaSharingRecipientType getRecipientType() { + return recipientType; + } + + public CreateInstallationRequest setRepoDetail(RepoInstallation repoDetail) { + this.repoDetail = repoDetail; + return this; + } + + public RepoInstallation getRepoDetail() { + return repoDetail; + } + + public CreateInstallationRequest setShareName(String shareName) { + this.shareName = shareName; + return this; + } + + public String getShareName() { + return shareName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateInstallationRequest that = (CreateInstallationRequest) o; + return Objects.equals(acceptedConsumerTerms, that.acceptedConsumerTerms) + && Objects.equals(catalogName, that.catalogName) + && Objects.equals(listingId, that.listingId) + && Objects.equals(recipientType, that.recipientType) + && Objects.equals(repoDetail, that.repoDetail) + && Objects.equals(shareName, that.shareName); + } + + @Override + public int hashCode() { + return Objects.hash( + acceptedConsumerTerms, catalogName, listingId, recipientType, repoDetail, shareName); + } + + @Override + public String toString() { + return new ToStringer(CreateInstallationRequest.class) + .add("acceptedConsumerTerms", acceptedConsumerTerms) + .add("catalogName", catalogName) + .add("listingId", listingId) + .add("recipientType", recipientType) + .add("repoDetail", repoDetail) + .add("shareName", shareName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingRequest.java new file mode 100755 index 000000000..0f89c08ed --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingRequest.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateListingRequest { + /** */ + @JsonProperty("listing") + private Listing listing; + + public CreateListingRequest setListing(Listing listing) { + this.listing = listing; + return this; + } + + public Listing getListing() { + return listing; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateListingRequest that = (CreateListingRequest) o; + return Objects.equals(listing, that.listing); + } + + @Override + public int hashCode() { + return Objects.hash(listing); + } + + @Override + public String toString() { + return new ToStringer(CreateListingRequest.class).add("listing", listing).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingResponse.java new file mode 100755 index 000000000..39814421b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateListingResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateListingResponse { + /** */ + @JsonProperty("listing_id") + private String listingId; + + public CreateListingResponse setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateListingResponse that = (CreateListingResponse) o; + return Objects.equals(listingId, that.listingId); + } + + @Override + public int hashCode() { + return Objects.hash(listingId); + } + + @Override + public String toString() { + return new ToStringer(CreateListingResponse.class).add("listingId", listingId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequest.java new file mode 100755 index 000000000..764db7066 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequest.java @@ -0,0 +1,174 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** Data request messages also creates a lead (maybe) */ +@Generated +public class CreatePersonalizationRequest { + /** */ + @JsonProperty("accepted_consumer_terms") + private ConsumerTerms acceptedConsumerTerms; + + /** */ + @JsonProperty("comment") + private String comment; + + /** */ + @JsonProperty("company") + private String company; + + /** */ + @JsonProperty("first_name") + private String firstName; + + /** */ + @JsonProperty("intended_use") + private String intendedUse; + + /** */ + @JsonProperty("is_from_lighthouse") + private Boolean isFromLighthouse; + + /** */ + @JsonProperty("last_name") + private String lastName; + + /** */ + private String listingId; + + /** */ + @JsonProperty("recipient_type") + private DeltaSharingRecipientType recipientType; + + public CreatePersonalizationRequest setAcceptedConsumerTerms( + ConsumerTerms acceptedConsumerTerms) { + this.acceptedConsumerTerms = acceptedConsumerTerms; + return this; + } + + public ConsumerTerms getAcceptedConsumerTerms() { + return acceptedConsumerTerms; + } + + public CreatePersonalizationRequest setComment(String comment) { + this.comment = comment; + return this; + } + + public String getComment() { + return comment; + } + + public CreatePersonalizationRequest setCompany(String company) { + this.company = company; + return this; + } + + public String getCompany() { + return company; + } + + public CreatePersonalizationRequest setFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + public String getFirstName() { + return firstName; + } + + public CreatePersonalizationRequest setIntendedUse(String intendedUse) { + this.intendedUse = intendedUse; + return this; + } + + public String getIntendedUse() { + return intendedUse; + } + + public CreatePersonalizationRequest setIsFromLighthouse(Boolean isFromLighthouse) { + this.isFromLighthouse = isFromLighthouse; + return this; + } + + public Boolean getIsFromLighthouse() { + return isFromLighthouse; + } + + public CreatePersonalizationRequest setLastName(String lastName) { + this.lastName = lastName; + return this; + } + + public String getLastName() { + return lastName; + } + + public CreatePersonalizationRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public CreatePersonalizationRequest setRecipientType(DeltaSharingRecipientType recipientType) { + this.recipientType = recipientType; + return this; + } + + public DeltaSharingRecipientType getRecipientType() { + return recipientType; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreatePersonalizationRequest that = (CreatePersonalizationRequest) o; + return Objects.equals(acceptedConsumerTerms, that.acceptedConsumerTerms) + && Objects.equals(comment, that.comment) + && Objects.equals(company, that.company) + && Objects.equals(firstName, that.firstName) + && Objects.equals(intendedUse, that.intendedUse) + && Objects.equals(isFromLighthouse, that.isFromLighthouse) + && Objects.equals(lastName, that.lastName) + && Objects.equals(listingId, that.listingId) + && Objects.equals(recipientType, that.recipientType); + } + + @Override + public int hashCode() { + return Objects.hash( + acceptedConsumerTerms, + comment, + company, + firstName, + intendedUse, + isFromLighthouse, + lastName, + listingId, + recipientType); + } + + @Override + public String toString() { + return new ToStringer(CreatePersonalizationRequest.class) + .add("acceptedConsumerTerms", acceptedConsumerTerms) + .add("comment", comment) + .add("company", company) + .add("firstName", firstName) + .add("intendedUse", intendedUse) + .add("isFromLighthouse", isFromLighthouse) + .add("lastName", lastName) + .add("listingId", listingId) + .add("recipientType", recipientType) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequestResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequestResponse.java new file mode 100755 index 000000000..0d8e8ebbd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreatePersonalizationRequestResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreatePersonalizationRequestResponse { + /** */ + @JsonProperty("id") + private String id; + + public CreatePersonalizationRequestResponse setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreatePersonalizationRequestResponse that = (CreatePersonalizationRequestResponse) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(CreatePersonalizationRequestResponse.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderRequest.java new file mode 100755 index 000000000..ba00a9c20 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderRequest.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateProviderRequest { + /** */ + @JsonProperty("provider") + private ProviderInfo provider; + + public CreateProviderRequest setProvider(ProviderInfo provider) { + this.provider = provider; + return this; + } + + public ProviderInfo getProvider() { + return provider; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateProviderRequest that = (CreateProviderRequest) o; + return Objects.equals(provider, that.provider); + } + + @Override + public int hashCode() { + return Objects.hash(provider); + } + + @Override + public String toString() { + return new ToStringer(CreateProviderRequest.class).add("provider", provider).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderResponse.java new file mode 100755 index 000000000..7308ff060 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/CreateProviderResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 CreateProviderResponse { + /** */ + @JsonProperty("id") + private String id; + + public CreateProviderResponse setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateProviderResponse that = (CreateProviderResponse) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(CreateProviderResponse.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefresh.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefresh.java new file mode 100755 index 000000000..f4d61be6c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefresh.java @@ -0,0 +1,18 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum DataRefresh { + DAILY, + HOURLY, + MINUTE, + MONTHLY, + NONE, + QUARTERLY, + SECOND, + WEEKLY, + YEARLY, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefreshInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefreshInfo.java new file mode 100755 index 000000000..cdb67a342 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DataRefreshInfo.java @@ -0,0 +1,58 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 DataRefreshInfo { + /** */ + @JsonProperty("interval") + private Long interval; + + /** */ + @JsonProperty("unit") + private DataRefresh unit; + + public DataRefreshInfo setInterval(Long interval) { + this.interval = interval; + return this; + } + + public Long getInterval() { + return interval; + } + + public DataRefreshInfo setUnit(DataRefresh unit) { + this.unit = unit; + return this; + } + + public DataRefresh getUnit() { + return unit; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DataRefreshInfo that = (DataRefreshInfo) o; + return Objects.equals(interval, that.interval) && Objects.equals(unit, that.unit); + } + + @Override + public int hashCode() { + return Objects.hash(interval, unit); + } + + @Override + public String toString() { + return new ToStringer(DataRefreshInfo.class) + .add("interval", interval) + .add("unit", unit) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterRequest.java new file mode 100755 index 000000000..a40208460 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Delete an exchange filter */ +@Generated +public class DeleteExchangeFilterRequest { + /** */ + private String id; + + public DeleteExchangeFilterRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DeleteExchangeFilterRequest that = (DeleteExchangeFilterRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(DeleteExchangeFilterRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterResponse.java new file mode 100755 index 000000000..b7cca36ab --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeFilterResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class DeleteExchangeFilterResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(DeleteExchangeFilterResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeRequest.java new file mode 100755 index 000000000..389f9a4c0 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Delete an exchange */ +@Generated +public class DeleteExchangeRequest { + /** */ + private String id; + + public DeleteExchangeRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DeleteExchangeRequest that = (DeleteExchangeRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(DeleteExchangeRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentsUpdated.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeResponse.java similarity index 75% rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentsUpdated.java rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeResponse.java index 3abf5e71c..be2eb59ea 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/WorkspaceAssignmentsUpdated.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteExchangeResponse.java @@ -1,13 +1,13 @@ // Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. -package com.databricks.sdk.service.iam; +package com.databricks.sdk.service.marketplace; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.ToStringer; import java.util.Objects; @Generated -public class WorkspaceAssignmentsUpdated { +public class DeleteExchangeResponse { @Override public boolean equals(Object o) { @@ -23,6 +23,6 @@ public int hashCode() { @Override public String toString() { - return new ToStringer(WorkspaceAssignmentsUpdated.class).toString(); + return new ToStringer(DeleteExchangeResponse.class).toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileRequest.java new file mode 100755 index 000000000..024fcb8e2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Delete a file */ +@Generated +public class DeleteFileRequest { + /** */ + private String fileId; + + public DeleteFileRequest setFileId(String fileId) { + this.fileId = fileId; + return this; + } + + public String getFileId() { + return fileId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DeleteFileRequest that = (DeleteFileRequest) o; + return Objects.equals(fileId, that.fileId); + } + + @Override + public int hashCode() { + return Objects.hash(fileId); + } + + @Override + public String toString() { + return new ToStringer(DeleteFileRequest.class).add("fileId", fileId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileResponse.java new file mode 100755 index 000000000..f799f3705 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteFileResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class DeleteFileResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(DeleteFileResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationRequest.java new file mode 100755 index 000000000..f99ff7bcf --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationRequest.java @@ -0,0 +1,57 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Uninstall from a listing */ +@Generated +public class DeleteInstallationRequest { + /** */ + private String installationId; + + /** */ + private String listingId; + + public DeleteInstallationRequest setInstallationId(String installationId) { + this.installationId = installationId; + return this; + } + + public String getInstallationId() { + return installationId; + } + + public DeleteInstallationRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DeleteInstallationRequest that = (DeleteInstallationRequest) o; + return Objects.equals(installationId, that.installationId) + && Objects.equals(listingId, that.listingId); + } + + @Override + public int hashCode() { + return Objects.hash(installationId, listingId); + } + + @Override + public String toString() { + return new ToStringer(DeleteInstallationRequest.class) + .add("installationId", installationId) + .add("listingId", listingId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationResponse.java new file mode 100755 index 000000000..0928712ff --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteInstallationResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class DeleteInstallationResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(DeleteInstallationResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingRequest.java new file mode 100755 index 000000000..fc3a8efe4 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Delete a listing */ +@Generated +public class DeleteListingRequest { + /** */ + private String id; + + public DeleteListingRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DeleteListingRequest that = (DeleteListingRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(DeleteListingRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingResponse.java new file mode 100755 index 000000000..1250054c3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteListingResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class DeleteListingResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(DeleteListingResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderRequest.java new file mode 100755 index 000000000..cd57b3c0e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Delete provider */ +@Generated +public class DeleteProviderRequest { + /** */ + private String id; + + public DeleteProviderRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DeleteProviderRequest that = (DeleteProviderRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(DeleteProviderRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderResponse.java new file mode 100755 index 000000000..41f94447f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeleteProviderResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class DeleteProviderResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(DeleteProviderResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeltaSharingRecipientType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeltaSharingRecipientType.java new file mode 100755 index 000000000..c6be43522 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/DeltaSharingRecipientType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum DeltaSharingRecipientType { + DELTA_SHARING_RECIPIENT_TYPE_DATABRICKS, + DELTA_SHARING_RECIPIENT_TYPE_OPEN, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Exchange.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Exchange.java new file mode 100755 index 000000000..ff0fb00ad --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Exchange.java @@ -0,0 +1,166 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class Exchange { + /** */ + @JsonProperty("comment") + private String comment; + + /** */ + @JsonProperty("created_at") + private Long createdAt; + + /** */ + @JsonProperty("created_by") + private String createdBy; + + /** */ + @JsonProperty("filters") + private Collection filters; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("linked_listings") + private Collection linkedListings; + + /** */ + @JsonProperty("name") + private String name; + + /** */ + @JsonProperty("updated_at") + private Long updatedAt; + + /** */ + @JsonProperty("updated_by") + private String updatedBy; + + public Exchange setComment(String comment) { + this.comment = comment; + return this; + } + + public String getComment() { + return comment; + } + + public Exchange setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public Exchange setCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + public String getCreatedBy() { + return createdBy; + } + + public Exchange setFilters(Collection filters) { + this.filters = filters; + return this; + } + + public Collection getFilters() { + return filters; + } + + public Exchange setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public Exchange setLinkedListings(Collection linkedListings) { + this.linkedListings = linkedListings; + return this; + } + + public Collection getLinkedListings() { + return linkedListings; + } + + public Exchange setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public Exchange setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + public Exchange setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + return this; + } + + public String getUpdatedBy() { + return updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Exchange that = (Exchange) o; + return Objects.equals(comment, that.comment) + && Objects.equals(createdAt, that.createdAt) + && Objects.equals(createdBy, that.createdBy) + && Objects.equals(filters, that.filters) + && Objects.equals(id, that.id) + && Objects.equals(linkedListings, that.linkedListings) + && Objects.equals(name, that.name) + && Objects.equals(updatedAt, that.updatedAt) + && Objects.equals(updatedBy, that.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash( + comment, createdAt, createdBy, filters, id, linkedListings, name, updatedAt, updatedBy); + } + + @Override + public String toString() { + return new ToStringer(Exchange.class) + .add("comment", comment) + .add("createdAt", createdAt) + .add("createdBy", createdBy) + .add("filters", filters) + .add("id", id) + .add("linkedListings", linkedListings) + .add("name", name) + .add("updatedAt", updatedAt) + .add("updatedBy", updatedBy) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilter.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilter.java new file mode 100755 index 000000000..85ddd4ac3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilter.java @@ -0,0 +1,165 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ExchangeFilter { + /** */ + @JsonProperty("created_at") + private Long createdAt; + + /** */ + @JsonProperty("created_by") + private String createdBy; + + /** */ + @JsonProperty("exchange_id") + private String exchangeId; + + /** */ + @JsonProperty("filter_type") + private ExchangeFilterType filterType; + + /** */ + @JsonProperty("filter_value") + private String filterValue; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("name") + private String name; + + /** */ + @JsonProperty("updated_at") + private Long updatedAt; + + /** */ + @JsonProperty("updated_by") + private String updatedBy; + + public ExchangeFilter setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public ExchangeFilter setCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + public String getCreatedBy() { + return createdBy; + } + + public ExchangeFilter setExchangeId(String exchangeId) { + this.exchangeId = exchangeId; + return this; + } + + public String getExchangeId() { + return exchangeId; + } + + public ExchangeFilter setFilterType(ExchangeFilterType filterType) { + this.filterType = filterType; + return this; + } + + public ExchangeFilterType getFilterType() { + return filterType; + } + + public ExchangeFilter setFilterValue(String filterValue) { + this.filterValue = filterValue; + return this; + } + + public String getFilterValue() { + return filterValue; + } + + public ExchangeFilter setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public ExchangeFilter setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public ExchangeFilter setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + public ExchangeFilter setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + return this; + } + + public String getUpdatedBy() { + return updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ExchangeFilter that = (ExchangeFilter) o; + return Objects.equals(createdAt, that.createdAt) + && Objects.equals(createdBy, that.createdBy) + && Objects.equals(exchangeId, that.exchangeId) + && Objects.equals(filterType, that.filterType) + && Objects.equals(filterValue, that.filterValue) + && Objects.equals(id, that.id) + && Objects.equals(name, that.name) + && Objects.equals(updatedAt, that.updatedAt) + && Objects.equals(updatedBy, that.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash( + createdAt, createdBy, exchangeId, filterType, filterValue, id, name, updatedAt, updatedBy); + } + + @Override + public String toString() { + return new ToStringer(ExchangeFilter.class) + .add("createdAt", createdAt) + .add("createdBy", createdBy) + .add("exchangeId", exchangeId) + .add("filterType", filterType) + .add("filterValue", filterValue) + .add("id", id) + .add("name", name) + .add("updatedAt", updatedAt) + .add("updatedBy", updatedBy) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilterType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilterType.java new file mode 100755 index 000000000..5a9107544 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeFilterType.java @@ -0,0 +1,10 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum ExchangeFilterType { + GLOBAL_METASTORE_ID, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeListing.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeListing.java new file mode 100755 index 000000000..d149724ff --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ExchangeListing.java @@ -0,0 +1,134 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ExchangeListing { + /** */ + @JsonProperty("created_at") + private Long createdAt; + + /** */ + @JsonProperty("created_by") + private String createdBy; + + /** */ + @JsonProperty("exchange_id") + private String exchangeId; + + /** */ + @JsonProperty("exchange_name") + private String exchangeName; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("listing_id") + private String listingId; + + /** */ + @JsonProperty("listing_name") + private String listingName; + + public ExchangeListing setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public ExchangeListing setCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + public String getCreatedBy() { + return createdBy; + } + + public ExchangeListing setExchangeId(String exchangeId) { + this.exchangeId = exchangeId; + return this; + } + + public String getExchangeId() { + return exchangeId; + } + + public ExchangeListing setExchangeName(String exchangeName) { + this.exchangeName = exchangeName; + return this; + } + + public String getExchangeName() { + return exchangeName; + } + + public ExchangeListing setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public ExchangeListing setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public ExchangeListing setListingName(String listingName) { + this.listingName = listingName; + return this; + } + + public String getListingName() { + return listingName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ExchangeListing that = (ExchangeListing) o; + return Objects.equals(createdAt, that.createdAt) + && Objects.equals(createdBy, that.createdBy) + && Objects.equals(exchangeId, that.exchangeId) + && Objects.equals(exchangeName, that.exchangeName) + && Objects.equals(id, that.id) + && Objects.equals(listingId, that.listingId) + && Objects.equals(listingName, that.listingName); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, createdBy, exchangeId, exchangeName, id, listingId, listingName); + } + + @Override + public String toString() { + return new ToStringer(ExchangeListing.class) + .add("createdAt", createdAt) + .add("createdBy", createdBy) + .add("exchangeId", exchangeId) + .add("exchangeName", exchangeName) + .add("id", id) + .add("listingId", listingId) + .add("listingName", listingName) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileInfo.java new file mode 100755 index 000000000..4c47c50e1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileInfo.java @@ -0,0 +1,189 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 FileInfo { + /** */ + @JsonProperty("created_at") + private Long createdAt; + + /** Name displayed to users for applicable files, e.g. embedded notebooks */ + @JsonProperty("display_name") + private String displayName; + + /** */ + @JsonProperty("download_link") + private String downloadLink; + + /** */ + @JsonProperty("file_parent") + private FileParent fileParent; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("marketplace_file_type") + private MarketplaceFileType marketplaceFileType; + + /** */ + @JsonProperty("mime_type") + private String mimeType; + + /** */ + @JsonProperty("status") + private FileStatus status; + + /** Populated if status is in a failed state with more information on reason for the failure. */ + @JsonProperty("status_message") + private String statusMessage; + + /** */ + @JsonProperty("updated_at") + private Long updatedAt; + + public FileInfo setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public FileInfo setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public FileInfo setDownloadLink(String downloadLink) { + this.downloadLink = downloadLink; + return this; + } + + public String getDownloadLink() { + return downloadLink; + } + + public FileInfo setFileParent(FileParent fileParent) { + this.fileParent = fileParent; + return this; + } + + public FileParent getFileParent() { + return fileParent; + } + + public FileInfo setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public FileInfo setMarketplaceFileType(MarketplaceFileType marketplaceFileType) { + this.marketplaceFileType = marketplaceFileType; + return this; + } + + public MarketplaceFileType getMarketplaceFileType() { + return marketplaceFileType; + } + + public FileInfo setMimeType(String mimeType) { + this.mimeType = mimeType; + return this; + } + + public String getMimeType() { + return mimeType; + } + + public FileInfo setStatus(FileStatus status) { + this.status = status; + return this; + } + + public FileStatus getStatus() { + return status; + } + + public FileInfo setStatusMessage(String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + public String getStatusMessage() { + return statusMessage; + } + + public FileInfo setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + FileInfo that = (FileInfo) o; + return Objects.equals(createdAt, that.createdAt) + && Objects.equals(displayName, that.displayName) + && Objects.equals(downloadLink, that.downloadLink) + && Objects.equals(fileParent, that.fileParent) + && Objects.equals(id, that.id) + && Objects.equals(marketplaceFileType, that.marketplaceFileType) + && Objects.equals(mimeType, that.mimeType) + && Objects.equals(status, that.status) + && Objects.equals(statusMessage, that.statusMessage) + && Objects.equals(updatedAt, that.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash( + createdAt, + displayName, + downloadLink, + fileParent, + id, + marketplaceFileType, + mimeType, + status, + statusMessage, + updatedAt); + } + + @Override + public String toString() { + return new ToStringer(FileInfo.class) + .add("createdAt", createdAt) + .add("displayName", displayName) + .add("downloadLink", downloadLink) + .add("fileParent", fileParent) + .add("id", id) + .add("marketplaceFileType", marketplaceFileType) + .add("mimeType", mimeType) + .add("status", status) + .add("statusMessage", statusMessage) + .add("updatedAt", updatedAt) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParent.java new file mode 100755 index 000000000..e2e2ddec5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParent.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 FileParent { + /** */ + @JsonProperty("file_parent_type") + private FileParentType fileParentType; + + /** TODO make the following fields required */ + @JsonProperty("parent_id") + private String parentId; + + public FileParent setFileParentType(FileParentType fileParentType) { + this.fileParentType = fileParentType; + return this; + } + + public FileParentType getFileParentType() { + return fileParentType; + } + + public FileParent setParentId(String parentId) { + this.parentId = parentId; + return this; + } + + public String getParentId() { + return parentId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + FileParent that = (FileParent) o; + return Objects.equals(fileParentType, that.fileParentType) + && Objects.equals(parentId, that.parentId); + } + + @Override + public int hashCode() { + return Objects.hash(fileParentType, parentId); + } + + @Override + public String toString() { + return new ToStringer(FileParent.class) + .add("fileParentType", fileParentType) + .add("parentId", parentId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParentType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParentType.java new file mode 100755 index 000000000..55c6496f1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileParentType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum FileParentType { + LISTING, + PROVIDER, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileStatus.java new file mode 100755 index 000000000..e04bf342f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FileStatus.java @@ -0,0 +1,13 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum FileStatus { + FILE_STATUS_PUBLISHED, + FILE_STATUS_SANITIZATION_FAILED, + FILE_STATUS_SANITIZING, + FILE_STATUS_STAGING, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FilterType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FilterType.java new file mode 100755 index 000000000..ec2977c1a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FilterType.java @@ -0,0 +1,10 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum FilterType { + METASTORE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FulfillmentType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FulfillmentType.java new file mode 100755 index 000000000..24be65df3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/FulfillmentType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum FulfillmentType { + INSTALL, + REQUEST_ACCESS, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeRequest.java new file mode 100755 index 000000000..4667e191a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get an exchange */ +@Generated +public class GetExchangeRequest { + /** */ + private String id; + + public GetExchangeRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetExchangeRequest that = (GetExchangeRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(GetExchangeRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeResponse.java new file mode 100755 index 000000000..bffa34862 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetExchangeResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 GetExchangeResponse { + /** */ + @JsonProperty("exchange") + private Exchange exchange; + + public GetExchangeResponse setExchange(Exchange exchange) { + this.exchange = exchange; + return this; + } + + public Exchange getExchange() { + return exchange; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetExchangeResponse that = (GetExchangeResponse) o; + return Objects.equals(exchange, that.exchange); + } + + @Override + public int hashCode() { + return Objects.hash(exchange); + } + + @Override + public String toString() { + return new ToStringer(GetExchangeResponse.class).add("exchange", exchange).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileRequest.java new file mode 100755 index 000000000..842764489 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get a file */ +@Generated +public class GetFileRequest { + /** */ + private String fileId; + + public GetFileRequest setFileId(String fileId) { + this.fileId = fileId; + return this; + } + + public String getFileId() { + return fileId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetFileRequest that = (GetFileRequest) o; + return Objects.equals(fileId, that.fileId); + } + + @Override + public int hashCode() { + return Objects.hash(fileId); + } + + @Override + public String toString() { + return new ToStringer(GetFileRequest.class).add("fileId", fileId).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileResponse.java new file mode 100755 index 000000000..afcacadac --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetFileResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 GetFileResponse { + /** */ + @JsonProperty("file_info") + private FileInfo fileInfo; + + public GetFileResponse setFileInfo(FileInfo fileInfo) { + this.fileInfo = fileInfo; + return this; + } + + public FileInfo getFileInfo() { + return fileInfo; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetFileResponse that = (GetFileResponse) o; + return Objects.equals(fileInfo, that.fileInfo); + } + + @Override + public int hashCode() { + return Objects.hash(fileInfo); + } + + @Override + public String toString() { + return new ToStringer(GetFileResponse.class).add("fileInfo", fileInfo).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetLatestVersionProviderAnalyticsDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetLatestVersionProviderAnalyticsDashboardResponse.java new file mode 100755 index 000000000..6ae01e89b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetLatestVersionProviderAnalyticsDashboardResponse.java @@ -0,0 +1,45 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 GetLatestVersionProviderAnalyticsDashboardResponse { + /** version here is latest logical version of the dashboard template */ + @JsonProperty("version") + private Long version; + + public GetLatestVersionProviderAnalyticsDashboardResponse setVersion(Long version) { + this.version = version; + return this; + } + + public Long getVersion() { + return version; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetLatestVersionProviderAnalyticsDashboardResponse that = + (GetLatestVersionProviderAnalyticsDashboardResponse) o; + return Objects.equals(version, that.version); + } + + @Override + public int hashCode() { + return Objects.hash(version); + } + + @Override + public String toString() { + return new ToStringer(GetLatestVersionProviderAnalyticsDashboardResponse.class) + .add("version", version) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataRequest.java new file mode 100755 index 000000000..713873a8a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataRequest.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get listing content metadata */ +@Generated +public class GetListingContentMetadataRequest { + /** */ + private String listingId; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public GetListingContentMetadataRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public GetListingContentMetadataRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public GetListingContentMetadataRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetListingContentMetadataRequest that = (GetListingContentMetadataRequest) o; + return Objects.equals(listingId, that.listingId) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listingId, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(GetListingContentMetadataRequest.class) + .add("listingId", listingId) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataResponse.java new file mode 100755 index 000000000..37479bc73 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingContentMetadataResponse.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class GetListingContentMetadataResponse { + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + /** */ + @JsonProperty("shared_data_objects") + private Collection sharedDataObjects; + + public GetListingContentMetadataResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + public GetListingContentMetadataResponse setSharedDataObjects( + Collection sharedDataObjects) { + this.sharedDataObjects = sharedDataObjects; + return this; + } + + public Collection getSharedDataObjects() { + return sharedDataObjects; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetListingContentMetadataResponse that = (GetListingContentMetadataResponse) o; + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(sharedDataObjects, that.sharedDataObjects); + } + + @Override + public int hashCode() { + return Objects.hash(nextPageToken, sharedDataObjects); + } + + @Override + public String toString() { + return new ToStringer(GetListingContentMetadataResponse.class) + .add("nextPageToken", nextPageToken) + .add("sharedDataObjects", sharedDataObjects) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingRequest.java new file mode 100755 index 000000000..80191f286 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get listing */ +@Generated +public class GetListingRequest { + /** */ + private String id; + + public GetListingRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetListingRequest that = (GetListingRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(GetListingRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingResponse.java new file mode 100755 index 000000000..720e1f5dd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 GetListingResponse { + /** */ + @JsonProperty("listing") + private Listing listing; + + public GetListingResponse setListing(Listing listing) { + this.listing = listing; + return this; + } + + public Listing getListing() { + return listing; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetListingResponse that = (GetListingResponse) o; + return Objects.equals(listing, that.listing); + } + + @Override + public int hashCode() { + return Objects.hash(listing); + } + + @Override + public String toString() { + return new ToStringer(GetListingResponse.class).add("listing", listing).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsRequest.java new file mode 100755 index 000000000..f871ee01f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsRequest.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List listings */ +@Generated +public class GetListingsRequest { + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public GetListingsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public GetListingsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetListingsRequest that = (GetListingsRequest) o; + return Objects.equals(pageSize, that.pageSize) && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(GetListingsRequest.class) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsResponse.java new file mode 100755 index 000000000..d466edf57 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetListingsResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class GetListingsResponse { + /** */ + @JsonProperty("listings") + private Collection

listings; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public GetListingsResponse setListings(Collection listings) { + this.listings = listings; + return this; + } + + public Collection getListings() { + return listings; + } + + public GetListingsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetListingsResponse that = (GetListingsResponse) o; + return Objects.equals(listings, that.listings) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listings, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(GetListingsResponse.class) + .add("listings", listings) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestRequest.java new file mode 100755 index 000000000..ef5401d18 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestRequest.java @@ -0,0 +1,43 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get the personalization request for a listing */ +@Generated +public class GetPersonalizationRequestRequest { + /** */ + private String listingId; + + public GetPersonalizationRequestRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetPersonalizationRequestRequest that = (GetPersonalizationRequestRequest) o; + return Objects.equals(listingId, that.listingId); + } + + @Override + public int hashCode() { + return Objects.hash(listingId); + } + + @Override + public String toString() { + return new ToStringer(GetPersonalizationRequestRequest.class) + .add("listingId", listingId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestResponse.java new file mode 100755 index 000000000..97c64cb26 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetPersonalizationRequestResponse.java @@ -0,0 +1,46 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class GetPersonalizationRequestResponse { + /** */ + @JsonProperty("personalization_requests") + private Collection personalizationRequests; + + public GetPersonalizationRequestResponse setPersonalizationRequests( + Collection personalizationRequests) { + this.personalizationRequests = personalizationRequests; + return this; + } + + public Collection getPersonalizationRequests() { + return personalizationRequests; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetPersonalizationRequestResponse that = (GetPersonalizationRequestResponse) o; + return Objects.equals(personalizationRequests, that.personalizationRequests); + } + + @Override + public int hashCode() { + return Objects.hash(personalizationRequests); + } + + @Override + public String toString() { + return new ToStringer(GetPersonalizationRequestResponse.class) + .add("personalizationRequests", personalizationRequests) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderRequest.java new file mode 100755 index 000000000..4f800c7d3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Get a provider */ +@Generated +public class GetProviderRequest { + /** */ + private String id; + + public GetProviderRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetProviderRequest that = (GetProviderRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(GetProviderRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderResponse.java new file mode 100755 index 000000000..0330f3f34 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/GetProviderResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 GetProviderResponse { + /** */ + @JsonProperty("provider") + private ProviderInfo provider; + + public GetProviderResponse setProvider(ProviderInfo provider) { + this.provider = provider; + return this; + } + + public ProviderInfo getProvider() { + return provider; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GetProviderResponse that = (GetProviderResponse) o; + return Objects.equals(provider, that.provider); + } + + @Override + public int hashCode() { + return Objects.hash(provider); + } + + @Override + public String toString() { + return new ToStringer(GetProviderResponse.class).add("provider", provider).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Installation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Installation.java new file mode 100755 index 000000000..3375b657d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Installation.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 Installation { + /** */ + @JsonProperty("installation") + private InstallationDetail installation; + + public Installation setInstallation(InstallationDetail installation) { + this.installation = installation; + return this; + } + + public InstallationDetail getInstallation() { + return installation; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Installation that = (Installation) o; + return Objects.equals(installation, that.installation); + } + + @Override + public int hashCode() { + return Objects.hash(installation); + } + + @Override + public String toString() { + return new ToStringer(Installation.class).add("installation", installation).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationDetail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationDetail.java new file mode 100755 index 000000000..c7a3574b9 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationDetail.java @@ -0,0 +1,238 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class InstallationDetail { + /** */ + @JsonProperty("catalog_name") + private String catalogName; + + /** */ + @JsonProperty("error_message") + private String errorMessage; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("installed_on") + private Long installedOn; + + /** */ + @JsonProperty("listing_id") + private String listingId; + + /** */ + @JsonProperty("listing_name") + private String listingName; + + /** */ + @JsonProperty("recipient_type") + private DeltaSharingRecipientType recipientType; + + /** */ + @JsonProperty("repo_name") + private String repoName; + + /** */ + @JsonProperty("repo_path") + private String repoPath; + + /** */ + @JsonProperty("share_name") + private String shareName; + + /** */ + @JsonProperty("status") + private InstallationStatus status; + + /** */ + @JsonProperty("token_detail") + private TokenDetail tokenDetail; + + /** */ + @JsonProperty("tokens") + private Collection tokens; + + public InstallationDetail setCatalogName(String catalogName) { + this.catalogName = catalogName; + return this; + } + + public String getCatalogName() { + return catalogName; + } + + public InstallationDetail setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + public String getErrorMessage() { + return errorMessage; + } + + public InstallationDetail setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public InstallationDetail setInstalledOn(Long installedOn) { + this.installedOn = installedOn; + return this; + } + + public Long getInstalledOn() { + return installedOn; + } + + public InstallationDetail setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public InstallationDetail setListingName(String listingName) { + this.listingName = listingName; + return this; + } + + public String getListingName() { + return listingName; + } + + public InstallationDetail setRecipientType(DeltaSharingRecipientType recipientType) { + this.recipientType = recipientType; + return this; + } + + public DeltaSharingRecipientType getRecipientType() { + return recipientType; + } + + public InstallationDetail setRepoName(String repoName) { + this.repoName = repoName; + return this; + } + + public String getRepoName() { + return repoName; + } + + public InstallationDetail setRepoPath(String repoPath) { + this.repoPath = repoPath; + return this; + } + + public String getRepoPath() { + return repoPath; + } + + public InstallationDetail setShareName(String shareName) { + this.shareName = shareName; + return this; + } + + public String getShareName() { + return shareName; + } + + public InstallationDetail setStatus(InstallationStatus status) { + this.status = status; + return this; + } + + public InstallationStatus getStatus() { + return status; + } + + public InstallationDetail setTokenDetail(TokenDetail tokenDetail) { + this.tokenDetail = tokenDetail; + return this; + } + + public TokenDetail getTokenDetail() { + return tokenDetail; + } + + public InstallationDetail setTokens(Collection tokens) { + this.tokens = tokens; + return this; + } + + public Collection getTokens() { + return tokens; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InstallationDetail that = (InstallationDetail) o; + return Objects.equals(catalogName, that.catalogName) + && Objects.equals(errorMessage, that.errorMessage) + && Objects.equals(id, that.id) + && Objects.equals(installedOn, that.installedOn) + && Objects.equals(listingId, that.listingId) + && Objects.equals(listingName, that.listingName) + && Objects.equals(recipientType, that.recipientType) + && Objects.equals(repoName, that.repoName) + && Objects.equals(repoPath, that.repoPath) + && Objects.equals(shareName, that.shareName) + && Objects.equals(status, that.status) + && Objects.equals(tokenDetail, that.tokenDetail) + && Objects.equals(tokens, that.tokens); + } + + @Override + public int hashCode() { + return Objects.hash( + catalogName, + errorMessage, + id, + installedOn, + listingId, + listingName, + recipientType, + repoName, + repoPath, + shareName, + status, + tokenDetail, + tokens); + } + + @Override + public String toString() { + return new ToStringer(InstallationDetail.class) + .add("catalogName", catalogName) + .add("errorMessage", errorMessage) + .add("id", id) + .add("installedOn", installedOn) + .add("listingId", listingId) + .add("listingName", listingName) + .add("recipientType", recipientType) + .add("repoName", repoName) + .add("repoPath", repoPath) + .add("shareName", shareName) + .add("status", status) + .add("tokenDetail", tokenDetail) + .add("tokens", tokens) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationStatus.java new file mode 100755 index 000000000..a23553964 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/InstallationStatus.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum InstallationStatus { + FAILED, + INSTALLED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsRequest.java new file mode 100755 index 000000000..fa9f837c1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsRequest.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List all installations */ +@Generated +public class ListAllInstallationsRequest { + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListAllInstallationsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListAllInstallationsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListAllInstallationsRequest that = (ListAllInstallationsRequest) o; + return Objects.equals(pageSize, that.pageSize) && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListAllInstallationsRequest.class) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsResponse.java new file mode 100755 index 000000000..9e19e2be8 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllInstallationsResponse.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListAllInstallationsResponse { + /** */ + @JsonProperty("installations") + private Collection installations; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListAllInstallationsResponse setInstallations( + Collection installations) { + this.installations = installations; + return this; + } + + public Collection getInstallations() { + return installations; + } + + public ListAllInstallationsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListAllInstallationsResponse that = (ListAllInstallationsResponse) o; + return Objects.equals(installations, that.installations) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(installations, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListAllInstallationsResponse.class) + .add("installations", installations) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsRequest.java new file mode 100755 index 000000000..a9daf80cb --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsRequest.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List all personalization requests */ +@Generated +public class ListAllPersonalizationRequestsRequest { + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListAllPersonalizationRequestsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListAllPersonalizationRequestsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListAllPersonalizationRequestsRequest that = (ListAllPersonalizationRequestsRequest) o; + return Objects.equals(pageSize, that.pageSize) && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListAllPersonalizationRequestsRequest.class) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsResponse.java new file mode 100755 index 000000000..6ab6333f1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListAllPersonalizationRequestsResponse.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListAllPersonalizationRequestsResponse { + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + /** */ + @JsonProperty("personalization_requests") + private Collection personalizationRequests; + + public ListAllPersonalizationRequestsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + public ListAllPersonalizationRequestsResponse setPersonalizationRequests( + Collection personalizationRequests) { + this.personalizationRequests = personalizationRequests; + return this; + } + + public Collection getPersonalizationRequests() { + return personalizationRequests; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListAllPersonalizationRequestsResponse that = (ListAllPersonalizationRequestsResponse) o; + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(personalizationRequests, that.personalizationRequests); + } + + @Override + public int hashCode() { + return Objects.hash(nextPageToken, personalizationRequests); + } + + @Override + public String toString() { + return new ToStringer(ListAllPersonalizationRequestsResponse.class) + .add("nextPageToken", nextPageToken) + .add("personalizationRequests", personalizationRequests) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersRequest.java new file mode 100755 index 000000000..c5f15252f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersRequest.java @@ -0,0 +1,75 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List exchange filters */ +@Generated +public class ListExchangeFiltersRequest { + /** */ + @QueryParam("exchange_id") + private String exchangeId; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListExchangeFiltersRequest setExchangeId(String exchangeId) { + this.exchangeId = exchangeId; + return this; + } + + public String getExchangeId() { + return exchangeId; + } + + public ListExchangeFiltersRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListExchangeFiltersRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListExchangeFiltersRequest that = (ListExchangeFiltersRequest) o; + return Objects.equals(exchangeId, that.exchangeId) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeId, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListExchangeFiltersRequest.class) + .add("exchangeId", exchangeId) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersResponse.java new file mode 100755 index 000000000..f39d977e3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangeFiltersResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListExchangeFiltersResponse { + /** */ + @JsonProperty("filters") + private Collection filters; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListExchangeFiltersResponse setFilters(Collection filters) { + this.filters = filters; + return this; + } + + public Collection getFilters() { + return filters; + } + + public ListExchangeFiltersResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListExchangeFiltersResponse that = (ListExchangeFiltersResponse) o; + return Objects.equals(filters, that.filters) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(filters, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListExchangeFiltersResponse.class) + .add("filters", filters) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingRequest.java new file mode 100755 index 000000000..c03568776 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingRequest.java @@ -0,0 +1,75 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List exchanges for listing */ +@Generated +public class ListExchangesForListingRequest { + /** */ + @QueryParam("listing_id") + private String listingId; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListExchangesForListingRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public ListExchangesForListingRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListExchangesForListingRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListExchangesForListingRequest that = (ListExchangesForListingRequest) o; + return Objects.equals(listingId, that.listingId) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listingId, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListExchangesForListingRequest.class) + .add("listingId", listingId) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingResponse.java new file mode 100755 index 000000000..7b1fb1990 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesForListingResponse.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListExchangesForListingResponse { + /** */ + @JsonProperty("exchange_listing") + private Collection exchangeListing; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListExchangesForListingResponse setExchangeListing( + Collection exchangeListing) { + this.exchangeListing = exchangeListing; + return this; + } + + public Collection getExchangeListing() { + return exchangeListing; + } + + public ListExchangesForListingResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListExchangesForListingResponse that = (ListExchangesForListingResponse) o; + return Objects.equals(exchangeListing, that.exchangeListing) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeListing, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListExchangesForListingResponse.class) + .add("exchangeListing", exchangeListing) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesRequest.java new file mode 100755 index 000000000..3d92e883d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesRequest.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List exchanges */ +@Generated +public class ListExchangesRequest { + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListExchangesRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListExchangesRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListExchangesRequest that = (ListExchangesRequest) o; + return Objects.equals(pageSize, that.pageSize) && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListExchangesRequest.class) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesResponse.java new file mode 100755 index 000000000..a3340d21e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListExchangesResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListExchangesResponse { + /** */ + @JsonProperty("exchanges") + private Collection exchanges; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListExchangesResponse setExchanges(Collection exchanges) { + this.exchanges = exchanges; + return this; + } + + public Collection getExchanges() { + return exchanges; + } + + public ListExchangesResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListExchangesResponse that = (ListExchangesResponse) o; + return Objects.equals(exchanges, that.exchanges) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(exchanges, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListExchangesResponse.class) + .add("exchanges", exchanges) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesRequest.java new file mode 100755 index 000000000..b35fb4db6 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesRequest.java @@ -0,0 +1,75 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List files */ +@Generated +public class ListFilesRequest { + /** */ + @QueryParam("file_parent") + private FileParent fileParent; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListFilesRequest setFileParent(FileParent fileParent) { + this.fileParent = fileParent; + return this; + } + + public FileParent getFileParent() { + return fileParent; + } + + public ListFilesRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListFilesRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListFilesRequest that = (ListFilesRequest) o; + return Objects.equals(fileParent, that.fileParent) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(fileParent, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListFilesRequest.class) + .add("fileParent", fileParent) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesResponse.java new file mode 100755 index 000000000..cb90f3e58 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFilesResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListFilesResponse { + /** */ + @JsonProperty("file_infos") + private Collection fileInfos; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListFilesResponse setFileInfos(Collection fileInfos) { + this.fileInfos = fileInfos; + return this; + } + + public Collection getFileInfos() { + return fileInfos; + } + + public ListFilesResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListFilesResponse that = (ListFilesResponse) o; + return Objects.equals(fileInfos, that.fileInfos) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(fileInfos, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListFilesResponse.class) + .add("fileInfos", fileInfos) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsRequest.java new file mode 100755 index 000000000..9b92d900d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsRequest.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List all listing fulfillments */ +@Generated +public class ListFulfillmentsRequest { + /** */ + private String listingId; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListFulfillmentsRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public ListFulfillmentsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListFulfillmentsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListFulfillmentsRequest that = (ListFulfillmentsRequest) o; + return Objects.equals(listingId, that.listingId) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listingId, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListFulfillmentsRequest.class) + .add("listingId", listingId) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsResponse.java new file mode 100755 index 000000000..ca31df7d8 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListFulfillmentsResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListFulfillmentsResponse { + /** */ + @JsonProperty("fulfillments") + private Collection fulfillments; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListFulfillmentsResponse setFulfillments(Collection fulfillments) { + this.fulfillments = fulfillments; + return this; + } + + public Collection getFulfillments() { + return fulfillments; + } + + public ListFulfillmentsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListFulfillmentsResponse that = (ListFulfillmentsResponse) o; + return Objects.equals(fulfillments, that.fulfillments) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(fulfillments, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListFulfillmentsResponse.class) + .add("fulfillments", fulfillments) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsRequest.java new file mode 100755 index 000000000..9b50c64a7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsRequest.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List installations for a listing */ +@Generated +public class ListInstallationsRequest { + /** */ + private String listingId; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListInstallationsRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public ListInstallationsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListInstallationsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListInstallationsRequest that = (ListInstallationsRequest) o; + return Objects.equals(listingId, that.listingId) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listingId, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListInstallationsRequest.class) + .add("listingId", listingId) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsResponse.java new file mode 100755 index 000000000..3a4b12401 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListInstallationsResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListInstallationsResponse { + /** */ + @JsonProperty("installations") + private Collection installations; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListInstallationsResponse setInstallations(Collection installations) { + this.installations = installations; + return this; + } + + public Collection getInstallations() { + return installations; + } + + public ListInstallationsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListInstallationsResponse that = (ListInstallationsResponse) o; + return Objects.equals(installations, that.installations) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(installations, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListInstallationsResponse.class) + .add("installations", installations) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeRequest.java new file mode 100755 index 000000000..5d8522345 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeRequest.java @@ -0,0 +1,75 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List listings for exchange */ +@Generated +public class ListListingsForExchangeRequest { + /** */ + @QueryParam("exchange_id") + private String exchangeId; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListListingsForExchangeRequest setExchangeId(String exchangeId) { + this.exchangeId = exchangeId; + return this; + } + + public String getExchangeId() { + return exchangeId; + } + + public ListListingsForExchangeRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListListingsForExchangeRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListListingsForExchangeRequest that = (ListListingsForExchangeRequest) o; + return Objects.equals(exchangeId, that.exchangeId) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeId, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListListingsForExchangeRequest.class) + .add("exchangeId", exchangeId) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeResponse.java new file mode 100755 index 000000000..b88884f8e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsForExchangeResponse.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListListingsForExchangeResponse { + /** */ + @JsonProperty("exchange_listings") + private Collection exchangeListings; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListListingsForExchangeResponse setExchangeListings( + Collection exchangeListings) { + this.exchangeListings = exchangeListings; + return this; + } + + public Collection getExchangeListings() { + return exchangeListings; + } + + public ListListingsForExchangeResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListListingsForExchangeResponse that = (ListListingsForExchangeResponse) o; + return Objects.equals(exchangeListings, that.exchangeListings) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(exchangeListings, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListListingsForExchangeResponse.class) + .add("exchangeListings", exchangeListings) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsRequest.java new file mode 100755 index 000000000..9da775dba --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsRequest.java @@ -0,0 +1,191 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Collection; +import java.util.Objects; + +/** List listings */ +@Generated +public class ListListingsRequest { + /** Matches any of the following asset types */ + @QueryParam("assets") + private Collection assets; + + /** Matches any of the following categories */ + @QueryParam("categories") + private Collection categories; + + /** Filters each listing based on if it is free. */ + @QueryParam("is_free") + private Boolean isFree; + + /** Filters each listing based on if it is a private exchange. */ + @QueryParam("is_private_exchange") + private Boolean isPrivateExchange; + + /** Filters each listing based on whether it is a staff pick. */ + @QueryParam("is_staff_pick") + private Boolean isStaffPick; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + /** Matches any of the following provider ids */ + @QueryParam("provider_ids") + private Collection providerIds; + + /** Criteria for sorting the resulting set of listings. */ + @QueryParam("sort_by_spec") + private SortBySpec sortBySpec; + + /** Matches any of the following tags */ + @QueryParam("tags") + private Collection tags; + + public ListListingsRequest setAssets(Collection assets) { + this.assets = assets; + return this; + } + + public Collection getAssets() { + return assets; + } + + public ListListingsRequest setCategories(Collection categories) { + this.categories = categories; + return this; + } + + public Collection getCategories() { + return categories; + } + + public ListListingsRequest setIsFree(Boolean isFree) { + this.isFree = isFree; + return this; + } + + public Boolean getIsFree() { + return isFree; + } + + public ListListingsRequest setIsPrivateExchange(Boolean isPrivateExchange) { + this.isPrivateExchange = isPrivateExchange; + return this; + } + + public Boolean getIsPrivateExchange() { + return isPrivateExchange; + } + + public ListListingsRequest setIsStaffPick(Boolean isStaffPick) { + this.isStaffPick = isStaffPick; + return this; + } + + public Boolean getIsStaffPick() { + return isStaffPick; + } + + public ListListingsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListListingsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + public ListListingsRequest setProviderIds(Collection providerIds) { + this.providerIds = providerIds; + return this; + } + + public Collection getProviderIds() { + return providerIds; + } + + public ListListingsRequest setSortBySpec(SortBySpec sortBySpec) { + this.sortBySpec = sortBySpec; + return this; + } + + public SortBySpec getSortBySpec() { + return sortBySpec; + } + + public ListListingsRequest setTags(Collection tags) { + this.tags = tags; + return this; + } + + public Collection getTags() { + return tags; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListListingsRequest that = (ListListingsRequest) o; + return Objects.equals(assets, that.assets) + && Objects.equals(categories, that.categories) + && Objects.equals(isFree, that.isFree) + && Objects.equals(isPrivateExchange, that.isPrivateExchange) + && Objects.equals(isStaffPick, that.isStaffPick) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken) + && Objects.equals(providerIds, that.providerIds) + && Objects.equals(sortBySpec, that.sortBySpec) + && Objects.equals(tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash( + assets, + categories, + isFree, + isPrivateExchange, + isStaffPick, + pageSize, + pageToken, + providerIds, + sortBySpec, + tags); + } + + @Override + public String toString() { + return new ToStringer(ListListingsRequest.class) + .add("assets", assets) + .add("categories", categories) + .add("isFree", isFree) + .add("isPrivateExchange", isPrivateExchange) + .add("isStaffPick", isStaffPick) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .add("providerIds", providerIds) + .add("sortBySpec", sortBySpec) + .add("tags", tags) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsResponse.java new file mode 100755 index 000000000..1ec5cf42c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListListingsResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListListingsResponse { + /** */ + @JsonProperty("listings") + private Collection listings; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public ListListingsResponse setListings(Collection listings) { + this.listings = listings; + return this; + } + + public Collection getListings() { + return listings; + } + + public ListListingsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListListingsResponse that = (ListListingsResponse) o; + return Objects.equals(listings, that.listings) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listings, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(ListListingsResponse.class) + .add("listings", listings) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProviderAnalyticsDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProviderAnalyticsDashboardResponse.java new file mode 100755 index 000000000..43dc6cef5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProviderAnalyticsDashboardResponse.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ListProviderAnalyticsDashboardResponse { + /** dashboard_id will be used to open Lakeview dashboard. */ + @JsonProperty("dashboard_id") + private String dashboardId; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("version") + private Long version; + + public ListProviderAnalyticsDashboardResponse setDashboardId(String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + public String getDashboardId() { + return dashboardId; + } + + public ListProviderAnalyticsDashboardResponse setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public ListProviderAnalyticsDashboardResponse setVersion(Long version) { + this.version = version; + return this; + } + + public Long getVersion() { + return version; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProviderAnalyticsDashboardResponse that = (ListProviderAnalyticsDashboardResponse) o; + return Objects.equals(dashboardId, that.dashboardId) + && Objects.equals(id, that.id) + && Objects.equals(version, that.version); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId, id, version); + } + + @Override + public String toString() { + return new ToStringer(ListProviderAnalyticsDashboardResponse.class) + .add("dashboardId", dashboardId) + .add("id", id) + .add("version", version) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersRequest.java new file mode 100755 index 000000000..a0b78f6cd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersRequest.java @@ -0,0 +1,75 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** List providers */ +@Generated +public class ListProvidersRequest { + /** */ + @QueryParam("is_featured") + private Boolean isFeatured; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + public ListProvidersRequest setIsFeatured(Boolean isFeatured) { + this.isFeatured = isFeatured; + return this; + } + + public Boolean getIsFeatured() { + return isFeatured; + } + + public ListProvidersRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListProvidersRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProvidersRequest that = (ListProvidersRequest) o; + return Objects.equals(isFeatured, that.isFeatured) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(isFeatured, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListProvidersRequest.class) + .add("isFeatured", isFeatured) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersResponse.java new file mode 100755 index 000000000..e91d16bd7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListProvidersResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListProvidersResponse { + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + /** */ + @JsonProperty("providers") + private Collection providers; + + public ListProvidersResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + public ListProvidersResponse setProviders(Collection providers) { + this.providers = providers; + return this; + } + + public Collection getProviders() { + return providers; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProvidersResponse that = (ListProvidersResponse) o; + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(providers, that.providers); + } + + @Override + public int hashCode() { + return Objects.hash(nextPageToken, providers); + } + + @Override + public String toString() { + return new ToStringer(ListProvidersResponse.class) + .add("nextPageToken", nextPageToken) + .add("providers", providers) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Listing.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Listing.java new file mode 100755 index 000000000..f73465e34 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Listing.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 Listing { + /** */ + @JsonProperty("detail") + private ListingDetail detail; + + /** */ + @JsonProperty("id") + private String id; + + /** Next Number: 26 */ + @JsonProperty("summary") + private ListingSummary summary; + + public Listing setDetail(ListingDetail detail) { + this.detail = detail; + return this; + } + + public ListingDetail getDetail() { + return detail; + } + + public Listing setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public Listing setSummary(ListingSummary summary) { + this.summary = summary; + return this; + } + + public ListingSummary getSummary() { + return summary; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Listing that = (Listing) o; + return Objects.equals(detail, that.detail) + && Objects.equals(id, that.id) + && Objects.equals(summary, that.summary); + } + + @Override + public int hashCode() { + return Objects.hash(detail, id, summary); + } + + @Override + public String toString() { + return new ToStringer(Listing.class) + .add("detail", detail) + .add("id", id) + .add("summary", summary) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingDetail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingDetail.java new file mode 100755 index 000000000..dcf891232 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingDetail.java @@ -0,0 +1,348 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListingDetail { + /** Type of assets included in the listing. eg. GIT_REPO, DATA_TABLE, MODEL, NOTEBOOK */ + @JsonProperty("assets") + private Collection assets; + + /** The ending date timestamp for when the data spans */ + @JsonProperty("collection_date_end") + private Long collectionDateEnd; + + /** The starting date timestamp for when the data spans */ + @JsonProperty("collection_date_start") + private Long collectionDateStart; + + /** Smallest unit of time in the dataset */ + @JsonProperty("collection_granularity") + private DataRefreshInfo collectionGranularity; + + /** Whether the dataset is free or paid */ + @JsonProperty("cost") + private Cost cost; + + /** Where/how the data is sourced */ + @JsonProperty("data_source") + private String dataSource; + + /** */ + @JsonProperty("description") + private String description; + + /** */ + @JsonProperty("documentation_link") + private String documentationLink; + + /** */ + @JsonProperty("embedded_notebook_file_infos") + private Collection embeddedNotebookFileInfos; + + /** */ + @JsonProperty("file_ids") + private Collection fileIds; + + /** Which geo region the listing data is collected from */ + @JsonProperty("geographical_coverage") + private String geographicalCoverage; + + /** + * ID 20, 21 removed don't use License of the data asset - Required for listings with model based + * assets + */ + @JsonProperty("license") + private String license; + + /** + * What the pricing model is (e.g. paid, subscription, paid upfront); should only be present if + * cost is paid TODO: Not used yet, should deprecate if we will never use it + */ + @JsonProperty("pricing_model") + private String pricingModel; + + /** */ + @JsonProperty("privacy_policy_link") + private String privacyPolicyLink; + + /** size of the dataset in GB */ + @JsonProperty("size") + private Double size; + + /** */ + @JsonProperty("support_link") + private String supportLink; + + /** + * Listing tags - Simple key value pair to annotate listings. When should I use tags vs dedicated + * fields? Using tags avoids the need to add new columns in the database for new annotations. + * However, this should be used sparingly since tags are stored as key value pair. Use tags only: + * 1. If the field is optional and won't need to have NOT NULL integrity check 2. The value is + * fairly fixed, static and low cardinality (eg. enums). 3. The value won't be used in filters or + * joins with other tables. + */ + @JsonProperty("tags") + private Collection tags; + + /** */ + @JsonProperty("terms_of_service") + private String termsOfService; + + /** How often data is updated */ + @JsonProperty("update_frequency") + private DataRefreshInfo updateFrequency; + + public ListingDetail setAssets(Collection assets) { + this.assets = assets; + return this; + } + + public Collection getAssets() { + return assets; + } + + public ListingDetail setCollectionDateEnd(Long collectionDateEnd) { + this.collectionDateEnd = collectionDateEnd; + return this; + } + + public Long getCollectionDateEnd() { + return collectionDateEnd; + } + + public ListingDetail setCollectionDateStart(Long collectionDateStart) { + this.collectionDateStart = collectionDateStart; + return this; + } + + public Long getCollectionDateStart() { + return collectionDateStart; + } + + public ListingDetail setCollectionGranularity(DataRefreshInfo collectionGranularity) { + this.collectionGranularity = collectionGranularity; + return this; + } + + public DataRefreshInfo getCollectionGranularity() { + return collectionGranularity; + } + + public ListingDetail setCost(Cost cost) { + this.cost = cost; + return this; + } + + public Cost getCost() { + return cost; + } + + public ListingDetail setDataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + public String getDataSource() { + return dataSource; + } + + public ListingDetail setDescription(String description) { + this.description = description; + return this; + } + + public String getDescription() { + return description; + } + + public ListingDetail setDocumentationLink(String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + public String getDocumentationLink() { + return documentationLink; + } + + public ListingDetail setEmbeddedNotebookFileInfos( + Collection embeddedNotebookFileInfos) { + this.embeddedNotebookFileInfos = embeddedNotebookFileInfos; + return this; + } + + public Collection getEmbeddedNotebookFileInfos() { + return embeddedNotebookFileInfos; + } + + public ListingDetail setFileIds(Collection fileIds) { + this.fileIds = fileIds; + return this; + } + + public Collection getFileIds() { + return fileIds; + } + + public ListingDetail setGeographicalCoverage(String geographicalCoverage) { + this.geographicalCoverage = geographicalCoverage; + return this; + } + + public String getGeographicalCoverage() { + return geographicalCoverage; + } + + public ListingDetail setLicense(String license) { + this.license = license; + return this; + } + + public String getLicense() { + return license; + } + + public ListingDetail setPricingModel(String pricingModel) { + this.pricingModel = pricingModel; + return this; + } + + public String getPricingModel() { + return pricingModel; + } + + public ListingDetail setPrivacyPolicyLink(String privacyPolicyLink) { + this.privacyPolicyLink = privacyPolicyLink; + return this; + } + + public String getPrivacyPolicyLink() { + return privacyPolicyLink; + } + + public ListingDetail setSize(Double size) { + this.size = size; + return this; + } + + public Double getSize() { + return size; + } + + public ListingDetail setSupportLink(String supportLink) { + this.supportLink = supportLink; + return this; + } + + public String getSupportLink() { + return supportLink; + } + + public ListingDetail setTags(Collection tags) { + this.tags = tags; + return this; + } + + public Collection getTags() { + return tags; + } + + public ListingDetail setTermsOfService(String termsOfService) { + this.termsOfService = termsOfService; + return this; + } + + public String getTermsOfService() { + return termsOfService; + } + + public ListingDetail setUpdateFrequency(DataRefreshInfo updateFrequency) { + this.updateFrequency = updateFrequency; + return this; + } + + public DataRefreshInfo getUpdateFrequency() { + return updateFrequency; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListingDetail that = (ListingDetail) o; + return Objects.equals(assets, that.assets) + && Objects.equals(collectionDateEnd, that.collectionDateEnd) + && Objects.equals(collectionDateStart, that.collectionDateStart) + && Objects.equals(collectionGranularity, that.collectionGranularity) + && Objects.equals(cost, that.cost) + && Objects.equals(dataSource, that.dataSource) + && Objects.equals(description, that.description) + && Objects.equals(documentationLink, that.documentationLink) + && Objects.equals(embeddedNotebookFileInfos, that.embeddedNotebookFileInfos) + && Objects.equals(fileIds, that.fileIds) + && Objects.equals(geographicalCoverage, that.geographicalCoverage) + && Objects.equals(license, that.license) + && Objects.equals(pricingModel, that.pricingModel) + && Objects.equals(privacyPolicyLink, that.privacyPolicyLink) + && Objects.equals(size, that.size) + && Objects.equals(supportLink, that.supportLink) + && Objects.equals(tags, that.tags) + && Objects.equals(termsOfService, that.termsOfService) + && Objects.equals(updateFrequency, that.updateFrequency); + } + + @Override + public int hashCode() { + return Objects.hash( + assets, + collectionDateEnd, + collectionDateStart, + collectionGranularity, + cost, + dataSource, + description, + documentationLink, + embeddedNotebookFileInfos, + fileIds, + geographicalCoverage, + license, + pricingModel, + privacyPolicyLink, + size, + supportLink, + tags, + termsOfService, + updateFrequency); + } + + @Override + public String toString() { + return new ToStringer(ListingDetail.class) + .add("assets", assets) + .add("collectionDateEnd", collectionDateEnd) + .add("collectionDateStart", collectionDateStart) + .add("collectionGranularity", collectionGranularity) + .add("cost", cost) + .add("dataSource", dataSource) + .add("description", description) + .add("documentationLink", documentationLink) + .add("embeddedNotebookFileInfos", embeddedNotebookFileInfos) + .add("fileIds", fileIds) + .add("geographicalCoverage", geographicalCoverage) + .add("license", license) + .add("pricingModel", pricingModel) + .add("privacyPolicyLink", privacyPolicyLink) + .add("size", size) + .add("supportLink", supportLink) + .add("tags", tags) + .add("termsOfService", termsOfService) + .add("updateFrequency", updateFrequency) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingFulfillment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingFulfillment.java new file mode 100755 index 000000000..2fc0506cd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingFulfillment.java @@ -0,0 +1,104 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ListingFulfillment { + /** */ + @JsonProperty("fulfillment_type") + private FulfillmentType fulfillmentType; + + /** */ + @JsonProperty("listing_id") + private String listingId; + + /** */ + @JsonProperty("recipient_type") + private DeltaSharingRecipientType recipientType; + + /** */ + @JsonProperty("repo_info") + private RepoInfo repoInfo; + + /** */ + @JsonProperty("share_info") + private ShareInfo shareInfo; + + public ListingFulfillment setFulfillmentType(FulfillmentType fulfillmentType) { + this.fulfillmentType = fulfillmentType; + return this; + } + + public FulfillmentType getFulfillmentType() { + return fulfillmentType; + } + + public ListingFulfillment setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public ListingFulfillment setRecipientType(DeltaSharingRecipientType recipientType) { + this.recipientType = recipientType; + return this; + } + + public DeltaSharingRecipientType getRecipientType() { + return recipientType; + } + + public ListingFulfillment setRepoInfo(RepoInfo repoInfo) { + this.repoInfo = repoInfo; + return this; + } + + public RepoInfo getRepoInfo() { + return repoInfo; + } + + public ListingFulfillment setShareInfo(ShareInfo shareInfo) { + this.shareInfo = shareInfo; + return this; + } + + public ShareInfo getShareInfo() { + return shareInfo; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListingFulfillment that = (ListingFulfillment) o; + return Objects.equals(fulfillmentType, that.fulfillmentType) + && Objects.equals(listingId, that.listingId) + && Objects.equals(recipientType, that.recipientType) + && Objects.equals(repoInfo, that.repoInfo) + && Objects.equals(shareInfo, that.shareInfo); + } + + @Override + public int hashCode() { + return Objects.hash(fulfillmentType, listingId, recipientType, repoInfo, shareInfo); + } + + @Override + public String toString() { + return new ToStringer(ListingFulfillment.class) + .add("fulfillmentType", fulfillmentType) + .add("listingId", listingId) + .add("recipientType", recipientType) + .add("repoInfo", repoInfo) + .add("shareInfo", shareInfo) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSetting.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSetting.java new file mode 100755 index 000000000..34c8e969c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSetting.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListingSetting { + /** filters are joined with `or` conjunction. */ + @JsonProperty("filters") + private Collection filters; + + /** */ + @JsonProperty("visibility") + private Visibility visibility; + + public ListingSetting setFilters(Collection filters) { + this.filters = filters; + return this; + } + + public Collection getFilters() { + return filters; + } + + public ListingSetting setVisibility(Visibility visibility) { + this.visibility = visibility; + return this; + } + + public Visibility getVisibility() { + return visibility; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListingSetting that = (ListingSetting) o; + return Objects.equals(filters, that.filters) && Objects.equals(visibility, that.visibility); + } + + @Override + public int hashCode() { + return Objects.hash(filters, visibility); + } + + @Override + public String toString() { + return new ToStringer(ListingSetting.class) + .add("filters", filters) + .add("visibility", visibility) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingShareType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingShareType.java new file mode 100755 index 000000000..f63a807c1 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingShareType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum ListingShareType { + FULL, + SAMPLE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingStatus.java new file mode 100755 index 000000000..ff7dad470 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingStatus.java @@ -0,0 +1,14 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** Enums */ +@Generated +public enum ListingStatus { + DRAFT, + PENDING, + PUBLISHED, + SUSPENDED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSummary.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSummary.java new file mode 100755 index 000000000..5ea87f394 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingSummary.java @@ -0,0 +1,354 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +/** Next Number: 26 */ +@Generated +public class ListingSummary { + /** */ + @JsonProperty("categories") + private Collection categories; + + /** */ + @JsonProperty("created_at") + private Long createdAt; + + /** */ + @JsonProperty("created_by") + private String createdBy; + + /** */ + @JsonProperty("created_by_id") + private Long createdById; + + /** */ + @JsonProperty("exchange_ids") + private Collection exchangeIds; + + /** + * if a git repo is being created, a listing will be initialized with this field as opposed to a + * share + */ + @JsonProperty("git_repo") + private RepoInfo gitRepo; + + /** */ + @JsonProperty("listingType") + private ListingType listingType; + + /** */ + @JsonProperty("metastore_id") + private String metastoreId; + + /** */ + @JsonProperty("name") + private String name; + + /** */ + @JsonProperty("provider_id") + private String providerId; + + /** */ + @JsonProperty("provider_region") + private RegionInfo providerRegion; + + /** */ + @JsonProperty("published_at") + private Long publishedAt; + + /** */ + @JsonProperty("published_by") + private String publishedBy; + + /** */ + @JsonProperty("setting") + private ListingSetting setting; + + /** */ + @JsonProperty("share") + private ShareInfo share; + + /** Enums */ + @JsonProperty("status") + private ListingStatus status; + + /** */ + @JsonProperty("subtitle") + private String subtitle; + + /** */ + @JsonProperty("updated_at") + private Long updatedAt; + + /** */ + @JsonProperty("updated_by") + private String updatedBy; + + /** */ + @JsonProperty("updated_by_id") + private Long updatedById; + + public ListingSummary setCategories(Collection categories) { + this.categories = categories; + return this; + } + + public Collection getCategories() { + return categories; + } + + public ListingSummary setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public ListingSummary setCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + public String getCreatedBy() { + return createdBy; + } + + public ListingSummary setCreatedById(Long createdById) { + this.createdById = createdById; + return this; + } + + public Long getCreatedById() { + return createdById; + } + + public ListingSummary setExchangeIds(Collection exchangeIds) { + this.exchangeIds = exchangeIds; + return this; + } + + public Collection getExchangeIds() { + return exchangeIds; + } + + public ListingSummary setGitRepo(RepoInfo gitRepo) { + this.gitRepo = gitRepo; + return this; + } + + public RepoInfo getGitRepo() { + return gitRepo; + } + + public ListingSummary setListingType(ListingType listingType) { + this.listingType = listingType; + return this; + } + + public ListingType getListingType() { + return listingType; + } + + public ListingSummary setMetastoreId(String metastoreId) { + this.metastoreId = metastoreId; + return this; + } + + public String getMetastoreId() { + return metastoreId; + } + + public ListingSummary setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public ListingSummary setProviderId(String providerId) { + this.providerId = providerId; + return this; + } + + public String getProviderId() { + return providerId; + } + + public ListingSummary setProviderRegion(RegionInfo providerRegion) { + this.providerRegion = providerRegion; + return this; + } + + public RegionInfo getProviderRegion() { + return providerRegion; + } + + public ListingSummary setPublishedAt(Long publishedAt) { + this.publishedAt = publishedAt; + return this; + } + + public Long getPublishedAt() { + return publishedAt; + } + + public ListingSummary setPublishedBy(String publishedBy) { + this.publishedBy = publishedBy; + return this; + } + + public String getPublishedBy() { + return publishedBy; + } + + public ListingSummary setSetting(ListingSetting setting) { + this.setting = setting; + return this; + } + + public ListingSetting getSetting() { + return setting; + } + + public ListingSummary setShare(ShareInfo share) { + this.share = share; + return this; + } + + public ShareInfo getShare() { + return share; + } + + public ListingSummary setStatus(ListingStatus status) { + this.status = status; + return this; + } + + public ListingStatus getStatus() { + return status; + } + + public ListingSummary setSubtitle(String subtitle) { + this.subtitle = subtitle; + return this; + } + + public String getSubtitle() { + return subtitle; + } + + public ListingSummary setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + public ListingSummary setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + return this; + } + + public String getUpdatedBy() { + return updatedBy; + } + + public ListingSummary setUpdatedById(Long updatedById) { + this.updatedById = updatedById; + return this; + } + + public Long getUpdatedById() { + return updatedById; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListingSummary that = (ListingSummary) o; + return Objects.equals(categories, that.categories) + && Objects.equals(createdAt, that.createdAt) + && Objects.equals(createdBy, that.createdBy) + && Objects.equals(createdById, that.createdById) + && Objects.equals(exchangeIds, that.exchangeIds) + && Objects.equals(gitRepo, that.gitRepo) + && Objects.equals(listingType, that.listingType) + && Objects.equals(metastoreId, that.metastoreId) + && Objects.equals(name, that.name) + && Objects.equals(providerId, that.providerId) + && Objects.equals(providerRegion, that.providerRegion) + && Objects.equals(publishedAt, that.publishedAt) + && Objects.equals(publishedBy, that.publishedBy) + && Objects.equals(setting, that.setting) + && Objects.equals(share, that.share) + && Objects.equals(status, that.status) + && Objects.equals(subtitle, that.subtitle) + && Objects.equals(updatedAt, that.updatedAt) + && Objects.equals(updatedBy, that.updatedBy) + && Objects.equals(updatedById, that.updatedById); + } + + @Override + public int hashCode() { + return Objects.hash( + categories, + createdAt, + createdBy, + createdById, + exchangeIds, + gitRepo, + listingType, + metastoreId, + name, + providerId, + providerRegion, + publishedAt, + publishedBy, + setting, + share, + status, + subtitle, + updatedAt, + updatedBy, + updatedById); + } + + @Override + public String toString() { + return new ToStringer(ListingSummary.class) + .add("categories", categories) + .add("createdAt", createdAt) + .add("createdBy", createdBy) + .add("createdById", createdById) + .add("exchangeIds", exchangeIds) + .add("gitRepo", gitRepo) + .add("listingType", listingType) + .add("metastoreId", metastoreId) + .add("name", name) + .add("providerId", providerId) + .add("providerRegion", providerRegion) + .add("publishedAt", publishedAt) + .add("publishedBy", publishedBy) + .add("setting", setting) + .add("share", share) + .add("status", status) + .add("subtitle", subtitle) + .add("updatedAt", updatedAt) + .add("updatedBy", updatedBy) + .add("updatedById", updatedById) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTag.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTag.java new file mode 100755 index 000000000..c1bfefb78 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTag.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class ListingTag { + /** Tag name (enum) */ + @JsonProperty("tag_name") + private ListingTagType tagName; + + /** String representation of the tag value. Values should be string literals (no complex types) */ + @JsonProperty("tag_values") + private Collection tagValues; + + public ListingTag setTagName(ListingTagType tagName) { + this.tagName = tagName; + return this; + } + + public ListingTagType getTagName() { + return tagName; + } + + public ListingTag setTagValues(Collection tagValues) { + this.tagValues = tagValues; + return this; + } + + public Collection getTagValues() { + return tagValues; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListingTag that = (ListingTag) o; + return Objects.equals(tagName, that.tagName) && Objects.equals(tagValues, that.tagValues); + } + + @Override + public int hashCode() { + return Objects.hash(tagName, tagValues); + } + + @Override + public String toString() { + return new ToStringer(ListingTag.class) + .add("tagName", tagName) + .add("tagValues", tagValues) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTagType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTagType.java new file mode 100755 index 000000000..e019fed8b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingTagType.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum ListingTagType { + LISTING_TAG_TYPE_LANGUAGE, + LISTING_TAG_TYPE_TASK, + LISTING_TAG_TYPE_UNSPECIFIED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingType.java new file mode 100755 index 000000000..0f6e96a57 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ListingType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum ListingType { + PERSONALIZED, + STANDARD, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/MarketplaceFileType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/MarketplaceFileType.java new file mode 100755 index 000000000..cb7135dc2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/MarketplaceFileType.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum MarketplaceFileType { + EMBEDDED_NOTEBOOK, + PROVIDER_ICON, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequest.java new file mode 100755 index 000000000..8765d123b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequest.java @@ -0,0 +1,285 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 PersonalizationRequest { + /** */ + @JsonProperty("comment") + private String comment; + + /** */ + @JsonProperty("consumer_region") + private RegionInfo consumerRegion; + + /** contact info for the consumer requesting data or performing a listing installation */ + @JsonProperty("contact_info") + private ContactInfo contactInfo; + + /** */ + @JsonProperty("created_at") + private Long createdAt; + + /** */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("intended_use") + private String intendedUse; + + /** */ + @JsonProperty("is_from_lighthouse") + private Boolean isFromLighthouse; + + /** */ + @JsonProperty("listing_id") + private String listingId; + + /** */ + @JsonProperty("listing_name") + private String listingName; + + /** */ + @JsonProperty("metastore_id") + private String metastoreId; + + /** */ + @JsonProperty("provider_id") + private String providerId; + + /** */ + @JsonProperty("recipient_type") + private DeltaSharingRecipientType recipientType; + + /** */ + @JsonProperty("share") + private ShareInfo share; + + /** */ + @JsonProperty("status") + private PersonalizationRequestStatus status; + + /** */ + @JsonProperty("status_message") + private String statusMessage; + + /** */ + @JsonProperty("updated_at") + private Long updatedAt; + + public PersonalizationRequest setComment(String comment) { + this.comment = comment; + return this; + } + + public String getComment() { + return comment; + } + + public PersonalizationRequest setConsumerRegion(RegionInfo consumerRegion) { + this.consumerRegion = consumerRegion; + return this; + } + + public RegionInfo getConsumerRegion() { + return consumerRegion; + } + + public PersonalizationRequest setContactInfo(ContactInfo contactInfo) { + this.contactInfo = contactInfo; + return this; + } + + public ContactInfo getContactInfo() { + return contactInfo; + } + + public PersonalizationRequest setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public PersonalizationRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public PersonalizationRequest setIntendedUse(String intendedUse) { + this.intendedUse = intendedUse; + return this; + } + + public String getIntendedUse() { + return intendedUse; + } + + public PersonalizationRequest setIsFromLighthouse(Boolean isFromLighthouse) { + this.isFromLighthouse = isFromLighthouse; + return this; + } + + public Boolean getIsFromLighthouse() { + return isFromLighthouse; + } + + public PersonalizationRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public PersonalizationRequest setListingName(String listingName) { + this.listingName = listingName; + return this; + } + + public String getListingName() { + return listingName; + } + + public PersonalizationRequest setMetastoreId(String metastoreId) { + this.metastoreId = metastoreId; + return this; + } + + public String getMetastoreId() { + return metastoreId; + } + + public PersonalizationRequest setProviderId(String providerId) { + this.providerId = providerId; + return this; + } + + public String getProviderId() { + return providerId; + } + + public PersonalizationRequest setRecipientType(DeltaSharingRecipientType recipientType) { + this.recipientType = recipientType; + return this; + } + + public DeltaSharingRecipientType getRecipientType() { + return recipientType; + } + + public PersonalizationRequest setShare(ShareInfo share) { + this.share = share; + return this; + } + + public ShareInfo getShare() { + return share; + } + + public PersonalizationRequest setStatus(PersonalizationRequestStatus status) { + this.status = status; + return this; + } + + public PersonalizationRequestStatus getStatus() { + return status; + } + + public PersonalizationRequest setStatusMessage(String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + public String getStatusMessage() { + return statusMessage; + } + + public PersonalizationRequest setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PersonalizationRequest that = (PersonalizationRequest) o; + return Objects.equals(comment, that.comment) + && Objects.equals(consumerRegion, that.consumerRegion) + && Objects.equals(contactInfo, that.contactInfo) + && Objects.equals(createdAt, that.createdAt) + && Objects.equals(id, that.id) + && Objects.equals(intendedUse, that.intendedUse) + && Objects.equals(isFromLighthouse, that.isFromLighthouse) + && Objects.equals(listingId, that.listingId) + && Objects.equals(listingName, that.listingName) + && Objects.equals(metastoreId, that.metastoreId) + && Objects.equals(providerId, that.providerId) + && Objects.equals(recipientType, that.recipientType) + && Objects.equals(share, that.share) + && Objects.equals(status, that.status) + && Objects.equals(statusMessage, that.statusMessage) + && Objects.equals(updatedAt, that.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash( + comment, + consumerRegion, + contactInfo, + createdAt, + id, + intendedUse, + isFromLighthouse, + listingId, + listingName, + metastoreId, + providerId, + recipientType, + share, + status, + statusMessage, + updatedAt); + } + + @Override + public String toString() { + return new ToStringer(PersonalizationRequest.class) + .add("comment", comment) + .add("consumerRegion", consumerRegion) + .add("contactInfo", contactInfo) + .add("createdAt", createdAt) + .add("id", id) + .add("intendedUse", intendedUse) + .add("isFromLighthouse", isFromLighthouse) + .add("listingId", listingId) + .add("listingName", listingName) + .add("metastoreId", metastoreId) + .add("providerId", providerId) + .add("recipientType", recipientType) + .add("share", share) + .add("status", status) + .add("statusMessage", statusMessage) + .add("updatedAt", updatedAt) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequestStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequestStatus.java new file mode 100755 index 000000000..495fe0f0c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/PersonalizationRequestStatus.java @@ -0,0 +1,13 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum PersonalizationRequestStatus { + DENIED, + FULFILLED, + NEW, + REQUEST_PENDING, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderAnalyticsDashboard.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderAnalyticsDashboard.java new file mode 100755 index 000000000..a44796fae --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderAnalyticsDashboard.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ProviderAnalyticsDashboard { + /** */ + @JsonProperty("id") + private String id; + + public ProviderAnalyticsDashboard setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ProviderAnalyticsDashboard that = (ProviderAnalyticsDashboard) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(ProviderAnalyticsDashboard.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java new file mode 100755 index 000000000..bf1fe037a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java @@ -0,0 +1,92 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** Marketplace exchanges filters curate which groups can access an exchange. */ +@Generated +public class ProviderExchangeFiltersAPI { + private static final Logger LOG = LoggerFactory.getLogger(ProviderExchangeFiltersAPI.class); + + private final ProviderExchangeFiltersService impl; + + /** Regular-use constructor */ + public ProviderExchangeFiltersAPI(ApiClient apiClient) { + impl = new ProviderExchangeFiltersImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderExchangeFiltersAPI(ProviderExchangeFiltersService mock) { + impl = mock; + } + + public CreateExchangeFilterResponse create(ExchangeFilter filter) { + return create(new CreateExchangeFilterRequest().setFilter(filter)); + } + + /** + * Create a new exchange filter. + * + *

Add an exchange filter. + */ + public CreateExchangeFilterResponse create(CreateExchangeFilterRequest request) { + return impl.create(request); + } + + public void delete(String id) { + delete(new DeleteExchangeFilterRequest().setId(id)); + } + + /** + * Delete an exchange filter. + * + *

Delete an exchange filter + */ + public void delete(DeleteExchangeFilterRequest request) { + impl.delete(request); + } + + public Iterable list(String exchangeId) { + return list(new ListExchangeFiltersRequest().setExchangeId(exchangeId)); + } + + /** + * List exchange filters. + * + *

List exchange filter + */ + public Iterable list(ListExchangeFiltersRequest request) { + return new Paginator<>( + request, + impl::list, + ListExchangeFiltersResponse::getFilters, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public UpdateExchangeFilterResponse update(String id, ExchangeFilter filter) { + return update(new UpdateExchangeFilterRequest().setId(id).setFilter(filter)); + } + + /** + * Update exchange filter. + * + *

Update an exchange filter. + */ + public UpdateExchangeFilterResponse update(UpdateExchangeFilterRequest request) { + return impl.update(request); + } + + public ProviderExchangeFiltersService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersImpl.java new file mode 100755 index 000000000..19ca56ec5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersImpl.java @@ -0,0 +1,51 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderExchangeFilters */ +@Generated +class ProviderExchangeFiltersImpl implements ProviderExchangeFiltersService { + private final ApiClient apiClient; + + public ProviderExchangeFiltersImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public CreateExchangeFilterResponse create(CreateExchangeFilterRequest request) { + String path = "/api/2.0/marketplace-exchange/filters"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreateExchangeFilterResponse.class, headers); + } + + @Override + public void delete(DeleteExchangeFilterRequest request) { + String path = String.format("/api/2.0/marketplace-exchange/filters/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, DeleteExchangeFilterResponse.class, headers); + } + + @Override + public ListExchangeFiltersResponse list(ListExchangeFiltersRequest request) { + String path = "/api/2.0/marketplace-exchange/filters"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListExchangeFiltersResponse.class, headers); + } + + @Override + public UpdateExchangeFilterResponse update(UpdateExchangeFilterRequest request) { + String path = String.format("/api/2.0/marketplace-exchange/filters/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdateExchangeFilterResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersService.java new file mode 100755 index 000000000..0b554e895 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersService.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Marketplace exchanges filters curate which groups can access an exchange. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderExchangeFiltersService { + /** + * Create a new exchange filter. + * + *

Add an exchange filter. + */ + CreateExchangeFilterResponse create(CreateExchangeFilterRequest createExchangeFilterRequest); + + /** + * Delete an exchange filter. + * + *

Delete an exchange filter + */ + void delete(DeleteExchangeFilterRequest deleteExchangeFilterRequest); + + /** + * List exchange filters. + * + *

List exchange filter + */ + ListExchangeFiltersResponse list(ListExchangeFiltersRequest listExchangeFiltersRequest); + + /** + * Update exchange filter. + * + *

Update an exchange filter. + */ + UpdateExchangeFilterResponse update(UpdateExchangeFilterRequest updateExchangeFilterRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java new file mode 100755 index 000000000..84954c14e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java @@ -0,0 +1,176 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Marketplace exchanges allow providers to share their listings with a curated set of customers. + */ +@Generated +public class ProviderExchangesAPI { + private static final Logger LOG = LoggerFactory.getLogger(ProviderExchangesAPI.class); + + private final ProviderExchangesService impl; + + /** Regular-use constructor */ + public ProviderExchangesAPI(ApiClient apiClient) { + impl = new ProviderExchangesImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderExchangesAPI(ProviderExchangesService mock) { + impl = mock; + } + + public AddExchangeForListingResponse addListingToExchange(String listingId, String exchangeId) { + return addListingToExchange( + new AddExchangeForListingRequest().setListingId(listingId).setExchangeId(exchangeId)); + } + + /** + * Add an exchange for listing. + * + *

Associate an exchange with a listing + */ + public AddExchangeForListingResponse addListingToExchange(AddExchangeForListingRequest request) { + return impl.addListingToExchange(request); + } + + public CreateExchangeResponse create(Exchange exchange) { + return create(new CreateExchangeRequest().setExchange(exchange)); + } + + /** + * Create an exchange. + * + *

Create an exchange + */ + public CreateExchangeResponse create(CreateExchangeRequest request) { + return impl.create(request); + } + + public void delete(String id) { + delete(new DeleteExchangeRequest().setId(id)); + } + + /** + * Delete an exchange. + * + *

This removes a listing from marketplace. + */ + public void delete(DeleteExchangeRequest request) { + impl.delete(request); + } + + public void deleteListingFromExchange(String id) { + deleteListingFromExchange(new RemoveExchangeForListingRequest().setId(id)); + } + + /** + * Remove an exchange for listing. + * + *

Disassociate an exchange with a listing + */ + public void deleteListingFromExchange(RemoveExchangeForListingRequest request) { + impl.deleteListingFromExchange(request); + } + + public GetExchangeResponse get(String id) { + return get(new GetExchangeRequest().setId(id)); + } + + /** + * Get an exchange. + * + *

Get an exchange. + */ + public GetExchangeResponse get(GetExchangeRequest request) { + return impl.get(request); + } + + /** + * List exchanges. + * + *

List exchanges visible to provider + */ + public Iterable list(ListExchangesRequest request) { + return new Paginator<>( + request, + impl::list, + ListExchangesResponse::getExchanges, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public Iterable listExchangesForListing(String listingId) { + return listExchangesForListing(new ListExchangesForListingRequest().setListingId(listingId)); + } + + /** + * List exchanges for listing. + * + *

List exchanges associated with a listing + */ + public Iterable listExchangesForListing(ListExchangesForListingRequest request) { + return new Paginator<>( + request, + impl::listExchangesForListing, + ListExchangesForListingResponse::getExchangeListing, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public Iterable listListingsForExchange(String exchangeId) { + return listListingsForExchange(new ListListingsForExchangeRequest().setExchangeId(exchangeId)); + } + + /** + * List listings for exchange. + * + *

List listings associated with an exchange + */ + public Iterable listListingsForExchange(ListListingsForExchangeRequest request) { + return new Paginator<>( + request, + impl::listListingsForExchange, + ListListingsForExchangeResponse::getExchangeListings, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public UpdateExchangeResponse update(String id, Exchange exchange) { + return update(new UpdateExchangeRequest().setId(id).setExchange(exchange)); + } + + /** + * Update exchange. + * + *

Update an exchange + */ + public UpdateExchangeResponse update(UpdateExchangeRequest request) { + return impl.update(request); + } + + public ProviderExchangesService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesImpl.java new file mode 100755 index 000000000..2c47a19e8 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesImpl.java @@ -0,0 +1,95 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderExchanges */ +@Generated +class ProviderExchangesImpl implements ProviderExchangesService { + private final ApiClient apiClient; + + public ProviderExchangesImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public AddExchangeForListingResponse addListingToExchange(AddExchangeForListingRequest request) { + String path = "/api/2.0/marketplace-exchange/exchanges-for-listing"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, AddExchangeForListingResponse.class, headers); + } + + @Override + public CreateExchangeResponse create(CreateExchangeRequest request) { + String path = "/api/2.0/marketplace-exchange/exchanges"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreateExchangeResponse.class, headers); + } + + @Override + public void delete(DeleteExchangeRequest request) { + String path = String.format("/api/2.0/marketplace-exchange/exchanges/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, DeleteExchangeResponse.class, headers); + } + + @Override + public void deleteListingFromExchange(RemoveExchangeForListingRequest request) { + String path = + String.format("/api/2.0/marketplace-exchange/exchanges-for-listing/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, RemoveExchangeForListingResponse.class, headers); + } + + @Override + public GetExchangeResponse get(GetExchangeRequest request) { + String path = String.format("/api/2.0/marketplace-exchange/exchanges/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetExchangeResponse.class, headers); + } + + @Override + public ListExchangesResponse list(ListExchangesRequest request) { + String path = "/api/2.0/marketplace-exchange/exchanges"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListExchangesResponse.class, headers); + } + + @Override + public ListExchangesForListingResponse listExchangesForListing( + ListExchangesForListingRequest request) { + String path = "/api/2.0/marketplace-exchange/exchanges-for-listing"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListExchangesForListingResponse.class, headers); + } + + @Override + public ListListingsForExchangeResponse listListingsForExchange( + ListListingsForExchangeRequest request) { + String path = "/api/2.0/marketplace-exchange/listings-for-exchange"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListListingsForExchangeResponse.class, headers); + } + + @Override + public UpdateExchangeResponse update(UpdateExchangeRequest request) { + String path = String.format("/api/2.0/marketplace-exchange/exchanges/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdateExchangeResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesService.java new file mode 100755 index 000000000..50b789076 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesService.java @@ -0,0 +1,80 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Marketplace exchanges allow providers to share their listings with a curated set of customers. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderExchangesService { + /** + * Add an exchange for listing. + * + *

Associate an exchange with a listing + */ + AddExchangeForListingResponse addListingToExchange( + AddExchangeForListingRequest addExchangeForListingRequest); + + /** + * Create an exchange. + * + *

Create an exchange + */ + CreateExchangeResponse create(CreateExchangeRequest createExchangeRequest); + + /** + * Delete an exchange. + * + *

This removes a listing from marketplace. + */ + void delete(DeleteExchangeRequest deleteExchangeRequest); + + /** + * Remove an exchange for listing. + * + *

Disassociate an exchange with a listing + */ + void deleteListingFromExchange(RemoveExchangeForListingRequest removeExchangeForListingRequest); + + /** + * Get an exchange. + * + *

Get an exchange. + */ + GetExchangeResponse get(GetExchangeRequest getExchangeRequest); + + /** + * List exchanges. + * + *

List exchanges visible to provider + */ + ListExchangesResponse list(ListExchangesRequest listExchangesRequest); + + /** + * List exchanges for listing. + * + *

List exchanges associated with a listing + */ + ListExchangesForListingResponse listExchangesForListing( + ListExchangesForListingRequest listExchangesForListingRequest); + + /** + * List listings for exchange. + * + *

List listings associated with an exchange + */ + ListListingsForExchangeResponse listListingsForExchange( + ListListingsForExchangeRequest listListingsForExchangeRequest); + + /** + * Update exchange. + * + *

Update an exchange + */ + UpdateExchangeResponse update(UpdateExchangeRequest updateExchangeRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java new file mode 100755 index 000000000..cf27c77ec --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java @@ -0,0 +1,100 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider + * icons. + */ +@Generated +public class ProviderFilesAPI { + private static final Logger LOG = LoggerFactory.getLogger(ProviderFilesAPI.class); + + private final ProviderFilesService impl; + + /** Regular-use constructor */ + public ProviderFilesAPI(ApiClient apiClient) { + impl = new ProviderFilesImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderFilesAPI(ProviderFilesService mock) { + impl = mock; + } + + public CreateFileResponse create( + FileParent fileParent, MarketplaceFileType marketplaceFileType, String mimeType) { + return create( + new CreateFileRequest() + .setFileParent(fileParent) + .setMarketplaceFileType(marketplaceFileType) + .setMimeType(mimeType)); + } + + /** + * Create a file. + * + *

Create a file. Currently, only provider icons and attached notebooks are supported. + */ + public CreateFileResponse create(CreateFileRequest request) { + return impl.create(request); + } + + public void delete(String fileId) { + delete(new DeleteFileRequest().setFileId(fileId)); + } + + /** + * Delete a file. + * + *

Delete a file + */ + public void delete(DeleteFileRequest request) { + impl.delete(request); + } + + public GetFileResponse get(String fileId) { + return get(new GetFileRequest().setFileId(fileId)); + } + + /** + * Get a file. + * + *

Get a file + */ + public GetFileResponse get(GetFileRequest request) { + return impl.get(request); + } + + public Iterable list(FileParent fileParent) { + return list(new ListFilesRequest().setFileParent(fileParent)); + } + + /** + * List files. + * + *

List files attached to a parent entity. + */ + public Iterable list(ListFilesRequest request) { + return new Paginator<>( + request, + impl::list, + ListFilesResponse::getFileInfos, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public ProviderFilesService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesImpl.java new file mode 100755 index 000000000..df582e455 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesImpl.java @@ -0,0 +1,50 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderFiles */ +@Generated +class ProviderFilesImpl implements ProviderFilesService { + private final ApiClient apiClient; + + public ProviderFilesImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public CreateFileResponse create(CreateFileRequest request) { + String path = "/api/2.0/marketplace-provider/files"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreateFileResponse.class, headers); + } + + @Override + public void delete(DeleteFileRequest request) { + String path = String.format("/api/2.0/marketplace-provider/files/%s", request.getFileId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, DeleteFileResponse.class, headers); + } + + @Override + public GetFileResponse get(GetFileRequest request) { + String path = String.format("/api/2.0/marketplace-provider/files/%s", request.getFileId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetFileResponse.class, headers); + } + + @Override + public ListFilesResponse list(ListFilesRequest request) { + String path = "/api/2.0/marketplace-provider/files"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListFilesResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesService.java new file mode 100755 index 000000000..79d307ec2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesService.java @@ -0,0 +1,43 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider + * icons. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderFilesService { + /** + * Create a file. + * + *

Create a file. Currently, only provider icons and attached notebooks are supported. + */ + CreateFileResponse create(CreateFileRequest createFileRequest); + + /** + * Delete a file. + * + *

Delete a file + */ + void delete(DeleteFileRequest deleteFileRequest); + + /** + * Get a file. + * + *

Get a file + */ + GetFileResponse get(GetFileRequest getFileRequest); + + /** + * List files. + * + *

List files attached to a parent entity. + */ + ListFilesResponse list(ListFilesRequest listFilesRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderInfo.java new file mode 100755 index 000000000..4db7dd65e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderInfo.java @@ -0,0 +1,253 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ProviderInfo { + /** */ + @JsonProperty("business_contact_email") + private String businessContactEmail; + + /** */ + @JsonProperty("company_website_link") + private String companyWebsiteLink; + + /** */ + @JsonProperty("dark_mode_icon_file_id") + private String darkModeIconFileId; + + /** */ + @JsonProperty("dark_mode_icon_file_path") + private String darkModeIconFilePath; + + /** */ + @JsonProperty("description") + private String description; + + /** */ + @JsonProperty("icon_file_id") + private String iconFileId; + + /** */ + @JsonProperty("icon_file_path") + private String iconFilePath; + + /** */ + @JsonProperty("id") + private String id; + + /** is_featured is accessible by consumers only */ + @JsonProperty("is_featured") + private Boolean isFeatured; + + /** */ + @JsonProperty("name") + private String name; + + /** */ + @JsonProperty("privacy_policy_link") + private String privacyPolicyLink; + + /** published_by is only applicable to data aggregators (e.g. Crux) */ + @JsonProperty("published_by") + private String publishedBy; + + /** */ + @JsonProperty("support_contact_email") + private String supportContactEmail; + + /** */ + @JsonProperty("term_of_service_link") + private String termOfServiceLink; + + public ProviderInfo setBusinessContactEmail(String businessContactEmail) { + this.businessContactEmail = businessContactEmail; + return this; + } + + public String getBusinessContactEmail() { + return businessContactEmail; + } + + public ProviderInfo setCompanyWebsiteLink(String companyWebsiteLink) { + this.companyWebsiteLink = companyWebsiteLink; + return this; + } + + public String getCompanyWebsiteLink() { + return companyWebsiteLink; + } + + public ProviderInfo setDarkModeIconFileId(String darkModeIconFileId) { + this.darkModeIconFileId = darkModeIconFileId; + return this; + } + + public String getDarkModeIconFileId() { + return darkModeIconFileId; + } + + public ProviderInfo setDarkModeIconFilePath(String darkModeIconFilePath) { + this.darkModeIconFilePath = darkModeIconFilePath; + return this; + } + + public String getDarkModeIconFilePath() { + return darkModeIconFilePath; + } + + public ProviderInfo setDescription(String description) { + this.description = description; + return this; + } + + public String getDescription() { + return description; + } + + public ProviderInfo setIconFileId(String iconFileId) { + this.iconFileId = iconFileId; + return this; + } + + public String getIconFileId() { + return iconFileId; + } + + public ProviderInfo setIconFilePath(String iconFilePath) { + this.iconFilePath = iconFilePath; + return this; + } + + public String getIconFilePath() { + return iconFilePath; + } + + public ProviderInfo setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public ProviderInfo setIsFeatured(Boolean isFeatured) { + this.isFeatured = isFeatured; + return this; + } + + public Boolean getIsFeatured() { + return isFeatured; + } + + public ProviderInfo setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public ProviderInfo setPrivacyPolicyLink(String privacyPolicyLink) { + this.privacyPolicyLink = privacyPolicyLink; + return this; + } + + public String getPrivacyPolicyLink() { + return privacyPolicyLink; + } + + public ProviderInfo setPublishedBy(String publishedBy) { + this.publishedBy = publishedBy; + return this; + } + + public String getPublishedBy() { + return publishedBy; + } + + public ProviderInfo setSupportContactEmail(String supportContactEmail) { + this.supportContactEmail = supportContactEmail; + return this; + } + + public String getSupportContactEmail() { + return supportContactEmail; + } + + public ProviderInfo setTermOfServiceLink(String termOfServiceLink) { + this.termOfServiceLink = termOfServiceLink; + return this; + } + + public String getTermOfServiceLink() { + return termOfServiceLink; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ProviderInfo that = (ProviderInfo) o; + return Objects.equals(businessContactEmail, that.businessContactEmail) + && Objects.equals(companyWebsiteLink, that.companyWebsiteLink) + && Objects.equals(darkModeIconFileId, that.darkModeIconFileId) + && Objects.equals(darkModeIconFilePath, that.darkModeIconFilePath) + && Objects.equals(description, that.description) + && Objects.equals(iconFileId, that.iconFileId) + && Objects.equals(iconFilePath, that.iconFilePath) + && Objects.equals(id, that.id) + && Objects.equals(isFeatured, that.isFeatured) + && Objects.equals(name, that.name) + && Objects.equals(privacyPolicyLink, that.privacyPolicyLink) + && Objects.equals(publishedBy, that.publishedBy) + && Objects.equals(supportContactEmail, that.supportContactEmail) + && Objects.equals(termOfServiceLink, that.termOfServiceLink); + } + + @Override + public int hashCode() { + return Objects.hash( + businessContactEmail, + companyWebsiteLink, + darkModeIconFileId, + darkModeIconFilePath, + description, + iconFileId, + iconFilePath, + id, + isFeatured, + name, + privacyPolicyLink, + publishedBy, + supportContactEmail, + termOfServiceLink); + } + + @Override + public String toString() { + return new ToStringer(ProviderInfo.class) + .add("businessContactEmail", businessContactEmail) + .add("companyWebsiteLink", companyWebsiteLink) + .add("darkModeIconFileId", darkModeIconFileId) + .add("darkModeIconFilePath", darkModeIconFilePath) + .add("description", description) + .add("iconFileId", iconFileId) + .add("iconFilePath", iconFilePath) + .add("id", id) + .add("isFeatured", isFeatured) + .add("name", name) + .add("privacyPolicyLink", privacyPolicyLink) + .add("publishedBy", publishedBy) + .add("supportContactEmail", supportContactEmail) + .add("termOfServiceLink", termOfServiceLink) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java new file mode 100755 index 000000000..936d78d47 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java @@ -0,0 +1,104 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Listings are the core entities in the Marketplace. They represent the products that are available + * for consumption. + */ +@Generated +public class ProviderListingsAPI { + private static final Logger LOG = LoggerFactory.getLogger(ProviderListingsAPI.class); + + private final ProviderListingsService impl; + + /** Regular-use constructor */ + public ProviderListingsAPI(ApiClient apiClient) { + impl = new ProviderListingsImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderListingsAPI(ProviderListingsService mock) { + impl = mock; + } + + public CreateListingResponse create(Listing listing) { + return create(new CreateListingRequest().setListing(listing)); + } + + /** + * Create a listing. + * + *

Create a new listing + */ + public CreateListingResponse create(CreateListingRequest request) { + return impl.create(request); + } + + public void delete(String id) { + delete(new DeleteListingRequest().setId(id)); + } + + /** + * Delete a listing. + * + *

Delete a listing + */ + public void delete(DeleteListingRequest request) { + impl.delete(request); + } + + public GetListingResponse get(String id) { + return get(new GetListingRequest().setId(id)); + } + + /** + * Get a listing. + * + *

Get a listing + */ + public GetListingResponse get(GetListingRequest request) { + return impl.get(request); + } + + /** + * List listings. + * + *

List listings owned by this provider + */ + public Iterable

list(GetListingsRequest request) { + return new Paginator<>( + request, + impl::list, + GetListingsResponse::getListings, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public UpdateListingResponse update(String id, Listing listing) { + return update(new UpdateListingRequest().setId(id).setListing(listing)); + } + + /** + * Update listing. + * + *

Update a listing + */ + public UpdateListingResponse update(UpdateListingRequest request) { + return impl.update(request); + } + + public ProviderListingsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsImpl.java new file mode 100755 index 000000000..ba119793a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsImpl.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderListings */ +@Generated +class ProviderListingsImpl implements ProviderListingsService { + private final ApiClient apiClient; + + public ProviderListingsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public CreateListingResponse create(CreateListingRequest request) { + String path = "/api/2.0/marketplace-provider/listing"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreateListingResponse.class, headers); + } + + @Override + public void delete(DeleteListingRequest request) { + String path = String.format("/api/2.0/marketplace-provider/listings/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, DeleteListingResponse.class, headers); + } + + @Override + public GetListingResponse get(GetListingRequest request) { + String path = String.format("/api/2.0/marketplace-provider/listings/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetListingResponse.class, headers); + } + + @Override + public GetListingsResponse list(GetListingsRequest request) { + String path = "/api/2.0/marketplace-provider/listings"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetListingsResponse.class, headers); + } + + @Override + public UpdateListingResponse update(UpdateListingRequest request) { + String path = String.format("/api/2.0/marketplace-provider/listings/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdateListingResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsService.java new file mode 100755 index 000000000..20d8792aa --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsService.java @@ -0,0 +1,50 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Listings are the core entities in the Marketplace. They represent the products that are available + * for consumption. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderListingsService { + /** + * Create a listing. + * + *

Create a new listing + */ + CreateListingResponse create(CreateListingRequest createListingRequest); + + /** + * Delete a listing. + * + *

Delete a listing + */ + void delete(DeleteListingRequest deleteListingRequest); + + /** + * Get a listing. + * + *

Get a listing + */ + GetListingResponse get(GetListingRequest getListingRequest); + + /** + * List listings. + * + *

List listings owned by this provider + */ + GetListingsResponse list(GetListingsRequest getListingsRequest); + + /** + * Update listing. + * + *

Update a listing + */ + UpdateListingResponse update(UpdateListingRequest updateListingRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java new file mode 100755 index 000000000..d4553b717 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java @@ -0,0 +1,72 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Personalization requests are an alternate to instantly available listings. Control the lifecycle + * of personalized solutions. + */ +@Generated +public class ProviderPersonalizationRequestsAPI { + private static final Logger LOG = + LoggerFactory.getLogger(ProviderPersonalizationRequestsAPI.class); + + private final ProviderPersonalizationRequestsService impl; + + /** Regular-use constructor */ + public ProviderPersonalizationRequestsAPI(ApiClient apiClient) { + impl = new ProviderPersonalizationRequestsImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderPersonalizationRequestsAPI(ProviderPersonalizationRequestsService mock) { + impl = mock; + } + + /** + * All personalization requests across all listings. + * + *

List personalization requests to this provider. This will return all personalization + * requests, regardless of which listing they are for. + */ + public Iterable list(ListAllPersonalizationRequestsRequest request) { + return new Paginator<>( + request, + impl::list, + ListAllPersonalizationRequestsResponse::getPersonalizationRequests, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public UpdatePersonalizationRequestResponse update( + String listingId, String requestId, PersonalizationRequestStatus status) { + return update( + new UpdatePersonalizationRequestRequest() + .setListingId(listingId) + .setRequestId(requestId) + .setStatus(status)); + } + + /** + * Update personalization request status. + * + *

Update personalization request. This method only permits updating the status of the request. + */ + public UpdatePersonalizationRequestResponse update(UpdatePersonalizationRequestRequest request) { + return impl.update(request); + } + + public ProviderPersonalizationRequestsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsImpl.java new file mode 100755 index 000000000..ba791c43d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsImpl.java @@ -0,0 +1,38 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderPersonalizationRequests */ +@Generated +class ProviderPersonalizationRequestsImpl implements ProviderPersonalizationRequestsService { + private final ApiClient apiClient; + + public ProviderPersonalizationRequestsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public ListAllPersonalizationRequestsResponse list( + ListAllPersonalizationRequestsRequest request) { + String path = "/api/2.0/marketplace-provider/personalization-requests"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListAllPersonalizationRequestsResponse.class, headers); + } + + @Override + public UpdatePersonalizationRequestResponse update(UpdatePersonalizationRequestRequest request) { + String path = + String.format( + "/api/2.0/marketplace-provider/listings/%s/personalization-requests/%s/request-status", + request.getListingId(), request.getRequestId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdatePersonalizationRequestResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsService.java new file mode 100755 index 000000000..c6fdc7a44 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsService.java @@ -0,0 +1,32 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Personalization requests are an alternate to instantly available listings. Control the lifecycle + * of personalized solutions. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderPersonalizationRequestsService { + /** + * All personalization requests across all listings. + * + *

List personalization requests to this provider. This will return all personalization + * requests, regardless of which listing they are for. + */ + ListAllPersonalizationRequestsResponse list( + ListAllPersonalizationRequestsRequest listAllPersonalizationRequestsRequest); + + /** + * Update personalization request status. + * + *

Update personalization request. This method only permits updating the status of the request. + */ + UpdatePersonalizationRequestResponse update( + UpdatePersonalizationRequestRequest updatePersonalizationRequestRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsAPI.java new file mode 100755 index 000000000..52a5c05b9 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsAPI.java @@ -0,0 +1,72 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** Manage templated analytics solution for providers. */ +@Generated +public class ProviderProviderAnalyticsDashboardsAPI { + private static final Logger LOG = + LoggerFactory.getLogger(ProviderProviderAnalyticsDashboardsAPI.class); + + private final ProviderProviderAnalyticsDashboardsService impl; + + /** Regular-use constructor */ + public ProviderProviderAnalyticsDashboardsAPI(ApiClient apiClient) { + impl = new ProviderProviderAnalyticsDashboardsImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderProviderAnalyticsDashboardsAPI(ProviderProviderAnalyticsDashboardsService mock) { + impl = mock; + } + + /** + * Create provider analytics dashboard. + * + *

Create provider analytics dashboard. Returns Marketplace specific `id`. Not to be confused + * with the Lakeview dashboard id. + */ + public ProviderAnalyticsDashboard create() { + return impl.create(); + } + + /** + * Get provider analytics dashboard. + * + *

Get provider analytics dashboard. + */ + public ListProviderAnalyticsDashboardResponse get() { + return impl.get(); + } + + /** + * Get latest version of provider analytics dashboard. + * + *

Get latest version of provider analytics dashboard. + */ + public GetLatestVersionProviderAnalyticsDashboardResponse getLatestVersion() { + return impl.getLatestVersion(); + } + + public UpdateProviderAnalyticsDashboardResponse update(String id) { + return update(new UpdateProviderAnalyticsDashboardRequest().setId(id)); + } + + /** + * Update provider analytics dashboard. + * + *

Update provider analytics dashboard. + */ + public UpdateProviderAnalyticsDashboardResponse update( + UpdateProviderAnalyticsDashboardRequest request) { + return impl.update(request); + } + + public ProviderProviderAnalyticsDashboardsService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsImpl.java new file mode 100755 index 000000000..c0f1473b7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsImpl.java @@ -0,0 +1,53 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderProviderAnalyticsDashboards */ +@Generated +class ProviderProviderAnalyticsDashboardsImpl + implements ProviderProviderAnalyticsDashboardsService { + private final ApiClient apiClient; + + public ProviderProviderAnalyticsDashboardsImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public ProviderAnalyticsDashboard create() { + String path = "/api/2.0/marketplace-provider/analytics_dashboard"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.POST(path, ProviderAnalyticsDashboard.class, headers); + } + + @Override + public ListProviderAnalyticsDashboardResponse get() { + String path = "/api/2.0/marketplace-provider/analytics_dashboard"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, ListProviderAnalyticsDashboardResponse.class, headers); + } + + @Override + public GetLatestVersionProviderAnalyticsDashboardResponse getLatestVersion() { + String path = "/api/2.0/marketplace-provider/analytics_dashboard/latest"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, GetLatestVersionProviderAnalyticsDashboardResponse.class, headers); + } + + @Override + public UpdateProviderAnalyticsDashboardResponse update( + UpdateProviderAnalyticsDashboardRequest request) { + String path = + String.format("/api/2.0/marketplace-provider/analytics_dashboard/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdateProviderAnalyticsDashboardResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsService.java new file mode 100755 index 000000000..5b1d0a9ef --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProviderAnalyticsDashboardsService.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Manage templated analytics solution for providers. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderProviderAnalyticsDashboardsService { + /** + * Create provider analytics dashboard. + * + *

Create provider analytics dashboard. Returns Marketplace specific `id`. Not to be confused + * with the Lakeview dashboard id. + */ + ProviderAnalyticsDashboard create(); + + /** + * Get provider analytics dashboard. + * + *

Get provider analytics dashboard. + */ + ListProviderAnalyticsDashboardResponse get(); + + /** + * Get latest version of provider analytics dashboard. + * + *

Get latest version of provider analytics dashboard. + */ + GetLatestVersionProviderAnalyticsDashboardResponse getLatestVersion(); + + /** + * Update provider analytics dashboard. + * + *

Update provider analytics dashboard. + */ + UpdateProviderAnalyticsDashboardResponse update( + UpdateProviderAnalyticsDashboardRequest updateProviderAnalyticsDashboardRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java new file mode 100755 index 000000000..a76c6c3b9 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java @@ -0,0 +1,101 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** Providers are entities that manage assets in Marketplace. */ +@Generated +public class ProviderProvidersAPI { + private static final Logger LOG = LoggerFactory.getLogger(ProviderProvidersAPI.class); + + private final ProviderProvidersService impl; + + /** Regular-use constructor */ + public ProviderProvidersAPI(ApiClient apiClient) { + impl = new ProviderProvidersImpl(apiClient); + } + + /** Constructor for mocks */ + public ProviderProvidersAPI(ProviderProvidersService mock) { + impl = mock; + } + + public CreateProviderResponse create(ProviderInfo provider) { + return create(new CreateProviderRequest().setProvider(provider)); + } + + /** + * Create a provider. + * + *

Create a provider + */ + public CreateProviderResponse create(CreateProviderRequest request) { + return impl.create(request); + } + + public void delete(String id) { + delete(new DeleteProviderRequest().setId(id)); + } + + /** + * Delete provider. + * + *

Delete provider + */ + public void delete(DeleteProviderRequest request) { + impl.delete(request); + } + + public GetProviderResponse get(String id) { + return get(new GetProviderRequest().setId(id)); + } + + /** + * Get provider. + * + *

Get provider profile + */ + public GetProviderResponse get(GetProviderRequest request) { + return impl.get(request); + } + + /** + * List providers. + * + *

List provider profiles for account. + */ + public Iterable list(ListProvidersRequest request) { + return new Paginator<>( + request, + impl::list, + ListProvidersResponse::getProviders, + response -> { + String token = response.getNextPageToken(); + if (token == null) { + return null; + } + return request.setPageToken(token); + }); + } + + public UpdateProviderResponse update(String id, ProviderInfo provider) { + return update(new UpdateProviderRequest().setId(id).setProvider(provider)); + } + + /** + * Update provider. + * + *

Update provider profile + */ + public UpdateProviderResponse update(UpdateProviderRequest request) { + return impl.update(request); + } + + public ProviderProvidersService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersImpl.java new file mode 100755 index 000000000..d25b538bc --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersImpl.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.support.Generated; +import java.util.HashMap; +import java.util.Map; + +/** Package-local implementation of ProviderProviders */ +@Generated +class ProviderProvidersImpl implements ProviderProvidersService { + private final ApiClient apiClient; + + public ProviderProvidersImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public CreateProviderResponse create(CreateProviderRequest request) { + String path = "/api/2.0/marketplace-provider/provider"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.POST(path, request, CreateProviderResponse.class, headers); + } + + @Override + public void delete(DeleteProviderRequest request) { + String path = String.format("/api/2.0/marketplace-provider/providers/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + apiClient.DELETE(path, request, DeleteProviderResponse.class, headers); + } + + @Override + public GetProviderResponse get(GetProviderRequest request) { + String path = String.format("/api/2.0/marketplace-provider/providers/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, GetProviderResponse.class, headers); + } + + @Override + public ListProvidersResponse list(ListProvidersRequest request) { + String path = "/api/2.0/marketplace-provider/providers"; + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + return apiClient.GET(path, request, ListProvidersResponse.class, headers); + } + + @Override + public UpdateProviderResponse update(UpdateProviderRequest request) { + String path = String.format("/api/2.0/marketplace-provider/providers/%s", request.getId()); + Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); + headers.put("Content-Type", "application/json"); + return apiClient.PUT(path, request, UpdateProviderResponse.class, headers); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersService.java new file mode 100755 index 000000000..584ca51cf --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersService.java @@ -0,0 +1,49 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +/** + * Providers are entities that manage assets in Marketplace. + * + *

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

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface ProviderProvidersService { + /** + * Create a provider. + * + *

Create a provider + */ + CreateProviderResponse create(CreateProviderRequest createProviderRequest); + + /** + * Delete provider. + * + *

Delete provider + */ + void delete(DeleteProviderRequest deleteProviderRequest); + + /** + * Get provider. + * + *

Get provider profile + */ + GetProviderResponse get(GetProviderRequest getProviderRequest); + + /** + * List providers. + * + *

List provider profiles for account. + */ + ListProvidersResponse list(ListProvidersRequest listProvidersRequest); + + /** + * Update provider. + * + *

Update provider profile + */ + UpdateProviderResponse update(UpdateProviderRequest updateProviderRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RegionInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RegionInfo.java new file mode 100755 index 000000000..4e7cecaca --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RegionInfo.java @@ -0,0 +1,55 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 RegionInfo { + /** */ + @JsonProperty("cloud") + private String cloud; + + /** */ + @JsonProperty("region") + private String region; + + public RegionInfo setCloud(String cloud) { + this.cloud = cloud; + return this; + } + + public String getCloud() { + return cloud; + } + + public RegionInfo setRegion(String region) { + this.region = region; + return this; + } + + public String getRegion() { + return region; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + RegionInfo that = (RegionInfo) o; + return Objects.equals(cloud, that.cloud) && Objects.equals(region, that.region); + } + + @Override + public int hashCode() { + return Objects.hash(cloud, region); + } + + @Override + public String toString() { + return new ToStringer(RegionInfo.class).add("cloud", cloud).add("region", region).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingRequest.java new file mode 100755 index 000000000..89fd8a178 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingRequest.java @@ -0,0 +1,41 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +/** Remove an exchange for listing */ +@Generated +public class RemoveExchangeForListingRequest { + /** */ + private String id; + + public RemoveExchangeForListingRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + RemoveExchangeForListingRequest that = (RemoveExchangeForListingRequest) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return new ToStringer(RemoveExchangeForListingRequest.class).add("id", id).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingResponse.java new file mode 100755 index 000000000..02a6e7364 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RemoveExchangeForListingResponse.java @@ -0,0 +1,28 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import java.util.Objects; + +@Generated +public class RemoveExchangeForListingResponse { + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + return new ToStringer(RemoveExchangeForListingResponse.class).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInfo.java new file mode 100755 index 000000000..988491334 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInfo.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 RepoInfo { + /** the git repo url e.g. https://github.com/databrickslabs/dolly.git */ + @JsonProperty("git_repo_url") + private String gitRepoUrl; + + public RepoInfo setGitRepoUrl(String gitRepoUrl) { + this.gitRepoUrl = gitRepoUrl; + return this; + } + + public String getGitRepoUrl() { + return gitRepoUrl; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + RepoInfo that = (RepoInfo) o; + return Objects.equals(gitRepoUrl, that.gitRepoUrl); + } + + @Override + public int hashCode() { + return Objects.hash(gitRepoUrl); + } + + @Override + public String toString() { + return new ToStringer(RepoInfo.class).add("gitRepoUrl", gitRepoUrl).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInstallation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInstallation.java new file mode 100755 index 000000000..33a4ad683 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/RepoInstallation.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 RepoInstallation { + /** the user-specified repo name for their installed git repo listing */ + @JsonProperty("repo_name") + private String repoName; + + /** + * refers to the full url file path that navigates the user to the repo's entrypoint (e.g. a + * README.md file, or the repo file view in the unified UI) should just be a relative path + */ + @JsonProperty("repo_path") + private String repoPath; + + public RepoInstallation setRepoName(String repoName) { + this.repoName = repoName; + return this; + } + + public String getRepoName() { + return repoName; + } + + public RepoInstallation setRepoPath(String repoPath) { + this.repoPath = repoPath; + return this; + } + + public String getRepoPath() { + return repoPath; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + RepoInstallation that = (RepoInstallation) o; + return Objects.equals(repoName, that.repoName) && Objects.equals(repoPath, that.repoPath); + } + + @Override + public int hashCode() { + return Objects.hash(repoName, repoPath); + } + + @Override + public String toString() { + return new ToStringer(RepoInstallation.class) + .add("repoName", repoName) + .add("repoPath", repoPath) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsRequest.java new file mode 100755 index 000000000..1ee056b2e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsRequest.java @@ -0,0 +1,175 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import java.util.Collection; +import java.util.Objects; + +/** Search listings */ +@Generated +public class SearchListingsRequest { + /** Matches any of the following asset types */ + @QueryParam("assets") + private Collection assets; + + /** Matches any of the following categories */ + @QueryParam("categories") + private Collection categories; + + /** */ + @QueryParam("is_free") + private Boolean isFree; + + /** */ + @QueryParam("is_private_exchange") + private Boolean isPrivateExchange; + + /** */ + @QueryParam("page_size") + private Long pageSize; + + /** */ + @QueryParam("page_token") + private String pageToken; + + /** Matches any of the following provider ids */ + @QueryParam("provider_ids") + private Collection providerIds; + + /** Fuzzy matches query */ + @QueryParam("query") + private String query; + + /** */ + @QueryParam("sort_by") + private SortBy sortBy; + + public SearchListingsRequest setAssets(Collection assets) { + this.assets = assets; + return this; + } + + public Collection getAssets() { + return assets; + } + + public SearchListingsRequest setCategories(Collection categories) { + this.categories = categories; + return this; + } + + public Collection getCategories() { + return categories; + } + + public SearchListingsRequest setIsFree(Boolean isFree) { + this.isFree = isFree; + return this; + } + + public Boolean getIsFree() { + return isFree; + } + + public SearchListingsRequest setIsPrivateExchange(Boolean isPrivateExchange) { + this.isPrivateExchange = isPrivateExchange; + return this; + } + + public Boolean getIsPrivateExchange() { + return isPrivateExchange; + } + + public SearchListingsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public SearchListingsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + public SearchListingsRequest setProviderIds(Collection providerIds) { + this.providerIds = providerIds; + return this; + } + + public Collection getProviderIds() { + return providerIds; + } + + public SearchListingsRequest setQuery(String query) { + this.query = query; + return this; + } + + public String getQuery() { + return query; + } + + public SearchListingsRequest setSortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + public SortBy getSortBy() { + return sortBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SearchListingsRequest that = (SearchListingsRequest) o; + return Objects.equals(assets, that.assets) + && Objects.equals(categories, that.categories) + && Objects.equals(isFree, that.isFree) + && Objects.equals(isPrivateExchange, that.isPrivateExchange) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken) + && Objects.equals(providerIds, that.providerIds) + && Objects.equals(query, that.query) + && Objects.equals(sortBy, that.sortBy); + } + + @Override + public int hashCode() { + return Objects.hash( + assets, + categories, + isFree, + isPrivateExchange, + pageSize, + pageToken, + providerIds, + query, + sortBy); + } + + @Override + public String toString() { + return new ToStringer(SearchListingsRequest.class) + .add("assets", assets) + .add("categories", categories) + .add("isFree", isFree) + .add("isPrivateExchange", isPrivateExchange) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .add("providerIds", providerIds) + .add("query", query) + .add("sortBy", sortBy) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsResponse.java new file mode 100755 index 000000000..d0c714e34 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SearchListingsResponse.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Collection; +import java.util.Objects; + +@Generated +public class SearchListingsResponse { + /** */ + @JsonProperty("listings") + private Collection

listings; + + /** */ + @JsonProperty("next_page_token") + private String nextPageToken; + + public SearchListingsResponse setListings(Collection listings) { + this.listings = listings; + return this; + } + + public Collection getListings() { + return listings; + } + + public SearchListingsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SearchListingsResponse that = (SearchListingsResponse) o; + return Objects.equals(listings, that.listings) + && Objects.equals(nextPageToken, that.nextPageToken); + } + + @Override + public int hashCode() { + return Objects.hash(listings, nextPageToken); + } + + @Override + public String toString() { + return new ToStringer(SearchListingsResponse.class) + .add("listings", listings) + .add("nextPageToken", nextPageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ShareInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ShareInfo.java new file mode 100755 index 000000000..5b656447a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ShareInfo.java @@ -0,0 +1,55 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 ShareInfo { + /** */ + @JsonProperty("name") + private String name; + + /** */ + @JsonProperty("type") + private ListingShareType typeValue; + + public ShareInfo setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public ShareInfo setType(ListingShareType typeValue) { + this.typeValue = typeValue; + return this; + } + + public ListingShareType getType() { + return typeValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ShareInfo that = (ShareInfo) o; + return Objects.equals(name, that.name) && Objects.equals(typeValue, that.typeValue); + } + + @Override + public int hashCode() { + return Objects.hash(name, typeValue); + } + + @Override + public String toString() { + return new ToStringer(ShareInfo.class).add("name", name).add("typeValue", typeValue).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SharedDataObject.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SharedDataObject.java new file mode 100755 index 000000000..6cedfa277 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SharedDataObject.java @@ -0,0 +1,58 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 SharedDataObject { + /** The type of the data object. Could be one of: TABLE, SCHEMA, NOTEBOOK_FILE, MODEL, VOLUME */ + @JsonProperty("data_object_type") + private String dataObjectType; + + /** Name of the shared object */ + @JsonProperty("name") + private String name; + + public SharedDataObject setDataObjectType(String dataObjectType) { + this.dataObjectType = dataObjectType; + return this; + } + + public String getDataObjectType() { + return dataObjectType; + } + + public SharedDataObject setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SharedDataObject that = (SharedDataObject) o; + return Objects.equals(dataObjectType, that.dataObjectType) && Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(dataObjectType, name); + } + + @Override + public String toString() { + return new ToStringer(SharedDataObject.class) + .add("dataObjectType", dataObjectType) + .add("name", name) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBy.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBy.java new file mode 100755 index 000000000..19f0c0e63 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBy.java @@ -0,0 +1,13 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum SortBy { + SORT_BY_DATE, + SORT_BY_RELEVANCE, + SORT_BY_TITLE, + SORT_BY_UNSPECIFIED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBySpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBySpec.java new file mode 100755 index 000000000..84f0fb28a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortBySpec.java @@ -0,0 +1,61 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.QueryParam; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class SortBySpec { + /** The field on which to sort the listing. */ + @JsonProperty("sort_by") + @QueryParam("sort_by") + private SortBy sortBy; + + /** The order in which to sort the listing. */ + @JsonProperty("sort_order") + @QueryParam("sort_order") + private SortOrder sortOrder; + + public SortBySpec setSortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + public SortBy getSortBy() { + return sortBy; + } + + public SortBySpec setSortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + public SortOrder getSortOrder() { + return sortOrder; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SortBySpec that = (SortBySpec) o; + return Objects.equals(sortBy, that.sortBy) && Objects.equals(sortOrder, that.sortOrder); + } + + @Override + public int hashCode() { + return Objects.hash(sortBy, sortOrder); + } + + @Override + public String toString() { + return new ToStringer(SortBySpec.class) + .add("sortBy", sortBy) + .add("sortOrder", sortOrder) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortOrder.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortOrder.java new file mode 100755 index 000000000..23394ee56 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/SortOrder.java @@ -0,0 +1,12 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum SortOrder { + SORT_ORDER_ASCENDING, + SORT_ORDER_DESCENDING, + SORT_ORDER_UNSPECIFIED, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenDetail.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenDetail.java new file mode 100755 index 000000000..646ef5e65 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenDetail.java @@ -0,0 +1,92 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 TokenDetail { + /** */ + @JsonProperty("bearerToken") + private String bearerToken; + + /** */ + @JsonProperty("endpoint") + private String endpoint; + + /** */ + @JsonProperty("expirationTime") + private String expirationTime; + + /** + * These field names must follow the delta sharing protocol. Original message: + * RetrieveToken.Response in managed-catalog/api/messages/recipient.proto + */ + @JsonProperty("shareCredentialsVersion") + private Long shareCredentialsVersion; + + public TokenDetail setBearerToken(String bearerToken) { + this.bearerToken = bearerToken; + return this; + } + + public String getBearerToken() { + return bearerToken; + } + + public TokenDetail setEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + public String getEndpoint() { + return endpoint; + } + + public TokenDetail setExpirationTime(String expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + public String getExpirationTime() { + return expirationTime; + } + + public TokenDetail setShareCredentialsVersion(Long shareCredentialsVersion) { + this.shareCredentialsVersion = shareCredentialsVersion; + return this; + } + + public Long getShareCredentialsVersion() { + return shareCredentialsVersion; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + TokenDetail that = (TokenDetail) o; + return Objects.equals(bearerToken, that.bearerToken) + && Objects.equals(endpoint, that.endpoint) + && Objects.equals(expirationTime, that.expirationTime) + && Objects.equals(shareCredentialsVersion, that.shareCredentialsVersion); + } + + @Override + public int hashCode() { + return Objects.hash(bearerToken, endpoint, expirationTime, shareCredentialsVersion); + } + + @Override + public String toString() { + return new ToStringer(TokenDetail.class) + .add("bearerToken", bearerToken) + .add("endpoint", endpoint) + .add("expirationTime", expirationTime) + .add("shareCredentialsVersion", shareCredentialsVersion) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenInfo.java new file mode 100755 index 000000000..42143c446 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/TokenInfo.java @@ -0,0 +1,138 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 TokenInfo { + /** + * Full activation url to retrieve the access token. It will be empty if the token is already + * retrieved. + */ + @JsonProperty("activation_url") + private String activationUrl; + + /** Time at which this Recipient Token was created, in epoch milliseconds. */ + @JsonProperty("created_at") + private Long createdAt; + + /** Username of Recipient Token creator. */ + @JsonProperty("created_by") + private String createdBy; + + /** Expiration timestamp of the token in epoch milliseconds. */ + @JsonProperty("expiration_time") + private Long expirationTime; + + /** Unique id of the Recipient Token. */ + @JsonProperty("id") + private String id; + + /** Time at which this Recipient Token was updated, in epoch milliseconds. */ + @JsonProperty("updated_at") + private Long updatedAt; + + /** Username of Recipient Token updater. */ + @JsonProperty("updated_by") + private String updatedBy; + + public TokenInfo setActivationUrl(String activationUrl) { + this.activationUrl = activationUrl; + return this; + } + + public String getActivationUrl() { + return activationUrl; + } + + public TokenInfo setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + public Long getCreatedAt() { + return createdAt; + } + + public TokenInfo setCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + public String getCreatedBy() { + return createdBy; + } + + public TokenInfo setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + public Long getExpirationTime() { + return expirationTime; + } + + public TokenInfo setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public TokenInfo setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + public Long getUpdatedAt() { + return updatedAt; + } + + public TokenInfo setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + return this; + } + + public String getUpdatedBy() { + return updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + TokenInfo that = (TokenInfo) o; + return Objects.equals(activationUrl, that.activationUrl) + && Objects.equals(createdAt, that.createdAt) + && Objects.equals(createdBy, that.createdBy) + && Objects.equals(expirationTime, that.expirationTime) + && Objects.equals(id, that.id) + && Objects.equals(updatedAt, that.updatedAt) + && Objects.equals(updatedBy, that.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash( + activationUrl, createdAt, createdBy, expirationTime, id, updatedAt, updatedBy); + } + + @Override + public String toString() { + return new ToStringer(TokenInfo.class) + .add("activationUrl", activationUrl) + .add("createdAt", createdAt) + .add("createdBy", createdBy) + .add("expirationTime", expirationTime) + .add("id", id) + .add("updatedAt", updatedAt) + .add("updatedBy", updatedBy) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterRequest.java new file mode 100755 index 000000000..13b1869f5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterRequest.java @@ -0,0 +1,57 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateExchangeFilterRequest { + /** */ + @JsonProperty("filter") + private ExchangeFilter filter; + + /** */ + private String id; + + public UpdateExchangeFilterRequest setFilter(ExchangeFilter filter) { + this.filter = filter; + return this; + } + + public ExchangeFilter getFilter() { + return filter; + } + + public UpdateExchangeFilterRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateExchangeFilterRequest that = (UpdateExchangeFilterRequest) o; + return Objects.equals(filter, that.filter) && Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(filter, id); + } + + @Override + public String toString() { + return new ToStringer(UpdateExchangeFilterRequest.class) + .add("filter", filter) + .add("id", id) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterResponse.java new file mode 100755 index 000000000..fd76d6eb7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeFilterResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateExchangeFilterResponse { + /** */ + @JsonProperty("filter") + private ExchangeFilter filter; + + public UpdateExchangeFilterResponse setFilter(ExchangeFilter filter) { + this.filter = filter; + return this; + } + + public ExchangeFilter getFilter() { + return filter; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateExchangeFilterResponse that = (UpdateExchangeFilterResponse) o; + return Objects.equals(filter, that.filter); + } + + @Override + public int hashCode() { + return Objects.hash(filter); + } + + @Override + public String toString() { + return new ToStringer(UpdateExchangeFilterResponse.class).add("filter", filter).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeRequest.java new file mode 100755 index 000000000..44e133d62 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeRequest.java @@ -0,0 +1,57 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateExchangeRequest { + /** */ + @JsonProperty("exchange") + private Exchange exchange; + + /** */ + private String id; + + public UpdateExchangeRequest setExchange(Exchange exchange) { + this.exchange = exchange; + return this; + } + + public Exchange getExchange() { + return exchange; + } + + public UpdateExchangeRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateExchangeRequest that = (UpdateExchangeRequest) o; + return Objects.equals(exchange, that.exchange) && Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(exchange, id); + } + + @Override + public String toString() { + return new ToStringer(UpdateExchangeRequest.class) + .add("exchange", exchange) + .add("id", id) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeResponse.java new file mode 100755 index 000000000..d7d55e34f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateExchangeResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateExchangeResponse { + /** */ + @JsonProperty("exchange") + private Exchange exchange; + + public UpdateExchangeResponse setExchange(Exchange exchange) { + this.exchange = exchange; + return this; + } + + public Exchange getExchange() { + return exchange; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateExchangeResponse that = (UpdateExchangeResponse) o; + return Objects.equals(exchange, that.exchange); + } + + @Override + public int hashCode() { + return Objects.hash(exchange); + } + + @Override + public String toString() { + return new ToStringer(UpdateExchangeResponse.class).add("exchange", exchange).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationRequest.java new file mode 100755 index 000000000..006d86ddd --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationRequest.java @@ -0,0 +1,87 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateInstallationRequest { + /** */ + @JsonProperty("installation") + private InstallationDetail installation; + + /** */ + private String installationId; + + /** */ + private String listingId; + + /** */ + @JsonProperty("rotate_token") + private Boolean rotateToken; + + public UpdateInstallationRequest setInstallation(InstallationDetail installation) { + this.installation = installation; + return this; + } + + public InstallationDetail getInstallation() { + return installation; + } + + public UpdateInstallationRequest setInstallationId(String installationId) { + this.installationId = installationId; + return this; + } + + public String getInstallationId() { + return installationId; + } + + public UpdateInstallationRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public UpdateInstallationRequest setRotateToken(Boolean rotateToken) { + this.rotateToken = rotateToken; + return this; + } + + public Boolean getRotateToken() { + return rotateToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateInstallationRequest that = (UpdateInstallationRequest) o; + return Objects.equals(installation, that.installation) + && Objects.equals(installationId, that.installationId) + && Objects.equals(listingId, that.listingId) + && Objects.equals(rotateToken, that.rotateToken); + } + + @Override + public int hashCode() { + return Objects.hash(installation, installationId, listingId, rotateToken); + } + + @Override + public String toString() { + return new ToStringer(UpdateInstallationRequest.class) + .add("installation", installation) + .add("installationId", installationId) + .add("listingId", listingId) + .add("rotateToken", rotateToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationResponse.java new file mode 100755 index 000000000..df52570a6 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateInstallationResponse.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateInstallationResponse { + /** */ + @JsonProperty("installation") + private InstallationDetail installation; + + public UpdateInstallationResponse setInstallation(InstallationDetail installation) { + this.installation = installation; + return this; + } + + public InstallationDetail getInstallation() { + return installation; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateInstallationResponse that = (UpdateInstallationResponse) o; + return Objects.equals(installation, that.installation); + } + + @Override + public int hashCode() { + return Objects.hash(installation); + } + + @Override + public String toString() { + return new ToStringer(UpdateInstallationResponse.class) + .add("installation", installation) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingRequest.java new file mode 100755 index 000000000..11f50b317 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingRequest.java @@ -0,0 +1,57 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateListingRequest { + /** */ + private String id; + + /** */ + @JsonProperty("listing") + private Listing listing; + + public UpdateListingRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public UpdateListingRequest setListing(Listing listing) { + this.listing = listing; + return this; + } + + public Listing getListing() { + return listing; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateListingRequest that = (UpdateListingRequest) o; + return Objects.equals(id, that.id) && Objects.equals(listing, that.listing); + } + + @Override + public int hashCode() { + return Objects.hash(id, listing); + } + + @Override + public String toString() { + return new ToStringer(UpdateListingRequest.class) + .add("id", id) + .add("listing", listing) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingResponse.java new file mode 100755 index 000000000..10c05956d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateListingResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateListingResponse { + /** */ + @JsonProperty("listing") + private Listing listing; + + public UpdateListingResponse setListing(Listing listing) { + this.listing = listing; + return this; + } + + public Listing getListing() { + return listing; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateListingResponse that = (UpdateListingResponse) o; + return Objects.equals(listing, that.listing); + } + + @Override + public int hashCode() { + return Objects.hash(listing); + } + + @Override + public String toString() { + return new ToStringer(UpdateListingResponse.class).add("listing", listing).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestRequest.java new file mode 100755 index 000000000..94d028560 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestRequest.java @@ -0,0 +1,102 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdatePersonalizationRequestRequest { + /** */ + private String listingId; + + /** */ + @JsonProperty("reason") + private String reason; + + /** */ + private String requestId; + + /** */ + @JsonProperty("share") + private ShareInfo share; + + /** */ + @JsonProperty("status") + private PersonalizationRequestStatus status; + + public UpdatePersonalizationRequestRequest setListingId(String listingId) { + this.listingId = listingId; + return this; + } + + public String getListingId() { + return listingId; + } + + public UpdatePersonalizationRequestRequest setReason(String reason) { + this.reason = reason; + return this; + } + + public String getReason() { + return reason; + } + + public UpdatePersonalizationRequestRequest setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + public String getRequestId() { + return requestId; + } + + public UpdatePersonalizationRequestRequest setShare(ShareInfo share) { + this.share = share; + return this; + } + + public ShareInfo getShare() { + return share; + } + + public UpdatePersonalizationRequestRequest setStatus(PersonalizationRequestStatus status) { + this.status = status; + return this; + } + + public PersonalizationRequestStatus getStatus() { + return status; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdatePersonalizationRequestRequest that = (UpdatePersonalizationRequestRequest) o; + return Objects.equals(listingId, that.listingId) + && Objects.equals(reason, that.reason) + && Objects.equals(requestId, that.requestId) + && Objects.equals(share, that.share) + && Objects.equals(status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(listingId, reason, requestId, share, status); + } + + @Override + public String toString() { + return new ToStringer(UpdatePersonalizationRequestRequest.class) + .add("listingId", listingId) + .add("reason", reason) + .add("requestId", requestId) + .add("share", share) + .add("status", status) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestResponse.java new file mode 100755 index 000000000..8a17caf4a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdatePersonalizationRequestResponse.java @@ -0,0 +1,44 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdatePersonalizationRequestResponse { + /** */ + @JsonProperty("request") + private PersonalizationRequest request; + + public UpdatePersonalizationRequestResponse setRequest(PersonalizationRequest request) { + this.request = request; + return this; + } + + public PersonalizationRequest getRequest() { + return request; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdatePersonalizationRequestResponse that = (UpdatePersonalizationRequestResponse) o; + return Objects.equals(request, that.request); + } + + @Override + public int hashCode() { + return Objects.hash(request); + } + + @Override + public String toString() { + return new ToStringer(UpdatePersonalizationRequestResponse.class) + .add("request", request) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardRequest.java new file mode 100755 index 000000000..cb084bf70 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardRequest.java @@ -0,0 +1,60 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateProviderAnalyticsDashboardRequest { + /** id is immutable property and can't be updated. */ + private String id; + + /** + * this is the version of the dashboard template we want to update our user to current expectation + * is that it should be equal to latest version of the dashboard template + */ + @JsonProperty("version") + private Long version; + + public UpdateProviderAnalyticsDashboardRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public UpdateProviderAnalyticsDashboardRequest setVersion(Long version) { + this.version = version; + return this; + } + + public Long getVersion() { + return version; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateProviderAnalyticsDashboardRequest that = (UpdateProviderAnalyticsDashboardRequest) o; + return Objects.equals(id, that.id) && Objects.equals(version, that.version); + } + + @Override + public int hashCode() { + return Objects.hash(id, version); + } + + @Override + public String toString() { + return new ToStringer(UpdateProviderAnalyticsDashboardRequest.class) + .add("id", id) + .add("version", version) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardResponse.java new file mode 100755 index 000000000..e679a5aa9 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderAnalyticsDashboardResponse.java @@ -0,0 +1,74 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateProviderAnalyticsDashboardResponse { + /** this is newly created Lakeview dashboard for the user */ + @JsonProperty("dashboard_id") + private String dashboardId; + + /** id & version should be the same as the request */ + @JsonProperty("id") + private String id; + + /** */ + @JsonProperty("version") + private Long version; + + public UpdateProviderAnalyticsDashboardResponse setDashboardId(String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + public String getDashboardId() { + return dashboardId; + } + + public UpdateProviderAnalyticsDashboardResponse setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public UpdateProviderAnalyticsDashboardResponse setVersion(Long version) { + this.version = version; + return this; + } + + public Long getVersion() { + return version; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateProviderAnalyticsDashboardResponse that = (UpdateProviderAnalyticsDashboardResponse) o; + return Objects.equals(dashboardId, that.dashboardId) + && Objects.equals(id, that.id) + && Objects.equals(version, that.version); + } + + @Override + public int hashCode() { + return Objects.hash(dashboardId, id, version); + } + + @Override + public String toString() { + return new ToStringer(UpdateProviderAnalyticsDashboardResponse.class) + .add("dashboardId", dashboardId) + .add("id", id) + .add("version", version) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderRequest.java new file mode 100755 index 000000000..9695361de --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderRequest.java @@ -0,0 +1,57 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateProviderRequest { + /** */ + private String id; + + /** */ + @JsonProperty("provider") + private ProviderInfo provider; + + public UpdateProviderRequest setId(String id) { + this.id = id; + return this; + } + + public String getId() { + return id; + } + + public UpdateProviderRequest setProvider(ProviderInfo provider) { + this.provider = provider; + return this; + } + + public ProviderInfo getProvider() { + return provider; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateProviderRequest that = (UpdateProviderRequest) o; + return Objects.equals(id, that.id) && Objects.equals(provider, that.provider); + } + + @Override + public int hashCode() { + return Objects.hash(id, provider); + } + + @Override + public String toString() { + return new ToStringer(UpdateProviderRequest.class) + .add("id", id) + .add("provider", provider) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderResponse.java new file mode 100755 index 000000000..81323258a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/UpdateProviderResponse.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 UpdateProviderResponse { + /** */ + @JsonProperty("provider") + private ProviderInfo provider; + + public UpdateProviderResponse setProvider(ProviderInfo provider) { + this.provider = provider; + return this; + } + + public ProviderInfo getProvider() { + return provider; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateProviderResponse that = (UpdateProviderResponse) o; + return Objects.equals(provider, that.provider); + } + + @Override + public int hashCode() { + return Objects.hash(provider); + } + + @Override + public String toString() { + return new ToStringer(UpdateProviderResponse.class).add("provider", provider).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Visibility.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Visibility.java new file mode 100755 index 000000000..abbb62a3f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/Visibility.java @@ -0,0 +1,11 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +import com.databricks.sdk.support.Generated; + +@Generated +public enum Visibility { + PRIVATE, + PUBLIC, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/VisibilityFilter.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/VisibilityFilter.java new file mode 100755 index 000000000..00d54de4a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/VisibilityFilter.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.marketplace; + +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 VisibilityFilter { + /** */ + @JsonProperty("filterType") + private FilterType filterType; + + /** */ + @JsonProperty("filterValue") + private String filterValue; + + public VisibilityFilter setFilterType(FilterType filterType) { + this.filterType = filterType; + return this; + } + + public FilterType getFilterType() { + return filterType; + } + + public VisibilityFilter setFilterValue(String filterValue) { + this.filterValue = filterValue; + return this; + } + + public String getFilterValue() { + return filterValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + VisibilityFilter that = (VisibilityFilter) o; + return Objects.equals(filterType, that.filterType) + && Objects.equals(filterValue, that.filterValue); + } + + @Override + public int hashCode() { + return Objects.hash(filterType, filterValue); + } + + @Override + public String toString() { + return new ToStringer(VisibilityFilter.class) + .add("filterType", filterType) + .add("filterValue", filterValue) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java index 8e0f647a1..3b9d4cbb0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java @@ -4,7 +4,6 @@ import com.databricks.sdk.support.Generated; -/** Name of the channel */ @Generated public enum ChannelName { CHANNEL_NAME_CURRENT, diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index aaa3a3547..6408b1fdc 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.22.0 + 0.23.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index ce99829c3..c04588df0 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.22.0 + 0.23.0 com.fasterxml.jackson.datatype diff --git a/pom.xml b/pom.xml index 0350cf6ae..03a30e865 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.22.0 + 0.23.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for