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 Azure.

Inheritance
ManagementPolicyRule

Constructor

ManagementPolicyRule(*, name: str, type: Union[str, azure.mgmt.storage.v2021_02_01.models._storage_management_client_enums.RuleType], definition: azure.mgmt.storage.v2021_02_01.models._models_py3.ManagementPolicyDefinition, enabled: Optional[bool] = None, **kwargs)

Variables

enabled
bool

Rule is enabled if set to true.

name
str

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

type
str or RuleType

Required. The valid value is Lifecycle. Possible values include: "Lifecycle".

definition
ManagementPolicyDefinition

Required. An object that defines the Lifecycle rule.