azure_mgmt_iot_hub 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_iot_hub.rb +9 -11
  3. data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +5 -6
  4. data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +553 -346
  5. data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +7 -5
  6. data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +5 -2
  7. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +3 -3
  8. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +5 -3
  9. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +15 -45
  10. data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +3 -3
  11. data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +9 -6
  12. data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +4 -4
  13. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +7 -3
  14. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +8 -7
  15. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +3 -2
  16. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +4 -2
  17. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +32 -17
  18. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +4 -1
  19. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +4 -3
  20. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +3 -3
  21. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +4 -2
  22. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +8 -9
  23. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +5 -5
  24. data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +18 -20
  25. data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +2 -2
  26. data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +9 -6
  27. data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +2 -2
  28. data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +1 -0
  29. data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +3 -1
  30. data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +9 -4
  31. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +14 -13
  32. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +2 -2
  33. data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +11 -8
  34. data/lib/generated/azure_mgmt_iot_hub/version.rb +1 -1
  35. metadata +4 -6
  36. data/lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb +0 -18
  37. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb +0 -143
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccea0fcf3dc044e470dd394783041f514459e6da
4
- data.tar.gz: 49a14112c9f24e8e613af34feeedf8a18cdb5154
3
+ metadata.gz: 9d515a36903a3e8e6c02cb5bcfadcbfa0213decc
4
+ data.tar.gz: d4dc8bbe75bb02b77aea8029d2e9413110bf2488
5
5
  SHA512:
6
- metadata.gz: 8f6e69cf89d30c4238db80c64c9d577f259ebd2efeff4896f16ae240b210dab63f9d4265d22e1e91ea2f02498dc990f3d69020a14191bfdbb395d017ea9828e7
7
- data.tar.gz: a15ab3a225803e538ee5abcbb646a1d370de33f12467f8df77ec6b862e03c21dbc96b38358df110ebb7b6b71eea9ee68dd534e7811b3d807d8b2f222885d2697
6
+ metadata.gz: 2c58ea5759d1bb59fd3dd697ea842e5f28ad9454d53674afefc79fc96c07e7c2cbc26444b5fc76a9b9360035dc0155f93428484c01acabb6eac35ab63c58c9b2
7
+ data.tar.gz: 7813be75879e959134cf702e957ed2f000fcec63ade92b8e0452f7e38c31dcf114785172c54a1de92c6ce6f506f197e2649250e25a589e16a2975e3acad18719
@@ -24,19 +24,18 @@ module Azure::ARM::IotHub
24
24
  autoload :IotHubClient, 'generated/azure_mgmt_iot_hub/iot_hub_client.rb'
25
25
 
26
26
  module Models
27
- autoload :IotHubQuotaMetricInfoListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
28
- autoload :SharedAccessSignatureAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
29
27
  autoload :IotHubQuotaMetricInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb'
28
+ autoload :IotHubQuotaMetricInfoListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
30
29
  autoload :IpFilterRule, 'generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
31
30
  autoload :RegistryStatistics, 'generated/azure_mgmt_iot_hub/models/registry_statistics.rb'
32
- autoload :SharedAccessAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb'
33
- autoload :JobResponseListResult, 'generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
34
- autoload :MessagingEndpointProperties, 'generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
31
+ autoload :StorageEndpointProperties, 'generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
35
32
  autoload :JobResponse, 'generated/azure_mgmt_iot_hub/models/job_response.rb'
36
33
  autoload :FeedbackProperties, 'generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
37
- autoload :IotHubSkuDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
38
- autoload :IotHubSkuInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
34
+ autoload :JobResponseListResult, 'generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
35
+ autoload :OperationsMonitoringProperties, 'generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
39
36
  autoload :IotHubCapacity, 'generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb'
37
+ autoload :IotHubSkuInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
38
+ autoload :IotHubSkuDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
40
39
  autoload :EventHubConsumerGroupsListResult, 'generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb'
41
40
  autoload :ErrorDetails, 'generated/azure_mgmt_iot_hub/models/error_details.rb'
42
41
  autoload :EventHubConsumerGroupInfo, 'generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb'
@@ -46,16 +45,15 @@ module Azure::ARM::IotHub
46
45
  autoload :IotHubDescriptionListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb'
47
46
  autoload :SharedAccessSignatureAuthorizationRuleListResult, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb'
48
47
  autoload :OperationInputs, 'generated/azure_mgmt_iot_hub/models/operation_inputs.rb'
49
- autoload :StorageEndpointProperties, 'generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
48
+ autoload :MessagingEndpointProperties, 'generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
50
49
  autoload :IotHubNameAvailabilityInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb'
51
- autoload :IotHubProperties, 'generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
50
+ autoload :SharedAccessSignatureAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
52
51
  autoload :ExportDevicesRequest, 'generated/azure_mgmt_iot_hub/models/export_devices_request.rb'
53
- autoload :OperationsMonitoringProperties, 'generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
52
+ autoload :IotHubProperties, 'generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
54
53
  autoload :ImportDevicesRequest, 'generated/azure_mgmt_iot_hub/models/import_devices_request.rb'
55
54
  autoload :IotHubDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_description.rb'
56
55
  autoload :AccessRights, 'generated/azure_mgmt_iot_hub/models/access_rights.rb'
57
56
  autoload :IpFilterActionType, 'generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb'
58
- autoload :SBAccessRights, 'generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb'
59
57
  autoload :OperationMonitoringLevel, 'generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb'
60
58
  autoload :Capabilities, 'generated/azure_mgmt_iot_hub/models/capabilities.rb'
61
59
  autoload :IotHubSku, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb'
@@ -20,7 +20,7 @@ module Azure::ARM::IotHub
20
20
  # @return [String] The subscription identifier.
21
21
  attr_accessor :subscription_id
22
22
 
23
- # @return [String] Version of the Api.
23
+ # @return [String] The version of the API.
24
24
  attr_reader :api_version
25
25
 
26
26
  # @return [String] Gets or sets the preferred language for the response.
@@ -43,12 +43,11 @@ module Azure::ARM::IotHub
43
43
  # @param base_url [String] the base URI of the service.
44
44
  # @param options [Array] filters to be applied to the HTTP requests.
45
45
  #
46
- def initialize(credentials, base_url = nil, options = nil)
46
+ def initialize(credentials = nil, base_url = nil, options = nil)
47
47
  super(credentials, options)
48
48
  @base_url = base_url || 'https://management.azure.com'
49
49
 
50
- fail ArgumentError, 'credentials is nil' if credentials.nil?
51
- fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
50
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
52
51
  @credentials = credentials
53
52
 
54
53
  @iot_hub_resource = IotHubResource.new(self)
@@ -61,7 +60,7 @@ module Azure::ARM::IotHub
61
60
 
62
61
  #
63
62
  # Makes a request and returns the body of the response.
64
- # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
63
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
65
64
  # @param path [String] the path, relative to {base_url}.
66
65
  # @param options [Hash{String=>String}] specifying any request options like :body.
67
66
  # @return [Hash{String=>String}] containing the body of the response.
@@ -122,7 +121,7 @@ module Azure::ARM::IotHub
122
121
  def add_telemetry
123
122
  sdk_information = 'azure_mgmt_iot_hub'
124
123
  if defined? Azure::ARM::IotHub::VERSION
125
- sdk_information = "#{sdk_information}/#{Azure::ARM::IotHub::VERSION}"
124
+ sdk_information = "#{sdk_information}/#{Azure::ARM::IotHub::VERSION}"
126
125
  end
127
126
  add_user_agent_information(sdk_information)
128
127
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Azure::ARM::IotHub
7
7
  #
8
- # API for using the IoT Hub Features.
8
+ # Use this API to manage the IoT hubs in your subscription.
9
9
  #
10
10
  class IotHubResource
11
11
  include Azure::ARM::IotHub::Models
@@ -23,12 +23,13 @@ module Azure::ARM::IotHub
23
23
  attr_reader :client
24
24
 
25
25
  #
26
- # Get an IotHub.
26
+ # Get the non-security related metadata of an IoT hub.
27
27
  #
28
- # Get an IotHub.
28
+ # Get the non-security related metadata of an IoT hub.
29
29
  #
30
- # @param resource_group_name [String] The name of the resource group.
31
- # @param resource_name [String] The name of the resource.
30
+ # @param resource_group_name [String] The name of the resource group that
31
+ # contains the IoT hub.
32
+ # @param resource_name [String] The name of the IoT hub.
32
33
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
34
  # will be added to the HTTP request.
34
35
  #
@@ -40,12 +41,13 @@ module Azure::ARM::IotHub
40
41
  end
41
42
 
42
43
  #
43
- # Get an IotHub.
44
+ # Get the non-security related metadata of an IoT hub.
44
45
  #
45
- # Get an IotHub.
46
+ # Get the non-security related metadata of an IoT hub.
46
47
  #
47
- # @param resource_group_name [String] The name of the resource group.
48
- # @param resource_name [String] The name of the resource.
48
+ # @param resource_group_name [String] The name of the resource group that
49
+ # contains the IoT hub.
50
+ # @param resource_name [String] The name of the IoT hub.
49
51
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
52
  # will be added to the HTTP request.
51
53
  #
@@ -56,12 +58,13 @@ module Azure::ARM::IotHub
56
58
  end
57
59
 
58
60
  #
59
- # Get an IotHub.
61
+ # Get the non-security related metadata of an IoT hub.
60
62
  #
61
- # Get an IotHub.
63
+ # Get the non-security related metadata of an IoT hub.
62
64
  #
