azure_mgmt_network 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_network.gemspec +4 -5
  3. data/lib/azure_mgmt_network.rb +3 -201
  4. data/lib/generated/azure_mgmt_network.rb +175 -0
  5. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/application_gateways.rb +158 -59
  6. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_authorizations.rb +92 -42
  7. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_peerings.rb +91 -42
  8. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuits.rb +210 -92
  9. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_service_providers.rb +32 -11
  10. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/load_balancers.rb +120 -53
  11. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/local_network_gateways.rb +91 -42
  12. data/lib/generated/azure_mgmt_network/models/address_space.rb +53 -0
  13. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +326 -0
  14. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +54 -0
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +112 -0
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +128 -0
  17. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_cookie_based_affinity.rb +0 -0
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +120 -0
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +84 -0
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +142 -0
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +87 -0
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +94 -0
  23. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_operational_state.rb +0 -0
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +115 -0
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +135 -0
  26. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_protocol.rb +0 -0
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +133 -0
  28. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_request_routing_rule_type.rb +0 -0
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +68 -0
  30. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_sku_name.rb +0 -0
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +104 -0
  32. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_tier.rb +0 -0
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +117 -0
  34. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +95 -0
  35. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/authorization_use_status.rb +0 -0
  36. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +63 -0
  37. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +127 -0
  38. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +66 -0
  39. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +45 -0
  40. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +44 -0
  41. data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +44 -0
  42. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +53 -0
  43. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +44 -0
  44. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +76 -0
  45. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +56 -0
  46. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +95 -0
  47. data/lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb +162 -0
  48. data/lib/generated/azure_mgmt_network/models/effective_route.rb +124 -0
  49. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +93 -0
  50. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  51. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  52. data/lib/generated/azure_mgmt_network/models/error.rb +92 -0
  53. data/lib/generated/azure_mgmt_network/models/error_details.rb +64 -0
  54. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +215 -0
  55. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +74 -0
  56. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +95 -0
  57. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +94 -0
  58. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +200 -0
  59. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_advertised_public_prefix_state.rb +0 -0
  60. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +85 -0
  61. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +95 -0
  62. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_state.rb +0 -0
  63. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_type.rb +0 -0
  64. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +84 -0
  65. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +87 -0
  66. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +65 -0
  67. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +66 -0
  68. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_family.rb +0 -0
  69. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_tier.rb +0 -0
  70. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +74 -0
  71. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +62 -0
  72. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +65 -0
  73. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +65 -0
  74. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +124 -0
  75. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +55 -0
  76. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +94 -0
  77. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +199 -0
  78. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +140 -0
  79. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +169 -0
  80. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipallocation_method.rb +0 -0
  81. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +119 -0
  82. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipversion.rb +0 -0
  83. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +239 -0
  84. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +94 -0
  85. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +191 -0
  86. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/load_distribution.rb +0 -0
  87. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +143 -0
  88. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +94 -0
  89. data/lib/generated/azure_mgmt_network/models/network_interface.rb +197 -0
  90. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +99 -0
  91. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +195 -0
  92. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +94 -0
  93. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/network_operation_status.rb +0 -0
  94. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +188 -0
  95. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +94 -0
  96. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +117 -0
  97. data/lib/generated/azure_mgmt_network/models/probe.rb +159 -0
  98. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/probe_protocol.rb +0 -0
  99. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/processor_architecture.rb +0 -0
  100. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +177 -0
  101. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +73 -0
  102. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +94 -0
  103. data/lib/generated/azure_mgmt_network/models/route.rb +110 -0
  104. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +93 -0
  105. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/route_next_hop_type.rb +0 -0
  106. data/lib/generated/azure_mgmt_network/models/route_table.rb +137 -0
  107. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +94 -0
  108. data/lib/generated/azure_mgmt_network/models/security_rule.rb +185 -0
  109. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_access.rb +0 -0
  110. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_direction.rb +0 -0
  111. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +95 -0
  112. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_protocol.rb +0 -0
  113. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/service_provider_provisioning_state.rb +0 -0
  114. data/lib/generated/azure_mgmt_network/models/subnet.rb +127 -0
  115. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +94 -0
  116. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/transport_protocol.rb +0 -0
  117. data/lib/generated/azure_mgmt_network/models/usage.rb +78 -0
  118. data/lib/generated/azure_mgmt_network/models/usage_name.rb +55 -0
  119. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +52 -0
  120. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +173 -0
  121. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +213 -0
  122. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +239 -0
  123. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +96 -0
  124. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_status.rb +0 -0
  125. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_type.rb +0 -0
  126. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +108 -0
  127. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +94 -0
  128. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +68 -0
  129. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_name.rb +0 -0
  130. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_tier.rb +0 -0
  131. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_type.rb +0 -0
  132. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +94 -0
  133. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +146 -0
  134. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +95 -0
  135. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  136. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +84 -0
  137. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +45 -0
  138. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +85 -0
  139. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +84 -0
  140. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/vpn_type.rb +0 -0
  141. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/module_definition.rb +0 -0
  142. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_interfaces.rb +913 -113
  143. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_management_client.rb +31 -25
  144. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_security_groups.rb +122 -53
  145. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/public_ipaddresses.rb +120 -53
  146. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/route_tables.rb +118 -53
  147. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/routes.rb +90 -42
  148. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/security_rules.rb +94 -42
  149. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/subnets.rb +94 -46
  150. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/usages.rb +4 -94
  151. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/version.rb +1 -1
  152. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateway_connections.rb +164 -86
  153. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateways.rb +146 -70
  154. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +654 -0
  155. data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_networks.rb +123 -58
  156. metadata +173 -221
  157. data/lib/azure_mgmt_network/models/address_space.rb +0 -58
  158. data/lib/azure_mgmt_network/models/application_gateway.rb +0 -102
  159. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +0 -65
  160. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +0 -88
  161. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +0 -119
  162. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +0 -88
  163. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +0 -122
  164. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +0 -89
  165. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +0 -114
  166. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +0 -88
  167. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +0 -68
  168. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +0 -88
  169. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +0 -141
  170. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +0 -88
  171. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +0 -75
  172. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +0 -86
  173. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +0 -88
  174. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +0 -101
  175. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +0 -88
  176. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +0 -118
  177. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +0 -408
  178. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +0 -88
  179. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +0 -139
  180. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +0 -86
  181. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +0 -88
  182. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +0 -85
  183. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +0 -88
  184. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +0 -122
  185. data/lib/azure_mgmt_network/models/authorization_list_result.rb +0 -87
  186. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +0 -79
  187. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +0 -83
  188. data/lib/azure_mgmt_network/models/backend_address_pool.rb +0 -88
  189. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +0 -135
  190. data/lib/azure_mgmt_network/models/bgp_settings.rb +0 -78
  191. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +0 -58
  192. data/lib/azure_mgmt_network/models/connection_shared_key.rb +0 -56
  193. data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +0 -56
  194. data/lib/azure_mgmt_network/models/dhcp_options.rb +0 -58
  195. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +0 -56
  196. data/lib/azure_mgmt_network/models/error.rb +0 -112
  197. data/lib/azure_mgmt_network/models/error_details.rb +0 -74
  198. data/lib/azure_mgmt_network/models/express_route_circuit.rb +0 -118
  199. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +0 -84
  200. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +0 -88
  201. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +0 -86
  202. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +0 -88
  203. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +0 -92
  204. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +0 -87
  205. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +0 -194
  206. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +0 -188
  207. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +0 -93
  208. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +0 -97
  209. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +0 -76
  210. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +0 -83
  211. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +0 -87
  212. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +0 -85
  213. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +0 -88
  214. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +0 -88
  215. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +0 -92
  216. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +0 -67
  217. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +0 -86
  218. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +0 -97
  219. data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +0 -88
  220. data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +0 -237
  221. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +0 -88
  222. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +0 -134
  223. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +0 -88
  224. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +0 -162
  225. data/lib/azure_mgmt_network/models/ipconfiguration.rb +0 -88
  226. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +0 -113
  227. data/lib/azure_mgmt_network/models/load_balancer.rb +0 -102
  228. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +0 -86
  229. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +0 -278
  230. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +0 -88
  231. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +0 -195
  232. data/lib/azure_mgmt_network/models/local_network_gateway.rb +0 -102
  233. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +0 -86
  234. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +0 -107
  235. data/lib/azure_mgmt_network/models/network_interface.rb +0 -102
  236. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +0 -94
  237. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +0 -88
  238. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +0 -218
  239. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +0 -86
  240. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +0 -176
  241. data/lib/azure_mgmt_network/models/network_security_group.rb +0 -102
  242. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +0 -86
  243. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +0 -189
  244. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +0 -88
  245. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +0 -117
  246. data/lib/azure_mgmt_network/models/probe.rb +0 -88
  247. data/lib/azure_mgmt_network/models/probe_properties_format.rb +0 -156
  248. data/lib/azure_mgmt_network/models/public_ipaddress.rb +0 -102
  249. data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +0 -83
  250. data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +0 -86
  251. data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +0 -146
  252. data/lib/azure_mgmt_network/models/route.rb +0 -88
  253. data/lib/azure_mgmt_network/models/route_list_result.rb +0 -85
  254. data/lib/azure_mgmt_network/models/route_properties_format.rb +0 -94
  255. data/lib/azure_mgmt_network/models/route_table.rb +0 -102
  256. data/lib/azure_mgmt_network/models/route_table_list_result.rb +0 -86
  257. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +0 -116
  258. data/lib/azure_mgmt_network/models/security_rule.rb +0 -88
  259. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +0 -87
  260. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +0 -176
  261. data/lib/azure_mgmt_network/models/subnet.rb +0 -88
  262. data/lib/azure_mgmt_network/models/subnet_list_result.rb +0 -86
  263. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +0 -130
  264. data/lib/azure_mgmt_network/models/usage.rb +0 -96
  265. data/lib/azure_mgmt_network/models/usage_name.rb +0 -66
  266. data/lib/azure_mgmt_network/models/usages_list_result.rb +0 -76
  267. data/lib/azure_mgmt_network/models/virtual_network.rb +0 -102
  268. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +0 -102
  269. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +0 -102
  270. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +0 -87
  271. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +0 -218
  272. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +0 -88
  273. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +0 -114
  274. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +0 -86
  275. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +0 -205
  276. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +0 -86
  277. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +0 -86
  278. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +0 -131
  279. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +0 -125
  280. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +0 -60
  281. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +0 -88
  282. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +0 -69
  283. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +0 -88
  284. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +0 -66
