-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
StorageMoverAgentData.cs
92 lines (85 loc) · 5.1 KB
/
StorageMoverAgentData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.StorageMover.Models;
namespace Azure.ResourceManager.StorageMover
{
/// <summary>
/// A class representing the StorageMoverAgent data model.
/// The Agent resource.
/// </summary>
public partial class StorageMoverAgentData : ResourceData
{
/// <summary> Initializes a new instance of <see cref="StorageMoverAgentData"/>. </summary>
/// <param name="arcResourceId"> The fully qualified resource ID of the Hybrid Compute resource for the Agent. </param>
/// <param name="arcVmUuid"> The VM UUID of the Hybrid Compute resource for the Agent. </param>
/// <exception cref="ArgumentNullException"> <paramref name="arcResourceId"/> or <paramref name="arcVmUuid"/> is null. </exception>
public StorageMoverAgentData(string arcResourceId, string arcVmUuid)
{
Argument.AssertNotNull(arcResourceId, nameof(arcResourceId));
Argument.AssertNotNull(arcVmUuid, nameof(arcVmUuid));
ArcResourceId = arcResourceId;
ArcVmUuid = arcVmUuid;
}
/// <summary> Initializes a new instance of <see cref="StorageMoverAgentData"/>. </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="description"> A description for the Agent. </param>
/// <param name="agentVersion"> The Agent version. </param>
/// <param name="arcResourceId"> The fully qualified resource ID of the Hybrid Compute resource for the Agent. </param>
/// <param name="arcVmUuid"> The VM UUID of the Hybrid Compute resource for the Agent. </param>
/// <param name="agentStatus"> The Agent status. </param>
/// <param name="lastStatusUpdate"> The last updated time of the Agent status. </param>
/// <param name="localIPAddress"> Local IP address reported by the Agent. </param>
/// <param name="memoryInMB"> Available memory reported by the Agent, in MB. </param>
/// <param name="numberOfCores"> Available compute cores reported by the Agent. </param>
/// <param name="uptimeInSeconds"> Uptime of the Agent in seconds. </param>
/// <param name="errorDetails"></param>
/// <param name="provisioningState"> The provisioning state of this resource. </param>
internal StorageMoverAgentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, StorageMoverAgentStatus? agentStatus, DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, StorageMoverAgentPropertiesErrorDetails errorDetails, StorageMoverProvisioningState? provisioningState) : base(id, name, resourceType, systemData)
{
Description = description;
AgentVersion = agentVersion;
ArcResourceId = arcResourceId;
ArcVmUuid = arcVmUuid;
AgentStatus = agentStatus;
LastStatusUpdate = lastStatusUpdate;
LocalIPAddress = localIPAddress;
MemoryInMB = memoryInMB;
NumberOfCores = numberOfCores;
UptimeInSeconds = uptimeInSeconds;
ErrorDetails = errorDetails;
ProvisioningState = provisioningState;
}
/// <summary> A description for the Agent. </summary>
public string Description { get; set; }
/// <summary> The Agent version. </summary>
public string AgentVersion { get; }
/// <summary> The fully qualified resource ID of the Hybrid Compute resource for the Agent. </summary>
public string ArcResourceId { get; set; }
/// <summary> The VM UUID of the Hybrid Compute resource for the Agent. </summary>
public string ArcVmUuid { get; set; }
/// <summary> The Agent status. </summary>
public StorageMoverAgentStatus? AgentStatus { get; }
/// <summary> The last updated time of the Agent status. </summary>
public DateTimeOffset? LastStatusUpdate { get; }
/// <summary> Local IP address reported by the Agent. </summary>
public string LocalIPAddress { get; }
/// <summary> Available memory reported by the Agent, in MB. </summary>
public long? MemoryInMB { get; }
/// <summary> Available compute cores reported by the Agent. </summary>
public long? NumberOfCores { get; }
/// <summary> Uptime of the Agent in seconds. </summary>
public long? UptimeInSeconds { get; }
/// <summary> Gets the error details. </summary>
public StorageMoverAgentPropertiesErrorDetails ErrorDetails { get; }
/// <summary> The provisioning state of this resource. </summary>
public StorageMoverProvisioningState? ProvisioningState { get; }
}
}