Share via


ArmComputeModelFactory.GalleryDataDiskImage Method

Definition

Initializes a new instance of GalleryDataDiskImage.

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

Parameters

sizeInGB
Nullable<Int32>

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

hostCaching
Nullable<HostCaching>

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

gallerySource
GalleryDiskImageSource

The source for the disk image.

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 GalleryDataDiskImage instance for mocking.

Applies to