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
@@ -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 PacketCaptures
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -59,8 +58,8 @@ module Azure::ARM::Network
59
58
  promise = promise.then do |response|
60
59
  # Defining deserialization method.
61
60
  deserialize_method = lambda do |parsed_response|
62
- result_mapper = PacketCaptureResult.mapper()
63
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
61
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureResult.mapper()
62
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
64
63
  end
65
64
 
66
65
  # Waiting for response.
@@ -116,7 +115,7 @@ module Azure::ARM::Network
116
115
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
117
116
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
118
117
  fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
119
- api_version = '2016-12-01'
118
+ api_version = '2017-06-01'
120
119
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
121
120
 
122
121
 
@@ -125,7 +124,7 @@ module Azure::ARM::Network
125
124
  # Set Headers
126
125
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
127
126
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
128
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
127
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
129
128
 
130
129
  request_url = @base_url || @client.base_url
131
130
 
@@ -152,8 +151,8 @@ module Azure::ARM::Network
152
151
  if status_code == 200
153
152
  begin
154
153
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
155
- result_mapper = PacketCaptureResult.mapper()
156
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
154
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureResult.mapper()
155
+ result.body = @client.deserialize(result_mapper, parsed_response)
157
156
  rescue Exception => e
158
157
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
159
158
  end
@@ -282,8 +281,8 @@ module Azure::ARM::Network
282
281
  promise = promise.then do |response|
283
282
  # Defining deserialization method.
284
283
  deserialize_method = lambda do |parsed_response|
285
- result_mapper = PacketCaptureQueryStatusResult.mapper()
286
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
284
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureQueryStatusResult.mapper()
285
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
287
286
  end
288
287
 
289
288
  # Waiting for response.
@@ -338,7 +337,7 @@ module Azure::ARM::Network
338
337
  def list_async(resource_group_name, network_watcher_name, custom_headers = nil)
339
338
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
340
339
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
341
- api_version = '2016-12-01'
340
+ api_version = '2017-06-01'
342
341
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
343
342
 
344
343
 
@@ -347,7 +346,7 @@ module Azure::ARM::Network
347
346
  # Set Headers
348
347
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
349
348
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
350
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures'
349
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures'
351
350
 
352
351
  request_url = @base_url || @client.base_url
353
352
 
@@ -374,8 +373,8 @@ module Azure::ARM::Network
374
373
  if status_code == 200
375
374
  begin
376
375
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
377
- result_mapper = PacketCaptureListResult.mapper()
378
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
376
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureListResult.mapper()
377
+ result.body = @client.deserialize(result_mapper, parsed_response)
379
378
  rescue Exception => e
380
379
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
381
380
  end
@@ -440,7 +439,7 @@ module Azure::ARM::Network
440
439
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
441
440
  fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
442
441
  fail ArgumentError, 'parameters is nil' if parameters.nil?
443
- api_version = '2016-12-01'
442
+ api_version = '2017-06-01'
444
443
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
445
444
 
446
445
 
@@ -453,11 +452,11 @@ module Azure::ARM::Network
453
452
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
454
453
 
455
454
  # Serialize Request
456
- request_mapper = PacketCapture.mapper()
457
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
455
+ request_mapper = Azure::ARM::Network::Models::PacketCapture.mapper()
456
+ request_content = @client.serialize(request_mapper, parameters)
458
457
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
459
458
 
460
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
459
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
461
460
 
462
461
  request_url = @base_url || @client.base_url
463
462
 
@@ -485,8 +484,8 @@ module Azure::ARM::Network
485
484
  if status_code == 201
486
485
  begin
487
486
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
488
- result_mapper = PacketCaptureResult.mapper()
489
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
487
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureResult.mapper()
488
+ result.body = @client.deserialize(result_mapper, parsed_response)
490
489
  rescue Exception => e
491
490
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
492
491
  end
@@ -543,7 +542,7 @@ module Azure::ARM::Network
543
542
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
544
543
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
545
544
  fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
546
- api_version = '2016-12-01'
545
+ api_version = '2017-06-01'
547
546
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
548
547
 
549
548
 
