ArmDevTestLabsModelFactory.DevTestLabDiskData 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 DevTestLabDiskData.
public static Azure.ResourceManager.DevTestLabs.DevTestLabDiskData DevTestLabDiskData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabStorageType? diskType = default, int? diskSizeGiB = default, Azure.Core.ResourceIdentifier leasedByLabVmId = default, string diskBlobName = default, Uri diskUri = default, string storageAccountId = default, DateTimeOffset? createdOn = default, string hostCaching = default, Azure.Core.ResourceIdentifier managedDiskId = default, string provisioningState = default, Guid? uniqueIdentifier = default);
static member DevTestLabDiskData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabStorageType> * Nullable<int> * Azure.Core.ResourceIdentifier * string * Uri * string * Nullable<DateTimeOffset> * string * Azure.Core.ResourceIdentifier * string * Nullable<Guid> -> Azure.ResourceManager.DevTestLabs.DevTestLabDiskData
Public Shared Function DevTestLabDiskData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional diskType As Nullable(Of DevTestLabStorageType) = Nothing, Optional diskSizeGiB As Nullable(Of Integer) = Nothing, Optional leasedByLabVmId As ResourceIdentifier = Nothing, Optional diskBlobName As String = Nothing, Optional diskUri As Uri = Nothing, Optional storageAccountId As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional hostCaching As String = Nothing, Optional managedDiskId As ResourceIdentifier = Nothing, Optional provisioningState As String = Nothing, Optional uniqueIdentifier As Nullable(Of Guid) = Nothing) As DevTestLabDiskData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- diskType
- Nullable<DevTestLabStorageType>
The storage type for the disk (i.e. Standard, Premium).
- leasedByLabVmId
- ResourceIdentifier
The resource ID of the VM to which this disk is leased.
- diskBlobName
- String
When backed by a blob, the name of the VHD blob without extension.
- diskUri
- Uri
When backed by a blob, the URI of underlying blob.
- storageAccountId
- String
When backed by a blob, the storage account where the blob is.
- createdOn
- Nullable<DateTimeOffset>
The creation date of the disk.
- hostCaching
- String
The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
- managedDiskId
- ResourceIdentifier
When backed by managed disk, this is the ID of the compute disk resource.
- provisioningState
- String
The provisioning status of the resource.
Returns
A new DevTestLabDiskData instance for mocking.
Applies to
Azure SDK for .NET