ArmComputeModelFactory.GalleryDataDiskImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Azure SDK for .NET