ManagementPolicyRule Class

Definition

An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyRuleTypeConverter))]
public class ManagementPolicyRule : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyRuleTypeConverter))>]
type ManagementPolicyRule = class
    interface IManagementPolicyRule
    interface IJsonSerializable
Public Class ManagementPolicyRule
Implements IManagementPolicyRule
Inheritance
ManagementPolicyRule
Attributes
Implements

Constructors

ManagementPolicyRule()

Creates an new ManagementPolicyRule instance.

Properties

DeleteDaysAfterCreationGreaterThan

Value indicating the age in days after creation

DeleteDaysAfterModificationGreaterThan

Value indicating the age in days after last modification

Enabled

Rule is enabled if set to true.

FilterBlobType

An array of predefined enum values. Only blockBlob is supported.

FilterPrefixMatch

An array of strings for prefixes to be match.

Name

A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

TierToArchiveDaysAfterModificationGreaterThan

Value indicating the age in days after last modification

TierToCoolDaysAfterModificationGreaterThan

Value indicating the age in days after last modification

Type

The valid value is Lifecycle

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ManagementPolicyRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ManagementPolicyRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyRule.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ManagementPolicyRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to