다음을 통해 공유


ArmHciModelFactory.VirtualHardDiskData Method

Definition

Initializes a new instance of VirtualHardDiskData.

public static Azure.ResourceManager.Hci.VirtualHardDiskData VirtualHardDiskData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Hci.Models.ArcVmExtendedLocation extendedLocation = default, int? blockSizeBytes = default, long? diskSizeGB = default, bool? dynamic = default, int? logicalSectorBytes = default, int? physicalSectorBytes = default, Azure.ResourceManager.Hci.Models.HyperVGeneration? hyperVGeneration = default, Azure.ResourceManager.Hci.Models.DiskFileFormat? diskFileFormat = default, Azure.ResourceManager.Hci.Models.ProvisioningStateEnum? provisioningState = default, Azure.Core.ResourceIdentifier containerId = default, Azure.ResourceManager.Hci.Models.VirtualHardDiskStatus status = default);
static member VirtualHardDiskData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Hci.Models.ArcVmExtendedLocation * Nullable<int> * Nullable<int64> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.Hci.Models.HyperVGeneration> * Nullable<Azure.ResourceManager.Hci.Models.DiskFileFormat> * Nullable<Azure.ResourceManager.Hci.Models.ProvisioningStateEnum> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Hci.Models.VirtualHardDiskStatus -> Azure.ResourceManager.Hci.VirtualHardDiskData
Public Shared Function VirtualHardDiskData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional extendedLocation As ArcVmExtendedLocation = Nothing, Optional blockSizeBytes As Nullable(Of Integer) = Nothing, Optional diskSizeGB As Nullable(Of Long) = Nothing, Optional dynamic As Nullable(Of Boolean) = Nothing, Optional logicalSectorBytes As Nullable(Of Integer) = Nothing, Optional physicalSectorBytes As Nullable(Of Integer) = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing, Optional diskFileFormat As Nullable(Of DiskFileFormat) = Nothing, Optional provisioningState As Nullable(Of ProvisioningStateEnum) = Nothing, Optional containerId As ResourceIdentifier = Nothing, Optional status As VirtualHardDiskStatus = Nothing) As VirtualHardDiskData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

extendedLocation
ArcVmExtendedLocation

The extendedLocation of the resource.

blockSizeBytes
Nullable<Int32>
diskSizeGB
Nullable<Int64>

Size of the disk in GB.

dynamic
Nullable<Boolean>

Boolean for enabling dynamic sizing on the virtual hard disk.

logicalSectorBytes
Nullable<Int32>
physicalSectorBytes
Nullable<Int32>
hyperVGeneration
Nullable<HyperVGeneration>

The hypervisor generation of the Virtual Machine [V1, V2].

diskFileFormat
Nullable<DiskFileFormat>

The format of the actual VHD file [vhd, vhdx].

provisioningState
Nullable<ProvisioningStateEnum>

Provisioning state of the virtual hard disk.

containerId
ResourceIdentifier

Storage ContainerID of the storage container to be used for VHD.

status
VirtualHardDiskStatus

The observed state of virtual hard disks.

Returns

A new VirtualHardDiskData instance for mocking.

Applies to