63
- # @param resource_group_name [String] The name of the resource group.
64
- # @param resource_name [String] The name of the resource.
65
+ # @param resource_group_name [String] The name of the resource group that
66
+ # contains the IoT hub.
67
+ # @param resource_name [String] The name of the IoT hub.
65
68
  # @param [Hash{String => String}] A hash of custom headers that will be added
66
69
  # to the HTTP request.
67
70
  #
@@ -120,13 +123,17 @@ module Azure::ARM::IotHub
120
123
  end
121
124
 
122
125
  #
123
- # Create or update an IotHub.
126
+ # Create or update the metadata of an IoT hub.
124
127
  #
125
- # Create or update an IotHub.
128
+ # Create or update the metadata of an Iot hub. The usual pattern to modify a
129
+ # property is to retrieve the IoT hub metadata and security metadata, and then
130
+ # combine them with the modified values in a new body to update the IoT hub.
126
131
  #
127
- # @param resource_group_name [String] The name of the resource group.
128
- # @param resource_name [String] The name of the resource.
129
- # @param iot_hub_description [IotHubDescription] The Iot hub description.
132
+ # @param resource_group_name [String] The name of the resource group that
133
+ # contains the IoT hub.
134
+ # @param resource_name [String] The name of the IoT hub to create or update.
135
+ # @param iot_hub_description [IotHubDescription] The IoT hub metadata and
136
+ # security metadata.
130
137
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
131
138
  # will be added to the HTTP request.
132
139
  #
@@ -138,9 +145,11 @@ module Azure::ARM::IotHub
138
145
  end
139
146
 
140
147
  #
141
- # @param resource_group_name [String] The name of the resource group.
142
- # @param resource_name [String] The name of the resource.
143
- # @param iot_hub_description [IotHubDescription] The Iot hub description.
148
+ # @param resource_group_name [String] The name of the resource group that
149
+ # contains the IoT hub.
150
+ # @param resource_name [String] The name of the IoT hub to create or update.
151
+ # @param iot_hub_description [IotHubDescription] The IoT hub metadata and
152
+ # security metadata.
144
153
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
154
  # will be added to the HTTP request.
146
155
  #
@@ -166,16 +175,17 @@ module Azure::ARM::IotHub
166
175
  end
167
176
 
168
177
  #
169
- # Delete an IotHub.
178
+ # Delete an IoT hub.
170
179
  #
171
- # Delete an IotHub.
180
+ # Delete an IoT hub.
172
181
  #
173
- # @param resource_group_name [String] The name of the resource group.
174
- # @param resource_name [String] The name of the resource.
182
+ # @param resource_group_name [String] The name of the resource group that
183
+ # contains the IoT hub.
184
+ # @param resource_name [String] The name of the IoT hub to delete.
175
185
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
176
186
  # will be added to the HTTP request.
177
187
  #
178
- # @return [IotHubDescription] operation results.
188
+ # @return [Object] operation results.
179
189
  #
180
190
  def delete(resource_group_name, resource_name, custom_headers = nil)
181
191
  response = delete_async(resource_group_name, resource_name, custom_headers).value!
@@ -183,8 +193,9 @@ module Azure::ARM::IotHub
183
193
  end
184
194
 
185
195
  #
186
- # @param resource_group_name [String] The name of the resource group.
187
- # @param resource_name [String] The name of the resource.
196
+ # @param resource_group_name [String] The name of the resource group that
197
+ # contains the IoT hub.
198
+ # @param resource_name [String] The name of the IoT hub to delete.
188
199
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
189
200
  # will be added to the HTTP request.
190
201
  #
@@ -198,7 +209,13 @@ module Azure::ARM::IotHub
198
209
  promise = promise.then do |response|
199
210
  # Defining deserialization method.
200
211
  deserialize_method = lambda do |parsed_response|
201
- result_mapper = IotHubDescription.mapper()
212
+ result_mapper = {
213
+ required: false,
214
+ serialized_name: 'parsed_response',
215
+ type: {
216
+ name: 'Object'
217
+ }
218
+ }
202
219
  parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
203
220
  end
204
221
 
@@ -210,9 +227,9 @@ module Azure::ARM::IotHub
210
227
  end
211
228
 
212
229
  #
213
- # Get all IotHubs in a subscription.
230
+ # Get all the IoT hubs in a subscription.
214
231
  #
215
- # Get all IotHubs in a subscription.
232
+ # Get all the IoT hubs in a subscription.
216
233
  #
217
234
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
218
235
  # will be added to the HTTP request.
@@ -225,9 +242,9 @@ module Azure::ARM::IotHub
225
242
  end
226
243
 
227
244
  #
228
- # Get all IotHubs in a subscription.
245
+ # Get all the IoT hubs in a subscription.
229
246
  #
230
- # Get all IotHubs in a subscription.
247
+ # Get all the IoT hubs in a subscription.
231
248
  #
232
249
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
233
250
  # will be added to the HTTP request.
@@ -239,9 +256,9 @@ module Azure::ARM::IotHub
239
256
  end
240
257
 
241
258
  #
242
- # Get all IotHubs in a subscription.
259
+ # Get all the IoT hubs in a subscription.
243
260
  #
244
- # Get all IotHubs in a subscription.
261
+ # Get all the IoT hubs in a subscription.
245
262
  #
246
263
  # @param [Hash{String => String}] A hash of custom headers that will be added
247
264
  # to the HTTP request.
@@ -299,11 +316,12 @@ module Azure::ARM::IotHub
299
316
  end
300
317
 
301
318
  #
302
- # Get all IotHubs in a Resourcegroup.
319
+ # Get all the IoT hubs in a resource group.
303
320
  #
304
- # Get all IotHubs in a Resource group.
321
+ # Get all the IoT hubs in a resource group.
305
322
  #
306
- # @param resource_group_name [String] The name of the resource group.
323
+ # @param resource_group_name [String] The name of the resource group that
324
+ # contains the IoT hubs.
307
325
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
308
326
  # will be added to the HTTP request.
309
327
  #
@@ -315,11 +333,12 @@ module Azure::ARM::IotHub
315
333
  end
316
334
 
317
335
  #
318
- # Get all IotHubs in a Resourcegroup.
336
+ # Get all the IoT hubs in a resource group.
319
337
  #
320
- # Get all IotHubs in a Resource group.
338
+ # Get all the IoT hubs in a resource group.
321
339
  #
322
- # @param resource_group_name [String] The name of the resource group.
340
+ # @param resource_group_name [String] The name of the resource group that
341
+ # contains the IoT hubs.
323
342
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
324
343
  # will be added to the HTTP request.
325
344
  #
@@ -330,11 +349,12 @@ module Azure::ARM::IotHub
330
349
  end
331
350
 
332
351
  #
333
- # Get all IotHubs in a Resourcegroup.
352
+ # Get all the IoT hubs in a resource group.
334
353
  #
335
- # Get all IotHubs in a Resource group.
354
+ # Get all the IoT hubs in a resource group.
336
355
  #
337
- # @param resource_group_name [String] The name of the resource group.
356
+ # @param resource_group_name [String] The name of the resource group that
357
+ # contains the IoT hubs.
338
358
  # @param [Hash{String => String}] A hash of custom headers that will be added
339
359
  # to the HTTP request.
340
360
  #
@@ -392,12 +412,13 @@ module Azure::ARM::IotHub
392
412
  end
393
413
 
394
414
  #
395
- # Get IotHub Stats.
415
+ # Get the statistics from an IoT hub.
396
416
  #
397
- # Get IotHub Stats.
417
+ # Get the statistics from an IoT hub.
398
418
  #
399
- # @param resource_group_name [String] The name of the resource group.
400
- # @param resource_name [String] The name of the resource.
419
+ # @param resource_group_name [String] The name of the resource group that
420
+ # contains the IoT hub.
421
+ # @param resource_name [String] The name of the IoT hub.
401
422
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
402
423
  # will be added to the HTTP request.
403
424
  #
@@ -409,12 +430,13 @@ module Azure::ARM::IotHub
409
430
  end
410
431
 
411
432
  #
412
- # Get IotHub Stats.
433
+ # Get the statistics from an IoT hub.
413
434
  #
414
- # Get IotHub Stats.
435
+ # Get the statistics from an IoT hub.
415
436
  #
416
- # @param resource_group_name [String] The name of the resource group.
417
- # @param resource_name [String] The name of the resource.
437
+ # @param resource_group_name [String] The name of the resource group that
438
+ # contains the IoT hub.
439
+ # @param resource_name [String] The name of the IoT hub.
418
440
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
419
441
  # will be added to the HTTP request.
420
442
  #
@@ -425,12 +447,13 @@ module Azure::ARM::IotHub
425
447
  end
426
448
 
427
449
  #
428
- # Get IotHub Stats.
450
+ # Get the statistics from an IoT hub.
429
451
  #
430
- # Get IotHub Stats.
452
+ # Get the statistics from an IoT hub.
431
453
  #
432
- # @param resource_group_name [String] The name of the resource group.
433
- # @param resource_name [String] The name of the resource.
454
+ # @param resource_group_name [String] The name of the resource group that
455
+ # contains the IoT hub.
456
+ # @param resource_name [String] The name of the IoT hub.
434
457
  # @param [Hash{String => String}] A hash of custom headers that will be added
435
458
  # to the HTTP request.
436
459
  #
@@ -489,12 +512,13 @@ module Azure::ARM::IotHub
489
512
  end
490
513
 
491
514
  #
492
- # Get Valid Skus.
515
+ # Get the list of valid SKUs for an IoT hub.
493
516
  #
494
- # Get Valid Skus.
517
+ # Get the list of valid SKUs for an IoT hub.
495
518
  #
