azure_mgmt_network 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +129 -78
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +9 -9
  4. data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +1 -1
  5. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +1 -1
  6. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +1 -1
  7. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +1 -1
  8. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +1 -1
  9. data/lib/generated/azure_mgmt_network/load_balancers.rb +6 -6
  10. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +5 -5
  11. data/lib/generated/azure_mgmt_network/models/access.rb +1 -1
  12. data/lib/generated/azure_mgmt_network/models/address_space.rb +1 -1
  13. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +1 -1
  14. data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +1 -1
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -1
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -1
  17. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +1 -1
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +1 -1
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +1 -1
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +1 -1
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +1 -1
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +13 -1
  23. data/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +61 -0
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +1 -1
  26. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +1 -1
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -1
  28. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -1
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +1 -1
  30. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +1 -1
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  32. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +1 -1
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +1 -1
  34. data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  35. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -1
  36. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  37. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +1 -1
  38. data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  39. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -1
  40. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +1 -1
  41. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
  42. data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  43. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +1 -1
  44. data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +3 -2
  45. data/lib/generated/azure_mgmt_network/models/association_type.rb +16 -0
  46. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +1 -1
  47. data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  48. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +64 -0
  49. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +1 -1
  50. data/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  51. data/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb +124 -0
  52. data/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +52 -0
  53. data/lib/generated/azure_mgmt_network/models/bgp_service_community.rb +1 -1
  54. data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +1 -1
  55. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +1 -1
  56. data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +1 -1
  57. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
  58. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +1 -1
  59. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +1 -1
  60. data/lib/generated/azure_mgmt_network/models/direction.rb +16 -0
  61. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +1 -1
  62. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +1 -1
  63. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +1 -1
  64. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +1 -1
  65. data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +1 -1
  66. data/lib/generated/azure_mgmt_network/models/effective_route.rb +1 -1
  67. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +1 -1
  68. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
  69. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
  70. data/lib/generated/azure_mgmt_network/models/error.rb +93 -0
  71. data/lib/generated/azure_mgmt_network/models/error_details.rb +65 -0
  72. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +1 -1
  73. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +1 -1
  74. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -1
  75. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +1 -1
  76. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +12 -12
  77. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  78. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +1 -1
  79. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +1 -1
  80. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  81. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  82. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +1 -1
  83. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +1 -1
  84. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +1 -1
  85. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +1 -1
  86. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  87. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  88. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +1 -1
  89. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +1 -1
  90. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +1 -1
  91. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +1 -1
  92. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +1 -1
  93. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +1 -1
  94. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +1 -1
  95. data/lib/generated/azure_mgmt_network/models/flow_log_information.rb +76 -0
  96. data/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +45 -0
  97. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +1 -1
  98. data/lib/generated/azure_mgmt_network/models/gateway_route.rb +112 -0
  99. data/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb +52 -0
  100. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +1 -1
  101. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +1 -1
  102. data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +1 -1
  103. data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  104. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +1 -1
  105. data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
  106. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +1 -1
  107. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +1 -1
  108. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +1 -1
  109. data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
  110. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +1 -1
  111. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +1 -1
  112. data/lib/generated/azure_mgmt_network/models/network_interface.rb +1 -1
  113. data/lib/generated/azure_mgmt_network/models/network_interface_association.rb +63 -0
  114. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +1 -1
  115. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +1 -1
  116. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +1 -1
  117. data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  118. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +1 -1
  119. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +1 -1
  120. data/lib/generated/azure_mgmt_network/models/network_watcher.rb +101 -0
  121. data/lib/generated/azure_mgmt_network/models/network_watcher_list_result.rb +52 -0
  122. data/lib/generated/azure_mgmt_network/models/next_hop_parameters.rb +77 -0
  123. data/lib/generated/azure_mgmt_network/models/next_hop_result.rb +69 -0
  124. data/lib/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  125. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +1 -1
  126. data/lib/generated/azure_mgmt_network/models/packet_capture.rb +110 -0
  127. data/lib/generated/azure_mgmt_network/models/packet_capture_filter.rb +101 -0
  128. data/lib/generated/azure_mgmt_network/models/packet_capture_list_result.rb +53 -0
  129. data/lib/generated/azure_mgmt_network/models/packet_capture_parameters.rb +110 -0
  130. data/lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +103 -0
  131. data/lib/generated/azure_mgmt_network/models/packet_capture_result.rb +156 -0
  132. data/lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +70 -0
  133. data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +1 -1
  134. data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +1 -1
  135. data/lib/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  136. data/lib/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  137. data/lib/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  138. data/lib/generated/azure_mgmt_network/models/probe.rb +1 -1
  139. data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
  140. data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
  141. data/lib/generated/azure_mgmt_network/models/protocol.rb +16 -0
  142. data/lib/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  143. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +1 -1
  144. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
  145. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +1 -1
  146. data/lib/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +45 -0
  147. data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +1 -1
  148. data/lib/generated/azure_mgmt_network/models/retention_policy_parameters.rb +58 -0
  149. data/lib/generated/azure_mgmt_network/models/route.rb +1 -1
  150. data/lib/generated/azure_mgmt_network/models/route_filter.rb +1 -1
  151. data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +1 -1
  152. data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +1 -1
  153. data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +1 -1
  154. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +1 -1
  155. data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  156. data/lib/generated/azure_mgmt_network/models/route_table.rb +1 -1
  157. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +1 -1
  158. data/lib/generated/azure_mgmt_network/models/security_group_network_interface.rb +55 -0
  159. data/lib/generated/azure_mgmt_network/models/security_group_view_parameters.rb +44 -0
  160. data/lib/generated/azure_mgmt_network/models/security_group_view_result.rb +53 -0
  161. data/lib/generated/azure_mgmt_network/models/security_rule.rb +1 -1
  162. data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
  163. data/lib/generated/azure_mgmt_network/models/security_rule_associations.rb +94 -0
  164. data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  165. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +1 -1
  166. data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  167. data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  168. data/lib/generated/azure_mgmt_network/models/subnet.rb +1 -1
  169. data/lib/generated/azure_mgmt_network/models/subnet_association.rb +63 -0
  170. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +1 -1
  171. data/lib/generated/azure_mgmt_network/models/topology.rb +86 -0
  172. data/lib/generated/azure_mgmt_network/models/topology_association.rb +67 -0
  173. data/lib/generated/azure_mgmt_network/models/topology_parameters.rb +45 -0
  174. data/lib/generated/azure_mgmt_network/models/topology_resource.rb +83 -0
  175. data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
  176. data/lib/generated/azure_mgmt_network/models/troubleshooting_details.rb +93 -0
  177. data/lib/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +66 -0
  178. data/lib/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +76 -0
  179. data/lib/generated/azure_mgmt_network/models/troubleshooting_result.rb +83 -0
  180. data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +1 -1
  181. data/lib/generated/azure_mgmt_network/models/usage.rb +1 -1
  182. data/lib/generated/azure_mgmt_network/models/usage_name.rb +1 -1
  183. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +1 -1
  184. data/lib/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +124 -0
  185. data/lib/generated/azure_mgmt_network/models/verification_ipflow_result.rb +56 -0
  186. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +1 -1
  187. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +1 -1
  188. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +1 -1
  189. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +1 -1
  190. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  191. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  192. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +1 -1
  193. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +1 -1
  194. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +1 -1
  195. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
  196. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
  197. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  198. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +1 -1
  199. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +1 -1
  200. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +1 -1
  201. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
  202. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +1 -1
  203. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +1 -1
  204. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +1 -1
  205. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +1 -1
  206. data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
  207. data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
  208. data/lib/generated/azure_mgmt_network/network_interfaces.rb +8 -8
  209. data/lib/generated/azure_mgmt_network/network_management_client.rb +59 -51
  210. data/lib/generated/azure_mgmt_network/network_security_groups.rb +6 -6
  211. data/lib/generated/azure_mgmt_network/network_watchers.rb +1804 -0
  212. data/lib/generated/azure_mgmt_network/packet_captures.rb +781 -0
  213. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +6 -6
  214. data/lib/generated/azure_mgmt_network/route_filter_rules.rb +1 -1
  215. data/lib/generated/azure_mgmt_network/route_filters.rb +1 -1
  216. data/lib/generated/azure_mgmt_network/route_tables.rb +6 -6
  217. data/lib/generated/azure_mgmt_network/routes.rb +5 -5
  218. data/lib/generated/azure_mgmt_network/security_rules.rb +5 -5
  219. data/lib/generated/azure_mgmt_network/subnets.rb +5 -5
  220. data/lib/generated/azure_mgmt_network/usages.rb +2 -2
  221. data/lib/generated/azure_mgmt_network/version.rb +2 -2
  222. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +8 -8
  223. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +440 -7
  224. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +5 -5
  225. data/lib/generated/azure_mgmt_network/virtual_networks.rb +7 -7
  226. metadata +53 -2
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -105,7 +105,7 @@ module Azure::ARM::Network
105
105
  def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil)
