azure_mgmt_iot_hub 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-03/generated/azure_mgmt_iot_hub.rb +67 -0
  3. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_client.rb +129 -0
  4. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3048 -0
  5. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/access_rights.rb +1 -1
  6. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/capabilities.rb +1 -1
  7. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +1 -1
  8. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/error_details.rb +1 -1
  9. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +1 -1
  10. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +1 -1
  11. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +100 -0
  12. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/export_devices_request.rb +1 -1
  13. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/feedback_properties.rb +1 -1
  14. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/import_devices_request.rb +1 -1
  15. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +1 -1
  16. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_description.rb +1 -1
  17. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +1 -1
  18. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +1 -1
  19. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +1 -1
  20. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +210 -0
  21. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +1 -1
  22. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +1 -1
  23. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +1 -1
  24. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku.rb +1 -1
  25. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +1 -1
  26. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +1 -1
  27. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +1 -1
  28. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +1 -1
  29. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +1 -1
  30. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/ip_filter_rule.rb +1 -1
  31. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_response.rb +1 -1
  32. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_response_list_result.rb +1 -1
  33. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_status.rb +1 -1
  34. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_type.rb +1 -1
  35. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +73 -0
  36. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/operation_inputs.rb +1 -1
  37. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +1 -1
  38. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +53 -0
  39. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/registry_statistics.rb +1 -1
  40. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/resource.rb +1 -1
  41. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +1 -1
  42. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +1 -1
  43. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +1 -1
  44. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
  45. data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/version.rb +2 -2
  46. data/lib/2017-01-19/generated/azure_mgmt_iot_hub.rb +75 -0
  47. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_client.rb +129 -0
  48. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3048 -0
  49. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
  50. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
  51. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +73 -0
  52. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/error_details.rb +78 -0
  53. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +71 -0
  54. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +96 -0
  55. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +100 -0
  56. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +56 -0
  57. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +95 -0
  58. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +73 -0
  59. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +55 -0
  60. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +84 -0
  61. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +138 -0
  62. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +96 -0
  63. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +69 -0
  64. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
  65. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +221 -0
  66. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +67 -0
  67. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +97 -0
  68. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
  69. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
  70. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +67 -0
  71. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +97 -0
  72. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +69 -0
  73. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
  74. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
  75. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +67 -0
  76. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb +128 -0
  77. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +95 -0
  78. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
  79. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
  80. data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +1 -1
  81. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +44 -0
  82. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +18 -0
  83. data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +1 -1
  84. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +69 -0
  85. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/resource.rb +97 -0
  86. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/route_properties.rb +109 -0
  87. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +97 -0
  88. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +82 -0
  89. data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/routing_properties.rb +1 -1
  90. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +85 -0
  91. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +85 -0
  92. data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/routing_source.rb +1 -1
  93. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +84 -0
  94. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +99 -0
  95. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +69 -0
  96. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
  97. data/lib/{generated/azure_mgmt_iot_hub/module_definition.rb → 2017-01-19/generated/azure_mgmt_iot_hub/version.rb} +3 -3
  98. data/lib/2017-07-01/generated/azure_mgmt_iot_hub.rb +88 -0
  99. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/certificates.rb +9 -9
  100. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/iot_hub_client.rb +3 -3
  101. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/iot_hub_resource.rb +34 -34
  102. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
  103. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
  104. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_body_description.rb +1 -1
  105. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_description.rb +1 -1
  106. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_list_description.rb +1 -1
  107. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_properties.rb +1 -1
  108. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb +1 -1
  109. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_verification_description.rb +1 -1
  110. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb +1 -1
  111. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +73 -0
  112. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/error_details.rb +78 -0
  113. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +71 -0
  114. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +96 -0
  115. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/event_hub_properties.rb +1 -1
  116. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +56 -0
  117. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/fallback_route_properties.rb +1 -1
  118. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +73 -0
  119. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +55 -0
  120. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +84 -0
  121. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +138 -0
  122. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +96 -0
  123. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +69 -0
  124. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
  125. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/iot_hub_properties.rb +1 -1
  126. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +67 -0
  127. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +97 -0
  128. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
  129. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
  130. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +67 -0
  131. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +97 -0
  132. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +69 -0
  133. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
  134. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
  135. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +67 -0
  136. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_response.rb +128 -0
  137. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +95 -0
  138. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
  139. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
  140. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +73 -0
  141. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/operation.rb +1 -1
  142. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/operation_display.rb +1 -1
  143. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +44 -0
  144. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/operation_list_result.rb +1 -1
  145. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +18 -0
  146. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +55 -0
  147. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +69 -0
  148. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/resource.rb +97 -0
  149. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/route_properties.rb +1 -1
  150. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_endpoints.rb +1 -1
  151. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +1 -1
  152. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/routing_properties.rb +83 -0
  153. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +1 -1
  154. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +1 -1
  155. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/routing_source.rb +18 -0
  156. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +1 -1
  157. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +84 -0
  158. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +99 -0
  159. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +69 -0
  160. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
  161. data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/operations.rb +3 -3
  162. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/version.rb +8 -0
  163. data/lib/azure_mgmt_iot_hub.rb +4 -1
  164. data/lib/module_definition.rb +8 -0
  165. data/lib/profiles/common/configurable.rb +73 -0
  166. data/lib/profiles/common/default.rb +68 -0
  167. data/lib/profiles/latest/iothub_latest_profile_client.rb +33 -0
  168. data/lib/profiles/latest/iothub_module_definition.rb +9 -0
  169. data/lib/profiles/latest/modules/iothub_profile_module.rb +278 -0
  170. data/lib/version.rb +7 -0
  171. metadata +170 -67
  172. data/lib/generated/azure_mgmt_iot_hub.rb +0 -88
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ module Models
8
+ #
9
+ # Use to provide parameters when requesting an export of all devices in the
10
+ # IoT hub.
11
+ #
12
+ class ExportDevicesRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The export blob container URI.
17
+ attr_accessor :export_blob_container_uri
18
+
19
+ # @return [Boolean] The value indicating whether keys should be excluded
20
+ # during export.
21
+ attr_accessor :exclude_keys
22
+
23
+
24
+ #
25
+ # Mapper for ExportDevicesRequest class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'ExportDevicesRequest',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ExportDevicesRequest',
35
+ model_properties: {
36
+ export_blob_container_uri: {
37
+ required: true,
38
+ serialized_name: 'ExportBlobContainerUri',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ exclude_keys: {
44
+ required: true,
45
+ serialized_name: 'ExcludeKeys',
46
+ type: {
47
+ name: 'Boolean'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,95 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ module Models
8
+ #
9
+ # The properties related to the fallback route based on which the IoT hub
10
+ # routes messages to the fallback endpoint.
11
+ #
12
+ class FallbackRouteProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The source to which the routing rule is to be applied
17
+ # to. e.g. DeviceMessages. Default value: 'DeviceMessages' .
18
+ attr_accessor :source
19
+
20
+ # @return [String] The condition which is evaluated in order to apply the
21
+ # fallback route. If the condition is not provided it will evaluate to
22
+ # true by default. For grammar, See:
23
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
24
+ attr_accessor :condition
25
+
26
+ # @return [Array<String>] The list of endpoints to which the messages
27
+ # that satisfy the condition are routed to. Currently only 1 endpoint is
28
+ # allowed.
29
+ attr_accessor :endpoint_names
30
+
31
+ # @return [Boolean] Used to specify whether the fallback route is enabled
32
+ # or not.
33
+ attr_accessor :is_enabled
34
+
35
+
36
+ #
37
+ # Mapper for FallbackRouteProperties class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'FallbackRouteProperties',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'FallbackRouteProperties',
47
+ model_properties: {
48
+ source: {
49
+ required: true,
50
+ is_constant: true,
51
+ serialized_name: 'source',
52
+ default_value: 'DeviceMessages',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ condition: {
58
+ required: false,
59
+ serialized_name: 'condition',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ endpoint_names: {
65
+ required: true,
66
+ serialized_name: 'endpointNames',
67
+ constraints: {
68
+ MaxItems: 1,
69
+ MinItems: 1
70
+ },
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ required: false,
75
+ serialized_name: 'StringElementType',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ is_enabled: {
83
+ required: true,
84
+ serialized_name: 'isEnabled',
85
+ type: {
86
+ name: 'Boolean'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ module Models
8
+ #
9
+ # The properties of the feedback queue for cloud-to-device messages.
10
+ #
11
+ class FeedbackProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Duration] The lock duration for the feedback queue. See:
16
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
17
+ attr_accessor :lock_duration_as_iso8601
18
+
19
+ # @return [Duration] The period of time for which a message is available
20
+ # to consume before it is expired by the IoT hub. See:
21
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
22
+ attr_accessor :ttl_as_iso8601
23
+
24
+ # @return [Integer] The number of times the IoT hub attempts to deliver a
25
+ # message on the feedback queue. See:
26
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
27
+ attr_accessor :max_delivery_count
28
+
29
+
30
+ #
31
+ # Mapper for FeedbackProperties class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'FeedbackProperties',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'FeedbackProperties',
41
+ model_properties: {
42
+ lock_duration_as_iso8601: {
43
+ required: false,
44
+ serialized_name: 'lockDurationAsIso8601',
45
+ type: {
46
+ name: 'TimeSpan'
47
+ }
48
+ },
49
+ ttl_as_iso8601: {
50
+ required: false,
51
+ serialized_name: 'ttlAsIso8601',
52
+ type: {
53
+ name: 'TimeSpan'
54
+ }
55
+ },
56
+ max_delivery_count: {
57
+ required: false,
58
+ serialized_name: 'maxDeliveryCount',
59
+ constraints: {
60
+ InclusiveMaximum: 100,
61
+ InclusiveMinimum: 1
62
+ },
63
+ type: {
64
+ name: 'Number'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ module Models
8
+ #
9
+ # Use to provide parameters when requesting an import of all devices in the
10
+ # hub.
11
+ #
12
+ class ImportDevicesRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The input blob container URI.
17
+ attr_accessor :input_blob_container_uri
18
+
19
+ # @return [String] The output blob container URI.
20
+ attr_accessor :output_blob_container_uri
21
+
22
+
23
+ #
24
+ # Mapper for ImportDevicesRequest class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'ImportDevicesRequest',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ImportDevicesRequest',
34
+ model_properties: {
35
+ input_blob_container_uri: {
36
+ required: true,
37
+ serialized_name: 'InputBlobContainerUri',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ output_blob_container_uri: {
43
+ required: true,
44
+ serialized_name: 'OutputBlobContainerUri',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,84 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ module Models
8
+ #
9
+ # IoT Hub capacity information.
10
+ #
11
+ class IotHubCapacity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The minimum number of units.
16
+ attr_accessor :minimum
17
+
18
+ # @return [Integer] The maximum number of units.
19
+ attr_accessor :maximum
20
+
21
+ # @return [Integer] The default number of units.
22
+ attr_accessor :default
23
+
24
+ # @return [IotHubScaleType] The type of the scaling enabled. Possible
25
+ # values include: 'Automatic', 'Manual', 'None'
26
+ attr_accessor :scale_type
27
+
28
+
29
+ #
30
+ # Mapper for IotHubCapacity class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'IotHubCapacity',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'IotHubCapacity',
40
+ model_properties: {
41
+ minimum: {
42
+ required: false,
43
+ read_only: true,
44
+ serialized_name: 'minimum',
45
+ constraints: {
46
+ InclusiveMaximum: 1,
47
+ InclusiveMinimum: 1
48
+ },
49
+ type: {
50
+ name: 'Number'
51
+ }
52
+ },
53
+ maximum: {
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'maximum',
57
+ type: {
58
+ name: 'Number'
59
+ }
60
+ },
61
+ default: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'default',
65
+ type: {
66
+ name: 'Number'
67
+ }
68
+ },
69
+ scale_type: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'scaleType',
73
+ type: {
74
+ name: 'Enum',
75
+ module: 'IotHubScaleType'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,138 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ module Models
8
+ #
9
+ # The description of the IoT hub.
10
+ #
11
+ class IotHubDescription < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The subscription identifier.
16
+ attr_accessor :subscriptionid
17
+
18
+ # @return [String] The name of the resource group that contains the IoT
19
+ # hub. A resource group name uniquely identifies the resource group
20
+ # within the subscription.
21
+ attr_accessor :resourcegroup
22
+
23
+ # @return [String] The Etag field is *not* required. If it is provided in
24
+ # the response body, it must also be provided as a header per the normal
25
+ # ETag convention.
26
+ attr_accessor :etag
27
+
28
+ # @return [IotHubProperties]
29
+ attr_accessor :properties
30
+
31
+ # @return [IotHubSkuInfo]
32
+ attr_accessor :sku
33
+
34
+
35
+ #
36
+ # Mapper for IotHubDescription class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'IotHubDescription',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'IotHubDescription',
46
+ model_properties: {
47
+ id: {
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ name: {
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'name',
59
+ constraints: {
60
+ Pattern: '^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$'
61
+ },
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ type: {
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'type',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ location: {
75
+ required: true,
76
+ serialized_name: 'location',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ tags: {
82
+ required: false,
83
+ serialized_name: 'tags',
84
+ type: {
85
+ name: 'Dictionary',
86
+ value: {
87
+ required: false,
88
+ serialized_name: 'StringElementType',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ },
95
+ subscriptionid: {
96
+ required: true,
97
+ serialized_name: 'subscriptionid',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ resourcegroup: {
103
+ required: true,
104
+ serialized_name: 'resourcegroup',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ etag: {
110
+ required: false,
111
+ serialized_name: 'etag',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ },
116
+ properties: {
117
+ required: false,
118
+ serialized_name: 'properties',
119
+ type: {
120
+ name: 'Composite',
121
+ class_name: 'IotHubProperties'
122
+ }
123
+ },
124
+ sku: {
125
+ required: true,
126
+ serialized_name: 'sku',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'IotHubSkuInfo'
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ end
136
+ end
137
+ end
138
+ end