@@ -552,7 +551,7 @@ module Azure::ARM::Network
552
551
  # Set Headers
553
552
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
554
553
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
555
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
554
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
556
555
 
557
556
  request_url = @base_url || @client.base_url
558
557
 
@@ -627,7 +626,7 @@ module Azure::ARM::Network
627
626
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
628
627
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
629
628
  fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
630
- api_version = '2016-12-01'
629
+ api_version = '2017-06-01'
631
630
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
632
631
 
633
632
 
@@ -636,7 +635,7 @@ module Azure::ARM::Network
636
635
  # Set Headers
637
636
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
638
637
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
639
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop'
638
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop'
640
639
 
641
640
  request_url = @base_url || @client.base_url
642
641
 
@@ -718,7 +717,7 @@ module Azure::ARM::Network
718
717
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
719
718
  fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
720
719
  fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
721
- api_version = '2016-12-01'
720
+ api_version = '2017-06-01'
722
721
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
723
722
 
724
723
 
@@ -727,7 +726,7 @@ module Azure::ARM::Network
727
726
  # Set Headers
728
727
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
729
728
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
730
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus'
729
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus'
731
730
 
732
731
  request_url = @base_url || @client.base_url
733
732
 
@@ -754,8 +753,8 @@ module Azure::ARM::Network
754
753
  if status_code == 200
755
754
  begin
756
755
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
757
- result_mapper = PacketCaptureQueryStatusResult.mapper()
758
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
756
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureQueryStatusResult.mapper()
757
+ result.body = @client.deserialize(result_mapper, parsed_response)
759
758
  rescue Exception => e
760
759
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
761
760
  end
@@ -764,8 +763,8 @@ module Azure::ARM::Network
764
763
  if status_code == 202
765
764
  begin
766
765
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
767
- result_mapper = PacketCaptureQueryStatusResult.mapper()
768
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
766
+ result_mapper = Azure::ARM::Network::Models::PacketCaptureQueryStatusResult.mapper()
767
+ result.body = @client.deserialize(result_mapper, parsed_response)
769
768
  rescue Exception => e
770
769
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
771
770
  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 PublicIPAddresses
11
- include Azure::ARM::Network::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -105,7 +104,7 @@ module Azure::ARM::Network
105
104
  def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil)
106
105
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
107
106
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
108
- api_version = '2016-12-01'
107
+ api_version = '2017-06-01'
109
108
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
110
109
 
111
110
 
@@ -114,7 +113,7 @@ module Azure::ARM::Network
114
113
  # Set Headers
115
114
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
116
115
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
117
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
116
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
118
117
 
119
118
  request_url = @base_url || @client.base_url
120
119
 
@@ -141,8 +140,8 @@ module Azure::ARM::Network
141
140
  if status_code == 200
142
141
  begin
143
142
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
144
- result_mapper = PublicIPAddress.mapper()
145
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
143
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
144
+ result.body = @client.deserialize(result_mapper, parsed_response)
146
145
  rescue Exception => e
147
146
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
148
147
  end
@@ -189,8 +188,8 @@ module Azure::ARM::Network
189
188
  promise = promise.then do |response|
190
189
  # Defining deserialization method.
191
190
  deserialize_method = lambda do |parsed_response|
192
- result_mapper = PublicIPAddress.mapper()
193
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
191
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
192
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
194
193
  end
195
194
 
196
195
  # Waiting for response.
@@ -234,7 +233,7 @@ module Azure::ARM::Network
234
233
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
235
234
  #
236
235
  def list_all_async(custom_headers = nil)
237
- api_version = '2016-12-01'
236
+ api_version = '2017-06-01'
238
237
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
239
238
 
240
239
 
@@ -243,7 +242,7 @@ module Azure::ARM::Network
243
242
  # Set Headers
244
243
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
245
244
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
246
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses'
245
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses'
247
246
 
248
247
  request_url = @base_url || @client.base_url
249
248
 
@@ -270,8 +269,8 @@ module Azure::ARM::Network
270
269
  if status_code == 200
271
270
  begin