106
106
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
107
107
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
108
- api_version = '2016-09-01'
108
+ api_version = '2016-12-01'
109
109
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
110
110
 
111
111
 
@@ -234,7 +234,7 @@ module Azure::ARM::Network
234
234
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
235
235
  #
236
236
  def list_all_async(custom_headers = nil)
237
- api_version = '2016-09-01'
237
+ api_version = '2016-12-01'
238
238
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
239
239
 
240
240
 
@@ -321,7 +321,7 @@ module Azure::ARM::Network
321
321
  #
322
322
  def list_async(resource_group_name, custom_headers = nil)
323
323
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
324
- api_version = '2016-09-01'
324
+ api_version = '2016-12-01'
325
325
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
326
326
 
327
327
 
@@ -411,7 +411,7 @@ module Azure::ARM::Network
411
411
  def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil)
412
412
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
413
413
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
414
- api_version = '2016-09-01'
414
+ api_version = '2016-12-01'
415
415
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
416
416
 
417
417
 
@@ -499,7 +499,7 @@ module Azure::ARM::Network
499
499
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
500
500
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
501
501
  fail ArgumentError, 'parameters is nil' if parameters.nil?
502
- api_version = '2016-09-01'
502
+ api_version = '2016-12-01'
503
503
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
504
504
 
