Class: Azure::IotHub::Mgmt::V2019_07_01_preview::Models::RoutingProperties
- Inherits:
-
Object
- Object
- Azure::IotHub::Mgmt::V2019_07_01_preview::Models::RoutingProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-07-01-preview/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
-
#enrichments ⇒ Array<EnrichmentProperties>
enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints.
-
#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/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 17 def endpoints @endpoints end |
#enrichments ⇒ Array<EnrichmentProperties>
enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. See: aka.ms/iotmsgenrich
36 37 38 |
# File 'lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 36 def enrichments @enrichments 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/2019-07-01-preview/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/2019-07-01-preview/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.
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 |
# File 'lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_properties.rb', line 43 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' } }, enrichments: { client_side_validation: true, required: false, serialized_name: 'enrichments', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EnrichmentPropertiesElementType', type: { name: 'Composite', class_name: 'EnrichmentProperties' } } } } } } } end |