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
@@ -30,8 +30,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
30
30
|
#
|
31
31
|
# @return [Array<Operation>] operation results.
|
32
32
|
#
|
33
|
-
def list(custom_headers
|
34
|
-
first_page = list_as_lazy(custom_headers)
|
33
|
+
def list(custom_headers:nil)
|
34
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
35
35
|
first_page.get_all_items
|
36
36
|
end
|
37
37
|
|
@@ -43,8 +43,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
43
43
|
#
|
44
44
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
45
|
#
|
46
|
-
def list_with_http_info(custom_headers
|
47
|
-
list_async(custom_headers).value!
|
46
|
+
def list_with_http_info(custom_headers:nil)
|
47
|
+
list_async(custom_headers:custom_headers).value!
|
48
48
|
end
|
49
49
|
|
50
50
|
#
|
@@ -55,11 +55,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
55
55
|
#
|
56
56
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
57
|
#
|
58
|
-
def list_async(custom_headers
|
58
|
+
def list_async(custom_headers:nil)
|
59
59
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
60
60
|
|
61
61
|
|
62
62
|
request_headers = {}
|
63
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
63
64
|
|
64
65
|
# Set Headers
|
65
66
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -113,8 +114,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
113
114
|
#
|
114
115
|
# @return [OperationListResult] operation results.
|
115
116
|
#
|
116
|
-
def list_next(next_page_link, custom_headers
|
117
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
117
|
+
def list_next(next_page_link, custom_headers:nil)
|
118
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
118
119
|
response.body unless response.nil?
|
119
120
|
end
|
120
121
|
|
@@ -128,8 +129,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
128
129
|
#
|
129
130
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
130
131
|
#
|
131
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
132
|
-
list_next_async(next_page_link, custom_headers).value!
|
132
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
133
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
133
134
|
end
|
134
135
|
|
135
136
|
#
|
@@ -142,11 +143,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
142
143
|
#
|
143
144
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
144
145
|
#
|
145
|
-
def list_next_async(next_page_link, custom_headers
|
146
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
146
147
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
147
148
|
|
148
149
|
|
149
150
|
request_headers = {}
|
151
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
150
152
|
|
151
153
|
# Set Headers
|
152
154
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -199,12 +201,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
199
201
|
# @return [OperationListResult] which provide lazy access to pages of the
|
200
202
|
# response.
|
201
203
|
#
|
202
|
-
def list_as_lazy(custom_headers
|
203
|
-
response = list_async(custom_headers).value!
|
204
|
+
def list_as_lazy(custom_headers:nil)
|
205
|
+
response = list_async(custom_headers:custom_headers).value!
|
204
206
|
unless response.nil?
|
205
207
|
page = response.body
|
206
208
|
page.next_method = Proc.new do |next_page_link|
|
207
|
-
list_next_async(next_page_link, custom_headers)
|
209
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
208
210
|
end
|
209
211
|
page
|
210
212
|
end
|
@@ -25,15 +25,16 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
25
25
|
# @return [String] Client Api Version.
|
26
26
|
attr_reader :api_version
|
27
27
|
|
28
|
-
# @return [String]
|
28
|
+
# @return [String] The preferred language for the response.
|
29
29
|
attr_accessor :accept_language
|
30
30
|
|
31
|
-
# @return [Integer]
|
32
|
-
#
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
34
34
|
|
35
|
-
# @return [Boolean]
|
36
|
-
#
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
37
38
|
attr_accessor :generate_client_request_id
|
38
39
|
|
39
40
|
# @return [Operations] operations
|
@@ -118,6 +119,9 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
118
119
|
fail ArgumentError, 'path is nil' if path.nil?
|
119
120
|
|
120
121
|
request_url = options[:base_url] || @base_url
|
122
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
123
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
124
|
+
end
|
121
125
|
|
122
126
|
request_headers = @request_headers
|
123
127
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -134,7 +138,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
134
138
|
#
|
135
139
|
def add_telemetry
|
136
140
|
sdk_information = 'azure_mgmt_relay'
|
137
|
-
sdk_information = "#{sdk_information}/0.
|
141
|
+
sdk_information = "#{sdk_information}/0.17.3"
|
138
142
|
add_user_agent_information(sdk_information)
|
139
143
|
end
|
140
144
|
end
|
@@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
33
33
|
#
|
34
34
|
# @return [Array<WcfRelay>] 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::V2016_07_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::V2016_07_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::V2016_07_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
|
@@ -133,8 +134,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
133
134
|
#
|
134
135
|
# @return [WcfRelay] operation results.
|
135
136
|
#
|
136
|
-
def create_or_update(resource_group_name, namespace_name, relay_name, parameters, custom_headers
|
137
|
-
response = create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers).value!
|
137
|
+
def create_or_update(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil)
|
138
|
+
response = create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:custom_headers).value!
|
138
139
|
response.body unless response.nil?
|
139
140
|
end
|
140
141
|
|
@@ -151,8 +152,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
151
152
|
#
|
152
153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
153
154
|
#
|
154
|
-
def create_or_update_with_http_info(resource_group_name, namespace_name, relay_name, parameters, custom_headers
|
155
|
-
create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers).value!
|
155
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil)
|
156
|
+
create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:custom_headers).value!
|
156
157
|
end
|
157
158
|
|
158
159
|
#
|
@@ -168,7 +169,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
168
169
|
#
|
169
170
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
170
171
|
#
|
171
|
-
def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers
|
172
|
+
def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil)
|
172
173
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
173
174
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
174
175
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -184,13 +185,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
184
185
|
|
185
186
|
|
186
187
|
request_headers = {}
|
188
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
187
189
|
|
188
190
|
# Set Headers
|
189
191
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
190
192
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
191
193
|
|
192
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
193
|
-
|
194
194
|
# Serialize Request
|
195
195
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::WcfRelay.mapper()
|
196
196
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -248,8 +248,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
248
248
|
# will be added to the HTTP request.
|
249
249
|
#
|
250
250
|
#
|
251
|
-
def delete(resource_group_name, namespace_name, relay_name, custom_headers
|
252
|
-
response = delete_async(resource_group_name, namespace_name, relay_name, custom_headers).value!
|
251
|
+
def delete(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
252
|
+
response = delete_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
253
253
|
nil
|
254
254
|
end
|
255
255
|
|
@@ -265,8 +265,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
265
265
|
#
|
266
266
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
267
267
|
#
|
268
|
-
def delete_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers
|
269
|
-
delete_async(resource_group_name, namespace_name, relay_name, custom_headers).value!
|
268
|
+
def delete_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
269
|
+
delete_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
270
270
|
end
|
271
271
|
|
272
272
|
#
|
@@ -281,7 +281,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
281
281
|
#
|
282
282
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
283
283
|
#
|
284
|
-
def delete_async(resource_group_name, namespace_name, relay_name, custom_headers
|
284
|
+
def delete_async(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
285
285
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
286
286
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
287
287
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -296,6 +296,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
296
296
|
|
297
297
|
|
298
298
|
request_headers = {}
|
299
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
299
300
|
|
300
301
|
# Set Headers
|
301
302
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -342,8 +343,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
342
343
|
#
|
343
344
|
# @return [WcfRelay] operation results.
|
344
345
|
#
|
345
|
-
def get(resource_group_name, namespace_name, relay_name, custom_headers
|
346
|
-
response = get_async(resource_group_name, namespace_name, relay_name, custom_headers).value!
|
346
|
+
def get(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
347
|
+
response = get_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
347
348
|
response.body unless response.nil?
|
348
349
|
end
|
349
350
|
|
@@ -359,8 +360,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
359
360
|
#
|
360
361
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
361
362
|
#
|
362
|
-
def get_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers
|
363
|
-
get_async(resource_group_name, namespace_name, relay_name, custom_headers).value!
|
363
|
+
def get_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
364
|
+
get_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
364
365
|
end
|
365
366
|
|
366
367
|
#
|
@@ -375,7 +376,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
375
376
|
#
|
376
377
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
377
378
|
#
|
378
|
-
def get_async(resource_group_name, namespace_name, relay_name, custom_headers
|
379
|
+
def get_async(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
379
380
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
380
381
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
381
382
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -390,6 +391,7 @@ module Azure::Relay::Mgmt::V2016_07_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::V2016_07_01
|
|
446
448
|
#
|
447
449
|
# @return [Array<AuthorizationRule>] operation results.
|
448
450
|
#
|
449
|
-
def list_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers
|
450
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers)
|
451
|
+
def list_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
452
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_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::V2016_07_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, relay_name, custom_headers
|
467
|
-
list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers).value!
|
468
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
469
|
+
list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
468
470
|
end
|
469
471
|
|
470
472
|
#
|
@@ -479,7 +481,7 @@ module Azure::Relay::Mgmt::V2016_07_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, relay_name, custom_headers
|
484
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, relay_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
|
@@ -494,6 +496,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
494
496
|
|
495
497
|
|
496
498
|
request_headers = {}
|
499
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
497
500
|
|
498
501
|
# Set Headers
|
499
502
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -538,6 +541,111 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
538
541
|
promise.execute
|
539
542
|
end
|
540
543
|
|
544
|
+
#
|
545
|
+
# Authorization rules for a WCFRelays.
|
546
|
+
#
|
547
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
548
|
+
# Azure subscription.
|
549
|
+
# @param namespace_name [String] The Namespace Name
|
550
|
+
# @param relay_name [String] The relay name
|
551
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
552
|
+
# will be added to the HTTP request.
|
553
|
+
#
|
554
|
+
# @return [Array<AuthorizationRule>] operation results.
|
555
|
+
#
|
556
|
+
def list_post_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
557
|
+
first_page = list_post_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers)
|
558
|
+
first_page.get_all_items
|
559
|
+
end
|
560
|
+
|
561
|
+
#
|
562
|
+
# Authorization rules for a WCFRelays.
|
563
|
+
#
|
564
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
565
|
+
# Azure subscription.
|
566
|
+
# @param namespace_name [String] The Namespace Name
|
567
|
+
# @param relay_name [String] The relay name
|
568
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
569
|
+
# will be added to the HTTP request.
|
570
|
+
#
|
571
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
572
|
+
#
|
573
|
+
def list_post_authorization_rules_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
574
|
+
list_post_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
575
|
+
end
|
576
|
+
|
577
|
+
#
|
578
|
+
# Authorization rules for a WCFRelays.
|
579
|
+
#
|
580
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
581
|
+
# Azure subscription.
|
582
|
+
# @param namespace_name [String] The Namespace Name
|
583
|
+
# @param relay_name [String] The relay name
|
584
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
585
|
+
# to the HTTP request.
|
586
|
+
#
|
587
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
588
|
+
#
|
589
|
+
def list_post_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
590
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
591
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
592
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
593
|
+
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
594
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
|
595
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
|
596
|
+
fail ArgumentError, 'relay_name is nil' if relay_name.nil?
|
597
|
+
fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
|
598
|
+
fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
|
599
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
600
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
601
|
+
|
602
|
+
|
603
|
+
request_headers = {}
|
604
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
605
|
+
|
606
|
+
# Set Headers
|
607
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
608
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
609
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/WcfRelays/{relayName}/authorizationRules'
|
610
|
+
|
611
|
+
request_url = @base_url || @client.base_url
|
612
|
+
|
613
|
+
options = {
|
614
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
615
|
+
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id},
|
616
|
+
query_params: {'api-version' => @client.api_version},
|
617
|
+
headers: request_headers.merge(custom_headers || {}),
|
618
|
+
base_url: request_url
|
619
|
+
}
|
620
|
+
promise = @client.make_request_async(:post, path_template, options)
|
621
|
+
|
622
|
+
promise = promise.then do |result|
|
623
|
+
http_response = result.response
|
624
|
+
status_code = http_response.status
|
625
|
+
response_content = http_response.body
|
626
|
+
unless status_code == 200
|
627
|
+
error_model = JSON.load(response_content)
|
628
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
629
|
+
end
|
630
|
+
|
631
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
632
|
+
# Deserialize Response
|
633
|
+
if status_code == 200
|
634
|
+
begin
|
635
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
636
|
+
result_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRuleListResult.mapper()
|
637
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
638
|
+
rescue Exception => e
|
639
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
result
|
644
|
+
end
|
645
|
+
|
646
|
+
promise.execute
|
647
|
+
end
|
648
|
+
|
541
649
|
#
|
542
650
|
# Creates or Updates an authorization rule for a WCFRelays
|
543
651
|
#
|
@@ -552,8 +660,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
552
660
|
#
|
553
661
|
# @return [AuthorizationRule] operation results.
|
554
662
|
#
|
555
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers
|
556
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value!
|
663
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil)
|
664
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
557
665
|
response.body unless response.nil?
|
558
666
|
end
|
559
667
|
|
@@ -571,8 +679,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
571
679
|
#
|
572
680
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
573
681
|
#
|
574
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers
|
575
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value!
|
682
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil)
|
683
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
576
684
|
end
|
577
685
|
|
578
686
|
#
|
@@ -589,7 +697,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
589
697
|
#
|
590
698
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
591
699
|
#
|
592
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers
|
700
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil)
|
593
701
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
594
702
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
595
703
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -608,13 +716,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
608
716
|
|
609
717
|
|
610
718
|
request_headers = {}
|
719
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
611
720
|
|
612
721
|
# Set Headers
|
613
722
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
614
723
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
615
724
|
|
616
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
617
|
-
|
618
725
|
# Serialize Request
|
619
726
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRule.mapper()
|
620
727
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -673,8 +780,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
673
780
|
# will be added to the HTTP request.
|
674
781
|
#
|
675
782
|
#
|
676
|
-
def delete_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
677
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value!
|
783
|
+
def delete_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
784
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
678
785
|
nil
|
679
786
|
end
|
680
787
|
|
@@ -691,8 +798,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
691
798
|
#
|
692
799
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
693
800
|
#
|
694
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
695
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value!
|
801
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
802
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
696
803
|
end
|
697
804
|
|
698
805
|
#
|
@@ -708,7 +815,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
708
815
|
#
|
709
816
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
710
817
|
#
|
711
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
818
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
712
819
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
713
820
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
714
821
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -726,6 +833,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
726
833
|
|
727
834
|
|
728
835
|
request_headers = {}
|
836
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
729
837
|
|
730
838
|
# Set Headers
|
731
839
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -773,8 +881,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
773
881
|
#
|
774
882
|
# @return [AuthorizationRule] operation results.
|
775
883
|
#
|
776
|
-
def get_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
777
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value!
|
884
|
+
def get_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
885
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
778
886
|
response.body unless response.nil?
|
779
887
|
end
|
780
888
|
|
@@ -791,8 +899,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
791
899
|
#
|
792
900
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
793
901
|
#
|
794
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
795
|
-
get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value!
|
902
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
903
|
+
get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
796
904
|
end
|
797
905
|
|
798
906
|
#
|
@@ -808,7 +916,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
808
916
|
#
|
809
917
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
810
918
|
#
|
811
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
919
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
812
920
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
813
921
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
814
922
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -826,6 +934,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
826
934
|
|
827
935
|
|
828
936
|
request_headers = {}
|
937
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
829
938
|
|
830
939
|
# Set Headers
|
831
940
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -870,6 +979,117 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
870
979
|
promise.execute
|
871
980
|
end
|
872
981
|
|
982
|
+
#
|
983
|
+
# Get authorizationRule for a WCFRelays by name.
|
984
|
+
#
|
985
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
986
|
+
# Azure subscription.
|
987
|
+
# @param namespace_name [String] The Namespace Name
|
988
|
+
# @param relay_name [String] The relay name
|
989
|
+
# @param authorization_rule_name [String] The authorizationRule name.
|
990
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
991
|
+
# will be added to the HTTP request.
|
992
|
+
#
|
993
|
+
# @return [AuthorizationRule] operation results.
|
994
|
+
#
|
995
|
+
def post_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
996
|
+
response = post_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
997
|
+
response.body unless response.nil?
|
998
|
+
end
|
999
|
+
|
1000
|
+
#
|
1001
|
+
# Get authorizationRule for a WCFRelays by name.
|
1002
|
+
#
|
1003
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1004
|
+
# Azure subscription.
|
1005
|
+
# @param namespace_name [String] The Namespace Name
|
1006
|
+
# @param relay_name [String] The relay name
|
1007
|
+
# @param authorization_rule_name [String] The authorizationRule name.
|
1008
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1009
|
+
# will be added to the HTTP request.
|
1010
|
+
#
|
1011
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1012
|
+
#
|
1013
|
+
def post_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
1014
|
+
post_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
#
|
1018
|
+
# Get authorizationRule for a WCFRelays by name.
|
1019
|
+
#
|
1020
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1021
|
+
# Azure subscription.
|
1022
|
+
# @param namespace_name [String] The Namespace Name
|
1023
|
+
# @param relay_name [String] The relay name
|
1024
|
+
# @param authorization_rule_name [String] The authorizationRule name.
|
1025
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1026
|
+
# to the HTTP request.
|
1027
|
+
#
|
1028
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1029
|
+
#
|
1030
|
+
def post_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
1031
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1032
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1033
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1034
|
+
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
1035
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
|
1036
|
+
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
|
1037
|
+
fail ArgumentError, 'relay_name is nil' if relay_name.nil?
|
1038
|
+
fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
|
1039
|
+
fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
|
1040
|
+
fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
|
1041
|
+
fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
|
1042
|
+
fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
|
1043
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1044
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1045
|
+
|
1046
|
+
|
1047
|
+
request_headers = {}
|
1048
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1049
|
+
|
1050
|
+
# Set Headers
|
1051
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1052
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1053
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/WcfRelays/{relayName}/authorizationRules/{authorizationRuleName}'
|
1054
|
+
|
1055
|
+
request_url = @base_url || @client.base_url
|
1056
|
+
|
1057
|
+
options = {
|
1058
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1059
|
+
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'relayName' => relay_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
|
1060
|
+
query_params: {'api-version' => @client.api_version},
|
1061
|
+
headers: request_headers.merge(custom_headers || {}),
|
1062
|
+
base_url: request_url
|
1063
|
+
}
|
1064
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1065
|
+
|
1066
|
+
promise = promise.then do |result|
|
1067
|
+
http_response = result.response
|
1068
|
+
status_code = http_response.status
|
1069
|
+
response_content = http_response.body
|
1070
|
+
unless status_code == 200
|
1071
|
+
error_model = JSON.load(response_content)
|
1072
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1076
|
+
# Deserialize Response
|
1077
|
+
if status_code == 200
|
1078
|
+
begin
|
1079
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1080
|
+
result_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRule.mapper()
|
1081
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1082
|
+
rescue Exception => e
|
1083
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1084
|
+
end
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
result
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
promise.execute
|
1091
|
+
end
|
1092
|
+
|
873
1093
|
#
|
874
1094
|
# Primary and Secondary ConnectionStrings to the WCFRelays.
|
875
1095
|
#
|
@@ -883,8 +1103,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
883
1103
|
#
|
884
1104
|
# @return [AuthorizationRuleKeys] operation results.
|
885
1105
|
#
|
886
|
-
def list_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
887
|
-
response = list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value!
|
1106
|
+
def list_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
1107
|
+
response = list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
888
1108
|
response.body unless response.nil?
|
889
1109
|
end
|
890
1110
|
|
@@ -901,8 +1121,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
901
1121
|
#
|
902
1122
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
903
1123
|
#
|
904
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
905
|
-
list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value!
|
1124
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
1125
|
+
list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value!
|
906
1126
|
end
|
907
1127
|
|
908
1128
|
#
|
@@ -918,7 +1138,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
918
1138
|
#
|
919
1139
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
920
1140
|
#
|
921
|
-
def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers
|
1141
|
+
def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil)
|
922
1142
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
923
1143
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
924
1144
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -936,6 +1156,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
936
1156
|
|
937
1157
|
|
938
1158
|
request_headers = {}
|
1159
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
939
1160
|
|
940
1161
|
# Set Headers
|
941
1162
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -995,8 +1216,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
995
1216
|
#
|
996
1217
|
# @return [AuthorizationRuleKeys] operation results.
|
997
1218
|
#
|
998
|
-
def regenerate_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers
|
999
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value!
|
1219
|
+
def regenerate_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil)
|
1220
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1000
1221
|
response.body unless response.nil?
|
1001
1222
|
end
|
1002
1223
|
|
@@ -1015,8 +1236,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1015
1236
|
#
|
1016
1237
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1017
1238
|
#
|
1018
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers
|
1019
|
-
regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value!
|
1239
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil)
|
1240
|
+
regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1020
1241
|
end
|
1021
1242
|
|
1022
1243
|
#
|
@@ -1034,7 +1255,7 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1034
1255
|
#
|
1035
1256
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1036
1257
|
#
|
1037
|
-
def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers
|
1258
|
+
def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil)
|
1038
1259
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1039
1260
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1040
1261
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -1053,13 +1274,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1053
1274
|
|
1054
1275
|
|
1055
1276
|
request_headers = {}
|
1277
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1056
1278
|
|
1057
1279
|
# Set Headers
|
1058
1280
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1059
1281
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1060
1282
|
|
1061
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1062
|
-
|
1063
1283
|
# Serialize Request
|
1064
1284
|
request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::RegenerateKeysParameters.mapper()
|
1065
1285
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1116,8 +1336,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1116
1336
|
#
|
1117
1337
|
# @return [WcfRelaysListResult] operation results.
|
1118
1338
|
#
|
1119
|
-
def list_by_namespace_next(next_page_link, custom_headers
|
1120
|
-
response = list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1339
|
+
def list_by_namespace_next(next_page_link, custom_headers:nil)
|
1340
|
+
response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
|
1121
1341
|
response.body unless response.nil?
|
1122
1342
|
end
|
1123
1343
|
|
@@ -1131,8 +1351,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1131
1351
|
#
|
1132
1352
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1133
1353
|
#
|
1134
|
-
def list_by_namespace_next_with_http_info(next_page_link, custom_headers
|
1135
|
-
list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1354
|
+
def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil)
|
1355
|
+
list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
|
1136
1356
|
end
|
1137
1357
|
|
1138
1358
|
#
|
@@ -1145,11 +1365,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1145
1365
|
#
|
1146
1366
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1147
1367
|
#
|
1148
|
-
def list_by_namespace_next_async(next_page_link, custom_headers
|
1368
|
+
def list_by_namespace_next_async(next_page_link, custom_headers:nil)
|
1149
1369
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1150
1370
|
|
1151
1371
|
|
1152
1372
|
request_headers = {}
|
1373
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1153
1374
|
|
1154
1375
|
# Set Headers
|
1155
1376
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1203,8 +1424,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1203
1424
|
#
|
1204
1425
|
# @return [AuthorizationRuleListResult] operation results.
|
1205
1426
|
#
|
1206
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1207
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1427
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1428
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1208
1429
|
response.body unless response.nil?
|
1209
1430
|
end
|
1210
1431
|
|
@@ -1218,8 +1439,8 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1218
1439
|
#
|
1219
1440
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1220
1441
|
#
|
1221
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1222
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1442
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1443
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1223
1444
|
end
|
1224
1445
|
|
1225
1446
|
#
|
@@ -1232,11 +1453,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1232
1453
|
#
|
1233
1454
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1234
1455
|
#
|
1235
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1456
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1236
1457
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1237
1458
|
|
1238
1459
|
|
1239
1460
|
request_headers = {}
|
1461
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1240
1462
|
|
1241
1463
|
# Set Headers
|
1242
1464
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1280,6 +1502,94 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1280
1502
|
promise.execute
|
1281
1503
|
end
|
1282
1504
|
|
1505
|
+
#
|
1506
|
+
# Authorization rules for a WCFRelays.
|
1507
|
+
#
|
1508
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1509
|
+
# to List operation.
|
1510
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1511
|
+
# will be added to the HTTP request.
|
1512
|
+
#
|
1513
|
+
# @return [AuthorizationRuleListResult] operation results.
|
1514
|
+
#
|
1515
|
+
def list_post_authorization_rules_next(next_page_link, custom_headers:nil)
|
1516
|
+
response = list_post_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1517
|
+
response.body unless response.nil?
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
#
|
1521
|
+
# Authorization rules for a WCFRelays.
|
1522
|
+
#
|
1523
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1524
|
+
# to List operation.
|
1525
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1526
|
+
# will be added to the HTTP request.
|
1527
|
+
#
|
1528
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1529
|
+
#
|
1530
|
+
def list_post_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1531
|
+
list_post_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
#
|
1535
|
+
# Authorization rules for a WCFRelays.
|
1536
|
+
#
|
1537
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1538
|
+
# to List operation.
|
1539
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1540
|
+
# to the HTTP request.
|
1541
|
+
#
|
1542
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1543
|
+
#
|
1544
|
+
def list_post_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1545
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1546
|
+
|
1547
|
+
|
1548
|
+
request_headers = {}
|
1549
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1550
|
+
|
1551
|
+
# Set Headers
|
1552
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1553
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1554
|
+
path_template = '{nextLink}'
|
1555
|
+
|
1556
|
+
request_url = @base_url || @client.base_url
|
1557
|
+
|
1558
|
+
options = {
|
1559
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1560
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1561
|
+
headers: request_headers.merge(custom_headers || {}),
|
1562
|
+
base_url: request_url
|
1563
|
+
}
|
1564
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1565
|
+
|
1566
|
+
promise = promise.then do |result|
|
1567
|
+
http_response = result.response
|
1568
|
+
status_code = http_response.status
|
1569
|
+
response_content = http_response.body
|
1570
|
+
unless status_code == 200
|
1571
|
+
error_model = JSON.load(response_content)
|
1572
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1576
|
+
# Deserialize Response
|
1577
|
+
if status_code == 200
|
1578
|
+
begin
|
1579
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1580
|
+
result_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRuleListResult.mapper()
|
1581
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1582
|
+
rescue Exception => e
|
1583
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1584
|
+
end
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
result
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
promise.execute
|
1591
|
+
end
|
1592
|
+
|
1283
1593
|
#
|
1284
1594
|
# Lists the WCFRelays within the namespace.
|
1285
1595
|
#
|
@@ -1292,12 +1602,36 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1292
1602
|
# @return [WcfRelaysListResult] which provide lazy access to pages of the
|
1293
1603
|
# response.
|
1294
1604
|
#
|
1295
|
-
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers
|
1296
|
-
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
1605
|
+
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1606
|
+
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1607
|
+
unless response.nil?
|
1608
|
+
page = response.body
|
1609
|
+
page.next_method = Proc.new do |next_page_link|
|
1610
|
+
list_by_namespace_next_async(next_page_link, custom_headers:custom_headers)
|
1611
|
+
end
|
1612
|
+
page
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
#
|
1617
|
+
# Authorization rules for a WCFRelays.
|
1618
|
+
#
|
1619
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1620
|
+
# Azure subscription.
|
1621
|
+
# @param namespace_name [String] The Namespace Name
|
1622
|
+
# @param relay_name [String] The relay name
|
1623
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1624
|
+
# will be added to the HTTP request.
|
1625
|
+
#
|
1626
|
+
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1627
|
+
# the response.
|
1628
|
+
#
|
1629
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
1630
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
1297
1631
|
unless response.nil?
|
1298
1632
|
page = response.body
|
1299
1633
|
page.next_method = Proc.new do |next_page_link|
|
1300
|
-
|
1634
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1301
1635
|
end
|
1302
1636
|
page
|
1303
1637
|
end
|
@@ -1316,12 +1650,12 @@ module Azure::Relay::Mgmt::V2016_07_01
|
|
1316
1650
|
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1317
1651
|
# the response.
|
1318
1652
|
#
|
1319
|
-
def
|
1320
|
-
response =
|
1653
|
+
def list_post_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:nil)
|
1654
|
+
response = list_post_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value!
|
1321
1655
|
unless response.nil?
|
1322
1656
|
page = response.body
|
1323
1657
|
page.next_method = Proc.new do |next_page_link|
|
1324
|
-
|
1658
|
+
list_post_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1325
1659
|
end
|
1326
1660
|
page
|
1327
1661
|
end
|