com.dominodatalab.api.rest.FeatureStoreApi Maven / Gradle / Ivy
/*
* Domino Data Lab API v4
* This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key.
*
* The version of the OpenAPI document: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.dominodatalab.api.rest;
import com.dominodatalab.api.invoker.ApiClient;
import com.dominodatalab.api.invoker.ApiException;
import com.dominodatalab.api.invoker.ApiResponse;
import com.dominodatalab.api.invoker.Pair;
import com.dominodatalab.api.model.DominoApiErrorResponse;
import com.dominodatalab.api.model.DominoFeaturestoreApiCredentialConfigs;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureStoreCodeSnippetDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureStoreDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureViewAddProjectDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureViewCommentDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureViewCommentThreadDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureViewDto;
import com.dominodatalab.api.model.DominoFeaturestoreModelOfflineStoreConfig;
import com.dominodatalab.api.model.DominoFeaturestoreModelOnlineStoreConfig;
import com.dominodatalab.api.model.DominoFeaturestoreWebUpdateFeatureStoreConfigRequest;
import com.dominodatalab.api.model.DominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest;
import com.dominodatalab.api.model.DominoFeaturestoreWebUpdateFeatureViewCommentRequest;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.InputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.net.http.HttpRequest;
import java.nio.channels.Channels;
import java.nio.channels.Pipe;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.util.ArrayList;
import java.util.StringJoiner;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class FeatureStoreApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
private final String memberVarBaseUri;
private final Consumer memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer> memberVarResponseInterceptor;
private final Consumer> memberVarAsyncResponseInterceptor;
public FeatureStoreApi() {
this(new ApiClient());
}
public FeatureStoreApi(ApiClient apiClient) {
memberVarHttpClient = apiClient.getHttpClient();
memberVarObjectMapper = apiClient.getObjectMapper();
memberVarBaseUri = apiClient.getBaseUri();
memberVarInterceptor = apiClient.getRequestInterceptor();
memberVarReadTimeout = apiClient.getReadTimeout();
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor();
}
protected ApiException getApiException(String operationId, HttpResponse response) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
String message = formatExceptionMessage(operationId, response.statusCode(), body);
return new ApiException(response.statusCode(), message, response.headers(), body);
}
private String formatExceptionMessage(String operationId, int statusCode, String body) {
if (body == null || body.isEmpty()) {
body = "[no body]";
}
return operationId + " call failed with: " + statusCode + " - " + body;
}
/**
* Add feature view to a project
*
* @param featureViewId Feature view Id (required)
* @param projectId Project Id (required)
* @return DominoFeaturestoreApiFeatureViewDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureViewDto addFeatureViewToProject(String featureViewId, String projectId) throws ApiException {
ApiResponse localVarResponse = addFeatureViewToProjectWithHttpInfo(featureViewId, projectId);
return localVarResponse.getData();
}
/**
* Add feature view to a project
*
* @param featureViewId Feature view Id (required)
* @param projectId Project Id (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureViewDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse addFeatureViewToProjectWithHttpInfo(String featureViewId, String projectId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = addFeatureViewToProjectRequestBuilder(featureViewId, projectId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("addFeatureViewToProject", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder addFeatureViewToProjectRequestBuilder(String featureViewId, String projectId) throws ApiException {
// verify the required parameter 'featureViewId' is set
if (featureViewId == null) {
throw new ApiException(400, "Missing the required parameter 'featureViewId' when calling addFeatureViewToProject");
}
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException(400, "Missing the required parameter 'projectId' when calling addFeatureViewToProject");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureview/{featureViewId}/project/{projectId}"
.replace("{featureViewId}", ApiClient.urlEncode(featureViewId.toString()))
.replace("{projectId}", ApiClient.urlEncode(projectId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Delete feature store
*
* @param featureStoreId Feature Store ID (required)
* @return DominoFeaturestoreApiFeatureStoreDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureStoreDto deleteFeatureStore(String featureStoreId) throws ApiException {
ApiResponse localVarResponse = deleteFeatureStoreWithHttpInfo(featureStoreId);
return localVarResponse.getData();
}
/**
* Delete feature store
*
* @param featureStoreId Feature Store ID (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureStoreDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteFeatureStoreWithHttpInfo(String featureStoreId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = deleteFeatureStoreRequestBuilder(featureStoreId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("deleteFeatureStore", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder deleteFeatureStoreRequestBuilder(String featureStoreId) throws ApiException {
// verify the required parameter 'featureStoreId' is set
if (featureStoreId == null) {
throw new ApiException(400, "Missing the required parameter 'featureStoreId' when calling deleteFeatureStore");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/{featureStoreId}"
.replace("{featureStoreId}", ApiClient.urlEncode(featureStoreId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Delete feature view comment
*
* @param commentId Comment ID (required)
* @return DominoFeaturestoreApiFeatureViewCommentDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureViewCommentDto deleteFeatureViewComment(String commentId) throws ApiException {
ApiResponse localVarResponse = deleteFeatureViewCommentWithHttpInfo(commentId);
return localVarResponse.getData();
}
/**
* Delete feature view comment
*
* @param commentId Comment ID (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureViewCommentDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteFeatureViewCommentWithHttpInfo(String commentId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = deleteFeatureViewCommentRequestBuilder(commentId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("deleteFeatureViewComment", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder deleteFeatureViewCommentRequestBuilder(String commentId) throws ApiException {
// verify the required parameter 'commentId' is set
if (commentId == null) {
throw new ApiException(400, "Missing the required parameter 'commentId' when calling deleteFeatureViewComment");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/comment/{commentId}"
.replace("{commentId}", ApiClient.urlEncode(commentId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Disable feature store for a given project
*
* @param featureStoreId Feature store Id (required)
* @param projectId Project Id (required)
* @return DominoFeaturestoreApiFeatureStoreDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureStoreDto disableFeatureStoreForProject(String featureStoreId, String projectId) throws ApiException {
ApiResponse localVarResponse = disableFeatureStoreForProjectWithHttpInfo(featureStoreId, projectId);
return localVarResponse.getData();
}
/**
* Disable feature store for a given project
*
* @param featureStoreId Feature store Id (required)
* @param projectId Project Id (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureStoreDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse disableFeatureStoreForProjectWithHttpInfo(String featureStoreId, String projectId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = disableFeatureStoreForProjectRequestBuilder(featureStoreId, projectId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("disableFeatureStoreForProject", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder disableFeatureStoreForProjectRequestBuilder(String featureStoreId, String projectId) throws ApiException {
// verify the required parameter 'featureStoreId' is set
if (featureStoreId == null) {
throw new ApiException(400, "Missing the required parameter 'featureStoreId' when calling disableFeatureStoreForProject");
}
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException(400, "Missing the required parameter 'projectId' when calling disableFeatureStoreForProject");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/{featureStoreId}/projects/{projectId}"
.replace("{featureStoreId}", ApiClient.urlEncode(featureStoreId.toString()))
.replace("{projectId}", ApiClient.urlEncode(projectId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Enable feature store for a given project
*
* @param featureStoreId Feature store Id (required)
* @param projectId Project Id (required)
* @return DominoFeaturestoreApiFeatureStoreDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureStoreDto enableFeatureStoreForProject(String featureStoreId, String projectId) throws ApiException {
ApiResponse localVarResponse = enableFeatureStoreForProjectWithHttpInfo(featureStoreId, projectId);
return localVarResponse.getData();
}
/**
* Enable feature store for a given project
*
* @param featureStoreId Feature store Id (required)
* @param projectId Project Id (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureStoreDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse enableFeatureStoreForProjectWithHttpInfo(String featureStoreId, String projectId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = enableFeatureStoreForProjectRequestBuilder(featureStoreId, projectId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("enableFeatureStoreForProject", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder enableFeatureStoreForProjectRequestBuilder(String featureStoreId, String projectId) throws ApiException {
// verify the required parameter 'featureStoreId' is set
if (featureStoreId == null) {
throw new ApiException(400, "Missing the required parameter 'featureStoreId' when calling enableFeatureStoreForProject");
}
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException(400, "Missing the required parameter 'projectId' when calling enableFeatureStoreForProject");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/{featureStoreId}/projects/{projectId}"
.replace("{featureStoreId}", ApiClient.urlEncode(featureStoreId.toString()))
.replace("{projectId}", ApiClient.urlEncode(projectId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get all feature stores
*
* @return List<DominoFeaturestoreApiFeatureStoreDto>
* @throws ApiException if fails to make API call
*/
public List getAllFeatureStores() throws ApiException {
ApiResponse> localVarResponse = getAllFeatureStoresWithHttpInfo();
return localVarResponse.getData();
}
/**
* Get all feature stores
*
* @return ApiResponse<List<DominoFeaturestoreApiFeatureStoreDto>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getAllFeatureStoresWithHttpInfo() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getAllFeatureStoresRequestBuilder();
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getAllFeatureStores", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getAllFeatureStoresRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/all";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get code snippet for feature view
*
* @param featureViewId Feature view Id (required)
* @return DominoFeaturestoreApiFeatureStoreCodeSnippetDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureStoreCodeSnippetDto getCodeSnippet(String featureViewId) throws ApiException {
ApiResponse localVarResponse = getCodeSnippetWithHttpInfo(featureViewId);
return localVarResponse.getData();
}
/**
* Get code snippet for feature view
*
* @param featureViewId Feature view Id (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureStoreCodeSnippetDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse getCodeSnippetWithHttpInfo(String featureViewId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCodeSnippetRequestBuilder(featureViewId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCodeSnippet", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getCodeSnippetRequestBuilder(String featureViewId) throws ApiException {
// verify the required parameter 'featureViewId' is set
if (featureViewId == null) {
throw new ApiException(400, "Missing the required parameter 'featureViewId' when calling getCodeSnippet");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureview/{featureViewId}/code"
.replace("{featureViewId}", ApiClient.urlEncode(featureViewId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get the required credential configs for specified feature store
*
* @param featureStoreId Feature store Id (required)
* @return DominoFeaturestoreApiCredentialConfigs
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiCredentialConfigs getCredentialConfigs(String featureStoreId) throws ApiException {
ApiResponse localVarResponse = getCredentialConfigsWithHttpInfo(featureStoreId);
return localVarResponse.getData();
}
/**
* Get the required credential configs for specified feature store
*
* @param featureStoreId Feature store Id (required)
* @return ApiResponse<DominoFeaturestoreApiCredentialConfigs>
* @throws ApiException if fails to make API call
*/
public ApiResponse getCredentialConfigsWithHttpInfo(String featureStoreId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCredentialConfigsRequestBuilder(featureStoreId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCredentialConfigs", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getCredentialConfigsRequestBuilder(String featureStoreId) throws ApiException {
// verify the required parameter 'featureStoreId' is set
if (featureStoreId == null) {
throw new ApiException(400, "Missing the required parameter 'featureStoreId' when calling getCredentialConfigs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/{featureStoreId}/credentialconfigs"
.replace("{featureStoreId}", ApiClient.urlEncode(featureStoreId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get feature store
*
* @return DominoFeaturestoreApiFeatureStoreDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureStoreDto getFeatureStore() throws ApiException {
ApiResponse localVarResponse = getFeatureStoreWithHttpInfo();
return localVarResponse.getData();
}
/**
* Get feature store
*
* @return ApiResponse<DominoFeaturestoreApiFeatureStoreDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse getFeatureStoreWithHttpInfo() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getFeatureStoreRequestBuilder();
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getFeatureStore", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getFeatureStoreRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get feature view
*
* @param featureViewId Feature view Id (required)
* @return DominoFeaturestoreApiFeatureViewDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureViewDto getFeatureView(String featureViewId) throws ApiException {
ApiResponse localVarResponse = getFeatureViewWithHttpInfo(featureViewId);
return localVarResponse.getData();
}
/**
* Get feature view
*
* @param featureViewId Feature view Id (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureViewDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse getFeatureViewWithHttpInfo(String featureViewId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getFeatureViewRequestBuilder(featureViewId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getFeatureView", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getFeatureViewRequestBuilder(String featureViewId) throws ApiException {
// verify the required parameter 'featureViewId' is set
if (featureViewId == null) {
throw new ApiException(400, "Missing the required parameter 'featureViewId' when calling getFeatureView");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureview/{featureViewId}"
.replace("{featureViewId}", ApiClient.urlEncode(featureViewId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get feature view comment threads
*
* @param featureViewId Feature view Id (required)
* @return List<DominoFeaturestoreApiFeatureViewCommentThreadDto>
* @throws ApiException if fails to make API call
*/
public List getFeatureViewCommentThreads(String featureViewId) throws ApiException {
ApiResponse> localVarResponse = getFeatureViewCommentThreadsWithHttpInfo(featureViewId);
return localVarResponse.getData();
}
/**
* Get feature view comment threads
*
* @param featureViewId Feature view Id (required)
* @return ApiResponse<List<DominoFeaturestoreApiFeatureViewCommentThreadDto>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getFeatureViewCommentThreadsWithHttpInfo(String featureViewId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getFeatureViewCommentThreadsRequestBuilder(featureViewId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getFeatureViewCommentThreads", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getFeatureViewCommentThreadsRequestBuilder(String featureViewId) throws ApiException {
// verify the required parameter 'featureViewId' is set
if (featureViewId == null) {
throw new ApiException(400, "Missing the required parameter 'featureViewId' when calling getFeatureViewCommentThreads");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureview/{featureViewId}/comments"
.replace("{featureViewId}", ApiClient.urlEncode(featureViewId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get all feature views in feature store
*
* @return List<DominoFeaturestoreApiFeatureViewDto>
* @throws ApiException if fails to make API call
*/
public List getFeatureViews() throws ApiException {
ApiResponse> localVarResponse = getFeatureViewsWithHttpInfo();
return localVarResponse.getData();
}
/**
* Get all feature views in feature store
*
* @return ApiResponse<List<DominoFeaturestoreApiFeatureViewDto>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getFeatureViewsWithHttpInfo() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getFeatureViewsRequestBuilder();
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getFeatureViews", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getFeatureViewsRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureviews";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get feature views by project and user
*
* @param projectId Project Id (required)
* @return List<DominoFeaturestoreApiFeatureViewDto>
* @throws ApiException if fails to make API call
*/
public List getFeatureViewsByProjectAndUser(String projectId) throws ApiException {
ApiResponse> localVarResponse = getFeatureViewsByProjectAndUserWithHttpInfo(projectId);
return localVarResponse.getData();
}
/**
* Get feature views by project and user
*
* @param projectId Project Id (required)
* @return ApiResponse<List<DominoFeaturestoreApiFeatureViewDto>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getFeatureViewsByProjectAndUserWithHttpInfo(String projectId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getFeatureViewsByProjectAndUserRequestBuilder(projectId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getFeatureViewsByProjectAndUser", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getFeatureViewsByProjectAndUserRequestBuilder(String projectId) throws ApiException {
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException(400, "Missing the required parameter 'projectId' when calling getFeatureViewsByProjectAndUser");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureviews/project/{projectId}"
.replace("{projectId}", ApiClient.urlEncode(projectId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get config metadata for an offline store type
*
* @param offlineStoreType FeatureStore Type (required)
* @return DominoFeaturestoreModelOfflineStoreConfig
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreModelOfflineStoreConfig getOfflineStoreConfigByType(String offlineStoreType) throws ApiException {
ApiResponse localVarResponse = getOfflineStoreConfigByTypeWithHttpInfo(offlineStoreType);
return localVarResponse.getData();
}
/**
* Get config metadata for an offline store type
*
* @param offlineStoreType FeatureStore Type (required)
* @return ApiResponse<DominoFeaturestoreModelOfflineStoreConfig>
* @throws ApiException if fails to make API call
*/
public ApiResponse getOfflineStoreConfigByTypeWithHttpInfo(String offlineStoreType) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getOfflineStoreConfigByTypeRequestBuilder(offlineStoreType);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getOfflineStoreConfigByType", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getOfflineStoreConfigByTypeRequestBuilder(String offlineStoreType) throws ApiException {
// verify the required parameter 'offlineStoreType' is set
if (offlineStoreType == null) {
throw new ApiException(400, "Missing the required parameter 'offlineStoreType' when calling getOfflineStoreConfigByType");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/config/{offlineStoreType}"
.replace("{offlineStoreType}", ApiClient.urlEncode(offlineStoreType.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get config metadata for all offline store types
*
* @return List<DominoFeaturestoreModelOfflineStoreConfig>
* @throws ApiException if fails to make API call
*/
public List getOfflineStoreConfigs() throws ApiException {
ApiResponse> localVarResponse = getOfflineStoreConfigsWithHttpInfo();
return localVarResponse.getData();
}
/**
* Get config metadata for all offline store types
*
* @return ApiResponse<List<DominoFeaturestoreModelOfflineStoreConfig>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getOfflineStoreConfigsWithHttpInfo() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getOfflineStoreConfigsRequestBuilder();
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getOfflineStoreConfigs", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getOfflineStoreConfigsRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/config";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get config metadata for an online store type
*
* @param onlineStoreType FeatureStore Type (required)
* @return DominoFeaturestoreModelOnlineStoreConfig
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreModelOnlineStoreConfig getOnlineStoreConfigByType(String onlineStoreType) throws ApiException {
ApiResponse localVarResponse = getOnlineStoreConfigByTypeWithHttpInfo(onlineStoreType);
return localVarResponse.getData();
}
/**
* Get config metadata for an online store type
*
* @param onlineStoreType FeatureStore Type (required)
* @return ApiResponse<DominoFeaturestoreModelOnlineStoreConfig>
* @throws ApiException if fails to make API call
*/
public ApiResponse getOnlineStoreConfigByTypeWithHttpInfo(String onlineStoreType) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getOnlineStoreConfigByTypeRequestBuilder(onlineStoreType);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getOnlineStoreConfigByType", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getOnlineStoreConfigByTypeRequestBuilder(String onlineStoreType) throws ApiException {
// verify the required parameter 'onlineStoreType' is set
if (onlineStoreType == null) {
throw new ApiException(400, "Missing the required parameter 'onlineStoreType' when calling getOnlineStoreConfigByType");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/onlinestoreconfig/{onlineStoreType}"
.replace("{onlineStoreType}", ApiClient.urlEncode(onlineStoreType.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get config metadata for all online store types
*
* @return List<DominoFeaturestoreModelOnlineStoreConfig>
* @throws ApiException if fails to make API call
*/
public List getOnlineStoreConfigs() throws ApiException {
ApiResponse> localVarResponse = getOnlineStoreConfigsWithHttpInfo();
return localVarResponse.getData();
}
/**
* Get config metadata for all online store types
*
* @return ApiResponse<List<DominoFeaturestoreModelOnlineStoreConfig>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getOnlineStoreConfigsWithHttpInfo() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getOnlineStoreConfigsRequestBuilder();
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getOnlineStoreConfigs", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getOnlineStoreConfigsRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/onlinestoreconfig";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Get available projects for given feature view to be added to
*
* @param featureViewId Feature View Id (required)
* @return List<DominoFeaturestoreApiFeatureViewAddProjectDto>
* @throws ApiException if fails to make API call
*/
public List getProjectsForFeatureView(String featureViewId) throws ApiException {
ApiResponse> localVarResponse = getProjectsForFeatureViewWithHttpInfo(featureViewId);
return localVarResponse.getData();
}
/**
* Get available projects for given feature view to be added to
*
* @param featureViewId Feature View Id (required)
* @return ApiResponse<List<DominoFeaturestoreApiFeatureViewAddProjectDto>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getProjectsForFeatureViewWithHttpInfo(String featureViewId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getProjectsForFeatureViewRequestBuilder(featureViewId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getProjectsForFeatureView", localVarResponse);
}
return new ApiResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference>() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder getProjectsForFeatureViewRequestBuilder(String featureViewId) throws ApiException {
// verify the required parameter 'featureViewId' is set
if (featureViewId == null) {
throw new ApiException(400, "Missing the required parameter 'featureViewId' when calling getProjectsForFeatureView");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureviews/{featureViewId}/projects"
.replace("{featureViewId}", ApiClient.urlEncode(featureViewId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Update feature store config
*
* @param featureStoreId featureStore id (required)
* @param dominoFeaturestoreWebUpdateFeatureStoreConfigRequest updated feature store spec with config info to persist (required)
* @return DominoFeaturestoreApiFeatureStoreDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureStoreDto updateFeatureStoreConfig(String featureStoreId, DominoFeaturestoreWebUpdateFeatureStoreConfigRequest dominoFeaturestoreWebUpdateFeatureStoreConfigRequest) throws ApiException {
ApiResponse localVarResponse = updateFeatureStoreConfigWithHttpInfo(featureStoreId, dominoFeaturestoreWebUpdateFeatureStoreConfigRequest);
return localVarResponse.getData();
}
/**
* Update feature store config
*
* @param featureStoreId featureStore id (required)
* @param dominoFeaturestoreWebUpdateFeatureStoreConfigRequest updated feature store spec with config info to persist (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureStoreDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse updateFeatureStoreConfigWithHttpInfo(String featureStoreId, DominoFeaturestoreWebUpdateFeatureStoreConfigRequest dominoFeaturestoreWebUpdateFeatureStoreConfigRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = updateFeatureStoreConfigRequestBuilder(featureStoreId, dominoFeaturestoreWebUpdateFeatureStoreConfigRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("updateFeatureStoreConfig", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder updateFeatureStoreConfigRequestBuilder(String featureStoreId, DominoFeaturestoreWebUpdateFeatureStoreConfigRequest dominoFeaturestoreWebUpdateFeatureStoreConfigRequest) throws ApiException {
// verify the required parameter 'featureStoreId' is set
if (featureStoreId == null) {
throw new ApiException(400, "Missing the required parameter 'featureStoreId' when calling updateFeatureStoreConfig");
}
// verify the required parameter 'dominoFeaturestoreWebUpdateFeatureStoreConfigRequest' is set
if (dominoFeaturestoreWebUpdateFeatureStoreConfigRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoFeaturestoreWebUpdateFeatureStoreConfigRequest' when calling updateFeatureStoreConfig");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/{featureStoreId}/config"
.replace("{featureStoreId}", ApiClient.urlEncode(featureStoreId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoFeaturestoreWebUpdateFeatureStoreConfigRequest);
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
throw new ApiException(e);
}
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* update the feature store sync result
*
* @param dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest the feature store sync result (required)
* @throws ApiException if fails to make API call
*/
public void updateFeatureStoreSyncResult(DominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest) throws ApiException {
updateFeatureStoreSyncResultWithHttpInfo(dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest);
}
/**
* update the feature store sync result
*
* @param dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest the feature store sync result (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
*/
public ApiResponse updateFeatureStoreSyncResultWithHttpInfo(DominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = updateFeatureStoreSyncResultRequestBuilder(dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("updateFeatureStoreSyncResult", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
null
);
} finally {
// Drain the InputStream
while (localVarResponse.body().read() != -1) {
// Ignore
}
localVarResponse.body().close();
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder updateFeatureStoreSyncResultRequestBuilder(DominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest) throws ApiException {
// verify the required parameter 'dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest' is set
if (dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest' when calling updateFeatureStoreSyncResult");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/syncstatus";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoFeaturestoreWebUpdateFeatureStoreSyncResultRequest);
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
throw new ApiException(e);
}
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Update feature view comment
*
* @param dominoFeaturestoreWebUpdateFeatureViewCommentRequest updated feature view comment info (required)
* @return DominoFeaturestoreApiFeatureViewCommentDto
* @throws ApiException if fails to make API call
*/
public DominoFeaturestoreApiFeatureViewCommentDto updateFeatureViewComment(DominoFeaturestoreWebUpdateFeatureViewCommentRequest dominoFeaturestoreWebUpdateFeatureViewCommentRequest) throws ApiException {
ApiResponse localVarResponse = updateFeatureViewCommentWithHttpInfo(dominoFeaturestoreWebUpdateFeatureViewCommentRequest);
return localVarResponse.getData();
}
/**
* Update feature view comment
*
* @param dominoFeaturestoreWebUpdateFeatureViewCommentRequest updated feature view comment info (required)
* @return ApiResponse<DominoFeaturestoreApiFeatureViewCommentDto>
* @throws ApiException if fails to make API call
*/
public ApiResponse updateFeatureViewCommentWithHttpInfo(DominoFeaturestoreWebUpdateFeatureViewCommentRequest dominoFeaturestoreWebUpdateFeatureViewCommentRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = updateFeatureViewCommentRequestBuilder(dominoFeaturestoreWebUpdateFeatureViewCommentRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("updateFeatureViewComment", localVarResponse);
}
return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
} catch (IOException e) {
throw new ApiException(e);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new ApiException(e);
}
}
private HttpRequest.Builder updateFeatureViewCommentRequestBuilder(DominoFeaturestoreWebUpdateFeatureViewCommentRequest dominoFeaturestoreWebUpdateFeatureViewCommentRequest) throws ApiException {
// verify the required parameter 'dominoFeaturestoreWebUpdateFeatureViewCommentRequest' is set
if (dominoFeaturestoreWebUpdateFeatureViewCommentRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoFeaturestoreWebUpdateFeatureViewCommentRequest' when calling updateFeatureViewComment");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/featurestore/featureView/comment";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoFeaturestoreWebUpdateFeatureViewCommentRequest);
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
throw new ApiException(e);
}
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy