/
DevTestLabPolicyData.cs
76 lines (70 loc) · 4.14 KB
/
DevTestLabPolicyData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.DevTestLabs.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.DevTestLabs
{
/// <summary>
/// A class representing the DevTestLabPolicy data model.
/// A Policy.
/// </summary>
public partial class DevTestLabPolicyData : TrackedResourceData
{
/// <summary> Initializes a new instance of DevTestLabPolicyData. </summary>
/// <param name="location"> The location. </param>
public DevTestLabPolicyData(AzureLocation location) : base(location)
{
}
/// <summary> Initializes a new instance of DevTestLabPolicyData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="description"> The description of the policy. </param>
/// <param name="status"> The status of the policy. </param>
/// <param name="factName"> The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. </param>
/// <param name="factData"> The fact data of the policy. </param>
/// <param name="threshold"> The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). </param>
/// <param name="evaluatorType"> The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). </param>
/// <param name="createdOn"> The creation date of the policy. </param>
/// <param name="provisioningState"> The provisioning status of the resource. </param>
/// <param name="uniqueIdentifier"> The unique immutable identifier of a resource (Guid). </param>
internal DevTestLabPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, string description, DevTestLabPolicyStatus? status, DevTestLabPolicyFactName? factName, string factData, string threshold, DevTestLabPolicyEvaluatorType? evaluatorType, DateTimeOffset? createdOn, string provisioningState, Guid? uniqueIdentifier) : base(id, name, resourceType, systemData, tags, location)
{
Description = description;
Status = status;
FactName = factName;
FactData = factData;
Threshold = threshold;
EvaluatorType = evaluatorType;
CreatedOn = createdOn;
ProvisioningState = provisioningState;
UniqueIdentifier = uniqueIdentifier;
}
/// <summary> The description of the policy. </summary>
public string Description { get; set; }
/// <summary> The status of the policy. </summary>
public DevTestLabPolicyStatus? Status { get; set; }
/// <summary> The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. </summary>
public DevTestLabPolicyFactName? FactName { get; set; }
/// <summary> The fact data of the policy. </summary>
public string FactData { get; set; }
/// <summary> The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). </summary>
public string Threshold { get; set; }
/// <summary> The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). </summary>
public DevTestLabPolicyEvaluatorType? EvaluatorType { get; set; }
/// <summary> The creation date of the policy. </summary>
public DateTimeOffset? CreatedOn { get; }
/// <summary> The provisioning status of the resource. </summary>
public string ProvisioningState { get; }
/// <summary> The unique immutable identifier of a resource (Guid). </summary>
public Guid? UniqueIdentifier { get; }
}
}