505
505
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -105,7 +105,7 @@ module Azure::ARM::Network
105
105
  def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil)
106
106
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
107
107
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
108
- api_version = '2016-09-01'
108
+ api_version = '2016-12-01'
109
109
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
110
110
 
111
111
 
@@ -238,7 +238,7 @@ module Azure::ARM::Network
238
238
  #
239
239
  def list_async(resource_group_name, custom_headers = nil)
240
240
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
241
- api_version = '2016-09-01'
241
+ api_version = '2016-12-01'
242
242
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
243
243
 
244
244
 
@@ -321,7 +321,7 @@ module Azure::ARM::Network
321
321
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
322
322
  #
323
323
  def list_all_async(custom_headers = nil)
324
- api_version = '2016-09-01'
324
+ api_version = '2016-12-01'
325
325
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
326
326
 
327
327
 
@@ -411,7 +411,7 @@ module Azure::ARM::Network
411
411
  def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil)
412
412
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
413
413
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
414
- api_version = '2016-09-01'
414
+ api_version = '2016-12-01'
415
415
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
416
416
 
417
417
 
@@ -499,7 +499,7 @@ module Azure::ARM::Network
499
499
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
500
500
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
501
501
  fail ArgumentError, 'parameters is nil' if parameters.nil?
502
- api_version = '2016-09-01'
502
+ api_version = '2016-12-01'
503
503
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
504
504
 
505
505
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -108,7 +108,7 @@ module Azure::ARM::Network
108
108
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
109
109
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
110
110
  fail ArgumentError, 'route_name is nil' if route_name.nil?
111
- api_version = '2016-09-01'
111
+ api_version = '2016-12-01'
112
112
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
113
113
 
114
114
 
@@ -247,7 +247,7 @@ module Azure::ARM::Network
247
247
  def list_async(resource_group_name, route_table_name, custom_headers = nil)