@@ -0,0 +1,84 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # VPN client root certificate of virtual network gateway
10
+ #
11
+ class VpnClientRootCertificate < MsRestAzure::SubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the certificate public data
16
+ attr_accessor :public_cert_data
17
+
18
+ # @return [String] Gets provisioning state of the VPN client root
19
+ # certificate resource Updating/Deleting/Failed
20
+ attr_accessor :provisioning_state
21
+
22
+ # @return [String] Gets name of the resource that is unique within a
23
+ # resource group. This name can be used to access the resource
24
+ attr_accessor :name
25
+
26
+ # @return [String] A unique read-only string that changes whenever the
27
+ # resource is updated
28
+ attr_accessor :etag
29
+
30
+
31
+ #
32
+ # Mapper for VpnClientRootCertificate class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'VpnClientRootCertificate',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'VpnClientRootCertificate',
42
+ model_properties: {
43
+ id: {
44
+ required: false,
45
+ serialized_name: 'id',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ public_cert_data: {
51
+ required: false,
52
+ serialized_name: 'properties.publicCertData',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ provisioning_state: {
58
+ required: false,
59
+ serialized_name: 'properties.provisioningState',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ name: {
65
+ required: false,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ etag: {
72
+ required: false,
73
+ serialized_name: 'etag',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -30,10 +30,24 @@ module Azure::ARM::Network
30
30
  #
31
31
  # @param resource_group_name [String] The name of the resource group.
32
32
  # @param network_interface_name [String] The name of the network interface.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ def delete(resource_group_name, network_interface_name, custom_headers = nil)
37
+ response = delete_async(resource_group_name, network_interface_name, custom_headers).value!
38
+ nil
39
+ end
40
+
41
+ #
42
+ # @param resource_group_name [String] The name of the resource group.
43
+ # @param network_interface_name [String] The name of the network interface.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
33
47
  # @return [Concurrent::Promise] promise which provides async access to http
34
48
  # response.
35
49
  #
36
- def delete(resource_group_name, network_interface_name, custom_headers = nil)
50
+ def delete_async(resource_group_name, network_interface_name, custom_headers = nil)
37
51
  # Send request
38
52
  promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers)
39
53
 
@@ -42,8 +56,8 @@ module Azure::ARM::Network
42
56
  deserialize_method = lambda do |parsed_response|
43
57
  end
44
58
 
45
- # Waiting for response.
46
- @client.get_long_running_operation_result(response, deserialize_method)
59
+ # Waiting for response.
60
+ @client.get_long_running_operation_result(response, deserialize_method)
47
61
  end
48
62
 
49
63
  promise
@@ -92,6 +106,8 @@ module Azure::ARM::Network
92
106
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
93
107
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
94
108
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
109
+
110
+
95
111
  request_headers = {}
96
112
 
97
113
  # Set Headers
@@ -180,6 +196,8 @@ module Azure::ARM::Network
180
196
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
181
197
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
182
198
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
199
+
200
+
183
201
  request_headers = {}
184
202
 
185
203
  # Set Headers
@@ -215,10 +233,8 @@ module Azure::ARM::Network
215
233
  if status_code == 200
216
234
  begin
217
235
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
218
- unless parsed_response.nil?
219
- parsed_response = NetworkInterface.deserialize_object(parsed_response)
220
- end
221
- result.body = parsed_response
236
+ result_mapper = NetworkInterface.mapper()
237
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
222
238
  rescue Exception => e
223
239
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
224
240
  end
@@ -237,26 +253,36 @@ module Azure::ARM::Network
237
253
  # @param network_interface_name [String] The name of the network interface.
238
254
  # @param parameters [NetworkInterface] Parameters supplied to the
239
255
  # create/update NetworkInterface operation
240
- # @param @client.api_version [String] Client Api Version.
241
- # @param @client.subscription_id [String] Gets subscription credentials which
242
- # uniquely identify Microsoft Azure subscription. The subscription ID forms
243
- # part of the URI for every service call.
244
- # @param @client.accept_language [String] Gets or sets the preferred language
245
- # for the response.
256
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
+ # will be added to the HTTP request.
258
+ #
259
+ # @return [NetworkInterface] operation results.
260
+ #
261
+ def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil)
262
+ response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value!
263
+ response.body unless response.nil?
264
+ end
265
+
266
+ #
267
+ # @param resource_group_name [String] The name of the resource group.
268
+ # @param network_interface_name [String] The name of the network interface.
269
+ # @param parameters [NetworkInterface] Parameters supplied to the
270
+ # create/update NetworkInterface operation
271
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
272
+ # will be added to the HTTP request.
246
273
  #
247
274
  # @return [Concurrent::Promise] promise which provides async access to http
248
275
  # response.
249
276
  #
250
- def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil)
277
+ def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil)
251
278
  # Send request
252
279
  promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers)
253
280
 
254
281
  promise = promise.then do |response|
255
282
  # Defining deserialization method.
256
283
  deserialize_method = lambda do |parsed_response|
257
- unless parsed_response.nil?
258
- parsed_response = NetworkInterface.deserialize_object(parsed_response)
259
- end
284
+ result_mapper = NetworkInterface.mapper()
285
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
260
286
  end
261
287
 
262
288
  # Waiting for response.
@@ -315,21 +341,23 @@ module Azure::ARM::Network
315
341
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
316
342
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
317
343
  fail ArgumentError, 'parameters is nil' if parameters.nil?
318
- parameters.validate unless parameters.nil?
319
344
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
320
345
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
346
+
347
+
321
348
  request_headers = {}
322
349
 
323
350
  # Set Headers
324
351
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
325
352
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
326
353
 
327
- # Serialize Request
328
354
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
329
- unless parameters.nil?
330
- parameters = NetworkInterface.serialize_object(parameters)
331
- end
332
- request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
355
+
356
+ # Serialize Request
357
+ request_mapper = NetworkInterface.mapper()
358
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
359
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
360
+
333
361
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'
334
362
  options = {
335
363
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -361,10 +389,8 @@ module Azure::ARM::Network
361
389
  if status_code == 201
362
390
  begin
363
391
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
364
- unless parsed_response.nil?
365
- parsed_response = NetworkInterface.deserialize_object(parsed_response)
366
- end
367
- result.body = parsed_response
392
+ result_mapper = NetworkInterface.mapper()
393
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
368
394
  rescue Exception => e
369
395
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
370
396
  end
@@ -373,10 +399,8 @@ module Azure::ARM::Network
373
399
  if status_code == 200
374
400
  begin
375
401
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
376
- unless parsed_response.nil?
377
- parsed_response = NetworkInterface.deserialize_object(parsed_response)
378
- end
379
- result.body = parsed_response
402
+ result_mapper = NetworkInterface.mapper()
403
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
380
404
  rescue Exception => e
381
405
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
382
406
  end
@@ -399,11 +423,36 @@ module Azure::ARM::Network
399
423
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
400
424
  # will be added to the HTTP request.
401
425
  #
402
- # @return [NetworkInterfaceListResult] operation results.
426
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
427
+ # the response.
403
428
  #
404
- def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
429
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
405
430
  response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
406
- response.body unless response.nil?
431
+ unless response.nil?
432
+ page = response.body
433
+ page.next_method = Proc.new do |next_link|
434
+ list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_link, custom_headers)
435
+ end
436
+ page
437
+ end
438
+ end
439
+
440
+ #
441
+ # The list network interface operation retrieves information about all network
442
+ # interfaces in a virtual machine from a virtual machine scale set.
443
+ #
444
+ # @param resource_group_name [String] The name of the resource group.
445
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
446
+ # machine scale set.
447
+ # @param virtualmachine_index [String] The virtual machine index.
448
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
449
+ # will be added to the HTTP request.
450
+ #
451
+ # @return [Array<NetworkInterface>] operation results.
452
+ #
453
+ def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
454
+ first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers)
455
+ first_page.get_all_items
407
456
  end
