Skip to content

Commit

Permalink
[GitHub Bot] Generated java SDK (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: API Team <[email protected]>
  • Loading branch information
mpragosa-te and API Team authored Oct 30, 2024
1 parent e9ea1d5 commit 5da7b46
Show file tree
Hide file tree
Showing 32 changed files with 197 additions and 32 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.25
- API version: 7.0.26

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.25
- API version: 7.0.26


## 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.25
- API version: 7.0.26

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.25
- API version: 7.0.26


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.25
- API version: 7.0.26

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.25
- API version: 7.0.26

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.25
- API version: 7.0.26

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.25
- API version: 7.0.26

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.25
- API version: 7.0.26


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.25
- API version: 7.0.26

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.25
- API version: 7.0.26

Retrieve results for scheduled and dynamic tests on endpoint agents.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,11 @@ public void getRealUserTestPageResultsRequestAndResponseDeserializationTest()
"log" : {
"browser" : {
"name" : "Google Chrome",
"version" : "7.0.25.98"
"version" : "7.0.26.98"
},
"creator" : {
"name" : "ThousandEyes Endpoint Agent",
"version" : "7.0.25"
"version" : "7.0.26"
},
"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.25
- API version: 7.0.26


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.25
- API version: 7.0.26


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.25
- API version: 7.0.26

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.25
- API version: 7.0.26

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.25
- API version: 7.0.26

Creates a new test snapshot in ThousandEyes.

Expand Down
4 changes: 2 additions & 2 deletions snapshots/docs/TestSnapshotsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ All URIs are relative to *https://api.thousandeyes.com/v7*
Create test snapshot

This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. **Note**: This operation does not support the creation of operation Agent snapshots.
This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. * Certain regions may not have public snapshots enabled for compliance reasons. In that case you will get a 403 Forbidden as a response. **Note**: This operation does not support the creation of operation Agent snapshots.

### Example

Expand Down Expand Up @@ -97,7 +97,7 @@ public class Example {
Create test snapshot

This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. **Note**: This operation does not support the creation of operation Agent snapshots.
This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. * Certain regions may not have public snapshots enabled for compliance reasons. In that case you will get a 403 Forbidden as a response. **Note**: This operation does not support the creation of operation Agent snapshots.

### Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public TestSnapshotsApi(ApiClient apiClient) {

/**
* Create test snapshot
* This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. **Note**: This operation does not support the creation of operation Agent snapshots.
* This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. * Certain regions may not have public snapshots enabled for compliance reasons. In that case you will get a 403 Forbidden as a response. **Note**: This operation does not support the creation of operation Agent snapshots.
* @param testId Test ID (required)
* @param snapshotRequest (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)
Expand All @@ -76,7 +76,7 @@ public SnapshotResponse createTestSnapshot(String testId, SnapshotRequest snapsh

/**
* Create test snapshot
* This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. **Note**: This operation does not support the creation of operation Agent snapshots.
* This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. * Certain regions may not have public snapshots enabled for compliance reasons. In that case you will get a 403 Forbidden as a response. **Note**: This operation does not support the creation of operation Agent snapshots.
* @param testId Test ID (required)
* @param snapshotRequest (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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static void setup(WireMockRuntimeInfo wireMockRuntimeInfo) {
/**
* Create test snapshot
* <p>
* This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. **Note**: This operation does not support the creation of operation Agent snapshots.
* This operation creates a test snapshot based on the properties provided in the POST data. * To use this endpoint, you need the &#x60;Create snapshot shares&#x60; permission. * You can create a maximum of 5 snapshots per organization within a 5-minute interval. * Snapshots generated through this operation have a 30-day expiration period. * The time range specified with the &#x60;from&#x60; and &#x60;to&#x60; parameters must adhere to one of the following intervals: 1, 2, 4, 6, 12, 24, or 48 hours. * The &#x60;endDate&#x60; field of the snapshot must be set to the present or a past date. * Certain regions may not have public snapshots enabled for compliance reasons. In that case you will get a 403 Forbidden as a response. **Note**: This operation does not support the creation of operation Agent snapshots.
*
* @throws JsonProcessingException if the deserialization fails
*/
Expand Down
1 change: 1 addition & 0 deletions streaming/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ 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/Signal.java
src/main/java/com/thousandeyes/sdk/streaming/model/Stream.java
src/main/java/com/thousandeyes/sdk/streaming/model/StreamLinks.java
src/main/java/com/thousandeyes/sdk/streaming/model/StreamResponse.java
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.25
- API version: 7.0.26

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
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.thousandeyes.sdk.streaming.model.EndpointType;
import com.thousandeyes.sdk.streaming.model.ExporterConfig;
import com.thousandeyes.sdk.streaming.model.Filters;
import com.thousandeyes.sdk.streaming.model.Signal;
import com.thousandeyes.sdk.streaming.model.StreamLinks;
import com.thousandeyes.sdk.streaming.model.StreamType;
import com.thousandeyes.sdk.streaming.model.TagMatch;
Expand All @@ -45,6 +46,7 @@
CreateStreamResponse.JSON_PROPERTY_ENABLED,
CreateStreamResponse.JSON_PROPERTY_LINKS,
CreateStreamResponse.JSON_PROPERTY_TYPE,
CreateStreamResponse.JSON_PROPERTY_SIGNAL,
CreateStreamResponse.JSON_PROPERTY_ENDPOINT_TYPE,
CreateStreamResponse.JSON_PROPERTY_STREAM_ENDPOINT_URL,
CreateStreamResponse.JSON_PROPERTY_DATA_MODEL_VERSION,
Expand All @@ -69,6 +71,9 @@ public class CreateStreamResponse {
public static final String JSON_PROPERTY_TYPE = "type";
private StreamType type;

public static final String JSON_PROPERTY_SIGNAL = "signal";
private Signal signal = Signal.METRIC;

public static final String JSON_PROPERTY_ENDPOINT_TYPE = "endpointType";
private EndpointType endpointType = EndpointType.GRPC;

Expand Down Expand Up @@ -197,6 +202,31 @@ public void setType(StreamType type) {
}


public CreateStreamResponse signal(Signal signal) {
this.signal = signal;
return this;
}

/**
* Get signal
* @return signal
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SIGNAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Signal getSignal() {
return signal;
}


@JsonProperty(JSON_PROPERTY_SIGNAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSignal(Signal signal) {
this.signal = signal;
}


public CreateStreamResponse endpointType(EndpointType endpointType) {
this.endpointType = endpointType;
return this;
Expand Down Expand Up @@ -462,6 +492,7 @@ public boolean equals(Object o) {
Objects.equals(this.enabled, createStreamResponse.enabled) &&
Objects.equals(this.links, createStreamResponse.links) &&
Objects.equals(this.type, createStreamResponse.type) &&
Objects.equals(this.signal, createStreamResponse.signal) &&
Objects.equals(this.endpointType, createStreamResponse.endpointType) &&
Objects.equals(this.streamEndpointUrl, createStreamResponse.streamEndpointUrl) &&
Objects.equals(this.dataModelVersion, createStreamResponse.dataModelVersion) &&
Expand All @@ -475,7 +506,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(id, enabled, links, type, endpointType, streamEndpointUrl, dataModelVersion, customHeaders, tagMatch, testMatch, filters, exporterConfig, auditOperation);
return Objects.hash(id, enabled, links, type, signal, endpointType, streamEndpointUrl, dataModelVersion, customHeaders, tagMatch, testMatch, filters, exporterConfig, auditOperation);
}

@Override
Expand All @@ -486,6 +517,7 @@ public String toString() {
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" signal: ").append(toIndentedString(signal)).append("\n");
sb.append(" endpointType: ").append(toIndentedString(endpointType)).append("\n");
sb.append(" streamEndpointUrl: ").append(toIndentedString(streamEndpointUrl)).append("\n");
sb.append(" dataModelVersion: ").append(toIndentedString(dataModelVersion)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.fasterxml.jackson.annotation.JsonValue;

/**
* The version of the data model used in the data stream. Default: &#x60;v2&#x60;
* The version of the data model used in the data stream. When using &#x60;v1&#x60;: - The &#x60;signal&#x60; cannot be &#x60;trace&#x60;. Default: &#x60;v2&#x60;
*/
public enum DataModelVersion {

Expand Down
Loading

0 comments on commit 5da7b46

Please sign in to comment.