azure_mgmt_network 0.18.8 → 0.18.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (681) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
  4. data/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  5. data/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateways.rb +140 -84
  6. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  7. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  8. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  9. data/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  10. data/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +143 -87
  11. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  12. data/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  13. data/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb +143 -87
  14. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  15. data/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  16. data/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateways.rb +143 -87
  17. data/lib/2017-03-30/generated/azure_mgmt_network.rb +10 -9
  18. data/lib/2017-03-30/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -1
  19. data/lib/2017-03-30/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -1
  20. data/lib/2017-03-30/generated/azure_mgmt_network/models/delegation.rb +2 -2
  21. data/lib/2017-03-30/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +13 -0
  22. data/lib/2017-03-30/generated/azure_mgmt_network/models/ip_tag.rb +2 -2
  23. data/lib/2017-03-30/generated/azure_mgmt_network/models/ipconfiguration.rb +1 -1
  24. data/lib/2017-03-30/generated/azure_mgmt_network/models/network_interface.rb +7 -7
  25. data/lib/2017-03-30/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +1 -1
  26. data/lib/2017-03-30/generated/azure_mgmt_network/models/{interface_endpoint.rb → private_endpoint.rb} +48 -42
  27. data/lib/2017-03-30/generated/azure_mgmt_network/models/private_link_service_connection.rb +111 -0
  28. data/lib/2017-03-30/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  29. data/lib/2017-03-30/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
  30. data/lib/2017-03-30/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +1 -1
  31. data/lib/2017-03-30/generated/azure_mgmt_network/models/resource_navigation_link.rb +13 -1
  32. data/lib/2017-03-30/generated/azure_mgmt_network/models/route.rb +1 -1
  33. data/lib/2017-03-30/generated/azure_mgmt_network/models/security_rule.rb +1 -2
  34. data/lib/2017-03-30/generated/azure_mgmt_network/models/service_association_link.rb +41 -0
  35. data/lib/2017-03-30/generated/azure_mgmt_network/models/subnet.rb +8 -8
  36. data/lib/2017-03-30/generated/azure_mgmt_network/models/virtual_network_tap.rb +3 -3
  37. data/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb +10 -10
  38. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +5 -1
  39. data/lib/2017-03-30/generated/azure_mgmt_network/public_ipaddresses.rb +6 -6
  40. data/lib/2017-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  41. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  42. data/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  43. data/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +144 -88
  44. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  45. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  46. data/lib/2017-10-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  47. data/lib/2017-10-01/generated/azure_mgmt_network/virtual_network_gateways.rb +144 -88
  48. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  49. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  50. data/lib/2017-11-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  51. data/lib/2017-11-01/generated/azure_mgmt_network/virtual_network_gateways.rb +144 -88
  52. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  53. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  54. data/lib/2018-01-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  55. data/lib/2018-01-01/generated/azure_mgmt_network/virtual_network_gateways.rb +144 -88
  56. data/lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  57. data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  58. data/lib/2018-02-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  59. data/lib/2018-02-01/generated/azure_mgmt_network/virtual_network_gateways.rb +145 -89
  60. data/lib/2018-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  61. data/lib/2018-04-01/generated/azure_mgmt_network/models/vpn_connection.rb +13 -43
  62. data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  63. data/lib/2018-04-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  64. data/lib/2018-04-01/generated/azure_mgmt_network/virtual_network_gateways.rb +146 -90
  65. data/lib/2018-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  66. data/lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb +13 -43
  67. data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  68. data/lib/2018-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  69. data/lib/2018-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb +147 -91
  70. data/lib/2018-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  71. data/lib/2018-07-01/generated/azure_mgmt_network/models/vpn_connection.rb +13 -43
  72. data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  73. data/lib/2018-07-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  74. data/lib/2018-07-01/generated/azure_mgmt_network/virtual_network_gateways.rb +146 -90
  75. data/lib/2018-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  76. data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  77. data/lib/2018-08-01/generated/azure_mgmt_network/network_profiles.rb +83 -0
  78. data/lib/2018-08-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  79. data/lib/2018-08-01/generated/azure_mgmt_network/virtual_network_gateways.rb +147 -91
  80. data/lib/2018-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  81. data/lib/2018-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  82. data/lib/2018-10-01/generated/azure_mgmt_network/network_profiles.rb +83 -0
  83. data/lib/2018-10-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  84. data/lib/2018-10-01/generated/azure_mgmt_network/virtual_network_gateways.rb +147 -91
  85. data/lib/2018-11-01/generated/azure_mgmt_network.rb +122 -125
  86. data/lib/2018-11-01/generated/azure_mgmt_network/application_gateways.rb +51 -6
  87. data/lib/2018-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  88. data/lib/2018-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  89. data/lib/2018-11-01/generated/azure_mgmt_network/network_profiles.rb +83 -0
  90. data/lib/2018-11-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  91. data/lib/2018-11-01/generated/azure_mgmt_network/virtual_network_gateways.rb +147 -91
  92. data/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  93. data/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  94. data/lib/2018-12-01/generated/azure_mgmt_network/network_profiles.rb +83 -0
  95. data/lib/2018-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  96. data/lib/2018-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb +147 -91
  97. data/lib/2019-02-01/generated/azure_mgmt_network.rb +133 -129
  98. data/lib/2019-02-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +3 -0
  99. data/lib/2019-02-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +67 -0
  100. data/lib/2019-02-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +67 -0
  101. data/lib/2019-02-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +1 -1
  102. data/lib/2019-02-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +1 -1
  103. data/lib/2019-02-01/generated/azure_mgmt_network/network_management_client.rb +9 -1
  104. data/lib/2019-02-01/generated/azure_mgmt_network/network_profiles.rb +83 -0
  105. data/lib/2019-02-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  106. data/lib/2019-02-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  107. data/lib/2019-02-01/generated/azure_mgmt_network/virtual_network_gateways.rb +278 -166
  108. data/lib/2019-04-01/generated/azure_mgmt_network.rb +593 -0
  109. data/lib/2019-04-01/generated/azure_mgmt_network/application_gateways.rb +2276 -0
  110. data/lib/2019-04-01/generated/azure_mgmt_network/application_security_groups.rb +973 -0
  111. data/lib/2019-04-01/generated/azure_mgmt_network/available_delegations.rb +233 -0
  112. data/lib/2019-04-01/generated/azure_mgmt_network/available_endpoint_services.rb +226 -0
  113. data/lib/2019-04-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +233 -0
  114. data/lib/2019-04-01/generated/azure_mgmt_network/available_resource_group_delegations.rb +238 -0
  115. data/lib/2019-04-01/generated/azure_mgmt_network/available_resource_group_private_endpoint_types.rb +238 -0
  116. data/lib/2019-04-01/generated/azure_mgmt_network/azure_firewall_fqdn_tags.rb +221 -0
  117. data/lib/2019-04-01/generated/azure_mgmt_network/azure_firewalls.rb +801 -0
  118. data/lib/2019-04-01/generated/azure_mgmt_network/bastion_hosts.rb +801 -0
  119. data/lib/2019-04-01/generated/azure_mgmt_network/bgp_service_communities.rb +221 -0
  120. data/lib/2019-04-01/generated/azure_mgmt_network/connection_monitors.rb +987 -0
  121. data/lib/2019-04-01/generated/azure_mgmt_network/ddos_custom_policies.rb +558 -0
  122. data/lib/2019-04-01/generated/azure_mgmt_network/ddos_protection_plans.rb +973 -0
  123. data/lib/2019-04-01/generated/azure_mgmt_network/default_security_rules.rb +339 -0
  124. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +631 -0
  125. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_circuit_connections.rb +683 -0
  126. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +626 -0
  127. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_circuits.rb +1603 -0
  128. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_connections.rb +534 -0
  129. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb +648 -0
  130. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_cross_connections.rb +1308 -0
  131. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_gateways.rb +601 -0
  132. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_links.rb +343 -0
  133. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_ports.rb +970 -0
  134. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_ports_locations.rb +331 -0
  135. data/lib/2019-04-01/generated/azure_mgmt_network/express_route_service_providers.rb +221 -0
  136. data/lib/2019-04-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +336 -0
  137. data/lib/2019-04-01/generated/azure_mgmt_network/inbound_nat_rules.rb +629 -0
  138. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +332 -0
  139. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +332 -0
  140. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +329 -0
  141. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +231 -0
  142. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +329 -0
  143. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancer_probes.rb +329 -0
  144. data/lib/2019-04-01/generated/azure_mgmt_network/load_balancers.rb +958 -0
  145. data/lib/2019-04-01/generated/azure_mgmt_network/local_network_gateways.rb +781 -0
  146. data/lib/2019-04-01/generated/azure_mgmt_network/models/access.rb +16 -0
  147. data/lib/{2018-11-01/generated/azure_mgmt_network/models/application_gateway_available_request_headers_result.rb → 2019-04-01/generated/azure_mgmt_network/models/address_space.rb} +12 -12
  148. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway.rb +593 -0
  149. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +102 -0
  150. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_autoscale_configuration.rb +65 -0
  151. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  152. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  153. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  154. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  155. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +131 -0
  156. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +56 -0
  157. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  158. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb +61 -0
  159. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  160. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +83 -0
  161. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  162. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +262 -0
  163. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  164. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  165. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
  166. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
  167. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  168. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
  169. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  170. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  171. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  172. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +141 -0
  173. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +139 -0
  174. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +101 -0
  175. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb +57 -0
  176. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +184 -0
  177. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +104 -0
  178. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  179. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb +132 -0
  180. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  181. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +161 -0
  182. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +219 -0
  183. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  184. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  185. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +199 -0
  186. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  187. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +179 -0
  188. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  189. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule.rb +93 -0
  190. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_action_set.rb +77 -0
  191. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_condition.rb +82 -0
  192. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_set.rb +102 -0
  193. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  194. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +21 -0
  195. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +138 -0
  196. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +42 -0
  197. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  198. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  199. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  200. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  201. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  202. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +18 -0
  203. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_trusted_root_certificate.rb +113 -0
  204. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +164 -0
  205. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +180 -0
  206. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  207. data/lib/2019-04-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  208. data/lib/2019-04-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  209. data/lib/2019-04-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  210. data/lib/2019-04-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  211. data/lib/2019-04-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  212. data/lib/2019-04-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  213. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_delegation.rb +101 -0
  214. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_delegations_result.rb +99 -0
  215. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +69 -0
  216. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_private_endpoint_types_result.rb +100 -0
  217. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  218. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  219. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  220. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  221. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  222. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  223. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall.rb +226 -0
  224. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule.rb +135 -0
  225. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_collection.rb +128 -0
  226. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol.rb +63 -0
  227. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol_type.rb +16 -0
  228. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag.rb +122 -0
  229. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb +99 -0
  230. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_ipconfiguration.rb +119 -0
  231. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb +99 -0
  232. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction.rb +47 -0
  233. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction_type.rb +16 -0
  234. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb +157 -0
  235. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule_collection.rb +129 -0
  236. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_network_rule.rb +134 -0
  237. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_collection.rb +128 -0
  238. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +18 -0
  239. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_rcaction.rb +47 -0
  240. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb +16 -0
  241. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_firewall_threat_intel_mode.rb +17 -0
  242. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +81 -0
  243. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  244. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  245. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  246. data/lib/2019-04-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +108 -0
  247. data/lib/2019-04-01/generated/azure_mgmt_network/models/backend_address_pool.rb +137 -0
  248. data/lib/2019-04-01/generated/azure_mgmt_network/models/bastion_host.rb +143 -0
  249. data/lib/2019-04-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +129 -0
  250. data/lib/2019-04-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb +98 -0
  251. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  252. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  253. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  254. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  255. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  256. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  257. data/lib/2019-04-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  258. data/lib/2019-04-01/generated/azure_mgmt_network/models/circuit_connection_status.rb +17 -0
  259. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor.rb +116 -0
  260. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +70 -0
  261. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  262. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +86 -0
  263. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +68 -0
  264. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +202 -0
  265. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +58 -0
  266. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_monitor_source_status.rb +17 -0
  267. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  268. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_shared_key.rb +54 -0
  269. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  270. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +158 -0
  271. data/lib/2019-04-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  272. data/lib/2019-04-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  273. data/lib/2019-04-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  274. data/lib/2019-04-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  275. data/lib/2019-04-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  276. data/lib/2019-04-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +84 -0
  277. data/lib/2019-04-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  278. data/lib/2019-04-01/generated/azure_mgmt_network/models/container.rb +43 -0
  279. data/lib/2019-04-01/generated/azure_mgmt_network/models/container_network_interface.rb +139 -0
  280. data/lib/2019-04-01/generated/azure_mgmt_network/models/container_network_interface_configuration.rb +133 -0
  281. data/lib/2019-04-01/generated/azure_mgmt_network/models/container_network_interface_ip_configuration.rb +83 -0
  282. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_custom_policy.rb +170 -0
  283. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_custom_policy_protocol.rb +17 -0
  284. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_custom_policy_trigger_sensitivity_override.rb +18 -0
  285. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_protection_plan.rb +165 -0
  286. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_protection_plan_list_result.rb +99 -0
  287. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_settings.rb +61 -0
  288. data/lib/2019-04-01/generated/azure_mgmt_network/models/ddos_settings_protection_coverage.rb +16 -0
  289. data/lib/2019-04-01/generated/azure_mgmt_network/models/delegation.rb +111 -0
  290. data/lib/2019-04-01/generated/azure_mgmt_network/models/device_properties.rb +68 -0
  291. data/lib/2019-04-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  292. data/lib/{2018-11-01/generated/azure_mgmt_network/models/application_gateway_available_response_headers_result.rb → 2019-04-01/generated/azure_mgmt_network/models/dhcp_options.rb} +12 -12
  293. data/lib/2019-04-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  294. data/lib/2019-04-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  295. data/lib/2019-04-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  296. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  297. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  298. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  299. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +260 -0
  300. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_route.rb +135 -0
  301. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  302. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  303. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  304. data/lib/2019-04-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  305. data/lib/2019-04-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  306. data/lib/2019-04-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  307. data/lib/2019-04-01/generated/azure_mgmt_network/models/error.rb +99 -0
  308. data/lib/2019-04-01/generated/azure_mgmt_network/models/error_details.rb +68 -0
  309. data/lib/2019-04-01/generated/azure_mgmt_network/models/error_response.rb +47 -0
  310. data/lib/2019-04-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +92 -0
  311. data/lib/2019-04-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  312. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit.rb +294 -0
  313. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  314. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +115 -0
  315. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_connection.rb +156 -0
  316. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_connection_list_result.rb +101 -0
  317. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  318. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +338 -0
  319. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  320. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +121 -0
  321. data/lib/{2017-03-30/generated/azure_mgmt_network/models/endpoint_service.rb → 2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_id.rb} +7 -8
  322. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  323. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  324. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_reference.rb +46 -0
  325. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +91 -0
  326. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  327. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  328. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +70 -0
  329. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  330. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +18 -0
  331. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  332. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +67 -0
  333. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  334. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  335. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_connection.rb +101 -0
  336. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_connection_id.rb +47 -0
  337. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_connection_list.rb +56 -0
  338. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_cross_connection.rb +228 -0
  339. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_list_result.rb +100 -0
  340. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering.rb +250 -0
  341. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb +102 -0
  342. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_routes_table_summary.rb +83 -0
  343. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_cross_connections_routes_table_summary_list_result.rb +70 -0
  344. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_gateway.rb +158 -0
  345. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb +55 -0
  346. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration.rb +49 -0
  347. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration_bounds.rb +60 -0
  348. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_link.rb +157 -0
  349. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_link_admin_state.rb +16 -0
  350. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_link_connector_type.rb +16 -0
  351. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb +99 -0
  352. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_peering_state.rb +16 -0
  353. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_peering_type.rb +17 -0
  354. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_port.rb +254 -0
  355. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb +98 -0
  356. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_ports_encapsulation.rb +16 -0
  357. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_ports_location.rb +146 -0
  358. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb +61 -0
  359. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb +99 -0
  360. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +136 -0
  361. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  362. data/lib/2019-04-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  363. data/lib/2019-04-01/generated/azure_mgmt_network/models/flow_log_format_parameters.rb +60 -0
  364. data/lib/2019-04-01/generated/azure_mgmt_network/models/flow_log_format_type.rb +15 -0
  365. data/lib/2019-04-01/generated/azure_mgmt_network/models/flow_log_information.rb +110 -0
  366. data/lib/2019-04-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +48 -0
  367. data/lib/2019-04-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +259 -0
  368. data/lib/2019-04-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  369. data/lib/2019-04-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  370. data/lib/2019-04-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb +67 -0
  371. data/lib/2019-04-01/generated/azure_mgmt_network/models/httpconfiguration.rb +85 -0
  372. data/lib/2019-04-01/generated/azure_mgmt_network/models/httpheader.rb +57 -0
  373. data/lib/2019-04-01/generated/azure_mgmt_network/models/httpmethod.rb +15 -0
  374. data/lib/2019-04-01/generated/azure_mgmt_network/models/hub_virtual_network_connection.rb +125 -0
  375. data/lib/2019-04-01/generated/azure_mgmt_network/models/hub_virtual_network_connection_status.rb +18 -0
  376. data/lib/2019-04-01/generated/azure_mgmt_network/models/ike_encryption.rb +21 -0
  377. data/lib/2019-04-01/generated/azure_mgmt_network/models/ike_integrity.rb +20 -0
  378. data/lib/2019-04-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +183 -0
  379. data/lib/2019-04-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +186 -0
  380. data/lib/2019-04-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  381. data/lib/2019-04-01/generated/azure_mgmt_network/models/ip_flow_protocol.rb +16 -0
  382. data/lib/2019-04-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  383. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  384. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  385. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipconfiguration.rb +126 -0
  386. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipconfiguration_profile.rb +104 -0
  387. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  388. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  389. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipsec_policy.rb +137 -0
  390. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +94 -0
  391. data/lib/2019-04-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  392. data/lib/2019-04-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  393. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_hub_virtual_network_connections_result.rb +102 -0
  394. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_p2svpn_gateways_result.rb +100 -0
  395. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_p2svpn_server_configurations_result.rb +102 -0
  396. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb +100 -0
  397. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_virtual_wans_result.rb +100 -0
  398. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_vpn_connections_result.rb +101 -0
  399. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_vpn_gateways_result.rb +100 -0
  400. data/lib/2019-04-01/generated/azure_mgmt_network/models/list_vpn_sites_result.rb +100 -0
  401. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer.rb +290 -0
  402. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  403. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  404. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  405. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  406. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
  407. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_protocol.rb +17 -0
  408. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  409. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  410. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  411. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +222 -0
  412. data/lib/2019-04-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  413. data/lib/2019-04-01/generated/azure_mgmt_network/models/local_network_gateway.rb +157 -0
  414. data/lib/2019-04-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  415. data/lib/2019-04-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  416. data/lib/2019-04-01/generated/azure_mgmt_network/models/managed_service_identity.rb +102 -0
  417. data/lib/2019-04-01/generated/azure_mgmt_network/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  418. data/lib/2019-04-01/generated/azure_mgmt_network/models/match_condition.rb +118 -0
  419. data/lib/2019-04-01/generated/azure_mgmt_network/models/match_variable.rb +60 -0
  420. data/lib/2019-04-01/generated/azure_mgmt_network/models/matched_rule.rb +58 -0
  421. data/lib/2019-04-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  422. data/lib/2019-04-01/generated/azure_mgmt_network/models/nat_gateway.rb +228 -0
  423. data/lib/2019-04-01/generated/azure_mgmt_network/models/nat_gateway_list_result.rb +99 -0
  424. data/lib/2019-04-01/generated/azure_mgmt_network/models/nat_gateway_sku.rb +47 -0
  425. data/lib/2019-04-01/generated/azure_mgmt_network/models/nat_gateway_sku_name.rb +15 -0
  426. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +81 -0
  427. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_profile.rb +95 -0
  428. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_response.rb +57 -0
  429. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +61 -0
  430. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_intent_policy.rb +97 -0
  431. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb +60 -0
  432. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface.rb +284 -0
  433. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  434. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +117 -0
  435. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +258 -0
  436. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  437. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  438. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  439. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +106 -0
  440. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_interface_tap_configuration_list_result.rb +102 -0
  441. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  442. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_profile.rb +164 -0
  443. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_profile_list_result.rb +99 -0
  444. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_security_group.rb +206 -0
  445. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  446. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_security_group_result.rb +70 -0
  447. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_security_rules_evaluation_result.rb +101 -0
  448. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_watcher.rb +109 -0
  449. data/lib/2019-04-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  450. data/lib/2019-04-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  451. data/lib/2019-04-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  452. data/lib/2019-04-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  453. data/lib/2019-04-01/generated/azure_mgmt_network/models/office_traffic_category.rb +18 -0
  454. data/lib/2019-04-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  455. data/lib/2019-04-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  456. data/lib/2019-04-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  457. data/lib/2019-04-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  458. data/lib/2019-04-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  459. data/lib/2019-04-01/generated/azure_mgmt_network/models/outbound_rule.rb +161 -0
  460. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb +187 -0
  461. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_profile_parameters.rb +47 -0
  462. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_server_config_radius_client_root_certificate.rb +93 -0
  463. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_server_config_radius_server_root_certificate.rb +93 -0
  464. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_server_config_vpn_client_revoked_certificate.rb +93 -0
  465. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_server_config_vpn_client_root_certificate.rb +93 -0
  466. data/lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_server_configuration.rb +277 -0
  467. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture.rb +119 -0
  468. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  469. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  470. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +119 -0
  471. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  472. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture_result.rb +170 -0
  473. data/lib/2019-04-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  474. data/lib/2019-04-01/generated/azure_mgmt_network/models/patch_route_filter.rb +176 -0
  475. data/lib/2019-04-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +128 -0
  476. data/lib/2019-04-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  477. data/lib/2019-04-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  478. data/lib/2019-04-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  479. data/lib/2019-04-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection.rb +170 -0
  480. data/lib/2019-04-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection_list_result.rb +104 -0
  481. data/lib/2019-04-01/generated/azure_mgmt_network/models/pfs_group.rb +23 -0
  482. data/lib/2019-04-01/generated/azure_mgmt_network/models/policy_settings.rb +61 -0
  483. data/lib/2019-04-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb +80 -0
  484. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_endpoint.rb +189 -0
  485. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_endpoint_connection.rb +81 -0
  486. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_endpoint_list_result.rb +100 -0
  487. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service.rb +252 -0
  488. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_connection.rb +111 -0
  489. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  490. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_ip_configuration.rb +118 -0
  491. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_list_result.rb +100 -0
  492. data/lib/{2018-11-01/generated/azure_mgmt_network/models/application_gateway_available_server_variables_result.rb → 2019-04-01/generated/azure_mgmt_network/models/private_link_service_properties_auto_approval.rb} +8 -13
  493. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_properties_visibility.rb +51 -0
  494. data/lib/2019-04-01/generated/azure_mgmt_network/models/probe.rb +170 -0
  495. data/lib/2019-04-01/generated/azure_mgmt_network/models/probe_protocol.rb +17 -0
  496. data/lib/2019-04-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  497. data/lib/2019-04-01/generated/azure_mgmt_network/models/protocol.rb +18 -0
  498. data/lib/2019-04-01/generated/azure_mgmt_network/models/protocol_configuration.rb +48 -0
  499. data/lib/2019-04-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb +87 -0
  500. data/lib/2019-04-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  501. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipaddress.rb +273 -0
  502. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  503. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  504. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  505. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  506. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipprefix.rb +229 -0
  507. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipprefix_list_result.rb +99 -0
  508. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipprefix_sku.rb +47 -0
  509. data/lib/2019-04-01/generated/azure_mgmt_network/models/public_ipprefix_sku_name.rb +15 -0
  510. data/lib/2019-04-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  511. data/lib/2019-04-01/generated/azure_mgmt_network/models/referenced_public_ip_address.rb +46 -0
  512. data/lib/2019-04-01/generated/azure_mgmt_network/models/resource.rb +109 -0
  513. data/lib/2019-04-01/generated/azure_mgmt_network/models/resource_identity_type.rb +18 -0
  514. data/lib/2019-04-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +115 -0
  515. data/lib/2019-04-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +68 -0
  516. data/lib/2019-04-01/generated/azure_mgmt_network/models/resource_set.rb +54 -0
  517. data/lib/2019-04-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  518. data/lib/2019-04-01/generated/azure_mgmt_network/models/route.rb +116 -0
  519. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_filter.rb +174 -0
  520. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  521. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_filter_rule.rb +138 -0
  522. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  523. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  524. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  525. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_table.rb +163 -0
  526. data/lib/2019-04-01/generated/azure_mgmt_network/models/route_table_list_result.rb +99 -0
  527. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +59 -0
  528. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  529. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  530. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_rule.rb +312 -0
  531. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  532. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_rule_associations.rb +102 -0
  533. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  534. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  535. data/lib/2019-04-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +19 -0
  536. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_association_link.rb +144 -0
  537. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +68 -0
  538. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_endpoint_policy.rb +165 -0
  539. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition.rb +121 -0
  540. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition_list_result.rb +103 -0
  541. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_endpoint_policy_list_result.rb +100 -0
  542. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +76 -0
  543. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  544. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_tag_information.rb +73 -0
  545. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_tag_information_properties_format.rb +91 -0
  546. data/lib/2019-04-01/generated/azure_mgmt_network/models/service_tags_list_result.rb +117 -0
  547. data/lib/2019-04-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  548. data/lib/2019-04-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  549. data/lib/2019-04-01/generated/azure_mgmt_network/models/subnet.rb +329 -0
  550. data/lib/2019-04-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  551. data/lib/2019-04-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  552. data/lib/2019-04-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  553. data/lib/2019-04-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  554. data/lib/2019-04-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  555. data/lib/2019-04-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  556. data/lib/2019-04-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  557. data/lib/2019-04-01/generated/azure_mgmt_network/models/traffic_analytics_configuration_properties.rb +91 -0
  558. data/lib/2019-04-01/generated/azure_mgmt_network/models/traffic_analytics_properties.rb +48 -0
  559. data/lib/2019-04-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  560. data/lib/2019-04-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  561. data/lib/2019-04-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  562. data/lib/2019-04-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  563. data/lib/2019-04-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  564. data/lib/2019-04-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  565. data/lib/2019-04-01/generated/azure_mgmt_network/models/tunnel_connection_status.rb +18 -0
  566. data/lib/2019-04-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  567. data/lib/2019-04-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  568. data/lib/2019-04-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  569. data/lib/2019-04-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
  570. data/lib/2019-04-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  571. data/lib/2019-04-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  572. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_hub.rb +205 -0
  573. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_hub_id.rb +48 -0
  574. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_hub_route.rb +65 -0
  575. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb +55 -0
  576. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network.rb +228 -0
  577. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  578. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +258 -0
  579. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +346 -0
  580. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +347 -0
  581. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  582. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_protocol.rb +16 -0
  583. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  584. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  585. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +116 -0
  586. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  587. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  588. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +74 -0
  589. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +27 -0
  590. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +27 -0
  591. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  592. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  593. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  594. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +171 -0
  595. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  596. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  597. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_tap.rb +183 -0
  598. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_tap_list_result.rb +99 -0
  599. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  600. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  601. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_wan.rb +229 -0
  602. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_wan_security_provider.rb +69 -0
  603. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_wan_security_provider_type.rb +16 -0
  604. data/lib/2019-04-01/generated/azure_mgmt_network/models/virtual_wan_security_providers.rb +56 -0
  605. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +191 -0
  606. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_connection_health.rb +93 -0
  607. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail.rb +179 -0
  608. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail_list_result.rb +57 -0
  609. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_ipsec_parameters.rb +137 -0
  610. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +94 -0
  611. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +17 -0
  612. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +92 -0
  613. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +92 -0
  614. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_connection.rb +249 -0
  615. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_connection_status.rb +18 -0
  616. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  617. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_gateway.rb +166 -0
  618. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_gateway_tunneling_protocol.rb +16 -0
  619. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_profile_response.rb +46 -0
  620. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_site.rb +192 -0
  621. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_site_id.rb +48 -0
  622. data/lib/2019-04-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  623. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_action.rb +17 -0
  624. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb +119 -0
  625. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_enabled_state.rb +16 -0
  626. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_match_variable.rb +22 -0
  627. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_mode.rb +16 -0
  628. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_operator.rb +24 -0
  629. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_policy.rb +179 -0
  630. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +105 -0
  631. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_policy_resource_state.rb +20 -0
  632. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_rule_type.rb +16 -0
  633. data/lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_transform.rb +20 -0
  634. data/lib/2019-04-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  635. data/lib/2019-04-01/generated/azure_mgmt_network/nat_gateways.rb +922 -0
  636. data/lib/2019-04-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +329 -0
  637. data/lib/2019-04-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +231 -0
  638. data/lib/2019-04-01/generated/azure_mgmt_network/network_interface_tap_configurations.rb +626 -0
  639. data/lib/2019-04-01/generated/azure_mgmt_network/network_interfaces.rb +1230 -0
  640. data/lib/2019-04-01/generated/azure_mgmt_network/network_management_client.rb +656 -0
  641. data/lib/2019-04-01/generated/azure_mgmt_network/network_profiles.rb +732 -0
  642. data/lib/2019-04-01/generated/azure_mgmt_network/network_security_groups.rb +976 -0
  643. data/lib/2019-04-01/generated/azure_mgmt_network/network_watchers.rb +2634 -0
  644. data/lib/2019-04-01/generated/azure_mgmt_network/operations.rb +219 -0
  645. data/lib/2019-04-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +1289 -0
  646. data/lib/2019-04-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb +660 -0
  647. data/lib/2019-04-01/generated/azure_mgmt_network/packet_captures.rb +796 -0
  648. data/lib/2019-04-01/generated/azure_mgmt_network/peer_express_route_circuit_connections.rb +351 -0
  649. data/lib/2019-04-01/generated/azure_mgmt_network/private_endpoints.rb +804 -0
  650. data/lib/2019-04-01/generated/azure_mgmt_network/private_link_services.rb +1047 -0
  651. data/lib/2019-04-01/generated/azure_mgmt_network/public_ipaddresses.rb +958 -0
  652. data/lib/2019-04-01/generated/azure_mgmt_network/public_ipprefixes.rb +958 -0
  653. data/lib/2019-04-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  654. data/lib/2019-04-01/generated/azure_mgmt_network/route_filter_rules.rb +786 -0
  655. data/lib/2019-04-01/generated/azure_mgmt_network/route_filters.rb +961 -0
  656. data/lib/2019-04-01/generated/azure_mgmt_network/route_tables.rb +958 -0
  657. data/lib/2019-04-01/generated/azure_mgmt_network/routes.rb +625 -0
  658. data/lib/2019-04-01/generated/azure_mgmt_network/security_rules.rb +643 -0
  659. data/lib/2019-04-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  660. data/lib/2019-04-01/generated/azure_mgmt_network/service_endpoint_policies.rb +976 -0
  661. data/lib/2019-04-01/generated/azure_mgmt_network/service_endpoint_policy_definitions.rb +668 -0
  662. data/lib/2019-04-01/generated/azure_mgmt_network/service_tags.rb +115 -0
  663. data/lib/2019-04-01/generated/azure_mgmt_network/subnets.rb +779 -0
  664. data/lib/2019-04-01/generated/azure_mgmt_network/usages.rb +227 -0
  665. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_hubs.rb +991 -0
  666. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1249 -0
  667. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_network_gateways.rb +2922 -0
  668. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_network_peerings.rb +634 -0
  669. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_network_taps.rb +955 -0
  670. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_networks.rb +1262 -0
  671. data/lib/2019-04-01/generated/azure_mgmt_network/virtual_wans.rb +996 -0
  672. data/lib/2019-04-01/generated/azure_mgmt_network/vpn_connections.rb +647 -0
  673. data/lib/2019-04-01/generated/azure_mgmt_network/vpn_gateways.rb +1132 -0
  674. data/lib/2019-04-01/generated/azure_mgmt_network/vpn_sites.rb +974 -0
  675. data/lib/2019-04-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +173 -0
  676. data/lib/2019-04-01/generated/azure_mgmt_network/web_application_firewall_policies.rb +758 -0
  677. data/lib/azure_mgmt_network.rb +1 -0
  678. data/lib/profiles/latest/modules/network_profile_module.rb +1269 -1175
  679. data/lib/profiles/v2018_03_01/modules/network_profile_module.rb +10 -6
  680. data/lib/version.rb +1 -1
  681. metadata +579 -8