408
457
 
409
458
  #
@@ -442,6 +491,8 @@ module Azure::ARM::Network
442
491
  fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
443
492
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
444
493
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
494
+
495
+
445
496
  request_headers = {}
446
497
 
447
498
  # Set Headers
@@ -477,10 +528,8 @@ module Azure::ARM::Network
477
528
  if status_code == 200
478
529
  begin
479
530
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
480
- unless parsed_response.nil?
481
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
482
- end
483
- result.body = parsed_response
531
+ result_mapper = NetworkInterfaceListResult.mapper()
532
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
484
533
  rescue Exception => e
485
534
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
486
535
  end
@@ -502,11 +551,35 @@ module Azure::ARM::Network
502
551
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
552
  # will be added to the HTTP request.
504
553
  #
505
- # @return [NetworkInterfaceListResult] operation results.
554
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
555
+ # the response.
506
556
  #
507
- def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
557
+ def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
508
558
  response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
509
- response.body unless response.nil?
559
+ unless response.nil?
560
+ page = response.body
561
+ page.next_method = Proc.new do |next_link|
562
+ list_virtual_machine_scale_set_network_interfaces_next_async(next_link, custom_headers)
563
+ end
564
+ page
565
+ end
566
+ end
567
+
568
+ #
569
+ # The list network interface operation retrieves information about all network
570
+ # interfaces in a virtual machine scale set.
571
+ #
572
+ # @param resource_group_name [String] The name of the resource group.
573
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
574
+ # machine scale set.
575
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
576
+ # will be added to the HTTP request.
577
+ #
578
+ # @return [Array<NetworkInterface>] operation results.
579
+ #
580
+ def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
581
+ first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers)
582
+ first_page.get_all_items
510
583
  end
