C# Class Microsoft.Azure.Commands.AzureBackup.Helpers.ProtectionPolicyHelpers

Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Свойство Type Description
rgx System.Text.RegularExpressions.Regex

Méthodes publiques

Méthode Description
ConvertCSMRetentionPolicyListToPowershell ( Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy LTRRetentionPolicy ) : IList
ConvertToCSMRetentionPolicyObject ( IList retentionPolicyList, Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule backupSchedule ) : Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy
ConvertToCSMWorkLoadType ( string workloadType ) : string
ConvertToPowershellScheduleRunDays ( IList weekDaysList ) : List
ConvertToPowershellScheduleRunTimes ( IList scheduleRunTimeList ) : System.DateTime
ConvertToPowershellWorkloadType ( string workloadType ) : string
FillCSMBackupSchedule ( string scheduleType, System.DateTime scheduleStartTime, string scheduleRunDays ) : Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule
GetCmdletPolicies ( Microsoft.Azure.Commands.AzureBackup.Models vault, IEnumerable sourcePolicyList ) : IEnumerable
GetCmdletPolicy ( Microsoft.Azure.Commands.AzureBackup.Models vault, Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse sourcePolicy ) : AzureRMBackupProtectionPolicy
GetScheduleType ( string ScheduleRunDays, string parameterSetName, string dailyParameterSet, string weeklyParameterSet ) : string
ValidateProtectionPolicyName ( string policyName ) : void
ValidateRetentionPolicy ( IList retentionPolicyList, Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule backupSchedule = null ) : void

Private Methods

Méthode Description
ConvertToCSMDailyRetentionObject ( AzureBackupDailyRetentionPolicy retentionPolicy, IList RetentionTimes ) : Microsoft.Azure.Management.BackupServices.Models.CSMDailyRetentionSchedule
ConvertToCSMDayList ( List DaysOfMonth ) : IList
ConvertToCSMWeeklyRetentionObject ( AzureBackupWeeklyRetentionPolicy retentionPolicy, IList RetentionTimes ) : Microsoft.Azure.Management.BackupServices.Models.CSMWeeklyRetentionSchedule
ConvertToCSMYearlyRetentionObject ( AzureBackupYearlyRetentionPolicy retentionPolicy, IList RetentionTimes ) : Microsoft.Azure.Management.BackupServices.Models.CSMYearlyRetentionSchedule
ConvertToGetCSMMonthlyRetentionObject ( AzureBackupMonthlyRetentionPolicy retentionPolicy, IList RetentionTimes ) : Microsoft.Azure.Management.BackupServices.Models.CSMMonthlyRetentionSchedule
ConvertToPowershellDailyRetentionObject ( Microsoft.Azure.Management.BackupServices.Models.CSMDailyRetentionSchedule DailySchedule ) : AzureBackupDailyRetentionPolicy
ConvertToPowershellDayList ( IList daysOfTheMonthList ) : List
ConvertToPowershellMonthlyRetentionObject ( Microsoft.Azure.Management.BackupServices.Models.CSMMonthlyRetentionSchedule MonthlySchedule ) : AzureBackupMonthlyRetentionPolicy
ConvertToPowershellMonthsOfYearList ( IList MonthsOfYear ) : List
ConvertToPowershellWeekDaysList ( Microsoft.Azure.Management.BackupServices.Models.CSMWeeklyRetentionFormat csmWeekNumberList ) : List
ConvertToPowershellWeekNumberList ( Microsoft.Azure.Management.BackupServices.Models.CSMWeeklyRetentionFormat csmWeekNumberList ) : List
ConvertToPowershellWeeklyRetentionObject ( Microsoft.Azure.Management.BackupServices.Models.CSMWeeklyRetentionSchedule WeeklySchedule ) : AzureBackupWeeklyRetentionPolicy
ConvertToPowershellYearlyRetentionObject ( Microsoft.Azure.Management.BackupServices.Models.CSMYearlyRetentionSchedule YearlySchedule ) : AzureBackupYearlyRetentionPolicy
FillScheduleType ( string scheduleType, string scheduleRunDays ) : string
ParseScheduleRunDays ( string scheduleRunDays ) : IList
ParseScheduleRunTime ( System.DateTime scheduleStartTime ) : System.DateTime
ValidateDailyRetention ( AzureBackupDailyRetentionPolicy dailyRetention ) : void
ValidateForWeeklyBackupSchedule ( RetentionFormat RetentionScheduleType, string backupScheduleType, IList backupScheduleRunDays, List retentionScheduleRunDays ) : void
ValidateForWeeklyBackupScheduleDaysOfWeek ( string backupScheduleType, IList backupScheduleRunDays, List retentionScheduleRunDays ) : void
ValidateMonthlyRetention ( AzureBackupMonthlyRetentionPolicy monthlyRetention ) : void
ValidateRetentionPolicyCount ( int dailyRetentionCount, int weeklyRetentionCount, int monthlyRetentionCount, int yearlyRetentionCount ) : void
ValidateWeeklyRetention ( AzureBackupWeeklyRetentionPolicy weeklyRetention ) : void
ValidateYearlyRetention ( AzureBackupYearlyRetentionPolicy yearlyRetention ) : void

