azure_mgmt_iot_hub 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,8 +34,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
34
34
  #
35
35
  # @return [CertificateListDescription] operation results.
36
36
  #
37
- def list_by_iot_hub(resource_group_name, resource_name, custom_headers = nil)
38
- response = list_by_iot_hub_async(resource_group_name, resource_name, custom_headers).value!
37
+ def list_by_iot_hub(resource_group_name, resource_name, custom_headers:nil)
38
+ response = list_by_iot_hub_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -52,8 +52,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
52
52
  #
53
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
54
  #
55
- def list_by_iot_hub_with_http_info(resource_group_name, resource_name, custom_headers = nil)
56
- list_by_iot_hub_async(resource_group_name, resource_name, custom_headers).value!
55
+ def list_by_iot_hub_with_http_info(resource_group_name, resource_name, custom_headers:nil)
56
+ list_by_iot_hub_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
57
57
  end
58
58
 
59
59
  #
@@ -69,7 +69,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def list_by_iot_hub_async(resource_group_name, resource_name, custom_headers = nil)
72
+ def list_by_iot_hub_async(resource_group_name, resource_name, custom_headers:nil)
73
73
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
74
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
75
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -77,6 +77,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
77
77
 
78
78
 
79
79
  request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
81
 
81
82
  # Set Headers
82
83
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -135,8 +136,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
135
136
  #
136
137
  # @return [CertificateDescription] operation results.
137
138
  #
138
- def get(resource_group_name, resource_name, certificate_name, custom_headers = nil)
139
- response = get_async(resource_group_name, resource_name, certificate_name, custom_headers).value!
139
+ def get(resource_group_name, resource_name, certificate_name, custom_headers:nil)
140
+ response = get_async(resource_group_name, resource_name, certificate_name, custom_headers:custom_headers).value!
140
141
  response.body unless response.nil?
141
142
  end
142
143
 
@@ -154,8 +155,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
154
155
  #
155
156
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
156
157
  #
157
- def get_with_http_info(resource_group_name, resource_name, certificate_name, custom_headers = nil)
158
- get_async(resource_group_name, resource_name, certificate_name, custom_headers).value!
158
+ def get_with_http_info(resource_group_name, resource_name, certificate_name, custom_headers:nil)
159
+ get_async(resource_group_name, resource_name, certificate_name, custom_headers:custom_headers).value!
159
160
  end
160
161
 
161
162
  #
@@ -172,7 +173,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
172
173
  #
173
174
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
174
175
  #
175
- def get_async(resource_group_name, resource_name, certificate_name, custom_headers = nil)
176
+ def get_async(resource_group_name, resource_name, certificate_name, custom_headers:nil)
176
177
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
177
178
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
178
179
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -182,6 +183,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
182
183
 
183
184
 
184
185
  request_headers = {}
186
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
187
 
186
188
  # Set Headers
187
189
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -244,8 +246,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
244
246
  #
245
247
  # @return [CertificateDescription] operation results.
246
248
  #
247
- def create_or_update(resource_group_name, resource_name, certificate_name, certificate_description, if_match = nil, custom_headers = nil)
248
- response = create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match, custom_headers).value!
249
+ def create_or_update(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil)
250
+ response = create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:if_match, custom_headers:custom_headers).value!
249
251
  response.body unless response.nil?
250
252
  end
251
253
 
@@ -267,8 +269,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
267
269
  #
268
270
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
269
271
  #
270
- def create_or_update_with_http_info(resource_group_name, resource_name, certificate_name, certificate_description, if_match = nil, custom_headers = nil)
271
- create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match, custom_headers).value!
272
+ def create_or_update_with_http_info(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil)
273
+ create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:if_match, custom_headers:custom_headers).value!
272
274
  end
273
275
 
274
276
  #
@@ -289,7 +291,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
289
291
  #
290
292
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
291
293
  #
292
- def create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match = nil, custom_headers = nil)
294
+ def create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil)
293
295
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
294
296
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
295
297
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -300,14 +302,13 @@ module Azure::IotHub::Mgmt::V2017_07_01
300
302
 
301
303
 
302
304
  request_headers = {}
305
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
303
306
 
304
307
  # Set Headers
305
308
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
306
309
  request_headers['If-Match'] = if_match unless if_match.nil?
307
310
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
308
311
 
309
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
310
-
311
312
  # Serialize Request
312
313
  request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateBodyDescription.mapper()
313
314
  request_content = @client.serialize(request_mapper, certificate_description)
@@ -378,8 +379,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
378
379
  # will be added to the HTTP request.
379
380
  #
380
381
  #
381
- def delete(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil)
382
- response = delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value!
382
+ def delete(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil)
383
+ response = delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value!
383
384
  nil
384
385
  end
385
386
 
@@ -398,8 +399,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
398
399
  #
399
400
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
400
401
  #
401
- def delete_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil)
402
- delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value!
402
+ def delete_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil)
403
+ delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value!
403
404
  end
404
405
 
405
406
  #
@@ -417,7 +418,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
417
418
  #
418
419
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
419
420
  #
420
- def delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil)
421
+ def delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil)
421
422
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
422
423
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
423
424
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -428,6 +429,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
428
429
 
429
430
 
430
431
  request_headers = {}
432
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
431
433
 
432
434
  # Set Headers
433
435
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -479,8 +481,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
479
481
  #
480
482
  # @return [CertificateWithNonceDescription] operation results.
481
483
  #
482
- def generate_verification_code(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil)
483
- response = generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value!
484
+ def generate_verification_code(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil)
485
+ response = generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value!
484
486
  response.body unless response.nil?
485
487
  end
486
488
 
@@ -500,8 +502,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
500
502
  #
501
503
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
502
504
  #
