azure_mgmt_network 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (679) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
  4. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  6. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  7. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  8. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  9. data/lib/2017-03-30/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +3 -3
  10. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  11. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  12. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  13. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  14. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  15. data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  16. data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  17. data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  18. data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  19. data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  20. data/lib/2018-08-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  21. data/lib/2018-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  22. data/lib/2018-10-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  23. data/lib/2018-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  24. data/lib/2018-11-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  25. data/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  26. data/lib/2018-12-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  27. data/lib/2019-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  28. data/lib/2019-02-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  29. data/lib/2019-04-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +3 -3
  30. data/lib/2019-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  31. data/lib/2019-04-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  32. data/lib/2019-06-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +3 -3
  33. data/lib/2019-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  34. data/lib/2019-06-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  35. data/lib/2019-07-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +3 -3
  36. data/lib/2019-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  37. data/lib/2019-07-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  38. data/lib/2019-08-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +3 -3
  39. data/lib/2019-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  40. data/lib/2019-08-01/generated/azure_mgmt_network/network_profiles.rb +158 -24
  41. data/lib/2019-09-01/generated/azure_mgmt_network.rb +659 -0
  42. data/lib/2019-09-01/generated/azure_mgmt_network/application_gateways.rb +2230 -0
  43. data/lib/2019-09-01/generated/azure_mgmt_network/application_security_groups.rb +925 -0
  44. data/lib/2019-09-01/generated/azure_mgmt_network/available_delegations.rb +233 -0
  45. data/lib/2019-09-01/generated/azure_mgmt_network/available_endpoint_services.rb +226 -0
  46. data/lib/2019-09-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +446 -0
  47. data/lib/2019-09-01/generated/azure_mgmt_network/available_resource_group_delegations.rb +238 -0
  48. data/lib/2019-09-01/generated/azure_mgmt_network/available_service_aliases.rb +432 -0
  49. data/lib/2019-09-01/generated/azure_mgmt_network/azure_firewall_fqdn_tags.rb +221 -0
  50. data/lib/2019-09-01/generated/azure_mgmt_network/azure_firewalls.rb +909 -0
  51. data/lib/2019-09-01/generated/azure_mgmt_network/bastion_hosts.rb +801 -0
  52. data/lib/2019-09-01/generated/azure_mgmt_network/bgp_service_communities.rb +221 -0
  53. data/lib/2019-09-01/generated/azure_mgmt_network/ddos_custom_policies.rb +512 -0
  54. data/lib/2019-09-01/generated/azure_mgmt_network/ddos_protection_plans.rb +925 -0
  55. data/lib/2019-09-01/generated/azure_mgmt_network/default_security_rules.rb +339 -0
  56. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +631 -0
  57. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_circuit_connections.rb +683 -0
  58. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +626 -0
  59. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_circuits.rb +1557 -0
  60. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_connections.rb +534 -0
  61. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb +648 -0
  62. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_cross_connections.rb +1262 -0
  63. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_gateways.rb +601 -0
  64. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_links.rb +343 -0
  65. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_ports.rb +922 -0
  66. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_ports_locations.rb +331 -0
  67. data/lib/2019-09-01/generated/azure_mgmt_network/express_route_service_providers.rb +221 -0
  68. data/lib/2019-09-01/generated/azure_mgmt_network/firewall_policies.rb +804 -0
  69. data/lib/2019-09-01/generated/azure_mgmt_network/firewall_policy_rule_groups.rb +626 -0
  70. data/lib/2019-09-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +336 -0
  71. data/lib/2019-09-01/generated/azure_mgmt_network/inbound_nat_rules.rb +629 -0
  72. data/lib/2019-09-01/generated/azure_mgmt_network/ip_groups.rb +915 -0
  73. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +332 -0
  74. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +332 -0
  75. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +329 -0
  76. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +231 -0
  77. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +329 -0
  78. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancer_probes.rb +329 -0
  79. data/lib/2019-09-01/generated/azure_mgmt_network/load_balancers.rb +912 -0
  80. data/lib/2019-09-01/generated/azure_mgmt_network/local_network_gateways.rb +733 -0
  81. data/lib/2019-09-01/generated/azure_mgmt_network/models/aad_authentication_parameters.rb +68 -0
  82. data/lib/2019-09-01/generated/azure_mgmt_network/models/access.rb +16 -0
  83. data/lib/2019-09-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  84. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway.rb +597 -0
  85. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +106 -0
  86. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_autoscale_configuration.rb +65 -0
  87. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  88. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  89. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  90. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  91. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +136 -0
  92. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +56 -0
  93. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  94. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb +61 -0
  95. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  96. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +83 -0
  97. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  98. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +266 -0
  99. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  100. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  101. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
  102. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
  103. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  104. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
  105. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  106. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  107. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  108. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +143 -0
  109. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +143 -0
  110. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +105 -0
  111. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb +57 -0
  112. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +220 -0
  113. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +108 -0
  114. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  115. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb +134 -0
  116. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  117. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +177 -0
  118. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +223 -0
  119. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  120. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  121. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +201 -0
  122. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  123. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +198 -0
  124. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  125. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule.rb +93 -0
  126. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_action_set.rb +77 -0
  127. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_condition.rb +82 -0
  128. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_set.rb +103 -0
  129. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  130. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +21 -0
  131. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +143 -0
  132. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +42 -0
  133. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  134. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  135. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  136. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  137. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  138. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +18 -0
  139. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_trusted_root_certificate.rb +117 -0
  140. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +168 -0
  141. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +180 -0
  142. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_rule_condition.rb +164 -0
  143. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  144. data/lib/2019-09-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  145. data/lib/2019-09-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  146. data/lib/2019-09-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  147. data/lib/2019-09-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  148. data/lib/2019-09-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  149. data/lib/2019-09-01/generated/azure_mgmt_network/models/auto_approved_private_link_service.rb +46 -0
  150. data/lib/2019-09-01/generated/azure_mgmt_network/models/auto_approved_private_link_services_result.rb +101 -0
  151. data/lib/2019-09-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  152. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_delegation.rb +101 -0
  153. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_delegations_result.rb +99 -0
  154. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +80 -0
  155. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_private_endpoint_types_result.rb +100 -0
  156. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  157. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  158. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  159. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  160. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  161. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_service_alias.rb +79 -0
  162. data/lib/2019-09-01/generated/azure_mgmt_network/models/available_service_aliases_result.rb +100 -0
  163. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  164. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall.rb +298 -0
  165. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_application_rule.rb +154 -0
  166. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_collection.rb +130 -0
  167. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol.rb +63 -0
  168. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol_type.rb +17 -0
  169. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag.rb +124 -0
  170. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb +99 -0
  171. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_ipconfiguration.rb +121 -0
  172. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb +99 -0
  173. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction.rb +47 -0
  174. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction_type.rb +16 -0
  175. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb +187 -0
  176. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule_collection.rb +131 -0
  177. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_network_rule.rb +191 -0
  178. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_collection.rb +130 -0
  179. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +18 -0
  180. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_public_ipaddress.rb +46 -0
  181. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_rcaction.rb +47 -0
  182. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb +16 -0
  183. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_sku.rb +59 -0
  184. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_sku_name.rb +16 -0
  185. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_sku_tier.rb +15 -0
  186. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_firewall_threat_intel_mode.rb +17 -0
  187. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +81 -0
  188. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  189. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  190. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  191. data/lib/2019-09-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +108 -0
  192. data/lib/2019-09-01/generated/azure_mgmt_network/models/backend_address_pool.rb +175 -0
  193. data/lib/2019-09-01/generated/azure_mgmt_network/models/bastion_host.rb +145 -0
  194. data/lib/2019-09-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +130 -0
  195. data/lib/2019-09-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb +98 -0
  196. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  197. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  198. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  199. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  200. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  201. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  202. data/lib/2019-09-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  203. data/lib/2019-09-01/generated/azure_mgmt_network/models/check_private_link_service_visibility_request.rb +46 -0
  204. data/lib/2019-09-01/generated/azure_mgmt_network/models/circuit_connection_status.rb +17 -0
  205. data/lib/2019-09-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  206. data/lib/2019-09-01/generated/azure_mgmt_network/models/connection_shared_key.rb +54 -0
  207. data/lib/2019-09-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  208. data/lib/2019-09-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  209. data/lib/2019-09-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  210. data/lib/2019-09-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  211. data/lib/2019-09-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  212. data/lib/2019-09-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +84 -0
  213. data/lib/2019-09-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  214. data/lib/2019-09-01/generated/azure_mgmt_network/models/container.rb +43 -0
  215. data/lib/2019-09-01/generated/azure_mgmt_network/models/container_network_interface.rb +144 -0
  216. data/lib/2019-09-01/generated/azure_mgmt_network/models/container_network_interface_configuration.rb +136 -0
  217. data/lib/2019-09-01/generated/azure_mgmt_network/models/container_network_interface_ip_configuration.rb +86 -0
  218. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_custom_policy.rb +170 -0
  219. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_custom_policy_protocol.rb +17 -0
  220. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_custom_policy_trigger_sensitivity_override.rb +18 -0
  221. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_protection_plan.rb +165 -0
  222. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_protection_plan_list_result.rb +99 -0
  223. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_settings.rb +61 -0
  224. data/lib/2019-09-01/generated/azure_mgmt_network/models/ddos_settings_protection_coverage.rb +16 -0
  225. data/lib/2019-09-01/generated/azure_mgmt_network/models/delegation.rb +115 -0
  226. data/lib/2019-09-01/generated/azure_mgmt_network/models/device_properties.rb +68 -0
  227. data/lib/2019-09-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  228. data/lib/2019-09-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  229. data/lib/2019-09-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  230. data/lib/2019-09-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  231. data/lib/2019-09-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  232. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  233. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  234. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  235. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +260 -0
  236. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_route.rb +135 -0
  237. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  238. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  239. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  240. data/lib/2019-09-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  241. data/lib/2019-09-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  242. data/lib/2019-09-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  243. data/lib/2019-09-01/generated/azure_mgmt_network/models/error.rb +99 -0
  244. data/lib/2019-09-01/generated/azure_mgmt_network/models/error_details.rb +68 -0
  245. data/lib/2019-09-01/generated/azure_mgmt_network/models/error_response.rb +47 -0
  246. data/lib/2019-09-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +92 -0
  247. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit.rb +300 -0
  248. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  249. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +119 -0
  250. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_connection.rb +158 -0
  251. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_connection_list_result.rb +101 -0
  252. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  253. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +345 -0
  254. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  255. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +122 -0
  256. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_peering_id.rb +46 -0
  257. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  258. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  259. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_reference.rb +46 -0
  260. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +91 -0
  261. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  262. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  263. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +70 -0
  264. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  265. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +18 -0
  266. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  267. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +66 -0
  268. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  269. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  270. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_connection.rb +114 -0
  271. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_connection_id.rb +47 -0
  272. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_connection_list.rb +56 -0
  273. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_cross_connection.rb +229 -0
  274. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_cross_connection_list_result.rb +100 -0
  275. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering.rb +251 -0
  276. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb +102 -0
  277. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_cross_connection_routes_table_summary.rb +83 -0
  278. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_cross_connections_routes_table_summary_list_result.rb +70 -0
  279. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_gateway.rb +160 -0
  280. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb +55 -0
  281. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration.rb +49 -0
  282. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration_bounds.rb +60 -0
  283. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_link.rb +169 -0
  284. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_link_admin_state.rb +16 -0
  285. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_link_connector_type.rb +16 -0
  286. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb +99 -0
  287. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_cipher.rb +16 -0
  288. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_config.rb +73 -0
  289. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_peering_state.rb +16 -0
  290. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_peering_type.rb +17 -0
  291. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_port.rb +268 -0
  292. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb +98 -0
  293. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_ports_encapsulation.rb +16 -0
  294. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_ports_location.rb +146 -0
  295. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb +61 -0
  296. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb +99 -0
  297. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +139 -0
  298. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  299. data/lib/2019-09-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  300. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy.rb +203 -0
  301. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule.rb +106 -0
  302. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_action.rb +47 -0
  303. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_action_type.rb +16 -0
  304. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_list_result.rb +99 -0
  305. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb +119 -0
  306. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_action.rb +47 -0
  307. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_action_type.rb +15 -0
  308. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule.rb +73 -0
  309. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb +69 -0
  310. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_application_protocol.rb +64 -0
  311. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_application_protocol_type.rb +16 -0
  312. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_network_protocol.rb +18 -0
  313. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule_group.rb +131 -0
  314. data/lib/2019-09-01/generated/azure_mgmt_network/models/firewall_policy_rule_group_list_result.rb +99 -0
  315. data/lib/2019-09-01/generated/azure_mgmt_network/models/flow_log_format_parameters.rb +60 -0
  316. data/lib/2019-09-01/generated/azure_mgmt_network/models/flow_log_format_type.rb +15 -0
  317. data/lib/2019-09-01/generated/azure_mgmt_network/models/flow_log_information.rb +110 -0
  318. data/lib/2019-09-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +48 -0
  319. data/lib/2019-09-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +274 -0
  320. data/lib/2019-09-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  321. data/lib/2019-09-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  322. data/lib/2019-09-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb +67 -0
  323. data/lib/2019-09-01/generated/azure_mgmt_network/models/httpconfiguration.rb +85 -0
  324. data/lib/2019-09-01/generated/azure_mgmt_network/models/httpheader.rb +57 -0
  325. data/lib/2019-09-01/generated/azure_mgmt_network/models/httpmethod.rb +15 -0
  326. data/lib/2019-09-01/generated/azure_mgmt_network/models/hub_ipaddresses.rb +67 -0
  327. data/lib/2019-09-01/generated/azure_mgmt_network/models/hub_virtual_network_connection.rb +127 -0
  328. data/lib/2019-09-01/generated/azure_mgmt_network/models/hub_virtual_network_connection_status.rb +18 -0
  329. data/lib/2019-09-01/generated/azure_mgmt_network/models/ike_encryption.rb +21 -0
  330. data/lib/2019-09-01/generated/azure_mgmt_network/models/ike_integrity.rb +20 -0
  331. data/lib/2019-09-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +199 -0
  332. data/lib/2019-09-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +202 -0
  333. data/lib/2019-09-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  334. data/lib/2019-09-01/generated/azure_mgmt_network/models/ip_flow_protocol.rb +16 -0
  335. data/lib/2019-09-01/generated/azure_mgmt_network/models/ip_group.rb +154 -0
  336. data/lib/2019-09-01/generated/azure_mgmt_network/models/ip_group_list_result.rb +98 -0
  337. data/lib/2019-09-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  338. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  339. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  340. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipconfiguration.rb +129 -0
  341. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipconfiguration_profile.rb +107 -0
  342. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  343. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  344. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipsec_policy.rb +137 -0
  345. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +94 -0
  346. data/lib/2019-09-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  347. data/lib/2019-09-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  348. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_hub_virtual_network_connections_result.rb +102 -0
  349. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_p2svpn_gateways_result.rb +100 -0
  350. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_virtual_hub_route_table_v2s_result.rb +101 -0
  351. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb +100 -0
  352. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_virtual_wans_result.rb +100 -0
  353. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_vpn_connections_result.rb +101 -0
  354. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_vpn_gateways_result.rb +100 -0
  355. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_vpn_server_configurations_result.rb +102 -0
  356. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_vpn_site_link_connections_result.rb +101 -0
  357. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_vpn_site_links_result.rb +100 -0
  358. data/lib/2019-09-01/generated/azure_mgmt_network/models/list_vpn_sites_result.rb +100 -0
  359. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer.rb +294 -0
  360. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  361. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  362. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  363. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  364. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
  365. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_protocol.rb +17 -0
  366. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  367. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  368. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  369. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +238 -0
  370. data/lib/2019-09-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  371. data/lib/2019-09-01/generated/azure_mgmt_network/models/local_network_gateway.rb +160 -0
  372. data/lib/2019-09-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  373. data/lib/2019-09-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  374. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_rule_enabled_state.rb +15 -0
  375. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_rule_group_override.rb +67 -0
  376. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_rule_override.rb +59 -0
  377. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_rule_set.rb +78 -0
  378. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_rules_definition.rb +77 -0
  379. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_service_identity.rb +102 -0
  380. data/lib/2019-09-01/generated/azure_mgmt_network/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  381. data/lib/2019-09-01/generated/azure_mgmt_network/models/match_condition.rb +118 -0
  382. data/lib/2019-09-01/generated/azure_mgmt_network/models/match_variable.rb +60 -0
  383. data/lib/2019-09-01/generated/azure_mgmt_network/models/matched_rule.rb +58 -0
  384. data/lib/2019-09-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  385. data/lib/2019-09-01/generated/azure_mgmt_network/models/nat_gateway.rb +232 -0
  386. data/lib/2019-09-01/generated/azure_mgmt_network/models/nat_gateway_list_result.rb +99 -0
  387. data/lib/2019-09-01/generated/azure_mgmt_network/models/nat_gateway_sku.rb +47 -0
  388. data/lib/2019-09-01/generated/azure_mgmt_network/models/nat_gateway_sku_name.rb +15 -0
  389. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +81 -0
  390. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_profile.rb +95 -0
  391. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_response.rb +57 -0
  392. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +61 -0
  393. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_intent_policy.rb +98 -0
  394. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb +60 -0
  395. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface.rb +291 -0
  396. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  397. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +120 -0
  398. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +274 -0
  399. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  400. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_private_link_connection_properties.rb +83 -0
  401. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  402. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  403. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +107 -0
  404. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_interface_tap_configuration_list_result.rb +102 -0
  405. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  406. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_profile.rb +168 -0
  407. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_profile_list_result.rb +99 -0
  408. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_rule_condition.rb +144 -0
  409. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_security_group.rb +211 -0
  410. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  411. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_security_group_result.rb +70 -0
  412. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_security_rules_evaluation_result.rb +101 -0
  413. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_watcher.rb +112 -0
  414. data/lib/2019-09-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  415. data/lib/2019-09-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  416. data/lib/2019-09-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  417. data/lib/2019-09-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  418. data/lib/2019-09-01/generated/azure_mgmt_network/models/office_traffic_category.rb +18 -0
  419. data/lib/2019-09-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  420. data/lib/2019-09-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  421. data/lib/2019-09-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  422. data/lib/2019-09-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  423. data/lib/2019-09-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  424. data/lib/2019-09-01/generated/azure_mgmt_network/models/outbound_rule.rb +177 -0
  425. data/lib/2019-09-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry.rb +74 -0
  426. data/lib/2019-09-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_match_variable.rb +17 -0
  427. data/lib/2019-09-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_selector_match_operator.rb +19 -0
  428. data/lib/2019-09-01/generated/azure_mgmt_network/models/p2sconnection_configuration.rb +95 -0
  429. data/lib/2019-09-01/generated/azure_mgmt_network/models/p2svpn_connection_health.rb +47 -0
  430. data/lib/2019-09-01/generated/azure_mgmt_network/models/p2svpn_connection_health_request.rb +67 -0
  431. data/lib/2019-09-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb +183 -0
  432. data/lib/2019-09-01/generated/azure_mgmt_network/models/p2svpn_profile_parameters.rb +47 -0
  433. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture.rb +119 -0
  434. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  435. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  436. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +119 -0
  437. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  438. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture_result.rb +170 -0
  439. data/lib/2019-09-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  440. data/lib/2019-09-01/generated/azure_mgmt_network/models/patch_route_filter.rb +179 -0
  441. data/lib/2019-09-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +129 -0
  442. data/lib/2019-09-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  443. data/lib/2019-09-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  444. data/lib/2019-09-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  445. data/lib/2019-09-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection.rb +170 -0
  446. data/lib/2019-09-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection_list_result.rb +104 -0
  447. data/lib/2019-09-01/generated/azure_mgmt_network/models/pfs_group.rb +23 -0
  448. data/lib/2019-09-01/generated/azure_mgmt_network/models/policy_settings.rb +101 -0
  449. data/lib/2019-09-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb +68 -0
  450. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_endpoint.rb +191 -0
  451. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_endpoint_connection.rb +133 -0
  452. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_endpoint_connection_list_result.rb +101 -0
  453. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_endpoint_list_result.rb +100 -0
  454. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service.rb +267 -0
  455. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_connection.rb +150 -0
  456. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  457. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_ip_configuration.rb +151 -0
  458. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_list_result.rb +100 -0
  459. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_properties_auto_approval.rb +51 -0
  460. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_properties_visibility.rb +51 -0
  461. data/lib/2019-09-01/generated/azure_mgmt_network/models/private_link_service_visibility.rb +46 -0
  462. data/lib/2019-09-01/generated/azure_mgmt_network/models/probe.rb +186 -0
  463. data/lib/2019-09-01/generated/azure_mgmt_network/models/probe_protocol.rb +17 -0
  464. data/lib/2019-09-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  465. data/lib/2019-09-01/generated/azure_mgmt_network/models/protocol.rb +18 -0
  466. data/lib/2019-09-01/generated/azure_mgmt_network/models/protocol_configuration.rb +48 -0
  467. data/lib/2019-09-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb +87 -0
  468. data/lib/2019-09-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  469. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipaddress.rb +278 -0
  470. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  471. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  472. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  473. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  474. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipprefix.rb +249 -0
  475. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipprefix_list_result.rb +99 -0
  476. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipprefix_sku.rb +47 -0
  477. data/lib/2019-09-01/generated/azure_mgmt_network/models/public_ipprefix_sku_name.rb +15 -0
  478. data/lib/2019-09-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  479. data/lib/2019-09-01/generated/azure_mgmt_network/models/referenced_public_ip_address.rb +46 -0
  480. data/lib/2019-09-01/generated/azure_mgmt_network/models/resource.rb +109 -0
  481. data/lib/2019-09-01/generated/azure_mgmt_network/models/resource_identity_type.rb +18 -0
  482. data/lib/2019-09-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +116 -0
  483. data/lib/2019-09-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +68 -0
  484. data/lib/2019-09-01/generated/azure_mgmt_network/models/resource_set.rb +54 -0
  485. data/lib/2019-09-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  486. data/lib/2019-09-01/generated/azure_mgmt_network/models/route.rb +119 -0
  487. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_filter.rb +177 -0
  488. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  489. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_filter_rule.rb +139 -0
  490. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  491. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  492. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  493. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_table.rb +166 -0
  494. data/lib/2019-09-01/generated/azure_mgmt_network/models/route_table_list_result.rb +98 -0
  495. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +59 -0
  496. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  497. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  498. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_rule.rb +315 -0
  499. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  500. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb +102 -0
  501. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  502. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  503. data/lib/2019-09-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +20 -0
  504. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_association_link.rb +146 -0
  505. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +68 -0
  506. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_endpoint_policy.rb +167 -0
  507. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition.rb +123 -0
  508. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition_list_result.rb +103 -0
  509. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_endpoint_policy_list_result.rb +100 -0
  510. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +79 -0
  511. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  512. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_tag_information.rb +73 -0
  513. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_tag_information_properties_format.rb +91 -0
  514. data/lib/2019-09-01/generated/azure_mgmt_network/models/service_tags_list_result.rb +117 -0
  515. data/lib/2019-09-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  516. data/lib/2019-09-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  517. data/lib/2019-09-01/generated/azure_mgmt_network/models/subnet.rb +359 -0
  518. data/lib/2019-09-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  519. data/lib/2019-09-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  520. data/lib/2019-09-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  521. data/lib/2019-09-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  522. data/lib/2019-09-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  523. data/lib/2019-09-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  524. data/lib/2019-09-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  525. data/lib/2019-09-01/generated/azure_mgmt_network/models/traffic_analytics_configuration_properties.rb +91 -0
  526. data/lib/2019-09-01/generated/azure_mgmt_network/models/traffic_analytics_properties.rb +48 -0
  527. data/lib/2019-09-01/generated/azure_mgmt_network/models/traffic_selector_policy.rb +75 -0
  528. data/lib/2019-09-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  529. data/lib/2019-09-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  530. data/lib/2019-09-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  531. data/lib/2019-09-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  532. data/lib/2019-09-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  533. data/lib/2019-09-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  534. data/lib/2019-09-01/generated/azure_mgmt_network/models/tunnel_connection_status.rb +18 -0
  535. data/lib/2019-09-01/generated/azure_mgmt_network/models/unprepare_network_policies_request.rb +47 -0
  536. data/lib/2019-09-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  537. data/lib/2019-09-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  538. data/lib/2019-09-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  539. data/lib/2019-09-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
  540. data/lib/2019-09-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  541. data/lib/2019-09-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  542. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_hub.rb +263 -0
  543. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_hub_id.rb +48 -0
  544. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_hub_route.rb +65 -0
  545. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb +55 -0
  546. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_hub_route_table_v2.rb +122 -0
  547. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb +95 -0
  548. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network.rb +245 -0
  549. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_bgp_communities.rb +60 -0
  550. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  551. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +298 -0
  552. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +369 -0
  553. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +370 -0
  554. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  555. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_protocol.rb +16 -0
  556. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  557. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  558. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +118 -0
  559. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  560. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  561. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +77 -0
  562. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +31 -0
  563. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +31 -0
  564. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  565. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  566. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  567. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +175 -0
  568. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  569. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  570. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_tap.rb +186 -0
  571. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_tap_list_result.rb +99 -0
  572. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  573. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  574. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_router.rb +191 -0
  575. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_router_list_result.rb +98 -0
  576. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_router_peering.rb +119 -0
  577. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_router_peering_list_result.rb +99 -0
  578. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_wan.rb +210 -0
  579. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_wan_security_provider.rb +69 -0
  580. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_wan_security_provider_type.rb +16 -0
  581. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_wan_security_providers.rb +56 -0
  582. data/lib/2019-09-01/generated/azure_mgmt_network/models/virtual_wan_vpn_profile_parameters.rb +59 -0
  583. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_authentication_type.rb +17 -0
  584. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +191 -0
  585. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_connection_health.rb +93 -0
  586. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail.rb +179 -0
  587. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail_list_result.rb +57 -0
  588. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_ipsec_parameters.rb +137 -0
  589. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +94 -0
  590. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +17 -0
  591. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +93 -0
  592. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +93 -0
  593. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_connection.rb +272 -0
  594. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_connection_status.rb +18 -0
  595. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  596. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_gateway.rb +168 -0
  597. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_gateway_generation.rb +17 -0
  598. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_gateway_tunneling_protocol.rb +16 -0
  599. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_link_bgp_settings.rb +58 -0
  600. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_link_provider_properties.rb +57 -0
  601. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_packet_capture_start_parameters.rb +46 -0
  602. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_packet_capture_stop_parameters.rb +46 -0
  603. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_profile_response.rb +46 -0
  604. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_server_config_radius_client_root_certificate.rb +59 -0
  605. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_server_config_radius_server_root_certificate.rb +58 -0
  606. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_revoked_certificate.rb +59 -0
  607. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_root_certificate.rb +57 -0
  608. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_server_configuration.rb +339 -0
  609. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_server_configurations_response.rb +55 -0
  610. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_site.rb +214 -0
  611. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_site_id.rb +48 -0
  612. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_site_link.rb +129 -0
  613. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_site_link_connection.rb +252 -0
  614. data/lib/2019-09-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  615. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_action.rb +17 -0
  616. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb +119 -0
  617. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_enabled_state.rb +16 -0
  618. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_match_variable.rb +22 -0
  619. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_mode.rb +16 -0
  620. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_operator.rb +25 -0
  621. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_policy.rb +237 -0
  622. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +105 -0
  623. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_policy_resource_state.rb +20 -0
  624. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_rule_type.rb +16 -0
  625. data/lib/2019-09-01/generated/azure_mgmt_network/models/web_application_firewall_transform.rb +20 -0
  626. data/lib/2019-09-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  627. data/lib/2019-09-01/generated/azure_mgmt_network/nat_gateways.rb +922 -0
  628. data/lib/2019-09-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +329 -0
  629. data/lib/2019-09-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +231 -0
  630. data/lib/2019-09-01/generated/azure_mgmt_network/network_interface_tap_configurations.rb +626 -0
  631. data/lib/2019-09-01/generated/azure_mgmt_network/network_interfaces.rb +1184 -0
  632. data/lib/2019-09-01/generated/azure_mgmt_network/network_management_client.rb +920 -0
  633. data/lib/2019-09-01/generated/azure_mgmt_network/network_profiles.rb +866 -0
  634. data/lib/2019-09-01/generated/azure_mgmt_network/network_security_groups.rb +928 -0
  635. data/lib/2019-09-01/generated/azure_mgmt_network/network_watchers.rb +2658 -0
  636. data/lib/2019-09-01/generated/azure_mgmt_network/operations.rb +219 -0
  637. data/lib/2019-09-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +1389 -0
  638. data/lib/2019-09-01/generated/azure_mgmt_network/packet_captures.rb +796 -0
  639. data/lib/2019-09-01/generated/azure_mgmt_network/peer_express_route_circuit_connections.rb +351 -0
  640. data/lib/2019-09-01/generated/azure_mgmt_network/private_endpoints.rb +804 -0
  641. data/lib/2019-09-01/generated/azure_mgmt_network/private_link_services.rb +2007 -0
  642. data/lib/2019-09-01/generated/azure_mgmt_network/public_ipaddresses.rb +912 -0
  643. data/lib/2019-09-01/generated/azure_mgmt_network/public_ipprefixes.rb +912 -0
  644. data/lib/2019-09-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  645. data/lib/2019-09-01/generated/azure_mgmt_network/route_filter_rules.rb +626 -0
  646. data/lib/2019-09-01/generated/azure_mgmt_network/route_filters.rb +915 -0
  647. data/lib/2019-09-01/generated/azure_mgmt_network/route_tables.rb +912 -0
  648. data/lib/2019-09-01/generated/azure_mgmt_network/routes.rb +625 -0
  649. data/lib/2019-09-01/generated/azure_mgmt_network/security_rules.rb +643 -0
  650. data/lib/2019-09-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  651. data/lib/2019-09-01/generated/azure_mgmt_network/service_endpoint_policies.rb +928 -0
  652. data/lib/2019-09-01/generated/azure_mgmt_network/service_endpoint_policy_definitions.rb +668 -0
  653. data/lib/2019-09-01/generated/azure_mgmt_network/service_tags.rb +124 -0
  654. data/lib/2019-09-01/generated/azure_mgmt_network/subnets.rb +929 -0
  655. data/lib/2019-09-01/generated/azure_mgmt_network/usages.rb +227 -0
  656. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_hub_route_table_v2s.rb +647 -0
  657. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_hubs.rb +933 -0
  658. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1612 -0
  659. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +3275 -0
  660. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb +634 -0
  661. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_network_taps.rb +909 -0
  662. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_networks.rb +1216 -0
  663. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_router_peerings.rb +626 -0
  664. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_routers.rb +804 -0
  665. data/lib/2019-09-01/generated/azure_mgmt_network/virtual_wans.rb +938 -0
  666. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_connections.rb +647 -0
  667. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_gateways.rb +1074 -0
  668. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_link_connections.rb +247 -0
  669. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_server_configurations.rb +949 -0
  670. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_server_configurations_associated_with_virtual_wan.rb +170 -0
  671. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_site_link_connections.rb +130 -0
  672. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_site_links.rb +332 -0
  673. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_sites.rb +918 -0
  674. data/lib/2019-09-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +173 -0
  675. data/lib/2019-09-01/generated/azure_mgmt_network/web_application_firewall_policies.rb +758 -0
  676. data/lib/azure_mgmt_network.rb +1 -0
  677. data/lib/profiles/latest/modules/network_profile_module.rb +1381 -1353
  678. data/lib/version.rb +1 -1
  679. metadata +637 -2