511
584
 
512
585
  #
@@ -542,6 +615,8 @@ module Azure::ARM::Network
542
615
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
543
616
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
544
617
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
618
+
619
+
545
620
  request_headers = {}
546
621
 
547
622
  # Set Headers
@@ -577,10 +652,8 @@ module Azure::ARM::Network
577
652
  if status_code == 200
578
653
  begin
579
654
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
580
- unless parsed_response.nil?
581
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
582
- end
583
- result.body = parsed_response
655
+ result_mapper = NetworkInterfaceListResult.mapper()
656
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
584
657
  rescue Exception => e
585
658
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
586
659
  end
@@ -653,6 +726,8 @@ module Azure::ARM::Network
653
726
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
654
727
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
655
728
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
729
+
730
+
656
731
  request_headers = {}
657
732
 
658
733
  # Set Headers
@@ -688,10 +763,8 @@ module Azure::ARM::Network
688
763
  if status_code == 200
689
764
  begin
690
765
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
691
- unless parsed_response.nil?
692
- parsed_response = NetworkInterface.deserialize_object(parsed_response)
693
- end
694
- result.body = parsed_response
766
+ result_mapper = NetworkInterface.mapper()
767
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
695
768
  rescue Exception => e
696
769
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
697
770
  end
@@ -710,11 +783,32 @@ module Azure::ARM::Network
710
783
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
711
784
  # will be added to the HTTP request.
712
785
  #
713
- # @return [NetworkInterfaceListResult] operation results.
786
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
787
+ # the response.
714
788
  #
715
- def list_all(custom_headers = nil)
789
+ def list_all_as_lazy(custom_headers = nil)
716
790
  response = list_all_async(custom_headers).value!
717
- response.body unless response.nil?
791
+ unless response.nil?
792
+ page = response.body
793
+ page.next_method = Proc.new do |next_link|
794
+ list_all_next_async(next_link, custom_headers)
795
+ end
796
+ page
797
+ end
798
+ end
799
+
800
+ #
801
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
802
+ # subscription.
803
+ #
804
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
805
+ # will be added to the HTTP request.
806
+ #
807
+ # @return [Array<NetworkInterface>] operation results.
808
+ #
809
+ def list_all(custom_headers = nil)
810
+ first_page = list_all_as_lazy(custom_headers)
811
+ first_page.get_all_items
718
812
  end
719
813
 
720
814
  #
@@ -742,6 +836,8 @@ module Azure::ARM::Network
742
836
  def list_all_async(custom_headers = nil)
743
837
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
744
838
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
839
+
840
+
745
841
  request_headers = {}
746
842
 
747
843
  # Set Headers
@@ -777,10 +873,8 @@ module Azure::ARM::Network
777
873
  if status_code == 200
778
874
  begin
779
875
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
780
- unless parsed_response.nil?
781
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
782
- end
783
- result.body = parsed_response
876
+ result_mapper = NetworkInterfaceListResult.mapper()
877
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
784
878
  rescue Exception => e
785
879
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
786
880
  end
@@ -800,11 +894,33 @@ module Azure::ARM::Network
800
894
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
801
895
  # will be added to the HTTP request.
802
896
  #
803
- # @return [NetworkInterfaceListResult] operation results.
897
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
898
+ # the response.
804
899
  #
805
- def list(resource_group_name, custom_headers = nil)
900
+ def list_as_lazy(resource_group_name, custom_headers = nil)
806
901
  response = list_async(resource_group_name, custom_headers).value!
807
- response.body unless response.nil?
902
+ unless response.nil?
903
+ page = response.body
904
+ page.next_method = Proc.new do |next_link|
905
+ list_next_async(next_link, custom_headers)
906
+ end
907
+ page
908
+ end
909
+ end
910
+
911
+ #
912
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
913
+ # resource group.
914
+ #
915
+ # @param resource_group_name [String] The name of the resource group.
916
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
917
+ # will be added to the HTTP request.
918
+ #
919
+ # @return [Array<NetworkInterface>] operation results.
920
+ #
921
+ def list(resource_group_name, custom_headers = nil)
922
+ first_page = list_as_lazy(resource_group_name, custom_headers)
923
+ first_page.get_all_items
808
924
  end
809
925
 
810
926
  #
@@ -835,6 +951,8 @@ module Azure::ARM::Network
835
951
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
836
952
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
837
953
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
954
+
955
+
838
956
  request_headers = {}
839
957
 
840
958
  # Set Headers
@@ -870,10 +988,8 @@ module Azure::ARM::Network
870
988
  if status_code == 200
871
989
  begin
872
990
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
873
- unless parsed_response.nil?
874
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
875
- end
876
- result.body = parsed_response
991
+ result_mapper = NetworkInterfaceListResult.mapper()
992
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
877
993
  rescue Exception => e
878
994
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
879
995
  end
@@ -886,64 +1002,179 @@ module Azure::ARM::Network
886
1002
  end
887
1003
 
888
1004
  #
889
- # The list network interface operation retrieves information about all network
890
- # interfaces in a virtual machine from a virtual machine scale set.
1005
+ # The get effective routetable operation retrieves all the route tables
1006
+ # applied on a networkInterface.
891
1007
  #
892
- # @param next_page_link [String] The NextLink from the previous successful
893
- # call to List operation.
1008
+ # @param resource_group_name [String] The name of the resource group.
1009
+ # @param network_interface_name [String] The name of the network interface.
894
1010
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
895
1011
  # will be added to the HTTP request.
896
1012
  #
897
- # @return [NetworkInterfaceListResult] operation results.
1013
+ # @return [EffectiveRouteListResult] operation results.
898
1014
  #
899
- def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil)
900
- response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
901
- response.body unless response.nil?
1015
+ def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
1016
+ first_page = get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers)
1017
+ first_page.get_all_items
902
1018
  end
903
1019
 
904
1020
  #
905
- # The list network interface operation retrieves information about all network
906
- # interfaces in a virtual machine from a virtual machine scale set.
1021
+ # @param resource_group_name [String] The name of the resource group.
1022
+ # @param network_interface_name [String] The name of the network interface.
1023
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1024
+ # will be added to the HTTP request.
907
1025
  #
