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.Resource
Policy

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
str

The location of the resource.

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

Variables

Name Description
id
str

The identifier of the resource.

name
str

The name of the resource.

type
str

The type of the resource.

created_date

The creation date of the policy.

provisioning_state
str

The provisioning status of the resource.

unique_identifier
str

The unique immutable identifier of a resource (Guid).