azure_mgmt_network 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (656) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
  4. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  6. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  7. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  8. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  9. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  10. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  11. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  12. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  13. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  14. data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  15. data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  16. data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  17. data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  18. data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  19. data/lib/2018-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  20. data/lib/2018-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  21. data/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  22. data/lib/2019-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  23. data/lib/2019-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  24. data/lib/2019-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  25. data/lib/2019-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  26. data/lib/2019-08-01/generated/azure_mgmt_network.rb +651 -0
  27. data/lib/2019-08-01/generated/azure_mgmt_network/application_gateways.rb +2276 -0
  28. data/lib/2019-08-01/generated/azure_mgmt_network/application_security_groups.rb +973 -0
  29. data/lib/2019-08-01/generated/azure_mgmt_network/available_delegations.rb +233 -0
  30. data/lib/2019-08-01/generated/azure_mgmt_network/available_endpoint_services.rb +226 -0
  31. data/lib/2019-08-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +446 -0
  32. data/lib/2019-08-01/generated/azure_mgmt_network/available_resource_group_delegations.rb +238 -0
  33. data/lib/2019-08-01/generated/azure_mgmt_network/available_service_aliases.rb +432 -0
  34. data/lib/2019-08-01/generated/azure_mgmt_network/azure_firewall_fqdn_tags.rb +221 -0
  35. data/lib/2019-08-01/generated/azure_mgmt_network/azure_firewalls.rb +909 -0
  36. data/lib/2019-08-01/generated/azure_mgmt_network/bastion_hosts.rb +801 -0
  37. data/lib/2019-08-01/generated/azure_mgmt_network/bgp_service_communities.rb +221 -0
  38. data/lib/2019-08-01/generated/azure_mgmt_network/ddos_custom_policies.rb +558 -0
  39. data/lib/2019-08-01/generated/azure_mgmt_network/ddos_protection_plans.rb +973 -0
  40. data/lib/2019-08-01/generated/azure_mgmt_network/default_security_rules.rb +339 -0
  41. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +631 -0
  42. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_circuit_connections.rb +683 -0
  43. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +626 -0
  44. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_circuits.rb +1603 -0
  45. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_connections.rb +534 -0
  46. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb +648 -0
  47. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_cross_connections.rb +1308 -0
  48. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_gateways.rb +601 -0
  49. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_links.rb +343 -0
  50. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_ports.rb +970 -0
  51. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_ports_locations.rb +331 -0
  52. data/lib/2019-08-01/generated/azure_mgmt_network/express_route_service_providers.rb +221 -0
  53. data/lib/2019-08-01/generated/azure_mgmt_network/firewall_policies.rb +918 -0
  54. data/lib/2019-08-01/generated/azure_mgmt_network/firewall_policy_rule_groups.rb +626 -0
  55. data/lib/2019-08-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +336 -0
  56. data/lib/2019-08-01/generated/azure_mgmt_network/inbound_nat_rules.rb +629 -0
  57. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +332 -0
  58. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +332 -0
  59. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +329 -0
  60. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +231 -0
  61. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +329 -0
  62. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancer_probes.rb +329 -0
  63. data/lib/2019-08-01/generated/azure_mgmt_network/load_balancers.rb +958 -0
  64. data/lib/2019-08-01/generated/azure_mgmt_network/local_network_gateways.rb +781 -0
  65. data/lib/2019-08-01/generated/azure_mgmt_network/models/aad_authentication_parameters.rb +68 -0
  66. data/lib/2019-08-01/generated/azure_mgmt_network/models/access.rb +16 -0
  67. data/lib/2019-08-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  68. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway.rb +594 -0
  69. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +103 -0
  70. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_autoscale_configuration.rb +65 -0
  71. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  72. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  73. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  74. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  75. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +132 -0
  76. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +56 -0
  77. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  78. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb +61 -0
  79. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  80. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +83 -0
  81. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  82. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +263 -0
  83. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  84. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  85. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
  86. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
  87. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  88. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
  89. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  90. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  91. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  92. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +142 -0
  93. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +140 -0
  94. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +102 -0
  95. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb +57 -0
  96. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +185 -0
  97. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +105 -0
  98. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  99. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb +134 -0
  100. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  101. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +162 -0
  102. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +220 -0
  103. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  104. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  105. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +199 -0
  106. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  107. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +195 -0
  108. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  109. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule.rb +93 -0
  110. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_action_set.rb +77 -0
  111. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_condition.rb +82 -0
  112. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_set.rb +103 -0
  113. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  114. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +21 -0
  115. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +139 -0
  116. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +42 -0
  117. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  118. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  119. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  120. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  121. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  122. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +18 -0
  123. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_trusted_root_certificate.rb +114 -0
  124. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +165 -0
  125. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +180 -0
  126. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_rule_condition.rb +164 -0
  127. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  128. data/lib/2019-08-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  129. data/lib/2019-08-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  130. data/lib/2019-08-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  131. data/lib/2019-08-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  132. data/lib/2019-08-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  133. data/lib/2019-08-01/generated/azure_mgmt_network/models/auto_approved_private_link_service.rb +46 -0
  134. data/lib/2019-08-01/generated/azure_mgmt_network/models/auto_approved_private_link_services_result.rb +101 -0
  135. data/lib/2019-08-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  136. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_delegation.rb +101 -0
  137. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_delegations_result.rb +99 -0
  138. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +80 -0
  139. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_private_endpoint_types_result.rb +100 -0
  140. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  141. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  142. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  143. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  144. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  145. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_service_alias.rb +79 -0
  146. data/lib/2019-08-01/generated/azure_mgmt_network/models/available_service_aliases_result.rb +100 -0
  147. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  148. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall.rb +277 -0
  149. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_application_rule.rb +135 -0
  150. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_collection.rb +129 -0
  151. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol.rb +63 -0
  152. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol_type.rb +17 -0
  153. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag.rb +124 -0
  154. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb +99 -0
  155. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_ipconfiguration.rb +120 -0
  156. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb +99 -0
  157. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction.rb +47 -0
  158. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction_type.rb +16 -0
  159. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb +157 -0
  160. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule_collection.rb +130 -0
  161. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_network_rule.rb +134 -0
  162. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_collection.rb +129 -0
  163. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +18 -0
  164. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_public_ipaddress.rb +46 -0
  165. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_rcaction.rb +47 -0
  166. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb +16 -0
  167. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_sku.rb +59 -0
  168. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_sku_name.rb +16 -0
  169. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_sku_tier.rb +15 -0
  170. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_firewall_threat_intel_mode.rb +17 -0
  171. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +81 -0
  172. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  173. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  174. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  175. data/lib/2019-08-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +108 -0
  176. data/lib/2019-08-01/generated/azure_mgmt_network/models/backend_address_pool.rb +173 -0
  177. data/lib/2019-08-01/generated/azure_mgmt_network/models/bastion_host.rb +144 -0
  178. data/lib/2019-08-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +129 -0
  179. data/lib/2019-08-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb +98 -0
  180. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  181. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  182. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  183. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  184. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  185. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  186. data/lib/2019-08-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  187. data/lib/2019-08-01/generated/azure_mgmt_network/models/check_private_link_service_visibility_request.rb +46 -0
  188. data/lib/2019-08-01/generated/azure_mgmt_network/models/circuit_connection_status.rb +17 -0
  189. data/lib/2019-08-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  190. data/lib/2019-08-01/generated/azure_mgmt_network/models/connection_shared_key.rb +54 -0
  191. data/lib/2019-08-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  192. data/lib/2019-08-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  193. data/lib/2019-08-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  194. data/lib/2019-08-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  195. data/lib/2019-08-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  196. data/lib/2019-08-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +84 -0
  197. data/lib/2019-08-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  198. data/lib/2019-08-01/generated/azure_mgmt_network/models/container.rb +43 -0
  199. data/lib/2019-08-01/generated/azure_mgmt_network/models/container_network_interface.rb +141 -0
  200. data/lib/2019-08-01/generated/azure_mgmt_network/models/container_network_interface_configuration.rb +135 -0
  201. data/lib/2019-08-01/generated/azure_mgmt_network/models/container_network_interface_ip_configuration.rb +85 -0
  202. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_custom_policy.rb +170 -0
  203. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_custom_policy_protocol.rb +17 -0
  204. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_custom_policy_trigger_sensitivity_override.rb +18 -0
  205. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_protection_plan.rb +165 -0
  206. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_protection_plan_list_result.rb +99 -0
  207. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_settings.rb +61 -0
  208. data/lib/2019-08-01/generated/azure_mgmt_network/models/ddos_settings_protection_coverage.rb +16 -0
  209. data/lib/2019-08-01/generated/azure_mgmt_network/models/delegation.rb +113 -0
  210. data/lib/2019-08-01/generated/azure_mgmt_network/models/device_properties.rb +68 -0
  211. data/lib/2019-08-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  212. data/lib/2019-08-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  213. data/lib/2019-08-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  214. data/lib/2019-08-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  215. data/lib/2019-08-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  216. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  217. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  218. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  219. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +260 -0
  220. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_route.rb +135 -0
  221. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  222. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  223. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  224. data/lib/2019-08-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  225. data/lib/2019-08-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  226. data/lib/2019-08-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  227. data/lib/2019-08-01/generated/azure_mgmt_network/models/error.rb +99 -0
  228. data/lib/2019-08-01/generated/azure_mgmt_network/models/error_details.rb +68 -0
  229. data/lib/2019-08-01/generated/azure_mgmt_network/models/error_response.rb +47 -0
  230. data/lib/2019-08-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +92 -0
  231. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit.rb +295 -0
  232. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  233. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +116 -0
  234. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_connection.rb +157 -0
  235. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_connection_list_result.rb +101 -0
  236. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  237. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +339 -0
  238. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  239. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +121 -0
  240. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_peering_id.rb +46 -0
  241. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  242. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  243. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_reference.rb +46 -0
  244. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +91 -0
  245. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  246. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  247. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +70 -0
  248. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  249. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +18 -0
  250. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  251. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +66 -0
  252. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  253. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  254. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_connection.rb +102 -0
  255. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_connection_id.rb +47 -0
  256. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_connection_list.rb +56 -0
  257. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_cross_connection.rb +229 -0
  258. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_cross_connection_list_result.rb +100 -0
  259. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering.rb +250 -0
  260. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb +102 -0
  261. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_cross_connection_routes_table_summary.rb +83 -0
  262. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_cross_connections_routes_table_summary_list_result.rb +70 -0
  263. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_gateway.rb +159 -0
  264. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb +55 -0
  265. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration.rb +49 -0
  266. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration_bounds.rb +60 -0
  267. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_link.rb +169 -0
  268. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_link_admin_state.rb +16 -0
  269. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_link_connector_type.rb +16 -0
  270. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb +99 -0
  271. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_cipher.rb +16 -0
  272. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_config.rb +73 -0
  273. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_peering_state.rb +16 -0
  274. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_peering_type.rb +17 -0
  275. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_port.rb +267 -0
  276. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb +98 -0
  277. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_ports_encapsulation.rb +16 -0
  278. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_ports_location.rb +146 -0
  279. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb +61 -0
  280. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb +99 -0
  281. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +138 -0
  282. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  283. data/lib/2019-08-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  284. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy.rb +202 -0
  285. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule.rb +106 -0
  286. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_action.rb +47 -0
  287. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_action_type.rb +16 -0
  288. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_list_result.rb +99 -0
  289. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb +119 -0
  290. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_action.rb +47 -0
  291. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_action_type.rb +15 -0
  292. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule.rb +73 -0
  293. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb +69 -0
  294. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_application_protocol.rb +64 -0
  295. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_application_protocol_type.rb +16 -0
  296. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_network_protocol.rb +18 -0
  297. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule_group.rb +130 -0
  298. data/lib/2019-08-01/generated/azure_mgmt_network/models/firewall_policy_rule_group_list_result.rb +99 -0
  299. data/lib/2019-08-01/generated/azure_mgmt_network/models/flow_log_format_parameters.rb +60 -0
  300. data/lib/2019-08-01/generated/azure_mgmt_network/models/flow_log_format_type.rb +15 -0
  301. data/lib/2019-08-01/generated/azure_mgmt_network/models/flow_log_information.rb +110 -0
  302. data/lib/2019-08-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +48 -0
  303. data/lib/2019-08-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +272 -0
  304. data/lib/2019-08-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  305. data/lib/2019-08-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  306. data/lib/2019-08-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb +67 -0
  307. data/lib/2019-08-01/generated/azure_mgmt_network/models/httpconfiguration.rb +85 -0
  308. data/lib/2019-08-01/generated/azure_mgmt_network/models/httpheader.rb +57 -0
  309. data/lib/2019-08-01/generated/azure_mgmt_network/models/httpmethod.rb +15 -0
  310. data/lib/2019-08-01/generated/azure_mgmt_network/models/hub_ipaddresses.rb +67 -0
  311. data/lib/2019-08-01/generated/azure_mgmt_network/models/hub_virtual_network_connection.rb +126 -0
  312. data/lib/2019-08-01/generated/azure_mgmt_network/models/hub_virtual_network_connection_status.rb +18 -0
  313. data/lib/2019-08-01/generated/azure_mgmt_network/models/ike_encryption.rb +21 -0
  314. data/lib/2019-08-01/generated/azure_mgmt_network/models/ike_integrity.rb +20 -0
  315. data/lib/2019-08-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +197 -0
  316. data/lib/2019-08-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +200 -0
  317. data/lib/2019-08-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  318. data/lib/2019-08-01/generated/azure_mgmt_network/models/ip_flow_protocol.rb +16 -0
  319. data/lib/2019-08-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  320. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  321. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  322. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipconfiguration.rb +127 -0
  323. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipconfiguration_profile.rb +106 -0
  324. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  325. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  326. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipsec_policy.rb +137 -0
  327. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +94 -0
  328. data/lib/2019-08-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  329. data/lib/2019-08-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  330. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_hub_virtual_network_connections_result.rb +102 -0
  331. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_p2svpn_gateways_result.rb +100 -0
  332. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb +100 -0
  333. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_virtual_wans_result.rb +100 -0
  334. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_vpn_connections_result.rb +101 -0
  335. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_vpn_gateways_result.rb +100 -0
  336. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_vpn_server_configurations_result.rb +102 -0
  337. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_vpn_site_link_connections_result.rb +101 -0
  338. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_vpn_site_links_result.rb +100 -0
  339. data/lib/2019-08-01/generated/azure_mgmt_network/models/list_vpn_sites_result.rb +100 -0
  340. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer.rb +291 -0
  341. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  342. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  343. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  344. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  345. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
  346. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_protocol.rb +17 -0
  347. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  348. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  349. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  350. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +236 -0
  351. data/lib/2019-08-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  352. data/lib/2019-08-01/generated/azure_mgmt_network/models/local_network_gateway.rb +158 -0
  353. data/lib/2019-08-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  354. data/lib/2019-08-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  355. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_rule_enabled_state.rb +15 -0
  356. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_rule_group_override.rb +67 -0
  357. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_rule_override.rb +59 -0
  358. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_rule_set.rb +78 -0
  359. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_rules_definition.rb +77 -0
  360. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_service_identity.rb +102 -0
  361. data/lib/2019-08-01/generated/azure_mgmt_network/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  362. data/lib/2019-08-01/generated/azure_mgmt_network/models/match_condition.rb +118 -0
  363. data/lib/2019-08-01/generated/azure_mgmt_network/models/match_variable.rb +60 -0
  364. data/lib/2019-08-01/generated/azure_mgmt_network/models/matched_rule.rb +58 -0
  365. data/lib/2019-08-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  366. data/lib/2019-08-01/generated/azure_mgmt_network/models/nat_gateway.rb +229 -0
  367. data/lib/2019-08-01/generated/azure_mgmt_network/models/nat_gateway_list_result.rb +99 -0
  368. data/lib/2019-08-01/generated/azure_mgmt_network/models/nat_gateway_sku.rb +47 -0
  369. data/lib/2019-08-01/generated/azure_mgmt_network/models/nat_gateway_sku_name.rb +15 -0
  370. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +81 -0
  371. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_profile.rb +95 -0
  372. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_response.rb +57 -0
  373. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +61 -0
  374. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_intent_policy.rb +97 -0
  375. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb +60 -0
  376. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface.rb +285 -0
  377. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  378. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +117 -0
  379. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +272 -0
  380. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  381. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_private_link_connection_properties.rb +83 -0
  382. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  383. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  384. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +106 -0
  385. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_interface_tap_configuration_list_result.rb +102 -0
  386. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  387. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_profile.rb +166 -0
  388. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_profile_list_result.rb +99 -0
  389. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_rule_condition.rb +144 -0
  390. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_security_group.rb +207 -0
  391. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  392. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_security_group_result.rb +70 -0
  393. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_security_rules_evaluation_result.rb +101 -0
  394. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_watcher.rb +110 -0
  395. data/lib/2019-08-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  396. data/lib/2019-08-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  397. data/lib/2019-08-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  398. data/lib/2019-08-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  399. data/lib/2019-08-01/generated/azure_mgmt_network/models/office_traffic_category.rb +18 -0
  400. data/lib/2019-08-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  401. data/lib/2019-08-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  402. data/lib/2019-08-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  403. data/lib/2019-08-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  404. data/lib/2019-08-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  405. data/lib/2019-08-01/generated/azure_mgmt_network/models/outbound_rule.rb +175 -0
  406. data/lib/2019-08-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry.rb +74 -0
  407. data/lib/2019-08-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_match_variable.rb +17 -0
  408. data/lib/2019-08-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_selector_match_operator.rb +19 -0
  409. data/lib/2019-08-01/generated/azure_mgmt_network/models/p2sconnection_configuration.rb +94 -0
  410. data/lib/2019-08-01/generated/azure_mgmt_network/models/p2svpn_connection_health.rb +47 -0
  411. data/lib/2019-08-01/generated/azure_mgmt_network/models/p2svpn_connection_health_request.rb +67 -0
  412. data/lib/2019-08-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb +182 -0
  413. data/lib/2019-08-01/generated/azure_mgmt_network/models/p2svpn_profile_parameters.rb +47 -0
  414. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture.rb +119 -0
  415. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  416. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  417. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +119 -0
  418. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  419. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture_result.rb +170 -0
  420. data/lib/2019-08-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  421. data/lib/2019-08-01/generated/azure_mgmt_network/models/patch_route_filter.rb +177 -0
  422. data/lib/2019-08-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +129 -0
  423. data/lib/2019-08-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  424. data/lib/2019-08-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  425. data/lib/2019-08-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  426. data/lib/2019-08-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection.rb +170 -0
  427. data/lib/2019-08-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection_list_result.rb +104 -0
  428. data/lib/2019-08-01/generated/azure_mgmt_network/models/pfs_group.rb +23 -0
  429. data/lib/2019-08-01/generated/azure_mgmt_network/models/policy_settings.rb +101 -0
  430. data/lib/2019-08-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb +68 -0
  431. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_endpoint.rb +189 -0
  432. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_endpoint_connection.rb +119 -0
  433. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_endpoint_list_result.rb +100 -0
  434. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service.rb +252 -0
  435. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_connection.rb +149 -0
  436. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  437. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_ip_configuration.rb +150 -0
  438. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_list_result.rb +100 -0
  439. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_properties_auto_approval.rb +51 -0
  440. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_properties_visibility.rb +51 -0
  441. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_visibility.rb +46 -0
  442. data/lib/2019-08-01/generated/azure_mgmt_network/models/probe.rb +184 -0
  443. data/lib/2019-08-01/generated/azure_mgmt_network/models/probe_protocol.rb +17 -0
  444. data/lib/2019-08-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  445. data/lib/2019-08-01/generated/azure_mgmt_network/models/protocol.rb +18 -0
  446. data/lib/2019-08-01/generated/azure_mgmt_network/models/protocol_configuration.rb +48 -0
  447. data/lib/2019-08-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb +87 -0
  448. data/lib/2019-08-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  449. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipaddress.rb +275 -0
  450. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  451. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  452. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  453. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  454. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipprefix.rb +244 -0
  455. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipprefix_list_result.rb +99 -0
  456. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipprefix_sku.rb +47 -0
  457. data/lib/2019-08-01/generated/azure_mgmt_network/models/public_ipprefix_sku_name.rb +15 -0
  458. data/lib/2019-08-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  459. data/lib/2019-08-01/generated/azure_mgmt_network/models/referenced_public_ip_address.rb +46 -0
  460. data/lib/2019-08-01/generated/azure_mgmt_network/models/resource.rb +109 -0
  461. data/lib/2019-08-01/generated/azure_mgmt_network/models/resource_identity_type.rb +18 -0
  462. data/lib/2019-08-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +116 -0
  463. data/lib/2019-08-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +68 -0
  464. data/lib/2019-08-01/generated/azure_mgmt_network/models/resource_set.rb +54 -0
  465. data/lib/2019-08-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  466. data/lib/2019-08-01/generated/azure_mgmt_network/models/route.rb +117 -0
  467. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_filter.rb +175 -0
  468. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  469. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_filter_rule.rb +139 -0
  470. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  471. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  472. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  473. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_table.rb +164 -0
  474. data/lib/2019-08-01/generated/azure_mgmt_network/models/route_table_list_result.rb +98 -0
  475. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +59 -0
  476. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  477. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  478. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_rule.rb +313 -0
  479. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  480. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_rule_associations.rb +102 -0
  481. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  482. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  483. data/lib/2019-08-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +20 -0
  484. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_association_link.rb +145 -0
  485. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +68 -0
  486. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_endpoint_policy.rb +166 -0
  487. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition.rb +122 -0
  488. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition_list_result.rb +103 -0
  489. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_endpoint_policy_list_result.rb +100 -0
  490. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +78 -0
  491. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  492. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_tag_information.rb +73 -0
  493. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_tag_information_properties_format.rb +91 -0
  494. data/lib/2019-08-01/generated/azure_mgmt_network/models/service_tags_list_result.rb +117 -0
  495. data/lib/2019-08-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  496. data/lib/2019-08-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  497. data/lib/2019-08-01/generated/azure_mgmt_network/models/subnet.rb +355 -0
  498. data/lib/2019-08-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  499. data/lib/2019-08-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  500. data/lib/2019-08-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  501. data/lib/2019-08-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  502. data/lib/2019-08-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  503. data/lib/2019-08-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  504. data/lib/2019-08-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  505. data/lib/2019-08-01/generated/azure_mgmt_network/models/traffic_analytics_configuration_properties.rb +91 -0
  506. data/lib/2019-08-01/generated/azure_mgmt_network/models/traffic_analytics_properties.rb +48 -0
  507. data/lib/2019-08-01/generated/azure_mgmt_network/models/traffic_selector_policy.rb +75 -0
  508. data/lib/2019-08-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  509. data/lib/2019-08-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  510. data/lib/2019-08-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  511. data/lib/2019-08-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  512. data/lib/2019-08-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  513. data/lib/2019-08-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  514. data/lib/2019-08-01/generated/azure_mgmt_network/models/tunnel_connection_status.rb +18 -0
  515. data/lib/2019-08-01/generated/azure_mgmt_network/models/unprepare_network_policies_request.rb +47 -0
  516. data/lib/2019-08-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  517. data/lib/2019-08-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  518. data/lib/2019-08-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  519. data/lib/2019-08-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
  520. data/lib/2019-08-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  521. data/lib/2019-08-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  522. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_hub.rb +230 -0
  523. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_hub_id.rb +48 -0
  524. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_hub_route.rb +65 -0
  525. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb +55 -0
  526. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network.rb +242 -0
  527. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_bgp_communities.rb +60 -0
  528. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  529. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +296 -0
  530. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +367 -0
  531. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +368 -0
  532. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  533. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_protocol.rb +16 -0
  534. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  535. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  536. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +117 -0
  537. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  538. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  539. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +76 -0
  540. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +31 -0
  541. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +31 -0
  542. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  543. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  544. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  545. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +173 -0
  546. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  547. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  548. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_tap.rb +185 -0
  549. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_tap_list_result.rb +99 -0
  550. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  551. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  552. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_router.rb +191 -0
  553. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_router_list_result.rb +98 -0
  554. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_router_peering.rb +119 -0
  555. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_router_peering_list_result.rb +99 -0
  556. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_wan.rb +198 -0
  557. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_wan_security_provider.rb +69 -0
  558. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_wan_security_provider_type.rb +16 -0
  559. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_wan_security_providers.rb +56 -0
  560. data/lib/2019-08-01/generated/azure_mgmt_network/models/virtual_wan_vpn_profile_parameters.rb +59 -0
  561. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_authentication_type.rb +17 -0
  562. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +191 -0
  563. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_connection_health.rb +93 -0
  564. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail.rb +179 -0
  565. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail_list_result.rb +57 -0
  566. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_ipsec_parameters.rb +137 -0
  567. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +94 -0
  568. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +17 -0
  569. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +92 -0
  570. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +92 -0
  571. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_connection.rb +271 -0
  572. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_connection_status.rb +18 -0
  573. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  574. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_gateway.rb +167 -0
  575. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_gateway_generation.rb +17 -0
  576. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_gateway_tunneling_protocol.rb +16 -0
  577. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_link_bgp_settings.rb +58 -0
  578. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_link_provider_properties.rb +57 -0
  579. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_packet_capture_start_parameters.rb +46 -0
  580. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_packet_capture_stop_parameters.rb +46 -0
  581. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_profile_response.rb +46 -0
  582. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_server_config_radius_client_root_certificate.rb +59 -0
  583. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_server_config_radius_server_root_certificate.rb +58 -0
  584. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_revoked_certificate.rb +59 -0
  585. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_root_certificate.rb +57 -0
  586. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_server_configuration.rb +338 -0
  587. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_server_configurations_response.rb +55 -0
  588. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_site.rb +213 -0
  589. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_site_id.rb +48 -0
  590. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_site_link.rb +128 -0
  591. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_site_link_connection.rb +251 -0
  592. data/lib/2019-08-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  593. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_action.rb +17 -0
  594. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb +119 -0
  595. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_enabled_state.rb +16 -0
  596. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_match_variable.rb +22 -0
  597. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_mode.rb +16 -0
  598. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_operator.rb +24 -0
  599. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_policy.rb +192 -0
  600. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +105 -0
  601. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_policy_resource_state.rb +20 -0
  602. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_rule_type.rb +16 -0
  603. data/lib/2019-08-01/generated/azure_mgmt_network/models/web_application_firewall_transform.rb +20 -0
  604. data/lib/2019-08-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  605. data/lib/2019-08-01/generated/azure_mgmt_network/nat_gateways.rb +922 -0
  606. data/lib/2019-08-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +329 -0
  607. data/lib/2019-08-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +231 -0
  608. data/lib/2019-08-01/generated/azure_mgmt_network/network_interface_tap_configurations.rb +626 -0
  609. data/lib/2019-08-01/generated/azure_mgmt_network/network_interfaces.rb +1230 -0
  610. data/lib/2019-08-01/generated/azure_mgmt_network/network_management_client.rb +912 -0
  611. data/lib/2019-08-01/generated/azure_mgmt_network/network_profiles.rb +732 -0
  612. data/lib/2019-08-01/generated/azure_mgmt_network/network_security_groups.rb +976 -0
  613. data/lib/2019-08-01/generated/azure_mgmt_network/network_watchers.rb +2658 -0
  614. data/lib/2019-08-01/generated/azure_mgmt_network/operations.rb +219 -0
  615. data/lib/2019-08-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +1447 -0
  616. data/lib/2019-08-01/generated/azure_mgmt_network/packet_captures.rb +796 -0
  617. data/lib/2019-08-01/generated/azure_mgmt_network/peer_express_route_circuit_connections.rb +351 -0
  618. data/lib/2019-08-01/generated/azure_mgmt_network/private_endpoints.rb +804 -0
  619. data/lib/2019-08-01/generated/azure_mgmt_network/private_link_services.rb +1694 -0
  620. data/lib/2019-08-01/generated/azure_mgmt_network/public_ipaddresses.rb +958 -0
  621. data/lib/2019-08-01/generated/azure_mgmt_network/public_ipprefixes.rb +958 -0
  622. data/lib/2019-08-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  623. data/lib/2019-08-01/generated/azure_mgmt_network/route_filter_rules.rb +786 -0
  624. data/lib/2019-08-01/generated/azure_mgmt_network/route_filters.rb +961 -0
  625. data/lib/2019-08-01/generated/azure_mgmt_network/route_tables.rb +958 -0
  626. data/lib/2019-08-01/generated/azure_mgmt_network/routes.rb +625 -0
  627. data/lib/2019-08-01/generated/azure_mgmt_network/security_rules.rb +643 -0
  628. data/lib/2019-08-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  629. data/lib/2019-08-01/generated/azure_mgmt_network/service_endpoint_policies.rb +976 -0
  630. data/lib/2019-08-01/generated/azure_mgmt_network/service_endpoint_policy_definitions.rb +668 -0
  631. data/lib/2019-08-01/generated/azure_mgmt_network/service_tags.rb +124 -0
  632. data/lib/2019-08-01/generated/azure_mgmt_network/subnets.rb +929 -0
  633. data/lib/2019-08-01/generated/azure_mgmt_network/usages.rb +227 -0
  634. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_hubs.rb +991 -0
  635. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1612 -0
  636. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_network_gateways.rb +3275 -0
  637. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_network_peerings.rb +634 -0
  638. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_network_taps.rb +955 -0
  639. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_networks.rb +1262 -0
  640. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_router_peerings.rb +744 -0
  641. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_routers.rb +918 -0
  642. data/lib/2019-08-01/generated/azure_mgmt_network/virtual_wans.rb +996 -0
  643. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_connections.rb +647 -0
  644. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_gateways.rb +1132 -0
  645. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_link_connections.rb +247 -0
  646. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_server_configurations.rb +1009 -0
  647. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_server_configurations_associated_with_virtual_wan.rb +170 -0
  648. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_site_link_connections.rb +130 -0
  649. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_site_links.rb +332 -0
  650. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_sites.rb +974 -0
  651. data/lib/2019-08-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +173 -0
  652. data/lib/2019-08-01/generated/azure_mgmt_network/web_application_firewall_policies.rb +758 -0
  653. data/lib/azure_mgmt_network.rb +1 -0
  654. data/lib/profiles/latest/modules/network_profile_module.rb +1444 -1330
  655. data/lib/version.rb +1 -1
  656. metadata +629 -2