503
- def generate_verification_code_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil)
504
- generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value!
505
+ def generate_verification_code_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil)
506
+ generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value!
505
507
  end
506
508
 
507
509
  #
@@ -520,7 +522,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
520
522
  #
521
523
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
522
524
  #
523
- def generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil)
525
+ def generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil)
524
526
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
525
527
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
526
528
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -531,6 +533,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
531
533
 
532
534
 
533
535
  request_headers = {}
536
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
534
537
 
535
538
  # Set Headers
536
539
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -594,8 +597,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
594
597
  #
595
598
  # @return [CertificateDescription] operation results.
596
599
  #
597
- def verify(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers = nil)
598
- response = verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers).value!
600
+ def verify(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:nil)
601
+ response = verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:custom_headers).value!
599
602
  response.body unless response.nil?
600
603
  end
601
604
 
@@ -617,8 +620,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
617
620
  #
618
621
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
619
622
  #
620
- def verify_with_http_info(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers = nil)
621
- verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers).value!
623
+ def verify_with_http_info(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:nil)
624
+ verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:custom_headers).value!
622
625
  end
623
626
 
624
627
  #
@@ -639,7 +642,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
639
642
  #
640
643
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
641
644
  #
642
- def verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers = nil)
645
+ def verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:nil)
643
646
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
644
647
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
645
648
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -651,14 +654,13 @@ module Azure::IotHub::Mgmt::V2017_07_01
651
654
 
652
655
 
653
656
  request_headers = {}
657
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
654
658
 
655
659
  # Set Headers
656
660
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
657
661
  request_headers['If-Match'] = if_match unless if_match.nil?
658
662
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
659
663
 
660
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
661
-
662
664
  # Serialize Request
663
665
  request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::CertificateVerificationDescription.mapper()
664
666
  request_content = @client.serialize(request_mapper, certificate_verification_body)
@@ -112,6 +112,9 @@ module Azure::IotHub::Mgmt::V2017_07_01
112
112
  fail ArgumentError, 'path is nil' if path.nil?
113
113
 
114
114
  request_url = options[:base_url] || @base_url
115
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
116
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
117
+ end
115
118
 
116
119
  request_headers = @request_headers
117
120
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -128,7 +131,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
128
131
  #
129
132
  def add_telemetry
130
133
  sdk_information = 'azure_mgmt_iot_hub'
131
- sdk_information = "#{sdk_information}/0.15.2"
134
+ sdk_information = "#{sdk_information}/0.16.0"
132
135
  add_user_agent_information(sdk_information)
133
136
  end
134
137
  end
@@ -34,8 +34,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
34
34
  #
35
35
  # @return [IotHubDescription] operation results.
36
36
  #
37
- def get(resource_group_name, resource_name, custom_headers = nil)
38
- response = get_async(resource_group_name, resource_name, custom_headers).value!
37
+ def get(resource_group_name, resource_name, custom_headers:nil)
38
+ response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -52,8 +52,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
52
52
  #
53
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
54
  #
55
- def get_with_http_info(resource_group_name, resource_name, custom_headers = nil)
56
- get_async(resource_group_name, resource_name, custom_headers).value!
55
+ def get_with_http_info(resource_group_name, resource_name, custom_headers:nil)
56
+ get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
57
57
  end
58
58
 
59
59
  #
@@ -69,7 +69,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def get_async(resource_group_name, resource_name, custom_headers = nil)
72
+ def get_async(resource_group_name, resource_name, custom_headers:nil)
73
73
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
74
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
75
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -77,6 +77,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
77
77
 
78
78
 
79
79
  request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
81
 
81
82
  # Set Headers
82
83
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -140,8 +141,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
140
141
  #
141
142
  # @return [IotHubDescription] operation results.
142
143
  #
143
- def create_or_update(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
144
- response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value!
144
+ def create_or_update(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil)
145
+ response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers).value!
145
146
  response.body unless response.nil?
146
147
  end
147
148
 
@@ -159,9 +160,9 @@ module Azure::IotHub::Mgmt::V2017_07_01
159
160
  # @return [Concurrent::Promise] promise which provides async access to http
160
161
  # response.
161
162
  #
162
- def create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
163
+ def create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil)
163
164
  # Send request
164
- promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers)
165
+ promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers)
165
166
 
166
167
  promise = promise.then do |response|
167
168
  # Defining deserialization method.
@@ -190,8 +191,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
190
191
  #
191
192
  # @return [Object] operation results.
192
193
  #
193
- def delete(resource_group_name, resource_name, custom_headers = nil)
194
- response = delete_async(resource_group_name, resource_name, custom_headers).value!
194
+ def delete(resource_group_name, resource_name, custom_headers:nil)
195
+ response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
195
196
  response.body unless response.nil?
196
197
  end
197
198
 
@@ -205,9 +206,9 @@ module Azure::IotHub::Mgmt::V2017_07_01
205
206
  # @return [Concurrent::Promise] promise which provides async access to http
206
207
  # response.
207
208
  #
208
- def delete_async(resource_group_name, resource_name, custom_headers = nil)
209
+ def delete_async(resource_group_name, resource_name, custom_headers:nil)
209
210
  # Send request
210
- promise = begin_delete_async(resource_group_name, resource_name, custom_headers)
211
+ promise = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers)
211
212
 
212
213
  promise = promise.then do |response|
213
214
  # Defining deserialization method.
@@ -240,8 +241,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
240
241
  #
241
242
  # @return [Array<IotHubDescription>] operation results.
242
243
  #
243
- def list_by_subscription(custom_headers = nil)
244
- first_page = list_by_subscription_as_lazy(custom_headers)
244
+ def list_by_subscription(custom_headers:nil)
245
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
245
246
  first_page.get_all_items
246
247
  end
247
248
 
