Share via


ArmComputeModelFactory.SharedGalleryDataDiskImage Method

Definition

Initializes a new instance of SharedGalleryDataDiskImage.

public static Azure.ResourceManager.Compute.Models.SharedGalleryDataDiskImage SharedGalleryDataDiskImage (int? diskSizeGB = default, Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default, int lun = 0);
static member SharedGalleryDataDiskImage : Nullable<int> * Nullable<Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching> * int -> Azure.ResourceManager.Compute.Models.SharedGalleryDataDiskImage
Public Shared Function SharedGalleryDataDiskImage (Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional hostCaching As Nullable(Of SharedGalleryHostCaching) = Nothing, Optional lun As Integer = 0) As SharedGalleryDataDiskImage

Parameters

diskSizeGB
Nullable<Int32>

This property indicates the size of the VHD to be created.

hostCaching
Nullable<SharedGalleryHostCaching>

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.

lun
Int32

This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.

Returns

A new SharedGalleryDataDiskImage instance for mocking.

Applies to