272
271
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
273
- result_mapper = PublicIPAddressListResult.mapper()
274
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
272
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
273
+ result.body = @client.deserialize(result_mapper, parsed_response)
275
274
  rescue Exception => e
276
275
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
277
276
  end
@@ -321,7 +320,7 @@ module Azure::ARM::Network
321
320
  #
322
321
  def list_async(resource_group_name, custom_headers = nil)
323
322
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
324
- api_version = '2016-12-01'
323
+ api_version = '2017-06-01'
325
324
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
326
325
 
327
326
 
@@ -330,7 +329,7 @@ module Azure::ARM::Network
330
329
  # Set Headers
331
330
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
332
331
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
333
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses'
332
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses'
334
333
 
335
334
  request_url = @base_url || @client.base_url
336
335
 
@@ -357,8 +356,327 @@ module Azure::ARM::Network
357
356
  if status_code == 200
358
357
  begin
359
358
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
360
- result_mapper = PublicIPAddressListResult.mapper()
361
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
359
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
360
+ result.body = @client.deserialize(result_mapper, parsed_response)
361
+ rescue Exception => e
362
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
363
+ end
364
+ end
365
+
366
+ result
367
+ end
368
+
369
+ promise.execute
370
+ end
371
+
372
+ #
373
+ # Gets information about all public IP addresses on a virtual machine scale set
374
+ # level.
375
+ #
376
+ # @param resource_group_name [String] The name of the resource group.
377
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
378
+ # machine scale set.
379
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
380
+ # will be added to the HTTP request.
381
+ #
382
+ # @return [Array<PublicIPAddress>] operation results.
383
+ #
384
+ def list_virtual_machine_scale_set_public_ipaddresses(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
385
+ first_page = list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers)
386
+ first_page.get_all_items
387
+ end
388
+
389
+ #
390
+ # Gets information about all public IP addresses on a virtual machine scale set
391
+ # level.
392
+ #
393
+ # @param resource_group_name [String] The name of the resource group.
394
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
395
+ # machine scale set.
396
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
397
+ # will be added to the HTTP request.
398
+ #
399
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
400
+ #
401
+ def list_virtual_machine_scale_set_public_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
402
+ list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
403
+ end
404
+
405
+ #
406
+ # Gets information about all public IP addresses on a virtual machine scale set
407
+ # level.
408
+ #
409
+ # @param resource_group_name [String] The name of the resource group.
410
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
411
+ # machine scale set.
412
+ # @param [Hash{String => String}] A hash of custom headers that will be added
413
+ # to the HTTP request.
414
+ #
415
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
416
+ #
417
+ def list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
418
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
419
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
420
+ api_version = '2017-03-30'
421
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
422
+
423
+
424
+ request_headers = {}
425
+
426
+ # Set Headers
427
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
428
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
429
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses'
430
+
431
+ request_url = @base_url || @client.base_url
432
+
433
+ options = {
434
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
435
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
436
+ query_params: {'api-version' => api_version},
437
+ headers: request_headers.merge(custom_headers || {}),
438
+ base_url: request_url
439
+ }
440
+ promise = @client.make_request_async(:get, path_template, options)
441
+
442
+ promise = promise.then do |result|
443
+ http_response = result.response
444
+ status_code = http_response.status
445
+ response_content = http_response.body
446
+ unless status_code == 200
447
+ error_model = JSON.load(response_content)
448
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
449
+ end
450
+
451
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
452
+ # Deserialize Response
453
+ if status_code == 200
454
+ begin
455
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
456
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
457
+ result.body = @client.deserialize(result_mapper, parsed_response)
458
+ rescue Exception => e
459
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
460
+ end
461
+ end
462
+
463
+ result
464
+ end
465
+
466
+ promise.execute
467
+ end
468
+
469
+ #
470
+ # Gets information about all public IP addresses in a virtual machine IP
471
+ # configuration in a virtual machine scale set.
472
+ #
473
+ # @param resource_group_name [String] The name of the resource group.
474
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
475
+ # machine scale set.
476
+ # @param virtualmachine_index [String] The virtual machine index.
477
+ # @param network_interface_name [String] The network interface name.
478
+ # @param ip_configuration_name [String] The IP configuration name.
479
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
480
+ # will be added to the HTTP request.
481
+ #
482
+ # @return [Array<PublicIPAddress>] operation results.
483
+ #
484
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
485
+ first_page = list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers)
486
+ first_page.get_all_items
487
+ end
488
+
489
+ #
490
+ # Gets information about all public IP addresses in a virtual machine IP
491
+ # configuration in a virtual machine scale set.
492
+ #
493
+ # @param resource_group_name [String] The name of the resource group.
494
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
495
+ # machine scale set.
496
+ # @param virtualmachine_index [String] The virtual machine index.
497
+ # @param network_interface_name [String] The network interface name.
498
+ # @param ip_configuration_name [String] The IP configuration name.
499
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
500
+ # will be added to the HTTP request.
501
+ #
502
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
503
+ #
504
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
505
+ list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers).value!
506
+ end
507
+
508
+ #
509
+ # Gets information about all public IP addresses in a virtual machine IP
510
+ # configuration in a virtual machine scale set.
511
+ #
512
+ # @param resource_group_name [String] The name of the resource group.
513
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
514
+ # machine scale set.
515
+ # @param virtualmachine_index [String] The virtual machine index.
516
+ # @param network_interface_name [String] The network interface name.
517
+ # @param ip_configuration_name [String] The IP configuration name.
518
+ # @param [Hash{String => String}] A hash of custom headers that will be added
519
+ # to the HTTP request.
520
+ #
521
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
522
+ #
523
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
524
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
525
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
526
+ fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
527
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
528
+ fail ArgumentError, 'ip_configuration_name is nil' if ip_configuration_name.nil?
529
+ api_version = '2017-03-30'
530
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
531
+
532
+
533
+ request_headers = {}
534
+
535
+ # Set Headers
536
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
537
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
538
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses'
539
+
540
+ request_url = @base_url || @client.base_url
541
+
542
+ options = {
543
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
544
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'ipConfigurationName' => ip_configuration_name,'subscriptionId' => @client.subscription_id},
545
+ query_params: {'api-version' => api_version},
546
+ headers: request_headers.merge(custom_headers || {}),
547
+ base_url: request_url
548
+ }
549
+ promise = @client.make_request_async(:get, path_template, options)
550
+
551
+ promise = promise.then do |result|
552
+ http_response = result.response
553
+ status_code = http_response.status
554
+ response_content = http_response.body
555
+ unless status_code == 200
556
+ error_model = JSON.load(response_content)
557
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
558
+ end
559
+
560
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
561
+ # Deserialize Response
562
+ if status_code == 200
563
+ begin
564
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
565
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
566
+ result.body = @client.deserialize(result_mapper, parsed_response)
567
+ rescue Exception => e
568
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
569
+ end
570
+ end
571
+
572
+ result
573
+ end
574
+
575
+ promise.execute
576
+ end
577
+
578
+ #
579
+ # Get the specified public IP address in a virtual machine scale set.
580
+ #
581
+ # @param resource_group_name [String] The name of the resource group.
582
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
583
+ # machine scale set.
584
+ # @param virtualmachine_index [String] The virtual machine index.
585
+ # @param network_interface_name [String] The name of the network interface.
586
+ # @param ip_configuration_name [String] The name of the IP configuration.
587
+ # @param public_ip_address_name [String] The name of the public IP Address.
588
+ # @param expand [String] Expands referenced resources.
589
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
590
+ # will be added to the HTTP request.
591
+ #
592
+ # @return [PublicIPAddress] operation results.
593
+ #
594
+ def get_virtual_machine_scale_set_public_ipaddress(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil)
595
+ response = get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand, custom_headers).value!
596
+ response.body unless response.nil?
597
+ end
598
+
599
+ #
600
+ # Get the specified public IP address in a virtual machine scale set.
601
+ #
602
+ # @param resource_group_name [String] The name of the resource group.
603
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
604
+ # machine scale set.
605
+ # @param virtualmachine_index [String] The virtual machine index.
606
+ # @param network_interface_name [String] The name of the network interface.
607
+ # @param ip_configuration_name [String] The name of the IP configuration.
608
+ # @param public_ip_address_name [String] The name of the public IP Address.
609
+ # @param expand [String] Expands referenced resources.
610
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
611
+ # will be added to the HTTP request.
612
+ #
613
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
614
+ #
615
+ def get_virtual_machine_scale_set_public_ipaddress_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil)
616
+ get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand, custom_headers).value!
617
+ end
618
+
619
+ #
620
+ # Get the specified public IP address in a virtual machine scale set.
621
+ #
622
+ # @param resource_group_name [String] The name of the resource group.
623
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
624
+ # machine scale set.
625
+ # @param virtualmachine_index [String] The virtual machine index.
626
+ # @param network_interface_name [String] The name of the network interface.
627
+ # @param ip_configuration_name [String] The name of the IP configuration.
628
+ # @param public_ip_address_name [String] The name of the public IP Address.
629
+ # @param expand [String] Expands referenced resources.
630
+ # @param [Hash{String => String}] A hash of custom headers that will be added
631
+ # to the HTTP request.
632
+ #
633
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
634
+ #
635
+ def get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil)
636
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
637
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
638
+ fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
639
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
640
+ fail ArgumentError, 'ip_configuration_name is nil' if ip_configuration_name.nil?
641
+ fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
642
+ api_version = '2017-03-30'
643
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
644
+
645
+
646
+ request_headers = {}
647
+
648
+ # Set Headers
649
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
650
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
651
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}'
652
+
653
+ request_url = @base_url || @client.base_url
654
+
655
+ options = {
656
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
657
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'ipConfigurationName' => ip_configuration_name,'publicIpAddressName' => public_ip_address_name,'subscriptionId' => @client.subscription_id},
658
+ query_params: {'api-version' => api_version,'$expand' => expand},
659
+ headers: request_headers.merge(custom_headers || {}),
660
+ base_url: request_url
661
+ }
662
+ promise = @client.make_request_async(:get, path_template, options)
663
+
664
+ promise = promise.then do |result|
665
+ http_response = result.response
666
+ status_code = http_response.status
667
+ response_content = http_response.body
668
+ unless status_code == 200
669
+ error_model = JSON.load(response_content)
670
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
671
+ end
672
+
673
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
674
+ # Deserialize Response
675
+ if status_code == 200
676
+ begin
677
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
678
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
679
+ result.body = @client.deserialize(result_mapper, parsed_response)
362
680
  rescue Exception => e
