@@ -7,52 +7,53 @@ All URIs are relative to */v1*
77| [ ** getArrayTasksSidebar** ] ( ArrayTasksApi.md#getArrayTasksSidebar ) | ** GET** /tasks/sidebar | |
88
99
10- <a id =" getArrayTasksSidebar " ></a >
10+ <a name =" getArrayTasksSidebar " ></a >
1111# ** getArrayTasksSidebar**
1212> ArrayTaskBrowserSidebar getArrayTasksSidebar(start, end)
1313
1414
1515
1616### Example
17+
1718``` java
1819// Import classes:
19- import io.tiledb.cloud.rest_api.ApiClient ;
20- import io.tiledb.cloud .rest_api.ApiException ;
21- import io.tiledb.cloud .rest_api.Configuration ;
22- import io.tiledb.cloud .rest_api.auth.* ;
23- import io.tiledb.cloud.rest_api .models.* ;
24- import io.tiledb.cloud .rest_api.api.ArrayTasksApi ;
20+
21+ import org.openapitools.client .rest_api.ApiClient ;
22+ import org.openapitools.client .rest_api.ApiException ;
23+ import org.openapitools.client .rest_api.Configuration ;
24+ import org.openapitools.client .models.* ;
25+ import org.openapitools.client .rest_api.api.ArrayTasksApi ;
2526
2627public class Example {
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();
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+ }
5456 }
55- }
5657}
5758```
5859
@@ -69,7 +70,7 @@ public class Example {
6970
7071### Authorization
7172
72- [ BasicAuth ] ( ../README.md#BasicAuth ) , [ ApiKeyAuth ] ( ../README.md#ApiKeyAuth )
73+ [ ApiKeyAuth ] ( ../README.md#ApiKeyAuth ) , [ BasicAuth ] ( ../README.md#BasicAuth )
7374
7475### HTTP request headers
7576
0 commit comments