Microsoft.Azure.Commands.RecoveryServices.Backup.Helpers.PolicyHelpers.GetPSLTRMonthlySchedule C# (CSharp) Method

GetPSLTRMonthlySchedule() private static method

private static GetPSLTRMonthlySchedule ( Microsoft.Azure.Management.RecoveryServices.Backup.Models serviceClientMonthly ) : MonthlyRetentionSchedule
serviceClientMonthly Microsoft.Azure.Management.RecoveryServices.Backup.Models
return MonthlyRetentionSchedule
        private static MonthlyRetentionSchedule GetPSLTRMonthlySchedule(ServiceClientModel.MonthlyRetentionSchedule serviceClientMonthly)
        {
            if (serviceClientMonthly == null)
            {
                return null;
            }

            MonthlyRetentionSchedule psMonthly = new MonthlyRetentionSchedule();

            psMonthly.DurationCountInMonths = GetRetentionDurationInMonths(serviceClientMonthly.RetentionDuration);
            psMonthly.RetentionTimes = ParseDateTimesToUTC(serviceClientMonthly.RetentionTimes);
            psMonthly.RetentionScheduleFormatType = (RetentionScheduleFormat)Enum.Parse(typeof(RetentionScheduleFormat),
                                                                                   serviceClientMonthly.RetentionScheduleFormatType);
            psMonthly.RetentionScheduleDaily = GetPSLTRDailyRetentionFormat(serviceClientMonthly.RetentionScheduleDaily);
            psMonthly.RetentionScheduleWeekly = GetPSLTRWeeklyRetentionFormat(serviceClientMonthly.RetentionScheduleWeekly);

            return psMonthly;
        }