ActionGroupsInner Class

public class ActionGroupsInner implements InnerSupportsGet,InnerSupportsDelete,InnerSupportsListing

An instance of this class provides access to all the operations defined in ActionGroups.

Constructor Summary

Constructor Description
ActionGroupsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of ActionGroupsInner.

Method Summary

Modifier and Type Method and Description
ActionGroupResourceInner createOrUpdate(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup)

Create a new action group or update an existing one.

Observable<ActionGroupResourceInner> createOrUpdateAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup)

Create a new action group or update an existing one.

ServiceFuture<ActionGroupResourceInner> createOrUpdateAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup, final ServiceCallback<ActionGroupResourceInner> serviceCallback)

Create a new action group or update an existing one.

Observable<ServiceResponse<ActionGroupResourceInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup)

Create a new action group or update an existing one.

void delete(String resourceGroupName, String actionGroupName)

Delete an action group.

Observable<Void> deleteAsync(String resourceGroupName, String actionGroupName)

Delete an action group.

ServiceFuture<Void> deleteAsync(String resourceGroupName, String actionGroupName, final ServiceCallback<Void> serviceCallback)

Delete an action group.

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String actionGroupName)

Delete an action group.

void enableReceiver(String resourceGroupName, String actionGroupName, String receiverName)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

Observable<Void> enableReceiverAsync(String resourceGroupName, String actionGroupName, String receiverName)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

ServiceFuture<Void> enableReceiverAsync(String resourceGroupName, String actionGroupName, String receiverName, final ServiceCallback<Void> serviceCallback)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

Observable<ServiceResponse<Void>> enableReceiverWithServiceResponseAsync(String resourceGroupName, String actionGroupName, String receiverName)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

ActionGroupResourceInner getByResourceGroup(String resourceGroupName, String actionGroupName)

Get an action group.

Observable<ActionGroupResourceInner> getByResourceGroupAsync(String resourceGroupName, String actionGroupName)

Get an action group.

ServiceFuture<ActionGroupResourceInner> getByResourceGroupAsync(String resourceGroupName, String actionGroupName, final ServiceCallback<ActionGroupResourceInner> serviceCallback)

Get an action group.

Observable<ServiceResponse<ActionGroupResourceInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String actionGroupName)

Get an action group.

PagedList<ActionGroupResourceInner> list()

Get a list of all action groups in a subscription.

Observable<Page<ActionGroupResourceInner>> listAsync()

Get a list of all action groups in a subscription.

ServiceFuture<List<ActionGroupResourceInner>> listAsync(final ServiceCallback<List<ActionGroupResourceInner>> serviceCallback)

Get a list of all action groups in a subscription.

PagedList<ActionGroupResourceInner> listByResourceGroup(String resourceGroupName)

Get a list of all action groups in a resource group.

Observable<Page<ActionGroupResourceInner>> listByResourceGroupAsync(String resourceGroupName)

Get a list of all action groups in a resource group.

ServiceFuture<List<ActionGroupResourceInner>> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<List<ActionGroupResourceInner>> serviceCallback)

Get a list of all action groups in a resource group.

Observable<ServiceResponse<List<ActionGroupResourceInner>>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName)

Get a list of all action groups in a resource group.

Observable<ServiceResponse<List<ActionGroupResourceInner>>> listWithServiceResponseAsync()

Get a list of all action groups in a subscription.

ActionGroupResourceInner update(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Observable<ActionGroupResourceInner> updateAsync(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

ServiceFuture<ActionGroupResourceInner> updateAsync(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch, final ServiceCallback<ActionGroupResourceInner> serviceCallback)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Observable<ServiceResponse<ActionGroupResourceInner>> updateWithServiceResponseAsync(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Inherited Members

Constructor Details

ActionGroupsInner

public ActionGroupsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of ActionGroupsInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

createOrUpdate

public ActionGroupResourceInner createOrUpdate(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup)

Create a new action group or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroup - The action group to create or use for the update.

Returns:

the ActionGroupResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createOrUpdateAsync

public Observable createOrUpdateAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup)

Create a new action group or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroup - The action group to create or use for the update.

Returns:

the observable to the ActionGroupResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateAsync

public ServiceFuture createOrUpdateAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup, final ServiceCallback serviceCallback)

Create a new action group or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroup - The action group to create or use for the update.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateWithServiceResponseAsync

public Observable<>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup)

