azure_mgmt_network 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +97 -56
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +483 -41
  4. data/lib/generated/azure_mgmt_network/available_private_access_services.rb +224 -0
  5. data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +8 -9
  6. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +24 -25
  7. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +24 -25
  8. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +56 -57
  9. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +8 -9
  10. data/lib/generated/azure_mgmt_network/load_balancers.rb +30 -31
  11. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +24 -25
  12. data/lib/generated/azure_mgmt_network/models/access.rb +1 -1
  13. data/lib/generated/azure_mgmt_network/models/address_space.rb +2 -1
  14. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +23 -4
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +12 -1
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +146 -0
  17. data/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +98 -0
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +55 -0
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +2 -1
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +12 -1
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +2 -1
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +2 -1
  23. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +2 -1
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +7 -5
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +2 -1
  26. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +77 -15
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +2 -1
  28. data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +64 -0
  30. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +1 -1
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +55 -0
  32. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +75 -0
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +130 -0
  34. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +13 -3
  35. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +12 -1
  36. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +14 -3
  37. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +12 -1
  38. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +2 -1
  39. data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  40. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +28 -3
  41. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +48 -3
  42. data/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +65 -0
  43. data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  44. data/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +185 -0
  45. data/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  46. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +25 -3
  47. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  48. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +5 -7
  49. data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  50. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +12 -1
  51. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +39 -0
  52. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +58 -5
  53. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  54. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  55. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +82 -0
  56. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
  57. data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  58. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +24 -1
  59. data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +44 -4
  60. data/lib/generated/azure_mgmt_network/models/association_type.rb +1 -1
  61. data/lib/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  62. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +2 -1
  63. data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  64. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +2 -1
  65. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +2 -1
  66. data/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb +1 -1
  67. data/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb +3 -3
  68. data/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +2 -1
  69. data/lib/generated/azure_mgmt_network/models/bgp_service_community.rb +15 -4
  70. data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +2 -1
  71. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +3 -3
  72. data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +25 -4
  73. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +3 -3
  74. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +2 -1
  75. data/lib/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  76. data/lib/generated/azure_mgmt_network/models/connectivity_destination.rb +67 -0
  77. data/lib/generated/azure_mgmt_network/models/connectivity_hop.rb +116 -0
  78. data/lib/generated/azure_mgmt_network/models/connectivity_information.rb +122 -0
  79. data/lib/generated/azure_mgmt_network/models/connectivity_issue.rb +100 -0
  80. data/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb +57 -0
  81. data/lib/generated/azure_mgmt_network/models/connectivity_source.rb +57 -0
  82. data/lib/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  83. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +2 -1
  84. data/lib/generated/azure_mgmt_network/models/direction.rb +1 -1
  85. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +2 -1
  86. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +27 -1
  87. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +2 -1
  88. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +2 -1
  89. data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +78 -1
  90. data/lib/generated/azure_mgmt_network/models/effective_route.rb +2 -1
  91. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +2 -1
  92. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
  93. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
  94. data/lib/generated/azure_mgmt_network/models/error.rb +2 -1
  95. data/lib/generated/azure_mgmt_network/models/error_details.rb +2 -1
  96. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +2 -1
  97. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +2 -1
  98. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +2 -1
  99. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +2 -1
  100. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +14 -1
  101. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  102. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +30 -1
  103. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +2 -1
  104. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  105. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  106. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +2 -1
  107. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +2 -1
  108. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +2 -1
  109. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +2 -1
  110. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  111. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  112. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +2 -1
  113. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +2 -1
  114. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +2 -1
  115. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +2 -1
  116. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +2 -1
  117. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +2 -1
  118. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +2 -1
  119. data/lib/generated/azure_mgmt_network/models/flow_log_information.rb +2 -1
  120. data/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +2 -1
  121. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +2 -1
  122. data/lib/generated/azure_mgmt_network/models/gateway_route.rb +3 -3
  123. data/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb +2 -1
  124. data/lib/generated/azure_mgmt_network/models/ike_encryption.rb +19 -0
  125. data/lib/generated/azure_mgmt_network/models/ike_integrity.rb +18 -0
  126. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +2 -1
  127. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +2 -1
  128. data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +2 -1
  129. data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  130. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +2 -1
  131. data/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  132. data/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  133. data/lib/generated/azure_mgmt_network/models/ipsec_policy.rb +127 -0
  134. data/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +90 -0
  135. data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
  136. data/lib/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  137. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +2 -1
  138. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +2 -1
  139. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +2 -1
  140. data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
  141. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +3 -2
  142. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +2 -1
  143. data/lib/generated/azure_mgmt_network/models/network_interface.rb +2 -1
  144. data/lib/generated/azure_mgmt_network/models/network_interface_association.rb +2 -1
  145. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +2 -1
  146. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +2 -1
  147. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +2 -1
  148. data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +1 -1
  149. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +2 -1
  150. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +2 -1
  151. data/lib/generated/azure_mgmt_network/models/network_watcher.rb +2 -1
  152. data/lib/generated/azure_mgmt_network/models/network_watcher_list_result.rb +2 -1
  153. data/lib/generated/azure_mgmt_network/models/next_hop_parameters.rb +2 -1
  154. data/lib/generated/azure_mgmt_network/models/next_hop_result.rb +2 -1
  155. data/lib/generated/azure_mgmt_network/models/next_hop_type.rb +1 -1
  156. data/lib/generated/azure_mgmt_network/models/origin.rb +17 -0
  157. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +2 -1
  158. data/lib/generated/azure_mgmt_network/models/packet_capture.rb +2 -1
  159. data/lib/generated/azure_mgmt_network/models/packet_capture_filter.rb +2 -1
  160. data/lib/generated/azure_mgmt_network/models/packet_capture_list_result.rb +2 -1
  161. data/lib/generated/azure_mgmt_network/models/packet_capture_parameters.rb +2 -1
  162. data/lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +2 -1
  163. data/lib/generated/azure_mgmt_network/models/packet_capture_result.rb +2 -1
  164. data/lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +2 -1
  165. data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +2 -2
  166. data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +2 -1
  167. data/lib/generated/azure_mgmt_network/models/pc_error.rb +1 -1
  168. data/lib/generated/azure_mgmt_network/models/pc_protocol.rb +1 -1
  169. data/lib/generated/azure_mgmt_network/models/pc_status.rb +1 -1
  170. data/lib/generated/azure_mgmt_network/models/pfs_group.rb +21 -0
  171. data/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb +72 -0
  172. data/lib/generated/azure_mgmt_network/models/private_access_service_result.rb +64 -0
  173. data/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb +95 -0
  174. data/lib/generated/azure_mgmt_network/models/probe.rb +2 -1
  175. data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
  176. data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
  177. data/lib/generated/azure_mgmt_network/models/protocol.rb +1 -1
  178. data/lib/generated/azure_mgmt_network/models/provisioning_state.rb +1 -1
  179. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +2 -1
  180. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +2 -1
  181. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +2 -1
  182. data/lib/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +2 -1
  183. data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +2 -1
  184. data/lib/generated/azure_mgmt_network/models/retention_policy_parameters.rb +2 -1
  185. data/lib/generated/azure_mgmt_network/models/route.rb +2 -1
  186. data/lib/generated/azure_mgmt_network/models/route_filter.rb +2 -2
  187. data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +2 -1
  188. data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +2 -2
  189. data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +2 -1
  190. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +2 -1
  191. data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  192. data/lib/generated/azure_mgmt_network/models/route_table.rb +2 -1
  193. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +2 -1
  194. data/lib/generated/azure_mgmt_network/models/security_group_network_interface.rb +2 -1
  195. data/lib/generated/azure_mgmt_network/models/security_group_view_parameters.rb +2 -1
  196. data/lib/generated/azure_mgmt_network/models/security_group_view_result.rb +2 -1
  197. data/lib/generated/azure_mgmt_network/models/security_rule.rb +38 -2
  198. data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
  199. data/lib/generated/azure_mgmt_network/models/security_rule_associations.rb +2 -1
  200. data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  201. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +2 -1
  202. data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  203. data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  204. data/lib/generated/azure_mgmt_network/models/severity.rb +16 -0
  205. data/lib/generated/azure_mgmt_network/models/subnet.rb +21 -1
  206. data/lib/generated/azure_mgmt_network/models/subnet_association.rb +2 -1
  207. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +2 -1
  208. data/lib/generated/azure_mgmt_network/models/topology.rb +2 -1
  209. data/lib/generated/azure_mgmt_network/models/topology_association.rb +2 -1
  210. data/lib/generated/azure_mgmt_network/models/topology_parameters.rb +2 -1
  211. data/lib/generated/azure_mgmt_network/models/topology_resource.rb +2 -1
  212. data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
  213. data/lib/generated/azure_mgmt_network/models/troubleshooting_details.rb +2 -1
  214. data/lib/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +2 -1
  215. data/lib/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +2 -1
  216. data/lib/generated/azure_mgmt_network/models/troubleshooting_result.rb +2 -1
  217. data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +2 -1
  218. data/lib/generated/azure_mgmt_network/models/usage.rb +2 -1
  219. data/lib/generated/azure_mgmt_network/models/usage_name.rb +2 -1
  220. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +2 -1
  221. data/lib/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +2 -1
  222. data/lib/generated/azure_mgmt_network/models/verification_ipflow_result.rb +2 -1
  223. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +2 -1
  224. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +27 -4
  225. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +31 -1
  226. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +2 -1
  227. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  228. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  229. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +4 -3
  230. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +2 -1
  231. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +8 -9
  232. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +4 -1
  233. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +4 -1
  234. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  235. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +2 -1
  236. data/lib/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +95 -0
  237. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +2 -1
  238. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +2 -1
  239. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
  240. data/lib/generated/azure_mgmt_network/models/virtual_network_usage.rb +92 -0
  241. data/lib/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +57 -0
  242. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +20 -1
  243. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +49 -4
  244. data/lib/generated/azure_mgmt_network/models/vpn_client_protocol.rb +16 -0
  245. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +2 -1
  246. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +2 -1
  247. data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
  248. data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
  249. data/lib/generated/azure_mgmt_network/network_interfaces.rb +58 -59
  250. data/lib/generated/azure_mgmt_network/network_management_client.rb +10 -5
  251. data/lib/generated/azure_mgmt_network/network_security_groups.rb +30 -31
  252. data/lib/generated/azure_mgmt_network/network_watchers.rb +281 -101
  253. data/lib/generated/azure_mgmt_network/packet_captures.rb +30 -31
  254. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +580 -31
  255. data/lib/generated/azure_mgmt_network/route_filter_rules.rb +32 -33
  256. data/lib/generated/azure_mgmt_network/route_filters.rb +38 -39
  257. data/lib/generated/azure_mgmt_network/route_tables.rb +30 -31
  258. data/lib/generated/azure_mgmt_network/routes.rb +24 -25
  259. data/lib/generated/azure_mgmt_network/security_rules.rb +24 -25
  260. data/lib/generated/azure_mgmt_network/subnets.rb +24 -25
  261. data/lib/generated/azure_mgmt_network/usages.rb +8 -9
  262. data/lib/generated/azure_mgmt_network/version.rb +2 -2
  263. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +46 -47
  264. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +347 -119
  265. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +24 -25
  266. data/lib/generated/azure_mgmt_network/virtual_networks.rb +234 -35
  267. metadata +45 -4