@@ -255,8 +256,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
255
256
  #
256
257
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
257
258
  #
258
- def list_by_subscription_with_http_info(custom_headers = nil)
259
- list_by_subscription_async(custom_headers).value!
259
+ def list_by_subscription_with_http_info(custom_headers:nil)
260
+ list_by_subscription_async(custom_headers:custom_headers).value!
260
261
  end
261
262
 
262
263
  #
@@ -269,12 +270,13 @@ module Azure::IotHub::Mgmt::V2017_07_01
269
270
  #
270
271
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
271
272
  #
272
- def list_by_subscription_async(custom_headers = nil)
273
+ def list_by_subscription_async(custom_headers:nil)
273
274
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
274
275
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
275
276
 
276
277
 
277
278
  request_headers = {}
279
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
278
280
 
279
281
  # Set Headers
280
282
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -331,8 +333,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
331
333
  #
332
334
  # @return [Array<IotHubDescription>] operation results.
333
335
  #
334
- def list_by_resource_group(resource_group_name, custom_headers = nil)
335
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
336
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
337
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
336
338
  first_page.get_all_items
337
339
  end
338
340
 
@@ -348,8 +350,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
348
350
  #
349
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
350
352
  #
351
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
352
- list_by_resource_group_async(resource_group_name, custom_headers).value!
353
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
354
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
353
355
  end
354
356
 
355
357
  #
@@ -364,13 +366,14 @@ module Azure::IotHub::Mgmt::V2017_07_01
364
366
  #
365
367
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
366
368
  #
367
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
369
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
368
370
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
369
371
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
372
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
371
373
 
372
374
 
373
375
  request_headers = {}
376
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
374
377
 
375
378
  # Set Headers
376
379
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -428,8 +431,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
428
431
  #
429
432
  # @return [RegistryStatistics] operation results.
430
433
  #
431
- def get_stats(resource_group_name, resource_name, custom_headers = nil)
432
- response = get_stats_async(resource_group_name, resource_name, custom_headers).value!
434
+ def get_stats(resource_group_name, resource_name, custom_headers:nil)
435
+ response = get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
433
436
  response.body unless response.nil?
434
437
  end
435
438
 
@@ -446,8 +449,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
446
449
  #
447
450
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
448
451
  #
449
- def get_stats_with_http_info(resource_group_name, resource_name, custom_headers = nil)
450
- get_stats_async(resource_group_name, resource_name, custom_headers).value!
452
+ def get_stats_with_http_info(resource_group_name, resource_name, custom_headers:nil)
453
+ get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
451
454
  end
452
455
 
453
456
  #
@@ -463,7 +466,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
463
466
  #
464
467
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
465
468
  #
466
- def get_stats_async(resource_group_name, resource_name, custom_headers = nil)
469
+ def get_stats_async(resource_group_name, resource_name, custom_headers:nil)
467
470
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
468
471
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
469
472
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -471,6 +474,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
471
474
 
472
475
 
473
476
  request_headers = {}
477
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
474
478
 
475
479
  # Set Headers
476
480
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -528,8 +532,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
528
532
  #
529
533
  # @return [Array<IotHubSkuDescription>] operation results.
530
534
  #
531
- def get_valid_skus(resource_group_name, resource_name, custom_headers = nil)
532
- first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers)
535
+ def get_valid_skus(resource_group_name, resource_name, custom_headers:nil)
536
+ first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers)
533
537
  first_page.get_all_items
534
538
  end
535
539
 
@@ -546,8 +550,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
546
550
  #
547
551
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
548
552
  #
549
- def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers = nil)
550
- get_valid_skus_async(resource_group_name, resource_name, custom_headers).value!
553
+ def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers:nil)
554
+ get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
551
555
  end
552
556
 
553
557
  #
@@ -563,7 +567,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
563
567
  #
564
568
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
565
569
  #
566
- def get_valid_skus_async(resource_group_name, resource_name, custom_headers = nil)
570
+ def get_valid_skus_async(resource_group_name, resource_name, custom_headers:nil)
567
571
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
568
572
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
569
573
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -571,6 +575,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
571
575
 
572
576
 
573
577
  request_headers = {}
578
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
574
579
 
575
580
  # Set Headers
576
581
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -632,8 +637,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
632
637
  #
633
638
  # @return [Array<String>] operation results.
634
639
  #
635
- def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
636
- first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers)
640
+ def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil)
641
+ first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers)
637
642
  first_page.get_all_items
638
643
  end
639
644
 
@@ -654,8 +659,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
654
659
  #
655
660
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
656
661
  #
657
- def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
658
- list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value!
662
+ def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil)
663
+ list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value!
659
664
  end
660
665
 
661
666
  #
@@ -675,7 +680,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
675
680
  #
676
681
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
677
682
  #
678
- def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
683
+ def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil)
679
684
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
680
685
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
681
686
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -684,6 +689,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
684
689
 
685
690
 
686
691
  request_headers = {}
692
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
687
693
 
688
694
  # Set Headers
689
695
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -746,8 +752,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
746
752
  #
747
753
  # @return [EventHubConsumerGroupInfo] operation results.
748
754
  #
749
- def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
750
- response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
755
+ def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
756
+ response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value!
751
757
  response.body unless response.nil?
752
758
  end
753
759
 
@@ -769,8 +775,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
769
775
  #
770
776
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
771
777
  #
772
- def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
773
- get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
778
+ def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
779
+ get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value!
774
780
  end
775
781
 
776
782
  #
@@ -791,7 +797,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
791
797
  #
792
798
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
793
799
  #
794
- def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
800
+ def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
795
801
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
796
802
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
797
803
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -801,6 +807,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
801
807
 
802
808
 
803
809
  request_headers = {}
810
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
804
811
 
