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,128 @@
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_07_01
7
+ module Models
8
+ #
9
+ # The properties of the Job Response object.
10
+ #
11
+ class JobResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The job identifier.
16
+ attr_accessor :job_id
17
+
18
+ # @return [DateTime] The start time of the job.
19
+ attr_accessor :start_time_utc
20
+
21
+ # @return [DateTime] The time the job stopped processing.
22
+ attr_accessor :end_time_utc
23
+
24
+ # @return [JobType] The type of the job. Possible values include:
25
+ # 'unknown', 'export', 'import', 'backup', 'readDeviceProperties',
26
+ # 'writeDeviceProperties', 'updateDeviceConfiguration', 'rebootDevice',
27
+ # 'factoryResetDevice', 'firmwareUpdate'
28
+ attr_accessor :type
29
+
30
+ # @return [JobStatus] The status of the job. Possible values include:
31
+ # 'unknown', 'enqueued', 'running', 'completed', 'failed', 'cancelled'
32
+ attr_accessor :status
33
+
34
+ # @return [String] If status == failed, this string containing the reason
35
+ # for the failure.
36
+ attr_accessor :failure_reason
37
+
38
+ # @return [String] The status message for the job.
39
+ attr_accessor :status_message
40
+
41
+ # @return [String] The job identifier of the parent job, if any.
42
+ attr_accessor :parent_job_id
43
+
44
+
45
+ #
46
+ # Mapper for JobResponse class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ required: false,
52
+ serialized_name: 'JobResponse',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'JobResponse',
56
+ model_properties: {
57
+ job_id: {
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'jobId',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ start_time_utc: {
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'startTimeUtc',
69
+ type: {
70
+ name: 'DateTimeRfc1123'
71
+ }
72
+ },
73
+ end_time_utc: {
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'endTimeUtc',
77
+ type: {
78
+ name: 'DateTimeRfc1123'
79
+ }
80
+ },
81
+ type: {
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'type',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ status: {
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'status',
93
+ type: {
94
+ name: 'Enum',
95
+ module: 'JobStatus'
96
+ }
97
+ },
98
+ failure_reason: {
99
+ required: false,
100
+ read_only: true,
101
+ serialized_name: 'failureReason',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ status_message: {
107
+ required: false,
108
+ read_only: true,
109
+ serialized_name: 'statusMessage',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ parent_job_id: {
115
+ required: false,
116
+ read_only: true,
117
+ serialized_name: 'parentJobId',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,95 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_07_01
7
+ module Models
8
+ #
9
+ # The JSON-serialized array of JobResponse objects with a next link.
10
+ #
11
+ class JobResponseListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<JobResponse>] The array of JobResponse objects.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The next link.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<JobResponse>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [JobResponseListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for JobResponseListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'JobResponseListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'JobResponseListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'JobResponseElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'JobResponse'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,20 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Defines values for JobStatus
10
+ #
11
+ module JobStatus
12
+ Unknown = "unknown"
13
+ Enqueued = "enqueued"
14
+ Running = "running"
15
+ Completed = "completed"
16
+ Failed = "failed"
17
+ Cancelled = "cancelled"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,24 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Defines values for JobType
10
+ #
11
+ module JobType
12
+ Unknown = "unknown"
13
+ Export = "export"
14
+ Import = "import"
15
+ Backup = "backup"
16
+ ReadDeviceProperties = "readDeviceProperties"
17
+ WriteDeviceProperties = "writeDeviceProperties"
18
+ UpdateDeviceConfiguration = "updateDeviceConfiguration"
19
+ RebootDevice = "rebootDevice"
20
+ FactoryResetDevice = "factoryResetDevice"
21
+ FirmwareUpdate = "firmwareUpdate"
22
+ end
23
+ end
24
+ 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_07_01
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/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/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/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::V2017_07_01
7
7
  module Models
8
8
  #
9
9
  # IoT Hub REST API operation
@@ -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
  module Models
8
8
  #
9
9
  # The object that represents the operation.
@@ -0,0 +1,44 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Input values.
10
+ #
11
+ class OperationInputs
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the IoT hub to check.
16
+ attr_accessor :name
17
+
18
+
19
+ #
20
+ # Mapper for OperationInputs class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'OperationInputs',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'OperationInputs',
30
+ model_properties: {
31
+ name: {
32
+ required: true,
33
+ serialized_name: 'Name',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ 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
  module Models
8
8
  #
9
9
  # Result of the request to list IoT Hub operations. It contains a list of
@@ -0,0 +1,18 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Defines values for OperationMonitoringLevel
10
+ #
11
+ module OperationMonitoringLevel
12
+ None = "None"
13
+ Error = "Error"
14
+ Information = "Information"
15
+ ErrorInformation = "Error, Information"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::IotHub::Mgmt::V2017_07_01
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, Routes,
12
+ # D2CTwinOperations, C2DTwinOperations, TwinQueries, JobsOperations,
13
+ # DirectMethods.
14
+ #
15
+ class OperationsMonitoringProperties
16
+
17
+ include MsRestAzure
18
+
19
+ # @return [Hash{String => OperationMonitoringLevel}]
20
+ attr_accessor :events
21
+
22
+
23
+ #
24
+ # Mapper for OperationsMonitoringProperties class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'OperationsMonitoringProperties',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'OperationsMonitoringProperties',
34
+ model_properties: {
35
+ events: {
36
+ required: false,
37
+ serialized_name: 'events',
38
+ type: {
39
+ name: 'Dictionary',
40
+ value: {
41
+ required: false,
42
+ serialized_name: 'OperationMonitoringLevelElementType',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end