@@ -1,14 +1,13 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
- # Composite Swagger for Network Client
8
+ # Network Client
9
9
  #
10
10
  class Usages
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -60,7 +59,7 @@ module Azure::ARM::Network
60
59
  #
61
60
  def list_async(location, custom_headers = nil)
62
61
  fail ArgumentError, 'location is nil' if location.nil?
63
- api_version = '2016-12-01'
62
+ api_version = '2017-06-01'
64
63
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
64
 
66
65
 
@@ -69,7 +68,7 @@ module Azure::ARM::Network
69
68
  # Set Headers
70
69
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
71
70
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
72
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages'
71
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages'
73
72
 
74
73
  request_url = @base_url || @client.base_url
75
74
 
@@ -96,8 +95,8 @@ module Azure::ARM::Network
96
95
  if status_code == 200
97
96
  begin
98
97
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
99
- result_mapper = UsagesListResult.mapper()
100
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
98
+ result_mapper = Azure::ARM::Network::Models::UsagesListResult.mapper()
99
+ result.body = @client.deserialize(result_mapper, parsed_response)
101
100
  rescue Exception => e
102
101
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
103
102
  end
@@ -183,8 +182,8 @@ module Azure::ARM::Network
183
182
  if status_code == 200
184
183
  begin
185
184
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
186
- result_mapper = UsagesListResult.mapper()
187
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
185
+ result_mapper = Azure::ARM::Network::Models::UsagesListResult.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response)
188
187
  rescue Exception => e
