ArmDataProtectionBackupModelFactory.ScheduleBasedBackupCriteria Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Schedule based backup criteria.
public static Azure.ResourceManager.DataProtectionBackup.Models.ScheduleBasedBackupCriteria ScheduleBasedBackupCriteria(System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.BackupAbsoluteMarker> absoluteCriteria = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupDay> daysOfMonth = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupDayOfWeek> daysOfWeek = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupMonth> monthsOfYear = default, System.Collections.Generic.IEnumerable<DateTimeOffset> scheduleTimes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupWeekNumber> weeksOfMonth = default);
static member ScheduleBasedBackupCriteria : seq<Azure.ResourceManager.DataProtectionBackup.Models.BackupAbsoluteMarker> * seq<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupDay> * seq<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupDayOfWeek> * seq<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupMonth> * seq<DateTimeOffset> * seq<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupWeekNumber> -> Azure.ResourceManager.DataProtectionBackup.Models.ScheduleBasedBackupCriteria
Public Shared Function ScheduleBasedBackupCriteria (Optional absoluteCriteria As IEnumerable(Of BackupAbsoluteMarker) = Nothing, Optional daysOfMonth As IEnumerable(Of DataProtectionBackupDay) = Nothing, Optional daysOfWeek As IEnumerable(Of DataProtectionBackupDayOfWeek) = Nothing, Optional monthsOfYear As IEnumerable(Of DataProtectionBackupMonth) = Nothing, Optional scheduleTimes As IEnumerable(Of DateTimeOffset) = Nothing, Optional weeksOfMonth As IEnumerable(Of DataProtectionBackupWeekNumber) = Nothing) As ScheduleBasedBackupCriteria
Parameters
- absoluteCriteria
- IEnumerable<BackupAbsoluteMarker>
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
- daysOfMonth
- IEnumerable<DataProtectionBackupDay>
This is day of the month from 1 to 28 other wise last of month.
- daysOfWeek
- IEnumerable<DataProtectionBackupDayOfWeek>
It should be Sunday/Monday/T..../Saturday.
- monthsOfYear
- IEnumerable<DataProtectionBackupMonth>
It should be January/February/....../December.
- scheduleTimes
- IEnumerable<DateTimeOffset>
List of schedule times for backup.
- weeksOfMonth
- IEnumerable<DataProtectionBackupWeekNumber>
It should be First/Second/Third/Fourth/Last.
Returns
A new ScheduleBasedBackupCriteria instance for mocking.