Skip to content

Commit 69417ba

Browse files
Regenerate client
1 parent 01bc01f commit 69417ba

1 file changed

Lines changed: 0 additions & 123 deletions

File tree

pe/src/main/java/org/thingsboard/client/api/ThingsboardApi.java

Lines changed: 0 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -78915,129 +78915,6 @@ private HttpRequest.Builder saveCalculatedFieldRequestBuilder(@javax.annotation.
7891578915
return localVarRequestBuilder;
7891678916
}
7891778917

78918-
/**
78919-
* Save claiming information (saveClaimingInfo)
78920-
* Saves the information required for user to claim the device. See more info about claiming in the corresponding 'Claiming devices' platform documentation. Example of the request payload: ```json {\"secretKey\":\"value\", \"durationMs\":60000} ``` Note: both 'secretKey' and 'durationMs' is optional parameters. In case the secretKey is not specified, the empty string as a default value is used. In case the durationMs is not specified, the system parameter device.claim.duration is used. The API call is designed to be used by device firmware and requires device access token ('deviceToken'). It is not recommended to use this API call by third-party scripts, rule-engine or platform widgets (use 'Telemetry Controller' instead).
78921-
* @param deviceToken Your device access token. (required)
78922-
* @param body (optional)
78923-
* @return String
78924-
* @throws ApiException if fails to make API call
78925-
*/
78926-
public String saveClaimingInfo(@javax.annotation.Nonnull String deviceToken, @javax.annotation.Nullable String body) throws ApiException {
78927-
return saveClaimingInfo(deviceToken, body, null);
78928-
}
78929-
78930-
/**
78931-
* Save claiming information (saveClaimingInfo)
78932-
* Saves the information required for user to claim the device. See more info about claiming in the corresponding 'Claiming devices' platform documentation. Example of the request payload: ```json {\"secretKey\":\"value\", \"durationMs\":60000} ``` Note: both 'secretKey' and 'durationMs' is optional parameters. In case the secretKey is not specified, the empty string as a default value is used. In case the durationMs is not specified, the system parameter device.claim.duration is used. The API call is designed to be used by device firmware and requires device access token ('deviceToken'). It is not recommended to use this API call by third-party scripts, rule-engine or platform widgets (use 'Telemetry Controller' instead).
78933-
* @param deviceToken Your device access token. (required)
78934-
* @param body (optional)
78935-
* @param headers Optional headers to include in the request
78936-
* @return String
78937-
* @throws ApiException if fails to make API call
78938-
*/
78939-
public String saveClaimingInfo(@javax.annotation.Nonnull String deviceToken, @javax.annotation.Nullable String body, Map<String, String> headers) throws ApiException {
78940-
ApiResponse<String> localVarResponse = saveClaimingInfoWithHttpInfo(deviceToken, body, headers);
78941-
return localVarResponse.getData();
78942-
}
78943-
78944-
/**
78945-
* Save claiming information (saveClaimingInfo)
78946-
* Saves the information required for user to claim the device. See more info about claiming in the corresponding &#39;Claiming devices&#39; platform documentation. Example of the request payload: &#x60;&#x60;&#x60;json {\&quot;secretKey\&quot;:\&quot;value\&quot;, \&quot;durationMs\&quot;:60000} &#x60;&#x60;&#x60; Note: both &#39;secretKey&#39; and &#39;durationMs&#39; is optional parameters. In case the secretKey is not specified, the empty string as a default value is used. In case the durationMs is not specified, the system parameter device.claim.duration is used. The API call is designed to be used by device firmware and requires device access token (&#39;deviceToken&#39;). It is not recommended to use this API call by third-party scripts, rule-engine or platform widgets (use &#39;Telemetry Controller&#39; instead).
78947-
* @param deviceToken Your device access token. (required)
78948-
* @param body (optional)
78949-
* @return ApiResponse&lt;String&gt;
78950-
* @throws ApiException if fails to make API call
78951-
*/
78952-
public ApiResponse<String> saveClaimingInfoWithHttpInfo(@javax.annotation.Nonnull String deviceToken, @javax.annotation.Nullable String body) throws ApiException {
78953-
return saveClaimingInfoWithHttpInfo(deviceToken, body, null);
78954-
}
78955-
78956-
/**
78957-
* Save claiming information (saveClaimingInfo)
78958-
* Saves the information required for user to claim the device. See more info about claiming in the corresponding &#39;Claiming devices&#39; platform documentation. Example of the request payload: &#x60;&#x60;&#x60;json {\&quot;secretKey\&quot;:\&quot;value\&quot;, \&quot;durationMs\&quot;:60000} &#x60;&#x60;&#x60; Note: both &#39;secretKey&#39; and &#39;durationMs&#39; is optional parameters. In case the secretKey is not specified, the empty string as a default value is used. In case the durationMs is not specified, the system parameter device.claim.duration is used. The API call is designed to be used by device firmware and requires device access token (&#39;deviceToken&#39;). It is not recommended to use this API call by third-party scripts, rule-engine or platform widgets (use &#39;Telemetry Controller&#39; instead).
78959-
* @param deviceToken Your device access token. (required)
78960-
* @param body (optional)
78961-
* @param headers Optional headers to include in the request
78962-
* @return ApiResponse&lt;String&gt;
78963-
* @throws ApiException if fails to make API call
78964-
*/
78965-
public ApiResponse<String> saveClaimingInfoWithHttpInfo(@javax.annotation.Nonnull String deviceToken, @javax.annotation.Nullable String body, Map<String, String> headers) throws ApiException {
78966-
HttpRequest.Builder localVarRequestBuilder = saveClaimingInfoRequestBuilder(deviceToken, body, headers);
78967-
try {
78968-
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
78969-
localVarRequestBuilder.build(),
78970-
HttpResponse.BodyHandlers.ofInputStream());
78971-
if (memberVarResponseInterceptor != null) {
78972-
memberVarResponseInterceptor.accept(localVarResponse);
78973-
}
78974-
InputStream localVarResponseBody = null;
78975-
try {
78976-
if (localVarResponse.statusCode()/ 100 != 2) {
78977-
throw getApiException("saveClaimingInfo", localVarResponse);
78978-
}
78979-
localVarResponseBody = ApiClient.getResponseBody(localVarResponse);
78980-
if (localVarResponseBody == null) {
78981-
return new ApiResponse<String>(
78982-
localVarResponse.statusCode(),
78983-
localVarResponse.headers().map(),
78984-
null
78985-
);
78986-
}
78987-
78988-
78989-
78990-
String responseBody = new String(localVarResponseBody.readAllBytes());
78991-
String responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference<String>() {});
78992-
78993-
78994-
return new ApiResponse<String>(
78995-
localVarResponse.statusCode(),
78996-
localVarResponse.headers().map(),
78997-
responseValue
78998-
);
78999-
} finally {
79000-
if (localVarResponseBody != null) {
79001-
localVarResponseBody.close();
79002-
}
79003-
}
79004-
} catch (IOException e) {
79005-
throw new ApiException(e);
79006-
}
79007-
catch (InterruptedException e) {
79008-
Thread.currentThread().interrupt();
79009-
throw new ApiException(e);
79010-
}
79011-
}
79012-
79013-
private HttpRequest.Builder saveClaimingInfoRequestBuilder(@javax.annotation.Nonnull String deviceToken, @javax.annotation.Nullable String body, Map<String, String> headers) throws ApiException {
79014-
// verify the required parameter 'deviceToken' is set
79015-
if (deviceToken == null) {
79016-
throw new ApiException(400, "Missing the required parameter 'deviceToken' when calling saveClaimingInfo");
79017-
}
79018-
79019-
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
79020-
79021-
String localVarPath = "/api/v1/{deviceToken}/claim"
79022-
.replace("{deviceToken}", ApiClient.urlEncode(deviceToken.toString()));
79023-
79024-
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
79025-
79026-
localVarRequestBuilder.header("Content-Type", "application/json");
79027-
localVarRequestBuilder.header("Accept", "application/json");
79028-
79029-
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofString(body));
79030-
if (memberVarReadTimeout != null) {
79031-
localVarRequestBuilder.timeout(memberVarReadTimeout);
79032-
}
79033-
// Add custom headers if provided
79034-
localVarRequestBuilder = HttpRequestBuilderExtensions.withAdditionalHeaders(localVarRequestBuilder, headers);
79035-
if (memberVarInterceptor != null) {
79036-
memberVarInterceptor.accept(localVarRequestBuilder);
79037-
}
79038-
return localVarRequestBuilder;
79039-
}
79040-
7904178918
/**
7904278919
* Create or update OAuth2 client registration template (saveClientRegistrationTemplate) Available for users with &#39;SYS_ADMIN&#39; authority.
7904378920
* Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients

0 commit comments

Comments
 (0)