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,5 +1,5 @@
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
 
@@ -67,6 +67,10 @@ module Azure::ARM::Network
67
67
  # @return [PacketCaptures] packet_captures
68
68
  attr_reader :packet_captures
69
69
 
70
+ # @return [AvailablePrivateAccessServices]
71
+ # available_private_access_services
72
+ attr_reader :available_private_access_services
73
+
70
74
  # @return [PublicIPAddresses] public_ipaddresses
71
75
  attr_reader :public_ipaddresses
72
76
 
@@ -131,6 +135,7 @@ module Azure::ARM::Network
131
135
  @security_rules = SecurityRules.new(self)
132
136
  @network_watchers = NetworkWatchers.new(self)
133
137
  @packet_captures = PacketCaptures.new(self)
138
+ @available_private_access_services = AvailablePrivateAccessServices.new(self)
134
139
  @public_ipaddresses = PublicIPAddresses.new(self)
135
140
  @route_filters = RouteFilters.new(self)
136
141
  @route_filter_rules = RouteFilterRules.new(self)
@@ -249,7 +254,7 @@ module Azure::ARM::Network
249
254
  #
250
255
  def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil)
251
256
  fail ArgumentError, 'location is nil' if location.nil?
252
- api_version = '2016-12-01'
257
+ api_version = '2017-06-01'
253
258
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
254
259
 
255
260
 
@@ -258,7 +263,7 @@ module Azure::ARM::Network
258
263
  # Set Headers
259
264
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
260
265
  request_headers['accept-language'] = accept_language unless accept_language.nil?
261
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability'
266
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability'
262
267
 
263
268
  request_url = @base_url || self.base_url
264
269
 
@@ -285,8 +290,8 @@ module Azure::ARM::Network
285
290
  if status_code == 200
286
291
  begin
287
292
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
288
- result_mapper = DnsNameAvailabilityResult.mapper()
289
- result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
293
+ result_mapper = Azure::ARM::Network::Models::DnsNameAvailabilityResult.mapper()
294
+ result.body = self.deserialize(result_mapper, parsed_response)
290
295
  rescue Exception => e
291
296
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
292
297
  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 NetworkSecurityGroups
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -110,7 +109,7 @@ module Azure::ARM::Network
110
109
  def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil)
111
110
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
112
111
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
113
- api_version = '2016-12-01'
112
+ api_version = '2017-06-01'
114
113
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
115
114
 
116
115
 
@@ -119,7 +118,7 @@ module Azure::ARM::Network
119
118
  # Set Headers
120
119
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
121
120
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
122
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
121
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
123
122
 
124
123
  request_url = @base_url || @client.base_url
125
124
 
@@ -146,8 +145,8 @@ module Azure::ARM::Network
146
145
  if status_code == 200
147
146
  begin
148
147
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
149
- result_mapper = NetworkSecurityGroup.mapper()
150
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
148
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroup.mapper()
149
+ result.body = @client.deserialize(result_mapper, parsed_response)
151
150
  rescue Exception => e
152
151
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
153
152
  end
@@ -196,8 +195,8 @@ module Azure::ARM::Network
196
195
  promise = promise.then do |response|
197
196
  # Defining deserialization method.
198
197
  deserialize_method = lambda do |parsed_response|
199
- result_mapper = NetworkSecurityGroup.mapper()
200
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
198
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroup.mapper()
199
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
201
200
  end
202
201
 
203
202
  # Waiting for response.
@@ -241,7 +240,7 @@ module Azure::ARM::Network
241
240
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
241
  #
243
242
  def list_all_async(custom_headers = nil)
244
- api_version = '2016-12-01'
243
+ api_version = '2017-06-01'
245
244
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
246
245
 
247
246
 
@@ -250,7 +249,7 @@ module Azure::ARM::Network
250
249
  # Set Headers
251
250
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
252
251
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
253
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups'
252
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups'
254
253
 
255
254
  request_url = @base_url || @client.base_url
256
255
 
@@ -277,8 +276,8 @@ module Azure::ARM::Network
277
276
  if status_code == 200
278
277
  begin
279
278
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
280
- result_mapper = NetworkSecurityGroupListResult.mapper()
281
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
279
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroupListResult.mapper()
280
+ result.body = @client.deserialize(result_mapper, parsed_response)
282
281
  rescue Exception => e
283
282
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
284
283
  end
@@ -328,7 +327,7 @@ module Azure::ARM::Network
328
327
  #
