fog 0.7.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2038) hide show
  1. checksums.yaml +7 -0
  2. data/.document +1 -1
  3. data/.github/dependabot.yml +10 -0
  4. data/.github/workflows/codeql.yml +67 -0
  5. data/.github/workflows/depsreview.yml +14 -0
  6. data/.github/workflows/ruby.yml +23 -0
  7. data/.github/workflows/stale.yml +14 -0
  8. data/.gitignore +19 -2
  9. data/.irbrc +82 -0
  10. data/.rubocop.yml +20 -0
  11. data/.rubocop_todo.yml +606 -0
  12. data/.travis.yml +41 -0
  13. data/.yardopts +1 -0
  14. data/CHANGELOG.md +10446 -0
  15. data/CONTRIBUTING.md +276 -0
  16. data/CONTRIBUTORS.md +898 -0
  17. data/Gemfile +8 -1
  18. data/LICENSE.md +20 -0
  19. data/README.md +187 -0
  20. data/RELEASE.md +40 -0
  21. data/Rakefile +130 -40
  22. data/benchs/each_provider.sh +6 -0
  23. data/benchs/each_service.sh +6 -0
  24. data/benchs/load_times.rb +37 -0
  25. data/benchs/parse_vs_push.rb +16 -9
  26. data/bin/fog +43 -6
  27. data/fog.gemspec +92 -32
  28. data/gemfiles/Gemfile-2.0 +11 -0
  29. data/gemfiles/Gemfile-edge +14 -0
  30. data/gemfiles/Gemfile-edge-2.0 +16 -0
  31. data/lib/fog/aws/service_mapper.rb +129 -0
  32. data/lib/fog/bare_metal_cloud/compute.rb +93 -0
  33. data/lib/fog/bare_metal_cloud/core.rb +10 -0
  34. data/lib/fog/bare_metal_cloud/requests/compute/add_server.rb +31 -0
  35. data/lib/fog/bare_metal_cloud/requests/compute/add_server_by_configuration.rb +31 -0
  36. data/lib/fog/bare_metal_cloud/requests/compute/cancel_server.rb +28 -0
  37. data/lib/fog/bare_metal_cloud/requests/compute/get_server.rb +39 -0
  38. data/lib/fog/bare_metal_cloud/requests/compute/list_configurations.rb +25 -0
  39. data/lib/fog/bare_metal_cloud/requests/compute/list_images.rb +25 -0
  40. data/lib/fog/bare_metal_cloud/requests/compute/list_plans.rb +28 -0
  41. data/lib/fog/bare_metal_cloud/requests/compute/list_servers.rb +34 -0
  42. data/lib/fog/bare_metal_cloud/requests/compute/reboot_server.rb +22 -0
  43. data/lib/fog/bare_metal_cloud.rb +1 -0
  44. data/lib/fog/bin/aws.rb +10 -66
  45. data/lib/fog/bin/bare_metal_cloud.rb +29 -0
  46. data/lib/fog/bin/brightbox.rb +5 -4
  47. data/lib/fog/bin/clodo.rb +29 -0
  48. data/lib/fog/bin/cloudsigma.rb +28 -0
  49. data/lib/fog/bin/cloudstack.rb +28 -0
  50. data/lib/fog/bin/dnsmadeeasy.rb +29 -0
  51. data/lib/fog/bin/dreamhost.rb +29 -0
  52. data/lib/fog/bin/fogdocker.rb +28 -0
  53. data/lib/fog/bin/glesys.rb +29 -0
  54. data/lib/fog/bin/go_grid.rb +3 -4
  55. data/lib/fog/bin/ibm.rb +32 -0
  56. data/lib/fog/bin/linode.rb +4 -4
  57. data/lib/fog/bin/opennebula.rb +60 -0
  58. data/lib/fog/bin/openstack.rb +71 -0
  59. data/lib/fog/bin/openvz.rb +29 -0
  60. data/lib/fog/bin/rackspace.rb +55 -6
  61. data/lib/fog/bin/rage4.rb +29 -0
  62. data/lib/fog/bin/softlayer.rb +53 -0
  63. data/lib/fog/bin/vcloud.rb +28 -0
  64. data/lib/fog/bin/vcloud_director.rb +28 -0
  65. data/lib/fog/bin.rb +36 -13
  66. data/lib/fog/clodo/compute.rb +147 -0
  67. data/lib/fog/clodo/core.rb +33 -0
  68. data/lib/fog/clodo/models/compute/image.rb +27 -0
  69. data/lib/fog/clodo/models/compute/images.rb +24 -0
  70. data/lib/fog/clodo/models/compute/server.rb +121 -0
  71. data/lib/fog/clodo/models/compute/servers.rb +32 -0
  72. data/lib/fog/clodo/requests/compute/add_ip_address.rb +47 -0
  73. data/lib/fog/clodo/requests/compute/create_server.rb +109 -0
  74. data/lib/fog/clodo/requests/compute/delete_ip_address.rb +45 -0
  75. data/lib/fog/clodo/requests/compute/delete_server.rb +40 -0
  76. data/lib/fog/clodo/requests/compute/get_image_details.rb +20 -0
  77. data/lib/fog/clodo/requests/compute/get_server_details.rb +45 -0
  78. data/lib/fog/clodo/requests/compute/list_images.rb +44 -0
  79. data/lib/fog/clodo/requests/compute/list_images_detail.rb +57 -0
  80. data/lib/fog/clodo/requests/compute/list_servers.rb +46 -0
  81. data/lib/fog/clodo/requests/compute/list_servers_detail.rb +47 -0
  82. data/lib/fog/clodo/requests/compute/move_ip_address.rb +33 -0
  83. data/lib/fog/clodo/requests/compute/reboot_server.rb +19 -0
  84. data/lib/fog/clodo/requests/compute/rebuild_server.rb +21 -0
  85. data/lib/fog/clodo/requests/compute/server_action.rb +24 -0
  86. data/lib/fog/clodo/requests/compute/start_server.rb +19 -0
  87. data/lib/fog/clodo/requests/compute/stop_server.rb +19 -0
  88. data/lib/fog/clodo.rb +1 -0
  89. data/lib/fog/cloudsigma/compute.rb +228 -0
  90. data/lib/fog/cloudsigma/connection.rb +192 -0
  91. data/lib/fog/cloudsigma/core.rb +10 -0
  92. data/lib/fog/cloudsigma/docs/getting_started.md +59 -0
  93. data/lib/fog/cloudsigma/error.rb +39 -0
  94. data/lib/fog/cloudsigma/mock_data.rb +49 -0
  95. data/lib/fog/cloudsigma/models/balance.rb +12 -0
  96. data/lib/fog/cloudsigma/models/current_usage.rb +19 -0
  97. data/lib/fog/cloudsigma/models/fwpolicies.rb +18 -0
  98. data/lib/fog/cloudsigma/models/fwpolicy.rb +19 -0
  99. data/lib/fog/cloudsigma/models/ip.rb +20 -0
  100. data/lib/fog/cloudsigma/models/ipconf.rb +12 -0
  101. data/lib/fog/cloudsigma/models/ips.rb +26 -0
  102. data/lib/fog/cloudsigma/models/lib_volume.rb +48 -0
  103. data/lib/fog/cloudsigma/models/lib_volumes.rb +26 -0
  104. data/lib/fog/cloudsigma/models/mountpoint.rb +25 -0
  105. data/lib/fog/cloudsigma/models/nic.rb +19 -0
  106. data/lib/fog/cloudsigma/models/obj_ref.rb +12 -0
  107. data/lib/fog/cloudsigma/models/price_calculation.rb +13 -0
  108. data/lib/fog/cloudsigma/models/price_record.rb +37 -0
  109. data/lib/fog/cloudsigma/models/pricing.rb +19 -0
  110. data/lib/fog/cloudsigma/models/profile.rb +48 -0
  111. data/lib/fog/cloudsigma/models/rule.rb +18 -0
  112. data/lib/fog/cloudsigma/models/server.rb +212 -0
  113. data/lib/fog/cloudsigma/models/servers.rb +26 -0
  114. data/lib/fog/cloudsigma/models/snapshot.rb +77 -0
  115. data/lib/fog/cloudsigma/models/snapshots.rb +26 -0
  116. data/lib/fog/cloudsigma/models/subscription.rb +52 -0
  117. data/lib/fog/cloudsigma/models/subscriptions.rb +41 -0
  118. data/lib/fog/cloudsigma/models/usage_record.rb +13 -0
  119. data/lib/fog/cloudsigma/models/vlan.rb +29 -0
  120. data/lib/fog/cloudsigma/models/vlans.rb +26 -0
  121. data/lib/fog/cloudsigma/models/volume.rb +84 -0
  122. data/lib/fog/cloudsigma/models/volumes.rb +26 -0
  123. data/lib/fog/cloudsigma/nested_model.rb +60 -0
  124. data/lib/fog/cloudsigma/requests/calculate_subscription_price.rb +16 -0
  125. data/lib/fog/cloudsigma/requests/clone_libvolume.rb +31 -0
  126. data/lib/fog/cloudsigma/requests/clone_server.rb +31 -0
  127. data/lib/fog/cloudsigma/requests/clone_snapshot.rb +31 -0
  128. data/lib/fog/cloudsigma/requests/clone_volume.rb +31 -0
  129. data/lib/fog/cloudsigma/requests/close_vnc.rb +29 -0
  130. data/lib/fog/cloudsigma/requests/create_server.rb +31 -0
  131. data/lib/fog/cloudsigma/requests/create_snapshot.rb +27 -0
  132. data/lib/fog/cloudsigma/requests/create_subscription.rb +38 -0
  133. data/lib/fog/cloudsigma/requests/create_volume.rb +29 -0
  134. data/lib/fog/cloudsigma/requests/delete_server.rb +17 -0
  135. data/lib/fog/cloudsigma/requests/delete_snapshot.rb +17 -0
  136. data/lib/fog/cloudsigma/requests/delete_volume.rb +17 -0
  137. data/lib/fog/cloudsigma/requests/extend_subscription.rb +20 -0
  138. data/lib/fog/cloudsigma/requests/get_balance.rb +17 -0
  139. data/lib/fog/cloudsigma/requests/get_current_usage.rb +16 -0
  140. data/lib/fog/cloudsigma/requests/get_ip.rb +17 -0
  141. data/lib/fog/cloudsigma/requests/get_lib_volume.rb +17 -0
  142. data/lib/fog/cloudsigma/requests/get_pricing.rb +27 -0
  143. data/lib/fog/cloudsigma/requests/get_profile.rb +17 -0
  144. data/lib/fog/cloudsigma/requests/get_server.rb +17 -0
  145. data/lib/fog/cloudsigma/requests/get_snapshot.rb +17 -0
  146. data/lib/fog/cloudsigma/requests/get_subscription.rb +17 -0
  147. data/lib/fog/cloudsigma/requests/get_vlan.rb +17 -0
  148. data/lib/fog/cloudsigma/requests/get_volume.rb +17 -0
  149. data/lib/fog/cloudsigma/requests/list_fwpolicies.rb +17 -0
  150. data/lib/fog/cloudsigma/requests/list_ips.rb +17 -0
  151. data/lib/fog/cloudsigma/requests/list_lib_volumes.rb +17 -0
  152. data/lib/fog/cloudsigma/requests/list_servers.rb +17 -0
  153. data/lib/fog/cloudsigma/requests/list_snapshots.rb +17 -0
  154. data/lib/fog/cloudsigma/requests/list_subscriptions.rb +17 -0
  155. data/lib/fog/cloudsigma/requests/list_vlans.rb +17 -0
  156. data/lib/fog/cloudsigma/requests/list_volumes.rb +17 -0
  157. data/lib/fog/cloudsigma/requests/open_vnc.rb +33 -0
  158. data/lib/fog/cloudsigma/requests/start_server.rb +31 -0
  159. data/lib/fog/cloudsigma/requests/stop_server.rb +32 -0
  160. data/lib/fog/cloudsigma/requests/update_profile.rb +17 -0
  161. data/lib/fog/cloudsigma/requests/update_server.rb +39 -0
  162. data/lib/fog/cloudsigma/requests/update_snapshot.rb +17 -0
  163. data/lib/fog/cloudsigma/requests/update_vlan.rb +19 -0
  164. data/lib/fog/cloudsigma/requests/update_volume.rb +17 -0
  165. data/lib/fog/cloudsigma.rb +1 -0
  166. data/lib/fog/core/deprecated/connection.rb +24 -0
  167. data/lib/fog/core/parser.rb +2 -99
  168. data/lib/fog/dnsmadeeasy/core.rb +10 -0
  169. data/lib/fog/dnsmadeeasy/dns.rb +130 -0
  170. data/lib/fog/dnsmadeeasy/models/dns/record.rb +77 -0
  171. data/lib/fog/dnsmadeeasy/models/dns/records.rb +32 -0
  172. data/lib/fog/dnsmadeeasy/models/dns/zone.rb +38 -0
  173. data/lib/fog/dnsmadeeasy/models/dns/zones.rb +26 -0
  174. data/lib/fog/dnsmadeeasy/requests/dns/create_domain.rb +27 -0
  175. data/lib/fog/dnsmadeeasy/requests/dns/create_record.rb +59 -0
  176. data/lib/fog/dnsmadeeasy/requests/dns/create_secondary.rb +33 -0
  177. data/lib/fog/dnsmadeeasy/requests/dns/delete_all_domains.rb +21 -0
  178. data/lib/fog/dnsmadeeasy/requests/dns/delete_all_secondary.rb +20 -0
  179. data/lib/fog/dnsmadeeasy/requests/dns/delete_domain.rb +23 -0
  180. data/lib/fog/dnsmadeeasy/requests/dns/delete_record.rb +24 -0
  181. data/lib/fog/dnsmadeeasy/requests/dns/delete_secondary.rb +23 -0
  182. data/lib/fog/dnsmadeeasy/requests/dns/get_domain.rb +27 -0
  183. data/lib/fog/dnsmadeeasy/requests/dns/get_record.rb +36 -0
  184. data/lib/fog/dnsmadeeasy/requests/dns/get_secondary.rb +27 -0
  185. data/lib/fog/dnsmadeeasy/requests/dns/list_domains.rb +22 -0
  186. data/lib/fog/dnsmadeeasy/requests/dns/list_records.rb +40 -0
  187. data/lib/fog/dnsmadeeasy/requests/dns/list_secondary.rb +22 -0
  188. data/lib/fog/dnsmadeeasy/requests/dns/update_record.rb +54 -0
  189. data/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb +33 -0
  190. data/lib/fog/dnsmadeeasy.rb +1 -0
  191. data/lib/fog/dreamhost/CHANGELOG.md +8 -0
  192. data/lib/fog/dreamhost/core.rb +10 -0
  193. data/lib/fog/dreamhost/dns.rb +79 -0
  194. data/lib/fog/dreamhost/examples/dns/getting_started.md +105 -0
  195. data/lib/fog/dreamhost/models/dns/record.rb +31 -0
  196. data/lib/fog/dreamhost/models/dns/records.rb +34 -0
  197. data/lib/fog/dreamhost/models/dns/zone.rb +55 -0
  198. data/lib/fog/dreamhost/models/dns/zones.rb +37 -0
  199. data/lib/fog/dreamhost/requests/dns/create_record.rb +27 -0
  200. data/lib/fog/dreamhost/requests/dns/delete_record.rb +26 -0
  201. data/lib/fog/dreamhost/requests/dns/list_records.rb +20 -0
  202. data/lib/fog/dreamhost.rb +1 -0
  203. data/lib/fog/fogdocker/compute.rb +61 -0
  204. data/lib/fog/fogdocker/core.rb +9 -0
  205. data/lib/fog/fogdocker/errors.rb +9 -0
  206. data/lib/fog/fogdocker/models/compute/image.rb +37 -0
  207. data/lib/fog/fogdocker/models/compute/images.rb +24 -0
  208. data/lib/fog/fogdocker/models/compute/server.rb +154 -0
  209. data/lib/fog/fogdocker/models/compute/servers.rb +25 -0
  210. data/lib/fog/fogdocker/requests/compute/api_version.rb +16 -0
  211. data/lib/fog/fogdocker/requests/compute/container_action.rb +72 -0
  212. data/lib/fog/fogdocker/requests/compute/container_all.rb +37 -0
  213. data/lib/fog/fogdocker/requests/compute/container_commit.rb +22 -0
  214. data/lib/fog/fogdocker/requests/compute/container_create.rb +52 -0
  215. data/lib/fog/fogdocker/requests/compute/container_delete.rb +21 -0
  216. data/lib/fog/fogdocker/requests/compute/container_get.rb +50 -0
  217. data/lib/fog/fogdocker/requests/compute/image_all.rb +27 -0
  218. data/lib/fog/fogdocker/requests/compute/image_create.rb +17 -0
  219. data/lib/fog/fogdocker/requests/compute/image_delete.rb +20 -0
  220. data/lib/fog/fogdocker/requests/compute/image_get.rb +19 -0
  221. data/lib/fog/fogdocker/requests/compute/image_search.rb +29 -0
  222. data/lib/fog/fogdocker.rb +1 -0
  223. data/lib/fog/glesys/compute.rb +136 -0
  224. data/lib/fog/glesys/core.rb +10 -0
  225. data/lib/fog/glesys/models/compute/ip.rb +73 -0
  226. data/lib/fog/glesys/models/compute/ips.rb +117 -0
  227. data/lib/fog/glesys/models/compute/server.rb +150 -0
  228. data/lib/fog/glesys/models/compute/servers.rb +42 -0
  229. data/lib/fog/glesys/models/compute/ssh_key.rb +28 -0
  230. data/lib/fog/glesys/models/compute/ssh_keys.rb +21 -0
  231. data/lib/fog/glesys/models/compute/template.rb +17 -0
  232. data/lib/fog/glesys/models/compute/templates.rb +38 -0
  233. data/lib/fog/glesys/requests/compute/create.rb +11 -0
  234. data/lib/fog/glesys/requests/compute/destroy.rb +15 -0
  235. data/lib/fog/glesys/requests/compute/edit.rb +11 -0
  236. data/lib/fog/glesys/requests/compute/ip_add.rb +11 -0
  237. data/lib/fog/glesys/requests/compute/ip_details.rb +11 -0
  238. data/lib/fog/glesys/requests/compute/ip_list_free.rb +11 -0
  239. data/lib/fog/glesys/requests/compute/ip_list_own.rb +11 -0
  240. data/lib/fog/glesys/requests/compute/ip_release.rb +11 -0
  241. data/lib/fog/glesys/requests/compute/ip_remove.rb +11 -0
  242. data/lib/fog/glesys/requests/compute/ip_take.rb +11 -0
  243. data/lib/fog/glesys/requests/compute/list_servers.rb +15 -0
  244. data/lib/fog/glesys/requests/compute/reboot.rb +11 -0
  245. data/lib/fog/glesys/requests/compute/server_details.rb +11 -0
  246. data/lib/fog/glesys/requests/compute/server_status.rb +11 -0
  247. data/lib/fog/glesys/requests/compute/ssh_key_add.rb +11 -0
  248. data/lib/fog/glesys/requests/compute/ssh_key_list.rb +11 -0
  249. data/lib/fog/glesys/requests/compute/ssh_key_remove.rb +11 -0
  250. data/lib/fog/glesys/requests/compute/start.rb +11 -0
  251. data/lib/fog/glesys/requests/compute/stop.rb +11 -0
  252. data/lib/fog/glesys/requests/compute/template_list.rb +11 -0
  253. data/lib/fog/glesys.rb +1 -0
  254. data/lib/fog/go_grid/compute.rb +110 -0
  255. data/lib/fog/go_grid/core.rb +10 -0
  256. data/lib/fog/go_grid/models/compute/image.rb +55 -0
  257. data/lib/fog/go_grid/models/compute/images.rb +29 -0
  258. data/lib/fog/go_grid/models/compute/password.rb +45 -0
  259. data/lib/fog/go_grid/models/compute/passwords.rb +32 -0
  260. data/lib/fog/go_grid/models/compute/server.rb +94 -0
  261. data/lib/fog/go_grid/models/compute/servers.rb +32 -0
  262. data/lib/fog/go_grid/requests/compute/common_lookup_list.rb +26 -0
  263. data/lib/fog/go_grid/requests/compute/grid_image_get.rb +37 -0
  264. data/lib/fog/go_grid/requests/compute/grid_image_list.rb +40 -0
  265. data/lib/fog/go_grid/requests/compute/grid_ip_list.rb +28 -0
  266. data/lib/fog/go_grid/requests/compute/grid_loadbalancer_list.rb +26 -0
  267. data/lib/fog/go_grid/requests/compute/grid_server_add.rb +34 -0
  268. data/lib/fog/go_grid/requests/compute/grid_server_delete.rb +23 -0
  269. data/lib/fog/go_grid/requests/compute/grid_server_get.rb +23 -0
  270. data/lib/fog/go_grid/requests/compute/grid_server_list.rb +28 -0
  271. data/lib/fog/go_grid/requests/compute/grid_server_power.rb +24 -0
  272. data/lib/fog/go_grid/requests/compute/support_password_get.rb +26 -0
  273. data/lib/fog/go_grid/requests/compute/support_password_list.rb +28 -0
  274. data/lib/fog/go_grid.rb +1 -0
  275. data/lib/fog/ibm/compute.rb +230 -0
  276. data/lib/fog/ibm/core.rb +172 -0
  277. data/lib/fog/ibm/models/compute/address.rb +61 -0
  278. data/lib/fog/ibm/models/compute/addresses.rb +25 -0
  279. data/lib/fog/ibm/models/compute/image.rb +68 -0
  280. data/lib/fog/ibm/models/compute/images.rb +24 -0
  281. data/lib/fog/ibm/models/compute/instance-type.rb +14 -0
  282. data/lib/fog/ibm/models/compute/instance-types.rb +12 -0
  283. data/lib/fog/ibm/models/compute/key.rb +35 -0
  284. data/lib/fog/ibm/models/compute/keys.rb +32 -0
  285. data/lib/fog/ibm/models/compute/location.rb +15 -0
  286. data/lib/fog/ibm/models/compute/locations.rb +24 -0
  287. data/lib/fog/ibm/models/compute/server.rb +189 -0
  288. data/lib/fog/ibm/models/compute/servers.rb +24 -0
  289. data/lib/fog/ibm/models/compute/vlan.rb +13 -0
  290. data/lib/fog/ibm/models/compute/vlans.rb +25 -0
  291. data/lib/fog/ibm/models/storage/offering.rb +18 -0
  292. data/lib/fog/ibm/models/storage/offerings.rb +16 -0
  293. data/lib/fog/ibm/models/storage/volume.rb +96 -0
  294. data/lib/fog/ibm/models/storage/volumes.rb +24 -0
  295. data/lib/fog/ibm/requests/compute/clone_image.rb +44 -0
  296. data/lib/fog/ibm/requests/compute/create_address.rb +46 -0
  297. data/lib/fog/ibm/requests/compute/create_image.rb +52 -0
  298. data/lib/fog/ibm/requests/compute/create_instance.rb +81 -0
  299. data/lib/fog/ibm/requests/compute/create_key.rb +57 -0
  300. data/lib/fog/ibm/requests/compute/delete_address.rb +42 -0
  301. data/lib/fog/ibm/requests/compute/delete_image.rb +39 -0
  302. data/lib/fog/ibm/requests/compute/delete_instance.rb +48 -0
  303. data/lib/fog/ibm/requests/compute/delete_key.rb +37 -0
  304. data/lib/fog/ibm/requests/compute/get_image.rb +63 -0
  305. data/lib/fog/ibm/requests/compute/get_image_agreement.rb +62 -0
  306. data/lib/fog/ibm/requests/compute/get_image_manifest.rb +35 -0
  307. data/lib/fog/ibm/requests/compute/get_instance.rb +72 -0
  308. data/lib/fog/ibm/requests/compute/get_instance_logs.rb +23 -0
  309. data/lib/fog/ibm/requests/compute/get_key.rb +45 -0
  310. data/lib/fog/ibm/requests/compute/get_location.rb +51 -0
  311. data/lib/fog/ibm/requests/compute/get_request.rb +74 -0
  312. data/lib/fog/ibm/requests/compute/list_address_offerings.rb +54 -0
  313. data/lib/fog/ibm/requests/compute/list_addresses.rb +49 -0
  314. data/lib/fog/ibm/requests/compute/list_images.rb +54 -0
  315. data/lib/fog/ibm/requests/compute/list_instances.rb +53 -0
  316. data/lib/fog/ibm/requests/compute/list_keys.rb +53 -0
  317. data/lib/fog/ibm/requests/compute/list_locations.rb +33 -0
  318. data/lib/fog/ibm/requests/compute/list_vlans.rb +43 -0
  319. data/lib/fog/ibm/requests/compute/modify_instance.rb +68 -0
  320. data/lib/fog/ibm/requests/compute/modify_key.rb +48 -0
  321. data/lib/fog/ibm/requests/storage/create_volume.rb +63 -0
  322. data/lib/fog/ibm/requests/storage/delete_volume.rb +38 -0
  323. data/lib/fog/ibm/requests/storage/get_volume.rb +68 -0
  324. data/lib/fog/ibm/requests/storage/list_offerings.rb +72 -0
  325. data/lib/fog/ibm/requests/storage/list_volumes.rb +43 -0
  326. data/lib/fog/ibm/storage.rb +76 -0
  327. data/lib/fog/ibm.rb +2 -0
  328. data/lib/fog/linode/compute.rb +124 -0
  329. data/lib/fog/linode/core.rb +10 -0
  330. data/lib/fog/linode/dns.rb +87 -0
  331. data/lib/fog/linode/models/compute/data_center.rb +13 -0
  332. data/lib/fog/linode/models/compute/data_centers.rb +26 -0
  333. data/lib/fog/linode/models/compute/disk.rb +62 -0
  334. data/lib/fog/linode/models/compute/disks.rb +40 -0
  335. data/lib/fog/linode/models/compute/flavor.rb +23 -0
  336. data/lib/fog/linode/models/compute/flavors.rb +39 -0
  337. data/lib/fog/linode/models/compute/image.rb +16 -0
  338. data/lib/fog/linode/models/compute/images.rb +34 -0
  339. data/lib/fog/linode/models/compute/ip.rb +30 -0
  340. data/lib/fog/linode/models/compute/ips.rb +40 -0
  341. data/lib/fog/linode/models/compute/kernel.rb +15 -0
  342. data/lib/fog/linode/models/compute/kernels.rb +38 -0
  343. data/lib/fog/linode/models/compute/node_balancer_flavor.rb +13 -0
  344. data/lib/fog/linode/models/compute/node_balancer_flavors.rb +27 -0
  345. data/lib/fog/linode/models/compute/server.rb +101 -0
  346. data/lib/fog/linode/models/compute/servers.rb +32 -0
  347. data/lib/fog/linode/models/compute/stack_script.rb +13 -0
  348. data/lib/fog/linode/models/compute/stack_scripts.rb +32 -0
  349. data/lib/fog/linode/models/dns/record.rb +68 -0
  350. data/lib/fog/linode/models/dns/records.rb +33 -0
  351. data/lib/fog/linode/models/dns/zone.rb +79 -0
  352. data/lib/fog/linode/models/dns/zones.rb +25 -0
  353. data/lib/fog/linode/requests/compute/avail_datacenters.rb +44 -0
  354. data/lib/fog/linode/requests/compute/avail_distributions.rb +65 -0
  355. data/lib/fog/linode/requests/compute/avail_kernels.rb +62 -0
  356. data/lib/fog/linode/requests/compute/avail_linodeplans.rb +68 -0
  357. data/lib/fog/linode/requests/compute/avail_nodebalancers.rb +42 -0
  358. data/lib/fog/linode/requests/compute/avail_stackscripts.rb +56 -0
  359. data/lib/fog/linode/requests/compute/image_delete.rb +42 -0
  360. data/lib/fog/linode/requests/compute/image_list.rb +64 -0
  361. data/lib/fog/linode/requests/compute/linode_boot.rb +28 -0
  362. data/lib/fog/linode/requests/compute/linode_config_create.rb +34 -0
  363. data/lib/fog/linode/requests/compute/linode_config_delete.rb +32 -0
  364. data/lib/fog/linode/requests/compute/linode_config_list.rb +69 -0
  365. data/lib/fog/linode/requests/compute/linode_config_update.rb +33 -0
  366. data/lib/fog/linode/requests/compute/linode_create.rb +44 -0
  367. data/lib/fog/linode/requests/compute/linode_delete.rb +39 -0
  368. data/lib/fog/linode/requests/compute/linode_disk_create.rb +35 -0
  369. data/lib/fog/linode/requests/compute/linode_disk_createfromdistribution.rb +36 -0
  370. data/lib/fog/linode/requests/compute/linode_disk_createfromimage.rb +37 -0
  371. data/lib/fog/linode/requests/compute/linode_disk_createfromstackscript.rb +24 -0
  372. data/lib/fog/linode/requests/compute/linode_disk_delete.rb +33 -0
  373. data/lib/fog/linode/requests/compute/linode_disk_duplicate.rb +33 -0
  374. data/lib/fog/linode/requests/compute/linode_disk_imagize.rb +37 -0
  375. data/lib/fog/linode/requests/compute/linode_disk_list.rb +58 -0
  376. data/lib/fog/linode/requests/compute/linode_disk_resize.rb +36 -0
  377. data/lib/fog/linode/requests/compute/linode_disk_update.rb +34 -0
  378. data/lib/fog/linode/requests/compute/linode_ip_addprivate.rb +15 -0
  379. data/lib/fog/linode/requests/compute/linode_ip_list.rb +57 -0
  380. data/lib/fog/linode/requests/compute/linode_list.rb +81 -0
  381. data/lib/fog/linode/requests/compute/linode_reboot.rb +39 -0
  382. data/lib/fog/linode/requests/compute/linode_shutdown.rb +28 -0
  383. data/lib/fog/linode/requests/compute/linode_update.rb +28 -0
  384. data/lib/fog/linode/requests/compute/stackscript_list.rb +30 -0
  385. data/lib/fog/linode/requests/dns/domain_create.rb +41 -0
  386. data/lib/fog/linode/requests/dns/domain_delete.rb +25 -0
  387. data/lib/fog/linode/requests/dns/domain_list.rb +40 -0
  388. data/lib/fog/linode/requests/dns/domain_resource_create.rb +42 -0
  389. data/lib/fog/linode/requests/dns/domain_resource_delete.rb +26 -0
  390. data/lib/fog/linode/requests/dns/domain_resource_list.rb +41 -0
  391. data/lib/fog/linode/requests/dns/domain_resource_update.rb +43 -0
  392. data/lib/fog/linode/requests/dns/domain_update.rb +36 -0
  393. data/lib/fog/linode.rb +2 -0
  394. data/lib/fog/opennebula/README.md +113 -0
  395. data/lib/fog/opennebula/compute.rb +136 -0
  396. data/lib/fog/opennebula/core.rb +8 -0
  397. data/lib/fog/opennebula/models/compute/flavor.rb +175 -0
  398. data/lib/fog/opennebula/models/compute/flavors.rb +42 -0
  399. data/lib/fog/opennebula/models/compute/group.rb +22 -0
  400. data/lib/fog/opennebula/models/compute/groups.rb +34 -0
  401. data/lib/fog/opennebula/models/compute/interface.rb +33 -0
  402. data/lib/fog/opennebula/models/compute/interfaces.rb +12 -0
  403. data/lib/fog/opennebula/models/compute/network.rb +42 -0
  404. data/lib/fog/opennebula/models/compute/networks.rb +35 -0
  405. data/lib/fog/opennebula/models/compute/server.rb +100 -0
  406. data/lib/fog/opennebula/models/compute/servers.rb +30 -0
  407. data/lib/fog/opennebula/requests/compute/OpenNebulaVNC.rb +340 -0
  408. data/lib/fog/opennebula/requests/compute/get_vnc_console.rb +47 -0
  409. data/lib/fog/opennebula/requests/compute/image_pool.rb +26 -0
  410. data/lib/fog/opennebula/requests/compute/list_groups.rb +79 -0
  411. data/lib/fog/opennebula/requests/compute/list_networks.rb +72 -0
  412. data/lib/fog/opennebula/requests/compute/list_vms.rb +69 -0
  413. data/lib/fog/opennebula/requests/compute/template_pool.rb +136 -0
  414. data/lib/fog/opennebula/requests/compute/vm_allocate.rb +99 -0
  415. data/lib/fog/opennebula/requests/compute/vm_destroy.rb +31 -0
  416. data/lib/fog/opennebula/requests/compute/vm_disk_snapshot.rb +28 -0
  417. data/lib/fog/opennebula/requests/compute/vm_resume.rb +27 -0
  418. data/lib/fog/opennebula/requests/compute/vm_shutdown.rb +18 -0
  419. data/lib/fog/opennebula/requests/compute/vm_stop.rb +15 -0
  420. data/lib/fog/opennebula/requests/compute/vm_suspend.rb +31 -0
  421. data/lib/fog/opennebula.rb +1 -0
  422. data/lib/fog/openvz/README.md +188 -0
  423. data/lib/fog/openvz/compute.rb +168 -0
  424. data/lib/fog/openvz/core.rb +8 -0
  425. data/lib/fog/openvz/models/compute/server.rb +189 -0
  426. data/lib/fog/openvz/models/compute/servers.rb +24 -0
  427. data/lib/fog/openvz/requests/compute/compact_server.rb +17 -0
  428. data/lib/fog/openvz/requests/compute/convert_server.rb +17 -0
  429. data/lib/fog/openvz/requests/compute/create_server.rb +19 -0
  430. data/lib/fog/openvz/requests/compute/destroy_server.rb +17 -0
  431. data/lib/fog/openvz/requests/compute/exec2_server.rb +17 -0
  432. data/lib/fog/openvz/requests/compute/exec_server.rb +17 -0
  433. data/lib/fog/openvz/requests/compute/get_server_details.rb +17 -0
  434. data/lib/fog/openvz/requests/compute/list_servers.rb +17 -0
  435. data/lib/fog/openvz/requests/compute/mount_server.rb +17 -0
  436. data/lib/fog/openvz/requests/compute/quotainit_server.rb +17 -0
  437. data/lib/fog/openvz/requests/compute/quotaoff_server.rb +17 -0
  438. data/lib/fog/openvz/requests/compute/quotaon_server.rb +17 -0
  439. data/lib/fog/openvz/requests/compute/restart_server.rb +20 -0
  440. data/lib/fog/openvz/requests/compute/resume_server.rb +17 -0
  441. data/lib/fog/openvz/requests/compute/runscript_server.rb +17 -0
  442. data/lib/fog/openvz/requests/compute/set_server.rb +22 -0
  443. data/lib/fog/openvz/requests/compute/snapshot_delete_server.rb +17 -0
  444. data/lib/fog/openvz/requests/compute/snapshot_list_server.rb +17 -0
  445. data/lib/fog/openvz/requests/compute/snapshot_mount_server.rb +17 -0
  446. data/lib/fog/openvz/requests/compute/snapshot_server.rb +17 -0
  447. data/lib/fog/openvz/requests/compute/snapshot_switch_server.rb +17 -0
  448. data/lib/fog/openvz/requests/compute/snapshot_umount_server.rb +17 -0
  449. data/lib/fog/openvz/requests/compute/start_server.rb +20 -0
  450. data/lib/fog/openvz/requests/compute/status_server.rb +17 -0
  451. data/lib/fog/openvz/requests/compute/stop_server.rb +20 -0
  452. data/lib/fog/openvz/requests/compute/suspend_server.rb +17 -0
  453. data/lib/fog/openvz/requests/compute/umount_server.rb +17 -0
  454. data/lib/fog/openvz.rb +1 -0
  455. data/lib/fog/rage4/core.rb +10 -0
  456. data/lib/fog/rage4/dns.rb +72 -0
  457. data/lib/fog/rage4/models/dns/record.rb +73 -0
  458. data/lib/fog/rage4/models/dns/records.rb +38 -0
  459. data/lib/fog/rage4/models/dns/zone.rb +42 -0
  460. data/lib/fog/rage4/models/dns/zones.rb +30 -0
  461. data/lib/fog/rage4/requests/dns/bulk_update_records.rb +38 -0
  462. data/lib/fog/rage4/requests/dns/create_domain.rb +29 -0
  463. data/lib/fog/rage4/requests/dns/create_domain_vanity.rb +30 -0
  464. data/lib/fog/rage4/requests/dns/create_record.rb +59 -0
  465. data/lib/fog/rage4/requests/dns/create_reverse_domain_4.rb +28 -0
  466. data/lib/fog/rage4/requests/dns/delete_domain.rb +24 -0
  467. data/lib/fog/rage4/requests/dns/delete_record.rb +24 -0
  468. data/lib/fog/rage4/requests/dns/get_domain.rb +26 -0
  469. data/lib/fog/rage4/requests/dns/get_domain_by_name.rb +26 -0
  470. data/lib/fog/rage4/requests/dns/list_domains.rb +36 -0
  471. data/lib/fog/rage4/requests/dns/list_geo_regions.rb +25 -0
  472. data/lib/fog/rage4/requests/dns/list_record_types.rb +24 -0
  473. data/lib/fog/rage4/requests/dns/list_records.rb +28 -0
  474. data/lib/fog/rage4/requests/dns/set_record_failover.rb +25 -0
  475. data/lib/fog/rage4/requests/dns/show_current_usage.rb +21 -0
  476. data/lib/fog/rage4/requests/dns/show_global_usage.rb +21 -0
  477. data/lib/fog/rage4/requests/dns/update_domain.rb +39 -0
  478. data/lib/fog/rage4/requests/dns/update_record.rb +59 -0
  479. data/lib/fog/rage4.rb +1 -0
  480. data/lib/fog/vcloud/compute.rb +366 -0
  481. data/lib/fog/vcloud/core.rb +10 -0
  482. data/lib/fog/vcloud/examples/README.md +54 -0
  483. data/lib/fog/vcloud/examples/creating_a_connection.md +20 -0
  484. data/lib/fog/vcloud/examples/creating_a_vapp.md +17 -0
  485. data/lib/fog/vcloud/examples/get_network_information.md +10 -0
  486. data/lib/fog/vcloud/examples/get_vapp_information.md +10 -0
  487. data/lib/fog/vcloud/examples/more_on_vapps.md +23 -0
  488. data/lib/fog/vcloud/models/compute/catalog.rb +20 -0
  489. data/lib/fog/vcloud/models/compute/catalog_item.rb +36 -0
  490. data/lib/fog/vcloud/models/compute/catalog_items.rb +34 -0
  491. data/lib/fog/vcloud/models/compute/catalogs.rb +36 -0
  492. data/lib/fog/vcloud/models/compute/helpers/status.rb +37 -0
  493. data/lib/fog/vcloud/models/compute/ip.rb +40 -0
  494. data/lib/fog/vcloud/models/compute/ips.rb +31 -0
  495. data/lib/fog/vcloud/models/compute/network.rb +22 -0
  496. data/lib/fog/vcloud/models/compute/networks.rb +46 -0
  497. data/lib/fog/vcloud/models/compute/organization.rb +41 -0
  498. data/lib/fog/vcloud/models/compute/organizations.rb +29 -0
  499. data/lib/fog/vcloud/models/compute/server.rb +343 -0
  500. data/lib/fog/vcloud/models/compute/servers.rb +49 -0
  501. data/lib/fog/vcloud/models/compute/tag.rb +18 -0
  502. data/lib/fog/vcloud/models/compute/tags.rb +30 -0
  503. data/lib/fog/vcloud/models/compute/task.rb +19 -0
  504. data/lib/fog/vcloud/models/compute/tasks.rb +27 -0
  505. data/lib/fog/vcloud/models/compute/vapp.rb +53 -0
  506. data/lib/fog/vcloud/models/compute/vapps.rb +25 -0
  507. data/lib/fog/vcloud/models/compute/vdc.rb +39 -0
  508. data/lib/fog/vcloud/models/compute/vdcs.rb +33 -0
  509. data/lib/fog/vcloud/requests/compute/clone_vapp.rb +39 -0
  510. data/lib/fog/vcloud/requests/compute/configure_metadata.rb +34 -0
  511. data/lib/fog/vcloud/requests/compute/configure_network.rb +41 -0
  512. data/lib/fog/vcloud/requests/compute/configure_network_ip.rb +46 -0
  513. data/lib/fog/vcloud/requests/compute/configure_node.rb +36 -0
  514. data/lib/fog/vcloud/requests/compute/configure_org_network.rb +139 -0
  515. data/lib/fog/vcloud/requests/compute/configure_vapp.rb +111 -0
  516. data/lib/fog/vcloud/requests/compute/configure_vm.rb +106 -0
  517. data/lib/fog/vcloud/requests/compute/configure_vm_cpus.rb +35 -0
  518. data/lib/fog/vcloud/requests/compute/configure_vm_customization_script.rb +30 -0
  519. data/lib/fog/vcloud/requests/compute/configure_vm_disks.rb +93 -0
  520. data/lib/fog/vcloud/requests/compute/configure_vm_memory.rb +36 -0
  521. data/lib/fog/vcloud/requests/compute/configure_vm_name_description.rb +26 -0
  522. data/lib/fog/vcloud/requests/compute/configure_vm_network.rb +33 -0
  523. data/lib/fog/vcloud/requests/compute/configure_vm_password.rb +36 -0
  524. data/lib/fog/vcloud/requests/compute/delete_metadata.rb +9 -0
  525. data/lib/fog/vcloud/requests/compute/delete_node.rb +9 -0
  526. data/lib/fog/vcloud/requests/compute/delete_vapp.rb +9 -0
  527. data/lib/fog/vcloud/requests/compute/get_catalog.rb +9 -0
  528. data/lib/fog/vcloud/requests/compute/get_catalog_item.rb +9 -0
  529. data/lib/fog/vcloud/requests/compute/get_customization_options.rb +9 -0
  530. data/lib/fog/vcloud/requests/compute/get_metadata.rb +9 -0
  531. data/lib/fog/vcloud/requests/compute/get_network.rb +9 -0
  532. data/lib/fog/vcloud/requests/compute/get_network_extensions.rb +9 -0
  533. data/lib/fog/vcloud/requests/compute/get_network_ip.rb +13 -0
  534. data/lib/fog/vcloud/requests/compute/get_network_ips.rb +13 -0
  535. data/lib/fog/vcloud/requests/compute/get_organization.rb +9 -0
  536. data/lib/fog/vcloud/requests/compute/get_server.rb +9 -0
  537. data/lib/fog/vcloud/requests/compute/get_task.rb +9 -0
  538. data/lib/fog/vcloud/requests/compute/get_task_list.rb +9 -0
  539. data/lib/fog/vcloud/requests/compute/get_vapp.rb +9 -0
  540. data/lib/fog/vcloud/requests/compute/get_vapp_template.rb +9 -0
  541. data/lib/fog/vcloud/requests/compute/get_vdc.rb +9 -0
  542. data/lib/fog/vcloud/requests/compute/get_vm_disks.rb +15 -0
  543. data/lib/fog/vcloud/requests/compute/get_vm_memory.rb +15 -0
  544. data/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +87 -0
  545. data/lib/fog/vcloud/requests/compute/login.rb +23 -0
  546. data/lib/fog/vcloud/requests/compute/power_off.rb +9 -0
  547. data/lib/fog/vcloud/requests/compute/power_on.rb +9 -0
  548. data/lib/fog/vcloud/requests/compute/power_reset.rb +9 -0
  549. data/lib/fog/vcloud/requests/compute/power_shutdown.rb +9 -0
  550. data/lib/fog/vcloud/requests/compute/undeploy.rb +31 -0
  551. data/lib/fog/vcloud.rb +1 -0
  552. data/lib/fog/vcloud_director/README.md +959 -0
  553. data/lib/fog/vcloud_director/compute.rb +917 -0
  554. data/lib/fog/vcloud_director/core.rb +69 -0
  555. data/lib/fog/vcloud_director/generators/compute/compose_common.rb +122 -0
  556. data/lib/fog/vcloud_director/generators/compute/compose_vapp.rb +25 -0
  557. data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +25 -0
  558. data/lib/fog/vcloud_director/generators/compute/customization.rb +105 -0
  559. data/lib/fog/vcloud_director/generators/compute/disks.rb +186 -0
  560. data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +243 -0
  561. data/lib/fog/vcloud_director/generators/compute/instantiate_vapp_template_params.rb +30 -0
  562. data/lib/fog/vcloud_director/generators/compute/metadata.rb +104 -0
  563. data/lib/fog/vcloud_director/generators/compute/network_config_section.rb +68 -0
  564. data/lib/fog/vcloud_director/generators/compute/org_vdc_network.rb +88 -0
  565. data/lib/fog/vcloud_director/generators/compute/recompose_vapp.rb +34 -0
  566. data/lib/fog/vcloud_director/generators/compute/vapp.rb +28 -0
  567. data/lib/fog/vcloud_director/generators/compute/vm.rb +32 -0
  568. data/lib/fog/vcloud_director/generators/compute/vm_network.rb +119 -0
  569. data/lib/fog/vcloud_director/models/compute/catalog.rb +22 -0
  570. data/lib/fog/vcloud_director/models/compute/catalog_item.rb +30 -0
  571. data/lib/fog/vcloud_director/models/compute/catalog_items.rb +33 -0
  572. data/lib/fog/vcloud_director/models/compute/catalogs.rb +30 -0
  573. data/lib/fog/vcloud_director/models/compute/custom_field.rb +18 -0
  574. data/lib/fog/vcloud_director/models/compute/custom_fields.rb +67 -0
  575. data/lib/fog/vcloud_director/models/compute/disk.rb +48 -0
  576. data/lib/fog/vcloud_director/models/compute/disks.rb +44 -0
  577. data/lib/fog/vcloud_director/models/compute/media.rb +26 -0
  578. data/lib/fog/vcloud_director/models/compute/medias.rb +75 -0
  579. data/lib/fog/vcloud_director/models/compute/network.rb +25 -0
  580. data/lib/fog/vcloud_director/models/compute/networks.rb +62 -0
  581. data/lib/fog/vcloud_director/models/compute/organization.rb +37 -0
  582. data/lib/fog/vcloud_director/models/compute/organizations.rb +28 -0
  583. data/lib/fog/vcloud_director/models/compute/tag.rb +31 -0
  584. data/lib/fog/vcloud_director/models/compute/tags.rb +41 -0
  585. data/lib/fog/vcloud_director/models/compute/task.rb +55 -0
  586. data/lib/fog/vcloud_director/models/compute/tasks.rb +36 -0
  587. data/lib/fog/vcloud_director/models/compute/template_vm.rb +52 -0
  588. data/lib/fog/vcloud_director/models/compute/template_vms.rb +41 -0
  589. data/lib/fog/vcloud_director/models/compute/vapp.rb +144 -0
  590. data/lib/fog/vcloud_director/models/compute/vapp_template.rb +26 -0
  591. data/lib/fog/vcloud_director/models/compute/vapp_templates.rb +40 -0
  592. data/lib/fog/vcloud_director/models/compute/vapps.rb +40 -0
  593. data/lib/fog/vcloud_director/models/compute/vdc.rb +45 -0
  594. data/lib/fog/vcloud_director/models/compute/vdcs.rb +37 -0
  595. data/lib/fog/vcloud_director/models/compute/vm.rb +197 -0
  596. data/lib/fog/vcloud_director/models/compute/vm_customization.rb +40 -0
  597. data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +29 -0
  598. data/lib/fog/vcloud_director/models/compute/vm_network.rb +27 -0
  599. data/lib/fog/vcloud_director/models/compute/vm_networks.rb +19 -0
  600. data/lib/fog/vcloud_director/models/compute/vms.rb +46 -0
  601. data/lib/fog/vcloud_director/parsers/compute/disks.rb +53 -0
  602. data/lib/fog/vcloud_director/parsers/compute/metadata.rb +61 -0
  603. data/lib/fog/vcloud_director/parsers/compute/network.rb +104 -0
  604. data/lib/fog/vcloud_director/parsers/compute/vm.rb +86 -0
  605. data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +55 -0
  606. data/lib/fog/vcloud_director/parsers/compute/vm_network.rb +107 -0
  607. data/lib/fog/vcloud_director/parsers/compute/vm_parser_helper.rb +62 -0
  608. data/lib/fog/vcloud_director/parsers/compute/vms.rb +68 -0
  609. data/lib/fog/vcloud_director/parsers/compute/vms_by_metadata.rb +37 -0
  610. data/lib/fog/vcloud_director/query.rb +59 -0
  611. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item.rb +22 -0
  612. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb +25 -0
  613. data/lib/fog/vcloud_director/requests/compute/delete_disk.rb +60 -0
  614. data/lib/fog/vcloud_director/requests/compute/delete_disk_metadata_item_metadata.rb +25 -0
  615. data/lib/fog/vcloud_director/requests/compute/delete_logout.rb +18 -0
  616. data/lib/fog/vcloud_director/requests/compute/delete_media.rb +122 -0
  617. data/lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb +25 -0
  618. data/lib/fog/vcloud_director/requests/compute/delete_network.rb +62 -0
  619. data/lib/fog/vcloud_director/requests/compute/delete_shadow_vm.rb +30 -0
  620. data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +59 -0
  621. data/lib/fog/vcloud_director/requests/compute/delete_vapp_metadata_item_metadata.rb +30 -0
  622. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template.rb +27 -0
  623. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template_metadata_item_metadata.rb +26 -0
  624. data/lib/fog/vcloud_director/requests/compute/get_allocated_ip_addresses.rb +25 -0
  625. data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +63 -0
  626. data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +48 -0
  627. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata.rb +25 -0
  628. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata_item_metadata.rb +26 -0
  629. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata.rb +25 -0
  630. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata_item_metadata.rb +26 -0
  631. data/lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb +94 -0
  632. data/lib/fog/vcloud_director/requests/compute/get_control_access_params_catalog.rb +26 -0
  633. data/lib/fog/vcloud_director/requests/compute/get_control_access_params_vapp.rb +25 -0
  634. data/lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb +65 -0
  635. data/lib/fog/vcloud_director/requests/compute/get_current_session.rb +83 -0
  636. data/lib/fog/vcloud_director/requests/compute/get_disk.rb +123 -0
  637. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata.rb +25 -0
  638. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata_item_metadata.rb +26 -0
  639. data/lib/fog/vcloud_director/requests/compute/get_disk_owner.rb +70 -0
  640. data/lib/fog/vcloud_director/requests/compute/get_disks_from_query.rb +94 -0
  641. data/lib/fog/vcloud_director/requests/compute/get_disks_rasd_items_list.rb +90 -0
  642. data/lib/fog/vcloud_director/requests/compute/get_edge_gateway.rb +109 -0
  643. data/lib/fog/vcloud_director/requests/compute/get_entity.rb +38 -0
  644. data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +736 -0
  645. data/lib/fog/vcloud_director/requests/compute/get_groups_from_query.rb +95 -0
  646. data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp.rb +69 -0
  647. data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp_template.rb +25 -0
  648. data/lib/fog/vcloud_director/requests/compute/get_href.rb +21 -0
  649. data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp.rb +59 -0
  650. data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp_template.rb +25 -0
  651. data/lib/fog/vcloud_director/requests/compute/get_media.rb +111 -0
  652. data/lib/fog/vcloud_director/requests/compute/get_media_drives_rasd_items_list.rb +92 -0
  653. data/lib/fog/vcloud_director/requests/compute/get_media_metadata.rb +25 -0
  654. data/lib/fog/vcloud_director/requests/compute/get_media_metadata_item_metadata.rb +26 -0
  655. data/lib/fog/vcloud_director/requests/compute/get_media_owner.rb +70 -0
  656. data/lib/fog/vcloud_director/requests/compute/get_medias_from_query.rb +94 -0
  657. data/lib/fog/vcloud_director/requests/compute/get_memory_rasd_item.rb +64 -0
  658. data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +41 -0
  659. data/lib/fog/vcloud_director/requests/compute/get_network.rb +67 -0
  660. data/lib/fog/vcloud_director/requests/compute/get_network_cards_items_list.rb +70 -0
  661. data/lib/fog/vcloud_director/requests/compute/get_network_complete.rb +78 -0
  662. data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp.rb +61 -0
  663. data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp_template.rb +25 -0
  664. data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp.rb +68 -0
  665. data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp_template.rb +25 -0
  666. data/lib/fog/vcloud_director/requests/compute/get_network_metadata.rb +25 -0
  667. data/lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb +26 -0
  668. data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp.rb +25 -0
  669. data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp_template.rb +25 -0
  670. data/lib/fog/vcloud_director/requests/compute/get_operating_system_section.rb +59 -0
  671. data/lib/fog/vcloud_director/requests/compute/get_org_settings.rb +38 -0
  672. data/lib/fog/vcloud_director/requests/compute/get_org_vdc_gateways.rb +83 -0
  673. data/lib/fog/vcloud_director/requests/compute/get_organization.rb +100 -0
  674. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata.rb +25 -0
  675. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata_item_metadata.rb +28 -0
  676. data/lib/fog/vcloud_director/requests/compute/get_organizations.rb +52 -0
  677. data/lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb +95 -0
  678. data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp.rb +25 -0
  679. data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp_template.rb +26 -0
  680. data/lib/fog/vcloud_director/requests/compute/get_request.rb +19 -0
  681. data/lib/fog/vcloud_director/requests/compute/get_runtime_info_section_type.rb +57 -0
  682. data/lib/fog/vcloud_director/requests/compute/get_serial_ports_items_list.rb +25 -0
  683. data/lib/fog/vcloud_director/requests/compute/get_shadow_vm.rb +24 -0
  684. data/lib/fog/vcloud_director/requests/compute/get_snapshot_section.rb +55 -0
  685. data/lib/fog/vcloud_director/requests/compute/get_startup_section.rb +64 -0
  686. data/lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb +239 -0
  687. data/lib/fog/vcloud_director/requests/compute/get_supported_versions.rb +1159 -0
  688. data/lib/fog/vcloud_director/requests/compute/get_task.rb +168 -0
  689. data/lib/fog/vcloud_director/requests/compute/get_task_list.rb +130 -0
  690. data/lib/fog/vcloud_director/requests/compute/get_template_vm.rb +74 -0
  691. data/lib/fog/vcloud_director/requests/compute/get_template_vms.rb +41 -0
  692. data/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb +28 -0
  693. data/lib/fog/vcloud_director/requests/compute/get_users_from_query.rb +95 -0
  694. data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +172 -0
  695. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata.rb +84 -0
  696. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata_item_metadata.rb +26 -0
  697. data/lib/fog/vcloud_director/requests/compute/get_vapp_ovf_descriptor.rb +24 -0
  698. data/lib/fog/vcloud_director/requests/compute/get_vapp_owner.rb +58 -0
  699. data/lib/fog/vcloud_director/requests/compute/get_vapp_template.rb +25 -0
  700. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_customization_system_section.rb +25 -0
  701. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata.rb +25 -0
  702. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata_item_metadata.rb +27 -0
  703. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_ovf_descriptor.rb +24 -0
  704. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_owner.rb +25 -0
  705. data/lib/fog/vcloud_director/requests/compute/get_vapp_templates_from_query.rb +95 -0
  706. data/lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb +94 -0
  707. data/lib/fog/vcloud_director/requests/compute/get_vcloud.rb +76 -0
  708. data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +174 -0
  709. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata.rb +25 -0
  710. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata_item_metadata.rb +28 -0
  711. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class.rb +83 -0
  712. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata.rb +27 -0
  713. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb +25 -0
  714. data/lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb +94 -0
  715. data/lib/fog/vcloud_director/requests/compute/get_virtual_hardware_section.rb +29 -0
  716. data/lib/fog/vcloud_director/requests/compute/get_vm.rb +74 -0
  717. data/lib/fog/vcloud_director/requests/compute/get_vm_capabilities.rb +61 -0
  718. data/lib/fog/vcloud_director/requests/compute/get_vm_compliance_results.rb +24 -0
  719. data/lib/fog/vcloud_director/requests/compute/get_vm_customization.rb +31 -0
  720. data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +51 -0
  721. data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +56 -0
  722. data/lib/fog/vcloud_director/requests/compute/get_vm_pending_question.rb +34 -0
  723. data/lib/fog/vcloud_director/requests/compute/get_vms.rb +41 -0
  724. data/lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb +20 -0
  725. data/lib/fog/vcloud_director/requests/compute/get_vms_disk_attached_to.rb +39 -0
  726. data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +150 -0
  727. data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +173 -0
  728. data/lib/fog/vcloud_director/requests/compute/post_acquire_ticket.rb +27 -0
  729. data/lib/fog/vcloud_director/requests/compute/post_answer_vm_pending_question.rb +36 -0
  730. data/lib/fog/vcloud_director/requests/compute/post_attach_disk.rb +51 -0
  731. data/lib/fog/vcloud_director/requests/compute/post_cancel_task.rb +43 -0
  732. data/lib/fog/vcloud_director/requests/compute/post_capture_vapp.rb +70 -0
  733. data/lib/fog/vcloud_director/requests/compute/post_check_vm_compliance.rb +28 -0
  734. data/lib/fog/vcloud_director/requests/compute/post_clone_media.rb +102 -0
  735. data/lib/fog/vcloud_director/requests/compute/post_clone_vapp.rb +62 -0
  736. data/lib/fog/vcloud_director/requests/compute/post_clone_vapp_template.rb +52 -0
  737. data/lib/fog/vcloud_director/requests/compute/post_compose_vapp.rb +45 -0
  738. data/lib/fog/vcloud_director/requests/compute/post_configure_edge_gateway_services.rb +73 -0
  739. data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp.rb +27 -0
  740. data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp_template.rb +27 -0
  741. data/lib/fog/vcloud_director/requests/compute/post_create_catalog_item.rb +56 -0
  742. data/lib/fog/vcloud_director/requests/compute/post_create_org_vdc_network.rb +171 -0
  743. data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +21 -0
  744. data/lib/fog/vcloud_director/requests/compute/post_deploy_vapp.rb +51 -0
  745. data/lib/fog/vcloud_director/requests/compute/post_detach_disk.rb +39 -0
  746. data/lib/fog/vcloud_director/requests/compute/post_disable_nested_hv.rb +27 -0
  747. data/lib/fog/vcloud_director/requests/compute/post_disable_vapp_template_download.rb +24 -0
  748. data/lib/fog/vcloud_director/requests/compute/post_discard_vapp_state.rb +30 -0
  749. data/lib/fog/vcloud_director/requests/compute/post_eject_cd_rom.rb +39 -0
  750. data/lib/fog/vcloud_director/requests/compute/post_enable_nested_hv.rb +27 -0
  751. data/lib/fog/vcloud_director/requests/compute/post_enable_vapp_template_download.rb +24 -0
  752. data/lib/fog/vcloud_director/requests/compute/post_enter_maintenance_mode.rb +26 -0
  753. data/lib/fog/vcloud_director/requests/compute/post_exit_maintenance_mode.rb +22 -0
  754. data/lib/fog/vcloud_director/requests/compute/post_insert_cd_rom.rb +39 -0
  755. data/lib/fog/vcloud_director/requests/compute/post_install_vmware_tools.rb +27 -0
  756. data/lib/fog/vcloud_director/requests/compute/post_instantiate_vapp_template.rb +196 -0
  757. data/lib/fog/vcloud_director/requests/compute/post_login_session.rb +39 -0
  758. data/lib/fog/vcloud_director/requests/compute/post_power_off_vapp.rb +36 -0
  759. data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +71 -0
  760. data/lib/fog/vcloud_director/requests/compute/post_reboot_vapp.rb +33 -0
  761. data/lib/fog/vcloud_director/requests/compute/post_recompose_vapp.rb +21 -0
  762. data/lib/fog/vcloud_director/requests/compute/post_reconfigure_vm.rb +118 -0
  763. data/lib/fog/vcloud_director/requests/compute/post_remove_all_snapshots.rb +27 -0
  764. data/lib/fog/vcloud_director/requests/compute/post_reset_vapp.rb +33 -0
  765. data/lib/fog/vcloud_director/requests/compute/post_revert_snapshot.rb +27 -0
  766. data/lib/fog/vcloud_director/requests/compute/post_shutdown_vapp.rb +33 -0
  767. data/lib/fog/vcloud_director/requests/compute/post_suspend_vapp.rb +33 -0
  768. data/lib/fog/vcloud_director/requests/compute/post_undeploy_vapp.rb +66 -0
  769. data/lib/fog/vcloud_director/requests/compute/post_update_catalog_item_metadata.rb +52 -0
  770. data/lib/fog/vcloud_director/requests/compute/post_update_disk_metadata.rb +52 -0
  771. data/lib/fog/vcloud_director/requests/compute/post_update_media_metadata.rb +52 -0
  772. data/lib/fog/vcloud_director/requests/compute/post_update_vapp_metadata.rb +86 -0
  773. data/lib/fog/vcloud_director/requests/compute/post_update_vapp_template_metadata.rb +52 -0
  774. data/lib/fog/vcloud_director/requests/compute/post_upgrade_hw_version.rb +28 -0
  775. data/lib/fog/vcloud_director/requests/compute/post_upload_disk.rb +133 -0
  776. data/lib/fog/vcloud_director/requests/compute/post_upload_media.rb +120 -0
  777. data/lib/fog/vcloud_director/requests/compute/post_upload_vapp_template.rb +46 -0
  778. data/lib/fog/vcloud_director/requests/compute/put_catalog_item_metadata_item_metadata.rb +50 -0
  779. data/lib/fog/vcloud_director/requests/compute/put_config_network_section_vapp.rb +26 -0
  780. data/lib/fog/vcloud_director/requests/compute/put_cpu.rb +88 -0
  781. data/lib/fog/vcloud_director/requests/compute/put_disk_metadata_item_metadata.rb +46 -0
  782. data/lib/fog/vcloud_director/requests/compute/put_disks.rb +39 -0
  783. data/lib/fog/vcloud_director/requests/compute/put_guest_customization_section_vapp.rb +141 -0
  784. data/lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb +50 -0
  785. data/lib/fog/vcloud_director/requests/compute/put_memory.rb +89 -0
  786. data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +26 -0
  787. data/lib/fog/vcloud_director/requests/compute/put_network.rb +162 -0
  788. data/lib/fog/vcloud_director/requests/compute/put_network_connection_system_section_vapp.rb +152 -0
  789. data/lib/fog/vcloud_director/requests/compute/put_product_sections.rb +46 -0
  790. data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +85 -0
  791. data/lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb +36 -0
  792. data/lib/fog/vcloud_director/requests/compute/put_vapp_template_metadata_item_metadata.rb +50 -0
  793. data/lib/fog/vcloud_director/requests/compute/put_vm.rb +72 -0
  794. data/lib/fog/vcloud_director/requests/compute/put_vm_capabilities.rb +44 -0
  795. data/lib/fog/vcloud_director.rb +1 -0
  796. data/lib/fog/version.rb +3 -0
  797. data/lib/fog.rb +58 -13
  798. data/lib/tasks/changelog_task.rb +232 -0
  799. data/lib/tasks/github_release_task.rb +66 -0
  800. data/spec/fog/account_spec.rb +14 -0
  801. data/spec/fog/billing_spec.rb +14 -0
  802. data/spec/fog/bin/atmos_spec.rb +23 -0
  803. data/spec/fog/bin/aws_spec.rb +86 -0
  804. data/spec/fog/bin/baremetalcloud_spec.rb +23 -0
  805. data/spec/fog/bin/brightbox_spec.rb +30 -0
  806. data/spec/fog/bin/clodo_spec.rb +9 -0
  807. data/spec/fog/bin/cloudsigma_spec.rb +9 -0
  808. data/spec/fog/bin/dnsimple_spec.rb +9 -0
  809. data/spec/fog/bin/dnsmadeeasy_spec.rb +9 -0
  810. data/spec/fog/bin/dreamhost_spec.rb +9 -0
  811. data/spec/fog/bin/dynect_spec.rb +9 -0
  812. data/spec/fog/bin/ecloud_spec.rb +10 -0
  813. data/spec/fog/bin/fogdocker_spec.rb +10 -0
  814. data/spec/fog/bin/glesys_spec.rb +10 -0
  815. data/spec/fog/bin/gogrid_spec.rb +10 -0
  816. data/spec/fog/bin/google_spec.rb +10 -0
  817. data/spec/fog/bin/ibm_spec.rb +10 -0
  818. data/spec/fog/bin/linode_spec.rb +10 -0
  819. data/spec/fog/bin/local_spec.rb +10 -0
  820. data/spec/fog/bin/opennebula_spec.rb +10 -0
  821. data/spec/fog/bin/openstack_spec.rb +10 -0
  822. data/spec/fog/bin/openvz_spec.rb +10 -0
  823. data/spec/fog/bin/powerdns_spec.rb +9 -0
  824. data/spec/fog/bin/profitbricks_spec.rb +10 -0
  825. data/spec/fog/bin/rackspace_spec.rb +10 -0
  826. data/spec/fog/bin/rage4_spec.rb +10 -0
  827. data/spec/fog/bin/riakcs_spec.rb +10 -0
  828. data/spec/fog/bin/sakuracloud_spec.rb +10 -0
  829. data/spec/fog/bin/serverlove_spec.rb +10 -0
  830. data/spec/fog/bin/softlayer_spec.rb +10 -0
  831. data/spec/fog/bin/stormondemand_spec.rb +10 -0
  832. data/spec/fog/bin/vcloud_spec.rb +10 -0
  833. data/spec/fog/bin/vclouddirector_spec.rb +10 -0
  834. data/spec/fog/bin/vmfusion_spec.rb +10 -0
  835. data/spec/fog/bin/voxel_spec.rb +10 -0
  836. data/spec/fog/bin/vsphere_spec.rb +10 -0
  837. data/spec/fog/bin/xenserver_spec.rb +10 -0
  838. data/spec/fog/bin_spec.rb +149 -0
  839. data/spec/fog/cdn_spec.rb +14 -0
  840. data/spec/fog/identity_spec.rb +14 -0
  841. data/spec/fog/image_spec.rb +14 -0
  842. data/spec/fog/metering_spec.rb +14 -0
  843. data/spec/fog/monitoring_spec.rb +14 -0
  844. data/spec/fog/network_spec.rb +14 -0
  845. data/spec/fog/orchestration_spec.rb +14 -0
  846. data/spec/fog/storage_spec.rb +14 -0
  847. data/spec/fog/support_spec.rb +14 -0
  848. data/spec/fog/volume_spec.rb +14 -0
  849. data/spec/fog/vpn_spec.rb +14 -0
  850. data/spec/fog/xml/connection_spec.rb +33 -0
  851. data/spec/helpers/bin.rb +34 -0
  852. data/spec/spec_helper.rb +12 -9
  853. data/spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb +68 -0
  854. data/spec/vcloud_director/requests/compute/instantiate_vapp_template_spec.rb +78 -0
  855. data/spec/vcloud_director/spec_helper.rb +11 -0
  856. data/tests/clodo/requests/compute/image_tests.rb +36 -0
  857. data/tests/clodo/requests/compute/server_tests.rb +152 -0
  858. data/tests/cloudsigma/models/server_tests.rb +72 -0
  859. data/tests/cloudsigma/models/servers_tests.rb +9 -0
  860. data/tests/cloudsigma/models/snapshot_tests.rb +25 -0
  861. data/tests/cloudsigma/models/snapshots_tests.rb +16 -0
  862. data/tests/cloudsigma/models/volume_tests.rb +21 -0
  863. data/tests/cloudsigma/models/volumes_tests.rb +9 -0
  864. data/tests/cloudsigma/requests/server_tests.rb +77 -0
  865. data/tests/cloudsigma/requests/snapshots_tests.rb +84 -0
  866. data/tests/cloudsigma/requests/volumes_tests.rb +56 -0
  867. data/tests/compute/helper.rb +64 -28
  868. data/tests/compute/models/flavors_tests.rb +5 -3
  869. data/tests/compute/models/server_tests.rb +24 -5
  870. data/tests/compute/models/servers_tests.rb +4 -3
  871. data/tests/core/attribute_tests.rb +39 -1
  872. data/tests/core/credential_tests.rb +93 -0
  873. data/tests/core/current_machine_tests.rb +32 -0
  874. data/tests/core/mocking_tests.rb +75 -0
  875. data/tests/core/parser_tests.rb +92 -0
  876. data/tests/core/service_tests.rb +26 -0
  877. data/tests/core/timeout_tests.rb +10 -0
  878. data/tests/core/uuid_tests.rb +10 -0
  879. data/tests/core/wait_for_tests.rb +13 -0
  880. data/tests/dns/helper.rb +28 -10
  881. data/tests/dns/models/record_tests.rb +29 -9
  882. data/tests/dns/models/records_tests.rb +12 -7
  883. data/tests/dns/models/zone_tests.rb +9 -4
  884. data/tests/dns/models/zones_tests.rb +9 -4
  885. data/tests/dnsmadeeasy/requests/dns/dns_tests.rb +138 -0
  886. data/tests/dreamhost/README.md +56 -0
  887. data/tests/dreamhost/dns_tests.rb +19 -0
  888. data/tests/dreamhost/helper.rb +19 -0
  889. data/tests/dreamhost/models/dns/record_tests.rb +72 -0
  890. data/tests/dreamhost/models/dns/records_tests.rb +28 -0
  891. data/tests/dreamhost/models/dns/zone_tests.rb +61 -0
  892. data/tests/dreamhost/models/dns/zones_tests.rb +28 -0
  893. data/tests/dreamhost/requests/dns/create_record_tests.rb +39 -0
  894. data/tests/dreamhost/requests/dns/delete_record_tests.rb +26 -0
  895. data/tests/dreamhost/requests/dns/list_records_tests.rb +31 -0
  896. data/tests/fogdocker/compute_tests.rb +17 -0
  897. data/tests/fogdocker/models/compute/image_tests.rb +31 -0
  898. data/tests/fogdocker/models/compute/images_tests.rb +9 -0
  899. data/tests/fogdocker/models/compute/server_tests.rb +57 -0
  900. data/tests/fogdocker/models/compute/servers_tests.rb +14 -0
  901. data/tests/fogdocker/requests/compute/api_version_tests.rb +10 -0
  902. data/tests/fogdocker/requests/compute/container_action_tests.rb +35 -0
  903. data/tests/fogdocker/requests/compute/container_commit_tests.rb +18 -0
  904. data/tests/fogdocker/requests/compute/container_create_tests.rb +21 -0
  905. data/tests/fogdocker/requests/compute/container_delete_tests.rb +16 -0
  906. data/tests/fogdocker/requests/compute/image_create_tests.rb +21 -0
  907. data/tests/fogdocker/requests/compute/image_delete_tests.rb +20 -0
  908. data/tests/fogdocker/requests/compute/image_search_tests.rb +11 -0
  909. data/tests/glesys/requests/compute/helper.rb +326 -0
  910. data/tests/glesys/requests/compute/ip_tests.rb +66 -0
  911. data/tests/glesys/requests/compute/server_tests.rb +142 -0
  912. data/tests/glesys/requests/compute/ssh_key_tests.rb +47 -0
  913. data/tests/glesys/requests/compute/template_tests.rb +12 -0
  914. data/tests/helper.rb +42 -6
  915. data/tests/helpers/collection_helper.rb +44 -4
  916. data/tests/helpers/compute/flavors_helper.rb +0 -2
  917. data/tests/helpers/compute/server_helper.rb +8 -2
  918. data/tests/helpers/compute/servers_helper.rb +1 -2
  919. data/tests/helpers/formats_helper.rb +71 -45
  920. data/tests/helpers/formats_helper_tests.rb +91 -24
  921. data/tests/helpers/mock_helper.rb +60 -14
  922. data/tests/helpers/model_helper.rb +11 -8
  923. data/tests/helpers/responds_to_helper.rb +2 -4
  924. data/tests/helpers/schema_validator_tests.rb +107 -0
  925. data/tests/helpers/succeeds_helper.rb +2 -5
  926. data/tests/ibm/models/compute/image_tests.rb +25 -0
  927. data/tests/ibm/models/compute/key_tests.rb +23 -0
  928. data/tests/ibm/models/compute/keys_tests.rb +35 -0
  929. data/tests/ibm/models/compute/locations_tests.rb +18 -0
  930. data/tests/ibm/models/compute/server_tests.rb +88 -0
  931. data/tests/ibm/models/compute/servers_tests.rb +37 -0
  932. data/tests/ibm/models/storage/volume_tests.rb +60 -0
  933. data/tests/ibm/requests/compute/address_tests.rb +44 -0
  934. data/tests/ibm/requests/compute/image_tests.rb +110 -0
  935. data/tests/ibm/requests/compute/instance_tests.rb +102 -0
  936. data/tests/ibm/requests/compute/key_tests.rb +50 -0
  937. data/tests/ibm/requests/compute/location_tests.rb +28 -0
  938. data/tests/ibm/requests/compute/vlan_tests.rb +21 -0
  939. data/tests/ibm/requests/storage/volume_tests.rb +100 -0
  940. data/tests/linode/requests/compute/datacenter_tests.rb +20 -0
  941. data/tests/linode/requests/compute/distribution_tests.rb +32 -0
  942. data/tests/linode/requests/compute/helper.rb +10 -0
  943. data/tests/linode/requests/compute/kernel_tests.rb +19 -0
  944. data/tests/linode/requests/compute/linode_tests.rb +216 -0
  945. data/tests/linode/requests/compute/linodeplans_tests.rb +44 -0
  946. data/tests/linode/requests/compute/nodebalancers_tests.rb +20 -0
  947. data/tests/linode/requests/compute/stackscripts_tests.rb +36 -0
  948. data/tests/linode/requests/dns/dns_tests.rb +250 -0
  949. data/tests/opennebula/compute_tests.rb +19 -0
  950. data/tests/opennebula/models/compute/flavor_tests.rb +40 -0
  951. data/tests/opennebula/models/compute/flavors_tests.rb +19 -0
  952. data/tests/opennebula/models/compute/group_tests.rb +30 -0
  953. data/tests/opennebula/models/compute/groups_tests.rb +19 -0
  954. data/tests/opennebula/models/compute/network_tests.rb +30 -0
  955. data/tests/opennebula/models/compute/networks_tests.rb +19 -0
  956. data/tests/opennebula/requests/compute/vm_allocate_tests.rb +80 -0
  957. data/tests/opennebula/requests/compute/vm_disk_snapshot_test.rb +49 -0
  958. data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +55 -0
  959. data/tests/openvz/helper.rb +47 -0
  960. data/tests/openvz/models/compute/server_tests.rb +55 -0
  961. data/tests/openvz/models/compute/servers_tests.rb +35 -0
  962. data/tests/rage4/requests/dns/dns_tests.rb +282 -0
  963. data/tests/storage/helper.rb +5 -8
  964. data/tests/storage/models/directories_tests.rb +10 -6
  965. data/tests/storage/models/directory_test.rb +16 -12
  966. data/tests/storage/models/file_tests.rb +9 -9
  967. data/tests/storage/models/files_tests.rb +7 -7
  968. data/tests/vcloud/data/api_+_admin_+_network_+_2 +110 -0
  969. data/tests/vcloud/data/api_+_network_+_1 +44 -0
  970. data/tests/vcloud/data/api_+_org_+_ +5 -0
  971. data/tests/vcloud/data/api_+_org_+_1 +17 -0
  972. data/tests/vcloud/data/api_+_sessions +8 -0
  973. data/tests/vcloud/data/api_+_v1.0_+_admin_+_network_+_2 +110 -0
  974. data/tests/vcloud/data/api_+_v1.0_+_login +5 -0
  975. data/tests/vcloud/data/api_+_v1.0_+_network_+_1 +44 -0
  976. data/tests/vcloud/data/api_+_v1.0_+_network_+_2 +31 -0
  977. data/tests/vcloud/data/api_+_v1.0_+_org_+_1 +17 -0
  978. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vapp-1 +369 -0
  979. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1 +139 -0
  980. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2 +155 -0
  981. data/tests/vcloud/data/api_+_v1.0_+_vdc_+_1 +61 -0
  982. data/tests/vcloud/data/api_+_vApp_+_vapp-1 +369 -0
  983. data/tests/vcloud/data/api_+_vApp_+_vm-2 +155 -0
  984. data/tests/vcloud/data/api_+_vdc_+_1 +62 -0
  985. data/tests/vcloud/models/compute/helper.rb +22 -0
  986. data/tests/vcloud/models/compute/network_tests.rb +67 -0
  987. data/tests/vcloud/models/compute/networks_tests.rb +61 -0
  988. data/tests/vcloud/models/compute/organization_tests.rb +20 -0
  989. data/tests/vcloud/models/compute/organizations_tests.rb +16 -0
  990. data/tests/vcloud/models/compute/server_tests.rb +142 -0
  991. data/tests/vcloud/models/compute/servers_tests.rb +23 -0
  992. data/tests/vcloud/models/compute/vapp_tests.rb +32 -0
  993. data/tests/vcloud/models/compute/vapps_tests.rb +19 -0
  994. data/tests/vcloud/models/compute/vdc_tests.rb +48 -0
  995. data/tests/vcloud/models/compute/vdcs_tests.rb +24 -0
  996. data/tests/vcloud/requests/compute/disk_configure_tests.rb +111 -0
  997. data/tests/vcloud_director/ensure_list_tests.rb +84 -0
  998. data/tests/vcloud_director/fixtures/test.iso +1 -0
  999. data/tests/vcloud_director/fixtures/vapp.xml +532 -0
  1000. data/tests/vcloud_director/fixtures/vm.xml +213 -0
  1001. data/tests/vcloud_director/generators/compute/compose_vapp_tests.rb +108 -0
  1002. data/tests/vcloud_director/models/compute/catalog_items_tests.rb +42 -0
  1003. data/tests/vcloud_director/models/compute/catalogs_tests.rb +40 -0
  1004. data/tests/vcloud_director/models/compute/helper.rb +60 -0
  1005. data/tests/vcloud_director/models/compute/media_tests.rb +58 -0
  1006. data/tests/vcloud_director/models/compute/network_tests.rb +108 -0
  1007. data/tests/vcloud_director/models/compute/organizations_tests.rb +18 -0
  1008. data/tests/vcloud_director/models/compute/tasks_tests.rb +56 -0
  1009. data/tests/vcloud_director/models/compute/vapp_life_cycle_tests.rb +93 -0
  1010. data/tests/vcloud_director/models/compute/vapp_template_tests.rb +29 -0
  1011. data/tests/vcloud_director/models/compute/vapp_tests.rb +61 -0
  1012. data/tests/vcloud_director/models/compute/vdcs_tests.rb +54 -0
  1013. data/tests/vcloud_director/models/compute/vms_tests.rb +101 -0
  1014. data/tests/vcloud_director/requests/compute/admin_tests.rb +16 -0
  1015. data/tests/vcloud_director/requests/compute/catalog_tests.rb +42 -0
  1016. data/tests/vcloud_director/requests/compute/disk_tests.rb +178 -0
  1017. data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +217 -0
  1018. data/tests/vcloud_director/requests/compute/groups_tests.rb +18 -0
  1019. data/tests/vcloud_director/requests/compute/helper.rb +32 -0
  1020. data/tests/vcloud_director/requests/compute/media_tests.rb +195 -0
  1021. data/tests/vcloud_director/requests/compute/network_tests.rb +186 -0
  1022. data/tests/vcloud_director/requests/compute/organization_tests.rb +37 -0
  1023. data/tests/vcloud_director/requests/compute/ovf_descriptor_tests.rb +36 -0
  1024. data/tests/vcloud_director/requests/compute/query_tests.rb +99 -0
  1025. data/tests/vcloud_director/requests/compute/schema_helper.rb +663 -0
  1026. data/tests/vcloud_director/requests/compute/session_tests.rb +14 -0
  1027. data/tests/vcloud_director/requests/compute/supported_systems_tests.rb +11 -0
  1028. data/tests/vcloud_director/requests/compute/task_tests.rb +35 -0
  1029. data/tests/vcloud_director/requests/compute/users_tests.rb +18 -0
  1030. data/tests/vcloud_director/requests/compute/vapp_tests.rb +123 -0
  1031. data/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb +27 -0
  1032. data/tests/vcloud_director/requests/compute/vdc_tests.rb +36 -0
  1033. data/tests/vcloud_director/requests/compute/versions_tests.rb +13 -0
  1034. data/tests/vcloud_director/requests/compute/vm_tests.rb +185 -0
  1035. data/tests/watchr.rb +22 -0
  1036. metadata +1752 -1372
  1037. data/README.rdoc +0 -163
  1038. data/changelog.txt +0 -148
  1039. data/examples/dns_tests.rb +0 -78
  1040. data/examples/storage_tests.rb +0 -105
  1041. data/lib/fog/aws/cloud_formation.rb +0 -124
  1042. data/lib/fog/aws/elb.rb +0 -111
  1043. data/lib/fog/aws/iam.rb +0 -122
  1044. data/lib/fog/aws/parsers/cloud_formation/basic.rb +0 -12
  1045. data/lib/fog/aws/parsers/cloud_formation/create_stack.rb +0 -19
  1046. data/lib/fog/aws/parsers/cloud_formation/describe_stack_events.rb +0 -31
  1047. data/lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb +0 -31
  1048. data/lib/fog/aws/parsers/cloud_formation/describe_stacks.rb +0 -72
  1049. data/lib/fog/aws/parsers/cloud_formation/get_template.rb +0 -19
  1050. data/lib/fog/aws/parsers/cloud_formation/validate_template.rb +0 -52
  1051. data/lib/fog/aws/parsers/elb/create_load_balancer.rb +0 -26
  1052. data/lib/fog/aws/parsers/elb/delete_load_balancer.rb +0 -24
  1053. data/lib/fog/aws/parsers/elb/deregister_instances_from_load_balancer.rb +0 -26
  1054. data/lib/fog/aws/parsers/elb/describe_instance_health.rb +0 -30
  1055. data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +0 -101
  1056. data/lib/fog/aws/parsers/elb/disable_availability_zones_for_load_balancer.rb +0 -26
  1057. data/lib/fog/aws/parsers/elb/enable_availability_zones_for_load_balancer.rb +0 -26
  1058. data/lib/fog/aws/parsers/elb/register_instances_with_load_balancer.rb +0 -26
  1059. data/lib/fog/aws/parsers/iam/basic.rb +0 -19
  1060. data/lib/fog/aws/parsers/iam/create_access_key.rb +0 -26
  1061. data/lib/fog/aws/parsers/iam/create_group.rb +0 -26
  1062. data/lib/fog/aws/parsers/iam/create_user.rb +0 -26
  1063. data/lib/fog/aws/parsers/iam/get_group.rb +0 -55
  1064. data/lib/fog/aws/parsers/iam/get_user.rb +0 -27
  1065. data/lib/fog/aws/parsers/iam/get_user_policy.rb +0 -27
  1066. data/lib/fog/aws/parsers/iam/list_access_keys.rb +0 -32
  1067. data/lib/fog/aws/parsers/iam/list_groups.rb +0 -32
  1068. data/lib/fog/aws/parsers/iam/list_groups_for_user.rb +0 -32
  1069. data/lib/fog/aws/parsers/iam/list_policies.rb +0 -28
  1070. data/lib/fog/aws/parsers/iam/list_signing_certificates.rb +0 -32
  1071. data/lib/fog/aws/parsers/iam/list_users.rb +0 -32
  1072. data/lib/fog/aws/parsers/iam/login_profile.rb +0 -27
  1073. data/lib/fog/aws/parsers/iam/update_group.rb +0 -26
  1074. data/lib/fog/aws/parsers/iam/update_user.rb +0 -27
  1075. data/lib/fog/aws/parsers/iam/upload_server_certificate.rb +0 -26
  1076. data/lib/fog/aws/parsers/iam/upload_signing_certificate.rb +0 -26
  1077. data/lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb +0 -38
  1078. data/lib/fog/aws/parsers/rds/create_db_instance.rb +0 -34
  1079. data/lib/fog/aws/parsers/rds/create_db_instance_read_replica.rb +0 -34
  1080. data/lib/fog/aws/parsers/rds/create_db_parameter_group.rb +0 -35
  1081. data/lib/fog/aws/parsers/rds/create_db_security_group.rb +0 -38
  1082. data/lib/fog/aws/parsers/rds/create_db_snapshot.rb +0 -35
  1083. data/lib/fog/aws/parsers/rds/db_parser.rb +0 -123
  1084. data/lib/fog/aws/parsers/rds/delete_db_instance.rb +0 -35
  1085. data/lib/fog/aws/parsers/rds/delete_db_parameter_group.rb +0 -27
  1086. data/lib/fog/aws/parsers/rds/delete_db_security_group.rb +0 -33
  1087. data/lib/fog/aws/parsers/rds/delete_db_snapshot.rb +0 -34
  1088. data/lib/fog/aws/parsers/rds/describe_db_instances.rb +0 -36
  1089. data/lib/fog/aws/parsers/rds/describe_db_parameter_groups.rb +0 -38
  1090. data/lib/fog/aws/parsers/rds/describe_db_parameters.rb +0 -44
  1091. data/lib/fog/aws/parsers/rds/describe_db_security_groups.rb +0 -39
  1092. data/lib/fog/aws/parsers/rds/describe_db_snapshots.rb +0 -39
  1093. data/lib/fog/aws/parsers/rds/modify_db_instance.rb +0 -34
  1094. data/lib/fog/aws/parsers/rds/modify_db_parameter_group.rb +0 -28
  1095. data/lib/fog/aws/parsers/rds/reboot_db_instance.rb +0 -35
  1096. data/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb +0 -34
  1097. data/lib/fog/aws/parsers/rds/restore_db_instance_to_point_in_time.rb +0 -35
  1098. data/lib/fog/aws/parsers/rds/revoke_db_security_group_ingress.rb +0 -39
  1099. data/lib/fog/aws/parsers/rds/security_group_parser.rb +0 -39
  1100. data/lib/fog/aws/parsers/rds/snapshot_parser.rb +0 -40
  1101. data/lib/fog/aws/parsers/ses/delete_verified_email_address.rb +0 -24
  1102. data/lib/fog/aws/parsers/ses/get_send_quota.rb +0 -26
  1103. data/lib/fog/aws/parsers/ses/get_send_statistics.rb +0 -29
  1104. data/lib/fog/aws/parsers/ses/list_verified_email_addresses.rb +0 -25
  1105. data/lib/fog/aws/parsers/ses/send_email.rb +0 -26
  1106. data/lib/fog/aws/parsers/ses/send_raw_email.rb +0 -26
  1107. data/lib/fog/aws/parsers/ses/verify_email_address.rb +0 -24
  1108. data/lib/fog/aws/parsers/simpledb/basic.rb +0 -31
  1109. data/lib/fog/aws/parsers/simpledb/domain_metadata.rb +0 -32
  1110. data/lib/fog/aws/parsers/simpledb/get_attributes.rb +0 -36
  1111. data/lib/fog/aws/parsers/simpledb/list_domains.rb +0 -30
  1112. data/lib/fog/aws/parsers/simpledb/select.rb +0 -41
  1113. data/lib/fog/aws/rds/models/parameter.rb +0 -21
  1114. data/lib/fog/aws/rds/models/parameter_group.rb +0 -36
  1115. data/lib/fog/aws/rds/models/parameter_groups.rb +0 -27
  1116. data/lib/fog/aws/rds/models/parameters.rb +0 -37
  1117. data/lib/fog/aws/rds/models/security_group.rb +0 -73
  1118. data/lib/fog/aws/rds/models/security_groups.rb +0 -43
  1119. data/lib/fog/aws/rds/models/server.rb +0 -105
  1120. data/lib/fog/aws/rds/models/servers.rb +0 -27
  1121. data/lib/fog/aws/rds/models/snapshot.rb +0 -49
  1122. data/lib/fog/aws/rds/models/snapshots.rb +0 -45
  1123. data/lib/fog/aws/rds.rb +0 -161
  1124. data/lib/fog/aws/requests/cloud_formation/create_stack.rb +0 -71
  1125. data/lib/fog/aws/requests/cloud_formation/delete_stack.rb +0 -30
  1126. data/lib/fog/aws/requests/cloud_formation/describe_stack_events.rb +0 -44
  1127. data/lib/fog/aws/requests/cloud_formation/describe_stack_resources.rb +0 -43
  1128. data/lib/fog/aws/requests/cloud_formation/describe_stacks.rb +0 -42
  1129. data/lib/fog/aws/requests/cloud_formation/get_template.rb +0 -32
  1130. data/lib/fog/aws/requests/cloud_formation/validate_template.rb +0 -34
  1131. data/lib/fog/aws/requests/elb/create_load_balancer.rb +0 -54
  1132. data/lib/fog/aws/requests/elb/delete_load_balancer.rb +0 -33
  1133. data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +0 -47
  1134. data/lib/fog/aws/requests/elb/describe_instance_health.rb +0 -37
  1135. data/lib/fog/aws/requests/elb/describe_load_balancers.rb +0 -51
  1136. data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +0 -46
  1137. data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +0 -46
  1138. data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +0 -47
  1139. data/lib/fog/aws/requests/iam/add_user_to_group.rb +0 -34
  1140. data/lib/fog/aws/requests/iam/create_access_key.rb +0 -37
  1141. data/lib/fog/aws/requests/iam/create_group.rb +0 -39
  1142. data/lib/fog/aws/requests/iam/create_login_profile.rb +0 -36
  1143. data/lib/fog/aws/requests/iam/create_user.rb +0 -39
  1144. data/lib/fog/aws/requests/iam/delete_access_key.rb +0 -34
  1145. data/lib/fog/aws/requests/iam/delete_group.rb +0 -32
  1146. data/lib/fog/aws/requests/iam/delete_group_policy.rb +0 -34
  1147. data/lib/fog/aws/requests/iam/delete_login_profile.rb +0 -31
  1148. data/lib/fog/aws/requests/iam/delete_server_certificate.rb +0 -32
  1149. data/lib/fog/aws/requests/iam/delete_signing_certificate.rb +0 -33
  1150. data/lib/fog/aws/requests/iam/delete_user.rb +0 -32
  1151. data/lib/fog/aws/requests/iam/delete_user_policy.rb +0 -34
  1152. data/lib/fog/aws/requests/iam/get_group.rb +0 -44
  1153. data/lib/fog/aws/requests/iam/get_login_profile.rb +0 -35
  1154. data/lib/fog/aws/requests/iam/get_user.rb +0 -36
  1155. data/lib/fog/aws/requests/iam/get_user_policy.rb +0 -36
  1156. data/lib/fog/aws/requests/iam/list_access_keys.rb +0 -40
  1157. data/lib/fog/aws/requests/iam/list_group_policies.rb +0 -39
  1158. data/lib/fog/aws/requests/iam/list_groups.rb +0 -42
  1159. data/lib/fog/aws/requests/iam/list_groups_for_user.rb +0 -43
  1160. data/lib/fog/aws/requests/iam/list_signing_certificates.rb +0 -38
  1161. data/lib/fog/aws/requests/iam/list_user_policies.rb +0 -39
  1162. data/lib/fog/aws/requests/iam/list_users.rb +0 -42
  1163. data/lib/fog/aws/requests/iam/put_group_policy.rb +0 -36
  1164. data/lib/fog/aws/requests/iam/put_user_policy.rb +0 -36
  1165. data/lib/fog/aws/requests/iam/remove_user_from_group.rb +0 -34
  1166. data/lib/fog/aws/requests/iam/update_access_key.rb +0 -36
  1167. data/lib/fog/aws/requests/iam/update_group.rb +0 -39
  1168. data/lib/fog/aws/requests/iam/update_login_profile.rb +0 -33
  1169. data/lib/fog/aws/requests/iam/update_signing_certificate.rb +0 -32
  1170. data/lib/fog/aws/requests/iam/update_user.rb +0 -39
  1171. data/lib/fog/aws/requests/iam/upload_server_certificate.rb +0 -45
  1172. data/lib/fog/aws/requests/iam/upload_signing_certificate.rb +0 -38
  1173. data/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +0 -43
  1174. data/lib/fog/aws/requests/rds/create_db_instance.rb +0 -56
  1175. data/lib/fog/aws/requests/rds/create_db_instance_read_replica.rb +0 -42
  1176. data/lib/fog/aws/requests/rds/create_db_parameter_group.rb +0 -41
  1177. data/lib/fog/aws/requests/rds/create_db_security_group.rb +0 -37
  1178. data/lib/fog/aws/requests/rds/create_db_snapshot.rb +0 -36
  1179. data/lib/fog/aws/requests/rds/delete_db_instance.rb +0 -40
  1180. data/lib/fog/aws/requests/rds/delete_db_parameter_group.rb +0 -36
  1181. data/lib/fog/aws/requests/rds/delete_db_security_group.rb +0 -36
  1182. data/lib/fog/aws/requests/rds/delete_db_snapshot.rb +0 -36
  1183. data/lib/fog/aws/requests/rds/describe_db_instances.rb +0 -42
  1184. data/lib/fog/aws/requests/rds/describe_db_parameter_groups.rb +0 -45
  1185. data/lib/fog/aws/requests/rds/describe_db_parameters.rb +0 -46
  1186. data/lib/fog/aws/requests/rds/describe_db_security_groups.rb +0 -39
  1187. data/lib/fog/aws/requests/rds/describe_db_snapshots.rb +0 -42
  1188. data/lib/fog/aws/requests/rds/modify_db_instance.rb +0 -54
  1189. data/lib/fog/aws/requests/rds/modify_db_parameter_group.rb +0 -55
  1190. data/lib/fog/aws/requests/rds/reboot_db_instance.rb +0 -34
  1191. data/lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb +0 -34
  1192. data/lib/fog/aws/requests/rds/restore_db_instance_to_point_in_time.rb +0 -35
  1193. data/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +0 -44
  1194. data/lib/fog/aws/requests/ses/delete_verified_email_address.rb +0 -28
  1195. data/lib/fog/aws/requests/ses/get_send_quota.rb +0 -31
  1196. data/lib/fog/aws/requests/ses/get_send_statistics.rb +0 -34
  1197. data/lib/fog/aws/requests/ses/list_verified_email_addresses.rb +0 -28
  1198. data/lib/fog/aws/requests/ses/send_email.rb +0 -73
  1199. data/lib/fog/aws/requests/ses/send_raw_email.rb +0 -41
  1200. data/lib/fog/aws/requests/ses/verify_email_address.rb +0 -28
  1201. data/lib/fog/aws/requests/simpledb/batch_put_attributes.rb +0 -64
  1202. data/lib/fog/aws/requests/simpledb/create_domain.rb +0 -44
  1203. data/lib/fog/aws/requests/simpledb/delete_attributes.rb +0 -63
  1204. data/lib/fog/aws/requests/simpledb/delete_domain.rb +0 -45
  1205. data/lib/fog/aws/requests/simpledb/domain_metadata.rb +0 -76
  1206. data/lib/fog/aws/requests/simpledb/get_attributes.rb +0 -72
  1207. data/lib/fog/aws/requests/simpledb/list_domains.rb +0 -59
  1208. data/lib/fog/aws/requests/simpledb/put_attributes.rb +0 -78
  1209. data/lib/fog/aws/requests/simpledb/select.rb +0 -35
  1210. data/lib/fog/aws/ses.rb +0 -108
  1211. data/lib/fog/aws/simpledb.rb +0 -188
  1212. data/lib/fog/bin/bluebox.rb +0 -34
  1213. data/lib/fog/bin/dnsimple.rb +0 -30
  1214. data/lib/fog/bin/ecloud.rb +0 -30
  1215. data/lib/fog/bin/google.rb +0 -30
  1216. data/lib/fog/bin/local.rb +0 -30
  1217. data/lib/fog/bin/new_servers.rb +0 -30
  1218. data/lib/fog/bin/slicehost.rb +0 -34
  1219. data/lib/fog/bin/terremark.rb +0 -31
  1220. data/lib/fog/bin/virtual_box.rb +0 -52
  1221. data/lib/fog/bin/voxel.rb +0 -30
  1222. data/lib/fog/bin/zerigo.rb +0 -30
  1223. data/lib/fog/cdn/aws.rb +0 -121
  1224. data/lib/fog/cdn/parsers/aws/distribution.rb +0 -59
  1225. data/lib/fog/cdn/parsers/aws/get_distribution_list.rb +0 -61
  1226. data/lib/fog/cdn/parsers/aws/post_invalidation.rb +0 -28
  1227. data/lib/fog/cdn/rackspace.rb +0 -97
  1228. data/lib/fog/cdn/requests/aws/delete_distribution.rb +0 -28
  1229. data/lib/fog/cdn/requests/aws/get_distribution.rb +0 -57
  1230. data/lib/fog/cdn/requests/aws/get_distribution_list.rb +0 -59
  1231. data/lib/fog/cdn/requests/aws/post_distribution.rb +0 -91
  1232. data/lib/fog/cdn/requests/aws/post_invalidation.rb +0 -51
  1233. data/lib/fog/cdn/requests/aws/put_distribution_config.rb +0 -94
  1234. data/lib/fog/cdn/requests/rackspace/get_containers.rb +0 -31
  1235. data/lib/fog/cdn/requests/rackspace/head_container.rb +0 -33
  1236. data/lib/fog/cdn/requests/rackspace/post_container.rb +0 -30
  1237. data/lib/fog/cdn/requests/rackspace/put_container.rb +0 -30
  1238. data/lib/fog/cdn.rb +0 -19
  1239. data/lib/fog/compute/aws.rb +0 -264
  1240. data/lib/fog/compute/bluebox.rb +0 -103
  1241. data/lib/fog/compute/brightbox.rb +0 -162
  1242. data/lib/fog/compute/ecloud.rb +0 -1306
  1243. data/lib/fog/compute/go_grid.rb +0 -121
  1244. data/lib/fog/compute/linode.rb +0 -99
  1245. data/lib/fog/compute/models/aws/address.rb +0 -69
  1246. data/lib/fog/compute/models/aws/addresses.rb +0 -100
  1247. data/lib/fog/compute/models/aws/flavor.rb +0 -21
  1248. data/lib/fog/compute/models/aws/flavors.rb +0 -167
  1249. data/lib/fog/compute/models/aws/image.rb +0 -43
  1250. data/lib/fog/compute/models/aws/images.rb +0 -62
  1251. data/lib/fog/compute/models/aws/key_pair.rb +0 -42
  1252. data/lib/fog/compute/models/aws/key_pairs.rb +0 -88
  1253. data/lib/fog/compute/models/aws/security_group.rb +0 -205
  1254. data/lib/fog/compute/models/aws/security_groups.rb +0 -95
  1255. data/lib/fog/compute/models/aws/server.rb +0 -245
  1256. data/lib/fog/compute/models/aws/servers.rb +0 -158
  1257. data/lib/fog/compute/models/aws/snapshot.rb +0 -56
  1258. data/lib/fog/compute/models/aws/snapshots.rb +0 -52
  1259. data/lib/fog/compute/models/aws/tag.rb +0 -36
  1260. data/lib/fog/compute/models/aws/tags.rb +0 -34
  1261. data/lib/fog/compute/models/aws/volume.rb +0 -107
  1262. data/lib/fog/compute/models/aws/volumes.rb +0 -121
  1263. data/lib/fog/compute/models/bluebox/flavor.rb +0 -45
  1264. data/lib/fog/compute/models/bluebox/flavors.rb +0 -28
  1265. data/lib/fog/compute/models/bluebox/image.rb +0 -19
  1266. data/lib/fog/compute/models/bluebox/images.rb +0 -28
  1267. data/lib/fog/compute/models/bluebox/server.rb +0 -138
  1268. data/lib/fog/compute/models/bluebox/servers.rb +0 -36
  1269. data/lib/fog/compute/models/brightbox/account.rb +0 -51
  1270. data/lib/fog/compute/models/brightbox/cloud_ip.rb +0 -47
  1271. data/lib/fog/compute/models/brightbox/cloud_ips.rb +0 -34
  1272. data/lib/fog/compute/models/brightbox/flavor.rb +0 -33
  1273. data/lib/fog/compute/models/brightbox/flavors.rb +0 -28
  1274. data/lib/fog/compute/models/brightbox/image.rb +0 -56
  1275. data/lib/fog/compute/models/brightbox/images.rb +0 -28
  1276. data/lib/fog/compute/models/brightbox/load_balancer.rb +0 -50
  1277. data/lib/fog/compute/models/brightbox/load_balancers.rb +0 -28
  1278. data/lib/fog/compute/models/brightbox/server.rb +0 -108
  1279. data/lib/fog/compute/models/brightbox/servers.rb +0 -29
  1280. data/lib/fog/compute/models/brightbox/user.rb +0 -39
  1281. data/lib/fog/compute/models/brightbox/users.rb +0 -29
  1282. data/lib/fog/compute/models/brightbox/zone.rb +0 -21
  1283. data/lib/fog/compute/models/brightbox/zones.rb +0 -29
  1284. data/lib/fog/compute/models/ecloud/backup_internet_service.rb +0 -56
  1285. data/lib/fog/compute/models/ecloud/backup_internet_services.rb +0 -33
  1286. data/lib/fog/compute/models/ecloud/catalog.rb +0 -28
  1287. data/lib/fog/compute/models/ecloud/catalog_item.rb +0 -29
  1288. data/lib/fog/compute/models/ecloud/firewall_acl.rb +0 -24
  1289. data/lib/fog/compute/models/ecloud/firewall_acls.rb +0 -31
  1290. data/lib/fog/compute/models/ecloud/internet_service.rb +0 -117
  1291. data/lib/fog/compute/models/ecloud/internet_services.rb +0 -33
  1292. data/lib/fog/compute/models/ecloud/ip.rb +0 -49
  1293. data/lib/fog/compute/models/ecloud/ips.rb +0 -32
  1294. data/lib/fog/compute/models/ecloud/network.rb +0 -72
  1295. data/lib/fog/compute/models/ecloud/networks.rb +0 -33
  1296. data/lib/fog/compute/models/ecloud/node.rb +0 -43
  1297. data/lib/fog/compute/models/ecloud/nodes.rb +0 -31
  1298. data/lib/fog/compute/models/ecloud/public_ip.rb +0 -22
  1299. data/lib/fog/compute/models/ecloud/public_ips.rb +0 -36
  1300. data/lib/fog/compute/models/ecloud/server.rb +0 -209
  1301. data/lib/fog/compute/models/ecloud/servers.rb +0 -55
  1302. data/lib/fog/compute/models/ecloud/task.rb +0 -21
  1303. data/lib/fog/compute/models/ecloud/tasks.rb +0 -31
  1304. data/lib/fog/compute/models/ecloud/vdc.rb +0 -81
  1305. data/lib/fog/compute/models/ecloud/vdcs.rb +0 -40
  1306. data/lib/fog/compute/models/go_grid/image.rb +0 -60
  1307. data/lib/fog/compute/models/go_grid/images.rb +0 -33
  1308. data/lib/fog/compute/models/go_grid/password.rb +0 -50
  1309. data/lib/fog/compute/models/go_grid/passwords.rb +0 -36
  1310. data/lib/fog/compute/models/go_grid/server.rb +0 -117
  1311. data/lib/fog/compute/models/go_grid/servers.rb +0 -35
  1312. data/lib/fog/compute/models/rackspace/flavor.rb +0 -43
  1313. data/lib/fog/compute/models/rackspace/flavors.rb +0 -28
  1314. data/lib/fog/compute/models/rackspace/image.rb +0 -48
  1315. data/lib/fog/compute/models/rackspace/images.rb +0 -33
  1316. data/lib/fog/compute/models/rackspace/server.rb +0 -145
  1317. data/lib/fog/compute/models/rackspace/servers.rb +0 -36
  1318. data/lib/fog/compute/models/slicehost/flavor.rb +0 -45
  1319. data/lib/fog/compute/models/slicehost/flavors.rb +0 -28
  1320. data/lib/fog/compute/models/slicehost/image.rb +0 -17
  1321. data/lib/fog/compute/models/slicehost/images.rb +0 -27
  1322. data/lib/fog/compute/models/slicehost/server.rb +0 -128
  1323. data/lib/fog/compute/models/slicehost/servers.rb +0 -38
  1324. data/lib/fog/compute/models/virtual_box/medium.rb +0 -87
  1325. data/lib/fog/compute/models/virtual_box/medium_format.rb +0 -34
  1326. data/lib/fog/compute/models/virtual_box/mediums.rb +0 -32
  1327. data/lib/fog/compute/models/virtual_box/nat_engine.rb +0 -65
  1328. data/lib/fog/compute/models/virtual_box/nat_redirect.rb +0 -91
  1329. data/lib/fog/compute/models/virtual_box/nat_redirects.rb +0 -41
  1330. data/lib/fog/compute/models/virtual_box/network_adapter.rb +0 -82
  1331. data/lib/fog/compute/models/virtual_box/network_adapters.rb +0 -42
  1332. data/lib/fog/compute/models/virtual_box/server.rb +0 -241
  1333. data/lib/fog/compute/models/virtual_box/servers.rb +0 -41
  1334. data/lib/fog/compute/models/virtual_box/storage_controller.rb +0 -83
  1335. data/lib/fog/compute/models/virtual_box/storage_controllers.rb +0 -38
  1336. data/lib/fog/compute/models/voxel/image.rb +0 -12
  1337. data/lib/fog/compute/models/voxel/images.rb +0 -30
  1338. data/lib/fog/compute/models/voxel/server.rb +0 -77
  1339. data/lib/fog/compute/models/voxel/servers.rb +0 -32
  1340. data/lib/fog/compute/new_servers.rb +0 -102
  1341. data/lib/fog/compute/parsers/aws/allocate_address.rb +0 -19
  1342. data/lib/fog/compute/parsers/aws/attach_volume.rb +0 -22
  1343. data/lib/fog/compute/parsers/aws/basic.rb +0 -25
  1344. data/lib/fog/compute/parsers/aws/create_image.rb +0 -20
  1345. data/lib/fog/compute/parsers/aws/create_key_pair.rb +0 -20
  1346. data/lib/fog/compute/parsers/aws/create_snapshot.rb +0 -26
  1347. data/lib/fog/compute/parsers/aws/create_volume.rb +0 -24
  1348. data/lib/fog/compute/parsers/aws/deregister_image.rb +0 -20
  1349. data/lib/fog/compute/parsers/aws/describe_addresses.rb +0 -30
  1350. data/lib/fog/compute/parsers/aws/describe_availability_zones.rb +0 -32
  1351. data/lib/fog/compute/parsers/aws/describe_images.rb +0 -72
  1352. data/lib/fog/compute/parsers/aws/describe_instances.rb +0 -119
  1353. data/lib/fog/compute/parsers/aws/describe_key_pairs.rb +0 -30
  1354. data/lib/fog/compute/parsers/aws/describe_regions.rb +0 -30
  1355. data/lib/fog/compute/parsers/aws/describe_reserved_instances.rb +0 -36
  1356. data/lib/fog/compute/parsers/aws/describe_reserved_instances_offerings.rb +0 -34
  1357. data/lib/fog/compute/parsers/aws/describe_security_groups.rb +0 -76
  1358. data/lib/fog/compute/parsers/aws/describe_snapshots.rb +0 -54
  1359. data/lib/fog/compute/parsers/aws/describe_tags.rb +0 -30
  1360. data/lib/fog/compute/parsers/aws/describe_volumes.rb +0 -73
  1361. data/lib/fog/compute/parsers/aws/detach_volume.rb +0 -22
  1362. data/lib/fog/compute/parsers/aws/get_console_output.rb +0 -32
  1363. data/lib/fog/compute/parsers/aws/import_key_pair.rb +0 -20
  1364. data/lib/fog/compute/parsers/aws/monitor_unmonitor_instances.rb +0 -35
  1365. data/lib/fog/compute/parsers/aws/register_image.rb +0 -20
  1366. data/lib/fog/compute/parsers/aws/run_instances.rb +0 -89
  1367. data/lib/fog/compute/parsers/aws/start_stop_instances.rb +0 -41
  1368. data/lib/fog/compute/parsers/aws/terminate_instances.rb +0 -55
  1369. data/lib/fog/compute/parsers/slicehost/create_slice.rb +0 -31
  1370. data/lib/fog/compute/parsers/slicehost/get_backups.rb +0 -32
  1371. data/lib/fog/compute/parsers/slicehost/get_flavor.rb +0 -26
  1372. data/lib/fog/compute/parsers/slicehost/get_flavors.rb +0 -30
  1373. data/lib/fog/compute/parsers/slicehost/get_image.rb +0 -26
  1374. data/lib/fog/compute/parsers/slicehost/get_images.rb +0 -30
  1375. data/lib/fog/compute/parsers/slicehost/get_slice.rb +0 -31
  1376. data/lib/fog/compute/parsers/slicehost/get_slices.rb +0 -35
  1377. data/lib/fog/compute/parsers/voxel/basic.rb +0 -31
  1378. data/lib/fog/compute/parsers/voxel/devices_list.rb +0 -111
  1379. data/lib/fog/compute/parsers/voxel/images_list.rb +0 -59
  1380. data/lib/fog/compute/parsers/voxel/voxcloud_create.rb +0 -40
  1381. data/lib/fog/compute/parsers/voxel/voxcloud_delete.rb +0 -31
  1382. data/lib/fog/compute/parsers/voxel/voxcloud_status.rb +0 -42
  1383. data/lib/fog/compute/rackspace.rb +0 -151
  1384. data/lib/fog/compute/requests/aws/allocate_address.rb +0 -51
  1385. data/lib/fog/compute/requests/aws/associate_address.rb +0 -59
  1386. data/lib/fog/compute/requests/aws/attach_volume.rb +0 -81
  1387. data/lib/fog/compute/requests/aws/authorize_security_group_ingress.rb +0 -106
  1388. data/lib/fog/compute/requests/aws/create_image.rb +0 -64
  1389. data/lib/fog/compute/requests/aws/create_key_pair.rb +0 -54
  1390. data/lib/fog/compute/requests/aws/create_security_group.rb +0 -55
  1391. data/lib/fog/compute/requests/aws/create_snapshot.rb +0 -71
  1392. data/lib/fog/compute/requests/aws/create_tags.rb +0 -80
  1393. data/lib/fog/compute/requests/aws/create_volume.rb +0 -74
  1394. data/lib/fog/compute/requests/aws/delete_key_pair.rb +0 -45
  1395. data/lib/fog/compute/requests/aws/delete_security_group.rb +0 -47
  1396. data/lib/fog/compute/requests/aws/delete_snapshot.rb +0 -48
  1397. data/lib/fog/compute/requests/aws/delete_tags.rb +0 -42
  1398. data/lib/fog/compute/requests/aws/delete_volume.rb +0 -54
  1399. data/lib/fog/compute/requests/aws/deregister_image.rb +0 -51
  1400. data/lib/fog/compute/requests/aws/describe_addresses.rb +0 -64
  1401. data/lib/fog/compute/requests/aws/describe_availability_zones.rb +0 -70
  1402. data/lib/fog/compute/requests/aws/describe_images.rb +0 -112
  1403. data/lib/fog/compute/requests/aws/describe_instances.rb +0 -201
  1404. data/lib/fog/compute/requests/aws/describe_key_pairs.rb +0 -66
  1405. data/lib/fog/compute/requests/aws/describe_regions.rb +0 -66
  1406. data/lib/fog/compute/requests/aws/describe_reserved_instances.rb +0 -44
  1407. data/lib/fog/compute/requests/aws/describe_reserved_instances_offerings.rb +0 -37
  1408. data/lib/fog/compute/requests/aws/describe_security_groups.rb +0 -95
  1409. data/lib/fog/compute/requests/aws/describe_snapshots.rb +0 -120
  1410. data/lib/fog/compute/requests/aws/describe_tags.rb +0 -34
  1411. data/lib/fog/compute/requests/aws/describe_volumes.rb +0 -118
  1412. data/lib/fog/compute/requests/aws/detach_volume.rb +0 -58
  1413. data/lib/fog/compute/requests/aws/disassociate_address.rb +0 -54
  1414. data/lib/fog/compute/requests/aws/get_console_output.rb +0 -52
  1415. data/lib/fog/compute/requests/aws/import_key_pair.rb +0 -54
  1416. data/lib/fog/compute/requests/aws/modify_image_attributes.rb +0 -33
  1417. data/lib/fog/compute/requests/aws/modify_snapshot_attribute.rb +0 -32
  1418. data/lib/fog/compute/requests/aws/monitor_instances.rb +0 -52
  1419. data/lib/fog/compute/requests/aws/reboot_instances.rb +0 -52
  1420. data/lib/fog/compute/requests/aws/register_image.rb +0 -89
  1421. data/lib/fog/compute/requests/aws/release_address.rb +0 -45
  1422. data/lib/fog/compute/requests/aws/revoke_security_group_ingress.rb +0 -92
  1423. data/lib/fog/compute/requests/aws/run_instances.rb +0 -167
  1424. data/lib/fog/compute/requests/aws/start_instances.rb +0 -30
  1425. data/lib/fog/compute/requests/aws/stop_instances.rb +0 -30
  1426. data/lib/fog/compute/requests/aws/terminate_instances.rb +0 -94
  1427. data/lib/fog/compute/requests/aws/unmonitor_instances.rb +0 -53
  1428. data/lib/fog/compute/requests/bluebox/create_block.rb +0 -33
  1429. data/lib/fog/compute/requests/bluebox/destroy_block.rb +0 -26
  1430. data/lib/fog/compute/requests/bluebox/get_block.rb +0 -26
  1431. data/lib/fog/compute/requests/bluebox/get_blocks.rb +0 -28
  1432. data/lib/fog/compute/requests/bluebox/get_product.rb +0 -26
  1433. data/lib/fog/compute/requests/bluebox/get_products.rb +0 -25
  1434. data/lib/fog/compute/requests/bluebox/get_template.rb +0 -26
  1435. data/lib/fog/compute/requests/bluebox/get_templates.rb +0 -26
  1436. data/lib/fog/compute/requests/bluebox/reboot_block.rb +0 -27
  1437. data/lib/fog/compute/requests/brightbox/activate_console_server.rb +0 -20
  1438. data/lib/fog/compute/requests/brightbox/add_listeners_load_balancer.rb +0 -20
  1439. data/lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb +0 -20
  1440. data/lib/fog/compute/requests/brightbox/create_api_client.rb +0 -19
  1441. data/lib/fog/compute/requests/brightbox/create_cloud_ip.rb +0 -19
  1442. data/lib/fog/compute/requests/brightbox/create_image.rb +0 -19
  1443. data/lib/fog/compute/requests/brightbox/create_load_balancer.rb +0 -19
  1444. data/lib/fog/compute/requests/brightbox/create_server.rb +0 -19
  1445. data/lib/fog/compute/requests/brightbox/destroy_api_client.rb +0 -20
  1446. data/lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb +0 -20
  1447. data/lib/fog/compute/requests/brightbox/destroy_image.rb +0 -20
  1448. data/lib/fog/compute/requests/brightbox/destroy_load_balancer.rb +0 -20
  1449. data/lib/fog/compute/requests/brightbox/destroy_server.rb +0 -20
  1450. data/lib/fog/compute/requests/brightbox/get_account.rb +0 -19
  1451. data/lib/fog/compute/requests/brightbox/get_api_client.rb +0 -20
  1452. data/lib/fog/compute/requests/brightbox/get_cloud_ip.rb +0 -20
  1453. data/lib/fog/compute/requests/brightbox/get_image.rb +0 -20
  1454. data/lib/fog/compute/requests/brightbox/get_interface.rb +0 -20
  1455. data/lib/fog/compute/requests/brightbox/get_load_balancer.rb +0 -20
  1456. data/lib/fog/compute/requests/brightbox/get_server.rb +0 -20
  1457. data/lib/fog/compute/requests/brightbox/get_server_type.rb +0 -20
  1458. data/lib/fog/compute/requests/brightbox/get_user.rb +0 -20
  1459. data/lib/fog/compute/requests/brightbox/get_zone.rb +0 -20
  1460. data/lib/fog/compute/requests/brightbox/list_api_clients.rb +0 -19
  1461. data/lib/fog/compute/requests/brightbox/list_cloud_ips.rb +0 -19
  1462. data/lib/fog/compute/requests/brightbox/list_images.rb +0 -19
  1463. data/lib/fog/compute/requests/brightbox/list_load_balancers.rb +0 -19
  1464. data/lib/fog/compute/requests/brightbox/list_server_types.rb +0 -19
  1465. data/lib/fog/compute/requests/brightbox/list_servers.rb +0 -19
  1466. data/lib/fog/compute/requests/brightbox/list_users.rb +0 -19
  1467. data/lib/fog/compute/requests/brightbox/list_zones.rb +0 -19
  1468. data/lib/fog/compute/requests/brightbox/map_cloud_ip.rb +0 -20
  1469. data/lib/fog/compute/requests/brightbox/remove_listeners_load_balancer.rb +0 -20
  1470. data/lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb +0 -20
  1471. data/lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb +0 -19
  1472. data/lib/fog/compute/requests/brightbox/resize_server.rb +0 -19
  1473. data/lib/fog/compute/requests/brightbox/shutdown_server.rb +0 -20
  1474. data/lib/fog/compute/requests/brightbox/snapshot_server.rb +0 -20
  1475. data/lib/fog/compute/requests/brightbox/start_server.rb +0 -20
  1476. data/lib/fog/compute/requests/brightbox/stop_server.rb +0 -20
  1477. data/lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb +0 -20
  1478. data/lib/fog/compute/requests/brightbox/update_account.rb +0 -20
  1479. data/lib/fog/compute/requests/brightbox/update_api_client.rb +0 -21
  1480. data/lib/fog/compute/requests/brightbox/update_image.rb +0 -21
  1481. data/lib/fog/compute/requests/brightbox/update_load_balancer.rb +0 -21
  1482. data/lib/fog/compute/requests/brightbox/update_server.rb +0 -21
  1483. data/lib/fog/compute/requests/brightbox/update_user.rb +0 -21
  1484. data/lib/fog/compute/requests/ecloud/add_backup_internet_service.rb +0 -109
  1485. data/lib/fog/compute/requests/ecloud/add_internet_service.rb +0 -149
  1486. data/lib/fog/compute/requests/ecloud/add_node.rb +0 -62
  1487. data/lib/fog/compute/requests/ecloud/clone_vapp.rb +0 -40
  1488. data/lib/fog/compute/requests/ecloud/configure_internet_service.rb +0 -112
  1489. data/lib/fog/compute/requests/ecloud/configure_network.rb +0 -44
  1490. data/lib/fog/compute/requests/ecloud/configure_network_ip.rb +0 -66
  1491. data/lib/fog/compute/requests/ecloud/configure_node.rb +0 -56
  1492. data/lib/fog/compute/requests/ecloud/configure_vapp.rb +0 -144
  1493. data/lib/fog/compute/requests/ecloud/delete_internet_service.rb +0 -22
  1494. data/lib/fog/compute/requests/ecloud/delete_node.rb +0 -22
  1495. data/lib/fog/compute/requests/ecloud/delete_vapp.rb +0 -29
  1496. data/lib/fog/compute/requests/ecloud/get_catalog.rb +0 -44
  1497. data/lib/fog/compute/requests/ecloud/get_catalog_item.rb +0 -47
  1498. data/lib/fog/compute/requests/ecloud/get_customization_options.rb +0 -22
  1499. data/lib/fog/compute/requests/ecloud/get_firewall_acl.rb +0 -11
  1500. data/lib/fog/compute/requests/ecloud/get_firewall_acls.rb +0 -11
  1501. data/lib/fog/compute/requests/ecloud/get_internet_services.rb +0 -82
  1502. data/lib/fog/compute/requests/ecloud/get_network.rb +0 -44
  1503. data/lib/fog/compute/requests/ecloud/get_network_extensions.rb +0 -33
  1504. data/lib/fog/compute/requests/ecloud/get_network_ip.rb +0 -43
  1505. data/lib/fog/compute/requests/ecloud/get_network_ips.rb +0 -35
  1506. data/lib/fog/compute/requests/ecloud/get_node.rb +0 -40
  1507. data/lib/fog/compute/requests/ecloud/get_nodes.rb +0 -41
  1508. data/lib/fog/compute/requests/ecloud/get_organization.rb +0 -49
  1509. data/lib/fog/compute/requests/ecloud/get_public_ip.rb +0 -34
  1510. data/lib/fog/compute/requests/ecloud/get_public_ips.rb +0 -38
  1511. data/lib/fog/compute/requests/ecloud/get_task.rb +0 -11
  1512. data/lib/fog/compute/requests/ecloud/get_task_list.rb +0 -11
  1513. data/lib/fog/compute/requests/ecloud/get_vapp.rb +0 -99
  1514. data/lib/fog/compute/requests/ecloud/get_vapp_template.rb +0 -11
  1515. data/lib/fog/compute/requests/ecloud/get_vdc.rb +0 -84
  1516. data/lib/fog/compute/requests/ecloud/get_versions.rb +0 -37
  1517. data/lib/fog/compute/requests/ecloud/instantiate_vapp_template.rb +0 -142
  1518. data/lib/fog/compute/requests/ecloud/login.rb +0 -48
  1519. data/lib/fog/compute/requests/ecloud/power_off.rb +0 -23
  1520. data/lib/fog/compute/requests/ecloud/power_on.rb +0 -23
  1521. data/lib/fog/compute/requests/ecloud/power_reset.rb +0 -11
  1522. data/lib/fog/compute/requests/ecloud/power_shutdown.rb +0 -11
  1523. data/lib/fog/compute/requests/go_grid/common_lookup_list.rb +0 -28
  1524. data/lib/fog/compute/requests/go_grid/grid_image_get.rb +0 -41
  1525. data/lib/fog/compute/requests/go_grid/grid_image_list.rb +0 -44
  1526. data/lib/fog/compute/requests/go_grid/grid_ip_list.rb +0 -30
  1527. data/lib/fog/compute/requests/go_grid/grid_loadbalancer_list.rb +0 -28
  1528. data/lib/fog/compute/requests/go_grid/grid_server_add.rb +0 -36
  1529. data/lib/fog/compute/requests/go_grid/grid_server_delete.rb +0 -25
  1530. data/lib/fog/compute/requests/go_grid/grid_server_get.rb +0 -25
  1531. data/lib/fog/compute/requests/go_grid/grid_server_list.rb +0 -30
  1532. data/lib/fog/compute/requests/go_grid/grid_server_power.rb +0 -26
  1533. data/lib/fog/compute/requests/go_grid/support_password_get.rb +0 -28
  1534. data/lib/fog/compute/requests/go_grid/support_password_list.rb +0 -30
  1535. data/lib/fog/compute/requests/linode/avail_datacenters.rb +0 -23
  1536. data/lib/fog/compute/requests/linode/avail_distributions.rb +0 -30
  1537. data/lib/fog/compute/requests/linode/avail_kernels.rb +0 -28
  1538. data/lib/fog/compute/requests/linode/avail_linodeplans.rb +0 -27
  1539. data/lib/fog/compute/requests/linode/avail_stackscripts.rb +0 -29
  1540. data/lib/fog/compute/requests/linode/linode_create.rb +0 -33
  1541. data/lib/fog/compute/requests/linode/linode_delete.rb +0 -28
  1542. data/lib/fog/compute/requests/linode/linode_list.rb +0 -30
  1543. data/lib/fog/compute/requests/linode/linode_reboot.rb +0 -28
  1544. data/lib/fog/compute/requests/new_servers/add_server.rb +0 -33
  1545. data/lib/fog/compute/requests/new_servers/cancel_server.rb +0 -30
  1546. data/lib/fog/compute/requests/new_servers/get_server.rb +0 -36
  1547. data/lib/fog/compute/requests/new_servers/list_images.rb +0 -27
  1548. data/lib/fog/compute/requests/new_servers/list_plans.rb +0 -30
  1549. data/lib/fog/compute/requests/new_servers/list_servers.rb +0 -36
  1550. data/lib/fog/compute/requests/new_servers/reboot_server.rb +0 -24
  1551. data/lib/fog/compute/requests/rackspace/confirm_resized_server.rb +0 -34
  1552. data/lib/fog/compute/requests/rackspace/create_image.rb +0 -62
  1553. data/lib/fog/compute/requests/rackspace/create_server.rb +0 -94
  1554. data/lib/fog/compute/requests/rackspace/delete_image.rb +0 -45
  1555. data/lib/fog/compute/requests/rackspace/delete_server.rb +0 -43
  1556. data/lib/fog/compute/requests/rackspace/get_flavor_details.rb +0 -52
  1557. data/lib/fog/compute/requests/rackspace/get_image_details.rb +0 -27
  1558. data/lib/fog/compute/requests/rackspace/get_server_details.rb +0 -52
  1559. data/lib/fog/compute/requests/rackspace/list_addresses.rb +0 -43
  1560. data/lib/fog/compute/requests/rackspace/list_flavors.rb +0 -45
  1561. data/lib/fog/compute/requests/rackspace/list_flavors_detail.rb +0 -47
  1562. data/lib/fog/compute/requests/rackspace/list_images.rb +0 -40
  1563. data/lib/fog/compute/requests/rackspace/list_images_detail.rb +0 -49
  1564. data/lib/fog/compute/requests/rackspace/list_private_addresses.rb +0 -41
  1565. data/lib/fog/compute/requests/rackspace/list_public_addresses.rb +0 -41
  1566. data/lib/fog/compute/requests/rackspace/list_servers.rb +0 -41
  1567. data/lib/fog/compute/requests/rackspace/list_servers_detail.rb +0 -56
  1568. data/lib/fog/compute/requests/rackspace/reboot_server.rb +0 -30
  1569. data/lib/fog/compute/requests/rackspace/resize_server.rb +0 -39
  1570. data/lib/fog/compute/requests/rackspace/revert_resized_server.rb +0 -35
  1571. data/lib/fog/compute/requests/rackspace/server_action.rb +0 -25
  1572. data/lib/fog/compute/requests/rackspace/update_server.rb +0 -45
  1573. data/lib/fog/compute/requests/slicehost/create_slice.rb +0 -41
  1574. data/lib/fog/compute/requests/slicehost/delete_slice.rb +0 -23
  1575. data/lib/fog/compute/requests/slicehost/get_backups.rb +0 -29
  1576. data/lib/fog/compute/requests/slicehost/get_flavor.rb +0 -32
  1577. data/lib/fog/compute/requests/slicehost/get_flavors.rb +0 -29
  1578. data/lib/fog/compute/requests/slicehost/get_image.rb +0 -30
  1579. data/lib/fog/compute/requests/slicehost/get_images.rb +0 -27
  1580. data/lib/fog/compute/requests/slicehost/get_slice.rb +0 -38
  1581. data/lib/fog/compute/requests/slicehost/get_slices.rb +0 -35
  1582. data/lib/fog/compute/requests/slicehost/reboot_slice.rb +0 -36
  1583. data/lib/fog/compute/requests/voxel/devices_list.rb +0 -24
  1584. data/lib/fog/compute/requests/voxel/devices_power.rb +0 -22
  1585. data/lib/fog/compute/requests/voxel/images_list.rb +0 -31
  1586. data/lib/fog/compute/requests/voxel/voxcloud_create.rb +0 -22
  1587. data/lib/fog/compute/requests/voxel/voxcloud_delete.rb +0 -20
  1588. data/lib/fog/compute/requests/voxel/voxcloud_status.rb +0 -29
  1589. data/lib/fog/compute/slicehost.rb +0 -108
  1590. data/lib/fog/compute/virtual_box.rb +0 -48
  1591. data/lib/fog/compute/voxel.rb +0 -115
  1592. data/lib/fog/compute.rb +0 -46
  1593. data/lib/fog/core/attributes.rb +0 -180
  1594. data/lib/fog/core/collection.rb +0 -127
  1595. data/lib/fog/core/connection.rb +0 -35
  1596. data/lib/fog/core/credentials.rb +0 -103
  1597. data/lib/fog/core/deprecation.rb +0 -23
  1598. data/lib/fog/core/errors.rb +0 -20
  1599. data/lib/fog/core/hmac.rb +0 -48
  1600. data/lib/fog/core/mock.rb +0 -68
  1601. data/lib/fog/core/model.rb +0 -57
  1602. data/lib/fog/core/provider.rb +0 -18
  1603. data/lib/fog/core/scp.rb +0 -63
  1604. data/lib/fog/core/service.rb +0 -167
  1605. data/lib/fog/core/ssh.rb +0 -116
  1606. data/lib/fog/core/time.rb +0 -27
  1607. data/lib/fog/core/wait_for.rb +0 -17
  1608. data/lib/fog/core.rb +0 -33
  1609. data/lib/fog/dns/aws.rb +0 -125
  1610. data/lib/fog/dns/bluebox.rb +0 -108
  1611. data/lib/fog/dns/dnsimple.rb +0 -95
  1612. data/lib/fog/dns/linode.rb +0 -98
  1613. data/lib/fog/dns/models/aws/record.rb +0 -64
  1614. data/lib/fog/dns/models/aws/records.rb +0 -49
  1615. data/lib/fog/dns/models/aws/zone.rb +0 -53
  1616. data/lib/fog/dns/models/aws/zones.rb +0 -33
  1617. data/lib/fog/dns/models/bluebox/record.rb +0 -52
  1618. data/lib/fog/dns/models/bluebox/records.rb +0 -36
  1619. data/lib/fog/dns/models/bluebox/zone.rb +0 -63
  1620. data/lib/fog/dns/models/bluebox/zones.rb +0 -28
  1621. data/lib/fog/dns/models/dnsimple/record.rb +0 -64
  1622. data/lib/fog/dns/models/dnsimple/records.rb +0 -38
  1623. data/lib/fog/dns/models/dnsimple/zone.rb +0 -50
  1624. data/lib/fog/dns/models/dnsimple/zones.rb +0 -29
  1625. data/lib/fog/dns/models/linode/record.rb +0 -69
  1626. data/lib/fog/dns/models/linode/records.rb +0 -37
  1627. data/lib/fog/dns/models/linode/zone.rb +0 -84
  1628. data/lib/fog/dns/models/linode/zones.rb +0 -29
  1629. data/lib/fog/dns/models/slicehost/record.rb +0 -66
  1630. data/lib/fog/dns/models/slicehost/records.rb +0 -36
  1631. data/lib/fog/dns/models/slicehost/zone.rb +0 -69
  1632. data/lib/fog/dns/models/slicehost/zones.rb +0 -28
  1633. data/lib/fog/dns/models/zerigo/record.rb +0 -65
  1634. data/lib/fog/dns/models/zerigo/records.rb +0 -41
  1635. data/lib/fog/dns/models/zerigo/zone.rb +0 -88
  1636. data/lib/fog/dns/models/zerigo/zones.rb +0 -30
  1637. data/lib/fog/dns/parsers/aws/change_resource_record_sets.rb +0 -26
  1638. data/lib/fog/dns/parsers/aws/create_hosted_zone.rb +0 -55
  1639. data/lib/fog/dns/parsers/aws/delete_hosted_zone.rb +0 -25
  1640. data/lib/fog/dns/parsers/aws/get_change.rb +0 -26
  1641. data/lib/fog/dns/parsers/aws/get_hosted_zone.rb +0 -43
  1642. data/lib/fog/dns/parsers/aws/list_hosted_zones.rb +0 -37
  1643. data/lib/fog/dns/parsers/aws/list_resource_record_sets.rb +0 -46
  1644. data/lib/fog/dns/parsers/bluebox/create_record.rb +0 -26
  1645. data/lib/fog/dns/parsers/bluebox/create_zone.rb +0 -26
  1646. data/lib/fog/dns/parsers/bluebox/get_record.rb +0 -21
  1647. data/lib/fog/dns/parsers/bluebox/get_records.rb +0 -27
  1648. data/lib/fog/dns/parsers/bluebox/get_zone.rb +0 -23
  1649. data/lib/fog/dns/parsers/bluebox/get_zones.rb +0 -30
  1650. data/lib/fog/dns/parsers/slicehost/create_record.rb +0 -26
  1651. data/lib/fog/dns/parsers/slicehost/create_zone.rb +0 -26
  1652. data/lib/fog/dns/parsers/slicehost/get_record.rb +0 -26
  1653. data/lib/fog/dns/parsers/slicehost/get_records.rb +0 -30
  1654. data/lib/fog/dns/parsers/slicehost/get_zone.rb +0 -26
  1655. data/lib/fog/dns/parsers/slicehost/get_zones.rb +0 -30
  1656. data/lib/fog/dns/parsers/zerigo/count_hosts.rb +0 -24
  1657. data/lib/fog/dns/parsers/zerigo/count_zones.rb +0 -24
  1658. data/lib/fog/dns/parsers/zerigo/create_host.rb +0 -26
  1659. data/lib/fog/dns/parsers/zerigo/create_zone.rb +0 -26
  1660. data/lib/fog/dns/parsers/zerigo/find_hosts.rb +0 -30
  1661. data/lib/fog/dns/parsers/zerigo/get_host.rb +0 -26
  1662. data/lib/fog/dns/parsers/zerigo/get_zone.rb +0 -56
  1663. data/lib/fog/dns/parsers/zerigo/get_zone_stats.rb +0 -26
  1664. data/lib/fog/dns/parsers/zerigo/list_hosts.rb +0 -30
  1665. data/lib/fog/dns/parsers/zerigo/list_zones.rb +0 -30
  1666. data/lib/fog/dns/requests/aws/change_resource_record_sets.rb +0 -82
  1667. data/lib/fog/dns/requests/aws/create_hosted_zone.rb +0 -59
  1668. data/lib/fog/dns/requests/aws/delete_hosted_zone.rb +0 -39
  1669. data/lib/fog/dns/requests/aws/get_change.rb +0 -38
  1670. data/lib/fog/dns/requests/aws/get_hosted_zone.rb +0 -42
  1671. data/lib/fog/dns/requests/aws/list_hosted_zones.rb +0 -54
  1672. data/lib/fog/dns/requests/aws/list_resource_record_sets.rb +0 -60
  1673. data/lib/fog/dns/requests/bluebox/create_record.rb +0 -48
  1674. data/lib/fog/dns/requests/bluebox/create_zone.rb +0 -52
  1675. data/lib/fog/dns/requests/bluebox/delete_record.rb +0 -31
  1676. data/lib/fog/dns/requests/bluebox/delete_zone.rb +0 -31
  1677. data/lib/fog/dns/requests/bluebox/get_record.rb +0 -40
  1678. data/lib/fog/dns/requests/bluebox/get_records.rb +0 -41
  1679. data/lib/fog/dns/requests/bluebox/get_zone.rb +0 -44
  1680. data/lib/fog/dns/requests/bluebox/get_zones.rb +0 -43
  1681. data/lib/fog/dns/requests/bluebox/update_record.rb +0 -34
  1682. data/lib/fog/dns/requests/bluebox/update_zone.rb +0 -30
  1683. data/lib/fog/dns/requests/dnsimple/create_domain.rb +0 -27
  1684. data/lib/fog/dns/requests/dnsimple/create_record.rb +0 -48
  1685. data/lib/fog/dns/requests/dnsimple/delete_domain.rb +0 -26
  1686. data/lib/fog/dns/requests/dnsimple/delete_record.rb +0 -21
  1687. data/lib/fog/dns/requests/dnsimple/get_domain.rb +0 -37
  1688. data/lib/fog/dns/requests/dnsimple/get_record.rb +0 -34
  1689. data/lib/fog/dns/requests/dnsimple/list_domains.rb +0 -35
  1690. data/lib/fog/dns/requests/dnsimple/list_records.rb +0 -32
  1691. data/lib/fog/dns/requests/dnsimple/update_record.rb +0 -42
  1692. data/lib/fog/dns/requests/linode/domain_create.rb +0 -43
  1693. data/lib/fog/dns/requests/linode/domain_delete.rb +0 -27
  1694. data/lib/fog/dns/requests/linode/domain_list.rb +0 -42
  1695. data/lib/fog/dns/requests/linode/domain_resource_create.rb +0 -44
  1696. data/lib/fog/dns/requests/linode/domain_resource_delete.rb +0 -28
  1697. data/lib/fog/dns/requests/linode/domain_resource_list.rb +0 -43
  1698. data/lib/fog/dns/requests/linode/domain_resource_update.rb +0 -46
  1699. data/lib/fog/dns/requests/linode/domain_update.rb +0 -40
  1700. data/lib/fog/dns/requests/slicehost/create_record.rb +0 -52
  1701. data/lib/fog/dns/requests/slicehost/create_zone.rb +0 -46
  1702. data/lib/fog/dns/requests/slicehost/delete_record.rb +0 -23
  1703. data/lib/fog/dns/requests/slicehost/delete_zone.rb +0 -23
  1704. data/lib/fog/dns/requests/slicehost/get_record.rb +0 -32
  1705. data/lib/fog/dns/requests/slicehost/get_records.rb +0 -33
  1706. data/lib/fog/dns/requests/slicehost/get_zone.rb +0 -32
  1707. data/lib/fog/dns/requests/slicehost/get_zones.rb +0 -30
  1708. data/lib/fog/dns/requests/zerigo/count_hosts.rb +0 -28
  1709. data/lib/fog/dns/requests/zerigo/count_zones.rb +0 -28
  1710. data/lib/fog/dns/requests/zerigo/create_host.rb +0 -62
  1711. data/lib/fog/dns/requests/zerigo/create_zone.rb +0 -89
  1712. data/lib/fog/dns/requests/zerigo/delete_host.rb +0 -24
  1713. data/lib/fog/dns/requests/zerigo/delete_zone.rb +0 -25
  1714. data/lib/fog/dns/requests/zerigo/find_hosts.rb +0 -55
  1715. data/lib/fog/dns/requests/zerigo/get_host.rb +0 -39
  1716. data/lib/fog/dns/requests/zerigo/get_zone.rb +0 -49
  1717. data/lib/fog/dns/requests/zerigo/get_zone_stats.rb +0 -36
  1718. data/lib/fog/dns/requests/zerigo/list_hosts.rb +0 -40
  1719. data/lib/fog/dns/requests/zerigo/list_zones.rb +0 -45
  1720. data/lib/fog/dns/requests/zerigo/update_host.rb +0 -52
  1721. data/lib/fog/dns/requests/zerigo/update_zone.rb +0 -70
  1722. data/lib/fog/dns/slicehost.rb +0 -104
  1723. data/lib/fog/dns/zerigo.rb +0 -113
  1724. data/lib/fog/dns.rb +0 -31
  1725. data/lib/fog/providers/aws.rb +0 -180
  1726. data/lib/fog/providers/bluebox.rb +0 -12
  1727. data/lib/fog/providers/brightbox.rb +0 -9
  1728. data/lib/fog/providers/dnsimple.rb +0 -11
  1729. data/lib/fog/providers/ecloud.rb +0 -11
  1730. data/lib/fog/providers/go_grid.rb +0 -11
  1731. data/lib/fog/providers/google.rb +0 -23
  1732. data/lib/fog/providers/linode.rb +0 -13
  1733. data/lib/fog/providers/local.rb +0 -11
  1734. data/lib/fog/providers/new_servers.rb +0 -11
  1735. data/lib/fog/providers/rackspace.rb +0 -33
  1736. data/lib/fog/providers/slicehost.rb +0 -12
  1737. data/lib/fog/providers/virtual_box.rb +0 -11
  1738. data/lib/fog/providers/voxel.rb +0 -16
  1739. data/lib/fog/providers/zerigo.rb +0 -11
  1740. data/lib/fog/providers.rb +0 -23
  1741. data/lib/fog/storage/aws.rb +0 -335
  1742. data/lib/fog/storage/google.rb +0 -260
  1743. data/lib/fog/storage/local.rb +0 -77
  1744. data/lib/fog/storage/models/aws/directories.rb +0 -43
  1745. data/lib/fog/storage/models/aws/directory.rb +0 -100
  1746. data/lib/fog/storage/models/aws/file.rb +0 -142
  1747. data/lib/fog/storage/models/aws/files.rb +0 -86
  1748. data/lib/fog/storage/models/google/directories.rb +0 -43
  1749. data/lib/fog/storage/models/google/directory.rb +0 -78
  1750. data/lib/fog/storage/models/google/file.rb +0 -145
  1751. data/lib/fog/storage/models/google/files.rb +0 -79
  1752. data/lib/fog/storage/models/local/directories.rb +0 -33
  1753. data/lib/fog/storage/models/local/directory.rb +0 -57
  1754. data/lib/fog/storage/models/local/file.rb +0 -111
  1755. data/lib/fog/storage/models/local/files.rb +0 -87
  1756. data/lib/fog/storage/models/rackspace/directories.rb +0 -39
  1757. data/lib/fog/storage/models/rackspace/directory.rb +0 -64
  1758. data/lib/fog/storage/models/rackspace/file.rb +0 -81
  1759. data/lib/fog/storage/models/rackspace/files.rb +0 -75
  1760. data/lib/fog/storage/parsers/aws/access_control_list.rb +0 -46
  1761. data/lib/fog/storage/parsers/aws/complete_multipart_upload.rb +0 -24
  1762. data/lib/fog/storage/parsers/aws/copy_object.rb +0 -22
  1763. data/lib/fog/storage/parsers/aws/get_bucket.rb +0 -62
  1764. data/lib/fog/storage/parsers/aws/get_bucket_location.rb +0 -20
  1765. data/lib/fog/storage/parsers/aws/get_bucket_logging.rb +0 -40
  1766. data/lib/fog/storage/parsers/aws/get_bucket_object_versions.rb +0 -88
  1767. data/lib/fog/storage/parsers/aws/get_bucket_versioning.rb +0 -24
  1768. data/lib/fog/storage/parsers/aws/get_bucket_website.rb +0 -26
  1769. data/lib/fog/storage/parsers/aws/get_request_payment.rb +0 -20
  1770. data/lib/fog/storage/parsers/aws/get_service.rb +0 -32
  1771. data/lib/fog/storage/parsers/aws/initiate_multipart_upload.rb +0 -24
  1772. data/lib/fog/storage/parsers/aws/list_multipart_uploads.rb +0 -56
  1773. data/lib/fog/storage/parsers/aws/list_parts.rb +0 -40
  1774. data/lib/fog/storage/parsers/google/access_control_list.rb +0 -48
  1775. data/lib/fog/storage/parsers/google/copy_object.rb +0 -22
  1776. data/lib/fog/storage/parsers/google/get_bucket.rb +0 -62
  1777. data/lib/fog/storage/parsers/google/get_bucket_logging.rb +0 -40
  1778. data/lib/fog/storage/parsers/google/get_bucket_object_versions.rb +0 -88
  1779. data/lib/fog/storage/parsers/google/get_bucket_versioning.rb +0 -24
  1780. data/lib/fog/storage/parsers/google/get_request_payment.rb +0 -20
  1781. data/lib/fog/storage/parsers/google/get_service.rb +0 -32
  1782. data/lib/fog/storage/rackspace.rb +0 -127
  1783. data/lib/fog/storage/requests/aws/abort_multipart_upload.rb +0 -30
  1784. data/lib/fog/storage/requests/aws/complete_multipart_upload.rb +0 -52
  1785. data/lib/fog/storage/requests/aws/copy_object.rb +0 -76
  1786. data/lib/fog/storage/requests/aws/delete_bucket.rb +0 -50
  1787. data/lib/fog/storage/requests/aws/delete_bucket_website.rb +0 -32
  1788. data/lib/fog/storage/requests/aws/delete_object.rb +0 -49
  1789. data/lib/fog/storage/requests/aws/get_bucket.rb +0 -111
  1790. data/lib/fog/storage/requests/aws/get_bucket_acl.rb +0 -66
  1791. data/lib/fog/storage/requests/aws/get_bucket_location.rb +0 -52
  1792. data/lib/fog/storage/requests/aws/get_bucket_logging.rb +0 -50
  1793. data/lib/fog/storage/requests/aws/get_bucket_object_versions.rb +0 -75
  1794. data/lib/fog/storage/requests/aws/get_bucket_versioning.rb +0 -40
  1795. data/lib/fog/storage/requests/aws/get_bucket_website.rb +0 -42
  1796. data/lib/fog/storage/requests/aws/get_object.rb +0 -107
  1797. data/lib/fog/storage/requests/aws/get_object_acl.rb +0 -77
  1798. data/lib/fog/storage/requests/aws/get_object_torrent.rb +0 -50
  1799. data/lib/fog/storage/requests/aws/get_object_url.rb +0 -57
  1800. data/lib/fog/storage/requests/aws/get_request_payment.rb +0 -52
  1801. data/lib/fog/storage/requests/aws/get_service.rb +0 -57
  1802. data/lib/fog/storage/requests/aws/head_object.rb +0 -68
  1803. data/lib/fog/storage/requests/aws/initiate_multipart_upload.rb +0 -47
  1804. data/lib/fog/storage/requests/aws/list_multipart_uploads.rb +0 -60
  1805. data/lib/fog/storage/requests/aws/list_parts.rb +0 -59
  1806. data/lib/fog/storage/requests/aws/post_object_hidden_fields.rb +0 -42
  1807. data/lib/fog/storage/requests/aws/put_bucket.rb +0 -77
  1808. data/lib/fog/storage/requests/aws/put_bucket_acl.rb +0 -76
  1809. data/lib/fog/storage/requests/aws/put_bucket_logging.rb +0 -83
  1810. data/lib/fog/storage/requests/aws/put_bucket_versioning.rb +0 -36
  1811. data/lib/fog/storage/requests/aws/put_bucket_website.rb +0 -49
  1812. data/lib/fog/storage/requests/aws/put_object.rb +0 -100
  1813. data/lib/fog/storage/requests/aws/put_object_acl.rb +0 -85
  1814. data/lib/fog/storage/requests/aws/put_object_url.rb +0 -57
  1815. data/lib/fog/storage/requests/aws/put_request_payment.rb +0 -51
  1816. data/lib/fog/storage/requests/aws/sync_clock.rb +0 -28
  1817. data/lib/fog/storage/requests/aws/upload_part.rb +0 -43
  1818. data/lib/fog/storage/requests/google/copy_object.rb +0 -72
  1819. data/lib/fog/storage/requests/google/delete_bucket.rb +0 -46
  1820. data/lib/fog/storage/requests/google/delete_object.rb +0 -50
  1821. data/lib/fog/storage/requests/google/get_bucket.rb +0 -111
  1822. data/lib/fog/storage/requests/google/get_bucket_acl.rb +0 -63
  1823. data/lib/fog/storage/requests/google/get_object.rb +0 -104
  1824. data/lib/fog/storage/requests/google/get_object_acl.rb +0 -74
  1825. data/lib/fog/storage/requests/google/get_object_torrent.rb +0 -47
  1826. data/lib/fog/storage/requests/google/get_object_url.rb +0 -54
  1827. data/lib/fog/storage/requests/google/get_service.rb +0 -53
  1828. data/lib/fog/storage/requests/google/head_object.rb +0 -64
  1829. data/lib/fog/storage/requests/google/put_bucket.rb +0 -75
  1830. data/lib/fog/storage/requests/google/put_bucket_acl.rb +0 -73
  1831. data/lib/fog/storage/requests/google/put_object.rb +0 -94
  1832. data/lib/fog/storage/requests/google/put_object_url.rb +0 -54
  1833. data/lib/fog/storage/requests/rackspace/delete_container.rb +0 -23
  1834. data/lib/fog/storage/requests/rackspace/delete_object.rb +0 -24
  1835. data/lib/fog/storage/requests/rackspace/get_container.rb +0 -45
  1836. data/lib/fog/storage/requests/rackspace/get_containers.rb +0 -34
  1837. data/lib/fog/storage/requests/rackspace/get_object.rb +0 -25
  1838. data/lib/fog/storage/requests/rackspace/head_container.rb +0 -29
  1839. data/lib/fog/storage/requests/rackspace/head_containers.rb +0 -26
  1840. data/lib/fog/storage/requests/rackspace/head_object.rb +0 -24
  1841. data/lib/fog/storage/requests/rackspace/put_container.rb +0 -23
  1842. data/lib/fog/storage/requests/rackspace/put_object.rb +0 -27
  1843. data/lib/fog/storage.rb +0 -57
  1844. data/lib/fog/terremark/models/shared/address.rb +0 -29
  1845. data/lib/fog/terremark/models/shared/addresses.rb +0 -49
  1846. data/lib/fog/terremark/models/shared/network.rb +0 -35
  1847. data/lib/fog/terremark/models/shared/networks.rb +0 -52
  1848. data/lib/fog/terremark/models/shared/server.rb +0 -110
  1849. data/lib/fog/terremark/models/shared/servers.rb +0 -55
  1850. data/lib/fog/terremark/models/shared/task.rb +0 -50
  1851. data/lib/fog/terremark/models/shared/tasks.rb +0 -58
  1852. data/lib/fog/terremark/models/shared/vdc.rb +0 -39
  1853. data/lib/fog/terremark/models/shared/vdcs.rb +0 -52
  1854. data/lib/fog/terremark/parser.rb +0 -19
  1855. data/lib/fog/terremark/parsers/shared/get_catalog.rb +0 -46
  1856. data/lib/fog/terremark/parsers/shared/get_catalog_item.rb +0 -46
  1857. data/lib/fog/terremark/parsers/shared/get_internet_services.rb +0 -60
  1858. data/lib/fog/terremark/parsers/shared/get_network_ips.rb +0 -29
  1859. data/lib/fog/terremark/parsers/shared/get_node_services.rb +0 -36
  1860. data/lib/fog/terremark/parsers/shared/get_organization.rb +0 -52
  1861. data/lib/fog/terremark/parsers/shared/get_organizations.rb +0 -32
  1862. data/lib/fog/terremark/parsers/shared/get_public_ips.rb +0 -30
  1863. data/lib/fog/terremark/parsers/shared/get_tasks_list.rb +0 -52
  1864. data/lib/fog/terremark/parsers/shared/get_vapp_template.rb +0 -46
  1865. data/lib/fog/terremark/parsers/shared/get_vdc.rb +0 -123
  1866. data/lib/fog/terremark/parsers/shared/instantiate_vapp_template.rb +0 -41
  1867. data/lib/fog/terremark/parsers/shared/internet_service.rb +0 -65
  1868. data/lib/fog/terremark/parsers/shared/network.rb +0 -51
  1869. data/lib/fog/terremark/parsers/shared/node_service.rb +0 -32
  1870. data/lib/fog/terremark/parsers/shared/public_ip.rb +0 -26
  1871. data/lib/fog/terremark/parsers/shared/task.rb +0 -40
  1872. data/lib/fog/terremark/parsers/shared/vapp.rb +0 -77
  1873. data/lib/fog/terremark/requests/shared/add_internet_service.rb +0 -55
  1874. data/lib/fog/terremark/requests/shared/add_node_service.rb +0 -55
  1875. data/lib/fog/terremark/requests/shared/create_internet_service.rb +0 -55
  1876. data/lib/fog/terremark/requests/shared/delete_internet_service.rb +0 -22
  1877. data/lib/fog/terremark/requests/shared/delete_node_service.rb +0 -22
  1878. data/lib/fog/terremark/requests/shared/delete_public_ip.rb +0 -22
  1879. data/lib/fog/terremark/requests/shared/delete_vapp.rb +0 -22
  1880. data/lib/fog/terremark/requests/shared/deploy_vapp.rb +0 -35
  1881. data/lib/fog/terremark/requests/shared/get_catalog.rb +0 -32
  1882. data/lib/fog/terremark/requests/shared/get_catalog_item.rb +0 -35
  1883. data/lib/fog/terremark/requests/shared/get_internet_services.rb +0 -35
  1884. data/lib/fog/terremark/requests/shared/get_network.rb +0 -73
  1885. data/lib/fog/terremark/requests/shared/get_network_ips.rb +0 -32
  1886. data/lib/fog/terremark/requests/shared/get_node_services.rb +0 -30
  1887. data/lib/fog/terremark/requests/shared/get_organization.rb +0 -86
  1888. data/lib/fog/terremark/requests/shared/get_organizations.rb +0 -49
  1889. data/lib/fog/terremark/requests/shared/get_public_ip.rb +0 -33
  1890. data/lib/fog/terremark/requests/shared/get_public_ips.rb +0 -72
  1891. data/lib/fog/terremark/requests/shared/get_task.rb +0 -39
  1892. data/lib/fog/terremark/requests/shared/get_tasks_list.rb +0 -33
  1893. data/lib/fog/terremark/requests/shared/get_vapp.rb +0 -42
  1894. data/lib/fog/terremark/requests/shared/get_vapp_template.rb +0 -35
  1895. data/lib/fog/terremark/requests/shared/get_vdc.rb +0 -125
  1896. data/lib/fog/terremark/requests/shared/instantiate_vapp_template.rb +0 -71
  1897. data/lib/fog/terremark/requests/shared/power_off.rb +0 -35
  1898. data/lib/fog/terremark/requests/shared/power_on.rb +0 -35
  1899. data/lib/fog/terremark/requests/shared/power_reset.rb +0 -35
  1900. data/lib/fog/terremark/requests/shared/power_shutdown.rb +0 -24
  1901. data/lib/fog/terremark/shared.rb +0 -289
  1902. data/lib/fog/terremark/vcloud.rb +0 -117
  1903. data/lib/fog/terremark.rb +0 -11
  1904. data/spec/aws/models/compute/address_spec.rb +0 -103
  1905. data/spec/aws/models/compute/addresses_spec.rb +0 -70
  1906. data/spec/aws/models/compute/key_pair_spec.rb +0 -86
  1907. data/spec/aws/models/compute/key_pairs_spec.rb +0 -71
  1908. data/spec/aws/models/compute/security_group_spec.rb +0 -88
  1909. data/spec/aws/models/compute/security_groups_spec.rb +0 -71
  1910. data/spec/aws/models/compute/server_spec.rb +0 -105
  1911. data/spec/aws/models/compute/snapshot_spec.rb +0 -79
  1912. data/spec/aws/models/compute/snapshots_spec.rb +0 -85
  1913. data/spec/aws/models/compute/volume_spec.rb +0 -174
  1914. data/spec/aws/models/compute/volumes_spec.rb +0 -71
  1915. data/spec/ecloud/bin_spec.rb +0 -22
  1916. data/spec/ecloud/models/backup_internet_service_spec.rb +0 -48
  1917. data/spec/ecloud/models/backup_internet_services_spec.rb +0 -28
  1918. data/spec/ecloud/models/internet_service_spec.rb +0 -104
  1919. data/spec/ecloud/models/internet_services_spec.rb +0 -29
  1920. data/spec/ecloud/models/ip_spec.rb +0 -33
  1921. data/spec/ecloud/models/ips_spec.rb +0 -28
  1922. data/spec/ecloud/models/network_spec.rb +0 -71
  1923. data/spec/ecloud/models/networks_spec.rb +0 -27
  1924. data/spec/ecloud/models/node_spec.rb +0 -38
  1925. data/spec/ecloud/models/nodes_spec.rb +0 -28
  1926. data/spec/ecloud/models/public_ip_spec.rb +0 -36
  1927. data/spec/ecloud/models/public_ips_spec.rb +0 -27
  1928. data/spec/ecloud/models/server_spec.rb +0 -62
  1929. data/spec/ecloud/models/vdc_spec.rb +0 -63
  1930. data/spec/ecloud/models/vdcs_spec.rb +0 -28
  1931. data/spec/ecloud/requests/add_backup_internet_service_spec.rb +0 -60
  1932. data/spec/ecloud/requests/add_internet_service_spec.rb +0 -65
  1933. data/spec/ecloud/requests/add_node_spec.rb +0 -56
  1934. data/spec/ecloud/requests/configure_internet_service_spec.rb +0 -61
  1935. data/spec/ecloud/requests/configure_network_ip_spec.rb +0 -55
  1936. data/spec/ecloud/requests/configure_node_spec.rb +0 -52
  1937. data/spec/ecloud/requests/configure_vapp_spec.rb +0 -71
  1938. data/spec/ecloud/requests/delete_internet_service_spec.rb +0 -34
  1939. data/spec/ecloud/requests/delete_node_spec.rb +0 -30
  1940. data/spec/ecloud/requests/delete_vapp_spec.rb +0 -92
  1941. data/spec/ecloud/requests/get_catalog_item_spec.rb +0 -62
  1942. data/spec/ecloud/requests/get_catalog_spec.rb +0 -44
  1943. data/spec/ecloud/requests/get_customization_options_spec.rb +0 -39
  1944. data/spec/ecloud/requests/get_internet_services_spec.rb +0 -150
  1945. data/spec/ecloud/requests/get_network_ip_spec.rb +0 -40
  1946. data/spec/ecloud/requests/get_network_ips_spec.rb +0 -58
  1947. data/spec/ecloud/requests/get_network_spec.rb +0 -49
  1948. data/spec/ecloud/requests/get_node_spec.rb +0 -41
  1949. data/spec/ecloud/requests/get_nodes_spec.rb +0 -58
  1950. data/spec/ecloud/requests/get_organization_spec.rb +0 -52
  1951. data/spec/ecloud/requests/get_public_ip_spec.rb +0 -38
  1952. data/spec/ecloud/requests/get_public_ips_spec.rb +0 -52
  1953. data/spec/ecloud/requests/get_vapp_spec.rb +0 -125
  1954. data/spec/ecloud/requests/get_vdc_spec.rb +0 -112
  1955. data/spec/ecloud/requests/get_versions_spec.rb +0 -57
  1956. data/spec/ecloud/requests/instantiate_vapp_template_spec.rb +0 -95
  1957. data/spec/ecloud/requests/login_spec.rb +0 -10
  1958. data/spec/ecloud/requests/power_off_spec.rb +0 -34
  1959. data/spec/ecloud/requests/power_on_spec.rb +0 -34
  1960. data/spec/ecloud/spec_helper.rb +0 -387
  1961. data/spec/ecloud/vcloud_spec.rb +0 -18
  1962. data/tests/aws/requests/cloud_formation/stack_tests.rb +0 -130
  1963. data/tests/aws/requests/iam/access_key_tests.rb +0 -60
  1964. data/tests/aws/requests/iam/group_policy_tests.rb +0 -42
  1965. data/tests/aws/requests/iam/group_tests.rb +0 -47
  1966. data/tests/aws/requests/iam/helper.rb +0 -15
  1967. data/tests/aws/requests/iam/login_profile_tests.rb +0 -64
  1968. data/tests/aws/requests/iam/user_policy_tests.rb +0 -42
  1969. data/tests/aws/requests/iam/user_tests.rb +0 -65
  1970. data/tests/aws/requests/rds/helper.rb +0 -169
  1971. data/tests/aws/requests/rds/instance_tests.rb +0 -129
  1972. data/tests/aws/requests/rds/model_tests.rb +0 -98
  1973. data/tests/aws/requests/rds/parameter_group_tests.rb +0 -68
  1974. data/tests/aws/requests/rds/parameter_request_tests.rb +0 -35
  1975. data/tests/aws/requests/ses/helper.rb +0 -15
  1976. data/tests/aws/requests/ses/verified_email_address_tests.rb +0 -27
  1977. data/tests/aws/requests/simpledb/attributes_tests.rb +0 -75
  1978. data/tests/aws/requests/simpledb/domain_tests.rb +0 -51
  1979. data/tests/aws/requests/simpledb/helper.rb +0 -16
  1980. data/tests/compute/models/aws/server_monitor_tests.rb +0 -47
  1981. data/tests/compute/parsers/aws/monitor_unmonitor_instances_tests.rb +0 -49
  1982. data/tests/compute/requests/aws/address_tests.rb +0 -76
  1983. data/tests/compute/requests/aws/availability_zone_tests.rb +0 -25
  1984. data/tests/compute/requests/aws/helper.rb +0 -20
  1985. data/tests/compute/requests/aws/image_tests.rb +0 -37
  1986. data/tests/compute/requests/aws/instance_tests.rb +0 -121
  1987. data/tests/compute/requests/aws/key_pair_tests.rb +0 -63
  1988. data/tests/compute/requests/aws/region_tests.rb +0 -23
  1989. data/tests/compute/requests/aws/security_group_tests.rb +0 -141
  1990. data/tests/compute/requests/aws/snapshot_tests.rb +0 -57
  1991. data/tests/compute/requests/aws/tag_tests.rb +0 -49
  1992. data/tests/compute/requests/aws/volume_tests.rb +0 -102
  1993. data/tests/compute/requests/bluebox/block_tests.rb +0 -80
  1994. data/tests/compute/requests/bluebox/helper.rb +0 -17
  1995. data/tests/compute/requests/bluebox/product_tests.rb +0 -28
  1996. data/tests/compute/requests/bluebox/template_tests.rb +0 -35
  1997. data/tests/compute/requests/brightbox/account_tests.rb +0 -40
  1998. data/tests/compute/requests/brightbox/api_client_tests.rb +0 -49
  1999. data/tests/compute/requests/brightbox/cloud_ip_tests.rb +0 -71
  2000. data/tests/compute/requests/brightbox/helper.rb +0 -419
  2001. data/tests/compute/requests/brightbox/image_tests.rb +0 -57
  2002. data/tests/compute/requests/brightbox/interface_tests.rb +0 -30
  2003. data/tests/compute/requests/brightbox/load_balancer_tests.rb +0 -74
  2004. data/tests/compute/requests/brightbox/server_tests.rb +0 -75
  2005. data/tests/compute/requests/brightbox/server_type_tests.rb +0 -33
  2006. data/tests/compute/requests/brightbox/user_tests.rb +0 -41
  2007. data/tests/compute/requests/brightbox/zone_tests.rb +0 -33
  2008. data/tests/compute/requests/linode/datacenter_tests.rb +0 -19
  2009. data/tests/compute/requests/linode/distribution_tests.rb +0 -32
  2010. data/tests/compute/requests/linode/helper.rb +0 -16
  2011. data/tests/compute/requests/linode/linode_tests.rb +0 -85
  2012. data/tests/compute/requests/linode/linodeplans_tests.rb +0 -39
  2013. data/tests/compute/requests/rackspace/address_tests.rb +0 -40
  2014. data/tests/compute/requests/rackspace/flavor_tests.rb +0 -38
  2015. data/tests/compute/requests/rackspace/helper.rb +0 -16
  2016. data/tests/compute/requests/rackspace/image_tests.rb +0 -68
  2017. data/tests/compute/requests/rackspace/resize_tests.rb +0 -33
  2018. data/tests/compute/requests/rackspace/server_tests.rb +0 -92
  2019. data/tests/compute/requests/slicehost/backup_tests.rb +0 -18
  2020. data/tests/compute/requests/slicehost/flavor_tests.rb +0 -33
  2021. data/tests/compute/requests/slicehost/image_tests.rb +0 -31
  2022. data/tests/compute/requests/slicehost/slice_tests.rb +0 -75
  2023. data/tests/compute/requests/voxel/image_tests.rb +0 -46
  2024. data/tests/compute/requests/voxel/server_tests.rb +0 -122
  2025. data/tests/dns/requests/aws/dns_tests.rb +0 -276
  2026. data/tests/dns/requests/bluebox/dns_tests.rb +0 -271
  2027. data/tests/dns/requests/dnsimple/dns_tests.rb +0 -130
  2028. data/tests/dns/requests/linode/dns_tests.rb +0 -262
  2029. data/tests/dns/requests/slicehost/dns_tests.rb +0 -279
  2030. data/tests/dns/requests/zerigo/dns_tests.rb +0 -374
  2031. data/tests/storage/requests/aws/bucket_tests.rb +0 -114
  2032. data/tests/storage/requests/aws/multipart_upload_tests.rb +0 -135
  2033. data/tests/storage/requests/aws/object_tests.rb +0 -81
  2034. data/tests/storage/requests/google/bucket_tests.rb +0 -79
  2035. data/tests/storage/requests/google/object_tests.rb +0 -81
  2036. data/tests/storage/requests/rackspace/container_tests.rb +0 -64
  2037. data/tests/storage/requests/rackspace/object_tests.rb +0 -69
  2038. /data/tests/{compute/requests/go_grid → go_grid/requests/compute}/image_tests.rb +0 -0
@@ -1,1306 +0,0 @@
1
- require 'fog/core'
2
- require 'ipaddr'
3
-
4
- class IPAddr
5
- def mask
6
- _to_string(@mask_addr)
7
- end
8
- end
9
-
10
- module Fog
11
- module Ecloud
12
- class Collection < Fog::Collection
13
-
14
- def load(objects)
15
- objects = [ objects ] if objects.is_a?(Hash)
16
- super
17
- end
18
-
19
- def check_href!(opts = {})
20
- unless href
21
- if opts.is_a?(String)
22
- t = Hash.new
23
- t[:parent] = opts
24
- opts = t
25
- end
26
- msg = ":href missing, call with a :href pointing to #{if opts[:message]
27
- opts[:message]
28
- elsif opts[:parent]
29
- "the #{opts[:parent]} whos #{self.class.to_s.split('::').last.downcase} you want to enumerate"
30
- else
31
- "the resource"
32
- end}"
33
- raise Fog::Errors::Error.new(msg)
34
- end
35
- end
36
-
37
- end
38
- end
39
- end
40
-
41
- module Fog
42
- module Ecloud
43
- module MockDataClasses
44
- class Base < Hash
45
- def self.base_url=(url)
46
- @base_url = url
47
- end
48
-
49
- self.base_url = "http://vcloud.example.com"
50
-
51
- def self.base_url
52
- @base_url
53
- end
54
-
55
- def first
56
- raise "Don't do this"
57
- end
58
-
59
- def last
60
- raise "Don't do this"
61
- end
62
-
63
- def initialize(data = {}, parent = nil)
64
- @parent = parent
65
-
66
- replace(data)
67
- end
68
-
69
- def _parent
70
- @parent
71
- end
72
-
73
- def base_url
74
- Base.base_url
75
- end
76
-
77
- def href
78
- [base_url, self.class.name.split("::").last, object_id].join("/")
79
- end
80
-
81
- def inspect
82
- "<#{self.class.name} #{object_id} data=#{super}>"
83
- end
84
- end
85
-
86
- class MockData < Base
87
- def versions
88
- @versions ||= []
89
- end
90
-
91
- def organizations
92
- @organizations ||= []
93
- end
94
-
95
- def organization_from_href(href)
96
- find_href_in(href, organizations)
97
- end
98
-
99
- def all_vdcs
100
- organizations.map(&:vdcs).flatten
101
- end
102
-
103
- def vdc_from_href(href)
104
- find_href_in(href, all_vdcs)
105
- end
106
-
107
- def all_catalogs
108
- all_vdcs.map(&:catalog).flatten
109
- end
110
-
111
- def catalog_from_href(href)
112
- find_href_in(href, all_catalogs)
113
- end
114
-
115
- def all_catalog_items
116
- all_catalogs.map(&:items).flatten
117
- end
118
-
119
- def catalog_item_from_href(href)
120
- find_href_in(href, all_catalog_items)
121
- end
122
-
123
- def all_virtual_machines
124
- all_vdcs.map(&:virtual_machines).flatten
125
- end
126
-
127
- def virtual_machine_from_href(href)
128
- find_href_prefixed_in(href, all_virtual_machines)
129
- end
130
-
131
-
132
- def all_networks
133
- all_vdcs.map(&:networks).flatten
134
- end
135
-
136
- def network_from_href(href)
137
- find_href_in(href, all_networks)
138
- end
139
-
140
- def all_network_extensions
141
- all_networks.map(&:extensions).flatten
142
- end
143
-
144
- def network_extension_from_href(href)
145
- find_href_in(href, all_network_extensions)
146
- end
147
-
148
- def all_vdc_internet_service_collections
149
- all_vdcs.map(&:internet_service_collection).flatten
150
- end
151
-
152
- def vdc_internet_service_collection_from_href(href)
153
- find_href_in(href, all_vdc_internet_service_collections)
154
- end
155
-
156
- def all_backup_internet_services
157
- all_vdc_internet_service_collections.map(&:backup_internet_services).flatten
158
- end
159
-
160
- def backup_internet_service_from_href(href)
161
- find_href_in(href, all_backup_internet_services)
162
- end
163
-
164
- def all_public_ip_collections
165
- all_vdcs.map {|v| v.public_ip_collection }.flatten
166
- end
167
-
168
- def public_ip_collection_from_href(href)
169
- find_href_in(href, all_public_ip_collections)
170
- end
171
-
172
- def all_public_ips
173
- all_public_ip_collections.map(&:items).flatten
174
- end
175
-
176
- def public_ip_from_href(href)
177
- find_href_in(href, all_public_ips)
178
- end
179
-
180
- def all_public_ip_internet_service_collections
181
- all_public_ips.map(&:internet_service_collection).flatten
182
- end
183
-
184
- def public_ip_internet_service_collection_from_href(href)
185
- find_href_in(href, all_public_ip_internet_service_collections)
186
- end
187
-
188
- def all_public_ip_internet_services
189
- all_public_ip_internet_service_collections.map(&:items).flatten
190
- end
191
-
192
- def public_ip_internet_service_from_href(href)
193
- find_href_in(href, all_public_ip_internet_services)
194
- end
195
-
196
- def all_public_ip_internet_service_node_collections
197
- all_public_ip_internet_services.map(&:node_collection).flatten
198
- end
199
-
200
- def public_ip_internet_service_node_collection_from_href(href)
201
- find_href_in(href, all_public_ip_internet_service_node_collections)
202
- end
203
-
204
- def all_public_ip_internet_service_nodes
205
- all_public_ip_internet_service_node_collections.map(&:items).flatten
206
- end
207
-
208
- def public_ip_internet_service_node_from_href(href)
209
- find_href_in(href, all_public_ip_internet_service_nodes)
210
- end
211
-
212
- def all_network_ip_collections
213
- all_networks.map(&:ip_collection)
214
- end
215
-
216
- def network_ip_collection_from_href(href)
217
- find_href_in(href, all_network_ip_collections)
218
- end
219
-
220
- def all_network_ips
221
- all_network_ip_collections.map {|c| c.items.values }.flatten
222
- end
223
-
224
- def network_ip_from_href(href)
225
- find_href_in(href, all_network_ips)
226
- end
227
-
228
- private
229
-
230
- def find_href_in(href, objects)
231
- objects.detect {|o| o.href == href }
232
- end
233
-
234
- def find_href_prefixed_in(href, objects)
235
- objects.detect {|o| href =~ %r{^#{o.href}($|/)} }
236
- end
237
- end
238
-
239
- class MockVersion < Base
240
- def version
241
- self[:version]
242
- end
243
-
244
- def supported
245
- !!self[:supported]
246
- end
247
-
248
- def login_url
249
- href
250
- end
251
- end
252
-
253
- class MockOrganization < Base
254
- def name
255
- self[:name]
256
- end
257
-
258
- def vdcs
259
- @vdcs ||= []
260
- end
261
- end
262
-
263
- class MockVdc < Base
264
- def name
265
- self[:name]
266
- end
267
-
268
- def storage_allocated
269
- self[:storage_allocated] || 200
270
- end
271
-
272
- def storage_used
273
- self[:storage_used] || 105
274
- end
275
-
276
- def cpu_allocated
277
- self[:cpu_allocated] || 10000
278
- end
279
-
280
- def memory_allocated
281
- self[:memory_allocated] || 20480
282
- end
283
-
284
- def catalog
285
- @catalog ||= MockCatalog.new({}, self)
286
- end
287
-
288
- def networks
289
- @networks ||= []
290
- end
291
-
292
- def virtual_machines
293
- @virtual_machines ||= []
294
- end
295
-
296
- def task_list
297
- @task_list ||= MockTaskList.new({}, self)
298
- end
299
-
300
- # for TM eCloud, should probably be subclassed
301
- def public_ip_collection
302
- @public_ip_collection ||= MockPublicIps.new({}, self)
303
- end
304
-
305
- def internet_service_collection
306
- @internet_service_collection ||= MockVdcInternetServices.new({}, self)
307
- end
308
-
309
- def firewall_acls
310
- @firewall_acls ||= MockFirewallAcls.new({}, self)
311
- end
312
- end
313
-
314
- class MockTaskList < Base
315
- def name
316
- self[:name] || "Tasks List"
317
- end
318
- end
319
-
320
- class MockCatalog < Base
321
- def name
322
- self[:name] || "Catalog"
323
- end
324
-
325
- def items
326
- @items ||= []
327
- end
328
- end
329
-
330
- class MockCatalogItem < Base
331
- def name
332
- self[:name]
333
- end
334
-
335
- def disks
336
- @disks ||= MockVirtualMachineDisks.new(self)
337
- end
338
-
339
- def customization
340
- @customization ||= MockCatalogItemCustomization.new({}, self)
341
- end
342
-
343
- def vapp_template
344
- @vapp_template ||= MockCatalogItemVappTemplate.new({ :name => name }, self)
345
- end
346
- end
347
-
348
- class MockCatalogItemCustomization < Base
349
- def name
350
- self[:name] || "Customization Options"
351
- end
352
- end
353
-
354
- class MockCatalogItemVappTemplate < Base
355
- def name
356
- self[:name]
357
- end
358
- end
359
-
360
- class MockNetwork < Base
361
- def name
362
- self[:name] || subnet
363
- end
364
-
365
- def subnet
366
- self[:subnet]
367
- end
368
-
369
- def gateway
370
- self[:gateway] || subnet_ips[1]
371
- end
372
-
373
- def netmask
374
- self[:netmask] || subnet_ipaddr.mask
375
- end
376
-
377
- def dns
378
- "8.8.8.8"
379
- end
380
-
381
- def features
382
- [
383
- { :type => :FenceMode, :value => "isolated" }
384
- ]
385
- end
386
-
387
- def ip_collection
388
- @ip_collection ||= MockNetworkIps.new({}, self)
389
- end
390
-
391
- def extensions
392
- @extensions ||= MockNetworkExtensions.new({}, self)
393
- end
394
-
395
- def random_ip
396
- usable_subnet_ips[rand(usable_subnet_ips.length)]
397
- end
398
-
399
- # for TM eCloud. should probably be a subclass
400
- def rnat
401
- self[:rnat]
402
- end
403
-
404
- def usable_subnet_ips
405
- subnet_ips[3..-2]
406
- end
407
-
408
- def address
409
- subnet_ips.first
410
- end
411
-
412
- def broadcast
413
- subnet_ips.last
414
- end
415
-
416
- private
417
-
418
- def subnet_ipaddr
419
- @ipaddr ||= IPAddr.new(subnet)
420
- end
421
-
422
- def subnet_ips
423
- subnet_ipaddr.to_range.to_a.map(&:to_s)
424
- end
425
- end
426
-
427
- class MockNetworkIps < Base
428
- def items
429
- @items ||= _parent.usable_subnet_ips.inject({}) do |out, subnet_ip|
430
- out.update(subnet_ip => MockNetworkIp.new({ :ip => subnet_ip }, self))
431
- end
432
- end
433
-
434
- def ordered_ips
435
- items.values.sort_by {|i| i.ip.split(".").map(&:to_i) }
436
- end
437
-
438
- def name
439
- "IP Addresses"
440
- end
441
- end
442
-
443
- class MockNetworkIp < Base
444
- def name
445
- self[:name] || ip
446
- end
447
-
448
- def ip
449
- self[:ip]
450
- end
451
-
452
- def used_by
453
- self[:used_by] || _parent._parent._parent.virtual_machines.detect {|v| v.ip == ip }
454
- end
455
-
456
- def status
457
- if used_by
458
- "Assigned"
459
- else
460
- "Available"
461
- end
462
- end
463
-
464
- def rnat
465
- self[:rnat] || _parent._parent.rnat
466
- end
467
-
468
- def rnat_set?
469
- !!self[:rnat]
470
- end
471
- end
472
-
473
- class MockNetworkExtensions < Base
474
- def name
475
- _parent.name
476
- end
477
-
478
- def gateway
479
- _parent.gateway
480
- end
481
-
482
- def broadcast
483
- _parent.broadcast
484
- end
485
-
486
- def address
487
- _parent.address
488
- end
489
-
490
- def rnat
491
- _parent.rnat
492
- end
493
-
494
- def type
495
- self[:type] || "DMZ"
496
- end
497
-
498
- def vlan
499
- object_id.to_s
500
- end
501
-
502
- def friendly_name
503
- "#{name} (#{type}_#{object_id})"
504
- end
505
- end
506
-
507
- class MockVirtualMachine < Base
508
- def name
509
- self[:name]
510
- end
511
-
512
- def ip
513
- self[:ip]
514
- end
515
-
516
- def cpus
517
- self[:cpus] || 1
518
- end
519
-
520
- def memory
521
- self[:memory] || 1024
522
- end
523
-
524
- def disks
525
- @disks ||= MockVirtualMachineDisks.new(self)
526
- end
527
-
528
- def status
529
- self[:status] || 2
530
- end
531
-
532
- def power_off!
533
- self[:status] = 2
534
- end
535
-
536
- def power_on!
537
- self[:status] = 4
538
- end
539
-
540
- def size
541
- disks.inject(0) {|s, d| s + d.vcloud_size }
542
- end
543
-
544
- def network_ip
545
- if network = _parent.networks.detect {|n| n.ip_collection.items[ip] }
546
- network.ip_collection.items[ip]
547
- end
548
- end
549
-
550
- # from fog ecloud server's _compose_vapp_data
551
- def to_configure_vapp_hash
552
- {
553
- :name => name,
554
- :cpus => cpus,
555
- :memory => memory,
556
- :disks => disks.map {|d| { :number => d.address.to_s, :size => d.vcloud_size, :resource => d.vcloud_size.to_s } }
557
- }
558
- end
559
-
560
- def href(purpose = :base)
561
- case purpose
562
- when :base
563
- super()
564
- when :power_on
565
- super() + "/power/action/powerOn"
566
- when :power_off
567
- super() + "/power/action/powerOff"
568
- end
569
- end
570
- end
571
-
572
- class MockVirtualMachineDisks < Array
573
- def initialize(parent = nil)
574
- @parent = parent
575
- end
576
-
577
- def _parent
578
- @parent
579
- end
580
-
581
- def <<(disk)
582
- next_address = 0
583
- disk_with_max_address = max {|a, b| a[:address] <=> b[:address] }
584
- disk_with_max_address && next_address = disk_with_max_address.address + 1
585
- disk[:address] ||= next_address
586
-
587
- super(disk)
588
-
589
- if (addresses = map {|d| d.address }).uniq.size != size
590
- raise "Duplicate disk address in: #{addresses.inspect} (#{size})"
591
- end
592
-
593
- sort! {|a, b| a.address <=> b.address }
594
- self
595
- end
596
-
597
- def at_address(address)
598
- detect {|d| d.address == address }
599
- end
600
- end
601
-
602
- class MockVirtualMachineDisk < Base
603
- def size
604
- self[:size].to_i
605
- end
606
-
607
- def vcloud_size
608
- # kilobytes
609
- size * 1024
610
- end
611
-
612
- def address
613
- self[:address].to_i
614
- end
615
- end
616
-
617
- # for Terremark eCloud
618
-
619
- class MockVdcInternetServices < Base
620
- def href
621
- _parent.href + "/internetServices"
622
- end
623
-
624
- def name
625
- "Internet Services"
626
- end
627
-
628
- def items
629
- public_ip_internet_services + backup_internet_services
630
- end
631
-
632
- def public_ip_internet_services
633
- _parent.public_ip_collection.items.inject([]) do |services, public_ip|
634
- services + public_ip.internet_service_collection.items
635
- end
636
- end
637
-
638
- def backup_internet_services
639
- @backup_internet_services ||= []
640
- end
641
- end
642
-
643
- class MockBackupInternetService < Base
644
- def name
645
- self[:name] || "Backup Internet Service #{object_id}"
646
- end
647
-
648
- def protocol
649
- self[:protocol]
650
- end
651
-
652
- def port
653
- 0
654
- end
655
-
656
- def enabled
657
- self[:enabled].to_s.downcase != "false"
658
- end
659
-
660
- def timeout
661
- self[:timeout] || 2
662
- end
663
-
664
- def description
665
- self[:description] || "Description for Backup Service #{name}"
666
- end
667
-
668
- def redirect_url
669
- nil
670
- end
671
-
672
- def node_collection
673
- @node_collection ||= MockPublicIpInternetServiceNodes.new({}, self)
674
- end
675
- end
676
-
677
- class MockFirewallAcls < Base
678
- def name
679
- "Firewall Access List"
680
- end
681
- end
682
-
683
- class MockPublicIps < Base
684
- def name
685
- self[:name] || "Public IPs"
686
- end
687
-
688
- def items
689
- @items ||= []
690
- end
691
- end
692
-
693
- class MockPublicIp < Base
694
- def name
695
- self[:name]
696
- end
697
-
698
- def internet_service_collection
699
- @internet_service_collection ||= MockPublicIpInternetServices.new({}, self)
700
- end
701
- end
702
-
703
- class MockPublicIpInternetServices < Base
704
- def href
705
- _parent.href + "/internetServices"
706
- end
707
-
708
- def items
709
- @items ||= []
710
- end
711
- end
712
-
713
- class MockPublicIpInternetService < Base
714
- def name
715
- self[:name] || "Public IP Service #{object_id}"
716
- end
717
-
718
- def description
719
- self[:description] || "Description for Public IP Service #{name}"
720
- end
721
-
722
- def protocol
723
- self[:protocol]
724
- end
725
-
726
- def port
727
- self[:port]
728
- end
729
-
730
- def enabled
731
- !!self[:enabled]
732
- end
733
-
734
- def redirect_url
735
- self[:redirect_url]
736
- end
737
-
738
- def timeout
739
- self[:timeout] || 2
740
- end
741
-
742
- def node_collection
743
- @node_collection ||= MockPublicIpInternetServiceNodes.new({}, self)
744
- end
745
-
746
- def monitor
747
- nil
748
- end
749
-
750
- def backup_service
751
- self[:backup_service]
752
- end
753
- end
754
-
755
- class MockPublicIpInternetServiceNodes < Base
756
- def href
757
- _parent.href + "/nodeServices"
758
- end
759
-
760
- def items
761
- @items ||= [].tap do |node_array|
762
- node_array.instance_variable_set("@default_port", _parent.port)
763
-
764
- def node_array.<<(node)
765
- node[:port] ||= @default_port
766
- super
767
- end
768
- end
769
- end
770
- end
771
-
772
- class MockPublicIpInternetServiceNode < Base
773
- def ip_address
774
- self[:ip_address]
775
- end
776
-
777
- def name
778
- self[:name] || "Public IP Service Node #{object_id}"
779
- end
780
-
781
- def description
782
- self[:description] || "Description for Public IP Service Node #{name}"
783
- end
784
-
785
- def port
786
- self[:port]
787
- end
788
-
789
- def enabled
790
- self[:enabled].to_s.downcase != "false"
791
- end
792
-
793
- def enabled=(new_value)
794
- self[:enabled] = new_value
795
- end
796
- end
797
- end
798
- end
799
- end
800
-
801
-
802
- module Fog
803
- module Ecloud
804
- class Model < Fog::Model
805
-
806
- attr_accessor :loaded
807
- alias_method :loaded?, :loaded
808
-
809
- def reload
810
- instance = super
811
- @loaded = true
812
- instance
813
- end
814
-
815
- def load_unless_loaded!
816
- unless @loaded
817
- reload
818
- end
819
- end
820
-
821
- end
822
- end
823
- end
824
-
825
- module Fog
826
- module Ecloud
827
- class Compute < Fog::Service
828
-
829
- class UnsupportedVersion < Exception ; end
830
-
831
- requires :ecloud_username, :ecloud_password, :ecloud_versions_uri
832
- recognizes :ecloud_version
833
- recognizes :provider # remove post deprecation
834
-
835
- model_path 'fog/compute/models/ecloud'
836
- model :catalog_item
837
- model :catalog
838
- model :firewall_acl
839
- collection :firewall_acls
840
- model :internet_service
841
- collection :internet_services
842
- model :backup_internet_service
843
- collection :backup_internet_services
844
- model :ip
845
- collection :ips
846
- model :network
847
- collection :networks
848
- model :node
849
- collection :nodes
850
- model :public_ip
851
- collection :public_ips
852
- model :server
853
- collection :servers
854
- model :task
855
- collection :tasks
856
- model :vdc
857
- collection :vdcs
858
-
859
- request_path 'fog/compute/requests/ecloud'
860
- request :add_internet_service
861
- request :add_backup_internet_service
862
- request :add_node
863
- request :clone_vapp
864
- request :configure_internet_service
865
- request :configure_network
866
- request :configure_network_ip
867
- request :configure_node
868
- request :configure_vapp
869
- request :delete_internet_service
870
- request :delete_node
871
- request :delete_vapp
872
- request :get_catalog
873
- request :get_catalog_item
874
- request :get_customization_options
875
- request :get_firewall_acls
876
- request :get_firewall_acl
877
- request :get_internet_services
878
- request :get_network
879
- request :get_network_ip
880
- request :get_network_ips
881
- request :get_network_extensions
882
- request :get_organization
883
- request :get_node
884
- request :get_nodes
885
- request :get_public_ip
886
- request :get_public_ips
887
- request :get_task
888
- request :get_task_list
889
- request :get_vapp
890
- request :get_vapp_template
891
- request :get_vdc
892
- request :get_versions
893
- request :instantiate_vapp_template
894
- request :login
895
- request :power_off
896
- request :power_on
897
- request :power_reset
898
- request :power_shutdown
899
-
900
- module Shared
901
-
902
- attr_reader :versions_uri
903
-
904
- def default_organization_uri
905
- @default_organization_uri ||= begin
906
- unless @login_results
907
- do_login
908
- end
909
- case @login_results.body[:Org]
910
- when Array
911
- @login_results.body[:Org].first[:href]
912
- when Hash
913
- @login_results.body[:Org][:href]
914
- else
915
- nil
916
- end
917
- end
918
- end
919
-
920
- # login handles the auth, but we just need the Set-Cookie
921
- # header from that call.
922
- def do_login
923
- @login_results = login
924
- @cookie = @login_results.headers['Set-Cookie']
925
- end
926
-
927
- def ecloud_xmlns
928
- {
929
- "xmlns" => "urn:tmrk:eCloudExtensions-2.6",
930
- "xmlns:i" => "http://www.w3.org/2001/XMLSchema-instance"
931
- }
932
- end
933
-
934
- def ensure_unparsed(uri)
935
- if uri.is_a?(String)
936
- uri
937
- else
938
- uri.to_s
939
- end
940
- end
941
-
942
- def supported_versions
943
- @supported_versions ||= get_versions(@versions_uri).body[:VersionInfo]
944
- end
945
-
946
- def xmlns
947
- { "xmlns" => "http://www.vmware.com/vcloud/v0.8",
948
- "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
949
- "xmlns:xsd" => "http://www.w3.org/2001/XMLSchema" }
950
- end
951
-
952
- end
953
-
954
- class Mock
955
- include Shared
956
- include MockDataClasses
957
-
958
- def self.base_url
959
- "https://fakey.com/api/v0.8b-ext2.6"
960
- end
961
-
962
- def self.data_reset
963
- @mock_data = nil
964
- end
965
-
966
- def self.data( base_url = self.base_url )
967
- @mock_data ||= MockData.new.tap do |vcloud_mock_data|
968
- vcloud_mock_data.versions.clear
969
- vcloud_mock_data.versions << MockVersion.new(:version => "v0.8b-ext2.6", :supported => true)
970
-
971
- vcloud_mock_data.organizations << MockOrganization.new(:name => "Boom Inc.").tap do |mock_organization|
972
- mock_organization.vdcs << MockVdc.new(:name => "Boomstick").tap do |mock_vdc|
973
- mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 0").tap do |mock_catalog_item|
974
- mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
975
- end
976
- mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 1").tap do |mock_catalog_item|
977
- mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
978
- end
979
- mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 2").tap do |mock_catalog_item|
980
- mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
981
- end
982
-
983
- mock_vdc.networks << MockNetwork.new({ :subnet => "1.2.3.0/24" }, mock_vdc)
984
- mock_vdc.networks << MockNetwork.new({ :subnet => "4.5.6.0/24" }, mock_vdc)
985
-
986
- mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Broom 1", :ip => "1.2.3.3" }, mock_vdc)
987
- mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Broom 2", :ip => "1.2.3.4" }, mock_vdc)
988
- mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Email!", :ip => "1.2.3.10" }, mock_vdc)
989
- end
990
-
991
- mock_organization.vdcs << MockVdc.new(:name => "Rock-n-Roll", :storage_allocated => 150, :storage_used => 40, :cpu_allocated => 1000, :memory_allocated => 2048).tap do |mock_vdc|
992
- mock_vdc.networks << MockNetwork.new({ :subnet => "7.8.9.0/24" }, mock_vdc)
993
-
994
- mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Master Blaster", :ip => "7.8.9.10" }, mock_vdc)
995
- end
996
- end
997
-
998
- vcloud_mock_data.organizations.detect {|o| o.name == "Boom Inc." }.tap do |mock_organization|
999
- mock_organization.vdcs.detect {|v| v.name == "Boomstick" }.tap do |mock_vdc|
1000
- mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.2.3").tap do |mock_public_ip|
1001
- mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1002
- :protocol => "HTTP",
1003
- :port => 80,
1004
- :name => "Web Site",
1005
- :description => "Web Servers",
1006
- :redirect_url => "http://fakey.com"
1007
- }, mock_public_ip.internet_service_collection
1008
- ).tap do |mock_public_ip_service|
1009
- mock_public_ip_service.node_collection.items << MockPublicIpInternetServiceNode.new({:ip_address => "1.2.3.5", :name => "Test Node 1", :description => "web 1"}, mock_public_ip_service.node_collection)
1010
- mock_public_ip_service.node_collection.items << MockPublicIpInternetServiceNode.new({:ip_address => "1.2.3.6", :name => "Test Node 2", :description => "web 2"}, mock_public_ip_service.node_collection)
1011
- mock_public_ip_service.node_collection.items << MockPublicIpInternetServiceNode.new({:ip_address => "1.2.3.7", :name => "Test Node 3", :description => "web 3"}, mock_public_ip_service.node_collection)
1012
- end
1013
-
1014
- mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1015
- :protocol => "TCP",
1016
- :port => 7000,
1017
- :name => "An SSH Map",
1018
- :description => "SSH 1"
1019
- }, mock_public_ip.internet_service_collection
1020
- ).tap do |mock_public_ip_service|
1021
- mock_public_ip_service.node_collection.items << MockPublicIpInternetServiceNode.new({ :ip_address => "1.2.3.5", :port => 22, :name => "SSH", :description => "web ssh" }, mock_public_ip_service.node_collection)
1022
- end
1023
- end
1024
-
1025
- mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.2.4").tap do |mock_public_ip|
1026
- mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1027
- :protocol => "HTTP",
1028
- :port => 80,
1029
- :name => "Web Site",
1030
- :description => "Web Servers",
1031
- :redirect_url => "http://fakey.com"
1032
- }, mock_public_ip.internet_service_collection
1033
- )
1034
-
1035
- mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1036
- :protocol => "TCP",
1037
- :port => 7000,
1038
- :name => "An SSH Map",
1039
- :description => "SSH 2"
1040
- }, mock_public_ip.internet_service_collection
1041
- )
1042
- end
1043
-
1044
- mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.9.7")
1045
-
1046
- mock_vdc.internet_service_collection.backup_internet_services << MockBackupInternetService.new({ :port => 10000, :protocol => "TCP"}, self)
1047
- end
1048
-
1049
- mock_organization.vdcs.detect {|v| v.name == "Rock-n-Roll" }.tap do |mock_vdc|
1050
- mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.99.99.99")
1051
- end
1052
- end
1053
-
1054
- vcloud_mock_data.organizations.each do |organization|
1055
- organization.vdcs.each do |vdc|
1056
- vdc.networks.each do |network|
1057
- network[:rnat] = vdc.public_ip_collection.items.first.name
1058
- end
1059
- vdc.virtual_machines.each do |virtual_machine|
1060
- virtual_machine.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
1061
- virtual_machine.disks << MockVirtualMachineDisk.new(:size => 50 * 1024)
1062
- end
1063
- end
1064
- end
1065
- end
1066
- end
1067
-
1068
- def initialize(options = {})
1069
- require 'builder'
1070
- require 'fog/core/parser'
1071
-
1072
- @versions_uri = URI.parse('https://vcloud.fakey.com/api/versions')
1073
- end
1074
-
1075
- def mock_data
1076
- Fog::Ecloud::Compute::Mock.data
1077
- end
1078
-
1079
- def mock_error(expected, status, body='', headers={})
1080
- raise Excon::Errors::Unauthorized.new("Expected(#{expected}) <=> Actual(#{status})")
1081
- end
1082
-
1083
- def mock_it(status, mock_data, mock_headers = {})
1084
- response = Excon::Response.new
1085
-
1086
- #Parse the response body into a hash
1087
- if mock_data.empty?
1088
- response.body = mock_data
1089
- else
1090
- document = Fog::ToHashDocument.new
1091
- parser = Nokogiri::XML::SAX::PushParser.new(document)
1092
- parser << mock_data
1093
- parser.finish
1094
- response.body = document.body
1095
- end
1096
-
1097
- response.status = status
1098
- response.headers = mock_headers
1099
- response
1100
- end
1101
-
1102
- end
1103
-
1104
- class Real
1105
- include Shared
1106
-
1107
- class << self
1108
-
1109
- def basic_request(*args)
1110
- self.class_eval <<-EOS, __FILE__,__LINE__
1111
- def #{args[0]}(uri)
1112
- request({
1113
- :expects => #{args[1] || 200},
1114
- :method => '#{args[2] || 'GET'}',
1115
- :headers => #{args[3] ? args[3].inspect : '{}'},
1116
- :body => '#{args[4] ? args[4] : ''}',
1117
- :parse => true,
1118
- :uri => uri })
1119
- end
1120
- EOS
1121
- end
1122
-
1123
- def unauthenticated_basic_request(*args)
1124
- self.class_eval <<-EOS, __FILE__,__LINE__
1125
- def #{args[0]}(uri)
1126
- unauthenticated_request({
1127
- :expects => #{args[1] || 200},
1128
- :method => '#{args[2] || 'GET'}',
1129
- :headers => #{args[3] ? args[3].inspect : '{}'},
1130
- :parse => true,
1131
- :uri => uri })
1132
- end
1133
- EOS
1134
- end
1135
-
1136
- end
1137
-
1138
- def initialize(options = {})
1139
- require 'builder'
1140
- require 'fog/core/parser'
1141
-
1142
- @connections = {}
1143
- @versions_uri = URI.parse(options[:ecloud_versions_uri])
1144
- @version = options[:ecloud_version]
1145
- @username = options[:ecloud_username]
1146
- @password = options[:ecloud_password]
1147
- @persistent = options[:persistent]
1148
- end
1149
-
1150
- def default_organization_uri
1151
- @default_organization_uri ||= begin
1152
- unless @login_results
1153
- do_login
1154
- end
1155
- case @login_results.body[:Org]
1156
- when Array
1157
- @login_results.body[:Org].first[:href]
1158
- when Hash
1159
- @login_results.body[:Org][:href]
1160
- else
1161
- nil
1162
- end
1163
- end
1164
- end
1165
-
1166
- def reload
1167
- @connections.each_value { |k,v| v.reset if v }
1168
- end
1169
-
1170
- # If the cookie isn't set, do a get_organizations call to set it
1171
- # and try the request.
1172
- # If we get an Unauthorized error, we assume the token expired, re-auth and try again
1173
- def request(params)
1174
- unless @cookie
1175
- do_login
1176
- end
1177
- begin
1178
- do_request(params)
1179
- rescue Excon::Errors::Unauthorized => e
1180
- do_login
1181
- do_request(params)
1182
- end
1183
- end
1184
-
1185
- def supporting_versions
1186
- ["v0.8b-ext2.6", "0.8b-ext2.6"]
1187
- end
1188
-
1189
- private
1190
-
1191
- def ensure_parsed(uri)
1192
- if uri.is_a?(String)
1193
- URI.parse(uri)
1194
- else
1195
- uri
1196
- end
1197
- end
1198
-
1199
- def supported_version_numbers
1200
- case supported_versions
1201
- when Array
1202
- supported_versions.map { |version| version[:Version] }
1203
- when Hash
1204
- [ supported_versions[:Version] ]
1205
- end
1206
- end
1207
-
1208
- def get_login_uri
1209
- check_versions
1210
- URI.parse case supported_versions
1211
- when Array
1212
- supported_versions.detect {|version| version[:Version] == @version }[:LoginUrl]
1213
- when Hash
1214
- supported_versions[:LoginUrl]
1215
- end
1216
- end
1217
-
1218
- # If we don't support any versions the service does, then raise an error.
1219
- # If the @version that super selected isn't in our supported list, then select one that is.
1220
- def check_versions
1221
- if @version
1222
- unless supported_version_numbers.include?(@version.to_s)
1223
- raise UnsupportedVersion.new("#{@version} is not supported by the server.")
1224
- end
1225
- unless supporting_versions.include?(@version.to_s)
1226
- raise UnsupportedVersion.new("#{@version} is not supported by #{self.class}")
1227
- end
1228
- else
1229
- unless @version = (supported_version_numbers & supporting_versions).sort.first
1230
- raise UnsupportedVersion.new("\nService @ #{@versions_uri} supports: #{supported_version_numbers.join(', ')}\n" +
1231
- "#{self.class} supports: #{supporting_versions.join(', ')}")
1232
- end
1233
- end
1234
- end
1235
-
1236
- # Don't need to set the cookie for these or retry them if the cookie timed out
1237
- def unauthenticated_request(params)
1238
- do_request(params)
1239
- end
1240
-
1241
- # Use this to set the Authorization header for login
1242
- def authorization_header
1243
- "Basic #{Base64.encode64("#{@username}:#{@password}").chomp!}"
1244
- end
1245
-
1246
- def login_uri
1247
- @login_uri ||= get_login_uri
1248
- end
1249
-
1250
- # login handles the auth, but we just need the Set-Cookie
1251
- # header from that call.
1252
- def do_login
1253
- @login_results = login
1254
- @cookie = @login_results.headers['Set-Cookie']
1255
- end
1256
-
1257
- # Actually do the request
1258
- def do_request(params)
1259
- # Convert the uri to a URI if it's a string.
1260
- if params[:uri].is_a?(String)
1261
- params[:uri] = URI.parse(params[:uri])
1262
- end
1263
- host_url = "#{params[:uri].scheme}://#{params[:uri].host}#{params[:uri].port ? ":#{params[:uri].port}" : ''}"
1264
-
1265
- # Hash connections on the host_url ... There's nothing to say we won't get URI's that go to
1266
- # different hosts.
1267
- @connections[host_url] ||= Fog::Connection.new(host_url, @persistent)
1268
-
1269
- # Set headers to an empty hash if none are set.
1270
- headers = params[:headers] || {}
1271
-
1272
- # Add our auth cookie to the headers
1273
- if @cookie
1274
- headers.merge!('Cookie' => @cookie)
1275
- end
1276
-
1277
- # Make the request
1278
- response = @connections[host_url].request({
1279
- :body => params[:body] || '',
1280
- :expects => params[:expects] || 200,
1281
- :headers => headers,
1282
- :method => params[:method] || 'GET',
1283
- :path => params[:uri].path
1284
- })
1285
-
1286
- # Parse the response body into a hash
1287
- #puts response.body
1288
- unless response.body.empty?
1289
- if params[:parse]
1290
- document = Fog::ToHashDocument.new
1291
- parser = Nokogiri::XML::SAX::PushParser.new(document)
1292
- parser << response.body
1293
- parser.finish
1294
-
1295
- response.body = document.body
1296
- end
1297
- end
1298
-
1299
- response
1300
- end
1301
-
1302
- end
1303
-
1304
- end
1305
- end
1306
- end