496
- # @param resource_group_name [String] The name of the resource group.
497
- # @param resource_name [String] The name of the resource.
519
+ # @param resource_group_name [String] The name of the resource group that
520
+ # contains the IoT hub.
521
+ # @param resource_name [String] The name of the IoT hub.
498
522
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
499
523
  # will be added to the HTTP request.
500
524
  #
@@ -506,12 +530,13 @@ module Azure::ARM::IotHub
506
530
  end
507
531
 
508
532
  #
509
- # Get Valid Skus.
533
+ # Get the list of valid SKUs for an IoT hub.
510
534
  #
511
- # Get Valid Skus.
535
+ # Get the list of valid SKUs for an IoT hub.
512
536
  #
513
- # @param resource_group_name [String] The name of the resource group.
514
- # @param resource_name [String] The name of the resource.
537
+ # @param resource_group_name [String] The name of the resource group that
538
+ # contains the IoT hub.
539
+ # @param resource_name [String] The name of the IoT hub.
515
540
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
516
541
  # will be added to the HTTP request.
517
542
  #
@@ -522,12 +547,13 @@ module Azure::ARM::IotHub
522
547
  end
523
548
 
524
549
  #
525
- # Get Valid Skus.
550
+ # Get the list of valid SKUs for an IoT hub.
526
551
  #
527
- # Get Valid Skus.
552
+ # Get the list of valid SKUs for an IoT hub.
528
553
  #
529
- # @param resource_group_name [String] The name of the resource group.
530
- # @param resource_name [String] The name of the resource.
554
+ # @param resource_group_name [String] The name of the resource group that
555
+ # contains the IoT hub.
556
+ # @param resource_name [String] The name of the IoT hub.
531
557
  # @param [Hash{String => String}] A hash of custom headers that will be added
532
558
  # to the HTTP request.
533
559
  #
@@ -586,13 +612,17 @@ module Azure::ARM::IotHub
586
612
  end
587
613
 
588
614
  #
589
- # Get EventHub Consumer Groups for an IotHub.
615
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
616
+ # endpoint in an IoT hub.
590
617
  #
591
- # Get EventHub Consumer Groups for an IotHub.
618
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
619
+ # endpoint in an IoT hub.
592
620
  #
593
- # @param resource_group_name [String] The name of the resource group.
594
- # @param resource_name [String] The name of the resource.
595
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
621
+ # @param resource_group_name [String] The name of the resource group that
622
+ # contains the IoT hub.
623
+ # @param resource_name [String] The name of the IoT hub.
624
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
625
+ # endpoint.
596
626
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
597
627
  # will be added to the HTTP request.
598
628
  #
@@ -604,13 +634,17 @@ module Azure::ARM::IotHub
604
634
  end
605
635
 
606
636
  #
607
- # Get EventHub Consumer Groups for an IotHub.
637
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
638
+ # endpoint in an IoT hub.
608
639
  #
609
- # Get EventHub Consumer Groups for an IotHub.
640
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
641
+ # endpoint in an IoT hub.
610
642
  #
611
- # @param resource_group_name [String] The name of the resource group.
612
- # @param resource_name [String] The name of the resource.
613
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
643
+ # @param resource_group_name [String] The name of the resource group that
644
+ # contains the IoT hub.
645
+ # @param resource_name [String] The name of the IoT hub.
646
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
647
+ # endpoint.
614
648
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
615
649
  # will be added to the HTTP request.
616
650
  #
@@ -621,13 +655,17 @@ module Azure::ARM::IotHub
621
655
  end
622
656
 
623
657
  #
624
- # Get EventHub Consumer Groups for an IotHub.
658
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
659
+ # endpoint in an IoT hub.
625
660
  #
626
- # Get EventHub Consumer Groups for an IotHub.
661
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
662
+ # endpoint in an IoT hub.
627
663
  #
628
- # @param resource_group_name [String] The name of the resource group.
629
- # @param resource_name [String] The name of the resource.
630
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
664
+ # @param resource_group_name [String] The name of the resource group that
665
+ # contains the IoT hub.
666
+ # @param resource_name [String] The name of the IoT hub.
667
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
668
+ # endpoint.
631
669
  # @param [Hash{String => String}] A hash of custom headers that will be added
632
670
  # to the HTTP request.
633
671
  #
@@ -687,14 +725,18 @@ module Azure::ARM::IotHub
687
725
  end
688
726
 
689
727
  #
690
- # Get EventHub Consumer Group for an IotHub.
728
+ # Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
729
+ # for an IoT hub.
691
730
  #
692
- # Get EventHub Consumer Group for an IotHub.
731
+ # Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
732
+ # for an IoT hub.
693
733
  #
694
- # @param resource_group_name [String] The name of the resource group.
695
- # @param resource_name [String] The name of the resource.
696
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
697
- # @param name [String] The name of the consumer group.
734
+ # @param resource_group_name [String] The name of the resource group that
735
+ # contains the IoT hub.
736
+ # @param resource_name [String] The name of the IoT hub.
737
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
738
+ # endpoint in the IoT hub.
739
+ # @param name [String] The name of the consumer group to retrieve.
698
740
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
699
741
  # will be added to the HTTP request.
700
742
  #
@@ -706,14 +748,18 @@ module Azure::ARM::IotHub
706
748
  end
707
749
 
708
750
  #
709
- # Get EventHub Consumer Group for an IotHub.
751
+ # Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
752
+ # for an IoT hub.
710
753
  #
711
- # Get EventHub Consumer Group for an IotHub.
754
+ # Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
755
+ # for an IoT hub.
712
756
  #
713
- # @param resource_group_name [String] The name of the resource group.
714
- # @param resource_name [String] The name of the resource.
715
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
716
- # @param name [String] The name of the consumer group.
757
+ # @param resource_group_name [String] The name of the resource group that
758
+ # contains the IoT hub.
759
+ # @param resource_name [String] The name of the IoT hub.
760
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
761
+ # endpoint in the IoT hub.
762
+ # @param name [String] The name of the consumer group to retrieve.
717
763
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
718
764
  # will be added to the HTTP request.
719
765
  #
@@ -724,14 +770,18 @@ module Azure::ARM::IotHub
724
770
  end
725
771
 
726
772
  #
727
- # Get EventHub Consumer Group for an IotHub.
773
+ # Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
774
+ # for an IoT hub.
728
775
  #
729
- # Get EventHub Consumer Group for an IotHub.
776
+ # Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
777
+ # for an IoT hub.
730
778
  #
731
- # @param resource_group_name [String] The name of the resource group.
732
- # @param resource_name [String] The name of the resource.
733
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
734
- # @param name [String] The name of the consumer group.
779
+ # @param resource_group_name [String] The name of the resource group that
780
+ # contains the IoT hub.
781
+ # @param resource_name [String] The name of the IoT hub.
782
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
783
+ # endpoint in the IoT hub.
784
+ # @param name [String] The name of the consumer group to retrieve.
735
785
  # @param [Hash{String => String}] A hash of custom headers that will be added
736
786
  # to the HTTP request.
737
787
  #
@@ -792,14 +842,16 @@ module Azure::ARM::IotHub
792
842
  end
793
843
 
794
844
  #
795
- # Add an EventHub Consumer Group to an IotHub.
845
+ # Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
796
846
  #
797
- # Add an EventHub Consumer Group to an IotHub.
847
+ # Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
798
848
  #
799
- # @param resource_group_name [String] The name of the resource group.
800
- # @param resource_name [String] The name of the resource.
801
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
802
- # @param name [String] The name of the consumer group.
849
+ # @param resource_group_name [String] The name of the resource group that
850
+ # contains the IoT hub.
851
+ # @param resource_name [String] The name of the IoT hub.
852
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
853
+ # endpoint in the IoT hub.
854
+ # @param name [String] The name of the consumer group to add.
803
855
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
804
856
  # will be added to the HTTP request.
805
857
  #
@@ -811,14 +863,16 @@ module Azure::ARM::IotHub
811
863
  end
812
864
 
813
865
  #
814
- # Add an EventHub Consumer Group to an IotHub.
866
+ # Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
815
867
  #
816
- # Add an EventHub Consumer Group to an IotHub.
868
+ # Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
817
869
  #
818
- # @param resource_group_name [String] The name of the resource group.
819
- # @param resource_name [String] The name of the resource.
820
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
821
- # @param name [String] The name of the consumer group.
870
+ # @param resource_group_name [String] The name of the resource group that
871
+ # contains the IoT hub.
872
+ # @param resource_name [String] The name of the IoT hub.
873
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
874
+ # endpoint in the IoT hub.
875
+ # @param name [String] The name of the consumer group to add.
822
876
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
823
877
  # will be added to the HTTP request.
824
878
  #
@@ -829,14 +883,16 @@ module Azure::ARM::IotHub
829
883
  end
830
884
 
831
885
  #
832
- # Add an EventHub Consumer Group to an IotHub.
886
+ # Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
833
887
  #
834
- # Add an EventHub Consumer Group to an IotHub.
888
+ # Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
835
889
  #
836
- # @param resource_group_name [String] The name of the resource group.
837
- # @param resource_name [String] The name of the resource.
838
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
839
- # @param name [String] The name of the consumer group.
890
+ # @param resource_group_name [String] The name of the resource group that
891
+ # contains the IoT hub.
892
+ # @param resource_name [String] The name of the IoT hub.
893
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
894
+ # endpoint in the IoT hub.
895
+ # @param name [String] The name of the consumer group to add.
840
896
  # @param [Hash{String => String}] A hash of custom headers that will be added
841
897
  # to the HTTP request.
842
898
  #
@@ -897,14 +953,16 @@ module Azure::ARM::IotHub
897
953
  end
898
954
 
899
955
  #
900
- # Delete EventHub Consumer Group for an IotHub.
956
+ # Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
901
957
  #
902
- # Delete EventHub Consumer Group for an IotHub.
958
+ # Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
903
959
  #