805
812
  # Set Headers
806
813
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -861,8 +868,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
861
868
  #
862
869
  # @return [EventHubConsumerGroupInfo] operation results.
863
870
  #
864
- def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
865
- response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
871
+ def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
872
+ response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value!
866
873
  response.body unless response.nil?
867
874
  end
868
875
 
@@ -882,8 +889,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
882
889
  #
883
890
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
884
891
  #
885
- def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
886
- create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
892
+ def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
893
+ create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value!
887
894
  end
888
895
 
889
896
  #
@@ -902,7 +909,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
902
909
  #
903
910
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
904
911
  #
905
- def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
912
+ def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
906
913
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
907
914
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
908
915
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -912,6 +919,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
912
919
 
913
920
 
914
921
  request_headers = {}
922
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
915
923
 
916
924
  # Set Headers
917
925
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -971,8 +979,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
971
979
  # will be added to the HTTP request.
972
980
  #
973
981
  #
974
- def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
975
- response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
982
+ def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
983
+ response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value!
976
984
  nil
977
985
  end
978
986
 
@@ -992,8 +1000,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
992
1000
  #
993
1001
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
994
1002
  #
995
- def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
996
- delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
1003
+ def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
1004
+ delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value!
997
1005
  end
998
1006
 
999
1007
  #
@@ -1012,7 +1020,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1012
1020
  #
1013
1021
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1014
1022
  #
1015
- def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
1023
+ def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil)
1016
1024
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1017
1025
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1018
1026
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1022,6 +1030,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1022
1030
 
1023
1031
 
1024
1032
  request_headers = {}
1033
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1025
1034
 
1026
1035
  # Set Headers
1027
1036
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1071,8 +1080,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1071
1080
  #
1072
1081
  # @return [Array<JobResponse>] operation results.
1073
1082
  #
1074
- def list_jobs(resource_group_name, resource_name, custom_headers = nil)
1075
- first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers)
1083
+ def list_jobs(resource_group_name, resource_name, custom_headers:nil)
1084
+ first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers)
1076
1085
  first_page.get_all_items
1077
1086
  end
1078
1087
 
@@ -1091,8 +1100,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1091
1100
  #
1092
1101
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1093
1102
  #
1094
- def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers = nil)
1095
- list_jobs_async(resource_group_name, resource_name, custom_headers).value!
1103
+ def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers:nil)
1104
+ list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1096
1105
  end
1097
1106
 
1098
1107
  #
@@ -1110,7 +1119,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1110
1119
  #
1111
1120
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1112
1121
  #
1113
- def list_jobs_async(resource_group_name, resource_name, custom_headers = nil)
1122
+ def list_jobs_async(resource_group_name, resource_name, custom_headers:nil)
1114
1123
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1115
1124
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1116
1125
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1118,6 +1127,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1118
1127
 
1119
1128
 
1120
1129
  request_headers = {}
1130
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1121
1131
 
1122
1132
  # Set Headers
1123
1133
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1178,8 +1188,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1178
1188
  #
1179
1189
  # @return [JobResponse] operation results.
1180
1190
  #
1181
- def get_job(resource_group_name, resource_name, job_id, custom_headers = nil)
1182
- response = get_job_async(resource_group_name, resource_name, job_id, custom_headers).value!
1191
+ def get_job(resource_group_name, resource_name, job_id, custom_headers:nil)
1192
+ response = get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value!
1183
1193
  response.body unless response.nil?
1184
1194
  end
1185
1195
 
@@ -1199,8 +1209,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1199
1209
  #
1200
1210
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1201
1211
  #
1202
- def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers = nil)
1203
- get_job_async(resource_group_name, resource_name, job_id, custom_headers).value!
1212
+ def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers:nil)
1213
+ get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value!
1204
1214
  end
1205
1215
 
1206
1216
  #
@@ -1219,7 +1229,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1219
1229
  #
1220
1230
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1221
1231
  #
1222
- def get_job_async(resource_group_name, resource_name, job_id, custom_headers = nil)
1232
+ def get_job_async(resource_group_name, resource_name, job_id, custom_headers:nil)
1223
1233
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1224
1234
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1225
1235
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1228,6 +1238,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1228
1238
 
1229
1239
 
1230
1240
  request_headers = {}
1241
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1231
1242
 
1232
1243
  # Set Headers
1233
1244
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1285,8 +1296,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1285
1296
  #
1286
1297
  # @return [Array<IotHubQuotaMetricInfo>] operation results.
1287
1298
  #
1288
- def get_quota_metrics(resource_group_name, resource_name, custom_headers = nil)
1289
- first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers)
1299
+ def get_quota_metrics(resource_group_name, resource_name, custom_headers:nil)
1300
+ first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers)
1290
1301
  first_page.get_all_items
1291
1302
  end
1292
1303
 
@@ -1303,8 +1314,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1303
1314
  #
1304
1315
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1305
1316
  #
1306
- def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers = nil)
1307
- get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value!
1317
+ def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers:nil)
1318
+ get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1308
1319
  end
1309
1320
 
1310
1321
  #
@@ -1320,7 +1331,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1320
1331
  #
1321
1332
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1322
1333
  #
1323
- def get_quota_metrics_async(resource_group_name, resource_name, custom_headers = nil)
1334
+ def get_quota_metrics_async(resource_group_name, resource_name, custom_headers:nil)
1324
1335
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1325
1336
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1326
1337
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1328,6 +1339,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1328
1339
 
1329
1340
 
1330
1341
  request_headers = {}
1342
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1331
1343
 
1332
1344
  # Set Headers
1333
1345
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1384,8 +1396,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1384
1396
  #
1385
1397
  # @return [IotHubNameAvailabilityInfo] operation results.
1386
1398
  #