@@ -0,0 +1,3275 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Network::Mgmt::V2019_08_01
7
+ #
8
+ # VirtualNetworkGateways
9
+ #
10
+ class VirtualNetworkGateways
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the VirtualNetworkGateways 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 virtual network gateway in the specified resource group.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param virtual_network_gateway_name [String] The name of the virtual network
29
+ # gateway.
30
+ # @param parameters [VirtualNetworkGateway] Parameters supplied to create or
31
+ # update virtual network gateway operation.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [VirtualNetworkGateway] operation results.
36
+ #
37
+ def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
38
+ response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # @param resource_group_name [String] The name of the resource group.
44
+ # @param virtual_network_gateway_name [String] The name of the virtual network
45
+ # gateway.
46
+ # @param parameters [VirtualNetworkGateway] Parameters supplied to create or
47
+ # update virtual network gateway operation.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [Concurrent::Promise] promise which provides async access to http
52
+ # response.
53
+ #
54
+ def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
55
+ # Send request
56
+ promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers)
57
+
58
+ promise = promise.then do |response|
59
+ # Defining deserialization method.
60
+ deserialize_method = lambda do |parsed_response|
61
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
62
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
63
+ end
64
+
65
+ # Waiting for response.
66
+ @client.get_long_running_operation_result(response, deserialize_method)
67
+ end
68
+
69
+ promise
70
+ end
71
+
72
+ #
73
+ # Gets the specified virtual network gateway by resource group.
74
+ #
75
+ # @param resource_group_name [String] The name of the resource group.
76
+ # @param virtual_network_gateway_name [String] The name of the virtual network
77
+ # gateway.
78
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
79
+ # will be added to the HTTP request.
80
+ #
81
+ # @return [VirtualNetworkGateway] operation results.
82
+ #
83
+ def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
84
+ response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
85
+ response.body unless response.nil?
86
+ end
87
+
88
+ #
89
+ # Gets the specified virtual network gateway by resource group.
90
+ #
91
+ # @param resource_group_name [String] The name of the resource group.
92
+ # @param virtual_network_gateway_name [String] The name of the virtual network
93
+ # gateway.
94
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
95
+ # will be added to the HTTP request.
96
+ #
97
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
98
+ #
99
+ def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
100
+ get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
101
+ end
102
+
103
+ #
104
+ # Gets the specified virtual network gateway by resource group.
105
+ #
106
+ # @param resource_group_name [String] The name of the resource group.
107
+ # @param virtual_network_gateway_name [String] The name of the virtual network
108
+ # gateway.
109
+ # @param [Hash{String => String}] A hash of custom headers that will be added
110
+ # to the HTTP request.
111
+ #
112
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
113
+ #
114
+ def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
115
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
116
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
117
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
118
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
119
+
120
+
121
+ request_headers = {}
122
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
123
+
124
+ # Set Headers
125
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
126
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
127
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
128
+
129
+ request_url = @base_url || @client.base_url
130
+
131
+ options = {
132
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
133
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
134
+ query_params: {'api-version' => @client.api_version},
135
+ headers: request_headers.merge(custom_headers || {}),
136
+ base_url: request_url
137
+ }
138
+ promise = @client.make_request_async(:get, path_template, options)
139
+
140
+ promise = promise.then do |result|
141
+ http_response = result.response
142
+ status_code = http_response.status
143
+ response_content = http_response.body
144
+ unless status_code == 200
145
+ error_model = JSON.load(response_content)
146
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
147
+ end
148
+
149
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
150
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
151
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
152
+ # Deserialize Response
153
+ if status_code == 200
154
+ begin
155
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
156
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
157
+ result.body = @client.deserialize(result_mapper, parsed_response)
158
+ rescue Exception => e
159
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
160
+ end
161
+ end
162
+
163
+ result
164
+ end
165
+
166
+ promise.execute
167
+ end
168
+
169
+ #
170
+ # Deletes the specified virtual network gateway.
171
+ #
172
+ # @param resource_group_name [String] The name of the resource group.
173
+ # @param virtual_network_gateway_name [String] The name of the virtual network
174
+ # gateway.
175
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
176
+ # will be added to the HTTP request.
177
+ #
178
+ def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
179
+ response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
180
+ nil
181
+ end
182
+
183
+ #
184
+ # @param resource_group_name [String] The name of the resource group.
185
+ # @param virtual_network_gateway_name [String] The name of the virtual network
186
+ # gateway.
187
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
188
+ # will be added to the HTTP request.
189
+ #
190
+ # @return [Concurrent::Promise] promise which provides async access to http
191
+ # response.
192
+ #
193
+ def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
194
+ # Send request
195
+ promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
196
+
197
+ promise = promise.then do |response|
198
+ # Defining deserialization method.
199
+ deserialize_method = lambda do |parsed_response|
200
+ end
201
+
202
+ # Waiting for response.
203
+ @client.get_long_running_operation_result(response, deserialize_method)
204
+ end
205
+
206
+ promise
207
+ end
208
+
209
+ #
210
+ # Updates a virtual network gateway tags.
211
+ #
212
+ # @param resource_group_name [String] The name of the resource group.
213
+ # @param virtual_network_gateway_name [String] The name of the virtual network
214
+ # gateway.
215
+ # @param parameters [TagsObject] Parameters supplied to update virtual network
216
+ # gateway tags.
217
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
218
+ # will be added to the HTTP request.
219
+ #
220
+ # @return [VirtualNetworkGateway] operation results.
221
+ #
222
+ def update_tags(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
223
+ response = update_tags_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
224
+ response.body unless response.nil?
225
+ end
226
+
227
+ #
228
+ # @param resource_group_name [String] The name of the resource group.
229
+ # @param virtual_network_gateway_name [String] The name of the virtual network
230
+ # gateway.
231
+ # @param parameters [TagsObject] Parameters supplied to update virtual network
232
+ # gateway tags.
233
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
234
+ # will be added to the HTTP request.
235
+ #
236
+ # @return [Concurrent::Promise] promise which provides async access to http
237
+ # response.
238
+ #
239
+ def update_tags_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
240
+ # Send request
241
+ promise = begin_update_tags_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers)
242
+
243
+ promise = promise.then do |response|
244
+ # Defining deserialization method.
245
+ deserialize_method = lambda do |parsed_response|
246
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
247
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
248
+ end
249
+
250
+ # Waiting for response.
251
+ @client.get_long_running_operation_result(response, deserialize_method)
252
+ end
253
+
254
+ promise
255
+ end
256
+
257
+ #
258
+ # Gets all virtual network gateways by resource group.
259
+ #
260
+ # @param resource_group_name [String] The name of the resource group.
261
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
262
+ # will be added to the HTTP request.
263
+ #
264
+ # @return [Array<VirtualNetworkGateway>] operation results.
265
+ #
266
+ def list(resource_group_name, custom_headers:nil)
267
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
268
+ first_page.get_all_items
269
+ end
270
+
271
+ #
272
+ # Gets all virtual network gateways by resource group.
273
+ #
274
+ # @param resource_group_name [String] The name of the resource group.
275
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
276
+ # will be added to the HTTP request.
277
+ #
278
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
279
+ #
280
+ def list_with_http_info(resource_group_name, custom_headers:nil)
281
+ list_async(resource_group_name, custom_headers:custom_headers).value!
282
+ end
283
+
284
+ #
285
+ # Gets all virtual network gateways by resource group.
286
+ #
287
+ # @param resource_group_name [String] The name of the resource group.
288
+ # @param [Hash{String => String}] A hash of custom headers that will be added
289
+ # to the HTTP request.
290
+ #
291
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
292
+ #
293
+ def list_async(resource_group_name, custom_headers:nil)
294
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
295
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
296
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
297
+
298
+
299
+ request_headers = {}
300
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
301
+
302
+ # Set Headers
303
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
304
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
305
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways'
306
+
307
+ request_url = @base_url || @client.base_url
308
+
309
+ options = {
310
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
311
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
312
+ query_params: {'api-version' => @client.api_version},
313
+ headers: request_headers.merge(custom_headers || {}),
314
+ base_url: request_url
315
+ }
316
+ promise = @client.make_request_async(:get, path_template, options)
317
+
318
+ promise = promise.then do |result|
319
+ http_response = result.response
320
+ status_code = http_response.status
321
+ response_content = http_response.body
322
+ unless status_code == 200
323
+ error_model = JSON.load(response_content)
324
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
325
+ end
326
+
327
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
328
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
329
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
330
+ # Deserialize Response
331
+ if status_code == 200
332
+ begin
333
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
334
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGatewayListResult.mapper()
335
+ result.body = @client.deserialize(result_mapper, parsed_response)
336
+ rescue Exception => e
337
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
338
+ end
339
+ end
340
+
341
+ result
342
+ end
343
+
344
+ promise.execute
345
+ end
346
+
347
+ #
348
+ # Gets all the connections in a virtual network gateway.
349
+ #
350
+ # @param resource_group_name [String] The name of the resource group.
351
+ # @param virtual_network_gateway_name [String] The name of the virtual network
352
+ # gateway.
353
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
+ # will be added to the HTTP request.
355
+ #
356
+ # @return [Array<VirtualNetworkGatewayConnectionListEntity>] operation results.
357
+ #
358
+ def list_connections(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
359
+ first_page = list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
360
+ first_page.get_all_items
361
+ end
362
+
363
+ #
364
+ # Gets all the connections in a virtual network gateway.
365
+ #
366
+ # @param resource_group_name [String] The name of the resource group.
367
+ # @param virtual_network_gateway_name [String] The name of the virtual network
368
+ # gateway.
369
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
370
+ # will be added to the HTTP request.
371
+ #
372
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
373
+ #
374
+ def list_connections_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
375
+ list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
376
+ end
377
+
378
+ #
379
+ # Gets all the connections in a virtual network gateway.
380
+ #
381
+ # @param resource_group_name [String] The name of the resource group.
382
+ # @param virtual_network_gateway_name [String] The name of the virtual network
383
+ # gateway.
384
+ # @param [Hash{String => String}] A hash of custom headers that will be added
385
+ # to the HTTP request.
386
+ #
387
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
388
+ #
389
+ def list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
390
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
391
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
392
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
393
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
394
+
395
+
396
+ request_headers = {}
397
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
398
+
399
+ # Set Headers
400
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
401
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
402
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections'
403
+
404
+ request_url = @base_url || @client.base_url
405
+
406
+ options = {
407
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
408
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
409
+ query_params: {'api-version' => @client.api_version},
410
+ headers: request_headers.merge(custom_headers || {}),
411
+ base_url: request_url
412
+ }
413
+ promise = @client.make_request_async(:get, path_template, options)
414
+
415
+ promise = promise.then do |result|
416
+ http_response = result.response
417
+ status_code = http_response.status
418
+ response_content = http_response.body
419
+ unless status_code == 200
420
+ error_model = JSON.load(response_content)
421
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
422
+ end
423
+
424
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
425
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
426
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
427
+ # Deserialize Response
428
+ if status_code == 200
429
+ begin
430
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
431
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGatewayListConnectionsResult.mapper()
432
+ result.body = @client.deserialize(result_mapper, parsed_response)
433
+ rescue Exception => e
434
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
435
+ end
436
+ end
437
+
438
+ result
439
+ end
440
+
441
+ promise.execute
442
+ end
443
+
444
+ #
445
+ # Resets the primary of the virtual network gateway in the specified resource
446
+ # group.
447
+ #
448
+ # @param resource_group_name [String] The name of the resource group.
449
+ # @param virtual_network_gateway_name [String] The name of the virtual network
450
+ # gateway.
451
+ # @param gateway_vip [String] Virtual network gateway vip address supplied to
452
+ # the begin reset of the active-active feature enabled gateway.
453
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
454
+ # will be added to the HTTP request.
455
+ #
456
+ # @return [VirtualNetworkGateway] operation results.
457
+ #
458
+ def reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil)
459
+ response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value!
460
+ response.body unless response.nil?
461
+ end
462
+
463
+ #
464
+ # @param resource_group_name [String] The name of the resource group.
465
+ # @param virtual_network_gateway_name [String] The name of the virtual network
466
+ # gateway.
467
+ # @param gateway_vip [String] Virtual network gateway vip address supplied to
468
+ # the begin reset of the active-active feature enabled gateway.
469
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
470
+ # will be added to the HTTP request.
471
+ #
472
+ # @return [Concurrent::Promise] promise which provides async access to http
473
+ # response.
474
+ #
475
+ def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil)
476
+ # Send request
477
+ promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers)
478
+
479
+ promise = promise.then do |response|
480
+ # Defining deserialization method.
481
+ deserialize_method = lambda do |parsed_response|
482
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
483
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
484
+ end
485
+
486
+ # Waiting for response.
487
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
488
+ end
489
+
490
+ promise
491
+ end
492
+
493
+ #
494
+ # Resets the VPN client shared key of the virtual network gateway in the
495
+ # specified resource group.
496
+ #
497
+ # @param resource_group_name [String] The name of the resource group.
498
+ # @param virtual_network_gateway_name [String] The name of the virtual network
499
+ # gateway.
500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
501
+ # will be added to the HTTP request.
502
+ #
503
+ def reset_vpn_client_shared_key(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
504
+ response = reset_vpn_client_shared_key_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
505
+ nil
506
+ end
507
+
508
+ #
509
+ # @param resource_group_name [String] The name of the resource group.
510
+ # @param virtual_network_gateway_name [String] The name of the virtual network
511
+ # gateway.
512
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
513
+ # will be added to the HTTP request.
514
+ #
515
+ # @return [Concurrent::Promise] promise which provides async access to http
516
+ # response.
517
+ #
518
+ def reset_vpn_client_shared_key_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
519
+ # Send request
520
+ promise = begin_reset_vpn_client_shared_key_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
521
+
522
+ promise = promise.then do |response|
523
+ # Defining deserialization method.
524
+ deserialize_method = lambda do |parsed_response|
525
+ end
526
+
527
+ # Waiting for response.
528
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
529
+ end
530
+
531
+ promise
532
+ end
533
+
534
+ #
535
+ # Generates VPN client package for P2S client of the virtual network gateway in
536
+ # the specified resource group.
537
+ #
538
+ # @param resource_group_name [String] The name of the resource group.
539
+ # @param virtual_network_gateway_name [String] The name of the virtual network
540
+ # gateway.
541
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
542
+ # virtual network gateway VPN client package operation.
543
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
544
+ # will be added to the HTTP request.
545
+ #
546
+ # @return [String] operation results.
547
+ #
548
+ def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
549
+ response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
550
+ response.body unless response.nil?
551
+ end
552
+
553
+ #
554
+ # @param resource_group_name [String] The name of the resource group.
555
+ # @param virtual_network_gateway_name [String] The name of the virtual network
556
+ # gateway.
557
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
558
+ # virtual network gateway VPN client package operation.
559
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
560
+ # will be added to the HTTP request.
561
+ #
562
+ # @return [Concurrent::Promise] promise which provides async access to http
563
+ # response.
564
+ #
565
+ def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
566
+ # Send request
567
+ promise = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers)
568
+
569
+ promise = promise.then do |response|
570
+ # Defining deserialization method.
571
+ deserialize_method = lambda do |parsed_response|
572
+ result_mapper = {
573
+ client_side_validation: true,
574
+ required: false,
575
+ serialized_name: 'parsed_response',
576
+ type: {
577
+ name: 'String'
578
+ }
579
+ }
580
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
581
+ end
582
+
583
+ # Waiting for response.
584
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
585
+ end
586
+
587
+ promise
588
+ end
589
+
590
+ #
591
+ # Generates VPN profile for P2S client of the virtual network gateway in the
592
+ # specified resource group. Used for IKEV2 and radius based authentication.
593
+ #
594
+ # @param resource_group_name [String] The name of the resource group.
595
+ # @param virtual_network_gateway_name [String] The name of the virtual network
596
+ # gateway.
597
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
598
+ # virtual network gateway VPN client package operation.
599
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
600
+ # will be added to the HTTP request.
601
+ #
602
+ # @return [String] operation results.
603
+ #
604
+ def generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
605
+ response = generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
606
+ response.body unless response.nil?
607
+ end
608
+
609
+ #
610
+ # @param resource_group_name [String] The name of the resource group.
611
+ # @param virtual_network_gateway_name [String] The name of the virtual network
612
+ # gateway.
613
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
614
+ # virtual network gateway VPN client package operation.
615
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
616
+ # will be added to the HTTP request.
617
+ #
618
+ # @return [Concurrent::Promise] promise which provides async access to http
619
+ # response.
620
+ #
621
+ def generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
622
+ # Send request
623
+ promise = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers)
624
+
625
+ promise = promise.then do |response|
626
+ # Defining deserialization method.
627
+ deserialize_method = lambda do |parsed_response|
628
+ result_mapper = {
629
+ client_side_validation: true,
630
+ required: false,
631
+ serialized_name: 'parsed_response',
632
+ type: {
633
+ name: 'String'
634
+ }
635
+ }
636
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
637
+ end
638
+
639
+ # Waiting for response.
640
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
641
+ end
642
+
643
+ promise
644
+ end
645
+
646
+ #
647
+ # Gets pre-generated VPN profile for P2S client of the virtual network gateway
648
+ # in the specified resource group. The profile needs to be generated first
649
+ # using generateVpnProfile.
650
+ #
651
+ # @param resource_group_name [String] The name of the resource group.
652
+ # @param virtual_network_gateway_name [String] The name of the virtual network
653
+ # gateway.
654
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
655
+ # will be added to the HTTP request.
656
+ #
657
+ # @return [String] operation results.
658
+ #
659
+ def get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
660
+ response = get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
661
+ response.body unless response.nil?
662
+ end
663
+
664
+ #
665
+ # @param resource_group_name [String] The name of the resource group.
666
+ # @param virtual_network_gateway_name [String] The name of the virtual network
667
+ # gateway.
668
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
669
+ # will be added to the HTTP request.
670
+ #
671
+ # @return [Concurrent::Promise] promise which provides async access to http
672
+ # response.
673
+ #
674
+ def get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
675
+ # Send request
676
+ promise = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
677
+
678
+ promise = promise.then do |response|
679
+ # Defining deserialization method.
680
+ deserialize_method = lambda do |parsed_response|
681
+ result_mapper = {
682
+ client_side_validation: true,
683
+ required: false,
684
+ serialized_name: 'parsed_response',
685
+ type: {
686
+ name: 'String'
687
+ }
688
+ }
689
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
690
+ end
691
+
692
+ # Waiting for response.
693
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
694
+ end
695
+
696
+ promise
697
+ end
698
+
699
+ #
700
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
701
+ #
702
+ # @param resource_group_name [String] The name of the resource group.
703
+ # @param virtual_network_gateway_name [String] The name of the virtual network
704
+ # gateway.
705
+ # @param peer [String] The IP address of the peer to retrieve the status of.
706
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
707
+ # will be added to the HTTP request.
708
+ #
709
+ # @return [BgpPeerStatusListResult] operation results.
710
+ #
711
+ def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil)
712
+ response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value!
713
+ response.body unless response.nil?
714
+ end
715
+
716
+ #
717
+ # @param resource_group_name [String] The name of the resource group.
718
+ # @param virtual_network_gateway_name [String] The name of the virtual network
719
+ # gateway.
720
+ # @param peer [String] The IP address of the peer to retrieve the status of.
721
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
722
+ # will be added to the HTTP request.
723
+ #
724
+ # @return [Concurrent::Promise] promise which provides async access to http
725
+ # response.
726
+ #
727
+ def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil)
728
+ # Send request
729
+ promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers)
730
+
731
+ promise = promise.then do |response|
732
+ # Defining deserialization method.
733
+ deserialize_method = lambda do |parsed_response|
734
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::BgpPeerStatusListResult.mapper()
735
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
736
+ end
737
+
738
+ # Waiting for response.
739
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
740
+ end
741
+
742
+ promise
743
+ end
744
+
745
+ #
746
+ # Gets a xml format representation for supported vpn devices.
747
+ #
748
+ # @param resource_group_name [String] The name of the resource group.
749
+ # @param virtual_network_gateway_name [String] The name of the virtual network
750
+ # gateway.
751
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
752
+ # will be added to the HTTP request.
753
+ #
754
+ # @return [String] operation results.
755
+ #
756
+ def supported_vpn_devices(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
757
+ response = supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
758
+ response.body unless response.nil?
759
+ end
760
+
761
+ #
762
+ # Gets a xml format representation for supported vpn devices.
763
+ #
764
+ # @param resource_group_name [String] The name of the resource group.
765
+ # @param virtual_network_gateway_name [String] The name of the virtual network
766
+ # gateway.
767
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
768
+ # will be added to the HTTP request.
769
+ #
770
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
771
+ #
772
+ def supported_vpn_devices_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
773
+ supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
774
+ end
775
+
776
+ #
777
+ # Gets a xml format representation for supported vpn devices.
778
+ #
779
+ # @param resource_group_name [String] The name of the resource group.
780
+ # @param virtual_network_gateway_name [String] The name of the virtual network
781
+ # gateway.
782
+ # @param [Hash{String => String}] A hash of custom headers that will be added
783
+ # to the HTTP request.
784
+ #
785
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
786
+ #
787
+ def supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
788
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
789
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
790
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
791
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
792
+
793
+
794
+ request_headers = {}
795
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
796
+
797
+ # Set Headers
798
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
799
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
800
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices'
801
+
802
+ request_url = @base_url || @client.base_url
803
+
804
+ options = {
805
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
806
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
807
+ query_params: {'api-version' => @client.api_version},
808
+ headers: request_headers.merge(custom_headers || {}),
809
+ base_url: request_url
810
+ }
811
+ promise = @client.make_request_async(:post, path_template, options)
812
+
813
+ promise = promise.then do |result|
814
+ http_response = result.response
815
+ status_code = http_response.status
816
+ response_content = http_response.body
817
+ unless status_code == 200
818
+ error_model = JSON.load(response_content)
819
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
820
+ end
821
+
822
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
823
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
824
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
825
+ # Deserialize Response
826
+ if status_code == 200
827
+ begin
828
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
829
+ result_mapper = {
830
+ client_side_validation: true,
831
+ required: false,
832
+ serialized_name: 'parsed_response',
833
+ type: {
834
+ name: 'String'
835
+ }
836
+ }
837
+ result.body = @client.deserialize(result_mapper, parsed_response)
838
+ rescue Exception => e
839
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
840
+ end
841
+ end
842
+
843
+ result
844
+ end
845
+
846
+ promise.execute
847
+ end
848
+
849
+ #
850
+ # This operation retrieves a list of routes the virtual network gateway has
851
+ # learned, including routes learned from BGP peers.
852
+ #
853
+ # @param resource_group_name [String] The name of the resource group.
854
+ # @param virtual_network_gateway_name [String] The name of the virtual network
855
+ # gateway.
856
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
857
+ # will be added to the HTTP request.
858
+ #
859
+ # @return [GatewayRouteListResult] operation results.
860
+ #
861
+ def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
862
+ response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
863
+ response.body unless response.nil?
864
+ end
865
+
866
+ #
867
+ # @param resource_group_name [String] The name of the resource group.
868
+ # @param virtual_network_gateway_name [String] The name of the virtual network
869
+ # gateway.
870
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
871
+ # will be added to the HTTP request.
872
+ #
873
+ # @return [Concurrent::Promise] promise which provides async access to http
874
+ # response.
875
+ #
876
+ def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
877
+ # Send request
878
+ promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
879
+
880
+ promise = promise.then do |response|
881
+ # Defining deserialization method.
882
+ deserialize_method = lambda do |parsed_response|
883
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::GatewayRouteListResult.mapper()
884
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
885
+ end
886
+
887
+ # Waiting for response.
888
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
889
+ end
890
+
891
+ promise
892
+ end
893
+
894
+ #
895
+ # This operation retrieves a list of routes the virtual network gateway is
896
+ # advertising to the specified peer.
897
+ #
898
+ # @param resource_group_name [String] The name of the resource group.
899
+ # @param virtual_network_gateway_name [String] The name of the virtual network
900
+ # gateway.
901
+ # @param peer [String] The IP address of the peer.
902
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
903
+ # will be added to the HTTP request.
904
+ #
905
+ # @return [GatewayRouteListResult] operation results.
906
+ #
907
+ def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil)
908
+ response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value!
909
+ response.body unless response.nil?
910
+ end
911
+
912
+ #
913
+ # @param resource_group_name [String] The name of the resource group.
914
+ # @param virtual_network_gateway_name [String] The name of the virtual network
915
+ # gateway.
916
+ # @param peer [String] The IP address of the peer.
917
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
918
+ # will be added to the HTTP request.
919
+ #
920
+ # @return [Concurrent::Promise] promise which provides async access to http
921
+ # response.
922
+ #
923
+ def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil)
924
+ # Send request
925
+ promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers)
926
+
927
+ promise = promise.then do |response|
928
+ # Defining deserialization method.
929
+ deserialize_method = lambda do |parsed_response|
930
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::GatewayRouteListResult.mapper()
931
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
932
+ end
933
+
934
+ # Waiting for response.
935
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
936
+ end
937
+
938
+ promise
939
+ end
940
+
941
+ #
942
+ # The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy
943
+ # for P2S client of virtual network gateway in the specified resource group
944
+ # through Network resource provider.
945
+ #
946
+ # @param resource_group_name [String] The name of the resource group.
947
+ # @param virtual_network_gateway_name [String] The name of the virtual network
948
+ # gateway.
949
+ # @param vpnclient_ipsec_params [VpnClientIPsecParameters] Parameters supplied
950
+ # to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S
951
+ # client operation through Network resource provider.
952
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
953
+ # will be added to the HTTP request.
954
+ #
955
+ # @return [VpnClientIPsecParameters] operation results.
956
+ #
957
+ def set_vpnclient_ipsec_parameters(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:nil)
958
+ response = set_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:custom_headers).value!
959
+ response.body unless response.nil?
960
+ end
961
+
962
+ #
963
+ # @param resource_group_name [String] The name of the resource group.
964
+ # @param virtual_network_gateway_name [String] The name of the virtual network
965
+ # gateway.
966
+ # @param vpnclient_ipsec_params [VpnClientIPsecParameters] Parameters supplied
967
+ # to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S
968
+ # client operation through Network resource provider.
969
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
970
+ # will be added to the HTTP request.
971
+ #
972
+ # @return [Concurrent::Promise] promise which provides async access to http
973
+ # response.
974
+ #
975
+ def set_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:nil)
976
+ # Send request
977
+ promise = begin_set_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:custom_headers)
978
+
979
+ promise = promise.then do |response|
980
+ # Defining deserialization method.
981
+ deserialize_method = lambda do |parsed_response|
982
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientIPsecParameters.mapper()
983
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
984
+ end
985
+
986
+ # Waiting for response.
987
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
988
+ end
989
+
990
+ promise
991
+ end
992
+
993
+ #
994
+ # The Get VpnclientIpsecParameters operation retrieves information about the
995
+ # vpnclient ipsec policy for P2S client of virtual network gateway in the
996
+ # specified resource group through Network resource provider.
997
+ #
998
+ # @param resource_group_name [String] The name of the resource group.
999
+ # @param virtual_network_gateway_name [String] The virtual network gateway
1000
+ # name.
1001
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1002
+ # will be added to the HTTP request.
1003
+ #
1004
+ # @return [VpnClientIPsecParameters] operation results.
1005
+ #
1006
+ def get_vpnclient_ipsec_parameters(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1007
+ response = get_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
1008
+ response.body unless response.nil?
1009
+ end
1010
+
1011
+ #
1012
+ # @param resource_group_name [String] The name of the resource group.
1013
+ # @param virtual_network_gateway_name [String] The virtual network gateway
1014
+ # name.
1015
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1016
+ # will be added to the HTTP request.
1017
+ #
1018
+ # @return [Concurrent::Promise] promise which provides async access to http
1019
+ # response.
1020
+ #
1021
+ def get_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1022
+ # Send request
1023
+ promise = begin_get_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
1024
+
1025
+ promise = promise.then do |response|
1026
+ # Defining deserialization method.
1027
+ deserialize_method = lambda do |parsed_response|
1028
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientIPsecParameters.mapper()
1029
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1030
+ end
1031
+
1032
+ # Waiting for response.
1033
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1034
+ end
1035
+
1036
+ promise
1037
+ end
1038
+
1039
+ #
1040
+ # Gets a xml format representation for vpn device configuration script.
1041
+ #
1042
+ # @param resource_group_name [String] The name of the resource group.
1043
+ # @param virtual_network_gateway_connection_name [String] The name of the
1044
+ # virtual network gateway connection for which the configuration script is
1045
+ # generated.
1046
+ # @param parameters [VpnDeviceScriptParameters] Parameters supplied to the
1047
+ # generate vpn device script operation.
1048
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1049
+ # will be added to the HTTP request.
1050
+ #
1051
+ # @return [String] operation results.
1052
+ #
1053
+ def vpn_device_configuration_script(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil)
1054
+ response = vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value!
1055
+ response.body unless response.nil?
1056
+ end
1057
+
1058
+ #
1059
+ # Gets a xml format representation for vpn device configuration script.
1060
+ #
1061
+ # @param resource_group_name [String] The name of the resource group.
1062
+ # @param virtual_network_gateway_connection_name [String] The name of the
1063
+ # virtual network gateway connection for which the configuration script is
1064
+ # generated.
1065
+ # @param parameters [VpnDeviceScriptParameters] Parameters supplied to the
1066
+ # generate vpn device script operation.
1067
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1068
+ # will be added to the HTTP request.
1069
+ #
1070
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1071
+ #
1072
+ def vpn_device_configuration_script_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil)
1073
+ vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value!
1074
+ end
1075
+
1076
+ #
1077
+ # Gets a xml format representation for vpn device configuration script.
1078
+ #
1079
+ # @param resource_group_name [String] The name of the resource group.
1080
+ # @param virtual_network_gateway_connection_name [String] The name of the
1081
+ # virtual network gateway connection for which the configuration script is
1082
+ # generated.
1083
+ # @param parameters [VpnDeviceScriptParameters] Parameters supplied to the
1084
+ # generate vpn device script operation.
1085
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1086
+ # to the HTTP request.
1087
+ #
1088
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1089
+ #
1090
+ def vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil)
1091
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1092
+ fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
1093
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1094
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1095
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1096
+
1097
+
1098
+ request_headers = {}
1099
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1100
+
1101
+ # Set Headers
1102
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1103
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1104
+
1105
+ # Serialize Request
1106
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnDeviceScriptParameters.mapper()
1107
+ request_content = @client.serialize(request_mapper, parameters)
1108
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1109
+
1110
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript'
1111
+
1112
+ request_url = @base_url || @client.base_url
1113
+
1114
+ options = {
1115
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1116
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayConnectionName' => virtual_network_gateway_connection_name,'subscriptionId' => @client.subscription_id},
1117
+ query_params: {'api-version' => @client.api_version},
1118
+ body: request_content,
1119
+ headers: request_headers.merge(custom_headers || {}),
1120
+ base_url: request_url
1121
+ }
1122
+ promise = @client.make_request_async(:post, path_template, options)
1123
+
1124
+ promise = promise.then do |result|
1125
+ http_response = result.response
1126
+ status_code = http_response.status
1127
+ response_content = http_response.body
1128
+ unless status_code == 200
1129
+ error_model = JSON.load(response_content)
1130
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1131
+ end
1132
+
1133
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1134
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1135
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1136
+ # Deserialize Response
1137
+ if status_code == 200
1138
+ begin
1139
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1140
+ result_mapper = {
1141
+ client_side_validation: true,
1142
+ required: false,
1143
+ serialized_name: 'parsed_response',
1144
+ type: {
1145
+ name: 'String'
1146
+ }
1147
+ }
1148
+ result.body = @client.deserialize(result_mapper, parsed_response)
1149
+ rescue Exception => e
1150
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1151
+ end
1152
+ end
1153
+
1154
+ result
1155
+ end
1156
+
1157
+ promise.execute
1158
+ end
1159
+
1160
+ #
1161
+ # Starts packet capture on virtual network gateway in the specified resource
1162
+ # group.
1163
+ #
1164
+ # @param resource_group_name [String] The name of the resource group.
1165
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1166
+ # gateway.
1167
+ # @param parameters [VpnPacketCaptureStartParameters] Virtual network gateway
1168
+ # packet capture parameters supplied to start packet capture on gateway.
1169
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1170
+ # will be added to the HTTP request.
1171
+ #
1172
+ # @return [String] operation results.
1173
+ #
1174
+ def start_packet_capture(resource_group_name, virtual_network_gateway_name, parameters:nil, custom_headers:nil)
1175
+ response = start_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters:parameters, custom_headers:custom_headers).value!
1176
+ response.body unless response.nil?
1177
+ end
1178
+
1179
+ #
1180
+ # @param resource_group_name [String] The name of the resource group.
1181
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1182
+ # gateway.
1183
+ # @param parameters [VpnPacketCaptureStartParameters] Virtual network gateway
1184
+ # packet capture parameters supplied to start packet capture on gateway.
1185
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1186
+ # will be added to the HTTP request.
1187
+ #
1188
+ # @return [Concurrent::Promise] promise which provides async access to http
1189
+ # response.
1190
+ #
1191
+ def start_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters:nil, custom_headers:nil)
1192
+ # Send request
1193
+ promise = begin_start_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters:parameters, custom_headers:custom_headers)
1194
+
1195
+ promise = promise.then do |response|
1196
+ # Defining deserialization method.
1197
+ deserialize_method = lambda do |parsed_response|
1198
+ result_mapper = {
1199
+ client_side_validation: true,
1200
+ required: false,
1201
+ serialized_name: 'parsed_response',
1202
+ type: {
1203
+ name: 'String'
1204
+ }
1205
+ }
1206
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1207
+ end
1208
+
1209
+ # Waiting for response.
1210
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1211
+ end
1212
+
1213
+ promise
1214
+ end
1215
+
1216
+ #
1217
+ # Stops packet capture on virtual network gateway in the specified resource
1218
+ # group.
1219
+ #
1220
+ # @param resource_group_name [String] The name of the resource group.
1221
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1222
+ # gateway.
1223
+ # @param parameters [VpnPacketCaptureStopParameters] Virtual network gateway
1224
+ # packet capture parameters supplied to stop packet capture on gateway.
1225
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1226
+ # will be added to the HTTP request.
1227
+ #
1228
+ # @return [String] operation results.
1229
+ #
1230
+ def stop_packet_capture(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1231
+ response = stop_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1232
+ response.body unless response.nil?
1233
+ end
1234
+
1235
+ #
1236
+ # @param resource_group_name [String] The name of the resource group.
1237
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1238
+ # gateway.
1239
+ # @param parameters [VpnPacketCaptureStopParameters] Virtual network gateway
1240
+ # packet capture parameters supplied to stop packet capture on gateway.
1241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1242
+ # will be added to the HTTP request.
1243
+ #
1244
+ # @return [Concurrent::Promise] promise which provides async access to http
1245
+ # response.
1246
+ #
1247
+ def stop_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1248
+ # Send request
1249
+ promise = begin_stop_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers)
1250
+
1251
+ promise = promise.then do |response|
1252
+ # Defining deserialization method.
1253
+ deserialize_method = lambda do |parsed_response|
1254
+ result_mapper = {
1255
+ client_side_validation: true,
1256
+ required: false,
1257
+ serialized_name: 'parsed_response',
1258
+ type: {
1259
+ name: 'String'
1260
+ }
1261
+ }
1262
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1263
+ end
1264
+
1265
+ # Waiting for response.
1266
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1267
+ end
1268
+
1269
+ promise
1270
+ end
1271
+
1272
+ #
1273
+ # Get VPN client connection health detail per P2S client connection of the
1274
+ # virtual network gateway in the specified resource group.
1275
+ #
1276
+ # @param resource_group_name [String] The name of the resource group.
1277
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1278
+ # gateway.
1279
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1280
+ # will be added to the HTTP request.
1281
+ #
1282
+ # @return [VpnClientConnectionHealthDetailListResult] operation results.
1283
+ #
1284
+ def get_vpnclient_connection_health(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1285
+ response = get_vpnclient_connection_health_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
1286
+ response.body unless response.nil?
1287
+ end
1288
+
1289
+ #
1290
+ # @param resource_group_name [String] The name of the resource group.
1291
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1292
+ # gateway.
1293
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1294
+ # will be added to the HTTP request.
1295
+ #
1296
+ # @return [Concurrent::Promise] promise which provides async access to http
1297
+ # response.
1298
+ #
1299
+ def get_vpnclient_connection_health_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1300
+ # Send request
1301
+ promise = begin_get_vpnclient_connection_health_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers)
1302
+
1303
+ promise = promise.then do |response|
1304
+ # Defining deserialization method.
1305
+ deserialize_method = lambda do |parsed_response|
1306
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientConnectionHealthDetailListResult.mapper()
1307
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1308
+ end
1309
+
1310
+ # Waiting for response.
1311
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
1312
+ end
1313
+
1314
+ promise
1315
+ end
1316
+
1317
+ #
1318
+ # Creates or updates a virtual network gateway in the specified resource group.
1319
+ #
1320
+ # @param resource_group_name [String] The name of the resource group.
1321
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1322
+ # gateway.
1323
+ # @param parameters [VirtualNetworkGateway] Parameters supplied to create or
1324
+ # update virtual network gateway operation.
1325
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1326
+ # will be added to the HTTP request.
1327
+ #
1328
+ # @return [VirtualNetworkGateway] operation results.
1329
+ #
1330
+ def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1331
+ response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1332
+ response.body unless response.nil?
1333
+ end
1334
+
1335
+ #
1336
+ # Creates or updates a virtual network gateway in the specified resource group.
1337
+ #
1338
+ # @param resource_group_name [String] The name of the resource group.
1339
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1340
+ # gateway.
1341
+ # @param parameters [VirtualNetworkGateway] Parameters supplied to create or
1342
+ # update virtual network gateway operation.
1343
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1344
+ # will be added to the HTTP request.
1345
+ #
1346
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1347
+ #
1348
+ def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1349
+ begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1350
+ end
1351
+
1352
+ #
1353
+ # Creates or updates a virtual network gateway in the specified resource group.
1354
+ #
1355
+ # @param resource_group_name [String] The name of the resource group.
1356
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1357
+ # gateway.
1358
+ # @param parameters [VirtualNetworkGateway] Parameters supplied to create or
1359
+ # update virtual network gateway operation.
1360
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1361
+ # to the HTTP request.
1362
+ #
1363
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1364
+ #
1365
+ def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1366
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1367
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1368
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1369
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1370
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1371
+
1372
+
1373
+ request_headers = {}
1374
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1375
+
1376
+ # Set Headers
1377
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1378
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1379
+
1380
+ # Serialize Request
1381
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
1382
+ request_content = @client.serialize(request_mapper, parameters)
1383
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1384
+
1385
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
1386
+
1387
+ request_url = @base_url || @client.base_url
1388
+
1389
+ options = {
1390
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1391
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1392
+ query_params: {'api-version' => @client.api_version},
1393
+ body: request_content,
1394
+ headers: request_headers.merge(custom_headers || {}),
1395
+ base_url: request_url
1396
+ }
1397
+ promise = @client.make_request_async(:put, path_template, options)
1398
+
1399
+ promise = promise.then do |result|
1400
+ http_response = result.response
1401
+ status_code = http_response.status
1402
+ response_content = http_response.body
1403
+ unless status_code == 200 || status_code == 201
1404
+ error_model = JSON.load(response_content)
1405
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1406
+ end
1407
+
1408
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1409
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1410
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1411
+ # Deserialize Response
1412
+ if status_code == 200
1413
+ begin
1414
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1415
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
1416
+ result.body = @client.deserialize(result_mapper, parsed_response)
1417
+ rescue Exception => e
1418
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1419
+ end
1420
+ end
1421
+ # Deserialize Response
1422
+ if status_code == 201
1423
+ begin
1424
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1425
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
1426
+ result.body = @client.deserialize(result_mapper, parsed_response)
1427
+ rescue Exception => e
1428
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1429
+ end
1430
+ end
1431
+
1432
+ result
1433
+ end
1434
+
1435
+ promise.execute
1436
+ end
1437
+
1438
+ #
1439
+ # Deletes the specified virtual network gateway.
1440
+ #
1441
+ # @param resource_group_name [String] The name of the resource group.
1442
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1443
+ # gateway.
1444
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1445
+ # will be added to the HTTP request.
1446
+ #
1447
+ #
1448
+ def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1449
+ response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
1450
+ nil
1451
+ end
1452
+
1453
+ #
1454
+ # Deletes the specified virtual network gateway.
1455
+ #
1456
+ # @param resource_group_name [String] The name of the resource group.
1457
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1458
+ # gateway.
1459
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1460
+ # will be added to the HTTP request.
1461
+ #
1462
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1463
+ #
1464
+ def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1465
+ begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
1466
+ end
1467
+
1468
+ #
1469
+ # Deletes the specified virtual network gateway.
1470
+ #
1471
+ # @param resource_group_name [String] The name of the resource group.
1472
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1473
+ # gateway.
1474
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1475
+ # to the HTTP request.
1476
+ #
1477
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1478
+ #
1479
+ def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1480
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1481
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1482
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1483
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1484
+
1485
+
1486
+ request_headers = {}
1487
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1488
+
1489
+ # Set Headers
1490
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1491
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1492
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
1493
+
1494
+ request_url = @base_url || @client.base_url
1495
+
1496
+ options = {
1497
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1498
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1499
+ query_params: {'api-version' => @client.api_version},
1500
+ headers: request_headers.merge(custom_headers || {}),
1501
+ base_url: request_url
1502
+ }
1503
+ promise = @client.make_request_async(:delete, path_template, options)
1504
+
1505
+ promise = promise.then do |result|
1506
+ http_response = result.response
1507
+ status_code = http_response.status
1508
+ response_content = http_response.body
1509
+ unless status_code == 204 || status_code == 202 || status_code == 200
1510
+ error_model = JSON.load(response_content)
1511
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1512
+ end
1513
+
1514
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1515
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1516
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1517
+
1518
+ result
1519
+ end
1520
+
1521
+ promise.execute
1522
+ end
1523
+
1524
+ #
1525
+ # Updates a virtual network gateway tags.
1526
+ #
1527
+ # @param resource_group_name [String] The name of the resource group.
1528
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1529
+ # gateway.
1530
+ # @param parameters [TagsObject] Parameters supplied to update virtual network
1531
+ # gateway tags.
1532
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1533
+ # will be added to the HTTP request.
1534
+ #
1535
+ # @return [VirtualNetworkGateway] operation results.
1536
+ #
1537
+ def begin_update_tags(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1538
+ response = begin_update_tags_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1539
+ response.body unless response.nil?
1540
+ end
1541
+
1542
+ #
1543
+ # Updates a virtual network gateway tags.
1544
+ #
1545
+ # @param resource_group_name [String] The name of the resource group.
1546
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1547
+ # gateway.
1548
+ # @param parameters [TagsObject] Parameters supplied to update virtual network
1549
+ # gateway tags.
1550
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1551
+ # will be added to the HTTP request.
1552
+ #
1553
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1554
+ #
1555
+ def begin_update_tags_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1556
+ begin_update_tags_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1557
+ end
1558
+
1559
+ #
1560
+ # Updates a virtual network gateway tags.
1561
+ #
1562
+ # @param resource_group_name [String] The name of the resource group.
1563
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1564
+ # gateway.
1565
+ # @param parameters [TagsObject] Parameters supplied to update virtual network
1566
+ # gateway tags.
1567
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1568
+ # to the HTTP request.
1569
+ #
1570
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1571
+ #
1572
+ def begin_update_tags_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1573
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1574
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1575
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1576
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1577
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1578
+
1579
+
1580
+ request_headers = {}
1581
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1582
+
1583
+ # Set Headers
1584
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1585
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1586
+
1587
+ # Serialize Request
1588
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::TagsObject.mapper()
1589
+ request_content = @client.serialize(request_mapper, parameters)
1590
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1591
+
1592
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'
1593
+
1594
+ request_url = @base_url || @client.base_url
1595
+
1596
+ options = {
1597
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1598
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1599
+ query_params: {'api-version' => @client.api_version},
1600
+ body: request_content,
1601
+ headers: request_headers.merge(custom_headers || {}),
1602
+ base_url: request_url
1603
+ }
1604
+ promise = @client.make_request_async(:patch, path_template, options)
1605
+
1606
+ promise = promise.then do |result|
1607
+ http_response = result.response
1608
+ status_code = http_response.status
1609
+ response_content = http_response.body
1610
+ unless status_code == 202 || status_code == 200
1611
+ error_model = JSON.load(response_content)
1612
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1613
+ end
1614
+
1615
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1616
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1617
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1618
+ # Deserialize Response
1619
+ if status_code == 200
1620
+ begin
1621
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1622
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.mapper()
1623
+ result.body = @client.deserialize(result_mapper, parsed_response)
1624
+ rescue Exception => e
1625
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1626
+ end
1627
+ end
1628
+
1629
+ result
1630
+ end
1631
+
1632
+ promise.execute
1633
+ end
1634
+
1635
+ #
1636
+ # Resets the primary of the virtual network gateway in the specified resource
1637
+ # group.
1638
+ #
1639
+ # @param resource_group_name [String] The name of the resource group.
1640
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1641
+ # gateway.
1642
+ # @param gateway_vip [String] Virtual network gateway vip address supplied to
1643
+ # the begin reset of the active-active feature enabled gateway.
1644
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1645
+ # will be added to the HTTP request.
1646
+ #
1647
+ # @return [VirtualNetworkGateway] operation results.
1648
+ #
1649
+ def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil)
1650
+ response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value!
1651
+ response.body unless response.nil?
1652
+ end
1653
+
1654
+ #
1655
+ # Resets the primary of the virtual network gateway in the specified resource
1656
+ # group.
1657
+ #
1658
+ # @param resource_group_name [String] The name of the resource group.
1659
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1660
+ # gateway.
1661
+ # @param gateway_vip [String] Virtual network gateway vip address supplied to
1662
+ # the begin reset of the active-active feature enabled gateway.
1663
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1664
+ # will be added to the HTTP request.
1665
+ #
1666
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1667
+ #
1668
+ def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil)
1669
+ begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value!
1670
+ end
1671
+
1672
+ #
1673
+ # Resets the primary of the virtual network gateway in the specified resource
1674
+ # group.
1675
+ #
1676
+ # @param resource_group_name [String] The name of the resource group.
1677
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1678
+ # gateway.
1679
+ # @param gateway_vip [String] Virtual network gateway vip address supplied to
1680
+ # the begin reset of the active-active feature enabled gateway.
1681
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1682
+ # to the HTTP request.
1683
+ #
1684
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1685
+ #
1686
+ def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil)
1687
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1688
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1689
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1690
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1691
+
1692
+
1693
+ request_headers = {}
1694
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1695
+
1696
+ # Set Headers
1697
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1698
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1699
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'
1700
+
1701
+ request_url = @base_url || @client.base_url
1702
+
1703
+ options = {
1704
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1705
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1706
+ query_params: {'gatewayVip' => gateway_vip,'api-version' => @client.api_version},
1707
+ headers: request_headers.merge(custom_headers || {}),
1708
+ base_url: request_url
1709
+ }
1710
+ promise = @client.make_request_async(:post, path_template, options)
1711
+
1712
+ promise = promise.then do |result|
1713
+ http_response = result.response
1714
+ status_code = http_response.status
1715
+ response_content = http_response.body
1716
+ unless status_code == 202 || status_code == 200
1717
+ error_model = JSON.load(response_content)
1718
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1719
+ end
1720
+
1721
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1722
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1723
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1724
+ # Deserialize Response
1725
+ if status_code == 200
1726
+ begin
1727
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1728
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGateway.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
+ # Resets the VPN client shared key of the virtual network gateway in the
1743
+ # specified resource group.
1744
+ #
1745
+ # @param resource_group_name [String] The name of the resource group.
1746
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1747
+ # gateway.
1748
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1749
+ # will be added to the HTTP request.
1750
+ #
1751
+ #
1752
+ def begin_reset_vpn_client_shared_key(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1753
+ response = begin_reset_vpn_client_shared_key_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
1754
+ nil
1755
+ end
1756
+
1757
+ #
1758
+ # Resets the VPN client shared key of the virtual network gateway in the
1759
+ # specified resource group.
1760
+ #
1761
+ # @param resource_group_name [String] The name of the resource group.
1762
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1763
+ # gateway.
1764
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1765
+ # will be added to the HTTP request.
1766
+ #
1767
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1768
+ #
1769
+ def begin_reset_vpn_client_shared_key_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1770
+ begin_reset_vpn_client_shared_key_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
1771
+ end
1772
+
1773
+ #
1774
+ # Resets the VPN client shared key of the virtual network gateway in the
1775
+ # specified resource group.
1776
+ #
1777
+ # @param resource_group_name [String] The name of the resource group.
1778
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1779
+ # gateway.
1780
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1781
+ # to the HTTP request.
1782
+ #
1783
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1784
+ #
1785
+ def begin_reset_vpn_client_shared_key_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
1786
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1787
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1788
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1789
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1790
+
1791
+
1792
+ request_headers = {}
1793
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1794
+
1795
+ # Set Headers
1796
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1797
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1798
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey'
1799
+
1800
+ request_url = @base_url || @client.base_url
1801
+
1802
+ options = {
1803
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1804
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1805
+ query_params: {'api-version' => @client.api_version},
1806
+ headers: request_headers.merge(custom_headers || {}),
1807
+ base_url: request_url
1808
+ }
1809
+ promise = @client.make_request_async(:post, path_template, options)
1810
+
1811
+ promise = promise.then do |result|
1812
+ http_response = result.response
1813
+ status_code = http_response.status
1814
+ response_content = http_response.body
1815
+ unless status_code == 200 || status_code == 202
1816
+ error_model = JSON.load(response_content)
1817
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1818
+ end
1819
+
1820
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1821
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1822
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1823
+
1824
+ result
1825
+ end
1826
+
1827
+ promise.execute
1828
+ end
1829
+
1830
+ #
1831
+ # Generates VPN client package for P2S client of the virtual network gateway in
1832
+ # the specified resource group.
1833
+ #
1834
+ # @param resource_group_name [String] The name of the resource group.
1835
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1836
+ # gateway.
1837
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1838
+ # virtual network gateway VPN client package operation.
1839
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1840
+ # will be added to the HTTP request.
1841
+ #
1842
+ # @return [String] operation results.
1843
+ #
1844
+ def begin_generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1845
+ response = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1846
+ response.body unless response.nil?
1847
+ end
1848
+
1849
+ #
1850
+ # Generates VPN client package for P2S client of the virtual network gateway in
1851
+ # the specified resource group.
1852
+ #
1853
+ # @param resource_group_name [String] The name of the resource group.
1854
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1855
+ # gateway.
1856
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1857
+ # virtual network gateway VPN client package operation.
1858
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1859
+ # will be added to the HTTP request.
1860
+ #
1861
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1862
+ #
1863
+ def begin_generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1864
+ begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1865
+ end
1866
+
1867
+ #
1868
+ # Generates VPN client package for P2S client of the virtual network gateway in
1869
+ # the specified resource group.
1870
+ #
1871
+ # @param resource_group_name [String] The name of the resource group.
1872
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1873
+ # gateway.
1874
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1875
+ # virtual network gateway VPN client package operation.
1876
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1877
+ # to the HTTP request.
1878
+ #
1879
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1880
+ #
1881
+ def begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1882
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1883
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1884
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1885
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1886
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1887
+
1888
+
1889
+ request_headers = {}
1890
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1891
+
1892
+ # Set Headers
1893
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1894
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1895
+
1896
+ # Serialize Request
1897
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientParameters.mapper()
1898
+ request_content = @client.serialize(request_mapper, parameters)
1899
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1900
+
1901
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'
1902
+
1903
+ request_url = @base_url || @client.base_url
1904
+
1905
+ options = {
1906
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1907
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1908
+ query_params: {'api-version' => @client.api_version},
1909
+ body: request_content,
1910
+ headers: request_headers.merge(custom_headers || {}),
1911
+ base_url: request_url
1912
+ }
1913
+ promise = @client.make_request_async(:post, path_template, options)
1914
+
1915
+ promise = promise.then do |result|
1916
+ http_response = result.response
1917
+ status_code = http_response.status
1918
+ response_content = http_response.body
1919
+ unless status_code == 200 || status_code == 202
1920
+ error_model = JSON.load(response_content)
1921
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1922
+ end
1923
+
1924
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1925
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1926
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1927
+ # Deserialize Response
1928
+ if status_code == 200
1929
+ begin
1930
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1931
+ result_mapper = {
1932
+ client_side_validation: true,
1933
+ required: false,
1934
+ serialized_name: 'parsed_response',
1935
+ type: {
1936
+ name: 'String'
1937
+ }
1938
+ }
1939
+ result.body = @client.deserialize(result_mapper, parsed_response)
1940
+ rescue Exception => e
1941
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1942
+ end
1943
+ end
1944
+
1945
+ result
1946
+ end
1947
+
1948
+ promise.execute
1949
+ end
1950
+
1951
+ #
1952
+ # Generates VPN profile for P2S client of the virtual network gateway in the
1953
+ # specified resource group. Used for IKEV2 and radius based authentication.
1954
+ #
1955
+ # @param resource_group_name [String] The name of the resource group.
1956
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1957
+ # gateway.
1958
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1959
+ # virtual network gateway VPN client package operation.
1960
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1961
+ # will be added to the HTTP request.
1962
+ #
1963
+ # @return [String] operation results.
1964
+ #
1965
+ def begin_generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1966
+ response = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1967
+ response.body unless response.nil?
1968
+ end
1969
+
1970
+ #
1971
+ # Generates VPN profile for P2S client of the virtual network gateway in the
1972
+ # specified resource group. Used for IKEV2 and radius based authentication.
1973
+ #
1974
+ # @param resource_group_name [String] The name of the resource group.
1975
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1976
+ # gateway.
1977
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1978
+ # virtual network gateway VPN client package operation.
1979
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1980
+ # will be added to the HTTP request.
1981
+ #
1982
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1983
+ #
1984
+ def begin_generate_vpn_profile_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
1985
+ begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
1986
+ end
1987
+
1988
+ #
1989
+ # Generates VPN profile for P2S client of the virtual network gateway in the
1990
+ # specified resource group. Used for IKEV2 and radius based authentication.
1991
+ #
1992
+ # @param resource_group_name [String] The name of the resource group.
1993
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1994
+ # gateway.
1995
+ # @param parameters [VpnClientParameters] Parameters supplied to the generate
1996
+ # virtual network gateway VPN client package operation.
1997
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1998
+ # to the HTTP request.
1999
+ #
2000
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2001
+ #
2002
+ def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
2003
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2004
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2005
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2006
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2007
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2008
+
2009
+
2010
+ request_headers = {}
2011
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2012
+
2013
+ # Set Headers
2014
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2015
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2016
+
2017
+ # Serialize Request
2018
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientParameters.mapper()
2019
+ request_content = @client.serialize(request_mapper, parameters)
2020
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2021
+
2022
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile'
2023
+
2024
+ request_url = @base_url || @client.base_url
2025
+
2026
+ options = {
2027
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2028
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2029
+ query_params: {'api-version' => @client.api_version},
2030
+ body: request_content,
2031
+ headers: request_headers.merge(custom_headers || {}),
2032
+ base_url: request_url
2033
+ }
2034
+ promise = @client.make_request_async(:post, path_template, options)
2035
+
2036
+ promise = promise.then do |result|
2037
+ http_response = result.response
2038
+ status_code = http_response.status
2039
+ response_content = http_response.body
2040
+ unless status_code == 200 || status_code == 202
2041
+ error_model = JSON.load(response_content)
2042
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2043
+ end
2044
+
2045
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2046
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2047
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2048
+ # Deserialize Response
2049
+ if status_code == 200
2050
+ begin
2051
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2052
+ result_mapper = {
2053
+ client_side_validation: true,
2054
+ required: false,
2055
+ serialized_name: 'parsed_response',
2056
+ type: {
2057
+ name: 'String'
2058
+ }
2059
+ }
2060
+ result.body = @client.deserialize(result_mapper, parsed_response)
2061
+ rescue Exception => e
2062
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2063
+ end
2064
+ end
2065
+
2066
+ result
2067
+ end
2068
+
2069
+ promise.execute
2070
+ end
2071
+
2072
+ #
2073
+ # Gets pre-generated VPN profile for P2S client of the virtual network gateway
2074
+ # in the specified resource group. The profile needs to be generated first
2075
+ # using generateVpnProfile.
2076
+ #
2077
+ # @param resource_group_name [String] The name of the resource group.
2078
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2079
+ # gateway.
2080
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2081
+ # will be added to the HTTP request.
2082
+ #
2083
+ # @return [String] operation results.
2084
+ #
2085
+ def begin_get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2086
+ response = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2087
+ response.body unless response.nil?
2088
+ end
2089
+
2090
+ #
2091
+ # Gets pre-generated VPN profile for P2S client of the virtual network gateway
2092
+ # in the specified resource group. The profile needs to be generated first
2093
+ # using generateVpnProfile.
2094
+ #
2095
+ # @param resource_group_name [String] The name of the resource group.
2096
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2097
+ # gateway.
2098
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2099
+ # will be added to the HTTP request.
2100
+ #
2101
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2102
+ #
2103
+ def begin_get_vpn_profile_package_url_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2104
+ begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2105
+ end
2106
+
2107
+ #
2108
+ # Gets pre-generated VPN profile for P2S client of the virtual network gateway
2109
+ # in the specified resource group. The profile needs to be generated first
2110
+ # using generateVpnProfile.
2111
+ #
2112
+ # @param resource_group_name [String] The name of the resource group.
2113
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2114
+ # gateway.
2115
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2116
+ # to the HTTP request.
2117
+ #
2118
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2119
+ #
2120
+ def begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2121
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2122
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2123
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2124
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2125
+
2126
+
2127
+ request_headers = {}
2128
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2129
+
2130
+ # Set Headers
2131
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2132
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2133
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl'
2134
+
2135
+ request_url = @base_url || @client.base_url
2136
+
2137
+ options = {
2138
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2139
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2140
+ query_params: {'api-version' => @client.api_version},
2141
+ headers: request_headers.merge(custom_headers || {}),
2142
+ base_url: request_url
2143
+ }
2144
+ promise = @client.make_request_async(:post, path_template, options)
2145
+
2146
+ promise = promise.then do |result|
2147
+ http_response = result.response
2148
+ status_code = http_response.status
2149
+ response_content = http_response.body
2150
+ unless status_code == 200 || status_code == 202
2151
+ error_model = JSON.load(response_content)
2152
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2153
+ end
2154
+
2155
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2156
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2157
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2158
+ # Deserialize Response
2159
+ if status_code == 200
2160
+ begin
2161
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2162
+ result_mapper = {
2163
+ client_side_validation: true,
2164
+ required: false,
2165
+ serialized_name: 'parsed_response',
2166
+ type: {
2167
+ name: 'String'
2168
+ }
2169
+ }
2170
+ result.body = @client.deserialize(result_mapper, parsed_response)
2171
+ rescue Exception => e
2172
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2173
+ end
2174
+ end
2175
+
2176
+ result
2177
+ end
2178
+
2179
+ promise.execute
2180
+ end
2181
+
2182
+ #
2183
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
2184
+ #
2185
+ # @param resource_group_name [String] The name of the resource group.
2186
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2187
+ # gateway.
2188
+ # @param peer [String] The IP address of the peer to retrieve the status of.
2189
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2190
+ # will be added to the HTTP request.
2191
+ #
2192
+ # @return [BgpPeerStatusListResult] operation results.
2193
+ #
2194
+ def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil)
2195
+ response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value!
2196
+ response.body unless response.nil?
2197
+ end
2198
+
2199
+ #
2200
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
2201
+ #
2202
+ # @param resource_group_name [String] The name of the resource group.
2203
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2204
+ # gateway.
2205
+ # @param peer [String] The IP address of the peer to retrieve the status of.
2206
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2207
+ # will be added to the HTTP request.
2208
+ #
2209
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2210
+ #
2211
+ def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil)
2212
+ begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value!
2213
+ end
2214
+
2215
+ #
2216
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
2217
+ #
2218
+ # @param resource_group_name [String] The name of the resource group.
2219
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2220
+ # gateway.
2221
+ # @param peer [String] The IP address of the peer to retrieve the status of.
2222
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2223
+ # to the HTTP request.
2224
+ #
2225
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2226
+ #
2227
+ def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil)
2228
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2229
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2230
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2231
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2232
+
2233
+
2234
+ request_headers = {}
2235
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2236
+
2237
+ # Set Headers
2238
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2239
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2240
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'
2241
+
2242
+ request_url = @base_url || @client.base_url
2243
+
2244
+ options = {
2245
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2246
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2247
+ query_params: {'peer' => peer,'api-version' => @client.api_version},
2248
+ headers: request_headers.merge(custom_headers || {}),
2249
+ base_url: request_url
2250
+ }
2251
+ promise = @client.make_request_async(:post, path_template, options)
2252
+
2253
+ promise = promise.then do |result|
2254
+ http_response = result.response
2255
+ status_code = http_response.status
2256
+ response_content = http_response.body
2257
+ unless status_code == 200 || status_code == 202
2258
+ error_model = JSON.load(response_content)
2259
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2260
+ end
2261
+
2262
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2263
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2264
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2265
+ # Deserialize Response
2266
+ if status_code == 200
2267
+ begin
2268
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2269
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::BgpPeerStatusListResult.mapper()
2270
+ result.body = @client.deserialize(result_mapper, parsed_response)
2271
+ rescue Exception => e
2272
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2273
+ end
2274
+ end
2275
+
2276
+ result
2277
+ end
2278
+
2279
+ promise.execute
2280
+ end
2281
+
2282
+ #
2283
+ # This operation retrieves a list of routes the virtual network gateway has
2284
+ # learned, including routes learned from BGP peers.
2285
+ #
2286
+ # @param resource_group_name [String] The name of the resource group.
2287
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2288
+ # gateway.
2289
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2290
+ # will be added to the HTTP request.
2291
+ #
2292
+ # @return [GatewayRouteListResult] operation results.
2293
+ #
2294
+ def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2295
+ response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2296
+ response.body unless response.nil?
2297
+ end
2298
+
2299
+ #
2300
+ # This operation retrieves a list of routes the virtual network gateway has
2301
+ # learned, including routes learned from BGP peers.
2302
+ #
2303
+ # @param resource_group_name [String] The name of the resource group.
2304
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2305
+ # gateway.
2306
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2307
+ # will be added to the HTTP request.
2308
+ #
2309
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2310
+ #
2311
+ def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2312
+ begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2313
+ end
2314
+
2315
+ #
2316
+ # This operation retrieves a list of routes the virtual network gateway has
2317
+ # learned, including routes learned from BGP peers.
2318
+ #
2319
+ # @param resource_group_name [String] The name of the resource group.
2320
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2321
+ # gateway.
2322
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2323
+ # to the HTTP request.
2324
+ #
2325
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2326
+ #
2327
+ def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2328
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2329
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2330
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2331
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2332
+
2333
+
2334
+ request_headers = {}
2335
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2336
+
2337
+ # Set Headers
2338
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2339
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2340
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'
2341
+
2342
+ request_url = @base_url || @client.base_url
2343
+
2344
+ options = {
2345
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2346
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2347
+ query_params: {'api-version' => @client.api_version},
2348
+ headers: request_headers.merge(custom_headers || {}),
2349
+ base_url: request_url
2350
+ }
2351
+ promise = @client.make_request_async(:post, path_template, options)
2352
+
2353
+ promise = promise.then do |result|
2354
+ http_response = result.response
2355
+ status_code = http_response.status
2356
+ response_content = http_response.body
2357
+ unless status_code == 200 || status_code == 202
2358
+ error_model = JSON.load(response_content)
2359
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2360
+ end
2361
+
2362
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2363
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2364
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2365
+ # Deserialize Response
2366
+ if status_code == 200
2367
+ begin
2368
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2369
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::GatewayRouteListResult.mapper()
2370
+ result.body = @client.deserialize(result_mapper, parsed_response)
2371
+ rescue Exception => e
2372
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2373
+ end
2374
+ end
2375
+
2376
+ result
2377
+ end
2378
+
2379
+ promise.execute
2380
+ end
2381
+
2382
+ #
2383
+ # This operation retrieves a list of routes the virtual network gateway is
2384
+ # advertising to the specified peer.
2385
+ #
2386
+ # @param resource_group_name [String] The name of the resource group.
2387
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2388
+ # gateway.
2389
+ # @param peer [String] The IP address of the peer.
2390
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2391
+ # will be added to the HTTP request.
2392
+ #
2393
+ # @return [GatewayRouteListResult] operation results.
2394
+ #
2395
+ def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil)
2396
+ response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value!
2397
+ response.body unless response.nil?
2398
+ end
2399
+
2400
+ #
2401
+ # This operation retrieves a list of routes the virtual network gateway is
2402
+ # advertising to the specified peer.
2403
+ #
2404
+ # @param resource_group_name [String] The name of the resource group.
2405
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2406
+ # gateway.
2407
+ # @param peer [String] The IP address of the peer.
2408
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2409
+ # will be added to the HTTP request.
2410
+ #
2411
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2412
+ #
2413
+ def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil)
2414
+ begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value!
2415
+ end
2416
+
2417
+ #
2418
+ # This operation retrieves a list of routes the virtual network gateway is
2419
+ # advertising to the specified peer.
2420
+ #
2421
+ # @param resource_group_name [String] The name of the resource group.
2422
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2423
+ # gateway.
2424
+ # @param peer [String] The IP address of the peer.
2425
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2426
+ # to the HTTP request.
2427
+ #
2428
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2429
+ #
2430
+ def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil)
2431
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2432
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2433
+ fail ArgumentError, 'peer is nil' if peer.nil?
2434
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2435
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2436
+
2437
+
2438
+ request_headers = {}
2439
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2440
+
2441
+ # Set Headers
2442
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2443
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2444
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'
2445
+
2446
+ request_url = @base_url || @client.base_url
2447
+
2448
+ options = {
2449
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2450
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2451
+ query_params: {'peer' => peer,'api-version' => @client.api_version},
2452
+ headers: request_headers.merge(custom_headers || {}),
2453
+ base_url: request_url
2454
+ }
2455
+ promise = @client.make_request_async(:post, path_template, options)
2456
+
2457
+ promise = promise.then do |result|
2458
+ http_response = result.response
2459
+ status_code = http_response.status
2460
+ response_content = http_response.body
2461
+ unless status_code == 200 || status_code == 202
2462
+ error_model = JSON.load(response_content)
2463
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2464
+ end
2465
+
2466
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2467
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2468
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2469
+ # Deserialize Response
2470
+ if status_code == 200
2471
+ begin
2472
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2473
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::GatewayRouteListResult.mapper()
2474
+ result.body = @client.deserialize(result_mapper, parsed_response)
2475
+ rescue Exception => e
2476
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2477
+ end
2478
+ end
2479
+
2480
+ result
2481
+ end
2482
+
2483
+ promise.execute
2484
+ end
2485
+
2486
+ #
2487
+ # The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy
2488
+ # for P2S client of virtual network gateway in the specified resource group
2489
+ # through Network resource provider.
2490
+ #
2491
+ # @param resource_group_name [String] The name of the resource group.
2492
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2493
+ # gateway.
2494
+ # @param vpnclient_ipsec_params [VpnClientIPsecParameters] Parameters supplied
2495
+ # to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S
2496
+ # client operation through Network resource provider.
2497
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2498
+ # will be added to the HTTP request.
2499
+ #
2500
+ # @return [VpnClientIPsecParameters] operation results.
2501
+ #
2502
+ def begin_set_vpnclient_ipsec_parameters(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:nil)
2503
+ response = begin_set_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:custom_headers).value!
2504
+ response.body unless response.nil?
2505
+ end
2506
+
2507
+ #
2508
+ # The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy
2509
+ # for P2S client of virtual network gateway in the specified resource group
2510
+ # through Network resource provider.
2511
+ #
2512
+ # @param resource_group_name [String] The name of the resource group.
2513
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2514
+ # gateway.
2515
+ # @param vpnclient_ipsec_params [VpnClientIPsecParameters] Parameters supplied
2516
+ # to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S
2517
+ # client operation through Network resource provider.
2518
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2519
+ # will be added to the HTTP request.
2520
+ #
2521
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2522
+ #
2523
+ def begin_set_vpnclient_ipsec_parameters_with_http_info(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:nil)
2524
+ begin_set_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:custom_headers).value!
2525
+ end
2526
+
2527
+ #
2528
+ # The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy
2529
+ # for P2S client of virtual network gateway in the specified resource group
2530
+ # through Network resource provider.
2531
+ #
2532
+ # @param resource_group_name [String] The name of the resource group.
2533
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2534
+ # gateway.
2535
+ # @param vpnclient_ipsec_params [VpnClientIPsecParameters] Parameters supplied
2536
+ # to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S
2537
+ # client operation through Network resource provider.
2538
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2539
+ # to the HTTP request.
2540
+ #
2541
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2542
+ #
2543
+ def begin_set_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers:nil)
2544
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2545
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2546
+ fail ArgumentError, 'vpnclient_ipsec_params is nil' if vpnclient_ipsec_params.nil?
2547
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2548
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2549
+
2550
+
2551
+ request_headers = {}
2552
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2553
+
2554
+ # Set Headers
2555
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2556
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2557
+
2558
+ # Serialize Request
2559
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientIPsecParameters.mapper()
2560
+ request_content = @client.serialize(request_mapper, vpnclient_ipsec_params)
2561
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2562
+
2563
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters'
2564
+
2565
+ request_url = @base_url || @client.base_url
2566
+
2567
+ options = {
2568
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2569
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2570
+ query_params: {'api-version' => @client.api_version},
2571
+ body: request_content,
2572
+ headers: request_headers.merge(custom_headers || {}),
2573
+ base_url: request_url
2574
+ }
2575
+ promise = @client.make_request_async(:post, path_template, options)
2576
+
2577
+ promise = promise.then do |result|
2578
+ http_response = result.response
2579
+ status_code = http_response.status
2580
+ response_content = http_response.body
2581
+ unless status_code == 202 || status_code == 200
2582
+ error_model = JSON.load(response_content)
2583
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2584
+ end
2585
+
2586
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2587
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2588
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2589
+ # Deserialize Response
2590
+ if status_code == 200
2591
+ begin
2592
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2593
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientIPsecParameters.mapper()
2594
+ result.body = @client.deserialize(result_mapper, parsed_response)
2595
+ rescue Exception => e
2596
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2597
+ end
2598
+ end
2599
+
2600
+ result
2601
+ end
2602
+
2603
+ promise.execute
2604
+ end
2605
+
2606
+ #
2607
+ # The Get VpnclientIpsecParameters operation retrieves information about the
2608
+ # vpnclient ipsec policy for P2S client of virtual network gateway in the
2609
+ # specified resource group through Network resource provider.
2610
+ #
2611
+ # @param resource_group_name [String] The name of the resource group.
2612
+ # @param virtual_network_gateway_name [String] The virtual network gateway
2613
+ # name.
2614
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2615
+ # will be added to the HTTP request.
2616
+ #
2617
+ # @return [VpnClientIPsecParameters] operation results.
2618
+ #
2619
+ def begin_get_vpnclient_ipsec_parameters(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2620
+ response = begin_get_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2621
+ response.body unless response.nil?
2622
+ end
2623
+
2624
+ #
2625
+ # The Get VpnclientIpsecParameters operation retrieves information about the
2626
+ # vpnclient ipsec policy for P2S client of virtual network gateway in the
2627
+ # specified resource group through Network resource provider.
2628
+ #
2629
+ # @param resource_group_name [String] The name of the resource group.
2630
+ # @param virtual_network_gateway_name [String] The virtual network gateway
2631
+ # name.
2632
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2633
+ # will be added to the HTTP request.
2634
+ #
2635
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2636
+ #
2637
+ def begin_get_vpnclient_ipsec_parameters_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2638
+ begin_get_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2639
+ end
2640
+
2641
+ #
2642
+ # The Get VpnclientIpsecParameters operation retrieves information about the
2643
+ # vpnclient ipsec policy for P2S client of virtual network gateway in the
2644
+ # specified resource group through Network resource provider.
2645
+ #
2646
+ # @param resource_group_name [String] The name of the resource group.
2647
+ # @param virtual_network_gateway_name [String] The virtual network gateway
2648
+ # name.
2649
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2650
+ # to the HTTP request.
2651
+ #
2652
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2653
+ #
2654
+ def begin_get_vpnclient_ipsec_parameters_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2655
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2656
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2657
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2658
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2659
+
2660
+
2661
+ request_headers = {}
2662
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2663
+
2664
+ # Set Headers
2665
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2666
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2667
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters'
2668
+
2669
+ request_url = @base_url || @client.base_url
2670
+
2671
+ options = {
2672
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2673
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2674
+ query_params: {'api-version' => @client.api_version},
2675
+ headers: request_headers.merge(custom_headers || {}),
2676
+ base_url: request_url
2677
+ }
2678
+ promise = @client.make_request_async(:post, path_template, options)
2679
+
2680
+ promise = promise.then do |result|
2681
+ http_response = result.response
2682
+ status_code = http_response.status
2683
+ response_content = http_response.body
2684
+ unless status_code == 200
2685
+ error_model = JSON.load(response_content)
2686
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2687
+ end
2688
+
2689
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2690
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2691
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2692
+ # Deserialize Response
2693
+ if status_code == 200
2694
+ begin
2695
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2696
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientIPsecParameters.mapper()
2697
+ result.body = @client.deserialize(result_mapper, parsed_response)
2698
+ rescue Exception => e
2699
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2700
+ end
2701
+ end
2702
+
2703
+ result
2704
+ end
2705
+
2706
+ promise.execute
2707
+ end
2708
+
2709
+ #
2710
+ # Starts packet capture on virtual network gateway in the specified resource
2711
+ # group.
2712
+ #
2713
+ # @param resource_group_name [String] The name of the resource group.
2714
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2715
+ # gateway.
2716
+ # @param parameters [VpnPacketCaptureStartParameters] Virtual network gateway
2717
+ # packet capture parameters supplied to start packet capture on gateway.
2718
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2719
+ # will be added to the HTTP request.
2720
+ #
2721
+ # @return [String] operation results.
2722
+ #
2723
+ def begin_start_packet_capture(resource_group_name, virtual_network_gateway_name, parameters:nil, custom_headers:nil)
2724
+ response = begin_start_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters:parameters, custom_headers:custom_headers).value!
2725
+ response.body unless response.nil?
2726
+ end
2727
+
2728
+ #
2729
+ # Starts packet capture on virtual network gateway in the specified resource
2730
+ # group.
2731
+ #
2732
+ # @param resource_group_name [String] The name of the resource group.
2733
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2734
+ # gateway.
2735
+ # @param parameters [VpnPacketCaptureStartParameters] Virtual network gateway
2736
+ # packet capture parameters supplied to start packet capture on gateway.
2737
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2738
+ # will be added to the HTTP request.
2739
+ #
2740
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2741
+ #
2742
+ def begin_start_packet_capture_with_http_info(resource_group_name, virtual_network_gateway_name, parameters:nil, custom_headers:nil)
2743
+ begin_start_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters:parameters, custom_headers:custom_headers).value!
2744
+ end
2745
+
2746
+ #
2747
+ # Starts packet capture on virtual network gateway in the specified resource
2748
+ # group.
2749
+ #
2750
+ # @param resource_group_name [String] The name of the resource group.
2751
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2752
+ # gateway.
2753
+ # @param parameters [VpnPacketCaptureStartParameters] Virtual network gateway
2754
+ # packet capture parameters supplied to start packet capture on gateway.
2755
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2756
+ # to the HTTP request.
2757
+ #
2758
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2759
+ #
2760
+ def begin_start_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters:nil, custom_headers:nil)
2761
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2762
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2763
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2764
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2765
+
2766
+
2767
+ request_headers = {}
2768
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2769
+
2770
+ # Set Headers
2771
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2772
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2773
+
2774
+ # Serialize Request
2775
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnPacketCaptureStartParameters.mapper()
2776
+ request_content = @client.serialize(request_mapper, parameters)
2777
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2778
+
2779
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startPacketCapture'
2780
+
2781
+ request_url = @base_url || @client.base_url
2782
+
2783
+ options = {
2784
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2785
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2786
+ query_params: {'api-version' => @client.api_version},
2787
+ body: request_content,
2788
+ headers: request_headers.merge(custom_headers || {}),
2789
+ base_url: request_url
2790
+ }
2791
+ promise = @client.make_request_async(:post, path_template, options)
2792
+
2793
+ promise = promise.then do |result|
2794
+ http_response = result.response
2795
+ status_code = http_response.status
2796
+ response_content = http_response.body
2797
+ unless status_code == 202 || status_code == 200
2798
+ error_model = JSON.load(response_content)
2799
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2800
+ end
2801
+
2802
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2803
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2804
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2805
+ # Deserialize Response
2806
+ if status_code == 200
2807
+ begin
2808
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2809
+ result_mapper = {
2810
+ client_side_validation: true,
2811
+ required: false,
2812
+ serialized_name: 'parsed_response',
2813
+ type: {
2814
+ name: 'String'
2815
+ }
2816
+ }
2817
+ result.body = @client.deserialize(result_mapper, parsed_response)
2818
+ rescue Exception => e
2819
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2820
+ end
2821
+ end
2822
+
2823
+ result
2824
+ end
2825
+
2826
+ promise.execute
2827
+ end
2828
+
2829
+ #
2830
+ # Stops packet capture on virtual network gateway in the specified resource
2831
+ # group.
2832
+ #
2833
+ # @param resource_group_name [String] The name of the resource group.
2834
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2835
+ # gateway.
2836
+ # @param parameters [VpnPacketCaptureStopParameters] Virtual network gateway
2837
+ # packet capture parameters supplied to stop packet capture on gateway.
2838
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2839
+ # will be added to the HTTP request.
2840
+ #
2841
+ # @return [String] operation results.
2842
+ #
2843
+ def begin_stop_packet_capture(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
2844
+ response = begin_stop_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
2845
+ response.body unless response.nil?
2846
+ end
2847
+
2848
+ #
2849
+ # Stops packet capture on virtual network gateway in the specified resource
2850
+ # group.
2851
+ #
2852
+ # @param resource_group_name [String] The name of the resource group.
2853
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2854
+ # gateway.
2855
+ # @param parameters [VpnPacketCaptureStopParameters] Virtual network gateway
2856
+ # packet capture parameters supplied to stop packet capture on gateway.
2857
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2858
+ # will be added to the HTTP request.
2859
+ #
2860
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2861
+ #
2862
+ def begin_stop_packet_capture_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
2863
+ begin_stop_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value!
2864
+ end
2865
+
2866
+ #
2867
+ # Stops packet capture on virtual network gateway in the specified resource
2868
+ # group.
2869
+ #
2870
+ # @param resource_group_name [String] The name of the resource group.
2871
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2872
+ # gateway.
2873
+ # @param parameters [VpnPacketCaptureStopParameters] Virtual network gateway
2874
+ # packet capture parameters supplied to stop packet capture on gateway.
2875
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2876
+ # to the HTTP request.
2877
+ #
2878
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2879
+ #
2880
+ def begin_stop_packet_capture_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil)
2881
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2882
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2883
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2884
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2885
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2886
+
2887
+
2888
+ request_headers = {}
2889
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2890
+
2891
+ # Set Headers
2892
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2893
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2894
+
2895
+ # Serialize Request
2896
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnPacketCaptureStopParameters.mapper()
2897
+ request_content = @client.serialize(request_mapper, parameters)
2898
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2899
+
2900
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopPacketCapture'
2901
+
2902
+ request_url = @base_url || @client.base_url
2903
+
2904
+ options = {
2905
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2906
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
2907
+ query_params: {'api-version' => @client.api_version},
2908
+ body: request_content,
2909
+ headers: request_headers.merge(custom_headers || {}),
2910
+ base_url: request_url
2911
+ }
2912
+ promise = @client.make_request_async(:post, path_template, options)
2913
+
2914
+ promise = promise.then do |result|
2915
+ http_response = result.response
2916
+ status_code = http_response.status
2917
+ response_content = http_response.body
2918
+ unless status_code == 202 || status_code == 200
2919
+ error_model = JSON.load(response_content)
2920
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2921
+ end
2922
+
2923
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2924
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2925
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2926
+ # Deserialize Response
2927
+ if status_code == 200
2928
+ begin
2929
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2930
+ result_mapper = {
2931
+ client_side_validation: true,
2932
+ required: false,
2933
+ serialized_name: 'parsed_response',
2934
+ type: {
2935
+ name: 'String'
2936
+ }
2937
+ }
2938
+ result.body = @client.deserialize(result_mapper, parsed_response)
2939
+ rescue Exception => e
2940
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2941
+ end
2942
+ end
2943
+
2944
+ result
2945
+ end
2946
+
2947
+ promise.execute
2948
+ end
2949
+
2950
+ #
2951
+ # Get VPN client connection health detail per P2S client connection of the
2952
+ # virtual network gateway in the specified resource group.
2953
+ #
2954
+ # @param resource_group_name [String] The name of the resource group.
2955
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2956
+ # gateway.
2957
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2958
+ # will be added to the HTTP request.
2959
+ #
2960
+ # @return [VpnClientConnectionHealthDetailListResult] operation results.
2961
+ #
2962
+ def begin_get_vpnclient_connection_health(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2963
+ response = begin_get_vpnclient_connection_health_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2964
+ response.body unless response.nil?
2965
+ end
2966
+
2967
+ #
2968
+ # Get VPN client connection health detail per P2S client connection of the
2969
+ # virtual network gateway in the specified resource group.
2970
+ #
2971
+ # @param resource_group_name [String] The name of the resource group.
2972
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2973
+ # gateway.
2974
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2975
+ # will be added to the HTTP request.
2976
+ #
2977
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2978
+ #
2979
+ def begin_get_vpnclient_connection_health_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2980
+ begin_get_vpnclient_connection_health_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
2981
+ end
2982
+
2983
+ #
2984
+ # Get VPN client connection health detail per P2S client connection of the
2985
+ # virtual network gateway in the specified resource group.
2986
+ #
2987
+ # @param resource_group_name [String] The name of the resource group.
2988
+ # @param virtual_network_gateway_name [String] The name of the virtual network
2989
+ # gateway.
2990
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2991
+ # to the HTTP request.
2992
+ #
2993
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2994
+ #
2995
+ def begin_get_vpnclient_connection_health_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
2996
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2997
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
2998
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2999
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
3000
+
3001
+
3002
+ request_headers = {}
3003
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3004
+
3005
+ # Set Headers
3006
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3007
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3008
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth'
3009
+
3010
+ request_url = @base_url || @client.base_url
3011
+
3012
+ options = {
3013
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3014
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
3015
+ query_params: {'api-version' => @client.api_version},
3016
+ headers: request_headers.merge(custom_headers || {}),
3017
+ base_url: request_url
3018
+ }
3019
+ promise = @client.make_request_async(:post, path_template, options)
3020
+
3021
+ promise = promise.then do |result|
3022
+ http_response = result.response
3023
+ status_code = http_response.status
3024
+ response_content = http_response.body
3025
+ unless status_code == 200 || status_code == 202
3026
+ error_model = JSON.load(response_content)
3027
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3028
+ end
3029
+
3030
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3031
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3032
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3033
+ # Deserialize Response
3034
+ if status_code == 200
3035
+ begin
3036
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3037
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnClientConnectionHealthDetailListResult.mapper()
3038
+ result.body = @client.deserialize(result_mapper, parsed_response)
3039
+ rescue Exception => e
3040
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3041
+ end
3042
+ end
3043
+
3044
+ result
3045
+ end
3046
+
3047
+ promise.execute
3048
+ end
3049
+
3050
+ #
3051
+ # Gets all virtual network gateways by resource group.
3052
+ #
3053
+ # @param next_page_link [String] The NextLink from the previous successful call
3054
+ # to List operation.
3055
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3056
+ # will be added to the HTTP request.
3057
+ #
3058
+ # @return [VirtualNetworkGatewayListResult] operation results.
3059
+ #
3060
+ def list_next(next_page_link, custom_headers:nil)
3061
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
3062
+ response.body unless response.nil?
3063
+ end
3064
+
3065
+ #
3066
+ # Gets all virtual network gateways by resource group.
3067
+ #
3068
+ # @param next_page_link [String] The NextLink from the previous successful call
3069
+ # to List operation.
3070
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3071
+ # will be added to the HTTP request.
3072
+ #
3073
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3074
+ #
3075
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
3076
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
3077
+ end
3078
+
3079
+ #
3080
+ # Gets all virtual network gateways by resource group.
3081
+ #
3082
+ # @param next_page_link [String] The NextLink from the previous successful call
3083
+ # to List operation.
3084
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3085
+ # to the HTTP request.
3086
+ #
3087
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3088
+ #
3089
+ def list_next_async(next_page_link, custom_headers:nil)
3090
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3091
+
3092
+
3093
+ request_headers = {}
3094
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3095
+
3096
+ # Set Headers
3097
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3098
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3099
+ path_template = '{nextLink}'
3100
+
3101
+ request_url = @base_url || @client.base_url
3102
+
3103
+ options = {
3104
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3105
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3106
+ headers: request_headers.merge(custom_headers || {}),
3107
+ base_url: request_url
3108
+ }
3109
+ promise = @client.make_request_async(:get, path_template, options)
3110
+
3111
+ promise = promise.then do |result|
3112
+ http_response = result.response
3113
+ status_code = http_response.status
3114
+ response_content = http_response.body
3115
+ unless status_code == 200
3116
+ error_model = JSON.load(response_content)
3117
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3118
+ end
3119
+
3120
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3121
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3122
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3123
+ # Deserialize Response
3124
+ if status_code == 200
3125
+ begin
3126
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3127
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGatewayListResult.mapper()
3128
+ result.body = @client.deserialize(result_mapper, parsed_response)
3129
+ rescue Exception => e
3130
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3131
+ end
3132
+ end
3133
+
3134
+ result
3135
+ end
3136
+
3137
+ promise.execute
3138
+ end
3139
+
3140
+ #
3141
+ # Gets all the connections in a virtual network gateway.
3142
+ #
3143
+ # @param next_page_link [String] The NextLink from the previous successful call
3144
+ # to List operation.
3145
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3146
+ # will be added to the HTTP request.
3147
+ #
3148
+ # @return [VirtualNetworkGatewayListConnectionsResult] operation results.
3149
+ #
3150
+ def list_connections_next(next_page_link, custom_headers:nil)
3151
+ response = list_connections_next_async(next_page_link, custom_headers:custom_headers).value!
3152
+ response.body unless response.nil?
3153
+ end
3154
+
3155
+ #
3156
+ # Gets all the connections in a virtual network gateway.
3157
+ #
3158
+ # @param next_page_link [String] The NextLink from the previous successful call
3159
+ # to List operation.
3160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3161
+ # will be added to the HTTP request.
3162
+ #
3163
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3164
+ #
3165
+ def list_connections_next_with_http_info(next_page_link, custom_headers:nil)
3166
+ list_connections_next_async(next_page_link, custom_headers:custom_headers).value!
3167
+ end
3168
+
3169
+ #
3170
+ # Gets all the connections in a virtual network gateway.
3171
+ #
3172
+ # @param next_page_link [String] The NextLink from the previous successful call
3173
+ # to List operation.
3174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3175
+ # to the HTTP request.
3176
+ #
3177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3178
+ #
3179
+ def list_connections_next_async(next_page_link, custom_headers:nil)
3180
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3181
+
3182
+
3183
+ request_headers = {}
3184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3185
+
3186
+ # Set Headers
3187
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3188
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3189
+ path_template = '{nextLink}'
3190
+
3191
+ request_url = @base_url || @client.base_url
3192
+
3193
+ options = {
3194
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3195
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3196
+ headers: request_headers.merge(custom_headers || {}),
3197
+ base_url: request_url
3198
+ }
3199
+ promise = @client.make_request_async(:get, path_template, options)
3200
+
3201
+ promise = promise.then do |result|
3202
+ http_response = result.response
3203
+ status_code = http_response.status
3204
+ response_content = http_response.body
3205
+ unless status_code == 200
3206
+ error_model = JSON.load(response_content)
3207
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3208
+ end
3209
+
3210
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3211
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3212
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3213
+ # Deserialize Response
3214
+ if status_code == 200
3215
+ begin
3216
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3217
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VirtualNetworkGatewayListConnectionsResult.mapper()
3218
+ result.body = @client.deserialize(result_mapper, parsed_response)
3219
+ rescue Exception => e
3220
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3221
+ end
3222
+ end
3223
+
3224
+ result
3225
+ end
3226
+
3227
+ promise.execute
3228
+ end
3229
+
3230
+ #
3231
+ # Gets all virtual network gateways by resource group.
3232
+ #
3233
+ # @param resource_group_name [String] The name of the resource group.
3234
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3235
+ # will be added to the HTTP request.
3236
+ #
3237
+ # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages
3238
+ # of the response.
3239
+ #
3240
+ def list_as_lazy(resource_group_name, custom_headers:nil)
3241
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
3242
+ unless response.nil?
3243
+ page = response.body
3244
+ page.next_method = Proc.new do |next_page_link|
3245
+ list_next_async(next_page_link, custom_headers:custom_headers)
3246
+ end
3247
+ page
3248
+ end
3249
+ end
3250
+
3251
+ #
3252
+ # Gets all the connections in a virtual network gateway.
3253
+ #
3254
+ # @param resource_group_name [String] The name of the resource group.
3255
+ # @param virtual_network_gateway_name [String] The name of the virtual network
3256
+ # gateway.
3257
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3258
+ # will be added to the HTTP request.
3259
+ #
3260
+ # @return [VirtualNetworkGatewayListConnectionsResult] which provide lazy
3261
+ # access to pages of the response.
3262
+ #
3263
+ def list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers:nil)
3264
+ response = list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value!
3265
+ unless response.nil?
3266
+ page = response.body
3267
+ page.next_method = Proc.new do |next_page_link|
3268
+ list_connections_next_async(next_page_link, custom_headers:custom_headers)
3269
+ end
3270
+ page
3271
+ end
3272
+ end
3273
+
3274
+ end
3275
+ end