363
681
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
364
682
  end
@@ -411,7 +729,7 @@ module Azure::ARM::Network
411
729
  def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil)
412
730
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
413
731
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
414
- api_version = '2016-12-01'
732
+ api_version = '2017-06-01'
415
733
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
416
734
 
417
735
 
@@ -420,7 +738,7 @@ module Azure::ARM::Network
420
738
  # Set Headers
421
739
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
422
740
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
423
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
741
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
424
742
 
425
743
  request_url = @base_url || @client.base_url
426
744
 
@@ -499,7 +817,7 @@ module Azure::ARM::Network
499
817
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
500
818
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
501
819
  fail ArgumentError, 'parameters is nil' if parameters.nil?
502
- api_version = '2016-12-01'
820
+ api_version = '2017-06-01'
503
821
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
504
822
 
505
823
 
@@ -512,11 +830,11 @@ module Azure::ARM::Network
512
830
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
513
831
 
514
832
  # Serialize Request
515
- request_mapper = PublicIPAddress.mapper()
516
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
833
+ request_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
834
+ request_content = @client.serialize(request_mapper, parameters)
517
835
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
518
836
 
519
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
837
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
520
838
 
521
839
  request_url = @base_url || @client.base_url
522
840
 
@@ -544,8 +862,8 @@ module Azure::ARM::Network
544
862
  if status_code == 201
545
863
  begin
546
864
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
547
- result_mapper = PublicIPAddress.mapper()
548
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
865
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
866
+ result.body = @client.deserialize(result_mapper, parsed_response)
549
867
  rescue Exception => e
550
868
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
551
869
  end
@@ -554,8 +872,8 @@ module Azure::ARM::Network
554
872
  if status_code == 200
555
873
  begin
556
874
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
557
- result_mapper = PublicIPAddress.mapper()
558
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
875
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
876
+ result.body = @client.deserialize(result_mapper, parsed_response)
559
877
  rescue Exception => e
560
878
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
561
879
  end
@@ -641,8 +959,8 @@ module Azure::ARM::Network
641
959
  if status_code == 200
642
960
  begin
643
961
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
644
- result_mapper = PublicIPAddressListResult.mapper()
645
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
962
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
963
+ result.body = @client.deserialize(result_mapper, parsed_response)
646
964
  rescue Exception => e
647
965
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
648
966
  end
@@ -728,8 +1046,188 @@ module Azure::ARM::Network
728
1046
  if status_code == 200
729
1047
  begin
730
1048
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
731
- result_mapper = PublicIPAddressListResult.mapper()
732
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1049
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
1050
+ result.body = @client.deserialize(result_mapper, parsed_response)
1051
+ rescue Exception => e
1052
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1053
+ end
1054
+ end
1055
+
1056
+ result
1057
+ end
1058
+
1059
+ promise.execute
1060
+ end
1061
+
1062
+ #
1063
+ # Gets information about all public IP addresses on a virtual machine scale set
1064
+ # level.
1065
+ #
1066
+ # @param next_page_link [String] The NextLink from the previous successful call
1067
+ # to List operation.
1068
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1069
+ # will be added to the HTTP request.
1070
+ #
1071
+ # @return [PublicIPAddressListResult] operation results.
1072
+ #
1073
+ def list_virtual_machine_scale_set_public_ipaddresses_next(next_page_link, custom_headers = nil)
1074
+ response = list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers).value!
1075
+ response.body unless response.nil?
1076
+ end
1077
+
1078
+ #
1079
+ # Gets information about all public IP addresses on a virtual machine scale set
1080
+ # level.
1081
+ #
1082
+ # @param next_page_link [String] The NextLink from the previous successful call
1083
+ # to List operation.
1084
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1085
+ # will be added to the HTTP request.
1086
+ #
1087
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1088
+ #
1089
+ def list_virtual_machine_scale_set_public_ipaddresses_next_with_http_info(next_page_link, custom_headers = nil)
1090
+ list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers).value!
1091
+ end
1092
+
1093
+ #
1094
+ # Gets information about all public IP addresses on a virtual machine scale set
1095
+ # level.
1096
+ #
1097
+ # @param next_page_link [String] The NextLink from the previous successful call
1098
+ # to List operation.
1099
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1100
+ # to the HTTP request.
1101
+ #
1102
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1103
+ #
1104
+ def list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers = nil)
1105
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1106
+
1107
+
1108
+ request_headers = {}
1109
+
1110
+ # Set Headers
1111
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1112
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1113
+ path_template = '{nextLink}'
1114
+
1115
+ request_url = @base_url || @client.base_url
1116
+
1117
+ options = {
1118
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1119
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1120
+ headers: request_headers.merge(custom_headers || {}),
1121
+ base_url: request_url
1122
+ }
1123
+ promise = @client.make_request_async(:get, path_template, options)
1124
+
1125
+ promise = promise.then do |result|
1126
+ http_response = result.response
1127
+ status_code = http_response.status
1128
+ response_content = http_response.body
1129
+ unless status_code == 200
1130
+ error_model = JSON.load(response_content)
1131
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1132
+ end
1133
+
1134
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1135
+ # Deserialize Response
1136
+ if status_code == 200
1137
+ begin
1138
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1139
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
1140
+ result.body = @client.deserialize(result_mapper, parsed_response)
1141
+ rescue Exception => e
1142
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1143
+ end
1144
+ end
1145
+
1146
+ result
1147
+ end
1148
+
1149
+ promise.execute
1150
+ end
1151
+
1152
+ #
1153
+ # Gets information about all public IP addresses in a virtual machine IP
1154
+ # configuration in a virtual machine scale set.
1155
+ #
1156
+ # @param next_page_link [String] The NextLink from the previous successful call
1157
+ # to List operation.
1158
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1159
+ # will be added to the HTTP request.
1160
+ #
1161
+ # @return [PublicIPAddressListResult] operation results.
1162
+ #
1163
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses_next(next_page_link, custom_headers = nil)
1164
+ response = list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers).value!
1165
+ response.body unless response.nil?
1166
+ end
1167
+
1168
+ #
1169
+ # Gets information about all public IP addresses in a virtual machine IP
1170
+ # configuration in a virtual machine scale set.
1171
+ #
1172
+ # @param next_page_link [String] The NextLink from the previous successful call
1173
+ # to List operation.
1174
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1175
+ # will be added to the HTTP request.
1176
+ #
1177
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1178
+ #
1179
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_with_http_info(next_page_link, custom_headers = nil)
1180
+ list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers).value!
1181
+ end
1182
+
1183
+ #
1184
+ # Gets information about all public IP addresses in a virtual machine IP
1185
+ # configuration in a virtual machine scale set.
1186
+ #
1187
+ # @param next_page_link [String] The NextLink from the previous successful call
1188
+ # to List operation.
1189
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1190
+ # to the HTTP request.
1191
+ #
1192
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1193
+ #
1194
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers = nil)
1195
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1196
+
1197
+
1198
+ request_headers = {}
1199
+
1200
+ # Set Headers
1201
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1202
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1203
+ path_template = '{nextLink}'
1204
+
1205
+ request_url = @base_url || @client.base_url
1206
+
1207
+ options = {
1208
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1209
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1210
+ headers: request_headers.merge(custom_headers || {}),
1211
+ base_url: request_url
1212
+ }
1213
+ promise = @client.make_request_async(:get, path_template, options)
1214
+
1215
+ promise = promise.then do |result|
1216
+ http_response = result.response
1217
+ status_code = http_response.status
1218
+ response_content = http_response.body
1219
+ unless status_code == 200
1220
+ error_model = JSON.load(response_content)
1221
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1222
+ end
1223
+
1224
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1225
+ # Deserialize Response
1226
+ if status_code == 200
1227
+ begin
1228
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1229
+ result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
1230
+ result.body = @client.deserialize(result_mapper, parsed_response)
733
1231
  rescue Exception => e
