azure_mgmt_network 0.20.0 → 0.21.0

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