azure_mgmt_network 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_network.gemspec +4 -5
  3. data/lib/azure_mgmt_network.rb +3 -201
  4. data/lib/generated/azure_mgmt_network.rb +175 -0
  5. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/application_gateways.rb +158 -59
  6. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_authorizations.rb +92 -42
  7. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_peerings.rb +91 -42
  8. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuits.rb +210 -92
  9. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_service_providers.rb +32 -11
  10. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/load_balancers.rb +120 -53
  11. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/local_network_gateways.rb +91 -42
  12. data/lib/generated/azure_mgmt_network/models/address_space.rb +53 -0
  13. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +326 -0
  14. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +54 -0
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +112 -0
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +128 -0
  17. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_cookie_based_affinity.rb +0 -0
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +120 -0
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +84 -0
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +142 -0
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +87 -0
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +94 -0
  23. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_operational_state.rb +0 -0
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +115 -0
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +135 -0
  26. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_protocol.rb +0 -0
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +133 -0
  28. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_request_routing_rule_type.rb +0 -0
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +68 -0
  30. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_sku_name.rb +0 -0
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +104 -0
  32. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_tier.rb +0 -0
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +117 -0
  34. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +95 -0
  35. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/authorization_use_status.rb +0 -0
  36. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +63 -0
  37. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +127 -0
  38. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +66 -0
  39. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +45 -0
  40. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +44 -0
  41. data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +44 -0
  42. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +53 -0
  43. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +44 -0
  44. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +76 -0
  45. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +56 -0
  46. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +95 -0
  47. data/lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb +162 -0
  48. data/lib/generated/azure_mgmt_network/models/effective_route.rb +124 -0
  49. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +93 -0
  50. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  51. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  52. data/lib/generated/azure_mgmt_network/models/error.rb +92 -0
  53. data/lib/generated/azure_mgmt_network/models/error_details.rb +64 -0
  54. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +215 -0
  55. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +74 -0
  56. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +95 -0
  57. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +94 -0
  58. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +200 -0
  59. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_advertised_public_prefix_state.rb +0 -0
  60. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +85 -0
  61. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +95 -0
  62. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_state.rb +0 -0
  63. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_type.rb +0 -0
  64. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +84 -0
  65. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +87 -0
  66. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +65 -0
  67. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +66 -0
  68. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_family.rb +0 -0
  69. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_tier.rb +0 -0
  70. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +74 -0
  71. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +62 -0
  72. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +65 -0
  73. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +65 -0
  74. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +124 -0
  75. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +55 -0
  76. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +94 -0
  77. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +199 -0
  78. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +140 -0
  79. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +169 -0
  80. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipallocation_method.rb +0 -0
  81. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +119 -0
  82. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipversion.rb +0 -0
  83. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +239 -0
  84. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +94 -0
  85. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +191 -0
  86. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/load_distribution.rb +0 -0
  87. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +143 -0
  88. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +94 -0
  89. data/lib/generated/azure_mgmt_network/models/network_interface.rb +197 -0
  90. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +99 -0
  91. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +195 -0
  92. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +94 -0
  93. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/network_operation_status.rb +0 -0
  94. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +188 -0
  95. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +94 -0
  96. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +117 -0
  97. data/lib/generated/azure_mgmt_network/models/probe.rb +159 -0
  98. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/probe_protocol.rb +0 -0
  99. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/processor_architecture.rb +0 -0
  100. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +177 -0
  101. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +73 -0
  102. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +94 -0
  103. data/lib/generated/azure_mgmt_network/models/route.rb +110 -0
  104. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +93 -0
  105. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/route_next_hop_type.rb +0 -0
  106. data/lib/generated/azure_mgmt_network/models/route_table.rb +137 -0
  107. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +94 -0
  108. data/lib/generated/azure_mgmt_network/models/security_rule.rb +185 -0
  109. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_access.rb +0 -0
  110. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_direction.rb +0 -0
  111. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +95 -0
  112. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_protocol.rb +0 -0
  113. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/service_provider_provisioning_state.rb +0 -0
  114. data/lib/generated/azure_mgmt_network/models/subnet.rb +127 -0
  115. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +94 -0
  116. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/transport_protocol.rb +0 -0
  117. data/lib/generated/azure_mgmt_network/models/usage.rb +78 -0
  118. data/lib/generated/azure_mgmt_network/models/usage_name.rb +55 -0
  119. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +52 -0
  120. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +173 -0
  121. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +213 -0
  122. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +239 -0
  123. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +96 -0
  124. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_status.rb +0 -0
  125. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_type.rb +0 -0
  126. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +108 -0
  127. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +94 -0
  128. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +68 -0
  129. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_name.rb +0 -0
  130. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_tier.rb +0 -0
  131. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_type.rb +0 -0
  132. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +94 -0
  133. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +146 -0
  134. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +95 -0
  135. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  136. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +84 -0
  137. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +45 -0
  138. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +85 -0
  139. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +84 -0
  140. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/vpn_type.rb +0 -0
  141. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/module_definition.rb +0 -0
  142. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_interfaces.rb +913 -113
  143. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_management_client.rb +31 -25
  144. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_security_groups.rb +122 -53
  145. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/public_ipaddresses.rb +120 -53
  146. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/route_tables.rb +118 -53
  147. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/routes.rb +90 -42
  148. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/security_rules.rb +94 -42
  149. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/subnets.rb +94 -46
  150. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/usages.rb +4 -94
  151. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/version.rb +1 -1
  152. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateway_connections.rb +164 -86
  153. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateways.rb +146 -70
  154. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +654 -0
  155. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_networks.rb +123 -58
  156. metadata +173 -221
  157. data/lib/azure_mgmt_network/models/address_space.rb +0 -58
  158. data/lib/azure_mgmt_network/models/application_gateway.rb +0 -102
  159. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +0 -65
  160. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +0 -88
  161. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +0 -119
  162. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +0 -88
  163. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +0 -122
  164. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +0 -89
  165. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +0 -114
  166. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +0 -88
  167. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +0 -68
  168. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +0 -88
  169. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +0 -141
  170. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +0 -88
  171. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +0 -75
  172. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +0 -86
  173. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +0 -88
  174. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +0 -101
  175. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +0 -88
  176. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +0 -118
  177. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +0 -408
  178. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +0 -88
  179. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +0 -139
  180. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +0 -86
  181. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +0 -88
  182. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +0 -85
  183. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +0 -88
  184. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +0 -122
  185. data/lib/azure_mgmt_network/models/authorization_list_result.rb +0 -87
  186. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +0 -79
  187. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +0 -83
  188. data/lib/azure_mgmt_network/models/backend_address_pool.rb +0 -88
  189. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +0 -135
  190. data/lib/azure_mgmt_network/models/bgp_settings.rb +0 -78
  191. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +0 -58
  192. data/lib/azure_mgmt_network/models/connection_shared_key.rb +0 -56
  193. data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +0 -56
  194. data/lib/azure_mgmt_network/models/dhcp_options.rb +0 -58
  195. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +0 -56
  196. data/lib/azure_mgmt_network/models/error.rb +0 -112
  197. data/lib/azure_mgmt_network/models/error_details.rb +0 -74
  198. data/lib/azure_mgmt_network/models/express_route_circuit.rb +0 -118
  199. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +0 -84
  200. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +0 -88
  201. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +0 -86
  202. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +0 -88
  203. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +0 -92
  204. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +0 -87
  205. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +0 -194
  206. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +0 -188
  207. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +0 -93
  208. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +0 -97
  209. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +0 -76
  210. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +0 -83
  211. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +0 -87
  212. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +0 -85
  213. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +0 -88
  214. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +0 -88
  215. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +0 -92
  216. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +0 -67
  217. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +0 -86
  218. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +0 -97
  219. data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +0 -88
  220. data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +0 -237
  221. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +0 -88
  222. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +0 -134
  223. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +0 -88
  224. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +0 -162
  225. data/lib/azure_mgmt_network/models/ipconfiguration.rb +0 -88
  226. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +0 -113
  227. data/lib/azure_mgmt_network/models/load_balancer.rb +0 -102
  228. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +0 -86
  229. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +0 -278
  230. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +0 -88
  231. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +0 -195
  232. data/lib/azure_mgmt_network/models/local_network_gateway.rb +0 -102
  233. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +0 -86
  234. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +0 -107
  235. data/lib/azure_mgmt_network/models/network_interface.rb +0 -102
  236. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +0 -94
  237. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +0 -88
  238. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +0 -218
  239. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +0 -86
  240. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +0 -176
  241. data/lib/azure_mgmt_network/models/network_security_group.rb +0 -102
  242. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +0 -86
  243. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +0 -189
  244. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +0 -88
  245. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +0 -117
  246. data/lib/azure_mgmt_network/models/probe.rb +0 -88
  247. data/lib/azure_mgmt_network/models/probe_properties_format.rb +0 -156
  248. data/lib/azure_mgmt_network/models/public_ipaddress.rb +0 -102
  249. data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +0 -83
  250. data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +0 -86
  251. data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +0 -146
  252. data/lib/azure_mgmt_network/models/route.rb +0 -88
  253. data/lib/azure_mgmt_network/models/route_list_result.rb +0 -85
  254. data/lib/azure_mgmt_network/models/route_properties_format.rb +0 -94
  255. data/lib/azure_mgmt_network/models/route_table.rb +0 -102
  256. data/lib/azure_mgmt_network/models/route_table_list_result.rb +0 -86
  257. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +0 -116
  258. data/lib/azure_mgmt_network/models/security_rule.rb +0 -88
  259. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +0 -87
  260. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +0 -176
  261. data/lib/azure_mgmt_network/models/subnet.rb +0 -88
  262. data/lib/azure_mgmt_network/models/subnet_list_result.rb +0 -86
  263. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +0 -130
  264. data/lib/azure_mgmt_network/models/usage.rb +0 -96
  265. data/lib/azure_mgmt_network/models/usage_name.rb +0 -66
  266. data/lib/azure_mgmt_network/models/usages_list_result.rb +0 -76
  267. data/lib/azure_mgmt_network/models/virtual_network.rb +0 -102
  268. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +0 -102
  269. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +0 -102
  270. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +0 -87
  271. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +0 -218
  272. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +0 -88
  273. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +0 -114
  274. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +0 -86
  275. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +0 -205
  276. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +0 -86
  277. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +0 -86
  278. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +0 -131
  279. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +0 -125
  280. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +0 -60
  281. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +0 -88
  282. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +0 -69
  283. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +0 -88
  284. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +0 -66
