azure_mgmt_service_bus 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
32
32
  #
33
33
  # @return [Array<SBTopic>] operation results.
34
34
  #
35
- def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil)
36
- first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers)
35
+ def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil)
36
+ first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
37
37
  first_page.get_all_items
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
52
- list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
51
+ def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
52
+ list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
66
+ def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
68
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
69
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
75
75
 
76
76
 
77
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
79
 
79
80
  # Set Headers
80
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -132,8 +133,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
132
133
  #
133
134
  # @return [SBTopic] operation results.
134
135
  #
135
- def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil)
136
- response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value!
136
+ def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil)
137
+ response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:custom_headers).value!
137
138
  response.body unless response.nil?
138
139
  end
139
140
 
@@ -150,8 +151,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
150
151
  #
151
152
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
153
  #
153
- def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil)
154
- create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value!
154
+ def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil)
155
+ create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:custom_headers).value!
155
156
  end
156
157
 
157
158
  #
@@ -167,7 +168,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
167
168
  #
168
169
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
169
170
  #
170
- def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil)
171
+ def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil)
171
172
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
172
173
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
173
174
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -182,13 +183,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_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
188
190
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
189
191
 
190
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
191
-
192
192
  # Serialize Request
193
193
  request_mapper = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic.mapper()
194
194
  request_content = @client.serialize(request_mapper, parameters)
@@ -246,8 +246,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
246
246
  # will be added to the HTTP request.
247
247
  #
248
248
  #
249
- def delete(resource_group_name, namespace_name, topic_name, custom_headers = nil)
250
- response = delete_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
249
+ def delete(resource_group_name, namespace_name, topic_name, custom_headers:nil)
250
+ response = delete_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
251
251
  nil
252
252
  end
253
253
 
@@ -263,8 +263,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
263
263
  #
264
264
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
265
265
  #
266
- def delete_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil)
267
- delete_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
266
+ def delete_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil)
267
+ delete_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
268
268
  end
269
269
 
270
270
  #
@@ -279,7 +279,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
279
279
  #
280
280
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
281
281
  #
282
- def delete_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
282
+ def delete_async(resource_group_name, namespace_name, topic_name, custom_headers:nil)
283
283
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
284
284
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
285
285
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -293,6 +293,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
293
293
 
294
294
 
295
295
  request_headers = {}
296
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
296
297
 
297
298
  # Set Headers
298
299
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -339,8 +340,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
339
340
  #
340
341
  # @return [SBTopic] operation results.
341
342
  #
342
- def get(resource_group_name, namespace_name, topic_name, custom_headers = nil)
343
- response = get_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
343
+ def get(resource_group_name, namespace_name, topic_name, custom_headers:nil)
344
+ response = get_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
344
345
  response.body unless response.nil?
345
346
  end
346
347
 
@@ -356,8 +357,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
356
357
  #
357
358
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
358
359
  #
359
- def get_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil)
360
- get_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
360
+ def get_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil)
361
+ get_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
361
362
  end
362
363
 
363
364
  #
@@ -372,7 +373,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
372
373
  #
373
374
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
374
375
  #
375
- def get_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
376
+ def get_async(resource_group_name, namespace_name, topic_name, custom_headers:nil)
376
377
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
377
378
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
378
379
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -386,6 +387,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
386
387
 
387
388
 
388
389
  request_headers = {}
390
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
389
391
 
390
392
  # Set Headers
391
393
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -442,8 +444,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
442
444
  #
443
445
  # @return [Array<SBAuthorizationRule>] operation results.
444
446
  #
445
- def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers = nil)
446
- first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers)
447
+ def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers:nil)
448
+ first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers)
447
449
  first_page.get_all_items
448
450
  end
449
451
 
@@ -459,8 +461,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
459
461
  #
460
462
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
461
463
  #
462
- def list_authorization_rules_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil)
463
- list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
464
+ def list_authorization_rules_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil)
465
+ list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
464
466
  end
465
467
 
466
468
  #
@@ -475,7 +477,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
475
477
  #
476
478
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
477
479
  #
