Policy Class
A Policy.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.devtestlabs.models._models_py3.ResourcePolicy
Constructor
Policy(*, location: str | None = None, tags: Dict[str, str] | None = None, description: str | None = None, status: str | PolicyStatus | None = None, fact_name: str | PolicyFactName | None = None, fact_data: str | None = None, threshold: str | None = None, evaluator_type: str | PolicyEvaluatorType | None = None, **kwargs)
Parameters
Name | Description |
---|---|
location
Required
|
The location of the resource. |
tags
Required
|
A set of tags. The tags of the resource. |
description
Required
|
The description of the policy. |
status
Required
|
str or
PolicyStatus
The status of the policy. Possible values include: "Enabled", "Disabled". |
fact_name
Required
|
The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: "UserOwnedLabVmCount", "UserOwnedLabPremiumVmCount", "LabVmCount", "LabPremiumVmCount", "LabVmSize", "GalleryImage", "UserOwnedLabVmCountInSubnet", "LabTargetCost", "EnvironmentTemplate", "ScheduleEditPermission". |
fact_data
Required
|
The fact data of the policy. |
threshold
Required
|
The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). |
evaluator_type
Required
|
The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: "AllowedValuesPolicy", "MaxValuePolicy". |
Keyword-Only Parameters
Name | Description |
---|---|
location
Required
|
|
tags
Required
|
|
description
Required
|
|
status
Required
|
|
fact_name
Required
|
|
fact_data
Required
|
|
threshold
Required
|
|
evaluator_type
Required
|
|
Variables
Name | Description |
---|---|
id
|
The identifier of the resource. |
name
|
The name of the resource. |
type
|
The type of the resource. |
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). |
Azure SDK for Python