ArmComputeModelFactory.SharedGalleryDataDiskImage 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 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
- 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
Azure SDK for .NET