248
248
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
249
249
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
250
- api_version = '2016-09-01'
250
+ api_version = '2016-12-01'
251
251
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
252
252
 
253
253
 
@@ -341,7 +341,7 @@ module Azure::ARM::Network
341
341
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
342
342
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
343
343
  fail ArgumentError, 'route_name is nil' if route_name.nil?
344
- api_version = '2016-09-01'
344
+ api_version = '2016-12-01'
345
345
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
346
346
 
347
347
 
@@ -433,7 +433,7 @@ module Azure::ARM::Network
433
433
  fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
434
434
  fail ArgumentError, 'route_name is nil' if route_name.nil?
435
435
  fail ArgumentError, 'route_parameters is nil' if route_parameters.nil?
436
- api_version = '2016-09-01'
436
+ api_version = '2016-12-01'
437
437
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
438
438
 
439
439
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -113,7 +113,7 @@ module Azure::ARM::Network
113
113
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
114
114
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
115
115
  fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
116
- api_version = '2016-09-01'
116
+ api_version = '2016-12-01'
117
117
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
118
118
 
119
119
 
@@ -257,7 +257,7 @@ module Azure::ARM::Network
257
257
  def list_async(resource_group_name, network_security_group_name, custom_headers = nil)
258
258
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
259
259
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
260
- api_version = '2016-09-01'
260
+ api_version = '2016-12-01'
261
261
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
262
262
 
263
263
 
@@ -354,7 +354,7 @@ module Azure::ARM::Network
354
354
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
355
355
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
356
356
  fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
357
- api_version = '2016-09-01'
357
+ api_version = '2016-12-01'
358
358
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
359
359
 
360
360
 
@@ -449,7 +449,7 @@ module Azure::ARM::Network
449
449
  fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
450
450
  fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
451
451
  fail ArgumentError, 'security_rule_parameters is nil' if security_rule_parameters.nil?
452
- api_version = '2016-09-01'
452
+ api_version = '2016-12-01'
453
453
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
454
454
 
455
455
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -111,7 +111,7 @@ module Azure::ARM::Network
111
111
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
112
112
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
113
113
  fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
114
- api_version = '2016-09-01'
114
+ api_version = '2016-12-01'
115
115
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
116
116
 
117
117
 
@@ -250,7 +250,7 @@ module Azure::ARM::Network
250
250
  def list_async(resource_group_name, virtual_network_name, custom_headers = nil)
251
251
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
252
252
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
253
- api_version = '2016-09-01'
253
+ api_version = '2016-12-01'
254
254
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
255
255
 
256
256
 
@@ -344,7 +344,7 @@ module Azure::ARM::Network
344
344
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
345
345
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
346
346
  fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
347
- api_version = '2016-09-01'
347
+ api_version = '2016-12-01'
348
348
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
349
349
 
350
350
 
@@ -436,7 +436,7 @@ module Azure::ARM::Network
436
436
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
437
437
  fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
438
438
  fail ArgumentError, 'subnet_parameters is nil' if subnet_parameters.nil?
439
- api_version = '2016-09-01'
439
+ api_version = '2016-12-01'
440
440
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
441
441
 
442
442
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -60,7 +60,7 @@ module Azure::ARM::Network
60
60
  #
61
61
  def list_async(location, custom_headers = nil)
62
62
  fail ArgumentError, 'location is nil' if location.nil?
63
- api_version = '2016-09-01'
63
+ api_version = '2016-12-01'
64
64
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
65
 
66
66
 
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
- VERSION = '0.9.0'
7
+ VERSION = '0.10.0'
8
8
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -116,7 +116,7 @@ module Azure::ARM::Network
116
116
  def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
117
117
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
118
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
119
- api_version = '2016-09-01'
119
+ api_version = '2016-12-01'
120
120
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
121
121
 
122
122
 
@@ -308,7 +308,7 @@ module Azure::ARM::Network
308
308
  def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
309
309
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
310
310
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
311
- api_version = '2016-09-01'
311
+ api_version = '2016-12-01'
312
312
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
313
313
 