@@ -8,13 +8,13 @@ module Azure::ARM::Network
8
8
  # A service client - single point of access to the REST API.
9
9
  #
10
10
  class NetworkManagementClient < MsRestAzure::AzureServiceClient
11
- include Azure::ARM::Network::Models
11
+ include MsRest::Serialization
12
12
  include MsRestAzure
13
13
 
14
14
  # @return [String] the base URI of the service.
15
15
  attr_accessor :base_url
16
16
 
17
- # @return Gets Azure subscription credentials.
17
+ # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials
19
19
 
20
20
  # @return [String] Gets subscription credentials which uniquely identify
@@ -40,58 +40,63 @@ module Azure::ARM::Network
40
40
  # subscription.
41
41
  attr_accessor :credentials
42
42
 
43
- # @return application_gateways
43
+ # @return [ApplicationGateways] application_gateways
44
44
  attr_reader :application_gateways
45
45
 
46
- # @return express_route_circuit_authorizations
46
+ # @return [ExpressRouteCircuitAuthorizations]
47
+ # express_route_circuit_authorizations
47
48
  attr_reader :express_route_circuit_authorizations
48
49
 
49
- # @return express_route_circuit_peerings
50
+ # @return [ExpressRouteCircuitPeerings] express_route_circuit_peerings
50
51
  attr_reader :express_route_circuit_peerings
