Class AlertSubscriptionsApi
- java.lang.Object
-
- org.wso2.am.integration.clients.admin.api.AlertSubscriptionsApi
-
public class AlertSubscriptionsApi extends Object
-
-
Constructor Summary
Constructors Constructor Description AlertSubscriptionsApi()AlertSubscriptionsApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()AlertsSubscriptionDTOgetSubscribedAlertTypes()Get Subscribed Alert Types This operation is used to get the list of subscribed alert types by the user.okhttp3.CallgetSubscribedAlertTypesAsync(ApiCallback<AlertsSubscriptionDTO> _callback)Get Subscribed Alert Types (asynchronously) This operation is used to get the list of subscribed alert types by the user.okhttp3.CallgetSubscribedAlertTypesCall(ApiCallback _callback)Build call for getSubscribedAlertTypesApiResponse<AlertsSubscriptionDTO>getSubscribedAlertTypesWithHttpInfo()Get Subscribed Alert Types This operation is used to get the list of subscribed alert types by the user.voidsetApiClient(ApiClient apiClient)AlertsSubscriptionDTOsubscribeToAlerts(AlertsSubscriptionDTO alertsSubscriptionDTO)Subscribe to an Admin Alert This operation is used to subscribe to admin alertsokhttp3.CallsubscribeToAlertsAsync(AlertsSubscriptionDTO alertsSubscriptionDTO, ApiCallback<AlertsSubscriptionDTO> _callback)Subscribe to an Admin Alert (asynchronously) This operation is used to subscribe to admin alertsokhttp3.CallsubscribeToAlertsCall(AlertsSubscriptionDTO alertsSubscriptionDTO, ApiCallback _callback)Build call for subscribeToAlertsApiResponse<AlertsSubscriptionDTO>subscribeToAlertsWithHttpInfo(AlertsSubscriptionDTO alertsSubscriptionDTO)Subscribe to an Admin Alert This operation is used to subscribe to admin alertsvoidunsubscribeAllAlerts()Unsubscribe User from all Admin Alerts This operation is used to unsubscribe the respective user from all the admin alert types.okhttp3.CallunsubscribeAllAlertsAsync(ApiCallback<Void> _callback)Unsubscribe User from all Admin Alerts (asynchronously) This operation is used to unsubscribe the respective user from all the admin alert types.okhttp3.CallunsubscribeAllAlertsCall(ApiCallback _callback)Build call for unsubscribeAllAlertsApiResponse<Void>unsubscribeAllAlertsWithHttpInfo()Unsubscribe User from all Admin Alerts This operation is used to unsubscribe the respective user from all the admin alert types.
-
-
-
Constructor Detail
-
AlertSubscriptionsApi
public AlertSubscriptionsApi()
-
AlertSubscriptionsApi
public AlertSubscriptionsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getSubscribedAlertTypesCall
public okhttp3.Call getSubscribedAlertTypesCall(ApiCallback _callback) throws ApiException
Build call for getSubscribedAlertTypes- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getSubscribedAlertTypes
public AlertsSubscriptionDTO getSubscribedAlertTypes() throws ApiException
Get Subscribed Alert Types This operation is used to get the list of subscribed alert types by the user.- Returns:
- AlertsSubscriptionDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSubscribedAlertTypesWithHttpInfo
public ApiResponse<AlertsSubscriptionDTO> getSubscribedAlertTypesWithHttpInfo() throws ApiException
Get Subscribed Alert Types This operation is used to get the list of subscribed alert types by the user.- Returns:
- ApiResponse<AlertsSubscriptionDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSubscribedAlertTypesAsync
public okhttp3.Call getSubscribedAlertTypesAsync(ApiCallback<AlertsSubscriptionDTO> _callback) throws ApiException
Get Subscribed Alert Types (asynchronously) This operation is used to get the list of subscribed alert types by the user.- 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
-
subscribeToAlertsCall
public okhttp3.Call subscribeToAlertsCall(AlertsSubscriptionDTO alertsSubscriptionDTO, ApiCallback _callback) throws ApiException
Build call for subscribeToAlerts- Parameters:
alertsSubscriptionDTO- The alerts list and the email list to subscribe. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
subscribeToAlerts
public AlertsSubscriptionDTO subscribeToAlerts(AlertsSubscriptionDTO alertsSubscriptionDTO) throws ApiException
Subscribe to an Admin Alert This operation is used to subscribe to admin alerts- Parameters:
alertsSubscriptionDTO- The alerts list and the email list to subscribe. (required)- Returns:
- AlertsSubscriptionDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
subscribeToAlertsWithHttpInfo
public ApiResponse<AlertsSubscriptionDTO> subscribeToAlertsWithHttpInfo(AlertsSubscriptionDTO alertsSubscriptionDTO) throws ApiException
Subscribe to an Admin Alert This operation is used to subscribe to admin alerts- Parameters:
alertsSubscriptionDTO- The alerts list and the email list to subscribe. (required)- Returns:
- ApiResponse<AlertsSubscriptionDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
subscribeToAlertsAsync
public okhttp3.Call subscribeToAlertsAsync(AlertsSubscriptionDTO alertsSubscriptionDTO, ApiCallback<AlertsSubscriptionDTO> _callback) throws ApiException
Subscribe to an Admin Alert (asynchronously) This operation is used to subscribe to admin alerts- Parameters:
alertsSubscriptionDTO- The alerts list and the email list to subscribe. (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
-
unsubscribeAllAlertsCall
public okhttp3.Call unsubscribeAllAlertsCall(ApiCallback _callback) throws ApiException
Build call for unsubscribeAllAlerts- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
unsubscribeAllAlerts
public void unsubscribeAllAlerts() throws ApiExceptionUnsubscribe User from all Admin Alerts This operation is used to unsubscribe the respective user from all the admin alert types.- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
unsubscribeAllAlertsWithHttpInfo
public ApiResponse<Void> unsubscribeAllAlertsWithHttpInfo() throws ApiException
Unsubscribe User from all Admin Alerts This operation is used to unsubscribe the respective user from all the admin alert types.- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
unsubscribeAllAlertsAsync
public okhttp3.Call unsubscribeAllAlertsAsync(ApiCallback<Void> _callback) throws ApiException
Unsubscribe User from all Admin Alerts (asynchronously) This operation is used to unsubscribe the respective user from all the admin alert types.- 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
-
-