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,219 @@
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
+ # Operations
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations 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
+ # Lists all of the available Network Rest API operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists all of the available Network Rest API operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists all of the available Network Rest API operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.Network/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::OperationListResult.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ #
109
+ # Lists all of the available Network Rest API operations.
110
+ #
111
+ # @param next_page_link [String] The NextLink from the previous successful call
112
+ # to List operation.
113
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
114
+ # will be added to the HTTP request.
115
+ #
116
+ # @return [OperationListResult] operation results.
117
+ #
118
+ def list_next(next_page_link, custom_headers:nil)
119
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
120
+ response.body unless response.nil?
121
+ end
122
+
123
+ #
124
+ # Lists all of the available Network Rest API operations.
125
+ #
126
+ # @param next_page_link [String] The NextLink from the previous successful call
127
+ # to List operation.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
132
+ #
133
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
134
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
135
+ end
136
+
137
+ #
138
+ # Lists all of the available Network Rest API operations.
139
+ #
140
+ # @param next_page_link [String] The NextLink from the previous successful call
141
+ # to List operation.
142
+ # @param [Hash{String => String}] A hash of custom headers that will be added
143
+ # to the HTTP request.
144
+ #
145
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
146
+ #
147
+ def list_next_async(next_page_link, custom_headers:nil)
148
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
149
+
150
+
151
+ request_headers = {}
152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
153
+
154
+ # Set Headers
155
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
156
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
157
+ path_template = '{nextLink}'
158
+
159
+ request_url = @base_url || @client.base_url
160
+
161
+ options = {
162
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
163
+ skip_encoding_path_params: {'nextLink' => next_page_link},
164
+ headers: request_headers.merge(custom_headers || {}),
165
+ base_url: request_url
166
+ }
167
+ promise = @client.make_request_async(:get, path_template, options)
168
+
169
+ promise = promise.then do |result|
170
+ http_response = result.response
171
+ status_code = http_response.status
172
+ response_content = http_response.body
173
+ unless status_code == 200
174
+ error_model = JSON.load(response_content)
175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
176
+ end
177
+
178
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
181
+ # Deserialize Response
182
+ if status_code == 200
183
+ begin
184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
185
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::OperationListResult.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response)
187
+ rescue Exception => e
188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
189
+ end
190
+ end
191
+
192
+ result
193
+ end
194
+
195
+ promise.execute
196
+ end
197
+
198
+ #
199
+ # Lists all of the available Network Rest API operations.
200
+ #
201
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
+ # will be added to the HTTP request.
203
+ #
204
+ # @return [OperationListResult] which provide lazy access to pages of the
205
+ # response.
206
+ #
207
+ def list_as_lazy(custom_headers:nil)
208
+ response = list_async(custom_headers:custom_headers).value!
209
+ unless response.nil?
210
+ page = response.body
211
+ page.next_method = Proc.new do |next_page_link|
212
+ list_next_async(next_page_link, custom_headers:custom_headers)
213
+ end
214
+ page
215
+ end
216
+ end
217
+
218
+ end
219
+ end
@@ -0,0 +1,1447 @@
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
+ # P2sVpnGateways
9
+ #
10
+ class P2sVpnGateways
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the P2sVpnGateways 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
+ # Retrieves the details of a virtual wan p2s vpn gateway.
26
+ #
27
+ # @param resource_group_name [String] The resource group name of the
28
+ # P2SVpnGateway.
29
+ # @param gateway_name [String] The name of the gateway.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [P2SVpnGateway] operation results.
34
+ #
35
+ def get(resource_group_name, gateway_name, custom_headers:nil)
36
+ response = get_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
37
+ response.body unless response.nil?
38
+ end
39
+
40
+ #
41
+ # Retrieves the details of a virtual wan p2s vpn gateway.
42
+ #
43
+ # @param resource_group_name [String] The resource group name of the
44
+ # P2SVpnGateway.
45
+ # @param gateway_name [String] The name of the gateway.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def get_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
52
+ get_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Retrieves the details of a virtual wan p2s vpn gateway.
57
+ #
58
+ # @param resource_group_name [String] The resource group name of the
59
+ # P2SVpnGateway.
60
+ # @param gateway_name [String] The name of the gateway.
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def get_async(resource_group_name, gateway_name, custom_headers:nil)
67
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
68
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
86
+ query_params: {'api-version' => @client.api_version},
87
+ headers: request_headers.merge(custom_headers || {}),
88
+ base_url: request_url
89
+ }
90
+ promise = @client.make_request_async(:get, path_template, options)
91
+
92
+ promise = promise.then do |result|
93
+ http_response = result.response
94
+ status_code = http_response.status
95
+ response_content = http_response.body
96
+ unless status_code == 200
97
+ error_model = JSON.load(response_content)
98
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
99
+ end
100
+
101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
103
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
104
+ # Deserialize Response
105
+ if status_code == 200
106
+ begin
107
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
108
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
109
+ result.body = @client.deserialize(result_mapper, parsed_response)
110
+ rescue Exception => e
111
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
112
+ end
113
+ end
114
+
115
+ result
116
+ end
117
+
118
+ promise.execute
119
+ end
120
+
121
+ #
122
+ # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the
123
+ # existing gateway.
124
+ #
125
+ # @param resource_group_name [String] The resource group name of the
126
+ # P2SVpnGateway.
127
+ # @param gateway_name [String] The name of the gateway.
128
+ # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to
129
+ # create or Update a virtual wan p2s vpn gateway.
130
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
131
+ # will be added to the HTTP request.
132
+ #
133
+ # @return [P2SVpnGateway] operation results.
134
+ #
135
+ def create_or_update(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
136
+ response = create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
137
+ response.body unless response.nil?
138
+ end
139
+
140
+ #
141
+ # @param resource_group_name [String] The resource group name of the
142
+ # P2SVpnGateway.
143
+ # @param gateway_name [String] The name of the gateway.
144
+ # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to
145
+ # create or Update a virtual wan p2s vpn gateway.
146
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
147
+ # will be added to the HTTP request.
148
+ #
149
+ # @return [Concurrent::Promise] promise which provides async access to http
150
+ # response.
151
+ #
152
+ def create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
153
+ # Send request
154
+ promise = begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers)
155
+
156
+ promise = promise.then do |response|
157
+ # Defining deserialization method.
158
+ deserialize_method = lambda do |parsed_response|
159
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
160
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
161
+ end
162
+
163
+ # Waiting for response.
164
+ @client.get_long_running_operation_result(response, deserialize_method)
165
+ end
166
+
167
+ promise
168
+ end
169
+
170
+ #
171
+ # Updates virtual wan p2s vpn gateway tags.
172
+ #
173
+ # @param resource_group_name [String] The resource group name of the
174
+ # P2SVpnGateway.
175
+ # @param gateway_name [String] The name of the gateway.
176
+ # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a
177
+ # virtual wan p2s vpn gateway tags.
178
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
179
+ # will be added to the HTTP request.
180
+ #
181
+ # @return [P2SVpnGateway] operation results.
182
+ #
183
+ def update_tags(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
184
+ response = update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
185
+ response.body unless response.nil?
186
+ end
187
+
188
+ #
189
+ # @param resource_group_name [String] The resource group name of the
190
+ # P2SVpnGateway.
191
+ # @param gateway_name [String] The name of the gateway.
192
+ # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a
193
+ # virtual wan p2s vpn gateway tags.
194
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
195
+ # will be added to the HTTP request.
196
+ #
197
+ # @return [Concurrent::Promise] promise which provides async access to http
198
+ # response.
199
+ #
200
+ def update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
201
+ # Send request
202
+ promise = begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers)
203
+
204
+ promise = promise.then do |response|
205
+ # Defining deserialization method.
206
+ deserialize_method = lambda do |parsed_response|
207
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
208
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
209
+ end
210
+
211
+ # Waiting for response.
212
+ @client.get_long_running_operation_result(response, deserialize_method)
213
+ end
214
+
215
+ promise
216
+ end
217
+
218
+ #
219
+ # Deletes a virtual wan p2s vpn gateway.
220
+ #
221
+ # @param resource_group_name [String] The resource group name of the
222
+ # P2SVpnGateway.
223
+ # @param gateway_name [String] The name of the gateway.
224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
225
+ # will be added to the HTTP request.
226
+ #
227
+ def delete(resource_group_name, gateway_name, custom_headers:nil)
228
+ response = delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
229
+ nil
230
+ end
231
+
232
+ #
233
+ # @param resource_group_name [String] The resource group name of the
234
+ # P2SVpnGateway.
235
+ # @param gateway_name [String] The name of the gateway.
236
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
237
+ # will be added to the HTTP request.
238
+ #
239
+ # @return [Concurrent::Promise] promise which provides async access to http
240
+ # response.
241
+ #
242
+ def delete_async(resource_group_name, gateway_name, custom_headers:nil)
243
+ # Send request
244
+ promise = begin_delete_async(resource_group_name, gateway_name, custom_headers:custom_headers)
245
+
246
+ promise = promise.then do |response|
247
+ # Defining deserialization method.
248
+ deserialize_method = lambda do |parsed_response|
249
+ end
250
+
251
+ # Waiting for response.
252
+ @client.get_long_running_operation_result(response, deserialize_method)
253
+ end
254
+
255
+ promise
256
+ end
257
+
258
+ #
259
+ # Lists all the P2SVpnGateways in a resource group.
260
+ #
261
+ # @param resource_group_name [String] The resource group name of the
262
+ # P2SVpnGateway.
263
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
264
+ # will be added to the HTTP request.
265
+ #
266
+ # @return [Array<P2SVpnGateway>] operation results.
267
+ #
268
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
269
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
270
+ first_page.get_all_items
271
+ end
272
+
273
+ #
274
+ # Lists all the P2SVpnGateways in a resource group.
275
+ #
276
+ # @param resource_group_name [String] The resource group name of the
277
+ # P2SVpnGateway.
278
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
279
+ # will be added to the HTTP request.
280
+ #
281
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
282
+ #
283
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
284
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
285
+ end
286
+
287
+ #
288
+ # Lists all the P2SVpnGateways in a resource group.
289
+ #
290
+ # @param resource_group_name [String] The resource group name of the
291
+ # P2SVpnGateway.
292
+ # @param [Hash{String => String}] A hash of custom headers that will be added
293
+ # to the HTTP request.
294
+ #
295
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
296
+ #
297
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
298
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
299
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
300
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
301
+
302
+
303
+ request_headers = {}
304
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
305
+
306
+ # Set Headers
307
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
308
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
309
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways'
310
+
311
+ request_url = @base_url || @client.base_url
312
+
313
+ options = {
314
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
315
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
316
+ query_params: {'api-version' => @client.api_version},
317
+ headers: request_headers.merge(custom_headers || {}),
318
+ base_url: request_url
319
+ }
320
+ promise = @client.make_request_async(:get, path_template, options)
321
+
322
+ promise = promise.then do |result|
323
+ http_response = result.response
324
+ status_code = http_response.status
325
+ response_content = http_response.body
326
+ unless status_code == 200
327
+ error_model = JSON.load(response_content)
328
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
329
+ end
330
+
331
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
332
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
333
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
334
+ # Deserialize Response
335
+ if status_code == 200
336
+ begin
337
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
338
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::ListP2SVpnGatewaysResult.mapper()
339
+ result.body = @client.deserialize(result_mapper, parsed_response)
340
+ rescue Exception => e
341
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
342
+ end
343
+ end
344
+
345
+ result
346
+ end
347
+
348
+ promise.execute
349
+ end
350
+
351
+ #
352
+ # Lists all the P2SVpnGateways in a subscription.
353
+ #
354
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
355
+ # will be added to the HTTP request.
356
+ #
357
+ # @return [Array<P2SVpnGateway>] operation results.
358
+ #
359
+ def list(custom_headers:nil)
360
+ first_page = list_as_lazy(custom_headers:custom_headers)
361
+ first_page.get_all_items
362
+ end
363
+
364
+ #
365
+ # Lists all the P2SVpnGateways in a subscription.
366
+ #
367
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
368
+ # will be added to the HTTP request.
369
+ #
370
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
371
+ #
372
+ def list_with_http_info(custom_headers:nil)
373
+ list_async(custom_headers:custom_headers).value!
374
+ end
375
+
376
+ #
377
+ # Lists all the P2SVpnGateways in a subscription.
378
+ #
379
+ # @param [Hash{String => String}] A hash of custom headers that will be added
380
+ # to the HTTP request.
381
+ #
382
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
383
+ #
384
+ def list_async(custom_headers:nil)
385
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
386
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
387
+
388
+
389
+ request_headers = {}
390
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
391
+
392
+ # Set Headers
393
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
394
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
395
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways'
396
+
397
+ request_url = @base_url || @client.base_url
398
+
399
+ options = {
400
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
401
+ path_params: {'subscriptionId' => @client.subscription_id},
402
+ query_params: {'api-version' => @client.api_version},
403
+ headers: request_headers.merge(custom_headers || {}),
404
+ base_url: request_url
405
+ }
406
+ promise = @client.make_request_async(:get, path_template, options)
407
+
408
+ promise = promise.then do |result|
409
+ http_response = result.response
410
+ status_code = http_response.status
411
+ response_content = http_response.body
412
+ unless status_code == 200
413
+ error_model = JSON.load(response_content)
414
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
415
+ end
416
+
417
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
418
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
419
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
420
+ # Deserialize Response
421
+ if status_code == 200
422
+ begin
423
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
424
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::ListP2SVpnGatewaysResult.mapper()
425
+ result.body = @client.deserialize(result_mapper, parsed_response)
426
+ rescue Exception => e
427
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
428
+ end
429
+ end
430
+
431
+ result
432
+ end
433
+
434
+ promise.execute
435
+ end
436
+
437
+ #
438
+ # Generates VPN profile for P2S client of the P2SVpnGateway in the specified
439
+ # resource group.
440
+ #
441
+ # @param resource_group_name [String] The name of the resource group.
442
+ # @param gateway_name [String] The name of the P2SVpnGateway.
443
+ # @param parameters [P2SVpnProfileParameters] Parameters supplied to the
444
+ # generate P2SVpnGateway VPN client package operation.
445
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
446
+ # will be added to the HTTP request.
447
+ #
448
+ # @return [VpnProfileResponse] operation results.
449
+ #
450
+ def generate_vpn_profile(resource_group_name, gateway_name, parameters, custom_headers:nil)
451
+ response = generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers:custom_headers).value!
452
+ response.body unless response.nil?
453
+ end
454
+
455
+ #
456
+ # @param resource_group_name [String] The name of the resource group.
457
+ # @param gateway_name [String] The name of the P2SVpnGateway.
458
+ # @param parameters [P2SVpnProfileParameters] Parameters supplied to the
459
+ # generate P2SVpnGateway VPN client package operation.
460
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
+ # will be added to the HTTP request.
462
+ #
463
+ # @return [Concurrent::Promise] promise which provides async access to http
464
+ # response.
465
+ #
466
+ def generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers:nil)
467
+ # Send request
468
+ promise = begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers:custom_headers)
469
+
470
+ promise = promise.then do |response|
471
+ # Defining deserialization method.
472
+ deserialize_method = lambda do |parsed_response|
473
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnProfileResponse.mapper()
474
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
475
+ end
476
+
477
+ # Waiting for response.
478
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
479
+ end
480
+
481
+ promise
482
+ end
483
+
484
+ #
485
+ # Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in
486
+ # the specified resource group.
487
+ #
488
+ # @param resource_group_name [String] The name of the resource group.
489
+ # @param gateway_name [String] The name of the P2SVpnGateway.
490
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
491
+ # will be added to the HTTP request.
492
+ #
493
+ # @return [P2SVpnGateway] operation results.
494
+ #
495
+ def get_p2s_vpn_connection_health(resource_group_name, gateway_name, custom_headers:nil)
496
+ response = get_p2s_vpn_connection_health_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
497
+ response.body unless response.nil?
498
+ end
499
+
500
+ #
501
+ # @param resource_group_name [String] The name of the resource group.
502
+ # @param gateway_name [String] The name of the P2SVpnGateway.
503
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
504
+ # will be added to the HTTP request.
505
+ #
506
+ # @return [Concurrent::Promise] promise which provides async access to http
507
+ # response.
508
+ #
509
+ def get_p2s_vpn_connection_health_async(resource_group_name, gateway_name, custom_headers:nil)
510
+ # Send request
511
+ promise = begin_get_p2s_vpn_connection_health_async(resource_group_name, gateway_name, custom_headers:custom_headers)
512
+
513
+ promise = promise.then do |response|
514
+ # Defining deserialization method.
515
+ deserialize_method = lambda do |parsed_response|
516
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
517
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
518
+ end
519
+
520
+ # Waiting for response.
521
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
522
+ end
523
+
524
+ promise
525
+ end
526
+
527
+ #
528
+ # Gets the sas url to get the connection health detail of P2S clients of the
529
+ # virtual wan P2SVpnGateway in the specified resource group.
530
+ #
531
+ # @param resource_group_name [String] The name of the resource group.
532
+ # @param gateway_name [String] The name of the P2SVpnGateway.
533
+ # @param request [P2SVpnConnectionHealthRequest] Request parameters supplied to
534
+ # get p2s vpn connections detailed health.
535
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
536
+ # will be added to the HTTP request.
537
+ #
538
+ # @return [P2SVpnConnectionHealth] operation results.
539
+ #
540
+ def get_p2s_vpn_connection_health_detailed(resource_group_name, gateway_name, request, custom_headers:nil)
541
+ response = get_p2s_vpn_connection_health_detailed_async(resource_group_name, gateway_name, request, custom_headers:custom_headers).value!
542
+ response.body unless response.nil?
543
+ end
544
+
545
+ #
546
+ # @param resource_group_name [String] The name of the resource group.
547
+ # @param gateway_name [String] The name of the P2SVpnGateway.
548
+ # @param request [P2SVpnConnectionHealthRequest] Request parameters supplied to
549
+ # get p2s vpn connections detailed health.
550
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
551
+ # will be added to the HTTP request.
552
+ #
553
+ # @return [Concurrent::Promise] promise which provides async access to http
554
+ # response.
555
+ #
556
+ def get_p2s_vpn_connection_health_detailed_async(resource_group_name, gateway_name, request, custom_headers:nil)
557
+ # Send request
558
+ promise = begin_get_p2s_vpn_connection_health_detailed_async(resource_group_name, gateway_name, request, custom_headers:custom_headers)
559
+
560
+ promise = promise.then do |response|
561
+ # Defining deserialization method.
562
+ deserialize_method = lambda do |parsed_response|
563
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnConnectionHealth.mapper()
564
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
565
+ end
566
+
567
+ # Waiting for response.
568
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
569
+ end
570
+
571
+ promise
572
+ end
573
+
574
+ #
575
+ # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the
576
+ # existing gateway.
577
+ #
578
+ # @param resource_group_name [String] The resource group name of the
579
+ # P2SVpnGateway.
580
+ # @param gateway_name [String] The name of the gateway.
581
+ # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to
582
+ # create or Update a virtual wan p2s vpn gateway.
583
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
+ # will be added to the HTTP request.
585
+ #
586
+ # @return [P2SVpnGateway] operation results.
587
+ #
588
+ def begin_create_or_update(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
589
+ response = begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
590
+ response.body unless response.nil?
591
+ end
592
+
593
+ #
594
+ # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the
595
+ # existing gateway.
596
+ #
597
+ # @param resource_group_name [String] The resource group name of the
598
+ # P2SVpnGateway.
599
+ # @param gateway_name [String] The name of the gateway.
600
+ # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to
601
+ # create or Update a virtual wan p2s vpn gateway.
602
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
603
+ # will be added to the HTTP request.
604
+ #
605
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
606
+ #
607
+ def begin_create_or_update_with_http_info(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
608
+ begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
609
+ end
610
+
611
+ #
612
+ # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the
613
+ # existing gateway.
614
+ #
615
+ # @param resource_group_name [String] The resource group name of the
616
+ # P2SVpnGateway.
617
+ # @param gateway_name [String] The name of the gateway.
618
+ # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to
619
+ # create or Update a virtual wan p2s vpn gateway.
620
+ # @param [Hash{String => String}] A hash of custom headers that will be added
621
+ # to the HTTP request.
622
+ #
623
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
624
+ #
625
+ def begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
626
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
627
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
628
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
629
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
630
+ fail ArgumentError, 'p2svpn_gateway_parameters is nil' if p2svpn_gateway_parameters.nil?
631
+
632
+
633
+ request_headers = {}
634
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
635
+
636
+ # Set Headers
637
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
638
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
639
+
640
+ # Serialize Request
641
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
642
+ request_content = @client.serialize(request_mapper, p2svpn_gateway_parameters)
643
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
644
+
645
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'
646
+
647
+ request_url = @base_url || @client.base_url
648
+
649
+ options = {
650
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
651
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
652
+ query_params: {'api-version' => @client.api_version},
653
+ body: request_content,
654
+ headers: request_headers.merge(custom_headers || {}),
655
+ base_url: request_url
656
+ }
657
+ promise = @client.make_request_async(:put, path_template, options)
658
+
659
+ promise = promise.then do |result|
660
+ http_response = result.response
661
+ status_code = http_response.status
662
+ response_content = http_response.body
663
+ unless status_code == 200 || status_code == 201
664
+ error_model = JSON.load(response_content)
665
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
666
+ end
667
+
668
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
669
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
670
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
671
+ # Deserialize Response
672
+ if status_code == 200
673
+ begin
674
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
675
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
676
+ result.body = @client.deserialize(result_mapper, parsed_response)
677
+ rescue Exception => e
678
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
679
+ end
680
+ end
681
+ # Deserialize Response
682
+ if status_code == 201
683
+ begin
684
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
685
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
686
+ result.body = @client.deserialize(result_mapper, parsed_response)
687
+ rescue Exception => e
688
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
689
+ end
690
+ end
691
+
692
+ result
693
+ end
694
+
695
+ promise.execute
696
+ end
697
+
698
+ #
699
+ # Updates virtual wan p2s vpn gateway tags.
700
+ #
701
+ # @param resource_group_name [String] The resource group name of the
702
+ # P2SVpnGateway.
703
+ # @param gateway_name [String] The name of the gateway.
704
+ # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a
705
+ # virtual wan p2s vpn gateway tags.
706
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
707
+ # will be added to the HTTP request.
708
+ #
709
+ # @return [P2SVpnGateway] operation results.
710
+ #
711
+ def begin_update_tags(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
712
+ response = begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
713
+ response.body unless response.nil?
714
+ end
715
+
716
+ #
717
+ # Updates virtual wan p2s vpn gateway tags.
718
+ #
719
+ # @param resource_group_name [String] The resource group name of the
720
+ # P2SVpnGateway.
721
+ # @param gateway_name [String] The name of the gateway.
722
+ # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a
723
+ # virtual wan p2s vpn gateway tags.
724
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
725
+ # will be added to the HTTP request.
726
+ #
727
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
728
+ #
729
+ def begin_update_tags_with_http_info(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
730
+ begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
731
+ end
732
+
733
+ #
734
+ # Updates virtual wan p2s vpn gateway tags.
735
+ #
736
+ # @param resource_group_name [String] The resource group name of the
737
+ # P2SVpnGateway.
738
+ # @param gateway_name [String] The name of the gateway.
739
+ # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a
740
+ # virtual wan p2s vpn gateway tags.
741
+ # @param [Hash{String => String}] A hash of custom headers that will be added
742
+ # to the HTTP request.
743
+ #
744
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
745
+ #
746
+ def begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
747
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
748
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
749
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
750
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
751
+ fail ArgumentError, 'p2svpn_gateway_parameters is nil' if p2svpn_gateway_parameters.nil?
752
+
753
+
754
+ request_headers = {}
755
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
756
+
757
+ # Set Headers
758
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
759
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
760
+
761
+ # Serialize Request
762
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::TagsObject.mapper()
763
+ request_content = @client.serialize(request_mapper, p2svpn_gateway_parameters)
764
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
765
+
766
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'
767
+
768
+ request_url = @base_url || @client.base_url
769
+
770
+ options = {
771
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
772
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
773
+ query_params: {'api-version' => @client.api_version},
774
+ body: request_content,
775
+ headers: request_headers.merge(custom_headers || {}),
776
+ base_url: request_url
777
+ }
778
+ promise = @client.make_request_async(:patch, path_template, options)
779
+
780
+ promise = promise.then do |result|
781
+ http_response = result.response
782
+ status_code = http_response.status
783
+ response_content = http_response.body
784
+ unless status_code == 200 || status_code == 201
785
+ error_model = JSON.load(response_content)
786
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
787
+ end
788
+
789
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
790
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
791
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
792
+ # Deserialize Response
793
+ if status_code == 200
794
+ begin
795
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
796
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
797
+ result.body = @client.deserialize(result_mapper, parsed_response)
798
+ rescue Exception => e
799
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
800
+ end
801
+ end
802
+ # Deserialize Response
803
+ if status_code == 201
804
+ begin
805
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
806
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
807
+ result.body = @client.deserialize(result_mapper, parsed_response)
808
+ rescue Exception => e
809
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
810
+ end
811
+ end
812
+
813
+ result
814
+ end
815
+
816
+ promise.execute
817
+ end
818
+
819
+ #
820
+ # Deletes a virtual wan p2s vpn gateway.
821
+ #
822
+ # @param resource_group_name [String] The resource group name of the
823
+ # P2SVpnGateway.
824
+ # @param gateway_name [String] The name of the gateway.
825
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
826
+ # will be added to the HTTP request.
827
+ #
828
+ #
829
+ def begin_delete(resource_group_name, gateway_name, custom_headers:nil)
830
+ response = begin_delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
831
+ nil
832
+ end
833
+
834
+ #
835
+ # Deletes a virtual wan p2s vpn gateway.
836
+ #
837
+ # @param resource_group_name [String] The resource group name of the
838
+ # P2SVpnGateway.
839
+ # @param gateway_name [String] The name of the gateway.
840
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
841
+ # will be added to the HTTP request.
842
+ #
843
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
844
+ #
845
+ def begin_delete_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
846
+ begin_delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
847
+ end
848
+
849
+ #
850
+ # Deletes a virtual wan p2s vpn gateway.
851
+ #
852
+ # @param resource_group_name [String] The resource group name of the
853
+ # P2SVpnGateway.
854
+ # @param gateway_name [String] The name of the gateway.
855
+ # @param [Hash{String => String}] A hash of custom headers that will be added
856
+ # to the HTTP request.
857
+ #
858
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
859
+ #
860
+ def begin_delete_async(resource_group_name, gateway_name, custom_headers:nil)
861
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
862
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
863
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
864
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
865
+
866
+
867
+ request_headers = {}
868
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
869
+
870
+ # Set Headers
871
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
872
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
873
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'
874
+
875
+ request_url = @base_url || @client.base_url
876
+
877
+ options = {
878
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
879
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
880
+ query_params: {'api-version' => @client.api_version},
881
+ headers: request_headers.merge(custom_headers || {}),
882
+ base_url: request_url
883
+ }
884
+ promise = @client.make_request_async(:delete, path_template, options)
885
+
886
+ promise = promise.then do |result|
887
+ http_response = result.response
888
+ status_code = http_response.status
889
+ response_content = http_response.body
890
+ unless status_code == 200 || status_code == 202 || status_code == 204
891
+ error_model = JSON.load(response_content)
892
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
893
+ end
894
+
895
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
896
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
897
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
898
+
899
+ result
900
+ end
901
+
902
+ promise.execute
903
+ end
904
+
905
+ #
906
+ # Generates VPN profile for P2S client of the P2SVpnGateway in the specified
907
+ # resource group.
908
+ #
909
+ # @param resource_group_name [String] The name of the resource group.
910
+ # @param gateway_name [String] The name of the P2SVpnGateway.
911
+ # @param parameters [P2SVpnProfileParameters] Parameters supplied to the
912
+ # generate P2SVpnGateway VPN client package operation.
913
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
914
+ # will be added to the HTTP request.
915
+ #
916
+ # @return [VpnProfileResponse] operation results.
917
+ #
918
+ def begin_generate_vpn_profile(resource_group_name, gateway_name, parameters, custom_headers:nil)
919
+ response = begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers:custom_headers).value!
920
+ response.body unless response.nil?
921
+ end
922
+
923
+ #
924
+ # Generates VPN profile for P2S client of the P2SVpnGateway in the specified
925
+ # resource group.
926
+ #
927
+ # @param resource_group_name [String] The name of the resource group.
928
+ # @param gateway_name [String] The name of the P2SVpnGateway.
929
+ # @param parameters [P2SVpnProfileParameters] Parameters supplied to the
930
+ # generate P2SVpnGateway VPN client package operation.
931
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
932
+ # will be added to the HTTP request.
933
+ #
934
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
935
+ #
936
+ def begin_generate_vpn_profile_with_http_info(resource_group_name, gateway_name, parameters, custom_headers:nil)
937
+ begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers:custom_headers).value!
938
+ end
939
+
940
+ #
941
+ # Generates VPN profile for P2S client of the P2SVpnGateway in the specified
942
+ # resource group.
943
+ #
944
+ # @param resource_group_name [String] The name of the resource group.
945
+ # @param gateway_name [String] The name of the P2SVpnGateway.
946
+ # @param parameters [P2SVpnProfileParameters] Parameters supplied to the
947
+ # generate P2SVpnGateway VPN client package operation.
948
+ # @param [Hash{String => String}] A hash of custom headers that will be added
949
+ # to the HTTP request.
950
+ #
951
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
952
+ #
953
+ def begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers:nil)
954
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
955
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
956
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
957
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
958
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
959
+
960
+
961
+ request_headers = {}
962
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
963
+
964
+ # Set Headers
965
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
966
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
967
+
968
+ # Serialize Request
969
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnProfileParameters.mapper()
970
+ request_content = @client.serialize(request_mapper, parameters)
971
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
972
+
973
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile'
974
+
975
+ request_url = @base_url || @client.base_url
976
+
977
+ options = {
978
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
979
+ path_params: {'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'subscriptionId' => @client.subscription_id},
980
+ query_params: {'api-version' => @client.api_version},
981
+ body: request_content,
982
+ headers: request_headers.merge(custom_headers || {}),
983
+ base_url: request_url
984
+ }
985
+ promise = @client.make_request_async(:post, path_template, options)
986
+
987
+ promise = promise.then do |result|
988
+ http_response = result.response
989
+ status_code = http_response.status
990
+ response_content = http_response.body
991
+ unless status_code == 200 || status_code == 202
992
+ error_model = JSON.load(response_content)
993
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
994
+ end
995
+
996
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
997
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
998
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
999
+ # Deserialize Response
1000
+ if status_code == 200
1001
+ begin
1002
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1003
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::VpnProfileResponse.mapper()
1004
+ result.body = @client.deserialize(result_mapper, parsed_response)
1005
+ rescue Exception => e
1006
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1007
+ end
1008
+ end
1009
+
1010
+ result
1011
+ end
1012
+
1013
+ promise.execute
1014
+ end
1015
+
1016
+ #
1017
+ # Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in
1018
+ # the specified resource group.
1019
+ #
1020
+ # @param resource_group_name [String] The name of the resource group.
1021
+ # @param gateway_name [String] The name of the P2SVpnGateway.
1022
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1023
+ # will be added to the HTTP request.
1024
+ #
1025
+ # @return [P2SVpnGateway] operation results.
1026
+ #
1027
+ def begin_get_p2s_vpn_connection_health(resource_group_name, gateway_name, custom_headers:nil)
1028
+ response = begin_get_p2s_vpn_connection_health_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
1029
+ response.body unless response.nil?
1030
+ end
1031
+
1032
+ #
1033
+ # Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in
1034
+ # the specified resource group.
1035
+ #
1036
+ # @param resource_group_name [String] The name of the resource group.
1037
+ # @param gateway_name [String] The name of the P2SVpnGateway.
1038
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1039
+ # will be added to the HTTP request.
1040
+ #
1041
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1042
+ #
1043
+ def begin_get_p2s_vpn_connection_health_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
1044
+ begin_get_p2s_vpn_connection_health_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
1045
+ end
1046
+
1047
+ #
1048
+ # Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in
1049
+ # the specified resource group.
1050
+ #
1051
+ # @param resource_group_name [String] The name of the resource group.
1052
+ # @param gateway_name [String] The name of the P2SVpnGateway.
1053
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1054
+ # to the HTTP request.
1055
+ #
1056
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1057
+ #
1058
+ def begin_get_p2s_vpn_connection_health_async(resource_group_name, gateway_name, custom_headers:nil)
1059
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1060
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
1061
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1062
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1063
+
1064
+
1065
+ request_headers = {}
1066
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1067
+
1068
+ # Set Headers
1069
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1070
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1071
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth'
1072
+
1073
+ request_url = @base_url || @client.base_url
1074
+
1075
+ options = {
1076
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1077
+ path_params: {'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'subscriptionId' => @client.subscription_id},
1078
+ query_params: {'api-version' => @client.api_version},
1079
+ headers: request_headers.merge(custom_headers || {}),
1080
+ base_url: request_url
1081
+ }
1082
+ promise = @client.make_request_async(:post, path_template, options)
1083
+
1084
+ promise = promise.then do |result|
1085
+ http_response = result.response
1086
+ status_code = http_response.status
1087
+ response_content = http_response.body
1088
+ unless status_code == 200 || status_code == 202
1089
+ error_model = JSON.load(response_content)
1090
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1091
+ end
1092
+
1093
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1094
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1095
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1096
+ # Deserialize Response
1097
+ if status_code == 200
1098
+ begin
1099
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1100
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnGateway.mapper()
1101
+ result.body = @client.deserialize(result_mapper, parsed_response)
1102
+ rescue Exception => e
1103
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1104
+ end
1105
+ end
1106
+
1107
+ result
1108
+ end
1109
+
1110
+ promise.execute
1111
+ end
1112
+
1113
+ #
1114
+ # Gets the sas url to get the connection health detail of P2S clients of the
1115
+ # virtual wan P2SVpnGateway in the specified resource group.
1116
+ #
1117
+ # @param resource_group_name [String] The name of the resource group.
1118
+ # @param gateway_name [String] The name of the P2SVpnGateway.
1119
+ # @param request [P2SVpnConnectionHealthRequest] Request parameters supplied to
1120
+ # get p2s vpn connections detailed health.
1121
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1122
+ # will be added to the HTTP request.
1123
+ #
1124
+ # @return [P2SVpnConnectionHealth] operation results.
1125
+ #
1126
+ def begin_get_p2s_vpn_connection_health_detailed(resource_group_name, gateway_name, request, custom_headers:nil)
1127
+ response = begin_get_p2s_vpn_connection_health_detailed_async(resource_group_name, gateway_name, request, custom_headers:custom_headers).value!
1128
+ response.body unless response.nil?
1129
+ end
1130
+
1131
+ #
1132
+ # Gets the sas url to get the connection health detail of P2S clients of the
1133
+ # virtual wan P2SVpnGateway in the specified resource group.
1134
+ #
1135
+ # @param resource_group_name [String] The name of the resource group.
1136
+ # @param gateway_name [String] The name of the P2SVpnGateway.
1137
+ # @param request [P2SVpnConnectionHealthRequest] Request parameters supplied to
1138
+ # get p2s vpn connections detailed health.
1139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1140
+ # will be added to the HTTP request.
1141
+ #
1142
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1143
+ #
1144
+ def begin_get_p2s_vpn_connection_health_detailed_with_http_info(resource_group_name, gateway_name, request, custom_headers:nil)
1145
+ begin_get_p2s_vpn_connection_health_detailed_async(resource_group_name, gateway_name, request, custom_headers:custom_headers).value!
1146
+ end
1147
+
1148
+ #
1149
+ # Gets the sas url to get the connection health detail of P2S clients of the
1150
+ # virtual wan P2SVpnGateway in the specified resource group.
1151
+ #
1152
+ # @param resource_group_name [String] The name of the resource group.
1153
+ # @param gateway_name [String] The name of the P2SVpnGateway.
1154
+ # @param request [P2SVpnConnectionHealthRequest] Request parameters supplied to
1155
+ # get p2s vpn connections detailed health.
1156
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1157
+ # to the HTTP request.
1158
+ #
1159
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1160
+ #
1161
+ def begin_get_p2s_vpn_connection_health_detailed_async(resource_group_name, gateway_name, request, custom_headers:nil)
1162
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1163
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1164
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
1165
+ fail ArgumentError, 'request is nil' if request.nil?
1166
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1167
+
1168
+
1169
+ request_headers = {}
1170
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1171
+
1172
+ # Set Headers
1173
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1174
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1175
+
1176
+ # Serialize Request
1177
+ request_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnConnectionHealthRequest.mapper()
1178
+ request_content = @client.serialize(request_mapper, request)
1179
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1180
+
1181
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealthDetailed'
1182
+
1183
+ request_url = @base_url || @client.base_url
1184
+
1185
+ options = {
1186
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1187
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
1188
+ query_params: {'api-version' => @client.api_version},
1189
+ body: request_content,
1190
+ headers: request_headers.merge(custom_headers || {}),
1191
+ base_url: request_url
1192
+ }
1193
+ promise = @client.make_request_async(:post, path_template, options)
1194
+
1195
+ promise = promise.then do |result|
1196
+ http_response = result.response
1197
+ status_code = http_response.status
1198
+ response_content = http_response.body
1199
+ unless status_code == 200 || status_code == 202
1200
+ error_model = JSON.load(response_content)
1201
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1202
+ end
1203
+
1204
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1205
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1206
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1207
+ # Deserialize Response
1208
+ if status_code == 200
1209
+ begin
1210
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1211
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::P2SVpnConnectionHealth.mapper()
1212
+ result.body = @client.deserialize(result_mapper, parsed_response)
1213
+ rescue Exception => e
1214
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1215
+ end
1216
+ end
1217
+
1218
+ result
1219
+ end
1220
+
1221
+ promise.execute
1222
+ end
1223
+
1224
+ #
1225
+ # Lists all the P2SVpnGateways in a resource group.
1226
+ #
1227
+ # @param next_page_link [String] The NextLink from the previous successful call
1228
+ # to List operation.
1229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1230
+ # will be added to the HTTP request.
1231
+ #
1232
+ # @return [ListP2SVpnGatewaysResult] operation results.
1233
+ #
1234
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1235
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1236
+ response.body unless response.nil?
1237
+ end
1238
+
1239
+ #
1240
+ # Lists all the P2SVpnGateways in a resource group.
1241
+ #
1242
+ # @param next_page_link [String] The NextLink from the previous successful call
1243
+ # to List operation.
1244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1245
+ # will be added to the HTTP request.
1246
+ #
1247
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1248
+ #
1249
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1250
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1251
+ end
1252
+
1253
+ #
1254
+ # Lists all the P2SVpnGateways in a resource group.
1255
+ #
1256
+ # @param next_page_link [String] The NextLink from the previous successful call
1257
+ # to List operation.
1258
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1259
+ # to the HTTP request.
1260
+ #
1261
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1262
+ #
1263
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1264
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1265
+
1266
+
1267
+ request_headers = {}
1268
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1269
+
1270
+ # Set Headers
1271
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1272
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1273
+ path_template = '{nextLink}'
1274
+
1275
+ request_url = @base_url || @client.base_url
1276
+
1277
+ options = {
1278
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1279
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1280
+ headers: request_headers.merge(custom_headers || {}),
1281
+ base_url: request_url
1282
+ }
1283
+ promise = @client.make_request_async(:get, path_template, options)
1284
+
1285
+ promise = promise.then do |result|
1286
+ http_response = result.response
1287
+ status_code = http_response.status
1288
+ response_content = http_response.body
1289
+ unless status_code == 200
1290
+ error_model = JSON.load(response_content)
1291
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1292
+ end
1293
+
1294
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1295
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1296
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1297
+ # Deserialize Response
1298
+ if status_code == 200
1299
+ begin
1300
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1301
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::ListP2SVpnGatewaysResult.mapper()
1302
+ result.body = @client.deserialize(result_mapper, parsed_response)
1303
+ rescue Exception => e
1304
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1305
+ end
1306
+ end
1307
+
1308
+ result
1309
+ end
1310
+
1311
+ promise.execute
1312
+ end
1313
+
1314
+ #
1315
+ # Lists all the P2SVpnGateways in a subscription.
1316
+ #
1317
+ # @param next_page_link [String] The NextLink from the previous successful call
1318
+ # to List operation.
1319
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1320
+ # will be added to the HTTP request.
1321
+ #
1322
+ # @return [ListP2SVpnGatewaysResult] operation results.
1323
+ #
1324
+ def list_next(next_page_link, custom_headers:nil)
1325
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1326
+ response.body unless response.nil?
1327
+ end
1328
+
1329
+ #
1330
+ # Lists all the P2SVpnGateways in a subscription.
1331
+ #
1332
+ # @param next_page_link [String] The NextLink from the previous successful call
1333
+ # to List operation.
1334
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1335
+ # will be added to the HTTP request.
1336
+ #
1337
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1338
+ #
1339
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1340
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1341
+ end
1342
+
1343
+ #
1344
+ # Lists all the P2SVpnGateways in a subscription.
1345
+ #
1346
+ # @param next_page_link [String] The NextLink from the previous successful call
1347
+ # to List operation.
1348
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1349
+ # to the HTTP request.
1350
+ #
1351
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1352
+ #
1353
+ def list_next_async(next_page_link, custom_headers:nil)
1354
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1355
+
1356
+
1357
+ request_headers = {}
1358
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1359
+
1360
+ # Set Headers
1361
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1362
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1363
+ path_template = '{nextLink}'
1364
+
1365
+ request_url = @base_url || @client.base_url
1366
+
1367
+ options = {
1368
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1369
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1370
+ headers: request_headers.merge(custom_headers || {}),
1371
+ base_url: request_url
1372
+ }
1373
+ promise = @client.make_request_async(:get, path_template, options)
1374
+
1375
+ promise = promise.then do |result|
1376
+ http_response = result.response
1377
+ status_code = http_response.status
1378
+ response_content = http_response.body
1379
+ unless status_code == 200
1380
+ error_model = JSON.load(response_content)
1381
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1382
+ end
1383
+
1384
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1385
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1386
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1387
+ # Deserialize Response
1388
+ if status_code == 200
1389
+ begin
1390
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1391
+ result_mapper = Azure::Network::Mgmt::V2019_08_01::Models::ListP2SVpnGatewaysResult.mapper()
1392
+ result.body = @client.deserialize(result_mapper, parsed_response)
1393
+ rescue Exception => e
1394
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1395
+ end
1396
+ end
1397
+
1398
+ result
1399
+ end
1400
+
1401
+ promise.execute
1402
+ end
1403
+
1404
+ #
1405
+ # Lists all the P2SVpnGateways in a resource group.
1406
+ #
1407
+ # @param resource_group_name [String] The resource group name of the
1408
+ # P2SVpnGateway.
1409
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1410
+ # will be added to the HTTP request.
1411
+ #
1412
+ # @return [ListP2SVpnGatewaysResult] which provide lazy access to pages of the
1413
+ # response.
1414
+ #
1415
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1416
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1417
+ unless response.nil?
1418
+ page = response.body
1419
+ page.next_method = Proc.new do |next_page_link|
1420
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1421
+ end
1422
+ page
1423
+ end
1424
+ end
1425
+
1426
+ #
1427
+ # Lists all the P2SVpnGateways in a subscription.
1428
+ #
1429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1430
+ # will be added to the HTTP request.
1431
+ #
1432
+ # @return [ListP2SVpnGatewaysResult] which provide lazy access to pages of the
1433
+ # response.
1434
+ #
1435
+ def list_as_lazy(custom_headers:nil)
1436
+ response = list_async(custom_headers:custom_headers).value!
1437
+ unless response.nil?
1438
+ page = response.body
1439
+ page.next_method = Proc.new do |next_page_link|
1440
+ list_next_async(next_page_link, custom_headers:custom_headers)
1441
+ end
1442
+ page
1443
+ end
1444
+ end
1445
+
1446
+ end
1447
+ end