1387
- def check_name_availability(operation_inputs, custom_headers = nil)
1388
- response = check_name_availability_async(operation_inputs, custom_headers).value!
1399
+ def check_name_availability(operation_inputs, custom_headers:nil)
1400
+ response = check_name_availability_async(operation_inputs, custom_headers:custom_headers).value!
1389
1401
  response.body unless response.nil?
1390
1402
  end
1391
1403
 
@@ -1401,8 +1413,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1401
1413
  #
1402
1414
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1403
1415
  #
1404
- def check_name_availability_with_http_info(operation_inputs, custom_headers = nil)
1405
- check_name_availability_async(operation_inputs, custom_headers).value!
1416
+ def check_name_availability_with_http_info(operation_inputs, custom_headers:nil)
1417
+ check_name_availability_async(operation_inputs, custom_headers:custom_headers).value!
1406
1418
  end
1407
1419
 
1408
1420
  #
@@ -1417,20 +1429,19 @@ module Azure::IotHub::Mgmt::V2017_07_01
1417
1429
  #
1418
1430
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1419
1431
  #
1420
- def check_name_availability_async(operation_inputs, custom_headers = nil)
1432
+ def check_name_availability_async(operation_inputs, custom_headers:nil)
1421
1433
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1422
1434
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1423
1435
  fail ArgumentError, 'operation_inputs is nil' if operation_inputs.nil?
1424
1436
 
1425
1437
 
1426
1438
  request_headers = {}
1439
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1427
1440
 
1428
1441
  # Set Headers
1429
1442
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1430
1443
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1431
1444
 
1432
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1433
-
1434
1445
  # Serialize Request
1435
1446
  request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::OperationInputs.mapper()
1436
1447
  request_content = @client.serialize(request_mapper, operation_inputs)
@@ -1492,8 +1503,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1492
1503
  #
1493
1504
  # @return [Array<SharedAccessSignatureAuthorizationRule>] operation results.
1494
1505
  #
1495
- def list_keys(resource_group_name, resource_name, custom_headers = nil)
1496
- first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers)
1506
+ def list_keys(resource_group_name, resource_name, custom_headers:nil)
1507
+ first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers)
1497
1508
  first_page.get_all_items
1498
1509
  end
1499
1510
 
@@ -1512,8 +1523,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1512
1523
  #
1513
1524
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1514
1525
  #
1515
- def list_keys_with_http_info(resource_group_name, resource_name, custom_headers = nil)
1516
- list_keys_async(resource_group_name, resource_name, custom_headers).value!
1526
+ def list_keys_with_http_info(resource_group_name, resource_name, custom_headers:nil)
1527
+ list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1517
1528
  end
1518
1529
 
1519
1530
  #
@@ -1531,7 +1542,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1531
1542
  #
1532
1543
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1533
1544
  #
1534
- def list_keys_async(resource_group_name, resource_name, custom_headers = nil)
1545
+ def list_keys_async(resource_group_name, resource_name, custom_headers:nil)
1535
1546
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1536
1547
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1537
1548
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1539,6 +1550,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1539
1550
 
1540
1551
 
1541
1552
  request_headers = {}
1553
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1542
1554
 
1543
1555
  # Set Headers
1544
1556
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1599,8 +1611,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1599
1611
  #
1600
1612
  # @return [SharedAccessSignatureAuthorizationRule] operation results.
1601
1613
  #
1602
- def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers = nil)
1603
- response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value!
1614
+ def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers:nil)
1615
+ response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value!
1604
1616
  response.body unless response.nil?
1605
1617
  end
1606
1618
 
@@ -1620,8 +1632,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1620
1632
  #
1621
1633
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1622
1634
  #
1623
- def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers = nil)
1624
- get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value!
1635
+ def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers:nil)
1636
+ get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value!
1625
1637
  end
1626
1638
 
1627
1639
  #
@@ -1640,7 +1652,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1640
1652
  #
1641
1653
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1642
1654
  #
1643
- def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers = nil)
1655
+ def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:nil)
1644
1656
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1645
1657
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1646
1658
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1649,6 +1661,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1649
1661
 
1650
1662
 
1651
1663
  request_headers = {}
1664
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1652
1665
 
1653
1666
  # Set Headers
1654
1667
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1712,8 +1725,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1712
1725
  #
1713
1726
  # @return [JobResponse] operation results.
1714
1727
  #
1715
- def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil)
1716
- response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value!
1728
+ def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil)
1729
+ response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value!
1717
1730
  response.body unless response.nil?
1718
1731
  end
1719
1732
 
@@ -1736,8 +1749,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1736
1749
  #
1737
1750
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1738
1751
  #
1739
- def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil)
1740
- export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value!
1752
+ def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil)
1753
+ export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value!
1741
1754
  end
1742
1755
 
1743
1756
  #
@@ -1759,7 +1772,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1759
1772
  #
1760
1773
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1761
1774
  #
1762
- def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil)
1775
+ def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil)
1763
1776
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1764
1777
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1765
1778
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1768,13 +1781,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
1768
1781
 
1769
1782
 
1770
1783
  request_headers = {}
1784
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1771
1785
 
1772
1786
  # Set Headers
1773
1787
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1774
1788
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1775
1789
 
1776
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1777
-
1778
1790
  # Serialize Request
1779
1791
  request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::ExportDevicesRequest.mapper()
1780
1792
  request_content = @client.serialize(request_mapper, export_devices_parameters)
@@ -1840,8 +1852,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1840
1852
  #
1841
1853
  # @return [JobResponse] operation results.
1842
1854
  #
1843
- def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil)
1844
- response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value!
1855
+ def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil)
1856
+ response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value!
1845
1857
  response.body unless response.nil?
1846
1858
  end
1847
1859
 