189
188
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
190
189
  end
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
- VERSION = '0.10.0'
7
+ VERSION = '0.11.0'
8
8
  end
@@ -1,14 +1,13 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
- # Composite Swagger for Network Client
8
+ # Network Client
9
9
  #
10
10
  class VirtualNetworkGatewayConnections
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -60,8 +59,8 @@ module Azure::ARM::Network
60
59
  promise = promise.then do |response|
61
60
  # Defining deserialization method.
62
61
  deserialize_method = lambda do |parsed_response|
63
- result_mapper = VirtualNetworkGatewayConnection.mapper()
64
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
62
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper()
63
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
65
64
  end
66
65
 
67
66
  # Waiting for response.
@@ -116,7 +115,7 @@ module Azure::ARM::Network
116
115
  def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
117
116
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
117
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
119
- api_version = '2016-12-01'
118
+ api_version = '2017-06-01'
120
119
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
121
120
 
122
121
 
@@ -125,7 +124,7 @@ module Azure::ARM::Network
125
124
  # Set Headers
126
125
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
127
126
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
128
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
127
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
129
128
 
130
129
  request_url = @base_url || @client.base_url
131
130
 
@@ -152,8 +151,8 @@ module Azure::ARM::Network
152
151
  if status_code == 200
153
152
  begin
154
153
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
155
- result_mapper = VirtualNetworkGatewayConnection.mapper()
156
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
154
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper()
155
+ result.body = @client.deserialize(result_mapper, parsed_response)
157
156
  rescue Exception => e
158
157
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
159
158
  end
@@ -246,8 +245,8 @@ module Azure::ARM::Network
246
245
  promise = promise.then do |response|
247
246
  # Defining deserialization method.
248
247
  deserialize_method = lambda do |parsed_response|
249
- result_mapper = ConnectionSharedKey.mapper()
250
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
248
+ result_mapper = Azure::ARM::Network::Models::ConnectionSharedKey.mapper()
249
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
251
250
  end
252
251
 
253
252
  # Waiting for response.
@@ -308,7 +307,7 @@ module Azure::ARM::Network
308
307
  def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
309
308
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
310
309
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
311
- api_version = '2016-12-01'
310
+ api_version = '2017-06-01'
312
311
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
313
312
 
314
313
 
@@ -317,7 +316,7 @@ module Azure::ARM::Network
317
316
  # Set Headers
318
317
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
319
318
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
320
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'
319
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'
321
320
 
322
321
  request_url = @base_url || @client.base_url
323
322
 
@@ -344,8 +343,8 @@ module Azure::ARM::Network
344
343
  if status_code == 200
345
344
  begin
346
345
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
347
- result_mapper = ConnectionSharedKey.mapper()
348
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
346
+ result_mapper = Azure::ARM::Network::Models::ConnectionSharedKey.mapper()
347
+ result.body = @client.deserialize(result_mapper, parsed_response)
349
348
  rescue Exception => e
350
349
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
351
350
  end
@@ -398,7 +397,7 @@ module Azure::ARM::Network
398
397
  #
399
398
  def list_async(resource_group_name, custom_headers = nil)
400
399
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
401
- api_version = '2016-12-01'
400
+ api_version = '2017-06-01'
402
401
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
403
402
 
404
403
 
@@ -407,7 +406,7 @@ module Azure::ARM::Network
407
406
  # Set Headers
408
407
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
409
408
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
410
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections'
409
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections'
411
410
 
412
411
  request_url = @base_url || @client.base_url
413
412
 
@@ -434,8 +433,8 @@ module Azure::ARM::Network
434
433
  if status_code == 200
435
434
  begin