734
1232
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
735
1233
  end
@@ -782,5 +1280,56 @@ module Azure::ARM::Network
782
1280
  end
783
1281
  end
784
1282
 
1283
+ #
1284
+ # Gets information about all public IP addresses on a virtual machine scale set
1285
+ # level.
1286
+ #
1287
+ # @param resource_group_name [String] The name of the resource group.
1288
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
1289
+ # machine scale set.
1290
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1291
+ # will be added to the HTTP request.
1292
+ #
1293
+ # @return [PublicIPAddressListResult] which provide lazy access to pages of the
1294
+ # response.
1295
+ #
1296
+ def list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
1297
+ response = list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
1298
+ unless response.nil?
1299
+ page = response.body
1300
+ page.next_method = Proc.new do |next_page_link|
1301
+ list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers)
1302
+ end
1303
+ page
1304
+ end
1305
+ end
1306
+
1307
+ #
1308
+ # Gets information about all public IP addresses in a virtual machine IP
1309
+ # configuration in a virtual machine scale set.
1310
+ #
1311
+ # @param resource_group_name [String] The name of the resource group.
1312
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
1313
+ # machine scale set.
1314
+ # @param virtualmachine_index [String] The virtual machine index.
1315
+ # @param network_interface_name [String] The network interface name.
1316
+ # @param ip_configuration_name [String] The IP configuration name.
1317
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1318
+ # will be added to the HTTP request.
1319
+ #
1320
+ # @return [PublicIPAddressListResult] which provide lazy access to pages of the
1321
+ # response.
1322
+ #
1323
+ def list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
1324
+ response = list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers).value!
1325
+ unless response.nil?
1326
+ page = response.body
1327
+ page.next_method = Proc.new do |next_page_link|
1328
+ list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers)
1329
+ end
1330
+ page
1331
+ end
1332
+ end
1333
+
785
1334
  end
786
1335
  end