329
328
  def list_async(resource_group_name, custom_headers = nil)
330
329
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
331
- api_version = '2016-12-01'
330
+ api_version = '2017-06-01'
332
331
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
333
332
 
334
333
 
@@ -337,7 +336,7 @@ module Azure::ARM::Network
337
336
  # Set Headers
338
337
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
339
338
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
340
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups'
339
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups'
341
340
 
342
341
  request_url = @base_url || @client.base_url
343
342
 
@@ -364,8 +363,8 @@ module Azure::ARM::Network
364
363
  if status_code == 200
365
364
  begin
366
365
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
367
- result_mapper = NetworkSecurityGroupListResult.mapper()
368
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
366
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroupListResult.mapper()
367
+ result.body = @client.deserialize(result_mapper, parsed_response)
369
368
  rescue Exception => e
370
369
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
371
370
  end
@@ -421,7 +420,7 @@ module Azure::ARM::Network
421
420
  def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil)
422
421
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
423
422
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
424
- api_version = '2016-12-01'
423
+ api_version = '2017-06-01'
425
424
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
426
425
 
427
426
 
@@ -430,7 +429,7 @@ module Azure::ARM::Network
430
429
  # Set Headers
431
430
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
432
431
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
433
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
432
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
434
433
 
435
434
  request_url = @base_url || @client.base_url
436
435
 
@@ -512,7 +511,7 @@ module Azure::ARM::Network
512
511
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
513
512
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
514
513
  fail ArgumentError, 'parameters is nil' if parameters.nil?
515
- api_version = '2016-12-01'
514
+ api_version = '2017-06-01'
516
515
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
517
516
 
518
517
 
@@ -525,11 +524,11 @@ module Azure::ARM::Network
525
524
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
526
525
 
527
526
  # Serialize Request
528
- request_mapper = NetworkSecurityGroup.mapper()
529
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
527
+ request_mapper = Azure::ARM::Network::Models::NetworkSecurityGroup.mapper()
528
+ request_content = @client.serialize(request_mapper, parameters)
530
529
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
531
530
 
532
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
531
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'
533
532
 
534
533
  request_url = @base_url || @client.base_url
535
534
 
@@ -557,8 +556,8 @@ module Azure::ARM::Network
557
556
  if status_code == 201
558
557
  begin
559
558
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
560
- result_mapper = NetworkSecurityGroup.mapper()
561
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
559
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroup.mapper()
560
+ result.body = @client.deserialize(result_mapper, parsed_response)
562
561
  rescue Exception => e
563
562
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
564
563
  end
@@ -567,8 +566,8 @@ module Azure::ARM::Network
567
566
  if status_code == 200
568
567
  begin
569
568
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
570
- result_mapper = NetworkSecurityGroup.mapper()
571
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
569
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroup.mapper()
570
+ result.body = @client.deserialize(result_mapper, parsed_response)
572
571
  rescue Exception => e
573
572
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
574
573
  end
@@ -654,8 +653,8 @@ module Azure::ARM::Network
654
653
  if status_code == 200
655
654
  begin
656
655
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
657
- result_mapper = NetworkSecurityGroupListResult.mapper()
658
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
656
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroupListResult.mapper()
657
+ result.body = @client.deserialize(result_mapper, parsed_response)
659
658
  rescue Exception => e
660
659
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
661
660
  end
@@ -741,8 +740,8 @@ module Azure::ARM::Network
741
740
  if status_code == 200
742
741
  begin
743
742
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
744
- result_mapper = NetworkSecurityGroupListResult.mapper()
745
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
743
+ result_mapper = Azure::ARM::Network::Models::NetworkSecurityGroupListResult.mapper()
744
+ result.body = @client.deserialize(result_mapper, parsed_response)
746
745
  rescue Exception => e
747
746
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
748
747
  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 NetworkWatchers
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -71,7 +70,7 @@ module Azure::ARM::Network
71
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
72
71
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
73
72
  fail ArgumentError, 'parameters is nil' if parameters.nil?
74
- api_version = '2016-12-01'
73
+ api_version = '2017-06-01'
75
74
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
75
 
77
76
 
@@ -84,11 +83,11 @@ module Azure::ARM::Network
84
83
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
85
84
 
86
85
  # Serialize Request
87
- request_mapper = NetworkWatcher.mapper()
88
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
86
+ request_mapper = Azure::ARM::Network::Models::NetworkWatcher.mapper()
87
+ request_content = @client.serialize(request_mapper, parameters)
89
88
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
90
89
 