478
- def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
480
+ def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:nil)
479
481
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
480
482
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
481
483
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -489,6 +491,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
489
491
 
490
492
 
491
493
  request_headers = {}
494
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
492
495
 
493
496
  # Set Headers
494
497
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -547,8 +550,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
547
550
  #
548
551
  # @return [SBAuthorizationRule] operation results.
549
552
  #
550
- def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
551
- response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value!
553
+ def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil)
554
+ response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
552
555
  response.body unless response.nil?
553
556
  end
554
557
 
@@ -566,8 +569,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
566
569
  #
567
570
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
568
571
  #
569
- def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
570
- create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value!
572
+ def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil)
573
+ create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
571
574
  end
572
575
 
573
576
  #
@@ -584,7 +587,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
584
587
  #
585
588
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
586
589
  #
587
- def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
590
+ def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil)
588
591
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
589
592
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
590
593
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -602,13 +605,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
602
605
 
603
606
 
604
607
  request_headers = {}
608
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
605
609
 
606
610
  # Set Headers
607
611
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
608
612
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
609
613
 
610
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
611
-
612
614
  # Serialize Request
613
615
  request_mapper = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule.mapper()
614
616
  request_content = @client.serialize(request_mapper, parameters)
@@ -668,8 +670,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
668
670
  #
669
671
  # @return [SBAuthorizationRule] operation results.
670
672
  #
671
- def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
672
- response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
673
+ def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
674
+ response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value!
673
675
  response.body unless response.nil?
674
676
  end
675
677
 
@@ -686,8 +688,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
686
688
  #
687
689
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
688
690
  #
689
- def get_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
690
- get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
691
+ def get_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
692
+ get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value!
691
693
  end
692
694
 
693
695
  #
@@ -703,7 +705,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
703
705
  #
704
706
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
705
707
  #
706
- def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
708
+ def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
707
709
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
708
710
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
709
711
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -720,6 +722,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
720
722
 
721
723
 
722
724
  request_headers = {}
725
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
723
726
 
724
727
  # Set Headers
725
728
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -776,8 +779,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
776
779
  # will be added to the HTTP request.
777
780
  #
778
781
  #
779
- def delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
780
- response = delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
782
+ def delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
783
+ response = delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value!
781
784
  nil
782
785
  end
783
786
 
@@ -794,8 +797,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
794
797
  #
795
798
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
796
799
  #
797
- def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
798
- delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
800
+ def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
801
+ delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value!
799
802
  end
800
803
 
801
804
  #
@@ -811,7 +814,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
811
814
  #
812
815
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
813
816
  #
814
- def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
817
+ def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
815
818
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
816
819
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
817
820
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -828,6 +831,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
828
831
 
829
832
 
830
833
  request_headers = {}
834
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
831
835
 
832
836
  # Set Headers
833
837
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -875,8 +879,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
875
879
  #
876
880
  # @return [AccessKeys] operation results.
877
881
  #
878
- def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
879
- response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
882
+ def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
883
+ response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value!
880
884
  response.body unless response.nil?
881
885
  end
882
886
 
@@ -893,8 +897,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
893
897
  #
894
898
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
895
899
  #
896
- def list_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
897
- list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
900
+ def list_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
901
+ list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value!
898
902
  end
899
903
 
900
904
  #
@@ -910,7 +914,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
910
914
  #
911
915
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
912
916
  #
913
- def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
917
+ def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil)
914
918
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
915
919
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
916
920
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -927,6 +931,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
927
931
 
928
932
 
929
933
  request_headers = {}
934
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
930
935
 
931
936
  # Set Headers
932
937
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -986,8 +991,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
986
991
  #
987
992
  # @return [AccessKeys] operation results.
988
993
  #
989
- def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
990
- response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value!
994
+ def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil)
995
+ response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
991
996
  response.body unless response.nil?
992
997
  end
993
998
 
@@ -1006,8 +1011,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1006
1011
  #
1007
1012
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1008
1013
  #
1009
- def regenerate_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
1010
- regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value!
1014
+ def regenerate_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil)
1015
+ regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1011
1016
  end