904
- # @param resource_group_name [String] The name of the resource group.
905
- # @param resource_name [String] The name of the resource.
906
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
907
- # @param name [String] The name of the consumer group.
960
+ # @param resource_group_name [String] The name of the resource group that
961
+ # contains the IoT hub.
962
+ # @param resource_name [String] The name of the IoT hub.
963
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
964
+ # endpoint in the IoT hub.
965
+ # @param name [String] The name of the consumer group to delete.
908
966
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
909
967
  # will be added to the HTTP request.
910
968
  #
@@ -915,14 +973,16 @@ module Azure::ARM::IotHub
915
973
  end
916
974
 
917
975
  #
918
- # Delete EventHub Consumer Group for an IotHub.
976
+ # Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
919
977
  #
920
- # Delete EventHub Consumer Group for an IotHub.
978
+ # Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
921
979
  #
922
- # @param resource_group_name [String] The name of the resource group.
923
- # @param resource_name [String] The name of the resource.
924
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
925
- # @param name [String] The name of the consumer group.
980
+ # @param resource_group_name [String] The name of the resource group that
981
+ # contains the IoT hub.
982
+ # @param resource_name [String] The name of the IoT hub.
983
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
984
+ # endpoint in the IoT hub.
985
+ # @param name [String] The name of the consumer group to delete.
926
986
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
927
987
  # will be added to the HTTP request.
928
988
  #
@@ -933,14 +993,16 @@ module Azure::ARM::IotHub
933
993
  end
934
994
 
935
995
  #
936
- # Delete EventHub Consumer Group for an IotHub.
996
+ # Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
937
997
  #
938
- # Delete EventHub Consumer Group for an IotHub.
998
+ # Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
939
999
  #
940
- # @param resource_group_name [String] The name of the resource group.
941
- # @param resource_name [String] The name of the resource.
942
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
943
- # @param name [String] The name of the consumer group.
1000
+ # @param resource_group_name [String] The name of the resource group that
1001
+ # contains the IoT hub.
1002
+ # @param resource_name [String] The name of the IoT hub.
1003
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
1004
+ # endpoint in the IoT hub.
1005
+ # @param name [String] The name of the consumer group to delete.
944
1006
  # @param [Hash{String => String}] A hash of custom headers that will be added
945
1007
  # to the HTTP request.
946
1008
  #
@@ -991,12 +1053,15 @@ module Azure::ARM::IotHub
991
1053
  end
992
1054
 
993
1055
  #
994
- # Get all the jobs in an IotHub.
1056
+ # Get a list of all the jobs in an IoT hub. For more information, see:
1057
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
995
1058
  #
996
- # Get all the jobs in an IotHub.
1059
+ # Get a list of all the jobs in an IoT hub. For more information, see:
1060
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
997
1061
  #
998
- # @param resource_group_name [String] The name of the resource group.
999
- # @param resource_name [String] The name of the resource.
1062
+ # @param resource_group_name [String] The name of the resource group that
1063
+ # contains the IoT hub.
1064
+ # @param resource_name [String] The name of the IoT hub.
1000
1065
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1001
1066
  # will be added to the HTTP request.
1002
1067
  #
@@ -1008,12 +1073,15 @@ module Azure::ARM::IotHub
1008
1073
  end
1009
1074
 
1010
1075
  #
1011
- # Get all the jobs in an IotHub.
1076
+ # Get a list of all the jobs in an IoT hub. For more information, see:
1077
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1012
1078
  #
1013
- # Get all the jobs in an IotHub.
1079
+ # Get a list of all the jobs in an IoT hub. For more information, see:
1080
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1014
1081
  #
1015
- # @param resource_group_name [String] The name of the resource group.
1016
- # @param resource_name [String] The name of the resource.
1082
+ # @param resource_group_name [String] The name of the resource group that
1083
+ # contains the IoT hub.
1084
+ # @param resource_name [String] The name of the IoT hub.
1017
1085
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1018
1086
  # will be added to the HTTP request.
1019
1087
  #
@@ -1024,12 +1092,15 @@ module Azure::ARM::IotHub
1024
1092
  end
1025
1093
 
1026
1094
  #
1027
- # Get all the jobs in an IotHub.
1095
+ # Get a list of all the jobs in an IoT hub. For more information, see:
1096
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1028
1097
  #
1029
- # Get all the jobs in an IotHub.
1098
+ # Get a list of all the jobs in an IoT hub. For more information, see:
1099
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1030
1100
  #
1031
- # @param resource_group_name [String] The name of the resource group.
1032
- # @param resource_name [String] The name of the resource.
1101
+ # @param resource_group_name [String] The name of the resource group that
1102
+ # contains the IoT hub.
1103
+ # @param resource_name [String] The name of the IoT hub.
1033
1104
  # @param [Hash{String => String}] A hash of custom headers that will be added
1034
1105
  # to the HTTP request.
1035
1106
  #
@@ -1088,12 +1159,15 @@ module Azure::ARM::IotHub
1088
1159
  end
1089
1160
 
1090
1161
  #
1091
- # Get a job in an IotHub.
1162
+ # Get the details of a job from an IoT hub. For more information, see:
1163
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1092
1164
  #
1093
- # Get a job in an IotHub.
1165
+ # Get the details of a job from an IoT hub. For more information, see:
1166
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1094
1167
  #
1095
- # @param resource_group_name [String] The name of the resource group.
1096
- # @param resource_name [String] The name of the resource.
1168
+ # @param resource_group_name [String] The name of the resource group that
1169
+ # contains the IoT hub.
1170
+ # @param resource_name [String] The name of the IoT hub.
1097
1171
  # @param job_id [String] The job identifier.
1098
1172
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1099
1173
  # will be added to the HTTP request.
@@ -1106,12 +1180,15 @@ module Azure::ARM::IotHub
1106
1180
  end
1107
1181
 
1108
1182
  #
1109
- # Get a job in an IotHub.
1183
+ # Get the details of a job from an IoT hub. For more information, see:
1184
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1110
1185
  #
1111
- # Get a job in an IotHub.
1186
+ # Get the details of a job from an IoT hub. For more information, see:
1187
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1112
1188
  #
1113
- # @param resource_group_name [String] The name of the resource group.
1114
- # @param resource_name [String] The name of the resource.
1189
+ # @param resource_group_name [String] The name of the resource group that
1190
+ # contains the IoT hub.
1191
+ # @param resource_name [String] The name of the IoT hub.
1115
1192
  # @param job_id [String] The job identifier.
1116
1193
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1117
1194
  # will be added to the HTTP request.
@@ -1123,12 +1200,15 @@ module Azure::ARM::IotHub
1123
1200
  end
1124
1201
 
1125
1202
  #
1126
- # Get a job in an IotHub.
1203
+ # Get the details of a job from an IoT hub. For more information, see:
1204
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1127
1205
  #
1128
- # Get a job in an IotHub.
1206
+ # Get the details of a job from an IoT hub. For more information, see:
1207
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
1129
1208
  #
1130
- # @param resource_group_name [String] The name of the resource group.
1131
- # @param resource_name [String] The name of the resource.
1209
+ # @param resource_group_name [String] The name of the resource group that
1210
+ # contains the IoT hub.
1211
+ # @param resource_name [String] The name of the IoT hub.
1132
1212
  # @param job_id [String] The job identifier.
1133
1213
  # @param [Hash{String => String}] A hash of custom headers that will be added
1134
1214
  # to the HTTP request.
@@ -1189,12 +1269,13 @@ module Azure::ARM::IotHub
1189
1269
  end
1190
1270
 
1191
1271
  #
1192
- # Get quota metrics for an IotHub.
1272
+ # Get the quota metrics for an IoT hub.
1193
1273
  #
1194
- # Get quota metrics for an IotHub.
1274
+ # Get the quota metrics for an IoT hub.
1195
1275
  #
1196
- # @param resource_group_name [String] The name of the resource group.
1197
- # @param resource_name [String] The name of the resource.
1276
+ # @param resource_group_name [String] The name of the resource group that
1277
+ # contains the IoT hub.
1278
+ # @param resource_name [String] The name of the IoT hub.
1198
1279
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1199
1280
  # will be added to the HTTP request.
1200
1281
  #
@@ -1206,12 +1287,13 @@ module Azure::ARM::IotHub
1206
1287
  end
1207
1288
 
1208
1289
  #
1209
- # Get quota metrics for an IotHub.
1290
+ # Get the quota metrics for an IoT hub.
1210
1291
  #
1211
- # Get quota metrics for an IotHub.
1292
+ # Get the quota metrics for an IoT hub.
1212
1293
  #
1213
- # @param resource_group_name [String] The name of the resource group.
1214
- # @param resource_name [String] The name of the resource.
1294
+ # @param resource_group_name [String] The name of the resource group that
1295
+ # contains the IoT hub.
1296
+ # @param resource_name [String] The name of the IoT hub.
1215
1297
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1216
1298
  # will be added to the HTTP request.
1217
1299
  #
@@ -1222,12 +1304,13 @@ module Azure::ARM::IotHub
1222
1304
  end
1223
1305
 
1224
1306
  #
1225
- # Get quota metrics for an IotHub.
1307
+ # Get the quota metrics for an IoT hub.
1226
1308
  #
1227
- # Get quota metrics for an IotHub.
1309
+ # Get the quota metrics for an IoT hub.
1228
1310
  #
1229
- # @param resource_group_name [String] The name of the resource group.
1230
- # @param resource_name [String] The name of the resource.
1311
+ # @param resource_group_name [String] The name of the resource group that
1312
+ # contains the IoT hub.
1313
+ # @param resource_name [String] The name of the IoT hub.
1231
1314
  # @param [Hash{String => String}] A hash of custom headers that will be added
