Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::BandwidthSchedule

Inherits:
ARMBaseModel
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb

Overview

The bandwidth schedule details.

Instance Attribute Summary collapse

Attributes inherited from ARMBaseModel

#id, #name, #type

Class Method Summary collapse

Instance Attribute Details

#daysArray<DayOfWeek>

applicable.

Returns:

  • (Array<DayOfWeek>)

    The days of the week when this schedule is



26
27
28
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb', line 26

def days
  @days
end

#rate_in_mbpsInteger

Returns The bandwidth rate in Mbps.

Returns:

  • (Integer)

    The bandwidth rate in Mbps.



22
23
24
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb', line 22

def rate_in_mbps
  @rate_in_mbps
end

#startString

Returns The start time of the schedule in UTC.

Returns:

  • (String)

    The start time of the schedule in UTC.



16
17
18
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb', line 16

def start
  @start
end

#stopString

Returns The stop time of the schedule in UTC.

Returns:

  • (String)

    The stop time of the schedule in UTC.



19
20
21
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb', line 19

def stop
  @stop
end

Class Method Details

.mapperObject

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



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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BandwidthSchedule',
    type: {
      name: 'Composite',
      class_name: 'BandwidthSchedule',
      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'
          }
        },
        start: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.start',
          type: {
            name: 'String'
          }
        },
        stop: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.stop',
          type: {
            name: 'String'
          }
        },
        rate_in_mbps: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.rateInMbps',
          type: {
            name: 'Number'
          }
        },
        days: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.days',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DayOfWeekElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end