314
314
 
@@ -398,7 +398,7 @@ module Azure::ARM::Network
398
398
  #
399
399
  def list_async(resource_group_name, custom_headers = nil)
400
400
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
401
- api_version = '2016-09-01'
401
+ api_version = '2016-12-01'
402
402
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
403
403
 
404
404
 
@@ -555,7 +555,7 @@ module Azure::ARM::Network
555
555
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
556
556
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
557
557
  fail ArgumentError, 'parameters is nil' if parameters.nil?
558
- api_version = '2016-09-01'
558
+ api_version = '2016-12-01'
559
559
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
560
560
 
561
561
 
@@ -667,7 +667,7 @@ module Azure::ARM::Network
667
667
  def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
668
668
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
669
669
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
670
- api_version = '2016-09-01'
670
+ api_version = '2016-12-01'
671
671
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
672
672
 
673
673
 
@@ -767,7 +767,7 @@ module Azure::ARM::Network
767
767
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
768
768
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
769
769
  fail ArgumentError, 'parameters is nil' if parameters.nil?
770
- api_version = '2016-09-01'
770
+ api_version = '2016-12-01'
771
771
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
772
772
 
773
773
 
@@ -899,7 +899,7 @@ module Azure::ARM::Network
899
899
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
900
900
  fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
901
901
  fail ArgumentError, 'parameters is nil' if parameters.nil?
902
- api_version = '2016-09-01'
902
+ api_version = '2016-12-01'
903
903
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
904
904
 
905
905
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -115,7 +115,7 @@ module Azure::ARM::Network
115
115
  def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
116
116
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
117
117
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
118
- api_version = '2016-09-01'
118
+ api_version = '2016-12-01'
119
119
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
120
120
 
121
121
 
@@ -242,7 +242,7 @@ module Azure::ARM::Network
242
242
  #
243
243
  def list_async(resource_group_name, custom_headers = nil)
244
244
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
245
- api_version = '2016-09-01'
245
+ api_version = '2016-12-01'
246
246
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
247
247
 
248
248
 
@@ -395,7 +395,7 @@ module Azure::ARM::Network
395
395
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
396
396
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
397
397
  fail ArgumentError, 'parameters is nil' if parameters.nil?
398
- api_version = '2016-09-01'
398
+ api_version = '2016-12-01'
399
399
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
400
400
 
401
401
 
@@ -459,6 +459,144 @@ module Azure::ARM::Network
459
459
  promise.execute
460
460
  end
461
461
 
