Class: Azure::IotHub::Mgmt::V2017_01_19::Models::RoutingProperties
- Inherits:
-
Object
- Object
- Azure::IotHub::Mgmt::V2017_01_19::Models::RoutingProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb
Overview
The routing related properties of the IoT hub. See: docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging
Instance Attribute Summary collapse
- #endpoints ⇒ RoutingEndpoints
-
#fallback_route ⇒ FallbackRouteProperties
used as a fall-back route when none of the conditions specified in the ‘routes’ section are met.
-
#routes ⇒ Array<RouteProperties>
rules that the IoT hub uses to route messages to built-in and custom endpoints.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RoutingProperties class as Ruby Hash.
Instance Attribute Details
#endpoints ⇒ RoutingEndpoints
17 18 19 |
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 17 def endpoints @endpoints end |
#fallback_route ⇒ FallbackRouteProperties
used as a fall-back route when none of the conditions specified in the ‘routes’ section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the ‘routes’ section get routed to the built-in eventhub endpoint.
31 32 33 |
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 31 def fallback_route @fallback_route end |
#routes ⇒ Array<RouteProperties>
rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.
23 24 25 |
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 23 def routes @routes end |
Class Method Details
.mapper ⇒ Object
Mapper for RoutingProperties class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RoutingProperties', type: { name: 'Composite', class_name: 'RoutingProperties', model_properties: { endpoints: { client_side_validation: true, required: false, serialized_name: 'endpoints', type: { name: 'Composite', class_name: 'RoutingEndpoints' } }, routes: { client_side_validation: true, required: false, serialized_name: 'routes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'RoutePropertiesElementType', type: { name: 'Composite', class_name: 'RouteProperties' } } } }, fallback_route: { client_side_validation: true, required: false, serialized_name: 'fallbackRoute', type: { name: 'Composite', class_name: 'FallbackRouteProperties' } } } } } end |