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::V2017_01_19
7
7
  module Models
8
8
  #
9
9
  # Defines values for RoutingSource
@@ -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
+ # The properties of an IoT hub shared access policy.
10
+ #
11
+ class SharedAccessSignatureAuthorizationRule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the shared access policy.
16
+ attr_accessor :key_name
17
+
18
+ # @return [String] The primary key.
19
+ attr_accessor :primary_key
20
+
21
+ # @return [String] The secondary key.
22
+ attr_accessor :secondary_key
23
+
24
+ # @return [AccessRights] The permissions assigned to the shared access
25
+ # policy. Possible values include: 'RegistryRead', 'RegistryWrite',
26
+ # 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite',
27
+ # 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect',
28
+ # 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect',
29
+ # 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite,
30
+ # ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect',
31
+ # 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite,
32
+ # ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite,
33
+ # ServiceConnect, DeviceConnect'
34
+ attr_accessor :rights
35
+
36
+
37
+ #
38
+ # Mapper for SharedAccessSignatureAuthorizationRule class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'SharedAccessSignatureAuthorizationRule',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'SharedAccessSignatureAuthorizationRule',
48
+ model_properties: {
49
+ key_name: {
50
+ required: true,
51
+ serialized_name: 'keyName',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ primary_key: {
57
+ required: false,
58
+ serialized_name: 'primaryKey',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ secondary_key: {
64
+ required: false,
65
+ serialized_name: 'secondaryKey',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ rights: {
71
+ required: true,
72
+ serialized_name: 'rights',
73
+ type: {
74
+ name: 'Enum',
75
+ module: 'AccessRights'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,99 @@
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 list of shared access policies with a next link.
10
+ #
11
+ class SharedAccessSignatureAuthorizationRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SharedAccessSignatureAuthorizationRule>] The list of
17
+ # shared access policies.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The next link.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<SharedAccessSignatureAuthorizationRule>] operation
30
+ # 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 [SharedAccessSignatureAuthorizationRuleListResult] with next
46
+ # page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for SharedAccessSignatureAuthorizationRuleListResult class as
59
+ # Ruby Hash.
60
+ # This will be used for serialization/deserialization.
61
+ #
62
+ def self.mapper()
63
+ {
64
+ required: false,
65
+ serialized_name: 'SharedAccessSignatureAuthorizationRuleListResult',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'SharedAccessSignatureAuthorizationRuleListResult',
69
+ model_properties: {
70
+ value: {
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ required: false,
77
+ serialized_name: 'SharedAccessSignatureAuthorizationRuleElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'SharedAccessSignatureAuthorizationRule'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,69 @@
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 Azure Storage endpoint for file upload.
10
+ #
11
+ class StorageEndpointProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Duration] The period of time for which the the SAS URI
16
+ # generated by IoT Hub for file upload is valid. See:
17
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.
18
+ attr_accessor :sas_ttl_as_iso8601
19
+
20
+ # @return [String] The connection string for the Azure Storage account to
21
+ # which files are uploaded.
22
+ attr_accessor :connection_string
23
+
24
+ # @return [String] The name of the root container where you upload files.
25
+ # The container need not exist but should be creatable using the
26
+ # connectionString specified.
27
+ attr_accessor :container_name
28
+
29
+
30
+ #
31
+ # Mapper for StorageEndpointProperties class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'StorageEndpointProperties',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'StorageEndpointProperties',
41
+ model_properties: {
42
+ sas_ttl_as_iso8601: {
43
+ required: false,
44
+ serialized_name: 'sasTtlAsIso8601',
45
+ type: {
46
+ name: 'TimeSpan'
47
+ }
48
+ },
49
+ connection_string: {
50
+ required: true,
51
+ serialized_name: 'connectionString',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ container_name: {
57
+ required: true,
58
+ serialized_name: 'containerName',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -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::V2017_01_19 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 end
7
- module Azure::ARM end
8
- module Azure::ARM::IotHub end
6
+ module Azure::IotHub::Mgmt::V2017_01_19
7
+ VERSION = '0.15.0'
8
+ end
@@ -0,0 +1,88 @@
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-07-01/generated/azure_mgmt_iot_hub/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::IotHub::Mgmt::V2017_07_01
23
+ autoload :Operations, '2017-07-01/generated/azure_mgmt_iot_hub/operations.rb'
24
+ autoload :IotHubResource, '2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_resource.rb'
25
+ autoload :Certificates, '2017-07-01/generated/azure_mgmt_iot_hub/certificates.rb'
26
+ autoload :IotHubClient, '2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_client.rb'
27
+
28
+ module Models
29
+ autoload :IotHubProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
30
+ autoload :IotHubSkuInfo, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
31
+ autoload :CertificateBodyDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb'
32
+ autoload :CertificateProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_properties.rb'
33
+ autoload :CertificateListDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb'
34
+ autoload :Resource, '2017-07-01/generated/azure_mgmt_iot_hub/models/resource.rb'
35
+ autoload :CertificateWithNonceDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb'
36
+ autoload :SharedAccessSignatureAuthorizationRuleListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb'
37
+ autoload :IpFilterRule, '2017-07-01/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
38
+ autoload :OperationDisplay, '2017-07-01/generated/azure_mgmt_iot_hub/models/operation_display.rb'
39
+ autoload :RoutingServiceBusQueueEndpointProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
40
+ autoload :Operation, '2017-07-01/generated/azure_mgmt_iot_hub/models/operation.rb'
41
+ autoload :RoutingEventHubProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
42
+ autoload :OperationListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/operation_list_result.rb'
43
+ autoload :RoutingEndpoints, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
44
+ autoload :ErrorDetails, '2017-07-01/generated/azure_mgmt_iot_hub/models/error_details.rb'
45
+ autoload :FallbackRouteProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
46
+ autoload :IotHubQuotaMetricInfo, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb'
47
+ autoload :StorageEndpointProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
48
+ autoload :IotHubQuotaMetricInfoListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
49
+ autoload :FeedbackProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
50
+ autoload :RegistryStatistics, '2017-07-01/generated/azure_mgmt_iot_hub/models/registry_statistics.rb'
51
+ autoload :OperationsMonitoringProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
52
+ autoload :JobResponse, '2017-07-01/generated/azure_mgmt_iot_hub/models/job_response.rb'
53
+ autoload :CertificateDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_description.rb'
54
+ autoload :JobResponseListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
55
+ autoload :SharedAccessSignatureAuthorizationRule, '2017-07-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
56
+ autoload :IotHubCapacity, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb'
57
+ autoload :RoutingServiceBusTopicEndpointProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb'
58
+ autoload :IotHubSkuDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
59
+ autoload :RouteProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/route_properties.rb'
60
+ autoload :EventHubConsumerGroupsListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb'
61
+ autoload :MessagingEndpointProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
62
+ autoload :EventHubConsumerGroupInfo, '2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb'
63
+ autoload :CertificateVerificationDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb'
64
+ autoload :IotHubSkuDescriptionListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb'
65
+ autoload :EventHubProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb'
66
+ autoload :IotHubDescriptionListResult, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb'
67
+ autoload :RoutingProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_properties.rb'
68
+ autoload :OperationInputs, '2017-07-01/generated/azure_mgmt_iot_hub/models/operation_inputs.rb'
69
+ autoload :CertificatePropertiesWithNonce, '2017-07-01/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb'
70
+ autoload :IotHubNameAvailabilityInfo, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb'
71
+ autoload :CloudToDeviceProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
72
+ autoload :ExportDevicesRequest, '2017-07-01/generated/azure_mgmt_iot_hub/models/export_devices_request.rb'
73
+ autoload :RoutingStorageContainerProperties, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb'
74
+ autoload :ImportDevicesRequest, '2017-07-01/generated/azure_mgmt_iot_hub/models/import_devices_request.rb'
75
+ autoload :IotHubDescription, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb'
76
+ autoload :AccessRights, '2017-07-01/generated/azure_mgmt_iot_hub/models/access_rights.rb'
77
+ autoload :IpFilterActionType, '2017-07-01/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb'
78
+ autoload :RoutingSource, '2017-07-01/generated/azure_mgmt_iot_hub/models/routing_source.rb'
79
+ autoload :OperationMonitoringLevel, '2017-07-01/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb'
80
+ autoload :Capabilities, '2017-07-01/generated/azure_mgmt_iot_hub/models/capabilities.rb'
81
+ autoload :IotHubSku, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb'
82
+ autoload :IotHubSkuTier, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb'
83
+ autoload :JobType, '2017-07-01/generated/azure_mgmt_iot_hub/models/job_type.rb'
84
+ autoload :JobStatus, '2017-07-01/generated/azure_mgmt_iot_hub/models/job_status.rb'
85
+ autoload :IotHubScaleType, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb'
86
+ autoload :IotHubNameUnavailabilityReason, '2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb'
87
+ end
88
+ 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::V2017_07_01
7
7
  #
8
8
  # Use this API to manage the IoT hubs in your Azure subscription.
9
9
  #
@@ -108,7 +108,7 @@ module Azure::ARM::IotHub
108
108
  if status_code == 200
109
109
  begin
110
110
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
111
- result_mapper = Azure::ARM::IotHub::Models::CertificateListDescription.mapper()
111
+ result_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateListDescription.mapper()
112
112
  result.body = @client.deserialize(result_mapper, parsed_response)
113
113
  rescue Exception => e
114
114
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -212,7 +212,7 @@ module Azure::ARM::IotHub
212
212
  if status_code == 200
213
213
  begin
214
214
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
215
- result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
215
+ result_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateDescription.mapper()
216
216
  result.body = @client.deserialize(result_mapper, parsed_response)
217
217
  rescue Exception => e
218
218
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -307,7 +307,7 @@ module Azure::ARM::IotHub
307
307
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
308
308
 
309
309
  # Serialize Request
310
- request_mapper = Azure::ARM::IotHub::Models::CertificateBodyDescription.mapper()
310
+ request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateBodyDescription.mapper()
311
311
  request_content = @client.serialize(request_mapper, certificate_description)
312
312
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
313
313
 
@@ -339,7 +339,7 @@ module Azure::ARM::IotHub
339
339
  if status_code == 201
340
340
  begin
341
341
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
342
- result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
342
+ result_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateDescription.mapper()
343
343
  result.body = @client.deserialize(result_mapper, parsed_response)
344
344
  rescue Exception => e
345
345
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -349,7 +349,7 @@ module Azure::ARM::IotHub
349
349
  if status_code == 200
350
350
  begin
351
351
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
352
- result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
352
+ result_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateDescription.mapper()
353
353
  result.body = @client.deserialize(result_mapper, parsed_response)
354
354
  rescue Exception => e
355
355
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -559,7 +559,7 @@ module Azure::ARM::IotHub
559
559
  if status_code == 200
560
560
  begin
561
561
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
562
- result_mapper = Azure::ARM::IotHub::Models::CertificateWithNonceDescription.mapper()
562
+ result_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateWithNonceDescription.mapper()
563
563
  result.body = @client.deserialize(result_mapper, parsed_response)
564
564
  rescue Exception => e
565
565
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -655,7 +655,7 @@ module Azure::ARM::IotHub
655
655
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
656
656
 
657
657
  # Serialize Request
658
- request_mapper = Azure::ARM::IotHub::Models::CertificateVerificationDescription.mapper()
658
+ request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateVerificationDescription.mapper()
659
659
  request_content = @client.serialize(request_mapper, certificate_verification_body)
660
660
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
661
661
 
@@ -687,7 +687,7 @@ module Azure::ARM::IotHub
687
687
  if status_code == 200
688
688
  begin
689
689
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
690
- result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
690
+ result_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateDescription.mapper()
691
691
  result.body = @client.deserialize(result_mapper, parsed_response)
692
692
  rescue Exception => e
693
693
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)