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
@@ -29,8 +29,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
29
29
  #
30
30
  # @return [Array<Operation>] operation results.
31
31
  #
32
- def list(custom_headers = nil)
33
- first_page = list_as_lazy(custom_headers)
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
34
  first_page.get_all_items
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_with_http_info(custom_headers = nil)
46
- list_async(custom_headers).value!
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,11 +54,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_async(custom_headers = nil)
57
+ def list_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
59
 
60
60
 
61
61
  request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
62
63
 
63
64
  # Set Headers
64
65
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -112,8 +113,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
112
113
  #
113
114
  # @return [OperationListResult] operation results.
114
115
  #
115
- def list_next(next_page_link, custom_headers = nil)
116
- response = list_next_async(next_page_link, custom_headers).value!
116
+ def list_next(next_page_link, custom_headers:nil)
117
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
117
118
  response.body unless response.nil?
118
119
  end
119
120
 
@@ -127,8 +128,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
127
128
  #
128
129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
130
  #
130
- def list_next_with_http_info(next_page_link, custom_headers = nil)
131
- list_next_async(next_page_link, custom_headers).value!
131
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
132
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
132
133
  end
133
134
 
134
135
  #
@@ -141,11 +142,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
141
142
  #
142
143
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
144
  #
144
- def list_next_async(next_page_link, custom_headers = nil)
145
+ def list_next_async(next_page_link, custom_headers:nil)
145
146
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
146
147
 
147
148
 
148
149
  request_headers = {}
150
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
149
151
 
150
152
  # Set Headers
151
153
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -198,12 +200,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
198
200
  # @return [OperationListResult] which provide lazy access to pages of the
199
201
  # response.
200
202
  #
201
- def list_as_lazy(custom_headers = nil)
202
- response = list_async(custom_headers).value!
203
+ def list_as_lazy(custom_headers:nil)
204
+ response = list_async(custom_headers:custom_headers).value!
203
205
  unless response.nil?
204
206
  page = response.body
205
207
  page.next_method = Proc.new do |next_page_link|
206
- list_next_async(next_page_link, custom_headers)
208
+ list_next_async(next_page_link, custom_headers:custom_headers)
207
209
  end
208
210
  page
209
211
  end
@@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
32
32
  #
33
33
  # @return [Array<QueueResource>] operation results.
34
34
  #
35
- def list_all(resource_group_name, namespace_name, custom_headers = nil)
36
- first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers)
35
+ def list_all(resource_group_name, namespace_name, custom_headers:nil)
36
+ first_page = list_all_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::V2015_08_01
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def list_all_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
52
- list_all_async(resource_group_name, namespace_name, custom_headers).value!
51
+ def list_all_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
52
+ list_all_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::V2015_08_01
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_all_async(resource_group_name, namespace_name, custom_headers = nil)
66
+ def list_all_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::V2015_08_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
@@ -133,8 +134,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
133
134
  #
134
135
  # @return [QueueResource] operation results.
135
136
  #
136
- def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil)
137
- response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value!
137
+ def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil)
138
+ response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:custom_headers).value!
138
139
  response.body unless response.nil?
139
140
  end
140
141
 
@@ -152,8 +153,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
152
153
  #
153
154
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
154
155
  #
155
- def create_or_update_with_http_info(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil)
156
- create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value!
156
+ def create_or_update_with_http_info(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil)
157
+ create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:custom_headers).value!
157
158
  end
158
159
 
159
160
  #
@@ -170,7 +171,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
170
171
  #
171
172
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
172
173
  #
173
- def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil)
174
+ def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil)
174
175
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
175
176
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
176
177
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -186,13 +187,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
186
187
 
187
188
 
188
189
  request_headers = {}
190
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
189
191
 
190
192
  # Set Headers
191
193
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
192
194
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
193
195
 
194
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
195
-
196
196
  # Serialize Request
197
197
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::QueueCreateOrUpdateParameters.mapper()
198
198
  request_content = @client.serialize(request_mapper, parameters)
@@ -250,8 +250,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
250
250
  # will be added to the HTTP request.
251
251
  #
252
252
  #
253
- def delete(resource_group_name, namespace_name, queue_name, custom_headers = nil)
254
- response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
253
+ def delete(resource_group_name, namespace_name, queue_name, custom_headers:nil)
254
+ response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
255
255
  nil
256
256
  end
257
257
 
@@ -267,8 +267,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
267
267
  #
268
268
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
269
269
  #
270
- def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil)
271
- delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
270
+ def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil)
271
+ delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
272
272
  end
273
273
 
274
274
  #
@@ -283,7 +283,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
283
283
  #
284
284
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
285
285
  #
286
- def delete_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
286
+ def delete_async(resource_group_name, namespace_name, queue_name, custom_headers:nil)
287
287
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
288
288
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
289
289
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -298,6 +298,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
298
298
 