436
435
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
437
- result_mapper = VirtualNetworkGatewayConnectionListResult.mapper()
438
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
436
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnectionListResult.mapper()
437
+ result.body = @client.deserialize(result_mapper, parsed_response)
439
438
  rescue Exception => e
440
439
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
441
440
  end
@@ -489,8 +488,8 @@ module Azure::ARM::Network
489
488
  promise = promise.then do |response|
490
489
  # Defining deserialization method.
491
490
  deserialize_method = lambda do |parsed_response|
492
- result_mapper = ConnectionResetSharedKey.mapper()
493
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
491
+ result_mapper = Azure::ARM::Network::Models::ConnectionResetSharedKey.mapper()
492
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
494
493
  end
495
494
 
496
495
  # Waiting for response.
@@ -555,7 +554,7 @@ module Azure::ARM::Network
555
554
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
556
555
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
557
556
  fail ArgumentError, 'parameters is nil' if parameters.nil?
558
- api_version = '2016-12-01'
557
+ api_version = '2017-06-01'
559
558
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
560
559
 
561
560
 
@@ -568,11 +567,11 @@ module Azure::ARM::Network
568
567
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
569
568
 
570
569
  # Serialize Request
571
- request_mapper = VirtualNetworkGatewayConnection.mapper()
572
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
570
+ request_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper()
571
+ request_content = @client.serialize(request_mapper, parameters)
573
572
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
574
573
 
575
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
574
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
576
575
 
577
576
  request_url = @base_url || @client.base_url
578
577
 
@@ -600,8 +599,8 @@ module Azure::ARM::Network
600
599
  if status_code == 200
601
600
  begin
602
601
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
603
- result_mapper = VirtualNetworkGatewayConnection.mapper()
604
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
602
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper()
603
+ result.body = @client.deserialize(result_mapper, parsed_response)
605
604
  rescue Exception => e
606
605
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
607
606
  end
@@ -610,8 +609,8 @@ module Azure::ARM::Network
610
609
  if status_code == 201
611
610
  begin
612
611
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
613
- result_mapper = VirtualNetworkGatewayConnection.mapper()
614
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
612
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper()
613
+ result.body = @client.deserialize(result_mapper, parsed_response)
615
614
  rescue Exception => e
616
615
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
617
616
  end
@@ -667,7 +666,7 @@ module Azure::ARM::Network
667
666
  def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
668
667
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
669
668
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
670
- api_version = '2016-12-01'
669
+ api_version = '2017-06-01'
671
670
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
672
671
 
673
672
 
@@ -676,7 +675,7 @@ module Azure::ARM::Network
676
675
  # Set Headers
677
676
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
678
677
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
679
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
678
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
680
679
 
681
680
  request_url = @base_url || @client.base_url
682
681
 
@@ -767,7 +766,7 @@ module Azure::ARM::Network
767
766
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
768
767
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
769
768
  fail ArgumentError, 'parameters is nil' if parameters.nil?
770
- api_version = '2016-12-01'
769
+ api_version = '2017-06-01'
771
770
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
772
771
 
773
772
 
@@ -780,11 +779,11 @@ module Azure::ARM::Network
780
779
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
781
780
 
782
781
  # Serialize Request
783
- request_mapper = ConnectionSharedKey.mapper()
784
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
782
+ request_mapper = Azure::ARM::Network::Models::ConnectionSharedKey.mapper()
783
+ request_content = @client.serialize(request_mapper, parameters)
785
784
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
786
785
 
787
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'
786
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'
788
787
 
789
788
  request_url = @base_url || @client.base_url
790
789
 
@@ -812,8 +811,8 @@ module Azure::ARM::Network
812
811
  if status_code == 201
813
812
  begin
814
813
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
815
- result_mapper = ConnectionSharedKey.mapper()
816
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
814
+ result_mapper = Azure::ARM::Network::Models::ConnectionSharedKey.mapper()
815
+ result.body = @client.deserialize(result_mapper, parsed_response)
817
816
  rescue Exception => e
818
817
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
819
818
  end
@@ -822,8 +821,8 @@ module Azure::ARM::Network
822
821
  if status_code == 200
823
822
  begin
824
823
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
825
- result_mapper = ConnectionSharedKey.mapper()
826
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
824
+ result_mapper = Azure::ARM::Network::Models::ConnectionSharedKey.mapper()
825
+ result.body = @client.deserialize(result_mapper, parsed_response)
827
826
  rescue Exception => e
828
827
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
829
828
  end
@@ -899,7 +898,7 @@ module Azure::ARM::Network
899
898
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
900
899
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
901
900
  fail ArgumentError, 'parameters is nil' if parameters.nil?
902
- api_version = '2016-12-01'
901
+ api_version = '2017-06-01'
903
902
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
904
903
 
905
904
 
@@ -912,11 +911,11 @@ module Azure::ARM::Network
912
911
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
913
912
 
914
913
  # Serialize Request
915
- request_mapper = ConnectionResetSharedKey.mapper()
916
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
914
+ request_mapper = Azure::ARM::Network::Models::ConnectionResetSharedKey.mapper()
915
+ request_content = @client.serialize(request_mapper, parameters)
917
916
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
918
917
 
919
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset'
918
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset'
920
919
 
921
920
  request_url = @base_url || @client.base_url
922
921
 
@@ -944,8 +943,8 @@ module Azure::ARM::Network
944
943
  if status_code == 200
945
944
  begin
946
945
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
947
- result_mapper = ConnectionResetSharedKey.mapper()
948
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
946
+ result_mapper = Azure::ARM::Network::Models::ConnectionResetSharedKey.mapper()
947
+ result.body = @client.deserialize(result_mapper, parsed_response)
949
948
  rescue Exception => e
