Sdílet prostřednictvím


ArmAppServiceModelFactory.WebAppBackupSchedule Method

Definition

Initializes a new instance of WebAppBackupSchedule.

public static Azure.ResourceManager.AppService.Models.WebAppBackupSchedule WebAppBackupSchedule (int frequencyInterval = 0, Azure.ResourceManager.AppService.Models.BackupFrequencyUnit frequencyUnit = Azure.ResourceManager.AppService.Models.BackupFrequencyUnit.Day, bool shouldKeepAtLeastOneBackup = false, int retentionPeriodInDays = 0, DateTimeOffset? startOn = default, DateTimeOffset? lastExecutedOn = default);
static member WebAppBackupSchedule : int * Azure.ResourceManager.AppService.Models.BackupFrequencyUnit * bool * int * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.ResourceManager.AppService.Models.WebAppBackupSchedule
Public Shared Function WebAppBackupSchedule (Optional frequencyInterval As Integer = 0, Optional frequencyUnit As BackupFrequencyUnit = Azure.ResourceManager.AppService.Models.BackupFrequencyUnit.Day, Optional shouldKeepAtLeastOneBackup As Boolean = false, Optional retentionPeriodInDays As Integer = 0, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastExecutedOn As Nullable(Of DateTimeOffset) = Nothing) As WebAppBackupSchedule

Parameters

frequencyInterval
Int32

How often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day).

frequencyUnit
BackupFrequencyUnit

The unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7).

shouldKeepAtLeastOneBackup
Boolean

True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise.

retentionPeriodInDays
Int32

After how many days backups should be deleted.

startOn
Nullable<DateTimeOffset>

When the schedule should start working.

lastExecutedOn
Nullable<DateTimeOffset>

Last time when this schedule was triggered.

Returns

A new WebAppBackupSchedule instance for mocking.

Applies to