azure_mgmt_network 0.18.9 → 0.19.0

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