# 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::ContainerService::Mgmt::V2020_12_01
  module Models
    #
    # maintenance configuration.
    #
    class MaintenanceConfiguration < SubResource

      include MsRestAzure

      # @return [SystemData] The system meta data relating to this resource.
      attr_accessor :system_data

      # @return [Array<TimeInWeek>] Weekday time slots allowed to upgrade.
      attr_accessor :time_in_week

      # @return [Array<TimeSpan>] Time slots on which upgrade is not allowed.
      attr_accessor :not_allowed_time


      #
      # Mapper for MaintenanceConfiguration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'MaintenanceConfiguration',
          type: {
            name: 'Composite',
            class_name: 'MaintenanceConfiguration',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              system_data: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'systemData',
                type: {
                  name: 'Composite',
                  class_name: 'SystemData'
                }
              },
              time_in_week: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.timeInWeek',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'TimeInWeekElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'TimeInWeek'
                      }
                  }
                }
              },
              not_allowed_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.notAllowedTime',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'TimeSpanElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'TimeSpan'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