91
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
90
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
92
91
 
93
92
  request_url = @base_url || @client.base_url
94
93
 
@@ -116,8 +115,8 @@ module Azure::ARM::Network
116
115
  if status_code == 200
117
116
  begin
118
117
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
119
- result_mapper = NetworkWatcher.mapper()
120
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
118
+ result_mapper = Azure::ARM::Network::Models::NetworkWatcher.mapper()
119
+ result.body = @client.deserialize(result_mapper, parsed_response)
121
120
  rescue Exception => e
122
121
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
123
122
  end
@@ -126,8 +125,8 @@ module Azure::ARM::Network
126
125
  if status_code == 201
127
126
  begin
128
127
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
129
- result_mapper = NetworkWatcher.mapper()
130
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
128
+ result_mapper = Azure::ARM::Network::Models::NetworkWatcher.mapper()
129
+ result.body = @client.deserialize(result_mapper, parsed_response)
131
130
  rescue Exception => e
132
131
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
133
132
  end
@@ -181,7 +180,7 @@ module Azure::ARM::Network
181
180
  def get_async(resource_group_name, network_watcher_name, custom_headers = nil)
182
181
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
182
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
184
- api_version = '2016-12-01'
183
+ api_version = '2017-06-01'
185
184
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
186
185
 
187
186
 
@@ -190,7 +189,7 @@ module Azure::ARM::Network
190
189
  # Set Headers
191
190
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
192
191
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
193
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
192
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
194
193
 
195
194
  request_url = @base_url || @client.base_url
196
195
 
@@ -217,8 +216,8 @@ module Azure::ARM::Network
217
216
  if status_code == 200
218
217
  begin
219
218
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
220
- result_mapper = NetworkWatcher.mapper()
221
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
219
+ result_mapper = Azure::ARM::Network::Models::NetworkWatcher.mapper()
220
+ result.body = @client.deserialize(result_mapper, parsed_response)
222
221
  rescue Exception => e
223
222
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
224
223
  end
@@ -306,7 +305,7 @@ module Azure::ARM::Network
306
305
  #
307
306
  def list_async(resource_group_name, custom_headers = nil)
308
307
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
309
- api_version = '2016-12-01'
308
+ api_version = '2017-06-01'
310
309
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
311
310
 
312
311
 
@@ -315,7 +314,7 @@ module Azure::ARM::Network
315
314
  # Set Headers
316
315
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
317
316
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
318
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers'
317
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers'
319
318
 
320
319
  request_url = @base_url || @client.base_url
321
320
 
@@ -342,8 +341,8 @@ module Azure::ARM::Network
342
341
  if status_code == 200
343
342
  begin
344
343
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
345
- result_mapper = NetworkWatcherListResult.mapper()
346
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
344
+ result_mapper = Azure::ARM::Network::Models::NetworkWatcherListResult.mapper()
345
+ result.body = @client.deserialize(result_mapper, parsed_response)
347
346
  rescue Exception => e
348
347
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
349
348
  end
@@ -389,7 +388,7 @@ module Azure::ARM::Network
389
388
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
390
389
  #
391
390
  def list_all_async(custom_headers = nil)
392
- api_version = '2016-12-01'
391
+ api_version = '2017-06-01'
393
392
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
394
393
 
395
394
 
@@ -398,7 +397,7 @@ module Azure::ARM::Network
398
397
  # Set Headers
399
398
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
400
399
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
401
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers'
400
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers'
402
401
 
403
402
  request_url = @base_url || @client.base_url
404
403
 
@@ -425,8 +424,8 @@ module Azure::ARM::Network
425
424
  if status_code == 200
426
425
  begin
427
426
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
428
- result_mapper = NetworkWatcherListResult.mapper()
429
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
427
+ result_mapper = Azure::ARM::Network::Models::NetworkWatcherListResult.mapper()
428
+ result.body = @client.deserialize(result_mapper, parsed_response)
430
429
  rescue Exception => e
431
430
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
432
431
  end
@@ -487,7 +486,7 @@ module Azure::ARM::Network
487
486
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
488
487
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
489
488
  fail ArgumentError, 'parameters is nil' if parameters.nil?
490
- api_version = '2016-12-01'
489
+ api_version = '2017-06-01'
491
490
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
492
491
 
493
492
 
@@ -500,11 +499,11 @@ module Azure::ARM::Network
500
499
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
501
500
 
502
501
  # Serialize Request
