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,2276 @@
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
+ # ApplicationGateways
9
+ #
10
+ class ApplicationGateways
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ApplicationGateways 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 application gateway.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param application_gateway_name [String] The name of the application gateway.
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, application_gateway_name, custom_headers:nil)
33
+ response = delete_async(resource_group_name, application_gateway_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 application_gateway_name [String] The name of the application gateway.
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, application_gateway_name, custom_headers:nil)
47
+ # Send request
48
+ promise = begin_delete_async(resource_group_name, application_gateway_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 application gateway.
64
+ #
65
+ # @param resource_group_name [String] The name of the resource group.
66
+ # @param application_gateway_name [String] The name of the application gateway.
67
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
68
+ # will be added to the HTTP request.
69
+ #
70
+ # @return [ApplicationGateway] operation results.
71
+ #
72
+ def get(resource_group_name, application_gateway_name, custom_headers:nil)
73
+ response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
74
+ response.body unless response.nil?
75
+ end
76
+
77
+ #
78
+ # Gets the specified application gateway.
79
+ #
80
+ # @param resource_group_name [String] The name of the resource group.
81
+ # @param application_gateway_name [String] The name of the application gateway.
82
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
83
+ # will be added to the HTTP request.
84
+ #
85
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
86
+ #
87
+ def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
88
+ get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
89
+ end
90
+
91
+ #
92
+ # Gets the specified application gateway.
93
+ #
94
+ # @param resource_group_name [String] The name of the resource group.
95
+ # @param application_gateway_name [String] The name of the application gateway.
96
+ # @param [Hash{String => String}] A hash of custom headers that will be added
97
+ # to the HTTP request.
98
+ #
99
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
100
+ #
101
+ def get_async(resource_group_name, application_gateway_name, custom_headers:nil)
102
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
103
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
104
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
105
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
106
+
107
+
108
+ request_headers = {}
109
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
110
+
111
+ # Set Headers
112
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
113
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
114
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
115
+
116
+ request_url = @base_url || @client.base_url
117
+
118
+ options = {
119
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
120
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
121
+ query_params: {'api-version' => @client.api_version},
122
+ headers: request_headers.merge(custom_headers || {}),
123
+ base_url: request_url
124
+ }
125
+ promise = @client.make_request_async(:get, path_template, options)
126
+
127
+ promise = promise.then do |result|
128
+ http_response = result.response
129
+ status_code = http_response.status
130
+ response_content = http_response.body
131
+ unless status_code == 200
132
+ error_model = JSON.load(response_content)
133
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
134
+ end
135
+
136
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
137
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
138
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
139
+ # Deserialize Response
140
+ if status_code == 200
141
+ begin
142
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
143
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
144
+ result.body = @client.deserialize(result_mapper, parsed_response)
145
+ rescue Exception => e
146
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
147
+ end
148
+ end
149
+
150
+ result
151
+ end
152
+
153
+ promise.execute
154
+ end
155
+
156
+ #
157
+ # Creates or updates the specified application gateway.
158
+ #
159
+ # @param resource_group_name [String] The name of the resource group.
160
+ # @param application_gateway_name [String] The name of the application gateway.
161
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
162
+ # update application gateway operation.
163
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
164
+ # will be added to the HTTP request.
165
+ #
166
+ # @return [ApplicationGateway] operation results.
167
+ #
168
+ def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
169
+ response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
170
+ response.body unless response.nil?
171
+ end
172
+
173
+ #
174
+ # @param resource_group_name [String] The name of the resource group.
175
+ # @param application_gateway_name [String] The name of the application gateway.
176
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
177
+ # update application gateway operation.
178
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
179
+ # will be added to the HTTP request.
180
+ #
181
+ # @return [Concurrent::Promise] promise which provides async access to http
182
+ # response.
183
+ #
184
+ def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
185
+ # Send request
186
+ promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers)
187
+
188
+ promise = promise.then do |response|
189
+ # Defining deserialization method.
190
+ deserialize_method = lambda do |parsed_response|
191
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
192
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
193
+ end
194
+
195
+ # Waiting for response.
196
+ @client.get_long_running_operation_result(response, deserialize_method)
197
+ end
198
+
199
+ promise
200
+ end
201
+
202
+ #
203
+ # Updates the specified application gateway tags.
204
+ #
205
+ # @param resource_group_name [String] The name of the resource group.
206
+ # @param application_gateway_name [String] The name of the application gateway.
207
+ # @param parameters [TagsObject] Parameters supplied to update application
208
+ # gateway tags.
209
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
210
+ # will be added to the HTTP request.
211
+ #
212
+ # @return [ApplicationGateway] operation results.
213
+ #
214
+ def update_tags(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
215
+ response = update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
216
+ response.body unless response.nil?
217
+ end
218
+
219
+ #
220
+ # @param resource_group_name [String] The name of the resource group.
221
+ # @param application_gateway_name [String] The name of the application gateway.
222
+ # @param parameters [TagsObject] Parameters supplied to update application
223
+ # gateway tags.
224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
225
+ # will be added to the HTTP request.
226
+ #
227
+ # @return [Concurrent::Promise] promise which provides async access to http
228
+ # response.
229
+ #
230
+ def update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
231
+ # Send request
232
+ promise = begin_update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers)
233
+
234
+ promise = promise.then do |response|
235
+ # Defining deserialization method.
236
+ deserialize_method = lambda do |parsed_response|
237
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
238
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
239
+ end
240
+
241
+ # Waiting for response.
242
+ @client.get_long_running_operation_result(response, deserialize_method)
243
+ end
244
+
245
+ promise
246
+ end
247
+
248
+ #
249
+ # Lists all application gateways in a resource group.
250
+ #
251
+ # @param resource_group_name [String] The name of the resource group.
252
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
253
+ # will be added to the HTTP request.
254
+ #
255
+ # @return [Array<ApplicationGateway>] operation results.
256
+ #
257
+ def list(resource_group_name, custom_headers:nil)
258
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
259
+ first_page.get_all_items
260
+ end
261
+
262
+ #
263
+ # Lists all application gateways in a resource group.
264
+ #
265
+ # @param resource_group_name [String] The name of the resource group.
266
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
+ # will be added to the HTTP request.
268
+ #
269
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
270
+ #
271
+ def list_with_http_info(resource_group_name, custom_headers:nil)
272
+ list_async(resource_group_name, custom_headers:custom_headers).value!
273
+ end
274
+
275
+ #
276
+ # Lists all application gateways in a resource group.
277
+ #
278
+ # @param resource_group_name [String] The name of the resource group.
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_async(resource_group_name, custom_headers:nil)
285
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
286
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
287
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
288
+
289
+
290
+ request_headers = {}
291
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
292
+
293
+ # Set Headers
294
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
295
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
296
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways'
297
+
298
+ request_url = @base_url || @client.base_url
299
+
300
+ options = {
301
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
302
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
303
+ query_params: {'api-version' => @client.api_version},
304
+ headers: request_headers.merge(custom_headers || {}),
305
+ base_url: request_url
306
+ }
307
+ promise = @client.make_request_async(:get, path_template, options)
308
+
309
+ promise = promise.then do |result|
310
+ http_response = result.response
311
+ status_code = http_response.status
312
+ response_content = http_response.body
313
+ unless status_code == 200
314
+ error_model = JSON.load(response_content)
315
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
316
+ end
317
+
318
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
319
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
320
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
321
+ # Deserialize Response
322
+ if status_code == 200
323
+ begin
324
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayListResult.mapper()
326
+ result.body = @client.deserialize(result_mapper, parsed_response)
327
+ rescue Exception => e
328
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
329
+ end
330
+ end
331
+
332
+ result
333
+ end
334
+
335
+ promise.execute
336
+ end
337
+
338
+ #
339
+ # Gets all the application gateways in a subscription.
340
+ #
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<ApplicationGateway>] operation results.
345
+ #
346
+ def list_all(custom_headers:nil)
347
+ first_page = list_all_as_lazy(custom_headers:custom_headers)
348
+ first_page.get_all_items
349
+ end
350
+
351
+ #
352
+ # Gets all the application gateways in a subscription.
353
+ #
354
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
355
+ # will be added to the HTTP request.
356
+ #
357
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
358
+ #
359
+ def list_all_with_http_info(custom_headers:nil)
360
+ list_all_async(custom_headers:custom_headers).value!
361
+ end
362
+
363
+ #
364
+ # Gets all the application gateways in a subscription.
365
+ #
366
+ # @param [Hash{String => String}] A hash of custom headers that will be added
367
+ # to the HTTP request.
368
+ #
369
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
370
+ #
371
+ def list_all_async(custom_headers:nil)
372
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
373
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
374
+
375
+
376
+ request_headers = {}
377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
378
+
379
+ # Set Headers
380
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
381
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
382
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways'
383
+
384
+ request_url = @base_url || @client.base_url
385
+
386
+ options = {
387
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
388
+ path_params: {'subscriptionId' => @client.subscription_id},
389
+ query_params: {'api-version' => @client.api_version},
390
+ headers: request_headers.merge(custom_headers || {}),
391
+ base_url: request_url
392
+ }
393
+ promise = @client.make_request_async(:get, path_template, options)
394
+
395
+ promise = promise.then do |result|
396
+ http_response = result.response
397
+ status_code = http_response.status
398
+ response_content = http_response.body
399
+ unless status_code == 200
400
+ error_model = JSON.load(response_content)
401
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
402
+ end
403
+
404
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
405
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
406
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
407
+ # Deserialize Response
408
+ if status_code == 200
409
+ begin
410
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
411
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayListResult.mapper()
412
+ result.body = @client.deserialize(result_mapper, parsed_response)
413
+ rescue Exception => e
414
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
415
+ end
416
+ end
417
+
418
+ result
419
+ end
420
+
421
+ promise.execute
422
+ end
423
+
424
+ #
425
+ # Starts the specified application gateway.
426
+ #
427
+ # @param resource_group_name [String] The name of the resource group.
428
+ # @param application_gateway_name [String] The name of the application gateway.
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ def start(resource_group_name, application_gateway_name, custom_headers:nil)
433
+ response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
434
+ nil
435
+ end
436
+
437
+ #
438
+ # @param resource_group_name [String] The name of the resource group.
439
+ # @param application_gateway_name [String] The name of the application gateway.
440
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
441
+ # will be added to the HTTP request.
442
+ #
443
+ # @return [Concurrent::Promise] promise which provides async access to http
444
+ # response.
445
+ #
446
+ def start_async(resource_group_name, application_gateway_name, custom_headers:nil)
447
+ # Send request
448
+ promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers)
449
+
450
+ promise = promise.then do |response|
451
+ # Defining deserialization method.
452
+ deserialize_method = lambda do |parsed_response|
453
+ end
454
+
455
+ # Waiting for response.
456
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
457
+ end
458
+
459
+ promise
460
+ end
461
+
462
+ #
463
+ # Stops the specified application gateway in a resource group.
464
+ #
465
+ # @param resource_group_name [String] The name of the resource group.
466
+ # @param application_gateway_name [String] The name of the application gateway.
467
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
468
+ # will be added to the HTTP request.
469
+ #
470
+ def stop(resource_group_name, application_gateway_name, custom_headers:nil)
471
+ response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
472
+ nil
473
+ end
474
+
475
+ #
476
+ # @param resource_group_name [String] The name of the resource group.
477
+ # @param application_gateway_name [String] The name of the application gateway.
478
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
479
+ # will be added to the HTTP request.
480
+ #
481
+ # @return [Concurrent::Promise] promise which provides async access to http
482
+ # response.
483
+ #
484
+ def stop_async(resource_group_name, application_gateway_name, custom_headers:nil)
485
+ # Send request
486
+ promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers)
487
+
488
+ promise = promise.then do |response|
489
+ # Defining deserialization method.
490
+ deserialize_method = lambda do |parsed_response|
491
+ end
492
+
493
+ # Waiting for response.
494
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
495
+ end
496
+
497
+ promise
498
+ end
499
+
500
+ #
501
+ # Gets the backend health of the specified application gateway in a resource
502
+ # group.
503
+ #
504
+ # @param resource_group_name [String] The name of the resource group.
505
+ # @param application_gateway_name [String] The name of the application gateway.
506
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
507
+ # referenced in backend health.
508
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
509
+ # will be added to the HTTP request.
510
+ #
511
+ # @return [ApplicationGatewayBackendHealth] operation results.
512
+ #
513
+ def backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
514
+ response = backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value!
515
+ response.body unless response.nil?
516
+ end
517
+
518
+ #
519
+ # @param resource_group_name [String] The name of the resource group.
520
+ # @param application_gateway_name [String] The name of the application gateway.
521
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
522
+ # referenced in backend health.
523
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
524
+ # will be added to the HTTP request.
525
+ #
526
+ # @return [Concurrent::Promise] promise which provides async access to http
527
+ # response.
528
+ #
529
+ def backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
530
+ # Send request
531
+ promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers)
532
+
533
+ promise = promise.then do |response|
534
+ # Defining deserialization method.
535
+ deserialize_method = lambda do |parsed_response|
536
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayBackendHealth.mapper()
537
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
538
+ end
539
+
540
+ # Waiting for response.
541
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
542
+ end
543
+
544
+ promise
545
+ end
546
+
547
+ #
548
+ # Gets the backend health for given combination of backend pool and http
549
+ # setting of the specified application gateway in a resource group.
550
+ #
551
+ # @param resource_group_name [String] The name of the resource group.
552
+ # @param application_gateway_name [String] The name of the application gateway.
553
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
554
+ # on-demand test probe operation.
555
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
556
+ # referenced in backend health.
557
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
558
+ # will be added to the HTTP request.
559
+ #
560
+ # @return [ApplicationGatewayBackendHealthOnDemand] operation results.
561
+ #
562
+ def backend_health_on_demand(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
563
+ response = backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers).value!
564
+ response.body unless response.nil?
565
+ end
566
+
567
+ #
568
+ # @param resource_group_name [String] The name of the resource group.
569
+ # @param application_gateway_name [String] The name of the application gateway.
570
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
571
+ # on-demand test probe operation.
572
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
573
+ # referenced in backend health.
574
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
575
+ # will be added to the HTTP request.
576
+ #
577
+ # @return [Concurrent::Promise] promise which provides async access to http
578
+ # response.
579
+ #
580
+ def backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
581
+ # Send request
582
+ promise = begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers)
583
+
584
+ promise = promise.then do |response|
585
+ # Defining deserialization method.
586
+ deserialize_method = lambda do |parsed_response|
587
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayBackendHealthOnDemand.mapper()
588
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
589
+ end
590
+
591
+ # Waiting for response.
592
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
593
+ end
594
+
595
+ promise
596
+ end
597
+
598
+ #
599
+ # Lists all available server variables.
600
+ #
601
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
602
+ # will be added to the HTTP request.
603
+ #
604
+ # @return [Array] operation results.
605
+ #
606
+ def list_available_server_variables(custom_headers:nil)
607
+ response = list_available_server_variables_async(custom_headers:custom_headers).value!
608
+ response.body unless response.nil?
609
+ end
610
+
611
+ #
612
+ # Lists all available server variables.
613
+ #
614
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
615
+ # will be added to the HTTP request.
616
+ #
617
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
618
+ #
619
+ def list_available_server_variables_with_http_info(custom_headers:nil)
620
+ list_available_server_variables_async(custom_headers:custom_headers).value!
621
+ end
622
+
623
+ #
624
+ # Lists all available server variables.
625
+ #
626
+ # @param [Hash{String => String}] A hash of custom headers that will be added
627
+ # to the HTTP request.
628
+ #
629
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
630
+ #
631
+ def list_available_server_variables_async(custom_headers:nil)
632
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
633
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
634
+
635
+
636
+ request_headers = {}
637
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
638
+
639
+ # Set Headers
640
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
641
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
642
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables'
643
+
644
+ request_url = @base_url || @client.base_url
645
+
646
+ options = {
647
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
648
+ path_params: {'subscriptionId' => @client.subscription_id},
649
+ query_params: {'api-version' => @client.api_version},
650
+ headers: request_headers.merge(custom_headers || {}),
651
+ base_url: request_url
652
+ }
653
+ promise = @client.make_request_async(:get, path_template, options)
654
+
655
+ promise = promise.then do |result|
656
+ http_response = result.response
657
+ status_code = http_response.status
658
+ response_content = http_response.body
659
+ unless status_code == 200
660
+ error_model = JSON.load(response_content)
661
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
662
+ end
663
+
664
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
665
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
666
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
667
+ # Deserialize Response
668
+ if status_code == 200
669
+ begin
670
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
671
+ result_mapper = {
672
+ client_side_validation: true,
673
+ required: false,
674
+ serialized_name: 'parsed_response',
675
+ type: {
676
+ name: 'Sequence',
677
+ element: {
678
+ client_side_validation: true,
679
+ required: false,
680
+ serialized_name: 'StringElementType',
681
+ type: {
682
+ name: 'String'
683
+ }
684
+ }
685
+ }
686
+ }
687
+ result.body = @client.deserialize(result_mapper, parsed_response)
688
+ rescue Exception => e
689
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
690
+ end
691
+ end
692
+
693
+ result
694
+ end
695
+
696
+ promise.execute
697
+ end
698
+
699
+ #
700
+ # Lists all available request headers.
701
+ #
702
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
703
+ # will be added to the HTTP request.
704
+ #
705
+ # @return [Array] operation results.
706
+ #
707
+ def list_available_request_headers(custom_headers:nil)
708
+ response = list_available_request_headers_async(custom_headers:custom_headers).value!
709
+ response.body unless response.nil?
710
+ end
711
+
712
+ #
713
+ # Lists all available request headers.
714
+ #
715
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
716
+ # will be added to the HTTP request.
717
+ #
718
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
719
+ #
720
+ def list_available_request_headers_with_http_info(custom_headers:nil)
721
+ list_available_request_headers_async(custom_headers:custom_headers).value!
722
+ end
723
+
724
+ #
725
+ # Lists all available request headers.
726
+ #
727
+ # @param [Hash{String => String}] A hash of custom headers that will be added
728
+ # to the HTTP request.
729
+ #
730
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
731
+ #
732
+ def list_available_request_headers_async(custom_headers:nil)
733
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
734
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
735
+
736
+
737
+ request_headers = {}
738
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
739
+
740
+ # Set Headers
741
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
742
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
743
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders'
744
+
745
+ request_url = @base_url || @client.base_url
746
+
747
+ options = {
748
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
749
+ path_params: {'subscriptionId' => @client.subscription_id},
750
+ query_params: {'api-version' => @client.api_version},
751
+ headers: request_headers.merge(custom_headers || {}),
752
+ base_url: request_url
753
+ }
754
+ promise = @client.make_request_async(:get, path_template, options)
755
+
756
+ promise = promise.then do |result|
757
+ http_response = result.response
758
+ status_code = http_response.status
759
+ response_content = http_response.body
760
+ unless status_code == 200
761
+ error_model = JSON.load(response_content)
762
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
763
+ end
764
+
765
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
766
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
767
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
768
+ # Deserialize Response
769
+ if status_code == 200
770
+ begin
771
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
772
+ result_mapper = {
773
+ client_side_validation: true,
774
+ required: false,
775
+ serialized_name: 'parsed_response',
776
+ type: {
777
+ name: 'Sequence',
778
+ element: {
779
+ client_side_validation: true,
780
+ required: false,
781
+ serialized_name: 'StringElementType',
782
+ type: {
783
+ name: 'String'
784
+ }
785
+ }
786
+ }
787
+ }
788
+ result.body = @client.deserialize(result_mapper, parsed_response)
789
+ rescue Exception => e
790
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
791
+ end
792
+ end
793
+
794
+ result
795
+ end
796
+
797
+ promise.execute
798
+ end
799
+
800
+ #
801
+ # Lists all available response headers.
802
+ #
803
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
804
+ # will be added to the HTTP request.
805
+ #
806
+ # @return [Array] operation results.
807
+ #
808
+ def list_available_response_headers(custom_headers:nil)
809
+ response = list_available_response_headers_async(custom_headers:custom_headers).value!
810
+ response.body unless response.nil?
811
+ end
812
+
813
+ #
814
+ # Lists all available response headers.
815
+ #
816
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
817
+ # will be added to the HTTP request.
818
+ #
819
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
820
+ #
821
+ def list_available_response_headers_with_http_info(custom_headers:nil)
822
+ list_available_response_headers_async(custom_headers:custom_headers).value!
823
+ end
824
+
825
+ #
826
+ # Lists all available response headers.
827
+ #
828
+ # @param [Hash{String => String}] A hash of custom headers that will be added
829
+ # to the HTTP request.
830
+ #
831
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
832
+ #
833
+ def list_available_response_headers_async(custom_headers:nil)
834
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
835
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
836
+
837
+
838
+ request_headers = {}
839
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
840
+
841
+ # Set Headers
842
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
843
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
844
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders'
845
+
846
+ request_url = @base_url || @client.base_url
847
+
848
+ options = {
849
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
850
+ path_params: {'subscriptionId' => @client.subscription_id},
851
+ query_params: {'api-version' => @client.api_version},
852
+ headers: request_headers.merge(custom_headers || {}),
853
+ base_url: request_url
854
+ }
855
+ promise = @client.make_request_async(:get, path_template, options)
856
+
857
+ promise = promise.then do |result|
858
+ http_response = result.response
859
+ status_code = http_response.status
860
+ response_content = http_response.body
861
+ unless status_code == 200
862
+ error_model = JSON.load(response_content)
863
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
864
+ end
865
+
866
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
867
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
868
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
869
+ # Deserialize Response
870
+ if status_code == 200
871
+ begin
872
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
873
+ result_mapper = {
874
+ client_side_validation: true,
875
+ required: false,
876
+ serialized_name: 'parsed_response',
877
+ type: {
878
+ name: 'Sequence',
879
+ element: {
880
+ client_side_validation: true,
881
+ required: false,
882
+ serialized_name: 'StringElementType',
883
+ type: {
884
+ name: 'String'
885
+ }
886
+ }
887
+ }
888
+ }
889
+ result.body = @client.deserialize(result_mapper, parsed_response)
890
+ rescue Exception => e
891
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
892
+ end
893
+ end
894
+
895
+ result
896
+ end
897
+
898
+ promise.execute
899
+ end
900
+
901
+ #
902
+ # Lists all available web application firewall rule sets.
903
+ #
904
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
905
+ # will be added to the HTTP request.
906
+ #
907
+ # @return [ApplicationGatewayAvailableWafRuleSetsResult] operation results.
908
+ #
909
+ def list_available_waf_rule_sets(custom_headers:nil)
910
+ response = list_available_waf_rule_sets_async(custom_headers:custom_headers).value!
911
+ response.body unless response.nil?
912
+ end
913
+
914
+ #
915
+ # Lists all available web application firewall rule sets.
916
+ #
917
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
918
+ # will be added to the HTTP request.
919
+ #
920
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
921
+ #
922
+ def list_available_waf_rule_sets_with_http_info(custom_headers:nil)
923
+ list_available_waf_rule_sets_async(custom_headers:custom_headers).value!
924
+ end
925
+
926
+ #
927
+ # Lists all available web application firewall rule sets.
928
+ #
929
+ # @param [Hash{String => String}] A hash of custom headers that will be added
930
+ # to the HTTP request.
931
+ #
932
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
933
+ #
934
+ def list_available_waf_rule_sets_async(custom_headers:nil)
935
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
936
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
937
+
938
+
939
+ request_headers = {}
940
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
941
+
942
+ # Set Headers
943
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
944
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
945
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets'
946
+
947
+ request_url = @base_url || @client.base_url
948
+
949
+ options = {
950
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
951
+ path_params: {'subscriptionId' => @client.subscription_id},
952
+ query_params: {'api-version' => @client.api_version},
953
+ headers: request_headers.merge(custom_headers || {}),
954
+ base_url: request_url
955
+ }
956
+ promise = @client.make_request_async(:get, path_template, options)
957
+
958
+ promise = promise.then do |result|
959
+ http_response = result.response
960
+ status_code = http_response.status
961
+ response_content = http_response.body
962
+ unless status_code == 200
963
+ error_model = JSON.load(response_content)
964
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
965
+ end
966
+
967
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
968
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
969
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
970
+ # Deserialize Response
971
+ if status_code == 200
972
+ begin
973
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
974
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayAvailableWafRuleSetsResult.mapper()
975
+ result.body = @client.deserialize(result_mapper, parsed_response)
976
+ rescue Exception => e
977
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
978
+ end
979
+ end
980
+
981
+ result
982
+ end
983
+
984
+ promise.execute
985
+ end
986
+
987
+ #
988
+ # Lists available Ssl options for configuring Ssl policy.
989
+ #
990
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
991
+ # will be added to the HTTP request.
992
+ #
993
+ # @return [ApplicationGatewayAvailableSslOptions] operation results.
994
+ #
995
+ def list_available_ssl_options(custom_headers:nil)
996
+ response = list_available_ssl_options_async(custom_headers:custom_headers).value!
997
+ response.body unless response.nil?
998
+ end
999
+
1000
+ #
1001
+ # Lists available Ssl options for configuring Ssl policy.
1002
+ #
1003
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1004
+ # will be added to the HTTP request.
1005
+ #
1006
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1007
+ #
1008
+ def list_available_ssl_options_with_http_info(custom_headers:nil)
1009
+ list_available_ssl_options_async(custom_headers:custom_headers).value!
1010
+ end
1011
+
1012
+ #
1013
+ # Lists available Ssl options for configuring Ssl policy.
1014
+ #
1015
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1016
+ # to the HTTP request.
1017
+ #
1018
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1019
+ #
1020
+ def list_available_ssl_options_async(custom_headers:nil)
1021
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1022
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1023
+
1024
+
1025
+ request_headers = {}
1026
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1027
+
1028
+ # Set Headers
1029
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1030
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1031
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default'
1032
+
1033
+ request_url = @base_url || @client.base_url
1034
+
1035
+ options = {
1036
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1037
+ path_params: {'subscriptionId' => @client.subscription_id},
1038
+ query_params: {'api-version' => @client.api_version},
1039
+ headers: request_headers.merge(custom_headers || {}),
1040
+ base_url: request_url
1041
+ }
1042
+ promise = @client.make_request_async(:get, path_template, options)
1043
+
1044
+ promise = promise.then do |result|
1045
+ http_response = result.response
1046
+ status_code = http_response.status
1047
+ response_content = http_response.body
1048
+ unless status_code == 200
1049
+ error_model = JSON.load(response_content)
1050
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1051
+ end
1052
+
1053
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1054
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1055
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1056
+ # Deserialize Response
1057
+ if status_code == 200
1058
+ begin
1059
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1060
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayAvailableSslOptions.mapper()
1061
+ result.body = @client.deserialize(result_mapper, parsed_response)
1062
+ rescue Exception => e
1063
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1064
+ end
1065
+ end
1066
+
1067
+ result
1068
+ end
1069
+
1070
+ promise.execute
1071
+ end
1072
+
1073
+ #
1074
+ # Lists all SSL predefined policies for configuring Ssl policy.
1075
+ #
1076
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1077
+ # will be added to the HTTP request.
1078
+ #
1079
+ # @return [Array<ApplicationGatewaySslPredefinedPolicy>] operation results.
1080
+ #
1081
+ def list_available_ssl_predefined_policies(custom_headers:nil)
1082
+ first_page = list_available_ssl_predefined_policies_as_lazy(custom_headers:custom_headers)
1083
+ first_page.get_all_items
1084
+ end
1085
+
1086
+ #
1087
+ # Lists all SSL predefined policies for configuring Ssl policy.
1088
+ #
1089
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1090
+ # will be added to the HTTP request.
1091
+ #
1092
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1093
+ #
1094
+ def list_available_ssl_predefined_policies_with_http_info(custom_headers:nil)
1095
+ list_available_ssl_predefined_policies_async(custom_headers:custom_headers).value!
1096
+ end
1097
+
1098
+ #
1099
+ # Lists all SSL predefined policies for configuring Ssl policy.
1100
+ #
1101
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1102
+ # to the HTTP request.
1103
+ #
1104
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1105
+ #
1106
+ def list_available_ssl_predefined_policies_async(custom_headers:nil)
1107
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1108
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1109
+
1110
+
1111
+ request_headers = {}
1112
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1113
+
1114
+ # Set Headers
1115
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1116
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1117
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies'
1118
+
1119
+ request_url = @base_url || @client.base_url
1120
+
1121
+ options = {
1122
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1123
+ path_params: {'subscriptionId' => @client.subscription_id},
1124
+ query_params: {'api-version' => @client.api_version},
1125
+ headers: request_headers.merge(custom_headers || {}),
1126
+ base_url: request_url
1127
+ }
1128
+ promise = @client.make_request_async(:get, path_template, options)
1129
+
1130
+ promise = promise.then do |result|
1131
+ http_response = result.response
1132
+ status_code = http_response.status
1133
+ response_content = http_response.body
1134
+ unless status_code == 200
1135
+ error_model = JSON.load(response_content)
1136
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1137
+ end
1138
+
1139
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1140
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1141
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1142
+ # Deserialize Response
1143
+ if status_code == 200
1144
+ begin
1145
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1146
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies.mapper()
1147
+ result.body = @client.deserialize(result_mapper, parsed_response)
1148
+ rescue Exception => e
1149
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1150
+ end
1151
+ end
1152
+
1153
+ result
1154
+ end
1155
+
1156
+ promise.execute
1157
+ end
1158
+
1159
+ #
1160
+ # Gets Ssl predefined policy with the specified policy name.
1161
+ #
1162
+ # @param predefined_policy_name [String] Name of Ssl predefined policy.
1163
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1164
+ # will be added to the HTTP request.
1165
+ #
1166
+ # @return [ApplicationGatewaySslPredefinedPolicy] operation results.
1167
+ #
1168
+ def get_ssl_predefined_policy(predefined_policy_name, custom_headers:nil)
1169
+ response = get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:custom_headers).value!
1170
+ response.body unless response.nil?
1171
+ end
1172
+
1173
+ #
1174
+ # Gets Ssl predefined policy with the specified policy name.
1175
+ #
1176
+ # @param predefined_policy_name [String] Name of Ssl predefined policy.
1177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1178
+ # will be added to the HTTP request.
1179
+ #
1180
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1181
+ #
1182
+ def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_headers:nil)
1183
+ get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:custom_headers).value!
1184
+ end
1185
+
1186
+ #
1187
+ # Gets Ssl predefined policy with the specified policy name.
1188
+ #
1189
+ # @param predefined_policy_name [String] Name of Ssl predefined policy.
1190
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1191
+ # to the HTTP request.
1192
+ #
1193
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1194
+ #
1195
+ def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:nil)
1196
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1197
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1198
+ fail ArgumentError, 'predefined_policy_name is nil' if predefined_policy_name.nil?
1199
+
1200
+
1201
+ request_headers = {}
1202
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1203
+
1204
+ # Set Headers
1205
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1206
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1207
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}'
1208
+
1209
+ request_url = @base_url || @client.base_url
1210
+
1211
+ options = {
1212
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1213
+ path_params: {'subscriptionId' => @client.subscription_id,'predefinedPolicyName' => predefined_policy_name},
1214
+ query_params: {'api-version' => @client.api_version},
1215
+ headers: request_headers.merge(custom_headers || {}),
1216
+ base_url: request_url
1217
+ }
1218
+ promise = @client.make_request_async(:get, path_template, options)
1219
+
1220
+ promise = promise.then do |result|
1221
+ http_response = result.response
1222
+ status_code = http_response.status
1223
+ response_content = http_response.body
1224
+ unless status_code == 200
1225
+ error_model = JSON.load(response_content)
1226
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1227
+ end
1228
+
1229
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1230
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1231
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1232
+ # Deserialize Response
1233
+ if status_code == 200
1234
+ begin
1235
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1236
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewaySslPredefinedPolicy.mapper()
1237
+ result.body = @client.deserialize(result_mapper, parsed_response)
1238
+ rescue Exception => e
1239
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1240
+ end
1241
+ end
1242
+
1243
+ result
1244
+ end
1245
+
1246
+ promise.execute
1247
+ end
1248
+
1249
+ #
1250
+ # Deletes the specified application gateway.
1251
+ #
1252
+ # @param resource_group_name [String] The name of the resource group.
1253
+ # @param application_gateway_name [String] The name of the application gateway.
1254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1255
+ # will be added to the HTTP request.
1256
+ #
1257
+ #
1258
+ def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil)
1259
+ response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1260
+ nil
1261
+ end
1262
+
1263
+ #
1264
+ # Deletes the specified application gateway.
1265
+ #
1266
+ # @param resource_group_name [String] The name of the resource group.
1267
+ # @param application_gateway_name [String] The name of the application gateway.
1268
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1269
+ # will be added to the HTTP request.
1270
+ #
1271
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1272
+ #
1273
+ def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
1274
+ begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1275
+ end
1276
+
1277
+ #
1278
+ # Deletes the specified application gateway.
1279
+ #
1280
+ # @param resource_group_name [String] The name of the resource group.
1281
+ # @param application_gateway_name [String] The name of the application gateway.
1282
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1283
+ # to the HTTP request.
1284
+ #
1285
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1286
+ #
1287
+ def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil)
1288
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1289
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1290
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1291
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1292
+
1293
+
1294
+ request_headers = {}
1295
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1296
+
1297
+ # Set Headers
1298
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1299
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1300
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
1301
+
1302
+ request_url = @base_url || @client.base_url
1303
+
1304
+ options = {
1305
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1306
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1307
+ query_params: {'api-version' => @client.api_version},
1308
+ headers: request_headers.merge(custom_headers || {}),
1309
+ base_url: request_url
1310
+ }
1311
+ promise = @client.make_request_async(:delete, path_template, options)
1312
+
1313
+ promise = promise.then do |result|
1314
+ http_response = result.response
1315
+ status_code = http_response.status
1316
+ response_content = http_response.body
1317
+ unless status_code == 202 || status_code == 204 || status_code == 200
1318
+ error_model = JSON.load(response_content)
1319
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1320
+ end
1321
+
1322
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1323
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1324
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1325
+
1326
+ result
1327
+ end
1328
+
1329
+ promise.execute
1330
+ end
1331
+
1332
+ #
1333
+ # Creates or updates the specified application gateway.
1334
+ #
1335
+ # @param resource_group_name [String] The name of the resource group.
1336
+ # @param application_gateway_name [String] The name of the application gateway.
1337
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
1338
+ # update application gateway operation.
1339
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1340
+ # will be added to the HTTP request.
1341
+ #
1342
+ # @return [ApplicationGateway] operation results.
1343
+ #
1344
+ def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1345
+ response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
1346
+ response.body unless response.nil?
1347
+ end
1348
+
1349
+ #
1350
+ # Creates or updates the specified application gateway.
1351
+ #
1352
+ # @param resource_group_name [String] The name of the resource group.
1353
+ # @param application_gateway_name [String] The name of the application gateway.
1354
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
1355
+ # update application gateway operation.
1356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1357
+ # will be added to the HTTP request.
1358
+ #
1359
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1360
+ #
1361
+ def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1362
+ begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
1363
+ end
1364
+
1365
+ #
1366
+ # Creates or updates the specified application gateway.
1367
+ #
1368
+ # @param resource_group_name [String] The name of the resource group.
1369
+ # @param application_gateway_name [String] The name of the application gateway.
1370
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
1371
+ # update application gateway operation.
1372
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1373
+ # to the HTTP request.
1374
+ #
1375
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1376
+ #
1377
+ def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1378
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1379
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1380
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1381
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1382
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1383
+
1384
+
1385
+ request_headers = {}
1386
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1387
+
1388
+ # Set Headers
1389
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1390
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1391
+
1392
+ # Serialize Request
1393
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
1394
+ request_content = @client.serialize(request_mapper, parameters)
1395
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1396
+
1397
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
1398
+
1399
+ request_url = @base_url || @client.base_url
1400
+
1401
+ options = {
1402
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1403
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1404
+ query_params: {'api-version' => @client.api_version},
1405
+ body: request_content,
1406
+ headers: request_headers.merge(custom_headers || {}),
1407
+ base_url: request_url
1408
+ }
1409
+ promise = @client.make_request_async(:put, path_template, options)
1410
+
1411
+ promise = promise.then do |result|
1412
+ http_response = result.response
1413
+ status_code = http_response.status
1414
+ response_content = http_response.body
1415
+ unless status_code == 201 || status_code == 200
1416
+ error_model = JSON.load(response_content)
1417
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1418
+ end
1419
+
1420
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1421
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1422
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1423
+ # Deserialize Response
1424
+ if status_code == 201
1425
+ begin
1426
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1427
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
1428
+ result.body = @client.deserialize(result_mapper, parsed_response)
1429
+ rescue Exception => e
1430
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1431
+ end
1432
+ end
1433
+ # Deserialize Response
1434
+ if status_code == 200
1435
+ begin
1436
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1437
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
1438
+ result.body = @client.deserialize(result_mapper, parsed_response)
1439
+ rescue Exception => e
1440
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1441
+ end
1442
+ end
1443
+
1444
+ result
1445
+ end
1446
+
1447
+ promise.execute
1448
+ end
1449
+
1450
+ #
1451
+ # Updates the specified application gateway tags.
1452
+ #
1453
+ # @param resource_group_name [String] The name of the resource group.
1454
+ # @param application_gateway_name [String] The name of the application gateway.
1455
+ # @param parameters [TagsObject] Parameters supplied to update application
1456
+ # gateway tags.
1457
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1458
+ # will be added to the HTTP request.
1459
+ #
1460
+ # @return [ApplicationGateway] operation results.
1461
+ #
1462
+ def begin_update_tags(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1463
+ response = begin_update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
1464
+ response.body unless response.nil?
1465
+ end
1466
+
1467
+ #
1468
+ # Updates the specified application gateway tags.
1469
+ #
1470
+ # @param resource_group_name [String] The name of the resource group.
1471
+ # @param application_gateway_name [String] The name of the application gateway.
1472
+ # @param parameters [TagsObject] Parameters supplied to update application
1473
+ # gateway tags.
1474
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1475
+ # will be added to the HTTP request.
1476
+ #
1477
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1478
+ #
1479
+ def begin_update_tags_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1480
+ begin_update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
1481
+ end
1482
+
1483
+ #
1484
+ # Updates the specified application gateway tags.
1485
+ #
1486
+ # @param resource_group_name [String] The name of the resource group.
1487
+ # @param application_gateway_name [String] The name of the application gateway.
1488
+ # @param parameters [TagsObject] Parameters supplied to update application
1489
+ # gateway tags.
1490
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1491
+ # to the HTTP request.
1492
+ #
1493
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1494
+ #
1495
+ def begin_update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1496
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1497
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1498
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1499
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1500
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1501
+
1502
+
1503
+ request_headers = {}
1504
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1505
+
1506
+ # Set Headers
1507
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1508
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1509
+
1510
+ # Serialize Request
1511
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::TagsObject.mapper()
1512
+ request_content = @client.serialize(request_mapper, parameters)
1513
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1514
+
1515
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
1516
+
1517
+ request_url = @base_url || @client.base_url
1518
+
1519
+ options = {
1520
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1521
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1522
+ query_params: {'api-version' => @client.api_version},
1523
+ body: request_content,
1524
+ headers: request_headers.merge(custom_headers || {}),
1525
+ base_url: request_url
1526
+ }
1527
+ promise = @client.make_request_async(:patch, path_template, options)
1528
+
1529
+ promise = promise.then do |result|
1530
+ http_response = result.response
1531
+ status_code = http_response.status
1532
+ response_content = http_response.body
1533
+ unless status_code == 200
1534
+ error_model = JSON.load(response_content)
1535
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1536
+ end
1537
+
1538
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1539
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1540
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1541
+ # Deserialize Response
1542
+ if status_code == 200
1543
+ begin
1544
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1545
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGateway.mapper()
1546
+ result.body = @client.deserialize(result_mapper, parsed_response)
1547
+ rescue Exception => e
1548
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1549
+ end
1550
+ end
1551
+
1552
+ result
1553
+ end
1554
+
1555
+ promise.execute
1556
+ end
1557
+
1558
+ #
1559
+ # Starts the specified application gateway.
1560
+ #
1561
+ # @param resource_group_name [String] The name of the resource group.
1562
+ # @param application_gateway_name [String] The name of the application gateway.
1563
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1564
+ # will be added to the HTTP request.
1565
+ #
1566
+ #
1567
+ def begin_start(resource_group_name, application_gateway_name, custom_headers:nil)
1568
+ response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1569
+ nil
1570
+ end
1571
+
1572
+ #
1573
+ # Starts the specified application gateway.
1574
+ #
1575
+ # @param resource_group_name [String] The name of the resource group.
1576
+ # @param application_gateway_name [String] The name of the application gateway.
1577
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1578
+ # will be added to the HTTP request.
1579
+ #
1580
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1581
+ #
1582
+ def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
1583
+ begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1584
+ end
1585
+
1586
+ #
1587
+ # Starts the specified application gateway.
1588
+ #
1589
+ # @param resource_group_name [String] The name of the resource group.
1590
+ # @param application_gateway_name [String] The name of the application gateway.
1591
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1592
+ # to the HTTP request.
1593
+ #
1594
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1595
+ #
1596
+ def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil)
1597
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1598
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1599
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1600
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1601
+
1602
+
1603
+ request_headers = {}
1604
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1605
+
1606
+ # Set Headers
1607
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1608
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1609
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start'
1610
+
1611
+ request_url = @base_url || @client.base_url
1612
+
1613
+ options = {
1614
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1615
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1616
+ query_params: {'api-version' => @client.api_version},
1617
+ headers: request_headers.merge(custom_headers || {}),
1618
+ base_url: request_url
1619
+ }
1620
+ promise = @client.make_request_async(:post, path_template, options)
1621
+
1622
+ promise = promise.then do |result|
1623
+ http_response = result.response
1624
+ status_code = http_response.status
1625
+ response_content = http_response.body
1626
+ unless status_code == 200 || status_code == 202
1627
+ error_model = JSON.load(response_content)
1628
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1629
+ end
1630
+
1631
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1632
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1633
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1634
+
1635
+ result
1636
+ end
1637
+
1638
+ promise.execute
1639
+ end
1640
+
1641
+ #
1642
+ # Stops the specified application gateway in a resource group.
1643
+ #
1644
+ # @param resource_group_name [String] The name of the resource group.
1645
+ # @param application_gateway_name [String] The name of the application gateway.
1646
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1647
+ # will be added to the HTTP request.
1648
+ #
1649
+ #
1650
+ def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil)
1651
+ response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1652
+ nil
1653
+ end
1654
+
1655
+ #
1656
+ # Stops the specified application gateway in a resource group.
1657
+ #
1658
+ # @param resource_group_name [String] The name of the resource group.
1659
+ # @param application_gateway_name [String] The name of the application gateway.
1660
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1661
+ # will be added to the HTTP request.
1662
+ #
1663
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1664
+ #
1665
+ def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
1666
+ begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1667
+ end
1668
+
1669
+ #
1670
+ # Stops the specified application gateway in a resource group.
1671
+ #
1672
+ # @param resource_group_name [String] The name of the resource group.
1673
+ # @param application_gateway_name [String] The name of the application gateway.
1674
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1675
+ # to the HTTP request.
1676
+ #
1677
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1678
+ #
1679
+ def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil)
1680
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1681
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1682
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1683
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1684
+
1685
+
1686
+ request_headers = {}
1687
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1688
+
1689
+ # Set Headers
1690
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1691
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1692
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop'
1693
+
1694
+ request_url = @base_url || @client.base_url
1695
+
1696
+ options = {
1697
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1698
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1699
+ query_params: {'api-version' => @client.api_version},
1700
+ headers: request_headers.merge(custom_headers || {}),
1701
+ base_url: request_url
1702
+ }
1703
+ promise = @client.make_request_async(:post, path_template, options)
1704
+
1705
+ promise = promise.then do |result|
1706
+ http_response = result.response
1707
+ status_code = http_response.status
1708
+ response_content = http_response.body
1709
+ unless status_code == 200 || status_code == 202
1710
+ error_model = JSON.load(response_content)
1711
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1712
+ end
1713
+
1714
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1715
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1716
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1717
+
1718
+ result
1719
+ end
1720
+
1721
+ promise.execute
1722
+ end
1723
+
1724
+ #
1725
+ # Gets the backend health of the specified application gateway in a resource
1726
+ # group.
1727
+ #
1728
+ # @param resource_group_name [String] The name of the resource group.
1729
+ # @param application_gateway_name [String] The name of the application gateway.
1730
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1731
+ # referenced in backend health.
1732
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1733
+ # will be added to the HTTP request.
1734
+ #
1735
+ # @return [ApplicationGatewayBackendHealth] operation results.
1736
+ #
1737
+ def begin_backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
1738
+ response = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value!
1739
+ response.body unless response.nil?
1740
+ end
1741
+
1742
+ #
1743
+ # Gets the backend health of the specified application gateway in a resource
1744
+ # group.
1745
+ #
1746
+ # @param resource_group_name [String] The name of the resource group.
1747
+ # @param application_gateway_name [String] The name of the application gateway.
1748
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1749
+ # referenced in backend health.
1750
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1751
+ # will be added to the HTTP request.
1752
+ #
1753
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1754
+ #
1755
+ def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
1756
+ begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value!
1757
+ end
1758
+
1759
+ #
1760
+ # Gets the backend health of the specified application gateway in a resource
1761
+ # group.
1762
+ #
1763
+ # @param resource_group_name [String] The name of the resource group.
1764
+ # @param application_gateway_name [String] The name of the application gateway.
1765
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1766
+ # referenced in backend health.
1767
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1768
+ # to the HTTP request.
1769
+ #
1770
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1771
+ #
1772
+ def begin_backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
1773
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1774
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1775
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1776
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1777
+
1778
+
1779
+ request_headers = {}
1780
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1781
+
1782
+ # Set Headers
1783
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1784
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1785
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth'
1786
+
1787
+ request_url = @base_url || @client.base_url
1788
+
1789
+ options = {
1790
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1791
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1792
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
1793
+ headers: request_headers.merge(custom_headers || {}),
1794
+ base_url: request_url
1795
+ }
1796
+ promise = @client.make_request_async(:post, path_template, options)
1797
+
1798
+ promise = promise.then do |result|
1799
+ http_response = result.response
1800
+ status_code = http_response.status
1801
+ response_content = http_response.body
1802
+ unless status_code == 200 || status_code == 202
1803
+ error_model = JSON.load(response_content)
1804
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1805
+ end
1806
+
1807
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1808
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1809
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1810
+ # Deserialize Response
1811
+ if status_code == 200
1812
+ begin
1813
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1814
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayBackendHealth.mapper()
1815
+ result.body = @client.deserialize(result_mapper, parsed_response)
1816
+ rescue Exception => e
1817
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1818
+ end
1819
+ end
1820
+
1821
+ result
1822
+ end
1823
+
1824
+ promise.execute
1825
+ end
1826
+
1827
+ #
1828
+ # Gets the backend health for given combination of backend pool and http
1829
+ # setting of the specified application gateway in a resource group.
1830
+ #
1831
+ # @param resource_group_name [String] The name of the resource group.
1832
+ # @param application_gateway_name [String] The name of the application gateway.
1833
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
1834
+ # on-demand test probe operation.
1835
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1836
+ # referenced in backend health.
1837
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1838
+ # will be added to the HTTP request.
1839
+ #
1840
+ # @return [ApplicationGatewayBackendHealthOnDemand] operation results.
1841
+ #
1842
+ def begin_backend_health_on_demand(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
1843
+ response = begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers).value!
1844
+ response.body unless response.nil?
1845
+ end
1846
+
1847
+ #
1848
+ # Gets the backend health for given combination of backend pool and http
1849
+ # setting of the specified application gateway in a resource group.
1850
+ #
1851
+ # @param resource_group_name [String] The name of the resource group.
1852
+ # @param application_gateway_name [String] The name of the application gateway.
1853
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
1854
+ # on-demand test probe operation.
1855
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1856
+ # referenced in backend health.
1857
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1858
+ # will be added to the HTTP request.
1859
+ #
1860
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1861
+ #
1862
+ def begin_backend_health_on_demand_with_http_info(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
1863
+ begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers).value!
1864
+ end
1865
+
1866
+ #
1867
+ # Gets the backend health for given combination of backend pool and http
1868
+ # setting of the specified application gateway in a resource group.
1869
+ #
1870
+ # @param resource_group_name [String] The name of the resource group.
1871
+ # @param application_gateway_name [String] The name of the application gateway.
1872
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
1873
+ # on-demand test probe operation.
1874
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1875
+ # referenced in backend health.
1876
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1877
+ # to the HTTP request.
1878
+ #
1879
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1880
+ #
1881
+ def begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
1882
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1883
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1884
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1885
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1886
+ fail ArgumentError, 'probe_request is nil' if probe_request.nil?
1887
+
1888
+
1889
+ request_headers = {}
1890
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1891
+
1892
+ # Set Headers
1893
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1894
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1895
+
1896
+ # Serialize Request
1897
+ request_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayOnDemandProbe.mapper()
1898
+ request_content = @client.serialize(request_mapper, probe_request)
1899
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1900
+
1901
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand'
1902
+
1903
+ request_url = @base_url || @client.base_url
1904
+
1905
+ options = {
1906
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1907
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1908
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
1909
+ body: request_content,
1910
+ headers: request_headers.merge(custom_headers || {}),
1911
+ base_url: request_url
1912
+ }
1913
+ promise = @client.make_request_async(:post, path_template, options)
1914
+
1915
+ promise = promise.then do |result|
1916
+ http_response = result.response
1917
+ status_code = http_response.status
1918
+ response_content = http_response.body
1919
+ unless status_code == 200 || status_code == 202
1920
+ error_model = JSON.load(response_content)
1921
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1922
+ end
1923
+
1924
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1925
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1926
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1927
+ # Deserialize Response
1928
+ if status_code == 200
1929
+ begin
1930
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1931
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayBackendHealthOnDemand.mapper()
1932
+ result.body = @client.deserialize(result_mapper, parsed_response)
1933
+ rescue Exception => e
1934
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1935
+ end
1936
+ end
1937
+
1938
+ result
1939
+ end
1940
+
1941
+ promise.execute
1942
+ end
1943
+
1944
+ #
1945
+ # Lists all application gateways in a resource group.
1946
+ #
1947
+ # @param next_page_link [String] The NextLink from the previous successful call
1948
+ # to List operation.
1949
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1950
+ # will be added to the HTTP request.
1951
+ #
1952
+ # @return [ApplicationGatewayListResult] operation results.
1953
+ #
1954
+ def list_next(next_page_link, custom_headers:nil)
1955
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1956
+ response.body unless response.nil?
1957
+ end
1958
+
1959
+ #
1960
+ # Lists all application gateways in a resource group.
1961
+ #
1962
+ # @param next_page_link [String] The NextLink from the previous successful call
1963
+ # to List operation.
1964
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1965
+ # will be added to the HTTP request.
1966
+ #
1967
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1968
+ #
1969
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1970
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1971
+ end
1972
+
1973
+ #
1974
+ # Lists all application gateways in a resource group.
1975
+ #
1976
+ # @param next_page_link [String] The NextLink from the previous successful call
1977
+ # to List operation.
1978
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1979
+ # to the HTTP request.
1980
+ #
1981
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1982
+ #
1983
+ def list_next_async(next_page_link, custom_headers:nil)
1984
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1985
+
1986
+
1987
+ request_headers = {}
1988
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1989
+
1990
+ # Set Headers
1991
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1992
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1993
+ path_template = '{nextLink}'
1994
+
1995
+ request_url = @base_url || @client.base_url
1996
+
1997
+ options = {
1998
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1999
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2000
+ headers: request_headers.merge(custom_headers || {}),
2001
+ base_url: request_url
2002
+ }
2003
+ promise = @client.make_request_async(:get, path_template, options)
2004
+
2005
+ promise = promise.then do |result|
2006
+ http_response = result.response
2007
+ status_code = http_response.status
2008
+ response_content = http_response.body
2009
+ unless status_code == 200
2010
+ error_model = JSON.load(response_content)
2011
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2012
+ end
2013
+
2014
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2015
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2016
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2017
+ # Deserialize Response
2018
+ if status_code == 200
2019
+ begin
2020
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2021
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayListResult.mapper()
2022
+ result.body = @client.deserialize(result_mapper, parsed_response)
2023
+ rescue Exception => e
2024
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2025
+ end
2026
+ end
2027
+
2028
+ result
2029
+ end
2030
+
2031
+ promise.execute
2032
+ end
2033
+
2034
+ #
2035
+ # Gets all the application gateways in a subscription.
2036
+ #
2037
+ # @param next_page_link [String] The NextLink from the previous successful call
2038
+ # to List operation.
2039
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2040
+ # will be added to the HTTP request.
2041
+ #
2042
+ # @return [ApplicationGatewayListResult] operation results.
2043
+ #
2044
+ def list_all_next(next_page_link, custom_headers:nil)
2045
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2046
+ response.body unless response.nil?
2047
+ end
2048
+
2049
+ #
2050
+ # Gets all the application gateways in a subscription.
2051
+ #
2052
+ # @param next_page_link [String] The NextLink from the previous successful call
2053
+ # to List operation.
2054
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2055
+ # will be added to the HTTP request.
2056
+ #
2057
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2058
+ #
2059
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
2060
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2061
+ end
2062
+
2063
+ #
2064
+ # Gets all the application gateways in a subscription.
2065
+ #
2066
+ # @param next_page_link [String] The NextLink from the previous successful call
2067
+ # to List operation.
2068
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2069
+ # to the HTTP request.
2070
+ #
2071
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2072
+ #
2073
+ def list_all_next_async(next_page_link, custom_headers:nil)
2074
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2075
+
2076
+
2077
+ request_headers = {}
2078
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2079
+
2080
+ # Set Headers
2081
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2082
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2083
+ path_template = '{nextLink}'
2084
+
2085
+ request_url = @base_url || @client.base_url
2086
+
2087
+ options = {
2088
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2089
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2090
+ headers: request_headers.merge(custom_headers || {}),
2091
+ base_url: request_url
2092
+ }
2093
+ promise = @client.make_request_async(:get, path_template, options)
2094
+
2095
+ promise = promise.then do |result|
2096
+ http_response = result.response
2097
+ status_code = http_response.status
2098
+ response_content = http_response.body
2099
+ unless status_code == 200
2100
+ error_model = JSON.load(response_content)
2101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2102
+ end
2103
+
2104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2107
+ # Deserialize Response
2108
+ if status_code == 200
2109
+ begin
2110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2111
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayListResult.mapper()
2112
+ result.body = @client.deserialize(result_mapper, parsed_response)
2113
+ rescue Exception => e
2114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2115
+ end
2116
+ end
2117
+
2118
+ result
2119
+ end
2120
+
2121
+ promise.execute
2122
+ end
2123
+
2124
+ #
2125
+ # Lists all SSL predefined policies for configuring Ssl policy.
2126
+ #
2127
+ # @param next_page_link [String] The NextLink from the previous successful call
2128
+ # to List operation.
2129
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2130
+ # will be added to the HTTP request.
2131
+ #
2132
+ # @return [ApplicationGatewayAvailableSslPredefinedPolicies] operation results.
2133
+ #
2134
+ def list_available_ssl_predefined_policies_next(next_page_link, custom_headers:nil)
2135
+ response = list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers).value!
2136
+ response.body unless response.nil?
2137
+ end
2138
+
2139
+ #
2140
+ # Lists all SSL predefined policies for configuring Ssl policy.
2141
+ #
2142
+ # @param next_page_link [String] The NextLink from the previous successful call
2143
+ # to List operation.
2144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2145
+ # will be added to the HTTP request.
2146
+ #
2147
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2148
+ #
2149
+ def list_available_ssl_predefined_policies_next_with_http_info(next_page_link, custom_headers:nil)
2150
+ list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers).value!
2151
+ end
2152
+
2153
+ #
2154
+ # Lists all SSL predefined policies for configuring Ssl policy.
2155
+ #
2156
+ # @param next_page_link [String] The NextLink from the previous successful call
2157
+ # to List operation.
2158
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2159
+ # to the HTTP request.
2160
+ #
2161
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2162
+ #
2163
+ def list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:nil)
2164
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2165
+
2166
+
2167
+ request_headers = {}
2168
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2169
+
2170
+ # Set Headers
2171
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2172
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2173
+ path_template = '{nextLink}'
2174
+
2175
+ request_url = @base_url || @client.base_url
2176
+
2177
+ options = {
2178
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2179
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2180
+ headers: request_headers.merge(custom_headers || {}),
2181
+ base_url: request_url
2182
+ }
2183
+ promise = @client.make_request_async(:get, path_template, options)
2184
+
2185
+ promise = promise.then do |result|
2186
+ http_response = result.response
2187
+ status_code = http_response.status
2188
+ response_content = http_response.body
2189
+ unless status_code == 200
2190
+ error_model = JSON.load(response_content)
2191
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2192
+ end
2193
+
2194
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2195
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2196
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2197
+ # Deserialize Response
2198
+ if status_code == 200
2199
+ begin
2200
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2201
+ result_mapper = Azure::Network::Mgmt::V2019_04_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies.mapper()
2202
+ result.body = @client.deserialize(result_mapper, parsed_response)
2203
+ rescue Exception => e
2204
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2205
+ end
2206
+ end
2207
+
2208
+ result
2209
+ end
2210
+
2211
+ promise.execute
2212
+ end
2213
+
2214
+ #
2215
+ # Lists all application gateways in a resource group.
2216
+ #
2217
+ # @param resource_group_name [String] The name of the resource group.
2218
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2219
+ # will be added to the HTTP request.
2220
+ #
2221
+ # @return [ApplicationGatewayListResult] which provide lazy access to pages of
2222
+ # the response.
2223
+ #
2224
+ def list_as_lazy(resource_group_name, custom_headers:nil)
2225
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
2226
+ unless response.nil?
2227
+ page = response.body
2228
+ page.next_method = Proc.new do |next_page_link|
2229
+ list_next_async(next_page_link, custom_headers:custom_headers)
2230
+ end
2231
+ page
2232
+ end
2233
+ end
2234
+
2235
+ #
2236
+ # Gets all the application gateways in a subscription.
2237
+ #
2238
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2239
+ # will be added to the HTTP request.
2240
+ #
2241
+ # @return [ApplicationGatewayListResult] which provide lazy access to pages of
2242
+ # the response.
2243
+ #
2244
+ def list_all_as_lazy(custom_headers:nil)
2245
+ response = list_all_async(custom_headers:custom_headers).value!
2246
+ unless response.nil?
2247
+ page = response.body
2248
+ page.next_method = Proc.new do |next_page_link|
2249
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
2250
+ end
2251
+ page
2252
+ end
2253
+ end
2254
+
2255
+ #
2256
+ # Lists all SSL predefined policies for configuring Ssl policy.
2257
+ #
2258
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2259
+ # will be added to the HTTP request.
2260
+ #
2261
+ # @return [ApplicationGatewayAvailableSslPredefinedPolicies] which provide lazy
2262
+ # access to pages of the response.
2263
+ #
2264
+ def list_available_ssl_predefined_policies_as_lazy(custom_headers:nil)
2265
+ response = list_available_ssl_predefined_policies_async(custom_headers:custom_headers).value!
2266
+ unless response.nil?
2267
+ page = response.body
2268
+ page.next_method = Proc.new do |next_page_link|
2269
+ list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers)
2270
+ end
2271
+ page
2272
+ end
2273
+ end
2274
+
2275
+ end
2276
+ end