@@ -0,0 +1,2230 @@
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_09_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_09_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_09_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
+ # Updates the specified application gateway tags.
221
+ #
222
+ # @param resource_group_name [String] The name of the resource group.
223
+ # @param application_gateway_name [String] The name of the application gateway.
224
+ # @param parameters [TagsObject] Parameters supplied to update application
225
+ # gateway tags.
226
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
227
+ # will be added to the HTTP request.
228
+ #
229
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
230
+ #
231
+ def update_tags_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
232
+ update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
233
+ end
234
+
235
+ #
236
+ # Updates the specified application gateway tags.
237
+ #
238
+ # @param resource_group_name [String] The name of the resource group.
239
+ # @param application_gateway_name [String] The name of the application gateway.
240
+ # @param parameters [TagsObject] Parameters supplied to update application
241
+ # gateway tags.
242
+ # @param [Hash{String => String}] A hash of custom headers that will be added
243
+ # to the HTTP request.
244
+ #
245
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
246
+ #
247
+ def update_tags_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
248
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
249
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
250
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
251
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
252
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
253
+
254
+
255
+ request_headers = {}
256
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
257
+
258
+ # Set Headers
259
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
260
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
261
+
262
+ # Serialize Request
263
+ request_mapper = Azure::Network::Mgmt::V2019_09_01::Models::TagsObject.mapper()
264
+ request_content = @client.serialize(request_mapper, parameters)
265
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
266
+
267
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
268
+
269
+ request_url = @base_url || @client.base_url
270
+
271
+ options = {
272
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
273
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
274
+ query_params: {'api-version' => @client.api_version},
275
+ body: request_content,
276
+ headers: request_headers.merge(custom_headers || {}),
277
+ base_url: request_url
278
+ }
279
+ promise = @client.make_request_async(:patch, path_template, options)
280
+
281
+ promise = promise.then do |result|
282
+ http_response = result.response
283
+ status_code = http_response.status
284
+ response_content = http_response.body
285
+ unless status_code == 200
286
+ error_model = JSON.load(response_content)
287
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
288
+ end
289
+
290
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
291
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
292
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
293
+ # Deserialize Response
294
+ if status_code == 200
295
+ begin
296
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
297
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGateway.mapper()
298
+ result.body = @client.deserialize(result_mapper, parsed_response)
299
+ rescue Exception => e
300
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
301
+ end
302
+ end
303
+
304
+ result
305
+ end
306
+
307
+ promise.execute
308
+ end
309
+
310
+ #
311
+ # Lists all application gateways in a resource group.
312
+ #
313
+ # @param resource_group_name [String] The name of the resource group.
314
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
315
+ # will be added to the HTTP request.
316
+ #
317
+ # @return [Array<ApplicationGateway>] operation results.
318
+ #
319
+ def list(resource_group_name, custom_headers:nil)
320
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
321
+ first_page.get_all_items
322
+ end
323
+
324
+ #
325
+ # Lists all application gateways in a resource group.
326
+ #
327
+ # @param resource_group_name [String] The name of the resource group.
328
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
329
+ # will be added to the HTTP request.
330
+ #
331
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
332
+ #
333
+ def list_with_http_info(resource_group_name, custom_headers:nil)
334
+ list_async(resource_group_name, custom_headers:custom_headers).value!
335
+ end
336
+
337
+ #
338
+ # Lists all application gateways in a resource group.
339
+ #
340
+ # @param resource_group_name [String] The name of the resource group.
341
+ # @param [Hash{String => String}] A hash of custom headers that will be added
342
+ # to the HTTP request.
343
+ #
344
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
345
+ #
346
+ def list_async(resource_group_name, custom_headers:nil)
347
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
348
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
349
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
350
+
351
+
352
+ request_headers = {}
353
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
354
+
355
+ # Set Headers
356
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
357
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
358
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways'
359
+
360
+ request_url = @base_url || @client.base_url
361
+
362
+ options = {
363
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
364
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
365
+ query_params: {'api-version' => @client.api_version},
366
+ headers: request_headers.merge(custom_headers || {}),
367
+ base_url: request_url
368
+ }
369
+ promise = @client.make_request_async(:get, path_template, options)
370
+
371
+ promise = promise.then do |result|
372
+ http_response = result.response
373
+ status_code = http_response.status
374
+ response_content = http_response.body
375
+ unless status_code == 200
376
+ error_model = JSON.load(response_content)
377
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
378
+ end
379
+
380
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
381
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
382
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
383
+ # Deserialize Response
384
+ if status_code == 200
385
+ begin
386
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
387
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayListResult.mapper()
388
+ result.body = @client.deserialize(result_mapper, parsed_response)
389
+ rescue Exception => e
390
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
391
+ end
392
+ end
393
+
394
+ result
395
+ end
396
+
397
+ promise.execute
398
+ end
399
+
400
+ #
401
+ # Gets all the application gateways in a subscription.
402
+ #
403
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
404
+ # will be added to the HTTP request.
405
+ #
406
+ # @return [Array<ApplicationGateway>] operation results.
407
+ #
408
+ def list_all(custom_headers:nil)
409
+ first_page = list_all_as_lazy(custom_headers:custom_headers)
410
+ first_page.get_all_items
411
+ end
412
+
413
+ #
414
+ # Gets all the application gateways in a subscription.
415
+ #
416
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
417
+ # will be added to the HTTP request.
418
+ #
419
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
420
+ #
421
+ def list_all_with_http_info(custom_headers:nil)
422
+ list_all_async(custom_headers:custom_headers).value!
423
+ end
424
+
425
+ #
426
+ # Gets all the application gateways in a subscription.
427
+ #
428
+ # @param [Hash{String => String}] A hash of custom headers that will be added
429
+ # to the HTTP request.
430
+ #
431
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
432
+ #
433
+ def list_all_async(custom_headers:nil)
434
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
435
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
436
+
437
+
438
+ request_headers = {}
439
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
440
+
441
+ # Set Headers
442
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
443
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
444
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways'
445
+
446
+ request_url = @base_url || @client.base_url
447
+
448
+ options = {
449
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
450
+ path_params: {'subscriptionId' => @client.subscription_id},
451
+ query_params: {'api-version' => @client.api_version},
452
+ headers: request_headers.merge(custom_headers || {}),
453
+ base_url: request_url
454
+ }
455
+ promise = @client.make_request_async(:get, path_template, options)
456
+
457
+ promise = promise.then do |result|
458
+ http_response = result.response
459
+ status_code = http_response.status
460
+ response_content = http_response.body
461
+ unless status_code == 200
462
+ error_model = JSON.load(response_content)
463
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
464
+ end
465
+
466
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
467
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
468
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
469
+ # Deserialize Response
470
+ if status_code == 200
471
+ begin
472
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
473
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayListResult.mapper()
474
+ result.body = @client.deserialize(result_mapper, parsed_response)
475
+ rescue Exception => e
476
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
477
+ end
478
+ end
479
+
480
+ result
481
+ end
482
+
483
+ promise.execute
484
+ end
485
+
486
+ #
487
+ # Starts the specified application gateway.
488
+ #
489
+ # @param resource_group_name [String] The name of the resource group.
490
+ # @param application_gateway_name [String] The name of the application gateway.
491
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
492
+ # will be added to the HTTP request.
493
+ #
494
+ def start(resource_group_name, application_gateway_name, custom_headers:nil)
495
+ response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
496
+ nil
497
+ end
498
+
499
+ #
500
+ # @param resource_group_name [String] The name of the resource group.
501
+ # @param application_gateway_name [String] The name of the application gateway.
502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
+ # will be added to the HTTP request.
504
+ #
505
+ # @return [Concurrent::Promise] promise which provides async access to http
506
+ # response.
507
+ #
508
+ def start_async(resource_group_name, application_gateway_name, custom_headers:nil)
509
+ # Send request
510
+ promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers)
511
+
512
+ promise = promise.then do |response|
513
+ # Defining deserialization method.
514
+ deserialize_method = lambda do |parsed_response|
515
+ end
516
+
517
+ # Waiting for response.
518
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
519
+ end
520
+
521
+ promise
522
+ end
523
+
524
+ #
525
+ # Stops the specified application gateway in a resource group.
526
+ #
527
+ # @param resource_group_name [String] The name of the resource group.
528
+ # @param application_gateway_name [String] The name of the application gateway.
529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
+ # will be added to the HTTP request.
531
+ #
532
+ def stop(resource_group_name, application_gateway_name, custom_headers:nil)
533
+ response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
534
+ nil
535
+ end
536
+
537
+ #
538
+ # @param resource_group_name [String] The name of the resource group.
539
+ # @param application_gateway_name [String] The name of the application gateway.
540
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
541
+ # will be added to the HTTP request.
542
+ #
543
+ # @return [Concurrent::Promise] promise which provides async access to http
544
+ # response.
545
+ #
546
+ def stop_async(resource_group_name, application_gateway_name, custom_headers:nil)
547
+ # Send request
548
+ promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers)
549
+
550
+ promise = promise.then do |response|
551
+ # Defining deserialization method.
552
+ deserialize_method = lambda do |parsed_response|
553
+ end
554
+
555
+ # Waiting for response.
556
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
557
+ end
558
+
559
+ promise
560
+ end
561
+
562
+ #
563
+ # Gets the backend health of the specified application gateway in a resource
564
+ # group.
565
+ #
566
+ # @param resource_group_name [String] The name of the resource group.
567
+ # @param application_gateway_name [String] The name of the application gateway.
568
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
569
+ # referenced in backend health.
570
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
571
+ # will be added to the HTTP request.
572
+ #
573
+ # @return [ApplicationGatewayBackendHealth] operation results.
574
+ #
575
+ def backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
576
+ response = backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value!
577
+ response.body unless response.nil?
578
+ end
579
+
580
+ #
581
+ # @param resource_group_name [String] The name of the resource group.
582
+ # @param application_gateway_name [String] The name of the application gateway.
583
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
584
+ # referenced in backend health.
585
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
586
+ # will be added to the HTTP request.
587
+ #
588
+ # @return [Concurrent::Promise] promise which provides async access to http
589
+ # response.
590
+ #
591
+ def backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
592
+ # Send request
593
+ promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers)
594
+
595
+ promise = promise.then do |response|
596
+ # Defining deserialization method.
597
+ deserialize_method = lambda do |parsed_response|
598
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayBackendHealth.mapper()
599
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
600
+ end
601
+
602
+ # Waiting for response.
603
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
604
+ end
605
+
606
+ promise
607
+ end
608
+
609
+ #
610
+ # Gets the backend health for given combination of backend pool and http
611
+ # setting of the specified application gateway in a resource group.
612
+ #
613
+ # @param resource_group_name [String] The name of the resource group.
614
+ # @param application_gateway_name [String] The name of the application gateway.
615
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
616
+ # on-demand test probe operation.
617
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
618
+ # referenced in backend health.
619
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
620
+ # will be added to the HTTP request.
621
+ #
622
+ # @return [ApplicationGatewayBackendHealthOnDemand] operation results.
623
+ #
624
+ def backend_health_on_demand(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
625
+ response = backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers).value!
626
+ response.body unless response.nil?
627
+ end
628
+
629
+ #
630
+ # @param resource_group_name [String] The name of the resource group.
631
+ # @param application_gateway_name [String] The name of the application gateway.
632
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
633
+ # on-demand test probe operation.
634
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
635
+ # referenced in backend health.
636
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
637
+ # will be added to the HTTP request.
638
+ #
639
+ # @return [Concurrent::Promise] promise which provides async access to http
640
+ # response.
641
+ #
642
+ def backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
643
+ # Send request
644
+ promise = begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers)
645
+
646
+ promise = promise.then do |response|
647
+ # Defining deserialization method.
648
+ deserialize_method = lambda do |parsed_response|
649
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayBackendHealthOnDemand.mapper()
650
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
651
+ end
652
+
653
+ # Waiting for response.
654
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
655
+ end
656
+
657
+ promise
658
+ end
659
+
660
+ #
661
+ # Lists all available server variables.
662
+ #
663
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
664
+ # will be added to the HTTP request.
665
+ #
666
+ # @return [Array] operation results.
667
+ #
668
+ def list_available_server_variables(custom_headers:nil)
669
+ response = list_available_server_variables_async(custom_headers:custom_headers).value!
670
+ response.body unless response.nil?
671
+ end
672
+
673
+ #
674
+ # Lists all available server variables.
675
+ #
676
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
677
+ # will be added to the HTTP request.
678
+ #
679
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
680
+ #
681
+ def list_available_server_variables_with_http_info(custom_headers:nil)
682
+ list_available_server_variables_async(custom_headers:custom_headers).value!
683
+ end
684
+
685
+ #
686
+ # Lists all available server variables.
687
+ #
688
+ # @param [Hash{String => String}] A hash of custom headers that will be added
689
+ # to the HTTP request.
690
+ #
691
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
692
+ #
693
+ def list_available_server_variables_async(custom_headers:nil)
694
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
695
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
696
+
697
+
698
+ request_headers = {}
699
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
700
+
701
+ # Set Headers
702
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
703
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
704
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables'
705
+
706
+ request_url = @base_url || @client.base_url
707
+
708
+ options = {
709
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
710
+ path_params: {'subscriptionId' => @client.subscription_id},
711
+ query_params: {'api-version' => @client.api_version},
712
+ headers: request_headers.merge(custom_headers || {}),
713
+ base_url: request_url
714
+ }
715
+ promise = @client.make_request_async(:get, path_template, options)
716
+
717
+ promise = promise.then do |result|
718
+ http_response = result.response
719
+ status_code = http_response.status
720
+ response_content = http_response.body
721
+ unless status_code == 200
722
+ error_model = JSON.load(response_content)
723
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
724
+ end
725
+
726
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
727
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
728
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
729
+ # Deserialize Response
730
+ if status_code == 200
731
+ begin
732
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
733
+ result_mapper = {
734
+ client_side_validation: true,
735
+ required: false,
736
+ serialized_name: 'parsed_response',
737
+ type: {
738
+ name: 'Sequence',
739
+ element: {
740
+ client_side_validation: true,
741
+ required: false,
742
+ serialized_name: 'StringElementType',
743
+ type: {
744
+ name: 'String'
745
+ }
746
+ }
747
+ }
748
+ }
749
+ result.body = @client.deserialize(result_mapper, parsed_response)
750
+ rescue Exception => e
751
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
752
+ end
753
+ end
754
+
755
+ result
756
+ end
757
+
758
+ promise.execute
759
+ end
760
+
761
+ #
762
+ # Lists all available request headers.
763
+ #
764
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
765
+ # will be added to the HTTP request.
766
+ #
767
+ # @return [Array] operation results.
768
+ #
769
+ def list_available_request_headers(custom_headers:nil)
770
+ response = list_available_request_headers_async(custom_headers:custom_headers).value!
771
+ response.body unless response.nil?
772
+ end
773
+
774
+ #
775
+ # Lists all available request headers.
776
+ #
777
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
778
+ # will be added to the HTTP request.
779
+ #
780
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
781
+ #
782
+ def list_available_request_headers_with_http_info(custom_headers:nil)
783
+ list_available_request_headers_async(custom_headers:custom_headers).value!
784
+ end
785
+
786
+ #
787
+ # Lists all available request headers.
788
+ #
789
+ # @param [Hash{String => String}] A hash of custom headers that will be added
790
+ # to the HTTP request.
791
+ #
792
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
793
+ #
794
+ def list_available_request_headers_async(custom_headers:nil)
795
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
796
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
797
+
798
+
799
+ request_headers = {}
800
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
801
+
802
+ # Set Headers
803
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
804
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
805
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders'
806
+
807
+ request_url = @base_url || @client.base_url
808
+
809
+ options = {
810
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
811
+ path_params: {'subscriptionId' => @client.subscription_id},
812
+ query_params: {'api-version' => @client.api_version},
813
+ headers: request_headers.merge(custom_headers || {}),
814
+ base_url: request_url
815
+ }
816
+ promise = @client.make_request_async(:get, path_template, options)
817
+
818
+ promise = promise.then do |result|
819
+ http_response = result.response
820
+ status_code = http_response.status
821
+ response_content = http_response.body
822
+ unless status_code == 200
823
+ error_model = JSON.load(response_content)
824
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
825
+ end
826
+
827
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
828
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
829
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
830
+ # Deserialize Response
831
+ if status_code == 200
832
+ begin
833
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
834
+ result_mapper = {
835
+ client_side_validation: true,
836
+ required: false,
837
+ serialized_name: 'parsed_response',
838
+ type: {
839
+ name: 'Sequence',
840
+ element: {
841
+ client_side_validation: true,
842
+ required: false,
843
+ serialized_name: 'StringElementType',
844
+ type: {
845
+ name: 'String'
846
+ }
847
+ }
848
+ }
849
+ }
850
+ result.body = @client.deserialize(result_mapper, parsed_response)
851
+ rescue Exception => e
852
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
853
+ end
854
+ end
855
+
856
+ result
857
+ end
858
+
859
+ promise.execute
860
+ end
861
+
862
+ #
863
+ # Lists all available response headers.
864
+ #
865
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
866
+ # will be added to the HTTP request.
867
+ #
868
+ # @return [Array] operation results.
869
+ #
870
+ def list_available_response_headers(custom_headers:nil)
871
+ response = list_available_response_headers_async(custom_headers:custom_headers).value!
872
+ response.body unless response.nil?
873
+ end
874
+
875
+ #
876
+ # Lists all available response headers.
877
+ #
878
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
879
+ # will be added to the HTTP request.
880
+ #
881
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
882
+ #
883
+ def list_available_response_headers_with_http_info(custom_headers:nil)
884
+ list_available_response_headers_async(custom_headers:custom_headers).value!
885
+ end
886
+
887
+ #
888
+ # Lists all available response headers.
889
+ #
890
+ # @param [Hash{String => String}] A hash of custom headers that will be added
891
+ # to the HTTP request.
892
+ #
893
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
894
+ #
895
+ def list_available_response_headers_async(custom_headers:nil)
896
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
897
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
898
+
899
+
900
+ request_headers = {}
901
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
902
+
903
+ # Set Headers
904
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
905
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
906
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders'
907
+
908
+ request_url = @base_url || @client.base_url
909
+
910
+ options = {
911
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
912
+ path_params: {'subscriptionId' => @client.subscription_id},
913
+ query_params: {'api-version' => @client.api_version},
914
+ headers: request_headers.merge(custom_headers || {}),
915
+ base_url: request_url
916
+ }
917
+ promise = @client.make_request_async(:get, path_template, options)
918
+
919
+ promise = promise.then do |result|
920
+ http_response = result.response
921
+ status_code = http_response.status
922
+ response_content = http_response.body
923
+ unless status_code == 200
924
+ error_model = JSON.load(response_content)
925
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
926
+ end
927
+
928
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
929
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
930
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
931
+ # Deserialize Response
932
+ if status_code == 200
933
+ begin
934
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
935
+ result_mapper = {
936
+ client_side_validation: true,
937
+ required: false,
938
+ serialized_name: 'parsed_response',
939
+ type: {
940
+ name: 'Sequence',
941
+ element: {
942
+ client_side_validation: true,
943
+ required: false,
944
+ serialized_name: 'StringElementType',
945
+ type: {
946
+ name: 'String'
947
+ }
948
+ }
949
+ }
950
+ }
951
+ result.body = @client.deserialize(result_mapper, parsed_response)
952
+ rescue Exception => e
953
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
954
+ end
955
+ end
956
+
957
+ result
958
+ end
959
+
960
+ promise.execute
961
+ end
962
+
963
+ #
964
+ # Lists all available web application firewall rule sets.
965
+ #
966
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
967
+ # will be added to the HTTP request.
968
+ #
969
+ # @return [ApplicationGatewayAvailableWafRuleSetsResult] operation results.
970
+ #
971
+ def list_available_waf_rule_sets(custom_headers:nil)
972
+ response = list_available_waf_rule_sets_async(custom_headers:custom_headers).value!
973
+ response.body unless response.nil?
974
+ end
975
+
976
+ #
977
+ # Lists all available web application firewall rule sets.
978
+ #
979
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
980
+ # will be added to the HTTP request.
981
+ #
982
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
983
+ #
984
+ def list_available_waf_rule_sets_with_http_info(custom_headers:nil)
985
+ list_available_waf_rule_sets_async(custom_headers:custom_headers).value!
986
+ end
987
+
988
+ #
989
+ # Lists all available web application firewall rule sets.
990
+ #
991
+ # @param [Hash{String => String}] A hash of custom headers that will be added
992
+ # to the HTTP request.
993
+ #
994
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
995
+ #
996
+ def list_available_waf_rule_sets_async(custom_headers:nil)
997
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
998
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
999
+
1000
+
1001
+ request_headers = {}
1002
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1003
+
1004
+ # Set Headers
1005
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1006
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1007
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets'
1008
+
1009
+ request_url = @base_url || @client.base_url
1010
+
1011
+ options = {
1012
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1013
+ path_params: {'subscriptionId' => @client.subscription_id},
1014
+ query_params: {'api-version' => @client.api_version},
1015
+ headers: request_headers.merge(custom_headers || {}),
1016
+ base_url: request_url
1017
+ }
1018
+ promise = @client.make_request_async(:get, path_template, options)
1019
+
1020
+ promise = promise.then do |result|
1021
+ http_response = result.response
1022
+ status_code = http_response.status
1023
+ response_content = http_response.body
1024
+ unless status_code == 200
1025
+ error_model = JSON.load(response_content)
1026
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1027
+ end
1028
+
1029
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1030
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1031
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1032
+ # Deserialize Response
1033
+ if status_code == 200
1034
+ begin
1035
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1036
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayAvailableWafRuleSetsResult.mapper()
1037
+ result.body = @client.deserialize(result_mapper, parsed_response)
1038
+ rescue Exception => e
1039
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1040
+ end
1041
+ end
1042
+
1043
+ result
1044
+ end
1045
+
1046
+ promise.execute
1047
+ end
1048
+
1049
+ #
1050
+ # Lists available Ssl options for configuring Ssl policy.
1051
+ #
1052
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1053
+ # will be added to the HTTP request.
1054
+ #
1055
+ # @return [ApplicationGatewayAvailableSslOptions] operation results.
1056
+ #
1057
+ def list_available_ssl_options(custom_headers:nil)
1058
+ response = list_available_ssl_options_async(custom_headers:custom_headers).value!
1059
+ response.body unless response.nil?
1060
+ end
1061
+
1062
+ #
1063
+ # Lists available Ssl options for configuring Ssl policy.
1064
+ #
1065
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1066
+ # will be added to the HTTP request.
1067
+ #
1068
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1069
+ #
1070
+ def list_available_ssl_options_with_http_info(custom_headers:nil)
1071
+ list_available_ssl_options_async(custom_headers:custom_headers).value!
1072
+ end
1073
+
1074
+ #
1075
+ # Lists available Ssl options for configuring Ssl policy.
1076
+ #
1077
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1078
+ # to the HTTP request.
1079
+ #
1080
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1081
+ #
1082
+ def list_available_ssl_options_async(custom_headers:nil)
1083
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1084
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1085
+
1086
+
1087
+ request_headers = {}
1088
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1089
+
1090
+ # Set Headers
1091
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1092
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1093
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default'
1094
+
1095
+ request_url = @base_url || @client.base_url
1096
+
1097
+ options = {
1098
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1099
+ path_params: {'subscriptionId' => @client.subscription_id},
1100
+ query_params: {'api-version' => @client.api_version},
1101
+ headers: request_headers.merge(custom_headers || {}),
1102
+ base_url: request_url
1103
+ }
1104
+ promise = @client.make_request_async(:get, path_template, options)
1105
+
1106
+ promise = promise.then do |result|
1107
+ http_response = result.response
1108
+ status_code = http_response.status
1109
+ response_content = http_response.body
1110
+ unless status_code == 200
1111
+ error_model = JSON.load(response_content)
1112
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1113
+ end
1114
+
1115
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1116
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1117
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1118
+ # Deserialize Response
1119
+ if status_code == 200
1120
+ begin
1121
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1122
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayAvailableSslOptions.mapper()
1123
+ result.body = @client.deserialize(result_mapper, parsed_response)
1124
+ rescue Exception => e
1125
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1126
+ end
1127
+ end
1128
+
1129
+ result
1130
+ end
1131
+
1132
+ promise.execute
1133
+ end
1134
+
1135
+ #
1136
+ # Lists all SSL predefined policies for configuring Ssl policy.
1137
+ #
1138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1139
+ # will be added to the HTTP request.
1140
+ #
1141
+ # @return [Array<ApplicationGatewaySslPredefinedPolicy>] operation results.
1142
+ #
1143
+ def list_available_ssl_predefined_policies(custom_headers:nil)
1144
+ first_page = list_available_ssl_predefined_policies_as_lazy(custom_headers:custom_headers)
1145
+ first_page.get_all_items
1146
+ end
1147
+
1148
+ #
1149
+ # Lists all SSL predefined policies for configuring Ssl policy.
1150
+ #
1151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1152
+ # will be added to the HTTP request.
1153
+ #
1154
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1155
+ #
1156
+ def list_available_ssl_predefined_policies_with_http_info(custom_headers:nil)
1157
+ list_available_ssl_predefined_policies_async(custom_headers:custom_headers).value!
1158
+ end
1159
+
1160
+ #
1161
+ # Lists all SSL predefined policies for configuring Ssl policy.
1162
+ #
1163
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1164
+ # to the HTTP request.
1165
+ #
1166
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1167
+ #
1168
+ def list_available_ssl_predefined_policies_async(custom_headers:nil)
1169
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1170
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1171
+
1172
+
1173
+ request_headers = {}
1174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1175
+
1176
+ # Set Headers
1177
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1178
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1179
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies'
1180
+
1181
+ request_url = @base_url || @client.base_url
1182
+
1183
+ options = {
1184
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1185
+ path_params: {'subscriptionId' => @client.subscription_id},
1186
+ query_params: {'api-version' => @client.api_version},
1187
+ headers: request_headers.merge(custom_headers || {}),
1188
+ base_url: request_url
1189
+ }
1190
+ promise = @client.make_request_async(:get, path_template, options)
1191
+
1192
+ promise = promise.then do |result|
1193
+ http_response = result.response
1194
+ status_code = http_response.status
1195
+ response_content = http_response.body
1196
+ unless status_code == 200
1197
+ error_model = JSON.load(response_content)
1198
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1199
+ end
1200
+
1201
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1202
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1203
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1204
+ # Deserialize Response
1205
+ if status_code == 200
1206
+ begin
1207
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1208
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies.mapper()
1209
+ result.body = @client.deserialize(result_mapper, parsed_response)
1210
+ rescue Exception => e
1211
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1212
+ end
1213
+ end
1214
+
1215
+ result
1216
+ end
1217
+
1218
+ promise.execute
1219
+ end
1220
+
1221
+ #
1222
+ # Gets Ssl predefined policy with the specified policy name.
1223
+ #
1224
+ # @param predefined_policy_name [String] Name of Ssl predefined policy.
1225
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1226
+ # will be added to the HTTP request.
1227
+ #
1228
+ # @return [ApplicationGatewaySslPredefinedPolicy] operation results.
1229
+ #
1230
+ def get_ssl_predefined_policy(predefined_policy_name, custom_headers:nil)
1231
+ response = get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:custom_headers).value!
1232
+ response.body unless response.nil?
1233
+ end
1234
+
1235
+ #
1236
+ # Gets Ssl predefined policy with the specified policy name.
1237
+ #
1238
+ # @param predefined_policy_name [String] Name of Ssl predefined policy.
1239
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1240
+ # will be added to the HTTP request.
1241
+ #
1242
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1243
+ #
1244
+ def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_headers:nil)
1245
+ get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:custom_headers).value!
1246
+ end
1247
+
1248
+ #
1249
+ # Gets Ssl predefined policy with the specified policy name.
1250
+ #
1251
+ # @param predefined_policy_name [String] Name of Ssl predefined policy.
1252
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1253
+ # to the HTTP request.
1254
+ #
1255
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1256
+ #
1257
+ def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:nil)
1258
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1259
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1260
+ fail ArgumentError, 'predefined_policy_name is nil' if predefined_policy_name.nil?
1261
+
1262
+
1263
+ request_headers = {}
1264
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1265
+
1266
+ # Set Headers
1267
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1268
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1269
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}'
1270
+
1271
+ request_url = @base_url || @client.base_url
1272
+
1273
+ options = {
1274
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1275
+ path_params: {'subscriptionId' => @client.subscription_id,'predefinedPolicyName' => predefined_policy_name},
1276
+ query_params: {'api-version' => @client.api_version},
1277
+ headers: request_headers.merge(custom_headers || {}),
1278
+ base_url: request_url
1279
+ }
1280
+ promise = @client.make_request_async(:get, path_template, options)
1281
+
1282
+ promise = promise.then do |result|
1283
+ http_response = result.response
1284
+ status_code = http_response.status
1285
+ response_content = http_response.body
1286
+ unless status_code == 200
1287
+ error_model = JSON.load(response_content)
1288
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1289
+ end
1290
+
1291
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1292
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1293
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1294
+ # Deserialize Response
1295
+ if status_code == 200
1296
+ begin
1297
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1298
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewaySslPredefinedPolicy.mapper()
1299
+ result.body = @client.deserialize(result_mapper, parsed_response)
1300
+ rescue Exception => e
1301
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1302
+ end
1303
+ end
1304
+
1305
+ result
1306
+ end
1307
+
1308
+ promise.execute
1309
+ end
1310
+
1311
+ #
1312
+ # Deletes the specified application gateway.
1313
+ #
1314
+ # @param resource_group_name [String] The name of the resource group.
1315
+ # @param application_gateway_name [String] The name of the application gateway.
1316
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1317
+ # will be added to the HTTP request.
1318
+ #
1319
+ #
1320
+ def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil)
1321
+ response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1322
+ nil
1323
+ end
1324
+
1325
+ #
1326
+ # Deletes the specified application gateway.
1327
+ #
1328
+ # @param resource_group_name [String] The name of the resource group.
1329
+ # @param application_gateway_name [String] The name of the application gateway.
1330
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1331
+ # will be added to the HTTP request.
1332
+ #
1333
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1334
+ #
1335
+ def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
1336
+ begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1337
+ end
1338
+
1339
+ #
1340
+ # Deletes the specified application gateway.
1341
+ #
1342
+ # @param resource_group_name [String] The name of the resource group.
1343
+ # @param application_gateway_name [String] The name of the application gateway.
1344
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1345
+ # to the HTTP request.
1346
+ #
1347
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1348
+ #
1349
+ def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil)
1350
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1351
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1352
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1353
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1354
+
1355
+
1356
+ request_headers = {}
1357
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1358
+
1359
+ # Set Headers
1360
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1361
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1362
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
1363
+
1364
+ request_url = @base_url || @client.base_url
1365
+
1366
+ options = {
1367
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1368
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1369
+ query_params: {'api-version' => @client.api_version},
1370
+ headers: request_headers.merge(custom_headers || {}),
1371
+ base_url: request_url
1372
+ }
1373
+ promise = @client.make_request_async(:delete, path_template, options)
1374
+
1375
+ promise = promise.then do |result|
1376
+ http_response = result.response
1377
+ status_code = http_response.status
1378
+ response_content = http_response.body
1379
+ unless status_code == 202 || status_code == 204 || status_code == 200
1380
+ error_model = JSON.load(response_content)
1381
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1382
+ end
1383
+
1384
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1385
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1386
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1387
+
1388
+ result
1389
+ end
1390
+
1391
+ promise.execute
1392
+ end
1393
+
1394
+ #
1395
+ # Creates or updates the specified application gateway.
1396
+ #
1397
+ # @param resource_group_name [String] The name of the resource group.
1398
+ # @param application_gateway_name [String] The name of the application gateway.
1399
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
1400
+ # update application gateway operation.
1401
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1402
+ # will be added to the HTTP request.
1403
+ #
1404
+ # @return [ApplicationGateway] operation results.
1405
+ #
1406
+ def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1407
+ response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
1408
+ response.body unless response.nil?
1409
+ end
1410
+
1411
+ #
1412
+ # Creates or updates the specified application gateway.
1413
+ #
1414
+ # @param resource_group_name [String] The name of the resource group.
1415
+ # @param application_gateway_name [String] The name of the application gateway.
1416
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
1417
+ # update application gateway operation.
1418
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1419
+ # will be added to the HTTP request.
1420
+ #
1421
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1422
+ #
1423
+ def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1424
+ begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value!
1425
+ end
1426
+
1427
+ #
1428
+ # Creates or updates the specified application gateway.
1429
+ #
1430
+ # @param resource_group_name [String] The name of the resource group.
1431
+ # @param application_gateway_name [String] The name of the application gateway.
1432
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
1433
+ # update application gateway operation.
1434
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1435
+ # to the HTTP request.
1436
+ #
1437
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1438
+ #
1439
+ def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil)
1440
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1441
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1442
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1443
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1444
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1445
+
1446
+
1447
+ request_headers = {}
1448
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1449
+
1450
+ # Set Headers
1451
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1452
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1453
+
1454
+ # Serialize Request
1455
+ request_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGateway.mapper()
1456
+ request_content = @client.serialize(request_mapper, parameters)
1457
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1458
+
1459
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
1460
+
1461
+ request_url = @base_url || @client.base_url
1462
+
1463
+ options = {
1464
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1465
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1466
+ query_params: {'api-version' => @client.api_version},
1467
+ body: request_content,
1468
+ headers: request_headers.merge(custom_headers || {}),
1469
+ base_url: request_url
1470
+ }
1471
+ promise = @client.make_request_async(:put, path_template, options)
1472
+
1473
+ promise = promise.then do |result|
1474
+ http_response = result.response
1475
+ status_code = http_response.status
1476
+ response_content = http_response.body
1477
+ unless status_code == 201 || status_code == 200
1478
+ error_model = JSON.load(response_content)
1479
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1480
+ end
1481
+
1482
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1483
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1484
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1485
+ # Deserialize Response
1486
+ if status_code == 201
1487
+ begin
1488
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1489
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGateway.mapper()
1490
+ result.body = @client.deserialize(result_mapper, parsed_response)
1491
+ rescue Exception => e
1492
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1493
+ end
1494
+ end
1495
+ # Deserialize Response
1496
+ if status_code == 200
1497
+ begin
1498
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1499
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGateway.mapper()
1500
+ result.body = @client.deserialize(result_mapper, parsed_response)
1501
+ rescue Exception => e
1502
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1503
+ end
1504
+ end
1505
+
1506
+ result
1507
+ end
1508
+
1509
+ promise.execute
1510
+ end
1511
+
1512
+ #
1513
+ # Starts the specified application gateway.
1514
+ #
1515
+ # @param resource_group_name [String] The name of the resource group.
1516
+ # @param application_gateway_name [String] The name of the application gateway.
1517
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1518
+ # will be added to the HTTP request.
1519
+ #
1520
+ #
1521
+ def begin_start(resource_group_name, application_gateway_name, custom_headers:nil)
1522
+ response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1523
+ nil
1524
+ end
1525
+
1526
+ #
1527
+ # Starts the specified application gateway.
1528
+ #
1529
+ # @param resource_group_name [String] The name of the resource group.
1530
+ # @param application_gateway_name [String] The name of the application gateway.
1531
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1532
+ # will be added to the HTTP request.
1533
+ #
1534
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1535
+ #
1536
+ def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
1537
+ begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1538
+ end
1539
+
1540
+ #
1541
+ # Starts the specified application gateway.
1542
+ #
1543
+ # @param resource_group_name [String] The name of the resource group.
1544
+ # @param application_gateway_name [String] The name of the application gateway.
1545
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1546
+ # to the HTTP request.
1547
+ #
1548
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1549
+ #
1550
+ def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil)
1551
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1552
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1553
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1554
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1555
+
1556
+
1557
+ request_headers = {}
1558
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1559
+
1560
+ # Set Headers
1561
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1562
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1563
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start'
1564
+
1565
+ request_url = @base_url || @client.base_url
1566
+
1567
+ options = {
1568
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1569
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1570
+ query_params: {'api-version' => @client.api_version},
1571
+ headers: request_headers.merge(custom_headers || {}),
1572
+ base_url: request_url
1573
+ }
1574
+ promise = @client.make_request_async(:post, path_template, options)
1575
+
1576
+ promise = promise.then do |result|
1577
+ http_response = result.response
1578
+ status_code = http_response.status
1579
+ response_content = http_response.body
1580
+ unless status_code == 200 || status_code == 202
1581
+ error_model = JSON.load(response_content)
1582
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1583
+ end
1584
+
1585
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1586
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1587
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1588
+
1589
+ result
1590
+ end
1591
+
1592
+ promise.execute
1593
+ end
1594
+
1595
+ #
1596
+ # Stops the specified application gateway in a resource group.
1597
+ #
1598
+ # @param resource_group_name [String] The name of the resource group.
1599
+ # @param application_gateway_name [String] The name of the application gateway.
1600
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1601
+ # will be added to the HTTP request.
1602
+ #
1603
+ #
1604
+ def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil)
1605
+ response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1606
+ nil
1607
+ end
1608
+
1609
+ #
1610
+ # Stops the specified application gateway in a resource group.
1611
+ #
1612
+ # @param resource_group_name [String] The name of the resource group.
1613
+ # @param application_gateway_name [String] The name of the application gateway.
1614
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1615
+ # will be added to the HTTP request.
1616
+ #
1617
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1618
+ #
1619
+ def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil)
1620
+ begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value!
1621
+ end
1622
+
1623
+ #
1624
+ # Stops the specified application gateway in a resource group.
1625
+ #
1626
+ # @param resource_group_name [String] The name of the resource group.
1627
+ # @param application_gateway_name [String] The name of the application gateway.
1628
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1629
+ # to the HTTP request.
1630
+ #
1631
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1632
+ #
1633
+ def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil)
1634
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1635
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1636
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1637
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1638
+
1639
+
1640
+ request_headers = {}
1641
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1642
+
1643
+ # Set Headers
1644
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1645
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1646
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop'
1647
+
1648
+ request_url = @base_url || @client.base_url
1649
+
1650
+ options = {
1651
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1652
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1653
+ query_params: {'api-version' => @client.api_version},
1654
+ headers: request_headers.merge(custom_headers || {}),
1655
+ base_url: request_url
1656
+ }
1657
+ promise = @client.make_request_async(:post, path_template, options)
1658
+
1659
+ promise = promise.then do |result|
1660
+ http_response = result.response
1661
+ status_code = http_response.status
1662
+ response_content = http_response.body
1663
+ unless status_code == 200 || status_code == 202
1664
+ error_model = JSON.load(response_content)
1665
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1666
+ end
1667
+
1668
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1669
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1670
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1671
+
1672
+ result
1673
+ end
1674
+
1675
+ promise.execute
1676
+ end
1677
+
1678
+ #
1679
+ # Gets the backend health of the specified application gateway in a resource
1680
+ # group.
1681
+ #
1682
+ # @param resource_group_name [String] The name of the resource group.
1683
+ # @param application_gateway_name [String] The name of the application gateway.
1684
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1685
+ # referenced in backend health.
1686
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1687
+ # will be added to the HTTP request.
1688
+ #
1689
+ # @return [ApplicationGatewayBackendHealth] operation results.
1690
+ #
1691
+ def begin_backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
1692
+ response = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value!
1693
+ response.body unless response.nil?
1694
+ end
1695
+
1696
+ #
1697
+ # Gets the backend health of the specified application gateway in a resource
1698
+ # group.
1699
+ #
1700
+ # @param resource_group_name [String] The name of the resource group.
1701
+ # @param application_gateway_name [String] The name of the application gateway.
1702
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1703
+ # referenced in backend health.
1704
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1705
+ # will be added to the HTTP request.
1706
+ #
1707
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1708
+ #
1709
+ def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
1710
+ begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value!
1711
+ end
1712
+
1713
+ #
1714
+ # Gets the backend health of the specified application gateway in a resource
1715
+ # group.
1716
+ #
1717
+ # @param resource_group_name [String] The name of the resource group.
1718
+ # @param application_gateway_name [String] The name of the application gateway.
1719
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1720
+ # referenced in backend health.
1721
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1722
+ # to the HTTP request.
1723
+ #
1724
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1725
+ #
1726
+ def begin_backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil)
1727
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1728
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1729
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1730
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1731
+
1732
+
1733
+ request_headers = {}
1734
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1735
+
1736
+ # Set Headers
1737
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1738
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1739
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth'
1740
+
1741
+ request_url = @base_url || @client.base_url
1742
+
1743
+ options = {
1744
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1745
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1746
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
1747
+ headers: request_headers.merge(custom_headers || {}),
1748
+ base_url: request_url
1749
+ }
1750
+ promise = @client.make_request_async(:post, path_template, options)
1751
+
1752
+ promise = promise.then do |result|
1753
+ http_response = result.response
1754
+ status_code = http_response.status
1755
+ response_content = http_response.body
1756
+ unless status_code == 200 || status_code == 202
1757
+ error_model = JSON.load(response_content)
1758
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1759
+ end
1760
+
1761
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1762
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1763
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1764
+ # Deserialize Response
1765
+ if status_code == 200
1766
+ begin
1767
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1768
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayBackendHealth.mapper()
1769
+ result.body = @client.deserialize(result_mapper, parsed_response)
1770
+ rescue Exception => e
1771
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1772
+ end
1773
+ end
1774
+
1775
+ result
1776
+ end
1777
+
1778
+ promise.execute
1779
+ end
1780
+
1781
+ #
1782
+ # Gets the backend health for given combination of backend pool and http
1783
+ # setting of the specified application gateway in a resource group.
1784
+ #
1785
+ # @param resource_group_name [String] The name of the resource group.
1786
+ # @param application_gateway_name [String] The name of the application gateway.
1787
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
1788
+ # on-demand test probe operation.
1789
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1790
+ # referenced in backend health.
1791
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1792
+ # will be added to the HTTP request.
1793
+ #
1794
+ # @return [ApplicationGatewayBackendHealthOnDemand] operation results.
1795
+ #
1796
+ def begin_backend_health_on_demand(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
1797
+ response = begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers).value!
1798
+ response.body unless response.nil?
1799
+ end
1800
+
1801
+ #
1802
+ # Gets the backend health for given combination of backend pool and http
1803
+ # setting of the specified application gateway in a resource group.
1804
+ #
1805
+ # @param resource_group_name [String] The name of the resource group.
1806
+ # @param application_gateway_name [String] The name of the application gateway.
1807
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
1808
+ # on-demand test probe operation.
1809
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1810
+ # referenced in backend health.
1811
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1812
+ # will be added to the HTTP request.
1813
+ #
1814
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1815
+ #
1816
+ def begin_backend_health_on_demand_with_http_info(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
1817
+ begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:expand, custom_headers:custom_headers).value!
1818
+ end
1819
+
1820
+ #
1821
+ # Gets the backend health for given combination of backend pool and http
1822
+ # setting of the specified application gateway in a resource group.
1823
+ #
1824
+ # @param resource_group_name [String] The name of the resource group.
1825
+ # @param application_gateway_name [String] The name of the application gateway.
1826
+ # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for
1827
+ # on-demand test probe operation.
1828
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
1829
+ # referenced in backend health.
1830
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1831
+ # to the HTTP request.
1832
+ #
1833
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1834
+ #
1835
+ def begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand:nil, custom_headers:nil)
1836
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1837
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
1838
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1839
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1840
+ fail ArgumentError, 'probe_request is nil' if probe_request.nil?
1841
+
1842
+
1843
+ request_headers = {}
1844
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1845
+
1846
+ # Set Headers
1847
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1848
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1849
+
1850
+ # Serialize Request
1851
+ request_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayOnDemandProbe.mapper()
1852
+ request_content = @client.serialize(request_mapper, probe_request)
1853
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1854
+
1855
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand'
1856
+
1857
+ request_url = @base_url || @client.base_url
1858
+
1859
+ options = {
1860
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1861
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
1862
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
1863
+ body: request_content,
1864
+ headers: request_headers.merge(custom_headers || {}),
1865
+ base_url: request_url
1866
+ }
1867
+ promise = @client.make_request_async(:post, path_template, options)
1868
+
1869
+ promise = promise.then do |result|
1870
+ http_response = result.response
1871
+ status_code = http_response.status
1872
+ response_content = http_response.body
1873
+ unless status_code == 200 || status_code == 202
1874
+ error_model = JSON.load(response_content)
1875
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1876
+ end
1877
+
1878
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1879
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1880
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1881
+ # Deserialize Response
1882
+ if status_code == 200
1883
+ begin
1884
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1885
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayBackendHealthOnDemand.mapper()
1886
+ result.body = @client.deserialize(result_mapper, parsed_response)
1887
+ rescue Exception => e
1888
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1889
+ end
1890
+ end
1891
+
1892
+ result
1893
+ end
1894
+
1895
+ promise.execute
1896
+ end
1897
+
1898
+ #
1899
+ # Lists all application gateways in a resource group.
1900
+ #
1901
+ # @param next_page_link [String] The NextLink from the previous successful call
1902
+ # to List operation.
1903
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1904
+ # will be added to the HTTP request.
1905
+ #
1906
+ # @return [ApplicationGatewayListResult] operation results.
1907
+ #
1908
+ def list_next(next_page_link, custom_headers:nil)
1909
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1910
+ response.body unless response.nil?
1911
+ end
1912
+
1913
+ #
1914
+ # Lists all application gateways in a resource group.
1915
+ #
1916
+ # @param next_page_link [String] The NextLink from the previous successful call
1917
+ # to List operation.
1918
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1919
+ # will be added to the HTTP request.
1920
+ #
1921
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1922
+ #
1923
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1924
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1925
+ end
1926
+
1927
+ #
1928
+ # Lists all application gateways in a resource group.
1929
+ #
1930
+ # @param next_page_link [String] The NextLink from the previous successful call
1931
+ # to List operation.
1932
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1933
+ # to the HTTP request.
1934
+ #
1935
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1936
+ #
1937
+ def list_next_async(next_page_link, custom_headers:nil)
1938
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1939
+
1940
+
1941
+ request_headers = {}
1942
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1943
+
1944
+ # Set Headers
1945
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1946
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1947
+ path_template = '{nextLink}'
1948
+
1949
+ request_url = @base_url || @client.base_url
1950
+
1951
+ options = {
1952
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1953
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1954
+ headers: request_headers.merge(custom_headers || {}),
1955
+ base_url: request_url
1956
+ }
1957
+ promise = @client.make_request_async(:get, path_template, options)
1958
+
1959
+ promise = promise.then do |result|
1960
+ http_response = result.response
1961
+ status_code = http_response.status
1962
+ response_content = http_response.body
1963
+ unless status_code == 200
1964
+ error_model = JSON.load(response_content)
1965
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1966
+ end
1967
+
1968
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1969
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1970
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1971
+ # Deserialize Response
1972
+ if status_code == 200
1973
+ begin
1974
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1975
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayListResult.mapper()
1976
+ result.body = @client.deserialize(result_mapper, parsed_response)
1977
+ rescue Exception => e
1978
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1979
+ end
1980
+ end
1981
+
1982
+ result
1983
+ end
1984
+
1985
+ promise.execute
1986
+ end
1987
+
1988
+ #
1989
+ # Gets all the application gateways in a subscription.
1990
+ #
1991
+ # @param next_page_link [String] The NextLink from the previous successful call
1992
+ # to List operation.
1993
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1994
+ # will be added to the HTTP request.
1995
+ #
1996
+ # @return [ApplicationGatewayListResult] operation results.
1997
+ #
1998
+ def list_all_next(next_page_link, custom_headers:nil)
1999
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2000
+ response.body unless response.nil?
2001
+ end
2002
+
2003
+ #
2004
+ # Gets all the application gateways in a subscription.
2005
+ #
2006
+ # @param next_page_link [String] The NextLink from the previous successful call
2007
+ # to List operation.
2008
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2009
+ # will be added to the HTTP request.
2010
+ #
2011
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2012
+ #
2013
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
2014
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2015
+ end
2016
+
2017
+ #
2018
+ # Gets all the application gateways in a subscription.
2019
+ #
2020
+ # @param next_page_link [String] The NextLink from the previous successful call
2021
+ # to List operation.
2022
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2023
+ # to the HTTP request.
2024
+ #
2025
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2026
+ #
2027
+ def list_all_next_async(next_page_link, custom_headers:nil)
2028
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2029
+
2030
+
2031
+ request_headers = {}
2032
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2033
+
2034
+ # Set Headers
2035
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2036
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2037
+ path_template = '{nextLink}'
2038
+
2039
+ request_url = @base_url || @client.base_url
2040
+
2041
+ options = {
2042
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2043
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2044
+ headers: request_headers.merge(custom_headers || {}),
2045
+ base_url: request_url
2046
+ }
2047
+ promise = @client.make_request_async(:get, path_template, options)
2048
+
2049
+ promise = promise.then do |result|
2050
+ http_response = result.response
2051
+ status_code = http_response.status
2052
+ response_content = http_response.body
2053
+ unless status_code == 200
2054
+ error_model = JSON.load(response_content)
2055
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2056
+ end
2057
+
2058
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2059
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2060
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2061
+ # Deserialize Response
2062
+ if status_code == 200
2063
+ begin
2064
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2065
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayListResult.mapper()
2066
+ result.body = @client.deserialize(result_mapper, parsed_response)
2067
+ rescue Exception => e
2068
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2069
+ end
2070
+ end
2071
+
2072
+ result
2073
+ end
2074
+
2075
+ promise.execute
2076
+ end
2077
+
2078
+ #
2079
+ # Lists all SSL predefined policies for configuring Ssl policy.
2080
+ #
2081
+ # @param next_page_link [String] The NextLink from the previous successful call
2082
+ # to List operation.
2083
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2084
+ # will be added to the HTTP request.
2085
+ #
2086
+ # @return [ApplicationGatewayAvailableSslPredefinedPolicies] operation results.
2087
+ #
2088
+ def list_available_ssl_predefined_policies_next(next_page_link, custom_headers:nil)
2089
+ response = list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers).value!
2090
+ response.body unless response.nil?
2091
+ end
2092
+
2093
+ #
2094
+ # Lists all SSL predefined policies for configuring Ssl policy.
2095
+ #
2096
+ # @param next_page_link [String] The NextLink from the previous successful call
2097
+ # to List operation.
2098
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2099
+ # will be added to the HTTP request.
2100
+ #
2101
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2102
+ #
2103
+ def list_available_ssl_predefined_policies_next_with_http_info(next_page_link, custom_headers:nil)
2104
+ list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers).value!
2105
+ end
2106
+
2107
+ #
2108
+ # Lists all SSL predefined policies for configuring Ssl policy.
2109
+ #
2110
+ # @param next_page_link [String] The NextLink from the previous successful call
2111
+ # to List operation.
2112
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2113
+ # to the HTTP request.
2114
+ #
2115
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2116
+ #
2117
+ def list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:nil)
2118
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2119
+
2120
+
2121
+ request_headers = {}
2122
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2123
+
2124
+ # Set Headers
2125
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2126
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2127
+ path_template = '{nextLink}'
2128
+
2129
+ request_url = @base_url || @client.base_url
2130
+
2131
+ options = {
2132
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2133
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2134
+ headers: request_headers.merge(custom_headers || {}),
2135
+ base_url: request_url
2136
+ }
2137
+ promise = @client.make_request_async(:get, path_template, options)
2138
+
2139
+ promise = promise.then do |result|
2140
+ http_response = result.response
2141
+ status_code = http_response.status
2142
+ response_content = http_response.body
2143
+ unless status_code == 200
2144
+ error_model = JSON.load(response_content)
2145
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2146
+ end
2147
+
2148
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2149
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2150
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2151
+ # Deserialize Response
2152
+ if status_code == 200
2153
+ begin
2154
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2155
+ result_mapper = Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies.mapper()
2156
+ result.body = @client.deserialize(result_mapper, parsed_response)
2157
+ rescue Exception => e
2158
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2159
+ end
2160
+ end
2161
+
2162
+ result
2163
+ end
2164
+
2165
+ promise.execute
2166
+ end
2167
+
2168
+ #
2169
+ # Lists all application gateways in a resource group.
2170
+ #
2171
+ # @param resource_group_name [String] The name of the resource group.
2172
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2173
+ # will be added to the HTTP request.
2174
+ #
2175
+ # @return [ApplicationGatewayListResult] which provide lazy access to pages of
2176
+ # the response.
2177
+ #
2178
+ def list_as_lazy(resource_group_name, custom_headers:nil)
2179
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
2180
+ unless response.nil?
2181
+ page = response.body
2182
+ page.next_method = Proc.new do |next_page_link|
2183
+ list_next_async(next_page_link, custom_headers:custom_headers)
2184
+ end
2185
+ page
2186
+ end
2187
+ end
2188
+
2189
+ #
2190
+ # Gets all the application gateways in a subscription.
2191
+ #
2192
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2193
+ # will be added to the HTTP request.
2194
+ #
2195
+ # @return [ApplicationGatewayListResult] which provide lazy access to pages of
2196
+ # the response.
2197
+ #
2198
+ def list_all_as_lazy(custom_headers:nil)
2199
+ response = list_all_async(custom_headers:custom_headers).value!
2200
+ unless response.nil?
2201
+ page = response.body
2202
+ page.next_method = Proc.new do |next_page_link|
2203
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
2204
+ end
2205
+ page
2206
+ end
2207
+ end
2208
+
2209
+ #
2210
+ # Lists all SSL predefined policies for configuring Ssl policy.
2211
+ #
2212
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2213
+ # will be added to the HTTP request.
2214
+ #
2215
+ # @return [ApplicationGatewayAvailableSslPredefinedPolicies] which provide lazy
2216
+ # access to pages of the response.
2217
+ #
2218
+ def list_available_ssl_predefined_policies_as_lazy(custom_headers:nil)
2219
+ response = list_available_ssl_predefined_policies_async(custom_headers:custom_headers).value!
2220
+ unless response.nil?
2221
+ page = response.body
2222
+ page.next_method = Proc.new do |next_page_link|
2223
+ list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers)
2224
+ end
2225
+ page
2226
+ end
2227
+ end
2228
+
2229
+ end
2230
+ end