Policy Class
A Policy.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
Policy(*, location: str | None = None, tags: dict[str, str] | None = None, description: str | None = None, status: str | _models.PolicyStatus | None = None, fact_name: str | _models.PolicyFactName | None = None, fact_data: str | None = None, threshold: str | None = None, evaluator_type: str | _models.PolicyEvaluatorType | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
location
|
The location of the resource. Default value: None
|
|
tags
|
The tags of the resource. Default value: None
|
|
description
|
The description of the policy. Default value: None
|
|
status
|
str or
PolicyStatus
The status of the policy. Known values are: "Enabled" and "Disabled". Default value: None
|
|
fact_name
|
The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Known values are: "UserOwnedLabVmCount", "UserOwnedLabPremiumVmCount", "LabVmCount", "LabPremiumVmCount", "LabVmSize", "GalleryImage", "UserOwnedLabVmCountInSubnet", "LabTargetCost", "EnvironmentTemplate", and "ScheduleEditPermission". Default value: None
|
|
fact_data
|
The fact data of the policy. Default value: None
|
|
threshold
|
The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). Default value: None
|
|
evaluator_type
|
The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Known values are: "AllowedValuesPolicy" and "MaxValuePolicy". Default value: None
|
Variables
| Name | Description |
|---|---|
|
id
|
The identifier of the resource. |
|
name
|
The name of the resource. |
|
type
|
The type of the resource. |
|
location
|
The location of the resource. |
|
tags
|
The tags of the resource. |
|
description
|
The description of the policy. |
|
status
|
str or
PolicyStatus
The status of the policy. Known values are: "Enabled" and "Disabled". |
|
fact_name
|
The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Known values are: "UserOwnedLabVmCount", "UserOwnedLabPremiumVmCount", "LabVmCount", "LabPremiumVmCount", "LabVmSize", "GalleryImage", "UserOwnedLabVmCountInSubnet", "LabTargetCost", "EnvironmentTemplate", and "ScheduleEditPermission". |
|
fact_data
|
The fact data of the policy. |
|
threshold
|
The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). |
|
evaluator_type
|
The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Known values are: "AllowedValuesPolicy" and "MaxValuePolicy". |
|
created_date
|
The creation date of the policy. |
|
provisioning_state
|
The provisioning status of the resource. |
|
unique_identifier
|
The unique immutable identifier of a resource (Guid). |