azure_mgmt_event_hub 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +33 -30
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +4 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +78 -72
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +113 -107
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +15 -13
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +33 -30
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +595 -40
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +4 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +78 -72
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +14 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb +3 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/eventhub.rb +0 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +113 -107
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb +15 -13
- data/lib/profiles/latest/eventhub_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/eventhub_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/eventhub_profile_module.rb +128 -109
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -31,8 +31,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
31
31
|
#
|
32
32
|
# @return [CheckNameAvailabilityResult] operation results.
|
33
33
|
#
|
34
|
-
def check_name_availability(parameters, custom_headers
|
35
|
-
response = check_name_availability_async(parameters, custom_headers).value!
|
34
|
+
def check_name_availability(parameters, custom_headers:nil)
|
35
|
+
response = check_name_availability_async(parameters, custom_headers:custom_headers).value!
|
36
36
|
response.body unless response.nil?
|
37
37
|
end
|
38
38
|
|
@@ -46,8 +46,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def check_name_availability_with_http_info(parameters, custom_headers
|
50
|
-
check_name_availability_async(parameters, custom_headers).value!
|
49
|
+
def check_name_availability_with_http_info(parameters, custom_headers:nil)
|
50
|
+
check_name_availability_async(parameters, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,20 +60,19 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def check_name_availability_async(parameters, custom_headers
|
63
|
+
def check_name_availability_async(parameters, custom_headers:nil)
|
64
64
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
65
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
66
66
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
67
67
|
|
68
68
|
|
69
69
|
request_headers = {}
|
70
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
70
71
|
|
71
72
|
# Set Headers
|
72
73
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
73
74
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
74
75
|
|
75
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
76
|
-
|
77
76
|
# Serialize Request
|
78
77
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::CheckNameAvailabilityParameter.mapper()
|
79
78
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -129,8 +128,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
129
128
|
#
|
130
129
|
# @return [Array<NamespaceResource>] operation results.
|
131
130
|
#
|
132
|
-
def list_by_subscription(custom_headers
|
133
|
-
first_page = list_by_subscription_as_lazy(custom_headers)
|
131
|
+
def list_by_subscription(custom_headers:nil)
|
132
|
+
first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
|
134
133
|
first_page.get_all_items
|
135
134
|
end
|
136
135
|
|
@@ -143,8 +142,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
143
142
|
#
|
144
143
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
145
144
|
#
|
146
|
-
def list_by_subscription_with_http_info(custom_headers
|
147
|
-
list_by_subscription_async(custom_headers).value!
|
145
|
+
def list_by_subscription_with_http_info(custom_headers:nil)
|
146
|
+
list_by_subscription_async(custom_headers:custom_headers).value!
|
148
147
|
end
|
149
148
|
|
150
149
|
#
|
@@ -156,12 +155,13 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
156
155
|
#
|
157
156
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
158
157
|
#
|
159
|
-
def list_by_subscription_async(custom_headers
|
158
|
+
def list_by_subscription_async(custom_headers:nil)
|
160
159
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
161
160
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
162
161
|
|
163
162
|
|
164
163
|
request_headers = {}
|
164
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
165
165
|
|
166
166
|
# Set Headers
|
167
167
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -216,8 +216,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
216
216
|
#
|
217
217
|
# @return [Array<NamespaceResource>] operation results.
|
218
218
|
#
|
219
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
220
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
219
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
220
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
221
221
|
first_page.get_all_items
|
222
222
|
end
|
223
223
|
|
@@ -231,8 +231,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
231
231
|
#
|
232
232
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
233
233
|
#
|
234
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
235
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
234
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
235
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
236
236
|
end
|
237
237
|
|
238
238
|
#
|
@@ -245,7 +245,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
245
245
|
#
|
246
246
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
247
247
|
#
|
248
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
248
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
249
249
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
250
250
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
251
251
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -254,6 +254,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
254
254
|
|
255
255
|
|
256
256
|
request_headers = {}
|
257
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
257
258
|
|
258
259
|
# Set Headers
|
259
260
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -312,8 +313,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
312
313
|
#
|
313
314
|
# @return [NamespaceResource] operation results.
|
314
315
|
#
|
315
|
-
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers
|
316
|
-
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
316
|
+
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
317
|
+
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
317
318
|
response.body unless response.nil?
|
318
319
|
end
|
319
320
|
|
@@ -329,9 +330,9 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
329
330
|
# @return [Concurrent::Promise] promise which provides async access to http
|
330
331
|
# response.
|
331
332
|
#
|
332
|
-
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers
|
333
|
+
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
333
334
|
# Send request
|
334
|
-
promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers)
|
335
|
+
promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers)
|
335
336
|
|
336
337
|
promise = promise.then do |response|
|
337
338
|
# Defining deserialization method.
|
@@ -357,8 +358,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
357
358
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
358
359
|
# will be added to the HTTP request.
|
359
360
|
#
|
360
|
-
def delete(resource_group_name, namespace_name, custom_headers
|
361
|
-
response = delete_async(resource_group_name, namespace_name, custom_headers).value!
|
361
|
+
def delete(resource_group_name, namespace_name, custom_headers:nil)
|
362
|
+
response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
362
363
|
nil
|
363
364
|
end
|
364
365
|
|
@@ -372,9 +373,9 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
372
373
|
# @return [Concurrent::Promise] promise which provides async access to http
|
373
374
|
# response.
|
374
375
|
#
|
375
|
-
def delete_async(resource_group_name, namespace_name, custom_headers
|
376
|
+
def delete_async(resource_group_name, namespace_name, custom_headers:nil)
|
376
377
|
# Send request
|
377
|
-
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers)
|
378
|
+
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers)
|
378
379
|
|
379
380
|
promise = promise.then do |response|
|
380
381
|
# Defining deserialization method.
|
@@ -399,8 +400,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
399
400
|
#
|
400
401
|
# @return [NamespaceResource] operation results.
|
401
402
|
#
|
402
|
-
def get(resource_group_name, namespace_name, custom_headers
|
403
|
-
response = get_async(resource_group_name, namespace_name, custom_headers).value!
|
403
|
+
def get(resource_group_name, namespace_name, custom_headers:nil)
|
404
|
+
response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
404
405
|
response.body unless response.nil?
|
405
406
|
end
|
406
407
|
|
@@ -415,8 +416,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
415
416
|
#
|
416
417
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
417
418
|
#
|
418
|
-
def get_with_http_info(resource_group_name, namespace_name, custom_headers
|
419
|
-
get_async(resource_group_name, namespace_name, custom_headers).value!
|
419
|
+
def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
420
|
+
get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
420
421
|
end
|
421
422
|
|
422
423
|
#
|
@@ -430,7 +431,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
430
431
|
#
|
431
432
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
432
433
|
#
|
433
|
-
def get_async(resource_group_name, namespace_name, custom_headers
|
434
|
+
def get_async(resource_group_name, namespace_name, custom_headers:nil)
|
434
435
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
435
436
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
436
437
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -442,6 +443,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
442
443
|
|
443
444
|
|
444
445
|
request_headers = {}
|
446
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
445
447
|
|
446
448
|
# Set Headers
|
447
449
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -510,8 +512,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
510
512
|
#
|
511
513
|
# @return [NamespaceResource] operation results.
|
512
514
|
#
|
513
|
-
def update(resource_group_name, namespace_name, parameters, custom_headers
|
514
|
-
response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
515
|
+
def update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
516
|
+
response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
515
517
|
response.body unless response.nil?
|
516
518
|
end
|
517
519
|
|
@@ -529,8 +531,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
529
531
|
#
|
530
532
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
531
533
|
#
|
532
|
-
def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
533
|
-
update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
534
|
+
def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
535
|
+
update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
534
536
|
end
|
535
537
|
|
536
538
|
#
|
@@ -547,7 +549,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
547
549
|
#
|
548
550
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
549
551
|
#
|
550
|
-
def update_async(resource_group_name, namespace_name, parameters, custom_headers
|
552
|
+
def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
551
553
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
552
554
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
553
555
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -560,13 +562,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
560
562
|
|
561
563
|
|
562
564
|
request_headers = {}
|
565
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
563
566
|
|
564
567
|
# Set Headers
|
565
568
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
566
569
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
567
570
|
|
568
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
|
-
|
570
571
|
# Serialize Request
|
571
572
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::NamespaceUpdateParameter.mapper()
|
572
573
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -634,8 +635,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
634
635
|
#
|
635
636
|
# @return [Array<SharedAccessAuthorizationRuleResource>] operation results.
|
636
637
|
#
|
637
|
-
def list_authorization_rules(resource_group_name, namespace_name, custom_headers
|
638
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers)
|
638
|
+
def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil)
|
639
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
639
640
|
first_page.get_all_items
|
640
641
|
end
|
641
642
|
|
@@ -650,8 +651,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
650
651
|
#
|
651
652
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
652
653
|
#
|
653
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers
|
654
|
-
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
654
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
655
|
+
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
655
656
|
end
|
656
657
|
|
657
658
|
#
|
@@ -665,7 +666,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
665
666
|
#
|
666
667
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
667
668
|
#
|
668
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers
|
669
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil)
|
669
670
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
670
671
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
671
672
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -677,6 +678,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
677
678
|
|
678
679
|
|
679
680
|
request_headers = {}
|
681
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
680
682
|
|
681
683
|
# Set Headers
|
682
684
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -735,8 +737,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
735
737
|
#
|
736
738
|
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
737
739
|
#
|
738
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
739
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
740
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
741
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
740
742
|
response.body unless response.nil?
|
741
743
|
end
|
742
744
|
|
@@ -754,8 +756,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
754
756
|
#
|
755
757
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
756
758
|
#
|
757
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
758
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
759
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
760
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
759
761
|
end
|
760
762
|
|
761
763
|
#
|
@@ -772,7 +774,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
772
774
|
#
|
773
775
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
774
776
|
#
|
775
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
777
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
776
778
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
777
779
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
778
780
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -788,13 +790,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
788
790
|
|
789
791
|
|
790
792
|
request_headers = {}
|
793
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
791
794
|
|
792
795
|
# Set Headers
|
793
796
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
794
797
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
795
798
|
|
796
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
797
|
-
|
798
799
|
# Serialize Request
|
799
800
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
800
801
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -852,8 +853,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
852
853
|
# will be added to the HTTP request.
|
853
854
|
#
|
854
855
|
#
|
855
|
-
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
856
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
856
|
+
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
857
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
857
858
|
nil
|
858
859
|
end
|
859
860
|
|
@@ -869,8 +870,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
869
870
|
#
|
870
871
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
871
872
|
#
|
872
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
873
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
873
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
874
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
874
875
|
end
|
875
876
|
|
876
877
|
#
|
@@ -885,7 +886,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
885
886
|
#
|
886
887
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
887
888
|
#
|
888
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
889
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
889
890
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
890
891
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
891
892
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -900,6 +901,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
900
901
|
|
901
902
|
|
902
903
|
request_headers = {}
|
904
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
903
905
|
|
904
906
|
# Set Headers
|
905
907
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -946,8 +948,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
946
948
|
#
|
947
949
|
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
948
950
|
#
|
949
|
-
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
950
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
951
|
+
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
952
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
951
953
|
response.body unless response.nil?
|
952
954
|
end
|
953
955
|
|
@@ -963,8 +965,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
963
965
|
#
|
964
966
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
965
967
|
#
|
966
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
967
|
-
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
968
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
969
|
+
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
968
970
|
end
|
969
971
|
|
970
972
|
#
|
@@ -979,7 +981,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
979
981
|
#
|
980
982
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
981
983
|
#
|
982
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
984
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
983
985
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
984
986
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
985
987
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -994,6 +996,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
994
996
|
|
995
997
|
|
996
998
|
request_headers = {}
|
999
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
997
1000
|
|
998
1001
|
# Set Headers
|
999
1002
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1050,8 +1053,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1050
1053
|
#
|
1051
1054
|
# @return [ResourceListKeys] operation results.
|
1052
1055
|
#
|
1053
|
-
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1054
|
-
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1056
|
+
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1057
|
+
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1055
1058
|
response.body unless response.nil?
|
1056
1059
|
end
|
1057
1060
|
|
@@ -1067,8 +1070,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1067
1070
|
#
|
1068
1071
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1069
1072
|
#
|
1070
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1071
|
-
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1073
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1074
|
+
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1072
1075
|
end
|
1073
1076
|
|
1074
1077
|
#
|
@@ -1083,7 +1086,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1083
1086
|
#
|
1084
1087
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1085
1088
|
#
|
1086
|
-
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1089
|
+
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1087
1090
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1088
1091
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1089
1092
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1098,6 +1101,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1098
1101
|
|
1099
1102
|
|
1100
1103
|
request_headers = {}
|
1104
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1101
1105
|
|
1102
1106
|
# Set Headers
|
1103
1107
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1157,8 +1161,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1157
1161
|
#
|
1158
1162
|
# @return [ResourceListKeys] operation results.
|
1159
1163
|
#
|
1160
|
-
def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1161
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
1164
|
+
def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1165
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1162
1166
|
response.body unless response.nil?
|
1163
1167
|
end
|
1164
1168
|
|
@@ -1177,8 +1181,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1177
1181
|
#
|
1178
1182
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1179
1183
|
#
|
1180
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1181
|
-
regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
1184
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1185
|
+
regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1182
1186
|
end
|
1183
1187
|
|
1184
1188
|
#
|
@@ -1196,7 +1200,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1196
1200
|
#
|
1197
1201
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1198
1202
|
#
|
1199
|
-
def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1203
|
+
def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1200
1204
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1201
1205
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1202
1206
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1212,13 +1216,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1212
1216
|
|
1213
1217
|
|
1214
1218
|
request_headers = {}
|
1219
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1215
1220
|
|
1216
1221
|
# Set Headers
|
1217
1222
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1218
1223
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1219
1224
|
|
1220
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1221
|
-
|
1222
1225
|
# Serialize Request
|
1223
1226
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::RegenerateKeysParameters.mapper()
|
1224
1227
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1279,8 +1282,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1279
1282
|
#
|
1280
1283
|
# @return [NamespaceResource] operation results.
|
1281
1284
|
#
|
1282
|
-
def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers
|
1283
|
-
response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
1285
|
+
def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1286
|
+
response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
1284
1287
|
response.body unless response.nil?
|
1285
1288
|
end
|
1286
1289
|
|
@@ -1298,8 +1301,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1298
1301
|
#
|
1299
1302
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1300
1303
|
#
|
1301
|
-
def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
1302
|
-
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
1304
|
+
def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1305
|
+
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
1303
1306
|
end
|
1304
1307
|
|
1305
1308
|
#
|
@@ -1316,7 +1319,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1316
1319
|
#
|
1317
1320
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1318
1321
|
#
|
1319
|
-
def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers
|
1322
|
+
def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1320
1323
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1321
1324
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1322
1325
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1329,13 +1332,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1329
1332
|
|
1330
1333
|
|
1331
1334
|
request_headers = {}
|
1335
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1332
1336
|
|
1333
1337
|
# Set Headers
|
1334
1338
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1335
1339
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1336
1340
|
|
1337
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1338
|
-
|
1339
1341
|
# Serialize Request
|
1340
1342
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::NamespaceCreateOrUpdateParameters.mapper()
|
1341
1343
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1403,8 +1405,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1403
1405
|
# will be added to the HTTP request.
|
1404
1406
|
#
|
1405
1407
|
#
|
1406
|
-
def begin_delete(resource_group_name, namespace_name, custom_headers
|
1407
|
-
response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
1408
|
+
def begin_delete(resource_group_name, namespace_name, custom_headers:nil)
|
1409
|
+
response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1408
1410
|
nil
|
1409
1411
|
end
|
1410
1412
|
|
@@ -1420,8 +1422,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1420
1422
|
#
|
1421
1423
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1422
1424
|
#
|
1423
|
-
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers
|
1424
|
-
begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
1425
|
+
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
1426
|
+
begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1425
1427
|
end
|
1426
1428
|
|
1427
1429
|
#
|
@@ -1436,7 +1438,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1436
1438
|
#
|
1437
1439
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1438
1440
|
#
|
1439
|
-
def begin_delete_async(resource_group_name, namespace_name, custom_headers
|
1441
|
+
def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil)
|
1440
1442
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1441
1443
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1442
1444
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1448,6 +1450,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1448
1450
|
|
1449
1451
|
|
1450
1452
|
request_headers = {}
|
1453
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1451
1454
|
|
1452
1455
|
# Set Headers
|
1453
1456
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1493,8 +1496,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1493
1496
|
#
|
1494
1497
|
# @return [NamespaceListResult] operation results.
|
1495
1498
|
#
|
1496
|
-
def list_by_subscription_next(next_page_link, custom_headers
|
1497
|
-
response = list_by_subscription_next_async(next_page_link, custom_headers).value!
|
1499
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
1500
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
1498
1501
|
response.body unless response.nil?
|
1499
1502
|
end
|
1500
1503
|
|
@@ -1509,8 +1512,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1509
1512
|
#
|
1510
1513
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1511
1514
|
#
|
1512
|
-
def list_by_subscription_next_with_http_info(next_page_link, custom_headers
|
1513
|
-
list_by_subscription_next_async(next_page_link, custom_headers).value!
|
1515
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
1516
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
1514
1517
|
end
|
1515
1518
|
|
1516
1519
|
#
|
@@ -1524,11 +1527,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1524
1527
|
#
|
1525
1528
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1526
1529
|
#
|
1527
|
-
def list_by_subscription_next_async(next_page_link, custom_headers
|
1530
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
1528
1531
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1529
1532
|
|
1530
1533
|
|
1531
1534
|
request_headers = {}
|
1535
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1532
1536
|
|
1533
1537
|
# Set Headers
|
1534
1538
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1582,8 +1586,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1582
1586
|
#
|
1583
1587
|
# @return [NamespaceListResult] operation results.
|
1584
1588
|
#
|
1585
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
1586
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1589
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
1590
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1587
1591
|
response.body unless response.nil?
|
1588
1592
|
end
|
1589
1593
|
|
@@ -1597,8 +1601,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1597
1601
|
#
|
1598
1602
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1599
1603
|
#
|
1600
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
1601
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1604
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1605
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1602
1606
|
end
|
1603
1607
|
|
1604
1608
|
#
|
@@ -1611,11 +1615,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1611
1615
|
#
|
1612
1616
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1613
1617
|
#
|
1614
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
1618
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1615
1619
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1616
1620
|
|
1617
1621
|
|
1618
1622
|
request_headers = {}
|
1623
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1619
1624
|
|
1620
1625
|
# Set Headers
|
1621
1626
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1669,8 +1674,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1669
1674
|
#
|
1670
1675
|
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
1671
1676
|
#
|
1672
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1673
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1677
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1678
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1674
1679
|
response.body unless response.nil?
|
1675
1680
|
end
|
1676
1681
|
|
@@ -1684,8 +1689,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1684
1689
|
#
|
1685
1690
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1686
1691
|
#
|
1687
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1688
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1692
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1693
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1689
1694
|
end
|
1690
1695
|
|
1691
1696
|
#
|
@@ -1698,11 +1703,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1698
1703
|
#
|
1699
1704
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1700
1705
|
#
|
1701
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1706
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1702
1707
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1703
1708
|
|
1704
1709
|
|
1705
1710
|
request_headers = {}
|
1711
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1706
1712
|
|
1707
1713
|
# Set Headers
|
1708
1714
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1756,12 +1762,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1756
1762
|
# @return [NamespaceListResult] which provide lazy access to pages of the
|
1757
1763
|
# response.
|
1758
1764
|
#
|
1759
|
-
def list_by_subscription_as_lazy(custom_headers
|
1760
|
-
response = list_by_subscription_async(custom_headers).value!
|
1765
|
+
def list_by_subscription_as_lazy(custom_headers:nil)
|
1766
|
+
response = list_by_subscription_async(custom_headers:custom_headers).value!
|
1761
1767
|
unless response.nil?
|
1762
1768
|
page = response.body
|
1763
1769
|
page.next_method = Proc.new do |next_page_link|
|
1764
|
-
list_by_subscription_next_async(next_page_link, custom_headers)
|
1770
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
1765
1771
|
end
|
1766
1772
|
page
|
1767
1773
|
end
|
@@ -1778,12 +1784,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1778
1784
|
# @return [NamespaceListResult] which provide lazy access to pages of the
|
1779
1785
|
# response.
|
1780
1786
|
#
|
1781
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1782
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1787
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1788
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1783
1789
|
unless response.nil?
|
1784
1790
|
page = response.body
|
1785
1791
|
page.next_method = Proc.new do |next_page_link|
|
1786
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1792
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1787
1793
|
end
|
1788
1794
|
page
|
1789
1795
|
end
|
@@ -1801,12 +1807,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1801
1807
|
# @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
|
1802
1808
|
# to pages of the response.
|
1803
1809
|
#
|
1804
|
-
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers
|
1805
|
-
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
1810
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1811
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1806
1812
|
unless response.nil?
|
1807
1813
|
page = response.body
|
1808
1814
|
page.next_method = Proc.new do |next_page_link|
|
1809
|
-
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1815
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1810
1816
|
end
|
1811
1817
|
page
|
1812
1818
|
end
|