AdvisorSuppressionContractCollection Class

Definition

A class representing a collection of AdvisorSuppressionContractResource and their operations. Each AdvisorSuppressionContractResource in the collection will belong to the same instance of AdvisorRecommendationResource. To get a AdvisorSuppressionContractCollection instance call the GetAdvisorSuppressionContracts method from an instance of AdvisorRecommendationResource.

public class AdvisorSuppressionContractCollection : Azure.ResourceManager.ArmCollection
type AdvisorSuppressionContractCollection = class
    inherit ArmCollection
Public Class AdvisorSuppressionContractCollection
Inherits ArmCollection
Inheritance
AdvisorSuppressionContractCollection

Constructors

Name Description
AdvisorSuppressionContractCollection()

Initializes a new instance of AdvisorSuppressionContractCollection for mocking.

Properties

Name Description
Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Name Description
CreateOrUpdate(WaitUntil, String, AdvisorSuppressionContractData, CancellationToken)

Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Create.
  • Default Api Version. : 2025-05-01-preview.
CreateOrUpdateAsync(WaitUntil, String, AdvisorSuppressionContractData, CancellationToken)

Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Create.
  • Default Api Version. : 2025-05-01-preview.
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Get.
  • Default Api Version. : 2025-05-01-preview.
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Get.
  • Default Api Version. : 2025-05-01-preview.
Get(String, CancellationToken)

Obtains the details of a suppression.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Get.
  • Default Api Version. : 2025-05-01-preview.
GetAsync(String, CancellationToken)

Obtains the details of a suppression.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Get.
  • Default Api Version. : 2025-05-01-preview.
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Get.
  • Default Api Version. : 2025-05-01-preview.
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}.
  • Operation Id. : SuppressionContracts_Get.
  • Default Api Version. : 2025-05-01-preview.
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Applies to