# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Automation::Mgmt::V2015_10_31
  module Models
    #
    # The properties of the create Advanced Schedule.
    #
    class AdvancedSchedule

      include MsRestAzure

      # @return [Array<String>] Days of the week that the job should execute
      # on.
      attr_accessor :week_days

      # @return [Array<Integer>] Days of the month that the job should execute
      # on. Must be between 1 and 31.
      attr_accessor :month_days

      # @return [Array<AdvancedScheduleMonthlyOccurrence>] Occurrences of days
      # within a month.
      attr_accessor :monthly_occurrences


      #
      # Mapper for AdvancedSchedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AdvancedSchedule',
          type: {
            name: 'Composite',
            class_name: 'AdvancedSchedule',
            model_properties: {
              week_days: {
                client_side_validation: true,
                required: false,
                serialized_name: 'weekDays',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              month_days: {
                client_side_validation: true,
                required: false,
                serialized_name: 'monthDays',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'NumberElementType',
                      type: {
                        name: 'Number'
                      }
                  }
                }
              },
              monthly_occurrences: {
                client_side_validation: true,
                required: false,
                serialized_name: 'monthlyOccurrences',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'AdvancedScheduleMonthlyOccurrenceElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'AdvancedScheduleMonthlyOccurrence'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
