azure_mgmt_relay 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/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb +78 -72
- data/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb +113 -107
- data/lib/2016-07-01/generated/azure_mgmt_relay/operations.rb +15 -13
- data/lib/2016-07-01/generated/azure_mgmt_relay/relay_management_client.rb +4 -1
- data/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb +78 -72
- data/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb +78 -72
- data/lib/2017-04-01/generated/azure_mgmt_relay/namespaces.rb +113 -107
- data/lib/2017-04-01/generated/azure_mgmt_relay/operations.rb +15 -13
- data/lib/2017-04-01/generated/azure_mgmt_relay/relay_management_client.rb +4 -1
- data/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb +78 -72
- data/lib/profiles/latest/modules/relay_profile_module.rb +112 -93
- data/lib/profiles/latest/relay_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/relay_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
33
33
|
#
|
34
34
|
# @return [Array<HybridConnection>] operation results.
|
35
35
|
#
|
36
|
-
def list_by_namespace(resource_group_name, namespace_name, custom_headers
|
37
|
-
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers)
|
36
|
+
def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil)
|
37
|
+
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
38
38
|
first_page.get_all_items
|
39
39
|
end
|
40
40
|
|
@@ -49,8 +49,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
49
49
|
#
|
50
50
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
51
|
#
|
52
|
-
def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers
|
53
|
-
list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
52
|
+
def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
53
|
+
list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
54
54
|
end
|
55
55
|
|
56
56
|
#
|
@@ -64,7 +64,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
64
64
|
#
|
65
65
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
66
66
|
#
|
67
|
-
def list_by_namespace_async(resource_group_name, namespace_name, custom_headers
|
67
|
+
def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil)
|
68
68
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
69
69
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
70
70
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -76,6 +76,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
76
76
|
|
77
77
|
|
78
78
|
request_headers = {}
|
79
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
80
|
|
80
81
|
# Set Headers
|
81
82
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -134,8 +135,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
134
135
|
#
|
135
136
|
# @return [HybridConnection] operation results.
|
136
137
|
#
|
137
|
-
def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers
|
138
|
-
response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value!
|
138
|
+
def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil)
|
139
|
+
response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value!
|
139
140
|
response.body unless response.nil?
|
140
141
|
end
|
141
142
|
|
@@ -153,8 +154,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
153
154
|
#
|
154
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
156
|
#
|
156
|
-
def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers
|
157
|
-
create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value!
|
157
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil)
|
158
|
+
create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value!
|
158
159
|
end
|
159
160
|
|
160
161
|
#
|
@@ -171,7 +172,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
171
172
|
#
|
172
173
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
173
174
|
#
|
174
|
-
def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers
|
175
|
+
def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil)
|
175
176
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
176
177
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
177
178
|
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::Relay::Mgmt::V2017_04_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::Relay::Mgmt::V2017_04_01::Models::HybridConnection.mapper()
|
198
198
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -250,8 +250,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
250
250
|
# will be added to the HTTP request.
|
251
251
|
#
|
252
252
|
#
|
253
|
-
def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
254
|
-
response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
|
253
|
+
def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
254
|
+
response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
|
255
255
|
nil
|
256
256
|
end
|
257
257
|
|
@@ -267,8 +267,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
267
267
|
#
|
268
268
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
269
269
|
#
|
270
|
-
def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
271
|
-
delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
|
270
|
+
def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
271
|
+
delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
|
272
272
|
end
|
273
273
|
|
274
274
|
#
|
@@ -283,7 +283,7 @@ module Azure::Relay::Mgmt::V2017_04_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, hybrid_connection_name, custom_headers
|
286
|
+
def delete_async(resource_group_name, namespace_name, hybrid_connection_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
|
@@ -297,6 +297,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
297
297
|
|
298
298
|
|
299
299
|
request_headers = {}
|
300
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
300
301
|
|
301
302
|
# Set Headers
|
302
303
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -343,8 +344,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
343
344
|
#
|
344
345
|
# @return [HybridConnection] operation results.
|
345
346
|
#
|
346
|
-
def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
347
|
-
response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
|
347
|
+
def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
348
|
+
response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
|
348
349
|
response.body unless response.nil?
|
349
350
|
end
|
350
351
|
|
@@ -360,8 +361,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
360
361
|
#
|
361
362
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
362
363
|
#
|
363
|
-
def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
364
|
-
get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
|
364
|
+
def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
365
|
+
get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
|
365
366
|
end
|
366
367
|
|
367
368
|
#
|
@@ -376,7 +377,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
376
377
|
#
|
377
378
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
378
379
|
#
|
379
|
-
def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
380
|
+
def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
380
381
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
381
382
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
382
383
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -390,6 +391,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
390
391
|
|
391
392
|
|
392
393
|
request_headers = {}
|
394
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
393
395
|
|
394
396
|
# Set Headers
|
395
397
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -446,8 +448,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
446
448
|
#
|
447
449
|
# @return [Array<AuthorizationRule>] operation results.
|
448
450
|
#
|
449
|
-
def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
450
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers)
|
451
|
+
def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
452
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers)
|
451
453
|
first_page.get_all_items
|
452
454
|
end
|
453
455
|
|
@@ -463,8 +465,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
463
465
|
#
|
464
466
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
465
467
|
#
|
466
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
467
|
-
list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
|
468
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
469
|
+
list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
|
468
470
|
end
|
469
471
|
|
470
472
|
#
|
@@ -479,7 +481,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
479
481
|
#
|
480
482
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
481
483
|
#
|
482
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
484
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
483
485
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
484
486
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
485
487
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -493,6 +495,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
493
495
|
|
494
496
|
|
495
497
|
request_headers = {}
|
498
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
496
499
|
|
497
500
|
# Set Headers
|
498
501
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -551,8 +554,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
551
554
|
#
|
552
555
|
# @return [AuthorizationRule] operation results.
|
553
556
|
#
|
554
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers
|
555
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
|
557
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
|
558
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
556
559
|
response.body unless response.nil?
|
557
560
|
end
|
558
561
|
|
@@ -570,8 +573,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
570
573
|
#
|
571
574
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
572
575
|
#
|
573
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers
|
574
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
|
576
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
|
577
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
575
578
|
end
|
576
579
|
|
577
580
|
#
|
@@ -588,7 +591,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
588
591
|
#
|
589
592
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
590
593
|
#
|
591
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers
|
594
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
|
592
595
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
593
596
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
594
597
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -605,13 +608,12 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
605
608
|
|
606
609
|
|
607
610
|
request_headers = {}
|
611
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
608
612
|
|
609
613
|
# Set Headers
|
610
614
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
611
615
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
612
616
|
|
613
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
614
|
-
|
615
617
|
# Serialize Request
|
616
618
|
request_mapper = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
|
617
619
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -670,8 +672,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
670
672
|
# will be added to the HTTP request.
|
671
673
|
#
|
672
674
|
#
|
673
|
-
def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
674
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
|
675
|
+
def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
676
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
|
675
677
|
nil
|
676
678
|
end
|
677
679
|
|
@@ -688,8 +690,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
688
690
|
#
|
689
691
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
690
692
|
#
|
691
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
692
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
|
693
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
694
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
|
693
695
|
end
|
694
696
|
|
695
697
|
#
|
@@ -705,7 +707,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
705
707
|
#
|
706
708
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
707
709
|
#
|
708
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
710
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_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::Relay::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
|
@@ -768,8 +771,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
768
771
|
#
|
769
772
|
# @return [AuthorizationRule] operation results.
|
770
773
|
#
|
771
|
-
def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
772
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
|
774
|
+
def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
775
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
|
773
776
|
response.body unless response.nil?
|
774
777
|
end
|
775
778
|
|
@@ -786,8 +789,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
786
789
|
#
|
787
790
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
788
791
|
#
|
789
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
790
|
-
get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
|
792
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
793
|
+
get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
|
791
794
|
end
|
792
795
|
|
793
796
|
#
|
@@ -803,7 +806,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
803
806
|
#
|
804
807
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
805
808
|
#
|
806
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
809
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
807
810
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
808
811
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
809
812
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -819,6 +822,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
819
822
|
|
820
823
|
|
821
824
|
request_headers = {}
|
825
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
822
826
|
|
823
827
|
# Set Headers
|
824
828
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -876,8 +880,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
876
880
|
#
|
877
881
|
# @return [AccessKeys] operation results.
|
878
882
|
#
|
879
|
-
def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
880
|
-
response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
|
883
|
+
def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
884
|
+
response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
|
881
885
|
response.body unless response.nil?
|
882
886
|
end
|
883
887
|
|
@@ -894,8 +898,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
894
898
|
#
|
895
899
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
896
900
|
#
|
897
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
898
|
-
list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
|
901
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
902
|
+
list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
|
899
903
|
end
|
900
904
|
|
901
905
|
#
|
@@ -911,7 +915,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
911
915
|
#
|
912
916
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
913
917
|
#
|
914
|
-
def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers
|
918
|
+
def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
|
915
919
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
916
920
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
917
921
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -927,6 +931,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
927
931
|
|
928
932
|
|
929
933
|
request_headers = {}
|
934
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
930
935
|
|
931
936
|
# Set Headers
|
932
937
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -987,8 +992,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
987
992
|
#
|
988
993
|
# @return [AccessKeys] operation results.
|
989
994
|
#
|
990
|
-
def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers
|
991
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
|
995
|
+
def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
|
996
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
992
997
|
response.body unless response.nil?
|
993
998
|
end
|
994
999
|
|
@@ -1008,8 +1013,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1008
1013
|
#
|
1009
1014
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1010
1015
|
#
|
1011
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers
|
1012
|
-
regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
|
1016
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
|
1017
|
+
regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1013
1018
|
end
|
1014
1019
|
|
1015
1020
|
#
|
@@ -1028,7 +1033,7 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1028
1033
|
#
|
1029
1034
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1030
1035
|
#
|
1031
|
-
def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers
|
1036
|
+
def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
|
1032
1037
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1033
1038
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1034
1039
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1045,13 +1050,12 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1045
1050
|
|
1046
1051
|
|
1047
1052
|
request_headers = {}
|
1053
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1048
1054
|
|
1049
1055
|
# Set Headers
|
1050
1056
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1051
1057
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1052
1058
|
|
1053
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1054
|
-
|
1055
1059
|
# Serialize Request
|
1056
1060
|
request_mapper = Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
|
1057
1061
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1108,8 +1112,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1108
1112
|
#
|
1109
1113
|
# @return [HybridConnectionListResult] operation results.
|
1110
1114
|
#
|
1111
|
-
def list_by_namespace_next(next_page_link, custom_headers
|
1112
|
-
response = list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1115
|
+
def list_by_namespace_next(next_page_link, custom_headers:nil)
|
1116
|
+
response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
|
1113
1117
|
response.body unless response.nil?
|
1114
1118
|
end
|
1115
1119
|
|
@@ -1123,8 +1127,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1123
1127
|
#
|
1124
1128
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1125
1129
|
#
|
1126
|
-
def list_by_namespace_next_with_http_info(next_page_link, custom_headers
|
1127
|
-
list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1130
|
+
def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil)
|
1131
|
+
list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
|
1128
1132
|
end
|
1129
1133
|
|
1130
1134
|
#
|
@@ -1137,11 +1141,12 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1137
1141
|
#
|
1138
1142
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1139
1143
|
#
|
1140
|
-
def list_by_namespace_next_async(next_page_link, custom_headers
|
1144
|
+
def list_by_namespace_next_async(next_page_link, custom_headers:nil)
|
1141
1145
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1142
1146
|
|
1143
1147
|
|
1144
1148
|
request_headers = {}
|
1149
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1145
1150
|
|
1146
1151
|
# Set Headers
|
1147
1152
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1195,8 +1200,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1195
1200
|
#
|
1196
1201
|
# @return [AuthorizationRuleListResult] operation results.
|
1197
1202
|
#
|
1198
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1199
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1203
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1204
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1200
1205
|
response.body unless response.nil?
|
1201
1206
|
end
|
1202
1207
|
|
@@ -1210,8 +1215,8 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1210
1215
|
#
|
1211
1216
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1212
1217
|
#
|
1213
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1214
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1218
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1219
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1215
1220
|
end
|
1216
1221
|
|
1217
1222
|
#
|
@@ -1224,11 +1229,12 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1224
1229
|
#
|
1225
1230
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1226
1231
|
#
|
1227
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1232
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1228
1233
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1229
1234
|
|
1230
1235
|
|
1231
1236
|
request_headers = {}
|
1237
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1232
1238
|
|
1233
1239
|
# Set Headers
|
1234
1240
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1284,12 +1290,12 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1284
1290
|
# @return [HybridConnectionListResult] which provide lazy access to pages of
|
1285
1291
|
# the response.
|
1286
1292
|
#
|
1287
|
-
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers
|
1288
|
-
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
1293
|
+
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1294
|
+
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1289
1295
|
unless response.nil?
|
1290
1296
|
page = response.body
|
1291
1297
|
page.next_method = Proc.new do |next_page_link|
|
1292
|
-
list_by_namespace_next_async(next_page_link, custom_headers)
|
1298
|
+
list_by_namespace_next_async(next_page_link, custom_headers:custom_headers)
|
1293
1299
|
end
|
1294
1300
|
page
|
1295
1301
|
end
|
@@ -1308,12 +1314,12 @@ module Azure::Relay::Mgmt::V2017_04_01
|
|
1308
1314
|
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1309
1315
|
# the response.
|
1310
1316
|
#
|
1311
|
-
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers
|
1312
|
-
response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
|
1317
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
|
1318
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
|
1313
1319
|
unless response.nil?
|
1314
1320
|
page = response.body
|
1315
1321
|
page.next_method = Proc.new do |next_page_link|
|
1316
|
-
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1322
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1317
1323
|
end
|
1318
1324
|
page
|
1319
1325
|
end
|