908
- # @param next_page_link [String] The NextLink from the previous successful
909
- # call to List operation.
1026
+ # @return [Concurrent::Promise] promise which provides async access to http
1027
+ # response.
1028
+ #
1029
+ def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
1030
+ # Send request
1031
+ promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers)
1032
+
1033
+ promise = promise.then do |response|
1034
+ # Defining deserialization method.
1035
+ deserialize_method = lambda do |parsed_response|
1036
+ result_mapper = EffectiveRouteListResult.mapper()
1037
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
1038
+ end
1039
+
1040
+ # Waiting for response.
1041
+ @client.get_long_running_operation_result(response, deserialize_method)
1042
+ end
1043
+
1044
+ promise
1045
+ end
1046
+
1047
+ #
1048
+ # The get effective routetable operation retrieves all the route tables
1049
+ # applied on a networkInterface.
1050
+ #
1051
+ # @param resource_group_name [String] The name of the resource group.
1052
+ # @param network_interface_name [String] The name of the network interface.
1053
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1054
+ # will be added to the HTTP request.
1055
+ #
1056
+ # @return [Array<EffectiveRoute>] operation results.
1057
+ #
1058
+ def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
1059
+ first_page = get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers)
1060
+ first_page.get_all_items
1061
+ end
1062
+
1063
+ #
1064
+ # @param resource_group_name [String] The name of the resource group.
1065
+ # @param network_interface_name [String] The name of the network interface.
1066
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1067
+ # will be added to the HTTP request.
1068
+ #
1069
+ # @return [Concurrent::Promise] promise which provides async access to http
1070
+ # response.
1071
+ #
1072
+ def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
1073
+ # Send request
1074
+ promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers)
1075
+
1076
+ promise = promise.then do |response|
1077
+ # Defining deserialization method.
1078
+ deserialize_method = lambda do |parsed_response|
1079
+ result_mapper = EffectiveRouteListResult.mapper()
1080
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
1081
+ end
1082
+
1083
+ # Waiting for response.
1084
+ @client.get_long_running_operation_result(response, deserialize_method)
1085
+ end
1086
+
1087
+ promise
1088
+ end
1089
+
1090
+ #
1091
+ # The get effective routetable operation retrieves all the route tables
1092
+ # applied on a networkInterface.
1093
+ #
1094
+ # @param resource_group_name [String] The name of the resource group.
1095
+ # @param network_interface_name [String] The name of the network interface.
1096
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1097
+ # will be added to the HTTP request.
1098
+ #
1099
+ # @return [EffectiveRouteListResult] which provide lazy access to pages of the
1100
+ # response.
1101
+ #
1102
+ def begin_get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers = nil)
1103
+ response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
1104
+ unless response.nil?
1105
+ page = response.body
1106
+ page.next_method = Proc.new do |next_link|
1107
+ begin_get_effective_route_table_next_async(next_link, custom_headers)
1108
+ end
1109
+ page
1110
+ end
1111
+ end
1112
+
1113
+ #
1114
+ # The get effective routetable operation retrieves all the route tables
1115
+ # applied on a networkInterface.
1116
+ #
1117
+ # @param resource_group_name [String] The name of the resource group.
1118
+ # @param network_interface_name [String] The name of the network interface.
1119
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1120
+ # will be added to the HTTP request.
1121
+ #
1122
+ # @return [Array<EffectiveRoute>] operation results.
1123
+ #
1124
+ def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
1125
+ first_page = begin_get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers)
1126
+ first_page.get_all_items
1127
+ end
1128
+
1129
+ #
1130
+ # The get effective routetable operation retrieves all the route tables
1131
+ # applied on a networkInterface.
1132
+ #
1133
+ # @param resource_group_name [String] The name of the resource group.
1134
+ # @param network_interface_name [String] The name of the network interface.
910
1135
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
1136
  # will be added to the HTTP request.
912
1137
  #
913
1138
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
914
1139
  #
915
- def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
916
- list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1140
+ def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil)
1141
+ begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
917
1142
  end
918
1143
 
919
1144
  #
920
- # The list network interface operation retrieves information about all network
921
- # interfaces in a virtual machine from a virtual machine scale set.
1145
+ # The get effective routetable operation retrieves all the route tables
1146
+ # applied on a networkInterface.
922
1147
  #
923
- # @param next_page_link [String] The NextLink from the previous successful
924
- # call to List operation.
1148
+ # @param resource_group_name [String] The name of the resource group.
1149
+ # @param network_interface_name [String] The name of the network interface.
925
1150
  # @param [Hash{String => String}] A hash of custom headers that will be added
926
1151
  # to the HTTP request.
927
1152
  #
928
1153
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
929
1154
  #
930
- def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil)
931
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1155
+ def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
1156
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1157
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
1158
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1159
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1160
+
1161
+
932
1162
  request_headers = {}
933
1163
 
934
1164
  # Set Headers
935
1165
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
936
1166
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
937
- path_template = '{nextLink}'
1167
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable'
938
1168
  options = {
939
1169
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
940
- skip_encoding_path_params: {'nextLink' => next_page_link},
1170
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1171
+ query_params: {'api-version' => @client.api_version},
941
1172
  headers: request_headers.merge(custom_headers || {})
942
1173
  }
943
1174
 
944
1175
  request_url = @base_url || @client.base_url
945
1176
 
946
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
1177
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
947
1178
  promise = request.run_promise do |req|
948
1179
  @client.credentials.sign_request(req) unless @client.credentials.nil?
949
1180
  end
@@ -963,10 +1194,8 @@ module Azure::ARM::Network
963
1194
  if status_code == 200
964
1195
  begin
965
1196
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
966
- unless parsed_response.nil?
967
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
968
- end
969
- result.body = parsed_response
1197
+ result_mapper = EffectiveRouteListResult.mapper()
1198
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
970
1199
  rescue Exception => e
971
1200
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
972
1201
  end
@@ -979,25 +1208,324 @@ module Azure::ARM::Network
979
1208
  end
980
1209
 
981
1210
  #
982
- # The list network interface operation retrieves information about all network
983
- # interfaces in a virtual machine scale set.
1211
+ # The list effective network security group operation retrieves all the
1212
+ # network security groups applied on a networkInterface.
984
1213
  #
985
- # @param next_page_link [String] The NextLink from the previous successful
986
- # call to List operation.
1214
+ # @param resource_group_name [String] The name of the resource group.
1215
+ # @param network_interface_name [String] The name of the network interface.
987
1216
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
988
1217
  # will be added to the HTTP request.
989
1218
  #
990
- # @return [NetworkInterfaceListResult] operation results.
1219
+ # @return [EffectiveNetworkSecurityGroupListResult] operation results.
991
1220
  #