1232
1315
  # to the HTTP request.
1233
1316
  #
@@ -1286,12 +1369,12 @@ module Azure::ARM::IotHub
1286
1369
  end
1287
1370
 
1288
1371
  #
1289
- # Check if an IotHub name is available.
1372
+ # Check if an IoT hub name is available.
1290
1373
  #
1291
- # Check if an IotHub name is available.
1374
+ # Check if an IoT hub name is available.
1292
1375
  #
1293
- # @param operation_inputs [OperationInputs] The operation inputs. Set the name
1294
- # parameter in the operationInputs structure to the desired iothub name.
1376
+ # @param operation_inputs [OperationInputs] Set the name parameter in the
1377
+ # OperationInputs structure to the name of the IoT hub to check.
1295
1378
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1296
1379
  # will be added to the HTTP request.
1297
1380
  #
@@ -1303,12 +1386,12 @@ module Azure::ARM::IotHub
1303
1386
  end
1304
1387
 
1305
1388
  #
1306
- # Check if an IotHub name is available.
1389
+ # Check if an IoT hub name is available.
1307
1390
  #
1308
- # Check if an IotHub name is available.
1391
+ # Check if an IoT hub name is available.
1309
1392
  #
1310
- # @param operation_inputs [OperationInputs] The operation inputs. Set the name
1311
- # parameter in the operationInputs structure to the desired iothub name.
1393
+ # @param operation_inputs [OperationInputs] Set the name parameter in the
1394
+ # OperationInputs structure to the name of the IoT hub to check.
1312
1395
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1313
1396
  # will be added to the HTTP request.
1314
1397
  #
@@ -1319,12 +1402,12 @@ module Azure::ARM::IotHub
1319
1402
  end
1320
1403
 
1321
1404
  #
1322
- # Check if an IotHub name is available.
1405
+ # Check if an IoT hub name is available.
1323
1406
  #
1324
- # Check if an IotHub name is available.
1407
+ # Check if an IoT hub name is available.
1325
1408
  #
1326
- # @param operation_inputs [OperationInputs] The operation inputs. Set the name
1327
- # parameter in the operationInputs structure to the desired iothub name.
1409
+ # @param operation_inputs [OperationInputs] Set the name parameter in the
1410
+ # OperationInputs structure to the name of the IoT hub to check.
1328
1411
  # @param [Hash{String => String}] A hash of custom headers that will be added
1329
1412
  # to the HTTP request.
1330
1413
  #
@@ -1391,12 +1474,15 @@ module Azure::ARM::IotHub
1391
1474
  end
1392
1475
 
1393
1476
  #
1394
- # Get all keys for an IotHub.
1477
+ # Get the security metadata for an IoT hub. For more information, see:
1478
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1395
1479
  #
1396
- # Get all keys for an IotHub.
1480
+ # Get the security metadata for an IoT hub. For more information, see:
1481
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1397
1482
  #
1398
- # @param resource_group_name [String] The name of the resource group.
1399
- # @param resource_name [String] The name of the resource.
1483
+ # @param resource_group_name [String] The name of the resource group that
1484
+ # contains the IoT hub.
1485
+ # @param resource_name [String] The name of the IoT hub.
1400
1486
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1401
1487
  # will be added to the HTTP request.
1402
1488
  #
@@ -1408,12 +1494,15 @@ module Azure::ARM::IotHub
1408
1494
  end
1409
1495
 
1410
1496
  #
1411
- # Get all keys for an IotHub.
1497
+ # Get the security metadata for an IoT hub. For more information, see:
1498
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1412
1499
  #
1413
- # Get all keys for an IotHub.
1500
+ # Get the security metadata for an IoT hub. For more information, see:
1501
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1414
1502
  #
1415
- # @param resource_group_name [String] The name of the resource group.
1416
- # @param resource_name [String] The name of the resource.
1503
+ # @param resource_group_name [String] The name of the resource group that
1504
+ # contains the IoT hub.
1505
+ # @param resource_name [String] The name of the IoT hub.
1417
1506
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1418
1507
  # will be added to the HTTP request.
1419
1508
  #
@@ -1424,12 +1513,15 @@ module Azure::ARM::IotHub
1424
1513
  end
1425
1514
 
1426
1515
  #
1427
- # Get all keys for an IotHub.
1516
+ # Get the security metadata for an IoT hub. For more information, see:
1517
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1428
1518
  #
1429
- # Get all keys for an IotHub.
1519
+ # Get the security metadata for an IoT hub. For more information, see:
1520
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1430
1521
  #
1431
- # @param resource_group_name [String] The name of the resource group.
1432
- # @param resource_name [String] The name of the resource.
1522
+ # @param resource_group_name [String] The name of the resource group that
1523
+ # contains the IoT hub.
1524
+ # @param resource_name [String] The name of the IoT hub.
1433
1525
  # @param [Hash{String => String}] A hash of custom headers that will be added
1434
1526
  # to the HTTP request.
1435
1527
  #
@@ -1488,13 +1580,16 @@ module Azure::ARM::IotHub
1488
1580
  end
1489
1581
 
1490
1582
  #
1491
- # Get the Key given a specific KeyName for an IotHub.
1583
+ # Get a shared access policy by name from an IoT hub. For more information,
1584
+ # see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1492
1585
  #
1493
- # Get the Key given a specific KeyName for an IotHub.
1586
+ # Get a shared access policy by name from an IoT hub. For more information,
1587
+ # see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1494
1588
  #
1495
- # @param resource_group_name [String] The name of the resource group.
1496
- # @param resource_name [String] The name of the resource.
1497
- # @param key_name [String] The name of the key.
1589
+ # @param resource_group_name [String] The name of the resource group that
1590
+ # contains the IoT hub.
1591
+ # @param resource_name [String] The name of the IoT hub.
1592
+ # @param key_name [String] The name of the shared access policy.
1498
1593
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1499
1594
  # will be added to the HTTP request.
1500
1595
  #
@@ -1506,13 +1601,16 @@ module Azure::ARM::IotHub
1506
1601
  end
1507
1602
 
1508
1603
  #
1509
- # Get the Key given a specific KeyName for an IotHub.
1604
+ # Get a shared access policy by name from an IoT hub. For more information,
1605
+ # see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1510
1606
  #
1511
- # Get the Key given a specific KeyName for an IotHub.
1607
+ # Get a shared access policy by name from an IoT hub. For more information,
1608
+ # see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1512
1609
  #
1513
- # @param resource_group_name [String] The name of the resource group.
1514
- # @param resource_name [String] The name of the resource.
1515
- # @param key_name [String] The name of the key.
1610
+ # @param resource_group_name [String] The name of the resource group that
1611
+ # contains the IoT hub.
1612
+ # @param resource_name [String] The name of the IoT hub.
1613
+ # @param key_name [String] The name of the shared access policy.
1516
1614
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1517
1615
  # will be added to the HTTP request.
1518
1616
  #
@@ -1523,13 +1621,16 @@ module Azure::ARM::IotHub
1523
1621
  end
1524
1622
 
1525
1623
  #
1526
- # Get the Key given a specific KeyName for an IotHub.
1624
+ # Get a shared access policy by name from an IoT hub. For more information,
1625
+ # see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1527
1626
  #
1528
- # Get the Key given a specific KeyName for an IotHub.
1627
+ # Get a shared access policy by name from an IoT hub. For more information,
1628
+ # see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
1529
1629
  #
1530
- # @param resource_group_name [String] The name of the resource group.
1531
- # @param resource_name [String] The name of the resource.
1532
- # @param key_name [String] The name of the key.
1630
+ # @param resource_group_name [String] The name of the resource group that
1631
+ # contains the IoT hub.
1632
+ # @param resource_name [String] The name of the IoT hub.
1633
+ # @param key_name [String] The name of the shared access policy.
1533
1634
  # @param [Hash{String => String}] A hash of custom headers that will be added
1534
1635
  # to the HTTP request.
1535
1636
  #
@@ -1589,14 +1690,19 @@ module Azure::ARM::IotHub
1589
1690
  end
1590
1691
 
1591
1692
  #
1592
- # Export all the devices in an IotHub.
1693
+ # Exports all the device identities in the IoT hub identity registry to an
1694
+ # Azure Storage blob container. For more information, see:
1695
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1593
1696
  #
1594
- # Export all the devices in an IotHub.
1697
+ # Exports all the device identities in the IoT hub identity registry to an
1698
+ # Azure Storage blob container. For more information, see:
1699
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1595
1700
  #
1596
- # @param resource_group_name [String] The name of the resource group.
1597
- # @param resource_name [String] The name of the resource.
1598
- # @param export_devices_parameters [ExportDevicesRequest] The export devices
1599
- # parameters.
1701
+ # @param resource_group_name [String] The name of the resource group that
1702
+ # contains the IoT hub.
1703
+ # @param resource_name [String] The name of the IoT hub.
1704
+ # @param export_devices_parameters [ExportDevicesRequest] The parameters that
1705
+ # specify the export devices operation.
1600
1706
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1601
1707
  # will be added to the HTTP request.
1602
1708
  #
@@ -1608,14 +1714,19 @@ module Azure::ARM::IotHub
1608
1714
  end
1609
1715
 
1610
1716
  #
1611
- # Export all the devices in an IotHub.
1717
+ # Exports all the device identities in the IoT hub identity registry to an
1718
+ # Azure Storage blob container. For more information, see:
1719
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1612
1720
  #
1613
- # Export all the devices in an IotHub.
1721
+ # Exports all the device identities in the IoT hub identity registry to an
1722
+ # Azure Storage blob container. For more information, see:
1723
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1614
1724
  #
