Partager via


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.Storage.Models.ManagementPolicyRuleTypeConverter))]
public class ManagementPolicyRule : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IManagementPolicyRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.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

DefinitionAction

An object that defines the action set.

Enabled

Rule is enabled if set to true.

FilterBlobIndexMatch

An array of blob index tag based filters, there can be at most 10 tag filters

FilterBlobType

An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.

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.

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.Storage.Models.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.

ToString()

Applies to