# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
  module Models
    #
    # Yearly retention schedule.
    #
    class YearlyRetentionSchedule

      include MsRestAzure

      # @return [RetentionScheduleFormat] Retention schedule format for the
      # yearly retention policy. Possible values include: 'Invalid', 'Daily',
      # 'Weekly'
      attr_accessor :retention_schedule_format_type

      # @return [Array<MonthOfYear>] List of the months of year for the yearly
      # retention policy.
      attr_accessor :months_of_year

      # @return [DailyRetentionFormat] Daily retention format for the yearly
      # retention policy.
      attr_accessor :retention_schedule_daily

      # @return [WeeklyRetentionFormat] Weekly retention format for the yearly
      # retention policy.
      attr_accessor :retention_schedule_weekly

      # @return [Array<DateTime>] Retention times for the retention policy.
      attr_accessor :retention_times

      # @return [RetentionDuration] Retention duration for the retention
      # policy.
      attr_accessor :retention_duration


      #
      # Mapper for YearlyRetentionSchedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'YearlyRetentionSchedule',
          type: {
            name: 'Composite',
            class_name: 'YearlyRetentionSchedule',
            model_properties: {
              retention_schedule_format_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retentionScheduleFormatType',
                type: {
                  name: 'Enum',
                  module: 'RetentionScheduleFormat'
                }
              },
              months_of_year: {
                client_side_validation: true,
                required: false,
                serialized_name: 'monthsOfYear',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'MonthOfYearElementType',
                      type: {
                        name: 'Enum',
                        module: 'MonthOfYear'
                      }
                  }
                }
              },
              retention_schedule_daily: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retentionScheduleDaily',
                type: {
                  name: 'Composite',
                  class_name: 'DailyRetentionFormat'
                }
              },
              retention_schedule_weekly: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retentionScheduleWeekly',
                type: {
                  name: 'Composite',
                  class_name: 'WeeklyRetentionFormat'
                }
              },
              retention_times: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retentionTimes',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'DateTimeElementType',
                      type: {
                        name: 'DateTime'
                      }
                  }
                }
              },
              retention_duration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retentionDuration',
                type: {
                  name: 'Composite',
                  class_name: 'RetentionDuration'
                }
              }
            }
          }
        }
      end
    end
  end
end