1615
- # @param resource_group_name [String] The name of the resource group.
1616
- # @param resource_name [String] The name of the resource.
1617
- # @param export_devices_parameters [ExportDevicesRequest] The export devices
1618
- # parameters.
1725
+ # @param resource_group_name [String] The name of the resource group that
1726
+ # contains the IoT hub.
1727
+ # @param resource_name [String] The name of the IoT hub.
1728
+ # @param export_devices_parameters [ExportDevicesRequest] The parameters that
1729
+ # specify the export devices operation.
1619
1730
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1620
1731
  # will be added to the HTTP request.
1621
1732
  #
@@ -1626,14 +1737,19 @@ module Azure::ARM::IotHub
1626
1737
  end
1627
1738
 
1628
1739
  #
1629
- # Export all the devices in an IotHub.
1740
+ # Exports all the device identities in the IoT hub identity registry to an
1741
+ # Azure Storage blob container. For more information, see:
1742
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1630
1743
  #
1631
- # Export all the devices in an IotHub.
1744
+ # Exports all the device identities in the IoT hub identity registry to an
1745
+ # Azure Storage blob container. For more information, see:
1746
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1632
1747
  #
1633
- # @param resource_group_name [String] The name of the resource group.
1634
- # @param resource_name [String] The name of the resource.
1635
- # @param export_devices_parameters [ExportDevicesRequest] The export devices
1636
- # parameters.
1748
+ # @param resource_group_name [String] The name of the resource group that
1749
+ # contains the IoT hub.
1750
+ # @param resource_name [String] The name of the IoT hub.
1751
+ # @param export_devices_parameters [ExportDevicesRequest] The parameters that
1752
+ # specify the export devices operation.
1637
1753
  # @param [Hash{String => String}] A hash of custom headers that will be added
1638
1754
  # to the HTTP request.
1639
1755
  #
@@ -1702,14 +1818,19 @@ module Azure::ARM::IotHub
1702
1818
  end
1703
1819
 
1704
1820
  #
1705
- # Import all the devices in an IotHub.
1821
+ # Import, update, or delete device identities in the IoT hub identity registry
1822
+ # from a blob. For more information, see:
1823
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1706
1824
  #
1707
- # Import all the devices in an IotHub.
1825
+ # Import, update, or delete device identities in the IoT hub identity registry
1826
+ # from a blob. For more information, see:
1827
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1708
1828
  #
1709
- # @param resource_group_name [String] The name of the resource group.
1710
- # @param resource_name [String] The name of the resource.
1711
- # @param import_devices_parameters [ImportDevicesRequest] The import devices
1712
- # parameters.
1829
+ # @param resource_group_name [String] The name of the resource group that
1830
+ # contains the IoT hub.
1831
+ # @param resource_name [String] The name of the IoT hub.
1832
+ # @param import_devices_parameters [ImportDevicesRequest] The parameters that
1833
+ # specify the import devices operation.
1713
1834
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1714
1835
  # will be added to the HTTP request.
1715
1836
  #
@@ -1721,14 +1842,19 @@ module Azure::ARM::IotHub
1721
1842
  end
1722
1843
 
1723
1844
  #
1724
- # Import all the devices in an IotHub.
1845
+ # Import, update, or delete device identities in the IoT hub identity registry
1846
+ # from a blob. For more information, see:
1847
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1725
1848
  #
1726
- # Import all the devices in an IotHub.
1849
+ # Import, update, or delete device identities in the IoT hub identity registry
1850
+ # from a blob. For more information, see:
1851
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1727
1852
  #
1728
- # @param resource_group_name [String] The name of the resource group.
1729
- # @param resource_name [String] The name of the resource.
1730
- # @param import_devices_parameters [ImportDevicesRequest] The import devices
1731
- # parameters.
1853
+ # @param resource_group_name [String] The name of the resource group that
1854
+ # contains the IoT hub.
1855
+ # @param resource_name [String] The name of the IoT hub.
1856
+ # @param import_devices_parameters [ImportDevicesRequest] The parameters that
1857
+ # specify the import devices operation.
1732
1858
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1733
1859
  # will be added to the HTTP request.
1734
1860
  #
@@ -1739,14 +1865,19 @@ module Azure::ARM::IotHub
1739
1865
  end
1740
1866
 
1741
1867
  #
1742
- # Import all the devices in an IotHub.
1868
+ # Import, update, or delete device identities in the IoT hub identity registry
1869
+ # from a blob. For more information, see:
1870
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1743
1871
  #
1744
- # Import all the devices in an IotHub.
1872
+ # Import, update, or delete device identities in the IoT hub identity registry
1873
+ # from a blob. For more information, see:
1874
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
1745
1875
  #
1746
- # @param resource_group_name [String] The name of the resource group.
1747
- # @param resource_name [String] The name of the resource.
1748
- # @param import_devices_parameters [ImportDevicesRequest] The import devices
1749
- # parameters.
1876
+ # @param resource_group_name [String] The name of the resource group that
1877
+ # contains the IoT hub.
1878
+ # @param resource_name [String] The name of the IoT hub.
1879
+ # @param import_devices_parameters [ImportDevicesRequest] The parameters that
1880
+ # specify the import devices operation.
1750
1881
  # @param [Hash{String => String}] A hash of custom headers that will be added
1751
1882
  # to the HTTP request.
1752
1883
  #
@@ -1815,13 +1946,17 @@ module Azure::ARM::IotHub
1815
1946
  end
1816
1947
 
1817
1948
  #
1818
- # Create or update an IotHub.
1949
+ # Create or update the metadata of an IoT hub.
1819
1950
  #
1820
- # Create or update an IotHub.
1951
+ # Create or update the metadata of an Iot hub. The usual pattern to modify a
1952
+ # property is to retrieve the IoT hub metadata and security metadata, and then
1953
+ # combine them with the modified values in a new body to update the IoT hub.
1821
1954
  #
1822
- # @param resource_group_name [String] The name of the resource group.
1823
- # @param resource_name [String] The name of the resource.
1824
- # @param iot_hub_description [IotHubDescription] The Iot hub description.
1955
+ # @param resource_group_name [String] The name of the resource group that
1956
+ # contains the IoT hub.
1957
+ # @param resource_name [String] The name of the IoT hub to create or update.
1958
+ # @param iot_hub_description [IotHubDescription] The IoT hub metadata and
1959
+ # security metadata.
1825
1960
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1826
1961
  # will be added to the HTTP request.
1827
1962
  #
@@ -1833,13 +1968,17 @@ module Azure::ARM::IotHub
1833
1968
  end
1834
1969
 
1835
1970
  #
1836
- # Create or update an IotHub.
1971
+ # Create or update the metadata of an IoT hub.
1837
1972
  #
1838
- # Create or update an IotHub.
1973
+ # Create or update the metadata of an Iot hub. The usual pattern to modify a
1974
+ # property is to retrieve the IoT hub metadata and security metadata, and then
1975
+ # combine them with the modified values in a new body to update the IoT hub.
1839
1976
  #
1840
- # @param resource_group_name [String] The name of the resource group.
1841
- # @param resource_name [String] The name of the resource.
1842
- # @param iot_hub_description [IotHubDescription] The Iot hub description.
1977
+ # @param resource_group_name [String] The name of the resource group that
1978
+ # contains the IoT hub.
1979
+ # @param resource_name [String] The name of the IoT hub to create or update.
1980
+ # @param iot_hub_description [IotHubDescription] The IoT hub metadata and
1981
+ # security metadata.
1843
1982
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1844
1983
  # will be added to the HTTP request.
1845
1984
  #
@@ -1850,13 +1989,17 @@ module Azure::ARM::IotHub
1850
1989
  end
1851
1990
 
1852
1991
  #
1853
- # Create or update an IotHub.
1992
+ # Create or update the metadata of an IoT hub.
1854
1993
  #
1855
- # Create or update an IotHub.
1994
+ # Create or update the metadata of an Iot hub. The usual pattern to modify a
1995
+ # property is to retrieve the IoT hub metadata and security metadata, and then
1996
+ # combine them with the modified values in a new body to update the IoT hub.
1856
1997
  #
1857
- # @param resource_group_name [String] The name of the resource group.
1858
- # @param resource_name [String] The name of the resource.
1859
- # @param iot_hub_description [IotHubDescription] The Iot hub description.
1998
+ # @param resource_group_name [String] The name of the resource group that
1999
+ # contains the IoT hub.
2000
+ # @param resource_name [String] The name of the IoT hub to create or update.
2001
+ # @param iot_hub_description [IotHubDescription] The IoT hub metadata and
2002
+ # security metadata.
1860
2003
  # @param [Hash{String => String}] A hash of custom headers that will be added
1861
2004
  # to the HTTP request.
1862
2005
  #
@@ -1901,7 +2044,7 @@ module Azure::ARM::IotHub
1901
2044
  http_response = result.response
1902
2045
  status_code = http_response.status
1903
2046
  response_content = http_response.body
1904
- unless status_code == 201
2047
+ unless status_code == 201 || status_code == 200
1905
2048
  error_model = JSON.load(response_content)
1906
2049
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1907
2050
  end
@@ -1917,6 +2060,16 @@ module Azure::ARM::IotHub
1917
2060
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1918
2061
  end
1919
2062
  end
2063
+ # Deserialize Response
2064
+ if status_code == 200
2065
+ begin
2066
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2067
+ result_mapper = IotHubDescription.mapper()
2068
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
2069
+ rescue Exception => e
2070
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2071
+ end
2072
+ end
1920
2073
 
1921
2074
  result
1922
2075
  end
@@ -1925,16 +2078,17 @@ module Azure::ARM::IotHub
1925
2078
  end
1926
2079
 
1927
2080
  #