950
949
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
951
950
  end
@@ -1034,8 +1033,8 @@ module Azure::ARM::Network
1034
1033
  if status_code == 200
1035
1034
  begin
1036
1035
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1037
- result_mapper = VirtualNetworkGatewayConnectionListResult.mapper()
1038
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1036
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnectionListResult.mapper()
1037
+ result.body = @client.deserialize(result_mapper, parsed_response)
1039
1038
  rescue Exception => e
1040
1039
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1041
1040
  end
@@ -1,14 +1,13 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
- # Composite Swagger for Network Client
8
+ # Network Client
9
9
  #
10
10
  class VirtualNetworkGateways
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -59,8 +58,8 @@ module Azure::ARM::Network
59
58
  promise = promise.then do |response|
60
59
  # Defining deserialization method.
61
60
  deserialize_method = lambda do |parsed_response|
62
- result_mapper = VirtualNetworkGateway.mapper()
63
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
61
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
62
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
64
63
  end
65
64
 
66
65
  # Waiting for response.
@@ -115,7 +114,7 @@ module Azure::ARM::Network
115
114
  def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
116
115
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
117
116
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
118
- api_version = '2016-12-01'
117
+ api_version = '2017-06-01'
119
118
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
120
119
 
121
120
 
@@ -124,7 +123,7 @@ module Azure::ARM::Network
124
123
  # Set Headers
125
124
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
126
125
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
127
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
126
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
128
127
 
129
128
  request_url = @base_url || @client.base_url
130
129
 
@@ -151,8 +150,8 @@ module Azure::ARM::Network
151
150
  if status_code == 200
152
151
  begin
153
152
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
154
- result_mapper = VirtualNetworkGateway.mapper()
155
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
153
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
154
+ result.body = @client.deserialize(result_mapper, parsed_response)
156
155
  rescue Exception => e
157
156
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
158
157
  end
@@ -242,7 +241,7 @@ module Azure::ARM::Network
242
241
  #
243
242
  def list_async(resource_group_name, custom_headers = nil)
244
243
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
245
- api_version = '2016-12-01'
244
+ api_version = '2017-06-01'
246
245
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
247
246
 
248
247
 
@@ -251,7 +250,7 @@ module Azure::ARM::Network
251
250
  # Set Headers
252
251
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
253
252
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
254
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways'
253
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways'
255
254
 
256
255
  request_url = @base_url || @client.base_url
257
256
 
@@ -278,8 +277,8 @@ module Azure::ARM::Network
278
277
  if status_code == 200
279
278
  begin
280
279
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
281
- result_mapper = VirtualNetworkGatewayListResult.mapper()
282
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
280
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListResult.mapper()
281
+ result.body = @client.deserialize(result_mapper, parsed_response)
283
282
  rescue Exception => e
284
283
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
285
284
  end
@@ -329,8 +328,8 @@ module Azure::ARM::Network
329
328
  promise = promise.then do |response|
330
329
  # Defining deserialization method.
331
330
  deserialize_method = lambda do |parsed_response|
332
- result_mapper = VirtualNetworkGateway.mapper()
333
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
331
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
332
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
334
333
  end
335
334
 
336
335
  # Waiting for response.
@@ -359,9 +358,6 @@ module Azure::ARM::Network
359
358
  response.body unless response.nil?
360
359
  end
361
360
 
362
- #
363
- # Generates VPN client package for P2S client of the virtual network gateway in
364
- # the specified resource group.
365
361
  #
366
362
  # @param resource_group_name [String] The name of the resource group.
367
363
  # @param virtual_network_gateway_name [String] The name of the virtual network
@@ -371,92 +367,86 @@ module Azure::ARM::Network
371
367
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
372
368
  # will be added to the HTTP request.
373
369
  #
374
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
370
+ # @return [Concurrent::Promise] promise which provides async access to http
371
+ # response.
375
372
  #
376
- def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
377
- generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
373
+ def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
374
+ # Send request
375
+ promise = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers)
376
+
377
+ promise = promise.then do |response|
378
+ # Defining deserialization method.
379
+ deserialize_method = lambda do |parsed_response|
380
+ result_mapper = {
381
+ required: false,
382
+ serialized_name: 'parsed_response',
383
+ type: {
384
+ name: 'String'
385
+ }
386
+ }
387
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
388
+ end
389
+
390
+ # Waiting for response.
391
+ @client.get_long_running_operation_result(response, deserialize_method)
392
+ end
393
+
394
+ promise
378
395
  end
379
396
 
380
397
  #
381
- # Generates VPN client package for P2S client of the virtual network gateway in
382
- # the specified resource group.
398
+ # Generates VPN profile for P2S client of the virtual network gateway in the
399
+ # specified resource group. Used for IKEV2 and radius based authentication.
383
400
  #
384
401
  # @param resource_group_name [String] The name of the resource group.
385
402
  # @param virtual_network_gateway_name [String] The name of the virtual network
386
403
  # gateway.
387
404
  # @param parameters [VpnClientParameters] Parameters supplied to the generate
388
405
  # virtual network gateway VPN client package operation.
389
- # @param [Hash{String => String}] A hash of custom headers that will be added
390
- # to the HTTP request.
406
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
407
+ # will be added to the HTTP request.
391
408
  #
392
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
409
+ # @return [String] operation results.
393
410
  #
