Sha256: afceb4cf01d4afe4da1f1ef81f662db8d3e172e9a2e68d3859cb78a18c9bd850

Contents?: true

Size: 1.87 KB

Versions: 2

Compression:

Stored size: 1.87 KB

Contents

# 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::Redis::Mgmt::V2017_02_01
  module Models
    #
    # Patch schedule entry for a Premium Redis Cache.
    #
    class ScheduleEntry

      include MsRestAzure

      # @return [DayOfWeek] Day of the week when a cache can be patched.
      # Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
      # 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
      attr_accessor :day_of_week

      # @return [Integer] Start hour after which cache patching can start.
      attr_accessor :start_hour_utc

      # @return [Duration] ISO8601 timespan specifying how much time cache
      # patching can take.
      attr_accessor :maintenance_window


      #
      # Mapper for ScheduleEntry class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'ScheduleEntry',
          type: {
            name: 'Composite',
            class_name: 'ScheduleEntry',
            model_properties: {
              day_of_week: {
                required: true,
                serialized_name: 'dayOfWeek',
                type: {
                  name: 'Enum',
                  module: 'DayOfWeek'
                }
              },
              start_hour_utc: {
                required: true,
                serialized_name: 'startHourUtc',
                type: {
                  name: 'Number'
                }
              },
              maintenance_window: {
                required: false,
                serialized_name: 'maintenanceWindow',
                type: {
                  name: 'TimeSpan'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_redis-0.15.1 lib/2017-02-01/generated/azure_mgmt_redis/models/schedule_entry.rb
azure_mgmt_redis-0.15.0 lib/2017-02-01/generated/azure_mgmt_redis/models/schedule_entry.rb