PolicyFragment Class

A Policy.

Inheritance
azure.mgmt.devtestlabs.models._models_py3.UpdateResource
PolicyFragment

Constructor

PolicyFragment(*, 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
tags
Required

A set of tags. The tags of the resource.

description
Required
str

The description of the policy.

status
Required

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
str

The fact data of the policy.

threshold
Required
str

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
tags
Required
description
Required
status
Required
fact_name
Required
fact_data
Required
threshold
Required
evaluator_type
Required