51
52
 
52
- # @return express_route_circuits
53
+ # @return [ExpressRouteCircuits] express_route_circuits
53
54
  attr_reader :express_route_circuits
54
55
 
55
- # @return express_route_service_providers
56
+ # @return [ExpressRouteServiceProviders] express_route_service_providers
56
57
  attr_reader :express_route_service_providers
57
58
 
58
- # @return load_balancers
59
+ # @return [LoadBalancers] load_balancers
59
60
  attr_reader :load_balancers
60
61
 
61
- # @return local_network_gateways
62
+ # @return [LocalNetworkGateways] local_network_gateways
62
63
  attr_reader :local_network_gateways
63
64
 
64
- # @return network_interfaces
65
+ # @return [NetworkInterfaces] network_interfaces
65
66
  attr_reader :network_interfaces
66
67
 
67
- # @return network_security_groups
68
+ # @return [NetworkSecurityGroups] network_security_groups
68
69
  attr_reader :network_security_groups
69
70
 
70
- # @return public_ipaddresses
71
+ # @return [PublicIPAddresses] public_ipaddresses
71
72
  attr_reader :public_ipaddresses
72
73
 
73
- # @return route_tables
74
+ # @return [RouteTables] route_tables
74
75
  attr_reader :route_tables
75
76
 
