azure_mgmt_service_bus 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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +1 -1
  3. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_resource.rb +1 -1
  4. data/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +113 -107
  5. data/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb +15 -13
  6. data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +78 -72
  7. data/lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +4 -1
  8. data/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb +33 -30
  9. data/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +78 -72
  10. data/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb +597 -40
  11. data/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb +15 -13
  12. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery.rb +13 -1
  13. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue.rb +22 -0
  14. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsubscription.rb +34 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb +113 -107
  16. data/lib/2017-04-01/generated/azure_mgmt_service_bus/operations.rb +15 -13
  17. data/lib/2017-04-01/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb +15 -13
  18. data/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb +78 -72
  19. data/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb +15 -13
  20. data/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb +33 -30
  21. data/lib/2017-04-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +4 -1
  22. data/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb +33 -30
  23. data/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb +78 -72
  24. data/lib/profiles/latest/modules/servicebus_profile_module.rb +187 -168
  25. data/lib/profiles/latest/servicebus_latest_profile_client.rb +28 -9
  26. data/lib/profiles/latest/servicebus_module_definition.rb +0 -1
  27. data/lib/version.rb +1 -1
  28. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e46dd2883fa0502936c5c0c60064a59053c41675
4
- data.tar.gz: 07014272b01fdfea0bb37ce2ed04276b020d74de
3
+ metadata.gz: 09b9aa7917a86850641b0088011488e77e12ed57
4
+ data.tar.gz: 1a655b34881445d1b5597a7cd7054b96101483b4
5
5
  SHA512:
6
- metadata.gz: 7213479c42ce8465e2203ea0de34caefdb5857544c057c10114bef360fd83db06404bd6997cdfee9b28aef621ef069307be30b94c26b5cff0697247c1adfc3e7
7
- data.tar.gz: cc6e734d5ec71516c0624e2ce89e09cece15199ca644ad236b7464c2feae884f9217f763e333420f7c5c6172bbf10962ed8dadef63c2e1782a84fedc8fa308a9
6
+ metadata.gz: ad2614788cf591e626cb6e55aa04454da7b2475d564cf62ce33d7aa214806d4c4c54369acf23448de8d907db920d6312bdd8d416a6823c5a592577e2f8f314cd
7
+ data.tar.gz: d3032d491f9c6aafe58a0a280165aa3f5f7be6549821045129e018979e544687ec6336337f891b807c68f7ec46243e139a8249a3de6ea3e4daefbb860fe30e2f
@@ -61,7 +61,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
61
61
  attr_accessor :enable_partitioning
62
62
 
63
63
  # @return [Boolean] Value that indicates whether partitioning is enabled
64
- # or disabled.
64
+ # or disabled. NOTE: This property is unsupported, and may be deprecated.
65
65
  attr_accessor :enable_subscription_partitioning
66
66
 
67
67
  # @return [Boolean] Whether messages should be filtered before
@@ -55,7 +55,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
55
55
  attr_accessor :enable_partitioning
56
56
 
57
57
  # @return [Boolean] Value that indicates whether partitioning is enabled
58
- # or disabled.
58
+ # or disabled. NOTE: This property is unsupported, and may be deprecated.
59
59
  attr_accessor :enable_subscription_partitioning
60
60
 
61
61
  # @return [Boolean] Whether messages should be filtered before
@@ -31,8 +31,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
31
31
  #
32
32
  # @return [CheckNameAvailabilityResult] operation results.
33
33
  #
