azure_mgmt_network 0.17.4 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/2018-08-01/generated/azure_mgmt_network.rb +132 -126
- data/lib/2018-08-01/generated/azure_mgmt_network/express_route_gateways.rb +1 -1
- data/lib/2018-08-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +323 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway.rb +21 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +21 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +51 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +1 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +12 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/express_route_circuit.rb +38 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +2 -2
- data/lib/2018-08-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +19 -6
- data/lib/2018-08-01/generated/azure_mgmt_network/models/{traffic_query.rb → network_configuration_diagnostic_profile.rb} +4 -4
- data/lib/2018-08-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +5 -5
- data/lib/2018-08-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
- data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +5 -1
- data/lib/2018-08-01/generated/azure_mgmt_network/virtual_networks.rb +6 -5
- data/lib/profiles/latest/modules/network_profile_module.rb +405 -383
- data/lib/version.rb +1 -1
- metadata +9 -3
@@ -313,7 +313,7 @@ module Azure::Network::Mgmt::V2018_08_01
|
|
313
313
|
http_response = result.response
|
314
314
|
status_code = http_response.status
|
315
315
|
response_content = http_response.body
|
316
|
-
unless status_code == 200
|
316
|
+
unless status_code == 200
|
317
317
|
error_model = JSON.load(response_content)
|
318
318
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
319
319
|
end
|
@@ -0,0 +1,323 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Network::Mgmt::V2018_08_01
|
7
|
+
#
|
8
|
+
# LoadBalancerOutboundRules
|
9
|
+
#
|
10
|
+
class LoadBalancerOutboundRules
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the LoadBalancerOutboundRules class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [NetworkManagementClient] reference to the NetworkManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets all the outbound rules in a load balancer.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Array<OutboundRule>] operation results.
|
33
|
+
#
|
34
|
+
def list(resource_group_name, load_balancer_name, custom_headers:nil)
|
35
|
+
first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers)
|
36
|
+
first_page.get_all_items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets all the outbound rules in a load balancer.
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The name of the resource group.
|
43
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil)
|
50
|
+
list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Gets all the outbound rules in a load balancer.
|
55
|
+
#
|
56
|
+
# @param resource_group_name [String] The name of the resource group.
|
57
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_async(resource_group_name, load_balancer_name, custom_headers:nil)
|
64
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
65
|
+
fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
|
66
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
67
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
+
|
69
|
+
|
70
|
+
request_headers = {}
|
71
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
72
|
+
|
73
|
+
# Set Headers
|
74
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
75
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
76
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules'
|
77
|
+
|
78
|
+
request_url = @base_url || @client.base_url
|
79
|
+
|
80
|
+
options = {
|
81
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
82
|
+
path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
|
83
|
+
query_params: {'api-version' => @client.api_version},
|
84
|
+
headers: request_headers.merge(custom_headers || {}),
|
85
|
+
base_url: request_url
|
86
|
+
}
|
87
|
+
promise = @client.make_request_async(:get, path_template, options)
|
88
|
+
|
89
|
+
promise = promise.then do |result|
|
90
|
+
http_response = result.response
|
91
|
+
status_code = http_response.status
|
92
|
+
response_content = http_response.body
|
93
|
+
unless status_code == 200
|
94
|
+
error_model = JSON.load(response_content)
|
95
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
96
|
+
end
|
97
|
+
|
98
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
# Deserialize Response
|
100
|
+
if status_code == 200
|
101
|
+
begin
|
102
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
103
|
+
result_mapper = Azure::Network::Mgmt::V2018_08_01::Models::LoadBalancerOutboundRuleListResult.mapper()
|
104
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
105
|
+
rescue Exception => e
|
106
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
result
|
111
|
+
end
|
112
|
+
|
113
|
+
promise.execute
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# Gets the specified load balancer outbound rule.
|
118
|
+
#
|
119
|
+
# @param resource_group_name [String] The name of the resource group.
|
120
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
121
|
+
# @param outbound_rule_name [String] The name of the outbound rule.
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
124
|
+
#
|
125
|
+
# @return [OutboundRule] operation results.
|
126
|
+
#
|
127
|
+
def get(resource_group_name, load_balancer_name, outbound_rule_name, custom_headers:nil)
|
128
|
+
response = get_async(resource_group_name, load_balancer_name, outbound_rule_name, custom_headers:custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Gets the specified load balancer outbound rule.
|
134
|
+
#
|
135
|
+
# @param resource_group_name [String] The name of the resource group.
|
136
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
137
|
+
# @param outbound_rule_name [String] The name of the outbound rule.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
|
+
#
|
143
|
+
def get_with_http_info(resource_group_name, load_balancer_name, outbound_rule_name, custom_headers:nil)
|
144
|
+
get_async(resource_group_name, load_balancer_name, outbound_rule_name, custom_headers:custom_headers).value!
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Gets the specified load balancer outbound rule.
|
149
|
+
#
|
150
|
+
# @param resource_group_name [String] The name of the resource group.
|
151
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
152
|
+
# @param outbound_rule_name [String] The name of the outbound rule.
|
153
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
154
|
+
# to the HTTP request.
|
155
|
+
#
|
156
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
157
|
+
#
|
158
|
+
def get_async(resource_group_name, load_balancer_name, outbound_rule_name, custom_headers:nil)
|
159
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
160
|
+
fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
|
161
|
+
fail ArgumentError, 'outbound_rule_name is nil' if outbound_rule_name.nil?
|
162
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
163
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
164
|
+
|
165
|
+
|
166
|
+
request_headers = {}
|
167
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
168
|
+
|
169
|
+
# Set Headers
|
170
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
171
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
172
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}'
|
173
|
+
|
174
|
+
request_url = @base_url || @client.base_url
|
175
|
+
|
176
|
+
options = {
|
177
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
178
|
+
path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'outboundRuleName' => outbound_rule_name,'subscriptionId' => @client.subscription_id},
|
179
|
+
query_params: {'api-version' => @client.api_version},
|
180
|
+
headers: request_headers.merge(custom_headers || {}),
|
181
|
+
base_url: request_url
|
182
|
+
}
|
183
|
+
promise = @client.make_request_async(:get, path_template, options)
|
184
|
+
|
185
|
+
promise = promise.then do |result|
|
186
|
+
http_response = result.response
|
187
|
+
status_code = http_response.status
|
188
|
+
response_content = http_response.body
|
189
|
+
unless status_code == 200
|
190
|
+
error_model = JSON.load(response_content)
|
191
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
192
|
+
end
|
193
|
+
|
194
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
195
|
+
# Deserialize Response
|
196
|
+
if status_code == 200
|
197
|
+
begin
|
198
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
199
|
+
result_mapper = Azure::Network::Mgmt::V2018_08_01::Models::OutboundRule.mapper()
|
200
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
201
|
+
rescue Exception => e
|
202
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
result
|
207
|
+
end
|
208
|
+
|
209
|
+
promise.execute
|
210
|
+
end
|
211
|
+
|
212
|
+
#
|
213
|
+
# Gets all the outbound rules in a load balancer.
|
214
|
+
#
|
215
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
216
|
+
# to List operation.
|
217
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
218
|
+
# will be added to the HTTP request.
|
219
|
+
#
|
220
|
+
# @return [LoadBalancerOutboundRuleListResult] operation results.
|
221
|
+
#
|
222
|
+
def list_next(next_page_link, custom_headers:nil)
|
223
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
224
|
+
response.body unless response.nil?
|
225
|
+
end
|
226
|
+
|
227
|
+
#
|
228
|
+
# Gets all the outbound rules in a load balancer.
|
229
|
+
#
|
230
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
231
|
+
# to List operation.
|
232
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
|
+
# will be added to the HTTP request.
|
234
|
+
#
|
235
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
236
|
+
#
|
237
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
238
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
239
|
+
end
|
240
|
+
|
241
|
+
#
|
242
|
+
# Gets all the outbound rules in a load balancer.
|
243
|
+
#
|
244
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
245
|
+
# to List operation.
|
246
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
247
|
+
# to the HTTP request.
|
248
|
+
#
|
249
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
250
|
+
#
|
251
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
252
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
253
|
+
|
254
|
+
|
255
|
+
request_headers = {}
|
256
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
257
|
+
|
258
|
+
# Set Headers
|
259
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
260
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
261
|
+
path_template = '{nextLink}'
|
262
|
+
|
263
|
+
request_url = @base_url || @client.base_url
|
264
|
+
|
265
|
+
options = {
|
266
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
267
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
268
|
+
headers: request_headers.merge(custom_headers || {}),
|
269
|
+
base_url: request_url
|
270
|
+
}
|
271
|
+
promise = @client.make_request_async(:get, path_template, options)
|
272
|
+
|
273
|
+
promise = promise.then do |result|
|
274
|
+
http_response = result.response
|
275
|
+
status_code = http_response.status
|
276
|
+
response_content = http_response.body
|
277
|
+
unless status_code == 200
|
278
|
+
error_model = JSON.load(response_content)
|
279
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
280
|
+
end
|
281
|
+
|
282
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
283
|
+
# Deserialize Response
|
284
|
+
if status_code == 200
|
285
|
+
begin
|
286
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
287
|
+
result_mapper = Azure::Network::Mgmt::V2018_08_01::Models::LoadBalancerOutboundRuleListResult.mapper()
|
288
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
289
|
+
rescue Exception => e
|
290
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
result
|
295
|
+
end
|
296
|
+
|
297
|
+
promise.execute
|
298
|
+
end
|
299
|
+
|
300
|
+
#
|
301
|
+
# Gets all the outbound rules in a load balancer.
|
302
|
+
#
|
303
|
+
# @param resource_group_name [String] The name of the resource group.
|
304
|
+
# @param load_balancer_name [String] The name of the load balancer.
|
305
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
306
|
+
# will be added to the HTTP request.
|
307
|
+
#
|
308
|
+
# @return [LoadBalancerOutboundRuleListResult] which provide lazy access to
|
309
|
+
# pages of the response.
|
310
|
+
#
|
311
|
+
def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil)
|
312
|
+
response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value!
|
313
|
+
unless response.nil?
|
314
|
+
page = response.body
|
315
|
+
page.next_method = Proc.new do |next_page_link|
|
316
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
317
|
+
end
|
318
|
+
page
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
end
|
323
|
+
end
|
@@ -101,6 +101,10 @@ module Azure::Network::Mgmt::V2018_08_01
|
|
101
101
|
# resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
|
102
102
|
attr_accessor :provisioning_state
|
103
103
|
|
104
|
+
# @return [Array<ApplicationGatewayCustomError>] Custom error
|
105
|
+
# configurations of the application gateway resource.
|
106
|
+
attr_accessor :custom_error_configurations
|
107
|
+
|
104
108
|
# @return [String] A unique read-only string that changes whenever the
|
105
109
|
# resource is updated.
|
106
110
|
attr_accessor :etag
|
@@ -471,6 +475,23 @@ module Azure::Network::Mgmt::V2018_08_01
|
|
471
475
|
name: 'String'
|
472
476
|
}
|
473
477
|
},
|
478
|
+
custom_error_configurations: {
|
479
|
+
client_side_validation: true,
|
480
|
+
required: false,
|
481
|
+
serialized_name: 'properties.customErrorConfigurations',
|
482
|
+
type: {
|
483
|
+
name: 'Sequence',
|
484
|
+
element: {
|
485
|
+
client_side_validation: true,
|
486
|
+
required: false,
|
487
|
+
serialized_name: 'ApplicationGatewayCustomErrorElementType',
|
488
|
+
type: {
|
489
|
+
name: 'Composite',
|
490
|
+
class_name: 'ApplicationGatewayCustomError'
|
491
|
+
}
|
492
|
+
}
|
493
|
+
}
|
494
|
+
},
|
474
495
|
etag: {
|
475
496
|
client_side_validation: true,
|
476
497
|
required: false,
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Network::Mgmt::V2018_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Customer error of an application gateway.
|
10
|
+
#
|
11
|
+
class ApplicationGatewayCustomError
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ApplicationGatewayCustomErrorStatusCode] Status code of the
|
16
|
+
# application gateway customer error. Possible values include:
|
17
|
+
# 'HttpStatus403', 'HttpStatus502'
|
18
|
+
attr_accessor :status_code
|
19
|
+
|
20
|
+
# @return [String] Error page URL of the application gateway customer
|
21
|
+
# error.
|
22
|
+
attr_accessor :custom_error_page_url
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for ApplicationGatewayCustomError class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'ApplicationGatewayCustomError',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'ApplicationGatewayCustomError',
|
37
|
+
model_properties: {
|
38
|
+
status_code: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'statusCode',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
custom_error_page_url: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'customErrorPageUrl',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Network::Mgmt::V2018_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ApplicationGatewayCustomErrorStatusCode
|
10
|
+
#
|
11
|
+
module ApplicationGatewayCustomErrorStatusCode
|
12
|
+
HttpStatus403 = "HttpStatus403"
|
13
|
+
HttpStatus502 = "HttpStatus502"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Network::Mgmt::V2018_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Allow to exclude some variable satisfy the condition for the WAF check
|
10
|
+
#
|
11
|
+
class ApplicationGatewayFirewallExclusion
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The variable to be excluded.
|
16
|
+
attr_accessor :match_variable
|
17
|
+
|
18
|
+
# @return [String] When matchVariable is a collection, operate on the
|
19
|
+
# selector to specify which elements in the collection this exclusion
|
20
|
+
# applies to.
|
21
|
+
attr_accessor :selector_match_operator
|
22
|
+
|
23
|
+
# @return [String] When matchVariable is a collection, operator used to
|
24
|
+
# specify which elements in the collection this exclusion applies to.
|
25
|
+
attr_accessor :selector
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for ApplicationGatewayFirewallExclusion class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'ApplicationGatewayFirewallExclusion',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'ApplicationGatewayFirewallExclusion',
|
40
|
+
model_properties: {
|
41
|
+
match_variable: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: true,
|
44
|
+
serialized_name: 'matchVariable',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
selector_match_operator: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: true,
|
52
|
+
serialized_name: 'selectorMatchOperator',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
selector: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: true,
|
60
|
+
serialized_name: 'selector',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|