Class: Azure::IotHub::Mgmt::V2017_07_01::Models::FallbackRouteProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb

Overview

The properties of the fallback route. IoT Hub uses these properties when it routes messages to the fallback endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#conditionString

fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language

Returns:

  • (String)

    The condition which is evaluated in order to apply the



24
25
26
# File 'lib/2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb', line 24

def condition
  @condition
end

#endpoint_namesArray<String>

that satisfy the condition are routed to. Currently only 1 endpoint is allowed.

Returns:

  • (Array<String>)

    The list of endpoints to which the messages



29
30
31
# File 'lib/2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb', line 29

def endpoint_names
  @endpoint_names
end

#is_enabledBoolean

enabled.

Returns:

  • (Boolean)

    Used to specify whether the fallback route is



33
34
35
# File 'lib/2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb', line 33

def is_enabled
  @is_enabled
end

#sourceString

to. For example, DeviceMessages. Default value: ‘DeviceMessages’ .

Returns:

  • (String)

    The source to which the routing rule is to be applied



18
19
20
# File 'lib/2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb', line 18

def source
  @source
end

Class Method Details

.mapperObject

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



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
# File 'lib/2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FallbackRouteProperties',
    type: {
      name: 'Composite',
      class_name: 'FallbackRouteProperties',
      model_properties: {
        source: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: 'source',
          default_value: 'DeviceMessages',
          type: {
            name: 'String'
          }
        },
        condition: {
          client_side_validation: true,
          required: false,
          serialized_name: 'condition',
          type: {
            name: 'String'
          }
        },
        endpoint_names: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endpointNames',
          constraints: {
            MaxItems: 1,
            MinItems: 1
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        is_enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'isEnabled',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end