text: /*
   * 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.
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  /**
   * Patch schedule entry for a Premium Redis Cache.
   *
   */
  class ScheduleEntry {
    /**
     * Create a ScheduleEntry.
     * @property {string} dayOfWeek Day of the week when a cache can be patched.
     * Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
     * 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
     * @property {number} startHourUtc Start hour after which cache patching can
     * start.
     * @property {moment.duration} [maintenanceWindow] ISO8601 timespan
     * specifying how much time cache patching can take.
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of ScheduleEntry
     *
     * @returns {object} metadata of ScheduleEntry
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'ScheduleEntry',
        type: {
          name: 'Composite',
          className: 'ScheduleEntry',
          modelProperties: {
            dayOfWeek: {
              required: true,
              serializedName: 'dayOfWeek',
              type: {
                name: 'Enum',
                allowedValues: [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend' ]
              }
            },
            startHourUtc: {
              required: true,
              serializedName: 'startHourUtc',
              type: {
                name: 'Number'
              }
            },
            maintenanceWindow: {
              required: false,
              serializedName: 'maintenanceWindow',
              type: {
                name: 'TimeSpan'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = ScheduleEntry;
  