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::V2017_04_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::V2017_04_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::V2017_04_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::V2017_04_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::V2017_04_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::V2017_04_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::V2017_04_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
@@ -29,8 +29,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
29
29
  #
30
30
  # @return [Array<PremiumMessagingRegions>] 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::V2017_04_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,12 +54,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_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
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
60
60
 
61
61
 
62
62
  request_headers = {}
63
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
64
 
64
65
  # Set Headers
65
66
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -114,8 +115,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
114
115
  #
115
116
  # @return [PremiumMessagingRegionsListResult] operation results.
116
117
  #
117
- def list_next(next_page_link, custom_headers = nil)
118
- response = list_next_async(next_page_link, custom_headers).value!
118
+ def list_next(next_page_link, custom_headers:nil)
119
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
119
120
  response.body unless response.nil?
120
121
  end
121
122
 
@@ -129,8 +130,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
129
130
  #
130
131
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
131
132
  #
132
- def list_next_with_http_info(next_page_link, custom_headers = nil)
133
- list_next_async(next_page_link, custom_headers).value!
133
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
134
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
134
135
  end
135
136
 
136
137
  #
@@ -143,11 +144,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
143
144
  #
144
145
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
145
146
  #
146
- def list_next_async(next_page_link, custom_headers = nil)
147
+ def list_next_async(next_page_link, custom_headers:nil)
147
148
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
148
149
 
149
150
 
150
151
  request_headers = {}
152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
151
153
 
152
154
  # Set Headers
153
155
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -200,12 +202,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
200
202
  # @return [PremiumMessagingRegionsListResult] which provide lazy access to
201
203
  # pages of the response.
202
204
  #
203
- def list_as_lazy(custom_headers = nil)
204
- response = list_async(custom_headers).value!
205
+ def list_as_lazy(custom_headers:nil)
206
+ response = list_async(custom_headers:custom_headers).value!
205
207
  unless response.nil?
206
208
  page = response.body
207
209
  page.next_method = Proc.new do |next_page_link|
208
- list_next_async(next_page_link, custom_headers)
210
+ list_next_async(next_page_link, custom_headers:custom_headers)
209
211
  end
210
212
  page
211
213
  end
@@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
32
32
  #
33
33
  # @return [Array<SBQueue>] 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
@@ -133,8 +134,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
133
134
  #
134
135
  # @return [SBQueue] 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::V2017_04_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::V2017_04_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
@@ -185,13 +186,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
185
186
 
186
187
 
187
188
  request_headers = {}
189
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
188
190
 
189
191
  # Set Headers
190
192
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
191
193
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
192
194
 
193
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
194
-
195
195
  # Serialize Request
196
196
  request_mapper = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue.mapper()
197
197
  request_content = @client.serialize(request_mapper, parameters)
@@ -249,8 +249,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
249
249
  # will be added to the HTTP request.
250
250
  #
251
251
  #
252
- def delete(resource_group_name, namespace_name, queue_name, custom_headers = nil)
253
- response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
252
+ def delete(resource_group_name, namespace_name, queue_name, custom_headers:nil)
253
+ response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
254
254
  nil
255
255
  end
256
256
 
@@ -266,8 +266,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
266
266
  #
267
267
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
268
268
  #
269
- def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil)
270
- delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
269
+ def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil)
270
+ delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
271
271
  end
272
272
 
273
273
  #
@@ -282,7 +282,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
282
282
  #
283
283
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
284
284
  #
285
- def delete_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
285
+ def delete_async(resource_group_name, namespace_name, queue_name, custom_headers:nil)
286
286
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
287
287
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
288
288
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -296,6 +296,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
296
296
 
297
297
 
298
298
  request_headers = {}
299
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
299
300
 
300
301
  # Set Headers
301
302
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -342,8 +343,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
342
343
  #
343
344
  # @return [SBQueue] operation results.
344
345
  #
345
- def get(resource_group_name, namespace_name, queue_name, custom_headers = nil)
346
- response = get_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
346
+ def get(resource_group_name, namespace_name, queue_name, custom_headers:nil)
347
+ response = get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
347
348
  response.body unless response.nil?
348
349
  end
349
350
 
@@ -359,8 +360,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
359
360
  #
360
361
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
361
362
  #
362
- def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil)
363
- get_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
363
+ def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil)
364
+ get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
364
365
  end
365
366
 
366
367
  #
@@ -375,7 +376,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
375
376
  #
376
377
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
377
378
  #
