Udostępnij za pośrednictwem


ArmAppServiceModelFactory.SnapshotRestoreRequest Method

Definition

Initializes a new instance of SnapshotRestoreRequest.

public static Azure.ResourceManager.AppService.Models.SnapshotRestoreRequest SnapshotRestoreRequest (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string snapshotTime = default, Azure.ResourceManager.AppService.Models.SnapshotRecoverySource recoverySource = default, bool? canOverwrite = default, bool? recoverConfiguration = default, bool? ignoreConflictingHostNames = default, bool? useDRSecondary = default, string kind = default);
static member SnapshotRestoreRequest : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Azure.ResourceManager.AppService.Models.SnapshotRecoverySource * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string -> Azure.ResourceManager.AppService.Models.SnapshotRestoreRequest
Public Shared Function SnapshotRestoreRequest (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional snapshotTime As String = Nothing, Optional recoverySource As SnapshotRecoverySource = Nothing, Optional canOverwrite As Nullable(Of Boolean) = Nothing, Optional recoverConfiguration As Nullable(Of Boolean) = Nothing, Optional ignoreConflictingHostNames As Nullable(Of Boolean) = Nothing, Optional useDRSecondary As Nullable(Of Boolean) = Nothing, Optional kind As String = Nothing) As SnapshotRestoreRequest

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

snapshotTime
String

Point in time in which the app restore should be done, formatted as a DateTime string.

recoverySource
SnapshotRecoverySource

Optional. Specifies the web app that snapshot contents will be retrieved from. If empty, the targeted web app will be used as the source.

canOverwrite
Nullable<Boolean>

If <code>true</code> the restore operation can overwrite source app; otherwise, <code>false</code>.

recoverConfiguration
Nullable<Boolean>

If true, site configuration, in addition to content, will be reverted.

ignoreConflictingHostNames
Nullable<Boolean>

If true, custom hostname conflicts will be ignored when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled.

useDRSecondary
Nullable<Boolean>

If true, the snapshot is retrieved from DRSecondary endpoint.

kind
String

Kind of resource.

Returns

A new SnapshotRestoreRequest instance for mocking.

Applies to