503
- request_mapper = TopologyParameters.mapper()
504
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
502
+ request_mapper = Azure::ARM::Network::Models::TopologyParameters.mapper()
503
+ request_content = @client.serialize(request_mapper, parameters)
505
504
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
506
505
 
507
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology'
506
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology'
508
507
 
509
508
  request_url = @base_url || @client.base_url
510
509
 
@@ -532,8 +531,8 @@ module Azure::ARM::Network
532
531
  if status_code == 200
533
532
  begin
534
533
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
535
- result_mapper = Topology.mapper()
536
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
534
+ result_mapper = Azure::ARM::Network::Models::Topology.mapper()
535
+ result.body = @client.deserialize(result_mapper, parsed_response)
537
536
  rescue Exception => e
538
537
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
539
538
  end
@@ -581,8 +580,8 @@ module Azure::ARM::Network
581
580
  promise = promise.then do |response|
582
581
  # Defining deserialization method.
583
582
  deserialize_method = lambda do |parsed_response|
584
- result_mapper = VerificationIPFlowResult.mapper()
585
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
583
+ result_mapper = Azure::ARM::Network::Models::VerificationIPFlowResult.mapper()
584
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
586
585
  end
587
586
 
588
587
  # Waiting for response.
@@ -627,8 +626,8 @@ module Azure::ARM::Network
627
626
  promise = promise.then do |response|
628
627
  # Defining deserialization method.
629
628
  deserialize_method = lambda do |parsed_response|
630
- result_mapper = NextHopResult.mapper()
631
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
629
+ result_mapper = Azure::ARM::Network::Models::NextHopResult.mapper()
630
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
632
631
  end
633
632
 
634
633
  # Waiting for response.
@@ -673,8 +672,8 @@ module Azure::ARM::Network
673
672
  promise = promise.then do |response|
674
673
  # Defining deserialization method.
675
674
  deserialize_method = lambda do |parsed_response|
676
- result_mapper = SecurityGroupViewResult.mapper()
677
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
675
+ result_mapper = Azure::ARM::Network::Models::SecurityGroupViewResult.mapper()
676
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
678
677
  end
679
678
 
680
679
  # Waiting for response.
@@ -721,8 +720,8 @@ module Azure::ARM::Network
721
720
  promise = promise.then do |response|
722
721
  # Defining deserialization method.
723
722
  deserialize_method = lambda do |parsed_response|
724
- result_mapper = TroubleshootingResult.mapper()
725
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
723
+ result_mapper = Azure::ARM::Network::Models::TroubleshootingResult.mapper()
724
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
726
725
  end
727
726
 
728
727
  # Waiting for response.
@@ -769,8 +768,8 @@ module Azure::ARM::Network
769
768
  promise = promise.then do |response|
770
769
  # Defining deserialization method.
771
770
  deserialize_method = lambda do |parsed_response|
772
- result_mapper = TroubleshootingResult.mapper()
773
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
771
+ result_mapper = Azure::ARM::Network::Models::TroubleshootingResult.mapper()
772
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
774
773
  end
775
774
 
776
775
  # Waiting for response.
@@ -819,8 +818,8 @@ module Azure::ARM::Network
819
818
  promise = promise.then do |response|
820
819
  # Defining deserialization method.
821
820
  deserialize_method = lambda do |parsed_response|
822
- result_mapper = FlowLogInformation.mapper()
823
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
821
+ result_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
822
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
824
823
  end
825
824
 
826
825
  # Waiting for response.
@@ -869,8 +868,60 @@ module Azure::ARM::Network
869
868
  promise = promise.then do |response|
870
869
  # Defining deserialization method.
871
870
  deserialize_method = lambda do |parsed_response|