@@ -1864,8 +1876,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1864
1876
  #
1865
1877
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1866
1878
  #
1867
- def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil)
1868
- import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value!
1879
+ def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil)
1880
+ import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value!
1869
1881
  end
1870
1882
 
1871
1883
  #
@@ -1887,7 +1899,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
1887
1899
  #
1888
1900
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1889
1901
  #
1890
- def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil)
1902
+ def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil)
1891
1903
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1892
1904
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1893
1905
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1896,13 +1908,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
1896
1908
 
1897
1909
 
1898
1910
  request_headers = {}
1911
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1899
1912
 
1900
1913
  # Set Headers
1901
1914
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1902
1915
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1903
1916
 
1904
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1905
-
1906
1917
  # Serialize Request
1907
1918
  request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::ImportDevicesRequest.mapper()
1908
1919
  request_content = @client.serialize(request_mapper, import_devices_parameters)
@@ -1968,8 +1979,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1968
1979
  #
1969
1980
  # @return [IotHubDescription] operation results.
1970
1981
  #
1971
- def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
1972
- response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value!
1982
+ def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil)
1983
+ response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers).value!
1973
1984
  response.body unless response.nil?
1974
1985
  end
1975
1986
 
@@ -1992,8 +2003,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
1992
2003
  #
1993
2004
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1994
2005
  #
1995
- def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
1996
- begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value!
2006
+ def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil)
2007
+ begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers).value!
1997
2008
  end
1998
2009
 
1999
2010
  #
@@ -2015,7 +2026,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
2015
2026
  #
2016
2027
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2017
2028
  #
2018
- def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
2029
+ def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil)
2019
2030
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2020
2031
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2021
2032
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -2024,14 +2035,13 @@ module Azure::IotHub::Mgmt::V2017_07_01
2024
2035
 
2025
2036
 
2026
2037
  request_headers = {}
2038
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2027
2039
 
2028
2040
  # Set Headers
2029
2041
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2030
2042
  request_headers['If-Match'] = if_match unless if_match.nil?
2031
2043
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2032
2044
 
2033
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
2034
-
2035
2045
  # Serialize Request
2036
2046
  request_mapper = Azure::IotHub::Mgmt::V2017_07_01::Models::IotHubDescription.mapper()
2037
2047
  request_content = @client.serialize(request_mapper, iot_hub_description)
@@ -2101,8 +2111,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2101
2111
  #
2102
2112
  # @return [Object] operation results.
2103
2113
  #
2104
- def begin_delete(resource_group_name, resource_name, custom_headers = nil)
2105
- response = begin_delete_async(resource_group_name, resource_name, custom_headers).value!
2114
+ def begin_delete(resource_group_name, resource_name, custom_headers:nil)
2115
+ response = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
2106
2116
  response.body unless response.nil?
2107
2117
  end
2108
2118
 
@@ -2119,8 +2129,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2119
2129
  #
2120
2130
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2121
2131
  #
2122
- def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers = nil)
2123
- begin_delete_async(resource_group_name, resource_name, custom_headers).value!
2132
+ def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers:nil)
2133
+ begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
2124
2134
  end
2125
2135
 
2126
2136
  #
@@ -2136,7 +2146,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
2136
2146
  #
2137
2147
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2138
2148
  #
2139
- def begin_delete_async(resource_group_name, resource_name, custom_headers = nil)
2149
+ def begin_delete_async(resource_group_name, resource_name, custom_headers:nil)
2140
2150
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2141
2151
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2142
2152
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -2144,6 +2154,7 @@ module Azure::IotHub::Mgmt::V2017_07_01
2144
2154
 
2145
2155
 
2146
2156
  request_headers = {}
2157
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2147
2158
 
2148
2159
  # Set Headers
2149
2160
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2220,8 +2231,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2220
2231
  #
2221
2232
  # @return [IotHubDescriptionListResult] operation results.
2222
2233
  #
2223
- def list_by_subscription_next(next_page_link, custom_headers = nil)
2224
- response = list_by_subscription_next_async(next_page_link, custom_headers).value!
2234
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
2235
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
2225
2236
  response.body unless response.nil?
2226
2237
  end
2227
2238
 
@@ -2237,8 +2248,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2237
2248
  #
2238
2249
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2239
2250
  #
2240
- def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
2241
- list_by_subscription_next_async(next_page_link, custom_headers).value!
2251
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
2252
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
2242
2253
  end
2243
2254
 
2244
2255
  #
@@ -2253,11 +2264,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2253
2264
  #
2254
2265
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2255
2266
  #
2256
- def list_by_subscription_next_async(next_page_link, custom_headers = nil)
2267
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
2257
2268
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2258
2269
 
2259
2270
 
2260
2271
  request_headers = {}
2272
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2261
2273
 
2262
2274
  # Set Headers
2263
2275
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2313,8 +2325,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2313
2325
  #
2314
2326
  # @return [IotHubDescriptionListResult] operation results.
2315
2327
  #
2316
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
2317
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
2328
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
2329
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
2318
2330
  response.body unless response.nil?
2319
2331
  end
2320
2332
 
@@ -2330,8 +2342,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2330
2342
  #
2331
2343
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2332
2344
  #
2333
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
2334
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
2345
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
2346
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
2335
2347
  end
2336
2348
 
2337
2349
  #
@@ -2346,11 +2358,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2346
2358
  #
2347
2359
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2348
2360
  #
2349
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
2361
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
2350
2362
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2351
2363
 
2352
2364
 
2353
2365
  request_headers = {}
2366
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2354
2367
 
2355
2368
  # Set Headers
2356
2369
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2406,8 +2419,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2406
2419
  #
2407
2420
  # @return [IotHubSkuDescriptionListResult] operation results.
2408
2421
  #
