ArmComputeModelFactory.GalleryDiskImage Method

Definition

Initializes a new instance of GalleryDiskImage.

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

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.

Returns

A new GalleryDiskImage instance for mocking.

Applies to