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
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Quota metrics properties.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The JSON-serialized array of IotHubQuotaMetricInfo objects with a next
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for IotHubScaleType
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for IotHubSku
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # SKU properties.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The JSON-serialized array of IotHubSkuDescription objects with a next
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Information about the SKU of the IoT hub.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for IotHubSkuTier
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for IpFilterActionType
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The IP filter rules for the IoT hub.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The properties of the Job Response object.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The JSON-serialized array of JobResponse objects with a next link.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for JobStatus
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for JobType
@@ -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::V2016_02_03
7
+ module Models
8
+ #
9
+ # The properties of the messaging endpoints used by this IoT hub.
10
+ #
11
+ class MessagingEndpointProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Duration] The lock duration. See:
16
+ # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
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/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
22
+ attr_accessor :ttl_as_iso8601
23
+
24
+ # @return [Integer] The number of times the IoT hub attempts to deliver a
25
+ # message. See:
26
+ # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
27
+ attr_accessor :max_delivery_count
28
+
29
+
30
+ #
31
+ # Mapper for MessagingEndpointProperties class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'MessagingEndpointProperties',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'MessagingEndpointProperties',
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
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Input values.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Defines values for OperationMonitoringLevel
@@ -0,0 +1,53 @@
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::V2016_02_03
7
+ module Models
8
+ #
9
+ # The operations monitoring properties for the IoT hub. The possible keys
10
+ # to the dictionary are Connections, DeviceTelemetry, C2DCommands,
11
+ # DeviceIdentityOperations, FileUploadOperations.
12
+ #
13
+ class OperationsMonitoringProperties
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [Hash{String => OperationMonitoringLevel}]
18
+ attr_accessor :events
19
+
20
+
21
+ #
22
+ # Mapper for OperationsMonitoringProperties class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'OperationsMonitoringProperties',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'OperationsMonitoringProperties',
32
+ model_properties: {
33
+ events: {
34
+ required: false,
35
+ serialized_name: 'events',
36
+ type: {
37
+ name: 'Dictionary',
38
+ value: {
39
+ required: false,
40
+ serialized_name: 'OperationMonitoringLevelElementType',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # Identity registry statistics.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The common properties of an Azure resource.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The properties of an IoT hub shared access policy.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The list of shared access policies with a next link.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
7
  module Models
8
8
  #
9
9
  # The properties of the Azure Storage endpoint for file upload.
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::IotHub end
8
+ module Azure::IotHub::Mgmt end
9
+ module Azure::IotHub::Mgmt::V2016_02_03 end
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::IotHub
7
- VERSION = '0.14.0'
6
+ module Azure::IotHub::Mgmt::V2016_02_03
7
+ VERSION = '0.15.0'
8
8
  end
@@ -0,0 +1,75 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2017-01-19/generated/azure_mgmt_iot_hub/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::IotHub::Mgmt::V2017_01_19
23
+ autoload :IotHubResource, '2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb'
24
+ autoload :IotHubClient, '2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_client.rb'
25
+
26
+ module Models
27
+ autoload :Resource, '2017-01-19/generated/azure_mgmt_iot_hub/models/resource.rb'
28
+ autoload :SharedAccessSignatureAuthorizationRule, '2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
29
+ autoload :SharedAccessSignatureAuthorizationRuleListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb'
30
+ autoload :EventHubProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb'
31
+ autoload :ErrorDetails, '2017-01-19/generated/azure_mgmt_iot_hub/models/error_details.rb'
32
+ autoload :RoutingServiceBusTopicEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb'
33
+ autoload :IotHubQuotaMetricInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb'
34
+ autoload :RoutingEndpoints, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
35
+ autoload :IotHubQuotaMetricInfoListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
36
+ autoload :FallbackRouteProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
37
+ autoload :RegistryStatistics, '2017-01-19/generated/azure_mgmt_iot_hub/models/registry_statistics.rb'
38
+ autoload :StorageEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
39
+ autoload :JobResponse, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb'
40
+ autoload :FeedbackProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
41
+ autoload :JobResponseListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
42
+ autoload :OperationsMonitoringProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
43
+ autoload :IotHubCapacity, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb'
44
+ autoload :IotHubSkuInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
45
+ autoload :IotHubSkuDescription, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
46
+ autoload :IpFilterRule, '2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
47
+ autoload :EventHubConsumerGroupsListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb'
48
+ autoload :RoutingEventHubProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
49
+ autoload :EventHubConsumerGroupInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb'
50
+ autoload :RoutingProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb'
51
+ autoload :IotHubSkuDescriptionListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb'
52
+ autoload :CloudToDeviceProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
53
+ autoload :IotHubDescriptionListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb'
54
+ autoload :RoutingServiceBusQueueEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
55
+ autoload :OperationInputs, '2017-01-19/generated/azure_mgmt_iot_hub/models/operation_inputs.rb'
56
+ autoload :MessagingEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
57
+ autoload :IotHubNameAvailabilityInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb'
58
+ autoload :RouteProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/route_properties.rb'
59
+ autoload :ExportDevicesRequest, '2017-01-19/generated/azure_mgmt_iot_hub/models/export_devices_request.rb'
60
+ autoload :IotHubProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
61
+ autoload :ImportDevicesRequest, '2017-01-19/generated/azure_mgmt_iot_hub/models/import_devices_request.rb'
62
+ autoload :IotHubDescription, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb'
63
+ autoload :AccessRights, '2017-01-19/generated/azure_mgmt_iot_hub/models/access_rights.rb'
64
+ autoload :IpFilterActionType, '2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb'
65
+ autoload :RoutingSource, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_source.rb'
66
+ autoload :OperationMonitoringLevel, '2017-01-19/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb'
67
+ autoload :Capabilities, '2017-01-19/generated/azure_mgmt_iot_hub/models/capabilities.rb'
68
+ autoload :IotHubSku, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb'
69
+ autoload :IotHubSkuTier, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb'
70
+ autoload :JobType, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_type.rb'
71
+ autoload :JobStatus, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_status.rb'
72
+ autoload :IotHubScaleType, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb'
73
+ autoload :IotHubNameUnavailabilityReason, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb'
74
+ end
75
+ end
@@ -0,0 +1,129 @@
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
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class IotHubClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The subscription identifier.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] The version of the API.
24
+ attr_reader :api_version
25
+
26
+ # @return [String] Gets or sets the preferred language for the response.
27
+ attr_accessor :accept_language
28
+
29
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
+ # Running Operations. Default value is 30.
31
+ attr_accessor :long_running_operation_retry_timeout
32
+
33
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
+ # is generated and included in each request. Default is true.
35
+ attr_accessor :generate_client_request_id
36
+
37
+ # @return [IotHubResource] iot_hub_resource
38
+ attr_reader :iot_hub_resource
39
+
40
+ #
41
+ # Creates initializes a new instance of the IotHubClient class.
42
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
43
+ # @param base_url [String] the base URI of the service.
44
+ # @param options [Array] filters to be applied to the HTTP requests.
45
+ #
46
+ def initialize(credentials = nil, base_url = nil, options = nil)
47
+ super(credentials, options)
48
+ @base_url = base_url || 'https://management.azure.com'
49
+
50
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
51
+ @credentials = credentials
52
+
53
+ @iot_hub_resource = IotHubResource.new(self)
54
+ @api_version = '2017-01-19'
55
+ @accept_language = 'en-US'
56
+ @long_running_operation_retry_timeout = 30
57
+ @generate_client_request_id = true
58
+ add_telemetry
59
+ end
60
+
61
+ #
62
+ # Makes a request and returns the body of the response.
63
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
64
+ # @param path [String] the path, relative to {base_url}.
65
+ # @param options [Hash{String=>String}] specifying any request options like :body.
66
+ # @return [Hash{String=>String}] containing the body of the response.
67
+ # Example:
68
+ #
69
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
70
+ # path = "/path"
71
+ # options = {
72
+ # body: request_content,
73
+ # query_params: {'api-version' => '2016-02-01'}
74
+ # }
75
+ # result = @client.make_request(:put, path, options)
76
+ #
77
+ def make_request(method, path, options = {})
78
+ result = make_request_with_http_info(method, path, options)
79
+ result.body unless result.nil?
80
+ end
81
+
82
+ #
83
+ # Makes a request and returns the operation response.
84
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
85
+ # @param path [String] the path, relative to {base_url}.
86
+ # @param options [Hash{String=>String}] specifying any request options like :body.
87
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
88
+ #
89
+ def make_request_with_http_info(method, path, options = {})
90
+ result = make_request_async(method, path, options).value!
91
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
92
+ result
93
+ end
94
+
95
+ #
96
+ # Makes a request asynchronously.
97
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
98
+ # @param path [String] the path, relative to {base_url}.
99
+ # @param options [Hash{String=>String}] specifying any request options like :body.
100
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
101
+ #
102
+ def make_request_async(method, path, options = {})
103
+ fail ArgumentError, 'method is nil' if method.nil?
104
+ fail ArgumentError, 'path is nil' if path.nil?
105
+
106
+ request_url = options[:base_url] || @base_url
107
+
108
+ request_headers = @request_headers
109
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
110
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
111
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
112
+
113
+ super(request_url, method, path, options)
114
+ end
115
+
116
+
117
+ private
118
+ #
119
+ # Adds telemetry information.
120
+ #
121
+ def add_telemetry
122
+ sdk_information = 'azure_mgmt_iot_hub'
123
+ if defined? Azure::IotHub::Mgmt::V2017_01_19::VERSION
124
+ sdk_information = "#{sdk_information}/#{Azure::IotHub::Mgmt::V2017_01_19::VERSION}"
125
+ end
126
+ add_user_agent_information(sdk_information)
127
+ end
128
+ end
129
+ end