共用方式為


ArmDataProtectionBackupModelFactory.ItemLevelRestoreTargetInfo Method

Definition

Initializes a new instance of ItemLevelRestoreTargetInfo.

public static Azure.ResourceManager.DataProtectionBackup.Models.ItemLevelRestoreTargetInfo ItemLevelRestoreTargetInfo (Azure.ResourceManager.DataProtectionBackup.Models.RecoverySetting recoverySetting = default, Azure.Core.AzureLocation? restoreLocation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.ItemLevelRestoreCriteria> restoreCriteria = default, Azure.ResourceManager.DataProtectionBackup.Models.DataSourceInfo datasourceInfo = default, Azure.ResourceManager.DataProtectionBackup.Models.DataSourceSetInfo datasourceSetInfo = default, Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupAuthCredentials datasourceAuthCredentials = default);
static member ItemLevelRestoreTargetInfo : Azure.ResourceManager.DataProtectionBackup.Models.RecoverySetting * Nullable<Azure.Core.AzureLocation> * seq<Azure.ResourceManager.DataProtectionBackup.Models.ItemLevelRestoreCriteria> * Azure.ResourceManager.DataProtectionBackup.Models.DataSourceInfo * Azure.ResourceManager.DataProtectionBackup.Models.DataSourceSetInfo * Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupAuthCredentials -> Azure.ResourceManager.DataProtectionBackup.Models.ItemLevelRestoreTargetInfo
Public Shared Function ItemLevelRestoreTargetInfo (Optional recoverySetting As RecoverySetting = Nothing, Optional restoreLocation As Nullable(Of AzureLocation) = Nothing, Optional restoreCriteria As IEnumerable(Of ItemLevelRestoreCriteria) = Nothing, Optional datasourceInfo As DataSourceInfo = Nothing, Optional datasourceSetInfo As DataSourceSetInfo = Nothing, Optional datasourceAuthCredentials As DataProtectionBackupAuthCredentials = Nothing) As ItemLevelRestoreTargetInfo

Parameters

recoverySetting
RecoverySetting

Recovery Option.

restoreLocation
Nullable<AzureLocation>

Target Restore region.

restoreCriteria
IEnumerable<ItemLevelRestoreCriteria>

Restore Criteria Please note ItemLevelRestoreCriteria is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ItemPathBasedRestoreCriteria, KubernetesClusterRestoreCriteria, KubernetesClusterVaultTierRestoreCriteria, KubernetesPVRestoreCriteria, KubernetesStorageClassRestoreCriteria and RangeBasedItemLevelRestoreCriteria.

datasourceInfo
DataSourceInfo

Information of target DS.

datasourceSetInfo
DataSourceSetInfo

Information of target DS Set.

datasourceAuthCredentials
DataProtectionBackupAuthCredentials

Credentials to use to authenticate with data source provider. Please note DataProtectionBackupAuthCredentials is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include SecretStoreBasedAuthCredentials.

Returns

A new ItemLevelRestoreTargetInfo instance for mocking.

Applies to