PolicyDefinition Class
The policy definition.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.resource.policy._serialization.ModelPolicyDefinition
Constructor
PolicyDefinition(*, name: str | None = None, policy_type: str | _models.PolicyType | None = None, display_name: str | None = None, description: str | None = None, policy_rule: MutableMapping[str, Any] | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
name
|
The name of the policy definition. If you do not specify a value for name, the value is inferred from the name value in the request URI. |
policy_type
|
str or
PolicyType
The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Known values are: "NotSpecified", "BuiltIn", and "Custom". |
display_name
|
The display name of the policy definition. |
description
|
The policy definition description. |
policy_rule
|
<xref:JSON>
The policy rule. |
Variables
Name | Description |
---|---|
id
|
The ID of the policy definition. |
name
|
The name of the policy definition. If you do not specify a value for name, the value is inferred from the name value in the request URI. |
policy_type
|
str or
PolicyType
The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Known values are: "NotSpecified", "BuiltIn", and "Custom". |
display_name
|
The display name of the policy definition. |
description
|
The policy definition description. |
policy_rule
|
<xref:JSON>
The policy rule. |
Azure SDK for Python