Class: Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::AutoscaleSchedule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb

Overview

Parameters for a schedule-based autoscale rule, consisting of an array of days + a time and capacity

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#daysArray<DaysOfWeek>

autoscale rule

Returns:

  • (Array<DaysOfWeek>)

    Days of the week for a schedule-based



18
19
20
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb', line 18

def days
  @days
end

#time_and_capacityAutoscaleTimeAndCapacity

schedule-based autoscale rule

Returns:



22
23
24
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb', line 22

def time_and_capacity
  @time_and_capacity
end

Class Method Details

.mapperObject

Mapper for AutoscaleSchedule class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoscaleSchedule',
    type: {
      name: 'Composite',
      class_name: 'AutoscaleSchedule',
      model_properties: {
        days: {
          client_side_validation: true,
          required: false,
          serialized_name: 'days',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DaysOfWeekElementType',
                type: {
                  name: 'Enum',
                  module: 'DaysOfWeek'
                }
            }
          }
        },
        time_and_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeAndCapacity',
          type: {
            name: 'Composite',
            class_name: 'AutoscaleTimeAndCapacity'
          }
        }
      }
    }
  }
end