Interface ActionGroupsClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<ActionGroupResourceInner>, InnerSupportsListing<ActionGroupResourceInner>

An instance of this class provides access to all the operations defined in ActionGroupsClient.
  • Method Details

    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ActionGroupResourceInner>> createOrUpdateWithResponseAsync(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:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<ActionGroupResourceInner> 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:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      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:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ActionGroupResourceInner> createOrUpdateWithResponse(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup, com.azure.core.util.Context context)
      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.
      context - The context to associate with this operation.
      Returns:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ActionGroupResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String actionGroupName)
      Get an action group.
      Parameters:
      resourceGroupName - The name of the resource group.
      actionGroupName - The name of the action group.
      Returns:
      an action group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupAsync

      Mono<ActionGroupResourceInner> getByResourceGroupAsync(String resourceGroupName, String actionGroupName)
      Get an action group.
      Specified by:
      getByResourceGroupAsync in interface InnerSupportsGet<ActionGroupResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      actionGroupName - The name of the action group.
      Returns:
      an action group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      ActionGroupResourceInner getByResourceGroup(String resourceGroupName, String actionGroupName)
      Get an action group.
      Specified by:
      getByResourceGroup in interface InnerSupportsGet<ActionGroupResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      actionGroupName - The name of the action group.
      Returns:
      an action group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<ActionGroupResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String actionGroupName, com.azure.core.util.Context context)
      Get an action group.
      Parameters:
      resourceGroupName - The name of the resource group.
      actionGroupName - The name of the action group.
      context - The context to associate with this operation.
      Returns:
      an action group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(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 completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String actionGroupName)
      Delete an action group.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group.
      actionGroupName - The name of the action group.
      Returns:
      the completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      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.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String actionGroupName, com.azure.core.util.Context context)
      Delete an action group.
      Parameters:
      resourceGroupName - The name of the resource group.
      actionGroupName - The name of the action group.
      context - The context to associate with this operation.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ActionGroupResourceInner>> updateWithResponseAsync(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:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<ActionGroupResourceInner> 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:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      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:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<ActionGroupResourceInner> updateWithResponse(String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch, com.azure.core.util.Context context)
      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.
      context - The context to associate with this operation.
      Returns:
      an action group resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAsync

      com.azure.core.http.rest.PagedFlux<ActionGroupResourceInner> listAsync()
      Get a list of all action groups in a subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<ActionGroupResourceInner>
      Returns:
      a list of all action groups in a subscription.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<ActionGroupResourceInner> list()
      Get a list of all action groups in a subscription.
      Specified by:
      list in interface InnerSupportsListing<ActionGroupResourceInner>
      Returns:
      a list of all action groups in a subscription.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<ActionGroupResourceInner> list(com.azure.core.util.Context context)
      Get a list of all action groups in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of all action groups in a subscription.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<ActionGroupResourceInner> listByResourceGroupAsync(String resourceGroupName)
      Get a list of all action groups in a resource group.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<ActionGroupResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      a list of all action groups in a resource group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ActionGroupResourceInner> listByResourceGroup(String resourceGroupName)
      Get a list of all action groups in a resource group.
      Specified by:
      listByResourceGroup in interface InnerSupportsListing<ActionGroupResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      a list of all action groups in a resource group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ActionGroupResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Get a list of all action groups in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      context - The context to associate with this operation.
      Returns:
      a list of all action groups in a resource group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • enableReceiverWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> enableReceiverWithResponseAsync(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 completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • enableReceiverAsync

      Mono<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.
      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 completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • enableReceiver

      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.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • enableReceiverWithResponse

      com.azure.core.http.rest.Response<Void> enableReceiverWithResponse(String resourceGroupName, String actionGroupName, String receiverName, com.azure.core.util.Context context)
      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.
      context - The context to associate with this operation.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.