diff --git a/ce/src/main/java/org/thingsboard/client/ApiClient.java b/ce/src/main/java/org/thingsboard/client/ApiClient.java
index 948badfc..9eb6f0f7 100644
--- a/ce/src/main/java/org/thingsboard/client/ApiClient.java
+++ b/ce/src/main/java/org/thingsboard/client/ApiClient.java
@@ -15,6 +15,7 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -57,7 +58,7 @@
*
The setter methods of this class return the current object to facilitate
* a fluent style of configuration.
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class ApiClient {
protected HttpClient.Builder builder;
diff --git a/ce/src/main/java/org/thingsboard/client/ApiException.java b/ce/src/main/java/org/thingsboard/client/ApiException.java
index c319b4e9..2df9de9c 100644
--- a/ce/src/main/java/org/thingsboard/client/ApiException.java
+++ b/ce/src/main/java/org/thingsboard/client/ApiException.java
@@ -15,9 +15,10 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.net.http.HttpHeaders;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class ApiException extends RuntimeException {
private static final long serialVersionUID = 1L;
diff --git a/ce/src/main/java/org/thingsboard/client/ApiResponse.java b/ce/src/main/java/org/thingsboard/client/ApiResponse.java
index 77fafce9..04f802b9 100644
--- a/ce/src/main/java/org/thingsboard/client/ApiResponse.java
+++ b/ce/src/main/java/org/thingsboard/client/ApiResponse.java
@@ -15,6 +15,7 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.util.List;
import java.util.Map;
@@ -23,7 +24,7 @@
*
* @param The type of data that is deserialized from response body
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class ApiResponse {
final private int statusCode;
final private Map> headers;
diff --git a/ce/src/main/java/org/thingsboard/client/Configuration.java b/ce/src/main/java/org/thingsboard/client/Configuration.java
index a9aa9903..6f65d8e4 100644
--- a/ce/src/main/java/org/thingsboard/client/Configuration.java
+++ b/ce/src/main/java/org/thingsboard/client/Configuration.java
@@ -15,11 +15,12 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class Configuration {
public static final String VERSION = "4.4.0-SNAPSHOT";
diff --git a/ce/src/main/java/org/thingsboard/client/JSON.java b/ce/src/main/java/org/thingsboard/client/JSON.java
index 92b201d2..dddf71cd 100644
--- a/ce/src/main/java/org/thingsboard/client/JSON.java
+++ b/ce/src/main/java/org/thingsboard/client/JSON.java
@@ -15,6 +15,7 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.json.JsonMapper;
@@ -28,7 +29,7 @@
import java.util.Map;
import java.util.Set;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class JSON {
private ObjectMapper mapper;
@@ -84,7 +85,7 @@ public static Class> getClassForElement(JsonNode node, Class> modelClass) {
/**
* Helper class to register the discriminator mappings.
*/
- @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+ @Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
private static class ClassDiscriminatorMapping {
// The model class name.
Class> modelClass;
diff --git a/ce/src/main/java/org/thingsboard/client/Pair.java b/ce/src/main/java/org/thingsboard/client/Pair.java
index f5c7430f..96b10560 100644
--- a/ce/src/main/java/org/thingsboard/client/Pair.java
+++ b/ce/src/main/java/org/thingsboard/client/Pair.java
@@ -14,8 +14,9 @@
* limitations under the License.
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class Pair {
private final String name;
private final String value;
diff --git a/ce/src/main/java/org/thingsboard/client/RFC3339DateFormat.java b/ce/src/main/java/org/thingsboard/client/RFC3339DateFormat.java
index 140625e2..891cc60e 100644
--- a/ce/src/main/java/org/thingsboard/client/RFC3339DateFormat.java
+++ b/ce/src/main/java/org/thingsboard/client/RFC3339DateFormat.java
@@ -15,6 +15,7 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import com.fasterxml.jackson.databind.util.StdDateFormat;
import java.text.DateFormat;
@@ -25,7 +26,7 @@
import java.util.GregorianCalendar;
import java.util.TimeZone;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class RFC3339DateFormat extends DateFormat {
private static final long serialVersionUID = 1L;
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
diff --git a/ce/src/main/java/org/thingsboard/client/RFC3339InstantDeserializer.java b/ce/src/main/java/org/thingsboard/client/RFC3339InstantDeserializer.java
index 5eecbac1..df50f500 100644
--- a/ce/src/main/java/org/thingsboard/client/RFC3339InstantDeserializer.java
+++ b/ce/src/main/java/org/thingsboard/client/RFC3339InstantDeserializer.java
@@ -15,6 +15,7 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.io.IOException;
import java.time.Instant;
import java.time.OffsetDateTime;
@@ -31,7 +32,7 @@
import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature;
import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class RFC3339InstantDeserializer extends InstantDeserializer {
private static final long serialVersionUID = 1L;
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
diff --git a/ce/src/main/java/org/thingsboard/client/RFC3339JavaTimeModule.java b/ce/src/main/java/org/thingsboard/client/RFC3339JavaTimeModule.java
index 817da343..af10d3b3 100644
--- a/ce/src/main/java/org/thingsboard/client/RFC3339JavaTimeModule.java
+++ b/ce/src/main/java/org/thingsboard/client/RFC3339JavaTimeModule.java
@@ -15,6 +15,7 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
@@ -22,7 +23,7 @@
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.Module.SetupContext;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class RFC3339JavaTimeModule extends SimpleModule {
private static final long serialVersionUID = 1L;
diff --git a/ce/src/main/java/org/thingsboard/client/ServerConfiguration.java b/ce/src/main/java/org/thingsboard/client/ServerConfiguration.java
index dcf5e4cd..3bc83009 100644
--- a/ce/src/main/java/org/thingsboard/client/ServerConfiguration.java
+++ b/ce/src/main/java/org/thingsboard/client/ServerConfiguration.java
@@ -15,12 +15,13 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.util.Map;
/**
* Representing a Server configuration.
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class ServerConfiguration {
public String URL;
public String description;
diff --git a/ce/src/main/java/org/thingsboard/client/ServerVariable.java b/ce/src/main/java/org/thingsboard/client/ServerVariable.java
index 3b6e0b34..d71617e3 100644
--- a/ce/src/main/java/org/thingsboard/client/ServerVariable.java
+++ b/ce/src/main/java/org/thingsboard/client/ServerVariable.java
@@ -15,12 +15,13 @@
*/
package org.thingsboard.client;
+import javax.annotation.Generated;
import java.util.HashSet;
/**
* Representing a Server Variable for server URL template substitution.
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class ServerVariable {
public String description;
public String defaultValue;
diff --git a/ce/src/main/java/org/thingsboard/client/api/ThingsboardApi.java b/ce/src/main/java/org/thingsboard/client/api/ThingsboardApi.java
index fcb202c2..df99fccc 100644
--- a/ce/src/main/java/org/thingsboard/client/api/ThingsboardApi.java
+++ b/ce/src/main/java/org/thingsboard/client/api/ThingsboardApi.java
@@ -14,13 +14,14 @@
* limitations under the License.
*/
package org.thingsboard.client.api;
-
+import javax.annotation.Generated;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
import org.thingsboard.client.ApiClient;
import org.thingsboard.client.ApiException;
import org.thingsboard.client.ApiResponse;
import org.thingsboard.client.Configuration;
import org.thingsboard.client.Pair;
-
import org.thingsboard.client.model.AccountTwoFaSettings;
import org.thingsboard.client.model.ActivateUserRequest;
import org.thingsboard.client.model.AdminSettings;
@@ -231,16 +232,13 @@
import org.thingsboard.client.model.WidgetTypeDetails;
import org.thingsboard.client.model.WidgetTypeInfo;
import org.thingsboard.client.model.WidgetsBundle;
-
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
-
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
-
import java.io.InputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -255,7 +253,6 @@
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
-
import java.util.ArrayList;
import java.util.StringJoiner;
import java.util.List;
@@ -263,7 +260,7 @@
import java.util.Set;
import java.util.function.Consumer;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
+@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class ThingsboardApi {
/**
* Utility class for extending HttpRequest.Builder functionality.
@@ -285,6 +282,7 @@ static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Ma
return builder;
}
}
+
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
private final String memberVarBaseUri;
@@ -307,7 +305,6 @@ public ThingsboardApi(ApiClient apiClient) {
memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor();
}
-
protected ApiException getApiException(String operationId, HttpResponse response) throws IOException {
InputStream responseBody = ApiClient.getResponseBody(response);
String body = null;
@@ -387,34 +384,11 @@ private File prepareDownloadFile(HttpResponse response) throws IOEx
* @return AlarmInfo
* @throws ApiException if fails to make API call
*/
- public AlarmInfo ackAlarm(@javax.annotation.Nonnull String alarmId) throws ApiException {
- return ackAlarm(alarmId, null);
- }
-
- /**
- * Acknowledge Alarm (ackAlarm)
- * Acknowledge the Alarm. Once acknowledged, the 'ack_ts' field will be set to current timestamp and special rule chain event 'ALARM_ACK' will be generated. Referencing non-existing Alarm Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
- * @param alarmId A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return AlarmInfo
- * @throws ApiException if fails to make API call
- */
- public AlarmInfo ackAlarm(@javax.annotation.Nonnull String alarmId, Map headers) throws ApiException {
- ApiResponse localVarResponse = ackAlarmWithHttpInfo(alarmId, headers);
+ public AlarmInfo ackAlarm(@Nonnull String alarmId) throws ApiException {
+ ApiResponse localVarResponse = ackAlarmWithHttpInfo(alarmId, null);
return localVarResponse.getData();
}
- /**
- * Acknowledge Alarm (ackAlarm)
- * Acknowledge the Alarm. Once acknowledged, the 'ack_ts' field will be set to current timestamp and special rule chain event 'ALARM_ACK' will be generated. Referencing non-existing Alarm Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
- * @param alarmId A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<AlarmInfo>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse ackAlarmWithHttpInfo(@javax.annotation.Nonnull String alarmId) throws ApiException {
- return ackAlarmWithHttpInfo(alarmId, null);
- }
-
/**
* Acknowledge Alarm (ackAlarm)
* Acknowledge the Alarm. Once acknowledged, the 'ack_ts' field will be set to current timestamp and special rule chain event 'ALARM_ACK' will be generated. Referencing non-existing Alarm Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
@@ -423,7 +397,7 @@ public ApiResponse ackAlarmWithHttpInfo(@javax.annotation.Nonnull Str
* @return ApiResponse<AlarmInfo>
* @throws ApiException if fails to make API call
*/
- public ApiResponse ackAlarmWithHttpInfo(@javax.annotation.Nonnull String alarmId, Map headers) throws ApiException {
+ public ApiResponse ackAlarmWithHttpInfo(@Nonnull String alarmId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = ackAlarmRequestBuilder(alarmId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -439,24 +413,11 @@ public ApiResponse ackAlarmWithHttpInfo(@javax.annotation.Nonnull Str
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
AlarmInfo responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -471,21 +432,16 @@ public ApiResponse ackAlarmWithHttpInfo(@javax.annotation.Nonnull Str
}
}
- private HttpRequest.Builder ackAlarmRequestBuilder(@javax.annotation.Nonnull String alarmId, Map headers) throws ApiException {
+ private HttpRequest.Builder ackAlarmRequestBuilder(@Nonnull String alarmId, Map headers) throws ApiException {
// verify the required parameter 'alarmId' is set
if (alarmId == null) {
throw new ApiException(400, "Missing the required parameter 'alarmId' when calling ackAlarm");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/alarm/{alarmId}/ack"
.replace("{alarmId}", ApiClient.urlEncode(alarmId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -506,36 +462,11 @@ private HttpRequest.Builder ackAlarmRequestBuilder(@javax.annotation.Nonnull Str
* @return JwtPair
* @throws ApiException if fails to make API call
*/
- public JwtPair activateUser(@javax.annotation.Nonnull ActivateUserRequest activateUserRequest, @javax.annotation.Nullable Boolean sendActivationMail) throws ApiException {
- return activateUser(activateUserRequest, sendActivationMail, null);
- }
-
- /**
- * Activate User
- * Checks the activation token and updates corresponding user password in the database. Now the user may start using his password to login. The response already contains the [JWT](https://jwt.io) activation and refresh tokens, to simplify the user activation flow and avoid asking user to input password again after activation. If token is valid, returns the object that contains [JWT](https://jwt.io/) access and refresh tokens. If token is not valid, returns '400 Bad Request'.
- * @param activateUserRequest (required)
- * @param sendActivationMail (optional, default to true)
- * @param headers Optional headers to include in the request
- * @return JwtPair
- * @throws ApiException if fails to make API call
- */
- public JwtPair activateUser(@javax.annotation.Nonnull ActivateUserRequest activateUserRequest, @javax.annotation.Nullable Boolean sendActivationMail, Map headers) throws ApiException {
- ApiResponse localVarResponse = activateUserWithHttpInfo(activateUserRequest, sendActivationMail, headers);
+ public JwtPair activateUser(@Nonnull ActivateUserRequest activateUserRequest, @Nullable Boolean sendActivationMail) throws ApiException {
+ ApiResponse localVarResponse = activateUserWithHttpInfo(activateUserRequest, sendActivationMail, null);
return localVarResponse.getData();
}
- /**
- * Activate User
- * Checks the activation token and updates corresponding user password in the database. Now the user may start using his password to login. The response already contains the [JWT](https://jwt.io) activation and refresh tokens, to simplify the user activation flow and avoid asking user to input password again after activation. If token is valid, returns the object that contains [JWT](https://jwt.io/) access and refresh tokens. If token is not valid, returns '400 Bad Request'.
- * @param activateUserRequest (required)
- * @param sendActivationMail (optional, default to true)
- * @return ApiResponse<JwtPair>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse activateUserWithHttpInfo(@javax.annotation.Nonnull ActivateUserRequest activateUserRequest, @javax.annotation.Nullable Boolean sendActivationMail) throws ApiException {
- return activateUserWithHttpInfo(activateUserRequest, sendActivationMail, null);
- }
-
/**
* Activate User
* Checks the activation token and updates corresponding user password in the database. Now the user may start using his password to login. The response already contains the [JWT](https://jwt.io) activation and refresh tokens, to simplify the user activation flow and avoid asking user to input password again after activation. If token is valid, returns the object that contains [JWT](https://jwt.io/) access and refresh tokens. If token is not valid, returns '400 Bad Request'.
@@ -545,7 +476,7 @@ public ApiResponse activateUserWithHttpInfo(@javax.annotation.Nonnull A
* @return ApiResponse<JwtPair>
* @throws ApiException if fails to make API call
*/
- public ApiResponse activateUserWithHttpInfo(@javax.annotation.Nonnull ActivateUserRequest activateUserRequest, @javax.annotation.Nullable Boolean sendActivationMail, Map headers) throws ApiException {
+ public ApiResponse activateUserWithHttpInfo(@Nonnull ActivateUserRequest activateUserRequest, @Nullable Boolean sendActivationMail, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = activateUserRequestBuilder(activateUserRequest, sendActivationMail, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -561,24 +492,11 @@ public ApiResponse activateUserWithHttpInfo(@javax.annotation.Nonnull A
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
JwtPair responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -593,22 +511,18 @@ public ApiResponse activateUserWithHttpInfo(@javax.annotation.Nonnull A
}
}
- private HttpRequest.Builder activateUserRequestBuilder(@javax.annotation.Nonnull ActivateUserRequest activateUserRequest, @javax.annotation.Nullable Boolean sendActivationMail, Map headers) throws ApiException {
+ private HttpRequest.Builder activateUserRequestBuilder(@Nonnull ActivateUserRequest activateUserRequest, @Nullable Boolean sendActivationMail, Map headers) throws ApiException {
// verify the required parameter 'activateUserRequest' is set
if (activateUserRequest == null) {
throw new ApiException(400, "Missing the required parameter 'activateUserRequest' when calling activateUser");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/noauth/activate";
-
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "sendActivationMail";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sendActivationMail", sendActivationMail));
-
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
@@ -619,10 +533,8 @@ private HttpRequest.Builder activateUserRequestBuilder(@javax.annotation.Nonnull
} else {
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
}
-
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
-
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(activateUserRequest);
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
@@ -648,36 +560,11 @@ private HttpRequest.Builder activateUserRequestBuilder(@javax.annotation.Nonnull
* @return Dashboard
* @throws ApiException if fails to make API call
*/
- public Dashboard addDashboardCustomers(@javax.annotation.Nonnull String dashboardId, @javax.annotation.Nonnull List requestBody) throws ApiException {
- return addDashboardCustomers(dashboardId, requestBody, null);
- }
-
- /**
- * Adds the Dashboard Customers (addDashboardCustomers)
- * Adds the list of Customers to the existing list of assignments for the Dashboard. Keeps previous assignments to customers that are not in the provided list. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
- * @param dashboardId A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param requestBody (required)
- * @param headers Optional headers to include in the request
- * @return Dashboard
- * @throws ApiException if fails to make API call
- */
- public Dashboard addDashboardCustomers(@javax.annotation.Nonnull String dashboardId, @javax.annotation.Nonnull List requestBody, Map headers) throws ApiException {
- ApiResponse localVarResponse = addDashboardCustomersWithHttpInfo(dashboardId, requestBody, headers);
+ public Dashboard addDashboardCustomers(@Nonnull String dashboardId, @Nonnull List requestBody) throws ApiException {
+ ApiResponse localVarResponse = addDashboardCustomersWithHttpInfo(dashboardId, requestBody, null);
return localVarResponse.getData();
}
- /**
- * Adds the Dashboard Customers (addDashboardCustomers)
- * Adds the list of Customers to the existing list of assignments for the Dashboard. Keeps previous assignments to customers that are not in the provided list. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
- * @param dashboardId A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param requestBody (required)
- * @return ApiResponse<Dashboard>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse addDashboardCustomersWithHttpInfo(@javax.annotation.Nonnull String dashboardId, @javax.annotation.Nonnull List requestBody) throws ApiException {
- return addDashboardCustomersWithHttpInfo(dashboardId, requestBody, null);
- }
-
/**
* Adds the Dashboard Customers (addDashboardCustomers)
* Adds the list of Customers to the existing list of assignments for the Dashboard. Keeps previous assignments to customers that are not in the provided list. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
@@ -687,7 +574,7 @@ public ApiResponse addDashboardCustomersWithHttpInfo(@javax.annotatio
* @return ApiResponse<Dashboard>
* @throws ApiException if fails to make API call
*/
- public ApiResponse addDashboardCustomersWithHttpInfo(@javax.annotation.Nonnull String dashboardId, @javax.annotation.Nonnull List requestBody, Map headers) throws ApiException {
+ public ApiResponse addDashboardCustomersWithHttpInfo(@Nonnull String dashboardId, @Nonnull List requestBody, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = addDashboardCustomersRequestBuilder(dashboardId, requestBody, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -703,24 +590,11 @@ public ApiResponse addDashboardCustomersWithHttpInfo(@javax.annotatio
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Dashboard responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -735,7 +609,7 @@ public ApiResponse addDashboardCustomersWithHttpInfo(@javax.annotatio
}
}
- private HttpRequest.Builder addDashboardCustomersRequestBuilder(@javax.annotation.Nonnull String dashboardId, @javax.annotation.Nonnull List requestBody, Map headers) throws ApiException {
+ private HttpRequest.Builder addDashboardCustomersRequestBuilder(@Nonnull String dashboardId, @Nonnull List requestBody, Map headers) throws ApiException {
// verify the required parameter 'dashboardId' is set
if (dashboardId == null) {
throw new ApiException(400, "Missing the required parameter 'dashboardId' when calling addDashboardCustomers");
@@ -744,17 +618,12 @@ private HttpRequest.Builder addDashboardCustomersRequestBuilder(@javax.annotatio
if (requestBody == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling addDashboardCustomers");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/dashboard/{dashboardId}/customers/add"
.replace("{dashboardId}", ApiClient.urlEncode(dashboardId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Content-Type", "application/json");
localVarRequestBuilder.header("Accept", "application/json");
-
try {
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(requestBody);
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
@@ -780,36 +649,11 @@ private HttpRequest.Builder addDashboardCustomersRequestBuilder(@javax.annotatio
* @return Alarm
* @throws ApiException if fails to make API call
*/
- public Alarm assignAlarm(@javax.annotation.Nonnull String alarmId, @javax.annotation.Nonnull String assigneeId) throws ApiException {
- return assignAlarm(alarmId, assigneeId, null);
- }
-
- /**
- * Assign/Reassign Alarm (assignAlarm)
- * Assign the Alarm. Once assigned, the 'assign_ts' field will be set to current timestamp and special rule chain event 'ALARM_ASSIGNED' (or ALARM_REASSIGNED in case of assigning already assigned alarm) will be generated. Referencing non-existing Alarm Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
- * @param alarmId A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param assigneeId A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Alarm
- * @throws ApiException if fails to make API call
- */
- public Alarm assignAlarm(@javax.annotation.Nonnull String alarmId, @javax.annotation.Nonnull String assigneeId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignAlarmWithHttpInfo(alarmId, assigneeId, headers);
+ public Alarm assignAlarm(@Nonnull String alarmId, @Nonnull String assigneeId) throws ApiException {
+ ApiResponse localVarResponse = assignAlarmWithHttpInfo(alarmId, assigneeId, null);
return localVarResponse.getData();
}
- /**
- * Assign/Reassign Alarm (assignAlarm)
- * Assign the Alarm. Once assigned, the 'assign_ts' field will be set to current timestamp and special rule chain event 'ALARM_ASSIGNED' (or ALARM_REASSIGNED in case of assigning already assigned alarm) will be generated. Referencing non-existing Alarm Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
- * @param alarmId A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param assigneeId A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Alarm>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignAlarmWithHttpInfo(@javax.annotation.Nonnull String alarmId, @javax.annotation.Nonnull String assigneeId) throws ApiException {
- return assignAlarmWithHttpInfo(alarmId, assigneeId, null);
- }
-
/**
* Assign/Reassign Alarm (assignAlarm)
* Assign the Alarm. Once assigned, the 'assign_ts' field will be set to current timestamp and special rule chain event 'ALARM_ASSIGNED' (or ALARM_REASSIGNED in case of assigning already assigned alarm) will be generated. Referencing non-existing Alarm Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
@@ -819,7 +663,7 @@ public ApiResponse assignAlarmWithHttpInfo(@javax.annotation.Nonnull Stri
* @return ApiResponse<Alarm>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignAlarmWithHttpInfo(@javax.annotation.Nonnull String alarmId, @javax.annotation.Nonnull String assigneeId, Map headers) throws ApiException {
+ public ApiResponse assignAlarmWithHttpInfo(@Nonnull String alarmId, @Nonnull String assigneeId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignAlarmRequestBuilder(alarmId, assigneeId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -835,24 +679,11 @@ public ApiResponse assignAlarmWithHttpInfo(@javax.annotation.Nonnull Stri
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Alarm responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -867,7 +698,7 @@ public ApiResponse assignAlarmWithHttpInfo(@javax.annotation.Nonnull Stri
}
}
- private HttpRequest.Builder assignAlarmRequestBuilder(@javax.annotation.Nonnull String alarmId, @javax.annotation.Nonnull String assigneeId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignAlarmRequestBuilder(@Nonnull String alarmId, @Nonnull String assigneeId, Map headers) throws ApiException {
// verify the required parameter 'alarmId' is set
if (alarmId == null) {
throw new ApiException(400, "Missing the required parameter 'alarmId' when calling assignAlarm");
@@ -876,17 +707,12 @@ private HttpRequest.Builder assignAlarmRequestBuilder(@javax.annotation.Nonnull
if (assigneeId == null) {
throw new ApiException(400, "Missing the required parameter 'assigneeId' when calling assignAlarm");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/alarm/{alarmId}/assign/{assigneeId}"
.replace("{alarmId}", ApiClient.urlEncode(alarmId.toString()))
.replace("{assigneeId}", ApiClient.urlEncode(assigneeId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -907,36 +733,11 @@ private HttpRequest.Builder assignAlarmRequestBuilder(@javax.annotation.Nonnull
* @return Asset
* @throws ApiException if fails to make API call
*/
- public Asset assignAssetToCustomer(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String assetId) throws ApiException {
- return assignAssetToCustomer(customerId, assetId, null);
- }
-
- /**
- * Assign asset to customer (assignAssetToCustomer)
- * Creates assignment of the asset to customer. Customer will be able to query asset afterwards. Available for users with 'TENANT_ADMIN' authority.
- * @param customerId A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param assetId A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Asset
- * @throws ApiException if fails to make API call
- */
- public Asset assignAssetToCustomer(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignAssetToCustomerWithHttpInfo(customerId, assetId, headers);
+ public Asset assignAssetToCustomer(@Nonnull String customerId, @Nonnull String assetId) throws ApiException {
+ ApiResponse localVarResponse = assignAssetToCustomerWithHttpInfo(customerId, assetId, null);
return localVarResponse.getData();
}
- /**
- * Assign asset to customer (assignAssetToCustomer)
- * Creates assignment of the asset to customer. Customer will be able to query asset afterwards. Available for users with 'TENANT_ADMIN' authority.
- * @param customerId A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param assetId A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Asset>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignAssetToCustomerWithHttpInfo(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String assetId) throws ApiException {
- return assignAssetToCustomerWithHttpInfo(customerId, assetId, null);
- }
-
/**
* Assign asset to customer (assignAssetToCustomer)
* Creates assignment of the asset to customer. Customer will be able to query asset afterwards. Available for users with 'TENANT_ADMIN' authority.
@@ -946,7 +747,7 @@ public ApiResponse assignAssetToCustomerWithHttpInfo(@javax.annotation.No
* @return ApiResponse<Asset>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignAssetToCustomerWithHttpInfo(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
+ public ApiResponse assignAssetToCustomerWithHttpInfo(@Nonnull String customerId, @Nonnull String assetId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignAssetToCustomerRequestBuilder(customerId, assetId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -962,24 +763,11 @@ public ApiResponse assignAssetToCustomerWithHttpInfo(@javax.annotation.No
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Asset responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -994,7 +782,7 @@ public ApiResponse assignAssetToCustomerWithHttpInfo(@javax.annotation.No
}
}
- private HttpRequest.Builder assignAssetToCustomerRequestBuilder(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignAssetToCustomerRequestBuilder(@Nonnull String customerId, @Nonnull String assetId, Map headers) throws ApiException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
throw new ApiException(400, "Missing the required parameter 'customerId' when calling assignAssetToCustomer");
@@ -1003,17 +791,12 @@ private HttpRequest.Builder assignAssetToCustomerRequestBuilder(@javax.annotatio
if (assetId == null) {
throw new ApiException(400, "Missing the required parameter 'assetId' when calling assignAssetToCustomer");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/customer/{customerId}/asset/{assetId}"
.replace("{customerId}", ApiClient.urlEncode(customerId.toString()))
.replace("{assetId}", ApiClient.urlEncode(assetId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1034,36 +817,11 @@ private HttpRequest.Builder assignAssetToCustomerRequestBuilder(@javax.annotatio
* @return Asset
* @throws ApiException if fails to make API call
*/
- public Asset assignAssetToEdge(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String assetId) throws ApiException {
- return assignAssetToEdge(edgeId, assetId, null);
- }
-
- /**
- * Assign asset to edge (assignAssetToEdge)
- * Creates assignment of an existing asset to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment asset (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once asset will be delivered to edge service, it's going to be available for usage on remote edge instance.
- * @param edgeId A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param assetId A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Asset
- * @throws ApiException if fails to make API call
- */
- public Asset assignAssetToEdge(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignAssetToEdgeWithHttpInfo(edgeId, assetId, headers);
+ public Asset assignAssetToEdge(@Nonnull String edgeId, @Nonnull String assetId) throws ApiException {
+ ApiResponse localVarResponse = assignAssetToEdgeWithHttpInfo(edgeId, assetId, null);
return localVarResponse.getData();
}
- /**
- * Assign asset to edge (assignAssetToEdge)
- * Creates assignment of an existing asset to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment asset (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once asset will be delivered to edge service, it's going to be available for usage on remote edge instance.
- * @param edgeId A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param assetId A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Asset>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignAssetToEdgeWithHttpInfo(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String assetId) throws ApiException {
- return assignAssetToEdgeWithHttpInfo(edgeId, assetId, null);
- }
-
/**
* Assign asset to edge (assignAssetToEdge)
* Creates assignment of an existing asset to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment asset (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once asset will be delivered to edge service, it's going to be available for usage on remote edge instance.
@@ -1073,7 +831,7 @@ public ApiResponse assignAssetToEdgeWithHttpInfo(@javax.annotation.Nonnul
* @return ApiResponse<Asset>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignAssetToEdgeWithHttpInfo(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
+ public ApiResponse assignAssetToEdgeWithHttpInfo(@Nonnull String edgeId, @Nonnull String assetId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignAssetToEdgeRequestBuilder(edgeId, assetId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1089,24 +847,11 @@ public ApiResponse assignAssetToEdgeWithHttpInfo(@javax.annotation.Nonnul
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Asset responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1121,7 +866,7 @@ public ApiResponse assignAssetToEdgeWithHttpInfo(@javax.annotation.Nonnul
}
}
- private HttpRequest.Builder assignAssetToEdgeRequestBuilder(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignAssetToEdgeRequestBuilder(@Nonnull String edgeId, @Nonnull String assetId, Map headers) throws ApiException {
// verify the required parameter 'edgeId' is set
if (edgeId == null) {
throw new ApiException(400, "Missing the required parameter 'edgeId' when calling assignAssetToEdge");
@@ -1130,17 +875,12 @@ private HttpRequest.Builder assignAssetToEdgeRequestBuilder(@javax.annotation.No
if (assetId == null) {
throw new ApiException(400, "Missing the required parameter 'assetId' when calling assignAssetToEdge");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/edge/{edgeId}/asset/{assetId}"
.replace("{edgeId}", ApiClient.urlEncode(edgeId.toString()))
.replace("{assetId}", ApiClient.urlEncode(assetId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1160,34 +900,11 @@ private HttpRequest.Builder assignAssetToEdgeRequestBuilder(@javax.annotation.No
* @return Asset
* @throws ApiException if fails to make API call
*/
- public Asset assignAssetToPublicCustomer(@javax.annotation.Nonnull String assetId) throws ApiException {
- return assignAssetToPublicCustomer(assetId, null);
- }
-
- /**
- * Make asset publicly available (assignAssetToPublicCustomer)
- * Asset will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the asset. Available for users with 'TENANT_ADMIN' authority.
- * @param assetId A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Asset
- * @throws ApiException if fails to make API call
- */
- public Asset assignAssetToPublicCustomer(@javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignAssetToPublicCustomerWithHttpInfo(assetId, headers);
+ public Asset assignAssetToPublicCustomer(@Nonnull String assetId) throws ApiException {
+ ApiResponse localVarResponse = assignAssetToPublicCustomerWithHttpInfo(assetId, null);
return localVarResponse.getData();
}
- /**
- * Make asset publicly available (assignAssetToPublicCustomer)
- * Asset will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the asset. Available for users with 'TENANT_ADMIN' authority.
- * @param assetId A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Asset>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignAssetToPublicCustomerWithHttpInfo(@javax.annotation.Nonnull String assetId) throws ApiException {
- return assignAssetToPublicCustomerWithHttpInfo(assetId, null);
- }
-
/**
* Make asset publicly available (assignAssetToPublicCustomer)
* Asset will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the asset. Available for users with 'TENANT_ADMIN' authority.
@@ -1196,7 +913,7 @@ public ApiResponse assignAssetToPublicCustomerWithHttpInfo(@javax.annotat
* @return ApiResponse<Asset>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignAssetToPublicCustomerWithHttpInfo(@javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
+ public ApiResponse assignAssetToPublicCustomerWithHttpInfo(@Nonnull String assetId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignAssetToPublicCustomerRequestBuilder(assetId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1212,24 +929,11 @@ public ApiResponse assignAssetToPublicCustomerWithHttpInfo(@javax.annotat
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Asset responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1244,21 +948,16 @@ public ApiResponse assignAssetToPublicCustomerWithHttpInfo(@javax.annotat
}
}
- private HttpRequest.Builder assignAssetToPublicCustomerRequestBuilder(@javax.annotation.Nonnull String assetId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignAssetToPublicCustomerRequestBuilder(@Nonnull String assetId, Map headers) throws ApiException {
// verify the required parameter 'assetId' is set
if (assetId == null) {
throw new ApiException(400, "Missing the required parameter 'assetId' when calling assignAssetToPublicCustomer");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/customer/public/asset/{assetId}"
.replace("{assetId}", ApiClient.urlEncode(assetId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1279,36 +978,11 @@ private HttpRequest.Builder assignAssetToPublicCustomerRequestBuilder(@javax.ann
* @return Dashboard
* @throws ApiException if fails to make API call
*/
- public Dashboard assignDashboardToCustomer(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String dashboardId) throws ApiException {
- return assignDashboardToCustomer(customerId, dashboardId, null);
- }
-
- /**
- * Assign the Dashboard (assignDashboardToCustomer)
- * Assign the Dashboard to specified Customer or do nothing if the Dashboard is already assigned to that Customer. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
- * @param customerId A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param dashboardId A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Dashboard
- * @throws ApiException if fails to make API call
- */
- public Dashboard assignDashboardToCustomer(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignDashboardToCustomerWithHttpInfo(customerId, dashboardId, headers);
+ public Dashboard assignDashboardToCustomer(@Nonnull String customerId, @Nonnull String dashboardId) throws ApiException {
+ ApiResponse localVarResponse = assignDashboardToCustomerWithHttpInfo(customerId, dashboardId, null);
return localVarResponse.getData();
}
- /**
- * Assign the Dashboard (assignDashboardToCustomer)
- * Assign the Dashboard to specified Customer or do nothing if the Dashboard is already assigned to that Customer. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
- * @param customerId A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param dashboardId A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Dashboard>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignDashboardToCustomerWithHttpInfo(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String dashboardId) throws ApiException {
- return assignDashboardToCustomerWithHttpInfo(customerId, dashboardId, null);
- }
-
/**
* Assign the Dashboard (assignDashboardToCustomer)
* Assign the Dashboard to specified Customer or do nothing if the Dashboard is already assigned to that Customer. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
@@ -1318,7 +992,7 @@ public ApiResponse assignDashboardToCustomerWithHttpInfo(@javax.annot
* @return ApiResponse<Dashboard>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignDashboardToCustomerWithHttpInfo(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
+ public ApiResponse assignDashboardToCustomerWithHttpInfo(@Nonnull String customerId, @Nonnull String dashboardId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignDashboardToCustomerRequestBuilder(customerId, dashboardId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1334,24 +1008,11 @@ public ApiResponse assignDashboardToCustomerWithHttpInfo(@javax.annot
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Dashboard responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1366,7 +1027,7 @@ public ApiResponse assignDashboardToCustomerWithHttpInfo(@javax.annot
}
}
- private HttpRequest.Builder assignDashboardToCustomerRequestBuilder(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignDashboardToCustomerRequestBuilder(@Nonnull String customerId, @Nonnull String dashboardId, Map headers) throws ApiException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
throw new ApiException(400, "Missing the required parameter 'customerId' when calling assignDashboardToCustomer");
@@ -1375,17 +1036,12 @@ private HttpRequest.Builder assignDashboardToCustomerRequestBuilder(@javax.annot
if (dashboardId == null) {
throw new ApiException(400, "Missing the required parameter 'dashboardId' when calling assignDashboardToCustomer");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/customer/{customerId}/dashboard/{dashboardId}"
.replace("{customerId}", ApiClient.urlEncode(customerId.toString()))
.replace("{dashboardId}", ApiClient.urlEncode(dashboardId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1406,36 +1062,11 @@ private HttpRequest.Builder assignDashboardToCustomerRequestBuilder(@javax.annot
* @return Dashboard
* @throws ApiException if fails to make API call
*/
- public Dashboard assignDashboardToEdge(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String dashboardId) throws ApiException {
- return assignDashboardToEdge(edgeId, dashboardId, null);
- }
-
- /**
- * Assign dashboard to edge (assignDashboardToEdge)
- * Creates assignment of an existing dashboard to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment dashboard (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once dashboard will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority.
- * @param edgeId (required)
- * @param dashboardId (required)
- * @param headers Optional headers to include in the request
- * @return Dashboard
- * @throws ApiException if fails to make API call
- */
- public Dashboard assignDashboardToEdge(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignDashboardToEdgeWithHttpInfo(edgeId, dashboardId, headers);
+ public Dashboard assignDashboardToEdge(@Nonnull String edgeId, @Nonnull String dashboardId) throws ApiException {
+ ApiResponse localVarResponse = assignDashboardToEdgeWithHttpInfo(edgeId, dashboardId, null);
return localVarResponse.getData();
}
- /**
- * Assign dashboard to edge (assignDashboardToEdge)
- * Creates assignment of an existing dashboard to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment dashboard (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once dashboard will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority.
- * @param edgeId (required)
- * @param dashboardId (required)
- * @return ApiResponse<Dashboard>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignDashboardToEdgeWithHttpInfo(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String dashboardId) throws ApiException {
- return assignDashboardToEdgeWithHttpInfo(edgeId, dashboardId, null);
- }
-
/**
* Assign dashboard to edge (assignDashboardToEdge)
* Creates assignment of an existing dashboard to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment dashboard (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once dashboard will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority.
@@ -1445,7 +1076,7 @@ public ApiResponse assignDashboardToEdgeWithHttpInfo(@javax.annotatio
* @return ApiResponse<Dashboard>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignDashboardToEdgeWithHttpInfo(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
+ public ApiResponse assignDashboardToEdgeWithHttpInfo(@Nonnull String edgeId, @Nonnull String dashboardId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignDashboardToEdgeRequestBuilder(edgeId, dashboardId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1461,24 +1092,11 @@ public ApiResponse assignDashboardToEdgeWithHttpInfo(@javax.annotatio
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Dashboard responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1493,7 +1111,7 @@ public ApiResponse assignDashboardToEdgeWithHttpInfo(@javax.annotatio
}
}
- private HttpRequest.Builder assignDashboardToEdgeRequestBuilder(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignDashboardToEdgeRequestBuilder(@Nonnull String edgeId, @Nonnull String dashboardId, Map headers) throws ApiException {
// verify the required parameter 'edgeId' is set
if (edgeId == null) {
throw new ApiException(400, "Missing the required parameter 'edgeId' when calling assignDashboardToEdge");
@@ -1502,17 +1120,12 @@ private HttpRequest.Builder assignDashboardToEdgeRequestBuilder(@javax.annotatio
if (dashboardId == null) {
throw new ApiException(400, "Missing the required parameter 'dashboardId' when calling assignDashboardToEdge");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/edge/{edgeId}/dashboard/{dashboardId}"
.replace("{edgeId}", ApiClient.urlEncode(edgeId.toString()))
.replace("{dashboardId}", ApiClient.urlEncode(dashboardId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1532,34 +1145,11 @@ private HttpRequest.Builder assignDashboardToEdgeRequestBuilder(@javax.annotatio
* @return Dashboard
* @throws ApiException if fails to make API call
*/
- public Dashboard assignDashboardToPublicCustomer(@javax.annotation.Nonnull String dashboardId) throws ApiException {
- return assignDashboardToPublicCustomer(dashboardId, null);
- }
-
- /**
- * Assign the Dashboard to Public Customer (assignDashboardToPublicCustomer)
- * Assigns the dashboard to a special, auto-generated 'Public' Customer. Once assigned, unauthenticated users may browse the dashboard. This method is useful if you like to embed the dashboard on public web pages to be available for users that are not logged in. Be aware that making the dashboard public does not mean that it automatically makes all devices and assets you use in the dashboard to be public.Use [assign Asset to Public Customer](#!/asset-controller/assignAssetToPublicCustomerUsingPOST) and [assign Device to Public Customer](#!/device-controller/assignDeviceToPublicCustomerUsingPOST) for this purpose. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
- * @param dashboardId A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Dashboard
- * @throws ApiException if fails to make API call
- */
- public Dashboard assignDashboardToPublicCustomer(@javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignDashboardToPublicCustomerWithHttpInfo(dashboardId, headers);
+ public Dashboard assignDashboardToPublicCustomer(@Nonnull String dashboardId) throws ApiException {
+ ApiResponse localVarResponse = assignDashboardToPublicCustomerWithHttpInfo(dashboardId, null);
return localVarResponse.getData();
}
- /**
- * Assign the Dashboard to Public Customer (assignDashboardToPublicCustomer)
- * Assigns the dashboard to a special, auto-generated 'Public' Customer. Once assigned, unauthenticated users may browse the dashboard. This method is useful if you like to embed the dashboard on public web pages to be available for users that are not logged in. Be aware that making the dashboard public does not mean that it automatically makes all devices and assets you use in the dashboard to be public.Use [assign Asset to Public Customer](#!/asset-controller/assignAssetToPublicCustomerUsingPOST) and [assign Device to Public Customer](#!/device-controller/assignDeviceToPublicCustomerUsingPOST) for this purpose. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
- * @param dashboardId A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Dashboard>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignDashboardToPublicCustomerWithHttpInfo(@javax.annotation.Nonnull String dashboardId) throws ApiException {
- return assignDashboardToPublicCustomerWithHttpInfo(dashboardId, null);
- }
-
/**
* Assign the Dashboard to Public Customer (assignDashboardToPublicCustomer)
* Assigns the dashboard to a special, auto-generated 'Public' Customer. Once assigned, unauthenticated users may browse the dashboard. This method is useful if you like to embed the dashboard on public web pages to be available for users that are not logged in. Be aware that making the dashboard public does not mean that it automatically makes all devices and assets you use in the dashboard to be public.Use [assign Asset to Public Customer](#!/asset-controller/assignAssetToPublicCustomerUsingPOST) and [assign Device to Public Customer](#!/device-controller/assignDeviceToPublicCustomerUsingPOST) for this purpose. Returns the Dashboard object. Available for users with 'TENANT_ADMIN' authority.
@@ -1568,7 +1158,7 @@ public ApiResponse assignDashboardToPublicCustomerWithHttpInfo(@javax
* @return ApiResponse<Dashboard>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignDashboardToPublicCustomerWithHttpInfo(@javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
+ public ApiResponse assignDashboardToPublicCustomerWithHttpInfo(@Nonnull String dashboardId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignDashboardToPublicCustomerRequestBuilder(dashboardId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1584,24 +1174,11 @@ public ApiResponse assignDashboardToPublicCustomerWithHttpInfo(@javax
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Dashboard responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1616,21 +1193,16 @@ public ApiResponse assignDashboardToPublicCustomerWithHttpInfo(@javax
}
}
- private HttpRequest.Builder assignDashboardToPublicCustomerRequestBuilder(@javax.annotation.Nonnull String dashboardId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignDashboardToPublicCustomerRequestBuilder(@Nonnull String dashboardId, Map headers) throws ApiException {
// verify the required parameter 'dashboardId' is set
if (dashboardId == null) {
throw new ApiException(400, "Missing the required parameter 'dashboardId' when calling assignDashboardToPublicCustomer");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/customer/public/dashboard/{dashboardId}"
.replace("{dashboardId}", ApiClient.urlEncode(dashboardId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1651,36 +1223,11 @@ private HttpRequest.Builder assignDashboardToPublicCustomerRequestBuilder(@javax
* @return Device
* @throws ApiException if fails to make API call
*/
- public Device assignDeviceToCustomer(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String deviceId) throws ApiException {
- return assignDeviceToCustomer(customerId, deviceId, null);
- }
-
- /**
- * Assign device to customer (assignDeviceToCustomer)
- * Creates assignment of the device to customer. Customer will be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority.
- * @param customerId A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param deviceId A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Device
- * @throws ApiException if fails to make API call
- */
- public Device assignDeviceToCustomer(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignDeviceToCustomerWithHttpInfo(customerId, deviceId, headers);
+ public Device assignDeviceToCustomer(@Nonnull String customerId, @Nonnull String deviceId) throws ApiException {
+ ApiResponse localVarResponse = assignDeviceToCustomerWithHttpInfo(customerId, deviceId, null);
return localVarResponse.getData();
}
- /**
- * Assign device to customer (assignDeviceToCustomer)
- * Creates assignment of the device to customer. Customer will be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority.
- * @param customerId A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param deviceId A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Device>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignDeviceToCustomerWithHttpInfo(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String deviceId) throws ApiException {
- return assignDeviceToCustomerWithHttpInfo(customerId, deviceId, null);
- }
-
/**
* Assign device to customer (assignDeviceToCustomer)
* Creates assignment of the device to customer. Customer will be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority.
@@ -1690,7 +1237,7 @@ public ApiResponse assignDeviceToCustomerWithHttpInfo(@javax.annotation.
* @return ApiResponse<Device>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignDeviceToCustomerWithHttpInfo(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
+ public ApiResponse assignDeviceToCustomerWithHttpInfo(@Nonnull String customerId, @Nonnull String deviceId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignDeviceToCustomerRequestBuilder(customerId, deviceId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1706,24 +1253,11 @@ public ApiResponse assignDeviceToCustomerWithHttpInfo(@javax.annotation.
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Device responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1738,7 +1272,7 @@ public ApiResponse assignDeviceToCustomerWithHttpInfo(@javax.annotation.
}
}
- private HttpRequest.Builder assignDeviceToCustomerRequestBuilder(@javax.annotation.Nonnull String customerId, @javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignDeviceToCustomerRequestBuilder(@Nonnull String customerId, @Nonnull String deviceId, Map headers) throws ApiException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
throw new ApiException(400, "Missing the required parameter 'customerId' when calling assignDeviceToCustomer");
@@ -1747,17 +1281,12 @@ private HttpRequest.Builder assignDeviceToCustomerRequestBuilder(@javax.annotati
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling assignDeviceToCustomer");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/customer/{customerId}/device/{deviceId}"
.replace("{customerId}", ApiClient.urlEncode(customerId.toString()))
.replace("{deviceId}", ApiClient.urlEncode(deviceId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1778,36 +1307,11 @@ private HttpRequest.Builder assignDeviceToCustomerRequestBuilder(@javax.annotati
* @return Device
* @throws ApiException if fails to make API call
*/
- public Device assignDeviceToEdge(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String deviceId) throws ApiException {
- return assignDeviceToEdge(edgeId, deviceId, null);
- }
-
- /**
- * Assign device to edge (assignDeviceToEdge)
- * Creates assignment of an existing device to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once device will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority.
- * @param edgeId A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param deviceId A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Device
- * @throws ApiException if fails to make API call
- */
- public Device assignDeviceToEdge(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignDeviceToEdgeWithHttpInfo(edgeId, deviceId, headers);
+ public Device assignDeviceToEdge(@Nonnull String edgeId, @Nonnull String deviceId) throws ApiException {
+ ApiResponse localVarResponse = assignDeviceToEdgeWithHttpInfo(edgeId, deviceId, null);
return localVarResponse.getData();
}
- /**
- * Assign device to edge (assignDeviceToEdge)
- * Creates assignment of an existing device to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once device will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority.
- * @param edgeId A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param deviceId A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Device>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignDeviceToEdgeWithHttpInfo(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String deviceId) throws ApiException {
- return assignDeviceToEdgeWithHttpInfo(edgeId, deviceId, null);
- }
-
/**
* Assign device to edge (assignDeviceToEdge)
* Creates assignment of an existing device to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once device will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority.
@@ -1817,7 +1321,7 @@ public ApiResponse assignDeviceToEdgeWithHttpInfo(@javax.annotation.Nonn
* @return ApiResponse<Device>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignDeviceToEdgeWithHttpInfo(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
+ public ApiResponse assignDeviceToEdgeWithHttpInfo(@Nonnull String edgeId, @Nonnull String deviceId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignDeviceToEdgeRequestBuilder(edgeId, deviceId, headers);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1833,24 +1337,11 @@ public ApiResponse assignDeviceToEdgeWithHttpInfo(@javax.annotation.Nonn
}
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
if (localVarResponseBody == null) {
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- null
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), null);
}
-
-
-
String responseBody = new String(localVarResponseBody.readAllBytes());
Device responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {});
-
-
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseValue
- );
+ return new ApiResponse(localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue);
} finally {
if (localVarResponseBody != null) {
localVarResponseBody.close();
@@ -1865,7 +1356,7 @@ public ApiResponse assignDeviceToEdgeWithHttpInfo(@javax.annotation.Nonn
}
}
- private HttpRequest.Builder assignDeviceToEdgeRequestBuilder(@javax.annotation.Nonnull String edgeId, @javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
+ private HttpRequest.Builder assignDeviceToEdgeRequestBuilder(@Nonnull String edgeId, @Nonnull String deviceId, Map headers) throws ApiException {
// verify the required parameter 'edgeId' is set
if (edgeId == null) {
throw new ApiException(400, "Missing the required parameter 'edgeId' when calling assignDeviceToEdge");
@@ -1874,17 +1365,12 @@ private HttpRequest.Builder assignDeviceToEdgeRequestBuilder(@javax.annotation.N
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling assignDeviceToEdge");
}
-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
String localVarPath = "/api/edge/{edgeId}/device/{deviceId}"
.replace("{edgeId}", ApiClient.urlEncode(edgeId.toString()))
.replace("{deviceId}", ApiClient.urlEncode(deviceId.toString()));
-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
localVarRequestBuilder.header("Accept", "application/json");
-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
@@ -1904,34 +1390,11 @@ private HttpRequest.Builder assignDeviceToEdgeRequestBuilder(@javax.annotation.N
* @return Device
* @throws ApiException if fails to make API call
*/
- public Device assignDeviceToPublicCustomer(@javax.annotation.Nonnull String deviceId) throws ApiException {
- return assignDeviceToPublicCustomer(deviceId, null);
- }
-
- /**
- * Make device publicly available (assignDeviceToPublicCustomer)
- * Device will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the device. Available for users with 'TENANT_ADMIN' authority.
- * @param deviceId A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @param headers Optional headers to include in the request
- * @return Device
- * @throws ApiException if fails to make API call
- */
- public Device assignDeviceToPublicCustomer(@javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
- ApiResponse localVarResponse = assignDeviceToPublicCustomerWithHttpInfo(deviceId, headers);
+ public Device assignDeviceToPublicCustomer(@Nonnull String deviceId) throws ApiException {
+ ApiResponse localVarResponse = assignDeviceToPublicCustomerWithHttpInfo(deviceId, null);
return localVarResponse.getData();
}
- /**
- * Make device publicly available (assignDeviceToPublicCustomer)
- * Device will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the device. Available for users with 'TENANT_ADMIN' authority.
- * @param deviceId A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
- * @return ApiResponse<Device>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse assignDeviceToPublicCustomerWithHttpInfo(@javax.annotation.Nonnull String deviceId) throws ApiException {
- return assignDeviceToPublicCustomerWithHttpInfo(deviceId, null);
- }
-
/**
* Make device publicly available (assignDeviceToPublicCustomer)
* Device will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the device. Available for users with 'TENANT_ADMIN' authority.
@@ -1940,7 +1403,7 @@ public ApiResponse assignDeviceToPublicCustomerWithHttpInfo(@javax.annot
* @return ApiResponse<Device>
* @throws ApiException if fails to make API call
*/
- public ApiResponse assignDeviceToPublicCustomerWithHttpInfo(@javax.annotation.Nonnull String deviceId, Map headers) throws ApiException {
+ public ApiResponse assignDeviceToPublicCustomerWithHttpInfo(@Nonnull String deviceId, Map headers) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = assignDeviceToPublicCustomerRequestBuilder(deviceId, headers);
try {
HttpResponse