76
- # @return routes
77
+ # @return [Routes] routes
77
78
  attr_reader :routes
78
79
 
79
- # @return security_rules
80
+ # @return [SecurityRules] security_rules
80
81
  attr_reader :security_rules
81
82
 
82
- # @return subnets
83
+ # @return [Subnets] subnets
83
84
  attr_reader :subnets
84
85
 
85
- # @return usages
86
+ # @return [VirtualNetworkPeerings] virtual_network_peerings
87
+ attr_reader :virtual_network_peerings
88
+
89
+ # @return [Usages] usages
86
90
  attr_reader :usages
87
91
 
88
- # @return virtual_network_gateway_connections
92
+ # @return [VirtualNetworkGatewayConnections]
93
+ # virtual_network_gateway_connections
89
94
  attr_reader :virtual_network_gateway_connections
90
95
 
91
- # @return virtual_network_gateways
96
+ # @return [VirtualNetworkGateways] virtual_network_gateways
92
97
  attr_reader :virtual_network_gateways
93
98
 
94
- # @return virtual_networks
99
+ # @return [VirtualNetworks] virtual_networks
95
100
  attr_reader :virtual_networks
96
101
 
97
102
  #
@@ -122,11 +127,12 @@ module Azure::ARM::Network
122
127
  @routes = Routes.new(self)
123
128
  @security_rules = SecurityRules.new(self)
124
129
  @subnets = Subnets.new(self)
130
+ @virtual_network_peerings = VirtualNetworkPeerings.new(self)
125
131
  @usages = Usages.new(self)
126
132
  @virtual_network_gateway_connections = VirtualNetworkGatewayConnections.new(self)
127
133
  @virtual_network_gateways = VirtualNetworkGateways.new(self)
128
134
  @virtual_networks = VirtualNetworks.new(self)
129
- @api_version = '2016-03-30'
135
+ @api_version = '2016-06-01'
130
136
  @accept_language = 'en-US'
131
137
  @long_running_operation_retry_timeout = 30
132
138
  @generate_client_request_id = true
@@ -178,6 +184,8 @@ module Azure::ARM::Network
178
184
  fail ArgumentError, 'location is nil' if location.nil?
179
185
  fail ArgumentError, 'api_version is nil' if api_version.nil?
180
186
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
187
+
188
+
181
189
  request_headers = {}
