azure_mgmt_relay 0.15.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb +406 -72
- data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule_list_result.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection_list_result.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation_list_result.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace_list_result.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_relay/models/resource.rb +9 -0
- data/lib/2016-07-01/generated/azure_mgmt_relay/models/wcf_relays_list_result.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb +428 -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 +10 -6
- data/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb +406 -72
- data/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb +78 -72
- data/lib/2017-04-01/generated/azure_mgmt_relay/models/authorization_rule_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_relay/models/hybrid_connection_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_relay/models/operation_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_relay/models/relay_namespace_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_relay/models/resource.rb +9 -0
- data/lib/2017-04-01/generated/azure_mgmt_relay/models/wcf_relays_list_result.rb +1 -1
- 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 +10 -6
- data/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb +78 -72
- data/lib/azure_mgmt_relay.rb +1 -1
- 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 +5 -5
@@ -22,6 +22,15 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
24
|
|
25
|
+
# @return [String] the name of the resource group of the resource.
|
26
|
+
def resource_group
|
27
|
+
unless self.id.nil?
|
28
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
29
|
+
groups.captures[0].strip if groups
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
25
34
|
#
|
26
35
|
# Mapper for Resource class as Ruby Hash.
|
27
36
|
# This will be used for serialization/deserialization.
|
@@ -32,8 +32,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
32
32
|
#
|
33
33
|
# @return [CheckNameAvailabilityResult] operation results.
|
34
34
|
#
|
35
|
-
def check_name_availability_method(parameters, custom_headers
|
36
|
-
response = check_name_availability_method_async(parameters, custom_headers).value!
|
35
|
+
def check_name_availability_method(parameters, custom_headers:nil)
|
36
|
+
response = check_name_availability_method_async(parameters, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
@@ -47,8 +47,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
47
47
|
#
|
48
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
49
|
#
|
50
|
-
def check_name_availability_method_with_http_info(parameters, custom_headers
|
51
|
-
check_name_availability_method_async(parameters, custom_headers).value!
|
50
|
+
def check_name_availability_method_with_http_info(parameters, custom_headers:nil)
|
51
|
+
check_name_availability_method_async(parameters, custom_headers:custom_headers).value!
|
52
52
|
end
|
53
53
|
|
54
54
|
#
|
@@ -61,20 +61,19 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
61
61
|
#
|
62
62
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
63
|
#
|
64
|
-
def check_name_availability_method_async(parameters, custom_headers
|
64
|
+
def check_name_availability_method_async(parameters, custom_headers:nil)
|
65
65
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
66
66
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
67
67
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
68
68
|
|
69
69
|
|
70
70
|
request_headers = {}
|
71
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
71
72
|
|
72
73
|
# Set Headers
|
73
74
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
74
75
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
75
76
|
|
76
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
77
|
-
|
78
77
|
# Serialize Request
|
79
78
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::CheckNameAvailability.mapper()
|
80
79
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -130,8 +129,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
130
129
|
#
|
131
130
|
# @return [Array<RelayNamespace>] operation results.
|
132
131
|
#
|
133
|
-
def list(custom_headers
|
134
|
-
first_page = list_as_lazy(custom_headers)
|
132
|
+
def list(custom_headers:nil)
|
133
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
135
134
|
first_page.get_all_items
|
136
135
|
end
|
137
136
|
|
@@ -144,8 +143,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
144
143
|
#
|
145
144
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
146
145
|
#
|
147
|
-
def list_with_http_info(custom_headers
|
148
|
-
list_async(custom_headers).value!
|
146
|
+
def list_with_http_info(custom_headers:nil)
|
147
|
+
list_async(custom_headers:custom_headers).value!
|
149
148
|
end
|
150
149
|
|
151
150
|
#
|
@@ -157,12 +156,13 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
157
156
|
#
|
158
157
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
159
158
|
#
|
160
|
-
def list_async(custom_headers
|
159
|
+
def list_async(custom_headers:nil)
|
161
160
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
162
161
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
163
162
|
|
164
163
|
|
165
164
|
request_headers = {}
|
165
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
166
166
|
|
167
167
|
# Set Headers
|
168
168
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -217,8 +217,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
217
217
|
#
|
218
218
|
# @return [Array<RelayNamespace>] operation results.
|
219
219
|
#
|
220
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
221
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
220
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
221
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
222
222
|
first_page.get_all_items
|
223
223
|
end
|
224
224
|
|
@@ -232,8 +232,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
232
232
|
#
|
233
233
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
234
234
|
#
|
235
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
236
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
235
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
236
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
237
237
|
end
|
238
238
|
|
239
239
|
#
|
@@ -246,7 +246,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
246
246
|
#
|
247
247
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
248
248
|
#
|
249
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
249
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
250
250
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
251
251
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
252
252
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -255,6 +255,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
255
255
|
|
256
256
|
|
257
257
|
request_headers = {}
|
258
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
258
259
|
|
259
260
|
# Set Headers
|
260
261
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -312,8 +313,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
312
313
|
#
|
313
314
|
# @return [RelayNamespace] operation results.
|
314
315
|
#
|
315
|
-
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers
|
316
|
-
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
316
|
+
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
317
|
+
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
317
318
|
response.body unless response.nil?
|
318
319
|
end
|
319
320
|
|
@@ -329,9 +330,9 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
329
330
|
# @return [Concurrent::Promise] promise which provides async access to http
|
330
331
|
# response.
|
331
332
|
#
|
332
|
-
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers
|
333
|
+
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
333
334
|
# Send request
|
334
|
-
promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers)
|
335
|
+
promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers)
|
335
336
|
|
336
337
|
promise = promise.then do |response|
|
337
338
|
# Defining deserialization method.
|
@@ -357,8 +358,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
357
358
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
358
359
|
# will be added to the HTTP request.
|
359
360
|
#
|
360
|
-
def delete(resource_group_name, namespace_name, custom_headers
|
361
|
-
response = delete_async(resource_group_name, namespace_name, custom_headers).value!
|
361
|
+
def delete(resource_group_name, namespace_name, custom_headers:nil)
|
362
|
+
response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
362
363
|
nil
|
363
364
|
end
|
364
365
|
|
@@ -372,9 +373,9 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
372
373
|
# @return [Concurrent::Promise] promise which provides async access to http
|
373
374
|
# response.
|
374
375
|
#
|
375
|
-
def delete_async(resource_group_name, namespace_name, custom_headers
|
376
|
+
def delete_async(resource_group_name, namespace_name, custom_headers:nil)
|
376
377
|
# Send request
|
377
|
-
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers)
|
378
|
+
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers)
|
378
379
|
|
379
380
|
promise = promise.then do |response|
|
380
381
|
# Defining deserialization method.
|
@@ -399,8 +400,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
399
400
|
#
|
400
401
|
# @return [RelayNamespace] operation results.
|
401
402
|
#
|
402
|
-
def get(resource_group_name, namespace_name, custom_headers
|
403
|
-
response = get_async(resource_group_name, namespace_name, custom_headers).value!
|
403
|
+
def get(resource_group_name, namespace_name, custom_headers:nil)
|
404
|
+
response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
404
405
|
response.body unless response.nil?
|
405
406
|
end
|
406
407
|
|
@@ -415,8 +416,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
415
416
|
#
|
416
417
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
417
418
|
#
|
418
|
-
def get_with_http_info(resource_group_name, namespace_name, custom_headers
|
419
|
-
get_async(resource_group_name, namespace_name, custom_headers).value!
|
419
|
+
def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
420
|
+
get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
420
421
|
end
|
421
422
|
|
422
423
|
#
|
@@ -430,7 +431,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
430
431
|
#
|
431
432
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
432
433
|
#
|
433
|
-
def get_async(resource_group_name, namespace_name, custom_headers
|
434
|
+
def get_async(resource_group_name, namespace_name, custom_headers:nil)
|
434
435
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
435
436
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
436
437
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -442,6 +443,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
442
443
|
|
443
444
|
|
444
445
|
request_headers = {}
|
446
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
445
447
|
|
446
448
|
# Set Headers
|
447
449
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -500,8 +502,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
500
502
|
#
|
501
503
|
# @return [RelayNamespace] operation results.
|
502
504
|
#
|
503
|
-
def update(resource_group_name, namespace_name, parameters, custom_headers
|
504
|
-
response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
505
|
+
def update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
506
|
+
response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
505
507
|
response.body unless response.nil?
|
506
508
|
end
|
507
509
|
|
@@ -519,8 +521,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
519
521
|
#
|
520
522
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
521
523
|
#
|
522
|
-
def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
523
|
-
update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
524
|
+
def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
525
|
+
update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
524
526
|
end
|
525
527
|
|
526
528
|
#
|
@@ -537,7 +539,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
537
539
|
#
|
538
540
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
539
541
|
#
|
540
|
-
def update_async(resource_group_name, namespace_name, parameters, custom_headers
|
542
|
+
def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
541
543
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
542
544
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
543
545
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -550,13 +552,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
550
552
|
|
551
553
|
|
552
554
|
request_headers = {}
|
555
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
553
556
|
|
554
557
|
# Set Headers
|
555
558
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
556
559
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
557
560
|
|
558
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
559
|
-
|
560
561
|
# Serialize Request
|
561
562
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::RelayNamespaceUpdateParameter.mapper()
|
562
563
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -614,8 +615,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
614
615
|
#
|
615
616
|
# @return [Array<AuthorizationRule>] operation results.
|
616
617
|
#
|
617
|
-
def list_authorization_rules(resource_group_name, namespace_name, custom_headers
|
618
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers)
|
618
|
+
def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil)
|
619
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
619
620
|
first_page.get_all_items
|
620
621
|
end
|
621
622
|
|
@@ -630,8 +631,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
630
631
|
#
|
631
632
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
632
633
|
#
|
633
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers
|
634
|
-
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
634
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
635
|
+
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
635
636
|
end
|
636
637
|
|
637
638
|
#
|
@@ -645,7 +646,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
645
646
|
#
|
646
647
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
647
648
|
#
|
648
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers
|
649
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil)
|
649
650
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
650
651
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
651
652
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -657,6 +658,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
657
658
|
|
658
659
|
|
659
660
|
request_headers = {}
|
661
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
660
662
|
|
661
663
|
# Set Headers
|
662
664
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -701,6 +703,105 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
701
703
|
promise.execute
|
702
704
|
end
|
703
705
|
|
706
|
+
#
|
707
|
+
# Authorization rules for a namespace.
|
708
|
+
#
|
709
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
710
|
+
# Azure subscription.
|
711
|
+
# @param namespace_name [String] The Namespace Name
|
712
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
713
|
+
# will be added to the HTTP request.
|
714
|
+
#
|
715
|
+
# @return [Array<AuthorizationRule>] operation results.
|
716
|
+
#
|
717
|
+
def list_post_authorization_rules(resource_group_name, namespace_name, custom_headers:nil)
|
718
|
+
first_page = list_post_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
719
|
+
first_page.get_all_items
|
720
|
+
end
|
721
|
+
|
722
|
+
#
|
723
|
+
# Authorization rules for a namespace.
|
724
|
+
#
|
725
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
726
|
+
# Azure subscription.
|
727
|
+
# @param namespace_name [String] The Namespace Name
|
728
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
729
|
+
# will be added to the HTTP request.
|
730
|
+
#
|
731
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
732
|
+
#
|
733
|
+
def list_post_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
734
|
+
list_post_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
735
|
+
end
|
736
|
+
|
737
|
+
#
|
738
|
+
# Authorization rules for a namespace.
|
739
|
+
#
|
740
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
741
|
+
# Azure subscription.
|
742
|
+
# @param namespace_name [String] The Namespace Name
|
743
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
744
|
+
# to the HTTP request.
|
745
|
+
#
|
746
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
747
|
+
#
|
748
|
+
def list_post_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil)
|
749
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
750
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
751
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
752
|
+
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
753
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
|
754
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
|
755
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
756
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
757
|
+
|
758
|
+
|
759
|
+
request_headers = {}
|
760
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
761
|
+
|
762
|
+
# Set Headers
|
763
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
764
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
765
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/AuthorizationRules'
|
766
|
+
|
767
|
+
request_url = @base_url || @client.base_url
|
768
|
+
|
769
|
+
options = {
|
770
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
771
|
+
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
|
772
|
+
query_params: {'api-version' => @client.api_version},
|
773
|
+
headers: request_headers.merge(custom_headers || {}),
|
774
|
+
base_url: request_url
|
775
|
+
}
|
776
|
+
promise = @client.make_request_async(:post, path_template, options)
|
777
|
+
|
778
|
+
promise = promise.then do |result|
|
779
|
+
http_response = result.response
|
780
|
+
status_code = http_response.status
|
781
|
+
response_content = http_response.body
|
782
|
+
unless status_code == 200
|
783
|
+
error_model = JSON.load(response_content)
|
784
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
785
|
+
end
|
786
|
+
|
787
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
788
|
+
# Deserialize Response
|
789
|
+
if status_code == 200
|
790
|
+
begin
|
791
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
792
|
+
result_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRuleListResult.mapper()
|
793
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
794
|
+
rescue Exception => e
|
795
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
799
|
+
result
|
800
|
+
end
|
801
|
+
|
802
|
+
promise.execute
|
803
|
+
end
|
804
|
+
|
704
805
|
#
|
705
806
|
# Creates or Updates an authorization rule for a namespace
|
706
807
|
#
|
@@ -714,8 +815,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
714
815
|
#
|
715
816
|
# @return [AuthorizationRule] operation results.
|
716
817
|
#
|
717
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
718
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
818
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
819
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
719
820
|
response.body unless response.nil?
|
720
821
|
end
|
721
822
|
|
@@ -732,8 +833,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
732
833
|
#
|
733
834
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
734
835
|
#
|
735
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
736
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
836
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
837
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
737
838
|
end
|
738
839
|
|
739
840
|
#
|
@@ -749,7 +850,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
749
850
|
#
|
750
851
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
751
852
|
#
|
752
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
853
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
753
854
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
754
855
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
755
856
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -765,13 +866,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
765
866
|
|
766
867
|
|
767
868
|
request_headers = {}
|
869
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
768
870
|
|
769
871
|
# Set Headers
|
770
872
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
771
873
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
772
874
|
|
773
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
774
|
-
|
775
875
|
# Serialize Request
|
776
876
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRule.mapper()
|
777
877
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -829,8 +929,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
829
929
|
# will be added to the HTTP request.
|
830
930
|
#
|
831
931
|
#
|
832
|
-
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
833
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
932
|
+
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
933
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
834
934
|
nil
|
835
935
|
end
|
836
936
|
|
@@ -846,8 +946,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
846
946
|
#
|
847
947
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
848
948
|
#
|
849
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
850
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
949
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
950
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
851
951
|
end
|
852
952
|
|
853
953
|
#
|
@@ -862,7 +962,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
862
962
|
#
|
863
963
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
864
964
|
#
|
865
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
965
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
866
966
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
867
967
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
868
968
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -877,6 +977,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
877
977
|
|
878
978
|
|
879
979
|
request_headers = {}
|
980
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
880
981
|
|
881
982
|
# Set Headers
|
882
983
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -923,8 +1024,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
923
1024
|
#
|
924
1025
|
# @return [AuthorizationRule] operation results.
|
925
1026
|
#
|
926
|
-
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
927
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1027
|
+
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1028
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
928
1029
|
response.body unless response.nil?
|
929
1030
|
end
|
930
1031
|
|
@@ -940,8 +1041,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
940
1041
|
#
|
941
1042
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
942
1043
|
#
|
943
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
944
|
-
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1044
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1045
|
+
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
945
1046
|
end
|
946
1047
|
|
947
1048
|
#
|
@@ -956,7 +1057,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
956
1057
|
#
|
957
1058
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
958
1059
|
#
|
959
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1060
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
960
1061
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
961
1062
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
962
1063
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -971,6 +1072,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
971
1072
|
|
972
1073
|
|
973
1074
|
request_headers = {}
|
1075
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
974
1076
|
|
975
1077
|
# Set Headers
|
976
1078
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1015,6 +1117,111 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1015
1117
|
promise.execute
|
1016
1118
|
end
|
1017
1119
|
|
1120
|
+
#
|
1121
|
+
# Authorization rule for a namespace by name.
|
1122
|
+
#
|
1123
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1124
|
+
# Azure subscription.
|
1125
|
+
# @param namespace_name [String] The Namespace Name
|
1126
|
+
# @param authorization_rule_name [String] The authorizationRule name.
|
1127
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1128
|
+
# will be added to the HTTP request.
|
1129
|
+
#
|
1130
|
+
# @return [AuthorizationRule] operation results.
|
1131
|
+
#
|
1132
|
+
def post_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1133
|
+
response = post_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1134
|
+
response.body unless response.nil?
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
#
|
1138
|
+
# Authorization rule for a namespace by name.
|
1139
|
+
#
|
1140
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1141
|
+
# Azure subscription.
|
1142
|
+
# @param namespace_name [String] The Namespace Name
|
1143
|
+
# @param authorization_rule_name [String] The authorizationRule name.
|
1144
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1145
|
+
# will be added to the HTTP request.
|
1146
|
+
#
|
1147
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1148
|
+
#
|
1149
|
+
def post_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1150
|
+
post_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
#
|
1154
|
+
# Authorization rule for a namespace by name.
|
1155
|
+
#
|
1156
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1157
|
+
# Azure subscription.
|
1158
|
+
# @param namespace_name [String] The Namespace Name
|
1159
|
+
# @param authorization_rule_name [String] The authorizationRule name.
|
1160
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1161
|
+
# to the HTTP request.
|
1162
|
+
#
|
1163
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1164
|
+
#
|
1165
|
+
def post_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1166
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1167
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1168
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1169
|
+
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
1170
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
|
1171
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
|
1172
|
+
fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
|
1173
|
+
fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
|
1174
|
+
fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
|
1175
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1176
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1177
|
+
|
1178
|
+
|
1179
|
+
request_headers = {}
|
1180
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1181
|
+
|
1182
|
+
# Set Headers
|
1183
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1184
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1185
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
1186
|
+
|
1187
|
+
request_url = @base_url || @client.base_url
|
1188
|
+
|
1189
|
+
options = {
|
1190
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1191
|
+
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
|
1192
|
+
query_params: {'api-version' => @client.api_version},
|
1193
|
+
headers: request_headers.merge(custom_headers || {}),
|
1194
|
+
base_url: request_url
|
1195
|
+
}
|
1196
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1197
|
+
|
1198
|
+
promise = promise.then do |result|
|
1199
|
+
http_response = result.response
|
1200
|
+
status_code = http_response.status
|
1201
|
+
response_content = http_response.body
|
1202
|
+
unless status_code == 200
|
1203
|
+
error_model = JSON.load(response_content)
|
1204
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1208
|
+
# Deserialize Response
|
1209
|
+
if status_code == 200
|
1210
|
+
begin
|
1211
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1212
|
+
result_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRule.mapper()
|
1213
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1214
|
+
rescue Exception => e
|
1215
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
result
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
promise.execute
|
1223
|
+
end
|
1224
|
+
|
1018
1225
|
#
|
1019
1226
|
# Primary and Secondary ConnectionStrings to the namespace
|
1020
1227
|
#
|
@@ -1027,8 +1234,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1027
1234
|
#
|
1028
1235
|
# @return [AuthorizationRuleKeys] operation results.
|
1029
1236
|
#
|
1030
|
-
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1031
|
-
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1237
|
+
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1238
|
+
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1032
1239
|
response.body unless response.nil?
|
1033
1240
|
end
|
1034
1241
|
|
@@ -1044,8 +1251,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1044
1251
|
#
|
1045
1252
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1046
1253
|
#
|
1047
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1048
|
-
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1254
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1255
|
+
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1049
1256
|
end
|
1050
1257
|
|
1051
1258
|
#
|
@@ -1060,7 +1267,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1060
1267
|
#
|
1061
1268
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1062
1269
|
#
|
1063
|
-
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers
|
1270
|
+
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil)
|
1064
1271
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1065
1272
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1066
1273
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1075,6 +1282,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1075
1282
|
|
1076
1283
|
|
1077
1284
|
request_headers = {}
|
1285
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1078
1286
|
|
1079
1287
|
# Set Headers
|
1080
1288
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1133,8 +1341,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1133
1341
|
#
|
1134
1342
|
# @return [AuthorizationRuleKeys] operation results.
|
1135
1343
|
#
|
1136
|
-
def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1137
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
1344
|
+
def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1345
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1138
1346
|
response.body unless response.nil?
|
1139
1347
|
end
|
1140
1348
|
|
@@ -1152,8 +1360,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1152
1360
|
#
|
1153
1361
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1154
1362
|
#
|
1155
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1156
|
-
regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
1363
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1364
|
+
regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1157
1365
|
end
|
1158
1366
|
|
1159
1367
|
#
|
@@ -1170,7 +1378,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1170
1378
|
#
|
1171
1379
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1172
1380
|
#
|
1173
|
-
def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers
|
1381
|
+
def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil)
|
1174
1382
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1175
1383
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1176
1384
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1186,13 +1394,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1186
1394
|
|
1187
1395
|
|
1188
1396
|
request_headers = {}
|
1397
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1189
1398
|
|
1190
1399
|
# Set Headers
|
1191
1400
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1192
1401
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1193
1402
|
|
1194
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1195
|
-
|
1196
1403
|
# Serialize Request
|
1197
1404
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::RegenerateKeysParameters.mapper()
|
1198
1405
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1252,8 +1459,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1252
1459
|
#
|
1253
1460
|
# @return [RelayNamespace] operation results.
|
1254
1461
|
#
|
1255
|
-
def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers
|
1256
|
-
response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
1462
|
+
def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1463
|
+
response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
1257
1464
|
response.body unless response.nil?
|
1258
1465
|
end
|
1259
1466
|
|
@@ -1270,8 +1477,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1270
1477
|
#
|
1271
1478
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1272
1479
|
#
|
1273
|
-
def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
1274
|
-
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
1480
|
+
def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1481
|
+
begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
1275
1482
|
end
|
1276
1483
|
|
1277
1484
|
#
|
@@ -1287,7 +1494,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1287
1494
|
#
|
1288
1495
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1289
1496
|
#
|
1290
|
-
def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers
|
1497
|
+
def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
1291
1498
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1292
1499
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1293
1500
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1300,13 +1507,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1300
1507
|
|
1301
1508
|
|
1302
1509
|
request_headers = {}
|
1510
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1303
1511
|
|
1304
1512
|
# Set Headers
|
1305
1513
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1306
1514
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1307
1515
|
|
1308
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1309
|
-
|
1310
1516
|
# Serialize Request
|
1311
1517
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::RelayNamespace.mapper()
|
1312
1518
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1364,8 +1570,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1364
1570
|
# will be added to the HTTP request.
|
1365
1571
|
#
|
1366
1572
|
#
|
1367
|
-
def begin_delete(resource_group_name, namespace_name, custom_headers
|
1368
|
-
response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
1573
|
+
def begin_delete(resource_group_name, namespace_name, custom_headers:nil)
|
1574
|
+
response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1369
1575
|
nil
|
1370
1576
|
end
|
1371
1577
|
|
@@ -1381,8 +1587,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1381
1587
|
#
|
1382
1588
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1383
1589
|
#
|
1384
|
-
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers
|
1385
|
-
begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
1590
|
+
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
1591
|
+
begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1386
1592
|
end
|
1387
1593
|
|
1388
1594
|
#
|
@@ -1397,7 +1603,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1397
1603
|
#
|
1398
1604
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1399
1605
|
#
|
1400
|
-
def begin_delete_async(resource_group_name, namespace_name, custom_headers
|
1606
|
+
def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil)
|
1401
1607
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1402
1608
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1403
1609
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1409,6 +1615,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1409
1615
|
|
1410
1616
|
|
1411
1617
|
request_headers = {}
|
1618
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1412
1619
|
|
1413
1620
|
# Set Headers
|
1414
1621
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1454,8 +1661,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1454
1661
|
#
|
1455
1662
|
# @return [RelayNamespaceListResult] operation results.
|
1456
1663
|
#
|
1457
|
-
def list_next(next_page_link, custom_headers
|
1458
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1664
|
+
def list_next(next_page_link, custom_headers:nil)
|
1665
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1459
1666
|
response.body unless response.nil?
|
1460
1667
|
end
|
1461
1668
|
|
@@ -1470,8 +1677,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1470
1677
|
#
|
1471
1678
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1472
1679
|
#
|
1473
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1474
|
-
list_next_async(next_page_link, custom_headers).value!
|
1680
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1681
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1475
1682
|
end
|
1476
1683
|
|
1477
1684
|
#
|
@@ -1485,11 +1692,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1485
1692
|
#
|
1486
1693
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1487
1694
|
#
|
1488
|
-
def list_next_async(next_page_link, custom_headers
|
1695
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1489
1696
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1490
1697
|
|
1491
1698
|
|
1492
1699
|
request_headers = {}
|
1700
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1493
1701
|
|
1494
1702
|
# Set Headers
|
1495
1703
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1543,8 +1751,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1543
1751
|
#
|
1544
1752
|
# @return [RelayNamespaceListResult] operation results.
|
1545
1753
|
#
|
1546
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
1547
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1754
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
1755
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1548
1756
|
response.body unless response.nil?
|
1549
1757
|
end
|
1550
1758
|
|
@@ -1558,8 +1766,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1558
1766
|
#
|
1559
1767
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1560
1768
|
#
|
1561
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
1562
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1769
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1770
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1563
1771
|
end
|
1564
1772
|
|
1565
1773
|
#
|
@@ -1572,11 +1780,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1572
1780
|
#
|
1573
1781
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1574
1782
|
#
|
1575
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
1783
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1576
1784
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1577
1785
|
|
1578
1786
|
|
1579
1787
|
request_headers = {}
|
1788
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1580
1789
|
|
1581
1790
|
# Set Headers
|
1582
1791
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1630,8 +1839,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1630
1839
|
#
|
1631
1840
|
# @return [AuthorizationRuleListResult] operation results.
|
1632
1841
|
#
|
1633
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1634
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1842
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1843
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1635
1844
|
response.body unless response.nil?
|
1636
1845
|
end
|
1637
1846
|
|
@@ -1645,8 +1854,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1645
1854
|
#
|
1646
1855
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1647
1856
|
#
|
1648
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1649
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1857
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1858
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1650
1859
|
end
|
1651
1860
|
|
1652
1861
|
#
|
@@ -1659,11 +1868,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1659
1868
|
#
|
1660
1869
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1661
1870
|
#
|
1662
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1871
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1663
1872
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1664
1873
|
|
1665
1874
|
|
1666
1875
|
request_headers = {}
|
1876
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1667
1877
|
|
1668
1878
|
# Set Headers
|
1669
1879
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1707,6 +1917,94 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1707
1917
|
promise.execute
|
1708
1918
|
end
|
1709
1919
|
|
1920
|
+
#
|
1921
|
+
# Authorization rules for a namespace.
|
1922
|
+
#
|
1923
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1924
|
+
# to List operation.
|
1925
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1926
|
+
# will be added to the HTTP request.
|
1927
|
+
#
|
1928
|
+
# @return [AuthorizationRuleListResult] operation results.
|
1929
|
+
#
|
1930
|
+
def list_post_authorization_rules_next(next_page_link, custom_headers:nil)
|
1931
|
+
response = list_post_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1932
|
+
response.body unless response.nil?
|
1933
|
+
end
|
1934
|
+
|
1935
|
+
#
|
1936
|
+
# Authorization rules for a namespace.
|
1937
|
+
#
|
1938
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1939
|
+
# to List operation.
|
1940
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1941
|
+
# will be added to the HTTP request.
|
1942
|
+
#
|
1943
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1944
|
+
#
|
1945
|
+
def list_post_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1946
|
+
list_post_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
#
|
1950
|
+
# Authorization rules for a namespace.
|
1951
|
+
#
|
1952
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1953
|
+
# to List operation.
|
1954
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1955
|
+
# to the HTTP request.
|
1956
|
+
#
|
1957
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1958
|
+
#
|
1959
|
+
def list_post_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1960
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1961
|
+
|
1962
|
+
|
1963
|
+
request_headers = {}
|
1964
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1965
|
+
|
1966
|
+
# Set Headers
|
1967
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1968
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1969
|
+
path_template = '{nextLink}'
|
1970
|
+
|
1971
|
+
request_url = @base_url || @client.base_url
|
1972
|
+
|
1973
|
+
options = {
|
1974
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1975
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1976
|
+
headers: request_headers.merge(custom_headers || {}),
|
1977
|
+
base_url: request_url
|
1978
|
+
}
|
1979
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1980
|
+
|
1981
|
+
promise = promise.then do |result|
|
1982
|
+
http_response = result.response
|
1983
|
+
status_code = http_response.status
|
1984
|
+
response_content = http_response.body
|
1985
|
+
unless status_code == 200
|
1986
|
+
error_model = JSON.load(response_content)
|
1987
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1988
|
+
end
|
1989
|
+
|
1990
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1991
|
+
# Deserialize Response
|
1992
|
+
if status_code == 200
|
1993
|
+
begin
|
1994
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1995
|
+
result_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRuleListResult.mapper()
|
1996
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1997
|
+
rescue Exception => e
|
1998
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1999
|
+
end
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
result
|
2003
|
+
end
|
2004
|
+
|
2005
|
+
promise.execute
|
2006
|
+
end
|
2007
|
+
|
1710
2008
|
#
|
1711
2009
|
# Lists all the available namespaces within the subscription irrespective of
|
1712
2010
|
# the resourceGroups.
|
@@ -1717,12 +2015,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1717
2015
|
# @return [RelayNamespaceListResult] which provide lazy access to pages of the
|
1718
2016
|
# response.
|
1719
2017
|
#
|
1720
|
-
def list_as_lazy(custom_headers
|
1721
|
-
response = list_async(custom_headers).value!
|
2018
|
+
def list_as_lazy(custom_headers:nil)
|
2019
|
+
response = list_async(custom_headers:custom_headers).value!
|
1722
2020
|
unless response.nil?
|
1723
2021
|
page = response.body
|
1724
2022
|
page.next_method = Proc.new do |next_page_link|
|
1725
|
-
list_next_async(next_page_link, custom_headers)
|
2023
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1726
2024
|
end
|
1727
2025
|
page
|
1728
2026
|
end
|
@@ -1739,12 +2037,35 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1739
2037
|
# @return [RelayNamespaceListResult] which provide lazy access to pages of the
|
1740
2038
|
# response.
|
1741
2039
|
#
|
1742
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1743
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
2040
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
2041
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
2042
|
+
unless response.nil?
|
2043
|
+
page = response.body
|
2044
|
+
page.next_method = Proc.new do |next_page_link|
|
2045
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
2046
|
+
end
|
2047
|
+
page
|
2048
|
+
end
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
#
|
2052
|
+
# Authorization rules for a namespace.
|
2053
|
+
#
|
2054
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
2055
|
+
# Azure subscription.
|
2056
|
+
# @param namespace_name [String] The Namespace Name
|
2057
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2058
|
+
# will be added to the HTTP request.
|
2059
|
+
#
|
2060
|
+
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
2061
|
+
# the response.
|
2062
|
+
#
|
2063
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
2064
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1744
2065
|
unless response.nil?
|
1745
2066
|
page = response.body
|
1746
2067
|
page.next_method = Proc.new do |next_page_link|
|
1747
|
-
|
2068
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1748
2069
|
end
|
1749
2070
|
page
|
1750
2071
|
end
|
@@ -1762,12 +2083,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1762
2083
|
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1763
2084
|
# the response.
|
1764
2085
|
#
|
1765
|
-
def
|
1766
|
-
response =
|
2086
|
+
def list_post_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
2087
|
+
response = list_post_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1767
2088
|
unless response.nil?
|
1768
2089
|
page = response.body
|
1769
2090
|
page.next_method = Proc.new do |next_page_link|
|
1770
|
-
|
2091
|
+
list_post_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1771
2092
|
end
|
1772
2093
|
page
|
1773
2094
|
end
|