Udostępnij za pośrednictwem


ArmAppServiceModelFactory.RestoreRequestInfo Method

Definition

Initializes a new instance of RestoreRequestInfo.

public static Azure.ResourceManager.AppService.Models.RestoreRequestInfo RestoreRequestInfo (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Uri storageAccountUri = default, string blobName = default, bool? canOverwrite = default, string siteName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.AppServiceDatabaseBackupSetting> databases = default, bool? ignoreConflictingHostNames = default, bool? ignoreDatabases = default, string appServicePlan = default, Azure.ResourceManager.AppService.Models.BackupRestoreOperationType? operationType = default, bool? adjustConnectionStrings = default, string hostingEnvironment = default, string kind = default);
static member RestoreRequestInfo : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Uri * string * Nullable<bool> * string * seq<Azure.ResourceManager.AppService.Models.AppServiceDatabaseBackupSetting> * Nullable<bool> * Nullable<bool> * string * Nullable<Azure.ResourceManager.AppService.Models.BackupRestoreOperationType> * Nullable<bool> * string * string -> Azure.ResourceManager.AppService.Models.RestoreRequestInfo
Public Shared Function RestoreRequestInfo (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional storageAccountUri As Uri = Nothing, Optional blobName As String = Nothing, Optional canOverwrite As Nullable(Of Boolean) = Nothing, Optional siteName As String = Nothing, Optional databases As IEnumerable(Of AppServiceDatabaseBackupSetting) = Nothing, Optional ignoreConflictingHostNames As Nullable(Of Boolean) = Nothing, Optional ignoreDatabases As Nullable(Of Boolean) = Nothing, Optional appServicePlan As String = Nothing, Optional operationType As Nullable(Of BackupRestoreOperationType) = Nothing, Optional adjustConnectionStrings As Nullable(Of Boolean) = Nothing, Optional hostingEnvironment As String = Nothing, Optional kind As String = Nothing) As RestoreRequestInfo

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

storageAccountUri
Uri

SAS URL to the container.

blobName
String

Name of a blob which contains the backup.

canOverwrite
Nullable<Boolean>

<code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>. <code>true</code> is needed if trying to restore over an existing app.

siteName
String

Name of an app.

databases
IEnumerable<AppServiceDatabaseBackupSetting>

Collection of databases which should be restored. This list has to match the list of databases included in the backup.

ignoreConflictingHostNames
Nullable<Boolean>

Changes a logic when restoring an app with custom domains. <code>true</code> to remove custom domains automatically. If <code>false</code>, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation.

ignoreDatabases
Nullable<Boolean>

Ignore the databases and only restore the site content.

appServicePlan
String

Specify app service plan that will own restored site.

operationType
Nullable<BackupRestoreOperationType>

Operation type.

adjustConnectionStrings
Nullable<Boolean>

<code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.

hostingEnvironment
String

App Service Environment name, if needed (only when restoring an app to an App Service Environment).

kind
String

Kind of resource.

Returns

A new RestoreRequestInfo instance for mocking.

Applies to