462
+ #
463
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
464
+ #
465
+ # @param resource_group_name [String] The name of the resource group.
466
+ # @param virtual_network_gateway_name [String] The name of the virtual network
467
+ # gateway.
468
+ # @param peer [String] The IP address of the peer to retrieve the status of.
469
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
470
+ # will be added to the HTTP request.
471
+ #
472
+ # @return [BgpPeerStatusListResult] operation results.
473
+ #
474
+ def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
475
+ response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value!
476
+ response.body unless response.nil?
477
+ end
478
+
479
+ #
480
+ # @param resource_group_name [String] The name of the resource group.
481
+ # @param virtual_network_gateway_name [String] The name of the virtual network
482
+ # gateway.
483
+ # @param peer [String] The IP address of the peer to retrieve the status of.
484
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
485
+ # will be added to the HTTP request.
486
+ #
487
+ # @return [Concurrent::Promise] promise which provides async access to http
488
+ # response.
489
+ #
490
+ def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
491
+ # Send request
492
+ promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers)
493
+
494
+ promise = promise.then do |response|
495
+ # Defining deserialization method.
496
+ deserialize_method = lambda do |parsed_response|
497
+ result_mapper = BgpPeerStatusListResult.mapper()
498
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
499
+ end
500
+
501
+ # Waiting for response.
502
+ @client.get_long_running_operation_result(response, deserialize_method)
503
+ end
504
+
505
+ promise
506
+ end
507
+
508
+ #
509
+ # This operation retrieves a list of routes the virtual network gateway has
510
+ # learned, including routes learned from BGP peers.
511
+ #
512
+ # @param resource_group_name [String] The name of the resource group.
513
+ # @param virtual_network_gateway_name [String] The name of the virtual network
514
+ # gateway.
515
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
516
+ # will be added to the HTTP request.
517
+ #
518
+ # @return [GatewayRouteListResult] operation results.
519
+ #
520
+ def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
521
+ response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
522
+ response.body unless response.nil?
523
+ end
524
+
525
+ #
526
+ # @param resource_group_name [String] The name of the resource group.
527
+ # @param virtual_network_gateway_name [String] The name of the virtual network
528
+ # gateway.
529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
+ # will be added to the HTTP request.
531
+ #
532
+ # @return [Concurrent::Promise] promise which provides async access to http
533
+ # response.
534
+ #
535
+ def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
536
+ # Send request
537
+ promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers)
538
+
539
+ promise = promise.then do |response|
540
+ # Defining deserialization method.
541
+ deserialize_method = lambda do |parsed_response|
542
+ result_mapper = GatewayRouteListResult.mapper()
543
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
544
+ end
545
+
546
+ # Waiting for response.
547
+ @client.get_long_running_operation_result(response, deserialize_method)
548
+ end
549
+
550
+ promise
551
+ end
552
+
553
+ #
554
+ # This operation retrieves a list of routes the virtual network gateway is
555
+ # advertising to the specified peer.
556
+ #
557
+ # @param resource_group_name [String] The name of the resource group.
558
+ # @param virtual_network_gateway_name [String] The name of the virtual network
559
+ # gateway.
560
+ # @param peer [String] The IP address of the peer
561
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
562
+ # will be added to the HTTP request.
563
+ #
564
+ # @return [GatewayRouteListResult] operation results.
565
+ #
566
+ def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil)
567
+ response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value!
568
+ response.body unless response.nil?
569
+ end
570
+
571
+ #
572
+ # @param resource_group_name [String] The name of the resource group.
573
+ # @param virtual_network_gateway_name [String] The name of the virtual network
574
+ # gateway.
575
+ # @param peer [String] The IP address of the peer
576
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
577
+ # will be added to the HTTP request.
578
+ #
579
+ # @return [Concurrent::Promise] promise which provides async access to http
580
+ # response.
581
+ #
582
+ def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil)
583
+ # Send request
584
+ promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers)
585
+
586
+ promise = promise.then do |response|
587
+ # Defining deserialization method.
588
+ deserialize_method = lambda do |parsed_response|
589
+ result_mapper = GatewayRouteListResult.mapper()
590
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
591
+ end
592
+
593
+ # Waiting for response.
594
+ @client.get_long_running_operation_result(response, deserialize_method)
595
+ end
596
+
597
+ promise
598
+ end
599
+
462
600
  #
463
601
  # Creates or updates a virtual network gateway in the specified resource group.
464
602
  #
@@ -511,7 +649,7 @@ module Azure::ARM::Network
511
649
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
512
650
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
513
651
  fail ArgumentError, 'parameters is nil' if parameters.nil?
514
- api_version = '2016-09-01'
652
+ api_version = '2016-12-01'
515
653
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
516
654
 
517
655
 
@@ -623,7 +761,7 @@ module Azure::ARM::Network
623
761
  def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
624
762
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
625
763
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
626
- api_version = '2016-09-01'
764
+ api_version = '2016-12-01'
627
765
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
628
766
 
629
767
 
@@ -716,7 +854,7 @@ module Azure::ARM::Network
716
854
  def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil)
717
855
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
718
856
  fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
719
- api_version = '2016-09-01'
857
+ api_version = '2016-12-01'
720
858
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
721
859
 
722
860
 
@@ -765,6 +903,301 @@ module Azure::ARM::Network
765
903
  promise.execute
766
904
  end
767
905
 
