다음을 통해 공유


ManagementPolicyRule 클래스

수명 주기 규칙을 래핑하는 개체입니다. 각 규칙은 이름으로 고유하게 정의됩니다.

Azure로 보내려면 모든 필수 매개 변수를 채워야 합니다.

상속
azure.mgmt.storage._serialization.Model
ManagementPolicyRule

생성자

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

변수

enabled
bool

true로 설정하면 규칙이 활성화됩니다.

name
str

규칙 이름에는 모든 영숫자 문자 조합이 허용됩니다. 규칙 이름은 대/소문자를 구분합니다. 정책 내에서 고유해야 합니다. 필수 요소.

type
str 또는 RuleType

유효한 값은 수명 주기입니다. 필수 요소. "수명 주기"

definition
ManagementPolicyDefinition

수명 주기 규칙을 정의하는 개체입니다. 필수 요소.