34
- def check_name_availability_method(parameters, custom_headers = nil)
35
- response = check_name_availability_method_async(parameters, custom_headers).value!
34
+ def check_name_availability_method(parameters, custom_headers:nil)
35
+ response = check_name_availability_method_async(parameters, custom_headers:custom_headers).value!
36
36
  response.body unless response.nil?
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def check_name_availability_method_with_http_info(parameters, custom_headers = nil)
50
- check_name_availability_method_async(parameters, custom_headers).value!
49
+ def check_name_availability_method_with_http_info(parameters, custom_headers:nil)
50
+ check_name_availability_method_async(parameters, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,20 +60,19 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def check_name_availability_method_async(parameters, custom_headers = nil)
63
+ def check_name_availability_method_async(parameters, custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
66
66
  fail ArgumentError, 'parameters is nil' if parameters.nil?
67
67
 
68
68
 
69
69
  request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
71
 
71
72
  # Set Headers
72
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
73
74
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
74
75
 
75
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
-
77
76
  # Serialize Request
78
77
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::CheckNameAvailability.mapper()
79
78
  request_content = @client.serialize(request_mapper, parameters)
@@ -129,8 +128,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
129
128
  #
130
129
  # @return [Array<NamespaceResource>] operation results.
131
130
  #
132
- def list_by_subscription(custom_headers = nil)
133
- first_page = list_by_subscription_as_lazy(custom_headers)
131
+ def list_by_subscription(custom_headers:nil)
132
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
134
133
  first_page.get_all_items
135
134
  end
136
135
 
@@ -143,8 +142,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
143
142
  #
144
143
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
145
144
  #
146
- def list_by_subscription_with_http_info(custom_headers = nil)
147
- list_by_subscription_async(custom_headers).value!
145
+ def list_by_subscription_with_http_info(custom_headers:nil)
146
+ list_by_subscription_async(custom_headers:custom_headers).value!
148
147
  end
149
148
 
150
149
  #
@@ -156,12 +155,13 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
156
155
  #
157
156
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
157
  #
159
- def list_by_subscription_async(custom_headers = nil)
158
+ def list_by_subscription_async(custom_headers:nil)
160
159
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
161
160
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
162
161
 
163
162
 
164
163
  request_headers = {}
164
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
165
165
 
166
166
  # Set Headers
167
167
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -216,8 +216,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
216
216
  #
217
217
  # @return [Array<NamespaceResource>] operation results.
218
218
  #
219
- def list_by_resource_group(resource_group_name, custom_headers = nil)
220
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
219
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
220
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
221
221
  first_page.get_all_items
222
222
  end
223
223
 
@@ -231,8 +231,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
231
231
  #
232
232
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
233
233
  #
234
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
235
- list_by_resource_group_async(resource_group_name, custom_headers).value!
234
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
235
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
236
236
  end
237
237
 
238
238
  #
@@ -245,7 +245,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
245
245
  #
246
246
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
247
247
  #
248
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
248
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
249
249
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
250
250
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
251
251
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -254,6 +254,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
254
254
 
255
255
 
256
256
  request_headers = {}
257
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
257
258
 
258
259
  # Set Headers
259
260
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -312,8 +313,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
312
313
  #
313
314
  # @return [NamespaceResource] operation results.
314
315
  #
315
- def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil)
316
- response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
316
+ def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
317
+ response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
317
318
  response.body unless response.nil?
318
319
  end
319
320
 
@@ -329,9 +330,9 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
329
330
  # @return [Concurrent::Promise] promise which provides async access to http
330
331
  # response.
331
332
  #
332
- def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
333
+ def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
333
334
  # Send request
334
- promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers)
335
+ promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers)
335
336
 
336
337
  promise = promise.then do |response|
337
338
  # Defining deserialization method.
@@ -357,8 +358,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
357
358
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
358
359
  # will be added to the HTTP request.
359
360
  #
360
- def delete(resource_group_name, namespace_name, custom_headers = nil)
361
- response = delete_async(resource_group_name, namespace_name, custom_headers).value!
361
+ def delete(resource_group_name, namespace_name, custom_headers:nil)
362
+ response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
362
363
  nil
363
364
  end
364
365
 
@@ -372,9 +373,9 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
372
373
  # @return [Concurrent::Promise] promise which provides async access to http
373
374
  # response.
374
375
  #
375
- def delete_async(resource_group_name, namespace_name, custom_headers = nil)
376
+ def delete_async(resource_group_name, namespace_name, custom_headers:nil)
376
377
  # Send request
377
- promise = begin_delete_async(resource_group_name, namespace_name, custom_headers)
378
+ promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers)
378
379
 
379
380
  promise = promise.then do |response|
380
381
  # Defining deserialization method.
@@ -399,8 +400,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
399
400
  #
400
401
  # @return [NamespaceResource] operation results.
401
402
  #
402
- def get(resource_group_name, namespace_name, custom_headers = nil)
403
- response = get_async(resource_group_name, namespace_name, custom_headers).value!
403
+ def get(resource_group_name, namespace_name, custom_headers:nil)
404
+ response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
404
405
  response.body unless response.nil?
405
406
  end
406
407
 
@@ -415,8 +416,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
415
416
  #
416
417
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
417
418
  #
418
- def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
419
- get_async(resource_group_name, namespace_name, custom_headers).value!
419
+ def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
420
+ get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
420
421
  end
421
422
 
422
423
  #
@@ -430,7 +431,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
430
431
  #
431
432
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
432
433
  #