394
- def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
395
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
396
- fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
397
- fail ArgumentError, 'parameters is nil' if parameters.nil?
398
- api_version = '2016-12-01'
399
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
400
-
401
-
402
- request_headers = {}
403
-
404
- # Set Headers
405
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
406
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
407
-
408
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
409
-
410
- # Serialize Request
411
- request_mapper = VpnClientParameters.mapper()
412
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
413
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
414
-
415
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'
416
-
417
- request_url = @base_url || @client.base_url
418
-
419
- options = {
420
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
421
- path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
422
- query_params: {'api-version' => api_version},
423
- body: request_content,
424
- headers: request_headers.merge(custom_headers || {}),
425
- base_url: request_url
426
- }
427
- promise = @client.make_request_async(:post, path_template, options)
411
+ def generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
412
+ response = generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
413
+ response.body unless response.nil?
414
+ end
428
415
 
429
- promise = promise.then do |result|
430
- http_response = result.response
431
- status_code = http_response.status
432
- response_content = http_response.body
433
- unless status_code == 202
434
- error_model = JSON.load(response_content)
435
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
436
- end
416
+ #
417
+ # @param resource_group_name [String] The name of the resource group.
418
+ # @param virtual_network_gateway_name [String] The name of the virtual network
419
+ # gateway.
420
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
421
+ # virtual network gateway VPN client package operation.
422
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
423
+ # will be added to the HTTP request.
424
+ #
425
+ # @return [Concurrent::Promise] promise which provides async access to http
426
+ # response.
427
+ #
428
+ def generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
429
+ # Send request
430
+ promise = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers)
437
431
 
438
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
439
- # Deserialize Response
440
- if status_code == 202
441
- begin
442
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
443
- result_mapper = {
444
- required: false,
445
- serialized_name: 'parsed_response',
446
- type: {
447
- name: 'String'
448
- }
432
+ promise = promise.then do |response|
433
+ # Defining deserialization method.
434
+ deserialize_method = lambda do |parsed_response|
435
+ result_mapper = {
436
+ required: false,
437
+ serialized_name: 'parsed_response',
438
+ type: {
439
+ name: 'String'
449
440
  }
450
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
451
- rescue Exception => e
452
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
453
- end
441
+ }
442
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
454
443
  end
455
444
 
456
- result
445
+ # Waiting for response.
446
+ @client.get_long_running_operation_result(response, deserialize_method)
457
447
  end
458
448
 
459
- promise.execute
449
+ promise
460
450
  end
461
451
 
462
452
  #
@@ -494,8 +484,8 @@ module Azure::ARM::Network
494
484
  promise = promise.then do |response|
495
485
  # Defining deserialization method.
496
486
  deserialize_method = lambda do |parsed_response|
497
- result_mapper = BgpPeerStatusListResult.mapper()
498
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
487
+ result_mapper = Azure::ARM::Network::Models::BgpPeerStatusListResult.mapper()
488
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
499
489
  end
500
490
 
501
491
  # Waiting for response.
@@ -539,8 +529,8 @@ module Azure::ARM::Network
539
529
  promise = promise.then do |response|
540
530
  # Defining deserialization method.
541
531
  deserialize_method = lambda do |parsed_response|
542
- result_mapper = GatewayRouteListResult.mapper()
543
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
532
+ result_mapper = Azure::ARM::Network::Models::GatewayRouteListResult.mapper()
533
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
544
534
  end
545
535
 
546
536
  # Waiting for response.
@@ -586,8 +576,8 @@ module Azure::ARM::Network
586
576
  promise = promise.then do |response|
587
577
  # Defining deserialization method.
588
578
  deserialize_method = lambda do |parsed_response|
589
- result_mapper = GatewayRouteListResult.mapper()
590
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
579
+ result_mapper = Azure::ARM::Network::Models::GatewayRouteListResult.mapper()
580
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
591
581
  end
592
582
 
593
583
  # Waiting for response.
@@ -649,7 +639,7 @@ module Azure::ARM::Network
649
639
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
650
640
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
651
641
  fail ArgumentError, 'parameters is nil' if parameters.nil?
652
- api_version = '2016-12-01'
642
+ api_version = '2017-06-01'
653
643
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
654
644
 
655
645
 
@@ -662,11 +652,11 @@ module Azure::ARM::Network
662
652
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
663
653
 
664
654
  # Serialize Request
665
- request_mapper = VirtualNetworkGateway.mapper()
666
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
655
+ request_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
656
+ request_content = @client.serialize(request_mapper, parameters)
667
657
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
668
658
 
669
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
659
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
670
660
 
671
661
  request_url = @base_url || @client.base_url
672
662
 
@@ -694,8 +684,8 @@ module Azure::ARM::Network
694
684
  if status_code == 200
695
685
  begin
696
686
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
697
- result_mapper = VirtualNetworkGateway.mapper()
698
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
687
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
688
+ result.body = @client.deserialize(result_mapper, parsed_response)
699
689
  rescue Exception => e
700
690
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
701
691
  end
@@ -704,8 +694,8 @@ module Azure::ARM::Network
704
694
  if status_code == 201
705
695
  begin
706
696
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
707
- result_mapper = VirtualNetworkGateway.mapper()
708
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
697
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
698
+ result.body = @client.deserialize(result_mapper, parsed_response)
709
699
  rescue Exception => e
710
700
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
711
701
  end
@@ -761,7 +751,7 @@ module Azure::ARM::Network
761
751
  def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
762
752
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
763
753
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
764
- api_version = '2016-12-01'
754
+ api_version = '2017-06-01'
765
755
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
766
756
 
767
757
 
@@ -770,7 +760,7 @@ module Azure::ARM::Network
770
760
  # Set Headers
771
761
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
772
762
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
773
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
763
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
774
764
 
775
765
  request_url = @base_url || @client.base_url
776
766
 
@@ -854,7 +844,7 @@ module Azure::ARM::Network
854
844
  def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil)
