Interface WatchersClient


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

    • createOrUpdate

      WatcherInner createOrUpdate(String resourceGroupName, String automationAccountName, String watcherName, WatcherInner parameters)
      Create the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      parameters - The create or update parameters for watcher.
      Returns:
      definition of the watcher type.
      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<WatcherInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String watcherName, WatcherInner parameters, com.azure.core.util.Context context)
      Create the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      parameters - The create or update parameters for watcher.
      context - The context to associate with this operation.
      Returns:
      definition of the watcher type along with 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.
    • get

      WatcherInner get(String resourceGroupName, String automationAccountName, String watcherName)
      Retrieve the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      Returns:
      definition of the watcher type.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<WatcherInner> getWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
      Retrieve the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      context - The context to associate with this operation.
      Returns:
      definition of the watcher type along with 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.
    • update

      WatcherInner update(String resourceGroupName, String automationAccountName, String watcherName, WatcherUpdateParameters parameters)
      Update the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      parameters - The update parameters for watcher.
      Returns:
      definition of the watcher type.
      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<WatcherInner> updateWithResponse(String resourceGroupName, String automationAccountName, String watcherName, WatcherUpdateParameters parameters, com.azure.core.util.Context context)
      Update the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      parameters - The update parameters for watcher.
      context - The context to associate with this operation.
      Returns:
      definition of the watcher type along with 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.
    • delete

      void delete(String resourceGroupName, String automationAccountName, String watcherName)
      Delete the watcher by name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      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 automationAccountName, String watcherName, com.azure.core.util.Context context)
      Delete the watcher by name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      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.
    • start

      void start(String resourceGroupName, String automationAccountName, String watcherName)
      Resume the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      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.
    • startWithResponse

      com.azure.core.http.rest.Response<Void> startWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
      Resume the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      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.
    • stop

      void stop(String resourceGroupName, String automationAccountName, String watcherName)
      Resume the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      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.
    • stopWithResponse

      com.azure.core.http.rest.Response<Void> stopWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
      Resume the watcher identified by watcher name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      watcherName - The watcher name.
      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.
    • listByAutomationAccount

      com.azure.core.http.rest.PagedIterable<WatcherInner> listByAutomationAccount(String resourceGroupName, String automationAccountName)
      Retrieve a list of watchers.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      Returns:
      the response model for the list watcher operation as paginated response with PagedIterable.
      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.
    • listByAutomationAccount

      com.azure.core.http.rest.PagedIterable<WatcherInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context)
      Retrieve a list of watchers.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      filter - The filter to apply on the operation.
      context - The context to associate with this operation.
      Returns:
      the response model for the list watcher operation as paginated response with PagedIterable.
      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.