2409
- def get_valid_skus_next(next_page_link, custom_headers = nil)
2410
- response = get_valid_skus_next_async(next_page_link, custom_headers).value!
2422
+ def get_valid_skus_next(next_page_link, custom_headers:nil)
2423
+ response = get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2411
2424
  response.body unless response.nil?
2412
2425
  end
2413
2426
 
@@ -2423,8 +2436,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2423
2436
  #
2424
2437
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2425
2438
  #
2426
- def get_valid_skus_next_with_http_info(next_page_link, custom_headers = nil)
2427
- get_valid_skus_next_async(next_page_link, custom_headers).value!
2439
+ def get_valid_skus_next_with_http_info(next_page_link, custom_headers:nil)
2440
+ get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2428
2441
  end
2429
2442
 
2430
2443
  #
@@ -2439,11 +2452,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2439
2452
  #
2440
2453
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2441
2454
  #
2442
- def get_valid_skus_next_async(next_page_link, custom_headers = nil)
2455
+ def get_valid_skus_next_async(next_page_link, custom_headers:nil)
2443
2456
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2444
2457
 
2445
2458
 
2446
2459
  request_headers = {}
2460
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2447
2461
 
2448
2462
  # Set Headers
2449
2463
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2501,8 +2515,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2501
2515
  #
2502
2516
  # @return [EventHubConsumerGroupsListResult] operation results.
2503
2517
  #
2504
- def list_event_hub_consumer_groups_next(next_page_link, custom_headers = nil)
2505
- response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value!
2518
+ def list_event_hub_consumer_groups_next(next_page_link, custom_headers:nil)
2519
+ response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value!
2506
2520
  response.body unless response.nil?
2507
2521
  end
2508
2522
 
@@ -2520,8 +2534,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2520
2534
  #
2521
2535
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2522
2536
  #
2523
- def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers = nil)
2524
- list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value!
2537
+ def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers:nil)
2538
+ list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value!
2525
2539
  end
2526
2540
 
2527
2541
  #
@@ -2538,11 +2552,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2538
2552
  #
2539
2553
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2540
2554
  #
2541
- def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers = nil)
2555
+ def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:nil)
2542
2556
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2543
2557
 
2544
2558
 
2545
2559
  request_headers = {}
2560
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2546
2561
 
2547
2562
  # Set Headers
2548
2563
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2600,8 +2615,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2600
2615
  #
2601
2616
  # @return [JobResponseListResult] operation results.
2602
2617
  #
2603
- def list_jobs_next(next_page_link, custom_headers = nil)
2604
- response = list_jobs_next_async(next_page_link, custom_headers).value!
2618
+ def list_jobs_next(next_page_link, custom_headers:nil)
2619
+ response = list_jobs_next_async(next_page_link, custom_headers:custom_headers).value!
2605
2620
  response.body unless response.nil?
2606
2621
  end
2607
2622
 
@@ -2619,8 +2634,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2619
2634
  #
2620
2635
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2621
2636
  #
2622
- def list_jobs_next_with_http_info(next_page_link, custom_headers = nil)
2623
- list_jobs_next_async(next_page_link, custom_headers).value!
2637
+ def list_jobs_next_with_http_info(next_page_link, custom_headers:nil)
2638
+ list_jobs_next_async(next_page_link, custom_headers:custom_headers).value!
2624
2639
  end
2625
2640
 
2626
2641
  #
@@ -2637,11 +2652,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2637
2652
  #
2638
2653
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2639
2654
  #
2640
- def list_jobs_next_async(next_page_link, custom_headers = nil)
2655
+ def list_jobs_next_async(next_page_link, custom_headers:nil)
2641
2656
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2642
2657
 
2643
2658
 
2644
2659
  request_headers = {}
2660
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2645
2661
 
2646
2662
  # Set Headers
2647
2663
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2697,8 +2713,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2697
2713
  #
2698
2714
  # @return [IotHubQuotaMetricInfoListResult] operation results.
2699
2715
  #
2700
- def get_quota_metrics_next(next_page_link, custom_headers = nil)
2701
- response = get_quota_metrics_next_async(next_page_link, custom_headers).value!
2716
+ def get_quota_metrics_next(next_page_link, custom_headers:nil)
2717
+ response = get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value!
2702
2718
  response.body unless response.nil?
2703
2719
  end
2704
2720
 
@@ -2714,8 +2730,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2714
2730
  #
2715
2731
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2716
2732
  #
2717
- def get_quota_metrics_next_with_http_info(next_page_link, custom_headers = nil)
2718
- get_quota_metrics_next_async(next_page_link, custom_headers).value!
2733
+ def get_quota_metrics_next_with_http_info(next_page_link, custom_headers:nil)
2734
+ get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value!
2719
2735
  end
2720
2736
 
2721
2737
  #
@@ -2730,11 +2746,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2730
2746
  #
2731
2747
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2732
2748
  #
2733
- def get_quota_metrics_next_async(next_page_link, custom_headers = nil)
2749
+ def get_quota_metrics_next_async(next_page_link, custom_headers:nil)
2734
2750
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2735
2751
 
2736
2752
 
2737
2753
  request_headers = {}
2754
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2738
2755
 
2739
2756
  # Set Headers
2740
2757
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2792,8 +2809,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2792
2809
  #
2793
2810
  # @return [SharedAccessSignatureAuthorizationRuleListResult] operation results.
2794
2811
  #
2795
- def list_keys_next(next_page_link, custom_headers = nil)
2796
- response = list_keys_next_async(next_page_link, custom_headers).value!
2812
+ def list_keys_next(next_page_link, custom_headers:nil)
2813
+ response = list_keys_next_async(next_page_link, custom_headers:custom_headers).value!
2797
2814
  response.body unless response.nil?
2798
2815
  end
2799
2816
 