855
845
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
856
846
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
857
- api_version = '2016-12-01'
847
+ api_version = '2017-06-01'
858
848
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
859
849
 
860
850
 
@@ -863,7 +853,7 @@ module Azure::ARM::Network
863
853
  # Set Headers
864
854
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
865
855
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
866
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'
856
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'
867
857
 
868
858
  request_url = @base_url || @client.base_url
869
859
 
@@ -890,8 +880,246 @@ module Azure::ARM::Network
890
880
  if status_code == 200
891
881
  begin
892
882
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
893
- result_mapper = VirtualNetworkGateway.mapper()
894
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
883
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper()
884
+ result.body = @client.deserialize(result_mapper, parsed_response)
885
+ rescue Exception => e
886
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
887
+ end
888
+ end
889
+
890
+ result
891
+ end
892
+
893
+ promise.execute
894
+ end
895
+
896
+ #
897
+ # Generates VPN client package for P2S client of the virtual network gateway in
898
+ # the specified resource group.
899
+ #
900
+ # @param resource_group_name [String] The name of the resource group.
901
+ # @param virtual_network_gateway_name [String] The name of the virtual network
902
+ # gateway.
903
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
904
+ # virtual network gateway VPN client package operation.
905
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
906
+ # will be added to the HTTP request.
907
+ #
908
+ # @return [String] operation results.
909
+ #
910
+ def begin_generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
911
+ response = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
912
+ response.body unless response.nil?
913
+ end
914
+
915
+ #
916
+ # Generates VPN client package for P2S client of the virtual network gateway in
917
+ # the specified resource group.
918
+ #
919
+ # @param resource_group_name [String] The name of the resource group.
920
+ # @param virtual_network_gateway_name [String] The name of the virtual network
921
+ # gateway.
922
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
923
+ # virtual network gateway VPN client package operation.
924
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
925
+ # will be added to the HTTP request.
926
+ #
927
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
928
+ #
929
+ def begin_generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
930
+ begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
931
+ end
932
+
933
+ #
934
+ # Generates VPN client package for P2S client of the virtual network gateway in
935
+ # the specified resource group.
936
+ #
937
+ # @param resource_group_name [String] The name of the resource group.
938
+ # @param virtual_network_gateway_name [String] The name of the virtual network
939
+ # gateway.
940
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
941
+ # virtual network gateway VPN client package operation.
942
+ # @param [Hash{String => String}] A hash of custom headers that will be added
943
+ # to the HTTP request.
944
+ #
945
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
946
+ #
947
+ def begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
948
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
949
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
950
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
951
+ api_version = '2017-06-01'
952
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
953
+
954
+
955
+ request_headers = {}
956
+
957
+ # Set Headers
958
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
959
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
960
+
961
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
962
+
963
+ # Serialize Request
964
+ request_mapper = Azure::ARM::Network::Models::VpnClientParameters.mapper()
965
+ request_content = @client.serialize(request_mapper, parameters)
966
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
967
+
968
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'
969
+
970
+ request_url = @base_url || @client.base_url
971
+
972
+ options = {
973
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
974
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
975
+ query_params: {'api-version' => api_version},
976
+ body: request_content,
977
+ headers: request_headers.merge(custom_headers || {}),
978
+ base_url: request_url
979
+ }
980
+ promise = @client.make_request_async(:post, path_template, options)
981
+
982
+ promise = promise.then do |result|
983
+ http_response = result.response
984
+ status_code = http_response.status
985
+ response_content = http_response.body
986
+ unless status_code == 200
987
+ error_model = JSON.load(response_content)
988
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
989
+ end
990
+
991
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
992
+ # Deserialize Response
993
+ if status_code == 200
994
+ begin
995
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
996
+ result_mapper = {
997
+ required: false,
998
+ serialized_name: 'parsed_response',
999
+ type: {
1000
+ name: 'String'
1001
+ }
1002
+ }
1003
+ result.body = @client.deserialize(result_mapper, parsed_response)
1004
+ rescue Exception => e
1005
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1006
+ end
1007
+ end
1008
+
1009
+ result
1010
+ end
1011
+
1012
+ promise.execute
1013
+ end
1014
+
1015
+ #
1016
+ # Generates VPN profile for P2S client of the virtual network gateway in the
1017
+ # specified resource group. Used for IKEV2 and radius based authentication.
1018
+ #
1019
+ # @param resource_group_name [String] The name of the resource group.
1020
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1021
+ # gateway.
1022
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1023
+ # virtual network gateway VPN client package operation.
1024
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1025
+ # will be added to the HTTP request.
1026
+ #
1027
+ # @return [String] operation results.
1028
+ #
1029
+ def begin_generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
1030
+ response = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
1031
+ response.body unless response.nil?
1032
+ end
1033
+
1034
+ #
1035
+ # Generates VPN profile for P2S client of the virtual network gateway in the
1036
+ # specified resource group. Used for IKEV2 and radius based authentication.
1037
+ #
1038
+ # @param resource_group_name [String] The name of the resource group.
1039
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1040
+ # gateway.
1041
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1042
+ # virtual network gateway VPN client package operation.
1043
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1044
+ # will be added to the HTTP request.
1045
+ #
1046
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1047
+ #
1048
+ def begin_generate_vpn_profile_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
1049
+ begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
1050
+ end
1051
+
1052
+ #
1053
+ # Generates VPN profile for P2S client of the virtual network gateway in the
1054
+ # specified resource group. Used for IKEV2 and radius based authentication.
1055
+ #
1056
+ # @param resource_group_name [String] The name of the resource group.
1057
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1058
+ # gateway.
1059
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1060
+ # virtual network gateway VPN client package operation.
1061
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1062
+ # to the HTTP request.
1063
+ #
1064
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1065
+ #
1066
+ def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
1067
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1068
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1069
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1070
+ api_version = '2017-06-01'
1071
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1072
+
1073
+
1074
+ request_headers = {}
1075
+
1076
+ # Set Headers
1077
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1078
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1079
+
1080
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1081
+
1082
+ # Serialize Request
1083
+ request_mapper = Azure::ARM::Network::Models::VpnClientParameters.mapper()
1084
+ request_content = @client.serialize(request_mapper, parameters)
1085
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1086
+
1087
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile'
1088
+
1089
+ request_url = @base_url || @client.base_url
1090
+
1091
+ options = {
1092
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1093
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1094
+ query_params: {'api-version' => api_version},
1095
+ body: request_content,
1096
+ headers: request_headers.merge(custom_headers || {}),
1097
+ base_url: request_url
1098
+ }
1099
+ promise = @client.make_request_async(:post, path_template, options)
1100
+
1101
+ promise = promise.then do |result|
1102
+ http_response = result.response
1103
+ status_code = http_response.status
1104
+ response_content = http_response.body
1105
+ unless status_code == 200
1106
+ error_model = JSON.load(response_content)
1107
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1108
+ end
1109
+
1110
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1111
+ # Deserialize Response
1112
+ if status_code == 200
1113
+ begin
1114
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1115
+ result_mapper = {
1116
+ required: false,
1117
+ serialized_name: 'parsed_response',
1118
+ type: {
1119
+ name: 'String'
1120
+ }
1121
+ }
1122
+ result.body = @client.deserialize(result_mapper, parsed_response)
895
1123
  rescue Exception => e