299
299
 
300
300
  request_headers = {}
301
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
301
302
 
302
303
  # Set Headers
303
304
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -344,8 +345,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
344
345
  #
345
346
  # @return [QueueResource] operation results.
346
347
  #
347
- def get(resource_group_name, namespace_name, queue_name, custom_headers = nil)
348
- response = get_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
348
+ def get(resource_group_name, namespace_name, queue_name, custom_headers:nil)
349
+ response = get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
349
350
  response.body unless response.nil?
350
351
  end
351
352
 
@@ -361,8 +362,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
361
362
  #
362
363
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
363
364
  #
364
- def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil)
365
- get_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
365
+ def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil)
366
+ get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
366
367
  end
367
368
 
368
369
  #
@@ -377,7 +378,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
377
378
  #
378
379
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
379
380
  #
380
- def get_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
381
+ def get_async(resource_group_name, namespace_name, queue_name, custom_headers:nil)
381
382
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
382
383
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
383
384
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -392,6 +393,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
392
393
 
393
394
 
394
395
  request_headers = {}
396
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
395
397
 
396
398
  # Set Headers
397
399
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -448,8 +450,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
448
450
  #
449
451
  # @return [Array<SharedAccessAuthorizationRuleResource>] operation results.
450
452
  #
451
- def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers = nil)
452
- first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers)
453
+ def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers:nil)
454
+ first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers)
453
455
  first_page.get_all_items
454
456
  end
455
457
 
@@ -465,8 +467,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
465
467
  #
466
468
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
467
469
  #
468
- def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil)
469
- list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
470
+ def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil)
471
+ list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
470
472
  end
471
473
 
472
474
  #
@@ -481,7 +483,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
481
483
  #
482
484
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
483
485
  #
484
- def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
486
+ def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:nil)
485
487
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
486
488
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
487
489
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -496,6 +498,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
496
498
 
497
499
 
498
500
  request_headers = {}
501
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
499
502
 
500
503
  # Set Headers
501
504
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -555,8 +558,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
555
558
  #
556
559
  # @return [SharedAccessAuthorizationRuleResource] operation results.
557
560
  #
558
- def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
559
- response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
561
+ def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
562
+ response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
560
563
  response.body unless response.nil?
561
564
  end
562
565
 
@@ -575,8 +578,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
575
578
  #
576
579
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
577
580
  #
578
- def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
579
- create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
581
+ def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
582
+ create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
580
583
  end
581
584
 
582
585
  #
@@ -594,7 +597,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
594
597
  #
595
598
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
596
599
  #
597
- def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
600
+ def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
598
601
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
599
602
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
600
603
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -613,13 +616,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
613
616
 
614
617
 
615
618
  request_headers = {}
619
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
616
620
 
617
621
  # Set Headers
618
622
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
619
623
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
620
624
 
621
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
622
-
623
625
  # Serialize Request
624
626
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
625
627
  request_content = @client.serialize(request_mapper, parameters)
@@ -678,8 +680,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
678
680
  # will be added to the HTTP request.
679
681
  #
680
682
  #
681
- def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
682
- response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
683
+ def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
684
+ response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
683
685
  nil
684
686
  end
685
687
 
@@ -696,8 +698,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
696
698
  #
697
699
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
698
700
  #
699
- def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
700
- delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
701
+ def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
702
+ delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
701
703
  end
702
704
 
703
705
  #
@@ -713,7 +715,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
713
715
  #
714
716
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
715
717
  #
716
- def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
718
+ def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
717
719
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
718
720
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
719
721
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -731,6 +733,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
731
733
 
732
734
 
733
735
  request_headers = {}
736
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
734
737
 
735
738
  # Set Headers
736
739
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -778,8 +781,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
778
781
  #
779
782
  # @return [SharedAccessAuthorizationRuleResource] operation results.
780
783
  #
781
- def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
782
- response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
784
+ def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
785
+ response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
783
786
  response.body unless response.nil?
784
787
  end
785
788
 
@@ -796,8 +799,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
796
799
  #
797
800
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
798
801
  #
799
- def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
800
- get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
802
+ def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
803
+ get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
801
804
  end
802
805
 
803
806
  #
@@ -813,7 +816,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
813
816
  #
814
817
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
815
818
  #
816
- def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
819
+ def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
817
820
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
818
821
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
819
822
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -831,6 +834,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
831
834
 
832
835
 
833
836
  request_headers = {}
837
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
834
838
 
835
839
  # Set Headers
836
840
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -888,8 +892,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
888
892
  #
889
893
  # @return [ResourceListKeys] operation results.
890
894
  #
891
- def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
892
- response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
895
+ def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
896
+ response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
893
897
  response.body unless response.nil?
894
898
  end
895
899
 
@@ -906,8 +910,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
906
910
  #
907
911
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
908
912
  #