1928
- # Delete an IotHub.
2081
+ # Delete an IoT hub.
1929
2082
  #
1930
- # Delete an IotHub.
2083
+ # Delete an IoT hub.
1931
2084
  #
1932
- # @param resource_group_name [String] The name of the resource group.
1933
- # @param resource_name [String] The name of the resource.
2085
+ # @param resource_group_name [String] The name of the resource group that
2086
+ # contains the IoT hub.
2087
+ # @param resource_name [String] The name of the IoT hub to delete.
1934
2088
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1935
2089
  # will be added to the HTTP request.
1936
2090
  #
1937
- # @return [IotHubDescription] operation results.
2091
+ # @return [Object] operation results.
1938
2092
  #
1939
2093
  def begin_delete(resource_group_name, resource_name, custom_headers = nil)
1940
2094
  response = begin_delete_async(resource_group_name, resource_name, custom_headers).value!
@@ -1942,12 +2096,13 @@ module Azure::ARM::IotHub
1942
2096
  end
1943
2097
 
1944
2098
  #
1945
- # Delete an IotHub.
2099
+ # Delete an IoT hub.
1946
2100
  #
1947
- # Delete an IotHub.
2101
+ # Delete an IoT hub.
1948
2102
  #
1949
- # @param resource_group_name [String] The name of the resource group.
1950
- # @param resource_name [String] The name of the resource.
2103
+ # @param resource_group_name [String] The name of the resource group that
2104
+ # contains the IoT hub.
2105
+ # @param resource_name [String] The name of the IoT hub to delete.
1951
2106
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1952
2107
  # will be added to the HTTP request.
1953
2108
  #
@@ -1958,12 +2113,13 @@ module Azure::ARM::IotHub
1958
2113
  end
1959
2114
 
1960
2115
  #
1961
- # Delete an IotHub.
2116
+ # Delete an IoT hub.
1962
2117
  #
1963
- # Delete an IotHub.
2118
+ # Delete an IoT hub.
1964
2119
  #
1965
- # @param resource_group_name [String] The name of the resource group.
1966
- # @param resource_name [String] The name of the resource.
2120
+ # @param resource_group_name [String] The name of the resource group that
2121
+ # contains the IoT hub.
2122
+ # @param resource_name [String] The name of the IoT hub to delete.
1967
2123
  # @param [Hash{String => String}] A hash of custom headers that will be added
1968
2124
  # to the HTTP request.
1969
2125
  #
@@ -1998,7 +2154,7 @@ module Azure::ARM::IotHub
1998
2154
  http_response = result.response
1999
2155
  status_code = http_response.status
2000
2156
  response_content = http_response.body
2001
- unless status_code == 202
2157
+ unless status_code == 202 || status_code == 200 || status_code == 204 || status_code == 404
2002
2158
  error_model = JSON.load(response_content)
2003
2159
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2004
2160
  end
@@ -2014,6 +2170,26 @@ module Azure::ARM::IotHub
2014
2170
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2015
2171
  end
2016
2172
  end
2173
+ # Deserialize Response
2174
+ if status_code == 200
2175
+ begin
2176
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2177
+ result_mapper = IotHubDescription.mapper()
2178
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
2179
+ rescue Exception => e
2180
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2181
+ end
2182
+ end
2183
+ # Deserialize Response
2184
+ if status_code == 404
2185
+ begin
2186
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2187
+ result_mapper = ErrorDetails.mapper()
2188
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
2189
+ rescue Exception => e
2190
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2191
+ end
2192
+ end
2017
2193
 
2018
2194
  result
2019
2195
  end
@@ -2022,9 +2198,9 @@ module Azure::ARM::IotHub
2022
2198
  end
2023
2199
 
2024
2200
  #
2025
- # Get all IotHubs in a subscription.
2201
+ # Get all the IoT hubs in a subscription.
2026
2202
  #
2027
- # Get all IotHubs in a subscription.
2203
+ # Get all the IoT hubs in a subscription.
2028
2204
  #
2029
2205
  # @param next_page_link [String] The NextLink from the previous successful call
2030
2206
  # to List operation.
@@ -2039,9 +2215,9 @@ module Azure::ARM::IotHub
2039
2215
  end
2040
2216
 
2041
2217
  #
2042
- # Get all IotHubs in a subscription.
2218
+ # Get all the IoT hubs in a subscription.
2043
2219
  #
2044
- # Get all IotHubs in a subscription.
2220
+ # Get all the IoT hubs in a subscription.
2045
2221
  #
2046
2222
  # @param next_page_link [String] The NextLink from the previous successful call
2047
2223
  # to List operation.
@@ -2055,9 +2231,9 @@ module Azure::ARM::IotHub
2055
2231
  end
2056
2232
 
2057
2233
  #
2058
- # Get all IotHubs in a subscription.
2234
+ # Get all the IoT hubs in a subscription.
2059
2235
  #
2060
- # Get all IotHubs in a subscription.
2236
+ # Get all the IoT hubs in a subscription.
2061
2237
  #
2062
2238
  # @param next_page_link [String] The NextLink from the previous successful call
2063
2239
  # to List operation.
@@ -2115,9 +2291,9 @@ module Azure::ARM::IotHub
2115
2291
  end
2116
2292
 
2117
2293
  #
2118
- # Get all IotHubs in a Resourcegroup.
2294
+ # Get all the IoT hubs in a resource group.
2119
2295
  #
2120
- # Get all IotHubs in a Resource group.
2296
+ # Get all the IoT hubs in a resource group.
2121
2297
  #
2122
2298
  # @param next_page_link [String] The NextLink from the previous successful call
2123
2299
  # to List operation.
@@ -2132,9 +2308,9 @@ module Azure::ARM::IotHub
2132
2308
  end
2133
2309
 
2134
2310
  #
2135
- # Get all IotHubs in a Resourcegroup.
2311
+ # Get all the IoT hubs in a resource group.
2136
2312
  #
2137
- # Get all IotHubs in a Resource group.
2313
+ # Get all the IoT hubs in a resource group.
2138
2314
  #
2139
2315
  # @param next_page_link [String] The NextLink from the previous successful call
2140
2316
  # to List operation.
@@ -2148,9 +2324,9 @@ module Azure::ARM::IotHub
2148
2324
  end
2149
2325
 
2150
2326
  #
2151
- # Get all IotHubs in a Resourcegroup.
2327
+ # Get all the IoT hubs in a resource group.
2152
2328
  #
2153
- # Get all IotHubs in a Resource group.
2329
+ # Get all the IoT hubs in a resource group.
2154
2330
  #
2155
2331
  # @param next_page_link [String] The NextLink from the previous successful call
2156
2332
  # to List operation.
@@ -2208,9 +2384,9 @@ module Azure::ARM::IotHub
2208
2384
  end
2209
2385
 
2210
2386
  #
2211
- # Get Valid Skus.
2387
+ # Get the list of valid SKUs for an IoT hub.
2212
2388
  #
2213
- # Get Valid Skus.
2389
+ # Get the list of valid SKUs for an IoT hub.
2214
2390
  #
2215
2391
  # @param next_page_link [String] The NextLink from the previous successful call
2216
2392
  # to List operation.
@@ -2225,9 +2401,9 @@ module Azure::ARM::IotHub
2225
2401
  end
2226
2402
 
2227
2403
  #
2228
- # Get Valid Skus.
2404
+ # Get the list of valid SKUs for an IoT hub.
2229
2405
  #
2230
- # Get Valid Skus.
2406
+ # Get the list of valid SKUs for an IoT hub.
2231
2407
  #
2232
2408
  # @param next_page_link [String] The NextLink from the previous successful call
2233
2409
  # to List operation.
@@ -2241,9 +2417,9 @@ module Azure::ARM::IotHub
2241
2417
  end
2242
2418
 
2243
2419
  #
2244
- # Get Valid Skus.
2420
+ # Get the list of valid SKUs for an IoT hub.
2245
2421
  #
2246
- # Get Valid Skus.
2422
+ # Get the list of valid SKUs for an IoT hub.
2247
2423
  #
2248
2424
  # @param next_page_link [String] The NextLink from the previous successful call
2249
2425
  # to List operation.
@@ -2301,9 +2477,11 @@ module Azure::ARM::IotHub
2301
2477
  end
2302
2478
 
2303
2479
  #
2304
- # Get EventHub Consumer Groups for an IotHub.
2480
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2481
+ # endpoint in an IoT hub.
2305
2482
  #
2306
- # Get EventHub Consumer Groups for an IotHub.
2483
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2484
+ # endpoint in an IoT hub.
2307
2485
  #
2308
2486
  # @param next_page_link [String] The NextLink from the previous successful call
2309
2487
  # to List operation.
@@ -2318,9 +2496,11 @@ module Azure::ARM::IotHub
2318
2496
  end
2319
2497
 
2320
2498
  #
2321
- # Get EventHub Consumer Groups for an IotHub.
2499
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2500
+ # endpoint in an IoT hub.
2322
2501
  #
2323
- # Get EventHub Consumer Groups for an IotHub.
2502
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2503
+ # endpoint in an IoT hub.
2324
2504
  #
2325
2505
  # @param next_page_link [String] The NextLink from the previous successful call
2326
2506
  # to List operation.
@@ -2334,9 +2514,11 @@ module Azure::ARM::IotHub
2334
2514
  end
2335
2515
 
2336
2516
  #
2337
- # Get EventHub Consumer Groups for an IotHub.
2517
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2518
+ # endpoint in an IoT hub.
2338
2519
  #
2339
- # Get EventHub Consumer Groups for an IotHub.
2520
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2521
+ # endpoint in an IoT hub.
2340
2522
  #
2341
2523
  # @param next_page_link [String] The NextLink from the previous successful call
2342
2524
  # to List operation.