992
- def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil)
993
- response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
994
- response.body unless response.nil?
1221
+ def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
1222
+ first_page = list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers)
1223
+ first_page.get_all_items
995
1224
  end
996
1225
 
997
1226
  #
998
- # The list network interface operation retrieves information about all network
999
- # interfaces in a virtual machine scale set.
1000
- #
1227
+ # @param resource_group_name [String] The name of the resource group.
1228
+ # @param network_interface_name [String] The name of the network interface.
1229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1230
+ # will be added to the HTTP request.
1231
+ #
1232
+ # @return [Concurrent::Promise] promise which provides async access to http
1233
+ # response.
1234
+ #
1235
+ def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
1236
+ # Send request
1237
+ promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers)
1238
+
1239
+ promise = promise.then do |response|
1240
+ # Defining deserialization method.
1241
+ deserialize_method = lambda do |parsed_response|
1242
+ result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
1243
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
1244
+ end
1245
+
1246
+ # Waiting for response.
1247
+ @client.get_long_running_operation_result(response, deserialize_method)
1248
+ end
1249
+
1250
+ promise
1251
+ end
1252
+
1253
+ #
1254
+ # The list effective network security group operation retrieves all the
1255
+ # network security groups applied on a networkInterface.
1256
+ #
1257
+ # @param resource_group_name [String] The name of the resource group.
1258
+ # @param network_interface_name [String] The name of the network interface.
1259
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1260
+ # will be added to the HTTP request.
1261
+ #
1262
+ # @return [Array<EffectiveNetworkSecurityGroup>] operation results.
1263
+ #
1264
+ def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
1265
+ first_page = list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers)
1266
+ first_page.get_all_items
1267
+ end
1268
+
1269
+ #
1270
+ # @param resource_group_name [String] The name of the resource group.
1271
+ # @param network_interface_name [String] The name of the network interface.
1272
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1273
+ # will be added to the HTTP request.
1274
+ #
1275
+ # @return [Concurrent::Promise] promise which provides async access to http
1276
+ # response.
1277
+ #
1278
+ def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
1279
+ # Send request
1280
+ promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers)
1281
+
1282
+ promise = promise.then do |response|
1283
+ # Defining deserialization method.
1284
+ deserialize_method = lambda do |parsed_response|
1285
+ result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
1286
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
1287
+ end
1288
+
1289
+ # Waiting for response.
1290
+ @client.get_long_running_operation_result(response, deserialize_method)
1291
+ end
1292
+
1293
+ promise
1294
+ end
1295
+
1296
+ #
1297
+ # The list effective network security group operation retrieves all the
1298
+ # network security groups applied on a networkInterface.
1299
+ #
1300
+ # @param resource_group_name [String] The name of the resource group.
1301
+ # @param network_interface_name [String] The name of the network interface.
1302
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1303
+ # will be added to the HTTP request.
1304
+ #
1305
+ # @return [EffectiveNetworkSecurityGroupListResult] which provide lazy access
1306
+ # to pages of the response.
1307
+ #
1308
+ def begin_list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers = nil)
1309
+ response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
1310
+ unless response.nil?
1311
+ page = response.body
1312
+ page.next_method = Proc.new do |next_link|
1313
+ begin_list_effective_network_security_groups_next_async(next_link, custom_headers)
1314
+ end
1315
+ page
1316
+ end
1317
+ end
1318
+
1319
+ #
1320
+ # The list effective network security group operation retrieves all the
1321
+ # network security groups applied on a networkInterface.
1322
+ #
1323
+ # @param resource_group_name [String] The name of the resource group.
1324
+ # @param network_interface_name [String] The name of the network interface.
1325
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1326
+ # will be added to the HTTP request.
1327
+ #
1328
+ # @return [Array<EffectiveNetworkSecurityGroup>] operation results.
1329
+ #
1330
+ def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
1331
+ first_page = begin_list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers)
1332
+ first_page.get_all_items
1333
+ end
1334
+
1335
+ #
1336
+ # The list effective network security group operation retrieves all the
1337
+ # network security groups applied on a networkInterface.
1338
+ #
1339
+ # @param resource_group_name [String] The name of the resource group.
1340
+ # @param network_interface_name [String] The name of the network interface.
1341
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1342
+ # will be added to the HTTP request.
1343
+ #
1344
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1345
+ #
1346
+ def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil)
1347
+ begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
1348
+ end
1349
+
1350
+ #
1351
+ # The list effective network security group operation retrieves all the
1352
+ # network security groups applied on a networkInterface.
1353
+ #
1354
+ # @param resource_group_name [String] The name of the resource group.
1355
+ # @param network_interface_name [String] The name of the network interface.
1356
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1357
+ # to the HTTP request.
1358
+ #
1359
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1360
+ #
1361
+ def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
1362
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1363
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
1364
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1365
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1366
+
1367
+
1368
+ request_headers = {}
1369
+
1370
+ # Set Headers
1371
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1372
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1373
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups'
1374
+ options = {
1375
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1376
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1377
+ query_params: {'api-version' => @client.api_version},
1378
+ headers: request_headers.merge(custom_headers || {})
1379
+ }
1380
+
1381
+ request_url = @base_url || @client.base_url
1382
+
1383
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1384
+ promise = request.run_promise do |req|
1385
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
1386
+ end
1387
+
1388
+ promise = promise.then do |http_response|
1389
+ status_code = http_response.status
1390
+ response_content = http_response.body
1391
+ unless status_code == 200
1392
+ error_model = JSON.load(response_content)
1393
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1394
+ end
1395
+
1396
+ # Create Result
1397
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1398
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1399
+ # Deserialize Response
1400
+ if status_code == 200
1401
+ begin
1402
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1403
+ result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
1404
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1405
+ rescue Exception => e
1406
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1407
+ end
1408
+ end
1409
+
1410
+ result
1411
+ end
1412
+
1413
+ promise.execute
1414
+ end
1415
+
1416
+ #
1417
+ # The list network interface operation retrieves information about all network
1418
+ # interfaces in a virtual machine from a virtual machine scale set.
1419
+ #
1420
+ # @param next_page_link [String] The NextLink from the previous successful
1421
+ # call to List operation.
1422
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1423
+ # will be added to the HTTP request.
1424
+ #
1425
+ # @return [NetworkInterfaceListResult] operation results.
1426
+ #
1427
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil)
1428
+ response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1429
+ response.body unless response.nil?
1430
+ end
1431
+
1432
+ #
1433
+ # The list network interface operation retrieves information about all network
1434
+ # interfaces in a virtual machine from a virtual machine scale set.
1435
+ #
1436
+ # @param next_page_link [String] The NextLink from the previous successful
1437
+ # call to List operation.
1438
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1439
+ # will be added to the HTTP request.
1440
+ #
1441
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1442
+ #
1443
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
1444
+ list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1445
+ end
1446
+
1447
+ #
1448
+ # The list network interface operation retrieves information about all network
1449
+ # interfaces in a virtual machine from a virtual machine scale set.
1450
+ #
1451
+ # @param next_page_link [String] The NextLink from the previous successful
1452
+ # call to List operation.
1453
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1454
+ # to the HTTP request.
1455
+ #
1456
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1457
+ #
1458
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil)
1459
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1460
+
1461
+
1462
+ request_headers = {}
1463
+
1464
+ # Set Headers
1465
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1466
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1467
+ path_template = '{nextLink}'
1468
+ options = {
1469
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1470
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1471
+ headers: request_headers.merge(custom_headers || {})
1472
+ }
1473
+
1474
+ request_url = @base_url || @client.base_url
1475
+
1476
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
1477
+ promise = request.run_promise do |req|
1478
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
1479
+ end
1480
+
1481
+ promise = promise.then do |http_response|
1482
+ status_code = http_response.status
1483
+ response_content = http_response.body
1484
+ unless status_code == 200
1485
+ error_model = JSON.load(response_content)
1486
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1487
+ end
1488
+
1489
+ # Create Result
1490
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1491
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1492
+ # Deserialize Response
1493
+ if status_code == 200
1494
+ begin
1495
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1496
+ result_mapper = NetworkInterfaceListResult.mapper()
1497
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1498
+ rescue Exception => e
1499
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1500
+ end
1501
+ end
1502
+
1503
+ result
1504
+ end
1505
+
1506
+ promise.execute
1507
+ end
1508
+
1509
+ #
1510
+ # The list network interface operation retrieves information about all network
1511
+ # interfaces in a virtual machine scale set.
1512
+ #
1513
+ # @param next_page_link [String] The NextLink from the previous successful
1514
+ # call to List operation.
1515
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1516
+ # will be added to the HTTP request.
1517
+ #
1518
+ # @return [NetworkInterfaceListResult] operation results.
1519
+ #
1520
+ def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil)
1521
+ response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
1522
+ response.body unless response.nil?
1523
+ end
1524
+
1525
+ #
1526
+ # The list network interface operation retrieves information about all network
1527
+ # interfaces in a virtual machine scale set.
1528
+ #
1001
1529
  # @param next_page_link [String] The NextLink from the previous successful
