fog 0.11.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1651) hide show
  1. data/Rakefile +17 -2
  2. data/changelog.txt +434 -0
  3. data/docs/about/getting_started.markdown +2 -2
  4. data/docs/about/press.markdown +4 -0
  5. data/docs/compute/index.markdown +1 -1
  6. data/docs/dns/index.markdown +1 -1
  7. data/docs/storage/index.markdown +17 -17
  8. data/fog.gemspec +5 -4
  9. data/lib/fog.rb +1 -1
  10. data/lib/fog/aws.rb +198 -0
  11. data/lib/fog/aws/auto_scaling.rb +9 -5
  12. data/lib/fog/aws/cdn.rb +120 -0
  13. data/lib/fog/aws/cloud_formation.rb +8 -4
  14. data/lib/fog/aws/cloud_watch.rb +9 -5
  15. data/lib/fog/aws/compute.rb +314 -0
  16. data/lib/fog/aws/dns.rb +119 -0
  17. data/lib/fog/aws/elasticache.rb +127 -0
  18. data/lib/fog/aws/elb.rb +11 -4
  19. data/lib/fog/aws/iam.rb +9 -5
  20. data/lib/fog/{compute/models/aws → aws/models/compute}/address.rb +0 -0
  21. data/lib/fog/aws/models/compute/addresses.rb +100 -0
  22. data/lib/fog/{compute/models/aws → aws/models/compute}/flavor.rb +0 -0
  23. data/lib/fog/aws/models/compute/flavors.rb +167 -0
  24. data/lib/fog/{compute/models/aws → aws/models/compute}/image.rb +0 -0
  25. data/lib/fog/aws/models/compute/images.rb +62 -0
  26. data/lib/fog/{compute/models/aws → aws/models/compute}/key_pair.rb +0 -0
  27. data/lib/fog/aws/models/compute/key_pairs.rb +88 -0
  28. data/lib/fog/aws/models/compute/security_group.rb +205 -0
  29. data/lib/fog/aws/models/compute/security_groups.rb +95 -0
  30. data/lib/fog/{compute/models/aws → aws/models/compute}/server.rb +0 -0
  31. data/lib/fog/aws/models/compute/servers.rb +158 -0
  32. data/lib/fog/{compute/models/aws → aws/models/compute}/snapshot.rb +0 -0
  33. data/lib/fog/aws/models/compute/snapshots.rb +52 -0
  34. data/lib/fog/{compute/models/aws → aws/models/compute}/spot_request.rb +0 -0
  35. data/lib/fog/aws/models/compute/spot_requests.rb +48 -0
  36. data/lib/fog/{compute/models/aws → aws/models/compute}/tag.rb +0 -0
  37. data/lib/fog/aws/models/compute/tags.rb +34 -0
  38. data/lib/fog/aws/models/compute/volume.rb +112 -0
  39. data/lib/fog/aws/models/compute/volumes.rb +121 -0
  40. data/lib/fog/{dns/models/aws → aws/models/dns}/record.rb +0 -0
  41. data/lib/fog/aws/models/dns/records.rb +49 -0
  42. data/lib/fog/aws/models/dns/zone.rb +53 -0
  43. data/lib/fog/aws/models/dns/zones.rb +33 -0
  44. data/lib/fog/aws/models/elasticache/cluster.rb +69 -0
  45. data/lib/fog/aws/models/elasticache/clusters.rb +31 -0
  46. data/lib/fog/aws/models/elasticache/parameter_group.rb +32 -0
  47. data/lib/fog/aws/models/elasticache/parameter_groups.rb +30 -0
  48. data/lib/fog/aws/models/elasticache/security_group.rb +52 -0
  49. data/lib/fog/aws/models/elasticache/security_groups.rb +30 -0
  50. data/lib/fog/aws/models/rds/security_group.rb +11 -0
  51. data/lib/fog/aws/models/storage/directories.rb +43 -0
  52. data/lib/fog/aws/models/storage/directory.rb +98 -0
  53. data/lib/fog/aws/models/storage/file.rb +141 -0
  54. data/lib/fog/aws/models/storage/files.rb +117 -0
  55. data/lib/fog/{cdn/parsers/aws → aws/parsers/cdn}/distribution.rb +0 -0
  56. data/lib/fog/{cdn/parsers/aws → aws/parsers/cdn}/get_distribution_list.rb +0 -0
  57. data/lib/fog/{cdn/parsers/aws → aws/parsers/cdn}/get_invalidation_list.rb +0 -0
  58. data/lib/fog/{cdn/parsers/aws → aws/parsers/cdn}/get_streaming_distribution_list.rb +0 -0
  59. data/lib/fog/{cdn/parsers/aws → aws/parsers/cdn}/post_invalidation.rb +0 -0
  60. data/lib/fog/{cdn/parsers/aws → aws/parsers/cdn}/streaming_distribution.rb +0 -0
  61. data/lib/fog/aws/parsers/cloud_watch/get_metric_statistics.rb +3 -3
  62. data/lib/fog/aws/parsers/cloud_watch/list_metrics.rb +5 -5
  63. data/lib/fog/aws/parsers/cloud_watch/put_metric_data.rb +2 -2
  64. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/allocate_address.rb +0 -0
  65. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/attach_volume.rb +0 -0
  66. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/basic.rb +0 -0
  67. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/cancel_spot_instance_requests.rb +0 -0
  68. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/create_image.rb +0 -0
  69. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/create_key_pair.rb +0 -0
  70. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/create_snapshot.rb +0 -0
  71. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/create_volume.rb +0 -0
  72. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/deregister_image.rb +0 -0
  73. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_addresses.rb +0 -0
  74. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_availability_zones.rb +0 -0
  75. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_images.rb +0 -0
  76. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_instances.rb +0 -0
  77. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_key_pairs.rb +0 -0
  78. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_placement_groups.rb +0 -0
  79. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_regions.rb +0 -0
  80. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_reserved_instances.rb +0 -0
  81. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_reserved_instances_offerings.rb +0 -0
  82. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_security_groups.rb +0 -0
  83. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_snapshots.rb +0 -0
  84. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_spot_price_history.rb +0 -0
  85. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_tags.rb +0 -0
  86. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/describe_volumes.rb +0 -0
  87. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/detach_volume.rb +0 -0
  88. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/get_console_output.rb +0 -0
  89. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/get_password_data.rb +0 -0
  90. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/import_key_pair.rb +0 -0
  91. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/monitor_unmonitor_instances.rb +0 -0
  92. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/purchase_reserved_instances_offering.rb +0 -0
  93. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/register_image.rb +0 -0
  94. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/run_instances.rb +0 -0
  95. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/spot_datafeed_subscription.rb +0 -0
  96. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/spot_instance_requests.rb +0 -0
  97. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/start_stop_instances.rb +0 -0
  98. data/lib/fog/{compute/parsers/aws → aws/parsers/compute}/terminate_instances.rb +0 -0
  99. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/change_resource_record_sets.rb +0 -0
  100. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/create_hosted_zone.rb +0 -0
  101. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/delete_hosted_zone.rb +0 -0
  102. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/get_change.rb +0 -0
  103. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/get_hosted_zone.rb +0 -0
  104. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/list_hosted_zones.rb +0 -0
  105. data/lib/fog/{dns/parsers/aws → aws/parsers/dns}/list_resource_record_sets.rb +0 -0
  106. data/lib/fog/aws/parsers/elasticache/authorize_cache_security_group_ingress.rb +26 -0
  107. data/lib/fog/aws/parsers/elasticache/base.rb +34 -0
  108. data/lib/fog/aws/parsers/elasticache/cache_cluster_parser.rb +79 -0
  109. data/lib/fog/aws/parsers/elasticache/describe_cache_clusters.rb +27 -0
  110. data/lib/fog/aws/parsers/elasticache/describe_cache_parameters.rb +22 -0
  111. data/lib/fog/aws/parsers/elasticache/describe_engine_default_parameters.rb +22 -0
  112. data/lib/fog/aws/parsers/elasticache/describe_parameter_groups.rb +27 -0
  113. data/lib/fog/aws/parsers/elasticache/describe_security_groups.rb +27 -0
  114. data/lib/fog/aws/parsers/elasticache/engine_defaults_parser.rb +59 -0
  115. data/lib/fog/aws/parsers/elasticache/event_list.rb +38 -0
  116. data/lib/fog/aws/parsers/elasticache/modify_parameter_group.rb +27 -0
  117. data/lib/fog/aws/parsers/elasticache/parameter_group_parser.rb +30 -0
  118. data/lib/fog/aws/parsers/elasticache/reset_parameter_group.rb +27 -0
  119. data/lib/fog/aws/parsers/elasticache/security_group_parser.rb +40 -0
  120. data/lib/fog/aws/parsers/elasticache/single_cache_cluster.rb +22 -0
  121. data/lib/fog/aws/parsers/elasticache/single_parameter_group.rb +22 -0
  122. data/lib/fog/aws/parsers/elasticache/single_security_group.rb +34 -0
  123. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/access_control_list.rb +0 -0
  124. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/complete_multipart_upload.rb +0 -0
  125. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/copy_object.rb +0 -0
  126. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_bucket.rb +0 -0
  127. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_bucket_location.rb +0 -0
  128. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_bucket_logging.rb +0 -0
  129. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_bucket_object_versions.rb +0 -0
  130. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_bucket_versioning.rb +0 -0
  131. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_bucket_website.rb +0 -0
  132. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_request_payment.rb +0 -0
  133. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/get_service.rb +0 -0
  134. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/initiate_multipart_upload.rb +0 -0
  135. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/list_multipart_uploads.rb +0 -0
  136. data/lib/fog/{storage/parsers/aws → aws/parsers/storage}/list_parts.rb +0 -0
  137. data/lib/fog/aws/rds.rb +8 -4
  138. data/lib/fog/aws/requests/auto_scaling/put_scaling_policy.rb +1 -1
  139. data/lib/fog/{cdn/requests/aws → aws/requests/cdn}/delete_distribution.rb +0 -0
  140. data/lib/fog/{cdn/requests/aws → aws/requests/cdn}/delete_streaming_distribution.rb +0 -0
  141. data/lib/fog/aws/requests/cdn/get_distribution.rb +57 -0
  142. data/lib/fog/aws/requests/cdn/get_distribution_list.rb +59 -0
  143. data/lib/fog/aws/requests/cdn/get_invalidation_list.rb +42 -0
  144. data/lib/fog/aws/requests/cdn/get_streaming_distribution.rb +50 -0
  145. data/lib/fog/aws/requests/cdn/get_streaming_distribution_list.rb +59 -0
  146. data/lib/fog/aws/requests/cdn/post_distribution.rb +91 -0
  147. data/lib/fog/aws/requests/cdn/post_invalidation.rb +51 -0
  148. data/lib/fog/aws/requests/cdn/post_streaming_distribution.rb +78 -0
  149. data/lib/fog/aws/requests/cdn/put_distribution_config.rb +94 -0
  150. data/lib/fog/aws/requests/cdn/put_streaming_distribution_config.rb +83 -0
  151. data/lib/fog/aws/requests/cloud_watch/get_metric_statistics.rb +2 -2
  152. data/lib/fog/aws/requests/cloud_watch/list_metrics.rb +1 -1
  153. data/lib/fog/aws/requests/cloud_watch/put_metric_data.rb +5 -5
  154. data/lib/fog/aws/requests/compute/allocate_address.rb +53 -0
  155. data/lib/fog/aws/requests/compute/associate_address.rb +67 -0
  156. data/lib/fog/aws/requests/compute/attach_volume.rb +87 -0
  157. data/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb +102 -0
  158. data/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb +34 -0
  159. data/lib/fog/aws/requests/compute/create_image.rb +65 -0
  160. data/lib/fog/aws/requests/compute/create_key_pair.rb +56 -0
  161. data/lib/fog/aws/requests/compute/create_placement_group.rb +34 -0
  162. data/lib/fog/aws/requests/compute/create_security_group.rb +58 -0
  163. data/lib/fog/aws/requests/compute/create_snapshot.rb +73 -0
  164. data/lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb +41 -0
  165. data/lib/fog/aws/requests/compute/create_tags.rb +84 -0
  166. data/lib/fog/aws/requests/compute/create_volume.rb +87 -0
  167. data/lib/fog/aws/requests/compute/delete_key_pair.rb +47 -0
  168. data/lib/fog/aws/requests/compute/delete_placement_group.rb +32 -0
  169. data/lib/fog/aws/requests/compute/delete_security_group.rb +49 -0
  170. data/lib/fog/aws/requests/compute/delete_snapshot.rb +50 -0
  171. data/lib/fog/aws/requests/compute/delete_spot_datafeed_subscription.rb +28 -0
  172. data/lib/fog/aws/requests/compute/delete_tags.rb +87 -0
  173. data/lib/fog/aws/requests/compute/delete_volume.rb +56 -0
  174. data/lib/fog/aws/requests/compute/deregister_image.rb +53 -0
  175. data/lib/fog/aws/requests/compute/describe_addresses.rb +66 -0
  176. data/lib/fog/aws/requests/compute/describe_availability_zones.rb +88 -0
  177. data/lib/fog/aws/requests/compute/describe_images.rb +133 -0
  178. data/lib/fog/aws/requests/compute/describe_instances.rb +213 -0
  179. data/lib/fog/aws/requests/compute/describe_key_pairs.rb +68 -0
  180. data/lib/fog/aws/requests/compute/describe_placement_groups.rb +35 -0
  181. data/lib/fog/aws/requests/compute/describe_regions.rb +68 -0
  182. data/lib/fog/aws/requests/compute/describe_reserved_instances.rb +60 -0
  183. data/lib/fog/aws/requests/compute/describe_reserved_instances_offerings.rb +64 -0
  184. data/lib/fog/aws/requests/compute/describe_security_groups.rb +97 -0
  185. data/lib/fog/aws/requests/compute/describe_snapshots.rb +120 -0
  186. data/lib/fog/aws/requests/compute/describe_spot_datafeed_subscription.rb +35 -0
  187. data/lib/fog/aws/requests/compute/describe_spot_instance_requests.rb +47 -0
  188. data/lib/fog/aws/requests/compute/describe_spot_price_history.rb +37 -0
  189. data/lib/fog/aws/requests/compute/describe_tags.rb +107 -0
  190. data/lib/fog/aws/requests/compute/describe_volumes.rb +117 -0
  191. data/lib/fog/aws/requests/compute/detach_volume.rb +60 -0
  192. data/lib/fog/aws/requests/compute/disassociate_address.rb +56 -0
  193. data/lib/fog/aws/requests/compute/get_console_output.rb +54 -0
  194. data/lib/fog/aws/requests/compute/get_password_data.rb +56 -0
  195. data/lib/fog/aws/requests/compute/import_key_pair.rb +56 -0
  196. data/lib/fog/aws/requests/compute/modify_image_attribute.rb +42 -0
  197. data/lib/fog/aws/requests/compute/modify_instance_attribute.rb +44 -0
  198. data/lib/fog/aws/requests/compute/modify_snapshot_attribute.rb +37 -0
  199. data/lib/fog/aws/requests/compute/monitor_instances.rb +54 -0
  200. data/lib/fog/aws/requests/compute/purchase_reserved_instances_offering.rb +63 -0
  201. data/lib/fog/aws/requests/compute/reboot_instances.rb +54 -0
  202. data/lib/fog/aws/requests/compute/register_image.rb +134 -0
  203. data/lib/fog/aws/requests/compute/release_address.rb +47 -0
  204. data/lib/fog/aws/requests/compute/request_spot_instances.rb +83 -0
  205. data/lib/fog/aws/requests/compute/revoke_security_group_ingress.rb +92 -0
  206. data/lib/fog/aws/requests/compute/run_instances.rb +177 -0
  207. data/lib/fog/aws/requests/compute/start_instances.rb +32 -0
  208. data/lib/fog/aws/requests/compute/stop_instances.rb +33 -0
  209. data/lib/fog/aws/requests/compute/terminate_instances.rb +96 -0
  210. data/lib/fog/aws/requests/compute/unmonitor_instances.rb +55 -0
  211. data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +82 -0
  212. data/lib/fog/aws/requests/dns/create_hosted_zone.rb +59 -0
  213. data/lib/fog/aws/requests/dns/delete_hosted_zone.rb +39 -0
  214. data/lib/fog/aws/requests/dns/get_change.rb +38 -0
  215. data/lib/fog/aws/requests/dns/get_hosted_zone.rb +42 -0
  216. data/lib/fog/aws/requests/dns/list_hosted_zones.rb +54 -0
  217. data/lib/fog/aws/requests/dns/list_resource_record_sets.rb +60 -0
  218. data/lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb +36 -0
  219. data/lib/fog/aws/requests/elasticache/create_cache_cluster.rb +62 -0
  220. data/lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb +37 -0
  221. data/lib/fog/aws/requests/elasticache/create_cache_security_group.rb +33 -0
  222. data/lib/fog/aws/requests/elasticache/delete_cache_cluster.rb +32 -0
  223. data/lib/fog/aws/requests/elasticache/delete_cache_parameter_group.rb +31 -0
  224. data/lib/fog/aws/requests/elasticache/delete_cache_security_group.rb +31 -0
  225. data/lib/fog/aws/requests/elasticache/describe_cache_clusters.rb +39 -0
  226. data/lib/fog/aws/requests/elasticache/describe_cache_parameter_groups.rb +34 -0
  227. data/lib/fog/aws/requests/elasticache/describe_cache_parameters.rb +36 -0
  228. data/lib/fog/aws/requests/elasticache/describe_cache_security_groups.rb +34 -0
  229. data/lib/fog/aws/requests/elasticache/describe_engine_default_parameters.rb +35 -0
  230. data/lib/fog/aws/requests/elasticache/describe_events.rb +46 -0
  231. data/lib/fog/aws/requests/elasticache/modify_cache_cluster.rb +70 -0
  232. data/lib/fog/aws/requests/elasticache/modify_cache_parameter_group.rb +45 -0
  233. data/lib/fog/aws/requests/elasticache/reboot_cache_cluster.rb +44 -0
  234. data/lib/fog/aws/requests/elasticache/reset_cache_parameter_group.rb +46 -0
  235. data/lib/fog/aws/requests/elasticache/revoke_cache_security_group_ingress.rb +37 -0
  236. data/lib/fog/aws/requests/iam/list_server_certificates.rb +3 -1
  237. data/lib/fog/aws/requests/iam/upload_server_certificate.rb +2 -2
  238. data/lib/fog/aws/requests/simpledb/get_attributes.rb +2 -2
  239. data/lib/fog/aws/requests/simpledb/select.rb +1 -1
  240. data/lib/fog/aws/requests/sqs/change_message_visibility.rb +30 -0
  241. data/lib/fog/aws/requests/sqs/create_queue.rb +35 -1
  242. data/lib/fog/aws/requests/sqs/delete_message.rb +29 -0
  243. data/lib/fog/aws/requests/sqs/delete_queue.rb +24 -1
  244. data/lib/fog/aws/requests/sqs/get_queue_attributes.rb +22 -1
  245. data/lib/fog/aws/requests/sqs/list_queues.rb +15 -1
  246. data/lib/fog/aws/requests/sqs/receive_message.rb +55 -1
  247. data/lib/fog/aws/requests/sqs/send_message.rb +39 -1
  248. data/lib/fog/aws/requests/sqs/set_queue_attributes.rb +19 -1
  249. data/lib/fog/{storage/requests/aws → aws/requests/storage}/abort_multipart_upload.rb +0 -0
  250. data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +52 -0
  251. data/lib/fog/aws/requests/storage/copy_object.rb +76 -0
  252. data/lib/fog/{storage/requests/aws → aws/requests/storage}/delete_bucket.rb +0 -0
  253. data/lib/fog/{storage/requests/aws → aws/requests/storage}/delete_bucket_policy.rb +0 -0
  254. data/lib/fog/{storage/requests/aws → aws/requests/storage}/delete_bucket_website.rb +0 -0
  255. data/lib/fog/{storage/requests/aws → aws/requests/storage}/delete_object.rb +0 -0
  256. data/lib/fog/aws/requests/storage/get_bucket.rb +114 -0
  257. data/lib/fog/aws/requests/storage/get_bucket_acl.rb +66 -0
  258. data/lib/fog/aws/requests/storage/get_bucket_location.rb +61 -0
  259. data/lib/fog/aws/requests/storage/get_bucket_logging.rb +50 -0
  260. data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +75 -0
  261. data/lib/fog/{storage/requests/aws → aws/requests/storage}/get_bucket_policy.rb +0 -0
  262. data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +40 -0
  263. data/lib/fog/aws/requests/storage/get_bucket_website.rb +42 -0
  264. data/lib/fog/{storage/requests/aws → aws/requests/storage}/get_object.rb +0 -0
  265. data/lib/fog/aws/requests/storage/get_object_acl.rb +77 -0
  266. data/lib/fog/{storage/requests/aws → aws/requests/storage}/get_object_http_url.rb +0 -0
  267. data/lib/fog/{storage/requests/aws → aws/requests/storage}/get_object_https_url.rb +0 -0
  268. data/lib/fog/{storage/requests/aws → aws/requests/storage}/get_object_torrent.rb +0 -0
  269. data/lib/fog/aws/requests/storage/get_object_url.rb +37 -0
  270. data/lib/fog/aws/requests/storage/get_request_payment.rb +52 -0
  271. data/lib/fog/aws/requests/storage/get_service.rb +57 -0
  272. data/lib/fog/aws/requests/storage/hash_to_acl.rb +44 -0
  273. data/lib/fog/{storage/requests/aws → aws/requests/storage}/head_object.rb +0 -0
  274. data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +47 -0
  275. data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +60 -0
  276. data/lib/fog/aws/requests/storage/list_parts.rb +59 -0
  277. data/lib/fog/{storage/requests/aws → aws/requests/storage}/post_object_hidden_fields.rb +0 -0
  278. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_bucket.rb +0 -0
  279. data/lib/fog/aws/requests/storage/put_bucket_acl.rb +73 -0
  280. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_bucket_logging.rb +0 -0
  281. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_bucket_policy.rb +0 -0
  282. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_bucket_versioning.rb +0 -0
  283. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_bucket_website.rb +0 -0
  284. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_object.rb +0 -0
  285. data/lib/fog/aws/requests/storage/put_object_acl.rb +82 -0
  286. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_object_url.rb +0 -0
  287. data/lib/fog/{storage/requests/aws → aws/requests/storage}/put_request_payment.rb +0 -0
  288. data/lib/fog/{storage/requests/aws → aws/requests/storage}/sync_clock.rb +0 -0
  289. data/lib/fog/{storage/requests/aws → aws/requests/storage}/upload_part.rb +0 -0
  290. data/lib/fog/aws/ses.rb +8 -4
  291. data/lib/fog/aws/simpledb.rb +8 -4
  292. data/lib/fog/aws/sns.rb +8 -4
  293. data/lib/fog/aws/sqs.rb +38 -4
  294. data/lib/fog/aws/storage.rb +378 -0
  295. data/lib/fog/bin.rb +6 -2
  296. data/lib/fog/bin/aws.rb +8 -4
  297. data/lib/fog/bin/bluebox.rb +2 -2
  298. data/lib/fog/bin/brightbox.rb +1 -1
  299. data/lib/fog/bin/dnsimple.rb +1 -1
  300. data/lib/fog/bin/dnsmadeeasy.rb +1 -1
  301. data/lib/fog/bin/ecloud.rb +1 -1
  302. data/lib/fog/bin/glesys.rb +31 -0
  303. data/lib/fog/bin/go_grid.rb +1 -1
  304. data/lib/fog/bin/google.rb +1 -1
  305. data/lib/fog/bin/libvirt.rb +60 -0
  306. data/lib/fog/bin/linode.rb +2 -2
  307. data/lib/fog/bin/local.rb +1 -1
  308. data/lib/fog/bin/new_servers.rb +1 -1
  309. data/lib/fog/bin/ninefold.rb +2 -2
  310. data/lib/fog/bin/openstack.rb +31 -0
  311. data/lib/fog/bin/rackspace.rb +6 -4
  312. data/lib/fog/bin/slicehost.rb +2 -2
  313. data/lib/fog/bin/stormondemand.rb +1 -1
  314. data/lib/fog/bin/virtual_box.rb +1 -1
  315. data/lib/fog/bin/vmfusion.rb +60 -0
  316. data/lib/fog/bin/voxel.rb +1 -1
  317. data/lib/fog/bin/vsphere.rb +30 -0
  318. data/lib/fog/bin/zerigo.rb +1 -1
  319. data/lib/fog/bluebox.rb +12 -0
  320. data/lib/fog/bluebox/compute.rb +101 -0
  321. data/lib/fog/bluebox/dns.rb +104 -0
  322. data/lib/fog/{compute/models/bluebox → bluebox/models/compute}/flavor.rb +0 -0
  323. data/lib/fog/bluebox/models/compute/flavors.rb +28 -0
  324. data/lib/fog/bluebox/models/compute/image.rb +34 -0
  325. data/lib/fog/bluebox/models/compute/images.rb +28 -0
  326. data/lib/fog/bluebox/models/compute/server.rb +132 -0
  327. data/lib/fog/bluebox/models/compute/servers.rb +36 -0
  328. data/lib/fog/{dns/models/bluebox → bluebox/models/dns}/record.rb +0 -0
  329. data/lib/fog/bluebox/models/dns/records.rb +36 -0
  330. data/lib/fog/bluebox/models/dns/zone.rb +64 -0
  331. data/lib/fog/bluebox/models/dns/zones.rb +28 -0
  332. data/lib/fog/{dns/parsers/bluebox → bluebox/parsers/dns}/create_record.rb +0 -0
  333. data/lib/fog/{dns/parsers/bluebox → bluebox/parsers/dns}/create_zone.rb +0 -0
  334. data/lib/fog/{dns/parsers/bluebox → bluebox/parsers/dns}/get_record.rb +0 -0
  335. data/lib/fog/{dns/parsers/bluebox → bluebox/parsers/dns}/get_records.rb +0 -0
  336. data/lib/fog/{dns/parsers/bluebox → bluebox/parsers/dns}/get_zone.rb +0 -0
  337. data/lib/fog/{dns/parsers/bluebox → bluebox/parsers/dns}/get_zones.rb +0 -0
  338. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/create_block.rb +0 -0
  339. data/lib/fog/bluebox/requests/compute/create_template.rb +27 -0
  340. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/destroy_block.rb +0 -0
  341. data/lib/fog/bluebox/requests/compute/destroy_template.rb +26 -0
  342. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/get_block.rb +0 -0
  343. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/get_blocks.rb +0 -0
  344. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/get_product.rb +0 -0
  345. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/get_products.rb +0 -0
  346. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/get_template.rb +0 -0
  347. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/get_templates.rb +0 -0
  348. data/lib/fog/{compute/requests/bluebox → bluebox/requests/compute}/reboot_block.rb +0 -0
  349. data/lib/fog/bluebox/requests/dns/create_record.rb +48 -0
  350. data/lib/fog/bluebox/requests/dns/create_zone.rb +52 -0
  351. data/lib/fog/{dns/requests/bluebox → bluebox/requests/dns}/delete_record.rb +0 -0
  352. data/lib/fog/{dns/requests/bluebox → bluebox/requests/dns}/delete_zone.rb +0 -0
  353. data/lib/fog/bluebox/requests/dns/get_record.rb +40 -0
  354. data/lib/fog/bluebox/requests/dns/get_records.rb +41 -0
  355. data/lib/fog/bluebox/requests/dns/get_zone.rb +44 -0
  356. data/lib/fog/bluebox/requests/dns/get_zones.rb +43 -0
  357. data/lib/fog/{dns/requests/bluebox → bluebox/requests/dns}/update_record.rb +0 -0
  358. data/lib/fog/{dns/requests/bluebox → bluebox/requests/dns}/update_zone.rb +0 -0
  359. data/lib/fog/brightbox.rb +10 -0
  360. data/lib/fog/brightbox/compute.rb +180 -0
  361. data/lib/fog/brightbox/models/compute/account.rb +63 -0
  362. data/lib/fog/brightbox/models/compute/cloud_ip.rb +49 -0
  363. data/lib/fog/brightbox/models/compute/cloud_ips.rb +34 -0
  364. data/lib/fog/brightbox/models/compute/flavor.rb +32 -0
  365. data/lib/fog/brightbox/models/compute/flavors.rb +28 -0
  366. data/lib/fog/brightbox/models/compute/image.rb +63 -0
  367. data/lib/fog/brightbox/models/compute/images.rb +28 -0
  368. data/lib/fog/brightbox/models/compute/load_balancer.rb +59 -0
  369. data/lib/fog/brightbox/models/compute/load_balancers.rb +28 -0
  370. data/lib/fog/brightbox/models/compute/server.rb +121 -0
  371. data/lib/fog/brightbox/models/compute/server_group.rb +57 -0
  372. data/lib/fog/brightbox/models/compute/server_groups.rb +29 -0
  373. data/lib/fog/brightbox/models/compute/servers.rb +29 -0
  374. data/lib/fog/brightbox/models/compute/user.rb +43 -0
  375. data/lib/fog/brightbox/models/compute/users.rb +29 -0
  376. data/lib/fog/brightbox/models/compute/zone.rb +22 -0
  377. data/lib/fog/brightbox/models/compute/zones.rb +29 -0
  378. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/activate_console_server.rb +0 -0
  379. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/add_listeners_load_balancer.rb +0 -0
  380. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/add_nodes_load_balancer.rb +0 -0
  381. data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +28 -0
  382. data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +14 -0
  383. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/create_api_client.rb +0 -0
  384. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/create_cloud_ip.rb +0 -0
  385. data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +13 -0
  386. data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +13 -0
  387. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/create_image.rb +0 -0
  388. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/create_load_balancer.rb +0 -0
  389. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/create_server.rb +0 -0
  390. data/lib/fog/brightbox/requests/compute/create_server_group.rb +13 -0
  391. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/destroy_api_client.rb +0 -0
  392. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/destroy_cloud_ip.rb +0 -0
  393. data/lib/fog/brightbox/requests/compute/destroy_firewall_policy.rb +14 -0
  394. data/lib/fog/brightbox/requests/compute/destroy_firewall_rule.rb +14 -0
  395. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/destroy_image.rb +0 -0
  396. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/destroy_load_balancer.rb +0 -0
  397. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/destroy_server.rb +0 -0
  398. data/lib/fog/brightbox/requests/compute/destroy_server_group.rb +14 -0
  399. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_account.rb +0 -0
  400. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_api_client.rb +0 -0
  401. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_cloud_ip.rb +0 -0
  402. data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +14 -0
  403. data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +14 -0
  404. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_image.rb +0 -0
  405. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_interface.rb +0 -0
  406. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_load_balancer.rb +0 -0
  407. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_server.rb +0 -0
  408. data/lib/fog/brightbox/requests/compute/get_server_group.rb +14 -0
  409. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_server_type.rb +0 -0
  410. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_user.rb +0 -0
  411. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/get_zone.rb +0 -0
  412. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_api_clients.rb +0 -0
  413. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_cloud_ips.rb +0 -0
  414. data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +13 -0
  415. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_images.rb +0 -0
  416. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_load_balancers.rb +0 -0
  417. data/lib/fog/brightbox/requests/compute/list_server_groups.rb +13 -0
  418. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_server_types.rb +0 -0
  419. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_servers.rb +0 -0
  420. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_users.rb +0 -0
  421. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/list_zones.rb +0 -0
  422. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/map_cloud_ip.rb +0 -0
  423. data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +29 -0
  424. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/remove_listeners_load_balancer.rb +0 -0
  425. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/remove_nodes_load_balancer.rb +0 -0
  426. data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +27 -0
  427. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/reset_ftp_password_account.rb +0 -0
  428. data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +14 -0
  429. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/resize_server.rb +0 -0
  430. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/shutdown_server.rb +0 -0
  431. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/snapshot_server.rb +0 -0
  432. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/start_server.rb +0 -0
  433. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/stop_server.rb +0 -0
  434. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/unmap_cloud_ip.rb +0 -0
  435. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/update_account.rb +0 -0
  436. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/update_api_client.rb +0 -0
  437. data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +15 -0
  438. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/update_image.rb +0 -0
  439. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/update_load_balancer.rb +0 -0
  440. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/update_server.rb +0 -0
  441. data/lib/fog/brightbox/requests/compute/update_server_group.rb +15 -0
  442. data/lib/fog/{compute/requests/brightbox → brightbox/requests/compute}/update_user.rb +0 -0
  443. data/lib/fog/cdn.rb +2 -2
  444. data/lib/fog/compute.rb +29 -14
  445. data/lib/fog/core.rb +2 -0
  446. data/lib/fog/core/collection.rb +5 -0
  447. data/lib/fog/core/credentials.rb +6 -1
  448. data/lib/fog/core/current_machine.rb +38 -0
  449. data/lib/fog/core/deprecation.rb +2 -2
  450. data/lib/fog/core/errors.rb +12 -1
  451. data/lib/fog/core/logger.rb +38 -0
  452. data/lib/fog/core/provider.rb +14 -4
  453. data/lib/fog/core/service.rb +21 -0
  454. data/lib/fog/dns.rb +11 -8
  455. data/lib/fog/dnsimple.rb +11 -0
  456. data/lib/fog/dnsimple/dns.rb +97 -0
  457. data/lib/fog/{dns/models/dnsimple → dnsimple/models/dns}/record.rb +0 -0
  458. data/lib/fog/dnsimple/models/dns/records.rb +38 -0
  459. data/lib/fog/dnsimple/models/dns/zone.rb +50 -0
  460. data/lib/fog/dnsimple/models/dns/zones.rb +29 -0
  461. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/create_domain.rb +0 -0
  462. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/create_record.rb +0 -0
  463. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/delete_domain.rb +0 -0
  464. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/delete_record.rb +0 -0
  465. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/get_domain.rb +0 -0
  466. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/get_record.rb +0 -0
  467. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/list_domains.rb +0 -0
  468. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/list_records.rb +0 -0
  469. data/lib/fog/{dns/requests/dnsimple → dnsimple/requests/dns}/update_record.rb +0 -0
  470. data/lib/fog/dnsmadeeasy.rb +11 -0
  471. data/lib/fog/dnsmadeeasy/dns.rb +136 -0
  472. data/lib/fog/{dns/models/dnsmadeeasy → dnsmadeeasy/models/dns}/record.rb +0 -0
  473. data/lib/fog/dnsmadeeasy/models/dns/records.rb +36 -0
  474. data/lib/fog/dnsmadeeasy/models/dns/zone.rb +42 -0
  475. data/lib/fog/dnsmadeeasy/models/dns/zones.rb +30 -0
  476. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/create_domain.rb +0 -0
  477. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/create_record.rb +0 -0
  478. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/create_secondary.rb +0 -0
  479. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/delete_all_domains.rb +0 -0
  480. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/delete_all_secondary.rb +0 -0
  481. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/delete_domain.rb +0 -0
  482. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/delete_record.rb +0 -0
  483. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/delete_secondary.rb +0 -0
  484. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/get_domain.rb +0 -0
  485. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/get_record.rb +0 -0
  486. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/get_secondary.rb +0 -0
  487. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/list_domains.rb +0 -0
  488. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/list_records.rb +0 -0
  489. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/list_secondary.rb +0 -0
  490. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/update_record.rb +0 -0
  491. data/lib/fog/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/update_secondary.rb +0 -0
  492. data/lib/fog/dynect.rb +26 -0
  493. data/lib/fog/dynect/dns.rb +110 -0
  494. data/lib/fog/dynect/models/dns/record.rb +66 -0
  495. data/lib/fog/dynect/models/dns/records.rb +53 -0
  496. data/lib/fog/dynect/models/dns/zone.rb +60 -0
  497. data/lib/fog/dynect/models/dns/zones.rb +29 -0
  498. data/lib/fog/dynect/requests/dns/delete_record.rb +55 -0
  499. data/lib/fog/dynect/requests/dns/delete_zone.rb +42 -0
  500. data/lib/fog/dynect/requests/dns/get_node_list.rb +54 -0
  501. data/lib/fog/dynect/requests/dns/get_record.rb +83 -0
  502. data/lib/fog/dynect/requests/dns/get_zone.rb +57 -0
  503. data/lib/fog/dynect/requests/dns/post_record.rb +72 -0
  504. data/lib/fog/dynect/requests/dns/post_session.rb +43 -0
  505. data/lib/fog/dynect/requests/dns/post_zone.rb +71 -0
  506. data/lib/fog/dynect/requests/dns/put_zone.rb +76 -0
  507. data/lib/fog/ecloud.rb +11 -0
  508. data/lib/fog/ecloud/compute.rb +1311 -0
  509. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/backup_internet_service.rb +0 -0
  510. data/lib/fog/ecloud/models/compute/backup_internet_services.rb +33 -0
  511. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/catalog.rb +0 -0
  512. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/catalog_item.rb +0 -0
  513. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/firewall_acl.rb +0 -0
  514. data/lib/fog/ecloud/models/compute/firewall_acls.rb +31 -0
  515. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/internet_service.rb +0 -0
  516. data/lib/fog/ecloud/models/compute/internet_services.rb +33 -0
  517. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/ip.rb +0 -0
  518. data/lib/fog/ecloud/models/compute/ips.rb +32 -0
  519. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/network.rb +0 -0
  520. data/lib/fog/ecloud/models/compute/networks.rb +33 -0
  521. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/node.rb +0 -0
  522. data/lib/fog/ecloud/models/compute/nodes.rb +31 -0
  523. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/public_ip.rb +0 -0
  524. data/lib/fog/ecloud/models/compute/public_ips.rb +36 -0
  525. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/server.rb +0 -0
  526. data/lib/fog/ecloud/models/compute/servers.rb +57 -0
  527. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/task.rb +0 -0
  528. data/lib/fog/ecloud/models/compute/tasks.rb +31 -0
  529. data/lib/fog/{compute/models/ecloud → ecloud/models/compute}/vdc.rb +0 -0
  530. data/lib/fog/ecloud/models/compute/vdcs.rb +40 -0
  531. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/add_backup_internet_service.rb +0 -0
  532. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/add_internet_service.rb +0 -0
  533. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/add_node.rb +0 -0
  534. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/clone_vapp.rb +0 -0
  535. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/configure_internet_service.rb +0 -0
  536. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/configure_network.rb +0 -0
  537. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/configure_network_ip.rb +0 -0
  538. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/configure_node.rb +0 -0
  539. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/configure_vapp.rb +0 -0
  540. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/delete_internet_service.rb +0 -0
  541. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/delete_node.rb +0 -0
  542. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/delete_vapp.rb +0 -0
  543. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_catalog.rb +0 -0
  544. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_catalog_item.rb +0 -0
  545. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_customization_options.rb +0 -0
  546. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_firewall_acl.rb +0 -0
  547. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_firewall_acls.rb +0 -0
  548. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_internet_services.rb +0 -0
  549. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_network.rb +0 -0
  550. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_network_extensions.rb +0 -0
  551. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_network_ip.rb +0 -0
  552. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_network_ips.rb +0 -0
  553. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_node.rb +0 -0
  554. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_nodes.rb +0 -0
  555. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_organization.rb +0 -0
  556. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_public_ip.rb +0 -0
  557. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_public_ips.rb +0 -0
  558. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_task.rb +0 -0
  559. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_task_list.rb +0 -0
  560. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_vapp.rb +0 -0
  561. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_vapp_template.rb +0 -0
  562. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_vdc.rb +0 -0
  563. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/get_versions.rb +0 -0
  564. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/instantiate_vapp_template.rb +0 -0
  565. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/login.rb +0 -0
  566. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/power_off.rb +0 -0
  567. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/power_on.rb +0 -0
  568. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/power_reset.rb +0 -0
  569. data/lib/fog/{compute/requests/ecloud → ecloud/requests/compute}/power_shutdown.rb +0 -0
  570. data/lib/fog/glesys.rb +11 -0
  571. data/lib/fog/glesys/compute.rb +128 -0
  572. data/lib/fog/glesys/models/compute/ip.rb +75 -0
  573. data/lib/fog/glesys/models/compute/ips.rb +39 -0
  574. data/lib/fog/glesys/models/compute/server.rb +71 -0
  575. data/lib/fog/glesys/models/compute/servers.rb +34 -0
  576. data/lib/fog/glesys/models/compute/template.rb +25 -0
  577. data/lib/fog/glesys/models/compute/templates.rb +22 -0
  578. data/lib/fog/glesys/requests/compute/create.rb +15 -0
  579. data/lib/fog/glesys/requests/compute/destroy.rb +18 -0
  580. data/lib/fog/glesys/requests/compute/ip_add.rb +14 -0
  581. data/lib/fog/glesys/requests/compute/ip_details.rb +14 -0
  582. data/lib/fog/glesys/requests/compute/ip_list_free.rb +14 -0
  583. data/lib/fog/glesys/requests/compute/ip_list_own.rb +14 -0
  584. data/lib/fog/glesys/requests/compute/ip_release.rb +14 -0
  585. data/lib/fog/glesys/requests/compute/ip_remove.rb +14 -0
  586. data/lib/fog/glesys/requests/compute/ip_take.rb +14 -0
  587. data/lib/fog/glesys/requests/compute/list_servers.rb +19 -0
  588. data/lib/fog/glesys/requests/compute/server_details.rb +14 -0
  589. data/lib/fog/glesys/requests/compute/server_status.rb +14 -0
  590. data/lib/fog/glesys/requests/compute/start.rb +14 -0
  591. data/lib/fog/glesys/requests/compute/stop.rb +14 -0
  592. data/lib/fog/glesys/requests/compute/template_list.rb +14 -0
  593. data/lib/fog/go_grid.rb +11 -0
  594. data/lib/fog/go_grid/compute.rb +117 -0
  595. data/lib/fog/{compute/models/go_grid → go_grid/models/compute}/image.rb +0 -0
  596. data/lib/fog/go_grid/models/compute/images.rb +33 -0
  597. data/lib/fog/{compute/models/go_grid → go_grid/models/compute}/password.rb +0 -0
  598. data/lib/fog/go_grid/models/compute/passwords.rb +36 -0
  599. data/lib/fog/{compute/models/go_grid → go_grid/models/compute}/server.rb +0 -0
  600. data/lib/fog/go_grid/models/compute/servers.rb +36 -0
  601. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/common_lookup_list.rb +0 -0
  602. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_image_get.rb +0 -0
  603. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_image_list.rb +0 -0
  604. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_ip_list.rb +0 -0
  605. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_loadbalancer_list.rb +0 -0
  606. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_server_add.rb +0 -0
  607. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_server_delete.rb +0 -0
  608. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_server_get.rb +0 -0
  609. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_server_list.rb +0 -0
  610. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/grid_server_power.rb +0 -0
  611. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/support_password_get.rb +0 -0
  612. data/lib/fog/{compute/requests/go_grid → go_grid/requests/compute}/support_password_list.rb +0 -0
  613. data/lib/fog/google.rb +23 -0
  614. data/lib/fog/google/models/storage/directories.rb +43 -0
  615. data/lib/fog/google/models/storage/directory.rb +78 -0
  616. data/lib/fog/google/models/storage/file.rb +141 -0
  617. data/lib/fog/google/models/storage/files.rb +103 -0
  618. data/lib/fog/{storage/parsers/google → google/parsers/storage}/access_control_list.rb +0 -0
  619. data/lib/fog/{storage/parsers/google → google/parsers/storage}/copy_object.rb +0 -0
  620. data/lib/fog/{storage/parsers/google → google/parsers/storage}/get_bucket.rb +0 -0
  621. data/lib/fog/{storage/parsers/google → google/parsers/storage}/get_bucket_logging.rb +0 -0
  622. data/lib/fog/{storage/parsers/google → google/parsers/storage}/get_bucket_object_versions.rb +0 -0
  623. data/lib/fog/{storage/parsers/google → google/parsers/storage}/get_bucket_versioning.rb +0 -0
  624. data/lib/fog/{storage/parsers/google → google/parsers/storage}/get_request_payment.rb +0 -0
  625. data/lib/fog/{storage/parsers/google → google/parsers/storage}/get_service.rb +0 -0
  626. data/lib/fog/google/requests/storage/copy_object.rb +72 -0
  627. data/lib/fog/{storage/requests/google → google/requests/storage}/delete_bucket.rb +0 -0
  628. data/lib/fog/{storage/requests/google → google/requests/storage}/delete_object.rb +0 -0
  629. data/lib/fog/google/requests/storage/get_bucket.rb +111 -0
  630. data/lib/fog/google/requests/storage/get_bucket_acl.rb +63 -0
  631. data/lib/fog/{storage/requests/google → google/requests/storage}/get_object.rb +0 -0
  632. data/lib/fog/google/requests/storage/get_object_acl.rb +74 -0
  633. data/lib/fog/{storage/requests/google → google/requests/storage}/get_object_http_url.rb +0 -0
  634. data/lib/fog/{storage/requests/google → google/requests/storage}/get_object_https_url.rb +0 -0
  635. data/lib/fog/{storage/requests/google → google/requests/storage}/get_object_torrent.rb +0 -0
  636. data/lib/fog/google/requests/storage/get_object_url.rb +37 -0
  637. data/lib/fog/google/requests/storage/get_service.rb +53 -0
  638. data/lib/fog/{storage/requests/google → google/requests/storage}/head_object.rb +0 -0
  639. data/lib/fog/{storage/requests/google → google/requests/storage}/put_bucket.rb +0 -0
  640. data/lib/fog/{storage/requests/google → google/requests/storage}/put_bucket_acl.rb +0 -0
  641. data/lib/fog/{storage/requests/google → google/requests/storage}/put_object.rb +0 -0
  642. data/lib/fog/{storage/requests/google → google/requests/storage}/put_object_url.rb +0 -0
  643. data/lib/fog/google/storage.rb +271 -0
  644. data/lib/fog/libvirt.rb +11 -0
  645. data/lib/fog/libvirt/compute.rb +104 -0
  646. data/lib/fog/libvirt/models/compute/README.md +76 -0
  647. data/lib/fog/libvirt/models/compute/interface.rb +48 -0
  648. data/lib/fog/libvirt/models/compute/interfaces.rb +62 -0
  649. data/lib/fog/libvirt/models/compute/network.rb +65 -0
  650. data/lib/fog/libvirt/models/compute/networks.rb +61 -0
  651. data/lib/fog/libvirt/models/compute/node.rb +45 -0
  652. data/lib/fog/libvirt/models/compute/nodes.rb +40 -0
  653. data/lib/fog/libvirt/models/compute/pool.rb +200 -0
  654. data/lib/fog/libvirt/models/compute/pools.rb +60 -0
  655. data/lib/fog/libvirt/models/compute/server.rb +532 -0
  656. data/lib/fog/libvirt/models/compute/servers.rb +78 -0
  657. data/lib/fog/libvirt/models/compute/templates/network.xml.erb +6 -0
  658. data/lib/fog/libvirt/models/compute/templates/pool.xml.erb +6 -0
  659. data/lib/fog/libvirt/models/compute/templates/server.xml.erb +57 -0
  660. data/lib/fog/libvirt/models/compute/templates/volume.xml.erb +14 -0
  661. data/lib/fog/libvirt/models/compute/uri.rb +142 -0
  662. data/lib/fog/libvirt/models/compute/util.rb +25 -0
  663. data/lib/fog/libvirt/models/compute/volume.rb +176 -0
  664. data/lib/fog/libvirt/models/compute/volumes.rb +87 -0
  665. data/lib/fog/linode.rb +10 -0
  666. data/lib/fog/linode/compute.rb +119 -0
  667. data/lib/fog/linode/dns.rb +94 -0
  668. data/lib/fog/{compute/models/linode → linode/models/compute}/data_center.rb +0 -0
  669. data/lib/fog/linode/models/compute/data_centers.rb +26 -0
  670. data/lib/fog/{compute/models/linode → linode/models/compute}/disk.rb +0 -0
  671. data/lib/fog/linode/models/compute/disks.rb +40 -0
  672. data/lib/fog/{compute/models/linode → linode/models/compute}/flavor.rb +0 -0
  673. data/lib/fog/linode/models/compute/flavors.rb +32 -0
  674. data/lib/fog/{compute/models/linode → linode/models/compute}/image.rb +0 -0
  675. data/lib/fog/linode/models/compute/images.rb +33 -0
  676. data/lib/fog/{compute/models/linode → linode/models/compute}/ip.rb +0 -0
  677. data/lib/fog/linode/models/compute/ips.rb +40 -0
  678. data/lib/fog/{compute/models/linode → linode/models/compute}/kernel.rb +0 -0
  679. data/lib/fog/linode/models/compute/kernels.rb +32 -0
  680. data/lib/fog/{compute/models/linode → linode/models/compute}/server.rb +0 -0
  681. data/lib/fog/linode/models/compute/servers.rb +32 -0
  682. data/lib/fog/{compute/models/linode → linode/models/compute}/stack_script.rb +0 -0
  683. data/lib/fog/linode/models/compute/stack_scripts.rb +32 -0
  684. data/lib/fog/{dns/models/linode → linode/models/dns}/record.rb +0 -0
  685. data/lib/fog/linode/models/dns/records.rb +37 -0
  686. data/lib/fog/linode/models/dns/zone.rb +84 -0
  687. data/lib/fog/linode/models/dns/zones.rb +29 -0
  688. data/lib/fog/{compute/requests/linode → linode/requests/compute}/avail_datacenters.rb +0 -0
  689. data/lib/fog/{compute/requests/linode → linode/requests/compute}/avail_distributions.rb +0 -0
  690. data/lib/fog/{compute/requests/linode → linode/requests/compute}/avail_kernels.rb +0 -0
  691. data/lib/fog/{compute/requests/linode → linode/requests/compute}/avail_linodeplans.rb +0 -0
  692. data/lib/fog/{compute/requests/linode → linode/requests/compute}/avail_stackscripts.rb +0 -0
  693. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_boot.rb +0 -0
  694. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_config_create.rb +0 -0
  695. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_config_list.rb +0 -0
  696. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_create.rb +0 -0
  697. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_delete.rb +0 -0
  698. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_disk_create.rb +0 -0
  699. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_disk_createfromdistribution.rb +0 -0
  700. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_disk_createfromstackscript.rb +0 -0
  701. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_disk_delete.rb +0 -0
  702. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_disk_list.rb +0 -0
  703. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_ip_addprivate.rb +0 -0
  704. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_ip_list.rb +0 -0
  705. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_list.rb +0 -0
  706. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_reboot.rb +0 -0
  707. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_shutdown.rb +0 -0
  708. data/lib/fog/{compute/requests/linode → linode/requests/compute}/linode_update.rb +0 -0
  709. data/lib/fog/{compute/requests/linode → linode/requests/compute}/stackscript_list.rb +0 -0
  710. data/lib/fog/linode/requests/dns/domain_create.rb +43 -0
  711. data/lib/fog/{dns/requests/linode → linode/requests/dns}/domain_delete.rb +0 -0
  712. data/lib/fog/linode/requests/dns/domain_list.rb +42 -0
  713. data/lib/fog/linode/requests/dns/domain_resource_create.rb +44 -0
  714. data/lib/fog/{dns/requests/linode → linode/requests/dns}/domain_resource_delete.rb +0 -0
  715. data/lib/fog/linode/requests/dns/domain_resource_list.rb +43 -0
  716. data/lib/fog/linode/requests/dns/domain_resource_update.rb +46 -0
  717. data/lib/fog/linode/requests/dns/domain_update.rb +40 -0
  718. data/lib/fog/local.rb +11 -0
  719. data/lib/fog/local/models/storage/directories.rb +33 -0
  720. data/lib/fog/local/models/storage/directory.rb +57 -0
  721. data/lib/fog/{storage/models/local → local/models/storage}/file.rb +0 -0
  722. data/lib/fog/local/models/storage/files.rb +87 -0
  723. data/lib/fog/local/storage.rb +71 -0
  724. data/lib/fog/new_servers.rb +11 -0
  725. data/lib/fog/new_servers/compute.rb +98 -0
  726. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/add_server.rb +0 -0
  727. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/cancel_server.rb +0 -0
  728. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/get_server.rb +0 -0
  729. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/list_images.rb +0 -0
  730. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/list_plans.rb +0 -0
  731. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/list_servers.rb +0 -0
  732. data/lib/fog/{compute/requests/new_servers → new_servers/requests/compute}/reboot_server.rb +0 -0
  733. data/lib/fog/ninefold.rb +12 -0
  734. data/lib/fog/ninefold/compute.rb +143 -0
  735. data/lib/fog/{compute/models/ninefold → ninefold/models/compute}/address.rb +0 -0
  736. data/lib/fog/ninefold/models/compute/addresses.rb +31 -0
  737. data/lib/fog/{compute/models/ninefold → ninefold/models/compute}/flavor.rb +0 -0
  738. data/lib/fog/ninefold/models/compute/flavors.rb +30 -0
  739. data/lib/fog/{compute/models/ninefold → ninefold/models/compute}/image.rb +0 -0
  740. data/lib/fog/ninefold/models/compute/images.rb +30 -0
  741. data/lib/fog/{compute/models/ninefold → ninefold/models/compute}/ip_forwarding_rule.rb +0 -0
  742. data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +31 -0
  743. data/lib/fog/ninefold/models/compute/server.rb +185 -0
  744. data/lib/fog/ninefold/models/compute/servers.rb +31 -0
  745. data/lib/fog/ninefold/models/storage/directories.rb +48 -0
  746. data/lib/fog/{storage/models/ninefold → ninefold/models/storage}/directory.rb +0 -0
  747. data/lib/fog/{storage/models/ninefold → ninefold/models/storage}/file.rb +0 -0
  748. data/lib/fog/ninefold/models/storage/files.rb +72 -0
  749. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/associate_ip_address.rb +0 -0
  750. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/change_service_for_virtual_machine.rb +0 -0
  751. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/create_ip_forwarding_rule.rb +0 -0
  752. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/delete_ip_forwarding_rule.rb +0 -0
  753. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/deploy_virtual_machine.rb +0 -0
  754. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/destroy_virtual_machine.rb +0 -0
  755. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/disable_static_nat.rb +0 -0
  756. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/disassociate_ip_address.rb +0 -0
  757. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/enable_static_nat.rb +0 -0
  758. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_accounts.rb +0 -0
  759. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_async_jobs.rb +0 -0
  760. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_capabilities.rb +0 -0
  761. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_disk_offerings.rb +0 -0
  762. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_events.rb +0 -0
  763. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_hypervisors.rb +0 -0
  764. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_ip_forwarding_rules.rb +0 -0
  765. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_network_offerings.rb +0 -0
  766. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_networks.rb +0 -0
  767. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_public_ip_addresses.rb +0 -0
  768. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_resource_limits.rb +0 -0
  769. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_service_offerings.rb +0 -0
  770. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_templates.rb +0 -0
  771. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_virtual_machines.rb +0 -0
  772. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/list_zones.rb +0 -0
  773. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/query_async_job_result.rb +0 -0
  774. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/reboot_virtual_machine.rb +0 -0
  775. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/reset_password_for_virtual_machine.rb +0 -0
  776. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/start_virtual_machine.rb +0 -0
  777. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/stop_virtual_machine.rb +0 -0
  778. data/lib/fog/{compute/requests/ninefold → ninefold/requests/compute}/update_virtual_machine.rb +0 -0
  779. data/lib/fog/{storage/requests/ninefold → ninefold/requests/storage}/delete_namespace.rb +0 -0
  780. data/lib/fog/{storage/requests/ninefold → ninefold/requests/storage}/get_namespace.rb +0 -0
  781. data/lib/fog/{storage/requests/ninefold → ninefold/requests/storage}/post_namespace.rb +0 -0
  782. data/lib/fog/{storage/requests/ninefold → ninefold/requests/storage}/put_namespace.rb +0 -0
  783. data/lib/fog/ninefold/storage.rb +152 -0
  784. data/lib/fog/openstack.rb +112 -0
  785. data/lib/fog/openstack/compute.rb +195 -0
  786. data/lib/fog/openstack/models/compute/flavor.rb +20 -0
  787. data/lib/fog/openstack/models/compute/flavors.rb +28 -0
  788. data/lib/fog/openstack/models/compute/image.rb +57 -0
  789. data/lib/fog/openstack/models/compute/images.rb +33 -0
  790. data/lib/fog/openstack/models/compute/meta.rb +29 -0
  791. data/lib/fog/openstack/models/compute/metadata.rb +69 -0
  792. data/lib/fog/openstack/models/compute/server.rb +192 -0
  793. data/lib/fog/openstack/models/compute/servers.rb +36 -0
  794. data/lib/fog/openstack/models/meta_parent.rb +33 -0
  795. data/lib/fog/openstack/requests/compute/change_password_server.rb +24 -0
  796. data/lib/fog/openstack/requests/compute/confirm_resized_server.rb +24 -0
  797. data/lib/fog/openstack/requests/compute/create_image.rb +49 -0
  798. data/lib/fog/openstack/requests/compute/create_server.rb +72 -0
  799. data/lib/fog/openstack/requests/compute/delete_image.rb +40 -0
  800. data/lib/fog/openstack/requests/compute/delete_meta.rb +28 -0
  801. data/lib/fog/openstack/requests/compute/delete_server.rb +38 -0
  802. data/lib/fog/openstack/requests/compute/get_flavor_details.rb +43 -0
  803. data/lib/fog/openstack/requests/compute/get_image_details.rb +33 -0
  804. data/lib/fog/openstack/requests/compute/get_meta.rb +29 -0
  805. data/lib/fog/openstack/requests/compute/get_server_details.rb +32 -0
  806. data/lib/fog/openstack/requests/compute/list_addresses.rb +32 -0
  807. data/lib/fog/openstack/requests/compute/list_flavors.rb +38 -0
  808. data/lib/fog/openstack/requests/compute/list_flavors_detail.rb +38 -0
  809. data/lib/fog/openstack/requests/compute/list_images.rb +33 -0
  810. data/lib/fog/openstack/requests/compute/list_images_detail.rb +39 -0
  811. data/lib/fog/openstack/requests/compute/list_metadata.rb +28 -0
  812. data/lib/fog/openstack/requests/compute/list_private_addresses.rb +32 -0
  813. data/lib/fog/openstack/requests/compute/list_public_addresses.rb +32 -0
  814. data/lib/fog/openstack/requests/compute/list_servers.rb +33 -0
  815. data/lib/fog/openstack/requests/compute/list_servers_detail.rb +39 -0
  816. data/lib/fog/openstack/requests/compute/reboot_server.rb +24 -0
  817. data/lib/fog/openstack/requests/compute/rebuild_server.rb +31 -0
  818. data/lib/fog/openstack/requests/compute/resize_server.rb +24 -0
  819. data/lib/fog/openstack/requests/compute/revert_resized_server.rb +30 -0
  820. data/lib/fog/openstack/requests/compute/server_action.rb +18 -0
  821. data/lib/fog/openstack/requests/compute/set_metadata.rb +45 -0
  822. data/lib/fog/openstack/requests/compute/update_meta.rb +45 -0
  823. data/lib/fog/openstack/requests/compute/update_metadata.rb +46 -0
  824. data/lib/fog/openstack/requests/compute/update_server.rb +35 -0
  825. data/lib/fog/providers.rb +25 -28
  826. data/lib/fog/rackspace.rb +81 -0
  827. data/lib/fog/rackspace/cdn.rb +101 -0
  828. data/lib/fog/rackspace/compute.rb +158 -0
  829. data/lib/fog/rackspace/dns.rb +132 -0
  830. data/lib/fog/rackspace/load_balancers.rb +14 -38
  831. data/lib/fog/{compute/models/rackspace → rackspace/models/compute}/flavor.rb +0 -0
  832. data/lib/fog/rackspace/models/compute/flavors.rb +28 -0
  833. data/lib/fog/{compute/models/rackspace → rackspace/models/compute}/image.rb +0 -0
  834. data/lib/fog/rackspace/models/compute/images.rb +33 -0
  835. data/lib/fog/{compute/models/rackspace → rackspace/models/compute}/server.rb +0 -0
  836. data/lib/fog/rackspace/models/compute/servers.rb +36 -0
  837. data/lib/fog/rackspace/models/dns/callback.rb +28 -0
  838. data/lib/fog/rackspace/models/dns/record.rb +78 -0
  839. data/lib/fog/rackspace/models/dns/records.rb +38 -0
  840. data/lib/fog/rackspace/models/dns/zone.rb +67 -0
  841. data/lib/fog/rackspace/models/dns/zones.rb +33 -0
  842. data/lib/fog/rackspace/models/storage/directories.rb +43 -0
  843. data/lib/fog/rackspace/models/storage/directory.rb +76 -0
  844. data/lib/fog/{storage/models/rackspace → rackspace/models/storage}/file.rb +0 -0
  845. data/lib/fog/rackspace/models/storage/files.rb +94 -0
  846. data/lib/fog/{cdn/requests/rackspace → rackspace/requests/cdn}/get_containers.rb +0 -0
  847. data/lib/fog/{cdn/requests/rackspace → rackspace/requests/cdn}/head_container.rb +0 -0
  848. data/lib/fog/{cdn/requests/rackspace → rackspace/requests/cdn}/post_container.rb +0 -0
  849. data/lib/fog/{cdn/requests/rackspace → rackspace/requests/cdn}/put_container.rb +0 -0
  850. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/confirm_resized_server.rb +0 -0
  851. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/create_image.rb +0 -0
  852. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/create_server.rb +0 -0
  853. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/delete_image.rb +0 -0
  854. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/delete_server.rb +0 -0
  855. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/get_flavor_details.rb +0 -0
  856. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/get_image_details.rb +0 -0
  857. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/get_server_details.rb +0 -0
  858. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_addresses.rb +0 -0
  859. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_flavors.rb +0 -0
  860. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_flavors_detail.rb +0 -0
  861. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_images.rb +0 -0
  862. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_images_detail.rb +0 -0
  863. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_private_addresses.rb +0 -0
  864. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_public_addresses.rb +0 -0
  865. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_servers.rb +0 -0
  866. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/list_servers_detail.rb +0 -0
  867. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/reboot_server.rb +0 -0
  868. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/resize_server.rb +0 -0
  869. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/revert_resized_server.rb +0 -0
  870. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/server_action.rb +0 -0
  871. data/lib/fog/{compute/requests/rackspace → rackspace/requests/compute}/update_server.rb +0 -0
  872. data/lib/fog/rackspace/requests/dns/add_records.rb +34 -0
  873. data/lib/fog/rackspace/requests/dns/callback.rb +19 -0
  874. data/lib/fog/rackspace/requests/dns/create_domains.rb +48 -0
  875. data/lib/fog/rackspace/requests/dns/list_domain_details.rb +32 -0
  876. data/lib/fog/rackspace/requests/dns/list_domains.rb +21 -0
  877. data/lib/fog/rackspace/requests/dns/list_record_details.rb +21 -0
  878. data/lib/fog/rackspace/requests/dns/list_records.rb +23 -0
  879. data/lib/fog/rackspace/requests/dns/list_subdomains.rb +23 -0
  880. data/lib/fog/rackspace/requests/dns/modify_domain.rb +36 -0
  881. data/lib/fog/rackspace/requests/dns/modify_record.rb +37 -0
  882. data/lib/fog/rackspace/requests/dns/remove_domain.rb +29 -0
  883. data/lib/fog/rackspace/requests/dns/remove_domains.rb +27 -0
  884. data/lib/fog/rackspace/requests/dns/remove_record.rb +21 -0
  885. data/lib/fog/rackspace/requests/dns/remove_records.rb +20 -0
  886. data/lib/fog/rackspace/requests/storage/delete_container.rb +22 -0
  887. data/lib/fog/rackspace/requests/storage/delete_object.rb +23 -0
  888. data/lib/fog/rackspace/requests/storage/get_container.rb +44 -0
  889. data/lib/fog/{storage/requests/rackspace → rackspace/requests/storage}/get_containers.rb +0 -0
  890. data/lib/fog/rackspace/requests/storage/get_object.rb +24 -0
  891. data/lib/fog/rackspace/requests/storage/head_container.rb +28 -0
  892. data/lib/fog/{storage/requests/rackspace → rackspace/requests/storage}/head_containers.rb +0 -0
  893. data/lib/fog/rackspace/requests/storage/head_object.rb +23 -0
  894. data/lib/fog/rackspace/requests/storage/put_container.rb +22 -0
  895. data/lib/fog/rackspace/requests/storage/put_object.rb +29 -0
  896. data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +25 -0
  897. data/lib/fog/rackspace/storage.rb +131 -0
  898. data/lib/fog/slicehost.rb +12 -0
  899. data/lib/fog/slicehost/compute.rb +104 -0
  900. data/lib/fog/slicehost/dns.rb +100 -0
  901. data/lib/fog/{compute/models/slicehost → slicehost/models/compute}/flavor.rb +0 -0
  902. data/lib/fog/slicehost/models/compute/flavors.rb +28 -0
  903. data/lib/fog/{compute/models/slicehost → slicehost/models/compute}/image.rb +0 -0
  904. data/lib/fog/slicehost/models/compute/images.rb +27 -0
  905. data/lib/fog/{compute/models/slicehost → slicehost/models/compute}/server.rb +0 -0
  906. data/lib/fog/slicehost/models/compute/servers.rb +38 -0
  907. data/lib/fog/{dns/models/slicehost → slicehost/models/dns}/record.rb +0 -0
  908. data/lib/fog/slicehost/models/dns/records.rb +36 -0
  909. data/lib/fog/slicehost/models/dns/zone.rb +69 -0
  910. data/lib/fog/slicehost/models/dns/zones.rb +28 -0
  911. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/create_slice.rb +0 -0
  912. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_backups.rb +0 -0
  913. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_flavor.rb +0 -0
  914. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_flavors.rb +0 -0
  915. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_image.rb +0 -0
  916. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_images.rb +0 -0
  917. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_slice.rb +0 -0
  918. data/lib/fog/{compute/parsers/slicehost → slicehost/parsers/compute}/get_slices.rb +0 -0
  919. data/lib/fog/{dns/parsers/slicehost → slicehost/parsers/dns}/create_record.rb +0 -0
  920. data/lib/fog/{dns/parsers/slicehost → slicehost/parsers/dns}/create_zone.rb +0 -0
  921. data/lib/fog/{dns/parsers/slicehost → slicehost/parsers/dns}/get_record.rb +0 -0
  922. data/lib/fog/{dns/parsers/slicehost → slicehost/parsers/dns}/get_records.rb +0 -0
  923. data/lib/fog/{dns/parsers/slicehost → slicehost/parsers/dns}/get_zone.rb +0 -0
  924. data/lib/fog/{dns/parsers/slicehost → slicehost/parsers/dns}/get_zones.rb +0 -0
  925. data/lib/fog/slicehost/requests/compute/create_slice.rb +41 -0
  926. data/lib/fog/{compute/requests/slicehost → slicehost/requests/compute}/delete_slice.rb +0 -0
  927. data/lib/fog/slicehost/requests/compute/get_backups.rb +29 -0
  928. data/lib/fog/slicehost/requests/compute/get_flavor.rb +32 -0
  929. data/lib/fog/slicehost/requests/compute/get_flavors.rb +29 -0
  930. data/lib/fog/slicehost/requests/compute/get_image.rb +30 -0
  931. data/lib/fog/slicehost/requests/compute/get_images.rb +27 -0
  932. data/lib/fog/slicehost/requests/compute/get_slice.rb +38 -0
  933. data/lib/fog/slicehost/requests/compute/get_slices.rb +35 -0
  934. data/lib/fog/{compute/requests/slicehost → slicehost/requests/compute}/reboot_slice.rb +0 -0
  935. data/lib/fog/slicehost/requests/dns/create_record.rb +52 -0
  936. data/lib/fog/slicehost/requests/dns/create_zone.rb +46 -0
  937. data/lib/fog/{dns/requests/slicehost → slicehost/requests/dns}/delete_record.rb +0 -0
  938. data/lib/fog/{dns/requests/slicehost → slicehost/requests/dns}/delete_zone.rb +0 -0
  939. data/lib/fog/slicehost/requests/dns/get_record.rb +32 -0
  940. data/lib/fog/slicehost/requests/dns/get_records.rb +33 -0
  941. data/lib/fog/slicehost/requests/dns/get_zone.rb +32 -0
  942. data/lib/fog/slicehost/requests/dns/get_zones.rb +30 -0
  943. data/lib/fog/storage.rb +5 -5
  944. data/lib/fog/storm_on_demand.rb +12 -0
  945. data/lib/fog/storm_on_demand/compute.rb +137 -0
  946. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/balancer.rb +0 -0
  947. data/lib/fog/storm_on_demand/models/compute/balancers.rb +21 -0
  948. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/config.rb +0 -0
  949. data/lib/fog/storm_on_demand/models/compute/configs.rb +22 -0
  950. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/image.rb +0 -0
  951. data/lib/fog/storm_on_demand/models/compute/images.rb +21 -0
  952. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/private_ip.rb +0 -0
  953. data/lib/fog/storm_on_demand/models/compute/private_ips.rb +31 -0
  954. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/server.rb +0 -0
  955. data/lib/fog/storm_on_demand/models/compute/servers.rb +26 -0
  956. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/stat.rb +0 -0
  957. data/lib/fog/storm_on_demand/models/compute/stats.rb +22 -0
  958. data/lib/fog/{compute/models/storm_on_demand → storm_on_demand/models/compute}/template.rb +0 -0
  959. data/lib/fog/storm_on_demand/models/compute/templates.rb +21 -0
  960. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/add_balancer_node.rb +0 -0
  961. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/clone_server.rb +0 -0
  962. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/create_server.rb +0 -0
  963. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/delete_server.rb +0 -0
  964. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/get_server.rb +0 -0
  965. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/get_stats.rb +0 -0
  966. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/list_balancers.rb +0 -0
  967. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/list_configs.rb +0 -0
  968. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/list_images.rb +0 -0
  969. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/list_private_ips.rb +0 -0
  970. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/list_servers.rb +0 -0
  971. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/list_templates.rb +0 -0
  972. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/reboot_server.rb +0 -0
  973. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/remove_balancer_node.rb +0 -0
  974. data/lib/fog/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/resize_server.rb +0 -0
  975. data/lib/fog/terremark.rb +1 -1
  976. data/lib/fog/terremark/vcloud.rb +8 -9
  977. data/lib/fog/vcloud.rb +11 -0
  978. data/lib/fog/vcloud/compute.rb +311 -0
  979. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/catalog.rb +0 -0
  980. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/catalog_item.rb +0 -0
  981. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/catalog_items.rb +0 -0
  982. data/lib/fog/vcloud/models/compute/catalogs.rb +41 -0
  983. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/ip.rb +0 -0
  984. data/lib/fog/vcloud/models/compute/ips.rb +33 -0
  985. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/network.rb +0 -0
  986. data/lib/fog/vcloud/models/compute/networks.rb +34 -0
  987. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/server.rb +0 -0
  988. data/lib/fog/vcloud/models/compute/servers.rb +58 -0
  989. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/task.rb +0 -0
  990. data/lib/fog/vcloud/models/compute/tasks.rb +32 -0
  991. data/lib/fog/{compute/models/vcloud → vcloud/models/compute}/vdc.rb +0 -0
  992. data/lib/fog/vcloud/models/compute/vdcs.rb +40 -0
  993. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/clone_vapp.rb +0 -0
  994. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_network.rb +0 -0
  995. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_network_ip.rb +0 -0
  996. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_node.rb +0 -0
  997. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_vapp.rb +0 -0
  998. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_vm.rb +0 -0
  999. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_vm_disks.rb +0 -0
  1000. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_vm_memory.rb +0 -0
  1001. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/configure_vm_name_description.rb +0 -0
  1002. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/delete_node.rb +0 -0
  1003. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/delete_vapp.rb +0 -0
  1004. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_catalog.rb +0 -0
  1005. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_catalog_item.rb +0 -0
  1006. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_customization_options.rb +0 -0
  1007. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_network.rb +0 -0
  1008. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_network_extensions.rb +0 -0
  1009. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_network_ip.rb +0 -0
  1010. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_network_ips.rb +0 -0
  1011. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_organization.rb +0 -0
  1012. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_task.rb +0 -0
  1013. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_task_list.rb +0 -0
  1014. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_vapp.rb +0 -0
  1015. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_vapp_template.rb +0 -0
  1016. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_vdc.rb +0 -0
  1017. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_vm_disks.rb +0 -0
  1018. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/get_vm_memory.rb +0 -0
  1019. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/instantiate_vapp_template.rb +0 -0
  1020. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/login.rb +0 -0
  1021. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/power_off.rb +0 -0
  1022. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/power_on.rb +0 -0
  1023. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/power_reset.rb +0 -0
  1024. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/power_shutdown.rb +0 -0
  1025. data/lib/fog/{compute/requests/vcloud → vcloud/requests/compute}/undeploy.rb +0 -0
  1026. data/lib/fog/virtual_box.rb +11 -0
  1027. data/lib/fog/virtual_box/compute.rb +49 -0
  1028. data/lib/fog/virtual_box/models/compute/medium.rb +87 -0
  1029. data/lib/fog/{compute/models/virtual_box → virtual_box/models/compute}/medium_format.rb +0 -0
  1030. data/lib/fog/virtual_box/models/compute/mediums.rb +32 -0
  1031. data/lib/fog/{compute/models/virtual_box → virtual_box/models/compute}/nat_engine.rb +0 -0
  1032. data/lib/fog/{compute/models/virtual_box → virtual_box/models/compute}/nat_redirect.rb +0 -0
  1033. data/lib/fog/virtual_box/models/compute/nat_redirects.rb +41 -0
  1034. data/lib/fog/virtual_box/models/compute/network_adapter.rb +82 -0
  1035. data/lib/fog/virtual_box/models/compute/network_adapters.rb +42 -0
  1036. data/lib/fog/{compute/models/virtual_box → virtual_box/models/compute}/server.rb +0 -0
  1037. data/lib/fog/virtual_box/models/compute/servers.rb +41 -0
  1038. data/lib/fog/{compute/models/virtual_box → virtual_box/models/compute}/storage_controller.rb +0 -0
  1039. data/lib/fog/virtual_box/models/compute/storage_controllers.rb +38 -0
  1040. data/lib/fog/vmfusion.rb +11 -0
  1041. data/lib/fog/vmfusion/compute.rb +29 -0
  1042. data/lib/fog/vmfusion/models/compute/server.rb +223 -0
  1043. data/lib/fog/vmfusion/models/compute/servers.rb +37 -0
  1044. data/lib/fog/voxel.rb +16 -0
  1045. data/lib/fog/voxel/compute.rb +125 -0
  1046. data/lib/fog/{compute/models/voxel → voxel/models/compute}/image.rb +0 -0
  1047. data/lib/fog/voxel/models/compute/images.rb +30 -0
  1048. data/lib/fog/{compute/models/voxel → voxel/models/compute}/server.rb +0 -0
  1049. data/lib/fog/voxel/models/compute/servers.rb +32 -0
  1050. data/lib/fog/{compute/parsers/voxel → voxel/parsers/compute}/basic.rb +0 -0
  1051. data/lib/fog/{compute/parsers/voxel → voxel/parsers/compute}/devices_list.rb +0 -0
  1052. data/lib/fog/{compute/parsers/voxel → voxel/parsers/compute}/images_list.rb +0 -0
  1053. data/lib/fog/{compute/parsers/voxel → voxel/parsers/compute}/voxcloud_create.rb +0 -0
  1054. data/lib/fog/{compute/parsers/voxel → voxel/parsers/compute}/voxcloud_delete.rb +0 -0
  1055. data/lib/fog/{compute/parsers/voxel → voxel/parsers/compute}/voxcloud_status.rb +0 -0
  1056. data/lib/fog/voxel/requests/compute/devices_list.rb +24 -0
  1057. data/lib/fog/voxel/requests/compute/devices_power.rb +22 -0
  1058. data/lib/fog/voxel/requests/compute/images_list.rb +31 -0
  1059. data/lib/fog/voxel/requests/compute/voxcloud_create.rb +22 -0
  1060. data/lib/fog/voxel/requests/compute/voxcloud_delete.rb +20 -0
  1061. data/lib/fog/voxel/requests/compute/voxcloud_status.rb +24 -0
  1062. data/lib/fog/vsphere.rb +17 -0
  1063. data/lib/fog/vsphere/compute.rb +158 -0
  1064. data/lib/fog/vsphere/models/compute/server.rb +63 -0
  1065. data/lib/fog/vsphere/models/compute/servers.rb +37 -0
  1066. data/lib/fog/vsphere/requests/compute/current_time.rb +22 -0
  1067. data/lib/fog/vsphere/requests/compute/find_vm_by_ref.rb +41 -0
  1068. data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +163 -0
  1069. data/lib/fog/vsphere/requests/compute/vm_clone.rb +97 -0
  1070. data/lib/fog/vsphere/requests/compute/vm_destroy.rb +34 -0
  1071. data/lib/fog/vsphere/requests/compute/vm_power_off.rb +41 -0
  1072. data/lib/fog/vsphere/requests/compute/vm_power_on.rb +30 -0
  1073. data/lib/fog/vsphere/requests/compute/vm_reboot.rb +35 -0
  1074. data/lib/fog/zerigo.rb +11 -0
  1075. data/lib/fog/zerigo/dns.rb +109 -0
  1076. data/lib/fog/{dns/models/zerigo → zerigo/models/dns}/record.rb +0 -0
  1077. data/lib/fog/zerigo/models/dns/records.rb +41 -0
  1078. data/lib/fog/zerigo/models/dns/zone.rb +88 -0
  1079. data/lib/fog/zerigo/models/dns/zones.rb +30 -0
  1080. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/count_hosts.rb +0 -0
  1081. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/count_zones.rb +0 -0
  1082. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/create_host.rb +0 -0
  1083. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/create_zone.rb +0 -0
  1084. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/find_hosts.rb +0 -0
  1085. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/get_host.rb +0 -0
  1086. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/get_zone.rb +0 -0
  1087. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/get_zone_stats.rb +0 -0
  1088. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/list_hosts.rb +0 -0
  1089. data/lib/fog/{dns/parsers/zerigo → zerigo/parsers/dns}/list_zones.rb +0 -0
  1090. data/lib/fog/zerigo/requests/dns/count_hosts.rb +28 -0
  1091. data/lib/fog/zerigo/requests/dns/count_zones.rb +28 -0
  1092. data/lib/fog/zerigo/requests/dns/create_host.rb +62 -0
  1093. data/lib/fog/zerigo/requests/dns/create_zone.rb +89 -0
  1094. data/lib/fog/{dns/requests/zerigo → zerigo/requests/dns}/delete_host.rb +0 -0
  1095. data/lib/fog/{dns/requests/zerigo → zerigo/requests/dns}/delete_zone.rb +0 -0
  1096. data/lib/fog/zerigo/requests/dns/find_hosts.rb +55 -0
  1097. data/lib/fog/zerigo/requests/dns/get_host.rb +39 -0
  1098. data/lib/fog/zerigo/requests/dns/get_zone.rb +49 -0
  1099. data/lib/fog/zerigo/requests/dns/get_zone_stats.rb +36 -0
  1100. data/lib/fog/zerigo/requests/dns/list_hosts.rb +40 -0
  1101. data/lib/fog/zerigo/requests/dns/list_zones.rb +45 -0
  1102. data/lib/fog/{dns/requests/zerigo → zerigo/requests/dns}/update_host.rb +0 -0
  1103. data/lib/fog/{dns/requests/zerigo → zerigo/requests/dns}/update_zone.rb +0 -0
  1104. data/spec/core/current_machine_spec.rb +22 -0
  1105. data/tests/aws/models/auto_scaling/activities_tests.rb +1 -1
  1106. data/tests/aws/models/auto_scaling/configuration_test.rb +1 -1
  1107. data/tests/aws/models/auto_scaling/configurations_tests.rb +1 -1
  1108. data/tests/aws/models/auto_scaling/instances_tests.rb +1 -1
  1109. data/tests/aws/models/cloud_watch/metric_statistics_tests.rb +4 -4
  1110. data/tests/aws/models/cloud_watch/metrics_tests.rb +2 -2
  1111. data/tests/{compute/models/aws → aws/models/compute}/address_tests.rb +0 -0
  1112. data/tests/{compute/models/aws → aws/models/compute}/addresses_tests.rb +0 -0
  1113. data/tests/{compute/models/aws → aws/models/compute}/key_pair_tests.rb +0 -0
  1114. data/tests/{compute/models/aws → aws/models/compute}/key_pairs_tests.rb +0 -0
  1115. data/tests/aws/models/compute/security_group_tests.rb +32 -0
  1116. data/tests/{compute/models/aws/security_groups.rb → aws/models/compute/security_groups_tests.rb} +0 -0
  1117. data/tests/aws/models/compute/server_tests.rb +63 -0
  1118. data/tests/{compute/models/aws → aws/models/compute}/snapshot_tests.rb +0 -0
  1119. data/tests/{compute/models/aws → aws/models/compute}/snapshots_tests.rb +0 -0
  1120. data/tests/{compute/models/aws → aws/models/compute}/volume_tests.rb +0 -0
  1121. data/tests/{compute/models/aws → aws/models/compute}/volumes_tests.rb +0 -0
  1122. data/tests/aws/models/elasticache/cluster_tests.rb +30 -0
  1123. data/tests/aws/models/elasticache/parameter_groups_tests.rb +17 -0
  1124. data/tests/aws/models/elasticache/security_groups_tests.rb +52 -0
  1125. data/tests/aws/models/elb/model_tests.rb +15 -13
  1126. data/tests/aws/models/rds/parameter_group_tests.rb +1 -1
  1127. data/tests/aws/models/rds/parameter_groups_tests.rb +1 -1
  1128. data/tests/aws/models/rds/security_group_tests.rb +1 -1
  1129. data/tests/aws/models/rds/security_groups_tests.rb +1 -1
  1130. data/tests/aws/models/rds/server_tests.rb +5 -5
  1131. data/tests/aws/models/rds/servers_tests.rb +1 -1
  1132. data/tests/aws/models/rds/snapshot_tests.rb +2 -2
  1133. data/tests/aws/models/rds/snapshots_tests.rb +2 -2
  1134. data/tests/aws/requests/auto_scaling/auto_scaling_tests.rb +19 -19
  1135. data/tests/aws/requests/auto_scaling/model_tests.rb +11 -11
  1136. data/tests/aws/requests/cloud_formation/stack_tests.rb +7 -7
  1137. data/tests/aws/requests/cloud_watch/get_metric_statistics_tests.rb +1 -1
  1138. data/tests/aws/requests/cloud_watch/list_metrics_test.rb +4 -4
  1139. data/tests/aws/requests/cloud_watch/put_metric_data_tests.rb +4 -4
  1140. data/tests/{compute/requests/aws → aws/requests/compute}/address_tests.rb +0 -0
  1141. data/tests/{compute/requests/aws → aws/requests/compute}/availability_zone_tests.rb +0 -0
  1142. data/tests/{compute/requests/aws → aws/requests/compute}/helper.rb +0 -0
  1143. data/tests/aws/requests/compute/image_tests.rb +76 -0
  1144. data/tests/aws/requests/compute/instance_tests.rb +234 -0
  1145. data/tests/{compute/requests/aws → aws/requests/compute}/key_pair_tests.rb +0 -0
  1146. data/tests/{compute/requests/aws → aws/requests/compute}/placement_group_tests.rb +0 -0
  1147. data/tests/{compute/requests/aws → aws/requests/compute}/region_tests.rb +0 -0
  1148. data/tests/aws/requests/compute/security_group_tests.rb +142 -0
  1149. data/tests/{compute/requests/aws → aws/requests/compute}/snapshot_tests.rb +0 -0
  1150. data/tests/{compute/requests/aws → aws/requests/compute}/spot_datafeed_subscription_tests.rb +0 -0
  1151. data/tests/{compute/requests/aws → aws/requests/compute}/spot_instance_tests.rb +0 -0
  1152. data/tests/{compute/requests/aws → aws/requests/compute}/spot_price_history_tests.rb +0 -0
  1153. data/tests/aws/requests/compute/tag_tests.rb +37 -0
  1154. data/tests/{compute/requests/aws → aws/requests/compute}/volume_tests.rb +0 -0
  1155. data/tests/{dns/requests/aws → aws/requests/dns}/dns_tests.rb +0 -0
  1156. data/tests/aws/requests/elasticache/cache_cluster_tests.rb +137 -0
  1157. data/tests/aws/requests/elasticache/describe_events.rb +17 -0
  1158. data/tests/aws/requests/elasticache/helper.rb +68 -0
  1159. data/tests/aws/requests/elasticache/parameter_group_tests.rb +105 -0
  1160. data/tests/aws/requests/elasticache/security_group_tests.rb +107 -0
  1161. data/tests/aws/requests/elb/listener_tests.rb +9 -9
  1162. data/tests/aws/requests/elb/load_balancer_tests.rb +11 -11
  1163. data/tests/aws/requests/elb/policy_tests.rb +8 -8
  1164. data/tests/aws/requests/iam/access_key_tests.rb +6 -6
  1165. data/tests/aws/requests/iam/group_policy_tests.rb +5 -5
  1166. data/tests/aws/requests/iam/group_tests.rb +3 -3
  1167. data/tests/aws/requests/iam/login_profile_tests.rb +9 -9
  1168. data/tests/aws/requests/iam/server_certificate_tests.rb +19 -11
  1169. data/tests/aws/requests/iam/user_policy_tests.rb +5 -5
  1170. data/tests/aws/requests/iam/user_tests.rb +7 -7
  1171. data/tests/aws/requests/rds/instance_tests.rb +19 -19
  1172. data/tests/aws/requests/rds/parameter_group_tests.rb +12 -12
  1173. data/tests/aws/requests/rds/parameter_request_tests.rb +5 -5
  1174. data/tests/aws/requests/ses/verified_email_address_tests.rb +3 -3
  1175. data/tests/aws/requests/simpledb/attributes_tests.rb +18 -18
  1176. data/tests/aws/requests/simpledb/domain_tests.rb +7 -7
  1177. data/tests/aws/requests/sns/subscription_tests.rb +12 -12
  1178. data/tests/aws/requests/sns/topic_tests.rb +5 -5
  1179. data/tests/aws/requests/sqs/message_tests.rb +6 -12
  1180. data/tests/aws/requests/sqs/queue_tests.rb +5 -10
  1181. data/tests/aws/requests/storage/bucket_tests.rb +204 -0
  1182. data/tests/{storage/requests/aws → aws/requests/storage}/multipart_upload_tests.rb +0 -0
  1183. data/tests/aws/requests/storage/object_tests.rb +117 -0
  1184. data/tests/{compute/requests/bluebox → bluebox/requests/compute}/block_tests.rb +0 -0
  1185. data/tests/{compute/requests/bluebox → bluebox/requests/compute}/helper.rb +0 -0
  1186. data/tests/{compute/requests/bluebox → bluebox/requests/compute}/product_tests.rb +0 -0
  1187. data/tests/{compute/requests/bluebox → bluebox/requests/compute}/template_tests.rb +0 -0
  1188. data/tests/{dns/requests/bluebox → bluebox/requests/dns}/dns_tests.rb +0 -0
  1189. data/tests/brightbox/requests/compute/account_tests.rb +32 -0
  1190. data/tests/brightbox/requests/compute/api_client_tests.rb +53 -0
  1191. data/tests/{compute/requests/brightbox → brightbox/requests/compute}/cloud_ip_tests.rb +0 -0
  1192. data/tests/brightbox/requests/compute/helper.rb +537 -0
  1193. data/tests/{compute/requests/brightbox → brightbox/requests/compute}/image_tests.rb +0 -0
  1194. data/tests/brightbox/requests/compute/interface_tests.rb +30 -0
  1195. data/tests/brightbox/requests/compute/load_balancer_tests.rb +75 -0
  1196. data/tests/brightbox/requests/compute/server_group_tests.rb +89 -0
  1197. data/tests/brightbox/requests/compute/server_tests.rb +75 -0
  1198. data/tests/{compute/requests/brightbox → brightbox/requests/compute}/server_type_tests.rb +0 -0
  1199. data/tests/brightbox/requests/compute/user_tests.rb +41 -0
  1200. data/tests/{compute/requests/brightbox → brightbox/requests/compute}/zone_tests.rb +0 -0
  1201. data/tests/compute/helper.rb +3 -0
  1202. data/tests/compute/models/flavors_tests.rb +1 -1
  1203. data/tests/core/credential_tests.rb +20 -1
  1204. data/tests/dns/helper.rb +6 -0
  1205. data/tests/{dns/requests/dnsimple → dnsimple/requests/dns}/dns_tests.rb +0 -0
  1206. data/tests/{dns/requests/dnsmadeeasy → dnsmadeeasy/requests/dns}/dns_tests.rb +0 -0
  1207. data/tests/dynect/requests/dns/dns_tests.rb +193 -0
  1208. data/tests/glesys/requests/compute/helper.rb +213 -0
  1209. data/tests/glesys/requests/compute/ip_tests.rb +67 -0
  1210. data/tests/glesys/requests/compute/server_tests.rb +87 -0
  1211. data/tests/glesys/requests/compute/template_tests.rb +12 -0
  1212. data/tests/{compute/requests/go_grid → go_grid/requests/compute}/image_tests.rb +0 -0
  1213. data/tests/{storage/requests/google → google/requests/storage}/bucket_tests.rb +0 -0
  1214. data/tests/{storage/requests/google → google/requests/storage}/object_tests.rb +0 -0
  1215. data/tests/helper.rb +2 -2
  1216. data/tests/helpers/collection_helper.rb +5 -0
  1217. data/tests/helpers/compute/server_helper.rb +1 -0
  1218. data/tests/helpers/formats_helper.rb +16 -8
  1219. data/tests/helpers/formats_helper_tests.rb +8 -0
  1220. data/tests/helpers/mock_helper.rb +13 -3
  1221. data/tests/{compute/requests/linode → linode/requests/compute}/datacenter_tests.rb +0 -0
  1222. data/tests/{compute/requests/linode → linode/requests/compute}/distribution_tests.rb +0 -0
  1223. data/tests/{compute/requests/linode → linode/requests/compute}/helper.rb +0 -0
  1224. data/tests/{compute/requests/linode → linode/requests/compute}/kernel_tests.rb +0 -0
  1225. data/tests/{compute/requests/linode → linode/requests/compute}/linode_tests.rb +0 -0
  1226. data/tests/linode/requests/compute/linodeplans_tests.rb +40 -0
  1227. data/tests/{compute/requests/linode → linode/requests/compute}/stackscripts_tests.rb +0 -0
  1228. data/tests/{dns/requests/linode → linode/requests/dns}/dns_tests.rb +0 -0
  1229. data/tests/{storage/models/ninefold → ninefold/models/storage}/file_update_tests.rb +0 -0
  1230. data/tests/{storage/models/ninefold → ninefold/models/storage}/nested_directories_tests.rb +0 -0
  1231. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/address_tests.rb +0 -0
  1232. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/async_job_tests.rb +0 -0
  1233. data/tests/ninefold/requests/compute/helper.rb +317 -0
  1234. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/list_tests.rb +0 -0
  1235. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/nat_tests.rb +0 -0
  1236. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/network_tests.rb +0 -0
  1237. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/template_tests.rb +0 -0
  1238. data/tests/{compute/requests/ninefold → ninefold/requests/compute}/virtual_machine_tests.rb +0 -0
  1239. data/tests/openstack/requests/compute/flavor_tests.rb +35 -0
  1240. data/tests/openstack/requests/compute/helper.rb +17 -0
  1241. data/tests/openstack/requests/compute/image_tests.rb +59 -0
  1242. data/tests/openstack/requests/compute/server_tests.rb +142 -0
  1243. data/tests/{compute/requests/rackspace → rackspace/requests/compute}/address_tests.rb +0 -0
  1244. data/tests/{compute/requests/rackspace → rackspace/requests/compute}/flavor_tests.rb +0 -0
  1245. data/tests/{compute/requests/rackspace → rackspace/requests/compute}/helper.rb +0 -0
  1246. data/tests/{compute/requests/rackspace → rackspace/requests/compute}/image_tests.rb +0 -0
  1247. data/tests/{compute/requests/rackspace → rackspace/requests/compute}/resize_tests.rb +0 -0
  1248. data/tests/{compute/requests/rackspace → rackspace/requests/compute}/server_tests.rb +0 -0
  1249. data/tests/rackspace/requests/dns/dns_tests.rb +119 -0
  1250. data/tests/rackspace/requests/dns/helper.rb +140 -0
  1251. data/tests/rackspace/requests/dns/records_tests.rb +81 -0
  1252. data/tests/rackspace/requests/{access_list_tests.rb → load_balancers/access_list_tests.rb} +0 -0
  1253. data/tests/rackspace/requests/{algorithm_tests.rb → load_balancers/algorithm_tests.rb} +0 -0
  1254. data/tests/rackspace/requests/{connection_logging_tests.rb → load_balancers/connection_logging_tests.rb} +0 -0
  1255. data/tests/rackspace/requests/{connection_throttling_tests.rb → load_balancers/connection_throttling_tests.rb} +0 -0
  1256. data/tests/rackspace/requests/load_balancers/helper.rb +123 -0
  1257. data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +63 -0
  1258. data/tests/rackspace/requests/{load_balancer_usage_tests.rb → load_balancers/load_balancer_usage_tests.rb} +0 -0
  1259. data/tests/rackspace/requests/{monitor_tests.rb → load_balancers/monitor_tests.rb} +0 -0
  1260. data/tests/rackspace/requests/{node_tests.rb → load_balancers/node_tests.rb} +0 -0
  1261. data/tests/rackspace/requests/{protocol_tests.rb → load_balancers/protocol_tests.rb} +0 -0
  1262. data/tests/rackspace/requests/{session_persistence_tests.rb → load_balancers/session_persistence_tests.rb} +0 -0
  1263. data/tests/rackspace/requests/{usage_tests.rb → load_balancers/usage_tests.rb} +0 -0
  1264. data/tests/rackspace/requests/load_balancers/virtual_ip_tests.rb +40 -0
  1265. data/tests/{storage/requests/rackspace → rackspace/requests/storage}/container_tests.rb +0 -0
  1266. data/tests/{storage/requests/rackspace → rackspace/requests/storage}/large_object_tests.rb +0 -0
  1267. data/tests/{storage/requests/rackspace → rackspace/requests/storage}/object_tests.rb +0 -0
  1268. data/tests/rackspace/url_encoding_tests.rb +3 -0
  1269. data/tests/{compute/requests/slicehost → slicehost/requests/compute}/backup_tests.rb +0 -0
  1270. data/tests/{compute/requests/slicehost → slicehost/requests/compute}/flavor_tests.rb +0 -0
  1271. data/tests/{compute/requests/slicehost → slicehost/requests/compute}/image_tests.rb +0 -0
  1272. data/tests/{compute/requests/slicehost → slicehost/requests/compute}/slice_tests.rb +0 -0
  1273. data/tests/{dns/requests/slicehost → slicehost/requests/dns}/dns_tests.rb +0 -0
  1274. data/tests/storage/models/directory_test.rb +2 -2
  1275. data/tests/{compute/requests/storm_on_demand → storm_on_demand/requests/compute}/server_tests.rb +0 -0
  1276. data/tests/{compute/models/vcloud → vcloud/models/compute}/helper.rb +0 -0
  1277. data/tests/{compute/models/vcloud → vcloud/models/compute}/servers_tests.rb +0 -0
  1278. data/tests/{compute/requests/vcloud → vcloud/requests/compute}/disk_configure_tests.rb +0 -0
  1279. data/tests/{compute/requests/voxel → voxel/requests/compute}/image_tests.rb +0 -0
  1280. data/tests/{compute/requests/voxel → voxel/requests/compute}/server_tests.rb +0 -0
  1281. data/tests/vsphere/compute_tests.rb +47 -0
  1282. data/tests/vsphere/models/compute/server_tests.rb +45 -0
  1283. data/tests/vsphere/models/compute/servers_tests.rb +15 -0
  1284. data/tests/vsphere/requests/compute/current_time_tests.rb +12 -0
  1285. data/tests/vsphere/requests/compute/find_vm_by_ref_tests.rb +26 -0
  1286. data/tests/vsphere/requests/compute/list_virtual_machines_tests.rb +46 -0
  1287. data/tests/vsphere/requests/compute/vm_clone_tests.rb +24 -0
  1288. data/tests/vsphere/requests/compute/vm_destroy_tests.rb +17 -0
  1289. data/tests/vsphere/requests/compute/vm_power_off_tests.rb +26 -0
  1290. data/tests/vsphere/requests/compute/vm_power_on_tests.rb +17 -0
  1291. data/tests/vsphere/requests/compute/vm_reboot_tests.rb +26 -0
  1292. data/tests/watchr.rb +22 -0
  1293. data/tests/{dns/requests/zerigo → zerigo/requests/dns}/dns_tests.rb +0 -0
  1294. metadata +1314 -1055
  1295. data/lib/fog/cdn/aws.rb +0 -118
  1296. data/lib/fog/cdn/rackspace.rb +0 -96
  1297. data/lib/fog/cdn/requests/aws/get_distribution.rb +0 -57
  1298. data/lib/fog/cdn/requests/aws/get_distribution_list.rb +0 -59
  1299. data/lib/fog/cdn/requests/aws/get_invalidation_list.rb +0 -42
  1300. data/lib/fog/cdn/requests/aws/get_streaming_distribution.rb +0 -50
  1301. data/lib/fog/cdn/requests/aws/get_streaming_distribution_list.rb +0 -59
  1302. data/lib/fog/cdn/requests/aws/post_distribution.rb +0 -91
  1303. data/lib/fog/cdn/requests/aws/post_invalidation.rb +0 -51
  1304. data/lib/fog/cdn/requests/aws/post_streaming_distribution.rb +0 -78
  1305. data/lib/fog/cdn/requests/aws/put_distribution_config.rb +0 -94
  1306. data/lib/fog/cdn/requests/aws/put_streaming_distribution_config.rb +0 -83
  1307. data/lib/fog/compute/aws.rb +0 -308
  1308. data/lib/fog/compute/bluebox.rb +0 -94
  1309. data/lib/fog/compute/brightbox.rb +0 -157
  1310. data/lib/fog/compute/ecloud.rb +0 -1310
  1311. data/lib/fog/compute/go_grid.rb +0 -112
  1312. data/lib/fog/compute/linode.rb +0 -116
  1313. data/lib/fog/compute/models/aws/addresses.rb +0 -100
  1314. data/lib/fog/compute/models/aws/flavors.rb +0 -167
  1315. data/lib/fog/compute/models/aws/images.rb +0 -62
  1316. data/lib/fog/compute/models/aws/key_pairs.rb +0 -88
  1317. data/lib/fog/compute/models/aws/security_group.rb +0 -205
  1318. data/lib/fog/compute/models/aws/security_groups.rb +0 -95
  1319. data/lib/fog/compute/models/aws/servers.rb +0 -158
  1320. data/lib/fog/compute/models/aws/snapshots.rb +0 -52
  1321. data/lib/fog/compute/models/aws/spot_requests.rb +0 -48
  1322. data/lib/fog/compute/models/aws/tags.rb +0 -34
  1323. data/lib/fog/compute/models/aws/volume.rb +0 -107
  1324. data/lib/fog/compute/models/aws/volumes.rb +0 -121
  1325. data/lib/fog/compute/models/bluebox/flavors.rb +0 -28
  1326. data/lib/fog/compute/models/bluebox/image.rb +0 -19
  1327. data/lib/fog/compute/models/bluebox/images.rb +0 -28
  1328. data/lib/fog/compute/models/bluebox/server.rb +0 -131
  1329. data/lib/fog/compute/models/bluebox/servers.rb +0 -36
  1330. data/lib/fog/compute/models/brightbox/account.rb +0 -51
  1331. data/lib/fog/compute/models/brightbox/cloud_ip.rb +0 -47
  1332. data/lib/fog/compute/models/brightbox/cloud_ips.rb +0 -34
  1333. data/lib/fog/compute/models/brightbox/flavor.rb +0 -33
  1334. data/lib/fog/compute/models/brightbox/flavors.rb +0 -28
  1335. data/lib/fog/compute/models/brightbox/image.rb +0 -57
  1336. data/lib/fog/compute/models/brightbox/images.rb +0 -28
  1337. data/lib/fog/compute/models/brightbox/load_balancer.rb +0 -50
  1338. data/lib/fog/compute/models/brightbox/load_balancers.rb +0 -28
  1339. data/lib/fog/compute/models/brightbox/server.rb +0 -114
  1340. data/lib/fog/compute/models/brightbox/servers.rb +0 -29
  1341. data/lib/fog/compute/models/brightbox/user.rb +0 -39
  1342. data/lib/fog/compute/models/brightbox/users.rb +0 -29
  1343. data/lib/fog/compute/models/brightbox/zone.rb +0 -21
  1344. data/lib/fog/compute/models/brightbox/zones.rb +0 -29
  1345. data/lib/fog/compute/models/ecloud/backup_internet_services.rb +0 -33
  1346. data/lib/fog/compute/models/ecloud/firewall_acls.rb +0 -31
  1347. data/lib/fog/compute/models/ecloud/internet_services.rb +0 -33
  1348. data/lib/fog/compute/models/ecloud/ips.rb +0 -32
  1349. data/lib/fog/compute/models/ecloud/networks.rb +0 -33
  1350. data/lib/fog/compute/models/ecloud/nodes.rb +0 -31
  1351. data/lib/fog/compute/models/ecloud/public_ips.rb +0 -36
  1352. data/lib/fog/compute/models/ecloud/servers.rb +0 -57
  1353. data/lib/fog/compute/models/ecloud/tasks.rb +0 -31
  1354. data/lib/fog/compute/models/ecloud/vdcs.rb +0 -40
  1355. data/lib/fog/compute/models/go_grid/images.rb +0 -33
  1356. data/lib/fog/compute/models/go_grid/passwords.rb +0 -36
  1357. data/lib/fog/compute/models/go_grid/servers.rb +0 -36
  1358. data/lib/fog/compute/models/linode/data_centers.rb +0 -26
  1359. data/lib/fog/compute/models/linode/disks.rb +0 -40
  1360. data/lib/fog/compute/models/linode/flavors.rb +0 -32
  1361. data/lib/fog/compute/models/linode/images.rb +0 -33
  1362. data/lib/fog/compute/models/linode/ips.rb +0 -40
  1363. data/lib/fog/compute/models/linode/kernels.rb +0 -32
  1364. data/lib/fog/compute/models/linode/servers.rb +0 -32
  1365. data/lib/fog/compute/models/linode/stack_scripts.rb +0 -32
  1366. data/lib/fog/compute/models/ninefold/addresses.rb +0 -31
  1367. data/lib/fog/compute/models/ninefold/flavors.rb +0 -30
  1368. data/lib/fog/compute/models/ninefold/images.rb +0 -30
  1369. data/lib/fog/compute/models/ninefold/ip_forwarding_rules.rb +0 -31
  1370. data/lib/fog/compute/models/ninefold/server.rb +0 -184
  1371. data/lib/fog/compute/models/ninefold/servers.rb +0 -31
  1372. data/lib/fog/compute/models/rackspace/flavors.rb +0 -28
  1373. data/lib/fog/compute/models/rackspace/images.rb +0 -33
  1374. data/lib/fog/compute/models/rackspace/servers.rb +0 -36
  1375. data/lib/fog/compute/models/slicehost/flavors.rb +0 -28
  1376. data/lib/fog/compute/models/slicehost/images.rb +0 -27
  1377. data/lib/fog/compute/models/slicehost/servers.rb +0 -38
  1378. data/lib/fog/compute/models/storm_on_demand/balancers.rb +0 -21
  1379. data/lib/fog/compute/models/storm_on_demand/configs.rb +0 -22
  1380. data/lib/fog/compute/models/storm_on_demand/images.rb +0 -21
  1381. data/lib/fog/compute/models/storm_on_demand/private_ips.rb +0 -31
  1382. data/lib/fog/compute/models/storm_on_demand/servers.rb +0 -26
  1383. data/lib/fog/compute/models/storm_on_demand/stats.rb +0 -22
  1384. data/lib/fog/compute/models/storm_on_demand/templates.rb +0 -21
  1385. data/lib/fog/compute/models/vcloud/catalogs.rb +0 -39
  1386. data/lib/fog/compute/models/vcloud/ips.rb +0 -33
  1387. data/lib/fog/compute/models/vcloud/networks.rb +0 -34
  1388. data/lib/fog/compute/models/vcloud/servers.rb +0 -58
  1389. data/lib/fog/compute/models/vcloud/tasks.rb +0 -32
  1390. data/lib/fog/compute/models/vcloud/vdcs.rb +0 -40
  1391. data/lib/fog/compute/models/virtual_box/medium.rb +0 -87
  1392. data/lib/fog/compute/models/virtual_box/mediums.rb +0 -32
  1393. data/lib/fog/compute/models/virtual_box/nat_redirects.rb +0 -41
  1394. data/lib/fog/compute/models/virtual_box/network_adapter.rb +0 -82
  1395. data/lib/fog/compute/models/virtual_box/network_adapters.rb +0 -42
  1396. data/lib/fog/compute/models/virtual_box/servers.rb +0 -41
  1397. data/lib/fog/compute/models/virtual_box/storage_controllers.rb +0 -38
  1398. data/lib/fog/compute/models/voxel/images.rb +0 -30
  1399. data/lib/fog/compute/models/voxel/servers.rb +0 -32
  1400. data/lib/fog/compute/new_servers.rb +0 -93
  1401. data/lib/fog/compute/ninefold.rb +0 -139
  1402. data/lib/fog/compute/rackspace.rb +0 -153
  1403. data/lib/fog/compute/requests/aws/allocate_address.rb +0 -53
  1404. data/lib/fog/compute/requests/aws/associate_address.rb +0 -65
  1405. data/lib/fog/compute/requests/aws/attach_volume.rb +0 -87
  1406. data/lib/fog/compute/requests/aws/authorize_security_group_ingress.rb +0 -108
  1407. data/lib/fog/compute/requests/aws/cancel_spot_instance_requests.rb +0 -34
  1408. data/lib/fog/compute/requests/aws/create_image.rb +0 -65
  1409. data/lib/fog/compute/requests/aws/create_key_pair.rb +0 -56
  1410. data/lib/fog/compute/requests/aws/create_placement_group.rb +0 -34
  1411. data/lib/fog/compute/requests/aws/create_security_group.rb +0 -57
  1412. data/lib/fog/compute/requests/aws/create_snapshot.rb +0 -73
  1413. data/lib/fog/compute/requests/aws/create_spot_datafeed_subscription.rb +0 -41
  1414. data/lib/fog/compute/requests/aws/create_tags.rb +0 -84
  1415. data/lib/fog/compute/requests/aws/create_volume.rb +0 -87
  1416. data/lib/fog/compute/requests/aws/delete_key_pair.rb +0 -47
  1417. data/lib/fog/compute/requests/aws/delete_placement_group.rb +0 -32
  1418. data/lib/fog/compute/requests/aws/delete_security_group.rb +0 -49
  1419. data/lib/fog/compute/requests/aws/delete_snapshot.rb +0 -50
  1420. data/lib/fog/compute/requests/aws/delete_spot_datafeed_subscription.rb +0 -28
  1421. data/lib/fog/compute/requests/aws/delete_tags.rb +0 -87
  1422. data/lib/fog/compute/requests/aws/delete_volume.rb +0 -56
  1423. data/lib/fog/compute/requests/aws/deregister_image.rb +0 -53
  1424. data/lib/fog/compute/requests/aws/describe_addresses.rb +0 -66
  1425. data/lib/fog/compute/requests/aws/describe_availability_zones.rb +0 -88
  1426. data/lib/fog/compute/requests/aws/describe_images.rb +0 -133
  1427. data/lib/fog/compute/requests/aws/describe_instances.rb +0 -204
  1428. data/lib/fog/compute/requests/aws/describe_key_pairs.rb +0 -68
  1429. data/lib/fog/compute/requests/aws/describe_placement_groups.rb +0 -35
  1430. data/lib/fog/compute/requests/aws/describe_regions.rb +0 -68
  1431. data/lib/fog/compute/requests/aws/describe_reserved_instances.rb +0 -60
  1432. data/lib/fog/compute/requests/aws/describe_reserved_instances_offerings.rb +0 -64
  1433. data/lib/fog/compute/requests/aws/describe_security_groups.rb +0 -97
  1434. data/lib/fog/compute/requests/aws/describe_snapshots.rb +0 -120
  1435. data/lib/fog/compute/requests/aws/describe_spot_datafeed_subscription.rb +0 -35
  1436. data/lib/fog/compute/requests/aws/describe_spot_instance_requests.rb +0 -47
  1437. data/lib/fog/compute/requests/aws/describe_spot_price_history.rb +0 -37
  1438. data/lib/fog/compute/requests/aws/describe_tags.rb +0 -36
  1439. data/lib/fog/compute/requests/aws/describe_volumes.rb +0 -117
  1440. data/lib/fog/compute/requests/aws/detach_volume.rb +0 -60
  1441. data/lib/fog/compute/requests/aws/disassociate_address.rb +0 -56
  1442. data/lib/fog/compute/requests/aws/get_console_output.rb +0 -54
  1443. data/lib/fog/compute/requests/aws/get_password_data.rb +0 -56
  1444. data/lib/fog/compute/requests/aws/import_key_pair.rb +0 -56
  1445. data/lib/fog/compute/requests/aws/modify_image_attribute.rb +0 -39
  1446. data/lib/fog/compute/requests/aws/modify_instance_attribute.rb +0 -37
  1447. data/lib/fog/compute/requests/aws/modify_snapshot_attribute.rb +0 -36
  1448. data/lib/fog/compute/requests/aws/monitor_instances.rb +0 -54
  1449. data/lib/fog/compute/requests/aws/purchase_reserved_instances_offering.rb +0 -63
  1450. data/lib/fog/compute/requests/aws/reboot_instances.rb +0 -54
  1451. data/lib/fog/compute/requests/aws/register_image.rb +0 -134
  1452. data/lib/fog/compute/requests/aws/release_address.rb +0 -47
  1453. data/lib/fog/compute/requests/aws/request_spot_instances.rb +0 -83
  1454. data/lib/fog/compute/requests/aws/revoke_security_group_ingress.rb +0 -94
  1455. data/lib/fog/compute/requests/aws/run_instances.rb +0 -177
  1456. data/lib/fog/compute/requests/aws/start_instances.rb +0 -32
  1457. data/lib/fog/compute/requests/aws/stop_instances.rb +0 -33
  1458. data/lib/fog/compute/requests/aws/terminate_instances.rb +0 -96
  1459. data/lib/fog/compute/requests/aws/unmonitor_instances.rb +0 -55
  1460. data/lib/fog/compute/requests/slicehost/create_slice.rb +0 -41
  1461. data/lib/fog/compute/requests/slicehost/get_backups.rb +0 -29
  1462. data/lib/fog/compute/requests/slicehost/get_flavor.rb +0 -32
  1463. data/lib/fog/compute/requests/slicehost/get_flavors.rb +0 -29
  1464. data/lib/fog/compute/requests/slicehost/get_image.rb +0 -30
  1465. data/lib/fog/compute/requests/slicehost/get_images.rb +0 -27
  1466. data/lib/fog/compute/requests/slicehost/get_slice.rb +0 -38
  1467. data/lib/fog/compute/requests/slicehost/get_slices.rb +0 -35
  1468. data/lib/fog/compute/requests/voxel/devices_list.rb +0 -24
  1469. data/lib/fog/compute/requests/voxel/devices_power.rb +0 -22
  1470. data/lib/fog/compute/requests/voxel/images_list.rb +0 -31
  1471. data/lib/fog/compute/requests/voxel/voxcloud_create.rb +0 -22
  1472. data/lib/fog/compute/requests/voxel/voxcloud_delete.rb +0 -20
  1473. data/lib/fog/compute/requests/voxel/voxcloud_status.rb +0 -24
  1474. data/lib/fog/compute/slicehost.rb +0 -99
  1475. data/lib/fog/compute/storm_on_demand.rb +0 -132
  1476. data/lib/fog/compute/vcloud.rb +0 -310
  1477. data/lib/fog/compute/virtual_box.rb +0 -46
  1478. data/lib/fog/compute/voxel.rb +0 -121
  1479. data/lib/fog/dns/aws.rb +0 -116
  1480. data/lib/fog/dns/bluebox.rb +0 -100
  1481. data/lib/fog/dns/dnsimple.rb +0 -92
  1482. data/lib/fog/dns/dnsmadeeasy.rb +0 -134
  1483. data/lib/fog/dns/dynect.rb +0 -80
  1484. data/lib/fog/dns/linode.rb +0 -89
  1485. data/lib/fog/dns/models/aws/records.rb +0 -49
  1486. data/lib/fog/dns/models/aws/zone.rb +0 -53
  1487. data/lib/fog/dns/models/aws/zones.rb +0 -33
  1488. data/lib/fog/dns/models/bluebox/records.rb +0 -36
  1489. data/lib/fog/dns/models/bluebox/zone.rb +0 -64
  1490. data/lib/fog/dns/models/bluebox/zones.rb +0 -28
  1491. data/lib/fog/dns/models/dnsimple/records.rb +0 -38
  1492. data/lib/fog/dns/models/dnsimple/zone.rb +0 -50
  1493. data/lib/fog/dns/models/dnsimple/zones.rb +0 -29
  1494. data/lib/fog/dns/models/dnsmadeeasy/records.rb +0 -36
  1495. data/lib/fog/dns/models/dnsmadeeasy/zone.rb +0 -42
  1496. data/lib/fog/dns/models/dnsmadeeasy/zones.rb +0 -30
  1497. data/lib/fog/dns/models/dynect/record.rb +0 -67
  1498. data/lib/fog/dns/models/dynect/records.rb +0 -53
  1499. data/lib/fog/dns/models/dynect/zone.rb +0 -60
  1500. data/lib/fog/dns/models/dynect/zones.rb +0 -29
  1501. data/lib/fog/dns/models/linode/records.rb +0 -37
  1502. data/lib/fog/dns/models/linode/zone.rb +0 -84
  1503. data/lib/fog/dns/models/linode/zones.rb +0 -29
  1504. data/lib/fog/dns/models/slicehost/records.rb +0 -36
  1505. data/lib/fog/dns/models/slicehost/zone.rb +0 -69
  1506. data/lib/fog/dns/models/slicehost/zones.rb +0 -28
  1507. data/lib/fog/dns/models/zerigo/records.rb +0 -41
  1508. data/lib/fog/dns/models/zerigo/zone.rb +0 -88
  1509. data/lib/fog/dns/models/zerigo/zones.rb +0 -30
  1510. data/lib/fog/dns/requests/aws/change_resource_record_sets.rb +0 -82
  1511. data/lib/fog/dns/requests/aws/create_hosted_zone.rb +0 -59
  1512. data/lib/fog/dns/requests/aws/delete_hosted_zone.rb +0 -39
  1513. data/lib/fog/dns/requests/aws/get_change.rb +0 -38
  1514. data/lib/fog/dns/requests/aws/get_hosted_zone.rb +0 -42
  1515. data/lib/fog/dns/requests/aws/list_hosted_zones.rb +0 -54
  1516. data/lib/fog/dns/requests/aws/list_resource_record_sets.rb +0 -60
  1517. data/lib/fog/dns/requests/bluebox/create_record.rb +0 -48
  1518. data/lib/fog/dns/requests/bluebox/create_zone.rb +0 -52
  1519. data/lib/fog/dns/requests/bluebox/get_record.rb +0 -40
  1520. data/lib/fog/dns/requests/bluebox/get_records.rb +0 -41
  1521. data/lib/fog/dns/requests/bluebox/get_zone.rb +0 -44
  1522. data/lib/fog/dns/requests/bluebox/get_zones.rb +0 -43
  1523. data/lib/fog/dns/requests/dynect/delete_record.rb +0 -24
  1524. data/lib/fog/dns/requests/dynect/delete_zone.rb +0 -21
  1525. data/lib/fog/dns/requests/dynect/get_node_list.rb +0 -23
  1526. data/lib/fog/dns/requests/dynect/get_record.rb +0 -25
  1527. data/lib/fog/dns/requests/dynect/get_zone.rb +0 -22
  1528. data/lib/fog/dns/requests/dynect/post_record.rb +0 -27
  1529. data/lib/fog/dns/requests/dynect/post_session.rb +0 -36
  1530. data/lib/fog/dns/requests/dynect/post_zone.rb +0 -32
  1531. data/lib/fog/dns/requests/dynect/put_zone.rb +0 -26
  1532. data/lib/fog/dns/requests/linode/domain_create.rb +0 -43
  1533. data/lib/fog/dns/requests/linode/domain_list.rb +0 -42
  1534. data/lib/fog/dns/requests/linode/domain_resource_create.rb +0 -44
  1535. data/lib/fog/dns/requests/linode/domain_resource_list.rb +0 -43
  1536. data/lib/fog/dns/requests/linode/domain_resource_update.rb +0 -46
  1537. data/lib/fog/dns/requests/linode/domain_update.rb +0 -40
  1538. data/lib/fog/dns/requests/slicehost/create_record.rb +0 -52
  1539. data/lib/fog/dns/requests/slicehost/create_zone.rb +0 -46
  1540. data/lib/fog/dns/requests/slicehost/get_record.rb +0 -32
  1541. data/lib/fog/dns/requests/slicehost/get_records.rb +0 -33
  1542. data/lib/fog/dns/requests/slicehost/get_zone.rb +0 -32
  1543. data/lib/fog/dns/requests/slicehost/get_zones.rb +0 -30
  1544. data/lib/fog/dns/requests/zerigo/count_hosts.rb +0 -28
  1545. data/lib/fog/dns/requests/zerigo/count_zones.rb +0 -28
  1546. data/lib/fog/dns/requests/zerigo/create_host.rb +0 -62
  1547. data/lib/fog/dns/requests/zerigo/create_zone.rb +0 -89
  1548. data/lib/fog/dns/requests/zerigo/find_hosts.rb +0 -55
  1549. data/lib/fog/dns/requests/zerigo/get_host.rb +0 -39
  1550. data/lib/fog/dns/requests/zerigo/get_zone.rb +0 -49
  1551. data/lib/fog/dns/requests/zerigo/get_zone_stats.rb +0 -36
  1552. data/lib/fog/dns/requests/zerigo/list_hosts.rb +0 -40
  1553. data/lib/fog/dns/requests/zerigo/list_zones.rb +0 -45
  1554. data/lib/fog/dns/slicehost.rb +0 -95
  1555. data/lib/fog/dns/zerigo.rb +0 -104
  1556. data/lib/fog/providers/aws.rb +0 -197
  1557. data/lib/fog/providers/bluebox.rb +0 -12
  1558. data/lib/fog/providers/brightbox.rb +0 -9
  1559. data/lib/fog/providers/dnsimple.rb +0 -11
  1560. data/lib/fog/providers/dnsmadeeasy.rb +0 -11
  1561. data/lib/fog/providers/dynect.rb +0 -14
  1562. data/lib/fog/providers/ecloud.rb +0 -11
  1563. data/lib/fog/providers/go_grid.rb +0 -11
  1564. data/lib/fog/providers/google.rb +0 -23
  1565. data/lib/fog/providers/linode.rb +0 -10
  1566. data/lib/fog/providers/local.rb +0 -11
  1567. data/lib/fog/providers/new_servers.rb +0 -11
  1568. data/lib/fog/providers/ninefold.rb +0 -12
  1569. data/lib/fog/providers/rackspace.rb +0 -37
  1570. data/lib/fog/providers/slicehost.rb +0 -12
  1571. data/lib/fog/providers/storm_on_demand.rb +0 -12
  1572. data/lib/fog/providers/vcloud.rb +0 -11
  1573. data/lib/fog/providers/virtual_box.rb +0 -11
  1574. data/lib/fog/providers/voxel.rb +0 -16
  1575. data/lib/fog/providers/zerigo.rb +0 -11
  1576. data/lib/fog/storage/aws.rb +0 -376
  1577. data/lib/fog/storage/google.rb +0 -269
  1578. data/lib/fog/storage/local.rb +0 -68
  1579. data/lib/fog/storage/models/aws/directories.rb +0 -43
  1580. data/lib/fog/storage/models/aws/directory.rb +0 -98
  1581. data/lib/fog/storage/models/aws/file.rb +0 -141
  1582. data/lib/fog/storage/models/aws/files.rb +0 -117
  1583. data/lib/fog/storage/models/google/directories.rb +0 -43
  1584. data/lib/fog/storage/models/google/directory.rb +0 -78
  1585. data/lib/fog/storage/models/google/file.rb +0 -141
  1586. data/lib/fog/storage/models/google/files.rb +0 -103
  1587. data/lib/fog/storage/models/local/directories.rb +0 -33
  1588. data/lib/fog/storage/models/local/directory.rb +0 -57
  1589. data/lib/fog/storage/models/local/files.rb +0 -87
  1590. data/lib/fog/storage/models/ninefold/directories.rb +0 -48
  1591. data/lib/fog/storage/models/ninefold/files.rb +0 -72
  1592. data/lib/fog/storage/models/rackspace/directories.rb +0 -43
  1593. data/lib/fog/storage/models/rackspace/directory.rb +0 -76
  1594. data/lib/fog/storage/models/rackspace/files.rb +0 -94
  1595. data/lib/fog/storage/ninefold.rb +0 -149
  1596. data/lib/fog/storage/rackspace.rb +0 -126
  1597. data/lib/fog/storage/requests/aws/complete_multipart_upload.rb +0 -52
  1598. data/lib/fog/storage/requests/aws/copy_object.rb +0 -76
  1599. data/lib/fog/storage/requests/aws/get_bucket.rb +0 -114
  1600. data/lib/fog/storage/requests/aws/get_bucket_acl.rb +0 -66
  1601. data/lib/fog/storage/requests/aws/get_bucket_location.rb +0 -52
  1602. data/lib/fog/storage/requests/aws/get_bucket_logging.rb +0 -50
  1603. data/lib/fog/storage/requests/aws/get_bucket_object_versions.rb +0 -75
  1604. data/lib/fog/storage/requests/aws/get_bucket_versioning.rb +0 -40
  1605. data/lib/fog/storage/requests/aws/get_bucket_website.rb +0 -42
  1606. data/lib/fog/storage/requests/aws/get_object_acl.rb +0 -77
  1607. data/lib/fog/storage/requests/aws/get_object_url.rb +0 -37
  1608. data/lib/fog/storage/requests/aws/get_request_payment.rb +0 -52
  1609. data/lib/fog/storage/requests/aws/get_service.rb +0 -57
  1610. data/lib/fog/storage/requests/aws/initiate_multipart_upload.rb +0 -47
  1611. data/lib/fog/storage/requests/aws/list_multipart_uploads.rb +0 -60
  1612. data/lib/fog/storage/requests/aws/list_parts.rb +0 -59
  1613. data/lib/fog/storage/requests/aws/put_bucket_acl.rb +0 -76
  1614. data/lib/fog/storage/requests/aws/put_object_acl.rb +0 -85
  1615. data/lib/fog/storage/requests/google/copy_object.rb +0 -72
  1616. data/lib/fog/storage/requests/google/get_bucket.rb +0 -111
  1617. data/lib/fog/storage/requests/google/get_bucket_acl.rb +0 -63
  1618. data/lib/fog/storage/requests/google/get_object_acl.rb +0 -74
  1619. data/lib/fog/storage/requests/google/get_object_url.rb +0 -37
  1620. data/lib/fog/storage/requests/google/get_service.rb +0 -53
  1621. data/lib/fog/storage/requests/rackspace/delete_container.rb +0 -22
  1622. data/lib/fog/storage/requests/rackspace/delete_object.rb +0 -23
  1623. data/lib/fog/storage/requests/rackspace/get_container.rb +0 -44
  1624. data/lib/fog/storage/requests/rackspace/get_object.rb +0 -24
  1625. data/lib/fog/storage/requests/rackspace/head_container.rb +0 -28
  1626. data/lib/fog/storage/requests/rackspace/head_object.rb +0 -23
  1627. data/lib/fog/storage/requests/rackspace/put_container.rb +0 -22
  1628. data/lib/fog/storage/requests/rackspace/put_object.rb +0 -29
  1629. data/lib/fog/storage/requests/rackspace/put_object_manifest.rb +0 -25
  1630. data/tests/compute/models/aws/security_group_tests.rb +0 -17
  1631. data/tests/compute/models/aws/server_tests.rb +0 -61
  1632. data/tests/compute/parsers/aws/monitor_unmonitor_instances_tests.rb +0 -49
  1633. data/tests/compute/requests/aws/image_tests.rb +0 -68
  1634. data/tests/compute/requests/aws/instance_tests.rb +0 -233
  1635. data/tests/compute/requests/aws/security_group_tests.rb +0 -141
  1636. data/tests/compute/requests/aws/tag_tests.rb +0 -49
  1637. data/tests/compute/requests/brightbox/account_tests.rb +0 -40
  1638. data/tests/compute/requests/brightbox/api_client_tests.rb +0 -49
  1639. data/tests/compute/requests/brightbox/helper.rb +0 -434
  1640. data/tests/compute/requests/brightbox/interface_tests.rb +0 -30
  1641. data/tests/compute/requests/brightbox/load_balancer_tests.rb +0 -74
  1642. data/tests/compute/requests/brightbox/server_tests.rb +0 -75
  1643. data/tests/compute/requests/brightbox/user_tests.rb +0 -41
  1644. data/tests/compute/requests/linode/linodeplans_tests.rb +0 -39
  1645. data/tests/compute/requests/ninefold/helper.rb +0 -320
  1646. data/tests/dns/requests/dynect/dns_tests.rb +0 -132
  1647. data/tests/rackspace/requests/helper.rb +0 -112
  1648. data/tests/rackspace/requests/load_balancer_tests.rb +0 -63
  1649. data/tests/rackspace/requests/virtual_ip_tests.rb +0 -40
  1650. data/tests/storage/requests/aws/bucket_tests.rb +0 -167
  1651. data/tests/storage/requests/aws/object_tests.rb +0 -81
