Interface Suppressions


public interface Suppressions
Resource collection API of Suppressions.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<SuppressionContract> getWithResponse(String resourceUri, String recommendationId, String name, com.azure.core.util.Context context)
      Obtains the details of a suppression.
      Parameters:
      resourceUri - The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
      recommendationId - The recommendation ID.
      name - The name of the suppression.
      context - The context to associate with this operation.
      Returns:
      the details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the 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.
    • get

      SuppressionContract get(String resourceUri, String recommendationId, String name)
      Obtains the details of a suppression.
      Parameters:
      resourceUri - The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
      recommendationId - The recommendation ID.
      name - The name of the suppression.
      Returns:
      the details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceUri, String recommendationId, String name, com.azure.core.util.Context context)
      Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
      Parameters:
      resourceUri - The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
      recommendationId - The recommendation ID.
      name - The name of the suppression.
      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.
    • delete

      void delete(String resourceUri, String recommendationId, String name)
      Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
      Parameters:
      resourceUri - The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
      recommendationId - The recommendation ID.
      name - The name of the suppression.
      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<SuppressionContract> list()
      Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
      Returns:
      the list of Advisor suppressions as paginated response with PagedIterable.
      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<SuppressionContract> list(Integer top, String skipToken, com.azure.core.util.Context context)
      Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
      Parameters:
      top - The number of suppressions per page if a paged version of this API is being used.
      skipToken - The page-continuation token to use with a paged version of this API.
      context - The context to associate with this operation.
      Returns:
      the list of Advisor suppressions 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.
    • getById

      Obtains the details of a suppression.
      Parameters:
      id - the resource ID.
      Returns:
      the details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<SuppressionContract> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Obtains the details of a suppression.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the 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.
    • deleteById

      void deleteById(String id)
      Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new SuppressionContract resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new SuppressionContract definition.