896
1124
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
897
1125
  end
@@ -951,7 +1179,7 @@ module Azure::ARM::Network
951
1179
  def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
952
1180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
953
1181
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
954
- api_version = '2016-12-01'
1182
+ api_version = '2017-06-01'
955
1183
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
956
1184
 
957
1185
 
@@ -960,7 +1188,7 @@ module Azure::ARM::Network
960
1188
  # Set Headers
961
1189
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
962
1190
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
963
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'
1191
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'
964
1192
 
965
1193
  request_url = @base_url || @client.base_url
966
1194
 
@@ -987,8 +1215,8 @@ module Azure::ARM::Network
987
1215
  if status_code == 200
988
1216
  begin
989
1217
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
990
- result_mapper = BgpPeerStatusListResult.mapper()
991
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1218
+ result_mapper = Azure::ARM::Network::Models::BgpPeerStatusListResult.mapper()
1219
+ result.body = @client.deserialize(result_mapper, parsed_response)
992
1220
  rescue Exception => e
993
1221
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
994
1222
  end
@@ -1048,7 +1276,7 @@ module Azure::ARM::Network
1048
1276
  def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
1049
1277
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1050
1278
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1051
- api_version = '2016-12-01'
1279
+ api_version = '2017-06-01'
1052
1280
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1053
1281
 
1054
1282
 
@@ -1057,7 +1285,7 @@ module Azure::ARM::Network
1057
1285
  # Set Headers
1058
1286
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1059
1287
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1060
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'
1288
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'
1061
1289
 
1062
1290
  request_url = @base_url || @client.base_url
1063
1291
 
@@ -1084,8 +1312,8 @@ module Azure::ARM::Network
1084
1312
  if status_code == 200
1085
1313
  begin
1086
1314
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1087
- result_mapper = GatewayRouteListResult.mapper()
1088
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1315
+ result_mapper = Azure::ARM::Network::Models::GatewayRouteListResult.mapper()
1316
+ result.body = @client.deserialize(result_mapper, parsed_response)
1089
1317
  rescue Exception => e
1090
1318
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1091
1319
  end
@@ -1149,7 +1377,7 @@ module Azure::ARM::Network
1149
1377
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1150
1378
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1151
1379
  fail ArgumentError, 'peer is nil' if peer.nil?
1152
- api_version = '2016-12-01'
1380
+ api_version = '2017-06-01'
1153
1381
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1154
1382
 
1155
1383
 
@@ -1158,7 +1386,7 @@ module Azure::ARM::Network
1158
1386
  # Set Headers
1159
1387
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1160
1388
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1161
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'
1389
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'
1162
1390
 
1163
1391
  request_url = @base_url || @client.base_url
1164
1392
 
@@ -1185,8 +1413,8 @@ module Azure::ARM::Network
1185
1413
  if status_code == 200
1186
1414
  begin
1187
1415
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1188
- result_mapper = GatewayRouteListResult.mapper()
1189
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1416
+ result_mapper = Azure::ARM::Network::Models::GatewayRouteListResult.mapper()
1417
+ result.body = @client.deserialize(result_mapper, parsed_response)
1190
1418
  rescue Exception => e
1191
1419
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1192
1420
  end
@@ -1272,8 +1500,8 @@ module Azure::ARM::Network
1272
1500
  if status_code == 200
1273
1501
  begin
1274
1502
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1275
- result_mapper = VirtualNetworkGatewayListResult.mapper()
1276
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1503
+ result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListResult.mapper()
1504
+ result.body = @client.deserialize(result_mapper, parsed_response)
1277
1505
  rescue Exception => e
1278
1506
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1279
1507
  end