/
DevTestLabCustomImageData.cs
89 lines (83 loc) · 5.24 KB
/
DevTestLabCustomImageData.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
77
78
79
80
81
82
83
84
85
86
87
88
89
// 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 DevTestLabCustomImage data model.
/// A custom image.
/// </summary>
public partial class DevTestLabCustomImageData : TrackedResourceData
{
/// <summary> Initializes a new instance of DevTestLabCustomImageData. </summary>
/// <param name="location"> The location. </param>
public DevTestLabCustomImageData(AzureLocation location) : base(location)
{
DataDiskStorageInfo = new ChangeTrackingList<DevTestLabDataDiskStorageTypeInfo>();
}
/// <summary> Initializes a new instance of DevTestLabCustomImageData. </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="vm"> The virtual machine from which the image is to be created. </param>
/// <param name="vhd"> The VHD from which the image is to be created. </param>
/// <param name="description"> The description of the custom image. </param>
/// <param name="author"> The author of the custom image. </param>
/// <param name="createdOn"> The creation date of the custom image. </param>
/// <param name="managedImageId"> The Managed Image Id backing the custom image. </param>
/// <param name="managedSnapshotId"> The Managed Snapshot Id backing the custom image. </param>
/// <param name="dataDiskStorageInfo"> Storage information about the data disks present in the custom image. </param>
/// <param name="customImagePlan"> Storage information about the plan related to this custom image. </param>
/// <param name="isPlanAuthorized"> Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment. </param>
/// <param name="provisioningState"> The provisioning status of the resource. </param>
/// <param name="uniqueIdentifier"> The unique immutable identifier of a resource (Guid). </param>
internal DevTestLabCustomImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, DevTestLabCustomImageVm vm, DevTestLabCustomImageVhd vhd, string description, string author, DateTimeOffset? createdOn, string managedImageId, string managedSnapshotId, IList<DevTestLabDataDiskStorageTypeInfo> dataDiskStorageInfo, DevTestLabCustomImagePlan customImagePlan, bool? isPlanAuthorized, string provisioningState, Guid? uniqueIdentifier) : base(id, name, resourceType, systemData, tags, location)
{
Vm = vm;
Vhd = vhd;
Description = description;
Author = author;
CreatedOn = createdOn;
ManagedImageId = managedImageId;
ManagedSnapshotId = managedSnapshotId;
DataDiskStorageInfo = dataDiskStorageInfo;
CustomImagePlan = customImagePlan;
IsPlanAuthorized = isPlanAuthorized;
ProvisioningState = provisioningState;
UniqueIdentifier = uniqueIdentifier;
}
/// <summary> The virtual machine from which the image is to be created. </summary>
public DevTestLabCustomImageVm Vm { get; set; }
/// <summary> The VHD from which the image is to be created. </summary>
public DevTestLabCustomImageVhd Vhd { get; set; }
/// <summary> The description of the custom image. </summary>
public string Description { get; set; }
/// <summary> The author of the custom image. </summary>
public string Author { get; set; }
/// <summary> The creation date of the custom image. </summary>
public DateTimeOffset? CreatedOn { get; }
/// <summary> The Managed Image Id backing the custom image. </summary>
public string ManagedImageId { get; set; }
/// <summary> The Managed Snapshot Id backing the custom image. </summary>
public string ManagedSnapshotId { get; set; }
/// <summary> Storage information about the data disks present in the custom image. </summary>
public IList<DevTestLabDataDiskStorageTypeInfo> DataDiskStorageInfo { get; }
/// <summary> Storage information about the plan related to this custom image. </summary>
public DevTestLabCustomImagePlan CustomImagePlan { get; set; }
/// <summary> Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment. </summary>
public bool? IsPlanAuthorized { get; set; }
/// <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; }
}
}