com.dominodatalab.api.rest.GatewayApi Maven / Gradle / Ivy
/*
* Domino Data Lab API v4
* This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key.
*
* The version of the OpenAPI document: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.dominodatalab.api.rest;
import com.dominodatalab.api.invoker.ApiClient;
import com.dominodatalab.api.invoker.ApiException;
import com.dominodatalab.api.invoker.ApiResponse;
import com.dominodatalab.api.invoker.Pair;
import com.dominodatalab.api.model.DominoApiErrorResponse;
import com.dominodatalab.api.model.DominoCommonGatewayRunsRunsGatewaySequence;
import com.dominodatalab.api.model.DominoCommonGatewaySearchSearchResultGatewayDTO;
import com.dominodatalab.api.model.DominoNucleusGatewayUsersModelsProjectsDependencyGraph;
import com.dominodatalab.api.model.DominoServerProjectsApiProjectGatewayExecutingRunsByType;
import com.dominodatalab.api.model.DominoServerProjectsApiProjectGatewayOverview;
import com.dominodatalab.api.model.DominoServerProjectsApiProjectGatewaySummary;
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 GatewayApi {
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 GatewayApi() {
this(new ApiClient());
}
public GatewayApi(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;
}
/**
* Retrieves a project for the Project Overview UI
*
* @param ownerName Username of the Owner (required)
* @param projectName Name of the Project (required)
* @return DominoServerProjectsApiProjectGatewayOverview
* @throws ApiException if fails to make API call
*/
public DominoServerProjectsApiProjectGatewayOverview findProjectByOwnerAndName(String ownerName, String projectName) throws ApiException {
ApiResponse localVarResponse = findProjectByOwnerAndNameWithHttpInfo(ownerName, projectName);
return localVarResponse.getData();
}
/**
* Retrieves a project for the Project Overview UI
*
* @param ownerName Username of the Owner (required)
* @param projectName Name of the Project (required)
* @return ApiResponse<DominoServerProjectsApiProjectGatewayOverview>
* @throws ApiException if fails to make API call
*/
public ApiResponse findProjectByOwnerAndNameWithHttpInfo(String ownerName, String projectName) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = findProjectByOwnerAndNameRequestBuilder(ownerName, projectName);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("findProjectByOwnerAndName", 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 findProjectByOwnerAndNameRequestBuilder(String ownerName, String projectName) throws ApiException {
// verify the required parameter 'ownerName' is set
if (ownerName == null) {
throw new ApiException(400, "Missing the required parameter 'ownerName' when calling findProjectByOwnerAndName");
}
// verify the required parameter 'projectName' is set
if (projectName == null) {
throw new ApiException(400, "Missing the required parameter 'projectName' when calling findProjectByOwnerAndName");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/gateway/projects/findProjectByOwnerAndName";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "ownerName";
localVarQueryParams.addAll(ApiClient.parameterToPairs("ownerName", ownerName));
localVarQueryParameterBaseName = "projectName";
localVarQueryParams.addAll(ApiClient.parameterToPairs("projectName", projectName));
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 the executing runs grouped by type for this project
*
* @param projectName the project's name (required)
* @param ownerName the project owner's name (required)
* @return List<DominoServerProjectsApiProjectGatewayExecutingRunsByType>
* @throws ApiException if fails to make API call
*/
public List getExecutingRunsForProject(String projectName, String ownerName) throws ApiException {
ApiResponse> localVarResponse = getExecutingRunsForProjectWithHttpInfo(projectName, ownerName);
return localVarResponse.getData();
}
/**
* Gets the executing runs grouped by type for this project
*
* @param projectName the project's name (required)
* @param ownerName the project owner's name (required)
* @return ApiResponse<List<DominoServerProjectsApiProjectGatewayExecutingRunsByType>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> getExecutingRunsForProjectWithHttpInfo(String projectName, String ownerName) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getExecutingRunsForProjectRequestBuilder(projectName, ownerName);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getExecutingRunsForProject", 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 getExecutingRunsForProjectRequestBuilder(String projectName, String ownerName) throws ApiException {
// verify the required parameter 'projectName' is set
if (projectName == null) {
throw new ApiException(400, "Missing the required parameter 'projectName' when calling getExecutingRunsForProject");
}
// verify the required parameter 'ownerName' is set
if (ownerName == null) {
throw new ApiException(400, "Missing the required parameter 'ownerName' when calling getExecutingRunsForProject");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/gateway/projects/executingResources/{ownerName}/{projectName}"
.replace("{projectName}", ApiClient.urlEncode(projectName.toString()))
.replace("{ownerName}", ApiClient.urlEncode(ownerName.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;
}
/**
* Retrieves projects for the Project List UI, ordered from most to least recently updated
*
* @param relationship The relationship between the current user and the projects to be returned (required)
* @param showCompleted include projects that are completed (optional, default to true)
* @return List<DominoServerProjectsApiProjectGatewaySummary>
* @throws ApiException if fails to make API call
*/
public List listProjects(String relationship, Boolean showCompleted) throws ApiException {
ApiResponse> localVarResponse = listProjectsWithHttpInfo(relationship, showCompleted);
return localVarResponse.getData();
}
/**
* Retrieves projects for the Project List UI, ordered from most to least recently updated
*
* @param relationship The relationship between the current user and the projects to be returned (required)
* @param showCompleted include projects that are completed (optional, default to true)
* @return ApiResponse<List<DominoServerProjectsApiProjectGatewaySummary>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> listProjectsWithHttpInfo(String relationship, Boolean showCompleted) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = listProjectsRequestBuilder(relationship, showCompleted);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("listProjects", 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 listProjectsRequestBuilder(String relationship, Boolean showCompleted) throws ApiException {
// verify the required parameter 'relationship' is set
if (relationship == null) {
throw new ApiException(400, "Missing the required parameter 'relationship' when calling listProjects");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/gateway/projects";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "relationship";
localVarQueryParams.addAll(ApiClient.parameterToPairs("relationship", relationship));
localVarQueryParameterBaseName = "showCompleted";
localVarQueryParams.addAll(ApiClient.parameterToPairs("showCompleted", showCompleted));
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;
}
/**
* API to batch extract Runs data for import into a 3rd party tool
*
* @param batchId Starting id of the batch query (required)
* @param limit The desired size of the batch to be returned (optional)
* @return DominoCommonGatewayRunsRunsGatewaySequence
* @throws ApiException if fails to make API call
*/
public DominoCommonGatewayRunsRunsGatewaySequence listToJson(String batchId, Integer limit) throws ApiException {
ApiResponse localVarResponse = listToJsonWithHttpInfo(batchId, limit);
return localVarResponse.getData();
}
/**
* API to batch extract Runs data for import into a 3rd party tool
*
* @param batchId Starting id of the batch query (required)
* @param limit The desired size of the batch to be returned (optional)
* @return ApiResponse<DominoCommonGatewayRunsRunsGatewaySequence>
* @throws ApiException if fails to make API call
*/
public ApiResponse listToJsonWithHttpInfo(String batchId, Integer limit) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = listToJsonRequestBuilder(batchId, limit);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("listToJson", 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 listToJsonRequestBuilder(String batchId, Integer limit) throws ApiException {
// verify the required parameter 'batchId' is set
if (batchId == null) {
throw new ApiException(400, "Missing the required parameter 'batchId' when calling listToJson");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/gateway/runs/getByBatchId";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "batchId";
localVarQueryParams.addAll(ApiClient.parameterToPairs("batchId", batchId));
localVarQueryParameterBaseName = "limit";
localVarQueryParams.addAll(ApiClient.parameterToPairs("limit", limit));
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;
}
/**
* Retrieves projects dependency graph for a user, and optionally for a specific project
*
* @param ownerUsername Owner username of the project, if dependency graph is being requested for a specific project. (optional)
* @param projectName Project name for which a dependency graph is being requested. When not provided, the dependency graph is for all projects for the current user. (optional)
* @return DominoNucleusGatewayUsersModelsProjectsDependencyGraph
* @throws ApiException if fails to make API call
*/
public DominoNucleusGatewayUsersModelsProjectsDependencyGraph projectsDependencyGraph(String ownerUsername, String projectName) throws ApiException {
ApiResponse localVarResponse = projectsDependencyGraphWithHttpInfo(ownerUsername, projectName);
return localVarResponse.getData();
}
/**
* Retrieves projects dependency graph for a user, and optionally for a specific project
*
* @param ownerUsername Owner username of the project, if dependency graph is being requested for a specific project. (optional)
* @param projectName Project name for which a dependency graph is being requested. When not provided, the dependency graph is for all projects for the current user. (optional)
* @return ApiResponse<DominoNucleusGatewayUsersModelsProjectsDependencyGraph>
* @throws ApiException if fails to make API call
*/
public ApiResponse projectsDependencyGraphWithHttpInfo(String ownerUsername, String projectName) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = projectsDependencyGraphRequestBuilder(ownerUsername, projectName);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("projectsDependencyGraph", 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 projectsDependencyGraphRequestBuilder(String ownerUsername, String projectName) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/gateway/users/projectsDependencyGraph";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "ownerUsername";
localVarQueryParams.addAll(ApiClient.parameterToPairs("ownerUsername", ownerUsername));
localVarQueryParameterBaseName = "projectName";
localVarQueryParams.addAll(ApiClient.parameterToPairs("projectName", projectName));
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;
}
/**
* searches for the specified terms in the relevant areas with a limit on the number of results
*
* @param query Search term. (required)
* @param area (optional)
* @return List<DominoCommonGatewaySearchSearchResultGatewayDTO>
* @throws ApiException if fails to make API call
*/
public List search(String query, String area) throws ApiException {
ApiResponse> localVarResponse = searchWithHttpInfo(query, area);
return localVarResponse.getData();
}
/**
* searches for the specified terms in the relevant areas with a limit on the number of results
*
* @param query Search term. (required)
* @param area (optional)
* @return ApiResponse<List<DominoCommonGatewaySearchSearchResultGatewayDTO>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> searchWithHttpInfo(String query, String area) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = searchRequestBuilder(query, area);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
HttpResponse.BodyHandlers.ofInputStream());
if (memberVarResponseInterceptor != null) {
memberVarResponseInterceptor.accept(localVarResponse);
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("search", 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 searchRequestBuilder(String query, String area) throws ApiException {
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling search");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/gateway/search";
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "query";
localVarQueryParams.addAll(ApiClient.parameterToPairs("query", query));
localVarQueryParameterBaseName = "area";
localVarQueryParams.addAll(ApiClient.parameterToPairs("area", area));
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy