azure_mgmt_network 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +97 -56
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +483 -41
  4. data/lib/generated/azure_mgmt_network/available_private_access_services.rb +224 -0
  5. data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +8 -9
  6. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +24 -25
  7. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +24 -25
  8. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +56 -57
  9. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +8 -9
  10. data/lib/generated/azure_mgmt_network/load_balancers.rb +30 -31
  11. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +24 -25
  12. data/lib/generated/azure_mgmt_network/models/access.rb +1 -1
  13. data/lib/generated/azure_mgmt_network/models/address_space.rb +2 -1
  14. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +23 -4
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +12 -1
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +146 -0
  17. data/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +98 -0
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +55 -0
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +2 -1
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +12 -1
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +2 -1
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +2 -1
  23. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +2 -1
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +7 -5
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +2 -1
  26. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +77 -15
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +2 -1
  28. data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +64 -0
  30. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +1 -1
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +55 -0
  32. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +75 -0
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +130 -0
  34. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +13 -3
  35. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +12 -1
  36. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +14 -3
  37. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +12 -1
  38. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +2 -1
  39. data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  40. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +28 -3
  41. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +48 -3
  42. data/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +65 -0
  43. data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  44. data/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +185 -0
  45. data/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  46. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +25 -3
  47. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  48. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +5 -7
  49. data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  50. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +12 -1
  51. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +39 -0
  52. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +58 -5
  53. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  54. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  55. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +82 -0
  56. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
  57. data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  58. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +24 -1
  59. data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +44 -4
  60. data/lib/generated/azure_mgmt_network/models/association_type.rb +1 -1
  61. data/lib/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  62. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +2 -1
  63. data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  64. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +2 -1
  65. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +2 -1
  66. data/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb +1 -1
  67. data/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb +3 -3
  68. data/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +2 -1
  69. data/lib/generated/azure_mgmt_network/models/bgp_service_community.rb +15 -4
  70. data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +2 -1
  71. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +3 -3
  72. data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +25 -4
  73. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +3 -3
  74. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +2 -1
  75. data/lib/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  76. data/lib/generated/azure_mgmt_network/models/connectivity_destination.rb +67 -0
  77. data/lib/generated/azure_mgmt_network/models/connectivity_hop.rb +116 -0
  78. data/lib/generated/azure_mgmt_network/models/connectivity_information.rb +122 -0
  79. data/lib/generated/azure_mgmt_network/models/connectivity_issue.rb +100 -0
  80. data/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb +57 -0
  81. data/lib/generated/azure_mgmt_network/models/connectivity_source.rb +57 -0
  82. data/lib/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  83. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +2 -1
  84. data/lib/generated/azure_mgmt_network/models/direction.rb +1 -1
  85. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +2 -1
  86. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +27 -1
  87. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +2 -1
  88. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +2 -1
  89. data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +78 -1
  90. data/lib/generated/azure_mgmt_network/models/effective_route.rb +2 -1
  91. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +2 -1
  92. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
  93. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
  94. data/lib/generated/azure_mgmt_network/models/error.rb +2 -1
  95. data/lib/generated/azure_mgmt_network/models/error_details.rb +2 -1
  96. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +2 -1
  97. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +2 -1
  98. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +2 -1
  99. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +2 -1
  100. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +14 -1
  101. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  102. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +30 -1
  103. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +2 -1
  104. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  105. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  106. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +2 -1
  107. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +2 -1
  108. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +2 -1
  109. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +2 -1
  110. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  111. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  112. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +2 -1
  113. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +2 -1
  114. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +2 -1
  115. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +2 -1
  116. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +2 -1
  117. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +2 -1
  118. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +2 -1
  119. data/lib/generated/azure_mgmt_network/models/flow_log_information.rb +2 -1
  120. data/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +2 -1
  121. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +2 -1
  122. data/lib/generated/azure_mgmt_network/models/gateway_route.rb +3 -3
  123. data/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb +2 -1
  124. data/lib/generated/azure_mgmt_network/models/ike_encryption.rb +19 -0
  125. data/lib/generated/azure_mgmt_network/models/ike_integrity.rb +18 -0
  126. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +2 -1
  127. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +2 -1
  128. data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +2 -1
  129. data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  130. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +2 -1
  131. data/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  132. data/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  133. data/lib/generated/azure_mgmt_network/models/ipsec_policy.rb +127 -0
  134. data/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +90 -0
  135. data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
  136. data/lib/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  137. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +2 -1
  138. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +2 -1
  139. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +2 -1
  140. data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
  141. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +3 -2
  142. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +2 -1
  143. data/lib/generated/azure_mgmt_network/models/network_interface.rb +2 -1
  144. data/lib/generated/azure_mgmt_network/models/network_interface_association.rb +2 -1
  145. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +2 -1
  146. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +2 -1
  147. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +2 -1
  148. data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +1 -1
  149. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +2 -1
  150. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +2 -1
  151. data/lib/generated/azure_mgmt_network/models/network_watcher.rb +2 -1
  152. data/lib/generated/azure_mgmt_network/models/network_watcher_list_result.rb +2 -1
  153. data/lib/generated/azure_mgmt_network/models/next_hop_parameters.rb +2 -1
  154. data/lib/generated/azure_mgmt_network/models/next_hop_result.rb +2 -1
  155. data/lib/generated/azure_mgmt_network/models/next_hop_type.rb +1 -1
  156. data/lib/generated/azure_mgmt_network/models/origin.rb +17 -0
  157. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +2 -1
  158. data/lib/generated/azure_mgmt_network/models/packet_capture.rb +2 -1
  159. data/lib/generated/azure_mgmt_network/models/packet_capture_filter.rb +2 -1
  160. data/lib/generated/azure_mgmt_network/models/packet_capture_list_result.rb +2 -1
  161. data/lib/generated/azure_mgmt_network/models/packet_capture_parameters.rb +2 -1
  162. data/lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +2 -1
  163. data/lib/generated/azure_mgmt_network/models/packet_capture_result.rb +2 -1
  164. data/lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +2 -1
  165. data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +2 -2
  166. data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +2 -1
  167. data/lib/generated/azure_mgmt_network/models/pc_error.rb +1 -1
  168. data/lib/generated/azure_mgmt_network/models/pc_protocol.rb +1 -1
  169. data/lib/generated/azure_mgmt_network/models/pc_status.rb +1 -1
  170. data/lib/generated/azure_mgmt_network/models/pfs_group.rb +21 -0
  171. data/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb +72 -0
  172. data/lib/generated/azure_mgmt_network/models/private_access_service_result.rb +64 -0
  173. data/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb +95 -0
  174. data/lib/generated/azure_mgmt_network/models/probe.rb +2 -1
  175. data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
  176. data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
  177. data/lib/generated/azure_mgmt_network/models/protocol.rb +1 -1
  178. data/lib/generated/azure_mgmt_network/models/provisioning_state.rb +1 -1
  179. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +2 -1
  180. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +2 -1
  181. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +2 -1
  182. data/lib/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +2 -1
  183. data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +2 -1
  184. data/lib/generated/azure_mgmt_network/models/retention_policy_parameters.rb +2 -1
  185. data/lib/generated/azure_mgmt_network/models/route.rb +2 -1
  186. data/lib/generated/azure_mgmt_network/models/route_filter.rb +2 -2
  187. data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +2 -1
  188. data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +2 -2
  189. data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +2 -1
  190. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +2 -1
  191. data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  192. data/lib/generated/azure_mgmt_network/models/route_table.rb +2 -1
  193. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +2 -1
  194. data/lib/generated/azure_mgmt_network/models/security_group_network_interface.rb +2 -1
  195. data/lib/generated/azure_mgmt_network/models/security_group_view_parameters.rb +2 -1
  196. data/lib/generated/azure_mgmt_network/models/security_group_view_result.rb +2 -1
  197. data/lib/generated/azure_mgmt_network/models/security_rule.rb +38 -2
  198. data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
  199. data/lib/generated/azure_mgmt_network/models/security_rule_associations.rb +2 -1
  200. data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  201. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +2 -1
  202. data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  203. data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  204. data/lib/generated/azure_mgmt_network/models/severity.rb +16 -0
  205. data/lib/generated/azure_mgmt_network/models/subnet.rb +21 -1
  206. data/lib/generated/azure_mgmt_network/models/subnet_association.rb +2 -1
  207. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +2 -1
  208. data/lib/generated/azure_mgmt_network/models/topology.rb +2 -1
  209. data/lib/generated/azure_mgmt_network/models/topology_association.rb +2 -1
  210. data/lib/generated/azure_mgmt_network/models/topology_parameters.rb +2 -1
  211. data/lib/generated/azure_mgmt_network/models/topology_resource.rb +2 -1
  212. data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
  213. data/lib/generated/azure_mgmt_network/models/troubleshooting_details.rb +2 -1
  214. data/lib/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +2 -1
  215. data/lib/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +2 -1
  216. data/lib/generated/azure_mgmt_network/models/troubleshooting_result.rb +2 -1
  217. data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +2 -1
  218. data/lib/generated/azure_mgmt_network/models/usage.rb +2 -1
  219. data/lib/generated/azure_mgmt_network/models/usage_name.rb +2 -1
  220. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +2 -1
  221. data/lib/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +2 -1
  222. data/lib/generated/azure_mgmt_network/models/verification_ipflow_result.rb +2 -1
  223. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +2 -1
  224. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +27 -4
  225. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +31 -1
  226. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +2 -1
  227. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  228. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  229. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +4 -3
  230. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +2 -1
  231. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +8 -9
  232. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +4 -1
  233. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +4 -1
  234. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  235. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +2 -1
  236. data/lib/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +95 -0
  237. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +2 -1
  238. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +2 -1
  239. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
  240. data/lib/generated/azure_mgmt_network/models/virtual_network_usage.rb +92 -0
  241. data/lib/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +57 -0
  242. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +20 -1
  243. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +49 -4
  244. data/lib/generated/azure_mgmt_network/models/vpn_client_protocol.rb +16 -0
  245. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +2 -1
  246. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +2 -1
  247. data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
  248. data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
  249. data/lib/generated/azure_mgmt_network/network_interfaces.rb +58 -59
  250. data/lib/generated/azure_mgmt_network/network_management_client.rb +10 -5
  251. data/lib/generated/azure_mgmt_network/network_security_groups.rb +30 -31
  252. data/lib/generated/azure_mgmt_network/network_watchers.rb +281 -101
  253. data/lib/generated/azure_mgmt_network/packet_captures.rb +30 -31
  254. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +580 -31
  255. data/lib/generated/azure_mgmt_network/route_filter_rules.rb +32 -33
  256. data/lib/generated/azure_mgmt_network/route_filters.rb +38 -39
  257. data/lib/generated/azure_mgmt_network/route_tables.rb +30 -31
  258. data/lib/generated/azure_mgmt_network/routes.rb +24 -25
  259. data/lib/generated/azure_mgmt_network/security_rules.rb +24 -25
  260. data/lib/generated/azure_mgmt_network/subnets.rb +24 -25
  261. data/lib/generated/azure_mgmt_network/usages.rb +8 -9
  262. data/lib/generated/azure_mgmt_network/version.rb +2 -2
  263. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +46 -47
  264. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +347 -119
  265. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +24 -25
  266. data/lib/generated/azure_mgmt_network/virtual_networks.rb +234 -35
  267. metadata +45 -4
