-
Notifications
You must be signed in to change notification settings - Fork 8
[GitHub Bot] Generated java SDK #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
|
|
||
| Agents API | ||
|
|
||
| - API version: 7.0.75 | ||
| - API version: 7.0.78 | ||
|
|
||
|
|
||
| ## Overview | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # OpenAPI Generator Ignore | ||
| # Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
|
||
| # Use this file to prevent files from being overwritten by the generator. | ||
| # The patterns follow closely to .gitignore or .dockerignore. | ||
|
|
||
| # As an example, the C# client generator defines ApiClient.cs. | ||
| # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
| #ApiClient.cs | ||
|
|
||
| # You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
| #foo/*/qux | ||
| # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
|
||
| # You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
| #foo/**/qux | ||
| # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
|
||
| # You can also negate patterns with an exclamation (!). | ||
| # For example, you can ignore all files in a docs folder with the file extension .md: | ||
| #docs/*.md | ||
| # Then explicitly reverse the ignore rule for a single file: | ||
| #!docs/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| .openapi-generator-ignore | ||
| README.md | ||
| api/openapi.yaml | ||
| build.gradle | ||
| docs/GenericConnectorsApi.md | ||
| docs/OperationConnectorsApi.md | ||
| docs/WebhookOperationsApi.md | ||
| src/main/java/com/thousandeyes/sdk/connectors/GenericConnectorsApi.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/OperationConnectorsApi.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/WebhookOperationsApi.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/Assignments.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/AuthenticationType.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/BasicAuthentication.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/BearerTokenAuthentication.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/ConnectorType.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/Error.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/GenericConnector.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/GenericConnectorAuth.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/GenericConnectors.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/Header.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/Link.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/OauthClientCredentialsAuthentication.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/OauthCodeAuthentication.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/OperationCategory.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/OperationStatus.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/OperationType.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/OtherTokenAuthentication.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/SelfLinks.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/UnauthorizedError.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/ValidationError.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/ValidationErrorItem.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/WebhookOperation.java | ||
| src/main/java/com/thousandeyes/sdk/connectors/model/WebhookOperations.java | ||
| src/test/java/com/thousandeyes/sdk/connectors/GenericConnectorsApiTest.java | ||
| src/test/java/com/thousandeyes/sdk/connectors/OperationConnectorsApiTest.java | ||
| src/test/java/com/thousandeyes/sdk/connectors/WebhookOperationsApiTest.java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 7.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,176 @@ | ||
| # connectors | ||
|
|
||
| Integrations API | ||
|
|
||
| - API version: 7.0.78 | ||
|
|
||
| Manage connectors and operations. | ||
|
|
||
|
|
||
| *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* | ||
|
|
||
| ## Requirements | ||
|
|
||
| Building the API client library requires: | ||
|
|
||
| 1. Java 11+ | ||
| 2. Maven/Gradle | ||
|
|
||
| ## Installation | ||
|
|
||
| To install the API client library to your local Maven repository, simply execute: | ||
|
|
||
| ```shell | ||
| mvn clean install | ||
| ``` | ||
|
|
||
| To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: | ||
|
|
||
| ```shell | ||
| mvn clean deploy | ||
| ``` | ||
|
|
||
| Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. | ||
|
|
||
| ### Maven users | ||
|
|
||
| Add this dependency to your project's POM: | ||
|
|
||
| ```xml | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>com.thousandeyes.sdk</groupId> | ||
| <artifactId>connectors</artifactId> | ||
| <version>version</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.thousandeyes.sdk</groupId> | ||
| <artifactId>client</artifactId> | ||
| <version>version</version> | ||
| </dependency> | ||
|
|
||
| <!-- Example only, you can use your own client implementation --> | ||
| <dependency> | ||
| <groupId>com.thousandeyes.sdk</groupId> | ||
| <artifactId>client-native</artifactId> | ||
| <version>version</version> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| ``` | ||
|
|
||
| ### Gradle users | ||
|
|
||
| Add this dependency to your project's build file: | ||
|
|
||
| ```groovy | ||
| implementation "com.thousandeyes.sdk:client:<version>" | ||
| implementation "com.thousandeyes.sdk:client-native:<version>" #Example only, you can use your own client implementation | ||
| implementation "com.thousandeyes.sdk:connectors:<version>" | ||
| ``` | ||
|
|
||
| ### Others | ||
|
|
||
| At first generate the JAR by executing: | ||
|
|
||
| ```shell | ||
| mvn clean package | ||
| ``` | ||
|
|
||
| Then manually install the following JARs: | ||
|
|
||
| - `target/connectors-version.jar` | ||
| - `target/lib/*.jar` | ||
|
|
||
| ## Getting Started | ||
|
|
||
| Please follow the [installation](#installation) instruction and execute the following Java code: | ||
|
|
||
| ```java | ||
|
|
||
| import com.thousandeyes.sdk.*; | ||
| import com.thousandeyes.sdk.client.*; | ||
| import com.thousandeyes.sdk.connectors.model.*; | ||
| import com.thousandeyes.sdk.connectors.GenericConnectorsApi; | ||
|
|
||
| public class GenericConnectorsApiExample { | ||
|
|
||
| public static void main(String[] args) { | ||
| // Configure clients using the `defaultClient` object, such as | ||
| // overriding the host and port, timeout, etc. In this example we are using the NativeApiClient | ||
| // but you can use your own client implementation | ||
| ApiClient defaultClient = NativeApiClient | ||
| .builder() | ||
| .baseUri("https://api.thousandeyes.com/v7") | ||
| .bearerToken("<bearer-token>") | ||
| .build(); | ||
|
|
||
| GenericConnectorsApi apiInstance = new GenericConnectorsApi(defaultClient); | ||
| GenericConnector genericConnector = new GenericConnector(); // GenericConnector | | ||
| 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 { | ||
| GenericConnector result = apiInstance.createGenericConnector(genericConnector, aid); | ||
| System.out.println(result); | ||
| } catch (ApiException e) { | ||
| System.err.println("Exception when calling GenericConnectorsApi#createGenericConnector"); | ||
| System.err.println("Status code: " + e.getCode()); | ||
| System.err.println("Reason: " + e.getResponseBody()); | ||
| System.err.println("Response headers: " + e.getResponseHeaders()); | ||
| e.printStackTrace(); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| ``` | ||
|
|
||
| ## Documentation for API Endpoints | ||
|
|
||
| All URIs are relative to *https://api.thousandeyes.com/v7* | ||
|
|
||
| Class | Method | HTTP request | Description | ||
| ------------ | ------------- | ------------- | ------------- | ||
| *GenericConnectorsApi* | [**createGenericConnector**](docs/GenericConnectorsApi.md#createGenericConnector) | **POST** /connectors/generic | Create connector | ||
| *GenericConnectorsApi* | [**createGenericConnectorWithHttpInfo**](docs/GenericConnectorsApi.md#createGenericConnectorWithHttpInfo) | **POST** /connectors/generic | Create connector | ||
| *GenericConnectorsApi* | [**deleteGenericConnector**](docs/GenericConnectorsApi.md#deleteGenericConnector) | **DELETE** /connectors/generic/{id} | Delete connector | ||
| *GenericConnectorsApi* | [**deleteGenericConnectorWithHttpInfo**](docs/GenericConnectorsApi.md#deleteGenericConnectorWithHttpInfo) | **DELETE** /connectors/generic/{id} | Delete connector | ||
| *GenericConnectorsApi* | [**getGenericConnector**](docs/GenericConnectorsApi.md#getGenericConnector) | **GET** /connectors/generic/{id} | Retrieve connector | ||
| *GenericConnectorsApi* | [**getGenericConnectorWithHttpInfo**](docs/GenericConnectorsApi.md#getGenericConnectorWithHttpInfo) | **GET** /connectors/generic/{id} | Retrieve connector | ||
| *GenericConnectorsApi* | [**getGenericConnectors**](docs/GenericConnectorsApi.md#getGenericConnectors) | **GET** /connectors/generic | List connectors | ||
| *GenericConnectorsApi* | [**getGenericConnectorsWithHttpInfo**](docs/GenericConnectorsApi.md#getGenericConnectorsWithHttpInfo) | **GET** /connectors/generic | List connectors | ||
| *GenericConnectorsApi* | [**listGenericConnectorOperations**](docs/GenericConnectorsApi.md#listGenericConnectorOperations) | **GET** /connectors/generic/{id}/operations | List operation IDs assigned to a connector | ||
| *GenericConnectorsApi* | [**listGenericConnectorOperationsWithHttpInfo**](docs/GenericConnectorsApi.md#listGenericConnectorOperationsWithHttpInfo) | **GET** /connectors/generic/{id}/operations | List operation IDs assigned to a connector | ||
| *GenericConnectorsApi* | [**setGenericConnectorOperations**](docs/GenericConnectorsApi.md#setGenericConnectorOperations) | **PUT** /connectors/generic/{id}/operations | Assign operations to a connector | ||
| *GenericConnectorsApi* | [**setGenericConnectorOperationsWithHttpInfo**](docs/GenericConnectorsApi.md#setGenericConnectorOperationsWithHttpInfo) | **PUT** /connectors/generic/{id}/operations | Assign operations to a connector | ||
| *GenericConnectorsApi* | [**updateGenericConnector**](docs/GenericConnectorsApi.md#updateGenericConnector) | **PUT** /connectors/generic/{id} | Update connector | ||
| *GenericConnectorsApi* | [**updateGenericConnectorWithHttpInfo**](docs/GenericConnectorsApi.md#updateGenericConnectorWithHttpInfo) | **PUT** /connectors/generic/{id} | Update connector | ||
| *OperationConnectorsApi* | [**getOperationConnectors**](docs/OperationConnectorsApi.md#getOperationConnectors) | **GET** /operations/{type}/{id}/connectors | Retrieve connectors assigned to an operation | ||
| *OperationConnectorsApi* | [**getOperationConnectorsWithHttpInfo**](docs/OperationConnectorsApi.md#getOperationConnectorsWithHttpInfo) | **GET** /operations/{type}/{id}/connectors | Retrieve connectors assigned to an operation | ||
| *OperationConnectorsApi* | [**setOperationConnectors**](docs/OperationConnectorsApi.md#setOperationConnectors) | **PUT** /operations/{type}/{id}/connectors | Assign connectors to an operation | ||
| *OperationConnectorsApi* | [**setOperationConnectorsWithHttpInfo**](docs/OperationConnectorsApi.md#setOperationConnectorsWithHttpInfo) | **PUT** /operations/{type}/{id}/connectors | Assign connectors to an operation | ||
| *WebhookOperationsApi* | [**createWebhookOperation**](docs/WebhookOperationsApi.md#createWebhookOperation) | **POST** /operations/webhooks | Create webhook operation | ||
| *WebhookOperationsApi* | [**createWebhookOperationWithHttpInfo**](docs/WebhookOperationsApi.md#createWebhookOperationWithHttpInfo) | **POST** /operations/webhooks | Create webhook operation | ||
| *WebhookOperationsApi* | [**deleteWebhookOperation**](docs/WebhookOperationsApi.md#deleteWebhookOperation) | **DELETE** /operations/webhooks/{id} | Delete webhook operation | ||
| *WebhookOperationsApi* | [**deleteWebhookOperationWithHttpInfo**](docs/WebhookOperationsApi.md#deleteWebhookOperationWithHttpInfo) | **DELETE** /operations/webhooks/{id} | Delete webhook operation | ||
| *WebhookOperationsApi* | [**getWebhookOperation**](docs/WebhookOperationsApi.md#getWebhookOperation) | **GET** /operations/webhooks/{id} | Retrieve webhook operation | ||
| *WebhookOperationsApi* | [**getWebhookOperationWithHttpInfo**](docs/WebhookOperationsApi.md#getWebhookOperationWithHttpInfo) | **GET** /operations/webhooks/{id} | Retrieve webhook operation | ||
| *WebhookOperationsApi* | [**getWebhookOperations**](docs/WebhookOperationsApi.md#getWebhookOperations) | **GET** /operations/webhooks | List webhook operations | ||
| *WebhookOperationsApi* | [**getWebhookOperationsWithHttpInfo**](docs/WebhookOperationsApi.md#getWebhookOperationsWithHttpInfo) | **GET** /operations/webhooks | List webhook operations | ||
| *WebhookOperationsApi* | [**updateWebhookOperation**](docs/WebhookOperationsApi.md#updateWebhookOperation) | **PUT** /operations/webhooks/{id} | Update webhook operation | ||
| *WebhookOperationsApi* | [**updateWebhookOperationWithHttpInfo**](docs/WebhookOperationsApi.md#updateWebhookOperationWithHttpInfo) | **PUT** /operations/webhooks/{id} | Update webhook operation | ||
|
|
||
|
|
||
| <a id="documentation-for-authorization"></a> | ||
| ## Documentation for Authorization | ||
|
|
||
| Endpoints do not require authorization. | ||
|
|
||
|
|
||
| ## Recommendation | ||
|
|
||
| It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. | ||
| However, the instances of the api clients created from the `ApiClient` are thread-safe and can be re-used. | ||
|
|
||
| ## Author | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| ext { | ||
| jakartaAnnotationVersion = "2.1.1" | ||
| wiremockVersion = "3.9.1" | ||
| } | ||
|
|
||
| repositories { | ||
| mavenCentral() | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation project(":configuration") | ||
| implementation project(":client") | ||
| implementation "com.fasterxml.jackson.core:jackson-core:$jacksonVersion" | ||
| implementation "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion" | ||
| implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion" | ||
| implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion" | ||
| implementation "com.google.code.findbugs:jsr305:$googleJsr305Version" | ||
| implementation "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationVersion" | ||
| implementation "org.openapitools:jackson-databind-nullable:$jacksonDatabindNullableVersion" | ||
| implementation "org.apache.commons:commons-lang3:$apacheCommonsLang3" | ||
|
|
||
| testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion" | ||
| testImplementation "org.wiremock:wiremock:$wiremockVersion" | ||
| testImplementation project(":client-native") | ||
|
|
||
| testRuntimeOnly "org.junit.platform:junit-platform-launcher" | ||
| } | ||
|
|
||
| test { | ||
| // Enable JUnit 5 (Gradle 4.6+). | ||
| useJUnitPlatform() | ||
|
|
||
| // Always run tests, even when nothing changed. | ||
| dependsOn 'cleanTest' | ||
|
|
||
| // Show test results. | ||
| testLogging { | ||
| events "passed", "skipped", "failed" | ||
| } | ||
|
|
||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit introduces a full new Gradle subproject (
connectors/build.gradleand sources), butsettings.gradlestill does not includeconnectors, so the module is invisible to the multi-project build. In this state, connectors code/tests are never compiled in CI and the artifact cannot be produced from the repo build, which effectively ships the SDK without the new API surface.Useful? React with 👍 / 👎.