1002
1530
  # call to List operation.
1003
1531
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1022,6 +1550,8 @@ module Azure::ARM::Network
1022
1550
  #
1023
1551
  def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil)
1024
1552
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1553
+
1554
+
1025
1555
  request_headers = {}
1026
1556
 
1027
1557
  # Set Headers
@@ -1056,10 +1586,8 @@ module Azure::ARM::Network
1056
1586
  if status_code == 200
1057
1587
  begin
1058
1588
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1059
- unless parsed_response.nil?
1060
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
1061
- end
1062
- result.body = parsed_response
1589
+ result_mapper = NetworkInterfaceListResult.mapper()
1590
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1063
1591
  rescue Exception => e
1064
1592
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1065
1593
  end
@@ -1115,6 +1643,8 @@ module Azure::ARM::Network
1115
1643
  #
1116
1644
  def list_all_next_async(next_page_link, custom_headers = nil)
1117
1645
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1646
+
1647
+
1118
1648
  request_headers = {}
1119
1649
 
1120
1650
  # Set Headers
@@ -1149,10 +1679,8 @@ module Azure::ARM::Network
1149
1679
  if status_code == 200
1150
1680
  begin
1151
1681
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1152
- unless parsed_response.nil?
1153
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
1154
- end
1155
- result.body = parsed_response
1682
+ result_mapper = NetworkInterfaceListResult.mapper()
1683
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1156
1684
  rescue Exception => e
1157
1685
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1158
1686
  end
@@ -1208,6 +1736,8 @@ module Azure::ARM::Network
1208
1736
  #
1209
1737
  def list_next_async(next_page_link, custom_headers = nil)
1210
1738
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1739
+
1740
+
1211
1741
  request_headers = {}
1212
1742
 
1213
1743
  # Set Headers
@@ -1242,10 +1772,280 @@ module Azure::ARM::Network
1242
1772
  if status_code == 200
1243
1773
  begin
