Skip to content

Commit

Permalink
[GitHub Bot] Generated java SDK (thousandeyes#84)
Browse files Browse the repository at this point in the history
Co-authored-by: API Team <api-team@thousandeyes.com>
  • Loading branch information
mpragosa-te and API Team authored Oct 1, 2024
1 parent 1b35c40 commit f0f6b95
Show file tree
Hide file tree
Showing 41 changed files with 1,066 additions and 217 deletions.
2 changes: 1 addition & 1 deletion administrative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Administrative API

- API version: 7.0.20
- API version: 7.0.21

Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API.
This API provides the following operations to manage your organization:
Expand Down
2 changes: 1 addition & 1 deletion agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Agents API

- API version: 7.0.20
- API version: 7.0.21


## Overview
Expand Down
2 changes: 1 addition & 1 deletion alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Alerts API

- API version: 7.0.20
- API version: 7.0.21

You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API:

Expand Down
2 changes: 1 addition & 1 deletion bgp-monitors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BGP Monitors API

- API version: 7.0.20
- API version: 7.0.21


Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers.
Expand Down
2 changes: 1 addition & 1 deletion credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Credentials API

- API version: 7.0.20
- API version: 7.0.21

Manage credentials for transaction tests using the Credentials API.

Expand Down
2 changes: 1 addition & 1 deletion dashboards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Dashboards API

- API version: 7.0.20
- API version: 7.0.21

Manage ThousandEyes Dashboards.

Expand Down
2 changes: 1 addition & 1 deletion emulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Emulation API

- API version: 7.0.20
- API version: 7.0.21

The Emulation API facilitates the retrieval of user-agent strings for HTTP, pageload, and transaction tests. It also enables the retrieval and addition of emulated devices for pageload and transaction tests.

Expand Down
2 changes: 1 addition & 1 deletion endpoint-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Endpoint Agents API

- API version: 7.0.20
- API version: 7.0.21

Manage ThousandEyes Endpoint Agents using this API.

Expand Down
2 changes: 1 addition & 1 deletion endpoint-instant-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Endpoint Instant Scheduled Tests API

- API version: 7.0.20
- API version: 7.0.21


You can create and execute a new endpoint instant scheduled test within ThousandEyes using this API. The test parameters are specified in the `POST` data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All URIs are relative to *https://api.thousandeyes.com/v7*

## runEndpointScheduledInstantTest

> void runEndpointScheduledInstantTest(testId, aid)
> EndpointRunScheduledInstantTestResult runEndpointScheduledInstantTest(testId, aid)
Run endpoint instant scheduled test

Expand Down Expand Up @@ -41,7 +41,8 @@ public class Example {
String testId = "765231567"; // String | ID of the endpoint instant scheduled test to rerun
String aid = "1234"; // String | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
try {
apiInstance.runEndpointScheduledInstantTest(testId, aid);
EndpointRunScheduledInstantTestResult result = apiInstance.runEndpointScheduledInstantTest(testId, aid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RunEndpointInstantScheduledTestsApi#runEndpointScheduledInstantTest");
System.err.println("Status code: " + e.getCode());
Expand All @@ -63,8 +64,8 @@ public class Example {

### Return type

[**EndpointRunScheduledInstantTestResult**](EndpointRunScheduledInstantTestResult.md)

null (empty response body)

### Authorization

Expand All @@ -90,7 +91,7 @@ null (empty response body)

## runEndpointScheduledInstantTestWithHttpInfo

> ApiResponse<Void> runEndpointScheduledInstantTest runEndpointScheduledInstantTestWithHttpInfo(testId, aid)
> ApiResponse<EndpointRunScheduledInstantTestResult> runEndpointScheduledInstantTest runEndpointScheduledInstantTestWithHttpInfo(testId, aid)
Run endpoint instant scheduled test

Expand Down Expand Up @@ -121,9 +122,10 @@ public class Example {
String testId = "765231567"; // String | ID of the endpoint instant scheduled test to rerun
String aid = "1234"; // String | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
try {
ApiResponse<Void> response = apiInstance.runEndpointScheduledInstantTestWithHttpInfo(testId, aid);
ApiResponse<EndpointRunScheduledInstantTestResult> response = apiInstance.runEndpointScheduledInstantTestWithHttpInfo(testId, aid);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling RunEndpointInstantScheduledTestsApi#runEndpointScheduledInstantTest");
System.err.println("Status code: " + e.getCode());
Expand All @@ -145,8 +147,8 @@ public class Example {

### Return type

ApiResponse<[**EndpointRunScheduledInstantTestResult**](EndpointRunScheduledInstantTestResult.md)>

ApiResponse<Void>

### Authorization

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.thousandeyes.sdk.utils.Config;
import org.apache.commons.lang3.tuple.Pair;

import com.thousandeyes.sdk.endpoint.tests.instant.model.EndpointRunScheduledInstantTestResult;
import com.thousandeyes.sdk.endpoint.tests.instant.model.Error;
import com.thousandeyes.sdk.endpoint.tests.instant.model.UnauthorizedError;
import com.thousandeyes.sdk.endpoint.tests.instant.model.ValidationError;
Expand Down Expand Up @@ -63,26 +64,28 @@ public RunEndpointInstantScheduledTestsApi(ApiClient apiClient) {
* Runs an existing endpoint instant scheduled test in ThousandEyes.
* @param testId ID of the endpoint instant scheduled test to rerun (required)
* @param aid A unique identifier associated with your account group. You can retrieve your &#x60;AccountGroupId&#x60; from the &#x60;/account-groups&#x60; endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional)
* @return EndpointRunScheduledInstantTestResult
* @throws ApiException if fails to make API call
*/
public void runEndpointScheduledInstantTest(String testId, String aid) throws ApiException {
runEndpointScheduledInstantTestWithHttpInfo(testId, aid);
public EndpointRunScheduledInstantTestResult runEndpointScheduledInstantTest(String testId, String aid) throws ApiException {
ApiResponse<EndpointRunScheduledInstantTestResult> response = runEndpointScheduledInstantTestWithHttpInfo(testId, aid);
return response.getData();
}

/**
* Run endpoint instant scheduled test
* Runs an existing endpoint instant scheduled test in ThousandEyes.
* @param testId ID of the endpoint instant scheduled test to rerun (required)
* @param aid A unique identifier associated with your account group. You can retrieve your &#x60;AccountGroupId&#x60; from the &#x60;/account-groups&#x60; endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional)
* @return ApiResponse&lt;Void&gt;
* @return ApiResponse&lt;EndpointRunScheduledInstantTestResult&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<Void> runEndpointScheduledInstantTestWithHttpInfo(String testId, String aid) throws ApiException {
public ApiResponse<EndpointRunScheduledInstantTestResult> runEndpointScheduledInstantTestWithHttpInfo(String testId, String aid) throws ApiException {
runEndpointScheduledInstantTestValidateRequest(testId);

var requestBuilder = runEndpointScheduledInstantTestRequestBuilder(testId, aid);

return apiClient.send(requestBuilder.build(), Void.class);
return apiClient.send(requestBuilder.build(), EndpointRunScheduledInstantTestResult.class);
}

private void runEndpointScheduledInstantTestValidateRequest(String testId) throws ApiException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

package com.thousandeyes.sdk.endpoint.tests.instant;

import com.thousandeyes.sdk.endpoint.tests.instant.model.EndpointRunScheduledInstantTestResult;
import com.thousandeyes.sdk.endpoint.tests.instant.model.Error;
import com.thousandeyes.sdk.endpoint.tests.instant.model.UnauthorizedError;
import com.thousandeyes.sdk.endpoint.tests.instant.model.ValidationError;
import static com.thousandeyes.sdk.serialization.JSON.getDefault;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import org.junit.jupiter.api.Disabled;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down Expand Up @@ -49,12 +50,20 @@ public class RunEndpointInstantScheduledTestsApiTest {
*
* @throws JsonProcessingException if the deserialization fails
*/
@Disabled

@Test
public void runEndpointScheduledInstantTestRequestAndResponseDeserializationTest()
throws JsonProcessingException
{

String responseBodyJson = """
{
"message" : "Successfully reran the instant scheduled test with testId=765231567"
}
""";
EndpointRunScheduledInstantTestResult mappedResponse =
mapper.readValue(responseBodyJson, EndpointRunScheduledInstantTestResult.class);
assertNotNull(mappedResponse);
}

}
2 changes: 1 addition & 1 deletion endpoint-labels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Endpoint Agent Labels API

- API version: 7.0.20
- API version: 7.0.21

Manage labels applied to endpoint agents using this API.

Expand Down
2 changes: 1 addition & 1 deletion endpoint-test-results/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Endpoint Test Results API

- API version: 7.0.20
- API version: 7.0.21

Retrieve results for scheduled and dynamic tests on endpoint agents.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,11 @@ public void getRealUserTestPageResultsRequestAndResponseDeserializationTest()
"log" : {
"browser" : {
"name" : "Google Chrome",
"version" : "7.0.20.98"
"version" : "7.0.21.98"
},
"creator" : {
"name" : "ThousandEyes Endpoint Agent",
"version" : "7.0.20"
"version" : "7.0.21"
},
"entries" : [ {
"pageref" : "page_1",
Expand Down
2 changes: 1 addition & 1 deletion endpoint-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Endpoint Tests API

- API version: 7.0.20
- API version: 7.0.21


Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
Expand Down
2 changes: 1 addition & 1 deletion event-detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Event Detection API

- API version: 7.0.20
- API version: 7.0.21


Event detection occurs when ThousandEyes identifies that error signals related to a component (proxy, network node, AS, server etc) have deviated from the baselines established by events.
Expand Down
2 changes: 1 addition & 1 deletion instant-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Instant Tests API

- API version: 7.0.20
- API version: 7.0.21

The Instant Tests API operations lets you create and run new instant tests. You will need to be a regular user or have the following permissions:
* `API Access`
Expand Down
2 changes: 1 addition & 1 deletion internet-insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Internet Insights API

- API version: 7.0.20
- API version: 7.0.21

We are happy to announce the release of the Internet Insights API set. This limited release includes endpoints that:

Expand Down
2 changes: 1 addition & 1 deletion snapshots/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Test Snapshots API

- API version: 7.0.20
- API version: 7.0.21

Creates a new test snapshot in ThousandEyes.

Expand Down
3 changes: 3 additions & 0 deletions streaming/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ src/main/java/com/thousandeyes/sdk/streaming/model/DataModelVersion.java
src/main/java/com/thousandeyes/sdk/streaming/model/EndpointType.java
src/main/java/com/thousandeyes/sdk/streaming/model/ExporterConfig.java
src/main/java/com/thousandeyes/sdk/streaming/model/ExporterConfigSplunkHec.java
src/main/java/com/thousandeyes/sdk/streaming/model/Filters.java
src/main/java/com/thousandeyes/sdk/streaming/model/FiltersTestTypes.java
src/main/java/com/thousandeyes/sdk/streaming/model/GetStreamResponse.java
src/main/java/com/thousandeyes/sdk/streaming/model/PutStream.java
src/main/java/com/thousandeyes/sdk/streaming/model/Stream.java
Expand All @@ -25,5 +27,6 @@ src/main/java/com/thousandeyes/sdk/streaming/model/TagMatch.java
src/main/java/com/thousandeyes/sdk/streaming/model/TagMatchObjectType.java
src/main/java/com/thousandeyes/sdk/streaming/model/TestMatch.java
src/main/java/com/thousandeyes/sdk/streaming/model/TestMatchDomain.java
src/main/java/com/thousandeyes/sdk/streaming/model/TestType.java
src/main/java/com/thousandeyes/sdk/streaming/model/UnauthorizedError.java
src/test/java/com/thousandeyes/sdk/streaming/StreamingApiTest.java
2 changes: 1 addition & 1 deletion streaming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ThousandEyes for OpenTelemetry API

- API version: 7.0.20
- API version: 7.0.21

ThousandEyes for OpenTelemetry provides machine-to-machine integration between ThousandEyes and its customers. It allows you to export ThousandEyes telemetry data in OTel format, which is widely used in the industry. With ThousandEyes for OTel, you can leverage frameworks widely used in the observability domain - such as Splunk, Grafana, and Honeycomb - to capture and analyze ThousandEyes data. Any client that supports OTel can use ThousandEyes for OpenTelemetry.

Expand Down
Loading

0 comments on commit f0f6b95

Please sign in to comment.