azure_mgmt_network 0.18.0 → 0.18.1

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