433
- def get_async(resource_group_name, namespace_name, custom_headers = nil)
434
+ def get_async(resource_group_name, namespace_name, custom_headers:nil)
434
435
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
435
436
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
436
437
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -442,6 +443,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
442
443
 
443
444
 
444
445
  request_headers = {}
446
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
445
447
 
446
448
  # Set Headers
447
449
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -500,8 +502,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
500
502
  #
501
503
  # @return [NamespaceResource] operation results.
502
504
  #
503
- def update(resource_group_name, namespace_name, parameters, custom_headers = nil)
504
- response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
505
+ def update(resource_group_name, namespace_name, parameters, custom_headers:nil)
506
+ response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
505
507
  response.body unless response.nil?
506
508
  end
507
509
 
@@ -519,8 +521,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
519
521
  #
520
522
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
521
523
  #
522
- def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil)
523
- update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
524
+ def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
525
+ update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
524
526
  end
525
527
 
526
528
  #
@@ -537,7 +539,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
537
539
  #
538
540
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
539
541
  #
540
- def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
542
+ def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
541
543
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
542
544
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
543
545
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -550,13 +552,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
550
552
 
551
553
 
552
554
  request_headers = {}
555
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
553
556
 
554
557
  # Set Headers
555
558
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
556
559
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
557
560
 
558
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
559
-
560
561
  # Serialize Request
561
562
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::NamespaceUpdateParameters.mapper()
562
563
  request_content = @client.serialize(request_mapper, parameters)
@@ -624,8 +625,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
624
625
  #
625
626
  # @return [Array<SharedAccessAuthorizationRuleResource>] operation results.
626
627
  #
627
- def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil)
628
- first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers)
628
+ def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil)
629
+ first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
629
630
  first_page.get_all_items
630
631
  end
631
632
 
@@ -640,8 +641,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
640
641
  #
641
642
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
642
643
  #
643
- def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
644
- list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
644
+ def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
645
+ list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
645
646
  end
646
647
 
647
648
  #
@@ -655,7 +656,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
655
656
  #
656
657
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
657
658
  #
658
- def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil)
659
+ def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil)
659
660
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
660
661
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
661
662
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -667,6 +668,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
667
668
 
668
669
 
669
670
  request_headers = {}
671
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
670
672
 
671
673
  # Set Headers
672
674
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -725,8 +727,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
725
727
  #
726
728
  # @return [SharedAccessAuthorizationRuleResource] operation results.
727
729
  #
728
- def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
729
- response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
730
+ def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
731
+ response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
730
732
  response.body unless response.nil?
731
733
  end
732
734
 
@@ -744,8 +746,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
744
746
  #
745
747
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
746
748
  #
747
- def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
748
- create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
749
+ def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
750
+ create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
749
751
  end
750
752
 
751
753
  #
@@ -762,7 +764,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
762
764
  #
763
765
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
764
766
  #
765
- def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
767
+ def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
766
768
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
767
769
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
768
770
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -778,13 +780,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
778
780
 
779
781
 
780
782
  request_headers = {}
783
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
781
784
 
782
785
  # Set Headers
783
786
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
784
787
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
785
788
 
786
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
787
-
788
789
  # Serialize Request
789
790
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
790
791
  request_content = @client.serialize(request_mapper, parameters)
@@ -842,8 +843,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
842
843
  # will be added to the HTTP request.
843
844
  #
844
845
  #
845
- def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
846
- response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
846
+ def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
847
+ response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
847
848
  nil
848
849
  end
849
850
 
@@ -859,8 +860,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
859
860
  #
860
861
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
861
862
  #
862
- def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
863
- delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
863
+ def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
864
+ delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
864
865
  end
865
866
 
866
867
  #
@@ -875,7 +876,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
875
876
  #
876
877
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
877
878
  #
878
- def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
879
+ def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
879
880
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
880
881
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
881
882
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -890,6 +891,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
890
891
 
891
892
 
892
893
  request_headers = {}
894
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
893
895
 
894
896
  # Set Headers
895
897
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -936,8 +938,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
936
938
  #
937
939
  # @return [SharedAccessAuthorizationRuleResource] operation results.
938
940
  #
939
- def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
940
- response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
941
+ def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
942
+ response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
941
943
  response.body unless response.nil?
942
944
  end
943
945
 
@@ -953,8 +955,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
953
955
  #
954
956
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
955
957
  #
956
- def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
957
- get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
958
+ def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
959
+ get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
958
960
  end
959
961
 
960
962
  #
@@ -969,7 +971,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
969
971
  #
970
972
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
971
973
  #
