Interface TagRulesClient


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

    • get

      TagRuleInner get(String resourceGroupName, String monitorName, String ruleSetName)
      Get a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      Returns:
      a TagRule.
      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<TagRuleInner> getWithResponse(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context)
      Get a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      a TagRule 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagRuleInner>,TagRuleInner> beginCreateOrUpdate(String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource)
      Create a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      resource - Resource create parameters.
      Returns:
      the SyncPoller for polling of tag rules for a monitor 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagRuleInner>,TagRuleInner> beginCreateOrUpdate(String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource, com.azure.core.util.Context context)
      Create a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      resource - Resource create parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of tag rules for a monitor 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

      TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource)
      Create a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      resource - Resource create parameters.
      Returns:
      tag rules for a monitor 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

      TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource, com.azure.core.util.Context context)
      Create a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      resource - Resource create parameters.
      context - The context to associate with this operation.
      Returns:
      tag rules for a monitor 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

      TagRuleInner update(String resourceGroupName, String monitorName, String ruleSetName, TagRuleUpdate resource)
      Update a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      resource - The resource properties to be updated.
      Returns:
      tag rules for a monitor 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<TagRuleInner> updateWithResponse(String resourceGroupName, String monitorName, String ruleSetName, TagRuleUpdate resource, com.azure.core.util.Context context)
      Update a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      resource - The resource properties to be updated.
      context - The context to associate with this operation.
      Returns:
      tag rules for a monitor resource 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName)
      Delete a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context)
      Delete a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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 monitorName, String ruleSetName)
      Delete a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource 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.
    • delete

      void delete(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context)
      Delete a TagRule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      ruleSetName - Monitor resource name.
      context - The context to associate with this operation.
      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<TagRuleInner> list(String resourceGroupName, String monitorName)
      List all TagRule by monitorName.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      the response of a TagRule list 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.
    • list

      com.azure.core.http.rest.PagedIterable<TagRuleInner> list(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      List all TagRule by monitorName.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      the response of a TagRule list 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.