1244
1774
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1245
- unless parsed_response.nil?
1246
- parsed_response = NetworkInterfaceListResult.deserialize_object(parsed_response)
1247
- end
1248
- result.body = parsed_response
1775
+ result_mapper = NetworkInterfaceListResult.mapper()
1776
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1777
+ rescue Exception => e
1778
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1779
+ end
1780
+ end
1781
+
1782
+ result
1783
+ end
1784
+
1785
+ promise.execute
1786
+ end
1787
+
1788
+ #
1789
+ # The get effective routetable operation retrieves all the route tables
1790
+ # applied on a networkInterface.
1791
+ #
1792
+ # @param next_page_link [String] The NextLink from the previous successful
1793
+ # call to List operation.
1794
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1795
+ # will be added to the HTTP request.
1796
+ #
1797
+ # @return [EffectiveRouteListResult] operation results.
1798
+ #
1799
+ def get_effective_route_table_next(next_page_link, custom_headers = nil)
1800
+ response = get_effective_route_table_next_async(next_page_link, custom_headers).value!
1801
+ response.body unless response.nil?
1802
+ end
1803
+
1804
+ #
1805
+ # @param next_page_link [String] The NextLink from the previous successful
1806
+ # call to List operation.
1807
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1808
+ # will be added to the HTTP request.
1809
+ #
1810
+ # @return [Concurrent::Promise] promise which provides async access to http
1811
+ # response.
1812
+ #
1813
+ def get_effective_route_table_next_async(next_page_link, custom_headers = nil)
1814
+ # Send request
1815
+ promise = begin_get_effective_route_table_next_async(next_page_link, custom_headers)
1816
+
1817
+ promise = promise.then do |response|
1818
+ # Defining deserialization method.
1819
+ deserialize_method = lambda do |parsed_response|
1820
+ result_mapper = EffectiveRouteListResult.mapper()
1821
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
1822
+ end
1823
+
1824
+ # Waiting for response.
1825
+ @client.get_long_running_operation_result(response, deserialize_method)
1826
+ end
1827
+
1828
+ promise
1829
+ end
1830
+
1831
+ #
1832
+ # The get effective routetable operation retrieves all the route tables
1833
+ # applied on a networkInterface.
1834
+ #
1835
+ # @param next_page_link [String] The NextLink from the previous successful
1836
+ # call to List operation.
1837
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1838
+ # will be added to the HTTP request.
1839
+ #
1840
+ # @return [EffectiveRouteListResult] operation results.
1841
+ #
1842
+ def begin_get_effective_route_table_next(next_page_link, custom_headers = nil)
1843
+ response = begin_get_effective_route_table_next_async(next_page_link, custom_headers).value!
1844
+ response.body unless response.nil?
1845
+ end
1846
+
1847
+ #
1848
+ # The get effective routetable operation retrieves all the route tables
1849
+ # applied on a networkInterface.
1850
+ #
1851
+ # @param next_page_link [String] The NextLink from the previous successful
1852
+ # call to List operation.
1853
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1854
+ # will be added to the HTTP request.
1855
+ #
1856
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1857
+ #
1858
+ def begin_get_effective_route_table_next_with_http_info(next_page_link, custom_headers = nil)
1859
+ begin_get_effective_route_table_next_async(next_page_link, custom_headers).value!
1860
+ end
1861
+
1862
+ #
1863
+ # The get effective routetable operation retrieves all the route tables
1864
+ # applied on a networkInterface.
1865
+ #
1866
+ # @param next_page_link [String] The NextLink from the previous successful
1867
+ # call to List operation.
1868
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1869
+ # to the HTTP request.
1870
+ #
1871
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1872
+ #
1873
+ def begin_get_effective_route_table_next_async(next_page_link, custom_headers = nil)
1874
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1875
+
1876
+
1877
+ request_headers = {}
1878
+
1879
+ # Set Headers
1880
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1881
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1882
+ path_template = '{nextLink}'
1883
+ options = {
1884
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1885
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1886
+ headers: request_headers.merge(custom_headers || {})
1887
+ }
1888
+
1889
+ request_url = @base_url || @client.base_url
1890
+
1891
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1892
+ promise = request.run_promise do |req|
1893
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
1894
+ end
1895
+
1896
+ promise = promise.then do |http_response|
1897
+ status_code = http_response.status
1898
+ response_content = http_response.body
1899
+ unless status_code == 200
1900
+ error_model = JSON.load(response_content)
1901
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1902
+ end
1903
+
1904
+ # Create Result
1905
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1906
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1907
+ # Deserialize Response
1908
+ if status_code == 200
1909
+ begin
1910
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1911
+ result_mapper = EffectiveRouteListResult.mapper()
1912
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1913
+ rescue Exception => e
1914
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1915
+ end
1916
+ end
1917
+
1918
+ result
1919
+ end
1920
+
1921
+ promise.execute
1922
+ end
1923
+
1924
+ #
1925
+ # The list effective network security group operation retrieves all the
1926
+ # network security groups applied on a networkInterface.
1927
+ #
1928
+ # @param next_page_link [String] The NextLink from the previous successful
1929
+ # call to List operation.
1930
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1931
+ # will be added to the HTTP request.
1932
+ #
1933
+ # @return [EffectiveNetworkSecurityGroupListResult] operation results.
1934
+ #
1935
+ def list_effective_network_security_groups_next(next_page_link, custom_headers = nil)
1936
+ response = list_effective_network_security_groups_next_async(next_page_link, custom_headers).value!
1937
+ response.body unless response.nil?
1938
+ end
1939
+
1940
+ #
1941
+ # @param next_page_link [String] The NextLink from the previous successful
1942
+ # call to List operation.
1943
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1944
+ # will be added to the HTTP request.
1945
+ #
1946
+ # @return [Concurrent::Promise] promise which provides async access to http
1947
+ # response.
1948
+ #
1949
+ def list_effective_network_security_groups_next_async(next_page_link, custom_headers = nil)
1950
+ # Send request
1951
+ promise = begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers)
1952
+
1953
+ promise = promise.then do |response|
1954
+ # Defining deserialization method.
1955
+ deserialize_method = lambda do |parsed_response|
1956
+ result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
1957
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
1958
+ end
1959
+
1960
+ # Waiting for response.
1961
+ @client.get_long_running_operation_result(response, deserialize_method)
1962
+ end
1963
+
1964
+ promise
1965
+ end
1966
+
1967
+ #
1968
+ # The list effective network security group operation retrieves all the
1969
+ # network security groups applied on a networkInterface.
1970
+ #
1971
+ # @param next_page_link [String] The NextLink from the previous successful
1972
+ # call to List operation.
1973
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1974
+ # will be added to the HTTP request.
1975
+ #
1976
+ # @return [EffectiveNetworkSecurityGroupListResult] operation results.
1977
+ #
1978
+ def begin_list_effective_network_security_groups_next(next_page_link, custom_headers = nil)
1979
+ response = begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers).value!
1980
+ response.body unless response.nil?
1981
+ end
1982
+
1983
+ #
1984
+ # The list effective network security group operation retrieves all the
1985
+ # network security groups applied on a networkInterface.
1986
+ #
1987
+ # @param next_page_link [String] The NextLink from the previous successful
1988
+ # call to List operation.
1989
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1990
+ # will be added to the HTTP request.
1991
+ #
1992
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1993
+ #
1994
+ def begin_list_effective_network_security_groups_next_with_http_info(next_page_link, custom_headers = nil)
1995
+ begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers).value!
1996
+ end
1997
+
1998
+ #
1999
+ # The list effective network security group operation retrieves all the
2000
+ # network security groups applied on a networkInterface.
2001
+ #
2002
+ # @param next_page_link [String] The NextLink from the previous successful
2003
+ # call to List operation.
2004
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2005
+ # to the HTTP request.
2006
+ #
2007
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2008
+ #
2009
+ def begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers = nil)
2010
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2011
+
2012
+
2013
+ request_headers = {}
2014
+
2015
+ # Set Headers
2016
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2017
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2018
+ path_template = '{nextLink}'
2019
+ options = {
2020
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2021
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2022
+ headers: request_headers.merge(custom_headers || {})
2023
+ }
2024
+
2025
+ request_url = @base_url || @client.base_url
2026
+
2027
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
2028
+ promise = request.run_promise do |req|
2029
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
2030
+ end
2031
+
2032
+ promise = promise.then do |http_response|
2033
+ status_code = http_response.status
2034
+ response_content = http_response.body
2035
+ unless status_code == 200
2036
+ error_model = JSON.load(response_content)
2037
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
2038
+ end
2039
+
2040
+ # Create Result
2041
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
2042
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2043
+ # Deserialize Response
2044
+ if status_code == 200
2045
+ begin
2046
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2047
+ result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
2048
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1249
2049
  rescue Exception => e
1250
2050
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1251
2051
  end