Package com.datadog.api.client.v2.api
Class WebhooksIntegrationApi
java.lang.Object
com.datadog.api.client.v2.api.WebhooksIntegrationApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class WebhooksIntegrationApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getAllAuthMethods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an OAuth2 client credentials auth method.Create an OAuth2 client credentials auth method.Create a new OAuth2 client credentials auth method for the Webhooks integration.Create an OAuth2 client credentials auth method.voiddeleteOAuth2ClientCredentials(String authMethodId) Delete an OAuth2 client credentials auth method.deleteOAuth2ClientCredentialsAsync(String authMethodId) Delete an OAuth2 client credentials auth method.deleteOAuth2ClientCredentialsWithHttpInfo(String authMethodId) Delete an OAuth2 client credentials auth method by ID.deleteOAuth2ClientCredentialsWithHttpInfoAsync(String authMethodId) Delete an OAuth2 client credentials auth method.Get all auth methods.Get all auth methods.Get all auth methods.Get all auth methods.getAllAuthMethodsWithHttpInfo(WebhooksIntegrationApi.GetAllAuthMethodsOptionalParameters parameters) Get a list of all auth methods configured for the Webhooks integration in your organization.getAllAuthMethodsWithHttpInfoAsync(WebhooksIntegrationApi.GetAllAuthMethodsOptionalParameters parameters) Get all auth methods.Get the API client.getOAuth2ClientCredentials(String authMethodId) Get an OAuth2 client credentials auth method.getOAuth2ClientCredentialsAsync(String authMethodId) Get an OAuth2 client credentials auth method.getOAuth2ClientCredentialsWithHttpInfo(String authMethodId) Get a single OAuth2 client credentials auth method by ID.getOAuth2ClientCredentialsWithHttpInfoAsync(String authMethodId) Get an OAuth2 client credentials auth method.voidsetApiClient(ApiClient apiClient) Set the API client.updateOAuth2ClientCredentials(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) Update an OAuth2 client credentials auth method.updateOAuth2ClientCredentialsAsync(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) Update an OAuth2 client credentials auth method.updateOAuth2ClientCredentialsWithHttpInfo(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) Update an existing OAuth2 client credentials auth method.updateOAuth2ClientCredentialsWithHttpInfoAsync(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) Update an OAuth2 client credentials auth method.
-
Constructor Details
-
WebhooksIntegrationApi
public WebhooksIntegrationApi() -
WebhooksIntegrationApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createOAuth2ClientCredentials
public WebhooksOAuth2ClientCredentialsResponse createOAuth2ClientCredentials(WebhooksOAuth2ClientCredentialsCreateRequest body) throws ApiException Create an OAuth2 client credentials auth method.- Parameters:
body- OAuth2 client credentials payload. (required)- Returns:
- WebhooksOAuth2ClientCredentialsResponse
- Throws:
ApiException- if fails to make API call
-
createOAuth2ClientCredentialsAsync
public CompletableFuture<WebhooksOAuth2ClientCredentialsResponse> createOAuth2ClientCredentialsAsync(WebhooksOAuth2ClientCredentialsCreateRequest body) Create an OAuth2 client credentials auth method.- Parameters:
body- OAuth2 client credentials payload. (required)- Returns:
- CompletableFuture<WebhooksOAuth2ClientCredentialsResponse>
-
createOAuth2ClientCredentialsWithHttpInfo
public ApiResponse<WebhooksOAuth2ClientCredentialsResponse> createOAuth2ClientCredentialsWithHttpInfo(WebhooksOAuth2ClientCredentialsCreateRequest body) throws ApiException Create a new OAuth2 client credentials auth method for the Webhooks integration. Theclient_secretis stored securely and never returned.- Parameters:
body- OAuth2 client credentials payload. (required)- Returns:
- ApiResponse<WebhooksOAuth2ClientCredentialsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 CREATED - 400 Bad Request - 403 Forbidden - 409 Conflict - 429 Too many requests -
-
createOAuth2ClientCredentialsWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksOAuth2ClientCredentialsResponse>> createOAuth2ClientCredentialsWithHttpInfoAsync(WebhooksOAuth2ClientCredentialsCreateRequest body) Create an OAuth2 client credentials auth method.- Parameters:
body- OAuth2 client credentials payload. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksOAuth2ClientCredentialsResponse>>
-
deleteOAuth2ClientCredentials
Delete an OAuth2 client credentials auth method.See
deleteOAuth2ClientCredentialsWithHttpInfo(java.lang.String).- Parameters:
authMethodId- The UUID of the auth method. (required)- Throws:
ApiException- if fails to make API call
-
deleteOAuth2ClientCredentialsAsync
Delete an OAuth2 client credentials auth method.See
deleteOAuth2ClientCredentialsWithHttpInfoAsync(java.lang.String).- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- CompletableFuture
-
deleteOAuth2ClientCredentialsWithHttpInfo
public ApiResponse<Void> deleteOAuth2ClientCredentialsWithHttpInfo(String authMethodId) throws ApiException Delete an OAuth2 client credentials auth method by ID.- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteOAuth2ClientCredentialsWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteOAuth2ClientCredentialsWithHttpInfoAsync(String authMethodId) Delete an OAuth2 client credentials auth method.See
deleteOAuth2ClientCredentialsWithHttpInfo(java.lang.String).- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getAllAuthMethods
Get all auth methods.- Returns:
- WebhooksAuthMethodsResponse
- Throws:
ApiException- if fails to make API call
-
getAllAuthMethodsAsync
Get all auth methods.- Returns:
- CompletableFuture<WebhooksAuthMethodsResponse>
-
getAllAuthMethods
public WebhooksAuthMethodsResponse getAllAuthMethods(WebhooksIntegrationApi.GetAllAuthMethodsOptionalParameters parameters) throws ApiException Get all auth methods.- Parameters:
parameters- Optional parameters for the request.- Returns:
- WebhooksAuthMethodsResponse
- Throws:
ApiException- if fails to make API call
-
getAllAuthMethodsAsync
public CompletableFuture<WebhooksAuthMethodsResponse> getAllAuthMethodsAsync(WebhooksIntegrationApi.GetAllAuthMethodsOptionalParameters parameters) Get all auth methods.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<WebhooksAuthMethodsResponse>
-
getAllAuthMethodsWithHttpInfo
public ApiResponse<WebhooksAuthMethodsResponse> getAllAuthMethodsWithHttpInfo(WebhooksIntegrationApi.GetAllAuthMethodsOptionalParameters parameters) throws ApiException Get a list of all auth methods configured for the Webhooks integration in your organization.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<WebhooksAuthMethodsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
getAllAuthMethodsWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksAuthMethodsResponse>> getAllAuthMethodsWithHttpInfoAsync(WebhooksIntegrationApi.GetAllAuthMethodsOptionalParameters parameters) Get all auth methods.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<WebhooksAuthMethodsResponse>>
-
getOAuth2ClientCredentials
public WebhooksOAuth2ClientCredentialsResponse getOAuth2ClientCredentials(String authMethodId) throws ApiException Get an OAuth2 client credentials auth method.See
getOAuth2ClientCredentialsWithHttpInfo(java.lang.String).- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- WebhooksOAuth2ClientCredentialsResponse
- Throws:
ApiException- if fails to make API call
-
getOAuth2ClientCredentialsAsync
public CompletableFuture<WebhooksOAuth2ClientCredentialsResponse> getOAuth2ClientCredentialsAsync(String authMethodId) Get an OAuth2 client credentials auth method.See
getOAuth2ClientCredentialsWithHttpInfoAsync(java.lang.String).- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- CompletableFuture<WebhooksOAuth2ClientCredentialsResponse>
-
getOAuth2ClientCredentialsWithHttpInfo
public ApiResponse<WebhooksOAuth2ClientCredentialsResponse> getOAuth2ClientCredentialsWithHttpInfo(String authMethodId) throws ApiException Get a single OAuth2 client credentials auth method by ID.- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- ApiResponse<WebhooksOAuth2ClientCredentialsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getOAuth2ClientCredentialsWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksOAuth2ClientCredentialsResponse>> getOAuth2ClientCredentialsWithHttpInfoAsync(String authMethodId) Get an OAuth2 client credentials auth method.See
getOAuth2ClientCredentialsWithHttpInfo(java.lang.String).- Parameters:
authMethodId- The UUID of the auth method. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksOAuth2ClientCredentialsResponse>>
-
updateOAuth2ClientCredentials
public WebhooksOAuth2ClientCredentialsResponse updateOAuth2ClientCredentials(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) throws ApiException Update an OAuth2 client credentials auth method.- Parameters:
authMethodId- The UUID of the auth method. (required)body- OAuth2 client credentials payload. (required)- Returns:
- WebhooksOAuth2ClientCredentialsResponse
- Throws:
ApiException- if fails to make API call
-
updateOAuth2ClientCredentialsAsync
public CompletableFuture<WebhooksOAuth2ClientCredentialsResponse> updateOAuth2ClientCredentialsAsync(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) Update an OAuth2 client credentials auth method.- Parameters:
authMethodId- The UUID of the auth method. (required)body- OAuth2 client credentials payload. (required)- Returns:
- CompletableFuture<WebhooksOAuth2ClientCredentialsResponse>
-
updateOAuth2ClientCredentialsWithHttpInfo
public ApiResponse<WebhooksOAuth2ClientCredentialsResponse> updateOAuth2ClientCredentialsWithHttpInfo(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) throws ApiException Update an existing OAuth2 client credentials auth method.- Parameters:
authMethodId- The UUID of the auth method. (required)body- OAuth2 client credentials payload. (required)- Returns:
- ApiResponse<WebhooksOAuth2ClientCredentialsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
updateOAuth2ClientCredentialsWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksOAuth2ClientCredentialsResponse>> updateOAuth2ClientCredentialsWithHttpInfoAsync(String authMethodId, WebhooksOAuth2ClientCredentialsUpdateRequest body) Update an OAuth2 client credentials auth method.- Parameters:
authMethodId- The UUID of the auth method. (required)body- OAuth2 client credentials payload. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksOAuth2ClientCredentialsResponse>>
-