378
- def get_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
379
+ def get_async(resource_group_name, namespace_name, queue_name, custom_headers:nil)
379
380
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
380
381
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
381
382
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -389,6 +390,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
389
390
 
390
391
 
391
392
  request_headers = {}
393
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
392
394
 
393
395
  # Set Headers
394
396
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -445,8 +447,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
445
447
  #
446
448
  # @return [Array<SBAuthorizationRule>] operation results.
447
449
  #
448
- def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers = nil)
449
- first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers)
450
+ def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers:nil)
451
+ first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers)
450
452
  first_page.get_all_items
451
453
  end
452
454
 
@@ -462,8 +464,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
462
464
  #
463
465
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
464
466
  #
465
- def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil)
466
- list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
467
+ def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil)
468
+ list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
467
469
  end
468
470
 
469
471
  #
@@ -478,7 +480,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
478
480
  #
479
481
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
480
482
  #
481
- def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
483
+ def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:nil)
482
484
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
483
485
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
484
486
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -492,6 +494,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
492
494
 
493
495
 
494
496
  request_headers = {}
497
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
495
498
 
496
499
  # Set Headers
497
500
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -550,8 +553,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
550
553
  #
551
554
  # @return [SBAuthorizationRule] operation results.
552
555
  #
553
- def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
554
- response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
556
+ def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
557
+ response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
555
558
  response.body unless response.nil?
556
559
  end
557
560
 
@@ -569,8 +572,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
569
572
  #
570
573
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
571
574
  #
572
- def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
573
- create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
575
+ def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
576
+ create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
574
577
  end
575
578
 
576
579
  #
@@ -587,7 +590,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
587
590
  #
588
591
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
589
592
  #
590
- def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
593
+ def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
591
594
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
592
595
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
593
596
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -605,13 +608,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
605
608
 
606
609
 
607
610
  request_headers = {}
611
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
608
612
 
609
613
  # Set Headers
610
614
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
611
615
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
612
616
 
613
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
614
-
615
617
  # Serialize Request
616
618
  request_mapper = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule.mapper()
617
619
  request_content = @client.serialize(request_mapper, parameters)
@@ -670,8 +672,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
670
672
  # will be added to the HTTP request.
671
673
  #
672
674
  #
673
- def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
674
- response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
675
+ def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
676
+ response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
675
677
  nil
676
678
  end
677
679
 
@@ -688,8 +690,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
688
690
  #
689
691
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
690
692
  #
691
- def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
692
- delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
693
+ def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
694
+ delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
693
695
  end
694
696
 
695
697
  #
@@ -705,7 +707,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
705
707
  #
706
708
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
707
709
  #
708
- def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
710
+ def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
709
711
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
710
712
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
711
713
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -722,6 +724,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
722
724
 
723
725
 
724
726
  request_headers = {}
727
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
725
728
 
726
729
  # Set Headers
727
730
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -769,8 +772,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
769
772
  #
770
773
  # @return [SBAuthorizationRule] operation results.
771
774
  #
772
- def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
773
- response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
775
+ def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
776
+ response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
774
777
  response.body unless response.nil?
775
778
  end
776
779
 
@@ -787,8 +790,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
787
790
  #
788
791
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
789
792
  #
790
- def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
791
- get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
793
+ def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
794
+ get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
792
795
  end
793
796
 
794
797
  #
@@ -804,7 +807,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
804
807
  #
805
808
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
806
809
  #
807
- def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
810
+ def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
808
811
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
809
812
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
810
813
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -821,6 +824,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
821
824
 
822
825
 
823
826
  request_headers = {}
827
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
824
828
 
825
829
  # Set Headers
826
830
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -878,8 +882,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
878
882
  #
879
883
  # @return [AccessKeys] operation results.
880
884
  #
881
- def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
882
- response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
885
+ def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
886
+ response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
883
887
  response.body unless response.nil?
884
888
  end
885
889
 
@@ -896,8 +900,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
896
900
  #
897
901
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
898
902
  #
899
- def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
900
- list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
903
+ def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
904
+ list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
901
905
  end
902
906
 
903
907
  #
@@ -913,7 +917,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
913
917
  #
914
918
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
915
919
  #
916
- def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
920
+ def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
917
921
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
918
922
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
919
923
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -930,6 +934,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
930
934
 
931
935
 
932
936
  request_headers = {}
937
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
933
938
 
934
939
  # Set Headers
935
940
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -989,8 +994,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
989
994
  #
