/
VirtualMachineInventoryItem.cs
69 lines (63 loc) · 3.85 KB
/
VirtualMachineInventoryItem.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
// 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;
namespace Azure.ResourceManager.ScVmm.Models
{
/// <summary> The Virtual machine inventory item. </summary>
public partial class VirtualMachineInventoryItem : ScVmmInventoryItemProperties
{
/// <summary> Initializes a new instance of <see cref="VirtualMachineInventoryItem"/>. </summary>
public VirtualMachineInventoryItem()
{
IPAddresses = new ChangeTrackingList<string>();
InventoryType = ScVmmInventoryType.VirtualMachine;
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineInventoryItem"/>. </summary>
/// <param name="inventoryType"> They inventory type. </param>
/// <param name="managedResourceId"> Gets the tracked resource id corresponding to the inventory resource. </param>
/// <param name="uuid"> Gets the UUID (which is assigned by VMM) for the inventory item. </param>
/// <param name="inventoryItemName"> Gets the Managed Object name in VMM for the inventory item. </param>
/// <param name="provisioningState"> Provisioning state of the resource. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="osType"> Gets the type of the os. </param>
/// <param name="osName"> Gets os name. </param>
/// <param name="osVersion"> Gets os version. </param>
/// <param name="powerState"> Gets the power state of the virtual machine. </param>
/// <param name="ipAddresses"> Gets or sets the nic ip addresses. </param>
/// <param name="cloud"> Cloud inventory resource details where the VM is present. </param>
/// <param name="biosGuid"> Gets the bios guid. </param>
/// <param name="managedMachineResourceId"> Gets the tracked resource id corresponding to the inventory resource. </param>
internal VirtualMachineInventoryItem(ScVmmInventoryType inventoryType, string managedResourceId, string uuid, string inventoryItemName, ScVmmProvisioningState? provisioningState, IDictionary<string, BinaryData> serializedAdditionalRawData, ScVmmOSType? osType, string osName, string osVersion, string powerState, IList<string> ipAddresses, ScVmmInventoryItemDetails cloud, string biosGuid, ResourceIdentifier managedMachineResourceId) : base(inventoryType, managedResourceId, uuid, inventoryItemName, provisioningState, serializedAdditionalRawData)
{
OSType = osType;
OSName = osName;
OSVersion = osVersion;
PowerState = powerState;
IPAddresses = ipAddresses;
Cloud = cloud;
BiosGuid = biosGuid;
ManagedMachineResourceId = managedMachineResourceId;
InventoryType = inventoryType;
}
/// <summary> Gets the type of the os. </summary>
public ScVmmOSType? OSType { get; }
/// <summary> Gets os name. </summary>
public string OSName { get; }
/// <summary> Gets os version. </summary>
public string OSVersion { get; }
/// <summary> Gets the power state of the virtual machine. </summary>
public string PowerState { get; }
/// <summary> Gets or sets the nic ip addresses. </summary>
public IList<string> IPAddresses { get; }
/// <summary> Cloud inventory resource details where the VM is present. </summary>
public ScVmmInventoryItemDetails Cloud { get; set; }
/// <summary> Gets the bios guid. </summary>
public string BiosGuid { get; }
/// <summary> Gets the tracked resource id corresponding to the inventory resource. </summary>
public ResourceIdentifier ManagedMachineResourceId { get; }
}
}