1012
1017
 
1013
1018
  #
@@ -1025,7 +1030,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1025
1030
  #
1026
1031
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1027
1032
  #
1028
- def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
1033
+ def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil)
1029
1034
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1030
1035
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1031
1036
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1043,13 +1048,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1043
1048
 
1044
1049
 
1045
1050
  request_headers = {}
1051
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1046
1052
 
1047
1053
  # Set Headers
1048
1054
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1049
1055
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1050
1056
 
1051
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1052
-
1053
1057
  # Serialize Request
1054
1058
  request_mapper = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
1055
1059
  request_content = @client.serialize(request_mapper, parameters)
@@ -1106,8 +1110,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1106
1110
  #
1107
1111
  # @return [SBTopicListResult] operation results.
1108
1112
  #
1109
- def list_by_namespace_next(next_page_link, custom_headers = nil)
1110
- response = list_by_namespace_next_async(next_page_link, custom_headers).value!
1113
+ def list_by_namespace_next(next_page_link, custom_headers:nil)
1114
+ response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
1111
1115
  response.body unless response.nil?
1112
1116
  end
1113
1117
 
@@ -1121,8 +1125,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1121
1125
  #
1122
1126
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1123
1127
  #
1124
- def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
1125
- list_by_namespace_next_async(next_page_link, custom_headers).value!
1128
+ def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil)
1129
+ list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
1126
1130
  end
1127
1131
 
1128
1132
  #
@@ -1135,11 +1139,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1135
1139
  #
1136
1140
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1137
1141
  #
1138
- def list_by_namespace_next_async(next_page_link, custom_headers = nil)
1142
+ def list_by_namespace_next_async(next_page_link, custom_headers:nil)
1139
1143
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1140
1144
 
1141
1145
 
1142
1146
  request_headers = {}
1147
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1143
1148
 
1144
1149
  # Set Headers
1145
1150
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1193,8 +1198,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1193
1198
  #
1194
1199
  # @return [SBAuthorizationRuleListResult] operation results.
1195
1200
  #
1196
- def list_authorization_rules_next(next_page_link, custom_headers = nil)
1197
- response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
1201
+ def list_authorization_rules_next(next_page_link, custom_headers:nil)
1202
+ response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1198
1203
  response.body unless response.nil?
1199
1204
  end
1200
1205
 
@@ -1208,8 +1213,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1208
1213
  #
1209
1214
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1210
1215
  #
1211
- def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
1212
- list_authorization_rules_next_async(next_page_link, custom_headers).value!
1216
+ def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
1217
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1213
1218
  end
1214
1219
 
1215
1220
  #
@@ -1222,11 +1227,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1222
1227
  #
1223
1228
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1224
1229
  #
1225
- def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
1230
+ def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
1226
1231
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1227
1232
 
1228
1233
 
1229
1234
  request_headers = {}
1235
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1230
1236
 
1231
1237
  # Set Headers
1232
1238
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1282,12 +1288,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1282
1288
  # @return [SBTopicListResult] which provide lazy access to pages of the
1283
1289
  # response.
1284
1290
  #
1285
- def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1286
- response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
1291
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1292
+ response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1287
1293
  unless response.nil?
1288
1294
  page = response.body
1289
1295
  page.next_method = Proc.new do |next_page_link|
1290
- list_by_namespace_next_async(next_page_link, custom_headers)
1296
+ list_by_namespace_next_async(next_page_link, custom_headers:custom_headers)
1291
1297
  end
1292
1298
  page
1293
1299
  end
@@ -1306,12 +1312,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1306
1312
  # @return [SBAuthorizationRuleListResult] which provide lazy access to pages of
1307
1313
  # the response.
1308
1314
  #
1309
- def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers = nil)
1310
- response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
1315
+ def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:nil)
1316
+ response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
1311
1317
  unless response.nil?
1312
1318
  page = response.body
1313
1319
  page.next_method = Proc.new do |next_page_link|
1314
- list_authorization_rules_next_async(next_page_link, custom_headers)
1320
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
1315
1321
  end
1316
1322
  page
1317
1323
  end