你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.