Skip to content

Commit 1ee3037

Browse files
authored
Merge pull request #21 from sematext/master
Update develop back from master
2 parents 3587120 + 61c86b9 commit 1ee3037

File tree

7 files changed

+109
-73
lines changed

7 files changed

+109
-73
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Refer to below link for deeper information on the API itself.
3333

3434
## Contents
3535

36-
- [<img src="https://sematext.com/wp-content/uploads/2020/09/just-octi-blue.png" valign="bottom" width="60px"/>**&nbsp;&nbsp;sematext-api-client-java**](#img-srchttpssematextcomwp-contentuploads202009just-octi-bluepng-valignbottom-width60pxsematext-api-client-java)
36+
- [<img src="https://sematext.com/wp-content/uploads/2020/09/just-octi-blue.png" valign="bottom" width="60px"/>**&nbsp;&nbsp;sematext-api-client-java**](#sematext-api-client-java)
3737
- [Contents](#contents)
3838
- [Getting Started](#getting-started)
3939
- [Prerequisites](#prerequisites)

docs/CreateTokenDto.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
## Properties
55
| Name | Type | Description | Notes |
66
| ------------- | ----------- | ----------- | ---------- |
7+
| **name** | **String** | | [optional] |
78
| **readable** | **Boolean** | | [optional] |
89
| **writeable** | **Boolean** | | [optional] |

docs/TokensApiControllerApi.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
All URIs are relative to *https://localhost*
44

5-
| Method | HTTP request | Description |
6-
| ---------------------------------------------------------------------- | ------------------------------------------------------------------- | --------------------------------- |
7-
| [**createAppToken**](TokensApiControllerApi.md#createAppToken) | **POST** /users-web/api/v3/apps/{appId}/tokens | Create new app token |
8-
| [**deleteAppToken1**](TokensApiControllerApi.md#deleteAppToken1) | **DELETE** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Delete app token |
9-
| [**getAppTokens1**](TokensApiControllerApi.md#getAppTokens1) | **GET** /users-web/api/v3/apps/{appId}/tokens | Get app available tokens |
10-
| [**regenerateAppToken**](TokensApiControllerApi.md#regenerateAppToken) | **POST** /users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate | Regenerate app token) |
11-
| [**updateAppToken1**](TokensApiControllerApi.md#updateAppToken1) | **PUT** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Update app token (enable/disable) |
5+
| Method | HTTP request | Description |
6+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------- | ----------------------------------------- |
7+
| [**createAppToken1**](TokensApiControllerApi.md#createAppToken1) | **POST** /users-web/api/v3/apps/{appId}/tokens | Create new app token |
8+
| [**deleteAppToken1**](TokensApiControllerApi.md#deleteAppToken1) | **DELETE** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Delete app token |
9+
| [**getAppTokens**](TokensApiControllerApi.md#getAppTokens) | **GET** /users-web/api/v3/apps/{appId}/tokens | Get app available tokens |
10+
| [**regenerateAppToken1**](TokensApiControllerApi.md#regenerateAppToken1) | **POST** /users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate | Regenerate app token) |
11+
| [**updateAppToken**](TokensApiControllerApi.md#updateAppToken) | **PUT** /users-web/api/v3/apps/{appId}/tokens/{tokenId} | Update app token (enable/disable or name) |
1212

1313

14-
<a name="createAppToken"></a>
15-
# **createAppToken**
16-
> GenericApiResponse createAppToken(appId, dto)
14+
<a name="createAppToken1"></a>
15+
# **createAppToken1**
16+
> GenericApiResponse createAppToken1(appId, dto)
1717
1818
Create new app token
1919

@@ -38,10 +38,10 @@ TokensApiControllerApi apiInstance = new TokensApiControllerApi();
3838
Long appId = 789L; // Long | appId
3939
CreateTokenDto dto = new CreateTokenDto(); // CreateTokenDto | dto
4040
try {
41-
GenericApiResponse result = apiInstance.createAppToken(appId, dto);
41+
GenericApiResponse result = apiInstance.createAppToken1(appId, dto);
4242
System.out.println(result);
4343
} catch (ApiException e) {
44-
System.err.println("Exception when calling TokensApiControllerApi#createAppToken");
44+
System.err.println("Exception when calling TokensApiControllerApi#createAppToken1");
4545
e.printStackTrace();
4646
}
4747
```
@@ -121,9 +121,9 @@ try {
121121
- **Content-Type**: application/json
122122
- **Accept**: application/json
123123

124-
<a name="getAppTokens1"></a>
125-
# **getAppTokens1**
126-
> GenericApiResponse getAppTokens1(appId)
124+
<a name="getAppTokens"></a>
125+
# **getAppTokens**
126+
> GenericApiResponse getAppTokens(appId)
127127
128128
Get app available tokens
129129

@@ -147,10 +147,10 @@ api_key.setApiKey("YOUR API KEY");
147147
TokensApiControllerApi apiInstance = new TokensApiControllerApi();
148148
Long appId = 789L; // Long | appId
149149
try {
150-
GenericApiResponse result = apiInstance.getAppTokens1(appId);
150+
GenericApiResponse result = apiInstance.getAppTokens(appId);
151151
System.out.println(result);
152152
} catch (ApiException e) {
153-
System.err.println("Exception when calling TokensApiControllerApi#getAppTokens1");
153+
System.err.println("Exception when calling TokensApiControllerApi#getAppTokens");
154154
e.printStackTrace();
155155
}
156156
```
@@ -174,9 +174,9 @@ try {
174174
- **Content-Type**: application/json
175175
- **Accept**: application/json
176176

177-
<a name="regenerateAppToken"></a>
178-
# **regenerateAppToken**
179-
> GenericApiResponse regenerateAppToken(appId, tokenId)
177+
<a name="regenerateAppToken1"></a>
178+
# **regenerateAppToken1**
179+
> GenericApiResponse regenerateAppToken1(appId, tokenId)
180180
181181
Regenerate app token)
182182

@@ -201,10 +201,10 @@ TokensApiControllerApi apiInstance = new TokensApiControllerApi();
201201
Long appId = 789L; // Long | appId
202202
Long tokenId = 789L; // Long | tokenId
203203
try {
204-
GenericApiResponse result = apiInstance.regenerateAppToken(appId, tokenId);
204+
GenericApiResponse result = apiInstance.regenerateAppToken1(appId, tokenId);
205205
System.out.println(result);
206206
} catch (ApiException e) {
207-
System.err.println("Exception when calling TokensApiControllerApi#regenerateAppToken");
207+
System.err.println("Exception when calling TokensApiControllerApi#regenerateAppToken1");
208208
e.printStackTrace();
209209
}
210210
```
@@ -229,11 +229,11 @@ try {
229229
- **Content-Type**: application/json
230230
- **Accept**: application/json
231231

232-
<a name="updateAppToken1"></a>
233-
# **updateAppToken1**
234-
> GenericApiResponse updateAppToken1(appId, tokenId, dto)
232+
<a name="updateAppToken"></a>
233+
# **updateAppToken**
234+
> GenericApiResponse updateAppToken(appId, tokenId, dto)
235235
236-
Update app token (enable/disable)
236+
Update app token (enable/disable or name)
237237

238238
### Example
239239
```java
@@ -257,10 +257,10 @@ Long appId = 789L; // Long | appId
257257
Long tokenId = 789L; // Long | tokenId
258258
UpdateTokenDto dto = new UpdateTokenDto(); // UpdateTokenDto | dto
259259
try {
260-
GenericApiResponse result = apiInstance.updateAppToken1(appId, tokenId, dto);
260+
GenericApiResponse result = apiInstance.updateAppToken(appId, tokenId, dto);
261261
System.out.println(result);
262262
} catch (ApiException e) {
263-
System.err.println("Exception when calling TokensApiControllerApi#updateAppToken1");
263+
System.err.println("Exception when calling TokensApiControllerApi#updateAppToken");
264264
e.printStackTrace();
265265
}
266266
```

docs/UpdateTokenDto.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
| Name | Type | Description | Notes |
66
| ----------- | ----------- | ----------- | ---------- |
77
| **enabled** | **Boolean** | | [optional] |
8+
| **name** | **String** | | [optional] |

src/main/java/com/sematext/cloud/client/TokensApiControllerApi.java

+33-33
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
44
*
55
* OpenAPI spec version: v3
6-
*
6+
*
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
99
* https://github.com/swagger-api/swagger-codegen.git
@@ -109,17 +109,17 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
109109

110110
@SuppressWarnings("rawtypes")
111111
private com.squareup.okhttp.Call createAppTokenValidateBeforeCall(Long appId, CreateTokenDto dto, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
112-
112+
113113
// verify the required parameter 'appId' is set
114114
if (appId == null) {
115115
throw new ApiException("Missing the required parameter 'appId' when calling createAppToken(Async)");
116116
}
117-
117+
118118
// verify the required parameter 'dto' is set
119119
if (dto == null) {
120120
throw new ApiException("Missing the required parameter 'dto' when calling createAppToken(Async)");
121121
}
122-
122+
123123

124124
com.squareup.okhttp.Call call = createAppTokenCall(appId, dto, progressListener, progressRequestListener);
125125
return call;
@@ -128,7 +128,7 @@ private com.squareup.okhttp.Call createAppTokenValidateBeforeCall(Long appId, Cr
128128

129129
/**
130130
* Create new app token
131-
*
131+
*
132132
* @param appId appId (required)
133133
* @param dto dto (required)
134134
* @return GenericApiResponse
@@ -141,7 +141,7 @@ public GenericApiResponse createAppToken(Long appId, CreateTokenDto dto) throws
141141

142142
/**
143143
* Create new app token
144-
*
144+
*
145145
* @param appId appId (required)
146146
* @param dto dto (required)
147147
* @return ApiResponse&lt;GenericApiResponse&gt;
@@ -155,7 +155,7 @@ public ApiResponse<GenericApiResponse> createAppTokenWithHttpInfo(Long appId, Cr
155155

156156
/**
157157
* Create new app token (asynchronously)
158-
*
158+
*
159159
* @param appId appId (required)
160160
* @param dto dto (required)
161161
* @param callback The callback to be executed when the API call finishes
@@ -242,17 +242,17 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
242242

243243
@SuppressWarnings("rawtypes")
244244
private com.squareup.okhttp.Call deleteAppToken1ValidateBeforeCall(Long appId, Long tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
245-
245+
246246
// verify the required parameter 'appId' is set
247247
if (appId == null) {
248248
throw new ApiException("Missing the required parameter 'appId' when calling deleteAppToken1(Async)");
249249
}
250-
250+
251251
// verify the required parameter 'tokenId' is set
252252
if (tokenId == null) {
253253
throw new ApiException("Missing the required parameter 'tokenId' when calling deleteAppToken1(Async)");
254254
}
255-
255+
256256

257257
com.squareup.okhttp.Call call = deleteAppToken1Call(appId, tokenId, progressListener, progressRequestListener);
258258
return call;
@@ -261,7 +261,7 @@ private com.squareup.okhttp.Call deleteAppToken1ValidateBeforeCall(Long appId, L
261261

262262
/**
263263
* Delete app token
264-
*
264+
*
265265
* @param appId appId (required)
266266
* @param tokenId tokenId (required)
267267
* @return GenericApiResponse
@@ -274,7 +274,7 @@ public GenericApiResponse deleteAppToken1(Long appId, Long tokenId) throws ApiEx
274274

275275
/**
276276
* Delete app token
277-
*
277+
*
278278
* @param appId appId (required)
279279
* @param tokenId tokenId (required)
280280
* @return ApiResponse&lt;GenericApiResponse&gt;
@@ -288,7 +288,7 @@ public ApiResponse<GenericApiResponse> deleteAppToken1WithHttpInfo(Long appId, L
288288

289289
/**
290290
* Delete app token (asynchronously)
291-
*
291+
*
292292
* @param appId appId (required)
293293
* @param tokenId tokenId (required)
294294
* @param callback The callback to be executed when the API call finishes
@@ -373,12 +373,12 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
373373

374374
@SuppressWarnings("rawtypes")
375375
private com.squareup.okhttp.Call getAppTokens1ValidateBeforeCall(Long appId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
376-
376+
377377
// verify the required parameter 'appId' is set
378378
if (appId == null) {
379379
throw new ApiException("Missing the required parameter 'appId' when calling getAppTokens1(Async)");
380380
}
381-
381+
382382

383383
com.squareup.okhttp.Call call = getAppTokens1Call(appId, progressListener, progressRequestListener);
384384
return call;
@@ -387,7 +387,7 @@ private com.squareup.okhttp.Call getAppTokens1ValidateBeforeCall(Long appId, fin
387387

388388
/**
389389
* Get app available tokens
390-
*
390+
*
391391
* @param appId appId (required)
392392
* @return GenericApiResponse
393393
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -399,7 +399,7 @@ public GenericApiResponse getAppTokens1(Long appId) throws ApiException {
399399

400400
/**
401401
* Get app available tokens
402-
*
402+
*
403403
* @param appId appId (required)
404404
* @return ApiResponse&lt;GenericApiResponse&gt;
405405
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -412,7 +412,7 @@ public ApiResponse<GenericApiResponse> getAppTokens1WithHttpInfo(Long appId) thr
412412

413413
/**
414414
* Get app available tokens (asynchronously)
415-
*
415+
*
416416
* @param appId appId (required)
417417
* @param callback The callback to be executed when the API call finishes
418418
* @return The request call
@@ -498,17 +498,17 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
498498

499499
@SuppressWarnings("rawtypes")
500500
private com.squareup.okhttp.Call regenerateAppTokenValidateBeforeCall(Long appId, Long tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
501-
501+
502502
// verify the required parameter 'appId' is set
503503
if (appId == null) {
504504
throw new ApiException("Missing the required parameter 'appId' when calling regenerateAppToken(Async)");
505505
}
506-
506+
507507
// verify the required parameter 'tokenId' is set
508508
if (tokenId == null) {
509509
throw new ApiException("Missing the required parameter 'tokenId' when calling regenerateAppToken(Async)");
510510
}
511-
511+
512512

513513
com.squareup.okhttp.Call call = regenerateAppTokenCall(appId, tokenId, progressListener, progressRequestListener);
514514
return call;
@@ -517,7 +517,7 @@ private com.squareup.okhttp.Call regenerateAppTokenValidateBeforeCall(Long appId
517517

518518
/**
519519
* Regenerate app token)
520-
*
520+
*
521521
* @param appId appId (required)
522522
* @param tokenId tokenId (required)
523523
* @return GenericApiResponse
@@ -530,7 +530,7 @@ public GenericApiResponse regenerateAppToken(Long appId, Long tokenId) throws Ap
530530

531531
/**
532532
* Regenerate app token)
533-
*
533+
*
534534
* @param appId appId (required)
535535
* @param tokenId tokenId (required)
536536
* @return ApiResponse&lt;GenericApiResponse&gt;
@@ -544,7 +544,7 @@ public ApiResponse<GenericApiResponse> regenerateAppTokenWithHttpInfo(Long appId
544544

545545
/**
546546
* Regenerate app token) (asynchronously)
547-
*
547+
*
548548
* @param appId appId (required)
549549
* @param tokenId tokenId (required)
550550
* @param callback The callback to be executed when the API call finishes
@@ -632,22 +632,22 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
632632

633633
@SuppressWarnings("rawtypes")
634634
private com.squareup.okhttp.Call updateAppTokenValidateBeforeCall(Long appId, Long tokenId, UpdateTokenDto dto, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
635-
635+
636636
// verify the required parameter 'appId' is set
637637
if (appId == null) {
638638
throw new ApiException("Missing the required parameter 'appId' when calling updateAppToken(Async)");
639639
}
640-
640+
641641
// verify the required parameter 'tokenId' is set
642642
if (tokenId == null) {
643643
throw new ApiException("Missing the required parameter 'tokenId' when calling updateAppToken(Async)");
644644
}
645-
645+
646646
// verify the required parameter 'dto' is set
647647
if (dto == null) {
648648
throw new ApiException("Missing the required parameter 'dto' when calling updateAppToken(Async)");
649649
}
650-
650+
651651

652652
com.squareup.okhttp.Call call = updateAppTokenCall(appId, tokenId, dto, progressListener, progressRequestListener);
653653
return call;
@@ -656,7 +656,7 @@ private com.squareup.okhttp.Call updateAppTokenValidateBeforeCall(Long appId, Lo
656656

657657
/**
658658
* Update app token (enable/disable)
659-
*
659+
*
660660
* @param appId appId (required)
661661
* @param tokenId tokenId (required)
662662
* @param dto dto (required)
@@ -669,8 +669,8 @@ public GenericApiResponse updateAppToken(Long appId, Long tokenId, UpdateTokenDt
669669
}
670670

671671
/**
672-
* Update app token (enable/disable)
673-
*
672+
* Update app token (enable/disable or name)
673+
*
674674
* @param appId appId (required)
675675
* @param tokenId tokenId (required)
676676
* @param dto dto (required)
@@ -684,8 +684,8 @@ public ApiResponse<GenericApiResponse> updateAppTokenWithHttpInfo(Long appId, Lo
684684
}
685685

686686
/**
687-
* Update app token (enable/disable) (asynchronously)
688-
*
687+
* Update app token (enable/disable or name) (asynchronously)
688+
*
689689
* @param appId appId (required)
690690
* @param tokenId tokenId (required)
691691
* @param dto dto (required)

0 commit comments

Comments
 (0)