Migrate.Autorest/custom/AzLocalDiskInput.cs

// 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.Api20240901
{
    public class AzLocalDiskInput
    {
        public AzLocalDiskInput(
            string diskId,
            bool isDynamic,
            long diskSizeGB,
            string diskFileFormat,
            bool isOsDisk,
            long? diskPhysicalSectorSize,
            string storageContainerId)
        {
            DiskId = diskId;
            IsDynamic = isDynamic;
            DiskSizeGb = diskSizeGB;
            DiskFileFormat = diskFileFormat;
            IsOSDisk = isOsDisk;
 
            DiskPhysicalSectorSize =
                (diskPhysicalSectorSize == 512 || diskPhysicalSectorSize == 4096)
                ? diskPhysicalSectorSize
                : null;
 
            // TODO(helenafework): Add this code back once backend is fixed to check for empty string
            // StorageContainerId =
            // string.IsNullOrWhiteSpace(storageContainerId)
            // ? null
            // : storageContainerId;
        }
 
        /// <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; }
 
        // /// <summary>Gets or sets the target storage account ARM Id.</summary>
        // public string StorageContainerId { get; set; }
    }
}