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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b579f156f8ee8cd12bcb3c40c10f886fff7112f
|
4
|
+
data.tar.gz: b53409f6877b4a3630f5e8b2afeffa8d03c817ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3eb53531774a344e20bb78df9bd0661743b0e75d72c523cb5452354cc4f48671996aaeafa47119bf86423cc431bfeb61279175eec0c6976a5911574912cd434
|
7
|
+
data.tar.gz: 69fc13a7171cc9f3d4c6f5b877eff2cc7f1b1a5e39f1e770178fda072cf919a00f30971b1e98ea8e31cf4aeb517bdc69e0eb42552312cb4052fcc4934b022a59
|
@@ -37,8 +37,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
37
37
|
#
|
38
38
|
# @return [ConsumerGroupResource] operation results.
|
39
39
|
#
|
40
|
-
def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers
|
41
|
-
response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value!
|
40
|
+
def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil)
|
41
|
+
response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -58,8 +58,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
58
58
|
#
|
59
59
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
60
60
|
#
|
61
|
-
def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers
|
62
|
-
create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value!
|
61
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil)
|
62
|
+
create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:custom_headers).value!
|
63
63
|
end
|
64
64
|
|
65
65
|
#
|
@@ -78,7 +78,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
78
78
|
#
|
79
79
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
80
80
|
#
|
81
|
-
def create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers
|
81
|
+
def create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil)
|
82
82
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
83
83
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
84
84
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -97,13 +97,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
97
97
|
|
98
98
|
|
99
99
|
request_headers = {}
|
100
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
100
101
|
|
101
102
|
# Set Headers
|
102
103
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
103
104
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
104
105
|
|
105
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
106
|
-
|
107
106
|
# Serialize Request
|
108
107
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::ConsumerGroupCreateOrUpdateParameters.mapper()
|
109
108
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -162,8 +161,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
162
161
|
# will be added to the HTTP request.
|
163
162
|
#
|
164
163
|
#
|
165
|
-
def delete(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers
|
166
|
-
response = delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value!
|
164
|
+
def delete(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil)
|
165
|
+
response = delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value!
|
167
166
|
nil
|
168
167
|
end
|
169
168
|
|
@@ -180,8 +179,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
180
179
|
#
|
181
180
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
182
181
|
#
|
183
|
-
def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers
|
184
|
-
delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value!
|
182
|
+
def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil)
|
183
|
+
delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value!
|
185
184
|
end
|
186
185
|
|
187
186
|
#
|
@@ -197,7 +196,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
197
196
|
#
|
198
197
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
199
198
|
#
|
200
|
-
def delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers
|
199
|
+
def delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil)
|
201
200
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
202
201
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
203
202
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -215,6 +214,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
215
214
|
|
216
215
|
|
217
216
|
request_headers = {}
|
217
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
218
218
|
|
219
219
|
# Set Headers
|
220
220
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -262,8 +262,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
262
262
|
#
|
263
263
|
# @return [ConsumerGroupResource] operation results.
|
264
264
|
#
|
265
|
-
def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers
|
266
|
-
response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value!
|
265
|
+
def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil)
|
266
|
+
response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value!
|
267
267
|
response.body unless response.nil?
|
268
268
|
end
|
269
269
|
|
@@ -280,8 +280,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
280
280
|
#
|
281
281
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
282
282
|
#
|
283
|
-
def get_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers
|
284
|
-
get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value!
|
283
|
+
def get_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil)
|
284
|
+
get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value!
|
285
285
|
end
|
286
286
|
|
287
287
|
#
|
@@ -297,7 +297,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
297
297
|
#
|
298
298
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
299
299
|
#
|
300
|
-
def get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers
|
300
|
+
def get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil)
|
301
301
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
302
302
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
303
303
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -315,6 +315,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
315
315
|
|
316
316
|
|
317
317
|
request_headers = {}
|
318
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
318
319
|
|
319
320
|
# Set Headers
|
320
321
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -372,8 +373,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
372
373
|
#
|
373
374
|
# @return [Array<ConsumerGroupResource>] operation results.
|
374
375
|
#
|
375
|
-
def list_all(resource_group_name, namespace_name, event_hub_name, custom_headers
|
376
|
-
first_page = list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers)
|
376
|
+
def list_all(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
377
|
+
first_page = list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers)
|
377
378
|
first_page.get_all_items
|
378
379
|
end
|
379
380
|
|
@@ -390,8 +391,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
390
391
|
#
|
391
392
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
392
393
|
#
|
393
|
-
def list_all_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
394
|
-
list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
394
|
+
def list_all_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
395
|
+
list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
395
396
|
end
|
396
397
|
|
397
398
|
#
|
@@ -407,7 +408,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
407
408
|
#
|
408
409
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
409
410
|
#
|
410
|
-
def list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
411
|
+
def list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
411
412
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
412
413
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
413
414
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -422,6 +423,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
422
423
|
|
423
424
|
|
424
425
|
request_headers = {}
|
426
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
425
427
|
|
426
428
|
# Set Headers
|
427
429
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -477,8 +479,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
477
479
|
#
|
478
480
|
# @return [ConsumerGroupListResult] operation results.
|
479
481
|
#
|
480
|
-
def list_all_next(next_page_link, custom_headers
|
481
|
-
response = list_all_next_async(next_page_link, custom_headers).value!
|
482
|
+
def list_all_next(next_page_link, custom_headers:nil)
|
483
|
+
response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
|
482
484
|
response.body unless response.nil?
|
483
485
|
end
|
484
486
|
|
@@ -493,8 +495,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
493
495
|
#
|
494
496
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
495
497
|
#
|
496
|
-
def list_all_next_with_http_info(next_page_link, custom_headers
|
497
|
-
list_all_next_async(next_page_link, custom_headers).value!
|
498
|
+
def list_all_next_with_http_info(next_page_link, custom_headers:nil)
|
499
|
+
list_all_next_async(next_page_link, custom_headers:custom_headers).value!
|
498
500
|
end
|
499
501
|
|
500
502
|
#
|
@@ -508,11 +510,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
508
510
|
#
|
509
511
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
510
512
|
#
|
511
|
-
def list_all_next_async(next_page_link, custom_headers
|
513
|
+
def list_all_next_async(next_page_link, custom_headers:nil)
|
512
514
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
513
515
|
|
514
516
|
|
515
517
|
request_headers = {}
|
518
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
516
519
|
|
517
520
|
# Set Headers
|
518
521
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -570,12 +573,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
570
573
|
# @return [ConsumerGroupListResult] which provide lazy access to pages of the
|
571
574
|
# response.
|
572
575
|
#
|
573
|
-
def list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers
|
574
|
-
response = list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
576
|
+
def list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
577
|
+
response = list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
575
578
|
unless response.nil?
|
576
579
|
page = response.body
|
577
580
|
page.next_method = Proc.new do |next_page_link|
|
578
|
-
list_all_next_async(next_page_link, custom_headers)
|
581
|
+
list_all_next_async(next_page_link, custom_headers:custom_headers)
|
579
582
|
end
|
580
583
|
page
|
581
584
|
end
|
@@ -118,6 +118,9 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
118
118
|
fail ArgumentError, 'path is nil' if path.nil?
|
119
119
|
|
120
120
|
request_url = options[:base_url] || @base_url
|
121
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
122
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
123
|
+
end
|
121
124
|
|
122
125
|
request_headers = @request_headers
|
123
126
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -134,7 +137,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
134
137
|
#
|
135
138
|
def add_telemetry
|
136
139
|
sdk_information = 'azure_mgmt_event_hub'
|
137
|
-
sdk_information = "#{sdk_information}/0.
|
140
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
138
141
|
add_user_agent_information(sdk_information)
|
139
142
|
end
|
140
143
|
end
|
@@ -32,8 +32,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
32
32
|
#
|
33
33
|
# @return [Array<EventHubResource>] operation results.
|
34
34
|
#
|
35
|
-
def list_all(resource_group_name, namespace_name, custom_headers
|
36
|
-
first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers)
|
35
|
+
def list_all(resource_group_name, namespace_name, custom_headers:nil)
|
36
|
+
first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
37
37
|
first_page.get_all_items
|
38
38
|
end
|
39
39
|
|
@@ -48,8 +48,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def list_all_with_http_info(resource_group_name, namespace_name, custom_headers
|
52
|
-
list_all_async(resource_group_name, namespace_name, custom_headers).value!
|
51
|
+
def list_all_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
52
|
+
list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
@@ -63,7 +63,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def list_all_async(resource_group_name, namespace_name, custom_headers
|
66
|
+
def list_all_async(resource_group_name, namespace_name, custom_headers:nil)
|
67
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
68
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
69
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -75,6 +75,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
75
75
|
|
76
76
|
|
77
77
|
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
78
79
|
|
79
80
|
# Set Headers
|
80
81
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -133,8 +134,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
133
134
|
#
|
134
135
|
# @return [EventHubResource] operation results.
|
135
136
|
#
|
136
|
-
def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers
|
137
|
-
response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value!
|
137
|
+
def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil)
|
138
|
+
response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:custom_headers).value!
|
138
139
|
response.body unless response.nil?
|
139
140
|
end
|
140
141
|
|
@@ -152,8 +153,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
152
153
|
#
|
153
154
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
154
155
|
#
|
155
|
-
def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers
|
156
|
-
create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value!
|
156
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil)
|
157
|
+
create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:custom_headers).value!
|
157
158
|
end
|
158
159
|
|
159
160
|
#
|
@@ -170,7 +171,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
170
171
|
#
|
171
172
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
173
|
#
|
173
|
-
def create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers
|
174
|
+
def create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil)
|
174
175
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
175
176
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
176
177
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -186,13 +187,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
186
187
|
|
187
188
|
|
188
189
|
request_headers = {}
|
190
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
189
191
|
|
190
192
|
# Set Headers
|
191
193
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
192
194
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
193
195
|
|
194
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
195
|
-
|
196
196
|
# Serialize Request
|
197
197
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::EventHubCreateOrUpdateParameters.mapper()
|
198
198
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -250,8 +250,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
250
250
|
# will be added to the HTTP request.
|
251
251
|
#
|
252
252
|
#
|
253
|
-
def delete(resource_group_name, namespace_name, event_hub_name, custom_headers
|
254
|
-
response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
253
|
+
def delete(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
254
|
+
response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
255
255
|
nil
|
256
256
|
end
|
257
257
|
|
@@ -267,8 +267,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
267
267
|
#
|
268
268
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
269
269
|
#
|
270
|
-
def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
271
|
-
delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
270
|
+
def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
271
|
+
delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
272
272
|
end
|
273
273
|
|
274
274
|
#
|
@@ -283,7 +283,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
283
283
|
#
|
284
284
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
285
285
|
#
|
286
|
-
def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
286
|
+
def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
287
287
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
288
288
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
289
289
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -298,6 +298,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
298
298
|
|
299
299
|
|
300
300
|
request_headers = {}
|
301
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
301
302
|
|
302
303
|
# Set Headers
|
303
304
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -344,8 +345,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
344
345
|
#
|
345
346
|
# @return [EventHubResource] operation results.
|
346
347
|
#
|
347
|
-
def get(resource_group_name, namespace_name, event_hub_name, custom_headers
|
348
|
-
response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
348
|
+
def get(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
349
|
+
response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
349
350
|
response.body unless response.nil?
|
350
351
|
end
|
351
352
|
|
@@ -361,8 +362,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
361
362
|
#
|
362
363
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
363
364
|
#
|
364
|
-
def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
365
|
-
get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
365
|
+
def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
366
|
+
get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
366
367
|
end
|
367
368
|
|
368
369
|
#
|
@@ -377,7 +378,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
377
378
|
#
|
378
379
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
379
380
|
#
|
380
|
-
def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
381
|
+
def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
381
382
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
382
383
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
383
384
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -392,6 +393,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
392
393
|
|
393
394
|
|
394
395
|
request_headers = {}
|
396
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
395
397
|
|
396
398
|
# Set Headers
|
397
399
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -448,8 +450,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
448
450
|
#
|
449
451
|
# @return [Array<SharedAccessAuthorizationRuleResource>] operation results.
|
450
452
|
#
|
451
|
-
def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers
|
452
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers)
|
453
|
+
def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
454
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers)
|
453
455
|
first_page.get_all_items
|
454
456
|
end
|
455
457
|
|
@@ -465,8 +467,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
465
467
|
#
|
466
468
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
467
469
|
#
|
468
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
469
|
-
list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
470
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
471
|
+
list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
470
472
|
end
|
471
473
|
|
472
474
|
#
|
@@ -481,7 +483,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
481
483
|
#
|
482
484
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
483
485
|
#
|
484
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
486
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
485
487
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
486
488
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
487
489
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -496,6 +498,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
496
498
|
|
497
499
|
|
498
500
|
request_headers = {}
|
501
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
499
502
|
|
500
503
|
# Set Headers
|
501
504
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -555,8 +558,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
555
558
|
#
|
556
559
|
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
557
560
|
#
|
558
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
559
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
561
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
562
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
560
563
|
response.body unless response.nil?
|
561
564
|
end
|
562
565
|
|
@@ -575,8 +578,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
575
578
|
#
|
576
579
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
577
580
|
#
|
578
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
579
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
581
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
582
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
580
583
|
end
|
581
584
|
|
582
585
|
#
|
@@ -594,7 +597,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
594
597
|
#
|
595
598
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
596
599
|
#
|
597
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
600
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
598
601
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
599
602
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
600
603
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -613,13 +616,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
613
616
|
|
614
617
|
|
615
618
|
request_headers = {}
|
619
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
616
620
|
|
617
621
|
# Set Headers
|
618
622
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
619
623
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
620
624
|
|
621
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
622
|
-
|
623
625
|
# Serialize Request
|
624
626
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
625
627
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -679,8 +681,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
679
681
|
#
|
680
682
|
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
681
683
|
#
|
682
|
-
def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
683
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
684
|
+
def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
685
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
684
686
|
response.body unless response.nil?
|
685
687
|
end
|
686
688
|
|
@@ -697,8 +699,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
697
699
|
#
|
698
700
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
699
701
|
#
|
700
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
701
|
-
get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
702
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
703
|
+
get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
702
704
|
end
|
703
705
|
|
704
706
|
#
|
@@ -714,7 +716,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
714
716
|
#
|
715
717
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
716
718
|
#
|
717
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
719
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
718
720
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
719
721
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
720
722
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -732,6 +734,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
732
734
|
|
733
735
|
|
734
736
|
request_headers = {}
|
737
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
735
738
|
|
736
739
|
# Set Headers
|
737
740
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -788,8 +791,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
788
791
|
# will be added to the HTTP request.
|
789
792
|
#
|
790
793
|
#
|
791
|
-
def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
792
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
794
|
+
def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
795
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
793
796
|
nil
|
794
797
|
end
|
795
798
|
|
@@ -806,8 +809,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
806
809
|
#
|
807
810
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
808
811
|
#
|
809
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
810
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
812
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
813
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
811
814
|
end
|
812
815
|
|
813
816
|
#
|
@@ -823,7 +826,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
823
826
|
#
|
824
827
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
825
828
|
#
|
826
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
829
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
827
830
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
828
831
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
829
832
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -841,6 +844,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
841
844
|
|
842
845
|
|
843
846
|
request_headers = {}
|
847
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
844
848
|
|
845
849
|
# Set Headers
|
846
850
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -888,8 +892,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
888
892
|
#
|
889
893
|
# @return [ResourceListKeys] operation results.
|
890
894
|
#
|
891
|
-
def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
892
|
-
response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
895
|
+
def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
896
|
+
response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
893
897
|
response.body unless response.nil?
|
894
898
|
end
|
895
899
|
|
@@ -906,8 +910,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
906
910
|
#
|
907
911
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
908
912
|
#
|
909
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
910
|
-
list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
913
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
914
|
+
list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
911
915
|
end
|
912
916
|
|
913
917
|
#
|
@@ -923,7 +927,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
923
927
|
#
|
924
928
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
925
929
|
#
|
926
|
-
def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
930
|
+
def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
927
931
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
928
932
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
929
933
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -941,6 +945,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
941
945
|
|
942
946
|
|
943
947
|
request_headers = {}
|
948
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
944
949
|
|
945
950
|
# Set Headers
|
946
951
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1000,8 +1005,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1000
1005
|
#
|
1001
1006
|
# @return [ResourceListKeys] operation results.
|
1002
1007
|
#
|
1003
|
-
def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
1004
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
1008
|
+
def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1009
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1005
1010
|
response.body unless response.nil?
|
1006
1011
|
end
|
1007
1012
|
|
@@ -1020,8 +1025,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1020
1025
|
#
|
1021
1026
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1022
1027
|
#
|
1023
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
1024
|
-
regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
1028
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1029
|
+
regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1025
1030
|
end
|
1026
1031
|
|
1027
1032
|
#
|
@@ -1039,7 +1044,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1039
1044
|
#
|
1040
1045
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1041
1046
|
#
|
1042
|
-
def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
1047
|
+
def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1043
1048
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1044
1049
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1045
1050
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1058,13 +1063,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1058
1063
|
|
1059
1064
|
|
1060
1065
|
request_headers = {}
|
1066
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1061
1067
|
|
1062
1068
|
# Set Headers
|
1063
1069
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1064
1070
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1065
1071
|
|
1066
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1067
|
-
|
1068
1072
|
# Serialize Request
|
1069
1073
|
request_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::RegenerateKeysParameters.mapper()
|
1070
1074
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1121,8 +1125,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1121
1125
|
#
|
1122
1126
|
# @return [EventHubListResult] operation results.
|
1123
1127
|
#
|
1124
|
-
def list_all_next(next_page_link, custom_headers
|
1125
|
-
response = list_all_next_async(next_page_link, custom_headers).value!
|
1128
|
+
def list_all_next(next_page_link, custom_headers:nil)
|
1129
|
+
response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
|
1126
1130
|
response.body unless response.nil?
|
1127
1131
|
end
|
1128
1132
|
|
@@ -1136,8 +1140,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1136
1140
|
#
|
1137
1141
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1138
1142
|
#
|
1139
|
-
def list_all_next_with_http_info(next_page_link, custom_headers
|
1140
|
-
list_all_next_async(next_page_link, custom_headers).value!
|
1143
|
+
def list_all_next_with_http_info(next_page_link, custom_headers:nil)
|
1144
|
+
list_all_next_async(next_page_link, custom_headers:custom_headers).value!
|
1141
1145
|
end
|
1142
1146
|
|
1143
1147
|
#
|
@@ -1150,11 +1154,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1150
1154
|
#
|
1151
1155
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1152
1156
|
#
|
1153
|
-
def list_all_next_async(next_page_link, custom_headers
|
1157
|
+
def list_all_next_async(next_page_link, custom_headers:nil)
|
1154
1158
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1155
1159
|
|
1156
1160
|
|
1157
1161
|
request_headers = {}
|
1162
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1158
1163
|
|
1159
1164
|
# Set Headers
|
1160
1165
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1208,8 +1213,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1208
1213
|
#
|
1209
1214
|
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
1210
1215
|
#
|
1211
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1212
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1216
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1217
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1213
1218
|
response.body unless response.nil?
|
1214
1219
|
end
|
1215
1220
|
|
@@ -1223,8 +1228,8 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1223
1228
|
#
|
1224
1229
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1225
1230
|
#
|
1226
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1227
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1231
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1232
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1228
1233
|
end
|
1229
1234
|
|
1230
1235
|
#
|
@@ -1237,11 +1242,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1237
1242
|
#
|
1238
1243
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1239
1244
|
#
|
1240
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1245
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1241
1246
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1242
1247
|
|
1243
1248
|
|
1244
1249
|
request_headers = {}
|
1250
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1245
1251
|
|
1246
1252
|
# Set Headers
|
1247
1253
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1297,12 +1303,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1297
1303
|
# @return [EventHubListResult] which provide lazy access to pages of the
|
1298
1304
|
# response.
|
1299
1305
|
#
|
1300
|
-
def list_all_as_lazy(resource_group_name, namespace_name, custom_headers
|
1301
|
-
response = list_all_async(resource_group_name, namespace_name, custom_headers).value!
|
1306
|
+
def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1307
|
+
response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1302
1308
|
unless response.nil?
|
1303
1309
|
page = response.body
|
1304
1310
|
page.next_method = Proc.new do |next_page_link|
|
1305
|
-
list_all_next_async(next_page_link, custom_headers)
|
1311
|
+
list_all_next_async(next_page_link, custom_headers:custom_headers)
|
1306
1312
|
end
|
1307
1313
|
page
|
1308
1314
|
end
|
@@ -1321,12 +1327,12 @@ module Azure::EventHub::Mgmt::V2015_08_01
|
|
1321
1327
|
# @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
|
1322
1328
|
# to pages of the response.
|
1323
1329
|
#
|
1324
|
-
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers
|
1325
|
-
response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
1330
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
1331
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
1326
1332
|
unless response.nil?
|
1327
1333
|
page = response.body
|
1328
1334
|
page.next_method = Proc.new do |next_page_link|
|
1329
|
-
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1335
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1330
1336
|
end
|
1331
1337
|
page
|
1332
1338
|
end
|