PolicyFragment Class
A Policy.
- Inheritance
-
azure.mgmt.devtestlabs.models._models_py3.UpdateResourcePolicyFragment
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
- status
- str or PolicyStatus
The status of the policy. Possible values include: "Enabled", "Disabled".
- fact_name
- str or PolicyFactName
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".
- threshold
- str
The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
- evaluator_type
- str or PolicyEvaluatorType
The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: "AllowedValuesPolicy", "MaxValuePolicy".
Feedback
Submit and view feedback for