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

Mostrar archivo Open project: Azure/azure-powershell

Public Properties

Property Type Description
rgx System.Text.RegularExpressions.Regex

Public Methods

Method 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

Method 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 method

public static ConvertCSMRetentionPolicyListToPowershell ( Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy LTRRetentionPolicy ) : IList
LTRRetentionPolicy Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy
return IList

ConvertToCSMRetentionPolicyObject() public static method

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
return Microsoft.Azure.Management.BackupServices.Models.CSMLongTermRetentionPolicy

ConvertToCSMWorkLoadType() public static method

public static ConvertToCSMWorkLoadType ( string workloadType ) : string
workloadType string
return string

ConvertToPowershellScheduleRunDays() public static method

public static ConvertToPowershellScheduleRunDays ( IList weekDaysList ) : List
weekDaysList IList
return List

ConvertToPowershellScheduleRunTimes() public static method

public static ConvertToPowershellScheduleRunTimes ( IList scheduleRunTimeList ) : System.DateTime
scheduleRunTimeList IList
return System.DateTime

ConvertToPowershellWorkloadType() public static method

public static ConvertToPowershellWorkloadType ( string workloadType ) : string
workloadType string
return string

FillCSMBackupSchedule() public static method

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

GetCmdletPolicies() public static method

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

GetCmdletPolicy() public static method

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
return Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupProtectionPolicy

GetScheduleType() public static method

public static GetScheduleType ( string ScheduleRunDays, string parameterSetName, string dailyParameterSet, string weeklyParameterSet ) : string
ScheduleRunDays string
parameterSetName string
dailyParameterSet string
weeklyParameterSet string
return string

ValidateProtectionPolicyName() public static method

public static ValidateProtectionPolicyName ( string policyName ) : void
policyName string
return void

ValidateRetentionPolicy() public static method

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

Property Details

rgx public_oe static_oe property

public static Regex,System.Text.RegularExpressions rgx
return System.Text.RegularExpressions.Regex