SuppressionContractCollection Class

Definition

A class representing a collection of SuppressionContractResource and their operations. Each SuppressionContractResource in the collection will belong to the same instance of ResourceRecommendationBaseResource. To get a SuppressionContractCollection instance call the GetSuppressionContracts method from an instance of ResourceRecommendationBaseResource.

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

Constructors

SuppressionContractCollection()

Initializes a new instance of the SuppressionContractCollection class for mocking.

Properties

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

CreateOrUpdate(WaitUntil, String, SuppressionContractData, 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: Suppressions_Create
CreateOrUpdateAsync(WaitUntil, String, SuppressionContractData, 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: Suppressions_Create
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}
  • Operation Id: Suppressions_Get
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}
  • Operation Id: Suppressions_Get
Get(String, CancellationToken)

Obtains the details of a suppression.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}
  • Operation Id: Suppressions_Get
GetAsync(String, CancellationToken)

Obtains the details of a suppression.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}
  • Operation Id: Suppressions_Get
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: Suppressions_Get
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: Suppressions_Get
TryGetApiVersion(ResourceType, String)

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

(Inherited from ArmCollection)

Applies to