Method Details

ConvertCSMRetentionPolicyListToPowershell() public static méthode

public static ConvertCSMRetentionPolicyListToPowershell ( Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy LTRRetentionPolicy ) : IList
LTRRetentionPolicy Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy
Résultat IList

ConvertToCSMRetentionPolicyObject() public static méthode

public static ConvertToCSMRetentionPolicyObject ( IList retentionPolicyList, Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule backupSchedule ) : Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy
retentionPolicyList IList
backupSchedule Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule
Résultat Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy

ConvertToCSMWorkLoadType() public static méthode

public static ConvertToCSMWorkLoadType ( string workloadType ) : string
workloadType string
Résultat string

ConvertToPowershellScheduleRunDays() public static méthode

public static ConvertToPowershellScheduleRunDays ( IList weekDaysList ) : List
weekDaysList IList
Résultat List

ConvertToPowershellScheduleRunTimes() public static méthode

public static ConvertToPowershellScheduleRunTimes ( IList scheduleRunTimeList ) : System.DateTime
scheduleRunTimeList IList
Résultat System.DateTime

ConvertToPowershellWorkloadType() public static méthode

public static ConvertToPowershellWorkloadType ( string workloadType ) : string
workloadType string
Résultat string

FillCSMBackupSchedule() public static méthode

public static FillCSMBackupSchedule ( string scheduleType, System.DateTime scheduleStartTime, string scheduleRunDays ) : Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule
scheduleType string
scheduleStartTime System.DateTime
scheduleRunDays string
Résultat Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule

GetCmdletPolicies() public static méthode

public static GetCmdletPolicies ( Microsoft.Azure.Commands.AzureBackup.Models vault, IEnumerable sourcePolicyList ) : IEnumerable
vault Microsoft.Azure.Commands.AzureBackup.Models
sourcePolicyList IEnumerable
Résultat IEnumerable

GetCmdletPolicy() public static méthode

public static GetCmdletPolicy ( Microsoft.Azure.Commands.AzureBackup.Models vault, Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse sourcePolicy ) : AzureRMBackupProtectionPolicy
vault Microsoft.Azure.Commands.AzureBackup.Models
sourcePolicy Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse
Résultat Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupProtectionPolicy

GetScheduleType() public static méthode

public static GetScheduleType ( string ScheduleRunDays, string parameterSetName, string dailyParameterSet, string weeklyParameterSet ) : string
ScheduleRunDays string
parameterSetName string
dailyParameterSet string
weeklyParameterSet string
Résultat string

ValidateProtectionPolicyName() public static méthode

public static ValidateProtectionPolicyName ( string policyName ) : void
policyName string
Résultat void

ValidateRetentionPolicy() public static méthode

public static ValidateRetentionPolicy ( IList retentionPolicyList, Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule backupSchedule = null ) : void
retentionPolicyList IList
backupSchedule Microsoft.Azure.Management.BackupServices.Models.CSMBackupSchedule
Résultat void

Property Details

rgx public_oe static_oe property

public static Regex,System.Text.RegularExpressions rgx
Résultat System.Text.RegularExpressions.Regex