azure_mgmt_network 0.18.9 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (621) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
  4. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  6. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  7. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  8. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  9. data/lib/2017-03-30/generated/azure_mgmt_network/models/subnet.rb +22 -0
  10. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  11. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  12. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  13. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  14. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  15. data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  16. data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  17. data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  18. data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  19. data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  20. data/lib/2018-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  21. data/lib/2018-11-01/generated/azure_mgmt_network.rb +138 -142
  22. data/lib/2018-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -5
  23. data/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  24. data/lib/2019-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  25. data/lib/2019-04-01/generated/azure_mgmt_network.rb +143 -140
  26. data/lib/2019-04-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +213 -0
  27. data/lib/2019-04-01/generated/azure_mgmt_network/models/auto_approved_private_link_service.rb +46 -0
  28. data/lib/2019-04-01/generated/azure_mgmt_network/models/auto_approved_private_link_services_result.rb +101 -0
  29. data/lib/2019-04-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +14 -3
  30. data/lib/2019-04-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +0 -1
  31. data/lib/2019-04-01/generated/azure_mgmt_network/models/check_private_link_service_visibility_request.rb +46 -0
  32. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service.rb +3 -3
  33. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_visibility.rb +46 -0
  34. data/lib/2019-04-01/generated/azure_mgmt_network/models/subnet.rb +22 -0
  35. data/lib/2019-04-01/generated/azure_mgmt_network/network_management_client.rb +5 -10
  36. data/lib/2019-04-01/generated/azure_mgmt_network/private_link_services.rb +645 -1
  37. data/lib/2019-06-01/generated/azure_mgmt_network.rb +605 -0
  38. data/lib/2019-06-01/generated/azure_mgmt_network/application_gateways.rb +2276 -0
  39. data/lib/2019-06-01/generated/azure_mgmt_network/application_security_groups.rb +973 -0
  40. data/lib/2019-06-01/generated/azure_mgmt_network/available_delegations.rb +233 -0
  41. data/lib/2019-06-01/generated/azure_mgmt_network/available_endpoint_services.rb +226 -0
  42. data/lib/2019-06-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +446 -0
  43. data/lib/{2019-04-01/generated/azure_mgmt_network/available_resource_group_private_endpoint_types.rb → 2019-06-01/generated/azure_mgmt_network/available_resource_group_delegations.rb} +25 -25
  44. data/lib/2019-06-01/generated/azure_mgmt_network/azure_firewall_fqdn_tags.rb +221 -0
  45. data/lib/2019-06-01/generated/azure_mgmt_network/azure_firewalls.rb +909 -0
  46. data/lib/2019-06-01/generated/azure_mgmt_network/bastion_hosts.rb +801 -0
  47. data/lib/{2018-11-01 → 2019-06-01}/generated/azure_mgmt_network/bgp_service_communities.rb +3 -3
  48. data/lib/2019-06-01/generated/azure_mgmt_network/connection_monitors.rb +987 -0
  49. data/lib/2019-06-01/generated/azure_mgmt_network/ddos_custom_policies.rb +558 -0
  50. data/lib/2019-06-01/generated/azure_mgmt_network/ddos_protection_plans.rb +973 -0
  51. data/lib/2019-06-01/generated/azure_mgmt_network/default_security_rules.rb +339 -0
  52. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +631 -0
  53. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_circuit_connections.rb +683 -0
  54. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +626 -0
  55. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_circuits.rb +1603 -0
  56. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_connections.rb +534 -0
  57. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb +648 -0
  58. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_cross_connections.rb +1308 -0
  59. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_gateways.rb +601 -0
  60. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_links.rb +343 -0
  61. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_ports.rb +970 -0
  62. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_ports_locations.rb +331 -0
  63. data/lib/2019-06-01/generated/azure_mgmt_network/express_route_service_providers.rb +221 -0
  64. data/lib/2019-06-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +336 -0
  65. data/lib/2019-06-01/generated/azure_mgmt_network/inbound_nat_rules.rb +629 -0
  66. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +332 -0
  67. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +332 -0
  68. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +329 -0
  69. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +231 -0
  70. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +329 -0
  71. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancer_probes.rb +329 -0
  72. data/lib/2019-06-01/generated/azure_mgmt_network/load_balancers.rb +958 -0
  73. data/lib/2019-06-01/generated/azure_mgmt_network/local_network_gateways.rb +781 -0
  74. data/lib/2019-06-01/generated/azure_mgmt_network/models/access.rb +16 -0
  75. data/lib/2019-06-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  76. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway.rb +593 -0
  77. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +102 -0
  78. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_autoscale_configuration.rb +65 -0
  79. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  80. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  81. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  82. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  83. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +131 -0
  84. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +56 -0
  85. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  86. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb +61 -0
  87. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  88. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +83 -0
  89. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  90. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +262 -0
  91. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  92. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  93. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
  94. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
  95. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  96. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
  97. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  98. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  99. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  100. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +141 -0
  101. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +139 -0
  102. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +101 -0
  103. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb +57 -0
  104. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +184 -0
  105. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +104 -0
  106. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  107. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb +132 -0
  108. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  109. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +161 -0
  110. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +219 -0
  111. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  112. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  113. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +199 -0
  114. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  115. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +179 -0
  116. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  117. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule.rb +93 -0
  118. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_action_set.rb +77 -0
  119. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_condition.rb +82 -0
  120. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_set.rb +102 -0
  121. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  122. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +21 -0
  123. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +138 -0
  124. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +42 -0
  125. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  126. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  127. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  128. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  129. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  130. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +18 -0
  131. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_trusted_root_certificate.rb +113 -0
  132. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +164 -0
  133. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +180 -0
  134. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  135. data/lib/2019-06-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  136. data/lib/2019-06-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  137. data/lib/2019-06-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  138. data/lib/2019-06-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  139. data/lib/2019-06-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  140. data/lib/2019-06-01/generated/azure_mgmt_network/models/auto_approved_private_link_service.rb +46 -0
  141. data/lib/2019-06-01/generated/azure_mgmt_network/models/auto_approved_private_link_services_result.rb +101 -0
  142. data/lib/2019-06-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  143. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_delegation.rb +101 -0
  144. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_delegations_result.rb +99 -0
  145. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +80 -0
  146. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_private_endpoint_types_result.rb +100 -0
  147. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  148. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  149. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  150. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  151. data/lib/2019-06-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  152. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  153. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall.rb +226 -0
  154. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_application_rule.rb +135 -0
  155. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_collection.rb +128 -0
  156. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol.rb +63 -0
  157. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol_type.rb +16 -0
  158. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag.rb +122 -0
  159. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb +99 -0
  160. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_ipconfiguration.rb +119 -0
  161. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb +99 -0
  162. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction.rb +47 -0
  163. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction_type.rb +16 -0
  164. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb +157 -0
  165. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule_collection.rb +129 -0
  166. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_network_rule.rb +134 -0
  167. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_collection.rb +128 -0
  168. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +18 -0
  169. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_rcaction.rb +47 -0
  170. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb +16 -0
  171. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_firewall_threat_intel_mode.rb +17 -0
  172. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +81 -0
  173. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  174. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  175. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  176. data/lib/2019-06-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +108 -0
  177. data/lib/2019-06-01/generated/azure_mgmt_network/models/backend_address_pool.rb +172 -0
  178. data/lib/2019-06-01/generated/azure_mgmt_network/models/bastion_host.rb +143 -0
  179. data/lib/2019-06-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +128 -0
  180. data/lib/2019-06-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb +98 -0
  181. data/lib/2019-06-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  182. data/lib/2019-06-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  183. data/lib/2019-06-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  184. data/lib/{2018-11-01 → 2019-06-01}/generated/azure_mgmt_network/models/bgp_service_community.rb +1 -1
  185. data/lib/{2018-11-01 → 2019-06-01}/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +1 -1
  186. data/lib/2019-06-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  187. data/lib/{2018-11-01 → 2019-06-01}/generated/azure_mgmt_network/models/bgpcommunity.rb +1 -1
  188. data/lib/2019-06-01/generated/azure_mgmt_network/models/check_private_link_service_visibility_request.rb +46 -0
  189. data/lib/2019-06-01/generated/azure_mgmt_network/models/circuit_connection_status.rb +17 -0
  190. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor.rb +116 -0
  191. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +70 -0
  192. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  193. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +86 -0
  194. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +68 -0
  195. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +202 -0
  196. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +58 -0
  197. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_monitor_source_status.rb +17 -0
  198. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  199. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_shared_key.rb +54 -0
  200. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  201. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +158 -0
  202. data/lib/2019-06-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  203. data/lib/2019-06-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  204. data/lib/2019-06-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  205. data/lib/2019-06-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  206. data/lib/2019-06-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  207. data/lib/2019-06-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +84 -0
  208. data/lib/2019-06-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  209. data/lib/2019-06-01/generated/azure_mgmt_network/models/container.rb +43 -0
  210. data/lib/2019-06-01/generated/azure_mgmt_network/models/container_network_interface.rb +139 -0
  211. data/lib/2019-06-01/generated/azure_mgmt_network/models/container_network_interface_configuration.rb +133 -0
  212. data/lib/2019-06-01/generated/azure_mgmt_network/models/container_network_interface_ip_configuration.rb +83 -0
  213. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_custom_policy.rb +170 -0
  214. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_custom_policy_protocol.rb +17 -0
  215. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_custom_policy_trigger_sensitivity_override.rb +18 -0
  216. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_protection_plan.rb +165 -0
  217. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_protection_plan_list_result.rb +99 -0
  218. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_settings.rb +61 -0
  219. data/lib/2019-06-01/generated/azure_mgmt_network/models/ddos_settings_protection_coverage.rb +16 -0
  220. data/lib/2019-06-01/generated/azure_mgmt_network/models/delegation.rb +111 -0
  221. data/lib/2019-06-01/generated/azure_mgmt_network/models/device_properties.rb +68 -0
  222. data/lib/2019-06-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  223. data/lib/2019-06-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  224. data/lib/2019-06-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  225. data/lib/2019-06-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  226. data/lib/2019-06-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  227. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  228. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  229. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  230. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +260 -0
  231. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_route.rb +135 -0
  232. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  233. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  234. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  235. data/lib/2019-06-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  236. data/lib/2019-06-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  237. data/lib/2019-06-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  238. data/lib/2019-06-01/generated/azure_mgmt_network/models/error.rb +99 -0
  239. data/lib/2019-06-01/generated/azure_mgmt_network/models/error_details.rb +68 -0
  240. data/lib/2019-06-01/generated/azure_mgmt_network/models/error_response.rb +47 -0
  241. data/lib/2019-06-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +92 -0
  242. data/lib/2019-06-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  243. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit.rb +294 -0
  244. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  245. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +115 -0
  246. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_connection.rb +156 -0
  247. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_connection_list_result.rb +101 -0
  248. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  249. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +338 -0
  250. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  251. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +121 -0
  252. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_peering_id.rb +46 -0
  253. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  254. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  255. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_reference.rb +46 -0
  256. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +91 -0
  257. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  258. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  259. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +70 -0
  260. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  261. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +18 -0
  262. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  263. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +67 -0
  264. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  265. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  266. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_connection.rb +101 -0
  267. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_connection_id.rb +47 -0
  268. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_connection_list.rb +56 -0
  269. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_cross_connection.rb +228 -0
  270. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_cross_connection_list_result.rb +100 -0
  271. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering.rb +250 -0
  272. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb +102 -0
  273. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_cross_connection_routes_table_summary.rb +83 -0
  274. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_cross_connections_routes_table_summary_list_result.rb +70 -0
  275. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_gateway.rb +158 -0
  276. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb +55 -0
  277. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration.rb +49 -0
  278. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration_bounds.rb +60 -0
  279. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_link.rb +157 -0
  280. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_link_admin_state.rb +16 -0
  281. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_link_connector_type.rb +16 -0
  282. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb +99 -0
  283. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_peering_state.rb +16 -0
  284. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_peering_type.rb +17 -0
  285. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_port.rb +254 -0
  286. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb +98 -0
  287. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_ports_encapsulation.rb +16 -0
  288. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_ports_location.rb +146 -0
  289. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb +61 -0
  290. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb +99 -0
  291. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +136 -0
  292. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  293. data/lib/2019-06-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  294. data/lib/2019-06-01/generated/azure_mgmt_network/models/flow_log_format_parameters.rb +60 -0
  295. data/lib/2019-06-01/generated/azure_mgmt_network/models/flow_log_format_type.rb +15 -0
  296. data/lib/2019-06-01/generated/azure_mgmt_network/models/flow_log_information.rb +110 -0
  297. data/lib/2019-06-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +48 -0
  298. data/lib/2019-06-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +272 -0
  299. data/lib/2019-06-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  300. data/lib/2019-06-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  301. data/lib/2019-06-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb +67 -0
  302. data/lib/2019-06-01/generated/azure_mgmt_network/models/httpconfiguration.rb +85 -0
  303. data/lib/2019-06-01/generated/azure_mgmt_network/models/httpheader.rb +57 -0
  304. data/lib/2019-06-01/generated/azure_mgmt_network/models/httpmethod.rb +15 -0
  305. data/lib/2019-06-01/generated/azure_mgmt_network/models/hub_virtual_network_connection.rb +125 -0
  306. data/lib/2019-06-01/generated/azure_mgmt_network/models/hub_virtual_network_connection_status.rb +18 -0
  307. data/lib/2019-06-01/generated/azure_mgmt_network/models/ike_encryption.rb +21 -0
  308. data/lib/2019-06-01/generated/azure_mgmt_network/models/ike_integrity.rb +20 -0
  309. data/lib/2019-06-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +196 -0
  310. data/lib/2019-06-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +199 -0
  311. data/lib/2019-06-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  312. data/lib/2019-06-01/generated/azure_mgmt_network/models/ip_flow_protocol.rb +16 -0
  313. data/lib/2019-06-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  314. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  315. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  316. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipconfiguration.rb +126 -0
  317. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipconfiguration_profile.rb +104 -0
  318. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  319. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  320. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipsec_policy.rb +137 -0
  321. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +94 -0
  322. data/lib/2019-06-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  323. data/lib/2019-06-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  324. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_hub_virtual_network_connections_result.rb +102 -0
  325. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_p2svpn_gateways_result.rb +100 -0
  326. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_p2svpn_server_configurations_result.rb +102 -0
  327. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb +100 -0
  328. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_virtual_wans_result.rb +100 -0
  329. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_vpn_connections_result.rb +101 -0
  330. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_vpn_gateways_result.rb +100 -0
  331. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_vpn_site_link_connections_result.rb +101 -0
  332. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_vpn_site_links_result.rb +100 -0
  333. data/lib/2019-06-01/generated/azure_mgmt_network/models/list_vpn_sites_result.rb +100 -0
  334. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer.rb +290 -0
  335. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  336. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  337. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  338. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  339. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
  340. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_protocol.rb +17 -0
  341. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  342. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  343. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  344. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +235 -0
  345. data/lib/2019-06-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  346. data/lib/2019-06-01/generated/azure_mgmt_network/models/local_network_gateway.rb +157 -0
  347. data/lib/2019-06-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  348. data/lib/2019-06-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  349. data/lib/2019-06-01/generated/azure_mgmt_network/models/managed_service_identity.rb +102 -0
  350. data/lib/2019-06-01/generated/azure_mgmt_network/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  351. data/lib/2019-06-01/generated/azure_mgmt_network/models/match_condition.rb +118 -0
  352. data/lib/2019-06-01/generated/azure_mgmt_network/models/match_variable.rb +60 -0
  353. data/lib/2019-06-01/generated/azure_mgmt_network/models/matched_rule.rb +58 -0
  354. data/lib/2019-06-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  355. data/lib/2019-06-01/generated/azure_mgmt_network/models/nat_gateway.rb +228 -0
  356. data/lib/2019-06-01/generated/azure_mgmt_network/models/nat_gateway_list_result.rb +99 -0
  357. data/lib/2019-06-01/generated/azure_mgmt_network/models/nat_gateway_sku.rb +47 -0
  358. data/lib/2019-06-01/generated/azure_mgmt_network/models/nat_gateway_sku_name.rb +15 -0
  359. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +81 -0
  360. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_profile.rb +95 -0
  361. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_response.rb +57 -0
  362. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +61 -0
  363. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_intent_policy.rb +97 -0
  364. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb +60 -0
  365. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface.rb +284 -0
  366. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  367. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +117 -0
  368. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +258 -0
  369. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  370. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  371. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  372. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +106 -0
  373. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_interface_tap_configuration_list_result.rb +102 -0
  374. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  375. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_profile.rb +164 -0
  376. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_profile_list_result.rb +99 -0
  377. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_security_group.rb +206 -0
  378. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  379. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_security_group_result.rb +70 -0
  380. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_security_rules_evaluation_result.rb +101 -0
  381. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_watcher.rb +109 -0
  382. data/lib/2019-06-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  383. data/lib/2019-06-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  384. data/lib/2019-06-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  385. data/lib/2019-06-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  386. data/lib/2019-06-01/generated/azure_mgmt_network/models/office_traffic_category.rb +18 -0
  387. data/lib/2019-06-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  388. data/lib/2019-06-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  389. data/lib/2019-06-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  390. data/lib/2019-06-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  391. data/lib/2019-06-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  392. data/lib/2019-06-01/generated/azure_mgmt_network/models/outbound_rule.rb +174 -0
  393. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb +187 -0
  394. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_profile_parameters.rb +47 -0
  395. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_server_config_radius_client_root_certificate.rb +93 -0
  396. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_server_config_radius_server_root_certificate.rb +93 -0
  397. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_server_config_vpn_client_revoked_certificate.rb +93 -0
  398. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_server_config_vpn_client_root_certificate.rb +93 -0
  399. data/lib/2019-06-01/generated/azure_mgmt_network/models/p2svpn_server_configuration.rb +277 -0
  400. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture.rb +119 -0
  401. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  402. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  403. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +119 -0
  404. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  405. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture_result.rb +170 -0
  406. data/lib/2019-06-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  407. data/lib/2019-06-01/generated/azure_mgmt_network/models/patch_route_filter.rb +176 -0
  408. data/lib/2019-06-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +128 -0
  409. data/lib/2019-06-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  410. data/lib/2019-06-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  411. data/lib/2019-06-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  412. data/lib/2019-06-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection.rb +170 -0
  413. data/lib/2019-06-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection_list_result.rb +104 -0
  414. data/lib/2019-06-01/generated/azure_mgmt_network/models/pfs_group.rb +23 -0
  415. data/lib/2019-06-01/generated/azure_mgmt_network/models/policy_settings.rb +61 -0
  416. data/lib/2019-06-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb +68 -0
  417. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_endpoint.rb +189 -0
  418. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_endpoint_connection.rb +81 -0
  419. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_endpoint_list_result.rb +100 -0
  420. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service.rb +252 -0
  421. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_connection.rb +111 -0
  422. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  423. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_ip_configuration.rb +118 -0
  424. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_list_result.rb +100 -0
  425. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_properties_auto_approval.rb +51 -0
  426. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_properties_visibility.rb +51 -0
  427. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_visibility.rb +46 -0
  428. data/lib/2019-06-01/generated/azure_mgmt_network/models/probe.rb +183 -0
  429. data/lib/2019-06-01/generated/azure_mgmt_network/models/probe_protocol.rb +17 -0
  430. data/lib/2019-06-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  431. data/lib/2019-06-01/generated/azure_mgmt_network/models/protocol.rb +18 -0
  432. data/lib/2019-06-01/generated/azure_mgmt_network/models/protocol_configuration.rb +48 -0
  433. data/lib/2019-06-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb +87 -0
  434. data/lib/2019-06-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  435. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipaddress.rb +273 -0
  436. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  437. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  438. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  439. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  440. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipprefix.rb +229 -0
  441. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipprefix_list_result.rb +99 -0
  442. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipprefix_sku.rb +47 -0
  443. data/lib/2019-06-01/generated/azure_mgmt_network/models/public_ipprefix_sku_name.rb +15 -0
  444. data/lib/2019-06-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  445. data/lib/2019-06-01/generated/azure_mgmt_network/models/referenced_public_ip_address.rb +46 -0
  446. data/lib/2019-06-01/generated/azure_mgmt_network/models/resource.rb +109 -0
  447. data/lib/2019-06-01/generated/azure_mgmt_network/models/resource_identity_type.rb +18 -0
  448. data/lib/2019-06-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +115 -0
  449. data/lib/2019-06-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +68 -0
  450. data/lib/2019-06-01/generated/azure_mgmt_network/models/resource_set.rb +54 -0
  451. data/lib/2019-06-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  452. data/lib/2019-06-01/generated/azure_mgmt_network/models/route.rb +116 -0
  453. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_filter.rb +174 -0
  454. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  455. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_filter_rule.rb +138 -0
  456. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  457. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  458. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  459. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_table.rb +163 -0
  460. data/lib/2019-06-01/generated/azure_mgmt_network/models/route_table_list_result.rb +99 -0
  461. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +59 -0
  462. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  463. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  464. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_rule.rb +312 -0
  465. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  466. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_rule_associations.rb +102 -0
  467. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  468. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  469. data/lib/2019-06-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +19 -0
  470. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_association_link.rb +144 -0
  471. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +68 -0
  472. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_endpoint_policy.rb +165 -0
  473. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition.rb +121 -0
  474. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition_list_result.rb +103 -0
  475. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_endpoint_policy_list_result.rb +100 -0
  476. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +76 -0
  477. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  478. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_tag_information.rb +73 -0
  479. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_tag_information_properties_format.rb +91 -0
  480. data/lib/2019-06-01/generated/azure_mgmt_network/models/service_tags_list_result.rb +117 -0
  481. data/lib/2019-06-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  482. data/lib/2019-06-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  483. data/lib/2019-06-01/generated/azure_mgmt_network/models/subnet.rb +353 -0
  484. data/lib/2019-06-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  485. data/lib/2019-06-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  486. data/lib/2019-06-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  487. data/lib/2019-06-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  488. data/lib/2019-06-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  489. data/lib/2019-06-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  490. data/lib/2019-06-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  491. data/lib/2019-06-01/generated/azure_mgmt_network/models/traffic_analytics_configuration_properties.rb +91 -0
  492. data/lib/2019-06-01/generated/azure_mgmt_network/models/traffic_analytics_properties.rb +48 -0
  493. data/lib/2019-06-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  494. data/lib/2019-06-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  495. data/lib/2019-06-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  496. data/lib/2019-06-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  497. data/lib/2019-06-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  498. data/lib/2019-06-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  499. data/lib/2019-06-01/generated/azure_mgmt_network/models/tunnel_connection_status.rb +18 -0
  500. data/lib/2019-06-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  501. data/lib/2019-06-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  502. data/lib/2019-06-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  503. data/lib/2019-06-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
  504. data/lib/2019-06-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  505. data/lib/2019-06-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  506. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_hub.rb +205 -0
  507. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_hub_id.rb +48 -0
  508. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_hub_route.rb +65 -0
  509. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb +55 -0
  510. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network.rb +228 -0
  511. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  512. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +258 -0
  513. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +346 -0
  514. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +347 -0
  515. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  516. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_protocol.rb +16 -0
  517. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  518. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  519. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +116 -0
  520. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  521. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  522. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +74 -0
  523. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +27 -0
  524. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +27 -0
  525. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  526. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  527. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  528. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +171 -0
  529. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  530. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  531. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_tap.rb +183 -0
  532. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_tap_list_result.rb +99 -0
  533. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  534. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  535. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_wan.rb +229 -0
  536. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_wan_security_provider.rb +69 -0
  537. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_wan_security_provider_type.rb +16 -0
  538. data/lib/2019-06-01/generated/azure_mgmt_network/models/virtual_wan_security_providers.rb +56 -0
  539. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +191 -0
  540. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_connection_health.rb +93 -0
  541. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail.rb +179 -0
  542. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail_list_result.rb +57 -0
  543. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_ipsec_parameters.rb +137 -0
  544. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +94 -0
  545. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +17 -0
  546. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +92 -0
  547. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +92 -0
  548. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_connection.rb +270 -0
  549. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_connection_status.rb +18 -0
  550. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  551. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_gateway.rb +166 -0
  552. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_gateway_tunneling_protocol.rb +16 -0
  553. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_link_bgp_settings.rb +58 -0
  554. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_link_provider_properties.rb +57 -0
  555. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_profile_response.rb +46 -0
  556. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_site.rb +212 -0
  557. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_site_id.rb +48 -0
  558. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_site_link.rb +127 -0
  559. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_site_link_connection.rb +250 -0
  560. data/lib/2019-06-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  561. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_action.rb +17 -0
  562. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb +119 -0
  563. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_enabled_state.rb +16 -0
  564. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_match_variable.rb +22 -0
  565. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_mode.rb +16 -0
  566. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_operator.rb +24 -0
  567. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_policy.rb +179 -0
  568. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +105 -0
  569. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_policy_resource_state.rb +20 -0
  570. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_rule_type.rb +16 -0
  571. data/lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_transform.rb +20 -0
  572. data/lib/2019-06-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  573. data/lib/2019-06-01/generated/azure_mgmt_network/nat_gateways.rb +922 -0
  574. data/lib/2019-06-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +329 -0
  575. data/lib/2019-06-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +231 -0
  576. data/lib/2019-06-01/generated/azure_mgmt_network/network_interface_tap_configurations.rb +626 -0
  577. data/lib/2019-06-01/generated/azure_mgmt_network/network_interfaces.rb +1230 -0
  578. data/lib/2019-06-01/generated/azure_mgmt_network/network_management_client.rb +663 -0
  579. data/lib/2019-06-01/generated/azure_mgmt_network/network_profiles.rb +732 -0
  580. data/lib/2019-06-01/generated/azure_mgmt_network/network_security_groups.rb +976 -0
  581. data/lib/2019-06-01/generated/azure_mgmt_network/network_watchers.rb +2634 -0
  582. data/lib/2019-06-01/generated/azure_mgmt_network/operations.rb +219 -0
  583. data/lib/2019-06-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +1289 -0
  584. data/lib/2019-06-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb +660 -0
  585. data/lib/2019-06-01/generated/azure_mgmt_network/packet_captures.rb +796 -0
  586. data/lib/2019-06-01/generated/azure_mgmt_network/peer_express_route_circuit_connections.rb +351 -0
  587. data/lib/2019-06-01/generated/azure_mgmt_network/private_endpoints.rb +804 -0
  588. data/lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb +1691 -0
  589. data/lib/2019-06-01/generated/azure_mgmt_network/public_ipaddresses.rb +958 -0
  590. data/lib/2019-06-01/generated/azure_mgmt_network/public_ipprefixes.rb +958 -0
  591. data/lib/2019-06-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  592. data/lib/2019-06-01/generated/azure_mgmt_network/route_filter_rules.rb +786 -0
  593. data/lib/2019-06-01/generated/azure_mgmt_network/route_filters.rb +961 -0
  594. data/lib/2019-06-01/generated/azure_mgmt_network/route_tables.rb +958 -0
  595. data/lib/2019-06-01/generated/azure_mgmt_network/routes.rb +625 -0
  596. data/lib/2019-06-01/generated/azure_mgmt_network/security_rules.rb +643 -0
  597. data/lib/2019-06-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  598. data/lib/2019-06-01/generated/azure_mgmt_network/service_endpoint_policies.rb +976 -0
  599. data/lib/2019-06-01/generated/azure_mgmt_network/service_endpoint_policy_definitions.rb +668 -0
  600. data/lib/2019-06-01/generated/azure_mgmt_network/service_tags.rb +115 -0
  601. data/lib/2019-06-01/generated/azure_mgmt_network/subnets.rb +779 -0
  602. data/lib/2019-06-01/generated/azure_mgmt_network/usages.rb +227 -0
  603. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_hubs.rb +991 -0
  604. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1249 -0
  605. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb +2922 -0
  606. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_network_peerings.rb +634 -0
  607. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_network_taps.rb +955 -0
  608. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_networks.rb +1262 -0
  609. data/lib/2019-06-01/generated/azure_mgmt_network/virtual_wans.rb +996 -0
  610. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_connections.rb +647 -0
  611. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_gateways.rb +1132 -0
  612. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_link_connections.rb +247 -0
  613. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_site_link_connections.rb +130 -0
  614. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_site_links.rb +332 -0
  615. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_sites.rb +974 -0
  616. data/lib/2019-06-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +173 -0
  617. data/lib/2019-06-01/generated/azure_mgmt_network/web_application_firewall_policies.rb +758 -0
  618. data/lib/azure_mgmt_network.rb +18 -17
  619. data/lib/profiles/latest/modules/network_profile_module.rb +1267 -1223
  620. data/lib/version.rb +1 -1
  621. metadata +588 -8