@@ -2811,8 +2828,8 @@ module Azure::IotHub::Mgmt::V2017_07_01
2811
2828
  #
2812
2829
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2813
2830
  #
2814
- def list_keys_next_with_http_info(next_page_link, custom_headers = nil)
2815
- list_keys_next_async(next_page_link, custom_headers).value!
2831
+ def list_keys_next_with_http_info(next_page_link, custom_headers:nil)
2832
+ list_keys_next_async(next_page_link, custom_headers:custom_headers).value!
2816
2833
  end
2817
2834
 
2818
2835
  #
@@ -2829,11 +2846,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2829
2846
  #
2830
2847
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2831
2848
  #
2832
- def list_keys_next_async(next_page_link, custom_headers = nil)
2849
+ def list_keys_next_async(next_page_link, custom_headers:nil)
2833
2850
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2834
2851
 
2835
2852
 
2836
2853
  request_headers = {}
2854
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2837
2855
 
2838
2856
  # Set Headers
2839
2857
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2888,12 +2906,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2888
2906
  # @return [IotHubDescriptionListResult] which provide lazy access to pages of
2889
2907
  # the response.
2890
2908
  #
2891
- def list_by_subscription_as_lazy(custom_headers = nil)
2892
- response = list_by_subscription_async(custom_headers).value!
2909
+ def list_by_subscription_as_lazy(custom_headers:nil)
2910
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
2893
2911
  unless response.nil?
2894
2912
  page = response.body
2895
2913
  page.next_method = Proc.new do |next_page_link|
2896
- list_by_subscription_next_async(next_page_link, custom_headers)
2914
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
2897
2915
  end
2898
2916
  page
2899
2917
  end
@@ -2912,12 +2930,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2912
2930
  # @return [IotHubDescriptionListResult] which provide lazy access to pages of
2913
2931
  # the response.
2914
2932
  #
2915
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
2916
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
2933
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
2934
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
2917
2935
  unless response.nil?
2918
2936
  page = response.body
2919
2937
  page.next_method = Proc.new do |next_page_link|
2920
- list_by_resource_group_next_async(next_page_link, custom_headers)
2938
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
2921
2939
  end
2922
2940
  page
2923
2941
  end
@@ -2937,12 +2955,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2937
2955
  # @return [IotHubSkuDescriptionListResult] which provide lazy access to pages
2938
2956
  # of the response.
2939
2957
  #
2940
- def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers = nil)
2941
- response = get_valid_skus_async(resource_group_name, resource_name, custom_headers).value!
2958
+ def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:nil)
2959
+ response = get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
2942
2960
  unless response.nil?
2943
2961
  page = response.body
2944
2962
  page.next_method = Proc.new do |next_page_link|
2945
- get_valid_skus_next_async(next_page_link, custom_headers)
2963
+ get_valid_skus_next_async(next_page_link, custom_headers:custom_headers)
2946
2964
  end
2947
2965
  page
2948
2966
  end
@@ -2966,12 +2984,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2966
2984
  # @return [EventHubConsumerGroupsListResult] which provide lazy access to pages
2967
2985
  # of the response.
2968
2986
  #
2969
- def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
2970
- response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value!
2987
+ def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil)
2988
+ response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value!
2971
2989
  unless response.nil?
2972
2990
  page = response.body
2973
2991
  page.next_method = Proc.new do |next_page_link|
2974
- list_event_hub_consumer_groups_next_async(next_page_link, custom_headers)
2992
+ list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers)
2975
2993
  end
2976
2994
  page
2977
2995
  end
@@ -2993,12 +3011,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
2993
3011
  # @return [JobResponseListResult] which provide lazy access to pages of the
2994
3012
  # response.
2995
3013
  #
2996
- def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers = nil)
2997
- response = list_jobs_async(resource_group_name, resource_name, custom_headers).value!
3014
+ def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:nil)
3015
+ response = list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
2998
3016
  unless response.nil?
2999
3017
  page = response.body
3000
3018
  page.next_method = Proc.new do |next_page_link|
3001
- list_jobs_next_async(next_page_link, custom_headers)
3019
+ list_jobs_next_async(next_page_link, custom_headers:custom_headers)
3002
3020
  end
3003
3021
  page
3004
3022
  end
@@ -3018,12 +3036,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
3018
3036
  # @return [IotHubQuotaMetricInfoListResult] which provide lazy access to pages
3019
3037
  # of the response.
3020
3038
  #
3021
- def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers = nil)
3022
- response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value!
3039
+ def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:nil)
3040
+ response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
3023
3041
  unless response.nil?
3024
3042
  page = response.body
3025
3043
  page.next_method = Proc.new do |next_page_link|
3026
- get_quota_metrics_next_async(next_page_link, custom_headers)
3044
+ get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers)
3027
3045
  end
3028
3046
  page
3029
3047
  end
@@ -3045,12 +3063,12 @@ module Azure::IotHub::Mgmt::V2017_07_01
3045
3063
  # @return [SharedAccessSignatureAuthorizationRuleListResult] which provide lazy
3046
3064
  # access to pages of the response.
3047
3065
  #
3048
- def list_keys_as_lazy(resource_group_name, resource_name, custom_headers = nil)
3049
- response = list_keys_async(resource_group_name, resource_name, custom_headers).value!
3066
+ def list_keys_as_lazy(resource_group_name, resource_name, custom_headers:nil)
3067
+ response = list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
3050
3068
  unless response.nil?
3051
3069
  page = response.body
3052
3070
  page.next_method = Proc.new do |next_page_link|
3053
- list_keys_next_async(next_page_link, custom_headers)
3071
+ list_keys_next_async(next_page_link, custom_headers:custom_headers)
3054
3072
  end
3055
3073
  page
3056
3074
  end