-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
VirtualMachineInstanceView.cs
138 lines (130 loc) · 8.69 KB
/
VirtualMachineInstanceView.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.Compute.Models
{
/// <summary> The instance view of a virtual machine. </summary>
public partial class VirtualMachineInstanceView
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="VirtualMachineInstanceView"/>. </summary>
internal VirtualMachineInstanceView()
{
Disks = new ChangeTrackingList<DiskInstanceView>();
Extensions = new ChangeTrackingList<VirtualMachineExtensionInstanceView>();
Statuses = new ChangeTrackingList<InstanceViewStatus>();
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineInstanceView"/>. </summary>
/// <param name="platformUpdateDomain"> Specifies the update domain of the virtual machine. </param>
/// <param name="platformFaultDomain"> Specifies the fault domain of the virtual machine. </param>
/// <param name="computerName"> The computer name assigned to the virtual machine. </param>
/// <param name="osName"> The Operating System running on the virtual machine. </param>
/// <param name="osVersion"> The version of Operating System running on the virtual machine. </param>
/// <param name="hyperVGeneration"> Specifies the HyperVGeneration Type associated with a resource. </param>
/// <param name="rdpThumbPrint"> The Remote desktop certificate thumbprint. </param>
/// <param name="vmAgent"> The VM Agent running on the virtual machine. </param>
/// <param name="maintenanceRedeployStatus"> The Maintenance Operation status on the virtual machine. </param>
/// <param name="disks"> The virtual machine disk information. </param>
/// <param name="extensions"> The extensions information. </param>
/// <param name="vmHealth"> The health status for the VM. </param>
/// <param name="bootDiagnostics"> Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. </param>
/// <param name="assignedHost"> Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. </param>
/// <param name="statuses"> The resource status information. </param>
/// <param name="patchStatus"> [Preview Feature] The status of virtual machine patch operations. </param>
/// <param name="isVmInStandbyPool"> [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal VirtualMachineInstanceView(int? platformUpdateDomain, int? platformFaultDomain, string computerName, string osName, string osVersion, HyperVGeneration? hyperVGeneration, string rdpThumbPrint, VirtualMachineAgentInstanceView vmAgent, MaintenanceRedeployStatus maintenanceRedeployStatus, IReadOnlyList<DiskInstanceView> disks, IReadOnlyList<VirtualMachineExtensionInstanceView> extensions, VirtualMachineHealthStatus vmHealth, BootDiagnosticsInstanceView bootDiagnostics, string assignedHost, IReadOnlyList<InstanceViewStatus> statuses, VirtualMachinePatchStatus patchStatus, bool? isVmInStandbyPool, IDictionary<string, BinaryData> serializedAdditionalRawData)
{
PlatformUpdateDomain = platformUpdateDomain;
PlatformFaultDomain = platformFaultDomain;
ComputerName = computerName;
OSName = osName;
OSVersion = osVersion;
HyperVGeneration = hyperVGeneration;
RdpThumbPrint = rdpThumbPrint;
VmAgent = vmAgent;
MaintenanceRedeployStatus = maintenanceRedeployStatus;
Disks = disks;
Extensions = extensions;
VmHealth = vmHealth;
BootDiagnostics = bootDiagnostics;
AssignedHost = assignedHost;
Statuses = statuses;
PatchStatus = patchStatus;
IsVmInStandbyPool = isVmInStandbyPool;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary> Specifies the update domain of the virtual machine. </summary>
public int? PlatformUpdateDomain { get; }
/// <summary> Specifies the fault domain of the virtual machine. </summary>
public int? PlatformFaultDomain { get; }
/// <summary> The computer name assigned to the virtual machine. </summary>
public string ComputerName { get; }
/// <summary> The Operating System running on the virtual machine. </summary>
public string OSName { get; }
/// <summary> The version of Operating System running on the virtual machine. </summary>
public string OSVersion { get; }
/// <summary> Specifies the HyperVGeneration Type associated with a resource. </summary>
public HyperVGeneration? HyperVGeneration { get; }
/// <summary> The Remote desktop certificate thumbprint. </summary>
public string RdpThumbPrint { get; }
/// <summary> The VM Agent running on the virtual machine. </summary>
public VirtualMachineAgentInstanceView VmAgent { get; }
/// <summary> The Maintenance Operation status on the virtual machine. </summary>
public MaintenanceRedeployStatus MaintenanceRedeployStatus { get; }
/// <summary> The virtual machine disk information. </summary>
public IReadOnlyList<DiskInstanceView> Disks { get; }
/// <summary> The extensions information. </summary>
public IReadOnlyList<VirtualMachineExtensionInstanceView> Extensions { get; }
/// <summary> The health status for the VM. </summary>
internal VirtualMachineHealthStatus VmHealth { get; }
/// <summary> The health status information for the VM. </summary>
public InstanceViewStatus VmHealthStatus
{
get => VmHealth?.Status;
}
/// <summary> Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. </summary>
public BootDiagnosticsInstanceView BootDiagnostics { get; }
/// <summary> Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. </summary>
public string AssignedHost { get; }
/// <summary> The resource status information. </summary>
public IReadOnlyList<InstanceViewStatus> Statuses { get; }
/// <summary> [Preview Feature] The status of virtual machine patch operations. </summary>
public VirtualMachinePatchStatus PatchStatus { get; }
/// <summary> [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool. </summary>
public bool? IsVmInStandbyPool { get; }
}
}