909
- def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
910
- list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
913
+ def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
914
+ list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
911
915
  end
912
916
 
913
917
  #
@@ -923,7 +927,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
923
927
  #
924
928
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
925
929
  #
926
- def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
930
+ def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
927
931
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
928
932
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
929
933
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -941,6 +945,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
941
945
 
942
946
 
943
947
  request_headers = {}
948
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
944
949
 
945
950
  # Set Headers
946
951
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1000,8 +1005,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1000
1005
  #
1001
1006
  # @return [ResourceListKeys] operation results.
1002
1007
  #
1003
- def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
1004
- response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
1008
+ def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
1009
+ response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1005
1010
  response.body unless response.nil?
1006
1011
  end
1007
1012
 
@@ -1020,8 +1025,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1020
1025
  #
1021
1026
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1022
1027
  #
1023
- def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
1024
- regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
1028
+ def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
1029
+ regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1025
1030
  end
1026
1031
 
1027
1032
  #
@@ -1039,7 +1044,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1039
1044
  #
1040
1045
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1041
1046
  #
1042
- def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
1047
+ def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
1043
1048
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1044
1049
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1045
1050
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1058,13 +1063,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1058
1063
 
1059
1064
 
1060
1065
  request_headers = {}
1066
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1061
1067
 
1062
1068
  # Set Headers
1063
1069
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1064
1070
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1065
1071
 
1066
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1067
-
1068
1072
  # Serialize Request
1069
1073
  request_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::RegenerateKeysParameters.mapper()
1070
1074
  request_content = @client.serialize(request_mapper, parameters)
@@ -1121,8 +1125,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1121
1125
  #
1122
1126
  # @return [QueueListResult] operation results.
1123
1127
  #
1124
- def list_all_next(next_page_link, custom_headers = nil)
1125
- response = list_all_next_async(next_page_link, custom_headers).value!
1128
+ def list_all_next(next_page_link, custom_headers:nil)
1129
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
1126
1130
  response.body unless response.nil?
1127
1131
  end
1128
1132
 
@@ -1136,8 +1140,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1136
1140
  #
1137
1141
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1138
1142
  #
1139
- def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1140
- list_all_next_async(next_page_link, custom_headers).value!
1143
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
1144
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
1141
1145
  end
1142
1146
 
1143
1147
  #
@@ -1150,11 +1154,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1150
1154
  #
1151
1155
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1152
1156
  #
1153
- def list_all_next_async(next_page_link, custom_headers = nil)
1157
+ def list_all_next_async(next_page_link, custom_headers:nil)
1154
1158
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1155
1159
 
1156
1160
 
1157
1161
  request_headers = {}
1162
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1158
1163
 
1159
1164
  # Set Headers
1160
1165
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1208,8 +1213,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1208
1213
  #
1209
1214
  # @return [SharedAccessAuthorizationRuleListResult] operation results.
1210
1215
  #
1211
- def list_authorization_rules_next(next_page_link, custom_headers = nil)
1212
- response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
1216
+ def list_authorization_rules_next(next_page_link, custom_headers:nil)
1217
+ response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1213
1218
  response.body unless response.nil?
1214
1219
  end
1215
1220
 
@@ -1223,8 +1228,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1223
1228
  #
1224
1229
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1225
1230
  #
1226
- def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
1227
- list_authorization_rules_next_async(next_page_link, custom_headers).value!
1231
+ def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
1232
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1228
1233
  end
1229
1234
 
1230
1235
  #
@@ -1237,11 +1242,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1237
1242
  #
1238
1243
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1239
1244
  #
1240
- def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
1245
+ def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
1241
1246
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1242
1247
 
1243
1248
 
1244
1249
  request_headers = {}
1250
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1245
1251
 
1246
1252
  # Set Headers
1247
1253
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1296,12 +1302,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1296
1302
  #
1297
1303
  # @return [QueueListResult] which provide lazy access to pages of the response.
1298
1304
  #
1299
- def list_all_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1300
- response = list_all_async(resource_group_name, namespace_name, custom_headers).value!
1305
+ def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1306
+ response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1301
1307
  unless response.nil?
1302
1308
  page = response.body
1303
1309
  page.next_method = Proc.new do |next_page_link|
1304
- list_all_next_async(next_page_link, custom_headers)
1310
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
1305
1311
  end
1306
1312
  page
1307
1313
  end
@@ -1320,12 +1326,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1320
1326
  # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
1321
1327
  # to pages of the response.
1322
1328
  #
1323
- def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers = nil)
1324
- response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
1329
+ def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:nil)
1330
+ response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
1325
1331
  unless response.nil?
1326
1332
  page = response.body
1327
1333
  page.next_method = Proc.new do |next_page_link|
1328
- list_authorization_rules_next_async(next_page_link, custom_headers)
1334
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
1329
1335
  end
1330
1336
  page
1331
1337
  end