@@ -0,0 +1,224 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ #
8
+ # Network Client
9
+ #
10
+ class AvailablePrivateAccessServices
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AvailablePrivateAccessServices 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
+ # List what values of private access services are available for use.
26
+ #
27
+ # @param location [String] The location to check available private access
28
+ # values.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<PrivateAccessServiceResult>] operation results.
33
+ #
34
+ def list(location, custom_headers = nil)
35
+ first_page = list_as_lazy(location, custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # List what values of private access services are available for use.
41
+ #
42
+ # @param location [String] The location to check available private access
43
+ # values.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_with_http_info(location, custom_headers = nil)
50
+ list_async(location, custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # List what values of private access services are available for use.
55
+ #
56
+ # @param location [String] The location to check available private access
57
+ # values.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_async(location, custom_headers = nil)
64
+ fail ArgumentError, 'location is nil' if location.nil?
65
+ api_version = '2017-06-01'
66
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
67
+
68
+
69
+ request_headers = {}
70
+
71
+ # Set Headers
72
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
73
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
74
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/privateAccessServices'
75
+
76
+ request_url = @base_url || @client.base_url
77
+
78
+ options = {
79
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
80
+ path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
81
+ query_params: {'api-version' => api_version},
82
+ headers: request_headers.merge(custom_headers || {}),
83
+ base_url: request_url
84
+ }
85
+ promise = @client.make_request_async(:get, path_template, options)
86
+
87
+ promise = promise.then do |result|
88
+ http_response = result.response
89
+ status_code = http_response.status
90
+ response_content = http_response.body
91
+ unless status_code == 200
92
+ error_model = JSON.load(response_content)
93
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
94
+ end
95
+
96
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
97
+ # Deserialize Response
98
+ if status_code == 200
99
+ begin
100
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
101
+ result_mapper = Azure::ARM::Network::Models::PrivateAccessServicesListResult.mapper()
102
+ result.body = @client.deserialize(result_mapper, parsed_response)
103
+ rescue Exception => e
104
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
105
+ end
106
+ end
107
+
108
+ result
109
+ end
110
+
111
+ promise.execute
112
+ end
113
+
114
+ #
115
+ # List what values of private access services are available for use.
116
+ #
117
+ # @param next_page_link [String] The NextLink from the previous successful call
118
+ # to List operation.
119
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
120
+ # will be added to the HTTP request.
121
+ #
122
+ # @return [PrivateAccessServicesListResult] operation results.
123
+ #
124
+ def list_next(next_page_link, custom_headers = nil)
125
+ response = list_next_async(next_page_link, custom_headers).value!
126
+ response.body unless response.nil?
127
+ end
128
+
129
+ #
130
+ # List what values of private access services are available for use.
131
+ #
132
+ # @param next_page_link [String] The NextLink from the previous successful call
133
+ # to List operation.
134
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
135
+ # will be added to the HTTP request.
136
+ #
137
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
138
+ #
139
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
140
+ list_next_async(next_page_link, custom_headers).value!
141
+ end
142
+
143
+ #
144
+ # List what values of private access services are available for use.
145
+ #
146
+ # @param next_page_link [String] The NextLink from the previous successful call
147
+ # to List operation.
148
+ # @param [Hash{String => String}] A hash of custom headers that will be added
149
+ # to the HTTP request.
150
+ #
151
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
152
+ #
153
+ def list_next_async(next_page_link, custom_headers = nil)
154
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
155
+
156
+
157
+ request_headers = {}
158
+
159
+ # Set Headers
160
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
161
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
162
+ path_template = '{nextLink}'
163
+
164
+ request_url = @base_url || @client.base_url
165
+
166
+ options = {
167
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
168
+ skip_encoding_path_params: {'nextLink' => next_page_link},
169
+ headers: request_headers.merge(custom_headers || {}),
170
+ base_url: request_url
171
+ }
172
+ promise = @client.make_request_async(:get, path_template, options)
173
+
174
+ promise = promise.then do |result|
175
+ http_response = result.response
176
+ status_code = http_response.status
177
+ response_content = http_response.body
178
+ unless status_code == 200
179
+ error_model = JSON.load(response_content)
180
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
181
+ end
182
+
183
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
184
+ # Deserialize Response
185
+ if status_code == 200
186
+ begin
187
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
188
+ result_mapper = Azure::ARM::Network::Models::PrivateAccessServicesListResult.mapper()
189
+ result.body = @client.deserialize(result_mapper, parsed_response)
190
+ rescue Exception => e
191
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
192
+ end
193
+ end
194
+
195
+ result
196
+ end
197
+
198
+ promise.execute
199
+ end
200
+
201
+ #
202
+ # List what values of private access services are available for use.
203
+ #
204
+ # @param location [String] The location to check available private access
205
+ # values.
206
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
207
+ # will be added to the HTTP request.
208
+ #
209
+ # @return [PrivateAccessServicesListResult] which provide lazy access to pages
210
+ # of the response.
211
+ #
212
+ def list_as_lazy(location, custom_headers = nil)
213
+ response = list_async(location, custom_headers).value!
214
+ unless response.nil?
215
+ page = response.body
216
+ page.next_method = Proc.new do |next_page_link|
217
+ list_next_async(next_page_link, custom_headers)
218
+ end
219
+ page
220
+ end
221
+ end
222
+
223
+ end
224
+ end
@@ -1,14 +1,13 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
7
  #
8
- # Composite Swagger for Network Client
8
+ # Network Client
9
9
  #
10
10
  class BgpServiceCommunities
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -56,7 +55,7 @@ module Azure::ARM::Network
56
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
57
56
  #
58
57
  def list_async(custom_headers = nil)
59
- api_version = '2016-12-01'
58
+ api_version = '2017-06-01'
60
59
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
61
60
 
62
61
 
@@ -65,7 +64,7 @@ module Azure::ARM::Network
65
64
  # Set Headers
66
65
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
67
66
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
68
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities'
67
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities'
69
68
 
70
69
  request_url = @base_url || @client.base_url
71
70
 
@@ -92,8 +91,8 @@ module Azure::ARM::Network
92
91
  if status_code == 200
93
92
  begin
94
93
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
- result_mapper = BgpServiceCommunityListResult.mapper()
96
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
94
+ result_mapper = Azure::ARM::Network::Models::BgpServiceCommunityListResult.mapper()
95
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
96
  rescue Exception => e
98
97
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
98
  end
@@ -179,8 +178,8 @@ module Azure::ARM::Network
179
178
  if status_code == 200
180
179
  begin
181
180
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
182
- result_mapper = BgpServiceCommunityListResult.mapper()
183
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
181
+ result_mapper = Azure::ARM::Network::Models::BgpServiceCommunityListResult.mapper()
182
+ result.body = @client.deserialize(result_mapper, parsed_response)
184
183
  rescue Exception => e
185
184
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
186
185
  end
@@ -1,14 +1,13 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
7
  #
8
- # Composite Swagger for Network Client
8
+ # Network Client
9
9
  #
10
10
  class ExpressRouteCircuitAuthorizations
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -108,7 +107,7 @@ module Azure::ARM::Network
108
107
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
109
108
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
110
109
  fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
111
- api_version = '2016-12-01'
110
+ api_version = '2017-06-01'
112
111
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
113
112
 
114
113
 
@@ -117,7 +116,7 @@ module Azure::ARM::Network
117
116
  # Set Headers
118
117
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
119
118
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
120
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
119
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
121
120
 
122
121
  request_url = @base_url || @client.base_url
123
122
 
@@ -144,8 +143,8 @@ module Azure::ARM::Network
144
143
  if status_code == 200
145
144
  begin
146
145
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
147
- result_mapper = ExpressRouteCircuitAuthorization.mapper()
148
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
146
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper()
147
+ result.body = @client.deserialize(result_mapper, parsed_response)
149
148
  rescue Exception => e
150
149
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
151
150
  end
@@ -196,8 +195,8 @@ module Azure::ARM::Network
196
195
  promise = promise.then do |response|
197
196
  # Defining deserialization method.
198
197
  deserialize_method = lambda do |parsed_response|
199
- result_mapper = ExpressRouteCircuitAuthorization.mapper()
200
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
198
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper()
199
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
201
200
  end
202
201
 
203
202
  # Waiting for response.
@@ -249,7 +248,7 @@ module Azure::ARM::Network
249
248
  def list_async(resource_group_name, circuit_name, custom_headers = nil)
250
249
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
251
250
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
252
- api_version = '2016-12-01'
251
+ api_version = '2017-06-01'
253
252
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
254
253
 
255
254
 
@@ -258,7 +257,7 @@ module Azure::ARM::Network
258
257
  # Set Headers
259
258
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
260
259
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
261
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations'
260
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations'
262
261
 
263
262
  request_url = @base_url || @client.base_url
264
263
 
@@ -285,8 +284,8 @@ module Azure::ARM::Network
285
284
  if status_code == 200
286
285
  begin
287
286
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
288
- result_mapper = AuthorizationListResult.mapper()
289
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
287
+ result_mapper = Azure::ARM::Network::Models::AuthorizationListResult.mapper()
288
+ result.body = @client.deserialize(result_mapper, parsed_response)
290
289
  rescue Exception => e
291
290
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
292
291
  end
@@ -343,7 +342,7 @@ module Azure::ARM::Network
343
342
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
344
343
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
345
344
  fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
346
- api_version = '2016-12-01'
345
+ api_version = '2017-06-01'
347
346
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
348
347
 
349
348
 
@@ -352,7 +351,7 @@ module Azure::ARM::Network
352
351
  # Set Headers
353
352
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
354
353
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
355
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
354
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
356
355
 
357
356
  request_url = @base_url || @client.base_url
358
357
 
@@ -438,7 +437,7 @@ module Azure::ARM::Network
438
437
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
439
438
  fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
440
439
  fail ArgumentError, 'authorization_parameters is nil' if authorization_parameters.nil?
441
- api_version = '2016-12-01'
440
+ api_version = '2017-06-01'
442
441
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
443
442
 
444
443
 
@@ -451,11 +450,11 @@ module Azure::ARM::Network
451
450
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
452
451
 
453
452
  # Serialize Request
454
- request_mapper = ExpressRouteCircuitAuthorization.mapper()
455
- request_content = @client.serialize(request_mapper, authorization_parameters, 'authorization_parameters')
453
+ request_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper()
454
+ request_content = @client.serialize(request_mapper, authorization_parameters)
456
455
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
457
456
 
458
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
457
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
459
458
 
460
459
  request_url = @base_url || @client.base_url
461
460
 
@@ -483,8 +482,8 @@ module Azure::ARM::Network
483
482
  if status_code == 201
484
483
  begin
485
484
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
486
- result_mapper = ExpressRouteCircuitAuthorization.mapper()
487
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
485
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper()
486
+ result.body = @client.deserialize(result_mapper, parsed_response)
488
487
  rescue Exception => e
489
488
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
490
489
  end
@@ -493,8 +492,8 @@ module Azure::ARM::Network
493
492
  if status_code == 200
494
493
  begin
495
494
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
496
- result_mapper = ExpressRouteCircuitAuthorization.mapper()
497
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
495
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitAuthorization.mapper()
496
+ result.body = @client.deserialize(result_mapper, parsed_response)
498
497
  rescue Exception => e
499
498
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
500
499
  end
@@ -580,8 +579,8 @@ module Azure::ARM::Network
580
579
  if status_code == 200
581
580
  begin
582
581
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
583
- result_mapper = AuthorizationListResult.mapper()
584
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
582
+ result_mapper = Azure::ARM::Network::Models::AuthorizationListResult.mapper()
583
+ result.body = @client.deserialize(result_mapper, parsed_response)
585
584
  rescue Exception => e
586
585
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
587
586
  end
@@ -1,14 +1,13 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
7
  #
8
- # Composite Swagger for Network Client
8
+ # Network Client
9
9
  #
10
10
  class ExpressRouteCircuitPeerings
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -108,7 +107,7 @@ module Azure::ARM::Network
108
107
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
109
108
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
110
109
  fail ArgumentError, 'peering_name is nil' if peering_name.nil?
111
- api_version = '2016-12-01'
110
+ api_version = '2017-06-01'
112
111
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
113
112
 
114
113
 
@@ -117,7 +116,7 @@ module Azure::ARM::Network
117
116
  # Set Headers
118
117
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
119
118
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
120
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
119
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
121
120
 
122
121
  request_url = @base_url || @client.base_url
123
122
 
@@ -144,8 +143,8 @@ module Azure::ARM::Network
144
143
  if status_code == 200
145
144
  begin
146
145
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
147
- result_mapper = ExpressRouteCircuitPeering.mapper()
148
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
146
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeering.mapper()
147
+ result.body = @client.deserialize(result_mapper, parsed_response)
149
148
  rescue Exception => e
150
149
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
151
150
  end
@@ -194,8 +193,8 @@ module Azure::ARM::Network
194
193
  promise = promise.then do |response|
195
194
  # Defining deserialization method.
196
195
  deserialize_method = lambda do |parsed_response|
197
- result_mapper = ExpressRouteCircuitPeering.mapper()
198
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
196
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeering.mapper()
197
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
199
198
  end
200
199
 
201
200
  # Waiting for response.
@@ -247,7 +246,7 @@ module Azure::ARM::Network
247
246
  def list_async(resource_group_name, circuit_name, custom_headers = nil)
248
247
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
249
248
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
250
- api_version = '2016-12-01'
249
+ api_version = '2017-06-01'
251
250
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
252
251
 
253
252
 
@@ -256,7 +255,7 @@ module Azure::ARM::Network
256
255
  # Set Headers
257
256
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
258
257
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
259
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings'
258
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings'
260
259
 
261
260
  request_url = @base_url || @client.base_url
262
261
 
@@ -283,8 +282,8 @@ module Azure::ARM::Network
283
282
  if status_code == 200
284
283
  begin
285
284
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
286
- result_mapper = ExpressRouteCircuitPeeringListResult.mapper()
287
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
285
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeeringListResult.mapper()
286
+ result.body = @client.deserialize(result_mapper, parsed_response)
288
287
  rescue Exception => e
289
288
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
290
289
  end
@@ -341,7 +340,7 @@ module Azure::ARM::Network
341
340
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
342
341
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
343
342
  fail ArgumentError, 'peering_name is nil' if peering_name.nil?
344
- api_version = '2016-12-01'
343
+ api_version = '2017-06-01'
345
344
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
346
345
 
347
346
 
@@ -350,7 +349,7 @@ module Azure::ARM::Network
350
349
  # Set Headers
351
350
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
352
351
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
353
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
352
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
354
353
 
355
354
  request_url = @base_url || @client.base_url
356
355
 
@@ -433,7 +432,7 @@ module Azure::ARM::Network
433
432
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
434
433
  fail ArgumentError, 'peering_name is nil' if peering_name.nil?
435
434
  fail ArgumentError, 'peering_parameters is nil' if peering_parameters.nil?
436
- api_version = '2016-12-01'
435
+ api_version = '2017-06-01'
437
436
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
438
437
 
439
438
 
@@ -446,11 +445,11 @@ module Azure::ARM::Network
446
445
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
447
446
 
448
447
  # Serialize Request
449
- request_mapper = ExpressRouteCircuitPeering.mapper()
450
- request_content = @client.serialize(request_mapper, peering_parameters, 'peering_parameters')
448
+ request_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeering.mapper()
449
+ request_content = @client.serialize(request_mapper, peering_parameters)
451
450
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
452
451
 
453
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
452
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
454
453
 
455
454
  request_url = @base_url || @client.base_url
456
455
 
@@ -478,8 +477,8 @@ module Azure::ARM::Network
478
477
  if status_code == 200
479
478
  begin
480
479
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
481
- result_mapper = ExpressRouteCircuitPeering.mapper()
482
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
480
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeering.mapper()
481
+ result.body = @client.deserialize(result_mapper, parsed_response)
483
482
  rescue Exception => e
484
483
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
485
484
  end
@@ -488,8 +487,8 @@ module Azure::ARM::Network
488
487
  if status_code == 201
489
488
  begin
490
489
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
491
- result_mapper = ExpressRouteCircuitPeering.mapper()
492
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
490
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeering.mapper()
491
+ result.body = @client.deserialize(result_mapper, parsed_response)
493
492
  rescue Exception => e
494
493
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
495
494
  end
@@ -575,8 +574,8 @@ module Azure::ARM::Network
575
574
  if status_code == 200
576
575
  begin
577
576
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
578
- result_mapper = ExpressRouteCircuitPeeringListResult.mapper()
579
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
577
+ result_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeeringListResult.mapper()
578
+ result.body = @client.deserialize(result_mapper, parsed_response)
580
579
  rescue Exception => e
581
580
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
582
581
  end