Class: Azure::IotHub::Mgmt::V2017_07_01::Models::FallbackRouteProperties
- Inherits:
-
Object
- Object
- Azure::IotHub::Mgmt::V2017_07_01::Models::FallbackRouteProperties
- 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
-
#condition ⇒ String
fallback route.
-
#endpoint_names ⇒ Array<String>
that satisfy the condition are routed to.
-
#is_enabled ⇒ Boolean
enabled.
-
#source ⇒ String
to.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FallbackRouteProperties class as Ruby Hash.
Instance Attribute Details
#condition ⇒ String
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
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_names ⇒ Array<String>
that satisfy the condition are routed to. Currently only 1 endpoint is allowed.
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_enabled ⇒ Boolean
enabled.
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 |
#source ⇒ String
to. For example, DeviceMessages. Default value: ‘DeviceMessages’ .
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
.mapper ⇒ Object
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 |