990
995
  # @return [AccessKeys] operation results.
991
996
  #
992
- def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
993
- response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
997
+ def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
998
+ response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
994
999
  response.body unless response.nil?
995
1000
  end
996
1001
 
@@ -1009,8 +1014,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1009
1014
  #
1010
1015
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1011
1016
  #
1012
- def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
1013
- regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
1017
+ def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
1018
+ regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1014
1019
  end
1015
1020
 
1016
1021
  #
@@ -1028,7 +1033,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1028
1033
  #
1029
1034
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1030
1035
  #
1031
- def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
1036
+ def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil)
1032
1037
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1033
1038
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1034
1039
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1046,13 +1051,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1046
1051
 
1047
1052
 
1048
1053
  request_headers = {}
1054
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1049
1055
 
1050
1056
  # Set Headers
1051
1057
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1052
1058
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1053
1059
 
1054
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1055
-
1056
1060
  # Serialize Request
1057
1061
  request_mapper = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
1058
1062
  request_content = @client.serialize(request_mapper, parameters)
@@ -1109,8 +1113,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1109
1113
  #
1110
1114
  # @return [SBQueueListResult] operation results.
1111
1115
  #
1112
- def list_by_namespace_next(next_page_link, custom_headers = nil)
1113
- response = list_by_namespace_next_async(next_page_link, custom_headers).value!
1116
+ def list_by_namespace_next(next_page_link, custom_headers:nil)
1117
+ response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
1114
1118
  response.body unless response.nil?
1115
1119
  end
1116
1120
 
@@ -1124,8 +1128,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1124
1128
  #
1125
1129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1126
1130
  #
1127
- def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
1128
- list_by_namespace_next_async(next_page_link, custom_headers).value!
1131
+ def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil)
1132
+ list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
1129
1133
  end
1130
1134
 
1131
1135
  #
@@ -1138,11 +1142,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1138
1142
  #
1139
1143
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1140
1144
  #
1141
- def list_by_namespace_next_async(next_page_link, custom_headers = nil)
1145
+ def list_by_namespace_next_async(next_page_link, custom_headers:nil)
1142
1146
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1143
1147
 
1144
1148
 
1145
1149
  request_headers = {}
1150
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1146
1151
 
1147
1152
  # Set Headers
1148
1153
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1196,8 +1201,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1196
1201
  #
1197
1202
  # @return [SBAuthorizationRuleListResult] operation results.
1198
1203
  #
1199
- def list_authorization_rules_next(next_page_link, custom_headers = nil)
1200
- response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
1204
+ def list_authorization_rules_next(next_page_link, custom_headers:nil)
1205
+ response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1201
1206
  response.body unless response.nil?
1202
1207
  end
1203
1208
 
@@ -1211,8 +1216,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1211
1216
  #
1212
1217
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1213
1218
  #
1214
- def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
1215
- list_authorization_rules_next_async(next_page_link, custom_headers).value!
1219
+ def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
1220
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1216
1221
  end
1217
1222
 
1218
1223
  #
@@ -1225,11 +1230,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1225
1230
  #
1226
1231
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1227
1232
  #
1228
- def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
1233
+ def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
1229
1234
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1230
1235
 
1231
1236
 
1232
1237
  request_headers = {}
1238
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1233
1239
 
1234
1240
  # Set Headers
1235
1241
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1285,12 +1291,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1285
1291
  # @return [SBQueueListResult] which provide lazy access to pages of the
1286
1292
  # response.
1287
1293
  #
1288
- def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1289
- response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
1294
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1295
+ response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1290
1296
  unless response.nil?
1291
1297
  page = response.body
1292
1298
  page.next_method = Proc.new do |next_page_link|
1293
- list_by_namespace_next_async(next_page_link, custom_headers)
1299
+ list_by_namespace_next_async(next_page_link, custom_headers:custom_headers)
1294
1300
  end
1295
1301
  page
1296
1302
  end
@@ -1309,12 +1315,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1309
1315
  # @return [SBAuthorizationRuleListResult] which provide lazy access to pages of
1310
1316
  # the response.
1311
1317
  #
1312
- def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers = nil)
1313
- response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
1318
+ def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:nil)
1319
+ response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value!
1314
1320
  unless response.nil?
1315
1321
  page = response.body
1316
1322
  page.next_method = Proc.new do |next_page_link|
1317
- list_authorization_rules_next_async(next_page_link, custom_headers)
1323
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
1318
1324
  end
1319
1325
  page
1320
1326
  end