Package com.launchdarkly.api.api
Class WebhooksApi
- java.lang.Object
-
- com.launchdarkly.api.api.WebhooksApi
-
public class WebhooksApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WebhooksApi()WebhooksApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteWebhook(java.lang.String id)Delete webhook Delete a webhook by ID.okhttp3.CalldeleteWebhookAsync(java.lang.String id, ApiCallback<java.lang.Void> _callback)Delete webhook (asynchronously) Delete a webhook by ID.okhttp3.CalldeleteWebhookCall(java.lang.String id, ApiCallback _callback)Build call for deleteWebhookApiResponse<java.lang.Void>deleteWebhookWithHttpInfo(java.lang.String id)Delete webhook Delete a webhook by ID.WebhooksgetAllWebhooks()List webhooks Fetch a list of all webhooks.okhttp3.CallgetAllWebhooksAsync(ApiCallback<Webhooks> _callback)List webhooks (asynchronously) Fetch a list of all webhooks.okhttp3.CallgetAllWebhooksCall(ApiCallback _callback)Build call for getAllWebhooksApiResponse<Webhooks>getAllWebhooksWithHttpInfo()List webhooks Fetch a list of all webhooks.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()WebhookgetWebhook(java.lang.String id)Get webhook Get a single webhook by ID.okhttp3.CallgetWebhookAsync(java.lang.String id, ApiCallback<Webhook> _callback)Get webhook (asynchronously) Get a single webhook by ID.okhttp3.CallgetWebhookCall(java.lang.String id, ApiCallback _callback)Build call for getWebhookApiResponse<Webhook>getWebhookWithHttpInfo(java.lang.String id)Get webhook Get a single webhook by ID.WebhookpatchWebhook(java.lang.String id, java.util.List<PatchOperation> patchOperation)Update webhook Update a webhook's settings.okhttp3.CallpatchWebhookAsync(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback<Webhook> _callback)Update webhook (asynchronously) Update a webhook's settings.okhttp3.CallpatchWebhookCall(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)Build call for patchWebhookApiResponse<Webhook>patchWebhookWithHttpInfo(java.lang.String id, java.util.List<PatchOperation> patchOperation)Update webhook Update a webhook's settings.WebhookpostWebhook(WebhookPost webhookPost)Creates a webhook Create a new webhook.okhttp3.CallpostWebhookAsync(WebhookPost webhookPost, ApiCallback<Webhook> _callback)Creates a webhook (asynchronously) Create a new webhook.okhttp3.CallpostWebhookCall(WebhookPost webhookPost, ApiCallback _callback)Build call for postWebhookApiResponse<Webhook>postWebhookWithHttpInfo(WebhookPost webhookPost)Creates a webhook Create a new webhook.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
WebhooksApi
public WebhooksApi()
-
WebhooksApi
public WebhooksApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public java.lang.String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(java.lang.String customBaseUrl)
-
deleteWebhookCall
public okhttp3.Call deleteWebhookCall(java.lang.String id, ApiCallback _callback) throws ApiExceptionBuild call for deleteWebhook- Parameters:
id- The ID of the webhook to delete (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteWebhook
public void deleteWebhook(java.lang.String id) throws ApiExceptionDelete webhook Delete a webhook by ID.- Parameters:
id- The ID of the webhook to delete (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteWebhookWithHttpInfo
public ApiResponse<java.lang.Void> deleteWebhookWithHttpInfo(java.lang.String id) throws ApiException
Delete webhook Delete a webhook by ID.- Parameters:
id- The ID of the webhook to delete (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteWebhookAsync
public okhttp3.Call deleteWebhookAsync(java.lang.String id, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete webhook (asynchronously) Delete a webhook by ID.- Parameters:
id- The ID of the webhook to delete (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getAllWebhooksCall
public okhttp3.Call getAllWebhooksCall(ApiCallback _callback) throws ApiException
Build call for getAllWebhooks- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getAllWebhooks
public Webhooks getAllWebhooks() throws ApiException
List webhooks Fetch a list of all webhooks.- Returns:
- Webhooks
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAllWebhooksWithHttpInfo
public ApiResponse<Webhooks> getAllWebhooksWithHttpInfo() throws ApiException
List webhooks Fetch a list of all webhooks.- Returns:
- ApiResponse<Webhooks>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAllWebhooksAsync
public okhttp3.Call getAllWebhooksAsync(ApiCallback<Webhooks> _callback) throws ApiException
List webhooks (asynchronously) Fetch a list of all webhooks.- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getWebhookCall
public okhttp3.Call getWebhookCall(java.lang.String id, ApiCallback _callback) throws ApiExceptionBuild call for getWebhook- Parameters:
id- The ID of the webhook (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getWebhook
public Webhook getWebhook(java.lang.String id) throws ApiException
Get webhook Get a single webhook by ID.- Parameters:
id- The ID of the webhook (required)- Returns:
- Webhook
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getWebhookWithHttpInfo
public ApiResponse<Webhook> getWebhookWithHttpInfo(java.lang.String id) throws ApiException
Get webhook Get a single webhook by ID.- Parameters:
id- The ID of the webhook (required)- Returns:
- ApiResponse<Webhook>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getWebhookAsync
public okhttp3.Call getWebhookAsync(java.lang.String id, ApiCallback<Webhook> _callback) throws ApiExceptionGet webhook (asynchronously) Get a single webhook by ID.- Parameters:
id- The ID of the webhook (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
patchWebhookCall
public okhttp3.Call patchWebhookCall(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback _callback) throws ApiExceptionBuild call for patchWebhook- Parameters:
id- The ID of the webhook to update (required)patchOperation- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchWebhook
public Webhook patchWebhook(java.lang.String id, java.util.List<PatchOperation> patchOperation) throws ApiException
Update webhook Update a webhook's settings. Updating webhook settings uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates).- Parameters:
id- The ID of the webhook to update (required)patchOperation- (required)- Returns:
- Webhook
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchWebhookWithHttpInfo
public ApiResponse<Webhook> patchWebhookWithHttpInfo(java.lang.String id, java.util.List<PatchOperation> patchOperation) throws ApiException
Update webhook Update a webhook's settings. Updating webhook settings uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates).- Parameters:
id- The ID of the webhook to update (required)patchOperation- (required)- Returns:
- ApiResponse<Webhook>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchWebhookAsync
public okhttp3.Call patchWebhookAsync(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback<Webhook> _callback) throws ApiExceptionUpdate webhook (asynchronously) Update a webhook's settings. Updating webhook settings uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates).- Parameters:
id- The ID of the webhook to update (required)patchOperation- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
postWebhookCall
public okhttp3.Call postWebhookCall(WebhookPost webhookPost, ApiCallback _callback) throws ApiException
Build call for postWebhook- Parameters:
webhookPost- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postWebhook
public Webhook postWebhook(WebhookPost webhookPost) throws ApiException
Creates a webhook Create a new webhook.- Parameters:
webhookPost- (required)- Returns:
- Webhook
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postWebhookWithHttpInfo
public ApiResponse<Webhook> postWebhookWithHttpInfo(WebhookPost webhookPost) throws ApiException
Creates a webhook Create a new webhook.- Parameters:
webhookPost- (required)- Returns:
- ApiResponse<Webhook>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postWebhookAsync
public okhttp3.Call postWebhookAsync(WebhookPost webhookPost, ApiCallback<Webhook> _callback) throws ApiException
Creates a webhook (asynchronously) Create a new webhook.- Parameters:
webhookPost- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-