azure_mgmt_network 0.18.8 → 0.18.9

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