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
@@ -122,6 +122,9 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
122
122
|
fail ArgumentError, 'path is nil' if path.nil?
|
123
123
|
|
124
124
|
request_url = options[:base_url] || @base_url
|
125
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
126
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
127
|
+
end
|
125
128
|
|
126
129
|
request_headers = @request_headers
|
127
130
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -138,7 +141,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
138
141
|
#
|
139
142
|
def add_telemetry
|
140
143
|
sdk_information = 'azure_mgmt_event_hub'
|
141
|
-
sdk_information = "#{sdk_information}/0.
|
144
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
142
145
|
add_user_agent_information(sdk_information)
|
143
146
|
end
|
144
147
|
end
|
@@ -32,8 +32,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
32
32
|
#
|
33
33
|
# @return [Array<Eventhub>] operation results.
|
34
34
|
#
|
35
|
-
def list_by_namespace(resource_group_name, namespace_name, custom_headers
|
36
|
-
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers)
|
35
|
+
def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil)
|
36
|
+
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
37
37
|
first_page.get_all_items
|
38
38
|
end
|
39
39
|
|
@@ -48,8 +48,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers
|
52
|
-
list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
51
|
+
def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
52
|
+
list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
@@ -63,7 +63,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def list_by_namespace_async(resource_group_name, namespace_name, custom_headers
|
66
|
+
def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil)
|
67
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
68
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
69
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -75,6 +75,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
75
75
|
|
76
76
|
|
77
77
|
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
78
79
|
|
79
80
|
# Set Headers
|
80
81
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -133,8 +134,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
133
134
|
#
|
134
135
|
# @return [Eventhub] 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::V2017_04_01
|
|
152
153
|
#
|
153
154
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
154
155
|
#
|
155
|
-
def create_or_update_with_http_info(resource_group_name, namespace_name, 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::V2017_04_01
|
|
170
171
|
#
|
171
172
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
173
|
#
|
173
|
-
def create_or_update_async(resource_group_name, namespace_name, 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
|
@@ -185,13 +186,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
185
186
|
|
186
187
|
|
187
188
|
request_headers = {}
|
189
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
188
190
|
|
189
191
|
# Set Headers
|
190
192
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
191
193
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
192
194
|
|
193
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
194
|
-
|
195
195
|
# Serialize Request
|
196
196
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub.mapper()
|
197
197
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -249,8 +249,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
249
249
|
# will be added to the HTTP request.
|
250
250
|
#
|
251
251
|
#
|
252
|
-
def delete(resource_group_name, namespace_name, event_hub_name, custom_headers
|
253
|
-
response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
252
|
+
def delete(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
253
|
+
response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
254
254
|
nil
|
255
255
|
end
|
256
256
|
|
@@ -266,8 +266,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
266
266
|
#
|
267
267
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
268
268
|
#
|
269
|
-
def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
270
|
-
delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
269
|
+
def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
270
|
+
delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
271
271
|
end
|
272
272
|
|
273
273
|
#
|
@@ -282,7 +282,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
282
282
|
#
|
283
283
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
284
284
|
#
|
285
|
-
def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
285
|
+
def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
286
286
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
287
287
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
288
288
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -296,6 +296,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
296
296
|
|
297
297
|
|
298
298
|
request_headers = {}
|
299
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
299
300
|
|
300
301
|
# Set Headers
|
301
302
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -342,8 +343,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
342
343
|
#
|
343
344
|
# @return [Eventhub] operation results.
|
344
345
|
#
|
345
|
-
def get(resource_group_name, namespace_name, event_hub_name, custom_headers
|
346
|
-
response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
346
|
+
def get(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
347
|
+
response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
347
348
|
response.body unless response.nil?
|
348
349
|
end
|
349
350
|
|
@@ -359,8 +360,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
359
360
|
#
|
360
361
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
361
362
|
#
|
362
|
-
def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
363
|
-
get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
363
|
+
def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
364
|
+
get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
364
365
|
end
|
365
366
|
|
366
367
|
#
|
@@ -375,7 +376,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
375
376
|
#
|
376
377
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
377
378
|
#
|
378
|
-
def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
379
|
+
def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
379
380
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
380
381
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
381
382
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -389,6 +390,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
389
390
|
|
390
391
|
|
391
392
|
request_headers = {}
|
393
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
392
394
|
|
393
395
|
# Set Headers
|
394
396
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -445,8 +447,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
445
447
|
#
|
446
448
|
# @return [Array<AuthorizationRule>] operation results.
|
447
449
|
#
|
448
|
-
def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers
|
449
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers)
|
450
|
+
def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
451
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers)
|
450
452
|
first_page.get_all_items
|
451
453
|
end
|
452
454
|
|
@@ -462,8 +464,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
462
464
|
#
|
463
465
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
464
466
|
#
|
465
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers
|
466
|
-
list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
467
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
468
|
+
list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
467
469
|
end
|
468
470
|
|
469
471
|
#
|
@@ -478,7 +480,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
478
480
|
#
|
479
481
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
480
482
|
#
|
481
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers
|
483
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
482
484
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
483
485
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
484
486
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -492,6 +494,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
492
494
|
|
493
495
|
|
494
496
|
request_headers = {}
|
497
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
495
498
|
|
496
499
|
# Set Headers
|
497
500
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -550,8 +553,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
550
553
|
#
|
551
554
|
# @return [AuthorizationRule] operation results.
|
552
555
|
#
|
553
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
554
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
556
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
557
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
555
558
|
response.body unless response.nil?
|
556
559
|
end
|
557
560
|
|
@@ -569,8 +572,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
569
572
|
#
|
570
573
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
571
574
|
#
|
572
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
573
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
575
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
576
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
574
577
|
end
|
575
578
|
|
576
579
|
#
|
@@ -587,7 +590,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
587
590
|
#
|
588
591
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
589
592
|
#
|
590
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
593
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
591
594
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
592
595
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
593
596
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -604,13 +607,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
604
607
|
|
605
608
|
|
606
609
|
request_headers = {}
|
610
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
607
611
|
|
608
612
|
# Set Headers
|
609
613
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
610
614
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
611
615
|
|
612
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
613
|
-
|
614
616
|
# Serialize Request
|
615
617
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
|
616
618
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -670,8 +672,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
670
672
|
#
|
671
673
|
# @return [AuthorizationRule] operation results.
|
672
674
|
#
|
673
|
-
def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
674
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
675
|
+
def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
676
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
675
677
|
response.body unless response.nil?
|
676
678
|
end
|
677
679
|
|
@@ -688,8 +690,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
688
690
|
#
|
689
691
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
690
692
|
#
|
691
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
692
|
-
get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
693
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
694
|
+
get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
693
695
|
end
|
694
696
|
|
695
697
|
#
|
@@ -705,7 +707,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
705
707
|
#
|
706
708
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
707
709
|
#
|
708
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
710
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
709
711
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
710
712
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
711
713
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -721,6 +723,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
721
723
|
|
722
724
|
|
723
725
|
request_headers = {}
|
726
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
724
727
|
|
725
728
|
# Set Headers
|
726
729
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -777,8 +780,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
777
780
|
# will be added to the HTTP request.
|
778
781
|
#
|
779
782
|
#
|
780
|
-
def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
781
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
783
|
+
def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
784
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
782
785
|
nil
|
783
786
|
end
|
784
787
|
|
@@ -795,8 +798,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
795
798
|
#
|
796
799
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
797
800
|
#
|
798
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
799
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
801
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
802
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
800
803
|
end
|
801
804
|
|
802
805
|
#
|
@@ -812,7 +815,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
812
815
|
#
|
813
816
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
814
817
|
#
|
815
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
818
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
816
819
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
817
820
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
818
821
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -828,6 +831,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
828
831
|
|
829
832
|
|
830
833
|
request_headers = {}
|
834
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
831
835
|
|
832
836
|
# Set Headers
|
833
837
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -875,8 +879,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
875
879
|
#
|
876
880
|
# @return [AccessKeys] operation results.
|
877
881
|
#
|
878
|
-
def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
879
|
-
response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
882
|
+
def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
883
|
+
response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
880
884
|
response.body unless response.nil?
|
881
885
|
end
|
882
886
|
|
@@ -893,8 +897,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
893
897
|
#
|
894
898
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
895
899
|
#
|
896
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
897
|
-
list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
900
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
901
|
+
list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
898
902
|
end
|
899
903
|
|
900
904
|
#
|
@@ -910,7 +914,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
910
914
|
#
|
911
915
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
912
916
|
#
|
913
|
-
def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers
|
917
|
+
def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
|
914
918
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
915
919
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
916
920
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -926,6 +930,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
926
930
|
|
927
931
|
|
928
932
|
request_headers = {}
|
933
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
929
934
|
|
930
935
|
# Set Headers
|
931
936
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -985,8 +990,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
985
990
|
#
|
986
991
|
# @return [AccessKeys] operation results.
|
987
992
|
#
|
988
|
-
def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
989
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
993
|
+
def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
994
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
990
995
|
response.body unless response.nil?
|
991
996
|
end
|
992
997
|
|
@@ -1005,8 +1010,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1005
1010
|
#
|
1006
1011
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1007
1012
|
#
|
1008
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
1009
|
-
regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
1013
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1014
|
+
regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1010
1015
|
end
|
1011
1016
|
|
1012
1017
|
#
|
@@ -1024,7 +1029,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1024
1029
|
#
|
1025
1030
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1026
1031
|
#
|
1027
|
-
def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers
|
1032
|
+
def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1028
1033
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1029
1034
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1030
1035
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1041,13 +1046,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1041
1046
|
|
1042
1047
|
|
1043
1048
|
request_headers = {}
|
1049
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1044
1050
|
|
1045
1051
|
# Set Headers
|
1046
1052
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1047
1053
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1048
1054
|
|
1049
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1050
|
-
|
1051
1055
|
# Serialize Request
|
1052
1056
|
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
|
1053
1057
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1104,8 +1108,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1104
1108
|
#
|
1105
1109
|
# @return [EventHubListResult] operation results.
|
1106
1110
|
#
|
1107
|
-
def list_by_namespace_next(next_page_link, custom_headers
|
1108
|
-
response = list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1111
|
+
def list_by_namespace_next(next_page_link, custom_headers:nil)
|
1112
|
+
response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
|
1109
1113
|
response.body unless response.nil?
|
1110
1114
|
end
|
1111
1115
|
|
@@ -1119,8 +1123,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1119
1123
|
#
|
1120
1124
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1121
1125
|
#
|
1122
|
-
def list_by_namespace_next_with_http_info(next_page_link, custom_headers
|
1123
|
-
list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1126
|
+
def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil)
|
1127
|
+
list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
|
1124
1128
|
end
|
1125
1129
|
|
1126
1130
|
#
|
@@ -1133,11 +1137,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1133
1137
|
#
|
1134
1138
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1135
1139
|
#
|
1136
|
-
def list_by_namespace_next_async(next_page_link, custom_headers
|
1140
|
+
def list_by_namespace_next_async(next_page_link, custom_headers:nil)
|
1137
1141
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1138
1142
|
|
1139
1143
|
|
1140
1144
|
request_headers = {}
|
1145
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1141
1146
|
|
1142
1147
|
# Set Headers
|
1143
1148
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1191,8 +1196,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1191
1196
|
#
|
1192
1197
|
# @return [AuthorizationRuleListResult] operation results.
|
1193
1198
|
#
|
1194
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1195
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1199
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1200
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1196
1201
|
response.body unless response.nil?
|
1197
1202
|
end
|
1198
1203
|
|
@@ -1206,8 +1211,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1206
1211
|
#
|
1207
1212
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1208
1213
|
#
|
1209
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1210
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1214
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1215
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1211
1216
|
end
|
1212
1217
|
|
1213
1218
|
#
|
@@ -1220,11 +1225,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1220
1225
|
#
|
1221
1226
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1222
1227
|
#
|
1223
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1228
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1224
1229
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1225
1230
|
|
1226
1231
|
|
1227
1232
|
request_headers = {}
|
1233
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1228
1234
|
|
1229
1235
|
# Set Headers
|
1230
1236
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1280,12 +1286,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1280
1286
|
# @return [EventHubListResult] which provide lazy access to pages of the
|
1281
1287
|
# response.
|
1282
1288
|
#
|
1283
|
-
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers
|
1284
|
-
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
1289
|
+
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1290
|
+
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1285
1291
|
unless response.nil?
|
1286
1292
|
page = response.body
|
1287
1293
|
page.next_method = Proc.new do |next_page_link|
|
1288
|
-
list_by_namespace_next_async(next_page_link, custom_headers)
|
1294
|
+
list_by_namespace_next_async(next_page_link, custom_headers:custom_headers)
|
1289
1295
|
end
|
1290
1296
|
page
|
1291
1297
|
end
|
@@ -1304,12 +1310,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
1304
1310
|
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1305
1311
|
# the response.
|
1306
1312
|
#
|
1307
|
-
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers
|
1308
|
-
response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
1313
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
|
1314
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
|
1309
1315
|
unless response.nil?
|
1310
1316
|
page = response.body
|
1311
1317
|
page.next_method = Proc.new do |next_page_link|
|
1312
|
-
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1318
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1313
1319
|
end
|
1314
1320
|
page
|
1315
1321
|
end
|