Share via


SuppressionContract Class

Definition

The details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Advisor.Models.Api202001.SuppressionContractTypeConverter))]
public class SuppressionContract : Microsoft.Azure.PowerShell.Cmdlets.Advisor.Models.Api202001.ISuppressionContract, Microsoft.Azure.PowerShell.Cmdlets.Advisor.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Advisor.Models.Api202001.SuppressionContractTypeConverter))>]
type SuppressionContract = class
    interface ISuppressionContract
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class SuppressionContract
Implements ISuppressionContract, IValidates
Inheritance
SuppressionContract
Attributes
Implements

Constructors

SuppressionContract()

Creates an new SuppressionContract instance.

Properties

ExpirationTimeStamp

Gets or sets the expiration time stamp.

Id

The resource ID.

Name

The name of the resource.

ResourceGroupName

Gets the resource group name

SuppressionId

The GUID of the suppression.

Ttl

The duration for which the suppression is valid.

Type

The type of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SuppressionContract.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SuppressionContract.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Advisor.Models.Api202001.ISuppressionContract.

FromJsonString(String)

Creates a new instance of SuppressionContract, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SuppressionContract into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to