Partilhar via


ArmComputeModelFactory.SnapshotData Method

Definition

Initializes a new instance of SnapshotData.

public static Azure.ResourceManager.Compute.SnapshotData SnapshotData (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, string managedBy = default, Azure.ResourceManager.Compute.Models.SnapshotSku sku = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, DateTimeOffset? timeCreated = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default, Azure.ResourceManager.Compute.Models.DiskPurchasePlan purchasePlan = default, Azure.ResourceManager.Compute.Models.SupportedCapabilities supportedCapabilities = default, Azure.ResourceManager.Compute.Models.DiskCreationData creationData = default, int? diskSizeGB = default, long? diskSizeBytes = default, Azure.ResourceManager.Compute.Models.DiskState? diskState = default, string uniqueId = default, Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup encryptionSettingsGroup = default, string provisioningState = default, bool? incremental = default, string incrementalSnapshotFamilyId = default, Azure.ResourceManager.Compute.Models.DiskEncryption encryption = default, Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? networkAccessPolicy = default, Azure.Core.ResourceIdentifier diskAccessId = default, Azure.ResourceManager.Compute.Models.DiskSecurityProfile securityProfile = default, bool? supportsHibernation = default, Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default, float? completionPercent = default, Azure.ResourceManager.Compute.Models.CopyCompletionError copyCompletionError = default, Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default);
static member SnapshotData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Azure.ResourceManager.Compute.Models.SnapshotSku * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType> * Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> * Azure.ResourceManager.Compute.Models.DiskPurchasePlan * Azure.ResourceManager.Compute.Models.SupportedCapabilities * Azure.ResourceManager.Compute.Models.DiskCreationData * Nullable<int> * Nullable<int64> * Nullable<Azure.ResourceManager.Compute.Models.DiskState> * string * Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup * string * Nullable<bool> * string * Azure.ResourceManager.Compute.Models.DiskEncryption * Nullable<Azure.ResourceManager.Compute.Models.NetworkAccessPolicy> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.DiskSecurityProfile * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess> * Nullable<single> * Azure.ResourceManager.Compute.Models.CopyCompletionError * Nullable<Azure.ResourceManager.Compute.Models.DataAccessAuthMode> -> Azure.ResourceManager.Compute.SnapshotData
Public Shared Function SnapshotData (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 managedBy As String = Nothing, Optional sku As SnapshotSku = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing, Optional osType As Nullable(Of SupportedOperatingSystemType) = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing, Optional purchasePlan As DiskPurchasePlan = Nothing, Optional supportedCapabilities As SupportedCapabilities = Nothing, Optional creationData As DiskCreationData = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional diskSizeBytes As Nullable(Of Long) = Nothing, Optional diskState As Nullable(Of DiskState) = Nothing, Optional uniqueId As String = Nothing, Optional encryptionSettingsGroup As EncryptionSettingsGroup = Nothing, Optional provisioningState As String = Nothing, Optional incremental As Nullable(Of Boolean) = Nothing, Optional incrementalSnapshotFamilyId As String = Nothing, Optional encryption As DiskEncryption = Nothing, Optional networkAccessPolicy As Nullable(Of NetworkAccessPolicy) = Nothing, Optional diskAccessId As ResourceIdentifier = Nothing, Optional securityProfile As DiskSecurityProfile = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As Nullable(Of DiskPublicNetworkAccess) = Nothing, Optional completionPercent As Nullable(Of Single) = Nothing, Optional copyCompletionError As CopyCompletionError = Nothing, Optional dataAccessAuthMode As Nullable(Of DataAccessAuthMode) = Nothing) As SnapshotData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

managedBy
String

Unused. Always Null.

sku
SnapshotSku

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot.

extendedLocation
ExtendedLocation

The extended location where the snapshot will be created. Extended location cannot be changed.

timeCreated
Nullable<DateTimeOffset>

The time when the snapshot was created.

osType
Nullable<SupportedOperatingSystemType>

The Operating System type.

hyperVGeneration
Nullable<HyperVGeneration>

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

purchasePlan
DiskPurchasePlan

Purchase plan information for the image from which the source disk for the snapshot was originally created.

supportedCapabilities
SupportedCapabilities

List of supported capabilities for the image from which the source disk from the snapshot was originally created.

creationData
DiskCreationData

Disk source information. CreationData information cannot be changed after the disk has been created.

diskSizeGB
Nullable<Int32>

If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

diskSizeBytes
Nullable<Int64>

The size of the disk in bytes. This field is read only.

diskState
Nullable<DiskState>

The state of the snapshot.

uniqueId
String

Unique Guid identifying the resource.

encryptionSettingsGroup
EncryptionSettingsGroup

Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

provisioningState
String

The disk provisioning state.

incremental
Nullable<Boolean>

Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.

incrementalSnapshotFamilyId
String

Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id.

encryption
DiskEncryption

Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

networkAccessPolicy
Nullable<NetworkAccessPolicy>

Policy for accessing the disk via network.

diskAccessId
ResourceIdentifier

ARM id of the DiskAccess resource for using private endpoints on disks.

securityProfile
DiskSecurityProfile

Contains the security related information for the resource.

supportsHibernation
Nullable<Boolean>

Indicates the OS on a snapshot supports hibernation.

publicNetworkAccess
Nullable<DiskPublicNetworkAccess>

Policy for controlling export on the disk.

completionPercent
Nullable<Single>

Percentage complete for the background copy when a resource is created via the CopyStart operation.

copyCompletionError
CopyCompletionError

Indicates the error details if the background copy of a resource created via the CopyStart operation fails.

dataAccessAuthMode
Nullable<DataAccessAuthMode>

Additional authentication requirements when exporting or uploading to a disk or snapshot.

Returns

A new SnapshotData instance for mocking.

Applies to