Udostępnij przez


ArmDataProtectionBackupModelFactory.ItemPathBasedRestoreCriteria Method

Definition

Initializes a new instance of ItemPathBasedRestoreCriteria.

public static Azure.ResourceManager.DataProtectionBackup.Models.ItemPathBasedRestoreCriteria ItemPathBasedRestoreCriteria(string itemPath = default, bool isPathRelativeToBackupItem = false, System.Collections.Generic.IEnumerable<string> subItemPathPrefix = default, string renameTo = default);
static member ItemPathBasedRestoreCriteria : string * bool * seq<string> * string -> Azure.ResourceManager.DataProtectionBackup.Models.ItemPathBasedRestoreCriteria
Public Shared Function ItemPathBasedRestoreCriteria (Optional itemPath As String = Nothing, Optional isPathRelativeToBackupItem As Boolean = false, Optional subItemPathPrefix As IEnumerable(Of String) = Nothing, Optional renameTo As String = Nothing) As ItemPathBasedRestoreCriteria

Parameters

itemPath
String

The path of the item to be restored. It could be the full path of the item or the path relative to the backup item.

isPathRelativeToBackupItem
Boolean

Flag to specify if the path is relative to backup item or full path.

subItemPathPrefix
IEnumerable<String>

The list of prefix strings to be used as filter criteria during restore. These are relative to the item path specified.

renameTo
String

Rename the item to be restored. Restore will rename the itemPath to this new name if the value is specified otherwise the itemPath will be restored as same name.

Returns

A new ItemPathBasedRestoreCriteria instance for mocking.

Applies to