872
- result_mapper = FlowLogInformation.mapper()
873
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
871
+ result_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
872
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
873
+ end
874
+
875
+ # Waiting for response.
876
+ @client.get_long_running_operation_result(response, deserialize_method)
877
+ end
878
+
879
+ promise
880
+ end
881
+
882
+ #
883
+ # Verifies the possibility of establishing a direct TCP connection from a
884
+ # virtual machine to a given endpoint including another VM or an arbitrary
885
+ # remote server.
886
+ #
887
+ # @param resource_group_name [String] The name of the network watcher resource
888
+ # group.
889
+ # @param network_watcher_name [String] The name of the network watcher
890
+ # resource.
891
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
892
+ # connectivity check will be performed.
893
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
894
+ # will be added to the HTTP request.
895
+ #
896
+ # @return [ConnectivityInformation] operation results.
897
+ #
898
+ def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers = nil)
899
+ response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value!
900
+ response.body unless response.nil?
901
+ end
902
+
903
+ #
904
+ # @param resource_group_name [String] The name of the network watcher resource
905
+ # group.
906
+ # @param network_watcher_name [String] The name of the network watcher
907
+ # resource.
908
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
909
+ # connectivity check will be performed.
910
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
+ # will be added to the HTTP request.
912
+ #
913
+ # @return [Concurrent::Promise] promise which provides async access to http
914
+ # response.
915
+ #
916
+ def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil)
917
+ # Send request
918
+ promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers)
919
+
920
+ promise = promise.then do |response|
921
+ # Defining deserialization method.
922
+ deserialize_method = lambda do |parsed_response|
923
+ result_mapper = Azure::ARM::Network::Models::ConnectivityInformation.mapper()
924
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
874
925
  end
875
926
 
876
927
  # Waiting for response.
@@ -921,7 +972,7 @@ module Azure::ARM::Network
921
972
  def begin_delete_async(resource_group_name, network_watcher_name, custom_headers = nil)
922
973
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
923
974
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
924
- api_version = '2016-12-01'
975
+ api_version = '2017-06-01'
925
976
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
926
977
 
927
978
 
@@ -930,7 +981,7 @@ module Azure::ARM::Network
930
981
  # Set Headers
931
982
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
932
983
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
933
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
984
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
934
985
 
935
986
  request_url = @base_url || @client.base_url
936
987
 
@@ -1012,7 +1063,7 @@ module Azure::ARM::Network
1012
1063
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1013
1064
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1014
1065
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1015
- api_version = '2016-12-01'
1066
+ api_version = '2017-06-01'
1016
1067
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1017
1068
 
1018
1069
 
@@ -1025,11 +1076,11 @@ module Azure::ARM::Network
1025
1076
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1026
1077
 
1027
1078
  # Serialize Request
1028
- request_mapper = VerificationIPFlowParameters.mapper()
1029
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1079
+ request_mapper = Azure::ARM::Network::Models::VerificationIPFlowParameters.mapper()
1080
+ request_content = @client.serialize(request_mapper, parameters)
1030
1081
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1031
1082
 
1032
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify'
1083
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify'
1033
1084
 
1034
1085
  request_url = @base_url || @client.base_url
1035
1086
 
@@ -1057,8 +1108,8 @@ module Azure::ARM::Network
1057
1108
  if status_code == 200
1058
1109
  begin
1059
1110
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1060
- result_mapper = VerificationIPFlowResult.mapper()
1061
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1111
+ result_mapper = Azure::ARM::Network::Models::VerificationIPFlowResult.mapper()
1112
+ result.body = @client.deserialize(result_mapper, parsed_response)
1062
1113
  rescue Exception => e
1063
1114
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1064
1115
  end
@@ -1067,8 +1118,8 @@ module Azure::ARM::Network
1067
1118
  if status_code == 202
1068
1119
  begin
1069
1120
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1070
- result_mapper = VerificationIPFlowResult.mapper()
1071
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1121
+ result_mapper = Azure::ARM::Network::Models::VerificationIPFlowResult.mapper()
1122
+ result.body = @client.deserialize(result_mapper, parsed_response)
1072
1123
  rescue Exception => e
1073
1124
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1074
1125
  end
@@ -1129,7 +1180,7 @@ module Azure::ARM::Network
1129
1180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1130
1181
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1131
1182
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1132
- api_version = '2016-12-01'
1183
+ api_version = '2017-06-01'
1133
1184
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1134
1185
 
1135
1186
 
@@ -1142,11 +1193,11 @@ module Azure::ARM::Network
1142
1193
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1143
1194
 
1144
1195
  # Serialize Request
1145
- request_mapper = NextHopParameters.mapper()
1146
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1196
+ request_mapper = Azure::ARM::Network::Models::NextHopParameters.mapper()
1197
+ request_content = @client.serialize(request_mapper, parameters)
1147
1198
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1148
1199
 
1149
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop'
1200
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop'
1150
1201
 
1151
1202
  request_url = @base_url || @client.base_url
1152
1203
 
@@ -1174,8 +1225,8 @@ module Azure::ARM::Network
1174
1225
  if status_code == 200
1175
1226
  begin
1176
1227
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1177
- result_mapper = NextHopResult.mapper()
1178
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1228
+ result_mapper = Azure::ARM::Network::Models::NextHopResult.mapper()
1229
+ result.body = @client.deserialize(result_mapper, parsed_response)
1179
1230
  rescue Exception => e
1180
1231
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1181
1232
  end
@@ -1184,8 +1235,8 @@ module Azure::ARM::Network
1184
1235
  if status_code == 202
1185
1236
  begin
1186
1237
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1187
- result_mapper = NextHopResult.mapper()
1188
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1238
+ result_mapper = Azure::ARM::Network::Models::NextHopResult.mapper()
1239
+ result.body = @client.deserialize(result_mapper, parsed_response)
1189
1240
  rescue Exception => e
1190
1241
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1191
1242
  end
@@ -1246,7 +1297,7 @@ module Azure::ARM::Network
1246
1297
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1247
1298
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1248
1299
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1249
- api_version = '2016-12-01'
1300
+ api_version = '2017-06-01'
1250
1301
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1251
1302
 
1252
1303
 
@@ -1259,11 +1310,11 @@ module Azure::ARM::Network
1259
1310
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1260
1311
 
1261
1312
  # Serialize Request
1262
- request_mapper = SecurityGroupViewParameters.mapper()
1263
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1313
+ request_mapper = Azure::ARM::Network::Models::SecurityGroupViewParameters.mapper()
1314
+ request_content = @client.serialize(request_mapper, parameters)
1264
1315
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1265
1316
 
1266
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView'
1317
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView'
1267
1318
 
1268
1319
  request_url = @base_url || @client.base_url
1269
1320
 
@@ -1291,8 +1342,8 @@ module Azure::ARM::Network
1291
1342
  if status_code == 200
1292
1343
  begin
1293
1344
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1294
- result_mapper = SecurityGroupViewResult.mapper()
1295
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1345
+ result_mapper = Azure::ARM::Network::Models::SecurityGroupViewResult.mapper()
1346
+ result.body = @client.deserialize(result_mapper, parsed_response)
1296
1347
  rescue Exception => e
1297
1348
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1298
1349
  end
@@ -1301,8 +1352,8 @@ module Azure::ARM::Network
1301
1352
  if status_code == 202
1302
1353
  begin
1303
1354
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1304
- result_mapper = SecurityGroupViewResult.mapper()
1305
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1355
+ result_mapper = Azure::ARM::Network::Models::SecurityGroupViewResult.mapper()
1356
+ result.body = @client.deserialize(result_mapper, parsed_response)
1306
1357
  rescue Exception => e
1307
1358
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1308
1359
  end
@@ -1366,7 +1417,7 @@ module Azure::ARM::Network
1366
1417
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1367
1418
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1368
1419
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1369
- api_version = '2016-12-01'
1420
+ api_version = '2017-06-01'
1370
1421
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1371
1422
 
1372
1423
 
@@ -1379,11 +1430,11 @@ module Azure::ARM::Network
1379
1430
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1380
1431
 
1381
1432
  # Serialize Request
1382
- request_mapper = TroubleshootingParameters.mapper()
1383
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1433
+ request_mapper = Azure::ARM::Network::Models::TroubleshootingParameters.mapper()
1434
+ request_content = @client.serialize(request_mapper, parameters)
1384
1435
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1385
1436
 
1386
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot'
1437
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot'
1387
1438
 
1388
1439
  request_url = @base_url || @client.base_url
1389
1440
 
@@ -1411,8 +1462,8 @@ module Azure::ARM::Network
1411
1462
  if status_code == 200
1412
1463
  begin
1413
1464
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1414
- result_mapper = TroubleshootingResult.mapper()
1415
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1465
+ result_mapper = Azure::ARM::Network::Models::TroubleshootingResult.mapper()
1466
+ result.body = @client.deserialize(result_mapper, parsed_response)
1416
1467
  rescue Exception => e
1417
1468
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1418
1469
  end
@@ -1421,8 +1472,8 @@ module Azure::ARM::Network
1421
1472
  if status_code == 202
1422
1473
  begin
1423
1474
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1424
- result_mapper = TroubleshootingResult.mapper()
1425
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1475
+ result_mapper = Azure::ARM::Network::Models::TroubleshootingResult.mapper()
1476
+ result.body = @client.deserialize(result_mapper, parsed_response)
1426
1477
  rescue Exception => e
1427
1478
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1428
1479
  end
@@ -1486,7 +1537,7 @@ module Azure::ARM::Network
1486
1537
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1487
1538
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1488
1539
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1489
- api_version = '2016-12-01'
1540
+ api_version = '2017-06-01'
1490
1541
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1491
1542
 
1492
1543
 
@@ -1499,11 +1550,11 @@ module Azure::ARM::Network
1499
1550
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1500
1551
 
1501
1552
  # Serialize Request
1502
- request_mapper = QueryTroubleshootingParameters.mapper()
1503
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1553
+ request_mapper = Azure::ARM::Network::Models::QueryTroubleshootingParameters.mapper()
1554
+ request_content = @client.serialize(request_mapper, parameters)
1504
1555
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1505
1556
 
1506
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult'
1557
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult'
1507
1558
 
1508
1559
  request_url = @base_url || @client.base_url
1509
1560
 
@@ -1531,8 +1582,8 @@ module Azure::ARM::Network
1531
1582
  if status_code == 200
1532
1583
  begin
1533
1584
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1534
- result_mapper = TroubleshootingResult.mapper()
1535
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1585
+ result_mapper = Azure::ARM::Network::Models::TroubleshootingResult.mapper()
1586
+ result.body = @client.deserialize(result_mapper, parsed_response)
1536
1587
  rescue Exception => e
1537
1588
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1538
1589
  end
@@ -1541,8 +1592,8 @@ module Azure::ARM::Network
1541
1592
  if status_code == 202
1542
1593
  begin
1543
1594
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1544
- result_mapper = TroubleshootingResult.mapper()
1545
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1595
+ result_mapper = Azure::ARM::Network::Models::TroubleshootingResult.mapper()
1596
+ result.body = @client.deserialize(result_mapper, parsed_response)
1546
1597
  rescue Exception => e
1547
1598
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1548
1599
  end
@@ -1609,7 +1660,7 @@ module Azure::ARM::Network
1609
1660
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1610
1661
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1611
1662
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1612
- api_version = '2016-12-01'
1663
+ api_version = '2017-06-01'
1613
1664
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1614
1665
 
1615
1666
 
@@ -1622,11 +1673,11 @@ module Azure::ARM::Network
1622
1673
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1623
1674
 
1624
1675
  # Serialize Request
1625
- request_mapper = FlowLogInformation.mapper()
1626
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1676
+ request_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
1677
+ request_content = @client.serialize(request_mapper, parameters)
1627
1678
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1628
1679
 
1629
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog'
1680
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog'
1630
1681
 
1631
1682
  request_url = @base_url || @client.base_url
1632
1683
 
@@ -1654,8 +1705,8 @@ module Azure::ARM::Network
1654
1705
  if status_code == 200
1655
1706
  begin
1656
1707
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1657
- result_mapper = FlowLogInformation.mapper()
1658
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1708
+ result_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
1709
+ result.body = @client.deserialize(result_mapper, parsed_response)
1659
1710
  rescue Exception => e
1660
1711
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1661
1712
  end
@@ -1664,8 +1715,8 @@ module Azure::ARM::Network
1664
1715
  if status_code == 202
1665
1716
  begin
1666
1717
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1667
- result_mapper = FlowLogInformation.mapper()
1668
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1718
+ result_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
1719
+ result.body = @client.deserialize(result_mapper, parsed_response)
1669
1720
  rescue Exception => e
1670
1721
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1671
1722
  end
@@ -1732,7 +1783,136 @@ module Azure::ARM::Network
1732
1783
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1733
1784
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1734
1785
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1735
- api_version = '2016-12-01'
1786
+ api_version = '2017-06-01'
1787
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1788
+
1789
+
1790
+ request_headers = {}
1791
+
1792
+ # Set Headers
1793
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1794
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1795
+
1796
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1797
+
1798
+ # Serialize Request
1799
+ request_mapper = Azure::ARM::Network::Models::FlowLogStatusParameters.mapper()
1800
+ request_content = @client.serialize(request_mapper, parameters)
1801
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1802
+
1803
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus'
1804
+
1805
+ request_url = @base_url || @client.base_url
1806
+
1807
+ options = {
1808
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1809
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1810
+ query_params: {'api-version' => api_version},
1811
+ body: request_content,
1812
+ headers: request_headers.merge(custom_headers || {}),
1813
+ base_url: request_url
1814
+ }
1815
+ promise = @client.make_request_async(:post, path_template, options)
1816
+
1817
+ promise = promise.then do |result|
1818
+ http_response = result.response
1819
+ status_code = http_response.status
1820
+ response_content = http_response.body
1821
+ unless status_code == 200 || status_code == 202
1822
+ error_model = JSON.load(response_content)
1823
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1824
+ end
1825
+
1826
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1827
+ # Deserialize Response
1828
+ if status_code == 200
1829
+ begin
1830
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1831
+ result_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
1832
+ result.body = @client.deserialize(result_mapper, parsed_response)
1833
+ rescue Exception => e
1834
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1835
+ end
1836
+ end
1837
+ # Deserialize Response
1838
+ if status_code == 202
1839
+ begin
1840
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1841
+ result_mapper = Azure::ARM::Network::Models::FlowLogInformation.mapper()
1842
+ result.body = @client.deserialize(result_mapper, parsed_response)
1843
+ rescue Exception => e
1844
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1845
+ end
1846
+ end
1847
+
1848
+ result
1849
+ end
1850
+
1851
+ promise.execute
1852
+ end
1853
+
1854
+ #
1855
+ # Verifies the possibility of establishing a direct TCP connection from a
1856
+ # virtual machine to a given endpoint including another VM or an arbitrary
1857
+ # remote server.
1858
+ #
1859
+ # @param resource_group_name [String] The name of the network watcher resource
1860
+ # group.
1861
+ # @param network_watcher_name [String] The name of the network watcher
1862
+ # resource.
1863
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1864
+ # connectivity check will be performed.
1865
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1866
+ # will be added to the HTTP request.
1867
+ #
1868
+ # @return [ConnectivityInformation] operation results.
1869
+ #
1870
+ def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers = nil)
1871
+ response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value!
1872
+ response.body unless response.nil?
1873
+ end
1874
+
1875
+ #
1876
+ # Verifies the possibility of establishing a direct TCP connection from a
1877
+ # virtual machine to a given endpoint including another VM or an arbitrary
1878
+ # remote server.
1879
+ #
1880
+ # @param resource_group_name [String] The name of the network watcher resource
1881
+ # group.
1882
+ # @param network_watcher_name [String] The name of the network watcher
1883
+ # resource.
1884
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1885
+ # connectivity check will be performed.
1886
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1887
+ # will be added to the HTTP request.
1888
+ #
1889
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1890
+ #
1891
+ def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil)
1892
+ begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value!
1893
+ end
1894
+
1895
+ #
1896
+ # Verifies the possibility of establishing a direct TCP connection from a
1897
+ # virtual machine to a given endpoint including another VM or an arbitrary
1898
+ # remote server.
1899
+ #
1900
+ # @param resource_group_name [String] The name of the network watcher resource
1901
+ # group.
1902
+ # @param network_watcher_name [String] The name of the network watcher
1903
+ # resource.
1904
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1905
+ # connectivity check will be performed.
1906
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1907
+ # to the HTTP request.
1908
+ #
1909
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1910
+ #
1911
+ def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil)
1912
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1913
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1914
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1915
+ api_version = '2017-06-01'
1736
1916
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1737
1917
 
1738
1918
 
@@ -1745,11 +1925,11 @@ module Azure::ARM::Network
1745
1925
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1746
1926
 
1747
1927
  # Serialize Request
1748
- request_mapper = FlowLogStatusParameters.mapper()
1749
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
1928
+ request_mapper = Azure::ARM::Network::Models::ConnectivityParameters.mapper()
1929
+ request_content = @client.serialize(request_mapper, parameters)
1750
1930
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1751
1931
 
1752
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus'
1932
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck'
1753
1933
 
1754
1934
  request_url = @base_url || @client.base_url
1755
1935
 
@@ -1777,8 +1957,8 @@ module Azure::ARM::Network
1777
1957
  if status_code == 200
1778
1958
  begin
1779
1959
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1780
- result_mapper = FlowLogInformation.mapper()
1781
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1960
+ result_mapper = Azure::ARM::Network::Models::ConnectivityInformation.mapper()
1961
+ result.body = @client.deserialize(result_mapper, parsed_response)
1782
1962
  rescue Exception => e
1783
1963
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1784
1964
  end
@@ -1787,8 +1967,8 @@ module Azure::ARM::Network
1787
1967
  if status_code == 202
1788
1968
  begin
1789
1969
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1790
- result_mapper = FlowLogInformation.mapper()
1791
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1970
+ result_mapper = Azure::ARM::Network::Models::ConnectivityInformation.mapper()
1971
+ result.body = @client.deserialize(result_mapper, parsed_response)
1792
1972
  rescue Exception => e
1793
1973
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1794
1974
  end