@@ -0,0 +1,2634 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Network::Mgmt::V2019_04_01
7
+ #
8
+ # NetworkWatchers
9
+ #
10
+ class NetworkWatchers
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the NetworkWatchers class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Creates or updates a network watcher in the specified resource group.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param network_watcher_name [String] The name of the network watcher.
29
+ # @param parameters [NetworkWatcher] Parameters that define the network watcher
30
+ # resource.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [NetworkWatcher] operation results.
35
+ #
36
+ def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
37
+ response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Creates or updates a network watcher in the specified resource group.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group.
45
+ # @param network_watcher_name [String] The name of the network watcher.
46
+ # @param parameters [NetworkWatcher] Parameters that define the network watcher
47
+ # resource.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
54
+ create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Creates or updates a network watcher in the specified resource group.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group.
61
+ # @param network_watcher_name [String] The name of the network watcher.
62
+ # @param parameters [NetworkWatcher] Parameters that define the network watcher
63
+ # resource.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
72
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
73
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
+
76
+
77
+ request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
+
80
+ # Set Headers
81
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
+
84
+ # Serialize Request
85
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcher.mapper()
86
+ request_content = @client.serialize(request_mapper, parameters)
87
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
88
+
89
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
90
+
91
+ request_url = @base_url || @client.base_url
92
+
93
+ options = {
94
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
95
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
96
+ query_params: {'api-version' => @client.api_version},
97
+ body: request_content,
98
+ headers: request_headers.merge(custom_headers || {}),
99
+ base_url: request_url
100
+ }
101
+ promise = @client.make_request_async(:put, path_template, options)
102
+
103
+ promise = promise.then do |result|
104
+ http_response = result.response
105
+ status_code = http_response.status
106
+ response_content = http_response.body
107
+ unless status_code == 200 || status_code == 201
108
+ error_model = JSON.load(response_content)
109
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
110
+ end
111
+
112
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
114
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
115
+ # Deserialize Response
116
+ if status_code == 200
117
+ begin
118
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
119
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcher.mapper()
120
+ result.body = @client.deserialize(result_mapper, parsed_response)
121
+ rescue Exception => e
122
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
123
+ end
124
+ end
125
+ # Deserialize Response
126
+ if status_code == 201
127
+ begin
128
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
129
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcher.mapper()
130
+ result.body = @client.deserialize(result_mapper, parsed_response)
131
+ rescue Exception => e
132
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
133
+ end
134
+ end
135
+
136
+ result
137
+ end
138
+
139
+ promise.execute
140
+ end
141
+
142
+ #
143
+ # Gets the specified network watcher by resource group.
144
+ #
145
+ # @param resource_group_name [String] The name of the resource group.
146
+ # @param network_watcher_name [String] The name of the network watcher.
147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
148
+ # will be added to the HTTP request.
149
+ #
150
+ # @return [NetworkWatcher] operation results.
151
+ #
152
+ def get(resource_group_name, network_watcher_name, custom_headers:nil)
153
+ response = get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
154
+ response.body unless response.nil?
155
+ end
156
+
157
+ #
158
+ # Gets the specified network watcher by resource group.
159
+ #
160
+ # @param resource_group_name [String] The name of the resource group.
161
+ # @param network_watcher_name [String] The name of the network watcher.
162
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
163
+ # will be added to the HTTP request.
164
+ #
165
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
166
+ #
167
+ def get_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil)
168
+ get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
169
+ end
170
+
171
+ #
172
+ # Gets the specified network watcher by resource group.
173
+ #
174
+ # @param resource_group_name [String] The name of the resource group.
175
+ # @param network_watcher_name [String] The name of the network watcher.
176
+ # @param [Hash{String => String}] A hash of custom headers that will be added
177
+ # to the HTTP request.
178
+ #
179
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
180
+ #
181
+ def get_async(resource_group_name, network_watcher_name, custom_headers:nil)
182
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
184
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
185
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
186
+
187
+
188
+ request_headers = {}
189
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
190
+
191
+ # Set Headers
192
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
193
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
194
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
195
+
196
+ request_url = @base_url || @client.base_url
197
+
198
+ options = {
199
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
200
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
201
+ query_params: {'api-version' => @client.api_version},
202
+ headers: request_headers.merge(custom_headers || {}),
203
+ base_url: request_url
204
+ }
205
+ promise = @client.make_request_async(:get, path_template, options)
206
+
207
+ promise = promise.then do |result|
208
+ http_response = result.response
209
+ status_code = http_response.status
210
+ response_content = http_response.body
211
+ unless status_code == 200
212
+ error_model = JSON.load(response_content)
213
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
214
+ end
215
+
216
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
217
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
218
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
219
+ # Deserialize Response
220
+ if status_code == 200
221
+ begin
222
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
223
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcher.mapper()
224
+ result.body = @client.deserialize(result_mapper, parsed_response)
225
+ rescue Exception => e
226
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
227
+ end
228
+ end
229
+
230
+ result
231
+ end
232
+
233
+ promise.execute
234
+ end
235
+
236
+ #
237
+ # Deletes the specified network watcher resource.
238
+ #
239
+ # @param resource_group_name [String] The name of the resource group.
240
+ # @param network_watcher_name [String] The name of the network watcher.
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ def delete(resource_group_name, network_watcher_name, custom_headers:nil)
245
+ response = delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
246
+ nil
247
+ end
248
+
249
+ #
250
+ # @param resource_group_name [String] The name of the resource group.
251
+ # @param network_watcher_name [String] The name of the network watcher.
252
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
253
+ # will be added to the HTTP request.
254
+ #
255
+ # @return [Concurrent::Promise] promise which provides async access to http
256
+ # response.
257
+ #
258
+ def delete_async(resource_group_name, network_watcher_name, custom_headers:nil)
259
+ # Send request
260
+ promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers)
261
+
262
+ promise = promise.then do |response|
263
+ # Defining deserialization method.
264
+ deserialize_method = lambda do |parsed_response|
265
+ end
266
+
267
+ # Waiting for response.
268
+ @client.get_long_running_operation_result(response, deserialize_method)
269
+ end
270
+
271
+ promise
272
+ end
273
+
274
+ #
275
+ # Updates a network watcher tags.
276
+ #
277
+ # @param resource_group_name [String] The name of the resource group.
278
+ # @param network_watcher_name [String] The name of the network watcher.
279
+ # @param parameters [TagsObject] Parameters supplied to update network watcher
280
+ # tags.
281
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
282
+ # will be added to the HTTP request.
283
+ #
284
+ # @return [NetworkWatcher] operation results.
285
+ #
286
+ def update_tags(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
287
+ response = update_tags_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
288
+ response.body unless response.nil?
289
+ end
290
+
291
+ #
292
+ # Updates a network watcher tags.
293
+ #
294
+ # @param resource_group_name [String] The name of the resource group.
295
+ # @param network_watcher_name [String] The name of the network watcher.
296
+ # @param parameters [TagsObject] Parameters supplied to update network watcher
297
+ # tags.
298
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
299
+ # will be added to the HTTP request.
300
+ #
301
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
302
+ #
303
+ def update_tags_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
304
+ update_tags_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
305
+ end
306
+
307
+ #
308
+ # Updates a network watcher tags.
309
+ #
310
+ # @param resource_group_name [String] The name of the resource group.
311
+ # @param network_watcher_name [String] The name of the network watcher.
312
+ # @param parameters [TagsObject] Parameters supplied to update network watcher
313
+ # tags.
314
+ # @param [Hash{String => String}] A hash of custom headers that will be added
315
+ # to the HTTP request.
316
+ #
317
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
318
+ #
319
+ def update_tags_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
320
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
321
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
322
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
323
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
324
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
325
+
326
+
327
+ request_headers = {}
328
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
329
+
330
+ # Set Headers
331
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
332
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
333
+
334
+ # Serialize Request
335
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TagsObject.mapper()
336
+ request_content = @client.serialize(request_mapper, parameters)
337
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
338
+
339
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
340
+
341
+ request_url = @base_url || @client.base_url
342
+
343
+ options = {
344
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
345
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
346
+ query_params: {'api-version' => @client.api_version},
347
+ body: request_content,
348
+ headers: request_headers.merge(custom_headers || {}),
349
+ base_url: request_url
350
+ }
351
+ promise = @client.make_request_async(:patch, path_template, options)
352
+
353
+ promise = promise.then do |result|
354
+ http_response = result.response
355
+ status_code = http_response.status
356
+ response_content = http_response.body
357
+ unless status_code == 200
358
+ error_model = JSON.load(response_content)
359
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
360
+ end
361
+
362
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
363
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
364
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
365
+ # Deserialize Response
366
+ if status_code == 200
367
+ begin
368
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
369
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcher.mapper()
370
+ result.body = @client.deserialize(result_mapper, parsed_response)
371
+ rescue Exception => e
372
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
373
+ end
374
+ end
375
+
376
+ result
377
+ end
378
+
379
+ promise.execute
380
+ end
381
+
382
+ #
383
+ # Gets all network watchers by resource group.
384
+ #
385
+ # @param resource_group_name [String] The name of the resource group.
386
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
387
+ # will be added to the HTTP request.
388
+ #
389
+ # @return [NetworkWatcherListResult] operation results.
390
+ #
391
+ def list(resource_group_name, custom_headers:nil)
392
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
393
+ response.body unless response.nil?
394
+ end
395
+
396
+ #
397
+ # Gets all network watchers by resource group.
398
+ #
399
+ # @param resource_group_name [String] The name of the resource group.
400
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
401
+ # will be added to the HTTP request.
402
+ #
403
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
404
+ #
405
+ def list_with_http_info(resource_group_name, custom_headers:nil)
406
+ list_async(resource_group_name, custom_headers:custom_headers).value!
407
+ end
408
+
409
+ #
410
+ # Gets all network watchers by resource group.
411
+ #
412
+ # @param resource_group_name [String] The name of the resource group.
413
+ # @param [Hash{String => String}] A hash of custom headers that will be added
414
+ # to the HTTP request.
415
+ #
416
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
417
+ #
418
+ def list_async(resource_group_name, custom_headers:nil)
419
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
420
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
421
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
422
+
423
+
424
+ request_headers = {}
425
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
426
+
427
+ # Set Headers
428
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
429
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
430
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers'
431
+
432
+ request_url = @base_url || @client.base_url
433
+
434
+ options = {
435
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
436
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
437
+ query_params: {'api-version' => @client.api_version},
438
+ headers: request_headers.merge(custom_headers || {}),
439
+ base_url: request_url
440
+ }
441
+ promise = @client.make_request_async(:get, path_template, options)
442
+
443
+ promise = promise.then do |result|
444
+ http_response = result.response
445
+ status_code = http_response.status
446
+ response_content = http_response.body
447
+ unless status_code == 200
448
+ error_model = JSON.load(response_content)
449
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
450
+ end
451
+
452
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
453
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
454
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
455
+ # Deserialize Response
456
+ if status_code == 200
457
+ begin
458
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
459
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcherListResult.mapper()
460
+ result.body = @client.deserialize(result_mapper, parsed_response)
461
+ rescue Exception => e
462
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
463
+ end
464
+ end
465
+
466
+ result
467
+ end
468
+
469
+ promise.execute
470
+ end
471
+
472
+ #
473
+ # Gets all network watchers by subscription.
474
+ #
475
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
476
+ # will be added to the HTTP request.
477
+ #
478
+ # @return [NetworkWatcherListResult] operation results.
479
+ #
480
+ def list_all(custom_headers:nil)
481
+ response = list_all_async(custom_headers:custom_headers).value!
482
+ response.body unless response.nil?
483
+ end
484
+
485
+ #
486
+ # Gets all network watchers by subscription.
487
+ #
488
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
489
+ # will be added to the HTTP request.
490
+ #
491
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
492
+ #
493
+ def list_all_with_http_info(custom_headers:nil)
494
+ list_all_async(custom_headers:custom_headers).value!
495
+ end
496
+
497
+ #
498
+ # Gets all network watchers by subscription.
499
+ #
500
+ # @param [Hash{String => String}] A hash of custom headers that will be added
501
+ # to the HTTP request.
502
+ #
503
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
504
+ #
505
+ def list_all_async(custom_headers:nil)
506
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
507
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
508
+
509
+
510
+ request_headers = {}
511
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
512
+
513
+ # Set Headers
514
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
515
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
516
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers'
517
+
518
+ request_url = @base_url || @client.base_url
519
+
520
+ options = {
521
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
522
+ path_params: {'subscriptionId' => @client.subscription_id},
523
+ query_params: {'api-version' => @client.api_version},
524
+ headers: request_headers.merge(custom_headers || {}),
525
+ base_url: request_url
526
+ }
527
+ promise = @client.make_request_async(:get, path_template, options)
528
+
529
+ promise = promise.then do |result|
530
+ http_response = result.response
531
+ status_code = http_response.status
532
+ response_content = http_response.body
533
+ unless status_code == 200
534
+ error_model = JSON.load(response_content)
535
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
536
+ end
537
+
538
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
539
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
540
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
541
+ # Deserialize Response
542
+ if status_code == 200
543
+ begin
544
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
545
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkWatcherListResult.mapper()
546
+ result.body = @client.deserialize(result_mapper, parsed_response)
547
+ rescue Exception => e
548
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
549
+ end
550
+ end
551
+
552
+ result
553
+ end
554
+
555
+ promise.execute
556
+ end
557
+
558
+ #
559
+ # Gets the current network topology by resource group.
560
+ #
561
+ # @param resource_group_name [String] The name of the resource group.
562
+ # @param network_watcher_name [String] The name of the network watcher.
563
+ # @param parameters [TopologyParameters] Parameters that define the
564
+ # representation of topology.
565
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
566
+ # will be added to the HTTP request.
567
+ #
568
+ # @return [Topology] operation results.
569
+ #
570
+ def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
571
+ response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
572
+ response.body unless response.nil?
573
+ end
574
+
575
+ #
576
+ # Gets the current network topology by resource group.
577
+ #
578
+ # @param resource_group_name [String] The name of the resource group.
579
+ # @param network_watcher_name [String] The name of the network watcher.
580
+ # @param parameters [TopologyParameters] Parameters that define the
581
+ # representation of topology.
582
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
583
+ # will be added to the HTTP request.
584
+ #
585
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
586
+ #
587
+ def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
588
+ get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
589
+ end
590
+
591
+ #
592
+ # Gets the current network topology by resource group.
593
+ #
594
+ # @param resource_group_name [String] The name of the resource group.
595
+ # @param network_watcher_name [String] The name of the network watcher.
596
+ # @param parameters [TopologyParameters] Parameters that define the
597
+ # representation of topology.
598
+ # @param [Hash{String => String}] A hash of custom headers that will be added
599
+ # to the HTTP request.
600
+ #
601
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
602
+ #
603
+ def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
604
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
605
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
606
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
607
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
608
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
609
+
610
+
611
+ request_headers = {}
612
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
613
+
614
+ # Set Headers
615
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
616
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
617
+
618
+ # Serialize Request
619
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TopologyParameters.mapper()
620
+ request_content = @client.serialize(request_mapper, parameters)
621
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
622
+
623
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology'
624
+
625
+ request_url = @base_url || @client.base_url
626
+
627
+ options = {
628
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
629
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
630
+ query_params: {'api-version' => @client.api_version},
631
+ body: request_content,
632
+ headers: request_headers.merge(custom_headers || {}),
633
+ base_url: request_url
634
+ }
635
+ promise = @client.make_request_async(:post, path_template, options)
636
+
637
+ promise = promise.then do |result|
638
+ http_response = result.response
639
+ status_code = http_response.status
640
+ response_content = http_response.body
641
+ unless status_code == 200
642
+ error_model = JSON.load(response_content)
643
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
644
+ end
645
+
646
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
647
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
648
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
649
+ # Deserialize Response
650
+ if status_code == 200
651
+ begin
652
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
653
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::Topology.mapper()
654
+ result.body = @client.deserialize(result_mapper, parsed_response)
655
+ rescue Exception => e
656
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
657
+ end
658
+ end
659
+
660
+ result
661
+ end
662
+
663
+ promise.execute
664
+ end
665
+
666
+ #
667
+ # Verify IP flow from the specified VM to a location given the currently
668
+ # configured NSG rules.
669
+ #
670
+ # @param resource_group_name [String] The name of the resource group.
671
+ # @param network_watcher_name [String] The name of the network watcher.
672
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
673
+ # IP flow to be verified.
674
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
675
+ # will be added to the HTTP request.
676
+ #
677
+ # @return [VerificationIPFlowResult] operation results.
678
+ #
679
+ def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
680
+ response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
681
+ response.body unless response.nil?
682
+ end
683
+
684
+ #
685
+ # @param resource_group_name [String] The name of the resource group.
686
+ # @param network_watcher_name [String] The name of the network watcher.
687
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
688
+ # IP flow to be verified.
689
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
690
+ # will be added to the HTTP request.
691
+ #
692
+ # @return [Concurrent::Promise] promise which provides async access to http
693
+ # response.
694
+ #
695
+ def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
696
+ # Send request
697
+ promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
698
+
699
+ promise = promise.then do |response|
700
+ # Defining deserialization method.
701
+ deserialize_method = lambda do |parsed_response|
702
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::VerificationIPFlowResult.mapper()
703
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
704
+ end
705
+
706
+ # Waiting for response.
707
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
708
+ end
709
+
710
+ promise
711
+ end
712
+
713
+ #
714
+ # Gets the next hop from the specified VM.
715
+ #
716
+ # @param resource_group_name [String] The name of the resource group.
717
+ # @param network_watcher_name [String] The name of the network watcher.
718
+ # @param parameters [NextHopParameters] Parameters that define the source and
719
+ # destination endpoint.
720
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
721
+ # will be added to the HTTP request.
722
+ #
723
+ # @return [NextHopResult] operation results.
724
+ #
725
+ def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
726
+ response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
727
+ response.body unless response.nil?
728
+ end
729
+
730
+ #
731
+ # @param resource_group_name [String] The name of the resource group.
732
+ # @param network_watcher_name [String] The name of the network watcher.
733
+ # @param parameters [NextHopParameters] Parameters that define the source and
734
+ # destination endpoint.
735
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
736
+ # will be added to the HTTP request.
737
+ #
738
+ # @return [Concurrent::Promise] promise which provides async access to http
739
+ # response.
740
+ #
741
+ def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
742
+ # Send request
743
+ promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
744
+
745
+ promise = promise.then do |response|
746
+ # Defining deserialization method.
747
+ deserialize_method = lambda do |parsed_response|
748
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NextHopResult.mapper()
749
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
750
+ end
751
+
752
+ # Waiting for response.
753
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
754
+ end
755
+
756
+ promise
757
+ end
758
+
759
+ #
760
+ # Gets the configured and effective security group rules on the specified VM.
761
+ #
762
+ # @param resource_group_name [String] The name of the resource group.
763
+ # @param network_watcher_name [String] The name of the network watcher.
764
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
765
+ # to check security groups for.
766
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
767
+ # will be added to the HTTP request.
768
+ #
769
+ # @return [SecurityGroupViewResult] operation results.
770
+ #
771
+ def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
772
+ response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
773
+ response.body unless response.nil?
774
+ end
775
+
776
+ #
777
+ # @param resource_group_name [String] The name of the resource group.
778
+ # @param network_watcher_name [String] The name of the network watcher.
779
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
780
+ # to check security groups for.
781
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
782
+ # will be added to the HTTP request.
783
+ #
784
+ # @return [Concurrent::Promise] promise which provides async access to http
785
+ # response.
786
+ #
787
+ def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
788
+ # Send request
789
+ promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
790
+
791
+ promise = promise.then do |response|
792
+ # Defining deserialization method.
793
+ deserialize_method = lambda do |parsed_response|
794
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::SecurityGroupViewResult.mapper()
795
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
796
+ end
797
+
798
+ # Waiting for response.
799
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
800
+ end
801
+
802
+ promise
803
+ end
804
+
805
+ #
806
+ # Initiate troubleshooting on a specified resource.
807
+ #
808
+ # @param resource_group_name [String] The name of the resource group.
809
+ # @param network_watcher_name [String] The name of the network watcher
810
+ # resource.
811
+ # @param parameters [TroubleshootingParameters] Parameters that define the
812
+ # resource to troubleshoot.
813
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
814
+ # will be added to the HTTP request.
815
+ #
816
+ # @return [TroubleshootingResult] operation results.
817
+ #
818
+ def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
819
+ response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
820
+ response.body unless response.nil?
821
+ end
822
+
823
+ #
824
+ # @param resource_group_name [String] The name of the resource group.
825
+ # @param network_watcher_name [String] The name of the network watcher
826
+ # resource.
827
+ # @param parameters [TroubleshootingParameters] Parameters that define the
828
+ # resource to troubleshoot.
829
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
830
+ # will be added to the HTTP request.
831
+ #
832
+ # @return [Concurrent::Promise] promise which provides async access to http
833
+ # response.
834
+ #
835
+ def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
836
+ # Send request
837
+ promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
838
+
839
+ promise = promise.then do |response|
840
+ # Defining deserialization method.
841
+ deserialize_method = lambda do |parsed_response|
842
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingResult.mapper()
843
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
844
+ end
845
+
846
+ # Waiting for response.
847
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
848
+ end
849
+
850
+ promise
851
+ end
852
+
853
+ #
854
+ # Get the last completed troubleshooting result on a specified resource.
855
+ #
856
+ # @param resource_group_name [String] The name of the resource group.
857
+ # @param network_watcher_name [String] The name of the network watcher
858
+ # resource.
859
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
860
+ # resource to query the troubleshooting result.
861
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
862
+ # will be added to the HTTP request.
863
+ #
864
+ # @return [TroubleshootingResult] operation results.
865
+ #
866
+ def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
867
+ response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
868
+ response.body unless response.nil?
869
+ end
870
+
871
+ #
872
+ # @param resource_group_name [String] The name of the resource group.
873
+ # @param network_watcher_name [String] The name of the network watcher
874
+ # resource.
875
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
876
+ # resource to query the troubleshooting result.
877
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
878
+ # will be added to the HTTP request.
879
+ #
880
+ # @return [Concurrent::Promise] promise which provides async access to http
881
+ # response.
882
+ #
883
+ def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
884
+ # Send request
885
+ promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
886
+
887
+ promise = promise.then do |response|
888
+ # Defining deserialization method.
889
+ deserialize_method = lambda do |parsed_response|
890
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingResult.mapper()
891
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
892
+ end
893
+
894
+ # Waiting for response.
895
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
896
+ end
897
+
898
+ promise
899
+ end
900
+
901
+ #
902
+ # Configures flow log and traffic analytics (optional) on a specified resource.
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 [FlowLogInformation] Parameters that define the
909
+ # configuration of flow log.
910
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
+ # will be added to the HTTP request.
912
+ #
913
+ # @return [FlowLogInformation] operation results.
914
+ #
915
+ def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
916
+ response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
917
+ response.body unless response.nil?
918
+ end
919
+
920
+ #
921
+ # @param resource_group_name [String] The name of the network watcher resource
922
+ # group.
923
+ # @param network_watcher_name [String] The name of the network watcher
924
+ # resource.
925
+ # @param parameters [FlowLogInformation] Parameters that define the
926
+ # configuration of flow log.
927
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
928
+ # will be added to the HTTP request.
929
+ #
930
+ # @return [Concurrent::Promise] promise which provides async access to http
931
+ # response.
932
+ #
933
+ def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
934
+ # Send request
935
+ promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
936
+
937
+ promise = promise.then do |response|
938
+ # Defining deserialization method.
939
+ deserialize_method = lambda do |parsed_response|
940
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
941
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
942
+ end
943
+
944
+ # Waiting for response.
945
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
946
+ end
947
+
948
+ promise
949
+ end
950
+
951
+ #
952
+ # Queries status of flow log and traffic analytics (optional) on a specified
953
+ # resource.
954
+ #
955
+ # @param resource_group_name [String] The name of the network watcher resource
956
+ # group.
957
+ # @param network_watcher_name [String] The name of the network watcher
958
+ # resource.
959
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
960
+ # to query flow log and traffic analytics (optional) status.
961
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
962
+ # will be added to the HTTP request.
963
+ #
964
+ # @return [FlowLogInformation] operation results.
965
+ #
966
+ def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
967
+ response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
968
+ response.body unless response.nil?
969
+ end
970
+
971
+ #
972
+ # @param resource_group_name [String] The name of the network watcher resource
973
+ # group.
974
+ # @param network_watcher_name [String] The name of the network watcher
975
+ # resource.
976
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
977
+ # to query flow log and traffic analytics (optional) status.
978
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
979
+ # will be added to the HTTP request.
980
+ #
981
+ # @return [Concurrent::Promise] promise which provides async access to http
982
+ # response.
983
+ #
984
+ def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
985
+ # Send request
986
+ promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
987
+
988
+ promise = promise.then do |response|
989
+ # Defining deserialization method.
990
+ deserialize_method = lambda do |parsed_response|
991
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
992
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
993
+ end
994
+
995
+ # Waiting for response.
996
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
997
+ end
998
+
999
+ promise
1000
+ end
1001
+
1002
+ #
1003
+ # Verifies the possibility of establishing a direct TCP connection from a
1004
+ # virtual machine to a given endpoint including another VM or an arbitrary
1005
+ # remote server.
1006
+ #
1007
+ # @param resource_group_name [String] The name of the network watcher resource
1008
+ # group.
1009
+ # @param network_watcher_name [String] The name of the network watcher
1010
+ # resource.
1011
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1012
+ # connectivity check will be performed.
1013
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1014
+ # will be added to the HTTP request.
1015
+ #
1016
+ # @return [ConnectivityInformation] operation results.
1017
+ #
1018
+ def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1019
+ response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1020
+ response.body unless response.nil?
1021
+ end
1022
+
1023
+ #
1024
+ # @param resource_group_name [String] The name of the network watcher resource
1025
+ # group.
1026
+ # @param network_watcher_name [String] The name of the network watcher
1027
+ # resource.
1028
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1029
+ # connectivity check will be performed.
1030
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1031
+ # will be added to the HTTP request.
1032
+ #
1033
+ # @return [Concurrent::Promise] promise which provides async access to http
1034
+ # response.
1035
+ #
1036
+ def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1037
+ # Send request
1038
+ promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1039
+
1040
+ promise = promise.then do |response|
1041
+ # Defining deserialization method.
1042
+ deserialize_method = lambda do |parsed_response|
1043
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ConnectivityInformation.mapper()
1044
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1045
+ end
1046
+
1047
+ # Waiting for response.
1048
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1049
+ end
1050
+
1051
+ promise
1052
+ end
1053
+
1054
+ #
1055
+ # Gets the relative latency score for internet service providers from a
1056
+ # specified location to Azure regions.
1057
+ #
1058
+ # @param resource_group_name [String] The name of the network watcher resource
1059
+ # group.
1060
+ # @param network_watcher_name [String] The name of the network watcher
1061
+ # resource.
1062
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
1063
+ # determine Azure reachability report configuration.
1064
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1065
+ # will be added to the HTTP request.
1066
+ #
1067
+ # @return [AzureReachabilityReport] operation results.
1068
+ #
1069
+ def get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1070
+ response = get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1071
+ response.body unless response.nil?
1072
+ end
1073
+
1074
+ #
1075
+ # @param resource_group_name [String] The name of the network watcher resource
1076
+ # group.
1077
+ # @param network_watcher_name [String] The name of the network watcher
1078
+ # resource.
1079
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
1080
+ # determine Azure reachability report configuration.
1081
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1082
+ # will be added to the HTTP request.
1083
+ #
1084
+ # @return [Concurrent::Promise] promise which provides async access to http
1085
+ # response.
1086
+ #
1087
+ def get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1088
+ # Send request
1089
+ promise = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1090
+
1091
+ promise = promise.then do |response|
1092
+ # Defining deserialization method.
1093
+ deserialize_method = lambda do |parsed_response|
1094
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AzureReachabilityReport.mapper()
1095
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1096
+ end
1097
+
1098
+ # Waiting for response.
1099
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1100
+ end
1101
+
1102
+ promise
1103
+ end
1104
+
1105
+ #
1106
+ # Lists all available internet service providers for a specified Azure region.
1107
+ #
1108
+ # @param resource_group_name [String] The name of the network watcher resource
1109
+ # group.
1110
+ # @param network_watcher_name [String] The name of the network watcher
1111
+ # resource.
1112
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
1113
+ # the list of available providers.
1114
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1115
+ # will be added to the HTTP request.
1116
+ #
1117
+ # @return [AvailableProvidersList] operation results.
1118
+ #
1119
+ def list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1120
+ response = list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1121
+ response.body unless response.nil?
1122
+ end
1123
+
1124
+ #
1125
+ # @param resource_group_name [String] The name of the network watcher resource
1126
+ # group.
1127
+ # @param network_watcher_name [String] The name of the network watcher
1128
+ # resource.
1129
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
1130
+ # the list of available providers.
1131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1132
+ # will be added to the HTTP request.
1133
+ #
1134
+ # @return [Concurrent::Promise] promise which provides async access to http
1135
+ # response.
1136
+ #
1137
+ def list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1138
+ # Send request
1139
+ promise = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1140
+
1141
+ promise = promise.then do |response|
1142
+ # Defining deserialization method.
1143
+ deserialize_method = lambda do |parsed_response|
1144
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AvailableProvidersList.mapper()
1145
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1146
+ end
1147
+
1148
+ # Waiting for response.
1149
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1150
+ end
1151
+
1152
+ promise
1153
+ end
1154
+
1155
+ #
1156
+ # Get network configuration diagnostic.
1157
+ #
1158
+ # @param resource_group_name [String] The name of the resource group.
1159
+ # @param network_watcher_name [String] The name of the network watcher.
1160
+ # @param parameters [NetworkConfigurationDiagnosticParameters] Parameters to
1161
+ # get network configuration diagnostic.
1162
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1163
+ # will be added to the HTTP request.
1164
+ #
1165
+ # @return [NetworkConfigurationDiagnosticResponse] operation results.
1166
+ #
1167
+ def get_network_configuration_diagnostic(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1168
+ response = get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1169
+ response.body unless response.nil?
1170
+ end
1171
+
1172
+ #
1173
+ # @param resource_group_name [String] The name of the resource group.
1174
+ # @param network_watcher_name [String] The name of the network watcher.
1175
+ # @param parameters [NetworkConfigurationDiagnosticParameters] Parameters to
1176
+ # get network configuration diagnostic.
1177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1178
+ # will be added to the HTTP request.
1179
+ #
1180
+ # @return [Concurrent::Promise] promise which provides async access to http
1181
+ # response.
1182
+ #
1183
+ def get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1184
+ # Send request
1185
+ promise = begin_get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1186
+
1187
+ promise = promise.then do |response|
1188
+ # Defining deserialization method.
1189
+ deserialize_method = lambda do |parsed_response|
1190
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkConfigurationDiagnosticResponse.mapper()
1191
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1192
+ end
1193
+
1194
+ # Waiting for response.
1195
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1196
+ end
1197
+
1198
+ promise
1199
+ end
1200
+
1201
+ #
1202
+ # Deletes the specified network watcher resource.
1203
+ #
1204
+ # @param resource_group_name [String] The name of the resource group.
1205
+ # @param network_watcher_name [String] The name of the network watcher.
1206
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1207
+ # will be added to the HTTP request.
1208
+ #
1209
+ #
1210
+ def begin_delete(resource_group_name, network_watcher_name, custom_headers:nil)
1211
+ response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
1212
+ nil
1213
+ end
1214
+
1215
+ #
1216
+ # Deletes the specified network watcher resource.
1217
+ #
1218
+ # @param resource_group_name [String] The name of the resource group.
1219
+ # @param network_watcher_name [String] The name of the network watcher.
1220
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1221
+ # will be added to the HTTP request.
1222
+ #
1223
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1224
+ #
1225
+ def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil)
1226
+ begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
1227
+ end
1228
+
1229
+ #
1230
+ # Deletes the specified network watcher resource.
1231
+ #
1232
+ # @param resource_group_name [String] The name of the resource group.
1233
+ # @param network_watcher_name [String] The name of the network watcher.
1234
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1235
+ # to the HTTP request.
1236
+ #
1237
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1238
+ #
1239
+ def begin_delete_async(resource_group_name, network_watcher_name, custom_headers:nil)
1240
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1241
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1242
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1243
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1244
+
1245
+
1246
+ request_headers = {}
1247
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1248
+
1249
+ # Set Headers
1250
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1251
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1252
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
1253
+
1254
+ request_url = @base_url || @client.base_url
1255
+
1256
+ options = {
1257
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1258
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1259
+ query_params: {'api-version' => @client.api_version},
1260
+ headers: request_headers.merge(custom_headers || {}),
1261
+ base_url: request_url
1262
+ }
1263
+ promise = @client.make_request_async(:delete, path_template, options)
1264
+
1265
+ promise = promise.then do |result|
1266
+ http_response = result.response
1267
+ status_code = http_response.status
1268
+ response_content = http_response.body
1269
+ unless status_code == 202 || status_code == 204
1270
+ error_model = JSON.load(response_content)
1271
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1272
+ end
1273
+
1274
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1275
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1276
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1277
+
1278
+ result
1279
+ end
1280
+
1281
+ promise.execute
1282
+ end
1283
+
1284
+ #
1285
+ # Verify IP flow from the specified VM to a location given the currently
1286
+ # configured NSG rules.
1287
+ #
1288
+ # @param resource_group_name [String] The name of the resource group.
1289
+ # @param network_watcher_name [String] The name of the network watcher.
1290
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
1291
+ # IP flow to be verified.
1292
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1293
+ # will be added to the HTTP request.
1294
+ #
1295
+ # @return [VerificationIPFlowResult] operation results.
1296
+ #
1297
+ def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1298
+ response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1299
+ response.body unless response.nil?
1300
+ end
1301
+
1302
+ #
1303
+ # Verify IP flow from the specified VM to a location given the currently
1304
+ # configured NSG rules.
1305
+ #
1306
+ # @param resource_group_name [String] The name of the resource group.
1307
+ # @param network_watcher_name [String] The name of the network watcher.
1308
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
1309
+ # IP flow to be verified.
1310
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1311
+ # will be added to the HTTP request.
1312
+ #
1313
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1314
+ #
1315
+ def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1316
+ begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1317
+ end
1318
+
1319
+ #
1320
+ # Verify IP flow from the specified VM to a location given the currently
1321
+ # configured NSG rules.
1322
+ #
1323
+ # @param resource_group_name [String] The name of the resource group.
1324
+ # @param network_watcher_name [String] The name of the network watcher.
1325
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
1326
+ # IP flow to be verified.
1327
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1328
+ # to the HTTP request.
1329
+ #
1330
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1331
+ #
1332
+ def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1333
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1334
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1335
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1336
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1337
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1338
+
1339
+
1340
+ request_headers = {}
1341
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1342
+
1343
+ # Set Headers
1344
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1345
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1346
+
1347
+ # Serialize Request
1348
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::VerificationIPFlowParameters.mapper()
1349
+ request_content = @client.serialize(request_mapper, parameters)
1350
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1351
+
1352
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify'
1353
+
1354
+ request_url = @base_url || @client.base_url
1355
+
1356
+ options = {
1357
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1358
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1359
+ query_params: {'api-version' => @client.api_version},
1360
+ body: request_content,
1361
+ headers: request_headers.merge(custom_headers || {}),
1362
+ base_url: request_url
1363
+ }
1364
+ promise = @client.make_request_async(:post, path_template, options)
1365
+
1366
+ promise = promise.then do |result|
1367
+ http_response = result.response
1368
+ status_code = http_response.status
1369
+ response_content = http_response.body
1370
+ unless status_code == 200 || status_code == 202
1371
+ error_model = JSON.load(response_content)
1372
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1373
+ end
1374
+
1375
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1376
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1377
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1378
+ # Deserialize Response
1379
+ if status_code == 200
1380
+ begin
1381
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1382
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::VerificationIPFlowResult.mapper()
1383
+ result.body = @client.deserialize(result_mapper, parsed_response)
1384
+ rescue Exception => e
1385
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1386
+ end
1387
+ end
1388
+ # Deserialize Response
1389
+ if status_code == 202
1390
+ begin
1391
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1392
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::VerificationIPFlowResult.mapper()
1393
+ result.body = @client.deserialize(result_mapper, parsed_response)
1394
+ rescue Exception => e
1395
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1396
+ end
1397
+ end
1398
+
1399
+ result
1400
+ end
1401
+
1402
+ promise.execute
1403
+ end
1404
+
1405
+ #
1406
+ # Gets the next hop from the specified VM.
1407
+ #
1408
+ # @param resource_group_name [String] The name of the resource group.
1409
+ # @param network_watcher_name [String] The name of the network watcher.
1410
+ # @param parameters [NextHopParameters] Parameters that define the source and
1411
+ # destination endpoint.
1412
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1413
+ # will be added to the HTTP request.
1414
+ #
1415
+ # @return [NextHopResult] operation results.
1416
+ #
1417
+ def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1418
+ response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1419
+ response.body unless response.nil?
1420
+ end
1421
+
1422
+ #
1423
+ # Gets the next hop from the specified VM.
1424
+ #
1425
+ # @param resource_group_name [String] The name of the resource group.
1426
+ # @param network_watcher_name [String] The name of the network watcher.
1427
+ # @param parameters [NextHopParameters] Parameters that define the source and
1428
+ # destination endpoint.
1429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1430
+ # will be added to the HTTP request.
1431
+ #
1432
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1433
+ #
1434
+ def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1435
+ begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1436
+ end
1437
+
1438
+ #
1439
+ # Gets the next hop from the specified VM.
1440
+ #
1441
+ # @param resource_group_name [String] The name of the resource group.
1442
+ # @param network_watcher_name [String] The name of the network watcher.
1443
+ # @param parameters [NextHopParameters] Parameters that define the source and
1444
+ # destination endpoint.
1445
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1446
+ # to the HTTP request.
1447
+ #
1448
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1449
+ #
1450
+ def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1451
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1452
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1453
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1454
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1455
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1456
+
1457
+
1458
+ request_headers = {}
1459
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1460
+
1461
+ # Set Headers
1462
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1463
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1464
+
1465
+ # Serialize Request
1466
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NextHopParameters.mapper()
1467
+ request_content = @client.serialize(request_mapper, parameters)
1468
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1469
+
1470
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop'
1471
+
1472
+ request_url = @base_url || @client.base_url
1473
+
1474
+ options = {
1475
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1476
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1477
+ query_params: {'api-version' => @client.api_version},
1478
+ body: request_content,
1479
+ headers: request_headers.merge(custom_headers || {}),
1480
+ base_url: request_url
1481
+ }
1482
+ promise = @client.make_request_async(:post, path_template, options)
1483
+
1484
+ promise = promise.then do |result|
1485
+ http_response = result.response
1486
+ status_code = http_response.status
1487
+ response_content = http_response.body
1488
+ unless status_code == 200 || status_code == 202
1489
+ error_model = JSON.load(response_content)
1490
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1491
+ end
1492
+
1493
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1494
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1495
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1496
+ # Deserialize Response
1497
+ if status_code == 200
1498
+ begin
1499
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1500
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NextHopResult.mapper()
1501
+ result.body = @client.deserialize(result_mapper, parsed_response)
1502
+ rescue Exception => e
1503
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1504
+ end
1505
+ end
1506
+ # Deserialize Response
1507
+ if status_code == 202
1508
+ begin
1509
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1510
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NextHopResult.mapper()
1511
+ result.body = @client.deserialize(result_mapper, parsed_response)
1512
+ rescue Exception => e
1513
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1514
+ end
1515
+ end
1516
+
1517
+ result
1518
+ end
1519
+
1520
+ promise.execute
1521
+ end
1522
+
1523
+ #
1524
+ # Gets the configured and effective security group rules on the specified VM.
1525
+ #
1526
+ # @param resource_group_name [String] The name of the resource group.
1527
+ # @param network_watcher_name [String] The name of the network watcher.
1528
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
1529
+ # to check security groups for.
1530
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1531
+ # will be added to the HTTP request.
1532
+ #
1533
+ # @return [SecurityGroupViewResult] operation results.
1534
+ #
1535
+ def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1536
+ response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1537
+ response.body unless response.nil?
1538
+ end
1539
+
1540
+ #
1541
+ # Gets the configured and effective security group rules on the specified VM.
1542
+ #
1543
+ # @param resource_group_name [String] The name of the resource group.
1544
+ # @param network_watcher_name [String] The name of the network watcher.
1545
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
1546
+ # to check security groups for.
1547
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1548
+ # will be added to the HTTP request.
1549
+ #
1550
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1551
+ #
1552
+ def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1553
+ begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1554
+ end
1555
+
1556
+ #
1557
+ # Gets the configured and effective security group rules on the specified VM.
1558
+ #
1559
+ # @param resource_group_name [String] The name of the resource group.
1560
+ # @param network_watcher_name [String] The name of the network watcher.
1561
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
1562
+ # to check security groups for.
1563
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1564
+ # to the HTTP request.
1565
+ #
1566
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1567
+ #
1568
+ def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1569
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1570
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1571
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1572
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1573
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1574
+
1575
+
1576
+ request_headers = {}
1577
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1578
+
1579
+ # Set Headers
1580
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1581
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1582
+
1583
+ # Serialize Request
1584
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::SecurityGroupViewParameters.mapper()
1585
+ request_content = @client.serialize(request_mapper, parameters)
1586
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1587
+
1588
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView'
1589
+
1590
+ request_url = @base_url || @client.base_url
1591
+
1592
+ options = {
1593
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1594
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1595
+ query_params: {'api-version' => @client.api_version},
1596
+ body: request_content,
1597
+ headers: request_headers.merge(custom_headers || {}),
1598
+ base_url: request_url
1599
+ }
1600
+ promise = @client.make_request_async(:post, path_template, options)
1601
+
1602
+ promise = promise.then do |result|
1603
+ http_response = result.response
1604
+ status_code = http_response.status
1605
+ response_content = http_response.body
1606
+ unless status_code == 200 || status_code == 202
1607
+ error_model = JSON.load(response_content)
1608
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1609
+ end
1610
+
1611
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1612
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1613
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1614
+ # Deserialize Response
1615
+ if status_code == 200
1616
+ begin
1617
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1618
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::SecurityGroupViewResult.mapper()
1619
+ result.body = @client.deserialize(result_mapper, parsed_response)
1620
+ rescue Exception => e
1621
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1622
+ end
1623
+ end
1624
+ # Deserialize Response
1625
+ if status_code == 202
1626
+ begin
1627
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1628
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::SecurityGroupViewResult.mapper()
1629
+ result.body = @client.deserialize(result_mapper, parsed_response)
1630
+ rescue Exception => e
1631
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1632
+ end
1633
+ end
1634
+
1635
+ result
1636
+ end
1637
+
1638
+ promise.execute
1639
+ end
1640
+
1641
+ #
1642
+ # Initiate troubleshooting on a specified resource.
1643
+ #
1644
+ # @param resource_group_name [String] The name of the resource group.
1645
+ # @param network_watcher_name [String] The name of the network watcher
1646
+ # resource.
1647
+ # @param parameters [TroubleshootingParameters] Parameters that define the
1648
+ # resource to troubleshoot.
1649
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1650
+ # will be added to the HTTP request.
1651
+ #
1652
+ # @return [TroubleshootingResult] operation results.
1653
+ #
1654
+ def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1655
+ response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1656
+ response.body unless response.nil?
1657
+ end
1658
+
1659
+ #
1660
+ # Initiate troubleshooting on a specified resource.
1661
+ #
1662
+ # @param resource_group_name [String] The name of the resource group.
1663
+ # @param network_watcher_name [String] The name of the network watcher
1664
+ # resource.
1665
+ # @param parameters [TroubleshootingParameters] Parameters that define the
1666
+ # resource to troubleshoot.
1667
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1668
+ # will be added to the HTTP request.
1669
+ #
1670
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1671
+ #
1672
+ def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1673
+ begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1674
+ end
1675
+
1676
+ #
1677
+ # Initiate troubleshooting on a specified resource.
1678
+ #
1679
+ # @param resource_group_name [String] The name of the resource group.
1680
+ # @param network_watcher_name [String] The name of the network watcher
1681
+ # resource.
1682
+ # @param parameters [TroubleshootingParameters] Parameters that define the
1683
+ # resource to troubleshoot.
1684
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1685
+ # to the HTTP request.
1686
+ #
1687
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1688
+ #
1689
+ def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1690
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1691
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1692
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1693
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1694
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1695
+
1696
+
1697
+ request_headers = {}
1698
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1699
+
1700
+ # Set Headers
1701
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1702
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1703
+
1704
+ # Serialize Request
1705
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingParameters.mapper()
1706
+ request_content = @client.serialize(request_mapper, parameters)
1707
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1708
+
1709
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot'
1710
+
1711
+ request_url = @base_url || @client.base_url
1712
+
1713
+ options = {
1714
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1715
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1716
+ query_params: {'api-version' => @client.api_version},
1717
+ body: request_content,
1718
+ headers: request_headers.merge(custom_headers || {}),
1719
+ base_url: request_url
1720
+ }
1721
+ promise = @client.make_request_async(:post, path_template, options)
1722
+
1723
+ promise = promise.then do |result|
1724
+ http_response = result.response
1725
+ status_code = http_response.status
1726
+ response_content = http_response.body
1727
+ unless status_code == 200 || status_code == 202
1728
+ error_model = JSON.load(response_content)
1729
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1730
+ end
1731
+
1732
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1733
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1734
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1735
+ # Deserialize Response
1736
+ if status_code == 200
1737
+ begin
1738
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1739
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingResult.mapper()
1740
+ result.body = @client.deserialize(result_mapper, parsed_response)
1741
+ rescue Exception => e
1742
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1743
+ end
1744
+ end
1745
+ # Deserialize Response
1746
+ if status_code == 202
1747
+ begin
1748
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1749
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingResult.mapper()
1750
+ result.body = @client.deserialize(result_mapper, parsed_response)
1751
+ rescue Exception => e
1752
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1753
+ end
1754
+ end
1755
+
1756
+ result
1757
+ end
1758
+
1759
+ promise.execute
1760
+ end
1761
+
1762
+ #
1763
+ # Get the last completed troubleshooting result on a specified resource.
1764
+ #
1765
+ # @param resource_group_name [String] The name of the resource group.
1766
+ # @param network_watcher_name [String] The name of the network watcher
1767
+ # resource.
1768
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
1769
+ # resource to query the troubleshooting result.
1770
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1771
+ # will be added to the HTTP request.
1772
+ #
1773
+ # @return [TroubleshootingResult] operation results.
1774
+ #
1775
+ def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1776
+ response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1777
+ response.body unless response.nil?
1778
+ end
1779
+
1780
+ #
1781
+ # Get the last completed troubleshooting result on a specified resource.
1782
+ #
1783
+ # @param resource_group_name [String] The name of the resource group.
1784
+ # @param network_watcher_name [String] The name of the network watcher
1785
+ # resource.
1786
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
1787
+ # resource to query the troubleshooting result.
1788
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1789
+ # will be added to the HTTP request.
1790
+ #
1791
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1792
+ #
1793
+ def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1794
+ begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1795
+ end
1796
+
1797
+ #
1798
+ # Get the last completed troubleshooting result on a specified resource.
1799
+ #
1800
+ # @param resource_group_name [String] The name of the resource group.
1801
+ # @param network_watcher_name [String] The name of the network watcher
1802
+ # resource.
1803
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
1804
+ # resource to query the troubleshooting result.
1805
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1806
+ # to the HTTP request.
1807
+ #
1808
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1809
+ #
1810
+ def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1811
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1812
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1813
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1814
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1815
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1816
+
1817
+
1818
+ request_headers = {}
1819
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1820
+
1821
+ # Set Headers
1822
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1823
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1824
+
1825
+ # Serialize Request
1826
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::QueryTroubleshootingParameters.mapper()
1827
+ request_content = @client.serialize(request_mapper, parameters)
1828
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1829
+
1830
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult'
1831
+
1832
+ request_url = @base_url || @client.base_url
1833
+
1834
+ options = {
1835
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1836
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1837
+ query_params: {'api-version' => @client.api_version},
1838
+ body: request_content,
1839
+ headers: request_headers.merge(custom_headers || {}),
1840
+ base_url: request_url
1841
+ }
1842
+ promise = @client.make_request_async(:post, path_template, options)
1843
+
1844
+ promise = promise.then do |result|
1845
+ http_response = result.response
1846
+ status_code = http_response.status
1847
+ response_content = http_response.body
1848
+ unless status_code == 200 || status_code == 202
1849
+ error_model = JSON.load(response_content)
1850
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1851
+ end
1852
+
1853
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1854
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1855
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1856
+ # Deserialize Response
1857
+ if status_code == 200
1858
+ begin
1859
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1860
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingResult.mapper()
1861
+ result.body = @client.deserialize(result_mapper, parsed_response)
1862
+ rescue Exception => e
1863
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1864
+ end
1865
+ end
1866
+ # Deserialize Response
1867
+ if status_code == 202
1868
+ begin
1869
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1870
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TroubleshootingResult.mapper()
1871
+ result.body = @client.deserialize(result_mapper, parsed_response)
1872
+ rescue Exception => e
1873
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1874
+ end
1875
+ end
1876
+
1877
+ result
1878
+ end
1879
+
1880
+ promise.execute
1881
+ end
1882
+
1883
+ #
1884
+ # Configures flow log and traffic analytics (optional) on a specified resource.
1885
+ #
1886
+ # @param resource_group_name [String] The name of the network watcher resource
1887
+ # group.
1888
+ # @param network_watcher_name [String] The name of the network watcher
1889
+ # resource.
1890
+ # @param parameters [FlowLogInformation] Parameters that define the
1891
+ # configuration of flow log.
1892
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1893
+ # will be added to the HTTP request.
1894
+ #
1895
+ # @return [FlowLogInformation] operation results.
1896
+ #
1897
+ def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1898
+ response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1899
+ response.body unless response.nil?
1900
+ end
1901
+
1902
+ #
1903
+ # Configures flow log and traffic analytics (optional) on a specified resource.
1904
+ #
1905
+ # @param resource_group_name [String] The name of the network watcher resource
1906
+ # group.
1907
+ # @param network_watcher_name [String] The name of the network watcher
1908
+ # resource.
1909
+ # @param parameters [FlowLogInformation] Parameters that define the
1910
+ # configuration of flow log.
1911
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1912
+ # will be added to the HTTP request.
1913
+ #
1914
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1915
+ #
1916
+ def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1917
+ begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1918
+ end
1919
+
1920
+ #
1921
+ # Configures flow log and traffic analytics (optional) on a specified resource.
1922
+ #
1923
+ # @param resource_group_name [String] The name of the network watcher resource
1924
+ # group.
1925
+ # @param network_watcher_name [String] The name of the network watcher
1926
+ # resource.
1927
+ # @param parameters [FlowLogInformation] Parameters that define the
1928
+ # configuration of flow log.
1929
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1930
+ # to the HTTP request.
1931
+ #
1932
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1933
+ #
1934
+ def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1935
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1936
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1937
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1938
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1939
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1940
+
1941
+
1942
+ request_headers = {}
1943
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1944
+
1945
+ # Set Headers
1946
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1947
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1948
+
1949
+ # Serialize Request
1950
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
1951
+ request_content = @client.serialize(request_mapper, parameters)
1952
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1953
+
1954
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog'
1955
+
1956
+ request_url = @base_url || @client.base_url
1957
+
1958
+ options = {
1959
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1960
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1961
+ query_params: {'api-version' => @client.api_version},
1962
+ body: request_content,
1963
+ headers: request_headers.merge(custom_headers || {}),
1964
+ base_url: request_url
1965
+ }
1966
+ promise = @client.make_request_async(:post, path_template, options)
1967
+
1968
+ promise = promise.then do |result|
1969
+ http_response = result.response
1970
+ status_code = http_response.status
1971
+ response_content = http_response.body
1972
+ unless status_code == 200 || status_code == 202
1973
+ error_model = JSON.load(response_content)
1974
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1975
+ end
1976
+
1977
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1978
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1979
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1980
+ # Deserialize Response
1981
+ if status_code == 200
1982
+ begin
1983
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1984
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
1985
+ result.body = @client.deserialize(result_mapper, parsed_response)
1986
+ rescue Exception => e
1987
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1988
+ end
1989
+ end
1990
+ # Deserialize Response
1991
+ if status_code == 202
1992
+ begin
1993
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1994
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
1995
+ result.body = @client.deserialize(result_mapper, parsed_response)
1996
+ rescue Exception => e
1997
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1998
+ end
1999
+ end
2000
+
2001
+ result
2002
+ end
2003
+
2004
+ promise.execute
2005
+ end
2006
+
2007
+ #
2008
+ # Queries status of flow log and traffic analytics (optional) on a specified
2009
+ # resource.
2010
+ #
2011
+ # @param resource_group_name [String] The name of the network watcher resource
2012
+ # group.
2013
+ # @param network_watcher_name [String] The name of the network watcher
2014
+ # resource.
2015
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
2016
+ # to query flow log and traffic analytics (optional) status.
2017
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2018
+ # will be added to the HTTP request.
2019
+ #
2020
+ # @return [FlowLogInformation] operation results.
2021
+ #
2022
+ def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2023
+ response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2024
+ response.body unless response.nil?
2025
+ end
2026
+
2027
+ #
2028
+ # Queries status of flow log and traffic analytics (optional) on a specified
2029
+ # resource.
2030
+ #
2031
+ # @param resource_group_name [String] The name of the network watcher resource
2032
+ # group.
2033
+ # @param network_watcher_name [String] The name of the network watcher
2034
+ # resource.
2035
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
2036
+ # to query flow log and traffic analytics (optional) status.
2037
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2038
+ # will be added to the HTTP request.
2039
+ #
2040
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2041
+ #
2042
+ def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2043
+ begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2044
+ end
2045
+
2046
+ #
2047
+ # Queries status of flow log and traffic analytics (optional) on a specified
2048
+ # resource.
2049
+ #
2050
+ # @param resource_group_name [String] The name of the network watcher resource
2051
+ # group.
2052
+ # @param network_watcher_name [String] The name of the network watcher
2053
+ # resource.
2054
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
2055
+ # to query flow log and traffic analytics (optional) status.
2056
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2057
+ # to the HTTP request.
2058
+ #
2059
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2060
+ #
2061
+ def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2062
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2063
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2064
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2065
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2066
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2067
+
2068
+
2069
+ request_headers = {}
2070
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2071
+
2072
+ # Set Headers
2073
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2074
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2075
+
2076
+ # Serialize Request
2077
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogStatusParameters.mapper()
2078
+ request_content = @client.serialize(request_mapper, parameters)
2079
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2080
+
2081
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus'
2082
+
2083
+ request_url = @base_url || @client.base_url
2084
+
2085
+ options = {
2086
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2087
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2088
+ query_params: {'api-version' => @client.api_version},
2089
+ body: request_content,
2090
+ headers: request_headers.merge(custom_headers || {}),
2091
+ base_url: request_url
2092
+ }
2093
+ promise = @client.make_request_async(:post, path_template, options)
2094
+
2095
+ promise = promise.then do |result|
2096
+ http_response = result.response
2097
+ status_code = http_response.status
2098
+ response_content = http_response.body
2099
+ unless status_code == 200 || status_code == 202
2100
+ error_model = JSON.load(response_content)
2101
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2102
+ end
2103
+
2104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2107
+ # Deserialize Response
2108
+ if status_code == 200
2109
+ begin
2110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2111
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
2112
+ result.body = @client.deserialize(result_mapper, parsed_response)
2113
+ rescue Exception => e
2114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2115
+ end
2116
+ end
2117
+ # Deserialize Response
2118
+ if status_code == 202
2119
+ begin
2120
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2121
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::FlowLogInformation.mapper()
2122
+ result.body = @client.deserialize(result_mapper, parsed_response)
2123
+ rescue Exception => e
2124
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2125
+ end
2126
+ end
2127
+
2128
+ result
2129
+ end
2130
+
2131
+ promise.execute
2132
+ end
2133
+
2134
+ #
2135
+ # Verifies the possibility of establishing a direct TCP connection from a
2136
+ # virtual machine to a given endpoint including another VM or an arbitrary
2137
+ # remote server.
2138
+ #
2139
+ # @param resource_group_name [String] The name of the network watcher resource
2140
+ # group.
2141
+ # @param network_watcher_name [String] The name of the network watcher
2142
+ # resource.
2143
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
2144
+ # connectivity check will be performed.
2145
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2146
+ # will be added to the HTTP request.
2147
+ #
2148
+ # @return [ConnectivityInformation] operation results.
2149
+ #
2150
+ def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2151
+ response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2152
+ response.body unless response.nil?
2153
+ end
2154
+
2155
+ #
2156
+ # Verifies the possibility of establishing a direct TCP connection from a
2157
+ # virtual machine to a given endpoint including another VM or an arbitrary
2158
+ # remote server.
2159
+ #
2160
+ # @param resource_group_name [String] The name of the network watcher resource
2161
+ # group.
2162
+ # @param network_watcher_name [String] The name of the network watcher
2163
+ # resource.
2164
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
2165
+ # connectivity check will be performed.
2166
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2167
+ # will be added to the HTTP request.
2168
+ #
2169
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2170
+ #
2171
+ def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2172
+ begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2173
+ end
2174
+
2175
+ #
2176
+ # Verifies the possibility of establishing a direct TCP connection from a
2177
+ # virtual machine to a given endpoint including another VM or an arbitrary
2178
+ # remote server.
2179
+ #
2180
+ # @param resource_group_name [String] The name of the network watcher resource
2181
+ # group.
2182
+ # @param network_watcher_name [String] The name of the network watcher
2183
+ # resource.
2184
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
2185
+ # connectivity check will be performed.
2186
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2187
+ # to the HTTP request.
2188
+ #
2189
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2190
+ #
2191
+ def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2192
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2193
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2194
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2195
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2196
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2197
+
2198
+
2199
+ request_headers = {}
2200
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2201
+
2202
+ # Set Headers
2203
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2204
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2205
+
2206
+ # Serialize Request
2207
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ConnectivityParameters.mapper()
2208
+ request_content = @client.serialize(request_mapper, parameters)
2209
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2210
+
2211
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck'
2212
+
2213
+ request_url = @base_url || @client.base_url
2214
+
2215
+ options = {
2216
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2217
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2218
+ query_params: {'api-version' => @client.api_version},
2219
+ body: request_content,
2220
+ headers: request_headers.merge(custom_headers || {}),
2221
+ base_url: request_url
2222
+ }
2223
+ promise = @client.make_request_async(:post, path_template, options)
2224
+
2225
+ promise = promise.then do |result|
2226
+ http_response = result.response
2227
+ status_code = http_response.status
2228
+ response_content = http_response.body
2229
+ unless status_code == 200 || status_code == 202
2230
+ error_model = JSON.load(response_content)
2231
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2232
+ end
2233
+
2234
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2235
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2236
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2237
+ # Deserialize Response
2238
+ if status_code == 200
2239
+ begin
2240
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2241
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ConnectivityInformation.mapper()
2242
+ result.body = @client.deserialize(result_mapper, parsed_response)
2243
+ rescue Exception => e
2244
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2245
+ end
2246
+ end
2247
+ # Deserialize Response
2248
+ if status_code == 202
2249
+ begin
2250
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2251
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ConnectivityInformation.mapper()
2252
+ result.body = @client.deserialize(result_mapper, parsed_response)
2253
+ rescue Exception => e
2254
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2255
+ end
2256
+ end
2257
+
2258
+ result
2259
+ end
2260
+
2261
+ promise.execute
2262
+ end
2263
+
2264
+ #
2265
+ # Gets the relative latency score for internet service providers from a
2266
+ # specified location to Azure regions.
2267
+ #
2268
+ # @param resource_group_name [String] The name of the network watcher resource
2269
+ # group.
2270
+ # @param network_watcher_name [String] The name of the network watcher
2271
+ # resource.
2272
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
2273
+ # determine Azure reachability report configuration.
2274
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2275
+ # will be added to the HTTP request.
2276
+ #
2277
+ # @return [AzureReachabilityReport] operation results.
2278
+ #
2279
+ def begin_get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2280
+ response = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2281
+ response.body unless response.nil?
2282
+ end
2283
+
2284
+ #
2285
+ # Gets the relative latency score for internet service providers from a
2286
+ # specified location to Azure regions.
2287
+ #
2288
+ # @param resource_group_name [String] The name of the network watcher resource
2289
+ # group.
2290
+ # @param network_watcher_name [String] The name of the network watcher
2291
+ # resource.
2292
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
2293
+ # determine Azure reachability report configuration.
2294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2295
+ # will be added to the HTTP request.
2296
+ #
2297
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2298
+ #
2299
+ def begin_get_azure_reachability_report_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2300
+ begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2301
+ end
2302
+
2303
+ #
2304
+ # Gets the relative latency score for internet service providers from a
2305
+ # specified location to Azure regions.
2306
+ #
2307
+ # @param resource_group_name [String] The name of the network watcher resource
2308
+ # group.
2309
+ # @param network_watcher_name [String] The name of the network watcher
2310
+ # resource.
2311
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
2312
+ # determine Azure reachability report configuration.
2313
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2314
+ # to the HTTP request.
2315
+ #
2316
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2317
+ #
2318
+ def begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2319
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2320
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2321
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2322
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2323
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2324
+
2325
+
2326
+ request_headers = {}
2327
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2328
+
2329
+ # Set Headers
2330
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2331
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2332
+
2333
+ # Serialize Request
2334
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AzureReachabilityReportParameters.mapper()
2335
+ request_content = @client.serialize(request_mapper, parameters)
2336
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2337
+
2338
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport'
2339
+
2340
+ request_url = @base_url || @client.base_url
2341
+
2342
+ options = {
2343
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2344
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2345
+ query_params: {'api-version' => @client.api_version},
2346
+ body: request_content,
2347
+ headers: request_headers.merge(custom_headers || {}),
2348
+ base_url: request_url
2349
+ }
2350
+ promise = @client.make_request_async(:post, path_template, options)
2351
+
2352
+ promise = promise.then do |result|
2353
+ http_response = result.response
2354
+ status_code = http_response.status
2355
+ response_content = http_response.body
2356
+ unless status_code == 200 || status_code == 202
2357
+ error_model = JSON.load(response_content)
2358
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2359
+ end
2360
+
2361
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2362
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2363
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2364
+ # Deserialize Response
2365
+ if status_code == 200
2366
+ begin
2367
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2368
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AzureReachabilityReport.mapper()
2369
+ result.body = @client.deserialize(result_mapper, parsed_response)
2370
+ rescue Exception => e
2371
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2372
+ end
2373
+ end
2374
+ # Deserialize Response
2375
+ if status_code == 202
2376
+ begin
2377
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2378
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AzureReachabilityReport.mapper()
2379
+ result.body = @client.deserialize(result_mapper, parsed_response)
2380
+ rescue Exception => e
2381
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2382
+ end
2383
+ end
2384
+
2385
+ result
2386
+ end
2387
+
2388
+ promise.execute
2389
+ end
2390
+
2391
+ #
2392
+ # Lists all available internet service providers for a specified Azure region.
2393
+ #
2394
+ # @param resource_group_name [String] The name of the network watcher resource
2395
+ # group.
2396
+ # @param network_watcher_name [String] The name of the network watcher
2397
+ # resource.
2398
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
2399
+ # the list of available providers.
2400
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2401
+ # will be added to the HTTP request.
2402
+ #
2403
+ # @return [AvailableProvidersList] operation results.
2404
+ #
2405
+ def begin_list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2406
+ response = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2407
+ response.body unless response.nil?
2408
+ end
2409
+
2410
+ #
2411
+ # Lists all available internet service providers for a specified Azure region.
2412
+ #
2413
+ # @param resource_group_name [String] The name of the network watcher resource
2414
+ # group.
2415
+ # @param network_watcher_name [String] The name of the network watcher
2416
+ # resource.
2417
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
2418
+ # the list of available providers.
2419
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2420
+ # will be added to the HTTP request.
2421
+ #
2422
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2423
+ #
2424
+ def begin_list_available_providers_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2425
+ begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2426
+ end
2427
+
2428
+ #
2429
+ # Lists all available internet service providers for a specified Azure region.
2430
+ #
2431
+ # @param resource_group_name [String] The name of the network watcher resource
2432
+ # group.
2433
+ # @param network_watcher_name [String] The name of the network watcher
2434
+ # resource.
2435
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
2436
+ # the list of available providers.
2437
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2438
+ # to the HTTP request.
2439
+ #
2440
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2441
+ #
2442
+ def begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2443
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2444
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2445
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2446
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2447
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2448
+
2449
+
2450
+ request_headers = {}
2451
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2452
+
2453
+ # Set Headers
2454
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2455
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2456
+
2457
+ # Serialize Request
2458
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AvailableProvidersListParameters.mapper()
2459
+ request_content = @client.serialize(request_mapper, parameters)
2460
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2461
+
2462
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList'
2463
+
2464
+ request_url = @base_url || @client.base_url
2465
+
2466
+ options = {
2467
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2468
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2469
+ query_params: {'api-version' => @client.api_version},
2470
+ body: request_content,
2471
+ headers: request_headers.merge(custom_headers || {}),
2472
+ base_url: request_url
2473
+ }
2474
+ promise = @client.make_request_async(:post, path_template, options)
2475
+
2476
+ promise = promise.then do |result|
2477
+ http_response = result.response
2478
+ status_code = http_response.status
2479
+ response_content = http_response.body
2480
+ unless status_code == 200 || status_code == 202
2481
+ error_model = JSON.load(response_content)
2482
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2483
+ end
2484
+
2485
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2486
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2487
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2488
+ # Deserialize Response
2489
+ if status_code == 200
2490
+ begin
2491
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2492
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AvailableProvidersList.mapper()
2493
+ result.body = @client.deserialize(result_mapper, parsed_response)
2494
+ rescue Exception => e
2495
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2496
+ end
2497
+ end
2498
+ # Deserialize Response
2499
+ if status_code == 202
2500
+ begin
2501
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2502
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::AvailableProvidersList.mapper()
2503
+ result.body = @client.deserialize(result_mapper, parsed_response)
2504
+ rescue Exception => e
2505
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2506
+ end
2507
+ end
2508
+
2509
+ result
2510
+ end
2511
+
2512
+ promise.execute
2513
+ end
2514
+
2515
+ #
2516
+ # Get network configuration diagnostic.
2517
+ #
2518
+ # @param resource_group_name [String] The name of the resource group.
2519
+ # @param network_watcher_name [String] The name of the network watcher.
2520
+ # @param parameters [NetworkConfigurationDiagnosticParameters] Parameters to
2521
+ # get network configuration diagnostic.
2522
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2523
+ # will be added to the HTTP request.
2524
+ #
2525
+ # @return [NetworkConfigurationDiagnosticResponse] operation results.
2526
+ #
2527
+ def begin_get_network_configuration_diagnostic(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2528
+ response = begin_get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2529
+ response.body unless response.nil?
2530
+ end
2531
+
2532
+ #
2533
+ # Get network configuration diagnostic.
2534
+ #
2535
+ # @param resource_group_name [String] The name of the resource group.
2536
+ # @param network_watcher_name [String] The name of the network watcher.
2537
+ # @param parameters [NetworkConfigurationDiagnosticParameters] Parameters to
2538
+ # get network configuration diagnostic.
2539
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2540
+ # will be added to the HTTP request.
2541
+ #
2542
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2543
+ #
2544
+ def begin_get_network_configuration_diagnostic_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2545
+ begin_get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2546
+ end
2547
+
2548
+ #
2549
+ # Get network configuration diagnostic.
2550
+ #
2551
+ # @param resource_group_name [String] The name of the resource group.
2552
+ # @param network_watcher_name [String] The name of the network watcher.
2553
+ # @param parameters [NetworkConfigurationDiagnosticParameters] Parameters to
2554
+ # get network configuration diagnostic.
2555
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2556
+ # to the HTTP request.
2557
+ #
2558
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2559
+ #
2560
+ def begin_get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2561
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2562
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2563
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2564
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2565
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2566
+
2567
+
2568
+ request_headers = {}
2569
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2570
+
2571
+ # Set Headers
2572
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2573
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2574
+
2575
+ # Serialize Request
2576
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkConfigurationDiagnosticParameters.mapper()
2577
+ request_content = @client.serialize(request_mapper, parameters)
2578
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2579
+
2580
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic'
2581
+
2582
+ request_url = @base_url || @client.base_url
2583
+
2584
+ options = {
2585
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2586
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2587
+ query_params: {'api-version' => @client.api_version},
2588
+ body: request_content,
2589
+ headers: request_headers.merge(custom_headers || {}),
2590
+ base_url: request_url
2591
+ }
2592
+ promise = @client.make_request_async(:post, path_template, options)
2593
+
2594
+ promise = promise.then do |result|
2595
+ http_response = result.response
2596
+ status_code = http_response.status
2597
+ response_content = http_response.body
2598
+ unless status_code == 200 || status_code == 202
2599
+ error_model = JSON.load(response_content)
2600
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2601
+ end
2602
+
2603
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2604
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2605
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2606
+ # Deserialize Response
2607
+ if status_code == 200
2608
+ begin
2609
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2610
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkConfigurationDiagnosticResponse.mapper()
2611
+ result.body = @client.deserialize(result_mapper, parsed_response)
2612
+ rescue Exception => e
2613
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2614
+ end
2615
+ end
2616
+ # Deserialize Response
2617
+ if status_code == 202
2618
+ begin
2619
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2620
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::NetworkConfigurationDiagnosticResponse.mapper()
2621
+ result.body = @client.deserialize(result_mapper, parsed_response)
2622
+ rescue Exception => e
2623
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2624
+ end
2625
+ end
2626
+
2627
+ result
2628
+ end
2629
+
2630
+ promise.execute
2631
+ end
2632
+
2633
+ end
2634
+ end