diff --git a/equinix-openapi-metal/.openapi-generator/VERSION b/equinix-openapi-metal/.openapi-generator/VERSION
index ed829dbcd..d6b4ec4aa 100644
--- a/equinix-openapi-metal/.openapi-generator/VERSION
+++ b/equinix-openapi-metal/.openapi-generator/VERSION
@@ -1 +1 @@
-6.2.1-SNAPSHOT
\ No newline at end of file
+6.3.0-SNAPSHOT
\ No newline at end of file
diff --git a/equinix-openapi-metal/api/openapi.yaml b/equinix-openapi-metal/api/openapi.yaml
index 2a15ffcb1..74ec033da 100644
--- a/equinix-openapi-metal/api/openapi.yaml
+++ b/equinix-openapi-metal/api/openapi.yaml
@@ -2560,7 +2560,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Device'
+ $ref: '#/components/schemas/HardwareReservation'
description: ok
"401":
content:
@@ -12509,7 +12509,8 @@ components:
public_ipv4_subnet_size: 6.027456183070403
operating_system: operating_system
billing_cycle: hourly
- customdata: ""
+ customdata:
+ key: ""
locked: false
spot_price_max: 1.4658129
plan: c3.large.x86
@@ -12550,9 +12551,12 @@ components:
- yearly
type: string
customdata:
+ additionalProperties: true
+ default: {}
description: |-
Customdata is an arbitrary JSON value that can be accessed via the
metadata service.
+ type: object
description:
description: |-
Any description of the device or how it will be used. This may be used
diff --git a/equinix-openapi-metal/build.gradle b/equinix-openapi-metal/build.gradle
index e1da36370..abdd505b7 100644
--- a/equinix-openapi-metal/build.gradle
+++ b/equinix-openapi-metal/build.gradle
@@ -13,7 +13,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
- classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.3.0'
+ classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0'
}
}
@@ -65,7 +65,7 @@ if(hasProperty('target') && target == 'android') {
task.from variant.javaCompile.destinationDir
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
- artifacts.add('archives', task);
+ artifacts.add('archives', task)
}
}
@@ -106,20 +106,20 @@ ext {
}
dependencies {
- implementation 'io.swagger:swagger-annotations:1.6.5'
+ implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2"
- implementation 'com.squareup.okhttp3:okhttp:4.9.3'
- implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
- implementation 'com.google.code.gson:gson:2.9.0'
+ implementation 'com.squareup.okhttp3:okhttp:4.10.0'
+ implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
+ implementation 'com.google.code.gson:gson:2.9.1'
implementation 'io.gsonfire:gson-fire:1.8.5'
implementation 'javax.ws.rs:jsr311-api:1.1.1'
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
- implementation 'org.openapitools:jackson-databind-nullable:0.2.3'
+ implementation 'org.openapitools:jackson-databind-nullable:0.2.4'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testImplementation 'org.mockito:mockito-core:3.12.4'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
}
javadoc {
diff --git a/equinix-openapi-metal/build.sbt b/equinix-openapi-metal/build.sbt
index 172abd703..24e6f1eac 100644
--- a/equinix-openapi-metal/build.sbt
+++ b/equinix-openapi-metal/build.sbt
@@ -10,18 +10,19 @@ lazy val root = (project in file(".")).
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.6.5",
- "com.squareup.okhttp3" % "okhttp" % "4.9.3",
- "com.squareup.okhttp3" % "logging-interceptor" % "4.9.3",
- "com.google.code.gson" % "gson" % "2.9.0",
+ "com.squareup.okhttp3" % "okhttp" % "4.10.0",
+ "com.squareup.okhttp3" % "logging-interceptor" % "4.10.0",
+ "com.google.code.gson" % "gson" % "2.9.1",
"org.apache.commons" % "commons-lang3" % "3.12.0",
"javax.ws.rs" % "jsr311-api" % "1.1.1",
"javax.ws.rs" % "javax.ws.rs-api" % "2.1.1",
- "org.openapitools" % "jackson-databind-nullable" % "0.2.3",
+ "org.openapitools" % "jackson-databind-nullable" % "0.2.4",
"io.gsonfire" % "gson-fire" % "1.8.5" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
- "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
- "com.novocode" % "junit-interface" % "0.10" % "test"
+ "org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test",
+ "com.novocode" % "junit-interface" % "0.10" % "test",
+ "org.mockito" % "mockito-core" % "3.12.4" % "test"
)
)
diff --git a/equinix-openapi-metal/docs/DeviceCreateInput.md b/equinix-openapi-metal/docs/DeviceCreateInput.md
index c30a53266..9108c19df 100644
--- a/equinix-openapi-metal/docs/DeviceCreateInput.md
+++ b/equinix-openapi-metal/docs/DeviceCreateInput.md
@@ -9,7 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**alwaysPxe** | **Boolean** | When true, devices with a `custom_ipxe` OS will always boot to iPXE. The default setting of false ensures that iPXE will be used on only the first boot. | [optional] |
|**billingCycle** | [**BillingCycleEnum**](#BillingCycleEnum) | The billing cycle of the device. | [optional] |
-|**customdata** | **Object** | Customdata is an arbitrary JSON value that can be accessed via the metadata service. | [optional] |
+|**customdata** | **Map<String, Object>** | Customdata is an arbitrary JSON value that can be accessed via the metadata service. | [optional] |
|**description** | **String** | Any description of the device or how it will be used. This may be used to inform other API consumers with project access. | [optional] |
|**facility** | **List<String>** | The datacenter where the device should be created. Either metro or facility must be provided. The API will accept either a single facility `{ \"facility\": \"f1\" }`, or it can be instructed to create the device in the best available datacenter `{ \"facility\": \"any\" }`. Additionally it is possible to set a prioritized location selection. For example `{ \"facility\": [\"f3\", \"f2\", \"any\"] }` can be used to prioritize `f3` and then `f2` before accepting `any` facility. If none of the facilities provided have availability for the requested device the request will fail. | [optional] |
|**features** | **List<String>** | The features attribute allows you to optionally specify what features your server should have. In the API shorthand syntax, all features listed are `required`: ``` { \"features\": [\"tpm\"] } ``` Alternatively, if you do not require a certain feature, but would prefer to be assigned a server with that feature if there are any available, you may specify that feature with a `preferred` value. The request will not fail if we have no servers with that feature in our inventory. The API offers an alternative syntax for mixing preferred and required features: ``` { \"features\": { \"tpm\": \"required\", \"raid\": \"preferred\" } } ``` The request will only fail if there are no available servers matching the required `tpm` criteria. | [optional] |
diff --git a/equinix-openapi-metal/docs/HardwareReservationsApi.md b/equinix-openapi-metal/docs/HardwareReservationsApi.md
index b06a11254..53f169fbf 100644
--- a/equinix-openapi-metal/docs/HardwareReservationsApi.md
+++ b/equinix-openapi-metal/docs/HardwareReservationsApi.md
@@ -11,7 +11,7 @@ All URIs are relative to *https://api.equinix.com/metal/v1*
# **findHardwareReservationById**
-> Device findHardwareReservationById(id, include, exclude)
+> HardwareReservation findHardwareReservationById(id, include, exclude)
Retrieve a hardware reservation
@@ -43,7 +43,7 @@ public class Example {
List include = Arrays.asList(); // List | Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.
List exclude = Arrays.asList(); // List | Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.
try {
- Device result = apiInstance.findHardwareReservationById(id, include, exclude);
+ HardwareReservation result = apiInstance.findHardwareReservationById(id, include, exclude);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling HardwareReservationsApi#findHardwareReservationById");
@@ -66,7 +66,7 @@ public class Example {
### Return type
-[**Device**](Device.md)
+[**HardwareReservation**](HardwareReservation.md)
### Authorization
diff --git a/equinix-openapi-metal/pom.xml b/equinix-openapi-metal/pom.xml
index ae9426d4c..f685b30a8 100644
--- a/equinix-openapi-metal/pom.xml
+++ b/equinix-openapi-metal/pom.xml
@@ -50,7 +50,7 @@
org.apache.maven.plugins
maven-enforcer-plugin
- 3.0.0
+ 3.1.0
enforce-maven
@@ -93,6 +93,7 @@
maven-dependency-plugin
+ 3.3.0
package
@@ -109,7 +110,7 @@
org.apache.maven.plugins
maven-jar-plugin
- 3.2.0
+ 3.3.0
@@ -123,7 +124,7 @@
org.codehaus.mojo
build-helper-maven-plugin
- 3.2.0
+ 3.3.0
add_sources
@@ -154,7 +155,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.3.2
+ 3.4.1
attach-javadocs
@@ -177,7 +178,7 @@
org.apache.maven.plugins
maven-source-plugin
- 3.2.0
+ 3.2.1
attach-sources
@@ -257,11 +258,6 @@
-
- io.swagger
- swagger-annotations
- ${swagger-core-version}
-
com.google.code.findbugs
@@ -339,18 +335,18 @@
${java.version}
${java.version}
1.8.5
- 1.6.5
- 4.9.3
- 2.9.0
+ 1.6.6
+ 4.10.0
+ 2.9.1
3.12.0
- 0.2.3
+ 0.2.4
1.3.5
- 5.8.2
- 1.6.2
+ 5.9.1
+ 1.9.1
3.12.4
2.1.1
1.1.1
UTF-8
- 2.21.0
+ 2.27.2
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiClient.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiClient.java
index 64f60d474..c03af00c5 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiClient.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiClient.java
@@ -61,6 +61,15 @@
public class ApiClient {
private String basePath = "https://api.equinix.com/metal/v1";
+ protected List servers = new ArrayList(Arrays.asList(
+ new ServerConfiguration(
+ "https://api.equinix.com/metal/v1",
+ "No description provided",
+ new HashMap()
+ )
+ ));
+ protected Integer serverIndex = 0;
+ protected Map serverVariables = null;
private boolean debugging = false;
private Map defaultHeaderMap = new HashMap();
private Map defaultCookieMap = new HashMap();
@@ -156,6 +165,33 @@ public ApiClient setBasePath(String basePath) {
return this;
}
+ public List getServers() {
+ return servers;
+ }
+
+ public ApiClient setServers(List servers) {
+ this.servers = servers;
+ return this;
+ }
+
+ public Integer getServerIndex() {
+ return serverIndex;
+ }
+
+ public ApiClient setServerIndex(Integer serverIndex) {
+ this.serverIndex = serverIndex;
+ return this;
+ }
+
+ public Map getServerVariables() {
+ return serverVariables;
+ }
+
+ public ApiClient setServerVariables(Map serverVariables) {
+ this.serverVariables = serverVariables;
+ return this;
+ }
+
/**
* Get HTTP client
*
@@ -280,7 +316,7 @@ public DateFormat getDateFormat() {
* @return a {@link com.equinix.openapi.ApiClient} object
*/
public ApiClient setDateFormat(DateFormat dateFormat) {
- this.json.setDateFormat(dateFormat);
+ JSON.setDateFormat(dateFormat);
return this;
}
@@ -291,7 +327,7 @@ public ApiClient setDateFormat(DateFormat dateFormat) {
* @return a {@link com.equinix.openapi.ApiClient} object
*/
public ApiClient setSqlDateFormat(DateFormat dateFormat) {
- this.json.setSqlDateFormat(dateFormat);
+ JSON.setSqlDateFormat(dateFormat);
return this;
}
@@ -302,7 +338,7 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) {
* @return a {@link com.equinix.openapi.ApiClient} object
*/
public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
- this.json.setOffsetDateTimeFormat(dateFormat);
+ JSON.setOffsetDateTimeFormat(dateFormat);
return this;
}
@@ -313,7 +349,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
* @return a {@link com.equinix.openapi.ApiClient} object
*/
public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
- this.json.setLocalDateFormat(dateFormat);
+ JSON.setLocalDateFormat(dateFormat);
return this;
}
@@ -324,7 +360,7 @@ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
* @return a {@link com.equinix.openapi.ApiClient} object
*/
public ApiClient setLenientOnJson(boolean lenientOnJson) {
- this.json.setLenientOnJson(lenientOnJson);
+ JSON.setLenientOnJson(lenientOnJson);
return this;
}
@@ -585,7 +621,7 @@ public String parameterToString(Object param) {
return "";
} else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) {
//Serialize to json string and remove the " enclosing characters
- String jsonStr = json.serialize(param);
+ String jsonStr = JSON.serialize(param);
return jsonStr.substring(1, jsonStr.length() - 1);
} else if (param instanceof Collection) {
StringBuilder b = new StringBuilder();
@@ -593,7 +629,7 @@ public String parameterToString(Object param) {
if (b.length() > 0) {
b.append(",");
}
- b.append(String.valueOf(o));
+ b.append(o);
}
return b.toString();
} else {
@@ -844,7 +880,7 @@ public T deserialize(Response response, Type returnType) throws ApiException
contentType = "application/json";
}
if (isJsonMime(contentType)) {
- return json.deserialize(respBody, returnType);
+ return JSON.deserialize(respBody, returnType);
} else if (returnType.equals(String.class)) {
// Expecting string, return the raw response body.
return (T) respBody;
@@ -878,13 +914,13 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException
} else if (isJsonMime(contentType)) {
String content;
if (obj != null) {
- content = json.serialize(obj);
+ content = JSON.serialize(obj);
} else {
content = null;
}
return RequestBody.create(content, MediaType.parse(contentType));
} else if (obj instanceof String) {
- return RequestBody.create(MediaType.parse(contentType), (String) obj);
+ return RequestBody.create((String) obj, MediaType.parse(contentType));
} else {
throw new ApiException("Content type \"" + contentType + "\" is not supported");
}
@@ -1175,7 +1211,18 @@ public String buildUrl(String baseUrl, String path, List queryParams, List
if (baseUrl != null) {
url.append(baseUrl).append(path);
} else {
- url.append(basePath).append(path);
+ 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()) {
@@ -1357,7 +1404,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k
} else {
String content;
if (obj != null) {
- content = json.serialize(obj);
+ content = JSON.serialize(obj);
} else {
content = null;
}
@@ -1435,7 +1482,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);
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiException.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiException.java
index abc57a412..5538c1006 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiException.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/ApiException.java
@@ -99,7 +99,7 @@ public ApiException(String message, Throwable throwable, 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);
}
/**
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/ServerConfiguration.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/ServerConfiguration.java
index f4b7da386..1d7908cdb 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/ServerConfiguration.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/ServerConfiguration.java
@@ -42,7 +42,7 @@ public String URL(Map variables) {
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/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/AuthenticationApi.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/AuthenticationApi.java
index 5e4a2fd8b..34b012a18 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/AuthenticationApi.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/AuthenticationApi.java
@@ -139,15 +139,12 @@ public okhttp3.Call createAPIKeyCall(AuthTokenInput authTokenInput, final ApiCal
@SuppressWarnings("rawtypes")
private okhttp3.Call createAPIKeyValidateBeforeCall(AuthTokenInput authTokenInput, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'authTokenInput' is set
if (authTokenInput == null) {
throw new ApiException("Missing the required parameter 'authTokenInput' when calling createAPIKey(Async)");
}
-
- okhttp3.Call localVarCall = createAPIKeyCall(authTokenInput, _callback);
- return localVarCall;
+ return createAPIKeyCall(authTokenInput, _callback);
}
@@ -249,7 +246,7 @@ public okhttp3.Call createProjectAPIKeyCall(UUID id, AuthTokenInput authTokenInp
// create path and map variables
String localVarPath = "/projects/{id}/api-keys"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -279,20 +276,17 @@ public okhttp3.Call createProjectAPIKeyCall(UUID id, AuthTokenInput authTokenInp
@SuppressWarnings("rawtypes")
private okhttp3.Call createProjectAPIKeyValidateBeforeCall(UUID id, AuthTokenInput authTokenInput, 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 createProjectAPIKey(Async)");
}
-
+
// verify the required parameter 'authTokenInput' is set
if (authTokenInput == null) {
throw new ApiException("Missing the required parameter 'authTokenInput' when calling createProjectAPIKey(Async)");
}
-
- okhttp3.Call localVarCall = createProjectAPIKeyCall(id, authTokenInput, _callback);
- return localVarCall;
+ return createProjectAPIKeyCall(id, authTokenInput, _callback);
}
@@ -395,7 +389,7 @@ public okhttp3.Call deleteAPIKeyCall(UUID id, final ApiCallback _callback) throw
// create path and map variables
String localVarPath = "/api-keys/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -412,7 +406,6 @@ public okhttp3.Call deleteAPIKeyCall(UUID id, final ApiCallback _callback) throw
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -425,15 +418,12 @@ public okhttp3.Call deleteAPIKeyCall(UUID id, final ApiCallback _callback) throw
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteAPIKeyValidateBeforeCall(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 deleteAPIKey(Async)");
}
-
- okhttp3.Call localVarCall = deleteAPIKeyCall(id, _callback);
- return localVarCall;
+ return deleteAPIKeyCall(id, _callback);
}
@@ -526,7 +516,7 @@ public okhttp3.Call deleteUserAPIKeyCall(UUID id, final ApiCallback _callback) t
// create path and map variables
String localVarPath = "/user/api-keys/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -543,7 +533,6 @@ public okhttp3.Call deleteUserAPIKeyCall(UUID id, final ApiCallback _callback) t
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -556,15 +545,12 @@ public okhttp3.Call deleteUserAPIKeyCall(UUID id, final ApiCallback _callback) t
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteUserAPIKeyValidateBeforeCall(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 deleteUserAPIKey(Async)");
}
-
- okhttp3.Call localVarCall = deleteUserAPIKeyCall(id, _callback);
- return localVarCall;
+ return deleteUserAPIKeyCall(id, _callback);
}
@@ -682,7 +668,6 @@ public okhttp3.Call findAPIKeysCall(List include, List exclude,
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -695,10 +680,7 @@ public okhttp3.Call findAPIKeysCall(List include, List exclude,
@SuppressWarnings("rawtypes")
private okhttp3.Call findAPIKeysValidateBeforeCall(List include, List exclude, final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = findAPIKeysCall(include, exclude, _callback);
- return localVarCall;
+ return findAPIKeysCall(include, exclude, _callback);
}
@@ -800,7 +782,7 @@ public okhttp3.Call findProjectAPIKeysCall(UUID id, List include, List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -825,7 +807,6 @@ public okhttp3.Call findProjectAPIKeysCall(UUID id, List include, List include, List include, List exclude, 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 findProjectAPIKeys(Async)");
}
-
- okhttp3.Call localVarCall = findProjectAPIKeysCall(id, include, exclude, _callback);
- return localVarCall;
+ return findProjectAPIKeysCall(id, include, exclude, _callback);
}
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BatchesApi.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BatchesApi.java
index 63957e37b..62063033b 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BatchesApi.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BatchesApi.java
@@ -112,7 +112,7 @@ public okhttp3.Call createDeviceBatchCall(UUID id, InstancesBatchCreateInput ins
// create path and map variables
String localVarPath = "/projects/{id}/devices/batch"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -142,20 +142,17 @@ public okhttp3.Call createDeviceBatchCall(UUID id, InstancesBatchCreateInput ins
@SuppressWarnings("rawtypes")
private okhttp3.Call createDeviceBatchValidateBeforeCall(UUID id, InstancesBatchCreateInput instancesBatchCreateInput, 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 createDeviceBatch(Async)");
}
-
+
// verify the required parameter 'instancesBatchCreateInput' is set
if (instancesBatchCreateInput == null) {
throw new ApiException("Missing the required parameter 'instancesBatchCreateInput' when calling createDeviceBatch(Async)");
}
-
- okhttp3.Call localVarCall = createDeviceBatchCall(id, instancesBatchCreateInput, _callback);
- return localVarCall;
+ return createDeviceBatchCall(id, instancesBatchCreateInput, _callback);
}
@@ -262,7 +259,7 @@ public okhttp3.Call deleteBatchCall(UUID id, Boolean removeAssociatedInstances,
// 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();
@@ -283,7 +280,6 @@ public okhttp3.Call deleteBatchCall(UUID id, Boolean removeAssociatedInstances,
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -296,15 +292,12 @@ public okhttp3.Call deleteBatchCall(UUID id, Boolean removeAssociatedInstances,
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteBatchValidateBeforeCall(UUID id, Boolean removeAssociatedInstances, 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 deleteBatch(Async)");
}
-
- okhttp3.Call localVarCall = deleteBatchCall(id, removeAssociatedInstances, _callback);
- return localVarCall;
+ return deleteBatchCall(id, removeAssociatedInstances, _callback);
}
@@ -402,7 +395,7 @@ public okhttp3.Call findBatchByIdCall(UUID id, List include, List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -427,7 +420,6 @@ public okhttp3.Call findBatchByIdCall(UUID id, List include, List include, List include, List exclude, 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 findBatchById(Async)");
}
-
- okhttp3.Call localVarCall = findBatchByIdCall(id, include, exclude, _callback);
- return localVarCall;
+ return findBatchByIdCall(id, include, exclude, _callback);
}
@@ -554,7 +543,7 @@ public okhttp3.Call findBatchesByProjectCall(UUID id, List include, List
// create path and map variables
String localVarPath = "/projects/{id}/batches"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -579,7 +568,6 @@ public okhttp3.Call findBatchesByProjectCall(UUID id, List include, List
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -592,15 +580,12 @@ public okhttp3.Call findBatchesByProjectCall(UUID id, List include, List
@SuppressWarnings("rawtypes")
private okhttp3.Call findBatchesByProjectValidateBeforeCall(UUID id, List include, List exclude, 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 findBatchesByProject(Async)");
}
-
- okhttp3.Call localVarCall = findBatchesByProjectCall(id, include, exclude, _callback);
- return localVarCall;
+ return findBatchesByProjectCall(id, include, exclude, _callback);
}
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BgpApi.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BgpApi.java
index b095d9882..91ae9fe56 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BgpApi.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/BgpApi.java
@@ -112,7 +112,7 @@ public okhttp3.Call deleteBgpSessionCall(UUID id, final ApiCallback _callback) t
// create path and map variables
String localVarPath = "/bgp/sessions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -129,7 +129,6 @@ public okhttp3.Call deleteBgpSessionCall(UUID id, final ApiCallback _callback) t
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -142,15 +141,12 @@ public okhttp3.Call deleteBgpSessionCall(UUID id, final ApiCallback _callback) t
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteBgpSessionValidateBeforeCall(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 deleteBgpSession(Async)");
}
-
- okhttp3.Call localVarCall = deleteBgpSessionCall(id, _callback);
- return localVarCall;
+ return deleteBgpSessionCall(id, _callback);
}
@@ -249,7 +245,7 @@ public okhttp3.Call findBgpConfigByProjectCall(UUID id, List include, Li
// create path and map variables
String localVarPath = "/projects/{id}/bgp-config"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -274,7 +270,6 @@ public okhttp3.Call findBgpConfigByProjectCall(UUID id, List include, Li
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -287,15 +282,12 @@ public okhttp3.Call findBgpConfigByProjectCall(UUID id, List include, Li
@SuppressWarnings("rawtypes")
private okhttp3.Call findBgpConfigByProjectValidateBeforeCall(UUID id, List include, List exclude, 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 findBgpConfigByProject(Async)");
}
-
- okhttp3.Call localVarCall = findBgpConfigByProjectCall(id, include, exclude, _callback);
- return localVarCall;
+ return findBgpConfigByProjectCall(id, include, exclude, _callback);
}
@@ -404,7 +396,7 @@ public okhttp3.Call findBgpSessionByIdCall(UUID id, List include, List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -429,7 +421,6 @@ public okhttp3.Call findBgpSessionByIdCall(UUID id, List include, List include, List include, List exclude, 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 findBgpSessionById(Async)");
}
-
- okhttp3.Call localVarCall = findBgpSessionByIdCall(id, include, exclude, _callback);
- return localVarCall;
+ return findBgpSessionByIdCall(id, include, exclude, _callback);
}
@@ -557,7 +545,7 @@ public okhttp3.Call findGlobalBgpRangesCall(UUID id, final ApiCallback _callback
// create path and map variables
String localVarPath = "/projects/{id}/global-bgp-ranges"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -574,7 +562,6 @@ public okhttp3.Call findGlobalBgpRangesCall(UUID id, final ApiCallback _callback
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -587,15 +574,12 @@ public okhttp3.Call findGlobalBgpRangesCall(UUID id, final ApiCallback _callback
@SuppressWarnings("rawtypes")
private okhttp3.Call findGlobalBgpRangesValidateBeforeCall(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 findGlobalBgpRanges(Async)");
}
-
- okhttp3.Call localVarCall = findGlobalBgpRangesCall(id, _callback);
- return localVarCall;
+ return findGlobalBgpRangesCall(id, _callback);
}
@@ -695,7 +679,7 @@ public okhttp3.Call findProjectBgpSessionsCall(UUID id, final ApiCallback _callb
// create path and map variables
String localVarPath = "/projects/{id}/bgp/sessions"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -712,7 +696,6 @@ public okhttp3.Call findProjectBgpSessionsCall(UUID id, final ApiCallback _callb
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -725,15 +708,12 @@ public okhttp3.Call findProjectBgpSessionsCall(UUID id, final ApiCallback _callb
@SuppressWarnings("rawtypes")
private okhttp3.Call findProjectBgpSessionsValidateBeforeCall(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 findProjectBgpSessions(Async)");
}
-
- okhttp3.Call localVarCall = findProjectBgpSessionsCall(id, _callback);
- return localVarCall;
+ return findProjectBgpSessionsCall(id, _callback);
}
@@ -833,7 +813,7 @@ public okhttp3.Call requestBgpConfigCall(UUID id, BgpConfigRequestInput bgpConfi
// create path and map variables
String localVarPath = "/projects/{id}/bgp-configs"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -863,20 +843,17 @@ public okhttp3.Call requestBgpConfigCall(UUID id, BgpConfigRequestInput bgpConfi
@SuppressWarnings("rawtypes")
private okhttp3.Call requestBgpConfigValidateBeforeCall(UUID id, BgpConfigRequestInput bgpConfigRequestInput, 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 requestBgpConfig(Async)");
}
-
+
// verify the required parameter 'bgpConfigRequestInput' is set
if (bgpConfigRequestInput == null) {
throw new ApiException("Missing the required parameter 'bgpConfigRequestInput' when calling requestBgpConfig(Async)");
}
-
- okhttp3.Call localVarCall = requestBgpConfigCall(id, bgpConfigRequestInput, _callback);
- return localVarCall;
+ return requestBgpConfigCall(id, bgpConfigRequestInput, _callback);
}
@@ -981,7 +958,7 @@ public okhttp3.Call updateBgpSessionCall(UUID id, Boolean body, final ApiCallbac
// create path and map variables
String localVarPath = "/bgp/sessions/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1011,20 +988,17 @@ public okhttp3.Call updateBgpSessionCall(UUID id, Boolean body, final ApiCallbac
@SuppressWarnings("rawtypes")
private okhttp3.Call updateBgpSessionValidateBeforeCall(UUID id, Boolean 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 updateBgpSession(Async)");
}
-
+
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updateBgpSession(Async)");
}
-
- okhttp3.Call localVarCall = updateBgpSessionCall(id, body, _callback);
- return localVarCall;
+ return updateBgpSessionCall(id, body, _callback);
}
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/CapacityApi.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/CapacityApi.java
index 56ec8be53..bb11ae68a 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/CapacityApi.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/CapacityApi.java
@@ -141,15 +141,12 @@ public okhttp3.Call checkCapacityForFacilityCall(CapacityInput capacityInput, fi
@SuppressWarnings("rawtypes")
private okhttp3.Call checkCapacityForFacilityValidateBeforeCall(CapacityInput capacityInput, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'capacityInput' is set
if (capacityInput == null) {
throw new ApiException("Missing the required parameter 'capacityInput' when calling checkCapacityForFacility(Async)");
}
-
- okhttp3.Call localVarCall = checkCapacityForFacilityCall(capacityInput, _callback);
- return localVarCall;
+ return checkCapacityForFacilityCall(capacityInput, _callback);
}
@@ -275,15 +272,12 @@ public okhttp3.Call checkCapacityForMetroCall(CapacityPerMetroInput capacityPerM
@SuppressWarnings("rawtypes")
private okhttp3.Call checkCapacityForMetroValidateBeforeCall(CapacityPerMetroInput capacityPerMetroInput, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'capacityPerMetroInput' is set
if (capacityPerMetroInput == null) {
throw new ApiException("Missing the required parameter 'capacityPerMetroInput' when calling checkCapacityForMetro(Async)");
}
-
- okhttp3.Call localVarCall = checkCapacityForMetroCall(capacityPerMetroInput, _callback);
- return localVarCall;
+ return checkCapacityForMetroCall(capacityPerMetroInput, _callback);
}
@@ -394,7 +388,6 @@ public okhttp3.Call findCapacityForFacilityCall(final ApiCallback _callback) thr
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -407,10 +400,7 @@ public okhttp3.Call findCapacityForFacilityCall(final ApiCallback _callback) thr
@SuppressWarnings("rawtypes")
private okhttp3.Call findCapacityForFacilityValidateBeforeCall(final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = findCapacityForFacilityCall(_callback);
- return localVarCall;
+ return findCapacityForFacilityCall(_callback);
}
@@ -515,7 +505,6 @@ public okhttp3.Call findCapacityForMetroCall(final ApiCallback _callback) throws
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -528,10 +517,7 @@ public okhttp3.Call findCapacityForMetroCall(final ApiCallback _callback) throws
@SuppressWarnings("rawtypes")
private okhttp3.Call findCapacityForMetroValidateBeforeCall(final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = findCapacityForMetroCall(_callback);
- return localVarCall;
+ return findCapacityForMetroCall(_callback);
}
@@ -622,7 +608,7 @@ public okhttp3.Call findOrganizationCapacityPerFacilityCall(UUID id, final ApiCa
// create path and map variables
String localVarPath = "/organizations/{id}/capacity"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -639,7 +625,6 @@ public okhttp3.Call findOrganizationCapacityPerFacilityCall(UUID id, final ApiCa
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -652,15 +637,12 @@ public okhttp3.Call findOrganizationCapacityPerFacilityCall(UUID id, final ApiCa
@SuppressWarnings("rawtypes")
private okhttp3.Call findOrganizationCapacityPerFacilityValidateBeforeCall(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 findOrganizationCapacityPerFacility(Async)");
}
-
- okhttp3.Call localVarCall = findOrganizationCapacityPerFacilityCall(id, _callback);
- return localVarCall;
+ return findOrganizationCapacityPerFacilityCall(id, _callback);
}
@@ -757,7 +739,7 @@ public okhttp3.Call findOrganizationCapacityPerMetroCall(UUID id, final ApiCallb
// create path and map variables
String localVarPath = "/organizations/{id}/capacity/metros"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -774,7 +756,6 @@ public okhttp3.Call findOrganizationCapacityPerMetroCall(UUID id, final ApiCallb
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -787,15 +768,12 @@ public okhttp3.Call findOrganizationCapacityPerMetroCall(UUID id, final ApiCallb
@SuppressWarnings("rawtypes")
private okhttp3.Call findOrganizationCapacityPerMetroValidateBeforeCall(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 findOrganizationCapacityPerMetro(Async)");
}
-
- okhttp3.Call localVarCall = findOrganizationCapacityPerMetroCall(id, _callback);
- return localVarCall;
+ return findOrganizationCapacityPerMetroCall(id, _callback);
}
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/ConnectionsApi.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/ConnectionsApi.java
index e176d5197..3e6348073 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/ConnectionsApi.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/ConnectionsApi.java
@@ -118,8 +118,8 @@ public okhttp3.Call createConnectionPortVirtualCircuitCall(UUID connectionId, UU
// create path and map variables
String localVarPath = "/connections/{connection_id}/ports/{port_id}/virtual-circuits"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()))
- .replaceAll("\\{" + "port_id" + "\\}", localVarApiClient.escapeString(portId.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()))
+ .replace("{" + "port_id" + "}", localVarApiClient.escapeString(portId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -149,25 +149,22 @@ public okhttp3.Call createConnectionPortVirtualCircuitCall(UUID connectionId, UU
@SuppressWarnings("rawtypes")
private okhttp3.Call createConnectionPortVirtualCircuitValidateBeforeCall(UUID connectionId, UUID portId, CreateConnectionPortVirtualCircuitRequest createConnectionPortVirtualCircuitRequest, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling createConnectionPortVirtualCircuit(Async)");
}
-
+
// verify the required parameter 'portId' is set
if (portId == null) {
throw new ApiException("Missing the required parameter 'portId' when calling createConnectionPortVirtualCircuit(Async)");
}
-
+
// verify the required parameter 'createConnectionPortVirtualCircuitRequest' is set
if (createConnectionPortVirtualCircuitRequest == null) {
throw new ApiException("Missing the required parameter 'createConnectionPortVirtualCircuitRequest' when calling createConnectionPortVirtualCircuit(Async)");
}
-
- okhttp3.Call localVarCall = createConnectionPortVirtualCircuitCall(connectionId, portId, createConnectionPortVirtualCircuitRequest, _callback);
- return localVarCall;
+ return createConnectionPortVirtualCircuitCall(connectionId, portId, createConnectionPortVirtualCircuitRequest, _callback);
}
@@ -272,7 +269,7 @@ public okhttp3.Call createOrganizationInterconnectionCall(UUID organizationId, I
// create path and map variables
String localVarPath = "/organizations/{organization_id}/connections"
- .replaceAll("\\{" + "organization_id" + "\\}", localVarApiClient.escapeString(organizationId.toString()));
+ .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -302,20 +299,17 @@ public okhttp3.Call createOrganizationInterconnectionCall(UUID organizationId, I
@SuppressWarnings("rawtypes")
private okhttp3.Call createOrganizationInterconnectionValidateBeforeCall(UUID organizationId, InterconnectionCreateInput interconnectionCreateInput, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
throw new ApiException("Missing the required parameter 'organizationId' when calling createOrganizationInterconnection(Async)");
}
-
+
// verify the required parameter 'interconnectionCreateInput' is set
if (interconnectionCreateInput == null) {
throw new ApiException("Missing the required parameter 'interconnectionCreateInput' when calling createOrganizationInterconnection(Async)");
}
-
- okhttp3.Call localVarCall = createOrganizationInterconnectionCall(organizationId, interconnectionCreateInput, _callback);
- return localVarCall;
+ return createOrganizationInterconnectionCall(organizationId, interconnectionCreateInput, _callback);
}
@@ -419,7 +413,7 @@ public okhttp3.Call createProjectInterconnectionCall(UUID projectId, Interconnec
// create path and map variables
String localVarPath = "/projects/{project_id}/connections"
- .replaceAll("\\{" + "project_id" + "\\}", localVarApiClient.escapeString(projectId.toString()));
+ .replace("{" + "project_id" + "}", localVarApiClient.escapeString(projectId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -449,20 +443,17 @@ public okhttp3.Call createProjectInterconnectionCall(UUID projectId, Interconnec
@SuppressWarnings("rawtypes")
private okhttp3.Call createProjectInterconnectionValidateBeforeCall(UUID projectId, InterconnectionCreateInput interconnectionCreateInput, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException("Missing the required parameter 'projectId' when calling createProjectInterconnection(Async)");
}
-
+
// verify the required parameter 'interconnectionCreateInput' is set
if (interconnectionCreateInput == null) {
throw new ApiException("Missing the required parameter 'interconnectionCreateInput' when calling createProjectInterconnection(Async)");
}
-
- okhttp3.Call localVarCall = createProjectInterconnectionCall(projectId, interconnectionCreateInput, _callback);
- return localVarCall;
+ return createProjectInterconnectionCall(projectId, interconnectionCreateInput, _callback);
}
@@ -562,7 +553,7 @@ public okhttp3.Call deleteInterconnectionCall(UUID connectionId, final ApiCallba
// create path and map variables
String localVarPath = "/connections/{connection_id}"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -579,7 +570,6 @@ public okhttp3.Call deleteInterconnectionCall(UUID connectionId, final ApiCallba
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -592,15 +582,12 @@ public okhttp3.Call deleteInterconnectionCall(UUID connectionId, final ApiCallba
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteInterconnectionValidateBeforeCall(UUID connectionId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling deleteInterconnection(Async)");
}
-
- okhttp3.Call localVarCall = deleteInterconnectionCall(connectionId, _callback);
- return localVarCall;
+ return deleteInterconnectionCall(connectionId, _callback);
}
@@ -697,7 +684,7 @@ public okhttp3.Call deleteVirtualCircuitCall(UUID id, final ApiCallback _callbac
// create path and map variables
String localVarPath = "/virtual-circuits/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -714,7 +701,6 @@ public okhttp3.Call deleteVirtualCircuitCall(UUID id, final ApiCallback _callbac
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -727,15 +713,12 @@ public okhttp3.Call deleteVirtualCircuitCall(UUID id, final ApiCallback _callbac
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteVirtualCircuitValidateBeforeCall(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 deleteVirtualCircuit(Async)");
}
-
- okhttp3.Call localVarCall = deleteVirtualCircuitCall(id, _callback);
- return localVarCall;
+ return deleteVirtualCircuitCall(id, _callback);
}
@@ -833,8 +816,8 @@ public okhttp3.Call getConnectionPortCall(UUID connectionId, UUID id, final ApiC
// create path and map variables
String localVarPath = "/connections/{connection_id}/ports/{id}"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()))
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -851,7 +834,6 @@ public okhttp3.Call getConnectionPortCall(UUID connectionId, UUID id, final ApiC
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -864,20 +846,17 @@ public okhttp3.Call getConnectionPortCall(UUID connectionId, UUID id, final ApiC
@SuppressWarnings("rawtypes")
private okhttp3.Call getConnectionPortValidateBeforeCall(UUID connectionId, UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling getConnectionPort(Async)");
}
-
+
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getConnectionPort(Async)");
}
-
- okhttp3.Call localVarCall = getConnectionPortCall(connectionId, id, _callback);
- return localVarCall;
+ return getConnectionPortCall(connectionId, id, _callback);
}
@@ -977,7 +956,7 @@ public okhttp3.Call getInterconnectionCall(UUID connectionId, final ApiCallback
// create path and map variables
String localVarPath = "/connections/{connection_id}"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -994,7 +973,6 @@ public okhttp3.Call getInterconnectionCall(UUID connectionId, final ApiCallback
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1007,15 +985,12 @@ public okhttp3.Call getInterconnectionCall(UUID connectionId, final ApiCallback
@SuppressWarnings("rawtypes")
private okhttp3.Call getInterconnectionValidateBeforeCall(UUID connectionId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling getInterconnection(Async)");
}
-
- okhttp3.Call localVarCall = getInterconnectionCall(connectionId, _callback);
- return localVarCall;
+ return getInterconnectionCall(connectionId, _callback);
}
@@ -1112,7 +1087,7 @@ public okhttp3.Call getVirtualCircuitCall(UUID id, final ApiCallback _callback)
// create path and map variables
String localVarPath = "/virtual-circuits/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1129,7 +1104,6 @@ public okhttp3.Call getVirtualCircuitCall(UUID id, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1142,15 +1116,12 @@ public okhttp3.Call getVirtualCircuitCall(UUID id, final ApiCallback _callback)
@SuppressWarnings("rawtypes")
private okhttp3.Call getVirtualCircuitValidateBeforeCall(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 getVirtualCircuit(Async)");
}
-
- okhttp3.Call localVarCall = getVirtualCircuitCall(id, _callback);
- return localVarCall;
+ return getVirtualCircuitCall(id, _callback);
}
@@ -1248,8 +1219,8 @@ public okhttp3.Call listConnectionPortVirtualCircuitsCall(UUID connectionId, UUI
// create path and map variables
String localVarPath = "/connections/{connection_id}/ports/{port_id}/virtual-circuits"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()))
- .replaceAll("\\{" + "port_id" + "\\}", localVarApiClient.escapeString(portId.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()))
+ .replace("{" + "port_id" + "}", localVarApiClient.escapeString(portId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1266,7 +1237,6 @@ public okhttp3.Call listConnectionPortVirtualCircuitsCall(UUID connectionId, UUI
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1279,20 +1249,17 @@ public okhttp3.Call listConnectionPortVirtualCircuitsCall(UUID connectionId, UUI
@SuppressWarnings("rawtypes")
private okhttp3.Call listConnectionPortVirtualCircuitsValidateBeforeCall(UUID connectionId, UUID portId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling listConnectionPortVirtualCircuits(Async)");
}
-
+
// verify the required parameter 'portId' is set
if (portId == null) {
throw new ApiException("Missing the required parameter 'portId' when calling listConnectionPortVirtualCircuits(Async)");
}
-
- okhttp3.Call localVarCall = listConnectionPortVirtualCircuitsCall(connectionId, portId, _callback);
- return localVarCall;
+ return listConnectionPortVirtualCircuitsCall(connectionId, portId, _callback);
}
@@ -1392,7 +1359,7 @@ public okhttp3.Call listConnectionPortsCall(UUID connectionId, final ApiCallback
// create path and map variables
String localVarPath = "/connections/{connection_id}/ports"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1409,7 +1376,6 @@ public okhttp3.Call listConnectionPortsCall(UUID connectionId, final ApiCallback
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1422,15 +1388,12 @@ public okhttp3.Call listConnectionPortsCall(UUID connectionId, final ApiCallback
@SuppressWarnings("rawtypes")
private okhttp3.Call listConnectionPortsValidateBeforeCall(UUID connectionId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling listConnectionPorts(Async)");
}
-
- okhttp3.Call localVarCall = listConnectionPortsCall(connectionId, _callback);
- return localVarCall;
+ return listConnectionPortsCall(connectionId, _callback);
}
@@ -1527,7 +1490,7 @@ public okhttp3.Call organizationListInterconnectionsCall(UUID organizationId, fi
// create path and map variables
String localVarPath = "/organizations/{organization_id}/connections"
- .replaceAll("\\{" + "organization_id" + "\\}", localVarApiClient.escapeString(organizationId.toString()));
+ .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1544,7 +1507,6 @@ public okhttp3.Call organizationListInterconnectionsCall(UUID organizationId, fi
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1557,15 +1519,12 @@ public okhttp3.Call organizationListInterconnectionsCall(UUID organizationId, fi
@SuppressWarnings("rawtypes")
private okhttp3.Call organizationListInterconnectionsValidateBeforeCall(UUID organizationId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
throw new ApiException("Missing the required parameter 'organizationId' when calling organizationListInterconnections(Async)");
}
-
- okhttp3.Call localVarCall = organizationListInterconnectionsCall(organizationId, _callback);
- return localVarCall;
+ return organizationListInterconnectionsCall(organizationId, _callback);
}
@@ -1662,7 +1621,7 @@ public okhttp3.Call projectListInterconnectionsCall(UUID projectId, final ApiCal
// create path and map variables
String localVarPath = "/projects/{project_id}/connections"
- .replaceAll("\\{" + "project_id" + "\\}", localVarApiClient.escapeString(projectId.toString()));
+ .replace("{" + "project_id" + "}", localVarApiClient.escapeString(projectId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1679,7 +1638,6 @@ public okhttp3.Call projectListInterconnectionsCall(UUID projectId, final ApiCal
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1692,15 +1650,12 @@ public okhttp3.Call projectListInterconnectionsCall(UUID projectId, final ApiCal
@SuppressWarnings("rawtypes")
private okhttp3.Call projectListInterconnectionsValidateBeforeCall(UUID projectId, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException("Missing the required parameter 'projectId' when calling projectListInterconnections(Async)");
}
-
- okhttp3.Call localVarCall = projectListInterconnectionsCall(projectId, _callback);
- return localVarCall;
+ return projectListInterconnectionsCall(projectId, _callback);
}
@@ -1798,7 +1753,7 @@ public okhttp3.Call updateInterconnectionCall(UUID connectionId, Interconnection
// create path and map variables
String localVarPath = "/connections/{connection_id}"
- .replaceAll("\\{" + "connection_id" + "\\}", localVarApiClient.escapeString(connectionId.toString()));
+ .replace("{" + "connection_id" + "}", localVarApiClient.escapeString(connectionId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1828,20 +1783,17 @@ public okhttp3.Call updateInterconnectionCall(UUID connectionId, Interconnection
@SuppressWarnings("rawtypes")
private okhttp3.Call updateInterconnectionValidateBeforeCall(UUID connectionId, InterconnectionUpdateInput interconnectionUpdateInput, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'connectionId' is set
if (connectionId == null) {
throw new ApiException("Missing the required parameter 'connectionId' when calling updateInterconnection(Async)");
}
-
+
// verify the required parameter 'interconnectionUpdateInput' is set
if (interconnectionUpdateInput == null) {
throw new ApiException("Missing the required parameter 'interconnectionUpdateInput' when calling updateInterconnection(Async)");
}
-
- okhttp3.Call localVarCall = updateInterconnectionCall(connectionId, interconnectionUpdateInput, _callback);
- return localVarCall;
+ return updateInterconnectionCall(connectionId, interconnectionUpdateInput, _callback);
}
@@ -1943,7 +1895,7 @@ public okhttp3.Call updateVirtualCircuitCall(UUID id, UpdateVirtualCircuitReques
// create path and map variables
String localVarPath = "/virtual-circuits/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1973,20 +1925,17 @@ public okhttp3.Call updateVirtualCircuitCall(UUID id, UpdateVirtualCircuitReques
@SuppressWarnings("rawtypes")
private okhttp3.Call updateVirtualCircuitValidateBeforeCall(UUID id, UpdateVirtualCircuitRequest updateVirtualCircuitRequest, 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 updateVirtualCircuit(Async)");
}
-
+
// verify the required parameter 'updateVirtualCircuitRequest' is set
if (updateVirtualCircuitRequest == null) {
throw new ApiException("Missing the required parameter 'updateVirtualCircuitRequest' when calling updateVirtualCircuit(Async)");
}
-
- okhttp3.Call localVarCall = updateVirtualCircuitCall(id, updateVirtualCircuitRequest, _callback);
- return localVarCall;
+ return updateVirtualCircuitCall(id, updateVirtualCircuitRequest, _callback);
}
diff --git a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/DevicesApi.java b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/DevicesApi.java
index 4c9b7122b..674794e90 100644
--- a/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/DevicesApi.java
+++ b/equinix-openapi-metal/src/main/java/com/equinix/openapi/metal/v1/api/DevicesApi.java
@@ -120,7 +120,7 @@ public okhttp3.Call createBgpSessionCall(UUID id, BGPSessionInput bgPSessionInpu
// create path and map variables
String localVarPath = "/devices/{id}/bgp/sessions"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -150,20 +150,17 @@ public okhttp3.Call createBgpSessionCall(UUID id, BGPSessionInput bgPSessionInpu
@SuppressWarnings("rawtypes")
private okhttp3.Call createBgpSessionValidateBeforeCall(UUID id, BGPSessionInput bgPSessionInput, 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 createBgpSession(Async)");
}
-
+
// verify the required parameter 'bgPSessionInput' is set
if (bgPSessionInput == null) {
throw new ApiException("Missing the required parameter 'bgPSessionInput' when calling createBgpSession(Async)");
}
-
- okhttp3.Call localVarCall = createBgpSessionCall(id, bgPSessionInput, _callback);
- return localVarCall;
+ return createBgpSessionCall(id, bgPSessionInput, _callback);
}
@@ -269,7 +266,7 @@ public okhttp3.Call createDeviceCall(UUID id, DeviceCreateInput deviceCreateInpu
// create path and map variables
String localVarPath = "/projects/{id}/devices"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -299,20 +296,17 @@ public okhttp3.Call createDeviceCall(UUID id, DeviceCreateInput deviceCreateInpu
@SuppressWarnings("rawtypes")
private okhttp3.Call createDeviceValidateBeforeCall(UUID id, DeviceCreateInput deviceCreateInput, 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 createDevice(Async)");
}
-
+
// verify the required parameter 'deviceCreateInput' is set
if (deviceCreateInput == null) {
throw new ApiException("Missing the required parameter 'deviceCreateInput' when calling createDevice(Async)");
}
-
- okhttp3.Call localVarCall = createDeviceCall(id, deviceCreateInput, _callback);
- return localVarCall;
+ return createDeviceCall(id, deviceCreateInput, _callback);
}
@@ -420,7 +414,7 @@ public okhttp3.Call createIPAssignmentCall(UUID id, IPAssignmentInput ipAssignme
// create path and map variables
String localVarPath = "/devices/{id}/ips"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -450,20 +444,17 @@ public okhttp3.Call createIPAssignmentCall(UUID id, IPAssignmentInput ipAssignme
@SuppressWarnings("rawtypes")
private okhttp3.Call createIPAssignmentValidateBeforeCall(UUID id, IPAssignmentInput ipAssignmentInput, 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 createIPAssignment(Async)");
}
-
+
// verify the required parameter 'ipAssignmentInput' is set
if (ipAssignmentInput == null) {
throw new ApiException("Missing the required parameter 'ipAssignmentInput' when calling createIPAssignment(Async)");
}
-
- okhttp3.Call localVarCall = createIPAssignmentCall(id, ipAssignmentInput, _callback);
- return localVarCall;
+ return createIPAssignmentCall(id, ipAssignmentInput, _callback);
}
@@ -569,7 +560,7 @@ public okhttp3.Call deleteDeviceCall(UUID id, Boolean forceDelete, final ApiCall
// create path and map variables
String localVarPath = "/devices/{id}"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -590,7 +581,6 @@ public okhttp3.Call deleteDeviceCall(UUID id, Boolean forceDelete, final ApiCall
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -603,15 +593,12 @@ public okhttp3.Call deleteDeviceCall(UUID id, Boolean forceDelete, final ApiCall
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteDeviceValidateBeforeCall(UUID id, Boolean forceDelete, 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 deleteDevice(Async)");
}
-
- okhttp3.Call localVarCall = deleteDeviceCall(id, forceDelete, _callback);
- return localVarCall;
+ return deleteDeviceCall(id, forceDelete, _callback);
}
@@ -713,7 +700,7 @@ public okhttp3.Call findBgpSessionsCall(UUID id, final ApiCallback _callback) th
// create path and map variables
String localVarPath = "/devices/{id}/bgp/sessions"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -730,7 +717,6 @@ public okhttp3.Call findBgpSessionsCall(UUID id, final ApiCallback _callback) th
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -743,15 +729,12 @@ public okhttp3.Call findBgpSessionsCall(UUID id, final ApiCallback _callback) th
@SuppressWarnings("rawtypes")
private okhttp3.Call findBgpSessionsValidateBeforeCall(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 findBgpSessions(Async)");
}
-
- okhttp3.Call localVarCall = findBgpSessionsCall(id, _callback);
- return localVarCall;
+ return findBgpSessionsCall(id, _callback);
}
@@ -851,7 +834,7 @@ public okhttp3.Call findDeviceByIdCall(UUID id, List include, List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -876,7 +859,6 @@ public okhttp3.Call findDeviceByIdCall(UUID id, List include, List include, List include, List exclude, 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 findDeviceById(Async)");
}
-
- okhttp3.Call localVarCall = findDeviceByIdCall(id, include, exclude, _callback);
- return localVarCall;
+ return findDeviceByIdCall(id, include, exclude, _callback);
}
@@ -1004,7 +983,7 @@ public okhttp3.Call findDeviceCustomdataCall(UUID id, final ApiCallback _callbac
// create path and map variables
String localVarPath = "/devices/{id}/customdata"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1021,7 +1000,6 @@ public okhttp3.Call findDeviceCustomdataCall(UUID id, final ApiCallback _callbac
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1034,15 +1012,12 @@ public okhttp3.Call findDeviceCustomdataCall(UUID id, final ApiCallback _callbac
@SuppressWarnings("rawtypes")
private okhttp3.Call findDeviceCustomdataValidateBeforeCall(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 findDeviceCustomdata(Async)");
}
-
- okhttp3.Call localVarCall = findDeviceCustomdataCall(id, _callback);
- return localVarCall;
+ return findDeviceCustomdataCall(id, _callback);
}
@@ -1140,8 +1115,8 @@ public okhttp3.Call findIPAssignmentCustomdataCall(UUID instanceId, UUID id, fin
// create path and map variables
String localVarPath = "/devices/{instance_id}/ips/{id}/customdata"
- .replaceAll("\\{" + "instance_id" + "\\}", localVarApiClient.escapeString(instanceId.toString()))
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1158,7 +1133,6 @@ public okhttp3.Call findIPAssignmentCustomdataCall(UUID instanceId, UUID id, fin
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1171,20 +1145,17 @@ public okhttp3.Call findIPAssignmentCustomdataCall(UUID instanceId, UUID id, fin
@SuppressWarnings("rawtypes")
private okhttp3.Call findIPAssignmentCustomdataValidateBeforeCall(UUID instanceId, UUID id, final ApiCallback _callback) throws ApiException {
-
// verify the required parameter 'instanceId' is set
if (instanceId == null) {
throw new ApiException("Missing the required parameter 'instanceId' when calling findIPAssignmentCustomdata(Async)");
}
-
+
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling findIPAssignmentCustomdata(Async)");
}
-
- okhttp3.Call localVarCall = findIPAssignmentCustomdataCall(instanceId, id, _callback);
- return localVarCall;
+ return findIPAssignmentCustomdataCall(instanceId, id, _callback);
}
@@ -1285,7 +1256,7 @@ public okhttp3.Call findIPAssignmentsCall(UUID id, List include, List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1310,7 +1281,6 @@ public okhttp3.Call findIPAssignmentsCall(UUID id, List include, List include, List include, List exclude, 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 findIPAssignments(Async)");
}
-
- okhttp3.Call localVarCall = findIPAssignmentsCall(id, include, exclude, _callback);
- return localVarCall;
+ return findIPAssignmentsCall(id, include, exclude, _callback);
}
@@ -1436,7 +1403,7 @@ public okhttp3.Call findInstanceBandwidthCall(UUID id, String from, String until
// create path and map variables
String localVarPath = "/devices/{id}/bandwidth"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1461,7 +1428,6 @@ public okhttp3.Call findInstanceBandwidthCall(UUID id, String from, String until
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1474,25 +1440,22 @@ public okhttp3.Call findInstanceBandwidthCall(UUID id, String from, String until
@SuppressWarnings("rawtypes")
private okhttp3.Call findInstanceBandwidthValidateBeforeCall(UUID id, String from, String until, 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 findInstanceBandwidth(Async)");
}
-
+
// verify the required parameter 'from' is set
if (from == null) {
throw new ApiException("Missing the required parameter 'from' when calling findInstanceBandwidth(Async)");
}
-
+
// verify the required parameter 'until' is set
if (until == null) {
throw new ApiException("Missing the required parameter 'until' when calling findInstanceBandwidth(Async)");
}
-
- okhttp3.Call localVarCall = findInstanceBandwidthCall(id, from, until, _callback);
- return localVarCall;
+ return findInstanceBandwidthCall(id, from, until, _callback);
}
@@ -1601,7 +1564,7 @@ public okhttp3.Call findOrganizationDevicesCall(UUID id, String facility, String
// create path and map variables
String localVarPath = "/organizations/{id}/devices"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1654,7 +1617,6 @@ public okhttp3.Call findOrganizationDevicesCall(UUID id, String facility, String
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1667,15 +1629,12 @@ public okhttp3.Call findOrganizationDevicesCall(UUID id, String facility, String
@SuppressWarnings("rawtypes")
private okhttp3.Call findOrganizationDevicesValidateBeforeCall(UUID id, String facility, String hostname, Boolean reserved, String tag, String type, List include, List exclude, Integer page, Integer perPage, 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 findOrganizationDevices(Async)");
}
-
- okhttp3.Call localVarCall = findOrganizationDevicesCall(id, facility, hostname, reserved, tag, type, include, exclude, page, perPage, _callback);
- return localVarCall;
+ return findOrganizationDevicesCall(id, facility, hostname, reserved, tag, type, include, exclude, page, perPage, _callback);
}
@@ -1812,7 +1771,7 @@ public okhttp3.Call findProjectDevicesCall(UUID id, String facility, String host
// create path and map variables
String localVarPath = "/projects/{id}/devices"
- .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1865,7 +1824,6 @@ public okhttp3.Call findProjectDevicesCall(UUID id, String facility, String host
}
final String[] localVarContentTypes = {
-
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1878,15 +1836,12 @@ public okhttp3.Call findProjectDevicesCall(UUID id, String facility, String host
@SuppressWarnings("rawtypes")
private okhttp3.Call findProjectDevicesValidateBeforeCall(UUID id, String facility, String hostname, Boolean reserved, String tag, String type, List include, List