queryParams, List queryParams, List
queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
- updateParamsForAuth(authNames, queryParams, headerParams, cookieParams);
+ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
+ // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams
+ List allQueryParams = new ArrayList(queryParams);
+ allQueryParams.addAll(collectionQueryParams);
- final String url = buildUrl(path, queryParams, collectionQueryParams);
- final Request.Builder reqBuilder = new Request.Builder().url(url);
- processHeaderParams(headerParams, reqBuilder);
- processCookieParams(cookieParams, reqBuilder);
-
- String contentType = (String) headerParams.get("Content-Type");
- // ensuring a default content type
- if (contentType == null) {
- contentType = "application/json";
- }
+ final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams);
+ // prepare HTTP request body
RequestBody reqBody;
+ String contentType = headerParams.get("Content-Type");
+
if (!HttpMethod.permitsRequestBody(method)) {
reqBody = null;
} else if ("application/x-www-form-urlencoded".equals(contentType)) {
@@ -1160,12 +1282,19 @@ public Request buildRequest(String path, String method, List queryParams,
reqBody = null;
} else {
// use an empty request body (for POST, PUT and PATCH)
- reqBody = RequestBody.create("", MediaType.parse(contentType));
+ reqBody = RequestBody.create("", contentType == null ? null : MediaType.parse(contentType));
}
} else {
reqBody = serialize(body, contentType);
}
+ // update parameters with authentication settings
+ updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url));
+
+ final Request.Builder reqBuilder = new Request.Builder().url(url);
+ processHeaderParams(headerParams, reqBuilder);
+ processCookieParams(cookieParams, reqBuilder);
+
// Associate callback with request (if not null) so interceptor can
// access it when creating ProgressResponseBody
reqBuilder.tag(callback);
@@ -1185,14 +1314,30 @@ public Request buildRequest(String path, String method, List queryParams,
/**
* Build full URL by concatenating base path, the given sub path and query parameters.
*
+ * @param baseUrl The base URL
* @param path The sub path
* @param queryParams The query parameters
* @param collectionQueryParams The collection query parameters
* @return The full URL
*/
- public String buildUrl(String path, List queryParams, List collectionQueryParams) {
+ public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) {
final StringBuilder url = new StringBuilder();
- url.append(basePath).append(path);
+ if (baseUrl != null) {
+ url.append(baseUrl).append(path);
+ } else {
+ String baseURL;
+ if (serverIndex != null) {
+ if (serverIndex < 0 || serverIndex >= servers.size()) {
+ throw new ArrayIndexOutOfBoundsException(String.format(
+ "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size()
+ ));
+ }
+ baseURL = servers.get(serverIndex).URL(serverVariables);
+ } else {
+ baseURL = basePath;
+ }
+ url.append(baseURL).append(path);
+ }
if (queryParams != null && !queryParams.isEmpty()) {
// support (constant) query string in `path`, e.g. "/posts?draft=1"
@@ -1272,14 +1417,19 @@ public void processCookieParams(Map cookieParams, Request.Builde
* @param queryParams List of query parameters
* @param headerParams Map of header parameters
* @param cookieParams Map of cookie parameters
+ * @param payload HTTP request body
+ * @param method HTTP method
+ * @param uri URI
+ * @throws com.vertexvis.ApiException If fails to update the parameters
*/
- public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams) {
+ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams,
+ Map cookieParams, String payload, String method, URI uri) throws ApiException {
for (String authName : authNames) {
Authentication auth = authentications.get(authName);
if (auth == null) {
throw new RuntimeException("Authentication undefined: " + authName);
}
- auth.applyToParams(queryParams, headerParams, cookieParams);
+ auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri);
}
}
@@ -1309,12 +1459,18 @@ public RequestBody buildRequestBodyMultipart(Map formParams) {
for (Entry param : formParams.entrySet()) {
if (param.getValue() instanceof File) {
File file = (File) param.getValue();
- Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\"");
- MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
- mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
+ addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
+ } else if (param.getValue() instanceof List) {
+ List list = (List) param.getValue();
+ for (Object item: list) {
+ if (item instanceof File) {
+ addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
+ } else {
+ addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue());
+ }
+ }
} else {
- Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
- mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null));
+ addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue());
}
}
return mpBuilder.build();
@@ -1335,6 +1491,44 @@ public String guessContentTypeFromFile(File file) {
}
}
+ /**
+ * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder.
+ *
+ * @param mpBuilder MultipartBody.Builder
+ * @param key The key of the Header element
+ * @param file The file to add to the Header
+ */
+ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) {
+ Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\"");
+ MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
+ mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
+ }
+
+ /**
+ * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder.
+ *
+ * @param mpBuilder MultipartBody.Builder
+ * @param key The key of the Header element
+ * @param obj The complex object to add to the Header
+ */
+ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) {
+ RequestBody requestBody;
+ if (obj instanceof String) {
+ requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain"));
+ } else {
+ String content;
+ if (obj != null) {
+ content = JSON.serialize(obj);
+ } else {
+ content = null;
+ }
+ requestBody = RequestBody.create(content, MediaType.parse("application/json"));
+ }
+
+ Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"");
+ mpBuilder.addPart(partHeaders, requestBody);
+ }
+
/**
* Get network interceptor to add it to the httpClient to track download progress for
* async requests.
@@ -1402,7 +1596,7 @@ public boolean verify(String hostname, SSLSession session) {
KeyStore caKeyStore = newEmptyKeyStore(password);
int index = 0;
for (Certificate certificate : certificates) {
- String certificateAlias = "ca" + Integer.toString(index++);
+ String certificateAlias = "ca" + (index++);
caKeyStore.setCertificateEntry(certificateAlias, certificate);
}
trustManagerFactory.init(caKeyStore);
@@ -1431,4 +1625,26 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti
throw new AssertionError(e);
}
}
+
+ /**
+ * Convert the HTTP request body to a string.
+ *
+ * @param requestBody The HTTP request object
+ * @return The string representation of the HTTP request body
+ * @throws com.vertexvis.ApiException If fail to serialize the request body object into a string
+ */
+ private String requestBodyToString(RequestBody requestBody) throws ApiException {
+ if (requestBody != null) {
+ try {
+ final Buffer buffer = new Buffer();
+ requestBody.writeTo(buffer);
+ return buffer.readUtf8();
+ } catch (final IOException e) {
+ throw new ApiException(e);
+ }
+ }
+
+ // empty http request body
+ return "";
+ }
}
diff --git a/src/main/java/com/vertexvis/ApiException.java b/src/main/java/com/vertexvis/ApiException.java
index aa9c70b..878d2fd 100644
--- a/src/main/java/com/vertexvis/ApiException.java
+++ b/src/main/java/com/vertexvis/ApiException.java
@@ -16,22 +16,50 @@
import java.util.Map;
import java.util.List;
+import javax.ws.rs.core.GenericType;
+
+/**
+ * ApiException class.
+ */
+@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiException extends RuntimeException {
private int code = 0;
private Map> responseHeaders = null;
private String responseBody = null;
-
+
+ /**
+ * Constructor for ApiException.
+ */
public ApiException() {}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param throwable a {@link java.lang.Throwable} object
+ */
public ApiException(Throwable throwable) {
super(throwable);
}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ */
public ApiException(String message) {
super(message);
}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ * @param throwable a {@link java.lang.Throwable} object
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) {
super(message, throwable);
this.code = code;
@@ -39,23 +67,60 @@ public ApiException(String message, Throwable throwable, int code, MapConstructor for ApiException.
+ *
+ * @param message the error message
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
public ApiException(String message, int code, Map> responseHeaders, String responseBody) {
this(message, (Throwable) null, code, responseHeaders, responseBody);
}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param message the error message
+ * @param throwable a {@link java.lang.Throwable} object
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ */
public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) {
this(message, throwable, code, responseHeaders, null);
}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param code HTTP status code
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
public ApiException(int code, Map> responseHeaders, String responseBody) {
- this((String) null, (Throwable) null, code, responseHeaders, responseBody);
+ this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody);
}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param code HTTP status code
+ * @param message a {@link java.lang.String} object
+ */
public ApiException(int code, String message) {
super(message);
this.code = code;
}
+ /**
+ * Constructor for ApiException.
+ *
+ * @param code HTTP status code
+ * @param message the error message
+ * @param responseHeaders a {@link java.util.Map} of HTTP response headers
+ * @param responseBody the response body
+ */
public ApiException(int code, String message, Map> responseHeaders, String responseBody) {
this(code, message);
this.responseHeaders = responseHeaders;
@@ -88,4 +153,14 @@ public Map> getResponseHeaders() {
public String getResponseBody() {
return responseBody;
}
+
+ /**
+ * Get the exception message including HTTP response data.
+ *
+ * @return The exception message
+ */
+ public String getMessage() {
+ return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s",
+ super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders());
+ }
}
diff --git a/src/main/java/com/vertexvis/ApiResponse.java b/src/main/java/com/vertexvis/ApiResponse.java
index 1cdda44..29f6f41 100644
--- a/src/main/java/com/vertexvis/ApiResponse.java
+++ b/src/main/java/com/vertexvis/ApiResponse.java
@@ -18,8 +18,6 @@
/**
* API response returned by API call.
- *
- * @param The type of data that is deserialized from response body
*/
public class ApiResponse {
final private int statusCode;
@@ -27,6 +25,8 @@ public class ApiResponse {
final private T data;
/**
+ * Constructor for ApiResponse.
+ *
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
*/
@@ -35,6 +35,8 @@ public ApiResponse(int statusCode, Map> headers) {
}
/**
+ * Constructor for ApiResponse.
+ *
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
* @param data The object deserialized from response bod
@@ -45,14 +47,29 @@ public ApiResponse(int statusCode, Map> headers, T data) {
this.data = data;
}
+ /**
+ * Get the status code
.
+ *
+ * @return the status code
+ */
public int getStatusCode() {
return statusCode;
}
+ /**
+ * Get the headers
.
+ *
+ * @return a {@link java.util.Map} of headers
+ */
public Map> getHeaders() {
return headers;
}
+ /**
+ * Get the data
.
+ *
+ * @return the data
+ */
public T getData() {
return data;
}
diff --git a/src/main/java/com/vertexvis/Pair.java b/src/main/java/com/vertexvis/Pair.java
index c5f9530..16a74aa 100644
--- a/src/main/java/com/vertexvis/Pair.java
+++ b/src/main/java/com/vertexvis/Pair.java
@@ -52,10 +52,6 @@ private boolean isValidString(String arg) {
return false;
}
- if (arg.trim().isEmpty()) {
- return false;
- }
-
return true;
}
}
diff --git a/src/main/java/com/vertexvis/ProgressResponseBody.java b/src/main/java/com/vertexvis/ProgressResponseBody.java
index 906a018..3ba2315 100644
--- a/src/main/java/com/vertexvis/ProgressResponseBody.java
+++ b/src/main/java/com/vertexvis/ProgressResponseBody.java
@@ -68,5 +68,3 @@ public long read(Buffer sink, long byteCount) throws IOException {
};
}
}
-
-
diff --git a/src/main/java/com/vertexvis/ServerConfiguration.java b/src/main/java/com/vertexvis/ServerConfiguration.java
index e4f643e..6f928d9 100644
--- a/src/main/java/com/vertexvis/ServerConfiguration.java
+++ b/src/main/java/com/vertexvis/ServerConfiguration.java
@@ -12,7 +12,7 @@ public class ServerConfiguration {
/**
* @param URL A URL to the target host.
- * @param description A describtion of the host designated by the URL.
+ * @param description A description of the host designated by the URL.
* @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
*/
public ServerConfiguration(String URL, String description, Map variables) {
@@ -39,10 +39,10 @@ public String URL(Map variables) {
if (variables != null && variables.containsKey(name)) {
value = variables.get(name);
if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
- throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + ".");
+ throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
}
}
- url = url.replaceAll("\\{" + name + "\\}", value);
+ url = url.replace("{" + name + "}", value);
}
return url;
}
diff --git a/src/main/java/com/vertexvis/api/AccountsApi.java b/src/main/java/com/vertexvis/api/AccountsApi.java
index e7ebafd..5f38d92 100644
--- a/src/main/java/com/vertexvis/api/AccountsApi.java
+++ b/src/main/java/com/vertexvis/api/AccountsApi.java
@@ -40,9 +40,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class AccountsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public AccountsApi() {
this(Configuration.getDefaultApiClient());
@@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createAccount
* @param createAccountRequest (required)
@@ -76,6 +95,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createAccountCall(CreateAccountRequest createAccountRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createAccountRequest;
// create path and map variables
@@ -99,23 +131,22 @@ public okhttp3.Call createAccountCall(CreateAccountRequest createAccountRequest,
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createAccountValidateBeforeCall(CreateAccountRequest createAccountRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createAccountRequest' is set
if (createAccountRequest == null) {
throw new ApiException("Missing the required parameter 'createAccountRequest' when calling createAccount(Async)");
}
-
- okhttp3.Call localVarCall = createAccountCall(createAccountRequest, _callback);
- return localVarCall;
+ return createAccountCall(createAccountRequest, _callback);
}
@@ -201,11 +232,24 @@ public okhttp3.Call createAccountAsync(CreateAccountRequest createAccountRequest
*/
public okhttp3.Call createApplicationForAccountCall(UUID id, AdminCreateApplicationRequest adminCreateApplicationRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = adminCreateApplicationRequest;
// create path and map variables
String localVarPath = "/accounts/{id}/applications"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -225,28 +269,27 @@ public okhttp3.Call createApplicationForAccountCall(UUID id, AdminCreateApplicat
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createApplicationForAccountValidateBeforeCall(UUID id, AdminCreateApplicationRequest adminCreateApplicationRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createApplicationForAccount(Async)");
}
-
+
// verify the required parameter 'adminCreateApplicationRequest' is set
if (adminCreateApplicationRequest == null) {
throw new ApiException("Missing the required parameter 'adminCreateApplicationRequest' when calling createApplicationForAccount(Async)");
}
-
- okhttp3.Call localVarCall = createApplicationForAccountCall(id, adminCreateApplicationRequest, _callback);
- return localVarCall;
+ return createApplicationForAccountCall(id, adminCreateApplicationRequest, _callback);
}
@@ -336,11 +379,24 @@ public okhttp3.Call createApplicationForAccountAsync(UUID id, AdminCreateApplica
*/
public okhttp3.Call deleteAccountCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/accounts/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -357,26 +413,24 @@ public okhttp3.Call deleteAccountCall(UUID id, final ApiCallback _callback) thro
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteAccountValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteAccount(Async)");
}
-
- okhttp3.Call localVarCall = deleteAccountCall(id, _callback);
- return localVarCall;
+ return deleteAccountCall(id, _callback);
}
@@ -456,11 +510,24 @@ public okhttp3.Call deleteAccountAsync(UUID id, final ApiCallback _callbac
*/
public okhttp3.Call getAccountCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/accounts/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -477,26 +544,24 @@ public okhttp3.Call getAccountCall(UUID id, final ApiCallback _callback) throws
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getAccountValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getAccount(Async)");
}
-
- okhttp3.Call localVarCall = getAccountCall(id, _callback);
- return localVarCall;
+ return getAccountCall(id, _callback);
}
@@ -582,11 +647,24 @@ public okhttp3.Call getAccountAsync(UUID id, final ApiCallback _callbac
*/
public okhttp3.Call updateAccountCall(UUID id, UpdateAccountRequest updateAccountRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = updateAccountRequest;
// create path and map variables
String localVarPath = "/accounts/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -606,28 +684,27 @@ public okhttp3.Call updateAccountCall(UUID id, UpdateAccountRequest updateAccoun
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateAccountValidateBeforeCall(UUID id, UpdateAccountRequest updateAccountRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateAccount(Async)");
}
-
+
// verify the required parameter 'updateAccountRequest' is set
if (updateAccountRequest == null) {
throw new ApiException("Missing the required parameter 'updateAccountRequest' when calling updateAccount(Async)");
}
-
- okhttp3.Call localVarCall = updateAccountCall(id, updateAccountRequest, _callback);
- return localVarCall;
+ return updateAccountCall(id, updateAccountRequest, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/ApplicationsApi.java b/src/main/java/com/vertexvis/api/ApplicationsApi.java
index a822c66..9b8f685 100644
--- a/src/main/java/com/vertexvis/api/ApplicationsApi.java
+++ b/src/main/java/com/vertexvis/api/ApplicationsApi.java
@@ -40,9 +40,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class ApplicationsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public ApplicationsApi() {
this(Configuration.getDefaultApiClient());
@@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createApplication
* @param createApplicationRequest (required)
@@ -76,6 +95,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createApplicationCall(CreateApplicationRequest createApplicationRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createApplicationRequest;
// create path and map variables
@@ -99,23 +131,22 @@ public okhttp3.Call createApplicationCall(CreateApplicationRequest createApplica
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createApplicationValidateBeforeCall(CreateApplicationRequest createApplicationRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createApplicationRequest' is set
if (createApplicationRequest == null) {
throw new ApiException("Missing the required parameter 'createApplicationRequest' when calling createApplication(Async)");
}
-
- okhttp3.Call localVarCall = createApplicationCall(createApplicationRequest, _callback);
- return localVarCall;
+ return createApplicationCall(createApplicationRequest, _callback);
}
@@ -199,11 +230,24 @@ public okhttp3.Call createApplicationAsync(CreateApplicationRequest createApplic
*/
public okhttp3.Call deleteApplicationCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/applications/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -220,26 +264,24 @@ public okhttp3.Call deleteApplicationCall(UUID id, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteApplicationValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteApplication(Async)");
}
-
- okhttp3.Call localVarCall = deleteApplicationCall(id, _callback);
- return localVarCall;
+ return deleteApplicationCall(id, _callback);
}
@@ -319,11 +361,24 @@ public okhttp3.Call deleteApplicationAsync(UUID id, final ApiCallback _cal
*/
public okhttp3.Call getApplicationCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/applications/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -340,26 +395,24 @@ public okhttp3.Call getApplicationCall(UUID id, final ApiCallback _callback) thr
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getApplicationValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getApplication(Async)");
}
-
- okhttp3.Call localVarCall = getApplicationCall(id, _callback);
- return localVarCall;
+ return getApplicationCall(id, _callback);
}
@@ -443,6 +496,19 @@ public okhttp3.Call getApplicationAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getApplicationsCall(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
@@ -471,21 +537,19 @@ public okhttp3.Call getApplicationsCall(String pageCursor, Integer pageSize, fin
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getApplicationsValidateBeforeCall(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = getApplicationsCall(pageCursor, pageSize, _callback);
- return localVarCall;
+ return getApplicationsCall(pageCursor, pageSize, _callback);
}
@@ -571,11 +635,24 @@ public okhttp3.Call getApplicationsAsync(String pageCursor, Integer pageSize, fi
*/
public okhttp3.Call updateApplicationCall(UUID id, UpdateApplicationRequest updateApplicationRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = updateApplicationRequest;
// create path and map variables
String localVarPath = "/applications/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -595,28 +672,27 @@ public okhttp3.Call updateApplicationCall(UUID id, UpdateApplicationRequest upda
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateApplicationValidateBeforeCall(UUID id, UpdateApplicationRequest updateApplicationRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateApplication(Async)");
}
-
+
// verify the required parameter 'updateApplicationRequest' is set
if (updateApplicationRequest == null) {
throw new ApiException("Missing the required parameter 'updateApplicationRequest' when calling updateApplication(Async)");
}
-
- okhttp3.Call localVarCall = updateApplicationCall(id, updateApplicationRequest, _callback);
- return localVarCall;
+ return updateApplicationCall(id, updateApplicationRequest, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/BatchesApi.java b/src/main/java/com/vertexvis/api/BatchesApi.java
index 6b37234..bd7df0f 100644
--- a/src/main/java/com/vertexvis/api/BatchesApi.java
+++ b/src/main/java/com/vertexvis/api/BatchesApi.java
@@ -38,9 +38,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class BatchesApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public BatchesApi() {
this(Configuration.getDefaultApiClient());
@@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createBatch
* @param createBatchRequest (required)
@@ -74,6 +93,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createBatchCall(CreateBatchRequest createBatchRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createBatchRequest;
// create path and map variables
@@ -97,23 +129,22 @@ public okhttp3.Call createBatchCall(CreateBatchRequest createBatchRequest, final
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createBatchValidateBeforeCall(CreateBatchRequest createBatchRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createBatchRequest' is set
if (createBatchRequest == null) {
throw new ApiException("Missing the required parameter 'createBatchRequest' when calling createBatch(Async)");
}
-
- okhttp3.Call localVarCall = createBatchCall(createBatchRequest, _callback);
- return localVarCall;
+ return createBatchCall(createBatchRequest, _callback);
}
@@ -197,11 +228,24 @@ public okhttp3.Call createBatchAsync(CreateBatchRequest createBatchRequest, fina
*/
public okhttp3.Call getBatchCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/batches/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -218,26 +262,24 @@ public okhttp3.Call getBatchCall(UUID id, final ApiCallback _callback) throws Ap
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getBatchValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getBatch(Async)");
}
-
- okhttp3.Call localVarCall = getBatchCall(id, _callback);
- return localVarCall;
+ return getBatchCall(id, _callback);
}
@@ -322,11 +364,24 @@ public okhttp3.Call getBatchAsync(UUID id, final ApiCallback _callback) t
*/
public okhttp3.Call getQueuedBatchCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-batches/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -343,26 +398,24 @@ public okhttp3.Call getQueuedBatchCall(UUID id, final ApiCallback _callback) thr
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedBatchValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedBatch(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedBatchCall(id, _callback);
- return localVarCall;
+ return getQueuedBatchCall(id, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/ExportsApi.java b/src/main/java/com/vertexvis/api/ExportsApi.java
index 7897b83..7183921 100644
--- a/src/main/java/com/vertexvis/api/ExportsApi.java
+++ b/src/main/java/com/vertexvis/api/ExportsApi.java
@@ -38,9 +38,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class ExportsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public ExportsApi() {
this(Configuration.getDefaultApiClient());
@@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createExport
* @param createExportRequest (required)
@@ -74,6 +93,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createExportCall(CreateExportRequest createExportRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createExportRequest;
// create path and map variables
@@ -97,23 +129,22 @@ public okhttp3.Call createExportCall(CreateExportRequest createExportRequest, fi
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createExportValidateBeforeCall(CreateExportRequest createExportRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createExportRequest' is set
if (createExportRequest == null) {
throw new ApiException("Missing the required parameter 'createExportRequest' when calling createExport(Async)");
}
-
- okhttp3.Call localVarCall = createExportCall(createExportRequest, _callback);
- return localVarCall;
+ return createExportCall(createExportRequest, _callback);
}
@@ -197,11 +228,24 @@ public okhttp3.Call createExportAsync(CreateExportRequest createExportRequest, f
*/
public okhttp3.Call getExportCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/exports/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -218,26 +262,24 @@ public okhttp3.Call getExportCall(UUID id, final ApiCallback _callback) throws A
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getExportValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getExport(Async)");
}
-
- okhttp3.Call localVarCall = getExportCall(id, _callback);
- return localVarCall;
+ return getExportCall(id, _callback);
}
@@ -322,11 +364,24 @@ public okhttp3.Call getExportAsync(UUID id, final ApiCallback _callback)
*/
public okhttp3.Call getQueuedExportCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-exports/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -343,26 +398,24 @@ public okhttp3.Call getQueuedExportCall(UUID id, final ApiCallback _callback) th
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedExportValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedExport(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedExportCall(id, _callback);
- return localVarCall;
+ return getQueuedExportCall(id, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/FilesApi.java b/src/main/java/com/vertexvis/api/FilesApi.java
index 4b86244..4e05f0c 100644
--- a/src/main/java/com/vertexvis/api/FilesApi.java
+++ b/src/main/java/com/vertexvis/api/FilesApi.java
@@ -39,9 +39,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class FilesApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public FilesApi() {
this(Configuration.getDefaultApiClient());
@@ -59,6 +62,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createFile
* @param createFileRequest (required)
@@ -75,6 +94,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createFileCall(CreateFileRequest createFileRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createFileRequest;
// create path and map variables
@@ -98,23 +130,22 @@ public okhttp3.Call createFileCall(CreateFileRequest createFileRequest, final Ap
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createFileValidateBeforeCall(CreateFileRequest createFileRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createFileRequest' is set
if (createFileRequest == null) {
throw new ApiException("Missing the required parameter 'createFileRequest' when calling createFile(Async)");
}
-
- okhttp3.Call localVarCall = createFileCall(createFileRequest, _callback);
- return localVarCall;
+ return createFileCall(createFileRequest, _callback);
}
@@ -198,11 +229,24 @@ public okhttp3.Call createFileAsync(CreateFileRequest createFileRequest, final A
*/
public okhttp3.Call deleteFileCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/files/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -219,26 +263,24 @@ public okhttp3.Call deleteFileCall(UUID id, final ApiCallback _callback) throws
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteFileValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteFile(Async)");
}
-
- okhttp3.Call localVarCall = deleteFileCall(id, _callback);
- return localVarCall;
+ return deleteFileCall(id, _callback);
}
@@ -322,11 +364,24 @@ public okhttp3.Call deleteFileAsync(UUID id, final ApiCallback _ca
*/
public okhttp3.Call getFileCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/files/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -343,26 +398,24 @@ public okhttp3.Call getFileCall(UUID id, final ApiCallback _callback) throws Api
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getFileValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getFile(Async)");
}
-
- okhttp3.Call localVarCall = getFileCall(id, _callback);
- return localVarCall;
+ return getFileCall(id, _callback);
}
@@ -447,6 +500,19 @@ public okhttp3.Call getFileAsync(UUID id, final ApiCallback _callb
*/
public okhttp3.Call getFilesCall(String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
@@ -479,21 +545,19 @@ public okhttp3.Call getFilesCall(String pageCursor, Integer pageSize, String fil
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getFilesValidateBeforeCall(String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = getFilesCall(pageCursor, pageSize, filterSuppliedId, _callback);
- return localVarCall;
+ return getFilesCall(pageCursor, pageSize, filterSuppliedId, _callback);
}
@@ -582,11 +646,24 @@ public okhttp3.Call getFilesAsync(String pageCursor, Integer pageSize, String fi
*/
public okhttp3.Call uploadFileCall(UUID id, File body, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/files/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -606,28 +683,27 @@ public okhttp3.Call uploadFileCall(UUID id, File body, final ApiCallback _callba
"application/octet-stream"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call uploadFileValidateBeforeCall(UUID id, File body, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling uploadFile(Async)");
}
-
+
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling uploadFile(Async)");
}
-
- okhttp3.Call localVarCall = uploadFileCall(id, body, _callback);
- return localVarCall;
+ return uploadFileCall(id, body, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/GeometrySetsApi.java b/src/main/java/com/vertexvis/api/GeometrySetsApi.java
index bd63c0a..3619ca6 100644
--- a/src/main/java/com/vertexvis/api/GeometrySetsApi.java
+++ b/src/main/java/com/vertexvis/api/GeometrySetsApi.java
@@ -39,9 +39,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class GeometrySetsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public GeometrySetsApi() {
this(Configuration.getDefaultApiClient());
@@ -59,6 +62,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createGeometrySet
* @param createGeometrySetRequest (required)
@@ -75,6 +94,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createGeometrySetCall(CreateGeometrySetRequest createGeometrySetRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createGeometrySetRequest;
// create path and map variables
@@ -98,23 +130,22 @@ public okhttp3.Call createGeometrySetCall(CreateGeometrySetRequest createGeometr
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createGeometrySetValidateBeforeCall(CreateGeometrySetRequest createGeometrySetRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createGeometrySetRequest' is set
if (createGeometrySetRequest == null) {
throw new ApiException("Missing the required parameter 'createGeometrySetRequest' when calling createGeometrySet(Async)");
}
-
- okhttp3.Call localVarCall = createGeometrySetCall(createGeometrySetRequest, _callback);
- return localVarCall;
+ return createGeometrySetCall(createGeometrySetRequest, _callback);
}
@@ -198,11 +229,24 @@ public okhttp3.Call createGeometrySetAsync(CreateGeometrySetRequest createGeomet
*/
public okhttp3.Call getGeometrySetCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/geometry-sets/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -219,26 +263,24 @@ public okhttp3.Call getGeometrySetCall(UUID id, final ApiCallback _callback) thr
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getGeometrySetValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getGeometrySet(Async)");
}
-
- okhttp3.Call localVarCall = getGeometrySetCall(id, _callback);
- return localVarCall;
+ return getGeometrySetCall(id, _callback);
}
@@ -322,6 +364,19 @@ public okhttp3.Call getGeometrySetAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getGeometrySetsCall(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
@@ -350,21 +405,19 @@ public okhttp3.Call getGeometrySetsCall(String pageCursor, Integer pageSize, fin
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getGeometrySetsValidateBeforeCall(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = getGeometrySetsCall(pageCursor, pageSize, _callback);
- return localVarCall;
+ return getGeometrySetsCall(pageCursor, pageSize, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/HitsApi.java b/src/main/java/com/vertexvis/api/HitsApi.java
index eb49147..0d367c1 100644
--- a/src/main/java/com/vertexvis/api/HitsApi.java
+++ b/src/main/java/com/vertexvis/api/HitsApi.java
@@ -37,9 +37,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class HitsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public HitsApi() {
this(Configuration.getDefaultApiClient());
@@ -57,6 +60,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createSceneHit
* @param id The `scene` ID. (required)
@@ -77,11 +96,24 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createSceneHitCall(UUID id, CreateHitRequest createHitRequest, String include, String fieldsPartRevision, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createHitRequest;
// create path and map variables
String localVarPath = "/scenes/{id}/hits"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -109,28 +141,27 @@ public okhttp3.Call createSceneHitCall(UUID id, CreateHitRequest createHitReques
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createSceneHitValidateBeforeCall(UUID id, CreateHitRequest createHitRequest, String include, String fieldsPartRevision, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createSceneHit(Async)");
}
-
+
// verify the required parameter 'createHitRequest' is set
if (createHitRequest == null) {
throw new ApiException("Missing the required parameter 'createHitRequest' when calling createSceneHit(Async)");
}
-
- okhttp3.Call localVarCall = createSceneHitCall(id, createHitRequest, include, fieldsPartRevision, _callback);
- return localVarCall;
+ return createSceneHitCall(id, createHitRequest, include, fieldsPartRevision, _callback);
}
@@ -230,11 +261,24 @@ public okhttp3.Call createSceneHitAsync(UUID id, CreateHitRequest createHitReque
*/
public okhttp3.Call createSceneViewHitCall(UUID id, CreateHitRequest createHitRequest, String include, String fieldsPartRevision, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createHitRequest;
// create path and map variables
String localVarPath = "/scene-views/{id}/hits"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -262,28 +306,27 @@ public okhttp3.Call createSceneViewHitCall(UUID id, CreateHitRequest createHitRe
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createSceneViewHitValidateBeforeCall(UUID id, CreateHitRequest createHitRequest, String include, String fieldsPartRevision, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createSceneViewHit(Async)");
}
-
+
// verify the required parameter 'createHitRequest' is set
if (createHitRequest == null) {
throw new ApiException("Missing the required parameter 'createHitRequest' when calling createSceneViewHit(Async)");
}
-
- okhttp3.Call localVarCall = createSceneViewHitCall(id, createHitRequest, include, fieldsPartRevision, _callback);
- return localVarCall;
+ return createSceneViewHitCall(id, createHitRequest, include, fieldsPartRevision, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/Oauth2Api.java b/src/main/java/com/vertexvis/api/Oauth2Api.java
index 6661dc3..ee24b82 100644
--- a/src/main/java/com/vertexvis/api/Oauth2Api.java
+++ b/src/main/java/com/vertexvis/api/Oauth2Api.java
@@ -40,9 +40,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class Oauth2Api {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public Oauth2Api() {
this(Configuration.getDefaultApiClient());
@@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for adminAcceptConsent
* @param challenge Challenge ID from oauth2 flow (required)
@@ -76,6 +95,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call adminAcceptConsentCall(String challenge, AdminConsentAcceptRequest adminConsentAcceptRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = adminConsentAcceptRequest;
// create path and map variables
@@ -103,23 +135,22 @@ public okhttp3.Call adminAcceptConsentCall(String challenge, AdminConsentAcceptR
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call adminAcceptConsentValidateBeforeCall(String challenge, AdminConsentAcceptRequest adminConsentAcceptRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'challenge' is set
if (challenge == null) {
throw new ApiException("Missing the required parameter 'challenge' when calling adminAcceptConsent(Async)");
}
-
- okhttp3.Call localVarCall = adminAcceptConsentCall(challenge, adminConsentAcceptRequest, _callback);
- return localVarCall;
+ return adminAcceptConsentCall(challenge, adminConsentAcceptRequest, _callback);
}
@@ -203,6 +234,19 @@ public okhttp3.Call adminAcceptConsentAsync(String challenge, AdminConsentAccept
*/
public okhttp3.Call adminAcceptLoginCall(String loginChallenge, AdminLoginAcceptRequest adminLoginAcceptRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = adminLoginAcceptRequest;
// create path and map variables
@@ -230,28 +274,27 @@ public okhttp3.Call adminAcceptLoginCall(String loginChallenge, AdminLoginAccept
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2Internal" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call adminAcceptLoginValidateBeforeCall(String loginChallenge, AdminLoginAcceptRequest adminLoginAcceptRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'loginChallenge' is set
if (loginChallenge == null) {
throw new ApiException("Missing the required parameter 'loginChallenge' when calling adminAcceptLogin(Async)");
}
-
+
// verify the required parameter 'adminLoginAcceptRequest' is set
if (adminLoginAcceptRequest == null) {
throw new ApiException("Missing the required parameter 'adminLoginAcceptRequest' when calling adminAcceptLogin(Async)");
}
-
- okhttp3.Call localVarCall = adminAcceptLoginCall(loginChallenge, adminLoginAcceptRequest, _callback);
- return localVarCall;
+ return adminAcceptLoginCall(loginChallenge, adminLoginAcceptRequest, _callback);
}
@@ -337,6 +380,19 @@ public okhttp3.Call adminAcceptLoginAsync(String loginChallenge, AdminLoginAccep
*/
public okhttp3.Call createTokenCall(String grantType, String scope, String code, String redirectUri, String refreshToken, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
@@ -380,23 +436,22 @@ public okhttp3.Call createTokenCall(String grantType, String scope, String code,
"application/x-www-form-urlencoded"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "basicAuth" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createTokenValidateBeforeCall(String grantType, String scope, String code, String redirectUri, String refreshToken, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'grantType' is set
if (grantType == null) {
throw new ApiException("Missing the required parameter 'grantType' when calling createToken(Async)");
}
-
- okhttp3.Call localVarCall = createTokenCall(grantType, scope, code, redirectUri, refreshToken, _callback);
- return localVarCall;
+ return createTokenCall(grantType, scope, code, redirectUri, refreshToken, _callback);
}
@@ -483,6 +538,19 @@ public okhttp3.Call createTokenAsync(String grantType, String scope, String code
*/
public okhttp3.Call revokeTokenCall(RevokeOAuth2TokenRequest revokeOAuth2TokenRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = revokeOAuth2TokenRequest;
// create path and map variables
@@ -495,7 +563,6 @@ public okhttp3.Call revokeTokenCall(RevokeOAuth2TokenRequest revokeOAuth2TokenRe
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
-
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -506,23 +573,22 @@ public okhttp3.Call revokeTokenCall(RevokeOAuth2TokenRequest revokeOAuth2TokenRe
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "basicAuth" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call revokeTokenValidateBeforeCall(RevokeOAuth2TokenRequest revokeOAuth2TokenRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'revokeOAuth2TokenRequest' is set
if (revokeOAuth2TokenRequest == null) {
throw new ApiException("Missing the required parameter 'revokeOAuth2TokenRequest' when calling revokeToken(Async)");
}
-
- okhttp3.Call localVarCall = revokeTokenCall(revokeOAuth2TokenRequest, _callback);
- return localVarCall;
+ return revokeTokenCall(revokeOAuth2TokenRequest, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/PartRevisionsApi.java b/src/main/java/com/vertexvis/api/PartRevisionsApi.java
index d553230..fecdc69 100644
--- a/src/main/java/com/vertexvis/api/PartRevisionsApi.java
+++ b/src/main/java/com/vertexvis/api/PartRevisionsApi.java
@@ -42,9 +42,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class PartRevisionsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public PartRevisionsApi() {
this(Configuration.getDefaultApiClient());
@@ -62,6 +65,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for deletePartRevision
* @param id The `part-revision` ID. (required)
@@ -78,11 +97,24 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call deletePartRevisionCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/part-revisions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -99,26 +131,24 @@ public okhttp3.Call deletePartRevisionCall(UUID id, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deletePartRevisionValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deletePartRevision(Async)");
}
-
- okhttp3.Call localVarCall = deletePartRevisionCall(id, _callback);
- return localVarCall;
+ return deletePartRevisionCall(id, _callback);
}
@@ -203,11 +233,24 @@ public okhttp3.Call deletePartRevisionAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getPartRevisionCall(UUID id, String fieldsPartRevision, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/part-revisions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -228,26 +271,24 @@ public okhttp3.Call getPartRevisionCall(UUID id, String fieldsPartRevision, fina
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPartRevisionValidateBeforeCall(UUID id, String fieldsPartRevision, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getPartRevision(Async)");
}
-
- okhttp3.Call localVarCall = getPartRevisionCall(id, fieldsPartRevision, _callback);
- return localVarCall;
+ return getPartRevisionCall(id, fieldsPartRevision, _callback);
}
@@ -337,11 +378,24 @@ public okhttp3.Call getPartRevisionAsync(UUID id, String fieldsPartRevision, fin
*/
public okhttp3.Call getPartRevisionsCall(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/parts/{id}/part-revisions"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -370,26 +424,24 @@ public okhttp3.Call getPartRevisionsCall(UUID id, String pageCursor, Integer pag
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPartRevisionsValidateBeforeCall(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getPartRevisions(Async)");
}
-
- okhttp3.Call localVarCall = getPartRevisionsCall(id, pageCursor, pageSize, filterSuppliedId, _callback);
- return localVarCall;
+ return getPartRevisionsCall(id, pageCursor, pageSize, filterSuppliedId, _callback);
}
@@ -482,11 +534,24 @@ public okhttp3.Call getPartRevisionsAsync(UUID id, String pageCursor, Integer pa
*/
public okhttp3.Call getQueuedPartRevisionDeletionCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-part-revision-deletions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -503,26 +568,24 @@ public okhttp3.Call getQueuedPartRevisionDeletionCall(UUID id, final ApiCallback
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedPartRevisionDeletionValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedPartRevisionDeletion(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedPartRevisionDeletionCall(id, _callback);
- return localVarCall;
+ return getQueuedPartRevisionDeletionCall(id, _callback);
}
@@ -619,11 +682,24 @@ public okhttp3.Call getQueuedPartRevisionDeletionAsync(UUID id, final ApiCallbac
*/
public okhttp3.Call renderPartRevisionCall(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/part-revisions/{id}/image"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -680,7 +756,9 @@ public okhttp3.Call renderPartRevisionCall(UUID id, Integer height, Integer widt
}
final String[] localVarAccepts = {
- "image/jpeg", "image/png", "application/vnd.api+json"
+ "image/jpeg",
+ "image/png",
+ "application/vnd.api+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -688,26 +766,24 @@ public okhttp3.Call renderPartRevisionCall(UUID id, Integer height, Integer widt
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call renderPartRevisionValidateBeforeCall(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling renderPartRevision(Async)");
}
-
- okhttp3.Call localVarCall = renderPartRevisionCall(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, _callback);
- return localVarCall;
+ return renderPartRevisionCall(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, _callback);
}
@@ -833,11 +909,24 @@ public okhttp3.Call renderPartRevisionAsync(UUID id, Integer height, Integer wid
*/
public okhttp3.Call updatePartRevisionCall(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = updatePartRevisionRequest;
// create path and map variables
String localVarPath = "/part-revisions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -857,28 +946,27 @@ public okhttp3.Call updatePartRevisionCall(UUID id, UpdatePartRevisionRequest up
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updatePartRevisionValidateBeforeCall(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updatePartRevision(Async)");
}
-
+
// verify the required parameter 'updatePartRevisionRequest' is set
if (updatePartRevisionRequest == null) {
throw new ApiException("Missing the required parameter 'updatePartRevisionRequest' when calling updatePartRevision(Async)");
}
-
- okhttp3.Call localVarCall = updatePartRevisionCall(id, updatePartRevisionRequest, _callback);
- return localVarCall;
+ return updatePartRevisionCall(id, updatePartRevisionRequest, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/PartsApi.java b/src/main/java/com/vertexvis/api/PartsApi.java
index 2b00255..b72b48a 100644
--- a/src/main/java/com/vertexvis/api/PartsApi.java
+++ b/src/main/java/com/vertexvis/api/PartsApi.java
@@ -39,9 +39,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class PartsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public PartsApi() {
this(Configuration.getDefaultApiClient());
@@ -59,6 +62,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createPart
* @param createPartRequest (required)
@@ -76,6 +95,19 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createPartCall(CreatePartRequest createPartRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createPartRequest;
// create path and map variables
@@ -99,23 +131,22 @@ public okhttp3.Call createPartCall(CreatePartRequest createPartRequest, final Ap
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createPartValidateBeforeCall(CreatePartRequest createPartRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'createPartRequest' is set
if (createPartRequest == null) {
throw new ApiException("Missing the required parameter 'createPartRequest' when calling createPart(Async)");
}
-
- okhttp3.Call localVarCall = createPartCall(createPartRequest, _callback);
- return localVarCall;
+ return createPartCall(createPartRequest, _callback);
}
@@ -202,11 +233,24 @@ public okhttp3.Call createPartAsync(CreatePartRequest createPartRequest, final A
*/
public okhttp3.Call deletePartCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/parts/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -223,26 +267,24 @@ public okhttp3.Call deletePartCall(UUID id, final ApiCallback _callback) throws
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deletePartValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deletePart(Async)");
}
-
- okhttp3.Call localVarCall = deletePartCall(id, _callback);
- return localVarCall;
+ return deletePartCall(id, _callback);
}
@@ -327,11 +369,24 @@ public okhttp3.Call deletePartAsync(UUID id, final ApiCallback _callb
*/
public okhttp3.Call getPartCall(UUID id, String include, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/parts/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -352,26 +407,24 @@ public okhttp3.Call getPartCall(UUID id, String include, final ApiCallback _call
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPartValidateBeforeCall(UUID id, String include, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getPart(Async)");
}
-
- okhttp3.Call localVarCall = getPartCall(id, include, _callback);
- return localVarCall;
+ return getPartCall(id, include, _callback);
}
@@ -459,6 +512,19 @@ public okhttp3.Call getPartAsync(UUID id, String include, final ApiCallback
*/
public okhttp3.Call getPartsCall(String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
@@ -491,21 +557,19 @@ public okhttp3.Call getPartsCall(String pageCursor, Integer pageSize, String fil
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPartsValidateBeforeCall(String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = getPartsCall(pageCursor, pageSize, filterSuppliedId, _callback);
- return localVarCall;
+ return getPartsCall(pageCursor, pageSize, filterSuppliedId, _callback);
}
@@ -592,11 +656,24 @@ public okhttp3.Call getPartsAsync(String pageCursor, Integer pageSize, String fi
*/
public okhttp3.Call getQueuedPartDeletionCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-part-deletions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -613,26 +690,24 @@ public okhttp3.Call getQueuedPartDeletionCall(UUID id, final ApiCallback _callba
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedPartDeletionValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedPartDeletion(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedPartDeletionCall(id, _callback);
- return localVarCall;
+ return getQueuedPartDeletionCall(id, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/SceneAlterationsApi.java b/src/main/java/com/vertexvis/api/SceneAlterationsApi.java
index 6935784..c04f4dd 100644
--- a/src/main/java/com/vertexvis/api/SceneAlterationsApi.java
+++ b/src/main/java/com/vertexvis/api/SceneAlterationsApi.java
@@ -39,9 +39,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class SceneAlterationsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public SceneAlterationsApi() {
this(Configuration.getDefaultApiClient());
@@ -59,6 +62,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createSceneAlteration
* @param id The `scene-view` ID. (required)
@@ -77,11 +96,24 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createSceneAlterationCall(UUID id, CreateSceneAlterationRequest createSceneAlterationRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createSceneAlterationRequest;
// create path and map variables
String localVarPath = "/scene-views/{id}/scene-alterations"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -101,28 +133,27 @@ public okhttp3.Call createSceneAlterationCall(UUID id, CreateSceneAlterationRequ
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createSceneAlterationValidateBeforeCall(UUID id, CreateSceneAlterationRequest createSceneAlterationRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createSceneAlteration(Async)");
}
-
+
// verify the required parameter 'createSceneAlterationRequest' is set
if (createSceneAlterationRequest == null) {
throw new ApiException("Missing the required parameter 'createSceneAlterationRequest' when calling createSceneAlteration(Async)");
}
-
- okhttp3.Call localVarCall = createSceneAlterationCall(id, createSceneAlterationRequest, _callback);
- return localVarCall;
+ return createSceneAlterationCall(id, createSceneAlterationRequest, _callback);
}
@@ -213,11 +244,24 @@ public okhttp3.Call createSceneAlterationAsync(UUID id, CreateSceneAlterationReq
*/
public okhttp3.Call getQueuedSceneAlterationCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-scene-alterations/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -234,26 +278,24 @@ public okhttp3.Call getQueuedSceneAlterationCall(UUID id, final ApiCallback _cal
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedSceneAlterationValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedSceneAlteration(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedSceneAlterationCall(id, _callback);
- return localVarCall;
+ return getQueuedSceneAlterationCall(id, _callback);
}
@@ -340,11 +382,24 @@ public okhttp3.Call getQueuedSceneAlterationAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getSceneAlterationCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-alterations/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -361,26 +416,24 @@ public okhttp3.Call getSceneAlterationCall(UUID id, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getSceneAlterationValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getSceneAlteration(Async)");
}
-
- okhttp3.Call localVarCall = getSceneAlterationCall(id, _callback);
- return localVarCall;
+ return getSceneAlterationCall(id, _callback);
}
@@ -464,11 +517,24 @@ public okhttp3.Call getSceneAlterationAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getSceneAlterationsCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-views/{id}/scene-alterations"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -485,26 +551,24 @@ public okhttp3.Call getSceneAlterationsCall(UUID id, final ApiCallback _callback
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getSceneAlterationsValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getSceneAlterations(Async)");
}
-
- okhttp3.Call localVarCall = getSceneAlterationsCall(id, _callback);
- return localVarCall;
+ return getSceneAlterationsCall(id, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/SceneItemOverridesApi.java b/src/main/java/com/vertexvis/api/SceneItemOverridesApi.java
index 3668a5f..a67dcf7 100644
--- a/src/main/java/com/vertexvis/api/SceneItemOverridesApi.java
+++ b/src/main/java/com/vertexvis/api/SceneItemOverridesApi.java
@@ -39,9 +39,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class SceneItemOverridesApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public SceneItemOverridesApi() {
this(Configuration.getDefaultApiClient());
@@ -59,6 +62,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createSceneItemOverride
* @param id The `scene-view` ID. (required)
@@ -77,11 +96,24 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createSceneItemOverrideCall(UUID id, CreateSceneItemOverrideRequest createSceneItemOverrideRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createSceneItemOverrideRequest;
// create path and map variables
String localVarPath = "/scene-views/{id}/scene-item-overrides"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -101,28 +133,27 @@ public okhttp3.Call createSceneItemOverrideCall(UUID id, CreateSceneItemOverride
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createSceneItemOverrideValidateBeforeCall(UUID id, CreateSceneItemOverrideRequest createSceneItemOverrideRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createSceneItemOverride(Async)");
}
-
+
// verify the required parameter 'createSceneItemOverrideRequest' is set
if (createSceneItemOverrideRequest == null) {
throw new ApiException("Missing the required parameter 'createSceneItemOverrideRequest' when calling createSceneItemOverride(Async)");
}
-
- okhttp3.Call localVarCall = createSceneItemOverrideCall(id, createSceneItemOverrideRequest, _callback);
- return localVarCall;
+ return createSceneItemOverrideCall(id, createSceneItemOverrideRequest, _callback);
}
@@ -212,11 +243,24 @@ public okhttp3.Call createSceneItemOverrideAsync(UUID id, CreateSceneItemOverrid
*/
public okhttp3.Call deleteSceneItemOverrideCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-item-overrides/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -233,26 +277,24 @@ public okhttp3.Call deleteSceneItemOverrideCall(UUID id, final ApiCallback _call
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteSceneItemOverrideValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteSceneItemOverride(Async)");
}
-
- okhttp3.Call localVarCall = deleteSceneItemOverrideCall(id, _callback);
- return localVarCall;
+ return deleteSceneItemOverrideCall(id, _callback);
}
@@ -334,11 +376,24 @@ public okhttp3.Call deleteSceneItemOverrideAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getSceneItemOverridesCall(UUID id, String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-views/{id}/scene-item-overrides"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -363,26 +418,24 @@ public okhttp3.Call getSceneItemOverridesCall(UUID id, String pageCursor, Intege
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getSceneItemOverridesValidateBeforeCall(UUID id, String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getSceneItemOverrides(Async)");
}
-
- okhttp3.Call localVarCall = getSceneItemOverridesCall(id, pageCursor, pageSize, _callback);
- return localVarCall;
+ return getSceneItemOverridesCall(id, pageCursor, pageSize, _callback);
}
@@ -474,11 +527,24 @@ public okhttp3.Call getSceneItemOverridesAsync(UUID id, String pageCursor, Integ
*/
public okhttp3.Call updateSceneItemOverrideCall(UUID id, UpdateSceneItemOverrideRequest updateSceneItemOverrideRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = updateSceneItemOverrideRequest;
// create path and map variables
String localVarPath = "/scene-item-overrides/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -498,28 +564,27 @@ public okhttp3.Call updateSceneItemOverrideCall(UUID id, UpdateSceneItemOverride
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateSceneItemOverrideValidateBeforeCall(UUID id, UpdateSceneItemOverrideRequest updateSceneItemOverrideRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateSceneItemOverride(Async)");
}
-
+
// verify the required parameter 'updateSceneItemOverrideRequest' is set
if (updateSceneItemOverrideRequest == null) {
throw new ApiException("Missing the required parameter 'updateSceneItemOverrideRequest' when calling updateSceneItemOverride(Async)");
}
-
- okhttp3.Call localVarCall = updateSceneItemOverrideCall(id, updateSceneItemOverrideRequest, _callback);
- return localVarCall;
+ return updateSceneItemOverrideCall(id, updateSceneItemOverrideRequest, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/SceneItemsApi.java b/src/main/java/com/vertexvis/api/SceneItemsApi.java
index 7534faf..d392601 100644
--- a/src/main/java/com/vertexvis/api/SceneItemsApi.java
+++ b/src/main/java/com/vertexvis/api/SceneItemsApi.java
@@ -40,9 +40,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class SceneItemsApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public SceneItemsApi() {
this(Configuration.getDefaultApiClient());
@@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createSceneItem
* @param id The `scene` ID. (required)
@@ -79,11 +98,24 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createSceneItemCall(UUID id, CreateSceneItemRequest createSceneItemRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createSceneItemRequest;
// create path and map variables
String localVarPath = "/scenes/{id}/scene-items"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -103,28 +135,27 @@ public okhttp3.Call createSceneItemCall(UUID id, CreateSceneItemRequest createSc
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createSceneItemValidateBeforeCall(UUID id, CreateSceneItemRequest createSceneItemRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createSceneItem(Async)");
}
-
+
// verify the required parameter 'createSceneItemRequest' is set
if (createSceneItemRequest == null) {
throw new ApiException("Missing the required parameter 'createSceneItemRequest' when calling createSceneItem(Async)");
}
-
- okhttp3.Call localVarCall = createSceneItemCall(id, createSceneItemRequest, _callback);
- return localVarCall;
+ return createSceneItemCall(id, createSceneItemRequest, _callback);
}
@@ -217,11 +248,24 @@ public okhttp3.Call createSceneItemAsync(UUID id, CreateSceneItemRequest createS
*/
public okhttp3.Call deleteSceneItemCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-items/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -238,26 +282,24 @@ public okhttp3.Call deleteSceneItemCall(UUID id, final ApiCallback _callback) th
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteSceneItemValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteSceneItem(Async)");
}
-
- okhttp3.Call localVarCall = deleteSceneItemCall(id, _callback);
- return localVarCall;
+ return deleteSceneItemCall(id, _callback);
}
@@ -338,11 +380,24 @@ public okhttp3.Call deleteSceneItemAsync(UUID id, final ApiCallback _callb
*/
public okhttp3.Call getQueuedSceneItemCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-scene-items/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -359,26 +414,24 @@ public okhttp3.Call getQueuedSceneItemCall(UUID id, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedSceneItemValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedSceneItem(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedSceneItemCall(id, _callback);
- return localVarCall;
+ return getQueuedSceneItemCall(id, _callback);
}
@@ -465,11 +518,24 @@ public okhttp3.Call getQueuedSceneItemAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getQueuedSceneItemDeletionCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/queued-scene-item-deletions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -486,26 +552,24 @@ public okhttp3.Call getQueuedSceneItemDeletionCall(UUID id, final ApiCallback _c
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getQueuedSceneItemDeletionValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getQueuedSceneItemDeletion(Async)");
}
-
- okhttp3.Call localVarCall = getQueuedSceneItemDeletionCall(id, _callback);
- return localVarCall;
+ return getQueuedSceneItemDeletionCall(id, _callback);
}
@@ -590,11 +654,24 @@ public okhttp3.Call getQueuedSceneItemDeletionAsync(UUID id, final ApiCallback
*/
public okhttp3.Call getSceneItemCall(UUID id, String fieldsSceneItem, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-items/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -615,26 +692,24 @@ public okhttp3.Call getSceneItemCall(UUID id, String fieldsSceneItem, final ApiC
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getSceneItemValidateBeforeCall(UUID id, String fieldsSceneItem, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getSceneItem(Async)");
}
-
- okhttp3.Call localVarCall = getSceneItemCall(id, fieldsSceneItem, _callback);
- return localVarCall;
+ return getSceneItemCall(id, fieldsSceneItem, _callback);
}
@@ -726,11 +801,24 @@ public okhttp3.Call getSceneItemAsync(UUID id, String fieldsSceneItem, final Api
*/
public okhttp3.Call getSceneItemsCall(UUID id, String pageCursor, Integer pageSize, String filterSource, String filterSuppliedId, UUID filterParent, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scenes/{id}/scene-items"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -767,26 +855,24 @@ public okhttp3.Call getSceneItemsCall(UUID id, String pageCursor, Integer pageSi
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getSceneItemsValidateBeforeCall(UUID id, String pageCursor, Integer pageSize, String filterSource, String filterSuppliedId, UUID filterParent, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getSceneItems(Async)");
}
-
- okhttp3.Call localVarCall = getSceneItemsCall(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, _callback);
- return localVarCall;
+ return getSceneItemsCall(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, _callback);
}
@@ -887,11 +973,24 @@ public okhttp3.Call getSceneItemsAsync(UUID id, String pageCursor, Integer pageS
*/
public okhttp3.Call updateSceneItemCall(UUID id, UpdateSceneItemRequest updateSceneItemRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = updateSceneItemRequest;
// create path and map variables
String localVarPath = "/scene-items/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -911,28 +1010,27 @@ public okhttp3.Call updateSceneItemCall(UUID id, UpdateSceneItemRequest updateSc
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateSceneItemValidateBeforeCall(UUID id, UpdateSceneItemRequest updateSceneItemRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateSceneItem(Async)");
}
-
+
// verify the required parameter 'updateSceneItemRequest' is set
if (updateSceneItemRequest == null) {
throw new ApiException("Missing the required parameter 'updateSceneItemRequest' when calling updateSceneItem(Async)");
}
-
- okhttp3.Call localVarCall = updateSceneItemCall(id, updateSceneItemRequest, _callback);
- return localVarCall;
+ return updateSceneItemCall(id, updateSceneItemRequest, _callback);
}
diff --git a/src/main/java/com/vertexvis/api/SceneViewStatesApi.java b/src/main/java/com/vertexvis/api/SceneViewStatesApi.java
index b97aa27..896c91c 100644
--- a/src/main/java/com/vertexvis/api/SceneViewStatesApi.java
+++ b/src/main/java/com/vertexvis/api/SceneViewStatesApi.java
@@ -39,9 +39,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import javax.ws.rs.core.GenericType;
public class SceneViewStatesApi {
private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
public SceneViewStatesApi() {
this(Configuration.getDefaultApiClient());
@@ -59,6 +62,22 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
/**
* Build call for createSceneViewState
* @param id The `scene` ID. (required)
@@ -77,11 +96,24 @@ public void setApiClient(ApiClient apiClient) {
*/
public okhttp3.Call createSceneViewStateCall(UUID id, CreateSceneViewStateRequest createSceneViewStateRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = createSceneViewStateRequest;
// create path and map variables
String localVarPath = "/scenes/{id}/scene-view-states"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -101,28 +133,27 @@ public okhttp3.Call createSceneViewStateCall(UUID id, CreateSceneViewStateReques
"application/vnd.api+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createSceneViewStateValidateBeforeCall(UUID id, CreateSceneViewStateRequest createSceneViewStateRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling createSceneViewState(Async)");
}
-
+
// verify the required parameter 'createSceneViewStateRequest' is set
if (createSceneViewStateRequest == null) {
throw new ApiException("Missing the required parameter 'createSceneViewStateRequest' when calling createSceneViewState(Async)");
}
-
- okhttp3.Call localVarCall = createSceneViewStateCall(id, createSceneViewStateRequest, _callback);
- return localVarCall;
+ return createSceneViewStateCall(id, createSceneViewStateRequest, _callback);
}
@@ -212,11 +243,24 @@ public okhttp3.Call createSceneViewStateAsync(UUID id, CreateSceneViewStateReque
*/
public okhttp3.Call deleteSceneViewStateCall(UUID id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-view-states/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -233,26 +277,24 @@ public okhttp3.Call deleteSceneViewStateCall(UUID id, final ApiCallback _callbac
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteSceneViewStateValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteSceneViewState(Async)");
}
-
- okhttp3.Call localVarCall = deleteSceneViewStateCall(id, _callback);
- return localVarCall;
+ return deleteSceneViewStateCall(id, _callback);
}
@@ -333,11 +375,24 @@ public okhttp3.Call deleteSceneViewStateAsync(UUID id, final ApiCallback _
*/
public okhttp3.Call getSceneViewStateCall(UUID id, String fieldsSceneViewState, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scene-view-states/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -358,26 +413,24 @@ public okhttp3.Call getSceneViewStateCall(UUID id, String fieldsSceneViewState,
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
String[] localVarAuthNames = new String[] { "OAuth2" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getSceneViewStateValidateBeforeCall(UUID id, String fieldsSceneViewState, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getSceneViewState(Async)");
}
-
- okhttp3.Call localVarCall = getSceneViewStateCall(id, fieldsSceneViewState, _callback);
- return localVarCall;
+ return getSceneViewStateCall(id, fieldsSceneViewState, _callback);
}
@@ -468,11 +521,24 @@ public okhttp3.Call getSceneViewStateAsync(UUID id, String fieldsSceneViewState,
*/
public okhttp3.Call getSceneViewStatesCall(UUID id, String pageCursor, Integer pageSize, String fieldsSceneViewState, String filterId, String filterSuppliedId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/scenes/{id}/scene-view-states"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList