Interface AutomationRulesClient


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

      • get

        AutomationRuleInner get​(String resourceGroupName,
                                String workspaceName,
                                String automationRuleId)
        Gets the automation rule.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        automationRuleId - Automation rule ID.
        Returns:
        the automation rule.
        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<AutomationRuleInner> getWithResponse​(String resourceGroupName,
                                                                               String workspaceName,
                                                                               String automationRuleId,
                                                                               com.azure.core.util.Context context)
        Gets the automation rule.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        automationRuleId - Automation rule ID.
        context - The context to associate with this operation.
        Returns:
        the automation rule 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.
      • createOrUpdate

        AutomationRuleInner createOrUpdate​(String resourceGroupName,
                                           String workspaceName,
                                           String automationRuleId)
        Creates or updates the automation rule.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        automationRuleId - Automation rule ID.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<AutomationRuleInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                          String workspaceName,
                                                                                          String automationRuleId,
                                                                                          AutomationRuleInner automationRuleToUpsert,
                                                                                          com.azure.core.util.Context context)
        Creates or updates the automation rule.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        automationRuleId - Automation rule ID.
        automationRuleToUpsert - The automation rule.
        context - The context to associate with this operation.
        Returns:
        the response body 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

        Object delete​(String resourceGroupName,
                      String workspaceName,
                      String automationRuleId)
        Delete the automation rule.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        automationRuleId - Automation rule ID.
        Returns:
        any object.
        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<Object> deleteWithResponse​(String resourceGroupName,
                                                                     String workspaceName,
                                                                     String automationRuleId,
                                                                     com.azure.core.util.Context context)
        Delete the automation rule.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        automationRuleId - Automation rule ID.
        context - The context to associate with this operation.
        Returns:
        any object 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.
      • list

        com.azure.core.http.rest.PagedIterable<AutomationRuleInner> list​(String resourceGroupName,
                                                                         String workspaceName)
        Gets all automation rules.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        Returns:
        all automation rules 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.
      • list

        com.azure.core.http.rest.PagedIterable<AutomationRuleInner> list​(String resourceGroupName,
                                                                         String workspaceName,
                                                                         com.azure.core.util.Context context)
        Gets all automation rules.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        context - The context to associate with this operation.
        Returns:
        all automation rules 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.