Skip to content

Commit e5a4c05

Browse files
committed
openapi-generator-cli generate -i openapi-v1.yaml -g java
1 parent 45e0da0 commit e5a4c05

27 files changed

+7008
-7391
lines changed

.openapi-generator/FILES

Lines changed: 236 additions & 448 deletions
Large diffs are not rendered by default.

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
7.7.0

docs/ArrayApi.md

Lines changed: 1311 additions & 1345 deletions
Large diffs are not rendered by default.

docs/ArrayTasksApi.md

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,52 @@ All URIs are relative to */v1*
77
| [**getArrayTasksSidebar**](ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | |
88

99

10-
<a name="getArrayTasksSidebar"></a>
10+
<a id="getArrayTasksSidebar"></a>
1111
# **getArrayTasksSidebar**
1212
> ArrayTaskBrowserSidebar getArrayTasksSidebar(start, end)
1313
1414

1515

1616
### Example
17-
1817
```java
1918
// Import classes:
20-
21-
import io.tiledb.cloud.rest_api.ApiClient;
22-
import io.tiledb.cloud.rest_api.ApiException;
23-
import io.tiledb.cloud.rest_api.Configuration;
24-
import io.tiledb.cloud.models.*;
25-
import io.tiledb.cloud.rest_api.api.ArrayTasksApi;
19+
import org.openapitools.client.ApiClient;
20+
import org.openapitools.client.ApiException;
21+
import org.openapitools.client.Configuration;
22+
import org.openapitools.client.auth.*;
23+
import org.openapitools.client.models.*;
24+
import org.openapitools.client.api.ArrayTasksApi;
2625

2726
public class Example {
28-
public static void main(String[] args) {
29-
ApiClient defaultClient = Configuration.getDefaultApiClient();
30-
defaultClient.setBasePath("/v1");
31-
32-
// Configure API key authorization: ApiKeyAuth
33-
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
34-
ApiKeyAuth.setApiKey("YOUR API KEY");
35-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
36-
//ApiKeyAuth.setApiKeyPrefix("Token");
37-
38-
// Configure HTTP basic authorization: BasicAuth
39-
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
40-
BasicAuth.setUsername("YOUR USERNAME");
41-
BasicAuth.setPassword("YOUR PASSWORD");
42-
43-
ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient);
44-
Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago
45-
Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now
46-
try {
47-
ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end);
48-
System.out.println(result);
49-
} catch (ApiException e) {
50-
System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar");
51-
System.err.println("Status code: " + e.getCode());
52-
System.err.println("Reason: " + e.getResponseBody());
53-
System.err.println("Response headers: " + e.getResponseHeaders());
54-
e.printStackTrace();
55-
}
27+
public static void main(String[] args) {
28+
ApiClient defaultClient = Configuration.getDefaultApiClient();
29+
defaultClient.setBasePath("/v1");
30+
31+
// Configure HTTP basic authorization: BasicAuth
32+
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
33+
BasicAuth.setUsername("YOUR USERNAME");
34+
BasicAuth.setPassword("YOUR PASSWORD");
35+
36+
// Configure API key authorization: ApiKeyAuth
37+
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
38+
ApiKeyAuth.setApiKey("YOUR API KEY");
39+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
40+
//ApiKeyAuth.setApiKeyPrefix("Token");
41+
42+
ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient);
43+
Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago
44+
Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now
45+
try {
46+
ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end);
47+
System.out.println(result);
48+
} catch (ApiException e) {
49+
System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar");
50+
System.err.println("Status code: " + e.getCode());
51+
System.err.println("Reason: " + e.getResponseBody());
52+
System.err.println("Response headers: " + e.getResponseHeaders());
53+
e.printStackTrace();
5654
}
55+
}
5756
}
5857
```
5958

@@ -70,7 +69,7 @@ public class Example {
7069

7170
### Authorization
7271

73-
[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
72+
[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
7473

7574
### HTTP request headers
7675

0 commit comments

Comments
 (0)