Skip to content

Commit

Permalink
Merge pull request #88 from thousandeyes/20241002-122112
Browse files Browse the repository at this point in the history
[GitHub Bot] Generated java SDK
  • Loading branch information
phpinhei-te authored Oct 2, 2024
2 parents 04dd2ed + 4596216 commit 120b3c4
Show file tree
Hide file tree
Showing 25 changed files with 35 additions and 51 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.21
- API version: 7.0.22

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
20 changes: 6 additions & 14 deletions administrative/docs/AccountGroupsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ ApiResponse<[**AccountGroupDetail**](AccountGroupDetail.md)>

## getAccountGroups

> AccountGroups getAccountGroups(aid)
> AccountGroups getAccountGroups()
List account groups

Expand All @@ -520,9 +520,8 @@ public class Example {
BearerAuth.setBearerToken("BEARER TOKEN");

AccountGroupsApi apiInstance = new AccountGroupsApi(defaultClient);
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 {
AccountGroups result = apiInstance.getAccountGroups(aid);
AccountGroups result = apiInstance.getAccountGroups();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountGroupsApi#getAccountGroups");
Expand All @@ -537,10 +536,7 @@ public class Example {

### Parameters


| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **aid** | **String**| 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] |
This endpoint does not need any parameter.

### Return type

Expand Down Expand Up @@ -569,7 +565,7 @@ public class Example {

## getAccountGroupsWithHttpInfo

> ApiResponse<AccountGroups> getAccountGroups getAccountGroupsWithHttpInfo(aid)
> ApiResponse<AccountGroups> getAccountGroups getAccountGroupsWithHttpInfo()
List account groups

Expand Down Expand Up @@ -597,9 +593,8 @@ public class Example {
BearerAuth.setBearerToken("BEARER TOKEN");

AccountGroupsApi apiInstance = new AccountGroupsApi(defaultClient);
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<AccountGroups> response = apiInstance.getAccountGroupsWithHttpInfo(aid);
ApiResponse<AccountGroups> response = apiInstance.getAccountGroupsWithHttpInfo();
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
Expand All @@ -616,10 +611,7 @@ public class Example {

### Parameters


| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **aid** | **String**| 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] |
This endpoint does not need any parameter.

### Return type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,46 +223,38 @@ private ApiRequest.ApiRequestBuilder getAccountGroupRequestBuilder(String id, Li
/**
* List account groups
* Retrieves a list of account groups available to the current user.
* @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 AccountGroups
* @throws ApiException if fails to make API call
*/
public AccountGroups getAccountGroups(String aid) throws ApiException {
ApiResponse<AccountGroups> response = getAccountGroupsWithHttpInfo(aid);
public AccountGroups getAccountGroups() throws ApiException {
ApiResponse<AccountGroups> response = getAccountGroupsWithHttpInfo();
return response.getData();
}

/**
* List account groups
* Retrieves a list of account groups available to the current user.
* @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;AccountGroups&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<AccountGroups> getAccountGroupsWithHttpInfo(String aid) throws ApiException {
public ApiResponse<AccountGroups> getAccountGroupsWithHttpInfo() throws ApiException {
getAccountGroupsValidateRequest();

var requestBuilder = getAccountGroupsRequestBuilder(aid);
var requestBuilder = getAccountGroupsRequestBuilder();

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

private void getAccountGroupsValidateRequest() throws ApiException {
}

private ApiRequest.ApiRequestBuilder getAccountGroupsRequestBuilder(String aid) throws ApiException {
private ApiRequest.ApiRequestBuilder getAccountGroupsRequestBuilder() throws ApiException {
ApiRequest.ApiRequestBuilder requestBuilder = ApiRequest.builder()
.method("GET");

String path = "/account-groups";
requestBuilder.path(path);

List<Pair<String, String>> localVarQueryParams = new ArrayList<>();
localVarQueryParams.addAll(parameterToPairs("aid", aid));

if (!localVarQueryParams.isEmpty()) {
requestBuilder.queryParams(localVarQueryParams);
}

requestBuilder.header("Accept", List.of("application/hal+json, application/json, application/problem+json"));
requestBuilder.header("User-Agent", List.of(Config.USER_AGENT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public void getAccountGroupsRequestAndResponseDeserializationTest()
.withBody(responseBodyJson)
.withStatus(statusCode)));

var apiResponse = api.getAccountGroups(null);
var apiResponse = api.getAccountGroups();
assertEquals(mappedResponse, apiResponse);
}

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.21
- API version: 7.0.22


## 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.21
- API version: 7.0.22

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.21
- API version: 7.0.22


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.21
- API version: 7.0.22

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.21
- API version: 7.0.22

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.21
- API version: 7.0.22

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.21
- API version: 7.0.22

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.21
- API version: 7.0.22


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
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.21
- API version: 7.0.22

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.21
- API version: 7.0.22

Retrieve results for scheduled and dynamic tests on endpoint agents.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,11 @@ public void getRealUserTestPageResultsRequestAndResponseDeserializationTest()
"log" : {
"browser" : {
"name" : "Google Chrome",
"version" : "7.0.21.98"
"version" : "7.0.22.98"
},
"creator" : {
"name" : "ThousandEyes Endpoint Agent",
"version" : "7.0.21"
"version" : "7.0.22"
},
"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.21
- API version: 7.0.22


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.21
- API version: 7.0.22


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.21
- API version: 7.0.22

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.21
- API version: 7.0.22

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.21
- API version: 7.0.22

Creates a new test snapshot in ThousandEyes.

Expand Down
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.21
- API version: 7.0.22

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
2 changes: 1 addition & 1 deletion tags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Tags API

- API version: 7.0.21
- API version: 7.0.22

The ThousandEyes Tags API provides a tagging system with key/value pairs. It allows you to tag assets within the ThousandEyes platform (such as agents, tests, or alert rules) with meaningful metadata. For example: `branch:sfo`, `branch:nyc`, and `team:netops`.

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

Test Results API

- API version: 7.0.21
- API version: 7.0.22

Get test result metrics for Cloud and Enterprise Agent tests.

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

Tests API

- API version: 7.0.21
- API version: 7.0.22

This API supports listing, creating, editing, and deleting Cloud and Enterprise Agent (CEA) based tests.

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

Usage API

- API version: 7.0.21
- API version: 7.0.22


These usage endpoints define the following operations:
Expand Down

0 comments on commit 120b3c4

Please sign in to comment.