@@ -2394,9 +2576,11 @@ module Azure::ARM::IotHub
2394
2576
  end
2395
2577
 
2396
2578
  #
2397
- # Get all the jobs in an IotHub.
2579
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2580
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2398
2581
  #
2399
- # Get all the jobs in an IotHub.
2582
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2583
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2400
2584
  #
2401
2585
  # @param next_page_link [String] The NextLink from the previous successful call
2402
2586
  # to List operation.
@@ -2411,9 +2595,11 @@ module Azure::ARM::IotHub
2411
2595
  end
2412
2596
 
2413
2597
  #
2414
- # Get all the jobs in an IotHub.
2598
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2599
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2415
2600
  #
2416
- # Get all the jobs in an IotHub.
2601
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2602
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2417
2603
  #
2418
2604
  # @param next_page_link [String] The NextLink from the previous successful call
2419
2605
  # to List operation.
@@ -2427,9 +2613,11 @@ module Azure::ARM::IotHub
2427
2613
  end
2428
2614
 
2429
2615
  #
2430
- # Get all the jobs in an IotHub.
2616
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2617
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2431
2618
  #
2432
- # Get all the jobs in an IotHub.
2619
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2620
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2433
2621
  #
2434
2622
  # @param next_page_link [String] The NextLink from the previous successful call
2435
2623
  # to List operation.
@@ -2487,9 +2675,9 @@ module Azure::ARM::IotHub
2487
2675
  end
2488
2676
 
2489
2677
  #
2490
- # Get quota metrics for an IotHub.
2678
+ # Get the quota metrics for an IoT hub.
2491
2679
  #
2492
- # Get quota metrics for an IotHub.
2680
+ # Get the quota metrics for an IoT hub.
2493
2681
  #
2494
2682
  # @param next_page_link [String] The NextLink from the previous successful call
2495
2683
  # to List operation.
@@ -2504,9 +2692,9 @@ module Azure::ARM::IotHub
2504
2692
  end
2505
2693
 
2506
2694
  #
2507
- # Get quota metrics for an IotHub.
2695
+ # Get the quota metrics for an IoT hub.
2508
2696
  #
2509
- # Get quota metrics for an IotHub.
2697
+ # Get the quota metrics for an IoT hub.
2510
2698
  #
2511
2699
  # @param next_page_link [String] The NextLink from the previous successful call
2512
2700
  # to List operation.
@@ -2520,9 +2708,9 @@ module Azure::ARM::IotHub
2520
2708
  end
2521
2709
 
2522
2710
  #
2523
- # Get quota metrics for an IotHub.
2711
+ # Get the quota metrics for an IoT hub.
2524
2712
  #
2525
- # Get quota metrics for an IotHub.
2713
+ # Get the quota metrics for an IoT hub.
2526
2714
  #
2527
2715
  # @param next_page_link [String] The NextLink from the previous successful call
2528
2716
  # to List operation.
@@ -2580,9 +2768,11 @@ module Azure::ARM::IotHub
2580
2768
  end
2581
2769
 
2582
2770
  #
2583
- # Get all keys for an IotHub.
2771
+ # Get the security metadata for an IoT hub. For more information, see:
2772
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2584
2773
  #
2585
- # Get all keys for an IotHub.
2774
+ # Get the security metadata for an IoT hub. For more information, see:
2775
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2586
2776
  #
2587
2777
  # @param next_page_link [String] The NextLink from the previous successful call
2588
2778
  # to List operation.
@@ -2597,9 +2787,11 @@ module Azure::ARM::IotHub
2597
2787
  end
2598
2788
 
2599
2789
  #
2600
- # Get all keys for an IotHub.
2790
+ # Get the security metadata for an IoT hub. For more information, see:
2791
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2601
2792
  #
2602
- # Get all keys for an IotHub.
2793
+ # Get the security metadata for an IoT hub. For more information, see:
2794
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2603
2795
  #
2604
2796
  # @param next_page_link [String] The NextLink from the previous successful call
2605
2797
  # to List operation.
@@ -2613,9 +2805,11 @@ module Azure::ARM::IotHub
2613
2805
  end
2614
2806
 
2615
2807
  #
2616
- # Get all keys for an IotHub.
2808
+ # Get the security metadata for an IoT hub. For more information, see:
2809
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2617
2810
  #
2618
- # Get all keys for an IotHub.
2811
+ # Get the security metadata for an IoT hub. For more information, see:
2812
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2619
2813
  #
2620
2814
  # @param next_page_link [String] The NextLink from the previous successful call
2621
2815
  # to List operation.
@@ -2673,9 +2867,9 @@ module Azure::ARM::IotHub
2673
2867
  end
2674
2868
 
2675
2869
  #
2676
- # Get all IotHubs in a subscription.
2870
+ # Get all the IoT hubs in a subscription.
2677
2871
  #
2678
- # Get all IotHubs in a subscription.
2872
+ # Get all the IoT hubs in a subscription.
2679
2873
  #
2680
2874
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2681
2875
  # will be added to the HTTP request.
@@ -2695,11 +2889,12 @@ module Azure::ARM::IotHub
2695
2889
  end
2696
2890
 
2697
2891
  #
2698
- # Get all IotHubs in a Resourcegroup.
2892
+ # Get all the IoT hubs in a resource group.
2699
2893
  #
2700
- # Get all IotHubs in a Resource group.
2894
+ # Get all the IoT hubs in a resource group.
2701
2895
  #
2702
- # @param resource_group_name [String] The name of the resource group.
2896
+ # @param resource_group_name [String] The name of the resource group that
2897
+ # contains the IoT hubs.
2703
2898
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2704
2899
  # will be added to the HTTP request.
2705
2900
  #
@@ -2718,12 +2913,13 @@ module Azure::ARM::IotHub
2718
2913
  end
2719
2914
 
2720
2915
  #
2721
- # Get Valid Skus.
2916
+ # Get the list of valid SKUs for an IoT hub.
2722
2917
  #
2723
- # Get Valid Skus.
2918
+ # Get the list of valid SKUs for an IoT hub.
2724
2919
  #
2725
- # @param resource_group_name [String] The name of the resource group.
2726
- # @param resource_name [String] The name of the resource.
2920
+ # @param resource_group_name [String] The name of the resource group that
2921
+ # contains the IoT hub.
2922
+ # @param resource_name [String] The name of the IoT hub.
2727
2923
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2728
2924
  # will be added to the HTTP request.
2729
2925
  #
@@ -2742,13 +2938,17 @@ module Azure::ARM::IotHub
2742
2938
  end
2743
2939
 
2744
2940
  #
2745
- # Get EventHub Consumer Groups for an IotHub.
2941
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2942
+ # endpoint in an IoT hub.
2746
2943
  #
2747
- # Get EventHub Consumer Groups for an IotHub.
2944
+ # Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
2945
+ # endpoint in an IoT hub.
2748
2946
  #
2749
- # @param resource_group_name [String] The name of the resource group.
2750
- # @param resource_name [String] The name of the resource.
2751
- # @param event_hub_endpoint_name [String] The name of the event hub endpoint.
2947
+ # @param resource_group_name [String] The name of the resource group that
2948
+ # contains the IoT hub.
2949
+ # @param resource_name [String] The name of the IoT hub.
2950
+ # @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
2951
+ # endpoint.
2752
2952
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2753
2953
  # will be added to the HTTP request.
2754
2954
  #
@@ -2767,12 +2967,15 @@ module Azure::ARM::IotHub
2767
2967
  end
2768
2968
 
2769
2969
  #
2770
- # Get all the jobs in an IotHub.
2970
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2971
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2771
2972
  #
2772
- # Get all the jobs in an IotHub.
2973
+ # Get a list of all the jobs in an IoT hub. For more information, see:
2974
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
2773
2975
  #
2774
- # @param resource_group_name [String] The name of the resource group.
2775
- # @param resource_name [String] The name of the resource.
2976
+ # @param resource_group_name [String] The name of the resource group that
2977
+ # contains the IoT hub.
2978
+ # @param resource_name [String] The name of the IoT hub.
2776
2979
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2777
2980
  # will be added to the HTTP request.
2778
2981
  #
@@ -2791,12 +2994,13 @@ module Azure::ARM::IotHub
2791
2994
  end
2792
2995
 
2793
2996
  #
2794
- # Get quota metrics for an IotHub.
2997
+ # Get the quota metrics for an IoT hub.
2795
2998
  #
2796
- # Get quota metrics for an IotHub.
2999
+ # Get the quota metrics for an IoT hub.
2797
3000
  #
2798
- # @param resource_group_name [String] The name of the resource group.
2799
- # @param resource_name [String] The name of the resource.
3001
+ # @param resource_group_name [String] The name of the resource group that
3002
+ # contains the IoT hub.
3003
+ # @param resource_name [String] The name of the IoT hub.
2800
3004
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2801
3005
  # will be added to the HTTP request.
2802
3006
  #
@@ -2815,12 +3019,15 @@ module Azure::ARM::IotHub
2815
3019
  end
2816
3020
 
2817
3021
  #
2818
- # Get all keys for an IotHub.
3022
+ # Get the security metadata for an IoT hub. For more information, see:
3023
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2819
3024
  #
2820
- # Get all keys for an IotHub.
3025
+ # Get the security metadata for an IoT hub. For more information, see:
3026
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
2821
3027
  #
2822
- # @param resource_group_name [String] The name of the resource group.
2823
- # @param resource_name [String] The name of the resource.
3028
+ # @param resource_group_name [String] The name of the resource group that
3029
+ # contains the IoT hub.
3030
+ # @param resource_name [String] The name of the IoT hub.
2824
3031
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2825
3032
  # will be added to the HTTP request.
2826
3033
  #