-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathAzLocalDiskInput.cs
More file actions
50 lines (42 loc) · 1.71 KB
/
AzLocalDiskInput.cs
File metadata and controls
50 lines (42 loc) · 1.71 KB
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20260201
{
public class AzLocalDiskInput
{
public AzLocalDiskInput(
string diskId,
bool isDynamic,
long diskSizeGB,
string diskFileFormat,
bool isOsDisk,
long? diskPhysicalSectorSize)
{
DiskId = diskId;
IsDynamic = isDynamic;
DiskSizeGb = diskSizeGB;
DiskFileFormat = diskFileFormat;
IsOSDisk = isOsDisk;
DiskPhysicalSectorSize =
(diskPhysicalSectorSize == 512 || diskPhysicalSectorSize == 4096)
? diskPhysicalSectorSize
: null;
}
/// <summary>Gets or sets the type of the virtual hard disk, vhd or vhdx.</summary>
public string DiskFileFormat { get; set; }
/// <summary>Gets or sets the disk Id.</summary>
public string DiskId { get; set; }
/// <summary>Gets or sets a value of disk physical sector size.</summary>
public long? DiskPhysicalSectorSize { get; set;}
/// <summary>Gets or sets the disk size in GB.</summary>
public long DiskSizeGb { get; set; }
/// <summary>
/// Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard
/// disk.
/// </summary>
public bool? IsDynamic { get; set; }
/// <summary>Gets or sets a value indicating whether disk is os disk.</summary>
public bool IsOSDisk { get; set; }
}
}