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
@@ -18,10 +18,14 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
18
18
|
# 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'
|
19
19
|
attr_accessor :provisioning_state
|
20
20
|
|
21
|
-
# @return [String] Primary/Secondary eventhub namespace
|
22
|
-
# part of GEO DR pairning
|
21
|
+
# @return [String] ARM Id of the Primary/Secondary eventhub namespace
|
22
|
+
# name, which is part of GEO DR pairning
|
23
23
|
attr_accessor :partner_namespace
|
24
24
|
|
25
|
+
# @return [String] Alternate name specified when alias and namespace
|
26
|
+
# names are same.
|
27
|
+
attr_accessor :alternate_name
|
28
|
+
|
25
29
|
# @return [RoleDisasterRecovery] role of namespace in GEO DR - possible
|
26
30
|
# values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible
|
27
31
|
# values include: 'Primary', 'PrimaryNotReplicating', 'Secondary'
|
@@ -86,6 +90,14 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
86
90
|
name: 'String'
|
87
91
|
}
|
88
92
|
},
|
93
|
+
alternate_name: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'properties.alternateName',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
89
101
|
role: {
|
90
102
|
client_side_validation: true,
|
91
103
|
required: false,
|
@@ -17,8 +17,9 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
17
17
|
attr_accessor :enabled
|
18
18
|
|
19
19
|
# @return [EncodingCaptureDescription] Enumerates the possible values for
|
20
|
-
# the encoding format of capture description.
|
21
|
-
# 'Avro',
|
20
|
+
# the encoding format of capture description. Note: 'AvroDeflate' will be
|
21
|
+
# deprecated in New API Version. Possible values include: 'Avro',
|
22
|
+
# 'AvroDeflate'
|
22
23
|
attr_accessor :encoding
|
23
24
|
|
24
25
|
# @return [Integer] The time window allows you to set the frequency with
|
@@ -119,7 +119,6 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
119
119
|
required: false,
|
120
120
|
serialized_name: 'properties.messageRetentionInDays',
|
121
121
|
constraints: {
|
122
|
-
InclusiveMaximum: 7,
|
123
122
|
InclusiveMinimum: 1
|
124
123
|
},
|
125
124
|
type: {
|
@@ -131,7 +130,6 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
131
130
|
required: false,
|
132
131
|
serialized_name: 'properties.partitionCount',
|
133
132
|
constraints: {
|
134
|
-
InclusiveMaximum: 32,
|
135
133
|
InclusiveMinimum: 1
|
136
134
|
},
|
137
135
|
type: {
|
@@ -31,8 +31,8 @@ module Azure::EventHub::Mgmt::V2017_04_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::V2017_04_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::V2017_04_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::V2017_04_01::Models::CheckNameAvailabilityParameter.mapper()
|
79
78
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -129,8 +128,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
129
128
|
#
|
130
129
|
# @return [Array<EHNamespace>] operation results.
|
131
130
|
#
|
132
|
-
def list(custom_headers
|
133
|
-
first_page = list_as_lazy(custom_headers)
|
131
|
+
def list(custom_headers:nil)
|
132
|
+
first_page = list_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::V2017_04_01
|
|
143
142
|
#
|
144
143
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
145
144
|
#
|
146
|
-
def list_with_http_info(custom_headers
|
147
|
-
list_async(custom_headers).value!
|
145
|
+
def list_with_http_info(custom_headers:nil)
|
146
|
+
list_async(custom_headers:custom_headers).value!
|
148
147
|
end
|
149
148
|
|
150
149
|
#
|
@@ -156,12 +155,13 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
156
155
|
#
|
157
156
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
158
157
|
#
|
159
|
-
def list_async(custom_headers
|
158
|
+
def list_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::V2017_04_01
|
|
216
216
|
#
|
217
217
|
# @return [Array<EHNamespace>] 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::V2017_04_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::V2017_04_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::V2017_04_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
|
@@ -311,8 +312,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
311
312
|
#
|
312
313
|
# @return [EHNamespace] operation results.
|
313
314
|
#
|
314
|
-
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers
|
315
|
-
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
315
|
+
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
316
|
+
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
316
317
|
response.body unless response.nil?
|
317
318
|
end
|
318
319
|
|
@@ -327,9 +328,9 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
327
328
|
# @return [Concurrent::Promise] promise which provides async access to http
|
328
329
|
# response.
|
329
330
|
#
|
330
|
-
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers
|
331
|
+
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
331
332
|
# Send request
|
332
|
-
promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers)
|
333
|
+
promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers)
|
333
334
|
|
334
335
|
promise = promise.then do |response|
|
335
336
|
# Defining deserialization method.
|
@@ -355,8 +356,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
355
356
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
356
357
|
# will be added to the HTTP request.
|
357
358
|
#
|
358
|
-
def delete(resource_group_name, namespace_name, custom_headers
|
359
|
-
response = delete_async(resource_group_name, namespace_name, custom_headers).value!
|
359
|
+
def delete(resource_group_name, namespace_name, custom_headers:nil)
|
360
|
+
response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
360
361
|
nil
|
361
362
|
end
|
362
363
|
|
@@ -370,9 +371,9 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
370
371
|
# @return [Concurrent::Promise] promise which provides async access to http
|
371
372
|
# response.
|
372
373
|
#
|
373
|
-
def delete_async(resource_group_name, namespace_name, custom_headers
|
374
|
+
def delete_async(resource_group_name, namespace_name, custom_headers:nil)
|
374
375
|
# Send request
|
375
|
-
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers)
|
376
|
+
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers)
|
376
377
|
|
377
378
|
promise = promise.then do |response|
|
378
379
|
# Defining deserialization method.
|
@@ -397,8 +398,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
397
398
|
#
|
398
399
|
# @return [EHNamespace] operation results.
|
399
400
|
#
|
400
|
-
def get(resource_group_name, namespace_name, custom_headers
|
401
|
-
response = get_async(resource_group_name, namespace_name, custom_headers).value!
|
401
|
+
def get(resource_group_name, namespace_name, custom_headers:nil)
|
402
|
+
response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
402
403
|
response.body unless response.nil?
|
403
404
|
end
|
404
405
|
|
@@ -413,8 +414,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
413
414
|
#
|
414
415
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
415
416
|
#
|
416
|
-
def get_with_http_info(resource_group_name, namespace_name, custom_headers
|
417
|
-
get_async(resource_group_name, namespace_name, custom_headers).value!
|
417
|
+
def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
418
|
+
get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
418
419
|
end
|
419
420
|
|
420
421
|
#
|
@@ -428,7 +429,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
428
429
|
#
|
429
430
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
430
431
|
#
|
431
|
-
def get_async(resource_group_name, namespace_name, custom_headers
|
432
|
+
def get_async(resource_group_name, namespace_name, custom_headers:nil)
|
432
433
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
433
434
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
434
435
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -440,6 +441,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
440
441
|
|
441
442
|
|
442
443
|
request_headers = {}
|
444
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
443
445
|
|
444
446
|
# Set Headers
|
445
447
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -507,8 +509,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
507
509
|
#
|
508
510
|
# @return [EHNamespace] operation results.
|
509
511
|
#
|
510
|
-
def update(resource_group_name, namespace_name, parameters, custom_headers
|
511
|
-
response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
512
|
+
def update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
513
|
+
response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
512
514
|
response.body unless response.nil?
|
513
515
|
end
|
514
516
|
|
@@ -525,8 +527,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
525
527
|
#
|
526
528
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
527
529
|
#
|
528
|
-
def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
529
|
-
update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
530
|
+
def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
531
|
+
update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
530
532
|
end
|
531
533
|
|
532
534
|
#
|
@@ -542,7 +544,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
542
544
|
#
|
543
545
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
544
546
|
#
|
545
|
-
def update_async(resource_group_name, namespace_name, parameters, custom_headers
|
547
|
+
def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
546
548
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
547
549
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
548
550
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -555,13 +557,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
555
557
|
|
556
558
|
|
557
559
|
request_headers = {}
|
560
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
558
561
|
|
559
562
|
# Set Headers
|
560
563
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
561
564
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
562
565
|
|
563
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
564
|
-
|
565
566
|
# Serialize Request
|
566
567
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
567
568
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -629,8 +630,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
629
630
|
#
|
630
631
|
# @return [Array<AuthorizationRule>] operation results.
|
631
632
|
#
|
632
|
-
def list_authorization_rules(resource_group_name, namespace_name, custom_headers
|
633
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers)
|
633
|
+
def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil)
|
634
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
634
635
|
first_page.get_all_items
|
635
636
|
end
|
636
637
|
|
@@ -645,8 +646,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
645
646
|
#
|
646
647
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
647
648
|
#
|
648
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers
|
649
|
-
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
649
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
650
|
+
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
650
651
|
end
|
651
652
|
|
652
653
|
#
|
@@ -660,7 +661,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
660
661
|
#
|
661
662
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
662
663
|
#
|
663
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers
|
664
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil)
|
664
665
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
665
666
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
666
667
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -672,6 +673,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
672
673
|
|
673
674
|
|
674
675
|
request_headers = {}
|
676
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
675
677
|
|
676
678
|
# Set Headers
|
677
679
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -729,8 +731,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
729
731
|
#
|
730
732
|
# @return [AuthorizationRule] operation results.
|
731
733
|
#
|
732
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
733
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
734
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
735
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
734
736
|
response.body unless response.nil?
|
735
737
|
end
|
736
738
|
|
@@ -747,8 +749,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
747
749
|
#
|
748
750
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
749
751
|
#
|
750
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
751
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
752
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
753
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
752
754
|
end
|
753
755
|
|
754
756
|
#
|
@@ -764,7 +766,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
764
766
|
#
|
765
767
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
766
768
|
#
|
767
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
769
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
768
770
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
769
771
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
770
772
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -779,13 +781,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
779
781
|
|
780
782
|
|
781
783
|
request_headers = {}
|
784
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
782
785
|
|
783
786
|
# Set Headers
|
784
787
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
785
788
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
786
789
|
|
787
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
788
|
-
|
789
790
|
# Serialize Request
|
790
791
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
|
791
792
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -843,8 +844,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
843
844
|
# will be added to the HTTP request.
|
844
845
|
#
|
845
846
|
#
|
846
|
-
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
847
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
847
|
+
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
848
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
848
849
|
nil
|
849
850
|
end
|
850
851
|
|
@@ -860,8 +861,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
860
861
|
#
|
861
862
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
862
863
|
#
|
863
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
864
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
864
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
865
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
865
866
|
end
|
866
867
|
|
867
868
|
#
|
@@ -876,7 +877,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
876
877
|
#
|
877
878
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
878
879
|
#
|
879
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
880
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
880
881
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
881
882
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
882
883
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -890,6 +891,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
890
891
|
|
891
892
|
|
892
893
|
request_headers = {}
|
894
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
893
895
|
|
894
896
|
# Set Headers
|
895
897
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -936,8 +938,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
936
938
|
#
|
937
939
|
# @return [AuthorizationRule] operation results.
|
938
940
|
#
|
939
|
-
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
940
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
941
|
+
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
942
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
941
943
|
response.body unless response.nil?
|
942
944
|
end
|
943
945
|
|
@@ -953,8 +955,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
953
955
|
#
|
954
956
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
955
957
|
#
|
956
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
957
|
-
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
958
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
959
|
+
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
958
960
|
end
|
959
961
|
|
960
962
|
#
|
@@ -969,7 +971,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
969
971
|
#
|
970
972
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
971
973
|
#
|
972
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
974
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
973
975
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
974
976
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
975
977
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -983,6 +985,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
983
985
|
|
984
986
|
|
985
987
|
request_headers = {}
|
988
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
986
989
|
|
987
990
|
# Set Headers
|
988
991
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1039,8 +1042,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1039
1042
|
#
|
1040
1043
|
# @return [AccessKeys] operation results.
|
1041
1044
|
#
|
1042
|
-
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1043
|
-
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1045
|
+
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1046
|
+
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1044
1047
|
response.body unless response.nil?
|
1045
1048
|
end
|
1046
1049
|
|
@@ -1056,8 +1059,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1056
1059
|
#
|
1057
1060
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1058
1061
|
#
|
1059
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1060
|
-
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1062
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1063
|
+
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1061
1064
|
end
|
1062
1065
|
|
1063
1066
|
#
|
@@ -1072,7 +1075,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1072
1075
|
#
|
1073
1076
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1074
1077
|
#
|
1075
|
-
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1078
|
+
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1076
1079
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1077
1080
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1078
1081
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1086,6 +1089,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1086
1089
|
|
1087
1090
|
|
1088
1091
|
request_headers = {}
|
1092
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1089
1093
|
|
1090
1094
|
# Set Headers
|
1091
1095
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1145,8 +1149,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1145
1149
|
#
|
1146
1150
|
# @return [AccessKeys] operation results.
|
1147
1151
|
#
|
1148
|
-
def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1149
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
1152
|
+
def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1153
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1150
1154
|
response.body unless response.nil?
|
1151
1155
|
end
|
1152
1156
|
|
@@ -1165,8 +1169,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1165
1169
|
#
|
1166
1170
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1167
1171
|
#
|
1168
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1169
|
-
regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
1172
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1173
|
+
regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1170
1174
|
end
|
1171
1175
|
|
1172
1176
|
#
|
@@ -1184,7 +1188,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1184
1188
|
#
|
1185
1189
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1186
1190
|
#
|
1187
|
-
def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1191
|
+
def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1188
1192
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1189
1193
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1190
1194
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1199,13 +1203,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1199
1203
|
|
1200
1204
|
|
1201
1205
|
request_headers = {}
|
1206
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1202
1207
|
|
1203
1208
|
# Set Headers
|
1204
1209
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1205
1210
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1206
1211
|
|
1207
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1208
|
-
|
1209
1212
|
# Serialize Request
|
1210
1213
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
|
1211
1214
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1265,8 +1268,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1265
1268
|
#
|
1266
1269
|
# @return [EHNamespace] operation results.
|
1267
1270
|
#
|
1268
|
-
def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers
|
1269
|
-
response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
1271
|
+
def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1272
|
+
response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
1270
1273
|
response.body unless response.nil?
|
1271
1274
|
end
|
1272
1275
|
|
@@ -1283,8 +1286,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1283
1286
|
#
|
1284
1287
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1285
1288
|
#
|
1286
|
-
def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
1287
|
-
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
1289
|
+
def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1290
|
+
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
1288
1291
|
end
|
1289
1292
|
|
1290
1293
|
#
|
@@ -1300,7 +1303,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1300
1303
|
#
|
1301
1304
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1302
1305
|
#
|
1303
|
-
def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers
|
1306
|
+
def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1304
1307
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1305
1308
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1306
1309
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1313,13 +1316,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1313
1316
|
|
1314
1317
|
|
1315
1318
|
request_headers = {}
|
1319
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1316
1320
|
|
1317
1321
|
# Set Headers
|
1318
1322
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1319
1323
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1320
1324
|
|
1321
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1322
|
-
|
1323
1325
|
# Serialize Request
|
1324
1326
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
1325
1327
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1387,8 +1389,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1387
1389
|
# will be added to the HTTP request.
|
1388
1390
|
#
|
1389
1391
|
#
|
1390
|
-
def begin_delete(resource_group_name, namespace_name, custom_headers
|
1391
|
-
response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
1392
|
+
def begin_delete(resource_group_name, namespace_name, custom_headers:nil)
|
1393
|
+
response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1392
1394
|
nil
|
1393
1395
|
end
|
1394
1396
|
|
@@ -1404,8 +1406,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1404
1406
|
#
|
1405
1407
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1406
1408
|
#
|
1407
|
-
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers
|
1408
|
-
begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
1409
|
+
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
1410
|
+
begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1409
1411
|
end
|
1410
1412
|
|
1411
1413
|
#
|
@@ -1420,7 +1422,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1420
1422
|
#
|
1421
1423
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1422
1424
|
#
|
1423
|
-
def begin_delete_async(resource_group_name, namespace_name, custom_headers
|
1425
|
+
def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil)
|
1424
1426
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1425
1427
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1426
1428
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1432,6 +1434,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1432
1434
|
|
1433
1435
|
|
1434
1436
|
request_headers = {}
|
1437
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1435
1438
|
|
1436
1439
|
# Set Headers
|
1437
1440
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1477,8 +1480,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1477
1480
|
#
|
1478
1481
|
# @return [EHNamespaceListResult] operation results.
|
1479
1482
|
#
|
1480
|
-
def list_next(next_page_link, custom_headers
|
1481
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1483
|
+
def list_next(next_page_link, custom_headers:nil)
|
1484
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1482
1485
|
response.body unless response.nil?
|
1483
1486
|
end
|
1484
1487
|
|
@@ -1493,8 +1496,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1493
1496
|
#
|
1494
1497
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1495
1498
|
#
|
1496
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1497
|
-
list_next_async(next_page_link, custom_headers).value!
|
1499
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1500
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1498
1501
|
end
|
1499
1502
|
|
1500
1503
|
#
|
@@ -1508,11 +1511,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1508
1511
|
#
|
1509
1512
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1510
1513
|
#
|
1511
|
-
def list_next_async(next_page_link, custom_headers
|
1514
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1512
1515
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1513
1516
|
|
1514
1517
|
|
1515
1518
|
request_headers = {}
|
1519
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1516
1520
|
|
1517
1521
|
# Set Headers
|
1518
1522
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1566,8 +1570,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1566
1570
|
#
|
1567
1571
|
# @return [EHNamespaceListResult] operation results.
|
1568
1572
|
#
|
1569
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
1570
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1573
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
1574
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1571
1575
|
response.body unless response.nil?
|
1572
1576
|
end
|
1573
1577
|
|
@@ -1581,8 +1585,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1581
1585
|
#
|
1582
1586
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1583
1587
|
#
|
1584
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
1585
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1588
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1589
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1586
1590
|
end
|
1587
1591
|
|
1588
1592
|
#
|
@@ -1595,11 +1599,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1595
1599
|
#
|
1596
1600
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1597
1601
|
#
|
1598
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
1602
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1599
1603
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1600
1604
|
|
1601
1605
|
|
1602
1606
|
request_headers = {}
|
1607
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1603
1608
|
|
1604
1609
|
# Set Headers
|
1605
1610
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1653,8 +1658,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1653
1658
|
#
|
1654
1659
|
# @return [AuthorizationRuleListResult] operation results.
|
1655
1660
|
#
|
1656
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1657
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1661
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1662
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1658
1663
|
response.body unless response.nil?
|
1659
1664
|
end
|
1660
1665
|
|
@@ -1668,8 +1673,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1668
1673
|
#
|
1669
1674
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1670
1675
|
#
|
1671
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1672
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1676
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1677
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1673
1678
|
end
|
1674
1679
|
|
1675
1680
|
#
|
@@ -1682,11 +1687,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1682
1687
|
#
|
1683
1688
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1684
1689
|
#
|
1685
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1690
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1686
1691
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1687
1692
|
|
1688
1693
|
|
1689
1694
|
request_headers = {}
|
1695
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1690
1696
|
|
1691
1697
|
# Set Headers
|
1692
1698
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1740,12 +1746,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1740
1746
|
# @return [EHNamespaceListResult] which provide lazy access to pages of the
|
1741
1747
|
# response.
|
1742
1748
|
#
|
1743
|
-
def list_as_lazy(custom_headers
|
1744
|
-
response = list_async(custom_headers).value!
|
1749
|
+
def list_as_lazy(custom_headers:nil)
|
1750
|
+
response = list_async(custom_headers:custom_headers).value!
|
1745
1751
|
unless response.nil?
|
1746
1752
|
page = response.body
|
1747
1753
|
page.next_method = Proc.new do |next_page_link|
|
1748
|
-
list_next_async(next_page_link, custom_headers)
|
1754
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1749
1755
|
end
|
1750
1756
|
page
|
1751
1757
|
end
|
@@ -1762,12 +1768,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1762
1768
|
# @return [EHNamespaceListResult] which provide lazy access to pages of the
|
1763
1769
|
# response.
|
1764
1770
|
#
|
1765
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1766
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1771
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1772
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1767
1773
|
unless response.nil?
|
1768
1774
|
page = response.body
|
1769
1775
|
page.next_method = Proc.new do |next_page_link|
|
1770
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1776
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1771
1777
|
end
|
1772
1778
|
page
|
1773
1779
|
end
|
@@ -1785,12 +1791,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1785
1791
|
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1786
1792
|
# the response.
|
1787
1793
|
#
|
1788
|
-
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers
|
1789
|
-
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
1794
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1795
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1790
1796
|
unless response.nil?
|
1791
1797
|
page = response.body
|
1792
1798
|
page.next_method = Proc.new do |next_page_link|
|
1793
|
-
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1799
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1794
1800
|
end
|
1795
1801
|
page
|
1796
1802
|
end
|