Class: Azure::ARM::IotHub::Models::IotHubCapacity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb

Overview

The properties related to the capacity information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#defaultInteger

Returns The default number of units.

Returns:

  • (Integer)

    The default number of units.



22
23
24
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb', line 22

def default
  @default
end

#maximumInteger

Returns The maximum number of units.

Returns:

  • (Integer)

    The maximum number of units.



19
20
21
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb', line 19

def maximum
  @maximum
end

#minimumInteger

Returns The minimum number of units.

Returns:

  • (Integer)

    The minimum number of units.



16
17
18
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb', line 16

def minimum
  @minimum
end

#scale_typeIotHubScaleType

include: ‘Automatic’, ‘Manual’, ‘None’

Returns:



26
27
28
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb', line 26

def scale_type
  @scale_type
end

Class Method Details

.mapperObject

Mapper for IotHubCapacity 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
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb', line 33

def self.mapper()
  {
    required: false,
    serialized_name: 'IotHubCapacity',
    type: {
      name: 'Composite',
      class_name: 'IotHubCapacity',
      model_properties: {
        minimum: {
          required: false,
          serialized_name: 'minimum',
          constraints: {
            InclusiveMaximum: 1,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        maximum: {
          required: false,
          serialized_name: 'maximum',
          type: {
            name: 'Number'
          }
        },
        default: {
          required: false,
          serialized_name: 'default',
          type: {
            name: 'Number'
          }
        },
        scale_type: {
          required: false,
          serialized_name: 'scaleType',
          type: {
            name: 'Enum',
            module: 'IotHubScaleType'
          }
        }
      }
    }
  }
end