972
- def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
974
+ def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
973
975
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
974
976
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
975
977
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -984,6 +986,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
984
986
 
985
987
 
986
988
  request_headers = {}
989
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
987
990
 
988
991
  # Set Headers
989
992
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1040,8 +1043,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1040
1043
  #
1041
1044
  # @return [ResourceListKeys] operation results.
1042
1045
  #
1043
- def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
1044
- response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
1046
+ def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
1047
+ response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
1045
1048
  response.body unless response.nil?
1046
1049
  end
1047
1050
 
@@ -1057,8 +1060,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1057
1060
  #
1058
1061
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1059
1062
  #
1060
- def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
1061
- list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
1063
+ def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
1064
+ list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
1062
1065
  end
1063
1066
 
1064
1067
  #
@@ -1073,7 +1076,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1073
1076
  #
1074
1077
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1075
1078
  #
1076
- def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
1079
+ def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
1077
1080
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1078
1081
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1079
1082
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1088,6 +1091,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1088
1091
 
1089
1092
 
1090
1093
  request_headers = {}
1094
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1091
1095
 
1092
1096
  # Set Headers
1093
1097
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1146,8 +1150,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1146
1150
  #
1147
1151
  # @return [ResourceListKeys] operation results.
1148
1152
  #
1149
- def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
1150
- response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
1153
+ def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
1154
+ response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1151
1155
  response.body unless response.nil?
1152
1156
  end
1153
1157
 
@@ -1165,8 +1169,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1165
1169
  #
1166
1170
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1167
1171
  #
1168
- def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
1169
- regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
1172
+ def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
1173
+ regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1170
1174
  end
1171
1175
 
1172
1176
  #
@@ -1183,7 +1187,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1183
1187
  #
1184
1188
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1185
1189
  #
1186
- def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
1190
+ def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
1187
1191
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1188
1192
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1189
1193
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1199,13 +1203,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1199
1203
 
1200
1204
 
1201
1205
  request_headers = {}
1206
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1202
1207
 
1203
1208
  # Set Headers
1204
1209
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1205
1210
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1206
1211
 
1207
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1208
-
1209
1212
  # Serialize Request
1210
1213
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::RegenerateKeysParameters.mapper()
1211
1214
  request_content = @client.serialize(request_mapper, parameters)
@@ -1266,8 +1269,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1266
1269
  #
1267
1270
  # @return [NamespaceResource] operation results.
1268
1271
  #
1269
- def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil)
1270
- response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
1272
+ def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
1273
+ response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
1271
1274
  response.body unless response.nil?
1272
1275
  end
1273
1276
 
@@ -1285,8 +1288,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1285
1288
  #
1286
1289
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1287
1290
  #
1288
- def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil)
1289
- begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
1291
+ def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
1292
+ begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
1290
1293
  end
1291
1294
 
1292
1295
  #
@@ -1303,7 +1306,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1303
1306
  #
1304
1307
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1305
1308
  #
1306
- def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
1309
+ def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
1307
1310
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1308
1311
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1309
1312
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1314,13 +1317,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1314
1317
 
1315
1318
 
1316
1319
  request_headers = {}
1320
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1317
1321
 
1318
1322
  # Set Headers
1319
1323
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1320
1324
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1321
1325
 
1322
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1323
-
1324
1326
  # Serialize Request
1325
1327
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::NamespaceCreateOrUpdateParameters.mapper()
1326
1328
  request_content = @client.serialize(request_mapper, parameters)
@@ -1388,8 +1390,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1388
1390
  # will be added to the HTTP request.
1389
1391
  #
1390
1392
  #
1391
- def begin_delete(resource_group_name, namespace_name, custom_headers = nil)
1392
- response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
1393
+ def begin_delete(resource_group_name, namespace_name, custom_headers:nil)
1394
+ response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1393
1395
  nil
1394
1396
  end
1395
1397
 
@@ -1405,8 +1407,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1405
1407
  #
1406
1408
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1407
1409
  #
1408
- def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
1409
- begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
1410
+ def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
1411
+ begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1410
1412
  end
1411
1413
 
1412
1414
  #
@@ -1421,7 +1423,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1421
1423
  #
1422
1424
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1423
1425
  #
1424
- def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil)
1426
+ def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil)
1425
1427
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1426
1428
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1427
1429
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1433,6 +1435,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1433
1435
 
1434
1436
 
1435
1437
  request_headers = {}
1438
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1436
1439
 
1437
1440
  # Set Headers