182
190
 
183
191
  # Set Headers
@@ -213,10 +221,8 @@ module Azure::ARM::Network
213
221
  if status_code == 200
214
222
  begin
215
223
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
216
- unless parsed_response.nil?
217
- parsed_response = DnsNameAvailabilityResult.deserialize_object(parsed_response)
218
- end
219
- result.body = parsed_response
224
+ result_mapper = DnsNameAvailabilityResult.mapper()
225
+ result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
220
226
  rescue Exception => e
221
227
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
222
228
  end
@@ -32,10 +32,25 @@ module Azure::ARM::Network
32
32
  # @param resource_group_name [String] The name of the resource group.
33
33
  # @param network_security_group_name [String] The name of the network security
34
34
  # group.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ def delete(resource_group_name, network_security_group_name, custom_headers = nil)
39
+ response = delete_async(resource_group_name, network_security_group_name, custom_headers).value!
40
+ nil
41
+ end
42
+
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group.
45
+ # @param network_security_group_name [String] The name of the network security
46
+ # group.
47
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
48
+ # will be added to the HTTP request.
49
+ #
35
50
  # @return [Concurrent::Promise] promise which provides async access to http
36
51
  # response.
37
52
  #
38
- def delete(resource_group_name, network_security_group_name, custom_headers = nil)
53
+ def delete_async(resource_group_name, network_security_group_name, custom_headers = nil)
39
54
  # Send request
40
55
  promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers)
41
56
 
@@ -44,8 +59,8 @@ module Azure::ARM::Network
44
59
  deserialize_method = lambda do |parsed_response|
45
60
  end
46
61
 
47
- # Waiting for response.
48
- @client.get_long_running_operation_result(response, deserialize_method)
62
+ # Waiting for response.
63
+ @client.get_long_running_operation_result(response, deserialize_method)
49
64
  end
50
65
 
51
66
  promise
@@ -100,6 +115,8 @@ module Azure::ARM::Network
100
115
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
101
116
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
102
117
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
118
+
119
+
103
120
  request_headers = {}
104
121
 
105
122
  # Set Headers
@@ -191,6 +208,8 @@ module Azure::ARM::Network
191
208
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
192
209
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
193
210
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
211
+
212
+
194
213
  request_headers = {}
195
214
 
196
215
  # Set Headers
@@ -226,10 +245,8 @@ module Azure::ARM::Network
226
245
  if status_code == 200
227
246
  begin
228
247
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
229
- unless parsed_response.nil?
230
- parsed_response = NetworkSecurityGroup.deserialize_object(parsed_response)
231
- end
232
- result.body = parsed_response
248
+ result_mapper = NetworkSecurityGroup.mapper()
249
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
233
250
  rescue Exception => e
234
251
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
235
252
  end
@@ -250,26 +267,37 @@ module Azure::ARM::Network
250
267
  # group.
251
268
  # @param parameters [NetworkSecurityGroup] Parameters supplied to the
252
269
  # create/update Network Security Group operation
253
- # @param @client.api_version [String] Client Api Version.
254
- # @param @client.subscription_id [String] Gets subscription credentials which
255
- # uniquely identify Microsoft Azure subscription. The subscription ID forms
256
- # part of the URI for every service call.
257
- # @param @client.accept_language [String] Gets or sets the preferred language
258
- # for the response.
270
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
+ # will be added to the HTTP request.
272
+ #
273
+ # @return [NetworkSecurityGroup] operation results.
274
+ #
275
+ def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil)
276
+ response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value!
277
+ response.body unless response.nil?
278
+ end
279
+
280
+ #
281
+ # @param resource_group_name [String] The name of the resource group.
282
+ # @param network_security_group_name [String] The name of the network security
283
+ # group.
284
+ # @param parameters [NetworkSecurityGroup] Parameters supplied to the
285
+ # create/update Network Security Group operation
286
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
287
+ # will be added to the HTTP request.
259
288
  #