906
+ #
907
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
908
+ #
909
+ # @param resource_group_name [String] The name of the resource group.
910
+ # @param virtual_network_gateway_name [String] The name of the virtual network
911
+ # gateway.
912
+ # @param peer [String] The IP address of the peer to retrieve the status of.
913
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
914
+ # will be added to the HTTP request.
915
+ #
916
+ # @return [BgpPeerStatusListResult] operation results.
917
+ #
918
+ def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
919
+ response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value!
920
+ response.body unless response.nil?
921
+ end
922
+
923
+ #
924
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
925
+ #
926
+ # @param resource_group_name [String] The name of the resource group.
927
+ # @param virtual_network_gateway_name [String] The name of the virtual network
928
+ # gateway.
929
+ # @param peer [String] The IP address of the peer to retrieve the status of.
930
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
931
+ # will be added to the HTTP request.
932
+ #
933
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
934
+ #
935
+ def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
936
+ begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value!
937
+ end
938
+
939
+ #
940
+ # The GetBgpPeerStatus operation retrieves the status of all BGP peers.
941
+ #
942
+ # @param resource_group_name [String] The name of the resource group.
943
+ # @param virtual_network_gateway_name [String] The name of the virtual network
944
+ # gateway.
945
+ # @param peer [String] The IP address of the peer to retrieve the status of.
946
+ # @param [Hash{String => String}] A hash of custom headers that will be added
947
+ # to the HTTP request.
948
+ #
949
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
950
+ #
951
+ def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
952
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
953
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
954
+ api_version = '2016-12-01'
955
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
956
+
957
+
958
+ request_headers = {}
959
+
960
+ # Set Headers
961
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
962
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
963
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'
964
+
965
+ request_url = @base_url || @client.base_url
966
+
967
+ options = {
968
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
969
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
970
+ query_params: {'peer' => peer,'api-version' => api_version},
971
+ headers: request_headers.merge(custom_headers || {}),
972
+ base_url: request_url
973
+ }
974
+ promise = @client.make_request_async(:post, path_template, options)
975
+
976
+ promise = promise.then do |result|
977
+ http_response = result.response
978
+ status_code = http_response.status
979
+ response_content = http_response.body
980
+ unless status_code == 200 || status_code == 202
981
+ error_model = JSON.load(response_content)
982
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
983
+ end
984
+
985
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
986
+ # Deserialize Response
987
+ if status_code == 200
988
+ begin
989
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
990
+ result_mapper = BgpPeerStatusListResult.mapper()
991
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
992
+ rescue Exception => e
993
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
994
+ end
995
+ end
996
+
997
+ result
998
+ end
999
+
1000
+ promise.execute
1001
+ end
1002
+
1003
+ #
1004
+ # This operation retrieves a list of routes the virtual network gateway has
1005
+ # learned, including routes learned from BGP peers.
1006
+ #
1007
+ # @param resource_group_name [String] The name of the resource group.
1008
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1009
+ # gateway.
1010
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1011
+ # will be added to the HTTP request.
1012
+ #
1013
+ # @return [GatewayRouteListResult] operation results.
1014
+ #
1015
+ def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
1016
+ response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
1017
+ response.body unless response.nil?
1018
+ end
1019
+
1020
+ #
1021
+ # This operation retrieves a list of routes the virtual network gateway has
1022
+ # learned, including routes learned from BGP peers.
1023
+ #
1024
+ # @param resource_group_name [String] The name of the resource group.
1025
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1026
+ # gateway.
1027
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1028
+ # will be added to the HTTP request.
1029
+ #
1030
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1031
+ #
1032
+ def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
1033
+ begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
1034
+ end
1035
+
1036
+ #
1037
+ # This operation retrieves a list of routes the virtual network gateway has
1038
+ # learned, including routes learned from BGP peers.
1039
+ #
1040
+ # @param resource_group_name [String] The name of the resource group.
1041
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1042
+ # gateway.
1043
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1044
+ # to the HTTP request.
1045
+ #
1046
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1047
+ #
1048
+ def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
1049
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1050
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1051
+ api_version = '2016-12-01'
1052
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1053
+
1054
+
1055
+ request_headers = {}
1056
+
1057
+ # Set Headers
1058
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1059
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1060
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'
1061
+
1062
+ request_url = @base_url || @client.base_url
1063
+
1064
+ options = {
1065
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1066
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1067
+ query_params: {'api-version' => api_version},
1068
+ headers: request_headers.merge(custom_headers || {}),
1069
+ base_url: request_url
1070
+ }
1071
+ promise = @client.make_request_async(:post, path_template, options)
1072
+
1073
+ promise = promise.then do |result|
1074
+ http_response = result.response
1075
+ status_code = http_response.status
1076
+ response_content = http_response.body
1077
+ unless status_code == 200 || status_code == 202
1078
+ error_model = JSON.load(response_content)
1079
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1080
+ end
1081
+
1082
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1083
+ # Deserialize Response
1084
+ if status_code == 200
1085
+ begin
1086
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1087
+ result_mapper = GatewayRouteListResult.mapper()
1088
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1089
+ rescue Exception => e
1090
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1091
+ end
1092
+ end
1093
+
1094
+ result
1095
+ end
1096
+
1097
+ promise.execute
1098
+ end
1099
+
1100
+ #
1101
+ # This operation retrieves a list of routes the virtual network gateway is
1102
+ # advertising to the specified peer.
1103
+ #
1104
+ # @param resource_group_name [String] The name of the resource group.
1105
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1106
+ # gateway.
1107
+ # @param peer [String] The IP address of the peer
1108
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1109
+ # will be added to the HTTP request.
1110
+ #
1111
+ # @return [GatewayRouteListResult] operation results.
1112
+ #
1113
+ def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil)
1114
+ response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value!
1115
+ response.body unless response.nil?
1116
+ end
1117
+
1118
+ #
1119
+ # This operation retrieves a list of routes the virtual network gateway is
1120
+ # advertising to the specified peer.
1121
+ #
1122
+ # @param resource_group_name [String] The name of the resource group.
1123
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1124
+ # gateway.
1125
+ # @param peer [String] The IP address of the peer
1126
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1127
+ # will be added to the HTTP request.
1128
+ #
1129
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1130
+ #
1131
+ def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil)
1132
+ begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value!
1133
+ end
1134
+
1135
+ #
1136
+ # This operation retrieves a list of routes the virtual network gateway is
1137
+ # advertising to the specified peer.
1138
+ #
1139
+ # @param resource_group_name [String] The name of the resource group.
1140
+ # @param virtual_network_gateway_name [String] The name of the virtual network
1141
+ # gateway.
1142
+ # @param peer [String] The IP address of the peer
1143
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1144
+ # to the HTTP request.
1145
+ #
1146
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1147
+ #
1148
+ def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil)
1149
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1150
+ fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
1151
+ fail ArgumentError, 'peer is nil' if peer.nil?
1152
+ api_version = '2016-12-01'
1153
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1154
+
1155
+
1156
+ request_headers = {}
1157
+
1158
+ # Set Headers
1159
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1160
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1161
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'
1162
+
1163
+ request_url = @base_url || @client.base_url
1164
+
1165
+ options = {
1166
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1167
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
1168
+ query_params: {'peer' => peer,'api-version' => api_version},
1169
+ headers: request_headers.merge(custom_headers || {}),
1170
+ base_url: request_url
1171
+ }
1172
+ promise = @client.make_request_async(:post, path_template, options)
1173
+
1174
+ promise = promise.then do |result|
1175
+ http_response = result.response
1176
+ status_code = http_response.status
1177
+ response_content = http_response.body
1178
+ unless status_code == 200 || status_code == 202
1179
+ error_model = JSON.load(response_content)
1180
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1181
+ end
1182
+
1183
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1184
+ # Deserialize Response
1185
+ if status_code == 200
1186
+ begin
1187
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1188
+ result_mapper = GatewayRouteListResult.mapper()
1189
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1190
+ rescue Exception => e
1191
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1192
+ end
1193
+ end
1194
+
1195
+ result
1196
+ end
1197
+
1198
+ promise.execute
1199
+ end
1200
+
768
1201
  #
769
1202
  # Gets all virtual network gateways by resource group.
770
1203
  #