1438
1441
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1478,8 +1481,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1478
1481
  #
1479
1482
  # @return [NamespaceListResult] operation results.
1480
1483
  #
1481
- def list_by_subscription_next(next_page_link, custom_headers = nil)
1482
- response = list_by_subscription_next_async(next_page_link, custom_headers).value!
1484
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
1485
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1483
1486
  response.body unless response.nil?
1484
1487
  end
1485
1488
 
@@ -1494,8 +1497,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1494
1497
  #
1495
1498
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1496
1499
  #
1497
- def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
1498
- list_by_subscription_next_async(next_page_link, custom_headers).value!
1500
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1501
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1499
1502
  end
1500
1503
 
1501
1504
  #
@@ -1509,11 +1512,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1509
1512
  #
1510
1513
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1511
1514
  #
1512
- def list_by_subscription_next_async(next_page_link, custom_headers = nil)
1515
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1513
1516
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1514
1517
 
1515
1518
 
1516
1519
  request_headers = {}
1520
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1517
1521
 
1518
1522
  # Set Headers
1519
1523
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1567,8 +1571,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1567
1571
  #
1568
1572
  # @return [NamespaceListResult] operation results.
1569
1573
  #
1570
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1571
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1574
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1575
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1572
1576
  response.body unless response.nil?
1573
1577
  end
1574
1578
 
@@ -1582,8 +1586,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1582
1586
  #
1583
1587
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1584
1588
  #
1585
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1586
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1589
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1590
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1587
1591
  end
1588
1592
 
1589
1593
  #
@@ -1596,11 +1600,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1596
1600
  #
1597
1601
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1598
1602
  #
1599
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1603
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1600
1604
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1601
1605
 
1602
1606
 
1603
1607
  request_headers = {}
1608
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1604
1609
 
1605
1610
  # Set Headers
1606
1611
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1654,8 +1659,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1654
1659
  #
1655
1660
  # @return [SharedAccessAuthorizationRuleListResult] operation results.
1656
1661
  #
1657
- def list_authorization_rules_next(next_page_link, custom_headers = nil)
1658
- response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
1662
+ def list_authorization_rules_next(next_page_link, custom_headers:nil)
1663
+ response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1659
1664
  response.body unless response.nil?
1660
1665
  end
1661
1666
 
@@ -1669,8 +1674,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1669
1674
  #
1670
1675
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1671
1676
  #
1672
- def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
1673
- list_authorization_rules_next_async(next_page_link, custom_headers).value!
1677
+ def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
1678
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1674
1679
  end
1675
1680
 
1676
1681
  #
@@ -1683,11 +1688,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1683
1688
  #
1684
1689
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1685
1690
  #
1686
- def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
1691
+ def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
1687
1692
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1688
1693
 
1689
1694
 
1690
1695
  request_headers = {}
1696
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1691
1697
 
1692
1698
  # Set Headers
1693
1699
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1741,12 +1747,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1741
1747
  # @return [NamespaceListResult] which provide lazy access to pages of the
1742
1748
  # response.
1743
1749
  #
1744
- def list_by_subscription_as_lazy(custom_headers = nil)
1745
- response = list_by_subscription_async(custom_headers).value!
1750
+ def list_by_subscription_as_lazy(custom_headers:nil)
1751
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
1746
1752
  unless response.nil?
1747
1753
  page = response.body
1748
1754
  page.next_method = Proc.new do |next_page_link|
1749
- list_by_subscription_next_async(next_page_link, custom_headers)
1755
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1750
1756
  end
1751
1757
  page
1752
1758
  end
@@ -1763,12 +1769,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1763
1769
  # @return [NamespaceListResult] which provide lazy access to pages of the
1764
1770
  # response.
1765
1771
  #
1766
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1767
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1772
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1773
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1768
1774
  unless response.nil?
1769
1775
  page = response.body
1770
1776
  page.next_method = Proc.new do |next_page_link|
1771
- list_by_resource_group_next_async(next_page_link, custom_headers)
1777
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1772
1778
  end
1773
1779
  page
1774
1780
  end
@@ -1786,12 +1792,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1786
1792
  # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
1787
1793
  # to pages of the response.
1788
1794
  #
1789
- def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1790
- response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
1795
+ def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1796
+ response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1791
1797
  unless response.nil?
1792
1798
  page = response.body
1793
1799
  page.next_method = Proc.new do |next_page_link|
1794
- list_authorization_rules_next_async(next_page_link, custom_headers)
1800
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
1795
1801
  end
1796
1802
  page
1797
1803
  end