PolicyFragment Class

A Policy.

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

Constructor

PolicyFragment(*, tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, status: Optional[Union[str, azure.mgmt.devtestlabs.models._dev_test_labs_client_enums.PolicyStatus]] = None, fact_name: Optional[Union[str, azure.mgmt.devtestlabs.models._dev_test_labs_client_enums.PolicyFactName]] = None, fact_data: Optional[str] = None, threshold: Optional[str] = None, evaluator_type: Optional[Union[str, azure.mgmt.devtestlabs.models._dev_test_labs_client_enums.PolicyEvaluatorType]] = None, **kwargs)

Parameters

tags
dict[str, str]
Required

A set of tags. The tags of the resource.

description
str
Required

The description of the policy.

status
str or PolicyStatus
Required

The status of the policy. Possible values include: "Enabled", "Disabled".

fact_name
str or PolicyFactName
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
str
Required

The fact data of the policy.

threshold
str
Required

The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

evaluator_type
str or PolicyEvaluatorType
Required

The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: "AllowedValuesPolicy", "MaxValuePolicy".