azure_mgmt_network 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +15 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +131 -0
  8. data/Rakefile +5 -0
  9. data/azure_mgmt_network.gemspec +39 -0
  10. data/lib/azure_mgmt_network.rb +139 -0
  11. data/lib/azure_mgmt_network/Models/address_space.rb +60 -0
  12. data/lib/azure_mgmt_network/Models/application_gateway.rb +104 -0
  13. data/lib/azure_mgmt_network/Models/application_gateway_backend_address.rb +67 -0
  14. data/lib/azure_mgmt_network/Models/application_gateway_backend_address_pool.rb +90 -0
  15. data/lib/azure_mgmt_network/Models/application_gateway_backend_address_pool_properties_format.rb +121 -0
  16. data/lib/azure_mgmt_network/Models/application_gateway_backend_http_settings.rb +90 -0
  17. data/lib/azure_mgmt_network/Models/application_gateway_backend_http_settings_properties_format.rb +98 -0
  18. data/lib/azure_mgmt_network/Models/application_gateway_cookie_based_affinity.rb +16 -0
  19. data/lib/azure_mgmt_network/Models/application_gateway_frontend_ip_configuration.rb +91 -0
  20. data/lib/azure_mgmt_network/Models/application_gateway_frontend_ip_configuration_properties_format.rb +117 -0
  21. data/lib/azure_mgmt_network/Models/application_gateway_frontend_port.rb +90 -0
  22. data/lib/azure_mgmt_network/Models/application_gateway_frontend_port_properties_format.rb +70 -0
  23. data/lib/azure_mgmt_network/Models/application_gateway_http_listener.rb +90 -0
  24. data/lib/azure_mgmt_network/Models/application_gateway_http_listener_properties_format.rb +124 -0
  25. data/lib/azure_mgmt_network/Models/application_gateway_ip_configuration.rb +90 -0
  26. data/lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb +77 -0
  27. data/lib/azure_mgmt_network/Models/application_gateway_list_result.rb +88 -0
  28. data/lib/azure_mgmt_network/Models/application_gateway_operational_state.rb +18 -0
  29. data/lib/azure_mgmt_network/Models/application_gateway_properties_format.rb +338 -0
  30. data/lib/azure_mgmt_network/Models/application_gateway_protocol.rb +16 -0
  31. data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule.rb +90 -0
  32. data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule_properties_format.rb +124 -0
  33. data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule_type.rb +15 -0
  34. data/lib/azure_mgmt_network/Models/application_gateway_sku.rb +88 -0
  35. data/lib/azure_mgmt_network/Models/application_gateway_sku_name.rb +17 -0
  36. data/lib/azure_mgmt_network/Models/application_gateway_ssl_certificate.rb +90 -0
  37. data/lib/azure_mgmt_network/Models/application_gateway_ssl_certificate_properties_format.rb +87 -0
  38. data/lib/azure_mgmt_network/Models/application_gateway_tier.rb +15 -0
  39. data/lib/azure_mgmt_network/Models/azure_async_operation_result.rb +85 -0
  40. data/lib/azure_mgmt_network/Models/backend_address_pool.rb +90 -0
  41. data/lib/azure_mgmt_network/Models/backend_address_pool_properties_format.rb +120 -0
  42. data/lib/azure_mgmt_network/Models/connection_reset_shared_key.rb +64 -0
  43. data/lib/azure_mgmt_network/Models/connection_reset_shared_key_properties_format.rb +60 -0
  44. data/lib/azure_mgmt_network/Models/connection_shared_key.rb +58 -0
  45. data/lib/azure_mgmt_network/Models/dhcp_options.rb +60 -0
  46. data/lib/azure_mgmt_network/Models/dns_name_availability_result.rb +58 -0
  47. data/lib/azure_mgmt_network/Models/error.rb +114 -0
  48. data/lib/azure_mgmt_network/Models/error_details.rb +76 -0
  49. data/lib/azure_mgmt_network/Models/frontend_ip_configuration.rb +90 -0
  50. data/lib/azure_mgmt_network/Models/frontend_ip_configuration_properties_format.rb +181 -0
  51. data/lib/azure_mgmt_network/Models/inbound_nat_rule.rb +90 -0
  52. data/lib/azure_mgmt_network/Models/inbound_nat_rule_properties_format.rb +163 -0
  53. data/lib/azure_mgmt_network/Models/ip_allocation_method.rb +16 -0
  54. data/lib/azure_mgmt_network/Models/load_balancer.rb +104 -0
  55. data/lib/azure_mgmt_network/Models/load_balancer_list_result.rb +88 -0
  56. data/lib/azure_mgmt_network/Models/load_balancer_properties_format.rb +210 -0
  57. data/lib/azure_mgmt_network/Models/load_balancing_rule.rb +90 -0
  58. data/lib/azure_mgmt_network/Models/load_balancing_rule_properties_format.rb +195 -0
  59. data/lib/azure_mgmt_network/Models/load_distribution.rb +17 -0
  60. data/lib/azure_mgmt_network/Models/local_network_gateway.rb +104 -0
  61. data/lib/azure_mgmt_network/Models/local_network_gateway_list_result.rb +88 -0
  62. data/lib/azure_mgmt_network/Models/local_network_gateway_properties_format.rb +83 -0
  63. data/lib/azure_mgmt_network/Models/network_interface.rb +104 -0
  64. data/lib/azure_mgmt_network/Models/network_interface_dns_settings.rb +89 -0
  65. data/lib/azure_mgmt_network/Models/network_interface_ip_configuration.rb +90 -0
  66. data/lib/azure_mgmt_network/Models/network_interface_ip_configuration_properties_format.rb +179 -0
  67. data/lib/azure_mgmt_network/Models/network_interface_list_result.rb +88 -0
  68. data/lib/azure_mgmt_network/Models/network_interface_properties_format.rb +158 -0
  69. data/lib/azure_mgmt_network/Models/network_security_group.rb +104 -0
  70. data/lib/azure_mgmt_network/Models/network_security_group_list_result.rb +88 -0
  71. data/lib/azure_mgmt_network/Models/network_security_group_properties_format.rb +181 -0
  72. data/lib/azure_mgmt_network/Models/operation_status.rb +17 -0
  73. data/lib/azure_mgmt_network/Models/probe.rb +90 -0
  74. data/lib/azure_mgmt_network/Models/probe_properties_format.rb +157 -0
  75. data/lib/azure_mgmt_network/Models/probe_protocol.rb +16 -0
  76. data/lib/azure_mgmt_network/Models/public_ip_address.rb +104 -0
  77. data/lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb +85 -0
  78. data/lib/azure_mgmt_network/Models/public_ip_address_list_result.rb +88 -0
  79. data/lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb +126 -0
  80. data/lib/azure_mgmt_network/Models/security_rule.rb +90 -0
  81. data/lib/azure_mgmt_network/Models/security_rule_access.rb +16 -0
  82. data/lib/azure_mgmt_network/Models/security_rule_direction.rb +16 -0
  83. data/lib/azure_mgmt_network/Models/security_rule_list_result.rb +89 -0
  84. data/lib/azure_mgmt_network/Models/security_rule_properties_format.rb +174 -0
  85. data/lib/azure_mgmt_network/Models/security_rule_protocol.rb +17 -0
  86. data/lib/azure_mgmt_network/Models/subnet.rb +90 -0
  87. data/lib/azure_mgmt_network/Models/subnet_list_result.rb +88 -0
  88. data/lib/azure_mgmt_network/Models/subnet_properties_format.rb +115 -0
  89. data/lib/azure_mgmt_network/Models/transport_protocol.rb +16 -0
  90. data/lib/azure_mgmt_network/Models/usage.rb +98 -0
  91. data/lib/azure_mgmt_network/Models/usage_name.rb +68 -0
  92. data/lib/azure_mgmt_network/Models/usage_unit.rb +15 -0
  93. data/lib/azure_mgmt_network/Models/usages_list_result.rb +78 -0
  94. data/lib/azure_mgmt_network/Models/virtual_network.rb +104 -0
  95. data/lib/azure_mgmt_network/Models/virtual_network_gateway.rb +104 -0
  96. data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection.rb +104 -0
  97. data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection_list_result.rb +89 -0
  98. data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection_properties_format.rb +141 -0
  99. data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection_type.rb +18 -0
  100. data/lib/azure_mgmt_network/Models/virtual_network_gateway_ip_configuration.rb +90 -0
  101. data/lib/azure_mgmt_network/Models/virtual_network_gateway_ip_configuration_properties_format.rb +117 -0
  102. data/lib/azure_mgmt_network/Models/virtual_network_gateway_list_result.rb +88 -0
  103. data/lib/azure_mgmt_network/Models/virtual_network_gateway_properties_format.rb +126 -0
  104. data/lib/azure_mgmt_network/Models/virtual_network_gateway_type.rb +15 -0
  105. data/lib/azure_mgmt_network/Models/virtual_network_list_result.rb +88 -0
  106. data/lib/azure_mgmt_network/Models/virtual_network_properties_format.rb +123 -0
  107. data/lib/azure_mgmt_network/Models/vpn_type.rb +16 -0
  108. data/lib/azure_mgmt_network/application_gateways.rb +915 -0
  109. data/lib/azure_mgmt_network/load_balancers.rb +709 -0
  110. data/lib/azure_mgmt_network/local_network_gateways.rb +550 -0
  111. data/lib/azure_mgmt_network/module_definition.rb +6 -0
  112. data/lib/azure_mgmt_network/network_interfaces.rb +709 -0
  113. data/lib/azure_mgmt_network/network_resource_provider_client.rb +195 -0
  114. data/lib/azure_mgmt_network/network_security_groups.rb +718 -0
  115. data/lib/azure_mgmt_network/public_ip_addresses.rb +711 -0
  116. data/lib/azure_mgmt_network/security_rules.rb +563 -0
  117. data/lib/azure_mgmt_network/subnets.rb +552 -0
  118. data/lib/azure_mgmt_network/usages.rb +113 -0
  119. data/lib/azure_mgmt_network/version.rb +6 -0
  120. data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +945 -0
  121. data/lib/azure_mgmt_network/virtual_network_gateways.rb +686 -0
  122. data/lib/azure_mgmt_network/virtual_networks.rb +707 -0
  123. metadata +311 -0
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Defines values for ApplicationGatewayOperationalState
10
+ #
11
+ module ApplicationGatewayOperationalState
12
+ Stopped = "Stopped"
13
+ Starting = "Starting"
14
+ Running = "Running"
15
+ Stopping = "Stopping"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,338 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Properties of Application Gateway
10
+ #
11
+ class ApplicationGatewayPropertiesFormat
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ApplicationGatewaySku] Gets or sets sku of application
16
+ # gateway resource
17
+ attr_accessor :sku
18
+
19
+ # @return [ApplicationGatewayOperationalState] Gets operational state of
20
+ # application gateway resource. Possible values for this property
21
+ # include: 'Stopped', 'Starting', 'Running', 'Stopping'.
22
+ attr_accessor :operational_state
23
+
24
+ # @return [Array<ApplicationGatewayIpConfiguration>] Gets or sets
25
+ # subnets of application gateway resource
26
+ attr_accessor :gateway_ip_configurations
27
+
28
+ # @return [Array<ApplicationGatewaySslCertificate>] Gets or sets ssl
29
+ # certificates of application gateway resource
30
+ attr_accessor :ssl_certificates
31
+
32
+ # @return [Array<ApplicationGatewayFrontendIpConfiguration>] Gets or
33
+ # sets frontend IP addresses of application gateway resource
34
+ attr_accessor :frontend_ip_configurations
35
+
36
+ # @return [Array<ApplicationGatewayFrontendPort>] Gets or sets frontend
37
+ # ports of application gateway resource
38
+ attr_accessor :frontend_ports
39
+
40
+ # @return [Array<ApplicationGatewayBackendAddressPool>] Gets or sets
41
+ # backend address pool of application gateway resource
42
+ attr_accessor :backend_address_pools
43
+
44
+ # @return [Array<ApplicationGatewayBackendHttpSettings>] Gets or sets
45
+ # backend http settings of application gateway resource
46
+ attr_accessor :backend_http_settings_collection
47
+
48
+ # @return [Array<ApplicationGatewayHttpListener>] Gets or sets HTTP
49
+ # listeners of application gateway resource
50
+ attr_accessor :http_listeners
51
+
52
+ # @return [Array<ApplicationGatewayRequestRoutingRule>] Gets or sets
53
+ # request routing rules of application gateway resource
54
+ attr_accessor :request_routing_rules
55
+
56
+ # @return [String] Gets or sets Provisioning state of the
57
+ # ApplicationGateway resource Updating/Deleting/Failed
58
+ attr_accessor :provisioning_state
59
+
60
+ #
61
+ # Validate the object. Throws ValidationError if validation fails.
62
+ #
63
+ def validate
64
+ @sku.validate unless @sku.nil?
65
+ @gateway_ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @gateway_ip_configurations.nil?
66
+ @ssl_certificates.each{ |e| e.validate if e.respond_to?(:validate) } unless @ssl_certificates.nil?
67
+ @frontend_ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @frontend_ip_configurations.nil?
68
+ @frontend_ports.each{ |e| e.validate if e.respond_to?(:validate) } unless @frontend_ports.nil?
69
+ @backend_address_pools.each{ |e| e.validate if e.respond_to?(:validate) } unless @backend_address_pools.nil?
70
+ @backend_http_settings_collection.each{ |e| e.validate if e.respond_to?(:validate) } unless @backend_http_settings_collection.nil?
71
+ @http_listeners.each{ |e| e.validate if e.respond_to?(:validate) } unless @http_listeners.nil?
72
+ @request_routing_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @request_routing_rules.nil?
73
+ end
74
+
75
+ #
76
+ # Serializes given Model object into Ruby Hash.
77
+ # @param object Model object to serialize.
78
+ # @return [Hash] Serialized object in form of Ruby Hash.
79
+ #
80
+ def self.serialize_object(object)
81
+ object.validate
82
+ output_object = {}
83
+
84
+ serialized_property = object.sku
85
+ unless serialized_property.nil?
86
+ serialized_property = ApplicationGatewaySku.serialize_object(serialized_property)
87
+ end
88
+ output_object['sku'] = serialized_property unless serialized_property.nil?
89
+
90
+ serialized_property = object.operational_state
91
+ output_object['operationalState'] = serialized_property unless serialized_property.nil?
92
+
93
+ serialized_property = object.gateway_ip_configurations
94
+ unless serialized_property.nil?
95
+ serializedArray = []
96
+ serialized_property.each do |element|
97
+ unless element.nil?
98
+ element = ApplicationGatewayIpConfiguration.serialize_object(element)
99
+ end
100
+ serializedArray.push(element)
101
+ end
102
+ serialized_property = serializedArray
103
+ end
104
+ output_object['gatewayIpConfigurations'] = serialized_property unless serialized_property.nil?
105
+
106
+ serialized_property = object.ssl_certificates
107
+ unless serialized_property.nil?
108
+ serializedArray = []
109
+ serialized_property.each do |element1|
110
+ unless element1.nil?
111
+ element1 = ApplicationGatewaySslCertificate.serialize_object(element1)
112
+ end
113
+ serializedArray.push(element1)
114
+ end
115
+ serialized_property = serializedArray
116
+ end
117
+ output_object['sslCertificates'] = serialized_property unless serialized_property.nil?
118
+
119
+ serialized_property = object.frontend_ip_configurations
120
+ unless serialized_property.nil?
121
+ serializedArray = []
122
+ serialized_property.each do |element2|
123
+ unless element2.nil?
124
+ element2 = ApplicationGatewayFrontendIpConfiguration.serialize_object(element2)
125
+ end
126
+ serializedArray.push(element2)
127
+ end
128
+ serialized_property = serializedArray
129
+ end
130
+ output_object['frontendIpConfigurations'] = serialized_property unless serialized_property.nil?
131
+
132
+ serialized_property = object.frontend_ports
133
+ unless serialized_property.nil?
134
+ serializedArray = []
135
+ serialized_property.each do |element3|
136
+ unless element3.nil?
137
+ element3 = ApplicationGatewayFrontendPort.serialize_object(element3)
138
+ end
139
+ serializedArray.push(element3)
140
+ end
141
+ serialized_property = serializedArray
142
+ end
143
+ output_object['frontendPorts'] = serialized_property unless serialized_property.nil?
144
+
145
+ serialized_property = object.backend_address_pools
146
+ unless serialized_property.nil?
147
+ serializedArray = []
148
+ serialized_property.each do |element4|
149
+ unless element4.nil?
150
+ element4 = ApplicationGatewayBackendAddressPool.serialize_object(element4)
151
+ end
152
+ serializedArray.push(element4)
153
+ end
154
+ serialized_property = serializedArray
155
+ end
156
+ output_object['backendAddressPools'] = serialized_property unless serialized_property.nil?
157
+
158
+ serialized_property = object.backend_http_settings_collection
159
+ unless serialized_property.nil?
160
+ serializedArray = []
161
+ serialized_property.each do |element5|
162
+ unless element5.nil?
163
+ element5 = ApplicationGatewayBackendHttpSettings.serialize_object(element5)
164
+ end
165
+ serializedArray.push(element5)
166
+ end
167
+ serialized_property = serializedArray
168
+ end
169
+ output_object['backendHttpSettingsCollection'] = serialized_property unless serialized_property.nil?
170
+
171
+ serialized_property = object.http_listeners
172
+ unless serialized_property.nil?
173
+ serializedArray = []
174
+ serialized_property.each do |element6|
175
+ unless element6.nil?
176
+ element6 = ApplicationGatewayHttpListener.serialize_object(element6)
177
+ end
178
+ serializedArray.push(element6)
179
+ end
180
+ serialized_property = serializedArray
181
+ end
182
+ output_object['httpListeners'] = serialized_property unless serialized_property.nil?
183
+
184
+ serialized_property = object.request_routing_rules
185
+ unless serialized_property.nil?
186
+ serializedArray = []
187
+ serialized_property.each do |element7|
188
+ unless element7.nil?
189
+ element7 = ApplicationGatewayRequestRoutingRule.serialize_object(element7)
190
+ end
191
+ serializedArray.push(element7)
192
+ end
193
+ serialized_property = serializedArray
194
+ end
195
+ output_object['requestRoutingRules'] = serialized_property unless serialized_property.nil?
196
+
197
+ serialized_property = object.provisioning_state
198
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
199
+
200
+ output_object
201
+ end
202
+
203
+ #
204
+ # Deserializes given Ruby Hash into Model object.
205
+ # @param object [Hash] Ruby Hash object to deserialize.
206
+ # @return [ApplicationGatewayPropertiesFormat] Deserialized object.
207
+ #
208
+ def self.deserialize_object(object)
209
+ return if object.nil?
210
+ output_object = ApplicationGatewayPropertiesFormat.new
211
+
212
+ deserialized_property = object['sku']
213
+ unless deserialized_property.nil?
214
+ deserialized_property = ApplicationGatewaySku.deserialize_object(deserialized_property)
215
+ end
216
+ output_object.sku = deserialized_property
217
+
218
+ deserialized_property = object['operationalState']
219
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
220
+ enum_is_valid = ApplicationGatewayOperationalState.constants.any? { |e| ApplicationGatewayOperationalState.const_get(e).to_s.downcase == deserialized_property.downcase }
221
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
222
+ end
223
+ output_object.operational_state = deserialized_property
224
+
225
+ deserialized_property = object['gatewayIpConfigurations']
226
+ unless deserialized_property.nil?
227
+ deserializedArray = [];
228
+ deserialized_property.each do |element8|
229
+ unless element8.nil?
230
+ element8 = ApplicationGatewayIpConfiguration.deserialize_object(element8)
231
+ end
232
+ deserializedArray.push(element8);
233
+ end
234
+ deserialized_property = deserializedArray;
235
+ end
236
+ output_object.gateway_ip_configurations = deserialized_property
237
+
238
+ deserialized_property = object['sslCertificates']
239
+ unless deserialized_property.nil?
240
+ deserializedArray = [];
241
+ deserialized_property.each do |element9|
242
+ unless element9.nil?
243
+ element9 = ApplicationGatewaySslCertificate.deserialize_object(element9)
244
+ end
245
+ deserializedArray.push(element9);
246
+ end
247
+ deserialized_property = deserializedArray;
248
+ end
249
+ output_object.ssl_certificates = deserialized_property
250
+
251
+ deserialized_property = object['frontendIpConfigurations']
252
+ unless deserialized_property.nil?
253
+ deserializedArray = [];
254
+ deserialized_property.each do |element10|
255
+ unless element10.nil?
256
+ element10 = ApplicationGatewayFrontendIpConfiguration.deserialize_object(element10)
257
+ end
258
+ deserializedArray.push(element10);
259
+ end
260
+ deserialized_property = deserializedArray;
261
+ end
262
+ output_object.frontend_ip_configurations = deserialized_property
263
+
264
+ deserialized_property = object['frontendPorts']
265
+ unless deserialized_property.nil?
266
+ deserializedArray = [];
267
+ deserialized_property.each do |element11|
268
+ unless element11.nil?
269
+ element11 = ApplicationGatewayFrontendPort.deserialize_object(element11)
270
+ end
271
+ deserializedArray.push(element11);
272
+ end
273
+ deserialized_property = deserializedArray;
274
+ end
275
+ output_object.frontend_ports = deserialized_property
276
+
277
+ deserialized_property = object['backendAddressPools']
278
+ unless deserialized_property.nil?
279
+ deserializedArray = [];
280
+ deserialized_property.each do |element12|
281
+ unless element12.nil?
282
+ element12 = ApplicationGatewayBackendAddressPool.deserialize_object(element12)
283
+ end
284
+ deserializedArray.push(element12);
285
+ end
286
+ deserialized_property = deserializedArray;
287
+ end
288
+ output_object.backend_address_pools = deserialized_property
289
+
290
+ deserialized_property = object['backendHttpSettingsCollection']
291
+ unless deserialized_property.nil?
292
+ deserializedArray = [];
293
+ deserialized_property.each do |element13|
294
+ unless element13.nil?
295
+ element13 = ApplicationGatewayBackendHttpSettings.deserialize_object(element13)
296
+ end
297
+ deserializedArray.push(element13);
298
+ end
299
+ deserialized_property = deserializedArray;
300
+ end
301
+ output_object.backend_http_settings_collection = deserialized_property
302
+
303
+ deserialized_property = object['httpListeners']
304
+ unless deserialized_property.nil?
305
+ deserializedArray = [];
306
+ deserialized_property.each do |element14|
307
+ unless element14.nil?
308
+ element14 = ApplicationGatewayHttpListener.deserialize_object(element14)
309
+ end
310
+ deserializedArray.push(element14);
311
+ end
312
+ deserialized_property = deserializedArray;
313
+ end
314
+ output_object.http_listeners = deserialized_property
315
+
316
+ deserialized_property = object['requestRoutingRules']
317
+ unless deserialized_property.nil?
318
+ deserializedArray = [];
319
+ deserialized_property.each do |element15|
320
+ unless element15.nil?
321
+ element15 = ApplicationGatewayRequestRoutingRule.deserialize_object(element15)
322
+ end
323
+ deserializedArray.push(element15);
324
+ end
325
+ deserialized_property = deserializedArray;
326
+ end
327
+ output_object.request_routing_rules = deserialized_property
328
+
329
+ deserialized_property = object['provisioningState']
330
+ output_object.provisioning_state = deserialized_property
331
+
332
+ output_object.validate
333
+
334
+ output_object
335
+ end
336
+ end
337
+ end
338
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Defines values for ApplicationGatewayProtocol
10
+ #
11
+ module ApplicationGatewayProtocol
12
+ Http = "Http"
13
+ Https = "Https"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,90 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Request routing rule of application gateway
10
+ #
11
+ class ApplicationGatewayRequestRoutingRule < MsRestAzure::SubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ApplicationGatewayRequestRoutingRulePropertiesFormat]
16
+ attr_accessor :properties
17
+
18
+ # @return [String] Gets name of the resource that is unique within a
19
+ # resource group. This name can be used to access the resource
20
+ attr_accessor :name
21
+
22
+ # @return [String] A unique read-only string that changes whenever the
23
+ # resource is updated
24
+ attr_accessor :etag
25
+
26
+ #
27
+ # Validate the object. Throws ValidationError if validation fails.
28
+ #
29
+ def validate
30
+ @properties.validate unless @properties.nil?
31
+ end
32
+
33
+ #
34
+ # Serializes given Model object into Ruby Hash.
35
+ # @param object Model object to serialize.
36
+ # @return [Hash] Serialized object in form of Ruby Hash.
37
+ #
38
+ def self.serialize_object(object)
39
+ object.validate
40
+ output_object = {}
41
+
42
+ serialized_property = object.id
43
+ output_object['id'] = serialized_property unless serialized_property.nil?
44
+
45
+ serialized_property = object.properties
46
+ unless serialized_property.nil?
47
+ serialized_property = ApplicationGatewayRequestRoutingRulePropertiesFormat.serialize_object(serialized_property)
48
+ end
49
+ output_object['properties'] = serialized_property unless serialized_property.nil?
50
+
51
+ serialized_property = object.name
52
+ output_object['name'] = serialized_property unless serialized_property.nil?
53
+
54
+ serialized_property = object.etag
55
+ output_object['etag'] = serialized_property unless serialized_property.nil?
56
+
57
+ output_object
58
+ end
59
+
60
+ #
61
+ # Deserializes given Ruby Hash into Model object.
62
+ # @param object [Hash] Ruby Hash object to deserialize.
63
+ # @return [ApplicationGatewayRequestRoutingRule] Deserialized object.
64
+ #
65
+ def self.deserialize_object(object)
66
+ return if object.nil?
67
+ output_object = ApplicationGatewayRequestRoutingRule.new
68
+
69
+ deserialized_property = object['id']
70
+ output_object.id = deserialized_property
71
+
72
+ deserialized_property = object['properties']
73
+ unless deserialized_property.nil?
74
+ deserialized_property = ApplicationGatewayRequestRoutingRulePropertiesFormat.deserialize_object(deserialized_property)
75
+ end
76
+ output_object.properties = deserialized_property
77
+
78
+ deserialized_property = object['name']
79
+ output_object.name = deserialized_property
80
+
81
+ deserialized_property = object['etag']
82
+ output_object.etag = deserialized_property
83
+
84
+ output_object.validate
85
+
86
+ output_object
87
+ end
88
+ end
89
+ end
90
+ end