ManagementPolicyRule Class

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

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.storage._serialization.Model
ManagementPolicyRule

Constructor

ManagementPolicyRule(*, name: str, type: str | _models.RuleType, definition: _models.ManagementPolicyDefinition, enabled: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
enabled

Rule is enabled if set to true.

name
str

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

type

The valid value is Lifecycle. Required. "Lifecycle"

definition

An object that defines the Lifecycle rule. Required.

Variables

Name Description
enabled

Rule is enabled if set to true.

name
str

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

type

The valid value is Lifecycle. Required. "Lifecycle"

definition

An object that defines the Lifecycle rule. Required.