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,29 @@
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
+ # Defines values for AccessRights
10
+ #
11
+ module AccessRights
12
+ RegistryRead = "RegistryRead"
13
+ RegistryWrite = "RegistryWrite"
14
+ ServiceConnect = "ServiceConnect"
15
+ DeviceConnect = "DeviceConnect"
16
+ RegistryReadRegistryWrite = "RegistryRead, RegistryWrite"
17
+ RegistryReadServiceConnect = "RegistryRead, ServiceConnect"
18
+ RegistryReadDeviceConnect = "RegistryRead, DeviceConnect"
19
+ RegistryWriteServiceConnect = "RegistryWrite, ServiceConnect"
20
+ RegistryWriteDeviceConnect = "RegistryWrite, DeviceConnect"
21
+ ServiceConnectDeviceConnect = "ServiceConnect, DeviceConnect"
22
+ RegistryReadRegistryWriteServiceConnect = "RegistryRead, RegistryWrite, ServiceConnect"
23
+ RegistryReadRegistryWriteDeviceConnect = "RegistryRead, RegistryWrite, DeviceConnect"
24
+ RegistryReadServiceConnectDeviceConnect = "RegistryRead, ServiceConnect, DeviceConnect"
25
+ RegistryWriteServiceConnectDeviceConnect = "RegistryWrite, ServiceConnect, DeviceConnect"
26
+ RegistryReadRegistryWriteServiceConnectDeviceConnect = "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,16 @@
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
+ # Defines values for Capabilities
10
+ #
11
+ module Capabilities
12
+ None = "None"
13
+ DeviceManagement = "DeviceManagement"
14
+ end
15
+ end
16
+ 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 IoT hub cloud-to-device messaging properties.
10
+ #
11
+ class CloudToDeviceProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The max delivery count for cloud-to-device messages
16
+ # in the device queue. See:
17
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
18
+ attr_accessor :max_delivery_count
19
+
20
+ # @return [Duration] The default time to live for cloud-to-device
21
+ # messages in the device queue. See:
22
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
23
+ attr_accessor :default_ttl_as_iso8601
24
+
25
+ # @return [FeedbackProperties]
26
+ attr_accessor :feedback
27
+
28
+
29
+ #
30
+ # Mapper for CloudToDeviceProperties class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'CloudToDeviceProperties',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'CloudToDeviceProperties',
40
+ model_properties: {
41
+ max_delivery_count: {
42
+ required: false,
43
+ serialized_name: 'maxDeliveryCount',
44
+ constraints: {
45
+ InclusiveMaximum: 100,
46
+ InclusiveMinimum: 1
47
+ },
48
+ type: {
49
+ name: 'Number'
50
+ }
51
+ },
52
+ default_ttl_as_iso8601: {
53
+ required: false,
54
+ serialized_name: 'defaultTtlAsIso8601',
55
+ type: {
56
+ name: 'TimeSpan'
57
+ }
58
+ },
59
+ feedback: {
60
+ required: false,
61
+ serialized_name: 'feedback',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'FeedbackProperties'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,78 @@
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
+ # Error details.
10
+ #
11
+ class ErrorDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The error code.
16
+ attr_accessor :code
17
+
18
+ # @return [String] The HTTP status code.
19
+ attr_accessor :http_status_code
20
+
21
+ # @return [String] The error message.
22
+ attr_accessor :message
23
+
24
+ # @return [String] The error details.
25
+ attr_accessor :details
26
+
27
+
28
+ #
29
+ # Mapper for ErrorDetails class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'ErrorDetails',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorDetails',
39
+ model_properties: {
40
+ code: {
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'Code',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ http_status_code: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'HttpStatusCode',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ message: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'Message',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ details: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'Details',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,71 @@
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 EventHubConsumerGroupInfo object.
10
+ #
11
+ class EventHubConsumerGroupInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] The tags.
16
+ attr_accessor :tags
17
+
18
+ # @return [String] The Event Hub-compatible consumer group identifier.
19
+ attr_accessor :id
20
+
21
+ # @return [String] The Event Hub-compatible consumer group name.
22
+ attr_accessor :name
23
+
24
+
25
+ #
26
+ # Mapper for EventHubConsumerGroupInfo class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'EventHubConsumerGroupInfo',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'EventHubConsumerGroupInfo',
36
+ model_properties: {
37
+ tags: {
38
+ required: false,
39
+ serialized_name: 'tags',
40
+ type: {
41
+ name: 'Dictionary',
42
+ value: {
43
+ required: false,
44
+ serialized_name: 'StringElementType',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ },
51
+ id: {
52
+ required: false,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ name: {
59
+ required: false,
60
+ serialized_name: 'name',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,96 @@
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 JSON-serialized array of Event Hub-compatible consumer group names
10
+ # with a next link.
11
+ #
12
+ class EventHubConsumerGroupsListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<String>] The array of Event Hub-compatible consumer
18
+ # group names.
19
+ attr_accessor :value
20
+
21
+ # @return [String] The next link.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<String>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [EventHubConsumerGroupsListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for EventHubConsumerGroupsListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ required: false,
63
+ serialized_name: 'EventHubConsumerGroupsListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'EventHubConsumerGroupsListResult',
67
+ model_properties: {
68
+ value: {
69
+ required: false,
70
+ serialized_name: 'value',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ required: false,
75
+ serialized_name: 'StringElementType',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'nextLink',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,100 @@
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 provisioned Event Hub-compatible endpoint used by
10
+ # the IoT hub.
11
+ #
12
+ class EventHubProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] The retention time for device-to-cloud messages in
17
+ # days. See:
18
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
19
+ attr_accessor :retention_time_in_days
20
+
21
+ # @return [Integer] The number of paritions for receiving device-to-cloud
22
+ # messages in the Event Hub-compatible endpoint. See:
23
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
24
+ attr_accessor :partition_count
25
+
26
+ # @return [Array<String>] The partition ids in the Event Hub-compatible
27
+ # endpoint.
28
+ attr_accessor :partition_ids
29
+
30
+ # @return [String] The Event Hub-compatible name.
31
+ attr_accessor :path
32
+
33
+ # @return [String] The Event Hub-compatible endpoint.
34
+ attr_accessor :endpoint
35
+
36
+
37
+ #
38
+ # Mapper for EventHubProperties class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'EventHubProperties',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'EventHubProperties',
48
+ model_properties: {
49
+ retention_time_in_days: {
50
+ required: false,
51
+ serialized_name: 'retentionTimeInDays',
52
+ type: {
53
+ name: 'Number'
54
+ }
55
+ },
56
+ partition_count: {
57
+ required: false,
58
+ serialized_name: 'partitionCount',
59
+ type: {
60
+ name: 'Number'
61
+ }
62
+ },
63
+ partition_ids: {
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'partitionIds',
67
+ type: {
68
+ name: 'Sequence',
69
+ element: {
70
+ required: false,
71
+ serialized_name: 'StringElementType',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ },
78
+ path: {
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'path',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ endpoint: {
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'endpoint',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end