260
289
  # @return [Concurrent::Promise] promise which provides async access to http
261
290
  # response.
262
291
  #
263
- def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil)
292
+ def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil)
264
293
  # Send request
265
294
  promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers)
266
295
 
267
296
  promise = promise.then do |response|
268
297
  # Defining deserialization method.
269
298
  deserialize_method = lambda do |parsed_response|
270
- unless parsed_response.nil?
271
- parsed_response = NetworkSecurityGroup.deserialize_object(parsed_response)
272
- end
299
+ result_mapper = NetworkSecurityGroup.mapper()
300
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
273
301
  end
274
302
 
275
303
  # Waiting for response.
@@ -334,21 +362,23 @@ module Azure::ARM::Network
334
362
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
335
363
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
336
364
  fail ArgumentError, 'parameters is nil' if parameters.nil?
337
- parameters.validate unless parameters.nil?
338
365
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
339
366
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
367
+
368
+
340
369
  request_headers = {}
341
370
 
342
371
  # Set Headers
343
372
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
344
373
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
345
374
 
346
- # Serialize Request
347
375
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
348
- unless parameters.nil?
349
- parameters = NetworkSecurityGroup.serialize_object(parameters)
350
- end
351
- request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
376
+
377
+ # Serialize Request
378
+ request_mapper = NetworkSecurityGroup.mapper()
379
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
380
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
381
+
352
382
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
353
383
  options = {
354
384
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -380,10 +410,8 @@ module Azure::ARM::Network
380
410
  if status_code == 201
381
411
  begin
382
412
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
383
- unless parsed_response.nil?
384
- parsed_response = NetworkSecurityGroup.deserialize_object(parsed_response)
385
- end
386
- result.body = parsed_response
413
+ result_mapper = NetworkSecurityGroup.mapper()
414
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
387
415
  rescue Exception => e
388
416
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
389
417
  end
@@ -392,10 +420,8 @@ module Azure::ARM::Network
392
420
  if status_code == 200
393
421
  begin
394
422
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
395
- unless parsed_response.nil?
396
- parsed_response = NetworkSecurityGroup.deserialize_object(parsed_response)
397
- end
398
- result.body = parsed_response
423
+ result_mapper = NetworkSecurityGroup.mapper()
424
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
399
425
  rescue Exception => e
400
426
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
401
427
  end
@@ -414,11 +440,32 @@ module Azure::ARM::Network
414
440
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
441
  # will be added to the HTTP request.
416
442
  #
417
- # @return [NetworkSecurityGroupListResult] operation results.
443
+ # @return [NetworkSecurityGroupListResult] which provide lazy access to pages
444
+ # of the response.
418
445
  #
419
- def list_all(custom_headers = nil)
446
+ def list_all_as_lazy(custom_headers = nil)
420
447
  response = list_all_async(custom_headers).value!
421
- response.body unless response.nil?
448
+ unless response.nil?
449
+ page = response.body
450
+ page.next_method = Proc.new do |next_link|
451
+ list_all_next_async(next_link, custom_headers)
452
+ end
453
+ page
454
+ end
455
+ end
456
+
457
+ #
458
+ # The list NetworkSecurityGroups returns all network security groups in a
459
+ # subscription
460
+ #
461
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
462
+ # will be added to the HTTP request.
463
+ #
464
+ # @return [Array<NetworkSecurityGroup>] operation results.
465
+ #
466
+ def list_all(custom_headers = nil)
467
+ first_page = list_all_as_lazy(custom_headers)
468
+ first_page.get_all_items
422
469
  end
423
470
 
424
471
  #
@@ -446,6 +493,8 @@ module Azure::ARM::Network
446
493
  def list_all_async(custom_headers = nil)
447
494
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
448
495
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
496
+
497
+
449
498
  request_headers = {}
450
499
 
451
500
  # Set Headers
@@ -481,10 +530,8 @@ module Azure::ARM::Network
481
530
  if status_code == 200
482
531
  begin
483
532
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
484
- unless parsed_response.nil?
485
- parsed_response = NetworkSecurityGroupListResult.deserialize_object(parsed_response)
486
- end
487
- result.body = parsed_response
533
+ result_mapper = NetworkSecurityGroupListResult.mapper()
534
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
488
535
  rescue Exception => e
489
536
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
490
537
  end
@@ -504,11 +551,33 @@ module Azure::ARM::Network
504
551
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
505
552
  # will be added to the HTTP request.
506
553
  #
507
- # @return [NetworkSecurityGroupListResult] operation results.
554
+ # @return [NetworkSecurityGroupListResult] which provide lazy access to pages
555
+ # of the response.
508
556
  #
509
- def list(resource_group_name, custom_headers = nil)
557
+ def list_as_lazy(resource_group_name, custom_headers = nil)
510
558
  response = list_async(resource_group_name, custom_headers).value!
511
- response.body unless response.nil?
559
+ unless response.nil?
560
+ page = response.body
561
+ page.next_method = Proc.new do |next_link|
562
+ list_next_async(next_link, custom_headers)
563
+ end
564
+ page
565
+ end
566
+ end
567
+
568
+ #
569
+ # The list NetworkSecurityGroups returns all network security groups in a
570
+ # resource group
571
+ #
572
+ # @param resource_group_name [String] The name of the resource group.
573
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
574
+ # will be added to the HTTP request.
575
+ #
576
+ # @return [Array<NetworkSecurityGroup>] operation results.
577
+ #
578
+ def list(resource_group_name, custom_headers = nil)
579
+ first_page = list_as_lazy(resource_group_name, custom_headers)
580
+ first_page.get_all_items
512
581
  end
513
582
 
514
583
  #
@@ -539,6 +608,8 @@ module Azure::ARM::Network
539
608
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
540
609
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
541
610
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
611
+
612
+
542
613
  request_headers = {}
543
614
 
544
615
  # Set Headers
@@ -574,10 +645,8 @@ module Azure::ARM::Network
574
645
  if status_code == 200
575
646
  begin
576
647
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
577
- unless parsed_response.nil?
578
- parsed_response = NetworkSecurityGroupListResult.deserialize_object(parsed_response)
579
- end
580
- result.body = parsed_response
648
+ result_mapper = NetworkSecurityGroupListResult.mapper()
649
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
581
650
  rescue Exception => e
582
651
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
583
652
  end
@@ -633,6 +702,8 @@ module Azure::ARM::Network
633
702
  #
634
703
  def list_all_next_async(next_page_link, custom_headers = nil)
635
704
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
705
+
706
+
636
707
  request_headers = {}
637
708
 
638
709
  # Set Headers
@@ -667,10 +738,8 @@ module Azure::ARM::Network
667
738
  if status_code == 200
668
739
  begin
669
740
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
670
- unless parsed_response.nil?
671
- parsed_response = NetworkSecurityGroupListResult.deserialize_object(parsed_response)
672
- end
673
- result.body = parsed_response
741
+ result_mapper = NetworkSecurityGroupListResult.mapper()
742
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
674
743
  rescue Exception => e
675
744
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
676
745
  end
@@ -726,6 +795,8 @@ module Azure::ARM::Network
726
795
  #
727
796
  def list_next_async(next_page_link, custom_headers = nil)
728
797
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
798
+
799
+
729
800
  request_headers = {}
730
801
 
731
802
  # Set Headers
@@ -760,10 +831,8 @@ module Azure::ARM::Network
760
831
  if status_code == 200
761
832
  begin
762
833
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
763
- unless parsed_response.nil?
764
- parsed_response = NetworkSecurityGroupListResult.deserialize_object(parsed_response)
765
- end
766
- result.body = parsed_response
834
+ result_mapper = NetworkSecurityGroupListResult.mapper()
835
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
767
836
  rescue Exception => e
768
837
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
769
838
  end