Class PolicyFragment
A Policy.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.DevTestLabs.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class PolicyFragment : Microsoft.Azure.Management.DevTestLabs.Models.UpdateResource
Constructors
PolicyFragment()
Initializes a new instance of the PolicyFragment class.
Declaration
public PolicyFragment ();
PolicyFragment(IDictionary<String,String>, String, String, String, String, String, String)
Initializes a new instance of the PolicyFragment class.
Declaration
public PolicyFragment (System.Collections.Generic.IDictionary<string,string> tags = null, string description = null, string status = null, string factName = null, string factData = null, string threshold = null, string evaluatorType = null);
Parameters
|
IDictionary<String,String>
tags
The tags of the resource. |
|
String
description
The description of the policy. |
|
String
status
The status of the policy. Possible values include: 'Enabled', 'Disabled' |
|
String
factName
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' |
|
String
factData
The fact data of the policy. |
|
String
threshold
The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). |
|
String
evaluatorType
The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' |
Properties
Description
Gets or sets the description of the policy.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.description")]
public string Description { get; set; }
Property Value
|
String
|
EvaluatorType
Gets or sets the evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.evaluatorType")]
public string EvaluatorType { get; set; }
Property Value
|
String
|
FactData
Gets or sets the fact data of the policy.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.factData")]
public string FactData { get; set; }
Property Value
|
String
|
FactName
Gets or sets 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'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.factName")]
public string FactName { get; set; }
Property Value
|
String
|
Status
Gets or sets the status of the policy. Possible values include: 'Enabled', 'Disabled'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.status")]
public string Status { get; set; }
Property Value
|
String
|
Threshold
Gets or sets the threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.threshold")]
public string Threshold { get; set; }
Property Value
|
String
|