com.dominodatalab.api.rest.ModelManagerApi 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 java.math.BigDecimal;
import com.dominodatalab.api.model.DominoApiErrorResponse;
import com.dominodatalab.api.model.DominoModelmanagerApiModel;
import com.dominodatalab.api.model.DominoModelmanagerApiModelApiAggregatedUsageStatistics;
import com.dominodatalab.api.model.DominoModelmanagerApiModelApiLast24HourInvocationCount;
import com.dominodatalab.api.model.DominoModelmanagerApiModelBuild;
import com.dominodatalab.api.model.DominoModelmanagerApiModelBuildLogs;
import com.dominodatalab.api.model.DominoModelmanagerApiModelExport;
import com.dominodatalab.api.model.DominoModelmanagerApiModelExportVersionLogs;
import com.dominodatalab.api.model.DominoModelmanagerApiModelExportVersionStatus;
import com.dominodatalab.api.model.DominoModelmanagerApiModelGoal;
import com.dominodatalab.api.model.DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails;
import com.dominodatalab.api.model.DominoModelmanagerApiModelsForUIApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerApiResponsesModelExportVersionsApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerApiResponsesModelExportsApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerApiResponsesModelPermissionsForUIApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerApiSnowflakeExport;
import com.dominodatalab.api.model.DominoModelmanagerWebBuildModelImageApiRequest;
import com.dominodatalab.api.model.DominoModelmanagerWebBuildModelImageApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebExportImageForNvidiaApiRequest;
import com.dominodatalab.api.model.DominoModelmanagerWebExportImageForSagemakerApiRequest;
import com.dominodatalab.api.model.DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest;
import com.dominodatalab.api.model.DominoModelmanagerWebExportImageForSnowflakeApiRequest;
import com.dominodatalab.api.model.DominoModelmanagerWebExportModelImageApiRequest;
import com.dominodatalab.api.model.DominoModelmanagerWebExportVersionStatusWithoutModelResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebLinkmodelToGoal;
import com.dominodatalab.api.model.DominoModelmanagerWebModelBuildLogsApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebModelBuildStatusApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebModelDeploymentLogsApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebModelDeploymentStatusApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebModelExportLogsApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebModelExportVersionStatusApiResponse;
import com.dominodatalab.api.model.DominoModelmanagerWebRecordInvocation;
import com.dominodatalab.api.model.DominoModelmanagerWebUnlinkmodelFromGoal;
import java.io.File;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
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 ModelManagerApi {
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 ModelManagerApi() {
this(new ApiClient());
}
public ModelManagerApi(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;
}
/**
* Archives model export for a given export id
*
* @param exportId Id of the export to archive (required)
* @throws ApiException if fails to make API call
*/
public void archiveModelExport(String exportId) throws ApiException {
archiveModelExportWithHttpInfo(exportId);
}
/**
* Archives model export for a given export id
*
* @param exportId Id of the export to archive (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
*/
public ApiResponse archiveModelExportWithHttpInfo(String exportId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = archiveModelExportRequestBuilder(exportId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("archiveModelExport", 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 archiveModelExportRequestBuilder(String exportId) throws ApiException {
// verify the required parameter 'exportId' is set
if (exportId == null) {
throw new ApiException(400, "Missing the required parameter 'exportId' when calling archiveModelExport");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/archiveModelExport/{exportId}"
.replace("{exportId}", ApiClient.urlEncode(exportId.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;
}
/**
* Build a Model Image
*
* @param dominoModelmanagerWebBuildModelImageApiRequest JSON object with information for building a model image (required)
* @return DominoModelmanagerApiModelBuild
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiModelBuild buildManagerModelImage(DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest) throws ApiException {
ApiResponse localVarResponse = buildManagerModelImageWithHttpInfo(dominoModelmanagerWebBuildModelImageApiRequest);
return localVarResponse.getData();
}
/**
* Build a Model Image
*
* @param dominoModelmanagerWebBuildModelImageApiRequest JSON object with information for building a model image (required)
* @return ApiResponse<DominoModelmanagerApiModelBuild>
* @throws ApiException if fails to make API call
*/
public ApiResponse buildManagerModelImageWithHttpInfo(DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = buildManagerModelImageRequestBuilder(dominoModelmanagerWebBuildModelImageApiRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("buildManagerModelImage", 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 buildManagerModelImageRequestBuilder(DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest) throws ApiException {
// verify the required parameter 'dominoModelmanagerWebBuildModelImageApiRequest' is set
if (dominoModelmanagerWebBuildModelImageApiRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebBuildModelImageApiRequest' when calling buildManagerModelImage");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/buildModelImage";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebBuildModelImageApiRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* Build a Model Image
*
* @param dominoModelmanagerWebBuildModelImageApiRequest JSON object with information for building a model image (required)
* @return List<DominoModelmanagerWebBuildModelImageApiResponse>
* @throws ApiException if fails to make API call
*/
public List buildModelImage(DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest) throws ApiException {
ApiResponse> localVarResponse = buildModelImageWithHttpInfo(dominoModelmanagerWebBuildModelImageApiRequest);
return localVarResponse.getData();
}
/**
* Build a Model Image
*
* @param dominoModelmanagerWebBuildModelImageApiRequest JSON object with information for building a model image (required)
* @return ApiResponse<List<DominoModelmanagerWebBuildModelImageApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> buildModelImageWithHttpInfo(DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = buildModelImageRequestBuilder(dominoModelmanagerWebBuildModelImageApiRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("buildModelImage", 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 buildModelImageRequestBuilder(DominoModelmanagerWebBuildModelImageApiRequest dominoModelmanagerWebBuildModelImageApiRequest) throws ApiException {
// verify the required parameter 'dominoModelmanagerWebBuildModelImageApiRequest' is set
if (dominoModelmanagerWebBuildModelImageApiRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebBuildModelImageApiRequest' when calling buildModelImage");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/buildModelImage";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebBuildModelImageApiRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* download logs for a model for a given time range
*
* @param modelVersionId (required)
* @param startMillis (required)
* @param endMillis (required)
* @return File
* @throws ApiException if fails to make API call
*/
public File downloadLogs(String modelVersionId, Long startMillis, Long endMillis) throws ApiException {
ApiResponse localVarResponse = downloadLogsWithHttpInfo(modelVersionId, startMillis, endMillis);
return localVarResponse.getData();
}
/**
* download logs for a model for a given time range
*
* @param modelVersionId (required)
* @param startMillis (required)
* @param endMillis (required)
* @return ApiResponse<File>
* @throws ApiException if fails to make API call
*/
public ApiResponse downloadLogsWithHttpInfo(String modelVersionId, Long startMillis, Long endMillis) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = downloadLogsRequestBuilder(modelVersionId, startMillis, endMillis);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("downloadLogs", 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 downloadLogsRequestBuilder(String modelVersionId, Long startMillis, Long endMillis) throws ApiException {
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling downloadLogs");
}
// verify the required parameter 'startMillis' is set
if (startMillis == null) {
throw new ApiException(400, "Missing the required parameter 'startMillis' when calling downloadLogs");
}
// verify the required parameter 'endMillis' is set
if (endMillis == null) {
throw new ApiException(400, "Missing the required parameter 'endMillis' when calling downloadLogs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/{modelVersionId}/logs"
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "startMillis";
localVarQueryParams.addAll(ApiClient.parameterToPairs("startMillis", startMillis));
localVarQueryParameterBaseName = "endMillis";
localVarQueryParams.addAll(ApiClient.parameterToPairs("endMillis", endMillis));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
}
localVarRequestBuilder.header("Accept", "application/x-ndjson, application/json");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
if (memberVarInterceptor != null) {
memberVarInterceptor.accept(localVarRequestBuilder);
}
return localVarRequestBuilder;
}
/**
* Export a Model Image to NVIDIA Fleet command [BETA]
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportImageForNvidiaApiRequest JSON object with information for exporting a model image (required)
* @return List<DominoModelmanagerWebModelExportVersionStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List exportImageForNvidia(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForNvidiaApiRequest dominoModelmanagerWebExportImageForNvidiaApiRequest) throws ApiException {
ApiResponse> localVarResponse = exportImageForNvidiaWithHttpInfo(modelId, modelVersionId, dominoModelmanagerWebExportImageForNvidiaApiRequest);
return localVarResponse.getData();
}
/**
* Export a Model Image to NVIDIA Fleet command [BETA]
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportImageForNvidiaApiRequest JSON object with information for exporting a model image (required)
* @return ApiResponse<List<DominoModelmanagerWebModelExportVersionStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> exportImageForNvidiaWithHttpInfo(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForNvidiaApiRequest dominoModelmanagerWebExportImageForNvidiaApiRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = exportImageForNvidiaRequestBuilder(modelId, modelVersionId, dominoModelmanagerWebExportImageForNvidiaApiRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("exportImageForNvidia", 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 exportImageForNvidiaRequestBuilder(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForNvidiaApiRequest dominoModelmanagerWebExportImageForNvidiaApiRequest) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling exportImageForNvidia");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling exportImageForNvidia");
}
// verify the required parameter 'dominoModelmanagerWebExportImageForNvidiaApiRequest' is set
if (dominoModelmanagerWebExportImageForNvidiaApiRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebExportImageForNvidiaApiRequest' when calling exportImageForNvidia");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/exportImageForNvidia"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebExportImageForNvidiaApiRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* Export a Model Image
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportImageForSagemakerApiRequest JSON object with information for exporting a model image (required)
* @return List<DominoModelmanagerWebModelExportVersionStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List exportImageForSagemaker(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForSagemakerApiRequest dominoModelmanagerWebExportImageForSagemakerApiRequest) throws ApiException {
ApiResponse> localVarResponse = exportImageForSagemakerWithHttpInfo(modelId, modelVersionId, dominoModelmanagerWebExportImageForSagemakerApiRequest);
return localVarResponse.getData();
}
/**
* Export a Model Image
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportImageForSagemakerApiRequest JSON object with information for exporting a model image (required)
* @return ApiResponse<List<DominoModelmanagerWebModelExportVersionStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> exportImageForSagemakerWithHttpInfo(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForSagemakerApiRequest dominoModelmanagerWebExportImageForSagemakerApiRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = exportImageForSagemakerRequestBuilder(modelId, modelVersionId, dominoModelmanagerWebExportImageForSagemakerApiRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("exportImageForSagemaker", 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 exportImageForSagemakerRequestBuilder(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForSagemakerApiRequest dominoModelmanagerWebExportImageForSagemakerApiRequest) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling exportImageForSagemaker");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling exportImageForSagemaker");
}
// verify the required parameter 'dominoModelmanagerWebExportImageForSagemakerApiRequest' is set
if (dominoModelmanagerWebExportImageForSagemakerApiRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebExportImageForSagemakerApiRequest' when calling exportImageForSagemaker");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/exportImageForSagemaker"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebExportImageForSagemakerApiRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* Export an image to Sagemaker wtihout a Model Dependency
*
* @param dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest JSON object with information for exporting an image into Sagemaker (required)
* @return DominoModelmanagerWebExportVersionStatusWithoutModelResponse
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerWebExportVersionStatusWithoutModelResponse exportImageForSagemakerWithoutModel(DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest) throws ApiException {
ApiResponse localVarResponse = exportImageForSagemakerWithoutModelWithHttpInfo(dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest);
return localVarResponse.getData();
}
/**
* Export an image to Sagemaker wtihout a Model Dependency
*
* @param dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest JSON object with information for exporting an image into Sagemaker (required)
* @return ApiResponse<DominoModelmanagerWebExportVersionStatusWithoutModelResponse>
* @throws ApiException if fails to make API call
*/
public ApiResponse exportImageForSagemakerWithoutModelWithHttpInfo(DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = exportImageForSagemakerWithoutModelRequestBuilder(dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("exportImageForSagemakerWithoutModel", 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 exportImageForSagemakerWithoutModelRequestBuilder(DominoModelmanagerWebExportImageForSagemakerWithoutModelRequest dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest) throws ApiException {
// verify the required parameter 'dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest' is set
if (dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest' when calling exportImageForSagemakerWithoutModel");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/exportImageForSagemakerWithoutModel";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebExportImageForSagemakerWithoutModelRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* Export a Model to Snowflake
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerApiSnowflakeExport JSON object with information for exporting a model into the Snowflake Api (required)
* @return DominoModelmanagerApiModelExportVersionStatus
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiModelExportVersionStatus exportImageForSnowflake(String modelId, String modelVersionId, DominoModelmanagerApiSnowflakeExport dominoModelmanagerApiSnowflakeExport) throws ApiException {
ApiResponse localVarResponse = exportImageForSnowflakeWithHttpInfo(modelId, modelVersionId, dominoModelmanagerApiSnowflakeExport);
return localVarResponse.getData();
}
/**
* Export a Model to Snowflake
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerApiSnowflakeExport JSON object with information for exporting a model into the Snowflake Api (required)
* @return ApiResponse<DominoModelmanagerApiModelExportVersionStatus>
* @throws ApiException if fails to make API call
*/
public ApiResponse exportImageForSnowflakeWithHttpInfo(String modelId, String modelVersionId, DominoModelmanagerApiSnowflakeExport dominoModelmanagerApiSnowflakeExport) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = exportImageForSnowflakeRequestBuilder(modelId, modelVersionId, dominoModelmanagerApiSnowflakeExport);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("exportImageForSnowflake", 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 exportImageForSnowflakeRequestBuilder(String modelId, String modelVersionId, DominoModelmanagerApiSnowflakeExport dominoModelmanagerApiSnowflakeExport) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling exportImageForSnowflake");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling exportImageForSnowflake");
}
// verify the required parameter 'dominoModelmanagerApiSnowflakeExport' is set
if (dominoModelmanagerApiSnowflakeExport == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerApiSnowflakeExport' when calling exportImageForSnowflake");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/exportImageForSnowflake/{modelId}/{modelVersionId}"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerApiSnowflakeExport);
localVarRequestBuilder.method("POST", 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;
}
/**
* Export a Model Image
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportModelImageApiRequest JSON object with information for exporting a model image (required)
* @return List<DominoModelmanagerWebModelExportVersionStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List exportImageToRegistry(String modelId, String modelVersionId, DominoModelmanagerWebExportModelImageApiRequest dominoModelmanagerWebExportModelImageApiRequest) throws ApiException {
ApiResponse> localVarResponse = exportImageToRegistryWithHttpInfo(modelId, modelVersionId, dominoModelmanagerWebExportModelImageApiRequest);
return localVarResponse.getData();
}
/**
* Export a Model Image
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportModelImageApiRequest JSON object with information for exporting a model image (required)
* @return ApiResponse<List<DominoModelmanagerWebModelExportVersionStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> exportImageToRegistryWithHttpInfo(String modelId, String modelVersionId, DominoModelmanagerWebExportModelImageApiRequest dominoModelmanagerWebExportModelImageApiRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = exportImageToRegistryRequestBuilder(modelId, modelVersionId, dominoModelmanagerWebExportModelImageApiRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("exportImageToRegistry", 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 exportImageToRegistryRequestBuilder(String modelId, String modelVersionId, DominoModelmanagerWebExportModelImageApiRequest dominoModelmanagerWebExportModelImageApiRequest) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling exportImageToRegistry");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling exportImageToRegistry");
}
// verify the required parameter 'dominoModelmanagerWebExportModelImageApiRequest' is set
if (dominoModelmanagerWebExportModelImageApiRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebExportModelImageApiRequest' when calling exportImageToRegistry");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/exportImageToRegistry"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebExportModelImageApiRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* Export a Model to Snowflake
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportImageForSnowflakeApiRequest JSON object with information for exporting a model into the Snowflake Api (required)
* @return List<DominoModelmanagerWebModelExportVersionStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List exportModelImageForSnowflake(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForSnowflakeApiRequest dominoModelmanagerWebExportImageForSnowflakeApiRequest) throws ApiException {
ApiResponse> localVarResponse = exportModelImageForSnowflakeWithHttpInfo(modelId, modelVersionId, dominoModelmanagerWebExportImageForSnowflakeApiRequest);
return localVarResponse.getData();
}
/**
* Export a Model to Snowflake
*
* @param modelId (required)
* @param modelVersionId (required)
* @param dominoModelmanagerWebExportImageForSnowflakeApiRequest JSON object with information for exporting a model into the Snowflake Api (required)
* @return ApiResponse<List<DominoModelmanagerWebModelExportVersionStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> exportModelImageForSnowflakeWithHttpInfo(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForSnowflakeApiRequest dominoModelmanagerWebExportImageForSnowflakeApiRequest) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = exportModelImageForSnowflakeRequestBuilder(modelId, modelVersionId, dominoModelmanagerWebExportImageForSnowflakeApiRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("exportModelImageForSnowflake", 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 exportModelImageForSnowflakeRequestBuilder(String modelId, String modelVersionId, DominoModelmanagerWebExportImageForSnowflakeApiRequest dominoModelmanagerWebExportImageForSnowflakeApiRequest) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling exportModelImageForSnowflake");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling exportModelImageForSnowflake");
}
// verify the required parameter 'dominoModelmanagerWebExportImageForSnowflakeApiRequest' is set
if (dominoModelmanagerWebExportImageForSnowflakeApiRequest == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebExportImageForSnowflakeApiRequest' when calling exportModelImageForSnowflake");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/exportImageForSnowflake"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebExportImageForSnowflakeApiRequest);
localVarRequestBuilder.method("POST", 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;
}
/**
* Get model image build logs
*
* @param modelId Id of model to return build logs for. (required)
* @param modelVersionId Id of the version of the model to return build logs for. (required)
* @param buildId build Id of the model to return build logs for. (optional)
* @return List<DominoModelmanagerApiModelBuildLogs>
* @throws ApiException if fails to make API call
*/
public List getBuildLogs(String modelId, String modelVersionId, String buildId) throws ApiException {
ApiResponse> localVarResponse = getBuildLogsWithHttpInfo(modelId, modelVersionId, buildId);
return localVarResponse.getData();
}
/**
* Get model image build logs
*
* @param modelId Id of model to return build logs for. (required)
* @param modelVersionId Id of the version of the model to return build logs for. (required)
* @param buildId build Id of the model to return build logs for. (optional)
* @return ApiResponse<List<DominoModelmanagerApiModelBuildLogs>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getBuildLogsWithHttpInfo(String modelId, String modelVersionId, String buildId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getBuildLogsRequestBuilder(modelId, modelVersionId, buildId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getBuildLogs", 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 getBuildLogsRequestBuilder(String modelId, String modelVersionId, String buildId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling getBuildLogs");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getBuildLogs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getBuildLogs/{modelId}/{modelVersionId}"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "buildId";
localVarQueryParams.addAll(ApiClient.parameterToPairs("buildId", buildId));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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 model build status
*
* @param modelId (required)
* @param modelVersionId (required)
* @return List<DominoModelmanagerWebModelBuildStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List getBuildStatus(String modelId, String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = getBuildStatusWithHttpInfo(modelId, modelVersionId);
return localVarResponse.getData();
}
/**
* Get model build status
*
* @param modelId (required)
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelBuildStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getBuildStatusWithHttpInfo(String modelId, String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getBuildStatusRequestBuilder(modelId, modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getBuildStatus", 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 getBuildStatusRequestBuilder(String modelId, String modelVersionId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling getBuildStatus");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getBuildStatus");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/getBuildStatus"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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 deployment logs for a model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return List<DominoModelmanagerWebModelDeploymentLogsApiResponse>
* @throws ApiException if fails to make API call
*/
public List getDeploymentLogs(String modelId, String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = getDeploymentLogsWithHttpInfo(modelId, modelVersionId);
return localVarResponse.getData();
}
/**
* Get deployment logs for a model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelDeploymentLogsApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getDeploymentLogsWithHttpInfo(String modelId, String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getDeploymentLogsRequestBuilder(modelId, modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getDeploymentLogs", 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 getDeploymentLogsRequestBuilder(String modelId, String modelVersionId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling getDeploymentLogs");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getDeploymentLogs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/modelDeploymentLogs"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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 deployment status for a model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return List<DominoModelmanagerWebModelDeploymentStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List getDeploymentStatus(String modelId, String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = getDeploymentStatusWithHttpInfo(modelId, modelVersionId);
return localVarResponse.getData();
}
/**
* Get deployment status for a model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelDeploymentStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getDeploymentStatusWithHttpInfo(String modelId, String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getDeploymentStatusRequestBuilder(modelId, modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getDeploymentStatus", 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 getDeploymentStatusRequestBuilder(String modelId, String modelVersionId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling getDeploymentStatus");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getDeploymentStatus");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/getModelDeploymentStatus"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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 model image export status
*
* @param exportId (required)
* @return List<DominoModelmanagerWebModelExportVersionStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List getExportImageStatus(String exportId) throws ApiException {
ApiResponse> localVarResponse = getExportImageStatusWithHttpInfo(exportId);
return localVarResponse.getData();
}
/**
* Get model image export status
*
* @param exportId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelExportVersionStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getExportImageStatusWithHttpInfo(String exportId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getExportImageStatusRequestBuilder(exportId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getExportImageStatus", 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 getExportImageStatusRequestBuilder(String exportId) throws ApiException {
// verify the required parameter 'exportId' is set
if (exportId == null) {
throw new ApiException(400, "Missing the required parameter 'exportId' when calling getExportImageStatus");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{exportId}/getExportImageStatus"
.replace("{exportId}", ApiClient.urlEncode(exportId.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 model image export version logs
*
* @param exportVersionId (required)
* @return List<DominoModelmanagerApiModelExportVersionLogs>
* @throws ApiException if fails to make API call
*/
public List getExportVersionLogs(String exportVersionId) throws ApiException {
ApiResponse> localVarResponse = getExportVersionLogsWithHttpInfo(exportVersionId);
return localVarResponse.getData();
}
/**
* Get model image export version logs
*
* @param exportVersionId (required)
* @return ApiResponse<List<DominoModelmanagerApiModelExportVersionLogs>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getExportVersionLogsWithHttpInfo(String exportVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getExportVersionLogsRequestBuilder(exportVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getExportVersionLogs", 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 getExportVersionLogsRequestBuilder(String exportVersionId) throws ApiException {
// verify the required parameter 'exportVersionId' is set
if (exportVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'exportVersionId' when calling getExportVersionLogs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getExportVersionLogs/{exportVersionId}"
.replace("{exportVersionId}", ApiClient.urlEncode(exportVersionId.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 last 24 hour invocation counts for model apis
*
* @param modelVersionId (required)
* @return List<DominoModelmanagerApiModelApiLast24HourInvocationCount>
* @throws ApiException if fails to make API call
*/
public List getLast24HoursInvocationCount(String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = getLast24HoursInvocationCountWithHttpInfo(modelVersionId);
return localVarResponse.getData();
}
/**
* Get last 24 hour invocation counts for model apis
*
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerApiModelApiLast24HourInvocationCount>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getLast24HoursInvocationCountWithHttpInfo(String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getLast24HoursInvocationCountRequestBuilder(modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getLast24HoursInvocationCount", 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 getLast24HoursInvocationCountRequestBuilder(String modelVersionId) throws ApiException {
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getLast24HoursInvocationCount");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/{modelVersionId}/getLast24HoursInvocationCounts"
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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 model image build logs
*
* @param modelId (required)
* @param modelVersionId (required)
* @return List<DominoModelmanagerWebModelBuildLogsApiResponse>
* @throws ApiException if fails to make API call
*/
public List getModelBuildLogs(String modelId, String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = getModelBuildLogsWithHttpInfo(modelId, modelVersionId);
return localVarResponse.getData();
}
/**
* Get model image build logs
*
* @param modelId (required)
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelBuildLogsApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getModelBuildLogsWithHttpInfo(String modelId, String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelBuildLogsRequestBuilder(modelId, modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelBuildLogs", 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 getModelBuildLogsRequestBuilder(String modelId, String modelVersionId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling getModelBuildLogs");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getModelBuildLogs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/getBuildLogs"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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;
}
/**
* Gets model export for a given export id
*
* @param exportId Id of the export to retrieve (required)
* @return DominoModelmanagerApiModelExport
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiModelExport getModelExport(String exportId) throws ApiException {
ApiResponse localVarResponse = getModelExportWithHttpInfo(exportId);
return localVarResponse.getData();
}
/**
* Gets model export for a given export id
*
* @param exportId Id of the export to retrieve (required)
* @return ApiResponse<DominoModelmanagerApiModelExport>
* @throws ApiException if fails to make API call
*/
public ApiResponse getModelExportWithHttpInfo(String exportId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelExportRequestBuilder(exportId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelExport", 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 getModelExportRequestBuilder(String exportId) throws ApiException {
// verify the required parameter 'exportId' is set
if (exportId == null) {
throw new ApiException(400, "Missing the required parameter 'exportId' when calling getModelExport");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getModelExport/{exportId}"
.replace("{exportId}", ApiClient.urlEncode(exportId.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 model image export logs
*
* @param exportId (required)
* @return List<DominoModelmanagerWebModelExportLogsApiResponse>
* @throws ApiException if fails to make API call
*/
public List getModelExportVersionLogs(String exportId) throws ApiException {
ApiResponse> localVarResponse = getModelExportVersionLogsWithHttpInfo(exportId);
return localVarResponse.getData();
}
/**
* Get model image export logs
*
* @param exportId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelExportLogsApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getModelExportVersionLogsWithHttpInfo(String exportId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelExportVersionLogsRequestBuilder(exportId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelExportVersionLogs", 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 getModelExportVersionLogsRequestBuilder(String exportId) throws ApiException {
// verify the required parameter 'exportId' is set
if (exportId == null) {
throw new ApiException(400, "Missing the required parameter 'exportId' when calling getModelExportVersionLogs");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{exportId}/getExportLogs"
.replace("{exportId}", ApiClient.urlEncode(exportId.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;
}
/**
* Gets all model export versions for a given export id.
*
* @param exportId Id of the export to get model export versions for. (required)
* @param startIndex Index of the first result desired by the client. (optional)
* @param count Desired number of results per page. (optional)
* @param sort Field name to sort results on. (optional)
* @param sortDirection Direction to sort results in. Default value depends on sort field. (optional)
* @return DominoModelmanagerApiResponsesModelExportVersionsApiResponse
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiResponsesModelExportVersionsApiResponse getModelExportVersions(String exportId, Integer startIndex, Integer count, String sort, String sortDirection) throws ApiException {
ApiResponse localVarResponse = getModelExportVersionsWithHttpInfo(exportId, startIndex, count, sort, sortDirection);
return localVarResponse.getData();
}
/**
* Gets all model export versions for a given export id.
*
* @param exportId Id of the export to get model export versions for. (required)
* @param startIndex Index of the first result desired by the client. (optional)
* @param count Desired number of results per page. (optional)
* @param sort Field name to sort results on. (optional)
* @param sortDirection Direction to sort results in. Default value depends on sort field. (optional)
* @return ApiResponse<DominoModelmanagerApiResponsesModelExportVersionsApiResponse>
* @throws ApiException if fails to make API call
*/
public ApiResponse getModelExportVersionsWithHttpInfo(String exportId, Integer startIndex, Integer count, String sort, String sortDirection) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelExportVersionsRequestBuilder(exportId, startIndex, count, sort, sortDirection);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelExportVersions", 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 getModelExportVersionsRequestBuilder(String exportId, Integer startIndex, Integer count, String sort, String sortDirection) throws ApiException {
// verify the required parameter 'exportId' is set
if (exportId == null) {
throw new ApiException(400, "Missing the required parameter 'exportId' when calling getModelExportVersions");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getModelExportVersions/{exportId}"
.replace("{exportId}", ApiClient.urlEncode(exportId.toString()));
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "startIndex";
localVarQueryParams.addAll(ApiClient.parameterToPairs("startIndex", startIndex));
localVarQueryParameterBaseName = "count";
localVarQueryParams.addAll(ApiClient.parameterToPairs("count", count));
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
localVarQueryParameterBaseName = "sortDirection";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sortDirection", sortDirection));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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;
}
/**
* Gets all model exports for a given project id.
*
* @param projectId Id of the project to get model exports for. (required)
* @param startIndex Index of the first result desired by the client. (optional)
* @param count Desired number of results per page. (optional)
* @param sort Field name to sort results on. (optional)
* @param sortDirection Direction to sort results in. Default value depends on sort field. (optional)
* @param searchPattern Optional search term to filter by (filters on modelName field) (optional)
* @return DominoModelmanagerApiResponsesModelExportsApiResponse
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiResponsesModelExportsApiResponse getModelExportsByProjectId(String projectId, Integer startIndex, Integer count, String sort, String sortDirection, String searchPattern) throws ApiException {
ApiResponse localVarResponse = getModelExportsByProjectIdWithHttpInfo(projectId, startIndex, count, sort, sortDirection, searchPattern);
return localVarResponse.getData();
}
/**
* Gets all model exports for a given project id.
*
* @param projectId Id of the project to get model exports for. (required)
* @param startIndex Index of the first result desired by the client. (optional)
* @param count Desired number of results per page. (optional)
* @param sort Field name to sort results on. (optional)
* @param sortDirection Direction to sort results in. Default value depends on sort field. (optional)
* @param searchPattern Optional search term to filter by (filters on modelName field) (optional)
* @return ApiResponse<DominoModelmanagerApiResponsesModelExportsApiResponse>
* @throws ApiException if fails to make API call
*/
public ApiResponse getModelExportsByProjectIdWithHttpInfo(String projectId, Integer startIndex, Integer count, String sort, String sortDirection, String searchPattern) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelExportsByProjectIdRequestBuilder(projectId, startIndex, count, sort, sortDirection, searchPattern);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelExportsByProjectId", 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 getModelExportsByProjectIdRequestBuilder(String projectId, Integer startIndex, Integer count, String sort, String sortDirection, String searchPattern) throws ApiException {
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException(400, "Missing the required parameter 'projectId' when calling getModelExportsByProjectId");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getModelExports/{projectId}"
.replace("{projectId}", ApiClient.urlEncode(projectId.toString()));
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "startIndex";
localVarQueryParams.addAll(ApiClient.parameterToPairs("startIndex", startIndex));
localVarQueryParameterBaseName = "count";
localVarQueryParams.addAll(ApiClient.parameterToPairs("count", count));
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
localVarQueryParameterBaseName = "sortDirection";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sortDirection", sortDirection));
localVarQueryParameterBaseName = "searchPattern";
localVarQueryParams.addAll(ApiClient.parameterToPairs("searchPattern", searchPattern));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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 current user's permissions to inform behavior in the UI
*
* @param projectId Project ID. canCreateModel is scoped to the project level. (required)
* @return DominoModelmanagerApiResponsesModelPermissionsForUIApiResponse
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiResponsesModelPermissionsForUIApiResponse getModelPermissionsForProject(String projectId) throws ApiException {
ApiResponse localVarResponse = getModelPermissionsForProjectWithHttpInfo(projectId);
return localVarResponse.getData();
}
/**
* Get current user's permissions to inform behavior in the UI
*
* @param projectId Project ID. canCreateModel is scoped to the project level. (required)
* @return ApiResponse<DominoModelmanagerApiResponsesModelPermissionsForUIApiResponse>
* @throws ApiException if fails to make API call
*/
public ApiResponse getModelPermissionsForProjectWithHttpInfo(String projectId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelPermissionsForProjectRequestBuilder(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("getModelPermissionsForProject", 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 getModelPermissionsForProjectRequestBuilder(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 getModelPermissionsForProject");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/ui/permissions";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "projectId";
localVarQueryParams.addAll(ApiClient.parameterToPairs("projectId", projectId));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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 model's all model versions reproduce in workspace details
*
* @param modelId (required)
* @return List<DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails>
* @throws ApiException if fails to make API call
*/
public List getModelReproductionDetails(String modelId) throws ApiException {
ApiResponse> localVarResponse = getModelReproductionDetailsWithHttpInfo(modelId);
return localVarResponse.getData();
}
/**
* Get model's all model versions reproduce in workspace details
*
* @param modelId (required)
* @return ApiResponse<List<DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getModelReproductionDetailsWithHttpInfo(String modelId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelReproductionDetailsRequestBuilder(modelId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelReproductionDetails", 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 getModelReproductionDetailsRequestBuilder(String modelId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling getModelReproductionDetails");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/{modelId}/getModelReproductionDetails"
.replace("{modelId}", ApiClient.urlEncode(modelId.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 models that use a certain domino environment
*
* @param environmentId ID of the Environment (required)
* @return List<DominoModelmanagerApiModel>
* @throws ApiException if fails to make API call
*/
public List getModelsByEnvironment(String environmentId) throws ApiException {
ApiResponse> localVarResponse = getModelsByEnvironmentWithHttpInfo(environmentId);
return localVarResponse.getData();
}
/**
* Get all models that use a certain domino environment
*
* @param environmentId ID of the Environment (required)
* @return ApiResponse<List<DominoModelmanagerApiModel>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getModelsByEnvironmentWithHttpInfo(String environmentId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelsByEnvironmentRequestBuilder(environmentId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelsByEnvironment", 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 getModelsByEnvironmentRequestBuilder(String environmentId) throws ApiException {
// verify the required parameter 'environmentId' is set
if (environmentId == null) {
throw new ApiException(400, "Missing the required parameter 'environmentId' when calling getModelsByEnvironment");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getModels/environment/{environmentId}"
.replace("{environmentId}", ApiClient.urlEncode(environmentId.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 models in a project
*
* @param projectId (required)
* @return List<DominoModelmanagerApiModel>
* @throws ApiException if fails to make API call
*/
public List getModelsByProject(String projectId) throws ApiException {
ApiResponse> localVarResponse = getModelsByProjectWithHttpInfo(projectId);
return localVarResponse.getData();
}
/**
* Get all models in a project
*
* @param projectId (required)
* @return ApiResponse<List<DominoModelmanagerApiModel>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getModelsByProjectWithHttpInfo(String projectId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelsByProjectRequestBuilder(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("getModelsByProject", 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 getModelsByProjectRequestBuilder(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 getModelsByProject");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/getModels";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "projectId";
localVarQueryParams.addAll(ApiClient.parameterToPairs("projectId", projectId));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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 models for display in the UI
*
* @param projectId Project ID filter (optional)
* @param environmentId Environment ID filter (optional)
* @param pageNumber Page number of the desired results. (optional)
* @param pageSize Desired number of results per page. (optional)
* @param sortBy Field name to sort results on. (optional)
* @param sortDirection Direction to sort results in. (optional)
* @param searchPattern Optional search term to filter by (filters on modelName field). (optional)
* @param registeredModelName Optional search term to filter by (optional)
* @param registeredModelVersion Optional search term to filter by (must be accompanied with registeredModelName). (optional)
* @return DominoModelmanagerApiModelsForUIApiResponse
* @throws ApiException if fails to make API call
*/
public DominoModelmanagerApiModelsForUIApiResponse getModelsForUI(String projectId, String environmentId, Integer pageNumber, Integer pageSize, String sortBy, String sortDirection, String searchPattern, String registeredModelName, Integer registeredModelVersion) throws ApiException {
ApiResponse localVarResponse = getModelsForUIWithHttpInfo(projectId, environmentId, pageNumber, pageSize, sortBy, sortDirection, searchPattern, registeredModelName, registeredModelVersion);
return localVarResponse.getData();
}
/**
* Get models for display in the UI
*
* @param projectId Project ID filter (optional)
* @param environmentId Environment ID filter (optional)
* @param pageNumber Page number of the desired results. (optional)
* @param pageSize Desired number of results per page. (optional)
* @param sortBy Field name to sort results on. (optional)
* @param sortDirection Direction to sort results in. (optional)
* @param searchPattern Optional search term to filter by (filters on modelName field). (optional)
* @param registeredModelName Optional search term to filter by (optional)
* @param registeredModelVersion Optional search term to filter by (must be accompanied with registeredModelName). (optional)
* @return ApiResponse<DominoModelmanagerApiModelsForUIApiResponse>
* @throws ApiException if fails to make API call
*/
public ApiResponse getModelsForUIWithHttpInfo(String projectId, String environmentId, Integer pageNumber, Integer pageSize, String sortBy, String sortDirection, String searchPattern, String registeredModelName, Integer registeredModelVersion) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getModelsForUIRequestBuilder(projectId, environmentId, pageNumber, pageSize, sortBy, sortDirection, searchPattern, registeredModelName, registeredModelVersion);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getModelsForUI", 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 getModelsForUIRequestBuilder(String projectId, String environmentId, Integer pageNumber, Integer pageSize, String sortBy, String sortDirection, String searchPattern, String registeredModelName, Integer registeredModelVersion) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/ui/models";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "projectId";
localVarQueryParams.addAll(ApiClient.parameterToPairs("projectId", projectId));
localVarQueryParameterBaseName = "environmentId";
localVarQueryParams.addAll(ApiClient.parameterToPairs("environmentId", environmentId));
localVarQueryParameterBaseName = "pageNumber";
localVarQueryParams.addAll(ApiClient.parameterToPairs("pageNumber", pageNumber));
localVarQueryParameterBaseName = "pageSize";
localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize));
localVarQueryParameterBaseName = "sortBy";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sortBy", sortBy));
localVarQueryParameterBaseName = "sortDirection";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sortDirection", sortDirection));
localVarQueryParameterBaseName = "searchPattern";
localVarQueryParams.addAll(ApiClient.parameterToPairs("searchPattern", searchPattern));
localVarQueryParameterBaseName = "registeredModelName";
localVarQueryParams.addAll(ApiClient.parameterToPairs("registeredModelName", registeredModelName));
localVarQueryParameterBaseName = "registeredModelVersion";
localVarQueryParams.addAll(ApiClient.parameterToPairs("registeredModelVersion", registeredModelVersion));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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 timeseries of data for model invocation
*
* @param modelVersionId (required)
* @param startTime start time to get the timeseries (required)
* @param endTime end time to get the timeseries (required)
* @return List<DominoModelmanagerApiModelApiAggregatedUsageStatistics>
* @throws ApiException if fails to make API call
*/
public List getTimeSeriesForModelApiInvocations(String modelVersionId, BigDecimal startTime, BigDecimal endTime) throws ApiException {
ApiResponse> localVarResponse = getTimeSeriesForModelApiInvocationsWithHttpInfo(modelVersionId, startTime, endTime);
return localVarResponse.getData();
}
/**
* Get timeseries of data for model invocation
*
* @param modelVersionId (required)
* @param startTime start time to get the timeseries (required)
* @param endTime end time to get the timeseries (required)
* @return ApiResponse<List<DominoModelmanagerApiModelApiAggregatedUsageStatistics>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getTimeSeriesForModelApiInvocationsWithHttpInfo(String modelVersionId, BigDecimal startTime, BigDecimal endTime) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getTimeSeriesForModelApiInvocationsRequestBuilder(modelVersionId, startTime, endTime);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getTimeSeriesForModelApiInvocations", 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 getTimeSeriesForModelApiInvocationsRequestBuilder(String modelVersionId, BigDecimal startTime, BigDecimal endTime) throws ApiException {
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling getTimeSeriesForModelApiInvocations");
}
// verify the required parameter 'startTime' is set
if (startTime == null) {
throw new ApiException(400, "Missing the required parameter 'startTime' when calling getTimeSeriesForModelApiInvocations");
}
// verify the required parameter 'endTime' is set
if (endTime == null) {
throw new ApiException(400, "Missing the required parameter 'endTime' when calling getTimeSeriesForModelApiInvocations");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/{modelVersionId}/getTimeSeries"
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "startTime";
localVarQueryParams.addAll(ApiClient.parameterToPairs("startTime", startTime));
localVarQueryParameterBaseName = "endTime";
localVarQueryParams.addAll(ApiClient.parameterToPairs("endTime", endTime));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
if (localVarQueryStringJoiner.length() != 0) {
queryJoiner.add(localVarQueryStringJoiner.toString());
}
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
} else {
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;
}
/**
* Link model to a goal
*
* @param modelVersionId Domino id of the model version (required)
* @param dominoModelmanagerWebLinkmodelToGoal JSON object with information for linking model to a goal (required)
* @return List<DominoModelmanagerApiModelGoal>
* @throws ApiException if fails to make API call
*/
public List linkModelToGoal(String modelVersionId, DominoModelmanagerWebLinkmodelToGoal dominoModelmanagerWebLinkmodelToGoal) throws ApiException {
ApiResponse> localVarResponse = linkModelToGoalWithHttpInfo(modelVersionId, dominoModelmanagerWebLinkmodelToGoal);
return localVarResponse.getData();
}
/**
* Link model to a goal
*
* @param modelVersionId Domino id of the model version (required)
* @param dominoModelmanagerWebLinkmodelToGoal JSON object with information for linking model to a goal (required)
* @return ApiResponse<List<DominoModelmanagerApiModelGoal>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> linkModelToGoalWithHttpInfo(String modelVersionId, DominoModelmanagerWebLinkmodelToGoal dominoModelmanagerWebLinkmodelToGoal) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = linkModelToGoalRequestBuilder(modelVersionId, dominoModelmanagerWebLinkmodelToGoal);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("linkModelToGoal", 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 linkModelToGoalRequestBuilder(String modelVersionId, DominoModelmanagerWebLinkmodelToGoal dominoModelmanagerWebLinkmodelToGoal) throws ApiException {
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling linkModelToGoal");
}
// verify the required parameter 'dominoModelmanagerWebLinkmodelToGoal' is set
if (dominoModelmanagerWebLinkmodelToGoal == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebLinkmodelToGoal' when calling linkModelToGoal");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/{modelVersionId}/linkModeltoGoal"
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebLinkmodelToGoal);
localVarRequestBuilder.method("POST", 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;
}
/**
* Record invocation
*
* @param dominoModelmanagerWebRecordInvocation invocation recording request (required)
* @throws ApiException if fails to make API call
*/
public void recordInvocation(DominoModelmanagerWebRecordInvocation dominoModelmanagerWebRecordInvocation) throws ApiException {
recordInvocationWithHttpInfo(dominoModelmanagerWebRecordInvocation);
}
/**
* Record invocation
*
* @param dominoModelmanagerWebRecordInvocation invocation recording request (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
*/
public ApiResponse recordInvocationWithHttpInfo(DominoModelmanagerWebRecordInvocation dominoModelmanagerWebRecordInvocation) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = recordInvocationRequestBuilder(dominoModelmanagerWebRecordInvocation);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("recordInvocation", 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 recordInvocationRequestBuilder(DominoModelmanagerWebRecordInvocation dominoModelmanagerWebRecordInvocation) throws ApiException {
// verify the required parameter 'dominoModelmanagerWebRecordInvocation' is set
if (dominoModelmanagerWebRecordInvocation == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebRecordInvocation' when calling recordInvocation");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/recordInvocation";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebRecordInvocation);
localVarRequestBuilder.method("POST", 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;
}
/**
* Start a deployment of model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return List<DominoModelmanagerWebModelDeploymentStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List startDeployment(String modelId, String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = startDeploymentWithHttpInfo(modelId, modelVersionId);
return localVarResponse.getData();
}
/**
* Start a deployment of model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelDeploymentStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> startDeploymentWithHttpInfo(String modelId, String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = startDeploymentRequestBuilder(modelId, modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("startDeployment", 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 startDeploymentRequestBuilder(String modelId, String modelVersionId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling startDeployment");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling startDeployment");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/startModelDeployment"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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;
}
/**
* Stop the deployment of model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return List<DominoModelmanagerWebModelDeploymentStatusApiResponse>
* @throws ApiException if fails to make API call
*/
public List stopDeployment(String modelId, String modelVersionId) throws ApiException {
ApiResponse> localVarResponse = stopDeploymentWithHttpInfo(modelId, modelVersionId);
return localVarResponse.getData();
}
/**
* Stop the deployment of model version
*
* @param modelId (required)
* @param modelVersionId (required)
* @return ApiResponse<List<DominoModelmanagerWebModelDeploymentStatusApiResponse>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> stopDeploymentWithHttpInfo(String modelId, String modelVersionId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = stopDeploymentRequestBuilder(modelId, modelVersionId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("stopDeployment", 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 stopDeploymentRequestBuilder(String modelId, String modelVersionId) throws ApiException {
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException(400, "Missing the required parameter 'modelId' when calling stopDeployment");
}
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling stopDeployment");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/v4/models/{modelId}/{modelVersionId}/stopModelDeployment"
.replace("{modelId}", ApiClient.urlEncode(modelId.toString()))
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.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;
}
/**
* Unlink model to a goal
*
* @param modelVersionId (required)
* @param dominoModelmanagerWebUnlinkmodelFromGoal JSON object with information for unlinking model to a goal (required)
* @return List<DominoModelmanagerApiModelGoal>
* @throws ApiException if fails to make API call
*/
public List unlinkModelFromGoal(String modelVersionId, DominoModelmanagerWebUnlinkmodelFromGoal dominoModelmanagerWebUnlinkmodelFromGoal) throws ApiException {
ApiResponse> localVarResponse = unlinkModelFromGoalWithHttpInfo(modelVersionId, dominoModelmanagerWebUnlinkmodelFromGoal);
return localVarResponse.getData();
}
/**
* Unlink model to a goal
*
* @param modelVersionId (required)
* @param dominoModelmanagerWebUnlinkmodelFromGoal JSON object with information for unlinking model to a goal (required)
* @return ApiResponse<List<DominoModelmanagerApiModelGoal>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> unlinkModelFromGoalWithHttpInfo(String modelVersionId, DominoModelmanagerWebUnlinkmodelFromGoal dominoModelmanagerWebUnlinkmodelFromGoal) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = unlinkModelFromGoalRequestBuilder(modelVersionId, dominoModelmanagerWebUnlinkmodelFromGoal);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("unlinkModelFromGoal", 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 unlinkModelFromGoalRequestBuilder(String modelVersionId, DominoModelmanagerWebUnlinkmodelFromGoal dominoModelmanagerWebUnlinkmodelFromGoal) throws ApiException {
// verify the required parameter 'modelVersionId' is set
if (modelVersionId == null) {
throw new ApiException(400, "Missing the required parameter 'modelVersionId' when calling unlinkModelFromGoal");
}
// verify the required parameter 'dominoModelmanagerWebUnlinkmodelFromGoal' is set
if (dominoModelmanagerWebUnlinkmodelFromGoal == null) {
throw new ApiException(400, "Missing the required parameter 'dominoModelmanagerWebUnlinkmodelFromGoal' when calling unlinkModelFromGoal");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/modelManager/{modelVersionId}/unlinkModelFromGoal"
.replace("{modelVersionId}", ApiClient.urlEncode(modelVersionId.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(dominoModelmanagerWebUnlinkmodelFromGoal);
localVarRequestBuilder.method("POST", 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