com.databricks.sdk.service.sharing.RecipientActivationImpl Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.sharing;
import com.databricks.sdk.core.ApiClient;
import com.databricks.sdk.support.Generated;
import java.util.HashMap;
import java.util.Map;
/** Package-local implementation of RecipientActivation */
@Generated
class RecipientActivationImpl implements RecipientActivationService {
private final ApiClient apiClient;
public RecipientActivationImpl(ApiClient apiClient) {
this.apiClient = apiClient;
}
@Override
public void getActivationUrlInfo(GetActivationUrlInfoRequest request) {
String path =
String.format(
"/api/2.1/unity-catalog/public/data_sharing_activation_info/%s",
request.getActivationUrl());
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
apiClient.GET(path, request, GetActivationUrlInfoResponse.class, headers);
}
@Override
public RetrieveTokenResponse retrieveToken(RetrieveTokenRequest request) {
String path =
String.format(
"/api/2.1/unity-catalog/public/data_sharing_activation/%s", request.getActivationUrl());
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.GET(path, request, RetrieveTokenResponse.class, headers);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy