fog-azure-rm 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (433) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.travis.yml +11 -1
  4. data/CHANGELOG.md +35 -14
  5. data/fog-azure-rm.gemspec +8 -9
  6. data/lib/fog/azurerm.rb +3 -0
  7. data/lib/fog/azurerm/application_gateway.rb +64 -0
  8. data/lib/fog/azurerm/compute.rb +1 -0
  9. data/lib/fog/azurerm/config.rb +17 -0
  10. data/lib/fog/azurerm/core.rb +1 -0
  11. data/lib/fog/azurerm/dns.rb +4 -2
  12. data/lib/fog/azurerm/docs/application_gateway.md +139 -0
  13. data/lib/fog/azurerm/docs/dns.md +28 -6
  14. data/lib/fog/azurerm/docs/network.md +151 -143
  15. data/lib/fog/azurerm/docs/resources.md +3 -3
  16. data/lib/fog/azurerm/docs/storage.md +15 -3
  17. data/lib/fog/azurerm/docs/traffic_manager.md +118 -0
  18. data/lib/fog/azurerm/fog_azure_rm_exception.rb +13 -0
  19. data/lib/fog/azurerm/models/application_gateway/backend_address_pool.rb +22 -0
  20. data/lib/fog/azurerm/models/application_gateway/backend_http_setting.rb +26 -0
  21. data/lib/fog/azurerm/models/application_gateway/frontend_ip_configuration.rb +22 -0
  22. data/lib/fog/azurerm/models/application_gateway/frontend_port.rb +18 -0
  23. data/lib/fog/azurerm/models/{network/application_gateway.rb → application_gateway/gateway.rb} +74 -78
  24. data/lib/fog/azurerm/models/{network/application_gateways.rb → application_gateway/gateways.rb} +6 -6
  25. data/lib/fog/azurerm/models/application_gateway/http_listener.rb +28 -0
  26. data/lib/fog/azurerm/models/application_gateway/ip_configuration.rb +18 -0
  27. data/lib/fog/azurerm/models/application_gateway/probe.rb +28 -0
  28. data/lib/fog/azurerm/models/application_gateway/request_routing_rule.rb +25 -0
  29. data/lib/fog/azurerm/models/application_gateway/ssl_certificate.rb +22 -0
  30. data/lib/fog/azurerm/models/application_gateway/url_path_map.rb +28 -0
  31. data/lib/fog/azurerm/models/compute/availability_set.rb +8 -8
  32. data/lib/fog/azurerm/models/compute/availability_sets.rb +3 -1
  33. data/lib/fog/azurerm/models/compute/server.rb +50 -34
  34. data/lib/fog/azurerm/models/dns/record_set.rb +30 -2
  35. data/lib/fog/azurerm/models/dns/record_sets.rb +4 -2
  36. data/lib/fog/azurerm/models/dns/zone.rb +1 -1
  37. data/lib/fog/azurerm/models/dns/zones.rb +4 -2
  38. data/lib/fog/azurerm/models/network/express_route_circuit.rb +89 -0
  39. data/lib/fog/azurerm/models/network/express_route_circuit_peering.rb +93 -0
  40. data/lib/fog/azurerm/models/network/express_route_circuit_peerings.rb +31 -0
  41. data/lib/fog/azurerm/models/network/express_route_circuits.rb +29 -0
  42. data/lib/fog/azurerm/models/network/express_route_service_provider.rb +29 -0
  43. data/lib/fog/azurerm/models/network/express_route_service_providers.rb +21 -0
  44. data/lib/fog/azurerm/models/network/frontend_ip_configuration.rb +5 -15
  45. data/lib/fog/azurerm/models/network/inbound_nat_pool.rb +6 -7
  46. data/lib/fog/azurerm/models/network/inbound_nat_rule.rb +6 -9
  47. data/lib/fog/azurerm/models/network/load_balancer.rb +17 -19
  48. data/lib/fog/azurerm/models/network/load_balancing_rule.rb +11 -16
  49. data/lib/fog/azurerm/models/network/network_interface.rb +24 -24
  50. data/lib/fog/azurerm/models/network/network_security_group.rb +9 -9
  51. data/lib/fog/azurerm/models/network/network_security_rule.rb +13 -13
  52. data/lib/fog/azurerm/models/network/probe.rb +7 -8
  53. data/lib/fog/azurerm/models/network/public_ip.rb +15 -16
  54. data/lib/fog/azurerm/models/network/public_ips.rb +4 -2
  55. data/lib/fog/azurerm/models/network/subnet.rb +8 -8
  56. data/lib/fog/azurerm/models/network/virtual_network.rb +9 -9
  57. data/lib/fog/azurerm/models/network/virtual_network_gateway.rb +138 -0
  58. data/lib/fog/azurerm/models/network/virtual_network_gateways.rb +29 -0
  59. data/lib/fog/azurerm/models/network/vpn_client_configuration.rb +34 -0
  60. data/lib/fog/azurerm/models/network/vpn_client_revoked_certificates.rb +22 -0
  61. data/lib/fog/azurerm/models/network/vpn_client_root_certificates.rb +22 -0
  62. data/lib/fog/azurerm/models/resources/azure_resource.rb +5 -5
  63. data/lib/fog/azurerm/models/resources/dependency.rb +5 -5
  64. data/lib/fog/azurerm/models/resources/deployment.rb +14 -14
  65. data/lib/fog/azurerm/models/resources/provider.rb +4 -4
  66. data/lib/fog/azurerm/models/resources/provider_resource_type.rb +4 -4
  67. data/lib/fog/azurerm/models/resources/resource_group.rb +9 -1
  68. data/lib/fog/azurerm/models/resources/resource_groups.rb +5 -1
  69. data/lib/fog/azurerm/models/storage/data_disk.rb +6 -6
  70. data/lib/fog/azurerm/models/storage/storage_account.rb +41 -10
  71. data/lib/fog/azurerm/models/storage/storage_accounts.rb +1 -6
  72. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_end_point.rb +75 -0
  73. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb +31 -0
  74. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profile.rb +59 -0
  75. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profiles.rb +26 -0
  76. data/lib/fog/azurerm/network.rb +25 -25
  77. data/lib/fog/azurerm/requests/{network → application_gateway}/create_application_gateway.rb +59 -95
  78. data/lib/fog/azurerm/requests/application_gateway/delete_application_gateway.rb +26 -0
  79. data/lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb +29 -0
  80. data/lib/fog/azurerm/requests/compute/attach_data_disk_to_vm.rb +38 -38
  81. data/lib/fog/azurerm/requests/compute/check_vm_status.rb +8 -10
  82. data/lib/fog/azurerm/requests/compute/create_availability_set.rb +15 -20
  83. data/lib/fog/azurerm/requests/compute/create_virtual_machine.rb +50 -45
  84. data/lib/fog/azurerm/requests/compute/deallocate_virtual_machine.rb +9 -10
  85. data/lib/fog/azurerm/requests/compute/delete_availability_set.rb +7 -8
  86. data/lib/fog/azurerm/requests/compute/delete_virtual_machine.rb +9 -10
  87. data/lib/fog/azurerm/requests/compute/detach_data_disk_from_vm.rb +20 -19
  88. data/lib/fog/azurerm/requests/compute/generalize_virtual_machine.rb +9 -10
  89. data/lib/fog/azurerm/requests/compute/get_availability_set.rb +32 -0
  90. data/lib/fog/azurerm/requests/compute/get_virtual_machine.rb +17 -14
  91. data/lib/fog/azurerm/requests/compute/list_availability_sets.rb +7 -6
  92. data/lib/fog/azurerm/requests/compute/list_available_sizes_for_virtual_machine.rb +37 -31
  93. data/lib/fog/azurerm/requests/compute/list_virtual_machines.rb +47 -42
  94. data/lib/fog/azurerm/requests/compute/power_off_virtual_machine.rb +9 -10
  95. data/lib/fog/azurerm/requests/compute/redeploy_virtual_machine.rb +9 -10
  96. data/lib/fog/azurerm/requests/compute/restart_virtual_machine.rb +9 -10
  97. data/lib/fog/azurerm/requests/compute/start_virtual_machine.rb +9 -10
  98. data/lib/fog/azurerm/requests/dns/{create_record_set.rb → create_or_update_record_set.rb} +2 -2
  99. data/lib/fog/azurerm/requests/dns/{create_zone.rb → create_or_update_zone.rb} +3 -3
  100. data/lib/fog/azurerm/requests/dns/get_record_set.rb +56 -0
  101. data/lib/fog/azurerm/requests/dns/get_zone.rb +50 -0
  102. data/lib/fog/azurerm/requests/dns/list_record_sets.rb +2 -2
  103. data/lib/fog/azurerm/requests/network/add_address_prefixes_in_virtual_network.rb +3 -3
  104. data/lib/fog/azurerm/requests/network/add_dns_servers_in_virtual_network.rb +8 -6
  105. data/lib/fog/azurerm/requests/network/add_security_rules.rb +15 -13
  106. data/lib/fog/azurerm/requests/network/add_subnets_in_virtual_network.rb +6 -4
  107. data/lib/fog/azurerm/requests/network/attach_network_security_group_to_subnet.rb +13 -15
  108. data/lib/fog/azurerm/requests/network/attach_resource_to_nic.rb +17 -16
  109. data/lib/fog/azurerm/requests/network/attach_route_table_to_subnet.rb +13 -15
  110. data/lib/fog/azurerm/requests/network/check_for_public_ip.rb +2 -4
  111. data/lib/fog/azurerm/requests/network/check_for_virtual_network.rb +5 -5
  112. data/lib/fog/azurerm/requests/network/create_load_balancer.rb +43 -62
  113. data/lib/fog/azurerm/requests/network/create_or_update_express_route_circuit.rb +98 -0
  114. data/lib/fog/azurerm/requests/network/create_or_update_express_route_circuit_peering.rb +69 -0
  115. data/lib/fog/azurerm/requests/network/create_or_update_network_interface.rb +14 -19
  116. data/lib/fog/azurerm/requests/network/create_or_update_network_security_group.rb +29 -26
  117. data/lib/fog/azurerm/requests/network/create_or_update_virtual_network.rb +19 -25
  118. data/lib/fog/azurerm/requests/network/create_or_update_virtual_network_gateway.rb +151 -0
  119. data/lib/fog/azurerm/requests/network/create_public_ip.rb +8 -10
  120. data/lib/fog/azurerm/requests/network/create_subnet.rb +13 -15
  121. data/lib/fog/azurerm/requests/network/delete_express_route_circuit.rb +28 -0
  122. data/lib/fog/azurerm/requests/network/delete_express_route_circuit_peering.rb +28 -0
  123. data/lib/fog/azurerm/requests/network/delete_load_balancer.rb +8 -7
  124. data/lib/fog/azurerm/requests/network/delete_network_interface.rb +7 -8
  125. data/lib/fog/azurerm/requests/network/delete_network_security_group.rb +8 -7
  126. data/lib/fog/azurerm/requests/network/delete_public_ip.rb +4 -6
  127. data/lib/fog/azurerm/requests/network/delete_subnet.rb +6 -7
  128. data/lib/fog/azurerm/requests/network/delete_virtual_network.rb +6 -7
  129. data/lib/fog/azurerm/requests/network/delete_virtual_network_gateway.rb +28 -0
  130. data/lib/fog/azurerm/requests/network/detach_network_security_group_from_subnet.rb +15 -17
  131. data/lib/fog/azurerm/requests/network/detach_resource_from_nic.rb +15 -14
  132. data/lib/fog/azurerm/requests/network/detach_route_table_from_subnet.rb +15 -17
  133. data/lib/fog/azurerm/requests/network/get_express_route_circuit.rb +51 -0
  134. data/lib/fog/azurerm/requests/network/get_express_route_circuit_peering.rb +48 -0
  135. data/lib/fog/azurerm/requests/network/get_network_interface.rb +7 -7
  136. data/lib/fog/azurerm/requests/network/get_network_security_group.rb +11 -7
  137. data/lib/fog/azurerm/requests/network/get_public_ip.rb +41 -0
  138. data/lib/fog/azurerm/requests/network/get_subnet.rb +10 -9
  139. data/lib/fog/azurerm/requests/network/get_virtual_network.rb +12 -14
  140. data/lib/fog/azurerm/requests/network/get_virtual_network_gateway.rb +45 -0
  141. data/lib/fog/azurerm/requests/network/list_express_route_circuit_peerings.rb +44 -0
  142. data/lib/fog/azurerm/requests/network/list_express_route_circuits.rb +53 -0
  143. data/lib/fog/azurerm/requests/network/list_express_route_service_providers.rb +37 -0
  144. data/lib/fog/azurerm/requests/network/list_load_balancers.rb +6 -6
  145. data/lib/fog/azurerm/requests/network/list_network_interfaces.rb +42 -37
  146. data/lib/fog/azurerm/requests/network/list_network_security_groups.rb +149 -143
  147. data/lib/fog/azurerm/requests/network/list_public_ips.rb +26 -22
  148. data/lib/fog/azurerm/requests/network/list_subnets.rb +35 -31
  149. data/lib/fog/azurerm/requests/network/list_virtual_network_gateways.rb +43 -0
  150. data/lib/fog/azurerm/requests/network/list_virtual_networks.rb +52 -51
  151. data/lib/fog/azurerm/requests/network/remove_address_prefixes_from_virtual_network.rb +6 -4
  152. data/lib/fog/azurerm/requests/network/remove_dns_servers_from_virtual_network.rb +6 -4
  153. data/lib/fog/azurerm/requests/network/remove_security_rule.rb +15 -13
  154. data/lib/fog/azurerm/requests/network/remove_subnets_from_virtual_network.rb +6 -4
  155. data/lib/fog/azurerm/requests/resources/create_deployment.rb +27 -21
  156. data/lib/fog/azurerm/requests/resources/create_resource_group.rb +9 -9
  157. data/lib/fog/azurerm/requests/resources/delete_deployment.rb +3 -4
  158. data/lib/fog/azurerm/requests/resources/delete_resource_group.rb +3 -5
  159. data/lib/fog/azurerm/requests/resources/delete_resource_tag.rb +14 -20
  160. data/lib/fog/azurerm/requests/resources/list_deployments.rb +8 -7
  161. data/lib/fog/azurerm/requests/resources/list_resource_groups.rb +27 -23
  162. data/lib/fog/azurerm/requests/resources/list_tagged_resources.rb +30 -27
  163. data/lib/fog/azurerm/requests/resources/tag_resource.rb +15 -20
  164. data/lib/fog/azurerm/requests/storage/check_storage_account_name_availability.rb +13 -15
  165. data/lib/fog/azurerm/requests/storage/create_container.rb +6 -5
  166. data/lib/fog/azurerm/requests/storage/create_storage_account.rb +36 -22
  167. data/lib/fog/azurerm/requests/storage/delete_container.rb +6 -5
  168. data/lib/fog/azurerm/requests/storage/delete_disk.rb +13 -12
  169. data/lib/fog/azurerm/requests/storage/delete_storage_account.rb +8 -9
  170. data/lib/fog/azurerm/requests/storage/get_blob_metadata.rb +10 -9
  171. data/lib/fog/azurerm/requests/storage/get_container_access_control_list.rb +6 -5
  172. data/lib/fog/azurerm/requests/storage/get_container_metadata.rb +8 -7
  173. data/lib/fog/azurerm/requests/storage/get_container_properties.rb +6 -5
  174. data/lib/fog/azurerm/requests/storage/get_storage_access_keys.rb +7 -7
  175. data/lib/fog/azurerm/requests/storage/list_containers.rb +6 -5
  176. data/lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb +7 -12
  177. data/lib/fog/azurerm/requests/storage/list_storage_accounts.rb +7 -13
  178. data/lib/fog/azurerm/requests/storage/set_blob_metadata.rb +8 -7
  179. data/lib/fog/azurerm/requests/storage/set_container_metadata.rb +8 -7
  180. data/lib/fog/azurerm/requests/traffic_manager/create_traffic_manager_endpoint.rb +54 -0
  181. data/lib/fog/azurerm/requests/traffic_manager/create_traffic_manager_profile.rb +107 -0
  182. data/lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb +28 -0
  183. data/lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb +26 -0
  184. data/lib/fog/azurerm/requests/traffic_manager/get_traffic_manager_endpoint.rb +39 -0
  185. data/lib/fog/azurerm/requests/traffic_manager/get_traffic_manager_profile.rb +80 -0
  186. data/lib/fog/azurerm/requests/traffic_manager/list_traffic_manager_profiles.rb +82 -0
  187. data/lib/fog/azurerm/storage.rb +1 -1
  188. data/lib/fog/azurerm/traffic_manager.rb +56 -0
  189. data/lib/fog/azurerm/utilities/general.rb +28 -0
  190. data/lib/fog/azurerm/version.rb +1 -1
  191. data/test/api_stub.rb +14 -7
  192. data/test/api_stub/models/{network/application_gateway.rb → application_gateway/gateway.rb} +8 -7
  193. data/test/api_stub/models/compute/availability_set.rb +35 -6
  194. data/test/api_stub/models/compute/server.rb +15 -16
  195. data/test/api_stub/models/dns/record_set.rb +20 -0
  196. data/test/api_stub/models/network/express_route_circuit.rb +47 -0
  197. data/test/api_stub/models/network/express_route_circuit_peering.rb +33 -0
  198. data/test/api_stub/models/network/express_route_service_provider.rb +29 -0
  199. data/test/api_stub/models/network/load_balancer.rb +137 -115
  200. data/test/api_stub/models/network/network_interface.rb +3 -2
  201. data/test/api_stub/models/network/network_security_group.rb +4 -3
  202. data/test/api_stub/models/network/public_ip.rb +5 -4
  203. data/test/api_stub/models/network/subnet.rb +3 -2
  204. data/test/api_stub/models/network/virtual_network.rb +3 -2
  205. data/test/api_stub/models/network/virtual_network_gateway.rb +26 -0
  206. data/test/api_stub/models/resources/deployment.rb +56 -50
  207. data/test/api_stub/models/resources/resource.rb +17 -14
  208. data/test/api_stub/models/resources/resource_group.rb +4 -18
  209. data/test/api_stub/models/storage/storageaccount.rb +8 -15
  210. data/test/api_stub/models/{network → traffic_manager}/traffic_manager_end_point.rb +4 -3
  211. data/test/api_stub/models/{network → traffic_manager}/traffic_manager_profile.rb +4 -3
  212. data/test/api_stub/requests/application_gateway/gateway.rb +431 -0
  213. data/test/api_stub/requests/compute/availability_set.rb +34 -23
  214. data/test/api_stub/requests/compute/virtual_machine.rb +73 -30
  215. data/test/api_stub/requests/dns/record_set.rb +6 -6
  216. data/test/api_stub/requests/dns/zone.rb +2 -2
  217. data/test/api_stub/requests/network/express_route_circuit.rb +100 -0
  218. data/test/api_stub/requests/network/express_route_circuit_peering.rb +62 -0
  219. data/test/api_stub/requests/network/express_route_service_provider.rb +30 -0
  220. data/test/api_stub/requests/network/load_balancer.rb +273 -251
  221. data/test/api_stub/requests/network/network_interface.rb +12 -16
  222. data/test/api_stub/requests/network/network_security_group.rb +12 -27
  223. data/test/api_stub/requests/network/public_ip.rb +7 -9
  224. data/test/api_stub/requests/network/subnet.rb +6 -8
  225. data/test/api_stub/requests/network/virtual_network.rb +6 -8
  226. data/test/api_stub/requests/network/virtual_network_gateway.rb +49 -0
  227. data/test/api_stub/requests/resources/deployment.rb +56 -11
  228. data/test/api_stub/requests/resources/resource.rb +6 -8
  229. data/test/api_stub/requests/resources/resource_group.rb +6 -8
  230. data/test/api_stub/requests/storage/storageaccount.rb +44 -31
  231. data/test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb +41 -0
  232. data/test/api_stub/requests/{network → traffic_manager}/traffic_manager_profile.rb +7 -5
  233. data/test/integration/application_gateway.rb +16 -8
  234. data/test/integration/availability_set.rb +1 -1
  235. data/test/integration/container.rb +2 -1
  236. data/test/integration/deployment.rb +54 -0
  237. data/test/integration/express_route_circuit.rb +80 -0
  238. data/test/integration/external_load_balancer.rb +7 -6
  239. data/test/integration/internal_load_balancer.rb +6 -5
  240. data/test/integration/network_interface.rb +2 -2
  241. data/test/integration/public_ip.rb +2 -2
  242. data/test/integration/record_set.rb +26 -8
  243. data/test/integration/resource_group.rb +39 -0
  244. data/test/integration/resource_tag.rb +62 -0
  245. data/test/integration/server.rb +6 -4
  246. data/test/integration/storage_account.rb +33 -5
  247. data/test/integration/subnet.rb +2 -2
  248. data/test/integration/traffic_manager.rb +12 -12
  249. data/test/integration/virtual_network.rb +6 -6
  250. data/test/integration/virtual_network_gateway.rb +101 -0
  251. data/test/integration/zone.rb +1 -1
  252. data/test/models/application_gateway/test_gateway.rb +57 -0
  253. data/test/models/{network/test_application_gateways.rb → application_gateway/test_gateways.rb} +10 -10
  254. data/test/models/compute/test_availability_set.rb +2 -1
  255. data/test/models/compute/test_availability_sets.rb +5 -4
  256. data/test/models/compute/test_server.rb +6 -5
  257. data/test/models/compute/test_servers.rb +3 -2
  258. data/test/models/dns/test_record_set.rb +27 -1
  259. data/test/models/dns/test_record_sets.rb +3 -2
  260. data/test/models/dns/test_zone.rb +1 -1
  261. data/test/models/dns/test_zones.rb +2 -1
  262. data/test/models/network/test_express_route_circuit.rb +58 -0
  263. data/test/models/network/test_express_route_circuit_peering.rb +59 -0
  264. data/test/models/network/test_express_route_circuit_peerings.rb +43 -0
  265. data/test/models/network/test_express_route_circuits.rb +42 -0
  266. data/test/models/network/test_express_route_service_providers.rb +30 -0
  267. data/test/models/network/test_load_balancer.rb +7 -12
  268. data/test/models/network/test_load_balancers.rb +4 -4
  269. data/test/models/network/test_network_interface.rb +10 -16
  270. data/test/models/network/test_network_interfaces.rb +3 -2
  271. data/test/models/network/test_network_security_group.rb +6 -8
  272. data/test/models/network/test_network_security_groups.rb +2 -1
  273. data/test/models/network/test_public_ip.rb +5 -6
  274. data/test/models/network/test_public_ips.rb +6 -6
  275. data/test/models/network/test_subnet.rb +9 -15
  276. data/test/models/network/test_subnets.rb +3 -2
  277. data/test/models/network/test_virtual_network.rb +10 -16
  278. data/test/models/network/test_virtual_network_gateway.rb +62 -0
  279. data/test/models/network/test_virtual_network_gateways.rb +42 -0
  280. data/test/models/network/test_virtual_networks.rb +3 -2
  281. data/test/models/resources/test_deployment.rb +2 -1
  282. data/test/models/resources/test_deployments.rb +2 -1
  283. data/test/models/resources/test_resource_group.rb +2 -1
  284. data/test/models/resources/test_resource_groups.rb +2 -1
  285. data/test/models/resources/test_resources.rb +2 -1
  286. data/test/models/storage/test_data_disk.rb +0 -6
  287. data/test/models/storage/test_storage_account.rb +29 -8
  288. data/test/models/storage/test_storage_accounts.rb +5 -5
  289. data/test/models/{network → traffic_manager}/test_traffic_manager_end_point.rb +4 -3
  290. data/test/models/traffic_manager/test_traffic_manager_end_points.rb +43 -0
  291. data/test/models/{network → traffic_manager}/test_traffic_manager_profile.rb +5 -4
  292. data/test/models/traffic_manager/test_traffic_manager_profiles.rb +42 -0
  293. data/test/requests/application_gateway/test_create_application_gateway.rb +51 -0
  294. data/test/requests/application_gateway/test_delete_application_gateway.rb +23 -0
  295. data/test/requests/application_gateway/test_list_application_gateways.rb +24 -0
  296. data/test/requests/compute/test_attach_data_disk_to_vm.rb +40 -123
  297. data/test/requests/compute/test_create_availability_set.rb +9 -11
  298. data/test/requests/compute/test_create_virtual_machine.rb +13 -29
  299. data/test/requests/compute/test_deallocate_virtual_machine.rb +7 -13
  300. data/test/requests/compute/test_delete_availability_set.rb +5 -11
  301. data/test/requests/compute/test_delete_virtual_machine.rb +7 -13
  302. data/test/requests/compute/test_detach_data_disk_from_vm.rb +13 -34
  303. data/test/requests/compute/test_generalize_virtual_machine.rb +7 -13
  304. data/test/requests/compute/test_get_availability_set.rb +24 -0
  305. data/test/requests/compute/test_get_virtual_machine.rb +8 -15
  306. data/test/requests/compute/test_get_vm_status.rb +8 -14
  307. data/test/requests/compute/test_list_availability_sets.rb +8 -14
  308. data/test/requests/compute/test_list_available_sizes_for_virtual_machine.rb +8 -15
  309. data/test/requests/compute/test_list_virtual_machines.rb +8 -14
  310. data/test/requests/compute/test_power_off_virtual_machine.rb +7 -13
  311. data/test/requests/compute/test_redeploy_virtual_machine.rb +7 -13
  312. data/test/requests/compute/test_restart_virtual_machine.rb +7 -13
  313. data/test/requests/compute/test_start_virtual_machine.rb +7 -13
  314. data/test/requests/dns/test_create_record_set.rb +8 -8
  315. data/test/requests/dns/test_create_zone.rb +6 -6
  316. data/test/requests/dns/test_delete_record_set.rb +2 -2
  317. data/test/requests/dns/test_delete_zone.rb +2 -2
  318. data/test/requests/dns/test_get_record_set.rb +46 -0
  319. data/test/requests/dns/test_get_zone.rb +46 -0
  320. data/test/requests/network/test_add_address_prefixes_in_virtual_network.rb +11 -27
  321. data/test/requests/network/test_add_dns_servers_in_virtual_network.rb +11 -27
  322. data/test/requests/network/test_add_security_rules.rb +11 -31
  323. data/test/requests/network/test_add_subnets_in_virtual_network.rb +11 -27
  324. data/test/requests/network/test_attach_network_security_group_to_subnet.rb +9 -16
  325. data/test/requests/network/test_attach_resource_to_nic.rb +15 -37
  326. data/test/requests/network/test_attach_route_table_to_subnet.rb +9 -16
  327. data/test/requests/network/test_check_for_public_ip.rb +10 -18
  328. data/test/requests/network/test_check_for_virtual_network.rb +10 -18
  329. data/test/requests/network/test_create_express_route_circuit.rb +39 -0
  330. data/test/requests/network/test_create_express_route_circuit_peering.rb +37 -0
  331. data/test/requests/network/test_create_load_balancer.rb +27 -34
  332. data/test/requests/network/test_create_network_interface.rb +16 -28
  333. data/test/requests/network/test_create_or_update_network_security_group.rb +38 -0
  334. data/test/requests/network/test_create_or_update_virtual_network.rb +20 -28
  335. data/test/requests/network/test_create_public_ip.rb +13 -22
  336. data/test/requests/network/test_create_subnet.rb +13 -22
  337. data/test/requests/network/test_create_virtual_network_gateway.rb +37 -0
  338. data/test/requests/network/test_delete_express_route_circuit.rb +24 -0
  339. data/test/requests/network/test_delete_express_route_circuit_peering.rb +24 -0
  340. data/test/requests/network/test_delete_load_balancer.rb +7 -13
  341. data/test/requests/network/test_delete_network_interface.rb +7 -13
  342. data/test/requests/network/test_delete_network_security_group.rb +6 -13
  343. data/test/requests/network/test_delete_public_ip.rb +7 -13
  344. data/test/requests/network/test_delete_subnet.rb +7 -13
  345. data/test/requests/network/test_delete_virtual_network.rb +7 -13
  346. data/test/requests/network/test_delete_virtual_network_gateway.rb +24 -0
  347. data/test/requests/network/test_detach_network_security_group_from_subnet.rb +9 -16
  348. data/test/requests/network/test_detach_resource_from_nic.rb +15 -34
  349. data/test/requests/network/test_detach_route_table_from_subnet.rb +9 -16
  350. data/test/requests/network/test_get_express_route_circuit.rb +24 -0
  351. data/test/requests/network/test_get_express_route_circuit_peering.rb +24 -0
  352. data/test/requests/network/test_get_network_interface.rb +8 -15
  353. data/test/requests/network/test_get_network_security_group.rb +9 -16
  354. data/test/requests/network/test_get_public_ip.rb +26 -0
  355. data/test/requests/network/test_get_subnet.rb +9 -16
  356. data/test/requests/network/test_get_virtual_network.rb +26 -0
  357. data/test/requests/network/test_get_virtual_network_gateway.rb +24 -0
  358. data/test/requests/network/test_list_express_route_circuit_peerings.rb +24 -0
  359. data/test/requests/network/test_list_express_route_circuits.rb +26 -0
  360. data/test/requests/network/test_list_express_route_service_providers.rb +24 -0
  361. data/test/requests/network/test_list_load_balancers.rb +8 -15
  362. data/test/requests/network/test_list_network_interfaces.rb +8 -15
  363. data/test/requests/network/test_list_network_security_groups.rb +9 -16
  364. data/test/requests/network/test_list_public_ips.rb +8 -15
  365. data/test/requests/network/test_list_subnets.rb +8 -15
  366. data/test/requests/network/test_list_virtual_network_gateways.rb +24 -0
  367. data/test/requests/network/test_list_virtual_networks.rb +8 -15
  368. data/test/requests/network/test_remove_address_prefixes_from_virtual_network.rb +11 -27
  369. data/test/requests/network/test_remove_dns_servers_from_virtual_network.rb +11 -27
  370. data/test/requests/network/test_remove_security_rule.rb +11 -31
  371. data/test/requests/network/test_remove_subnets_from_virtual_network.rb +11 -27
  372. data/test/requests/resources/test_create_deployment.rb +10 -27
  373. data/test/requests/resources/test_create_resource_group.rb +8 -15
  374. data/test/requests/resources/test_delete_deployment.rb +5 -11
  375. data/test/requests/resources/test_delete_resource_group.rb +8 -14
  376. data/test/requests/resources/test_delete_resource_tag.rb +12 -28
  377. data/test/requests/resources/test_list_deployments.rb +8 -15
  378. data/test/requests/resources/test_list_resource_groups.rb +8 -15
  379. data/test/requests/resources/test_list_tagged_resources.rb +8 -15
  380. data/test/requests/resources/test_tag_resource.rb +12 -28
  381. data/test/requests/storage/test_check_storage_account_name_availability.rb +14 -29
  382. data/test/requests/storage/test_create_storage_account.rb +13 -35
  383. data/test/requests/storage/test_delete_storage_account.rb +8 -14
  384. data/test/requests/storage/test_get_storage_access_keys.rb +7 -14
  385. data/test/requests/storage/test_list_storage_accounts.rb +12 -22
  386. data/test/requests/storage/test_list_storage_accounts_for_rg.rb +15 -29
  387. data/test/requests/traffic_manager/test_create_traffic_manager_endpoint.rb +25 -0
  388. data/test/requests/traffic_manager/test_create_traffic_manager_profile.rb +25 -0
  389. data/test/requests/traffic_manager/test_delete_traffic_manager_endpoint.rb +23 -0
  390. data/test/requests/traffic_manager/test_delete_traffic_manager_profile.rb +23 -0
  391. data/test/requests/traffic_manager/test_get_traffic_manager_endpoint.rb +24 -0
  392. data/test/requests/traffic_manager/test_get_traffic_manager_profile.rb +24 -0
  393. data/test/requests/traffic_manager/test_list_traffic_manager_profiles.rb +24 -0
  394. data/test/test_helper.rb +113 -4
  395. metadata +147 -86
  396. data/lib/fog/azurerm/models/network/application_gateway_backend_address_pool.rb +0 -24
  397. data/lib/fog/azurerm/models/network/application_gateway_backend_http_setting.rb +0 -30
  398. data/lib/fog/azurerm/models/network/application_gateway_frontend_ip_configuration.rb +0 -30
  399. data/lib/fog/azurerm/models/network/application_gateway_frontend_port.rb +0 -22
  400. data/lib/fog/azurerm/models/network/application_gateway_http_listener.rb +0 -37
  401. data/lib/fog/azurerm/models/network/application_gateway_ip_configuration.rb +0 -21
  402. data/lib/fog/azurerm/models/network/application_gateway_probe.rb +0 -32
  403. data/lib/fog/azurerm/models/network/application_gateway_request_routing_rule.rb +0 -35
  404. data/lib/fog/azurerm/models/network/application_gateway_ssl_certificate.rb +0 -26
  405. data/lib/fog/azurerm/models/network/application_gateway_url_path_map.rb +0 -32
  406. data/lib/fog/azurerm/models/network/traffic_manager_end_point.rb +0 -63
  407. data/lib/fog/azurerm/models/network/traffic_manager_end_points.rb +0 -29
  408. data/lib/fog/azurerm/models/network/traffic_manager_profile.rb +0 -59
  409. data/lib/fog/azurerm/models/network/traffic_manager_profiles.rb +0 -24
  410. data/lib/fog/azurerm/requests/network/create_traffic_manager_endpoint.rb +0 -78
  411. data/lib/fog/azurerm/requests/network/create_traffic_manager_profile.rb +0 -127
  412. data/lib/fog/azurerm/requests/network/delete_application_gateway.rb +0 -27
  413. data/lib/fog/azurerm/requests/network/delete_traffic_manager_endpoint.rb +0 -37
  414. data/lib/fog/azurerm/requests/network/delete_traffic_manager_profile.rb +0 -37
  415. data/lib/fog/azurerm/requests/network/get_traffic_manager_profile.rb +0 -96
  416. data/lib/fog/azurerm/requests/network/list_application_gateways.rb +0 -31
  417. data/lib/fog/azurerm/requests/network/list_traffic_manager_profiles.rb +0 -98
  418. data/test/api_stub/models/storage/data_disk.rb +0 -30
  419. data/test/api_stub/requests/network/application_gateway.rb +0 -433
  420. data/test/api_stub/requests/network/traffic_manager_endpoint.rb +0 -25
  421. data/test/models/network/test_application_gateway.rb +0 -62
  422. data/test/models/network/test_traffic_manager_end_points.rb +0 -42
  423. data/test/models/network/test_traffic_manager_profiles.rb +0 -41
  424. data/test/requests/network/test_create_application_gateway.rb +0 -61
  425. data/test/requests/network/test_create_network_security_group.rb +0 -45
  426. data/test/requests/network/test_create_traffic_manager_endpoint.rb +0 -32
  427. data/test/requests/network/test_create_traffic_manager_profile.rb +0 -32
  428. data/test/requests/network/test_delete_application_gateway.rb +0 -30
  429. data/test/requests/network/test_delete_traffic_manager_endpoint.rb +0 -28
  430. data/test/requests/network/test_delete_traffic_manager_profile.rb +0 -28
  431. data/test/requests/network/test_get_traffic_manager_profile.rb +0 -29
  432. data/test/requests/network/test_list_application_gateways.rb +0 -31
  433. data/test/requests/network/test_list_traffic_manager_profiles.rb +0 -29
@@ -0,0 +1,25 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Create Traffic Manager End Point
4
+ class TestCreateTrafficManagerEndPoint < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @end_points = @traffic_manager_client.endpoints
9
+ @endpoint_hash = ApiStub::Requests::TrafficManager::TrafficManagerEndPoint.endpoint_hash
10
+ end
11
+
12
+ def test_create_traffic_manager_endpoint_success
13
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerEndPoint.create_traffic_manager_endpoint_response(@traffic_manager_client)
14
+ @end_points.stub :create_or_update, mocked_response do
15
+ assert_equal @service.create_traffic_manager_endpoint(@endpoint_hash), mocked_response
16
+ end
17
+ end
18
+
19
+ def test_create_traffic_manager_endpoint_failure
20
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
21
+ @end_points.stub :create_or_update, response do
22
+ assert_raises(RuntimeError) { @service.create_traffic_manager_endpoint(@endpoint_hash) }
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Create Traffic Manager Profile
4
+ class TestCreateTrafficManagerProfile < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @profiles = @traffic_manager_client.profiles
9
+ end
10
+
11
+ def test_create_traffic_manager_profile_success
12
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerProfile.create_traffic_manager_profile_response(@traffic_manager_client)
13
+ @profiles.stub :create_or_update, mocked_response do
14
+ assert_equal @service.create_traffic_manager_profile('fog-test-rg', 'fog-test-profile', 'Performance',
15
+ 'fog-test-app', 30, 'http', 80, '/monitorpage.aspx'), mocked_response
16
+ end
17
+ end
18
+
19
+ def test_create_traffic_manager_profile_failure
20
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
21
+ @profiles.stub :create_or_update, response do
22
+ assert_raises(RuntimeError) { @service.create_traffic_manager_profile('fog-test-rg', 'fog-test-profile', 'Performance', 'fog-test-app', 30, 'http', 80, '/monitorpage.aspx') }
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Delete Traffic Manager End Point
4
+ class TestDeleteTrafficManagerEndPoint < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @end_points = @traffic_manager_client.endpoints
9
+ end
10
+
11
+ def test_delete_traffic_manager_endpoint_success
12
+ @end_points.stub :delete, true do
13
+ assert @service.delete_traffic_manager_endpoint('fog-test-rg', 'fog-test-end-point', 'fog-test-profile', 'external')
14
+ end
15
+ end
16
+
17
+ def test_delete_traffic_manager_endpoint_failure
18
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
19
+ @end_points.stub :delete, response do
20
+ assert_raises(RuntimeError) { @service.delete_traffic_manager_endpoint('fog-test-rg', 'fog-test-end-point', 'fog-test-profile', 'external') }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Delete Traffic Manager Profile
4
+ class TestDeleteTrafficManagerProfile < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @profiles = @traffic_manager_client.profiles
9
+ end
10
+
11
+ def test_delete_traffic_manager_profile_success
12
+ @profiles.stub :delete, true do
13
+ assert @service.delete_traffic_manager_profile('fog-test-rg', 'fog-test-profile')
14
+ end
15
+ end
16
+
17
+ def test_delete_traffic_manager_profile_failure
18
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
19
+ @profiles.stub :delete, response do
20
+ assert_raises(RuntimeError) { @service.delete_traffic_manager_profile('fog-test-rg', 'fog-test-profile') }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Traffic Manager Endpoint
4
+ class TestGetTrafficManagerEndpoint < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @end_points = @traffic_manager_client.endpoints
9
+ end
10
+
11
+ def test_get_traffic_manager_endpoint_success
12
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerEndPoint.create_traffic_manager_endpoint_response(@traffic_manager_client)
13
+ @end_points.stub :get, mocked_response do
14
+ assert_equal @service.get_traffic_manager_end_point('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type'), mocked_response
15
+ end
16
+ end
17
+
18
+ def test_get_traffic_manager_endpoint_failure
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
20
+ @end_points.stub :get, response do
21
+ assert_raises(RuntimeError) { @service.get_traffic_manager_end_point('fog-test-rg', 'fog-test-profile', 'wrong-param', 'wrong-param') }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Traffic Manager Profile
4
+ class TestGetTrafficManagerProfile < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @profiles = @traffic_manager_client.profiles
9
+ end
10
+
11
+ def test_get_traffic_manager_profile_success
12
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerProfile.create_traffic_manager_profile_response(@traffic_manager_client)
13
+ @profiles.stub :get, mocked_response do
14
+ assert_equal @service.get_traffic_manager_profile('fog-test-rg', 'fog-test-profile'), mocked_response
15
+ end
16
+ end
17
+
18
+ def test_get_traffic_manager_profile_failure
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
20
+ @profiles.stub :get, response do
21
+ assert_raises(RuntimeError) { @service.get_traffic_manager_profile('fog-test-rg', 'fog-test-profile') }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for List Traffic Manager Profiles
4
+ class TestListTrafficManagerProfiles < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @profiles = @traffic_manager_client.profiles
9
+ end
10
+
11
+ def test_list_traffic_manager_profiles_success
12
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerProfile.list_traffic_manager_profiles_response(@traffic_manager_client)
13
+ @profiles.stub :list_all_in_resource_group, mocked_response do
14
+ assert_equal @service.list_traffic_manager_profiles('fog-test-rg'), mocked_response.value
15
+ end
16
+ end
17
+
18
+ def test_list_traffic_manager_profiles_failure
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
20
+ @profiles.stub :list_all_in_resource_group, response do
21
+ assert_raises(RuntimeError) { @service.list_traffic_manager_profiles('fog-test-rg') }
22
+ end
23
+ end
24
+ end
data/test/test_helper.rb CHANGED
@@ -87,6 +87,39 @@ def storage_account(service)
87
87
  )
88
88
  end
89
89
 
90
+ def standard_lrs(service)
91
+ Fog::Storage::AzureRM::StorageAccount.new(
92
+ name: 'storage-account',
93
+ location: 'West US',
94
+ resource_group: 'fog-test-rg',
95
+ sku_name: 'Other',
96
+ replication: 'LRS',
97
+ service: service
98
+ )
99
+ end
100
+
101
+ def standard_check_for_invalid_replications(service)
102
+ Fog::Storage::AzureRM::StorageAccount.new(
103
+ name: 'storage-account',
104
+ location: 'West US',
105
+ resource_group: 'fog-test-rg',
106
+ sku_name: 'Standard',
107
+ replication: 'HGDKS',
108
+ service: service
109
+ )
110
+ end
111
+
112
+ def premium_check_for_invalid_replications(service)
113
+ Fog::Storage::AzureRM::StorageAccount.new(
114
+ name: 'storage-account',
115
+ location: 'West US',
116
+ resource_group: 'fog-test-rg',
117
+ sku_name: 'Premium',
118
+ replication: 'HGDKS',
119
+ service: service
120
+ )
121
+ end
122
+
90
123
  def storage_container(service)
91
124
  Fog::Storage::AzureRM::Container.new(
92
125
  name: 'storage-test-container',
@@ -246,6 +279,18 @@ def record_set(service)
246
279
  )
247
280
  end
248
281
 
282
+ def record_set_cname(service)
283
+ Fog::DNS::AzureRM::RecordSet.new(
284
+ name: 'fog-test-record_set',
285
+ resource_group: 'fog-test-rg',
286
+ zone_name: 'fog-test-zone.com',
287
+ records: %w(1.2.3.4 1.2.3.3),
288
+ type: 'CNAME',
289
+ ttl: 60,
290
+ service: service
291
+ )
292
+ end
293
+
249
294
  def network_security_group(service)
250
295
  Fog::Network::AzureRM::NetworkSecurityGroup.new(
251
296
  name: 'fog-test-nsg',
@@ -283,8 +328,8 @@ def network_security_rule(service)
283
328
  )
284
329
  end
285
330
 
286
- def application_gateway(service)
287
- Fog::Network::AzureRM::ApplicationGateway.new(
331
+ def gateway(service)
332
+ Fog::ApplicationGateway::AzureRM::Gateway.new(
288
333
  name: 'gateway',
289
334
  location: 'eastus',
290
335
  resource_group: 'fogRM-rg',
@@ -402,7 +447,7 @@ def application_gateway(service)
402
447
  end
403
448
 
404
449
  def traffic_manager_end_point(service)
405
- Fog::Network::AzureRM::TrafficManagerEndPoint.new(
450
+ Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.new(
406
451
  name: 'fog-test-end-point',
407
452
  traffic_manager_profile_name: 'fog-test-profile',
408
453
  resource_group: 'fog-test-rg',
@@ -414,7 +459,7 @@ def traffic_manager_end_point(service)
414
459
  end
415
460
 
416
461
  def traffic_manager_profile(service)
417
- Fog::Network::AzureRM::TrafficManagerProfile.new(
462
+ Fog::TrafficManager::AzureRM::TrafficManagerProfile.new(
418
463
  name: 'fog-test-profile',
419
464
  resource_group: 'fog-test-rg',
420
465
  traffic_routing_method: 'Performance',
@@ -426,3 +471,67 @@ def traffic_manager_profile(service)
426
471
  service: service
427
472
  )
428
473
  end
474
+
475
+ def virtual_network_gateway(service)
476
+ Fog::Network::AzureRM::VirtualNetworkGateway.new(
477
+ name: 'testNetworkGateway',
478
+ location: 'eastus',
479
+ tags: {
480
+ key1: 'value1',
481
+ key2: 'value2'
482
+ },
483
+ resource_group: 'learn_fog',
484
+ sku_name: 'HighPerformance',
485
+ sku_tier: 'Standard',
486
+ sku_capacity: 100,
487
+ gateway_type: 'ExpressRoute',
488
+ enable_bgp: true,
489
+ gateway_size: 'Default',
490
+ vpn_client_address_pool: ['vpnClientAddressPoolPrefix'],
491
+ default_sites: ['mysite1'],
492
+ gateway_default_site: '/subscriptions/{subscription-id}/resourceGroups/fog-rg/providers/microsoft.network/localNetworkGateways/{local-network-gateway-name}',
493
+ service: service
494
+ )
495
+ end
496
+
497
+ def express_route_circuit(service)
498
+ Fog::Network::AzureRM::ExpressRouteCircuit.new(
499
+ name: 'testCircuit',
500
+ location: 'eastus',
501
+ resource_group: 'HaiderRG',
502
+ tags: {
503
+ key1: 'value1'
504
+ },
505
+ sku_name: 'Standard_MeteredData',
506
+ sku_tier: 'Standard',
507
+ sku_family: 'MeteredData',
508
+ service_provider_name: 'Telenor',
509
+ peering_location: 'London',
510
+ bandwidth_in_mbps: 100,
511
+ peerings: [
512
+ {
513
+ name: 'AzurePublicPeering',
514
+ peering_type: 'AzurePublicPeering',
515
+ peer_asn: 100,
516
+ primary_peer_address_prefix: '192.168.1.0/30',
517
+ secondary_peer_address_prefix: '192.168.2.0/30',
518
+ vlan_id: 200
519
+ }
520
+ ],
521
+ service: service
522
+ )
523
+ end
524
+
525
+ def express_route_circuit_peering(service)
526
+ Fog::Network::AzureRM::ExpressRouteCircuitPeering.new(
527
+ name: 'AzurePublicPeering',
528
+ circuit_name: 'testCircuit',
529
+ resource_group: 'HaiderRG',
530
+ peering_type: 'AzurePublicPeering',
531
+ peer_asn: 100,
532
+ primary_peer_address_prefix: '192.168.1.0/30',
533
+ secondary_peer_address_prefix: '192.168.2.0/30',
534
+ vlan_id: 200,
535
+ service: service
536
+ )
537
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-azure-rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry
@@ -9,10 +9,12 @@ authors:
9
9
  - Adnan Khalil
10
10
  - Zeeshan Arshad
11
11
  - Haider Ali
12
+ - Waqar Haider
13
+ - Bilal Naeem
12
14
  autorequire:
13
15
  bindir: bin
14
16
  cert_chain: []
15
- date: 2016-08-05 00:00:00.000000000 Z
17
+ date: 2016-08-26 00:00:00.000000000 Z
16
18
  dependencies:
17
19
  - !ruby/object:Gem::Dependency
18
20
  name: rake
@@ -76,112 +78,98 @@ dependencies:
76
78
  requirements:
77
79
  - - "~>"
78
80
  - !ruby/object:Gem::Version
79
- version: '1.27'
81
+ version: 1.42.0
80
82
  type: :runtime
81
83
  prerelease: false
82
84
  version_requirements: !ruby/object:Gem::Requirement
83
85
  requirements:
84
86
  - - "~>"
85
87
  - !ruby/object:Gem::Version
86
- version: '1.27'
88
+ version: 1.42.0
87
89
  - !ruby/object:Gem::Dependency
88
- name: fog-json
89
- requirement: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: '1.0'
94
- type: :runtime
95
- prerelease: false
96
- version_requirements: !ruby/object:Gem::Requirement
97
- requirements:
98
- - - "~>"
99
- - !ruby/object:Gem::Version
100
- version: '1.0'
101
- - !ruby/object:Gem::Dependency
102
- name: fog-xml
90
+ name: rest-client
103
91
  requirement: !ruby/object:Gem::Requirement
104
92
  requirements:
105
93
  - - "~>"
106
94
  - !ruby/object:Gem::Version
107
- version: '0.1'
95
+ version: 2.0.0
108
96
  type: :runtime
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
99
  requirements:
112
100
  - - "~>"
113
101
  - !ruby/object:Gem::Version
114
- version: '0.1'
102
+ version: 2.0.0
115
103
  - !ruby/object:Gem::Dependency
116
- name: rest-client
104
+ name: azure_mgmt_compute
117
105
  requirement: !ruby/object:Gem::Requirement
118
106
  requirements:
119
107
  - - "~>"
120
108
  - !ruby/object:Gem::Version
121
- version: '1.8'
109
+ version: 0.5.0
122
110
  type: :runtime
123
111
  prerelease: false
124
112
  version_requirements: !ruby/object:Gem::Requirement
125
113
  requirements:
126
114
  - - "~>"
127
115
  - !ruby/object:Gem::Version
128
- version: '1.8'
116
+ version: 0.5.0
129
117
  - !ruby/object:Gem::Dependency
130
- name: azure_mgmt_compute
118
+ name: azure_mgmt_resources
131
119
  requirement: !ruby/object:Gem::Requirement
132
120
  requirements:
133
121
  - - "~>"
134
122
  - !ruby/object:Gem::Version
135
- version: 0.2.1
123
+ version: 0.5.0
136
124
  type: :runtime
137
125
  prerelease: false
138
126
  version_requirements: !ruby/object:Gem::Requirement
139
127
  requirements:
140
128
  - - "~>"
141
129
  - !ruby/object:Gem::Version
142
- version: 0.2.1
130
+ version: 0.5.0
143
131
  - !ruby/object:Gem::Dependency
144
- name: azure_mgmt_resources
132
+ name: azure_mgmt_storage
145
133
  requirement: !ruby/object:Gem::Requirement
146
134
  requirements:
147
135
  - - "~>"
148
136
  - !ruby/object:Gem::Version
149
- version: 0.2.1
137
+ version: 0.5.0
150
138
  type: :runtime
151
139
  prerelease: false
152
140
  version_requirements: !ruby/object:Gem::Requirement
153
141
  requirements:
154
142
  - - "~>"
155
143
  - !ruby/object:Gem::Version
156
- version: 0.2.1
144
+ version: 0.5.0
157
145
  - !ruby/object:Gem::Dependency
158
- name: azure_mgmt_storage
146
+ name: azure_mgmt_network
159
147
  requirement: !ruby/object:Gem::Requirement
160
148
  requirements:
161
149
  - - "~>"
162
150
  - !ruby/object:Gem::Version
163
- version: 0.2.1
151
+ version: 0.5.0
164
152
  type: :runtime
165
153
  prerelease: false
166
154
  version_requirements: !ruby/object:Gem::Requirement
167
155
  requirements:
168
156
  - - "~>"
169
157
  - !ruby/object:Gem::Version
170
- version: 0.2.1
158
+ version: 0.5.0
171
159
  - !ruby/object:Gem::Dependency
172
- name: azure_mgmt_network
160
+ name: azure_mgmt_traffic_manager
173
161
  requirement: !ruby/object:Gem::Requirement
174
162
  requirements:
175
163
  - - "~>"
176
164
  - !ruby/object:Gem::Version
177
- version: 0.2.1
165
+ version: 0.5.0
178
166
  type: :runtime
179
167
  prerelease: false
180
168
  version_requirements: !ruby/object:Gem::Requirement
181
169
  requirements:
182
170
  - - "~>"
183
171
  - !ruby/object:Gem::Version
184
- version: 0.2.1
172
+ version: 0.5.0
185
173
  - !ruby/object:Gem::Dependency
186
174
  name: azure-storage
187
175
  requirement: !ruby/object:Gem::Requirement
@@ -205,6 +193,7 @@ extensions: []
205
193
  extra_rdoc_files:
206
194
  - README.md
207
195
  files:
196
+ - ".DS_Store"
208
197
  - ".codeclimate.yml"
209
198
  - ".gitignore"
210
199
  - ".hound.yml"
@@ -218,17 +207,33 @@ files:
218
207
  - README.md
219
208
  - fog-azure-rm.gemspec
220
209
  - lib/fog/azurerm.rb
210
+ - lib/fog/azurerm/application_gateway.rb
221
211
  - lib/fog/azurerm/compute.rb
222
212
  - lib/fog/azurerm/config.rb
223
213
  - lib/fog/azurerm/core.rb
224
214
  - lib/fog/azurerm/credentials.rb
225
215
  - lib/fog/azurerm/dns.rb
216
+ - lib/fog/azurerm/docs/application_gateway.md
226
217
  - lib/fog/azurerm/docs/compute.md
227
218
  - lib/fog/azurerm/docs/dns.md
228
219
  - lib/fog/azurerm/docs/network.md
229
220
  - lib/fog/azurerm/docs/resources.md
230
221
  - lib/fog/azurerm/docs/storage.md
231
222
  - lib/fog/azurerm/docs/structure.md
223
+ - lib/fog/azurerm/docs/traffic_manager.md
224
+ - lib/fog/azurerm/fog_azure_rm_exception.rb
225
+ - lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
226
+ - lib/fog/azurerm/models/application_gateway/backend_http_setting.rb
227
+ - lib/fog/azurerm/models/application_gateway/frontend_ip_configuration.rb
228
+ - lib/fog/azurerm/models/application_gateway/frontend_port.rb
229
+ - lib/fog/azurerm/models/application_gateway/gateway.rb
230
+ - lib/fog/azurerm/models/application_gateway/gateways.rb
231
+ - lib/fog/azurerm/models/application_gateway/http_listener.rb
232
+ - lib/fog/azurerm/models/application_gateway/ip_configuration.rb
233
+ - lib/fog/azurerm/models/application_gateway/probe.rb
234
+ - lib/fog/azurerm/models/application_gateway/request_routing_rule.rb
235
+ - lib/fog/azurerm/models/application_gateway/ssl_certificate.rb
236
+ - lib/fog/azurerm/models/application_gateway/url_path_map.rb
232
237
  - lib/fog/azurerm/models/compute/availability_set.rb
233
238
  - lib/fog/azurerm/models/compute/availability_sets.rb
234
239
  - lib/fog/azurerm/models/compute/server.rb
@@ -237,18 +242,12 @@ files:
237
242
  - lib/fog/azurerm/models/dns/record_sets.rb
238
243
  - lib/fog/azurerm/models/dns/zone.rb
239
244
  - lib/fog/azurerm/models/dns/zones.rb
240
- - lib/fog/azurerm/models/network/application_gateway.rb
241
- - lib/fog/azurerm/models/network/application_gateway_backend_address_pool.rb
242
- - lib/fog/azurerm/models/network/application_gateway_backend_http_setting.rb
243
- - lib/fog/azurerm/models/network/application_gateway_frontend_ip_configuration.rb
244
- - lib/fog/azurerm/models/network/application_gateway_frontend_port.rb
245
- - lib/fog/azurerm/models/network/application_gateway_http_listener.rb
246
- - lib/fog/azurerm/models/network/application_gateway_ip_configuration.rb
247
- - lib/fog/azurerm/models/network/application_gateway_probe.rb
248
- - lib/fog/azurerm/models/network/application_gateway_request_routing_rule.rb
249
- - lib/fog/azurerm/models/network/application_gateway_ssl_certificate.rb
250
- - lib/fog/azurerm/models/network/application_gateway_url_path_map.rb
251
- - lib/fog/azurerm/models/network/application_gateways.rb
245
+ - lib/fog/azurerm/models/network/express_route_circuit.rb
246
+ - lib/fog/azurerm/models/network/express_route_circuit_peering.rb
247
+ - lib/fog/azurerm/models/network/express_route_circuit_peerings.rb
248
+ - lib/fog/azurerm/models/network/express_route_circuits.rb
249
+ - lib/fog/azurerm/models/network/express_route_service_provider.rb
250
+ - lib/fog/azurerm/models/network/express_route_service_providers.rb
252
251
  - lib/fog/azurerm/models/network/frontend_ip_configuration.rb
253
252
  - lib/fog/azurerm/models/network/inbound_nat_pool.rb
254
253
  - lib/fog/azurerm/models/network/inbound_nat_rule.rb
@@ -266,12 +265,13 @@ files:
266
265
  - lib/fog/azurerm/models/network/public_ips.rb
267
266
  - lib/fog/azurerm/models/network/subnet.rb
268
267
  - lib/fog/azurerm/models/network/subnets.rb
269
- - lib/fog/azurerm/models/network/traffic_manager_end_point.rb
270
- - lib/fog/azurerm/models/network/traffic_manager_end_points.rb
271
- - lib/fog/azurerm/models/network/traffic_manager_profile.rb
272
- - lib/fog/azurerm/models/network/traffic_manager_profiles.rb
273
268
  - lib/fog/azurerm/models/network/virtual_network.rb
269
+ - lib/fog/azurerm/models/network/virtual_network_gateway.rb
270
+ - lib/fog/azurerm/models/network/virtual_network_gateways.rb
274
271
  - lib/fog/azurerm/models/network/virtual_networks.rb
272
+ - lib/fog/azurerm/models/network/vpn_client_configuration.rb
273
+ - lib/fog/azurerm/models/network/vpn_client_revoked_certificates.rb
274
+ - lib/fog/azurerm/models/network/vpn_client_root_certificates.rb
275
275
  - lib/fog/azurerm/models/resources/azure_resource.rb
276
276
  - lib/fog/azurerm/models/resources/azure_resources.rb
277
277
  - lib/fog/azurerm/models/resources/dependency.rb
@@ -288,7 +288,14 @@ files:
288
288
  - lib/fog/azurerm/models/storage/data_disk.rb
289
289
  - lib/fog/azurerm/models/storage/storage_account.rb
290
290
  - lib/fog/azurerm/models/storage/storage_accounts.rb
291
+ - lib/fog/azurerm/models/traffic_manager/traffic_manager_end_point.rb
292
+ - lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb
293
+ - lib/fog/azurerm/models/traffic_manager/traffic_manager_profile.rb
294
+ - lib/fog/azurerm/models/traffic_manager/traffic_manager_profiles.rb
291
295
  - lib/fog/azurerm/network.rb
296
+ - lib/fog/azurerm/requests/application_gateway/create_application_gateway.rb
297
+ - lib/fog/azurerm/requests/application_gateway/delete_application_gateway.rb
298
+ - lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb
292
299
  - lib/fog/azurerm/requests/compute/attach_data_disk_to_vm.rb
293
300
  - lib/fog/azurerm/requests/compute/check_vm_status.rb
294
301
  - lib/fog/azurerm/requests/compute/create_availability_set.rb
@@ -298,6 +305,7 @@ files:
298
305
  - lib/fog/azurerm/requests/compute/delete_virtual_machine.rb
299
306
  - lib/fog/azurerm/requests/compute/detach_data_disk_from_vm.rb
300
307
  - lib/fog/azurerm/requests/compute/generalize_virtual_machine.rb
308
+ - lib/fog/azurerm/requests/compute/get_availability_set.rb
301
309
  - lib/fog/azurerm/requests/compute/get_virtual_machine.rb
302
310
  - lib/fog/azurerm/requests/compute/list_availability_sets.rb
303
311
  - lib/fog/azurerm/requests/compute/list_available_sizes_for_virtual_machine.rb
@@ -307,11 +315,13 @@ files:
307
315
  - lib/fog/azurerm/requests/compute/restart_virtual_machine.rb
308
316
  - lib/fog/azurerm/requests/compute/start_virtual_machine.rb
309
317
  - lib/fog/azurerm/requests/dns/check_for_zone.rb
310
- - lib/fog/azurerm/requests/dns/create_record_set.rb
311
- - lib/fog/azurerm/requests/dns/create_zone.rb
318
+ - lib/fog/azurerm/requests/dns/create_or_update_record_set.rb
319
+ - lib/fog/azurerm/requests/dns/create_or_update_zone.rb
312
320
  - lib/fog/azurerm/requests/dns/delete_record_set.rb
313
321
  - lib/fog/azurerm/requests/dns/delete_zone.rb
322
+ - lib/fog/azurerm/requests/dns/get_record_set.rb
314
323
  - lib/fog/azurerm/requests/dns/get_records_from_record_set.rb
324
+ - lib/fog/azurerm/requests/dns/get_zone.rb
315
325
  - lib/fog/azurerm/requests/dns/list_record_sets.rb
316
326
  - lib/fog/azurerm/requests/dns/list_zones.rb
317
327
  - lib/fog/azurerm/requests/network/add_address_prefixes_in_virtual_network.rb
@@ -323,39 +333,44 @@ files:
323
333
  - lib/fog/azurerm/requests/network/attach_route_table_to_subnet.rb
324
334
  - lib/fog/azurerm/requests/network/check_for_public_ip.rb
325
335
  - lib/fog/azurerm/requests/network/check_for_virtual_network.rb
326
- - lib/fog/azurerm/requests/network/create_application_gateway.rb
327
336
  - lib/fog/azurerm/requests/network/create_load_balancer.rb
337
+ - lib/fog/azurerm/requests/network/create_or_update_express_route_circuit.rb
338
+ - lib/fog/azurerm/requests/network/create_or_update_express_route_circuit_peering.rb
328
339
  - lib/fog/azurerm/requests/network/create_or_update_network_interface.rb
329
340
  - lib/fog/azurerm/requests/network/create_or_update_network_security_group.rb
330
341
  - lib/fog/azurerm/requests/network/create_or_update_virtual_network.rb
342
+ - lib/fog/azurerm/requests/network/create_or_update_virtual_network_gateway.rb
331
343
  - lib/fog/azurerm/requests/network/create_public_ip.rb
332
344
  - lib/fog/azurerm/requests/network/create_subnet.rb
333
- - lib/fog/azurerm/requests/network/create_traffic_manager_endpoint.rb
334
- - lib/fog/azurerm/requests/network/create_traffic_manager_profile.rb
335
- - lib/fog/azurerm/requests/network/delete_application_gateway.rb
345
+ - lib/fog/azurerm/requests/network/delete_express_route_circuit.rb
346
+ - lib/fog/azurerm/requests/network/delete_express_route_circuit_peering.rb
336
347
  - lib/fog/azurerm/requests/network/delete_load_balancer.rb
337
348
  - lib/fog/azurerm/requests/network/delete_network_interface.rb
338
349
  - lib/fog/azurerm/requests/network/delete_network_security_group.rb
339
350
  - lib/fog/azurerm/requests/network/delete_public_ip.rb
340
351
  - lib/fog/azurerm/requests/network/delete_subnet.rb
341
- - lib/fog/azurerm/requests/network/delete_traffic_manager_endpoint.rb
342
- - lib/fog/azurerm/requests/network/delete_traffic_manager_profile.rb
343
352
  - lib/fog/azurerm/requests/network/delete_virtual_network.rb
353
+ - lib/fog/azurerm/requests/network/delete_virtual_network_gateway.rb
344
354
  - lib/fog/azurerm/requests/network/detach_network_security_group_from_subnet.rb
345
355
  - lib/fog/azurerm/requests/network/detach_resource_from_nic.rb
346
356
  - lib/fog/azurerm/requests/network/detach_route_table_from_subnet.rb
357
+ - lib/fog/azurerm/requests/network/get_express_route_circuit.rb
358
+ - lib/fog/azurerm/requests/network/get_express_route_circuit_peering.rb
347
359
  - lib/fog/azurerm/requests/network/get_network_interface.rb
348
360
  - lib/fog/azurerm/requests/network/get_network_security_group.rb
361
+ - lib/fog/azurerm/requests/network/get_public_ip.rb
349
362
  - lib/fog/azurerm/requests/network/get_subnet.rb
350
- - lib/fog/azurerm/requests/network/get_traffic_manager_profile.rb
351
363
  - lib/fog/azurerm/requests/network/get_virtual_network.rb
352
- - lib/fog/azurerm/requests/network/list_application_gateways.rb
364
+ - lib/fog/azurerm/requests/network/get_virtual_network_gateway.rb
365
+ - lib/fog/azurerm/requests/network/list_express_route_circuit_peerings.rb
366
+ - lib/fog/azurerm/requests/network/list_express_route_circuits.rb
367
+ - lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
353
368
  - lib/fog/azurerm/requests/network/list_load_balancers.rb
354
369
  - lib/fog/azurerm/requests/network/list_network_interfaces.rb
355
370
  - lib/fog/azurerm/requests/network/list_network_security_groups.rb
356
371
  - lib/fog/azurerm/requests/network/list_public_ips.rb
357
372
  - lib/fog/azurerm/requests/network/list_subnets.rb
358
- - lib/fog/azurerm/requests/network/list_traffic_manager_profiles.rb
373
+ - lib/fog/azurerm/requests/network/list_virtual_network_gateways.rb
359
374
  - lib/fog/azurerm/requests/network/list_virtual_networks.rb
360
375
  - lib/fog/azurerm/requests/network/remove_address_prefixes_from_virtual_network.rb
361
376
  - lib/fog/azurerm/requests/network/remove_dns_servers_from_virtual_network.rb
@@ -386,68 +401,90 @@ files:
386
401
  - lib/fog/azurerm/requests/storage/list_storage_accounts.rb
387
402
  - lib/fog/azurerm/requests/storage/set_blob_metadata.rb
388
403
  - lib/fog/azurerm/requests/storage/set_container_metadata.rb
404
+ - lib/fog/azurerm/requests/traffic_manager/create_traffic_manager_endpoint.rb
405
+ - lib/fog/azurerm/requests/traffic_manager/create_traffic_manager_profile.rb
406
+ - lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
407
+ - lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_profile.rb
408
+ - lib/fog/azurerm/requests/traffic_manager/get_traffic_manager_endpoint.rb
409
+ - lib/fog/azurerm/requests/traffic_manager/get_traffic_manager_profile.rb
410
+ - lib/fog/azurerm/requests/traffic_manager/list_traffic_manager_profiles.rb
389
411
  - lib/fog/azurerm/resources.rb
390
412
  - lib/fog/azurerm/storage.rb
413
+ - lib/fog/azurerm/traffic_manager.rb
391
414
  - lib/fog/azurerm/utilities/general.rb
392
415
  - lib/fog/azurerm/version.rb
393
416
  - rakefile
394
417
  - test/api_stub.rb
418
+ - test/api_stub/models/application_gateway/gateway.rb
395
419
  - test/api_stub/models/compute/availability_set.rb
396
420
  - test/api_stub/models/compute/server.rb
397
421
  - test/api_stub/models/dns/record_set.rb
398
422
  - test/api_stub/models/dns/zone.rb
399
- - test/api_stub/models/network/application_gateway.rb
423
+ - test/api_stub/models/network/express_route_circuit.rb
424
+ - test/api_stub/models/network/express_route_circuit_peering.rb
425
+ - test/api_stub/models/network/express_route_service_provider.rb
400
426
  - test/api_stub/models/network/load_balancer.rb
401
427
  - test/api_stub/models/network/network_interface.rb
402
428
  - test/api_stub/models/network/network_security_group.rb
403
429
  - test/api_stub/models/network/public_ip.rb
404
430
  - test/api_stub/models/network/subnet.rb
405
- - test/api_stub/models/network/traffic_manager_end_point.rb
406
- - test/api_stub/models/network/traffic_manager_profile.rb
407
431
  - test/api_stub/models/network/virtual_network.rb
432
+ - test/api_stub/models/network/virtual_network_gateway.rb
408
433
  - test/api_stub/models/resources/deployment.rb
409
434
  - test/api_stub/models/resources/resource.rb
410
435
  - test/api_stub/models/resources/resource_group.rb
411
436
  - test/api_stub/models/storage/blob.rb
412
437
  - test/api_stub/models/storage/container.rb
413
- - test/api_stub/models/storage/data_disk.rb
414
438
  - test/api_stub/models/storage/storageaccount.rb
439
+ - test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
440
+ - test/api_stub/models/traffic_manager/traffic_manager_profile.rb
441
+ - test/api_stub/requests/application_gateway/gateway.rb
415
442
  - test/api_stub/requests/compute/availability_set.rb
416
443
  - test/api_stub/requests/compute/virtual_machine.rb
417
444
  - test/api_stub/requests/dns/record_set.rb
418
445
  - test/api_stub/requests/dns/zone.rb
419
- - test/api_stub/requests/network/application_gateway.rb
446
+ - test/api_stub/requests/network/express_route_circuit.rb
447
+ - test/api_stub/requests/network/express_route_circuit_peering.rb
448
+ - test/api_stub/requests/network/express_route_service_provider.rb
420
449
  - test/api_stub/requests/network/load_balancer.rb
421
450
  - test/api_stub/requests/network/network_interface.rb
422
451
  - test/api_stub/requests/network/network_security_group.rb
423
452
  - test/api_stub/requests/network/public_ip.rb
424
453
  - test/api_stub/requests/network/subnet.rb
425
- - test/api_stub/requests/network/traffic_manager_endpoint.rb
426
- - test/api_stub/requests/network/traffic_manager_profile.rb
427
454
  - test/api_stub/requests/network/virtual_network.rb
455
+ - test/api_stub/requests/network/virtual_network_gateway.rb
428
456
  - test/api_stub/requests/resources/deployment.rb
429
457
  - test/api_stub/requests/resources/resource.rb
430
458
  - test/api_stub/requests/resources/resource_group.rb
431
459
  - test/api_stub/requests/storage/blob.rb
432
460
  - test/api_stub/requests/storage/container.rb
433
461
  - test/api_stub/requests/storage/storageaccount.rb
462
+ - test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
463
+ - test/api_stub/requests/traffic_manager/traffic_manager_profile.rb
434
464
  - test/integration/README.md
435
465
  - test/integration/application_gateway.rb
436
466
  - test/integration/availability_set.rb
437
467
  - test/integration/container.rb
438
468
  - test/integration/credentials/azure.yml
469
+ - test/integration/deployment.rb
470
+ - test/integration/express_route_circuit.rb
439
471
  - test/integration/external_load_balancer.rb
440
472
  - test/integration/internal_load_balancer.rb
441
473
  - test/integration/network_interface.rb
442
474
  - test/integration/network_security_group.rb
443
475
  - test/integration/public_ip.rb
444
476
  - test/integration/record_set.rb
477
+ - test/integration/resource_group.rb
478
+ - test/integration/resource_tag.rb
445
479
  - test/integration/server.rb
446
480
  - test/integration/storage_account.rb
447
481
  - test/integration/subnet.rb
448
482
  - test/integration/traffic_manager.rb
449
483
  - test/integration/virtual_network.rb
484
+ - test/integration/virtual_network_gateway.rb
450
485
  - test/integration/zone.rb
486
+ - test/models/application_gateway/test_gateway.rb
487
+ - test/models/application_gateway/test_gateways.rb
451
488
  - test/models/compute/test_availability_set.rb
452
489
  - test/models/compute/test_availability_sets.rb
453
490
  - test/models/compute/test_server.rb
@@ -456,8 +493,11 @@ files:
456
493
  - test/models/dns/test_record_sets.rb
457
494
  - test/models/dns/test_zone.rb
458
495
  - test/models/dns/test_zones.rb
459
- - test/models/network/test_application_gateway.rb
460
- - test/models/network/test_application_gateways.rb
496
+ - test/models/network/test_express_route_circuit.rb
497
+ - test/models/network/test_express_route_circuit_peering.rb
498
+ - test/models/network/test_express_route_circuit_peerings.rb
499
+ - test/models/network/test_express_route_circuits.rb
500
+ - test/models/network/test_express_route_service_providers.rb
461
501
  - test/models/network/test_load_balancer.rb
462
502
  - test/models/network/test_load_balancers.rb
463
503
  - test/models/network/test_network_interface.rb
@@ -469,11 +509,9 @@ files:
469
509
  - test/models/network/test_public_ips.rb
470
510
  - test/models/network/test_subnet.rb
471
511
  - test/models/network/test_subnets.rb
472
- - test/models/network/test_traffic_manager_end_point.rb
473
- - test/models/network/test_traffic_manager_end_points.rb
474
- - test/models/network/test_traffic_manager_profile.rb
475
- - test/models/network/test_traffic_manager_profiles.rb
476
512
  - test/models/network/test_virtual_network.rb
513
+ - test/models/network/test_virtual_network_gateway.rb
514
+ - test/models/network/test_virtual_network_gateways.rb
477
515
  - test/models/network/test_virtual_networks.rb
478
516
  - test/models/resources/test_deployment.rb
479
517
  - test/models/resources/test_deployments.rb
@@ -487,6 +525,13 @@ files:
487
525
  - test/models/storage/test_data_disk.rb
488
526
  - test/models/storage/test_storage_account.rb
489
527
  - test/models/storage/test_storage_accounts.rb
528
+ - test/models/traffic_manager/test_traffic_manager_end_point.rb
529
+ - test/models/traffic_manager/test_traffic_manager_end_points.rb
530
+ - test/models/traffic_manager/test_traffic_manager_profile.rb
531
+ - test/models/traffic_manager/test_traffic_manager_profiles.rb
532
+ - test/requests/application_gateway/test_create_application_gateway.rb
533
+ - test/requests/application_gateway/test_delete_application_gateway.rb
534
+ - test/requests/application_gateway/test_list_application_gateways.rb
490
535
  - test/requests/compute/test_attach_data_disk_to_vm.rb
491
536
  - test/requests/compute/test_create_availability_set.rb
492
537
  - test/requests/compute/test_create_virtual_machine.rb
@@ -495,6 +540,7 @@ files:
495
540
  - test/requests/compute/test_delete_virtual_machine.rb
496
541
  - test/requests/compute/test_detach_data_disk_from_vm.rb
497
542
  - test/requests/compute/test_generalize_virtual_machine.rb
543
+ - test/requests/compute/test_get_availability_set.rb
498
544
  - test/requests/compute/test_get_virtual_machine.rb
499
545
  - test/requests/compute/test_get_vm_status.rb
500
546
  - test/requests/compute/test_list_availability_sets.rb
@@ -509,7 +555,9 @@ files:
509
555
  - test/requests/dns/test_create_zone.rb
510
556
  - test/requests/dns/test_delete_record_set.rb
511
557
  - test/requests/dns/test_delete_zone.rb
558
+ - test/requests/dns/test_get_record_set.rb
512
559
  - test/requests/dns/test_get_records_from_record_set.rb
560
+ - test/requests/dns/test_get_zone.rb
513
561
  - test/requests/dns/test_list_record_sets.rb
514
562
  - test/requests/dns/test_list_zones.rb
515
563
  - test/requests/network/test_add_address_prefixes_in_virtual_network.rb
@@ -521,38 +569,44 @@ files:
521
569
  - test/requests/network/test_attach_route_table_to_subnet.rb
522
570
  - test/requests/network/test_check_for_public_ip.rb
523
571
  - test/requests/network/test_check_for_virtual_network.rb
524
- - test/requests/network/test_create_application_gateway.rb
572
+ - test/requests/network/test_create_express_route_circuit.rb
573
+ - test/requests/network/test_create_express_route_circuit_peering.rb
525
574
  - test/requests/network/test_create_load_balancer.rb
526
575
  - test/requests/network/test_create_network_interface.rb
527
- - test/requests/network/test_create_network_security_group.rb
576
+ - test/requests/network/test_create_or_update_network_security_group.rb
528
577
  - test/requests/network/test_create_or_update_virtual_network.rb
529
578
  - test/requests/network/test_create_public_ip.rb
530
579
  - test/requests/network/test_create_subnet.rb
531
- - test/requests/network/test_create_traffic_manager_endpoint.rb
532
- - test/requests/network/test_create_traffic_manager_profile.rb
533
- - test/requests/network/test_delete_application_gateway.rb
580
+ - test/requests/network/test_create_virtual_network_gateway.rb
581
+ - test/requests/network/test_delete_express_route_circuit.rb
582
+ - test/requests/network/test_delete_express_route_circuit_peering.rb
534
583
  - test/requests/network/test_delete_load_balancer.rb
535
584
  - test/requests/network/test_delete_network_interface.rb
536
585
  - test/requests/network/test_delete_network_security_group.rb
537
586
  - test/requests/network/test_delete_public_ip.rb
538
587
  - test/requests/network/test_delete_subnet.rb
539
- - test/requests/network/test_delete_traffic_manager_endpoint.rb
540
- - test/requests/network/test_delete_traffic_manager_profile.rb
541
588
  - test/requests/network/test_delete_virtual_network.rb
589
+ - test/requests/network/test_delete_virtual_network_gateway.rb
542
590
  - test/requests/network/test_detach_network_security_group_from_subnet.rb
543
591
  - test/requests/network/test_detach_resource_from_nic.rb
544
592
  - test/requests/network/test_detach_route_table_from_subnet.rb
593
+ - test/requests/network/test_get_express_route_circuit.rb
594
+ - test/requests/network/test_get_express_route_circuit_peering.rb
545
595
  - test/requests/network/test_get_network_interface.rb
546
596
  - test/requests/network/test_get_network_security_group.rb
597
+ - test/requests/network/test_get_public_ip.rb
547
598
  - test/requests/network/test_get_subnet.rb
548
- - test/requests/network/test_get_traffic_manager_profile.rb
549
- - test/requests/network/test_list_application_gateways.rb
599
+ - test/requests/network/test_get_virtual_network.rb
600
+ - test/requests/network/test_get_virtual_network_gateway.rb
601
+ - test/requests/network/test_list_express_route_circuit_peerings.rb
602
+ - test/requests/network/test_list_express_route_circuits.rb
603
+ - test/requests/network/test_list_express_route_service_providers.rb
550
604
  - test/requests/network/test_list_load_balancers.rb
551
605
  - test/requests/network/test_list_network_interfaces.rb
552
606
  - test/requests/network/test_list_network_security_groups.rb
553
607
  - test/requests/network/test_list_public_ips.rb
554
608
  - test/requests/network/test_list_subnets.rb
555
- - test/requests/network/test_list_traffic_manager_profiles.rb
609
+ - test/requests/network/test_list_virtual_network_gateways.rb
556
610
  - test/requests/network/test_list_virtual_networks.rb
557
611
  - test/requests/network/test_remove_address_prefixes_from_virtual_network.rb
558
612
  - test/requests/network/test_remove_dns_servers_from_virtual_network.rb
@@ -582,6 +636,13 @@ files:
582
636
  - test/requests/storage/test_list_storage_accounts_for_rg.rb
583
637
  - test/requests/storage/test_set_blob_metadata.rb
584
638
  - test/requests/storage/test_set_container_metadata.rb
639
+ - test/requests/traffic_manager/test_create_traffic_manager_endpoint.rb
640
+ - test/requests/traffic_manager/test_create_traffic_manager_profile.rb
641
+ - test/requests/traffic_manager/test_delete_traffic_manager_endpoint.rb
642
+ - test/requests/traffic_manager/test_delete_traffic_manager_profile.rb
643
+ - test/requests/traffic_manager/test_get_traffic_manager_endpoint.rb
644
+ - test/requests/traffic_manager/test_get_traffic_manager_profile.rb
645
+ - test/requests/traffic_manager/test_list_traffic_manager_profiles.rb
585
646
  - test/test_credentials.rb
586
647
  - test/test_helper.rb
587
648
  homepage: https://github.com/fog/fog-azure-rm