@@ -0,0 +1,1132 @@
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_06_01
7
+ #
8
+ # VpnGateways
9
+ #
10
+ class VpnGateways
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the VpnGateways 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 vpn gateway.
26
+ #
27
+ # @param resource_group_name [String] The resource group name of the
28
+ # VpnGateway.
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 [VpnGateway] 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 vpn gateway.
42
+ #
43
+ # @param resource_group_name [String] The resource group name of the
44
+ # VpnGateway.
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 vpn gateway.
57
+ #
58
+ # @param resource_group_name [String] The resource group name of the
59
+ # VpnGateway.
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/vpnGateways/{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 MsRest::HttpOperationError.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_06_01::Models::VpnGateway.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 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
+ # VpnGateway.
127
+ # @param gateway_name [String] The name of the gateway.
128
+ # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or
129
+ # Update a virtual wan 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 [VpnGateway] operation results.
134
+ #
135
+ def create_or_update(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
136
+ response = create_or_update_async(resource_group_name, gateway_name, vpn_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
+ # VpnGateway.
143
+ # @param gateway_name [String] The name of the gateway.
144
+ # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or
145
+ # Update a virtual wan 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, vpn_gateway_parameters, custom_headers:nil)
153
+ # Send request
154
+ promise = begin_create_or_update_async(resource_group_name, gateway_name, vpn_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_06_01::Models::VpnGateway.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 vpn gateway tags.
172
+ #
173
+ # @param resource_group_name [String] The resource group name of the
174
+ # VpnGateway.
175
+ # @param gateway_name [String] The name of the gateway.
176
+ # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a
177
+ # virtual wan 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 [VpnGateway] operation results.
182
+ #
183
+ def update_tags(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
184
+ response = update_tags_async(resource_group_name, gateway_name, vpn_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
+ # VpnGateway.
191
+ # @param gateway_name [String] The name of the gateway.
192
+ # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a
193
+ # virtual wan 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, vpn_gateway_parameters, custom_headers:nil)
201
+ # Send request
202
+ promise = begin_update_tags_async(resource_group_name, gateway_name, vpn_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_06_01::Models::VpnGateway.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 vpn gateway.
220
+ #
221
+ # @param resource_group_name [String] The resource group name of the
222
+ # VpnGateway.
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
+ # VpnGateway.
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
+ # Resets the primary of the vpn gateway in the specified resource group.
260
+ #
261
+ # @param resource_group_name [String] The resource group name of the
262
+ # VpnGateway.
263
+ # @param gateway_name [String] The name of the gateway.
264
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
265
+ # will be added to the HTTP request.
266
+ #
267
+ # @return [VpnGateway] operation results.
268
+ #
269
+ def reset(resource_group_name, gateway_name, custom_headers:nil)
270
+ response = reset_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
271
+ response.body unless response.nil?
272
+ end
273
+
274
+ #
275
+ # @param resource_group_name [String] The resource group name of the
276
+ # VpnGateway.
277
+ # @param gateway_name [String] The name of the gateway.
278
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
279
+ # will be added to the HTTP request.
280
+ #
281
+ # @return [Concurrent::Promise] promise which provides async access to http
282
+ # response.
283
+ #
284
+ def reset_async(resource_group_name, gateway_name, custom_headers:nil)
285
+ # Send request
286
+ promise = begin_reset_async(resource_group_name, gateway_name, custom_headers:custom_headers)
287
+
288
+ promise = promise.then do |response|
289
+ # Defining deserialization method.
290
+ deserialize_method = lambda do |parsed_response|
291
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
292
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
293
+ end
294
+
295
+ # Waiting for response.
296
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
297
+ end
298
+
299
+ promise
300
+ end
301
+
302
+ #
303
+ # Lists all the VpnGateways in a resource group.
304
+ #
305
+ # @param resource_group_name [String] The resource group name of the
306
+ # VpnGateway.
307
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
308
+ # will be added to the HTTP request.
309
+ #
310
+ # @return [Array<VpnGateway>] operation results.
311
+ #
312
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
313
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
314
+ first_page.get_all_items
315
+ end
316
+
317
+ #
318
+ # Lists all the VpnGateways in a resource group.
319
+ #
320
+ # @param resource_group_name [String] The resource group name of the
321
+ # VpnGateway.
322
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
+ # will be added to the HTTP request.
324
+ #
325
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
326
+ #
327
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
328
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
329
+ end
330
+
331
+ #
332
+ # Lists all the VpnGateways in a resource group.
333
+ #
334
+ # @param resource_group_name [String] The resource group name of the
335
+ # VpnGateway.
336
+ # @param [Hash{String => String}] A hash of custom headers that will be added
337
+ # to the HTTP request.
338
+ #
339
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
340
+ #
341
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
342
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
343
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
344
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
345
+
346
+
347
+ request_headers = {}
348
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
349
+
350
+ # Set Headers
351
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
352
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
353
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways'
354
+
355
+ request_url = @base_url || @client.base_url
356
+
357
+ options = {
358
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
359
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
360
+ query_params: {'api-version' => @client.api_version},
361
+ headers: request_headers.merge(custom_headers || {}),
362
+ base_url: request_url
363
+ }
364
+ promise = @client.make_request_async(:get, path_template, options)
365
+
366
+ promise = promise.then do |result|
367
+ http_response = result.response
368
+ status_code = http_response.status
369
+ response_content = http_response.body
370
+ unless status_code == 200
371
+ error_model = JSON.load(response_content)
372
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
373
+ end
374
+
375
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
376
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
377
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
378
+ # Deserialize Response
379
+ if status_code == 200
380
+ begin
381
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
382
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::ListVpnGatewaysResult.mapper()
383
+ result.body = @client.deserialize(result_mapper, parsed_response)
384
+ rescue Exception => e
385
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
386
+ end
387
+ end
388
+
389
+ result
390
+ end
391
+
392
+ promise.execute
393
+ end
394
+
395
+ #
396
+ # Lists all the VpnGateways in a subscription.
397
+ #
398
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
399
+ # will be added to the HTTP request.
400
+ #
401
+ # @return [Array<VpnGateway>] operation results.
402
+ #
403
+ def list(custom_headers:nil)
404
+ first_page = list_as_lazy(custom_headers:custom_headers)
405
+ first_page.get_all_items
406
+ end
407
+
408
+ #
409
+ # Lists all the VpnGateways in a subscription.
410
+ #
411
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
412
+ # will be added to the HTTP request.
413
+ #
414
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
415
+ #
416
+ def list_with_http_info(custom_headers:nil)
417
+ list_async(custom_headers:custom_headers).value!
418
+ end
419
+
420
+ #
421
+ # Lists all the VpnGateways in a subscription.
422
+ #
423
+ # @param [Hash{String => String}] A hash of custom headers that will be added
424
+ # to the HTTP request.
425
+ #
426
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
427
+ #
428
+ def list_async(custom_headers:nil)
429
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
430
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
431
+
432
+
433
+ request_headers = {}
434
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
435
+
436
+ # Set Headers
437
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
438
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
439
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways'
440
+
441
+ request_url = @base_url || @client.base_url
442
+
443
+ options = {
444
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
445
+ path_params: {'subscriptionId' => @client.subscription_id},
446
+ query_params: {'api-version' => @client.api_version},
447
+ headers: request_headers.merge(custom_headers || {}),
448
+ base_url: request_url
449
+ }
450
+ promise = @client.make_request_async(:get, path_template, options)
451
+
452
+ promise = promise.then do |result|
453
+ http_response = result.response
454
+ status_code = http_response.status
455
+ response_content = http_response.body
456
+ unless status_code == 200
457
+ error_model = JSON.load(response_content)
458
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
459
+ end
460
+
461
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
462
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
463
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
464
+ # Deserialize Response
465
+ if status_code == 200
466
+ begin
467
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
468
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::ListVpnGatewaysResult.mapper()
469
+ result.body = @client.deserialize(result_mapper, parsed_response)
470
+ rescue Exception => e
471
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
472
+ end
473
+ end
474
+
475
+ result
476
+ end
477
+
478
+ promise.execute
479
+ end
480
+
481
+ #
482
+ # Creates a virtual wan vpn gateway if it doesn't exist else updates the
483
+ # existing gateway.
484
+ #
485
+ # @param resource_group_name [String] The resource group name of the
486
+ # VpnGateway.
487
+ # @param gateway_name [String] The name of the gateway.
488
+ # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or
489
+ # Update a virtual wan vpn gateway.
490
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
491
+ # will be added to the HTTP request.
492
+ #
493
+ # @return [VpnGateway] operation results.
494
+ #
495
+ def begin_create_or_update(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
496
+ response = begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:custom_headers).value!
497
+ response.body unless response.nil?
498
+ end
499
+
500
+ #
501
+ # Creates a virtual wan vpn gateway if it doesn't exist else updates the
502
+ # existing gateway.
503
+ #
504
+ # @param resource_group_name [String] The resource group name of the
505
+ # VpnGateway.
506
+ # @param gateway_name [String] The name of the gateway.
507
+ # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or
508
+ # Update a virtual wan vpn gateway.
509
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
+ # will be added to the HTTP request.
511
+ #
512
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
513
+ #
514
+ def begin_create_or_update_with_http_info(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
515
+ begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:custom_headers).value!
516
+ end
517
+
518
+ #
519
+ # Creates a virtual wan vpn gateway if it doesn't exist else updates the
520
+ # existing gateway.
521
+ #
522
+ # @param resource_group_name [String] The resource group name of the
523
+ # VpnGateway.
524
+ # @param gateway_name [String] The name of the gateway.
525
+ # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or
526
+ # Update a virtual wan vpn gateway.
527
+ # @param [Hash{String => String}] A hash of custom headers that will be added
528
+ # to the HTTP request.
529
+ #
530
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
531
+ #
532
+ def begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
533
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
534
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
535
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
536
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
537
+ fail ArgumentError, 'vpn_gateway_parameters is nil' if vpn_gateway_parameters.nil?
538
+
539
+
540
+ request_headers = {}
541
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
542
+
543
+ # Set Headers
544
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
545
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
546
+
547
+ # Serialize Request
548
+ request_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
549
+ request_content = @client.serialize(request_mapper, vpn_gateway_parameters)
550
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
551
+
552
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'
553
+
554
+ request_url = @base_url || @client.base_url
555
+
556
+ options = {
557
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
558
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
559
+ query_params: {'api-version' => @client.api_version},
560
+ body: request_content,
561
+ headers: request_headers.merge(custom_headers || {}),
562
+ base_url: request_url
563
+ }
564
+ promise = @client.make_request_async(:put, path_template, options)
565
+
566
+ promise = promise.then do |result|
567
+ http_response = result.response
568
+ status_code = http_response.status
569
+ response_content = http_response.body
570
+ unless status_code == 200 || status_code == 201
571
+ error_model = JSON.load(response_content)
572
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
573
+ end
574
+
575
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
576
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
577
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
578
+ # Deserialize Response
579
+ if status_code == 200
580
+ begin
581
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
582
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
583
+ result.body = @client.deserialize(result_mapper, parsed_response)
584
+ rescue Exception => e
585
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
586
+ end
587
+ end
588
+ # Deserialize Response
589
+ if status_code == 201
590
+ begin
591
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
592
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
593
+ result.body = @client.deserialize(result_mapper, parsed_response)
594
+ rescue Exception => e
595
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
596
+ end
597
+ end
598
+
599
+ result
600
+ end
601
+
602
+ promise.execute
603
+ end
604
+
605
+ #
606
+ # Updates virtual wan vpn gateway tags.
607
+ #
608
+ # @param resource_group_name [String] The resource group name of the
609
+ # VpnGateway.
610
+ # @param gateway_name [String] The name of the gateway.
611
+ # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a
612
+ # virtual wan vpn gateway tags.
613
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
614
+ # will be added to the HTTP request.
615
+ #
616
+ # @return [VpnGateway] operation results.
617
+ #
618
+ def begin_update_tags(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
619
+ response = begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:custom_headers).value!
620
+ response.body unless response.nil?
621
+ end
622
+
623
+ #
624
+ # Updates virtual wan vpn gateway tags.
625
+ #
626
+ # @param resource_group_name [String] The resource group name of the
627
+ # VpnGateway.
628
+ # @param gateway_name [String] The name of the gateway.
629
+ # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a
630
+ # virtual wan vpn gateway tags.
631
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
632
+ # will be added to the HTTP request.
633
+ #
634
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
635
+ #
636
+ def begin_update_tags_with_http_info(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
637
+ begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:custom_headers).value!
638
+ end
639
+
640
+ #
641
+ # Updates virtual wan vpn gateway tags.
642
+ #
643
+ # @param resource_group_name [String] The resource group name of the
644
+ # VpnGateway.
645
+ # @param gateway_name [String] The name of the gateway.
646
+ # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a
647
+ # virtual wan vpn gateway tags.
648
+ # @param [Hash{String => String}] A hash of custom headers that will be added
649
+ # to the HTTP request.
650
+ #
651
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
652
+ #
653
+ def begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers:nil)
654
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
655
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
656
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
657
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
658
+ fail ArgumentError, 'vpn_gateway_parameters is nil' if vpn_gateway_parameters.nil?
659
+
660
+
661
+ request_headers = {}
662
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
663
+
664
+ # Set Headers
665
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
666
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
667
+
668
+ # Serialize Request
669
+ request_mapper = Azure::Network::Mgmt::V2019_06_01::Models::TagsObject.mapper()
670
+ request_content = @client.serialize(request_mapper, vpn_gateway_parameters)
671
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
672
+
673
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'
674
+
675
+ request_url = @base_url || @client.base_url
676
+
677
+ options = {
678
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
679
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
680
+ query_params: {'api-version' => @client.api_version},
681
+ body: request_content,
682
+ headers: request_headers.merge(custom_headers || {}),
683
+ base_url: request_url
684
+ }
685
+ promise = @client.make_request_async(:patch, path_template, options)
686
+
687
+ promise = promise.then do |result|
688
+ http_response = result.response
689
+ status_code = http_response.status
690
+ response_content = http_response.body
691
+ unless status_code == 200 || status_code == 201
692
+ error_model = JSON.load(response_content)
693
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
694
+ end
695
+
696
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
697
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
698
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
699
+ # Deserialize Response
700
+ if status_code == 200
701
+ begin
702
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
703
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
704
+ result.body = @client.deserialize(result_mapper, parsed_response)
705
+ rescue Exception => e
706
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
707
+ end
708
+ end
709
+ # Deserialize Response
710
+ if status_code == 201
711
+ begin
712
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
713
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
714
+ result.body = @client.deserialize(result_mapper, parsed_response)
715
+ rescue Exception => e
716
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
717
+ end
718
+ end
719
+
720
+ result
721
+ end
722
+
723
+ promise.execute
724
+ end
725
+
726
+ #
727
+ # Deletes a virtual wan vpn gateway.
728
+ #
729
+ # @param resource_group_name [String] The resource group name of the
730
+ # VpnGateway.
731
+ # @param gateway_name [String] The name of the gateway.
732
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
733
+ # will be added to the HTTP request.
734
+ #
735
+ #
736
+ def begin_delete(resource_group_name, gateway_name, custom_headers:nil)
737
+ response = begin_delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
738
+ nil
739
+ end
740
+
741
+ #
742
+ # Deletes a virtual wan vpn gateway.
743
+ #
744
+ # @param resource_group_name [String] The resource group name of the
745
+ # VpnGateway.
746
+ # @param gateway_name [String] The name of the gateway.
747
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
748
+ # will be added to the HTTP request.
749
+ #
750
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
751
+ #
752
+ def begin_delete_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
753
+ begin_delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
754
+ end
755
+
756
+ #
757
+ # Deletes a virtual wan vpn gateway.
758
+ #
759
+ # @param resource_group_name [String] The resource group name of the
760
+ # VpnGateway.
761
+ # @param gateway_name [String] The name of the gateway.
762
+ # @param [Hash{String => String}] A hash of custom headers that will be added
763
+ # to the HTTP request.
764
+ #
765
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
766
+ #
767
+ def begin_delete_async(resource_group_name, gateway_name, custom_headers:nil)
768
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
769
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
770
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
771
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
772
+
773
+
774
+ request_headers = {}
775
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
776
+
777
+ # Set Headers
778
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
779
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
780
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'
781
+
782
+ request_url = @base_url || @client.base_url
783
+
784
+ options = {
785
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
786
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name},
787
+ query_params: {'api-version' => @client.api_version},
788
+ headers: request_headers.merge(custom_headers || {}),
789
+ base_url: request_url
790
+ }
791
+ promise = @client.make_request_async(:delete, path_template, options)
792
+
793
+ promise = promise.then do |result|
794
+ http_response = result.response
795
+ status_code = http_response.status
796
+ response_content = http_response.body
797
+ unless status_code == 200 || status_code == 202 || status_code == 204
798
+ error_model = JSON.load(response_content)
799
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
800
+ end
801
+
802
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
803
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
804
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
805
+
806
+ result
807
+ end
808
+
809
+ promise.execute
810
+ end
811
+
812
+ #
813
+ # Resets the primary of the vpn gateway in the specified resource group.
814
+ #
815
+ # @param resource_group_name [String] The resource group name of the
816
+ # VpnGateway.
817
+ # @param gateway_name [String] The name of the gateway.
818
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
819
+ # will be added to the HTTP request.
820
+ #
821
+ # @return [VpnGateway] operation results.
822
+ #
823
+ def begin_reset(resource_group_name, gateway_name, custom_headers:nil)
824
+ response = begin_reset_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
825
+ response.body unless response.nil?
826
+ end
827
+
828
+ #
829
+ # Resets the primary of the vpn gateway in the specified resource group.
830
+ #
831
+ # @param resource_group_name [String] The resource group name of the
832
+ # VpnGateway.
833
+ # @param gateway_name [String] The name of the gateway.
834
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
835
+ # will be added to the HTTP request.
836
+ #
837
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
838
+ #
839
+ def begin_reset_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
840
+ begin_reset_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
841
+ end
842
+
843
+ #
844
+ # Resets the primary of the vpn gateway in the specified resource group.
845
+ #
846
+ # @param resource_group_name [String] The resource group name of the
847
+ # VpnGateway.
848
+ # @param gateway_name [String] The name of the gateway.
849
+ # @param [Hash{String => String}] A hash of custom headers that will be added
850
+ # to the HTTP request.
851
+ #
852
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
853
+ #
854
+ def begin_reset_async(resource_group_name, gateway_name, custom_headers:nil)
855
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
856
+ fail ArgumentError, 'gateway_name is nil' if gateway_name.nil?
857
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
858
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
859
+
860
+
861
+ request_headers = {}
862
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
863
+
864
+ # Set Headers
865
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
866
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
867
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset'
868
+
869
+ request_url = @base_url || @client.base_url
870
+
871
+ options = {
872
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
873
+ path_params: {'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'subscriptionId' => @client.subscription_id},
874
+ query_params: {'api-version' => @client.api_version},
875
+ headers: request_headers.merge(custom_headers || {}),
876
+ base_url: request_url
877
+ }
878
+ promise = @client.make_request_async(:post, path_template, options)
879
+
880
+ promise = promise.then do |result|
881
+ http_response = result.response
882
+ status_code = http_response.status
883
+ response_content = http_response.body
884
+ unless status_code == 200 || status_code == 202
885
+ error_model = JSON.load(response_content)
886
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
887
+ end
888
+
889
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
890
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
891
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
892
+ # Deserialize Response
893
+ if status_code == 200
894
+ begin
895
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
896
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::VpnGateway.mapper()
897
+ result.body = @client.deserialize(result_mapper, parsed_response)
898
+ rescue Exception => e
899
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
900
+ end
901
+ end
902
+
903
+ result
904
+ end
905
+
906
+ promise.execute
907
+ end
908
+
909
+ #
910
+ # Lists all the VpnGateways in a resource group.
911
+ #
912
+ # @param next_page_link [String] The NextLink from the previous successful call
913
+ # to List operation.
914
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
915
+ # will be added to the HTTP request.
916
+ #
917
+ # @return [ListVpnGatewaysResult] operation results.
918
+ #
919
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
920
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
921
+ response.body unless response.nil?
922
+ end
923
+
924
+ #
925
+ # Lists all the VpnGateways in a resource group.
926
+ #
927
+ # @param next_page_link [String] The NextLink from the previous successful call
928
+ # to List operation.
929
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
930
+ # will be added to the HTTP request.
931
+ #
932
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
933
+ #
934
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
935
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
936
+ end
937
+
938
+ #
939
+ # Lists all the VpnGateways in a resource group.
940
+ #
941
+ # @param next_page_link [String] The NextLink from the previous successful call
942
+ # to List operation.
943
+ # @param [Hash{String => String}] A hash of custom headers that will be added
944
+ # to the HTTP request.
945
+ #
946
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
947
+ #
948
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
949
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
950
+
951
+
952
+ request_headers = {}
953
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
954
+
955
+ # Set Headers
956
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
957
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
958
+ path_template = '{nextLink}'
959
+
960
+ request_url = @base_url || @client.base_url
961
+
962
+ options = {
963
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
964
+ skip_encoding_path_params: {'nextLink' => next_page_link},
965
+ headers: request_headers.merge(custom_headers || {}),
966
+ base_url: request_url
967
+ }
968
+ promise = @client.make_request_async(:get, path_template, options)
969
+
970
+ promise = promise.then do |result|
971
+ http_response = result.response
972
+ status_code = http_response.status
973
+ response_content = http_response.body
974
+ unless status_code == 200
975
+ error_model = JSON.load(response_content)
976
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
977
+ end
978
+
979
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
980
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
981
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
982
+ # Deserialize Response
983
+ if status_code == 200
984
+ begin
985
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
986
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::ListVpnGatewaysResult.mapper()
987
+ result.body = @client.deserialize(result_mapper, parsed_response)
988
+ rescue Exception => e
989
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
990
+ end
991
+ end
992
+
993
+ result
994
+ end
995
+
996
+ promise.execute
997
+ end
998
+
999
+ #
1000
+ # Lists all the VpnGateways in a subscription.
1001
+ #
1002
+ # @param next_page_link [String] The NextLink from the previous successful call
1003
+ # to List operation.
1004
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1005
+ # will be added to the HTTP request.
1006
+ #
1007
+ # @return [ListVpnGatewaysResult] operation results.
1008
+ #
1009
+ def list_next(next_page_link, custom_headers:nil)
1010
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1011
+ response.body unless response.nil?
1012
+ end
1013
+
1014
+ #
1015
+ # Lists all the VpnGateways in a subscription.
1016
+ #
1017
+ # @param next_page_link [String] The NextLink from the previous successful call
1018
+ # to List operation.
1019
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1020
+ # will be added to the HTTP request.
1021
+ #
1022
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1023
+ #
1024
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1025
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1026
+ end
1027
+
1028
+ #
1029
+ # Lists all the VpnGateways in a subscription.
1030
+ #
1031
+ # @param next_page_link [String] The NextLink from the previous successful call
1032
+ # to List operation.
1033
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1034
+ # to the HTTP request.
1035
+ #
1036
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1037
+ #
1038
+ def list_next_async(next_page_link, custom_headers:nil)
1039
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1040
+
1041
+
1042
+ request_headers = {}
1043
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1044
+
1045
+ # Set Headers
1046
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1047
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1048
+ path_template = '{nextLink}'
1049
+
1050
+ request_url = @base_url || @client.base_url
1051
+
1052
+ options = {
1053
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1054
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1055
+ headers: request_headers.merge(custom_headers || {}),
1056
+ base_url: request_url
1057
+ }
1058
+ promise = @client.make_request_async(:get, path_template, options)
1059
+
1060
+ promise = promise.then do |result|
1061
+ http_response = result.response
1062
+ status_code = http_response.status
1063
+ response_content = http_response.body
1064
+ unless status_code == 200
1065
+ error_model = JSON.load(response_content)
1066
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1067
+ end
1068
+
1069
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1070
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1071
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1072
+ # Deserialize Response
1073
+ if status_code == 200
1074
+ begin
1075
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1076
+ result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::ListVpnGatewaysResult.mapper()
1077
+ result.body = @client.deserialize(result_mapper, parsed_response)
1078
+ rescue Exception => e
1079
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1080
+ end
1081
+ end
1082
+
1083
+ result
1084
+ end
1085
+
1086
+ promise.execute
1087
+ end
1088
+
1089
+ #
1090
+ # Lists all the VpnGateways in a resource group.
1091
+ #
1092
+ # @param resource_group_name [String] The resource group name of the
1093
+ # VpnGateway.
1094
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1095
+ # will be added to the HTTP request.
1096
+ #
1097
+ # @return [ListVpnGatewaysResult] which provide lazy access to pages of the
1098
+ # response.
1099
+ #
1100
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1101
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1102
+ unless response.nil?
1103
+ page = response.body
1104
+ page.next_method = Proc.new do |next_page_link|
1105
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1106
+ end
1107
+ page
1108
+ end
1109
+ end
1110
+
1111
+ #
1112
+ # Lists all the VpnGateways in a subscription.
1113
+ #
1114
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1115
+ # will be added to the HTTP request.
1116
+ #
1117
+ # @return [ListVpnGatewaysResult] which provide lazy access to pages of the
1118
+ # response.
1119
+ #
1120
+ def list_as_lazy(custom_headers:nil)
1121
+ response = list_async(custom_headers:custom_headers).value!
1122
+ unless response.nil?
1123
+ page = response.body
1124
+ page.next_method = Proc.new do |next_page_link|
1125
+ list_next_async(next_page_link, custom_headers:custom_headers)
1126
+ end
1127
+ page
1128
+ end
1129
+ end
1130
+
1131
+ end
1132
+ end