@@ -0,0 +1,11 @@
1
+ require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
2
+
3
+ module Fog
4
+ module Ecloud
5
+
6
+ extend Fog::Provider
7
+
8
+ service(:compute, 'ecloud/compute', 'Compute')
9
+
10
+ end
11
+ end
@@ -0,0 +1,1311 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ecloud'))
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 Compute
827
+ class Ecloud < Fog::Service
828
+
829
+ class UnsupportedVersion < Exception ; end
830
+
831
+ requires :ecloud_username, :ecloud_password, :ecloud_versions_uri
832
+ recognizes :ecloud_version
833
+
834
+ model_path 'fog/ecloud/models/compute'
835
+ model :catalog_item
836
+ model :catalog
837
+ model :firewall_acl
838
+ collection :firewall_acls
839
+ model :internet_service
840
+ collection :internet_services
841
+ model :backup_internet_service
842
+ collection :backup_internet_services
843
+ model :ip
844
+ collection :ips
845
+ model :network
846
+ collection :networks
847
+ model :node
848
+ collection :nodes
849
+ model :public_ip
850
+ collection :public_ips
851
+ model :server
852
+ collection :servers
853
+ model :task
854
+ collection :tasks
855
+ model :vdc
856
+ collection :vdcs
857
+
858
+ request_path 'fog/ecloud/requests/compute'
859
+ request :add_internet_service
860
+ request :add_backup_internet_service
861
+ request :add_node
862
+ request :clone_vapp
863
+ request :configure_internet_service
864
+ request :configure_network
865
+ request :configure_network_ip
866
+ request :configure_node
867
+ request :configure_vapp
868
+ request :delete_internet_service
869
+ request :delete_node
870
+ request :delete_vapp
871
+ request :get_catalog
872
+ request :get_catalog_item
873
+ request :get_customization_options
874
+ request :get_firewall_acls
875
+ request :get_firewall_acl
876
+ request :get_internet_services
877
+ request :get_network
878
+ request :get_network_ip
879
+ request :get_network_ips
880
+ request :get_network_extensions
881
+ request :get_organization
882
+ request :get_node
883
+ request :get_nodes
884
+ request :get_public_ip
885
+ request :get_public_ips
886
+ request :get_task
887
+ request :get_task_list
888
+ request :get_vapp
889
+ request :get_vapp_template
890
+ request :get_vdc
891
+ request :get_versions
892
+ request :instantiate_vapp_template
893
+ request :login
894
+ request :power_off
895
+ request :power_on
896
+ request :power_reset
897
+ request :power_shutdown
898
+
899
+ module Shared
900
+
901
+ attr_reader :versions_uri
902
+
903
+ def default_organization_uri
904
+ @default_organization_uri ||= begin
905
+ unless @login_results
906
+ do_login
907
+ end
908
+ case @login_results.body[:Org]
909
+ when Array
910
+ @login_results.body[:Org].first[:href]
911
+ when Hash
912
+ @login_results.body[:Org][:href]
913
+ else
914
+ nil
915
+ end
916
+ end
917
+ end
918
+
919
+ # login handles the auth, but we just need the Set-Cookie
920
+ # header from that call.
921
+ def do_login
922
+ @login_results = login
923
+ @cookie = @login_results.headers['Set-Cookie']
924
+ end
925
+
926
+ def ecloud_xmlns
927
+ {
928
+ "xmlns" => "urn:tmrk:eCloudExtensions-2.6",
929
+ "xmlns:i" => "http://www.w3.org/2001/XMLSchema-instance"
930
+ }
931
+ end
932
+
933
+ def ensure_unparsed(uri)
934
+ if uri.is_a?(String)
935
+ uri
936
+ else
937
+ uri.to_s
938
+ end
939
+ end
940
+
941
+ def supported_versions
942
+ @supported_versions ||= get_versions(@versions_uri).body[:VersionInfo]
943
+ end
944
+
945
+ def xmlns
946
+ { "xmlns" => "http://www.vmware.com/vcloud/v0.8",
947
+ "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
948
+ "xmlns:xsd" => "http://www.w3.org/2001/XMLSchema" }
949
+ end
950
+
951
+ end
952
+
953
+ class Mock
954
+ include Shared
955
+ include Fog::Ecloud::MockDataClasses
956
+
957
+ def self.base_url
958
+ "https://fakey.com/api/v0.8b-ext2.6"
959
+ end
960
+
961
+ def self.data( base_url = self.base_url )
962
+ @mock_data ||= MockData.new.tap do |vcloud_mock_data|
963
+ vcloud_mock_data.versions.clear
964
+ vcloud_mock_data.versions << MockVersion.new(:version => "v0.8b-ext2.6", :supported => true)
965
+
966
+ vcloud_mock_data.organizations << MockOrganization.new(:name => "Boom Inc.").tap do |mock_organization|
967
+ mock_organization.vdcs << MockVdc.new(:name => "Boomstick").tap do |mock_vdc|
968
+ mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 0").tap do |mock_catalog_item|
969
+ mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
970
+ end
971
+ mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 1").tap do |mock_catalog_item|
972
+ mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
973
+ end
974
+ mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 2").tap do |mock_catalog_item|
975
+ mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
976
+ end
977
+
978
+ mock_vdc.networks << MockNetwork.new({ :subnet => "1.2.3.0/24" }, mock_vdc)
979
+ mock_vdc.networks << MockNetwork.new({ :subnet => "4.5.6.0/24" }, mock_vdc)
980
+
981
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Broom 1", :ip => "1.2.3.3" }, mock_vdc)
982
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Broom 2", :ip => "1.2.3.4" }, mock_vdc)
983
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Email!", :ip => "1.2.3.10" }, mock_vdc)
984
+ end
985
+
986
+ 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|
987
+ mock_vdc.networks << MockNetwork.new({ :subnet => "7.8.9.0/24" }, mock_vdc)
988
+
989
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Master Blaster", :ip => "7.8.9.10" }, mock_vdc)
990
+ end
991
+ end
992
+
993
+ vcloud_mock_data.organizations.detect {|o| o.name == "Boom Inc." }.tap do |mock_organization|
994
+ mock_organization.vdcs.detect {|v| v.name == "Boomstick" }.tap do |mock_vdc|
995
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.2.3").tap do |mock_public_ip|
996
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
997
+ :protocol => "HTTP",
998
+ :port => 80,
999
+ :name => "Web Site",
1000
+ :description => "Web Servers",
1001
+ :redirect_url => "http://fakey.com"
1002
+ }, mock_public_ip.internet_service_collection
1003
+ ).tap do |mock_public_ip_service|
1004
+ 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)
1005
+ 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)
1006
+ 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)
1007
+ end
1008
+
1009
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1010
+ :protocol => "TCP",
1011
+ :port => 7000,
1012
+ :name => "An SSH Map",
1013
+ :description => "SSH 1"
1014
+ }, mock_public_ip.internet_service_collection
1015
+ ).tap do |mock_public_ip_service|
1016
+ 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)
1017
+ end
1018
+ end
1019
+
1020
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.2.4").tap do |mock_public_ip|
1021
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1022
+ :protocol => "HTTP",
1023
+ :port => 80,
1024
+ :name => "Web Site",
1025
+ :description => "Web Servers",
1026
+ :redirect_url => "http://fakey.com"
1027
+ }, mock_public_ip.internet_service_collection
1028
+ )
1029
+
1030
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1031
+ :protocol => "TCP",
1032
+ :port => 7000,
1033
+ :name => "An SSH Map",
1034
+ :description => "SSH 2"
1035
+ }, mock_public_ip.internet_service_collection
1036
+ )
1037
+ end
1038
+
1039
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.9.7")
1040
+
1041
+ mock_vdc.internet_service_collection.backup_internet_services << MockBackupInternetService.new({ :port => 10000, :protocol => "TCP"}, self)
1042
+ end
1043
+
1044
+ mock_organization.vdcs.detect {|v| v.name == "Rock-n-Roll" }.tap do |mock_vdc|
1045
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.99.99.99")
1046
+ end
1047
+ end
1048
+
1049
+ vcloud_mock_data.organizations.each do |organization|
1050
+ organization.vdcs.each do |vdc|
1051
+ vdc.networks.each do |network|
1052
+ network[:rnat] = vdc.public_ip_collection.items.first.name
1053
+ end
1054
+ vdc.virtual_machines.each do |virtual_machine|
1055
+ virtual_machine.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
1056
+ virtual_machine.disks << MockVirtualMachineDisk.new(:size => 50 * 1024)
1057
+ end
1058
+ end
1059
+ end
1060
+ end
1061
+ end
1062
+
1063
+ def self.reset
1064
+ @mock_data = nil
1065
+ end
1066
+
1067
+ def self.data_reset
1068
+ Fog::Logger.warning("#{self} => #data_reset is deprecated, use #reset instead [light_black](#{caller.first})[/]")
1069
+ self.reset
1070
+ end
1071
+
1072
+ def initialize(options = {})
1073
+ require 'builder'
1074
+ require 'fog/core/parser'
1075
+
1076
+ @versions_uri = URI.parse('https://vcloud.fakey.com/api/versions')
1077
+ end
1078
+
1079
+ def mock_data
1080
+ Fog::Compute::Ecloud::Mock.data
1081
+ end
1082
+
1083
+ def mock_error(expected, status, body='', headers={})
1084
+ raise Excon::Errors::Unauthorized.new("Expected(#{expected}) <=> Actual(#{status})")
1085
+ end
1086
+
1087
+ def mock_it(status, mock_data, mock_headers = {})
1088
+ response = Excon::Response.new
1089
+
1090
+ #Parse the response body into a hash
1091
+ if mock_data.empty?
1092
+ response.body = mock_data
1093
+ else
1094
+ document = Fog::ToHashDocument.new
1095
+ parser = Nokogiri::XML::SAX::PushParser.new(document)
1096
+ parser << mock_data
1097
+ parser.finish
1098
+ response.body = document.body
1099
+ end
1100
+
1101
+ response.status = status
1102
+ response.headers = mock_headers
1103
+ response
1104
+ end
1105
+
1106
+ end
1107
+
1108
+ class Real
1109
+ include Shared
1110
+
1111
+ class << self
1112
+
1113
+ def basic_request(*args)
1114
+ self.class_eval <<-EOS, __FILE__,__LINE__
1115
+ def #{args[0]}(uri)
1116
+ request({
1117
+ :expects => #{args[1] || 200},
1118
+ :method => '#{args[2] || 'GET'}',
1119
+ :headers => #{args[3] ? args[3].inspect : '{}'},
1120
+ :body => '#{args[4] ? args[4] : ''}',
1121
+ :parse => true,
1122
+ :uri => uri })
1123
+ end
1124
+ EOS
1125
+ end
1126
+
1127
+ def unauthenticated_basic_request(*args)
1128
+ self.class_eval <<-EOS, __FILE__,__LINE__
1129
+ def #{args[0]}(uri)
1130
+ unauthenticated_request({
1131
+ :expects => #{args[1] || 200},
1132
+ :method => '#{args[2] || 'GET'}',
1133
+ :headers => #{args[3] ? args[3].inspect : '{}'},
1134
+ :parse => true,
1135
+ :uri => uri })
1136
+ end
1137
+ EOS
1138
+ end
1139
+
1140
+ end
1141
+
1142
+ def initialize(options = {})
1143
+ require 'builder'
1144
+ require 'fog/core/parser'
1145
+
1146
+ @connections = {}
1147
+ @connection_options = options[:connection_options] || {}
1148
+ @versions_uri = URI.parse(options[:ecloud_versions_uri])
1149
+ @version = options[:ecloud_version]
1150
+ @username = options[:ecloud_username]
1151
+ @password = options[:ecloud_password]
1152
+ @persistent = options[:persistent] || false
1153
+ end
1154
+
1155
+ def default_organization_uri
1156
+ @default_organization_uri ||= begin
1157
+ unless @login_results
1158
+ do_login
1159
+ end
1160
+ case @login_results.body[:Org]
1161
+ when Array
1162
+ @login_results.body[:Org].first[:href]
1163
+ when Hash
1164
+ @login_results.body[:Org][:href]
1165
+ else
1166
+ nil
1167
+ end
1168
+ end
1169
+ end
1170
+
1171
+ def reload
1172
+ @connections.each_value { |k,v| v.reset if v }
1173
+ end
1174
+
1175
+ # If the cookie isn't set, do a get_organizations call to set it
1176
+ # and try the request.
1177
+ # If we get an Unauthorized error, we assume the token expired, re-auth and try again
1178
+ def request(params)
1179
+ unless @cookie
1180
+ do_login
1181
+ end
1182
+ begin
1183
+ do_request(params)
1184
+ rescue Excon::Errors::Unauthorized => e
1185
+ do_login
1186
+ do_request(params)
1187
+ end
1188
+ end
1189
+
1190
+ def supporting_versions
1191
+ ["v0.8b-ext2.6", "0.8b-ext2.6"]
1192
+ end
1193
+
1194
+ private
1195
+
1196
+ def ensure_parsed(uri)
1197
+ if uri.is_a?(String)
1198
+ URI.parse(uri)
1199
+ else
1200
+ uri
1201
+ end
1202
+ end
1203
+
1204
+ def supported_version_numbers
1205
+ case supported_versions
1206
+ when Array
1207
+ supported_versions.map { |version| version[:Version] }
1208
+ when Hash
1209
+ [ supported_versions[:Version] ]
1210
+ end
1211
+ end
1212
+
1213
+ def get_login_uri
1214
+ check_versions
1215
+ URI.parse case supported_versions
1216
+ when Array
1217
+ supported_versions.detect {|version| version[:Version] == @version }[:LoginUrl]
1218
+ when Hash
1219
+ supported_versions[:LoginUrl]
1220
+ end
1221
+ end
1222
+
1223
+ # If we don't support any versions the service does, then raise an error.
1224
+ # If the @version that super selected isn't in our supported list, then select one that is.
1225
+ def check_versions
1226
+ if @version
1227
+ unless supported_version_numbers.include?(@version.to_s)
1228
+ raise UnsupportedVersion.new("#{@version} is not supported by the server.")
1229
+ end
1230
+ unless supporting_versions.include?(@version.to_s)
1231
+ raise UnsupportedVersion.new("#{@version} is not supported by #{self.class}")
1232
+ end
1233
+ else
1234
+ unless @version = (supported_version_numbers & supporting_versions).sort.first
1235
+ raise UnsupportedVersion.new("\nService @ #{@versions_uri} supports: #{supported_version_numbers.join(', ')}\n" +
1236
+ "#{self.class} supports: #{supporting_versions.join(', ')}")
1237
+ end
1238
+ end
1239
+ end
1240
+
1241
+ # Don't need to set the cookie for these or retry them if the cookie timed out
1242
+ def unauthenticated_request(params)
1243
+ do_request(params)
1244
+ end
1245
+
1246
+ # Use this to set the Authorization header for login
1247
+ def authorization_header
1248
+ "Basic #{Base64.encode64("#{@username}:#{@password}").chomp!}"
1249
+ end
1250
+
1251
+ def login_uri
1252
+ @login_uri ||= get_login_uri
1253
+ end
1254
+
1255
+ # login handles the auth, but we just need the Set-Cookie
1256
+ # header from that call.
1257
+ def do_login
1258
+ @login_results = login
1259
+ @cookie = @login_results.headers['Set-Cookie']
1260
+ end
1261
+
1262
+ # Actually do the request
1263
+ def do_request(params)
1264
+ # Convert the uri to a URI if it's a string.
1265
+ if params[:uri].is_a?(String)
1266
+ params[:uri] = URI.parse(params[:uri])
1267
+ end
1268
+ host_url = "#{params[:uri].scheme}://#{params[:uri].host}#{params[:uri].port ? ":#{params[:uri].port}" : ''}"
1269
+
1270
+ # Hash connections on the host_url ... There's nothing to say we won't get URI's that go to
1271
+ # different hosts.
1272
+ @connections[host_url] ||= Fog::Connection.new(host_url, @persistent, @connection_options)
1273
+
1274
+ # Set headers to an empty hash if none are set.
1275
+ headers = params[:headers] || {}
1276
+
1277
+ # Add our auth cookie to the headers
1278
+ if @cookie
1279
+ headers.merge!('Cookie' => @cookie)
1280
+ end
1281
+
1282
+ # Make the request
1283
+ response = @connections[host_url].request({
1284
+ :body => params[:body] || '',
1285
+ :expects => params[:expects] || 200,
1286
+ :headers => headers,
1287
+ :method => params[:method] || 'GET',
1288
+ :path => params[:uri].path
1289
+ })
1290
+
1291
+ # Parse the response body into a hash
1292
+ #puts response.body
1293
+ unless response.body.empty?
1294
+ if params[:parse]
1295
+ document = Fog::ToHashDocument.new
1296
+ parser = Nokogiri::XML::SAX::PushParser.new(document)
1297
+ parser << response.body
1298
+ parser.finish
1299
+
1300
+ response.body = document.body
1301
+ end
1302
+ end
1303
+
1304
+ response
1305
+ end
1306
+
1307
+ end
1308
+
1309
+ end
1310
+ end
1311
+ end