azure_mgmt_network 0.23.1 → 0.23.2

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