Create a new action group or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroup - The action group to create or use for the update.

Returns:

the observable to the ActionGroupResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String actionGroupName)

Delete an action group.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceGroupName, String actionGroupName)

Delete an action group.

Overrides:

ActionGroupsInner.deleteAsync(String resourceGroupName, String actionGroupName)

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceGroupName, String actionGroupName, final ServiceCallback serviceCallback)

Delete an action group.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable<>> deleteWithServiceResponseAsync(String resourceGroupName, String actionGroupName)

Delete an action group.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

enableReceiver

public void enableReceiver(String resourceGroupName, String actionGroupName, String receiverName)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
receiverName - The name of the receiver to resubscribe.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

enableReceiverAsync

public Observable enableReceiverAsync(String resourceGroupName, String actionGroupName, String receiverName)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
receiverName - The name of the receiver to resubscribe.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

enableReceiverAsync

public ServiceFuture enableReceiverAsync(String resourceGroupName, String actionGroupName, String receiverName, final ServiceCallback serviceCallback)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
receiverName - The name of the receiver to resubscribe.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

enableReceiverWithServiceResponseAsync

public Observable<>> enableReceiverWithServiceResponseAsync(String resourceGroupName, String actionGroupName, String receiverName)

Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
receiverName - The name of the receiver to resubscribe.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroup

public ActionGroupResourceInner getByResourceGroup(String resourceGroupName, String actionGroupName)

Get an action group.

Overrides:

ActionGroupsInner.getByResourceGroup(String resourceGroupName, String actionGroupName)

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.

Returns:

the ActionGroupResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getByResourceGroupAsync

public Observable getByResourceGroupAsync(String resourceGroupName, String actionGroupName)

Get an action group.

Overrides:

ActionGroupsInner.getByResourceGroupAsync(String resourceGroupName, String actionGroupName)

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.

Returns:

the observable to the ActionGroupResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupAsync

public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String actionGroupName, final ServiceCallback serviceCallback)

Get an action group.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupWithServiceResponseAsync

public Observable<>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String actionGroupName)

Get an action group.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.

Returns:

the observable to the ActionGroupResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list()

Get a list of all action groups in a subscription.

Overrides:

ActionGroupsInner.list()

Returns:

the PagedList<ActionGroupResourceInner> object if successful.

listAsync

public Observable<>> listAsync()

Get a list of all action groups in a subscription.

Overrides:

ActionGroupsInner.listAsync()

Returns:

the observable to the List<ActionGroupResourceInner> object

listAsync

public ServiceFuture<>> listAsync(final ServiceCallback<>> serviceCallback)

Get a list of all action groups in a subscription.

Parameters:

serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listByResourceGroup

public PagedList listByResourceGroup(String resourceGroupName)

Get a list of all action groups in a resource group.

Overrides:

ActionGroupsInner.listByResourceGroup(String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the PagedList<ActionGroupResourceInner> object if successful.

listByResourceGroupAsync

public Observable<>> listByResourceGroupAsync(String resourceGroupName)

Get a list of all action groups in a resource group.

Overrides:

ActionGroupsInner.listByResourceGroupAsync(String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the observable to the List<ActionGroupResourceInner> object

listByResourceGroupAsync

public ServiceFuture<>> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<>> serviceCallback)

Get a list of all action groups in a resource group.

Parameters:

resourceGroupName - The name of the resource group.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listByResourceGroupWithServiceResponseAsync

public Observable<><>>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName)

Get a list of all action groups in a resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the observable to the List<ActionGroupResourceInner> object

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync()

Get a list of all action groups in a subscription.

Returns:

the observable to the List<ActionGroupResourceInner> object

update

public ActionGroupResourceInner update(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroupPatch - Parameters supplied to the operation.

Returns:

the ActionGroupResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroupPatch - Parameters supplied to the operation.

Returns:

the observable to the ActionGroupResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch, final ServiceCallback serviceCallback)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroupPatch - Parameters supplied to the operation.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable<>> updateWithServiceResponseAsync(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch)

Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
actionGroupName - The name of the action group.
actionGroupPatch - Parameters supplied to the operation.

Returns:

the observable to the ActionGroupResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to