ktheory-fog 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2172) hide show
  1. data/.document +3 -0
  2. data/.gitignore +20 -0
  3. data/Gemfile +3 -0
  4. data/README.rdoc +147 -0
  5. data/Rakefile +438 -0
  6. data/benchs/fog_vs.rb +106 -0
  7. data/benchs/params.rb +43 -0
  8. data/benchs/parse_vs_push.rb +69 -0
  9. data/bin/fog +54 -0
  10. data/changelog.txt +1914 -0
  11. data/docs/_config.yml +39 -0
  12. data/docs/_layouts/default.html +111 -0
  13. data/docs/about/contributing.markdown +228 -0
  14. data/docs/about/getting_started.markdown +108 -0
  15. data/docs/about/press.markdown +52 -0
  16. data/docs/about/structure.markdown +78 -0
  17. data/docs/about/users.markdown +33 -0
  18. data/docs/cdn/index.markdown +82 -0
  19. data/docs/compute/index.markdown +122 -0
  20. data/docs/dns/index.markdown +79 -0
  21. data/docs/index.markdown +88 -0
  22. data/docs/public/crossdomain.xml +25 -0
  23. data/docs/public/css/fog.css +142 -0
  24. data/docs/public/css/handheld.css +8 -0
  25. data/docs/public/css/style.css +129 -0
  26. data/docs/public/images/.gitignore +3 -0
  27. data/docs/public/js/libs/dd_belatedpng.js +13 -0
  28. data/docs/public/js/libs/jquery-1.4.2.js +6240 -0
  29. data/docs/public/js/libs/jquery-1.4.2.min.js +154 -0
  30. data/docs/public/js/libs/modernizr-1.6.min.js +30 -0
  31. data/docs/public/js/mylibs/.gitignore +3 -0
  32. data/docs/public/js/plugins.js +34 -0
  33. data/docs/public/js/profiling/config.js +59 -0
  34. data/docs/public/js/profiling/yahoo-profiling.css +7 -0
  35. data/docs/public/js/profiling/yahoo-profiling.min.js +39 -0
  36. data/docs/public/js/script.js +26 -0
  37. data/docs/public/robots.txt +5 -0
  38. data/docs/storage/index.markdown +204 -0
  39. data/fog.gemspec +65 -0
  40. data/lib/fog.rb +18 -0
  41. data/lib/fog/aws.rb +234 -0
  42. data/lib/fog/aws/auto_scaling.rb +212 -0
  43. data/lib/fog/aws/cdn.rb +120 -0
  44. data/lib/fog/aws/cloud_formation.rb +116 -0
  45. data/lib/fog/aws/cloud_watch.rb +115 -0
  46. data/lib/fog/aws/compute.rb +335 -0
  47. data/lib/fog/aws/dns.rb +119 -0
  48. data/lib/fog/aws/dynamodb.rb +162 -0
  49. data/lib/fog/aws/elasticache.rb +121 -0
  50. data/lib/fog/aws/elb.rb +197 -0
  51. data/lib/fog/aws/elb/policy_types.rb +35 -0
  52. data/lib/fog/aws/emr.rb +134 -0
  53. data/lib/fog/aws/iam.rb +196 -0
  54. data/lib/fog/aws/models/auto_scaling/activities.rb +30 -0
  55. data/lib/fog/aws/models/auto_scaling/activity.rb +29 -0
  56. data/lib/fog/aws/models/auto_scaling/configuration.rb +63 -0
  57. data/lib/fog/aws/models/auto_scaling/configurations.rb +35 -0
  58. data/lib/fog/aws/models/auto_scaling/group.rb +140 -0
  59. data/lib/fog/aws/models/auto_scaling/groups.rb +35 -0
  60. data/lib/fog/aws/models/auto_scaling/instance.rb +60 -0
  61. data/lib/fog/aws/models/auto_scaling/instances.rb +30 -0
  62. data/lib/fog/aws/models/cloud_watch/alarm.rb +12 -0
  63. data/lib/fog/aws/models/cloud_watch/alarm_data.rb +39 -0
  64. data/lib/fog/aws/models/cloud_watch/alarm_datum.rb +66 -0
  65. data/lib/fog/aws/models/cloud_watch/alarm_histories.rb +18 -0
  66. data/lib/fog/aws/models/cloud_watch/alarm_history.rb +16 -0
  67. data/lib/fog/aws/models/cloud_watch/alarms.rb +30 -0
  68. data/lib/fog/aws/models/cloud_watch/metric.rb +14 -0
  69. data/lib/fog/aws/models/cloud_watch/metric_statistic.rb +45 -0
  70. data/lib/fog/aws/models/cloud_watch/metric_statistics.rb +23 -0
  71. data/lib/fog/aws/models/cloud_watch/metrics.rb +32 -0
  72. data/lib/fog/aws/models/compute/address.rb +72 -0
  73. data/lib/fog/aws/models/compute/addresses.rb +100 -0
  74. data/lib/fog/aws/models/compute/flavor.rb +21 -0
  75. data/lib/fog/aws/models/compute/flavors.rb +167 -0
  76. data/lib/fog/aws/models/compute/image.rb +48 -0
  77. data/lib/fog/aws/models/compute/images.rb +62 -0
  78. data/lib/fog/aws/models/compute/key_pair.rb +59 -0
  79. data/lib/fog/aws/models/compute/key_pairs.rb +88 -0
  80. data/lib/fog/aws/models/compute/security_group.rb +205 -0
  81. data/lib/fog/aws/models/compute/security_groups.rb +120 -0
  82. data/lib/fog/aws/models/compute/server.rb +272 -0
  83. data/lib/fog/aws/models/compute/servers.rb +158 -0
  84. data/lib/fog/aws/models/compute/snapshot.rb +56 -0
  85. data/lib/fog/aws/models/compute/snapshots.rb +52 -0
  86. data/lib/fog/aws/models/compute/spot_request.rb +110 -0
  87. data/lib/fog/aws/models/compute/spot_requests.rb +92 -0
  88. data/lib/fog/aws/models/compute/tag.rb +34 -0
  89. data/lib/fog/aws/models/compute/tags.rb +34 -0
  90. data/lib/fog/aws/models/compute/volume.rb +112 -0
  91. data/lib/fog/aws/models/compute/volumes.rb +121 -0
  92. data/lib/fog/aws/models/dns/record.rb +78 -0
  93. data/lib/fog/aws/models/dns/records.rb +49 -0
  94. data/lib/fog/aws/models/dns/zone.rb +53 -0
  95. data/lib/fog/aws/models/dns/zones.rb +33 -0
  96. data/lib/fog/aws/models/elasticache/cluster.rb +69 -0
  97. data/lib/fog/aws/models/elasticache/clusters.rb +31 -0
  98. data/lib/fog/aws/models/elasticache/parameter_group.rb +32 -0
  99. data/lib/fog/aws/models/elasticache/parameter_groups.rb +30 -0
  100. data/lib/fog/aws/models/elasticache/security_group.rb +52 -0
  101. data/lib/fog/aws/models/elasticache/security_groups.rb +30 -0
  102. data/lib/fog/aws/models/elb/listener.rb +59 -0
  103. data/lib/fog/aws/models/elb/listeners.rb +32 -0
  104. data/lib/fog/aws/models/elb/load_balancer.rb +141 -0
  105. data/lib/fog/aws/models/elb/load_balancers.rb +28 -0
  106. data/lib/fog/aws/models/elb/policies.rb +40 -0
  107. data/lib/fog/aws/models/elb/policy.rb +52 -0
  108. data/lib/fog/aws/models/rds/parameter.rb +21 -0
  109. data/lib/fog/aws/models/rds/parameter_group.rb +36 -0
  110. data/lib/fog/aws/models/rds/parameter_groups.rb +27 -0
  111. data/lib/fog/aws/models/rds/parameters.rb +37 -0
  112. data/lib/fog/aws/models/rds/security_group.rb +82 -0
  113. data/lib/fog/aws/models/rds/security_groups.rb +43 -0
  114. data/lib/fog/aws/models/rds/server.rb +111 -0
  115. data/lib/fog/aws/models/rds/servers.rb +27 -0
  116. data/lib/fog/aws/models/rds/snapshot.rb +49 -0
  117. data/lib/fog/aws/models/rds/snapshots.rb +45 -0
  118. data/lib/fog/aws/models/storage/directories.rb +43 -0
  119. data/lib/fog/aws/models/storage/directory.rb +119 -0
  120. data/lib/fog/aws/models/storage/file.rb +192 -0
  121. data/lib/fog/aws/models/storage/files.rb +117 -0
  122. data/lib/fog/aws/models/storage/version.rb +36 -0
  123. data/lib/fog/aws/models/storage/versions.rb +38 -0
  124. data/lib/fog/aws/parsers/auto_scaling/basic.rb +28 -0
  125. data/lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb +39 -0
  126. data/lib/fog/aws/parsers/auto_scaling/describe_auto_scaling_groups.rb +126 -0
  127. data/lib/fog/aws/parsers/auto_scaling/describe_auto_scaling_instances.rb +43 -0
  128. data/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb +94 -0
  129. data/lib/fog/aws/parsers/auto_scaling/describe_metric_collection_types.rb +66 -0
  130. data/lib/fog/aws/parsers/auto_scaling/describe_policies.rb +66 -0
  131. data/lib/fog/aws/parsers/auto_scaling/describe_scaling_activities.rb +47 -0
  132. data/lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb +39 -0
  133. data/lib/fog/aws/parsers/auto_scaling/describe_scheduled_actions.rb +46 -0
  134. data/lib/fog/aws/parsers/auto_scaling/put_scaling_policy.rb +30 -0
  135. data/lib/fog/aws/parsers/auto_scaling/terminate_instance_in_auto_scaling_group.rb +35 -0
  136. data/lib/fog/aws/parsers/cdn/distribution.rb +59 -0
  137. data/lib/fog/aws/parsers/cdn/get_distribution_list.rb +61 -0
  138. data/lib/fog/aws/parsers/cdn/get_invalidation_list.rb +42 -0
  139. data/lib/fog/aws/parsers/cdn/get_streaming_distribution_list.rb +59 -0
  140. data/lib/fog/aws/parsers/cdn/post_invalidation.rb +28 -0
  141. data/lib/fog/aws/parsers/cdn/streaming_distribution.rb +59 -0
  142. data/lib/fog/aws/parsers/cloud_formation/basic.rb +12 -0
  143. data/lib/fog/aws/parsers/cloud_formation/create_stack.rb +19 -0
  144. data/lib/fog/aws/parsers/cloud_formation/describe_stack_events.rb +31 -0
  145. data/lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb +31 -0
  146. data/lib/fog/aws/parsers/cloud_formation/describe_stacks.rb +72 -0
  147. data/lib/fog/aws/parsers/cloud_formation/get_template.rb +19 -0
  148. data/lib/fog/aws/parsers/cloud_formation/update_stack.rb +19 -0
  149. data/lib/fog/aws/parsers/cloud_formation/validate_template.rb +52 -0
  150. data/lib/fog/aws/parsers/cloud_watch/delete_alarms.rb +26 -0
  151. data/lib/fog/aws/parsers/cloud_watch/describe_alarm_history.rb +40 -0
  152. data/lib/fog/aws/parsers/cloud_watch/describe_alarms.rb +73 -0
  153. data/lib/fog/aws/parsers/cloud_watch/describe_alarms_for_metric.rb +71 -0
  154. data/lib/fog/aws/parsers/cloud_watch/disable_alarm_actions.rb +26 -0
  155. data/lib/fog/aws/parsers/cloud_watch/enable_alarm_actions.rb +26 -0
  156. data/lib/fog/aws/parsers/cloud_watch/get_metric_statistics.rb +43 -0
  157. data/lib/fog/aws/parsers/cloud_watch/list_metrics.rb +58 -0
  158. data/lib/fog/aws/parsers/cloud_watch/put_metric_alarm.rb +26 -0
  159. data/lib/fog/aws/parsers/cloud_watch/put_metric_data.rb +26 -0
  160. data/lib/fog/aws/parsers/cloud_watch/set_alarm_state.rb +26 -0
  161. data/lib/fog/aws/parsers/compute/allocate_address.rb +19 -0
  162. data/lib/fog/aws/parsers/compute/associate_address.rb +25 -0
  163. data/lib/fog/aws/parsers/compute/attach_volume.rb +22 -0
  164. data/lib/fog/aws/parsers/compute/basic.rb +25 -0
  165. data/lib/fog/aws/parsers/compute/cancel_spot_instance_requests.rb +30 -0
  166. data/lib/fog/aws/parsers/compute/create_image.rb +20 -0
  167. data/lib/fog/aws/parsers/compute/create_key_pair.rb +20 -0
  168. data/lib/fog/aws/parsers/compute/create_snapshot.rb +26 -0
  169. data/lib/fog/aws/parsers/compute/create_volume.rb +24 -0
  170. data/lib/fog/aws/parsers/compute/deregister_image.rb +20 -0
  171. data/lib/fog/aws/parsers/compute/describe_addresses.rb +30 -0
  172. data/lib/fog/aws/parsers/compute/describe_availability_zones.rb +32 -0
  173. data/lib/fog/aws/parsers/compute/describe_images.rb +91 -0
  174. data/lib/fog/aws/parsers/compute/describe_instance_status.rb +97 -0
  175. data/lib/fog/aws/parsers/compute/describe_instances.rb +90 -0
  176. data/lib/fog/aws/parsers/compute/describe_key_pairs.rb +30 -0
  177. data/lib/fog/aws/parsers/compute/describe_placement_groups.rb +30 -0
  178. data/lib/fog/aws/parsers/compute/describe_regions.rb +30 -0
  179. data/lib/fog/aws/parsers/compute/describe_reserved_instances.rb +36 -0
  180. data/lib/fog/aws/parsers/compute/describe_reserved_instances_offerings.rb +34 -0
  181. data/lib/fog/aws/parsers/compute/describe_security_groups.rb +100 -0
  182. data/lib/fog/aws/parsers/compute/describe_snapshots.rb +54 -0
  183. data/lib/fog/aws/parsers/compute/describe_spot_price_history.rb +34 -0
  184. data/lib/fog/aws/parsers/compute/describe_tags.rb +30 -0
  185. data/lib/fog/aws/parsers/compute/describe_volumes.rb +73 -0
  186. data/lib/fog/aws/parsers/compute/detach_volume.rb +22 -0
  187. data/lib/fog/aws/parsers/compute/get_console_output.rb +28 -0
  188. data/lib/fog/aws/parsers/compute/get_password_data.rb +26 -0
  189. data/lib/fog/aws/parsers/compute/import_key_pair.rb +20 -0
  190. data/lib/fog/aws/parsers/compute/monitor_unmonitor_instances.rb +35 -0
  191. data/lib/fog/aws/parsers/compute/purchase_reserved_instances_offering.rb +24 -0
  192. data/lib/fog/aws/parsers/compute/register_image.rb +20 -0
  193. data/lib/fog/aws/parsers/compute/run_instances.rb +82 -0
  194. data/lib/fog/aws/parsers/compute/spot_datafeed_subscription.rb +29 -0
  195. data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +67 -0
  196. data/lib/fog/aws/parsers/compute/start_stop_instances.rb +41 -0
  197. data/lib/fog/aws/parsers/compute/terminate_instances.rb +55 -0
  198. data/lib/fog/aws/parsers/dns/change_resource_record_sets.rb +26 -0
  199. data/lib/fog/aws/parsers/dns/create_hosted_zone.rb +55 -0
  200. data/lib/fog/aws/parsers/dns/delete_hosted_zone.rb +25 -0
  201. data/lib/fog/aws/parsers/dns/get_change.rb +26 -0
  202. data/lib/fog/aws/parsers/dns/get_hosted_zone.rb +43 -0
  203. data/lib/fog/aws/parsers/dns/list_hosted_zones.rb +37 -0
  204. data/lib/fog/aws/parsers/dns/list_resource_record_sets.rb +52 -0
  205. data/lib/fog/aws/parsers/elasticache/authorize_cache_security_group_ingress.rb +26 -0
  206. data/lib/fog/aws/parsers/elasticache/base.rb +34 -0
  207. data/lib/fog/aws/parsers/elasticache/cache_cluster_parser.rb +79 -0
  208. data/lib/fog/aws/parsers/elasticache/describe_cache_clusters.rb +27 -0
  209. data/lib/fog/aws/parsers/elasticache/describe_cache_parameters.rb +22 -0
  210. data/lib/fog/aws/parsers/elasticache/describe_engine_default_parameters.rb +22 -0
  211. data/lib/fog/aws/parsers/elasticache/describe_parameter_groups.rb +27 -0
  212. data/lib/fog/aws/parsers/elasticache/describe_security_groups.rb +27 -0
  213. data/lib/fog/aws/parsers/elasticache/engine_defaults_parser.rb +59 -0
  214. data/lib/fog/aws/parsers/elasticache/event_list.rb +38 -0
  215. data/lib/fog/aws/parsers/elasticache/modify_parameter_group.rb +27 -0
  216. data/lib/fog/aws/parsers/elasticache/parameter_group_parser.rb +30 -0
  217. data/lib/fog/aws/parsers/elasticache/reset_parameter_group.rb +27 -0
  218. data/lib/fog/aws/parsers/elasticache/security_group_parser.rb +40 -0
  219. data/lib/fog/aws/parsers/elasticache/single_cache_cluster.rb +22 -0
  220. data/lib/fog/aws/parsers/elasticache/single_parameter_group.rb +22 -0
  221. data/lib/fog/aws/parsers/elasticache/single_security_group.rb +34 -0
  222. data/lib/fog/aws/parsers/elb/configure_health_check.rb +37 -0
  223. data/lib/fog/aws/parsers/elb/create_load_balancer.rb +26 -0
  224. data/lib/fog/aws/parsers/elb/delete_load_balancer.rb +24 -0
  225. data/lib/fog/aws/parsers/elb/deregister_instances_from_load_balancer.rb +26 -0
  226. data/lib/fog/aws/parsers/elb/describe_instance_health.rb +30 -0
  227. data/lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb +64 -0
  228. data/lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb +70 -0
  229. data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +124 -0
  230. data/lib/fog/aws/parsers/elb/disable_availability_zones_for_load_balancer.rb +26 -0
  231. data/lib/fog/aws/parsers/elb/empty.rb +28 -0
  232. data/lib/fog/aws/parsers/elb/enable_availability_zones_for_load_balancer.rb +26 -0
  233. data/lib/fog/aws/parsers/elb/register_instances_with_load_balancer.rb +26 -0
  234. data/lib/fog/aws/parsers/emr/add_instance_groups.rb +28 -0
  235. data/lib/fog/aws/parsers/emr/add_job_flow_steps.rb +17 -0
  236. data/lib/fog/aws/parsers/emr/describe_job_flows.rb +140 -0
  237. data/lib/fog/aws/parsers/emr/modify_instance_groups.rb +17 -0
  238. data/lib/fog/aws/parsers/emr/run_job_flow.rb +19 -0
  239. data/lib/fog/aws/parsers/emr/set_termination_protection.rb +17 -0
  240. data/lib/fog/aws/parsers/emr/terminate_job_flows.rb +17 -0
  241. data/lib/fog/aws/parsers/iam/basic.rb +19 -0
  242. data/lib/fog/aws/parsers/iam/create_access_key.rb +26 -0
  243. data/lib/fog/aws/parsers/iam/create_group.rb +26 -0
  244. data/lib/fog/aws/parsers/iam/create_user.rb +26 -0
  245. data/lib/fog/aws/parsers/iam/get_group.rb +55 -0
  246. data/lib/fog/aws/parsers/iam/get_group_policy.rb +27 -0
  247. data/lib/fog/aws/parsers/iam/get_user.rb +27 -0
  248. data/lib/fog/aws/parsers/iam/get_user_policy.rb +27 -0
  249. data/lib/fog/aws/parsers/iam/list_access_keys.rb +32 -0
  250. data/lib/fog/aws/parsers/iam/list_account_aliases.rb +28 -0
  251. data/lib/fog/aws/parsers/iam/list_groups.rb +32 -0
  252. data/lib/fog/aws/parsers/iam/list_groups_for_user.rb +32 -0
  253. data/lib/fog/aws/parsers/iam/list_policies.rb +28 -0
  254. data/lib/fog/aws/parsers/iam/list_server_certificates.rb +38 -0
  255. data/lib/fog/aws/parsers/iam/list_signing_certificates.rb +32 -0
  256. data/lib/fog/aws/parsers/iam/list_users.rb +32 -0
  257. data/lib/fog/aws/parsers/iam/login_profile.rb +27 -0
  258. data/lib/fog/aws/parsers/iam/update_group.rb +26 -0
  259. data/lib/fog/aws/parsers/iam/update_user.rb +27 -0
  260. data/lib/fog/aws/parsers/iam/upload_server_certificate.rb +28 -0
  261. data/lib/fog/aws/parsers/iam/upload_signing_certificate.rb +26 -0
  262. data/lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb +38 -0
  263. data/lib/fog/aws/parsers/rds/create_db_instance.rb +34 -0
  264. data/lib/fog/aws/parsers/rds/create_db_instance_read_replica.rb +34 -0
  265. data/lib/fog/aws/parsers/rds/create_db_parameter_group.rb +35 -0
  266. data/lib/fog/aws/parsers/rds/create_db_security_group.rb +38 -0
  267. data/lib/fog/aws/parsers/rds/create_db_snapshot.rb +35 -0
  268. data/lib/fog/aws/parsers/rds/db_engine_version_parser.rb +35 -0
  269. data/lib/fog/aws/parsers/rds/db_parser.rb +123 -0
  270. data/lib/fog/aws/parsers/rds/delete_db_instance.rb +35 -0
  271. data/lib/fog/aws/parsers/rds/delete_db_parameter_group.rb +27 -0
  272. data/lib/fog/aws/parsers/rds/delete_db_security_group.rb +33 -0
  273. data/lib/fog/aws/parsers/rds/delete_db_snapshot.rb +34 -0
  274. data/lib/fog/aws/parsers/rds/describe_db_engine_versions.rb +39 -0
  275. data/lib/fog/aws/parsers/rds/describe_db_instances.rb +36 -0
  276. data/lib/fog/aws/parsers/rds/describe_db_parameter_groups.rb +38 -0
  277. data/lib/fog/aws/parsers/rds/describe_db_parameters.rb +44 -0
  278. data/lib/fog/aws/parsers/rds/describe_db_reserved_instances.rb +43 -0
  279. data/lib/fog/aws/parsers/rds/describe_db_security_groups.rb +39 -0
  280. data/lib/fog/aws/parsers/rds/describe_db_snapshots.rb +39 -0
  281. data/lib/fog/aws/parsers/rds/modify_db_instance.rb +34 -0
  282. data/lib/fog/aws/parsers/rds/modify_db_parameter_group.rb +28 -0
  283. data/lib/fog/aws/parsers/rds/reboot_db_instance.rb +35 -0
  284. data/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb +34 -0
  285. data/lib/fog/aws/parsers/rds/restore_db_instance_to_point_in_time.rb +35 -0
  286. data/lib/fog/aws/parsers/rds/revoke_db_security_group_ingress.rb +39 -0
  287. data/lib/fog/aws/parsers/rds/security_group_parser.rb +39 -0
  288. data/lib/fog/aws/parsers/rds/snapshot_parser.rb +40 -0
  289. data/lib/fog/aws/parsers/ses/delete_verified_email_address.rb +24 -0
  290. data/lib/fog/aws/parsers/ses/get_send_quota.rb +26 -0
  291. data/lib/fog/aws/parsers/ses/get_send_statistics.rb +29 -0
  292. data/lib/fog/aws/parsers/ses/list_verified_email_addresses.rb +25 -0
  293. data/lib/fog/aws/parsers/ses/send_email.rb +26 -0
  294. data/lib/fog/aws/parsers/ses/send_raw_email.rb +26 -0
  295. data/lib/fog/aws/parsers/ses/verify_email_address.rb +24 -0
  296. data/lib/fog/aws/parsers/simpledb/basic.rb +31 -0
  297. data/lib/fog/aws/parsers/simpledb/domain_metadata.rb +32 -0
  298. data/lib/fog/aws/parsers/simpledb/get_attributes.rb +36 -0
  299. data/lib/fog/aws/parsers/simpledb/list_domains.rb +30 -0
  300. data/lib/fog/aws/parsers/simpledb/select.rb +41 -0
  301. data/lib/fog/aws/parsers/sns/add_permission.rb +24 -0
  302. data/lib/fog/aws/parsers/sns/confirm_subscription.rb +24 -0
  303. data/lib/fog/aws/parsers/sns/create_topic.rb +24 -0
  304. data/lib/fog/aws/parsers/sns/delete_topic.rb +24 -0
  305. data/lib/fog/aws/parsers/sns/get_topic_attributes.rb +32 -0
  306. data/lib/fog/aws/parsers/sns/list_subscriptions.rb +29 -0
  307. data/lib/fog/aws/parsers/sns/list_topics.rb +26 -0
  308. data/lib/fog/aws/parsers/sns/publish.rb +24 -0
  309. data/lib/fog/aws/parsers/sns/remove_permission.rb +24 -0
  310. data/lib/fog/aws/parsers/sns/set_topic_attributes.rb +24 -0
  311. data/lib/fog/aws/parsers/sns/subscribe.rb +24 -0
  312. data/lib/fog/aws/parsers/sns/unsubscribe.rb +24 -0
  313. data/lib/fog/aws/parsers/sqs/basic.rb +23 -0
  314. data/lib/fog/aws/parsers/sqs/create_queue.rb +26 -0
  315. data/lib/fog/aws/parsers/sqs/get_queue_attributes.rb +35 -0
  316. data/lib/fog/aws/parsers/sqs/list_queues.rb +25 -0
  317. data/lib/fog/aws/parsers/sqs/receive_message.rb +41 -0
  318. data/lib/fog/aws/parsers/sqs/send_message.rb +28 -0
  319. data/lib/fog/aws/parsers/storage/access_control_list.rb +46 -0
  320. data/lib/fog/aws/parsers/storage/complete_multipart_upload.rb +24 -0
  321. data/lib/fog/aws/parsers/storage/copy_object.rb +22 -0
  322. data/lib/fog/aws/parsers/storage/get_bucket.rb +62 -0
  323. data/lib/fog/aws/parsers/storage/get_bucket_lifecycle.rb +32 -0
  324. data/lib/fog/aws/parsers/storage/get_bucket_location.rb +20 -0
  325. data/lib/fog/aws/parsers/storage/get_bucket_logging.rb +40 -0
  326. data/lib/fog/aws/parsers/storage/get_bucket_object_versions.rb +88 -0
  327. data/lib/fog/aws/parsers/storage/get_bucket_versioning.rb +24 -0
  328. data/lib/fog/aws/parsers/storage/get_bucket_website.rb +26 -0
  329. data/lib/fog/aws/parsers/storage/get_request_payment.rb +20 -0
  330. data/lib/fog/aws/parsers/storage/get_service.rb +32 -0
  331. data/lib/fog/aws/parsers/storage/initiate_multipart_upload.rb +24 -0
  332. data/lib/fog/aws/parsers/storage/list_multipart_uploads.rb +56 -0
  333. data/lib/fog/aws/parsers/storage/list_parts.rb +40 -0
  334. data/lib/fog/aws/parsers/sts/get_session_token.rb +31 -0
  335. data/lib/fog/aws/rds.rb +193 -0
  336. data/lib/fog/aws/requests/auto_scaling/create_auto_scaling_group.rb +108 -0
  337. data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +105 -0
  338. data/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb +45 -0
  339. data/lib/fog/aws/requests/auto_scaling/delete_launch_configuration.rb +48 -0
  340. data/lib/fog/aws/requests/auto_scaling/delete_policy.rb +47 -0
  341. data/lib/fog/aws/requests/auto_scaling/delete_scheduled_action.rb +48 -0
  342. data/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb +52 -0
  343. data/lib/fog/aws/requests/auto_scaling/describe_auto_scaling_groups.rb +128 -0
  344. data/lib/fog/aws/requests/auto_scaling/describe_auto_scaling_instances.rb +96 -0
  345. data/lib/fog/aws/requests/auto_scaling/describe_launch_configurations.rb +108 -0
  346. data/lib/fog/aws/requests/auto_scaling/describe_metric_collection_types.rb +60 -0
  347. data/lib/fog/aws/requests/auto_scaling/describe_policies.rb +85 -0
  348. data/lib/fog/aws/requests/auto_scaling/describe_scaling_activities.rb +88 -0
  349. data/lib/fog/aws/requests/auto_scaling/describe_scaling_process_types.rb +54 -0
  350. data/lib/fog/aws/requests/auto_scaling/describe_scheduled_actions.rb +88 -0
  351. data/lib/fog/aws/requests/auto_scaling/disable_metrics_collection.rb +56 -0
  352. data/lib/fog/aws/requests/auto_scaling/enable_metrics_collection.rb +66 -0
  353. data/lib/fog/aws/requests/auto_scaling/execute_policy.rb +50 -0
  354. data/lib/fog/aws/requests/auto_scaling/put_scaling_policy.rb +66 -0
  355. data/lib/fog/aws/requests/auto_scaling/put_scheduled_update_group_action.rb +67 -0
  356. data/lib/fog/aws/requests/auto_scaling/resume_processes.rb +50 -0
  357. data/lib/fog/aws/requests/auto_scaling/set_desired_capacity.rb +87 -0
  358. data/lib/fog/aws/requests/auto_scaling/set_instance_health.rb +55 -0
  359. data/lib/fog/aws/requests/auto_scaling/suspend_processes.rb +57 -0
  360. data/lib/fog/aws/requests/auto_scaling/terminate_instance_in_auto_scaling_group.rb +65 -0
  361. data/lib/fog/aws/requests/auto_scaling/update_auto_scaling_group.rb +79 -0
  362. data/lib/fog/aws/requests/cdn/delete_distribution.rb +28 -0
  363. data/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb +28 -0
  364. data/lib/fog/aws/requests/cdn/get_distribution.rb +57 -0
  365. data/lib/fog/aws/requests/cdn/get_distribution_list.rb +59 -0
  366. data/lib/fog/aws/requests/cdn/get_invalidation_list.rb +42 -0
  367. data/lib/fog/aws/requests/cdn/get_streaming_distribution.rb +50 -0
  368. data/lib/fog/aws/requests/cdn/get_streaming_distribution_list.rb +59 -0
  369. data/lib/fog/aws/requests/cdn/post_distribution.rb +91 -0
  370. data/lib/fog/aws/requests/cdn/post_invalidation.rb +51 -0
  371. data/lib/fog/aws/requests/cdn/post_streaming_distribution.rb +78 -0
  372. data/lib/fog/aws/requests/cdn/put_distribution_config.rb +94 -0
  373. data/lib/fog/aws/requests/cdn/put_streaming_distribution_config.rb +83 -0
  374. data/lib/fog/aws/requests/cloud_formation/create_stack.rb +77 -0
  375. data/lib/fog/aws/requests/cloud_formation/delete_stack.rb +30 -0
  376. data/lib/fog/aws/requests/cloud_formation/describe_stack_events.rb +44 -0
  377. data/lib/fog/aws/requests/cloud_formation/describe_stack_resources.rb +43 -0
  378. data/lib/fog/aws/requests/cloud_formation/describe_stacks.rb +42 -0
  379. data/lib/fog/aws/requests/cloud_formation/get_template.rb +32 -0
  380. data/lib/fog/aws/requests/cloud_formation/update_stack.rb +62 -0
  381. data/lib/fog/aws/requests/cloud_formation/validate_template.rb +34 -0
  382. data/lib/fog/aws/requests/cloud_watch/delete_alarms.rb +30 -0
  383. data/lib/fog/aws/requests/cloud_watch/describe_alarm_history.rb +33 -0
  384. data/lib/fog/aws/requests/cloud_watch/describe_alarms.rb +38 -0
  385. data/lib/fog/aws/requests/cloud_watch/describe_alarms_for_metric.rb +39 -0
  386. data/lib/fog/aws/requests/cloud_watch/disable_alarm_actions.rb +30 -0
  387. data/lib/fog/aws/requests/cloud_watch/enable_alarm_actions.rb +30 -0
  388. data/lib/fog/aws/requests/cloud_watch/get_metric_statistics.rb +48 -0
  389. data/lib/fog/aws/requests/cloud_watch/list_metrics.rb +38 -0
  390. data/lib/fog/aws/requests/cloud_watch/put_metric_alarm.rb +84 -0
  391. data/lib/fog/aws/requests/cloud_watch/put_metric_data.rb +73 -0
  392. data/lib/fog/aws/requests/cloud_watch/set_alarm_state.rb +31 -0
  393. data/lib/fog/aws/requests/compute/allocate_address.rb +60 -0
  394. data/lib/fog/aws/requests/compute/associate_address.rb +94 -0
  395. data/lib/fog/aws/requests/compute/attach_volume.rb +87 -0
  396. data/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb +207 -0
  397. data/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb +34 -0
  398. data/lib/fog/aws/requests/compute/create_image.rb +65 -0
  399. data/lib/fog/aws/requests/compute/create_key_pair.rb +56 -0
  400. data/lib/fog/aws/requests/compute/create_placement_group.rb +34 -0
  401. data/lib/fog/aws/requests/compute/create_security_group.rb +60 -0
  402. data/lib/fog/aws/requests/compute/create_snapshot.rb +72 -0
  403. data/lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb +41 -0
  404. data/lib/fog/aws/requests/compute/create_tags.rb +87 -0
  405. data/lib/fog/aws/requests/compute/create_volume.rb +86 -0
  406. data/lib/fog/aws/requests/compute/delete_key_pair.rb +47 -0
  407. data/lib/fog/aws/requests/compute/delete_placement_group.rb +32 -0
  408. data/lib/fog/aws/requests/compute/delete_security_group.rb +74 -0
  409. data/lib/fog/aws/requests/compute/delete_snapshot.rb +50 -0
  410. data/lib/fog/aws/requests/compute/delete_spot_datafeed_subscription.rb +28 -0
  411. data/lib/fog/aws/requests/compute/delete_tags.rb +86 -0
  412. data/lib/fog/aws/requests/compute/delete_volume.rb +56 -0
  413. data/lib/fog/aws/requests/compute/deregister_image.rb +53 -0
  414. data/lib/fog/aws/requests/compute/describe_addresses.rb +66 -0
  415. data/lib/fog/aws/requests/compute/describe_availability_zones.rb +94 -0
  416. data/lib/fog/aws/requests/compute/describe_images.rb +130 -0
  417. data/lib/fog/aws/requests/compute/describe_instance_status.rb +36 -0
  418. data/lib/fog/aws/requests/compute/describe_instances.rb +222 -0
  419. data/lib/fog/aws/requests/compute/describe_key_pairs.rb +68 -0
  420. data/lib/fog/aws/requests/compute/describe_placement_groups.rb +35 -0
  421. data/lib/fog/aws/requests/compute/describe_regions.rb +68 -0
  422. data/lib/fog/aws/requests/compute/describe_reserved_instances.rb +60 -0
  423. data/lib/fog/aws/requests/compute/describe_reserved_instances_offerings.rb +64 -0
  424. data/lib/fog/aws/requests/compute/describe_security_groups.rb +99 -0
  425. data/lib/fog/aws/requests/compute/describe_snapshots.rb +122 -0
  426. data/lib/fog/aws/requests/compute/describe_spot_datafeed_subscription.rb +35 -0
  427. data/lib/fog/aws/requests/compute/describe_spot_instance_requests.rb +47 -0
  428. data/lib/fog/aws/requests/compute/describe_spot_price_history.rb +37 -0
  429. data/lib/fog/aws/requests/compute/describe_tags.rb +107 -0
  430. data/lib/fog/aws/requests/compute/describe_volumes.rb +118 -0
  431. data/lib/fog/aws/requests/compute/detach_volume.rb +60 -0
  432. data/lib/fog/aws/requests/compute/disassociate_address.rb +58 -0
  433. data/lib/fog/aws/requests/compute/get_console_output.rb +54 -0
  434. data/lib/fog/aws/requests/compute/get_password_data.rb +56 -0
  435. data/lib/fog/aws/requests/compute/import_key_pair.rb +56 -0
  436. data/lib/fog/aws/requests/compute/modify_image_attribute.rb +74 -0
  437. data/lib/fog/aws/requests/compute/modify_instance_attribute.rb +44 -0
  438. data/lib/fog/aws/requests/compute/modify_snapshot_attribute.rb +37 -0
  439. data/lib/fog/aws/requests/compute/monitor_instances.rb +54 -0
  440. data/lib/fog/aws/requests/compute/purchase_reserved_instances_offering.rb +63 -0
  441. data/lib/fog/aws/requests/compute/reboot_instances.rb +54 -0
  442. data/lib/fog/aws/requests/compute/register_image.rb +133 -0
  443. data/lib/fog/aws/requests/compute/release_address.rb +47 -0
  444. data/lib/fog/aws/requests/compute/request_spot_instances.rb +83 -0
  445. data/lib/fog/aws/requests/compute/revoke_security_group_ingress.rb +104 -0
  446. data/lib/fog/aws/requests/compute/run_instances.rb +176 -0
  447. data/lib/fog/aws/requests/compute/start_instances.rb +32 -0
  448. data/lib/fog/aws/requests/compute/stop_instances.rb +33 -0
  449. data/lib/fog/aws/requests/compute/terminate_instances.rb +96 -0
  450. data/lib/fog/aws/requests/compute/unmonitor_instances.rb +55 -0
  451. data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +97 -0
  452. data/lib/fog/aws/requests/dns/create_hosted_zone.rb +59 -0
  453. data/lib/fog/aws/requests/dns/delete_hosted_zone.rb +39 -0
  454. data/lib/fog/aws/requests/dns/get_change.rb +38 -0
  455. data/lib/fog/aws/requests/dns/get_hosted_zone.rb +42 -0
  456. data/lib/fog/aws/requests/dns/list_hosted_zones.rb +54 -0
  457. data/lib/fog/aws/requests/dns/list_resource_record_sets.rb +63 -0
  458. data/lib/fog/aws/requests/dynamodb/batch_get_item.rb +43 -0
  459. data/lib/fog/aws/requests/dynamodb/create_table.rb +55 -0
  460. data/lib/fog/aws/requests/dynamodb/delete_item.rb +45 -0
  461. data/lib/fog/aws/requests/dynamodb/delete_table.rb +42 -0
  462. data/lib/fog/aws/requests/dynamodb/describe_table.rb +44 -0
  463. data/lib/fog/aws/requests/dynamodb/get_item.rb +43 -0
  464. data/lib/fog/aws/requests/dynamodb/list_tables.rb +29 -0
  465. data/lib/fog/aws/requests/dynamodb/put_item.rb +41 -0
  466. data/lib/fog/aws/requests/dynamodb/query.rb +44 -0
  467. data/lib/fog/aws/requests/dynamodb/scan.rb +45 -0
  468. data/lib/fog/aws/requests/dynamodb/update_item.rb +49 -0
  469. data/lib/fog/aws/requests/dynamodb/update_table.rb +46 -0
  470. data/lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb +36 -0
  471. data/lib/fog/aws/requests/elasticache/create_cache_cluster.rb +62 -0
  472. data/lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb +37 -0
  473. data/lib/fog/aws/requests/elasticache/create_cache_security_group.rb +33 -0
  474. data/lib/fog/aws/requests/elasticache/delete_cache_cluster.rb +32 -0
  475. data/lib/fog/aws/requests/elasticache/delete_cache_parameter_group.rb +31 -0
  476. data/lib/fog/aws/requests/elasticache/delete_cache_security_group.rb +31 -0
  477. data/lib/fog/aws/requests/elasticache/describe_cache_clusters.rb +39 -0
  478. data/lib/fog/aws/requests/elasticache/describe_cache_parameter_groups.rb +34 -0
  479. data/lib/fog/aws/requests/elasticache/describe_cache_parameters.rb +36 -0
  480. data/lib/fog/aws/requests/elasticache/describe_cache_security_groups.rb +34 -0
  481. data/lib/fog/aws/requests/elasticache/describe_engine_default_parameters.rb +35 -0
  482. data/lib/fog/aws/requests/elasticache/describe_events.rb +46 -0
  483. data/lib/fog/aws/requests/elasticache/modify_cache_cluster.rb +70 -0
  484. data/lib/fog/aws/requests/elasticache/modify_cache_parameter_group.rb +45 -0
  485. data/lib/fog/aws/requests/elasticache/reboot_cache_cluster.rb +44 -0
  486. data/lib/fog/aws/requests/elasticache/reset_cache_parameter_group.rb +46 -0
  487. data/lib/fog/aws/requests/elasticache/revoke_cache_security_group_ingress.rb +37 -0
  488. data/lib/fog/aws/requests/elb/configure_health_check.rb +65 -0
  489. data/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +56 -0
  490. data/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +58 -0
  491. data/lib/fog/aws/requests/elb/create_load_balancer.rb +114 -0
  492. data/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +88 -0
  493. data/lib/fog/aws/requests/elb/create_load_balancer_policy.rb +79 -0
  494. data/lib/fog/aws/requests/elb/delete_load_balancer.rb +51 -0
  495. data/lib/fog/aws/requests/elb/delete_load_balancer_listeners.rb +50 -0
  496. data/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +54 -0
  497. data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +63 -0
  498. data/lib/fog/aws/requests/elb/describe_instance_health.rb +72 -0
  499. data/lib/fog/aws/requests/elb/describe_load_balancer_policies.rb +71 -0
  500. data/lib/fog/aws/requests/elb/describe_load_balancer_policy_types.rb +68 -0
  501. data/lib/fog/aws/requests/elb/describe_load_balancers.rb +89 -0
  502. data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +59 -0
  503. data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +61 -0
  504. data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +64 -0
  505. data/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +67 -0
  506. data/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +80 -0
  507. data/lib/fog/aws/requests/emr/add_instance_groups.rb +46 -0
  508. data/lib/fog/aws/requests/emr/add_job_flow_steps.rb +49 -0
  509. data/lib/fog/aws/requests/emr/describe_job_flows.rb +108 -0
  510. data/lib/fog/aws/requests/emr/modify_instance_groups.rb +40 -0
  511. data/lib/fog/aws/requests/emr/run_job_flow.rb +108 -0
  512. data/lib/fog/aws/requests/emr/set_termination_protection.rb +39 -0
  513. data/lib/fog/aws/requests/emr/terminate_job_flows.rb +37 -0
  514. data/lib/fog/aws/requests/iam/add_user_to_group.rb +58 -0
  515. data/lib/fog/aws/requests/iam/create_access_key.rb +61 -0
  516. data/lib/fog/aws/requests/iam/create_account_alias.rb +19 -0
  517. data/lib/fog/aws/requests/iam/create_group.rb +60 -0
  518. data/lib/fog/aws/requests/iam/create_login_profile.rb +36 -0
  519. data/lib/fog/aws/requests/iam/create_user.rb +60 -0
  520. data/lib/fog/aws/requests/iam/delete_access_key.rb +51 -0
  521. data/lib/fog/aws/requests/iam/delete_account_alias.rb +19 -0
  522. data/lib/fog/aws/requests/iam/delete_group.rb +51 -0
  523. data/lib/fog/aws/requests/iam/delete_group_policy.rb +34 -0
  524. data/lib/fog/aws/requests/iam/delete_login_profile.rb +31 -0
  525. data/lib/fog/aws/requests/iam/delete_server_certificate.rb +46 -0
  526. data/lib/fog/aws/requests/iam/delete_signing_certificate.rb +33 -0
  527. data/lib/fog/aws/requests/iam/delete_user.rb +49 -0
  528. data/lib/fog/aws/requests/iam/delete_user_policy.rb +50 -0
  529. data/lib/fog/aws/requests/iam/get_group.rb +44 -0
  530. data/lib/fog/aws/requests/iam/get_group_policy.rb +36 -0
  531. data/lib/fog/aws/requests/iam/get_login_profile.rb +35 -0
  532. data/lib/fog/aws/requests/iam/get_server_certificate.rb +48 -0
  533. data/lib/fog/aws/requests/iam/get_user.rb +36 -0
  534. data/lib/fog/aws/requests/iam/get_user_policy.rb +36 -0
  535. data/lib/fog/aws/requests/iam/list_access_keys.rb +61 -0
  536. data/lib/fog/aws/requests/iam/list_account_aliases.rb +18 -0
  537. data/lib/fog/aws/requests/iam/list_group_policies.rb +39 -0
  538. data/lib/fog/aws/requests/iam/list_groups.rb +60 -0
  539. data/lib/fog/aws/requests/iam/list_groups_for_user.rb +67 -0
  540. data/lib/fog/aws/requests/iam/list_server_certificates.rb +56 -0
  541. data/lib/fog/aws/requests/iam/list_signing_certificates.rb +38 -0
  542. data/lib/fog/aws/requests/iam/list_user_policies.rb +57 -0
  543. data/lib/fog/aws/requests/iam/list_users.rb +59 -0
  544. data/lib/fog/aws/requests/iam/put_group_policy.rb +36 -0
  545. data/lib/fog/aws/requests/iam/put_user_policy.rb +54 -0
  546. data/lib/fog/aws/requests/iam/remove_user_from_group.rb +53 -0
  547. data/lib/fog/aws/requests/iam/update_access_key.rb +36 -0
  548. data/lib/fog/aws/requests/iam/update_group.rb +39 -0
  549. data/lib/fog/aws/requests/iam/update_login_profile.rb +33 -0
  550. data/lib/fog/aws/requests/iam/update_server_certificate.rb +37 -0
  551. data/lib/fog/aws/requests/iam/update_signing_certificate.rb +32 -0
  552. data/lib/fog/aws/requests/iam/update_user.rb +39 -0
  553. data/lib/fog/aws/requests/iam/upload_server_certificate.rb +97 -0
  554. data/lib/fog/aws/requests/iam/upload_signing_certificate.rb +38 -0
  555. data/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +72 -0
  556. data/lib/fog/aws/requests/rds/create_db_instance.rb +122 -0
  557. data/lib/fog/aws/requests/rds/create_db_instance_read_replica.rb +42 -0
  558. data/lib/fog/aws/requests/rds/create_db_parameter_group.rb +41 -0
  559. data/lib/fog/aws/requests/rds/create_db_security_group.rb +55 -0
  560. data/lib/fog/aws/requests/rds/create_db_snapshot.rb +72 -0
  561. data/lib/fog/aws/requests/rds/delete_db_instance.rb +55 -0
  562. data/lib/fog/aws/requests/rds/delete_db_parameter_group.rb +36 -0
  563. data/lib/fog/aws/requests/rds/delete_db_security_group.rb +46 -0
  564. data/lib/fog/aws/requests/rds/delete_db_snapshot.rb +47 -0
  565. data/lib/fog/aws/requests/rds/describe_db_engine_versions.rb +34 -0
  566. data/lib/fog/aws/requests/rds/describe_db_instances.rb +97 -0
  567. data/lib/fog/aws/requests/rds/describe_db_parameter_groups.rb +45 -0
  568. data/lib/fog/aws/requests/rds/describe_db_parameters.rb +46 -0
  569. data/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +42 -0
  570. data/lib/fog/aws/requests/rds/describe_db_security_groups.rb +85 -0
  571. data/lib/fog/aws/requests/rds/describe_db_snapshots.rb +69 -0
  572. data/lib/fog/aws/requests/rds/modify_db_instance.rb +79 -0
  573. data/lib/fog/aws/requests/rds/modify_db_parameter_group.rb +55 -0
  574. data/lib/fog/aws/requests/rds/reboot_db_instance.rb +50 -0
  575. data/lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb +34 -0
  576. data/lib/fog/aws/requests/rds/restore_db_instance_to_point_in_time.rb +35 -0
  577. data/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +70 -0
  578. data/lib/fog/aws/requests/ses/delete_verified_email_address.rb +28 -0
  579. data/lib/fog/aws/requests/ses/get_send_quota.rb +31 -0
  580. data/lib/fog/aws/requests/ses/get_send_statistics.rb +34 -0
  581. data/lib/fog/aws/requests/ses/list_verified_email_addresses.rb +28 -0
  582. data/lib/fog/aws/requests/ses/send_email.rb +73 -0
  583. data/lib/fog/aws/requests/ses/send_raw_email.rb +41 -0
  584. data/lib/fog/aws/requests/ses/verify_email_address.rb +28 -0
  585. data/lib/fog/aws/requests/simpledb/batch_put_attributes.rb +64 -0
  586. data/lib/fog/aws/requests/simpledb/create_domain.rb +44 -0
  587. data/lib/fog/aws/requests/simpledb/delete_attributes.rb +73 -0
  588. data/lib/fog/aws/requests/simpledb/delete_domain.rb +45 -0
  589. data/lib/fog/aws/requests/simpledb/domain_metadata.rb +76 -0
  590. data/lib/fog/aws/requests/simpledb/get_attributes.rb +84 -0
  591. data/lib/fog/aws/requests/simpledb/list_domains.rb +59 -0
  592. data/lib/fog/aws/requests/simpledb/put_attributes.rb +78 -0
  593. data/lib/fog/aws/requests/simpledb/select.rb +43 -0
  594. data/lib/fog/aws/requests/sns/add_permission.rb +26 -0
  595. data/lib/fog/aws/requests/sns/confirm_subscription.rb +33 -0
  596. data/lib/fog/aws/requests/sns/create_topic.rb +29 -0
  597. data/lib/fog/aws/requests/sns/delete_topic.rb +29 -0
  598. data/lib/fog/aws/requests/sns/get_topic_attributes.rb +29 -0
  599. data/lib/fog/aws/requests/sns/list_subscriptions.rb +29 -0
  600. data/lib/fog/aws/requests/sns/list_subscriptions_by_topic.rb +31 -0
  601. data/lib/fog/aws/requests/sns/list_topics.rb +29 -0
  602. data/lib/fog/aws/requests/sns/publish.rb +34 -0
  603. data/lib/fog/aws/requests/sns/remove_permission.rb +26 -0
  604. data/lib/fog/aws/requests/sns/set_topic_attributes.rb +33 -0
  605. data/lib/fog/aws/requests/sns/subscribe.rb +33 -0
  606. data/lib/fog/aws/requests/sns/unsubscribe.rb +29 -0
  607. data/lib/fog/aws/requests/sqs/change_message_visibility.rb +63 -0
  608. data/lib/fog/aws/requests/sqs/create_queue.rb +65 -0
  609. data/lib/fog/aws/requests/sqs/delete_message.rb +60 -0
  610. data/lib/fog/aws/requests/sqs/delete_queue.rb +52 -0
  611. data/lib/fog/aws/requests/sqs/get_queue_attributes.rb +52 -0
  612. data/lib/fog/aws/requests/sqs/list_queues.rb +42 -0
  613. data/lib/fog/aws/requests/sqs/receive_message.rb +87 -0
  614. data/lib/fog/aws/requests/sqs/send_message.rb +69 -0
  615. data/lib/fog/aws/requests/sqs/set_queue_attributes.rb +51 -0
  616. data/lib/fog/aws/requests/storage/abort_multipart_upload.rb +30 -0
  617. data/lib/fog/aws/requests/storage/acl_utils.rb +62 -0
  618. data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +52 -0
  619. data/lib/fog/aws/requests/storage/copy_object.rb +82 -0
  620. data/lib/fog/aws/requests/storage/delete_bucket.rb +50 -0
  621. data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +30 -0
  622. data/lib/fog/aws/requests/storage/delete_bucket_policy.rb +32 -0
  623. data/lib/fog/aws/requests/storage/delete_bucket_website.rb +32 -0
  624. data/lib/fog/aws/requests/storage/delete_object.rb +121 -0
  625. data/lib/fog/aws/requests/storage/get_bucket.rb +115 -0
  626. data/lib/fog/aws/requests/storage/get_bucket_acl.rb +72 -0
  627. data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +41 -0
  628. data/lib/fog/aws/requests/storage/get_bucket_location.rb +61 -0
  629. data/lib/fog/aws/requests/storage/get_bucket_logging.rb +50 -0
  630. data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +168 -0
  631. data/lib/fog/aws/requests/storage/get_bucket_policy.rb +37 -0
  632. data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +72 -0
  633. data/lib/fog/aws/requests/storage/get_bucket_website.rb +42 -0
  634. data/lib/fog/aws/requests/storage/get_object.rb +144 -0
  635. data/lib/fog/aws/requests/storage/get_object_acl.rb +83 -0
  636. data/lib/fog/aws/requests/storage/get_object_http_url.rb +57 -0
  637. data/lib/fog/aws/requests/storage/get_object_https_url.rb +57 -0
  638. data/lib/fog/aws/requests/storage/get_object_torrent.rb +50 -0
  639. data/lib/fog/aws/requests/storage/get_object_url.rb +37 -0
  640. data/lib/fog/aws/requests/storage/get_request_payment.rb +52 -0
  641. data/lib/fog/aws/requests/storage/get_service.rb +57 -0
  642. data/lib/fog/aws/requests/storage/head_object.rb +69 -0
  643. data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +47 -0
  644. data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +60 -0
  645. data/lib/fog/aws/requests/storage/list_parts.rb +59 -0
  646. data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +40 -0
  647. data/lib/fog/aws/requests/storage/put_bucket.rb +77 -0
  648. data/lib/fog/aws/requests/storage/put_bucket_acl.rb +73 -0
  649. data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +48 -0
  650. data/lib/fog/aws/requests/storage/put_bucket_logging.rb +83 -0
  651. data/lib/fog/aws/requests/storage/put_bucket_policy.rb +30 -0
  652. data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +77 -0
  653. data/lib/fog/aws/requests/storage/put_bucket_website.rb +66 -0
  654. data/lib/fog/aws/requests/storage/put_object.rb +116 -0
  655. data/lib/fog/aws/requests/storage/put_object_acl.rb +82 -0
  656. data/lib/fog/aws/requests/storage/put_object_url.rb +57 -0
  657. data/lib/fog/aws/requests/storage/put_request_payment.rb +51 -0
  658. data/lib/fog/aws/requests/storage/sync_clock.rb +28 -0
  659. data/lib/fog/aws/requests/storage/upload_part.rb +43 -0
  660. data/lib/fog/aws/requests/sts/get_federation_token.rb +21 -0
  661. data/lib/fog/aws/requests/sts/get_session_token.rb +19 -0
  662. data/lib/fog/aws/ses.rb +108 -0
  663. data/lib/fog/aws/simpledb.rb +187 -0
  664. data/lib/fog/aws/sns.rb +105 -0
  665. data/lib/fog/aws/sqs.rb +145 -0
  666. data/lib/fog/aws/storage.rb +371 -0
  667. data/lib/fog/aws/sts.rb +137 -0
  668. data/lib/fog/bin.rb +84 -0
  669. data/lib/fog/bin/aws.rb +107 -0
  670. data/lib/fog/bin/bluebox.rb +36 -0
  671. data/lib/fog/bin/brightbox.rb +35 -0
  672. data/lib/fog/bin/clodo.rb +31 -0
  673. data/lib/fog/bin/cloudstack.rb +30 -0
  674. data/lib/fog/bin/dnsimple.rb +31 -0
  675. data/lib/fog/bin/dnsmadeeasy.rb +31 -0
  676. data/lib/fog/bin/dynect.rb +30 -0
  677. data/lib/fog/bin/ecloud.rb +31 -0
  678. data/lib/fog/bin/glesys.rb +31 -0
  679. data/lib/fog/bin/go_grid.rb +31 -0
  680. data/lib/fog/bin/google.rb +31 -0
  681. data/lib/fog/bin/joyent.rb +31 -0
  682. data/lib/fog/bin/libvirt.rb +60 -0
  683. data/lib/fog/bin/linode.rb +36 -0
  684. data/lib/fog/bin/local.rb +31 -0
  685. data/lib/fog/bin/new_servers.rb +31 -0
  686. data/lib/fog/bin/ninefold.rb +36 -0
  687. data/lib/fog/bin/openstack.rb +31 -0
  688. data/lib/fog/bin/ovirt.rb +30 -0
  689. data/lib/fog/bin/rackspace.rb +49 -0
  690. data/lib/fog/bin/slicehost.rb +36 -0
  691. data/lib/fog/bin/stormondemand.rb +31 -0
  692. data/lib/fog/bin/terremark.rb +31 -0
  693. data/lib/fog/bin/vcloud.rb +30 -0
  694. data/lib/fog/bin/virtual_box.rb +57 -0
  695. data/lib/fog/bin/vmfusion.rb +60 -0
  696. data/lib/fog/bin/voxel.rb +31 -0
  697. data/lib/fog/bin/vsphere.rb +30 -0
  698. data/lib/fog/bin/zerigo.rb +31 -0
  699. data/lib/fog/bluebox.rb +12 -0
  700. data/lib/fog/bluebox/compute.rb +105 -0
  701. data/lib/fog/bluebox/dns.rb +104 -0
  702. data/lib/fog/bluebox/models/compute/flavor.rb +45 -0
  703. data/lib/fog/bluebox/models/compute/flavors.rb +28 -0
  704. data/lib/fog/bluebox/models/compute/image.rb +34 -0
  705. data/lib/fog/bluebox/models/compute/images.rb +28 -0
  706. data/lib/fog/bluebox/models/compute/location.rb +17 -0
  707. data/lib/fog/bluebox/models/compute/locations.rb +28 -0
  708. data/lib/fog/bluebox/models/compute/server.rb +139 -0
  709. data/lib/fog/bluebox/models/compute/servers.rb +36 -0
  710. data/lib/fog/bluebox/models/dns/record.rb +55 -0
  711. data/lib/fog/bluebox/models/dns/records.rb +36 -0
  712. data/lib/fog/bluebox/models/dns/zone.rb +64 -0
  713. data/lib/fog/bluebox/models/dns/zones.rb +28 -0
  714. data/lib/fog/bluebox/parsers/dns/create_record.rb +26 -0
  715. data/lib/fog/bluebox/parsers/dns/create_zone.rb +26 -0
  716. data/lib/fog/bluebox/parsers/dns/get_record.rb +21 -0
  717. data/lib/fog/bluebox/parsers/dns/get_records.rb +28 -0
  718. data/lib/fog/bluebox/parsers/dns/get_zone.rb +26 -0
  719. data/lib/fog/bluebox/parsers/dns/get_zones.rb +30 -0
  720. data/lib/fog/bluebox/requests/compute/create_block.rb +33 -0
  721. data/lib/fog/bluebox/requests/compute/create_template.rb +27 -0
  722. data/lib/fog/bluebox/requests/compute/destroy_block.rb +26 -0
  723. data/lib/fog/bluebox/requests/compute/destroy_template.rb +26 -0
  724. data/lib/fog/bluebox/requests/compute/get_block.rb +26 -0
  725. data/lib/fog/bluebox/requests/compute/get_blocks.rb +28 -0
  726. data/lib/fog/bluebox/requests/compute/get_location.rb +26 -0
  727. data/lib/fog/bluebox/requests/compute/get_locations.rb +24 -0
  728. data/lib/fog/bluebox/requests/compute/get_product.rb +26 -0
  729. data/lib/fog/bluebox/requests/compute/get_products.rb +25 -0
  730. data/lib/fog/bluebox/requests/compute/get_template.rb +26 -0
  731. data/lib/fog/bluebox/requests/compute/get_templates.rb +26 -0
  732. data/lib/fog/bluebox/requests/compute/reboot_block.rb +27 -0
  733. data/lib/fog/bluebox/requests/dns/create_record.rb +48 -0
  734. data/lib/fog/bluebox/requests/dns/create_zone.rb +52 -0
  735. data/lib/fog/bluebox/requests/dns/delete_record.rb +31 -0
  736. data/lib/fog/bluebox/requests/dns/delete_zone.rb +31 -0
  737. data/lib/fog/bluebox/requests/dns/get_record.rb +40 -0
  738. data/lib/fog/bluebox/requests/dns/get_records.rb +41 -0
  739. data/lib/fog/bluebox/requests/dns/get_zone.rb +44 -0
  740. data/lib/fog/bluebox/requests/dns/get_zones.rb +43 -0
  741. data/lib/fog/bluebox/requests/dns/update_record.rb +34 -0
  742. data/lib/fog/bluebox/requests/dns/update_zone.rb +30 -0
  743. data/lib/fog/brightbox.rb +10 -0
  744. data/lib/fog/brightbox/compute.rb +188 -0
  745. data/lib/fog/brightbox/models/compute/account.rb +63 -0
  746. data/lib/fog/brightbox/models/compute/cloud_ip.rb +57 -0
  747. data/lib/fog/brightbox/models/compute/cloud_ips.rb +34 -0
  748. data/lib/fog/brightbox/models/compute/firewall_policies.rb +29 -0
  749. data/lib/fog/brightbox/models/compute/firewall_policy.rb +65 -0
  750. data/lib/fog/brightbox/models/compute/firewall_rule.rb +54 -0
  751. data/lib/fog/brightbox/models/compute/firewall_rules.rb +24 -0
  752. data/lib/fog/brightbox/models/compute/flavor.rb +32 -0
  753. data/lib/fog/brightbox/models/compute/flavors.rb +28 -0
  754. data/lib/fog/brightbox/models/compute/image.rb +65 -0
  755. data/lib/fog/brightbox/models/compute/images.rb +28 -0
  756. data/lib/fog/brightbox/models/compute/load_balancer.rb +59 -0
  757. data/lib/fog/brightbox/models/compute/load_balancers.rb +28 -0
  758. data/lib/fog/brightbox/models/compute/server.rb +156 -0
  759. data/lib/fog/brightbox/models/compute/server_group.rb +96 -0
  760. data/lib/fog/brightbox/models/compute/server_groups.rb +29 -0
  761. data/lib/fog/brightbox/models/compute/servers.rb +29 -0
  762. data/lib/fog/brightbox/models/compute/user.rb +43 -0
  763. data/lib/fog/brightbox/models/compute/users.rb +29 -0
  764. data/lib/fog/brightbox/models/compute/zone.rb +22 -0
  765. data/lib/fog/brightbox/models/compute/zones.rb +29 -0
  766. data/lib/fog/brightbox/requests/compute/activate_console_server.rb +14 -0
  767. data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +14 -0
  768. data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +14 -0
  769. data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +28 -0
  770. data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +14 -0
  771. data/lib/fog/brightbox/requests/compute/create_api_client.rb +13 -0
  772. data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +13 -0
  773. data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +13 -0
  774. data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +13 -0
  775. data/lib/fog/brightbox/requests/compute/create_image.rb +13 -0
  776. data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +13 -0
  777. data/lib/fog/brightbox/requests/compute/create_server.rb +13 -0
  778. data/lib/fog/brightbox/requests/compute/create_server_group.rb +13 -0
  779. data/lib/fog/brightbox/requests/compute/destroy_api_client.rb +14 -0
  780. data/lib/fog/brightbox/requests/compute/destroy_cloud_ip.rb +14 -0
  781. data/lib/fog/brightbox/requests/compute/destroy_firewall_policy.rb +14 -0
  782. data/lib/fog/brightbox/requests/compute/destroy_firewall_rule.rb +14 -0
  783. data/lib/fog/brightbox/requests/compute/destroy_image.rb +14 -0
  784. data/lib/fog/brightbox/requests/compute/destroy_load_balancer.rb +14 -0
  785. data/lib/fog/brightbox/requests/compute/destroy_server.rb +14 -0
  786. data/lib/fog/brightbox/requests/compute/destroy_server_group.rb +14 -0
  787. data/lib/fog/brightbox/requests/compute/get_account.rb +13 -0
  788. data/lib/fog/brightbox/requests/compute/get_api_client.rb +14 -0
  789. data/lib/fog/brightbox/requests/compute/get_cloud_ip.rb +14 -0
  790. data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +14 -0
  791. data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +14 -0
  792. data/lib/fog/brightbox/requests/compute/get_image.rb +14 -0
  793. data/lib/fog/brightbox/requests/compute/get_interface.rb +14 -0
  794. data/lib/fog/brightbox/requests/compute/get_load_balancer.rb +14 -0
  795. data/lib/fog/brightbox/requests/compute/get_server.rb +14 -0
  796. data/lib/fog/brightbox/requests/compute/get_server_group.rb +14 -0
  797. data/lib/fog/brightbox/requests/compute/get_server_type.rb +14 -0
  798. data/lib/fog/brightbox/requests/compute/get_user.rb +14 -0
  799. data/lib/fog/brightbox/requests/compute/get_zone.rb +14 -0
  800. data/lib/fog/brightbox/requests/compute/list_api_clients.rb +13 -0
  801. data/lib/fog/brightbox/requests/compute/list_cloud_ips.rb +13 -0
  802. data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +13 -0
  803. data/lib/fog/brightbox/requests/compute/list_images.rb +13 -0
  804. data/lib/fog/brightbox/requests/compute/list_load_balancers.rb +13 -0
  805. data/lib/fog/brightbox/requests/compute/list_server_groups.rb +13 -0
  806. data/lib/fog/brightbox/requests/compute/list_server_types.rb +13 -0
  807. data/lib/fog/brightbox/requests/compute/list_servers.rb +13 -0
  808. data/lib/fog/brightbox/requests/compute/list_users.rb +13 -0
  809. data/lib/fog/brightbox/requests/compute/list_zones.rb +13 -0
  810. data/lib/fog/brightbox/requests/compute/map_cloud_ip.rb +14 -0
  811. data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +29 -0
  812. data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +14 -0
  813. data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +14 -0
  814. data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +14 -0
  815. data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +27 -0
  816. data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +13 -0
  817. data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +14 -0
  818. data/lib/fog/brightbox/requests/compute/resize_server.rb +19 -0
  819. data/lib/fog/brightbox/requests/compute/shutdown_server.rb +14 -0
  820. data/lib/fog/brightbox/requests/compute/snapshot_server.rb +14 -0
  821. data/lib/fog/brightbox/requests/compute/start_server.rb +14 -0
  822. data/lib/fog/brightbox/requests/compute/stop_server.rb +14 -0
  823. data/lib/fog/brightbox/requests/compute/unmap_cloud_ip.rb +14 -0
  824. data/lib/fog/brightbox/requests/compute/update_account.rb +14 -0
  825. data/lib/fog/brightbox/requests/compute/update_api_client.rb +15 -0
  826. data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +15 -0
  827. data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +13 -0
  828. data/lib/fog/brightbox/requests/compute/update_image.rb +15 -0
  829. data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +15 -0
  830. data/lib/fog/brightbox/requests/compute/update_server.rb +15 -0
  831. data/lib/fog/brightbox/requests/compute/update_server_group.rb +15 -0
  832. data/lib/fog/brightbox/requests/compute/update_user.rb +15 -0
  833. data/lib/fog/cdn.rb +27 -0
  834. data/lib/fog/clodo.rb +34 -0
  835. data/lib/fog/clodo/compute.rb +152 -0
  836. data/lib/fog/clodo/models/compute/image.rb +31 -0
  837. data/lib/fog/clodo/models/compute/images.rb +28 -0
  838. data/lib/fog/clodo/models/compute/server.rb +163 -0
  839. data/lib/fog/clodo/models/compute/servers.rb +36 -0
  840. data/lib/fog/clodo/requests/compute/add_ip_address.rb +49 -0
  841. data/lib/fog/clodo/requests/compute/create_server.rb +112 -0
  842. data/lib/fog/clodo/requests/compute/delete_ip_address.rb +47 -0
  843. data/lib/fog/clodo/requests/compute/delete_server.rb +44 -0
  844. data/lib/fog/clodo/requests/compute/get_image_details.rb +20 -0
  845. data/lib/fog/clodo/requests/compute/get_server_details.rb +49 -0
  846. data/lib/fog/clodo/requests/compute/list_images.rb +48 -0
  847. data/lib/fog/clodo/requests/compute/list_images_detail.rb +61 -0
  848. data/lib/fog/clodo/requests/compute/list_servers.rb +50 -0
  849. data/lib/fog/clodo/requests/compute/list_servers_detail.rb +51 -0
  850. data/lib/fog/clodo/requests/compute/move_ip_address.rb +34 -0
  851. data/lib/fog/clodo/requests/compute/reboot_server.rb +19 -0
  852. data/lib/fog/clodo/requests/compute/rebuild_server.rb +21 -0
  853. data/lib/fog/clodo/requests/compute/server_action.rb +25 -0
  854. data/lib/fog/clodo/requests/compute/start_server.rb +19 -0
  855. data/lib/fog/clodo/requests/compute/stop_server.rb +19 -0
  856. data/lib/fog/cloudstack.rb +28 -0
  857. data/lib/fog/cloudstack/compute.rb +254 -0
  858. data/lib/fog/cloudstack/requests/compute/acquire_ip_address.rb +21 -0
  859. data/lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb +25 -0
  860. data/lib/fog/cloudstack/requests/compute/attach_volume.rb +23 -0
  861. data/lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb +22 -0
  862. data/lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb +20 -0
  863. data/lib/fog/cloudstack/requests/compute/create_account.rb +20 -0
  864. data/lib/fog/cloudstack/requests/compute/create_domain.rb +20 -0
  865. data/lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb +20 -0
  866. data/lib/fog/cloudstack/requests/compute/create_network.rb +20 -0
  867. data/lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb +20 -0
  868. data/lib/fog/cloudstack/requests/compute/create_security_group.rb +20 -0
  869. data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +20 -0
  870. data/lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb +20 -0
  871. data/lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb +22 -0
  872. data/lib/fog/cloudstack/requests/compute/create_user.rb +20 -0
  873. data/lib/fog/cloudstack/requests/compute/create_volume.rb +20 -0
  874. data/lib/fog/cloudstack/requests/compute/delete_account.rb +20 -0
  875. data/lib/fog/cloudstack/requests/compute/delete_domain.rb +20 -0
  876. data/lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb +20 -0
  877. data/lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb +20 -0
  878. data/lib/fog/cloudstack/requests/compute/delete_security_group.rb +20 -0
  879. data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +20 -0
  880. data/lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb +20 -0
  881. data/lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb +21 -0
  882. data/lib/fog/cloudstack/requests/compute/delete_user.rb +20 -0
  883. data/lib/fog/cloudstack/requests/compute/delete_volume.rb +20 -0
  884. data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +33 -0
  885. data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +20 -0
  886. data/lib/fog/cloudstack/requests/compute/detach_volume.rb +21 -0
  887. data/lib/fog/cloudstack/requests/compute/disable_account.rb +20 -0
  888. data/lib/fog/cloudstack/requests/compute/disable_user.rb +20 -0
  889. data/lib/fog/cloudstack/requests/compute/enable_account.rb +20 -0
  890. data/lib/fog/cloudstack/requests/compute/enable_user.rb +20 -0
  891. data/lib/fog/cloudstack/requests/compute/generate_usage_records.rb +28 -0
  892. data/lib/fog/cloudstack/requests/compute/get_vm_password.rb +21 -0
  893. data/lib/fog/cloudstack/requests/compute/list_accounts.rb +20 -0
  894. data/lib/fog/cloudstack/requests/compute/list_alerts.rb +20 -0
  895. data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +20 -0
  896. data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +20 -0
  897. data/lib/fog/cloudstack/requests/compute/list_capacity.rb +20 -0
  898. data/lib/fog/cloudstack/requests/compute/list_clusters.rb +20 -0
  899. data/lib/fog/cloudstack/requests/compute/list_configurations.rb +20 -0
  900. data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +20 -0
  901. data/lib/fog/cloudstack/requests/compute/list_domain_children.rb +20 -0
  902. data/lib/fog/cloudstack/requests/compute/list_domains.rb +20 -0
  903. data/lib/fog/cloudstack/requests/compute/list_events.rb +20 -0
  904. data/lib/fog/cloudstack/requests/compute/list_external_firewalls.rb +20 -0
  905. data/lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb +20 -0
  906. data/lib/fog/cloudstack/requests/compute/list_hosts.rb +20 -0
  907. data/lib/fog/cloudstack/requests/compute/list_hypervisors.rb +20 -0
  908. data/lib/fog/cloudstack/requests/compute/list_instance_groups.rb +20 -0
  909. data/lib/fog/cloudstack/requests/compute/list_isos.rb +20 -0
  910. data/lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb +23 -0
  911. data/lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb +22 -0
  912. data/lib/fog/cloudstack/requests/compute/list_network_offerings.rb +20 -0
  913. data/lib/fog/cloudstack/requests/compute/list_networks.rb +20 -0
  914. data/lib/fog/cloudstack/requests/compute/list_os_categories.rb +22 -0
  915. data/lib/fog/cloudstack/requests/compute/list_os_types.rb +22 -0
  916. data/lib/fog/cloudstack/requests/compute/list_pods.rb +20 -0
  917. data/lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb +22 -0
  918. data/lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb +22 -0
  919. data/lib/fog/cloudstack/requests/compute/list_resource_limits.rb +20 -0
  920. data/lib/fog/cloudstack/requests/compute/list_security_groups.rb +20 -0
  921. data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +20 -0
  922. data/lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb +20 -0
  923. data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +20 -0
  924. data/lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb +20 -0
  925. data/lib/fog/cloudstack/requests/compute/list_storage_pools.rb +20 -0
  926. data/lib/fog/cloudstack/requests/compute/list_templates.rb +20 -0
  927. data/lib/fog/cloudstack/requests/compute/list_usage_records.rb +28 -0
  928. data/lib/fog/cloudstack/requests/compute/list_users.rb +20 -0
  929. data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +20 -0
  930. data/lib/fog/cloudstack/requests/compute/list_volumes.rb +20 -0
  931. data/lib/fog/cloudstack/requests/compute/list_zones.rb +20 -0
  932. data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb +20 -0
  933. data/lib/fog/cloudstack/requests/compute/query_async_job_result.rb +20 -0
  934. data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +20 -0
  935. data/lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb +20 -0
  936. data/lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb +20 -0
  937. data/lib/fog/cloudstack/requests/compute/register_user_keys.rb +20 -0
  938. data/lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb +25 -0
  939. data/lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb +21 -0
  940. data/lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb +21 -0
  941. data/lib/fog/cloudstack/requests/compute/start_virtual_machine.rb +20 -0
  942. data/lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb +20 -0
  943. data/lib/fog/cloudstack/requests/compute/update_account.rb +20 -0
  944. data/lib/fog/cloudstack/requests/compute/update_domain.rb +20 -0
  945. data/lib/fog/cloudstack/requests/compute/update_resource_count.rb +20 -0
  946. data/lib/fog/cloudstack/requests/compute/update_user.rb +20 -0
  947. data/lib/fog/cloudstack/requests/compute/update_virtual_machine.rb +20 -0
  948. data/lib/fog/compute.rb +101 -0
  949. data/lib/fog/compute/models/server.rb +37 -0
  950. data/lib/fog/core.rb +37 -0
  951. data/lib/fog/core/attributes.rb +204 -0
  952. data/lib/fog/core/collection.rb +135 -0
  953. data/lib/fog/core/connection.rb +35 -0
  954. data/lib/fog/core/credentials.rb +63 -0
  955. data/lib/fog/core/current_machine.rb +38 -0
  956. data/lib/fog/core/deprecation.rb +23 -0
  957. data/lib/fog/core/errors.rb +96 -0
  958. data/lib/fog/core/hmac.rb +48 -0
  959. data/lib/fog/core/json.rb +20 -0
  960. data/lib/fog/core/logger.rb +43 -0
  961. data/lib/fog/core/mock.rb +92 -0
  962. data/lib/fog/core/model.rb +62 -0
  963. data/lib/fog/core/parser.rb +103 -0
  964. data/lib/fog/core/provider.rb +35 -0
  965. data/lib/fog/core/scp.rb +79 -0
  966. data/lib/fog/core/service.rb +202 -0
  967. data/lib/fog/core/ssh.rb +115 -0
  968. data/lib/fog/core/time.rb +26 -0
  969. data/lib/fog/core/timeout.rb +11 -0
  970. data/lib/fog/core/wait_for.rb +17 -0
  971. data/lib/fog/dns.rb +59 -0
  972. data/lib/fog/dnsimple.rb +11 -0
  973. data/lib/fog/dnsimple/dns.rb +97 -0
  974. data/lib/fog/dnsimple/models/dns/record.rb +67 -0
  975. data/lib/fog/dnsimple/models/dns/records.rb +38 -0
  976. data/lib/fog/dnsimple/models/dns/zone.rb +50 -0
  977. data/lib/fog/dnsimple/models/dns/zones.rb +29 -0
  978. data/lib/fog/dnsimple/requests/dns/create_domain.rb +27 -0
  979. data/lib/fog/dnsimple/requests/dns/create_record.rb +48 -0
  980. data/lib/fog/dnsimple/requests/dns/delete_domain.rb +26 -0
  981. data/lib/fog/dnsimple/requests/dns/delete_record.rb +21 -0
  982. data/lib/fog/dnsimple/requests/dns/get_domain.rb +37 -0
  983. data/lib/fog/dnsimple/requests/dns/get_record.rb +34 -0
  984. data/lib/fog/dnsimple/requests/dns/list_domains.rb +35 -0
  985. data/lib/fog/dnsimple/requests/dns/list_records.rb +32 -0
  986. data/lib/fog/dnsimple/requests/dns/update_record.rb +42 -0
  987. data/lib/fog/dnsmadeeasy.rb +11 -0
  988. data/lib/fog/dnsmadeeasy/dns.rb +136 -0
  989. data/lib/fog/dnsmadeeasy/models/dns/record.rb +80 -0
  990. data/lib/fog/dnsmadeeasy/models/dns/records.rb +36 -0
  991. data/lib/fog/dnsmadeeasy/models/dns/zone.rb +42 -0
  992. data/lib/fog/dnsmadeeasy/models/dns/zones.rb +30 -0
  993. data/lib/fog/dnsmadeeasy/requests/dns/create_domain.rb +29 -0
  994. data/lib/fog/dnsmadeeasy/requests/dns/create_record.rb +62 -0
  995. data/lib/fog/dnsmadeeasy/requests/dns/create_secondary.rb +36 -0
  996. data/lib/fog/dnsmadeeasy/requests/dns/delete_all_domains.rb +23 -0
  997. data/lib/fog/dnsmadeeasy/requests/dns/delete_all_secondary.rb +22 -0
  998. data/lib/fog/dnsmadeeasy/requests/dns/delete_domain.rb +25 -0
  999. data/lib/fog/dnsmadeeasy/requests/dns/delete_record.rb +26 -0
  1000. data/lib/fog/dnsmadeeasy/requests/dns/delete_secondary.rb +25 -0
  1001. data/lib/fog/dnsmadeeasy/requests/dns/get_domain.rb +29 -0
  1002. data/lib/fog/dnsmadeeasy/requests/dns/get_record.rb +38 -0
  1003. data/lib/fog/dnsmadeeasy/requests/dns/get_secondary.rb +29 -0
  1004. data/lib/fog/dnsmadeeasy/requests/dns/list_domains.rb +24 -0
  1005. data/lib/fog/dnsmadeeasy/requests/dns/list_records.rb +42 -0
  1006. data/lib/fog/dnsmadeeasy/requests/dns/list_secondary.rb +24 -0
  1007. data/lib/fog/dnsmadeeasy/requests/dns/update_record.rb +56 -0
  1008. data/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb +36 -0
  1009. data/lib/fog/dynect.rb +26 -0
  1010. data/lib/fog/dynect/dns.rb +132 -0
  1011. data/lib/fog/dynect/models/dns/record.rb +66 -0
  1012. data/lib/fog/dynect/models/dns/records.rb +53 -0
  1013. data/lib/fog/dynect/models/dns/zone.rb +60 -0
  1014. data/lib/fog/dynect/models/dns/zones.rb +29 -0
  1015. data/lib/fog/dynect/requests/dns/delete_record.rb +55 -0
  1016. data/lib/fog/dynect/requests/dns/delete_zone.rb +42 -0
  1017. data/lib/fog/dynect/requests/dns/get_node_list.rb +55 -0
  1018. data/lib/fog/dynect/requests/dns/get_record.rb +83 -0
  1019. data/lib/fog/dynect/requests/dns/get_zone.rb +57 -0
  1020. data/lib/fog/dynect/requests/dns/post_record.rb +72 -0
  1021. data/lib/fog/dynect/requests/dns/post_session.rb +43 -0
  1022. data/lib/fog/dynect/requests/dns/post_zone.rb +71 -0
  1023. data/lib/fog/dynect/requests/dns/put_zone.rb +76 -0
  1024. data/lib/fog/ecloud.rb +11 -0
  1025. data/lib/fog/ecloud/compute.rb +1307 -0
  1026. data/lib/fog/ecloud/models/compute/backup_internet_service.rb +56 -0
  1027. data/lib/fog/ecloud/models/compute/backup_internet_services.rb +33 -0
  1028. data/lib/fog/ecloud/models/compute/catalog.rb +28 -0
  1029. data/lib/fog/ecloud/models/compute/catalog_item.rb +29 -0
  1030. data/lib/fog/ecloud/models/compute/firewall_acl.rb +24 -0
  1031. data/lib/fog/ecloud/models/compute/firewall_acls.rb +31 -0
  1032. data/lib/fog/ecloud/models/compute/internet_service.rb +117 -0
  1033. data/lib/fog/ecloud/models/compute/internet_services.rb +33 -0
  1034. data/lib/fog/ecloud/models/compute/ip.rb +49 -0
  1035. data/lib/fog/ecloud/models/compute/ips.rb +32 -0
  1036. data/lib/fog/ecloud/models/compute/network.rb +75 -0
  1037. data/lib/fog/ecloud/models/compute/networks.rb +33 -0
  1038. data/lib/fog/ecloud/models/compute/node.rb +43 -0
  1039. data/lib/fog/ecloud/models/compute/nodes.rb +31 -0
  1040. data/lib/fog/ecloud/models/compute/public_ip.rb +22 -0
  1041. data/lib/fog/ecloud/models/compute/public_ips.rb +36 -0
  1042. data/lib/fog/ecloud/models/compute/server.rb +209 -0
  1043. data/lib/fog/ecloud/models/compute/servers.rb +57 -0
  1044. data/lib/fog/ecloud/models/compute/task.rb +21 -0
  1045. data/lib/fog/ecloud/models/compute/tasks.rb +31 -0
  1046. data/lib/fog/ecloud/models/compute/vdc.rb +81 -0
  1047. data/lib/fog/ecloud/models/compute/vdcs.rb +40 -0
  1048. data/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +109 -0
  1049. data/lib/fog/ecloud/requests/compute/add_internet_service.rb +149 -0
  1050. data/lib/fog/ecloud/requests/compute/add_node.rb +62 -0
  1051. data/lib/fog/ecloud/requests/compute/clone_vapp.rb +40 -0
  1052. data/lib/fog/ecloud/requests/compute/configure_internet_service.rb +112 -0
  1053. data/lib/fog/ecloud/requests/compute/configure_network.rb +44 -0
  1054. data/lib/fog/ecloud/requests/compute/configure_network_ip.rb +66 -0
  1055. data/lib/fog/ecloud/requests/compute/configure_node.rb +56 -0
  1056. data/lib/fog/ecloud/requests/compute/configure_vapp.rb +144 -0
  1057. data/lib/fog/ecloud/requests/compute/delete_internet_service.rb +22 -0
  1058. data/lib/fog/ecloud/requests/compute/delete_node.rb +22 -0
  1059. data/lib/fog/ecloud/requests/compute/delete_vapp.rb +29 -0
  1060. data/lib/fog/ecloud/requests/compute/get_catalog.rb +44 -0
  1061. data/lib/fog/ecloud/requests/compute/get_catalog_item.rb +47 -0
  1062. data/lib/fog/ecloud/requests/compute/get_customization_options.rb +22 -0
  1063. data/lib/fog/ecloud/requests/compute/get_firewall_acl.rb +11 -0
  1064. data/lib/fog/ecloud/requests/compute/get_firewall_acls.rb +11 -0
  1065. data/lib/fog/ecloud/requests/compute/get_internet_services.rb +82 -0
  1066. data/lib/fog/ecloud/requests/compute/get_network.rb +44 -0
  1067. data/lib/fog/ecloud/requests/compute/get_network_extensions.rb +33 -0
  1068. data/lib/fog/ecloud/requests/compute/get_network_ip.rb +43 -0
  1069. data/lib/fog/ecloud/requests/compute/get_network_ips.rb +35 -0
  1070. data/lib/fog/ecloud/requests/compute/get_node.rb +40 -0
  1071. data/lib/fog/ecloud/requests/compute/get_nodes.rb +41 -0
  1072. data/lib/fog/ecloud/requests/compute/get_organization.rb +49 -0
  1073. data/lib/fog/ecloud/requests/compute/get_public_ip.rb +34 -0
  1074. data/lib/fog/ecloud/requests/compute/get_public_ips.rb +38 -0
  1075. data/lib/fog/ecloud/requests/compute/get_task.rb +11 -0
  1076. data/lib/fog/ecloud/requests/compute/get_task_list.rb +11 -0
  1077. data/lib/fog/ecloud/requests/compute/get_vapp.rb +99 -0
  1078. data/lib/fog/ecloud/requests/compute/get_vapp_template.rb +11 -0
  1079. data/lib/fog/ecloud/requests/compute/get_vdc.rb +84 -0
  1080. data/lib/fog/ecloud/requests/compute/get_versions.rb +37 -0
  1081. data/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +142 -0
  1082. data/lib/fog/ecloud/requests/compute/login.rb +48 -0
  1083. data/lib/fog/ecloud/requests/compute/power_off.rb +23 -0
  1084. data/lib/fog/ecloud/requests/compute/power_on.rb +23 -0
  1085. data/lib/fog/ecloud/requests/compute/power_reset.rb +11 -0
  1086. data/lib/fog/ecloud/requests/compute/power_shutdown.rb +11 -0
  1087. data/lib/fog/glesys.rb +11 -0
  1088. data/lib/fog/glesys/compute.rb +130 -0
  1089. data/lib/fog/glesys/models/compute/ip.rb +75 -0
  1090. data/lib/fog/glesys/models/compute/ips.rb +39 -0
  1091. data/lib/fog/glesys/models/compute/server.rb +71 -0
  1092. data/lib/fog/glesys/models/compute/servers.rb +34 -0
  1093. data/lib/fog/glesys/models/compute/template.rb +25 -0
  1094. data/lib/fog/glesys/models/compute/templates.rb +22 -0
  1095. data/lib/fog/glesys/requests/compute/create.rb +15 -0
  1096. data/lib/fog/glesys/requests/compute/destroy.rb +18 -0
  1097. data/lib/fog/glesys/requests/compute/ip_add.rb +14 -0
  1098. data/lib/fog/glesys/requests/compute/ip_details.rb +14 -0
  1099. data/lib/fog/glesys/requests/compute/ip_list_free.rb +14 -0
  1100. data/lib/fog/glesys/requests/compute/ip_list_own.rb +14 -0
  1101. data/lib/fog/glesys/requests/compute/ip_release.rb +14 -0
  1102. data/lib/fog/glesys/requests/compute/ip_remove.rb +14 -0
  1103. data/lib/fog/glesys/requests/compute/ip_take.rb +14 -0
  1104. data/lib/fog/glesys/requests/compute/list_servers.rb +19 -0
  1105. data/lib/fog/glesys/requests/compute/server_details.rb +14 -0
  1106. data/lib/fog/glesys/requests/compute/server_status.rb +14 -0
  1107. data/lib/fog/glesys/requests/compute/start.rb +14 -0
  1108. data/lib/fog/glesys/requests/compute/stop.rb +14 -0
  1109. data/lib/fog/glesys/requests/compute/template_list.rb +14 -0
  1110. data/lib/fog/go_grid.rb +11 -0
  1111. data/lib/fog/go_grid/compute.rb +117 -0
  1112. data/lib/fog/go_grid/models/compute/image.rb +60 -0
  1113. data/lib/fog/go_grid/models/compute/images.rb +33 -0
  1114. data/lib/fog/go_grid/models/compute/password.rb +50 -0
  1115. data/lib/fog/go_grid/models/compute/passwords.rb +36 -0
  1116. data/lib/fog/go_grid/models/compute/server.rb +102 -0
  1117. data/lib/fog/go_grid/models/compute/servers.rb +36 -0
  1118. data/lib/fog/go_grid/requests/compute/common_lookup_list.rb +28 -0
  1119. data/lib/fog/go_grid/requests/compute/grid_image_get.rb +41 -0
  1120. data/lib/fog/go_grid/requests/compute/grid_image_list.rb +44 -0
  1121. data/lib/fog/go_grid/requests/compute/grid_ip_list.rb +30 -0
  1122. data/lib/fog/go_grid/requests/compute/grid_loadbalancer_list.rb +28 -0
  1123. data/lib/fog/go_grid/requests/compute/grid_server_add.rb +36 -0
  1124. data/lib/fog/go_grid/requests/compute/grid_server_delete.rb +25 -0
  1125. data/lib/fog/go_grid/requests/compute/grid_server_get.rb +25 -0
  1126. data/lib/fog/go_grid/requests/compute/grid_server_list.rb +30 -0
  1127. data/lib/fog/go_grid/requests/compute/grid_server_power.rb +26 -0
  1128. data/lib/fog/go_grid/requests/compute/support_password_get.rb +28 -0
  1129. data/lib/fog/go_grid/requests/compute/support_password_list.rb +30 -0
  1130. data/lib/fog/google.rb +23 -0
  1131. data/lib/fog/google/models/storage/directories.rb +43 -0
  1132. data/lib/fog/google/models/storage/directory.rb +78 -0
  1133. data/lib/fog/google/models/storage/file.rb +141 -0
  1134. data/lib/fog/google/models/storage/files.rb +103 -0
  1135. data/lib/fog/google/parsers/storage/access_control_list.rb +48 -0
  1136. data/lib/fog/google/parsers/storage/copy_object.rb +22 -0
  1137. data/lib/fog/google/parsers/storage/get_bucket.rb +62 -0
  1138. data/lib/fog/google/parsers/storage/get_bucket_logging.rb +40 -0
  1139. data/lib/fog/google/parsers/storage/get_bucket_object_versions.rb +88 -0
  1140. data/lib/fog/google/parsers/storage/get_bucket_versioning.rb +24 -0
  1141. data/lib/fog/google/parsers/storage/get_request_payment.rb +20 -0
  1142. data/lib/fog/google/parsers/storage/get_service.rb +32 -0
  1143. data/lib/fog/google/requests/storage/copy_object.rb +72 -0
  1144. data/lib/fog/google/requests/storage/delete_bucket.rb +46 -0
  1145. data/lib/fog/google/requests/storage/delete_object.rb +50 -0
  1146. data/lib/fog/google/requests/storage/get_bucket.rb +111 -0
  1147. data/lib/fog/google/requests/storage/get_bucket_acl.rb +63 -0
  1148. data/lib/fog/google/requests/storage/get_object.rb +104 -0
  1149. data/lib/fog/google/requests/storage/get_object_acl.rb +74 -0
  1150. data/lib/fog/google/requests/storage/get_object_http_url.rb +51 -0
  1151. data/lib/fog/google/requests/storage/get_object_https_url.rb +51 -0
  1152. data/lib/fog/google/requests/storage/get_object_torrent.rb +47 -0
  1153. data/lib/fog/google/requests/storage/get_object_url.rb +37 -0
  1154. data/lib/fog/google/requests/storage/get_service.rb +53 -0
  1155. data/lib/fog/google/requests/storage/head_object.rb +64 -0
  1156. data/lib/fog/google/requests/storage/put_bucket.rb +75 -0
  1157. data/lib/fog/google/requests/storage/put_bucket_acl.rb +73 -0
  1158. data/lib/fog/google/requests/storage/put_object.rb +94 -0
  1159. data/lib/fog/google/requests/storage/put_object_url.rb +54 -0
  1160. data/lib/fog/google/storage.rb +271 -0
  1161. data/lib/fog/joyent.rb +8 -0
  1162. data/lib/fog/joyent/compute.rb +228 -0
  1163. data/lib/fog/joyent/errors.rb +90 -0
  1164. data/lib/fog/joyent/models/compute/flavor.rb +17 -0
  1165. data/lib/fog/joyent/models/compute/flavors.rb +25 -0
  1166. data/lib/fog/joyent/models/compute/image.rb +18 -0
  1167. data/lib/fog/joyent/models/compute/images.rb +25 -0
  1168. data/lib/fog/joyent/models/compute/key.rb +19 -0
  1169. data/lib/fog/joyent/models/compute/keys.rb +34 -0
  1170. data/lib/fog/joyent/models/compute/server.rb +117 -0
  1171. data/lib/fog/joyent/models/compute/servers.rb +35 -0
  1172. data/lib/fog/joyent/models/compute/snapshot.rb +45 -0
  1173. data/lib/fog/joyent/models/compute/snapshots.rb +37 -0
  1174. data/lib/fog/joyent/requests/compute/add_machine_tags.rb +20 -0
  1175. data/lib/fog/joyent/requests/compute/create_key.rb +56 -0
  1176. data/lib/fog/joyent/requests/compute/create_machine.rb +16 -0
  1177. data/lib/fog/joyent/requests/compute/create_machine_snapshot.rb +18 -0
  1178. data/lib/fog/joyent/requests/compute/delete_all_machine_metadata.rb +16 -0
  1179. data/lib/fog/joyent/requests/compute/delete_all_machine_tags.rb +15 -0
  1180. data/lib/fog/joyent/requests/compute/delete_key.rb +29 -0
  1181. data/lib/fog/joyent/requests/compute/delete_machine.rb +15 -0
  1182. data/lib/fog/joyent/requests/compute/delete_machine_metadata.rb +18 -0
  1183. data/lib/fog/joyent/requests/compute/delete_machine_snapshot.rb +21 -0
  1184. data/lib/fog/joyent/requests/compute/delete_machine_tag.rb +15 -0
  1185. data/lib/fog/joyent/requests/compute/get_dataset.rb +28 -0
  1186. data/lib/fog/joyent/requests/compute/get_key.rb +29 -0
  1187. data/lib/fog/joyent/requests/compute/get_machine.rb +29 -0
  1188. data/lib/fog/joyent/requests/compute/get_machine_metadata.rb +25 -0
  1189. data/lib/fog/joyent/requests/compute/get_machine_snapshot.rb +14 -0
  1190. data/lib/fog/joyent/requests/compute/get_machine_tag.rb +19 -0
  1191. data/lib/fog/joyent/requests/compute/get_package.rb +33 -0
  1192. data/lib/fog/joyent/requests/compute/list_datasets.rb +24 -0
  1193. data/lib/fog/joyent/requests/compute/list_keys.rb +25 -0
  1194. data/lib/fog/joyent/requests/compute/list_machine_snapshots.rb +14 -0
  1195. data/lib/fog/joyent/requests/compute/list_machine_tags.rb +20 -0
  1196. data/lib/fog/joyent/requests/compute/list_machines.rb +25 -0
  1197. data/lib/fog/joyent/requests/compute/list_packages.rb +36 -0
  1198. data/lib/fog/joyent/requests/compute/reboot_machine.rb +15 -0
  1199. data/lib/fog/joyent/requests/compute/resize_machine.rb +13 -0
  1200. data/lib/fog/joyent/requests/compute/start_machine.rb +16 -0
  1201. data/lib/fog/joyent/requests/compute/start_machine_from_snapshot.rb +15 -0
  1202. data/lib/fog/joyent/requests/compute/stop_machine.rb +16 -0
  1203. data/lib/fog/joyent/requests/compute/update_machine_metadata.rb +15 -0
  1204. data/lib/fog/libvirt.rb +11 -0
  1205. data/lib/fog/libvirt/compute.rb +108 -0
  1206. data/lib/fog/libvirt/models/compute/README.md +76 -0
  1207. data/lib/fog/libvirt/models/compute/interface.rb +48 -0
  1208. data/lib/fog/libvirt/models/compute/interfaces.rb +62 -0
  1209. data/lib/fog/libvirt/models/compute/network.rb +65 -0
  1210. data/lib/fog/libvirt/models/compute/networks.rb +61 -0
  1211. data/lib/fog/libvirt/models/compute/node.rb +45 -0
  1212. data/lib/fog/libvirt/models/compute/nodes.rb +38 -0
  1213. data/lib/fog/libvirt/models/compute/pool.rb +200 -0
  1214. data/lib/fog/libvirt/models/compute/pools.rb +60 -0
  1215. data/lib/fog/libvirt/models/compute/server.rb +526 -0
  1216. data/lib/fog/libvirt/models/compute/servers.rb +79 -0
  1217. data/lib/fog/libvirt/models/compute/templates/network.xml.erb +6 -0
  1218. data/lib/fog/libvirt/models/compute/templates/pool.xml.erb +6 -0
  1219. data/lib/fog/libvirt/models/compute/templates/server.xml.erb +57 -0
  1220. data/lib/fog/libvirt/models/compute/templates/volume.xml.erb +14 -0
  1221. data/lib/fog/libvirt/models/compute/uri.rb +146 -0
  1222. data/lib/fog/libvirt/models/compute/util.rb +24 -0
  1223. data/lib/fog/libvirt/models/compute/volume.rb +176 -0
  1224. data/lib/fog/libvirt/models/compute/volumes.rb +87 -0
  1225. data/lib/fog/linode.rb +10 -0
  1226. data/lib/fog/linode/compute.rb +119 -0
  1227. data/lib/fog/linode/dns.rb +94 -0
  1228. data/lib/fog/linode/models/compute/data_center.rb +12 -0
  1229. data/lib/fog/linode/models/compute/data_centers.rb +26 -0
  1230. data/lib/fog/linode/models/compute/disk.rb +62 -0
  1231. data/lib/fog/linode/models/compute/disks.rb +40 -0
  1232. data/lib/fog/linode/models/compute/flavor.rb +23 -0
  1233. data/lib/fog/linode/models/compute/flavors.rb +32 -0
  1234. data/lib/fog/linode/models/compute/image.rb +14 -0
  1235. data/lib/fog/linode/models/compute/images.rb +33 -0
  1236. data/lib/fog/linode/models/compute/ip.rb +30 -0
  1237. data/lib/fog/linode/models/compute/ips.rb +40 -0
  1238. data/lib/fog/linode/models/compute/kernel.rb +12 -0
  1239. data/lib/fog/linode/models/compute/kernels.rb +32 -0
  1240. data/lib/fog/linode/models/compute/server.rb +98 -0
  1241. data/lib/fog/linode/models/compute/servers.rb +32 -0
  1242. data/lib/fog/linode/models/compute/stack_script.rb +13 -0
  1243. data/lib/fog/linode/models/compute/stack_scripts.rb +32 -0
  1244. data/lib/fog/linode/models/dns/record.rb +72 -0
  1245. data/lib/fog/linode/models/dns/records.rb +37 -0
  1246. data/lib/fog/linode/models/dns/zone.rb +84 -0
  1247. data/lib/fog/linode/models/dns/zones.rb +29 -0
  1248. data/lib/fog/linode/requests/compute/avail_datacenters.rb +23 -0
  1249. data/lib/fog/linode/requests/compute/avail_distributions.rb +30 -0
  1250. data/lib/fog/linode/requests/compute/avail_kernels.rb +30 -0
  1251. data/lib/fog/linode/requests/compute/avail_linodeplans.rb +34 -0
  1252. data/lib/fog/linode/requests/compute/avail_stackscripts.rb +19 -0
  1253. data/lib/fog/linode/requests/compute/linode_boot.rb +17 -0
  1254. data/lib/fog/linode/requests/compute/linode_config_create.rb +23 -0
  1255. data/lib/fog/linode/requests/compute/linode_config_list.rb +20 -0
  1256. data/lib/fog/linode/requests/compute/linode_create.rb +33 -0
  1257. data/lib/fog/linode/requests/compute/linode_delete.rb +28 -0
  1258. data/lib/fog/linode/requests/compute/linode_disk_create.rb +23 -0
  1259. data/lib/fog/linode/requests/compute/linode_disk_createfromdistribution.rb +24 -0
  1260. data/lib/fog/linode/requests/compute/linode_disk_createfromstackscript.rb +26 -0
  1261. data/lib/fog/linode/requests/compute/linode_disk_delete.rb +21 -0
  1262. data/lib/fog/linode/requests/compute/linode_disk_list.rb +21 -0
  1263. data/lib/fog/linode/requests/compute/linode_ip_addprivate.rb +17 -0
  1264. data/lib/fog/linode/requests/compute/linode_ip_list.rb +21 -0
  1265. data/lib/fog/linode/requests/compute/linode_list.rb +30 -0
  1266. data/lib/fog/linode/requests/compute/linode_reboot.rb +28 -0
  1267. data/lib/fog/linode/requests/compute/linode_shutdown.rb +17 -0
  1268. data/lib/fog/linode/requests/compute/linode_update.rb +17 -0
  1269. data/lib/fog/linode/requests/compute/stackscript_list.rb +32 -0
  1270. data/lib/fog/linode/requests/dns/domain_create.rb +43 -0
  1271. data/lib/fog/linode/requests/dns/domain_delete.rb +27 -0
  1272. data/lib/fog/linode/requests/dns/domain_list.rb +42 -0
  1273. data/lib/fog/linode/requests/dns/domain_resource_create.rb +44 -0
  1274. data/lib/fog/linode/requests/dns/domain_resource_delete.rb +28 -0
  1275. data/lib/fog/linode/requests/dns/domain_resource_list.rb +43 -0
  1276. data/lib/fog/linode/requests/dns/domain_resource_update.rb +46 -0
  1277. data/lib/fog/linode/requests/dns/domain_update.rb +40 -0
  1278. data/lib/fog/local.rb +11 -0
  1279. data/lib/fog/local/models/storage/directories.rb +33 -0
  1280. data/lib/fog/local/models/storage/directory.rb +57 -0
  1281. data/lib/fog/local/models/storage/file.rb +120 -0
  1282. data/lib/fog/local/models/storage/files.rb +87 -0
  1283. data/lib/fog/local/storage.rb +79 -0
  1284. data/lib/fog/new_servers.rb +11 -0
  1285. data/lib/fog/new_servers/compute.rb +98 -0
  1286. data/lib/fog/new_servers/requests/compute/add_server.rb +33 -0
  1287. data/lib/fog/new_servers/requests/compute/cancel_server.rb +30 -0
  1288. data/lib/fog/new_servers/requests/compute/get_server.rb +36 -0
  1289. data/lib/fog/new_servers/requests/compute/list_images.rb +27 -0
  1290. data/lib/fog/new_servers/requests/compute/list_plans.rb +30 -0
  1291. data/lib/fog/new_servers/requests/compute/list_servers.rb +36 -0
  1292. data/lib/fog/new_servers/requests/compute/reboot_server.rb +24 -0
  1293. data/lib/fog/ninefold.rb +12 -0
  1294. data/lib/fog/ninefold/compute.rb +143 -0
  1295. data/lib/fog/ninefold/models/compute/address.rb +103 -0
  1296. data/lib/fog/ninefold/models/compute/addresses.rb +31 -0
  1297. data/lib/fog/ninefold/models/compute/flavor.rb +29 -0
  1298. data/lib/fog/ninefold/models/compute/flavors.rb +30 -0
  1299. data/lib/fog/ninefold/models/compute/image.rb +42 -0
  1300. data/lib/fog/ninefold/models/compute/images.rb +30 -0
  1301. data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +79 -0
  1302. data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +31 -0
  1303. data/lib/fog/ninefold/models/compute/server.rb +185 -0
  1304. data/lib/fog/ninefold/models/compute/servers.rb +31 -0
  1305. data/lib/fog/ninefold/models/storage/directories.rb +48 -0
  1306. data/lib/fog/ninefold/models/storage/directory.rb +53 -0
  1307. data/lib/fog/ninefold/models/storage/file.rb +108 -0
  1308. data/lib/fog/ninefold/models/storage/files.rb +73 -0
  1309. data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +14 -0
  1310. data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +14 -0
  1311. data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +14 -0
  1312. data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +14 -0
  1313. data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +14 -0
  1314. data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +14 -0
  1315. data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +14 -0
  1316. data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +14 -0
  1317. data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +14 -0
  1318. data/lib/fog/ninefold/requests/compute/list_accounts.rb +14 -0
  1319. data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +14 -0
  1320. data/lib/fog/ninefold/requests/compute/list_capabilities.rb +14 -0
  1321. data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +14 -0
  1322. data/lib/fog/ninefold/requests/compute/list_events.rb +14 -0
  1323. data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +14 -0
  1324. data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +14 -0
  1325. data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +14 -0
  1326. data/lib/fog/ninefold/requests/compute/list_networks.rb +14 -0
  1327. data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +14 -0
  1328. data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +14 -0
  1329. data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +14 -0
  1330. data/lib/fog/ninefold/requests/compute/list_templates.rb +14 -0
  1331. data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +14 -0
  1332. data/lib/fog/ninefold/requests/compute/list_zones.rb +14 -0
  1333. data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +14 -0
  1334. data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +14 -0
  1335. data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +14 -0
  1336. data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +14 -0
  1337. data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +14 -0
  1338. data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +14 -0
  1339. data/lib/fog/ninefold/requests/storage/delete_namespace.rb +19 -0
  1340. data/lib/fog/ninefold/requests/storage/get_namespace.rb +20 -0
  1341. data/lib/fog/ninefold/requests/storage/head_namespace.rb +20 -0
  1342. data/lib/fog/ninefold/requests/storage/post_namespace.rb +20 -0
  1343. data/lib/fog/ninefold/requests/storage/put_namespace.rb +20 -0
  1344. data/lib/fog/ninefold/storage.rb +154 -0
  1345. data/lib/fog/openstack.rb +115 -0
  1346. data/lib/fog/openstack/compute.rb +196 -0
  1347. data/lib/fog/openstack/models/compute/flavor.rb +20 -0
  1348. data/lib/fog/openstack/models/compute/flavors.rb +28 -0
  1349. data/lib/fog/openstack/models/compute/image.rb +57 -0
  1350. data/lib/fog/openstack/models/compute/images.rb +33 -0
  1351. data/lib/fog/openstack/models/compute/meta.rb +29 -0
  1352. data/lib/fog/openstack/models/compute/metadata.rb +69 -0
  1353. data/lib/fog/openstack/models/compute/server.rb +201 -0
  1354. data/lib/fog/openstack/models/compute/servers.rb +36 -0
  1355. data/lib/fog/openstack/models/meta_parent.rb +33 -0
  1356. data/lib/fog/openstack/requests/compute/change_password_server.rb +24 -0
  1357. data/lib/fog/openstack/requests/compute/confirm_resized_server.rb +24 -0
  1358. data/lib/fog/openstack/requests/compute/create_image.rb +49 -0
  1359. data/lib/fog/openstack/requests/compute/create_server.rb +70 -0
  1360. data/lib/fog/openstack/requests/compute/delete_image.rb +40 -0
  1361. data/lib/fog/openstack/requests/compute/delete_meta.rb +28 -0
  1362. data/lib/fog/openstack/requests/compute/delete_server.rb +38 -0
  1363. data/lib/fog/openstack/requests/compute/get_flavor_details.rb +43 -0
  1364. data/lib/fog/openstack/requests/compute/get_image_details.rb +33 -0
  1365. data/lib/fog/openstack/requests/compute/get_meta.rb +29 -0
  1366. data/lib/fog/openstack/requests/compute/get_server_details.rb +32 -0
  1367. data/lib/fog/openstack/requests/compute/list_addresses.rb +32 -0
  1368. data/lib/fog/openstack/requests/compute/list_flavors.rb +38 -0
  1369. data/lib/fog/openstack/requests/compute/list_flavors_detail.rb +38 -0
  1370. data/lib/fog/openstack/requests/compute/list_images.rb +33 -0
  1371. data/lib/fog/openstack/requests/compute/list_images_detail.rb +39 -0
  1372. data/lib/fog/openstack/requests/compute/list_metadata.rb +28 -0
  1373. data/lib/fog/openstack/requests/compute/list_private_addresses.rb +32 -0
  1374. data/lib/fog/openstack/requests/compute/list_public_addresses.rb +32 -0
  1375. data/lib/fog/openstack/requests/compute/list_servers.rb +33 -0
  1376. data/lib/fog/openstack/requests/compute/list_servers_detail.rb +39 -0
  1377. data/lib/fog/openstack/requests/compute/reboot_server.rb +24 -0
  1378. data/lib/fog/openstack/requests/compute/rebuild_server.rb +31 -0
  1379. data/lib/fog/openstack/requests/compute/resize_server.rb +24 -0
  1380. data/lib/fog/openstack/requests/compute/revert_resized_server.rb +30 -0
  1381. data/lib/fog/openstack/requests/compute/server_action.rb +18 -0
  1382. data/lib/fog/openstack/requests/compute/set_metadata.rb +45 -0
  1383. data/lib/fog/openstack/requests/compute/update_meta.rb +45 -0
  1384. data/lib/fog/openstack/requests/compute/update_metadata.rb +46 -0
  1385. data/lib/fog/openstack/requests/compute/update_server.rb +35 -0
  1386. data/lib/fog/ovirt.rb +17 -0
  1387. data/lib/fog/ovirt/compute.rb +93 -0
  1388. data/lib/fog/ovirt/models/compute/cluster.rb +26 -0
  1389. data/lib/fog/ovirt/models/compute/clusters.rb +23 -0
  1390. data/lib/fog/ovirt/models/compute/server.rb +85 -0
  1391. data/lib/fog/ovirt/models/compute/servers.rb +30 -0
  1392. data/lib/fog/ovirt/models/compute/template.rb +42 -0
  1393. data/lib/fog/ovirt/models/compute/templates.rb +23 -0
  1394. data/lib/fog/ovirt/requests/compute/create_vm.rb +20 -0
  1395. data/lib/fog/ovirt/requests/compute/datacenters.rb +22 -0
  1396. data/lib/fog/ovirt/requests/compute/destroy_vm.rb +22 -0
  1397. data/lib/fog/ovirt/requests/compute/get_cluster.rb +18 -0
  1398. data/lib/fog/ovirt/requests/compute/get_template.rb +18 -0
  1399. data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +18 -0
  1400. data/lib/fog/ovirt/requests/compute/list_clusters.rb +20 -0
  1401. data/lib/fog/ovirt/requests/compute/list_templates.rb +20 -0
  1402. data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +20 -0
  1403. data/lib/fog/ovirt/requests/compute/mock_files/cluster.xml +20 -0
  1404. data/lib/fog/ovirt/requests/compute/mock_files/clusters.xml +39 -0
  1405. data/lib/fog/ovirt/requests/compute/mock_files/data_centers.xml +17 -0
  1406. data/lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml +36 -0
  1407. data/lib/fog/ovirt/requests/compute/mock_files/template.xml +39 -0
  1408. data/lib/fog/ovirt/requests/compute/mock_files/templates.xml +110 -0
  1409. data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +54 -0
  1410. data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +152 -0
  1411. data/lib/fog/ovirt/requests/compute/storage_domains.rb +22 -0
  1412. data/lib/fog/ovirt/requests/compute/update_vm.rb +20 -0
  1413. data/lib/fog/ovirt/requests/compute/vm_action.rb +26 -0
  1414. data/lib/fog/providers.rb +29 -0
  1415. data/lib/fog/rackspace.rb +81 -0
  1416. data/lib/fog/rackspace/cdn.rb +101 -0
  1417. data/lib/fog/rackspace/compute.rb +158 -0
  1418. data/lib/fog/rackspace/dns.rb +140 -0
  1419. data/lib/fog/rackspace/load_balancers.rb +159 -0
  1420. data/lib/fog/rackspace/models/compute/flavor.rb +46 -0
  1421. data/lib/fog/rackspace/models/compute/flavors.rb +28 -0
  1422. data/lib/fog/rackspace/models/compute/image.rb +48 -0
  1423. data/lib/fog/rackspace/models/compute/images.rb +33 -0
  1424. data/lib/fog/rackspace/models/compute/server.rb +130 -0
  1425. data/lib/fog/rackspace/models/compute/servers.rb +36 -0
  1426. data/lib/fog/rackspace/models/dns/callback.rb +30 -0
  1427. data/lib/fog/rackspace/models/dns/record.rb +82 -0
  1428. data/lib/fog/rackspace/models/dns/records.rb +38 -0
  1429. data/lib/fog/rackspace/models/dns/zone.rb +67 -0
  1430. data/lib/fog/rackspace/models/dns/zones.rb +33 -0
  1431. data/lib/fog/rackspace/models/load_balancers/access_rule.rb +39 -0
  1432. data/lib/fog/rackspace/models/load_balancers/access_rules.rb +29 -0
  1433. data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +226 -0
  1434. data/lib/fog/rackspace/models/load_balancers/load_balancers.rb +27 -0
  1435. data/lib/fog/rackspace/models/load_balancers/node.rb +58 -0
  1436. data/lib/fog/rackspace/models/load_balancers/nodes.rb +29 -0
  1437. data/lib/fog/rackspace/models/load_balancers/virtual_ip.rb +35 -0
  1438. data/lib/fog/rackspace/models/load_balancers/virtual_ips.rb +32 -0
  1439. data/lib/fog/rackspace/models/storage/directories.rb +43 -0
  1440. data/lib/fog/rackspace/models/storage/directory.rb +80 -0
  1441. data/lib/fog/rackspace/models/storage/file.rb +82 -0
  1442. data/lib/fog/rackspace/models/storage/files.rb +94 -0
  1443. data/lib/fog/rackspace/requests/cdn/get_containers.rb +31 -0
  1444. data/lib/fog/rackspace/requests/cdn/head_container.rb +33 -0
  1445. data/lib/fog/rackspace/requests/cdn/post_container.rb +30 -0
  1446. data/lib/fog/rackspace/requests/cdn/put_container.rb +30 -0
  1447. data/lib/fog/rackspace/requests/compute/confirm_resized_server.rb +34 -0
  1448. data/lib/fog/rackspace/requests/compute/create_image.rb +60 -0
  1449. data/lib/fog/rackspace/requests/compute/create_server.rb +94 -0
  1450. data/lib/fog/rackspace/requests/compute/delete_image.rb +45 -0
  1451. data/lib/fog/rackspace/requests/compute/delete_server.rb +43 -0
  1452. data/lib/fog/rackspace/requests/compute/get_flavor_details.rb +52 -0
  1453. data/lib/fog/rackspace/requests/compute/get_image_details.rb +27 -0
  1454. data/lib/fog/rackspace/requests/compute/get_server_details.rb +52 -0
  1455. data/lib/fog/rackspace/requests/compute/list_addresses.rb +43 -0
  1456. data/lib/fog/rackspace/requests/compute/list_flavors.rb +45 -0
  1457. data/lib/fog/rackspace/requests/compute/list_flavors_detail.rb +47 -0
  1458. data/lib/fog/rackspace/requests/compute/list_images.rb +40 -0
  1459. data/lib/fog/rackspace/requests/compute/list_images_detail.rb +49 -0
  1460. data/lib/fog/rackspace/requests/compute/list_private_addresses.rb +41 -0
  1461. data/lib/fog/rackspace/requests/compute/list_public_addresses.rb +41 -0
  1462. data/lib/fog/rackspace/requests/compute/list_servers.rb +41 -0
  1463. data/lib/fog/rackspace/requests/compute/list_servers_detail.rb +56 -0
  1464. data/lib/fog/rackspace/requests/compute/reboot_server.rb +30 -0
  1465. data/lib/fog/rackspace/requests/compute/resize_server.rb +39 -0
  1466. data/lib/fog/rackspace/requests/compute/revert_resized_server.rb +35 -0
  1467. data/lib/fog/rackspace/requests/compute/server_action.rb +25 -0
  1468. data/lib/fog/rackspace/requests/compute/update_server.rb +45 -0
  1469. data/lib/fog/rackspace/requests/dns/add_records.rb +34 -0
  1470. data/lib/fog/rackspace/requests/dns/callback.rb +19 -0
  1471. data/lib/fog/rackspace/requests/dns/create_domains.rb +48 -0
  1472. data/lib/fog/rackspace/requests/dns/list_domain_details.rb +32 -0
  1473. data/lib/fog/rackspace/requests/dns/list_domains.rb +21 -0
  1474. data/lib/fog/rackspace/requests/dns/list_record_details.rb +21 -0
  1475. data/lib/fog/rackspace/requests/dns/list_records.rb +23 -0
  1476. data/lib/fog/rackspace/requests/dns/list_subdomains.rb +23 -0
  1477. data/lib/fog/rackspace/requests/dns/modify_domain.rb +36 -0
  1478. data/lib/fog/rackspace/requests/dns/modify_record.rb +37 -0
  1479. data/lib/fog/rackspace/requests/dns/remove_domain.rb +29 -0
  1480. data/lib/fog/rackspace/requests/dns/remove_domains.rb +27 -0
  1481. data/lib/fog/rackspace/requests/dns/remove_record.rb +21 -0
  1482. data/lib/fog/rackspace/requests/dns/remove_records.rb +20 -0
  1483. data/lib/fog/rackspace/requests/load_balancers/create_access_rule.rb +24 -0
  1484. data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +26 -0
  1485. data/lib/fog/rackspace/requests/load_balancers/create_node.rb +27 -0
  1486. data/lib/fog/rackspace/requests/load_balancers/create_virtual_ip.rb +20 -0
  1487. data/lib/fog/rackspace/requests/load_balancers/delete_access_rule.rb +15 -0
  1488. data/lib/fog/rackspace/requests/load_balancers/delete_all_access_rules.rb +15 -0
  1489. data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +15 -0
  1490. data/lib/fog/rackspace/requests/load_balancers/delete_node.rb +15 -0
  1491. data/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +16 -0
  1492. data/lib/fog/rackspace/requests/load_balancers/delete_virtual_ip.rb +15 -0
  1493. data/lib/fog/rackspace/requests/load_balancers/get_connection_logging.rb +15 -0
  1494. data/lib/fog/rackspace/requests/load_balancers/get_connection_throttling.rb +15 -0
  1495. data/lib/fog/rackspace/requests/load_balancers/get_error_page.rb +15 -0
  1496. data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +15 -0
  1497. data/lib/fog/rackspace/requests/load_balancers/get_load_balancer_usage.rb +21 -0
  1498. data/lib/fog/rackspace/requests/load_balancers/get_monitor.rb +15 -0
  1499. data/lib/fog/rackspace/requests/load_balancers/get_node.rb +15 -0
  1500. data/lib/fog/rackspace/requests/load_balancers/get_session_persistence.rb +15 -0
  1501. data/lib/fog/rackspace/requests/load_balancers/get_usage.rb +20 -0
  1502. data/lib/fog/rackspace/requests/load_balancers/list_access_rules.rb +15 -0
  1503. data/lib/fog/rackspace/requests/load_balancers/list_algorithms.rb +15 -0
  1504. data/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +21 -0
  1505. data/lib/fog/rackspace/requests/load_balancers/list_nodes.rb +15 -0
  1506. data/lib/fog/rackspace/requests/load_balancers/list_protocols.rb +15 -0
  1507. data/lib/fog/rackspace/requests/load_balancers/list_virtual_ips.rb +15 -0
  1508. data/lib/fog/rackspace/requests/load_balancers/remove_connection_throttling.rb +15 -0
  1509. data/lib/fog/rackspace/requests/load_balancers/remove_error_page.rb +15 -0
  1510. data/lib/fog/rackspace/requests/load_balancers/remove_monitor.rb +15 -0
  1511. data/lib/fog/rackspace/requests/load_balancers/remove_session_persistence.rb +15 -0
  1512. data/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb +21 -0
  1513. data/lib/fog/rackspace/requests/load_balancers/set_connection_throttling.rb +22 -0
  1514. data/lib/fog/rackspace/requests/load_balancers/set_error_page.rb +21 -0
  1515. data/lib/fog/rackspace/requests/load_balancers/set_monitor.rb +31 -0
  1516. data/lib/fog/rackspace/requests/load_balancers/set_session_persistence.rb +21 -0
  1517. data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +24 -0
  1518. data/lib/fog/rackspace/requests/load_balancers/update_node.rb +26 -0
  1519. data/lib/fog/rackspace/requests/storage/copy_object.rb +27 -0
  1520. data/lib/fog/rackspace/requests/storage/delete_container.rb +22 -0
  1521. data/lib/fog/rackspace/requests/storage/delete_object.rb +23 -0
  1522. data/lib/fog/rackspace/requests/storage/get_container.rb +44 -0
  1523. data/lib/fog/rackspace/requests/storage/get_containers.rb +33 -0
  1524. data/lib/fog/rackspace/requests/storage/get_object.rb +24 -0
  1525. data/lib/fog/rackspace/requests/storage/head_container.rb +28 -0
  1526. data/lib/fog/rackspace/requests/storage/head_containers.rb +25 -0
  1527. data/lib/fog/rackspace/requests/storage/head_object.rb +23 -0
  1528. data/lib/fog/rackspace/requests/storage/put_container.rb +22 -0
  1529. data/lib/fog/rackspace/requests/storage/put_object.rb +30 -0
  1530. data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +25 -0
  1531. data/lib/fog/rackspace/storage.rb +132 -0
  1532. data/lib/fog/slicehost.rb +12 -0
  1533. data/lib/fog/slicehost/compute.rb +104 -0
  1534. data/lib/fog/slicehost/dns.rb +101 -0
  1535. data/lib/fog/slicehost/models/compute/flavor.rb +45 -0
  1536. data/lib/fog/slicehost/models/compute/flavors.rb +28 -0
  1537. data/lib/fog/slicehost/models/compute/image.rb +17 -0
  1538. data/lib/fog/slicehost/models/compute/images.rb +27 -0
  1539. data/lib/fog/slicehost/models/compute/server.rb +113 -0
  1540. data/lib/fog/slicehost/models/compute/servers.rb +38 -0
  1541. data/lib/fog/slicehost/models/dns/record.rb +73 -0
  1542. data/lib/fog/slicehost/models/dns/records.rb +36 -0
  1543. data/lib/fog/slicehost/models/dns/zone.rb +69 -0
  1544. data/lib/fog/slicehost/models/dns/zones.rb +28 -0
  1545. data/lib/fog/slicehost/parsers/compute/create_slice.rb +31 -0
  1546. data/lib/fog/slicehost/parsers/compute/get_backups.rb +32 -0
  1547. data/lib/fog/slicehost/parsers/compute/get_flavor.rb +26 -0
  1548. data/lib/fog/slicehost/parsers/compute/get_flavors.rb +30 -0
  1549. data/lib/fog/slicehost/parsers/compute/get_image.rb +26 -0
  1550. data/lib/fog/slicehost/parsers/compute/get_images.rb +30 -0
  1551. data/lib/fog/slicehost/parsers/compute/get_slice.rb +31 -0
  1552. data/lib/fog/slicehost/parsers/compute/get_slices.rb +35 -0
  1553. data/lib/fog/slicehost/parsers/dns/create_record.rb +32 -0
  1554. data/lib/fog/slicehost/parsers/dns/create_zone.rb +26 -0
  1555. data/lib/fog/slicehost/parsers/dns/get_record.rb +38 -0
  1556. data/lib/fog/slicehost/parsers/dns/get_records.rb +38 -0
  1557. data/lib/fog/slicehost/parsers/dns/get_zone.rb +26 -0
  1558. data/lib/fog/slicehost/parsers/dns/get_zones.rb +30 -0
  1559. data/lib/fog/slicehost/requests/compute/create_slice.rb +41 -0
  1560. data/lib/fog/slicehost/requests/compute/delete_slice.rb +23 -0
  1561. data/lib/fog/slicehost/requests/compute/get_backups.rb +29 -0
  1562. data/lib/fog/slicehost/requests/compute/get_flavor.rb +32 -0
  1563. data/lib/fog/slicehost/requests/compute/get_flavors.rb +29 -0
  1564. data/lib/fog/slicehost/requests/compute/get_image.rb +30 -0
  1565. data/lib/fog/slicehost/requests/compute/get_images.rb +27 -0
  1566. data/lib/fog/slicehost/requests/compute/get_slice.rb +38 -0
  1567. data/lib/fog/slicehost/requests/compute/get_slices.rb +35 -0
  1568. data/lib/fog/slicehost/requests/compute/reboot_slice.rb +36 -0
  1569. data/lib/fog/slicehost/requests/dns/create_record.rb +52 -0
  1570. data/lib/fog/slicehost/requests/dns/create_zone.rb +46 -0
  1571. data/lib/fog/slicehost/requests/dns/delete_record.rb +23 -0
  1572. data/lib/fog/slicehost/requests/dns/delete_zone.rb +23 -0
  1573. data/lib/fog/slicehost/requests/dns/get_record.rb +32 -0
  1574. data/lib/fog/slicehost/requests/dns/get_records.rb +32 -0
  1575. data/lib/fog/slicehost/requests/dns/get_zone.rb +32 -0
  1576. data/lib/fog/slicehost/requests/dns/get_zones.rb +30 -0
  1577. data/lib/fog/slicehost/requests/dns/update_record.rb +43 -0
  1578. data/lib/fog/storage.rb +81 -0
  1579. data/lib/fog/storm_on_demand.rb +12 -0
  1580. data/lib/fog/storm_on_demand/compute.rb +137 -0
  1581. data/lib/fog/storm_on_demand/models/compute/balancer.rb +38 -0
  1582. data/lib/fog/storm_on_demand/models/compute/balancers.rb +21 -0
  1583. data/lib/fog/storm_on_demand/models/compute/config.rb +25 -0
  1584. data/lib/fog/storm_on_demand/models/compute/configs.rb +22 -0
  1585. data/lib/fog/storm_on_demand/models/compute/image.rb +20 -0
  1586. data/lib/fog/storm_on_demand/models/compute/images.rb +21 -0
  1587. data/lib/fog/storm_on_demand/models/compute/private_ip.rb +19 -0
  1588. data/lib/fog/storm_on_demand/models/compute/private_ips.rb +31 -0
  1589. data/lib/fog/storm_on_demand/models/compute/server.rb +74 -0
  1590. data/lib/fog/storm_on_demand/models/compute/servers.rb +26 -0
  1591. data/lib/fog/storm_on_demand/models/compute/stat.rb +23 -0
  1592. data/lib/fog/storm_on_demand/models/compute/stats.rb +22 -0
  1593. data/lib/fog/storm_on_demand/models/compute/template.rb +22 -0
  1594. data/lib/fog/storm_on_demand/models/compute/templates.rb +21 -0
  1595. data/lib/fog/storm_on_demand/requests/compute/add_balancer_node.rb +16 -0
  1596. data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +16 -0
  1597. data/lib/fog/storm_on_demand/requests/compute/create_server.rb +16 -0
  1598. data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +16 -0
  1599. data/lib/fog/storm_on_demand/requests/compute/get_server.rb +16 -0
  1600. data/lib/fog/storm_on_demand/requests/compute/get_stats.rb +16 -0
  1601. data/lib/fog/storm_on_demand/requests/compute/list_balancers.rb +16 -0
  1602. data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +16 -0
  1603. data/lib/fog/storm_on_demand/requests/compute/list_images.rb +16 -0
  1604. data/lib/fog/storm_on_demand/requests/compute/list_private_ips.rb +16 -0
  1605. data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +16 -0
  1606. data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +16 -0
  1607. data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +16 -0
  1608. data/lib/fog/storm_on_demand/requests/compute/remove_balancer_node.rb +16 -0
  1609. data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +16 -0
  1610. data/lib/fog/terremark.rb +11 -0
  1611. data/lib/fog/terremark/models/shared/address.rb +29 -0
  1612. data/lib/fog/terremark/models/shared/addresses.rb +49 -0
  1613. data/lib/fog/terremark/models/shared/network.rb +35 -0
  1614. data/lib/fog/terremark/models/shared/networks.rb +52 -0
  1615. data/lib/fog/terremark/models/shared/server.rb +110 -0
  1616. data/lib/fog/terremark/models/shared/servers.rb +55 -0
  1617. data/lib/fog/terremark/models/shared/task.rb +50 -0
  1618. data/lib/fog/terremark/models/shared/tasks.rb +58 -0
  1619. data/lib/fog/terremark/models/shared/vdc.rb +39 -0
  1620. data/lib/fog/terremark/models/shared/vdcs.rb +52 -0
  1621. data/lib/fog/terremark/parser.rb +19 -0
  1622. data/lib/fog/terremark/parsers/shared/get_catalog.rb +46 -0
  1623. data/lib/fog/terremark/parsers/shared/get_catalog_item.rb +46 -0
  1624. data/lib/fog/terremark/parsers/shared/get_internet_services.rb +60 -0
  1625. data/lib/fog/terremark/parsers/shared/get_network_ips.rb +29 -0
  1626. data/lib/fog/terremark/parsers/shared/get_node_services.rb +36 -0
  1627. data/lib/fog/terremark/parsers/shared/get_organization.rb +52 -0
  1628. data/lib/fog/terremark/parsers/shared/get_organizations.rb +32 -0
  1629. data/lib/fog/terremark/parsers/shared/get_public_ips.rb +30 -0
  1630. data/lib/fog/terremark/parsers/shared/get_tasks_list.rb +52 -0
  1631. data/lib/fog/terremark/parsers/shared/get_vapp_template.rb +46 -0
  1632. data/lib/fog/terremark/parsers/shared/get_vdc.rb +123 -0
  1633. data/lib/fog/terremark/parsers/shared/instantiate_vapp_template.rb +41 -0
  1634. data/lib/fog/terremark/parsers/shared/internet_service.rb +65 -0
  1635. data/lib/fog/terremark/parsers/shared/network.rb +51 -0
  1636. data/lib/fog/terremark/parsers/shared/node_service.rb +32 -0
  1637. data/lib/fog/terremark/parsers/shared/public_ip.rb +26 -0
  1638. data/lib/fog/terremark/parsers/shared/task.rb +40 -0
  1639. data/lib/fog/terremark/parsers/shared/vapp.rb +77 -0
  1640. data/lib/fog/terremark/requests/shared/add_internet_service.rb +55 -0
  1641. data/lib/fog/terremark/requests/shared/add_node_service.rb +55 -0
  1642. data/lib/fog/terremark/requests/shared/create_internet_service.rb +55 -0
  1643. data/lib/fog/terremark/requests/shared/delete_internet_service.rb +22 -0
  1644. data/lib/fog/terremark/requests/shared/delete_node_service.rb +22 -0
  1645. data/lib/fog/terremark/requests/shared/delete_public_ip.rb +22 -0
  1646. data/lib/fog/terremark/requests/shared/delete_vapp.rb +22 -0
  1647. data/lib/fog/terremark/requests/shared/deploy_vapp.rb +35 -0
  1648. data/lib/fog/terremark/requests/shared/get_catalog.rb +32 -0
  1649. data/lib/fog/terremark/requests/shared/get_catalog_item.rb +35 -0
  1650. data/lib/fog/terremark/requests/shared/get_internet_services.rb +35 -0
  1651. data/lib/fog/terremark/requests/shared/get_network.rb +73 -0
  1652. data/lib/fog/terremark/requests/shared/get_network_ips.rb +32 -0
  1653. data/lib/fog/terremark/requests/shared/get_node_services.rb +30 -0
  1654. data/lib/fog/terremark/requests/shared/get_organization.rb +86 -0
  1655. data/lib/fog/terremark/requests/shared/get_organizations.rb +49 -0
  1656. data/lib/fog/terremark/requests/shared/get_public_ip.rb +33 -0
  1657. data/lib/fog/terremark/requests/shared/get_public_ips.rb +72 -0
  1658. data/lib/fog/terremark/requests/shared/get_task.rb +39 -0
  1659. data/lib/fog/terremark/requests/shared/get_tasks_list.rb +33 -0
  1660. data/lib/fog/terremark/requests/shared/get_vapp.rb +42 -0
  1661. data/lib/fog/terremark/requests/shared/get_vapp_template.rb +35 -0
  1662. data/lib/fog/terremark/requests/shared/get_vdc.rb +125 -0
  1663. data/lib/fog/terremark/requests/shared/instantiate_vapp_template.rb +71 -0
  1664. data/lib/fog/terremark/requests/shared/power_off.rb +35 -0
  1665. data/lib/fog/terremark/requests/shared/power_on.rb +35 -0
  1666. data/lib/fog/terremark/requests/shared/power_reset.rb +35 -0
  1667. data/lib/fog/terremark/requests/shared/power_shutdown.rb +24 -0
  1668. data/lib/fog/terremark/shared.rb +293 -0
  1669. data/lib/fog/terremark/vcloud.rb +126 -0
  1670. data/lib/fog/vcloud.rb +11 -0
  1671. data/lib/fog/vcloud/compute.rb +372 -0
  1672. data/lib/fog/vcloud/models/compute/catalog.rb +22 -0
  1673. data/lib/fog/vcloud/models/compute/catalog_item.rb +29 -0
  1674. data/lib/fog/vcloud/models/compute/catalog_items.rb +32 -0
  1675. data/lib/fog/vcloud/models/compute/catalogs.rb +38 -0
  1676. data/lib/fog/vcloud/models/compute/helpers/status.rb +37 -0
  1677. data/lib/fog/vcloud/models/compute/ip.rb +42 -0
  1678. data/lib/fog/vcloud/models/compute/ips.rb +33 -0
  1679. data/lib/fog/vcloud/models/compute/network.rb +23 -0
  1680. data/lib/fog/vcloud/models/compute/networks.rb +48 -0
  1681. data/lib/fog/vcloud/models/compute/organization.rb +43 -0
  1682. data/lib/fog/vcloud/models/compute/organizations.rb +32 -0
  1683. data/lib/fog/vcloud/models/compute/server.rb +271 -0
  1684. data/lib/fog/vcloud/models/compute/servers.rb +52 -0
  1685. data/lib/fog/vcloud/models/compute/task.rb +21 -0
  1686. data/lib/fog/vcloud/models/compute/tasks.rb +30 -0
  1687. data/lib/fog/vcloud/models/compute/vapp.rb +43 -0
  1688. data/lib/fog/vcloud/models/compute/vapps.rb +28 -0
  1689. data/lib/fog/vcloud/models/compute/vdc.rb +41 -0
  1690. data/lib/fog/vcloud/models/compute/vdcs.rb +35 -0
  1691. data/lib/fog/vcloud/requests/compute/clone_vapp.rb +40 -0
  1692. data/lib/fog/vcloud/requests/compute/configure_network.rb +43 -0
  1693. data/lib/fog/vcloud/requests/compute/configure_network_ip.rb +46 -0
  1694. data/lib/fog/vcloud/requests/compute/configure_node.rb +38 -0
  1695. data/lib/fog/vcloud/requests/compute/configure_vapp.rb +112 -0
  1696. data/lib/fog/vcloud/requests/compute/configure_vm.rb +247 -0
  1697. data/lib/fog/vcloud/requests/compute/configure_vm_disks.rb +100 -0
  1698. data/lib/fog/vcloud/requests/compute/configure_vm_memory.rb +40 -0
  1699. data/lib/fog/vcloud/requests/compute/configure_vm_name_description.rb +30 -0
  1700. data/lib/fog/vcloud/requests/compute/delete_node.rb +10 -0
  1701. data/lib/fog/vcloud/requests/compute/delete_vapp.rb +10 -0
  1702. data/lib/fog/vcloud/requests/compute/get_catalog.rb +10 -0
  1703. data/lib/fog/vcloud/requests/compute/get_catalog_item.rb +10 -0
  1704. data/lib/fog/vcloud/requests/compute/get_customization_options.rb +10 -0
  1705. data/lib/fog/vcloud/requests/compute/get_network.rb +10 -0
  1706. data/lib/fog/vcloud/requests/compute/get_network_extensions.rb +11 -0
  1707. data/lib/fog/vcloud/requests/compute/get_network_ip.rb +15 -0
  1708. data/lib/fog/vcloud/requests/compute/get_network_ips.rb +15 -0
  1709. data/lib/fog/vcloud/requests/compute/get_organization.rb +11 -0
  1710. data/lib/fog/vcloud/requests/compute/get_server.rb +10 -0
  1711. data/lib/fog/vcloud/requests/compute/get_task.rb +11 -0
  1712. data/lib/fog/vcloud/requests/compute/get_task_list.rb +11 -0
  1713. data/lib/fog/vcloud/requests/compute/get_vapp.rb +10 -0
  1714. data/lib/fog/vcloud/requests/compute/get_vapp_template.rb +11 -0
  1715. data/lib/fog/vcloud/requests/compute/get_vdc.rb +10 -0
  1716. data/lib/fog/vcloud/requests/compute/get_vm_disks.rb +16 -0
  1717. data/lib/fog/vcloud/requests/compute/get_vm_memory.rb +16 -0
  1718. data/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +83 -0
  1719. data/lib/fog/vcloud/requests/compute/login.rb +27 -0
  1720. data/lib/fog/vcloud/requests/compute/power_off.rb +10 -0
  1721. data/lib/fog/vcloud/requests/compute/power_on.rb +11 -0
  1722. data/lib/fog/vcloud/requests/compute/power_reset.rb +11 -0
  1723. data/lib/fog/vcloud/requests/compute/power_shutdown.rb +11 -0
  1724. data/lib/fog/vcloud/requests/compute/undeploy.rb +23 -0
  1725. data/lib/fog/virtual_box.rb +11 -0
  1726. data/lib/fog/virtual_box/compute.rb +53 -0
  1727. data/lib/fog/virtual_box/models/compute/medium.rb +87 -0
  1728. data/lib/fog/virtual_box/models/compute/medium_format.rb +34 -0
  1729. data/lib/fog/virtual_box/models/compute/mediums.rb +32 -0
  1730. data/lib/fog/virtual_box/models/compute/nat_engine.rb +65 -0
  1731. data/lib/fog/virtual_box/models/compute/nat_redirect.rb +91 -0
  1732. data/lib/fog/virtual_box/models/compute/nat_redirects.rb +41 -0
  1733. data/lib/fog/virtual_box/models/compute/network_adapter.rb +82 -0
  1734. data/lib/fog/virtual_box/models/compute/network_adapters.rb +42 -0
  1735. data/lib/fog/virtual_box/models/compute/server.rb +241 -0
  1736. data/lib/fog/virtual_box/models/compute/servers.rb +41 -0
  1737. data/lib/fog/virtual_box/models/compute/storage_controller.rb +83 -0
  1738. data/lib/fog/virtual_box/models/compute/storage_controllers.rb +38 -0
  1739. data/lib/fog/vmfusion.rb +11 -0
  1740. data/lib/fog/vmfusion/compute.rb +29 -0
  1741. data/lib/fog/vmfusion/models/compute/server.rb +291 -0
  1742. data/lib/fog/vmfusion/models/compute/servers.rb +41 -0
  1743. data/lib/fog/voxel.rb +16 -0
  1744. data/lib/fog/voxel/compute.rb +125 -0
  1745. data/lib/fog/voxel/models/compute/image.rb +15 -0
  1746. data/lib/fog/voxel/models/compute/images.rb +30 -0
  1747. data/lib/fog/voxel/models/compute/server.rb +78 -0
  1748. data/lib/fog/voxel/models/compute/servers.rb +32 -0
  1749. data/lib/fog/voxel/parsers/compute/basic.rb +31 -0
  1750. data/lib/fog/voxel/parsers/compute/devices_list.rb +111 -0
  1751. data/lib/fog/voxel/parsers/compute/images_list.rb +59 -0
  1752. data/lib/fog/voxel/parsers/compute/voxcloud_create.rb +40 -0
  1753. data/lib/fog/voxel/parsers/compute/voxcloud_delete.rb +31 -0
  1754. data/lib/fog/voxel/parsers/compute/voxcloud_status.rb +42 -0
  1755. data/lib/fog/voxel/requests/compute/devices_list.rb +24 -0
  1756. data/lib/fog/voxel/requests/compute/devices_power.rb +22 -0
  1757. data/lib/fog/voxel/requests/compute/images_list.rb +31 -0
  1758. data/lib/fog/voxel/requests/compute/voxcloud_create.rb +22 -0
  1759. data/lib/fog/voxel/requests/compute/voxcloud_delete.rb +20 -0
  1760. data/lib/fog/voxel/requests/compute/voxcloud_status.rb +24 -0
  1761. data/lib/fog/vsphere.rb +17 -0
  1762. data/lib/fog/vsphere/compute.rb +180 -0
  1763. data/lib/fog/vsphere/models/compute/server.rb +100 -0
  1764. data/lib/fog/vsphere/models/compute/servers.rb +43 -0
  1765. data/lib/fog/vsphere/requests/compute/current_time.rb +22 -0
  1766. data/lib/fog/vsphere/requests/compute/datacenters.rb +34 -0
  1767. data/lib/fog/vsphere/requests/compute/find_vm_by_ref.rb +41 -0
  1768. data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +236 -0
  1769. data/lib/fog/vsphere/requests/compute/vm_clone.rb +171 -0
  1770. data/lib/fog/vsphere/requests/compute/vm_create.rb +97 -0
  1771. data/lib/fog/vsphere/requests/compute/vm_destroy.rb +34 -0
  1772. data/lib/fog/vsphere/requests/compute/vm_power_off.rb +41 -0
  1773. data/lib/fog/vsphere/requests/compute/vm_power_on.rb +30 -0
  1774. data/lib/fog/vsphere/requests/compute/vm_reboot.rb +35 -0
  1775. data/lib/fog/vsphere/requests/compute/vm_reconfig_cpus.rb +23 -0
  1776. data/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb +25 -0
  1777. data/lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb +23 -0
  1778. data/lib/fog/zerigo.rb +11 -0
  1779. data/lib/fog/zerigo/dns.rb +120 -0
  1780. data/lib/fog/zerigo/models/dns/record.rb +70 -0
  1781. data/lib/fog/zerigo/models/dns/records.rb +46 -0
  1782. data/lib/fog/zerigo/models/dns/zone.rb +88 -0
  1783. data/lib/fog/zerigo/models/dns/zones.rb +30 -0
  1784. data/lib/fog/zerigo/parsers/dns/count_hosts.rb +24 -0
  1785. data/lib/fog/zerigo/parsers/dns/count_zones.rb +24 -0
  1786. data/lib/fog/zerigo/parsers/dns/create_host.rb +28 -0
  1787. data/lib/fog/zerigo/parsers/dns/create_zone.rb +26 -0
  1788. data/lib/fog/zerigo/parsers/dns/find_hosts.rb +32 -0
  1789. data/lib/fog/zerigo/parsers/dns/get_host.rb +28 -0
  1790. data/lib/fog/zerigo/parsers/dns/get_zone.rb +58 -0
  1791. data/lib/fog/zerigo/parsers/dns/get_zone_stats.rb +26 -0
  1792. data/lib/fog/zerigo/parsers/dns/list_hosts.rb +32 -0
  1793. data/lib/fog/zerigo/parsers/dns/list_zones.rb +30 -0
  1794. data/lib/fog/zerigo/requests/dns/count_hosts.rb +47 -0
  1795. data/lib/fog/zerigo/requests/dns/count_zones.rb +39 -0
  1796. data/lib/fog/zerigo/requests/dns/create_host.rb +128 -0
  1797. data/lib/fog/zerigo/requests/dns/create_zone.rb +132 -0
  1798. data/lib/fog/zerigo/requests/dns/delete_host.rb +43 -0
  1799. data/lib/fog/zerigo/requests/dns/delete_zone.rb +42 -0
  1800. data/lib/fog/zerigo/requests/dns/find_hosts.rb +76 -0
  1801. data/lib/fog/zerigo/requests/dns/get_host.rb +56 -0
  1802. data/lib/fog/zerigo/requests/dns/get_zone.rb +66 -0
  1803. data/lib/fog/zerigo/requests/dns/get_zone_stats.rb +59 -0
  1804. data/lib/fog/zerigo/requests/dns/list_hosts.rb +59 -0
  1805. data/lib/fog/zerigo/requests/dns/list_zones.rb +60 -0
  1806. data/lib/fog/zerigo/requests/dns/update_host.rb +71 -0
  1807. data/lib/fog/zerigo/requests/dns/update_zone.rb +89 -0
  1808. data/spec/core/current_machine_spec.rb +22 -0
  1809. data/spec/ecloud/bin_spec.rb +28 -0
  1810. data/spec/ecloud/models/backup_internet_service_spec.rb +48 -0
  1811. data/spec/ecloud/models/backup_internet_services_spec.rb +28 -0
  1812. data/spec/ecloud/models/internet_service_spec.rb +104 -0
  1813. data/spec/ecloud/models/internet_services_spec.rb +29 -0
  1814. data/spec/ecloud/models/ip_spec.rb +33 -0
  1815. data/spec/ecloud/models/ips_spec.rb +28 -0
  1816. data/spec/ecloud/models/network_spec.rb +71 -0
  1817. data/spec/ecloud/models/networks_spec.rb +27 -0
  1818. data/spec/ecloud/models/node_spec.rb +38 -0
  1819. data/spec/ecloud/models/nodes_spec.rb +28 -0
  1820. data/spec/ecloud/models/public_ip_spec.rb +36 -0
  1821. data/spec/ecloud/models/public_ips_spec.rb +27 -0
  1822. data/spec/ecloud/models/server_spec.rb +62 -0
  1823. data/spec/ecloud/models/vdc_spec.rb +63 -0
  1824. data/spec/ecloud/models/vdcs_spec.rb +28 -0
  1825. data/spec/ecloud/requests/add_backup_internet_service_spec.rb +60 -0
  1826. data/spec/ecloud/requests/add_internet_service_spec.rb +65 -0
  1827. data/spec/ecloud/requests/add_node_spec.rb +56 -0
  1828. data/spec/ecloud/requests/configure_internet_service_spec.rb +61 -0
  1829. data/spec/ecloud/requests/configure_network_ip_spec.rb +55 -0
  1830. data/spec/ecloud/requests/configure_node_spec.rb +52 -0
  1831. data/spec/ecloud/requests/configure_vapp_spec.rb +71 -0
  1832. data/spec/ecloud/requests/delete_internet_service_spec.rb +34 -0
  1833. data/spec/ecloud/requests/delete_node_spec.rb +30 -0
  1834. data/spec/ecloud/requests/delete_vapp_spec.rb +92 -0
  1835. data/spec/ecloud/requests/get_catalog_item_spec.rb +62 -0
  1836. data/spec/ecloud/requests/get_catalog_spec.rb +44 -0
  1837. data/spec/ecloud/requests/get_customization_options_spec.rb +39 -0
  1838. data/spec/ecloud/requests/get_internet_services_spec.rb +150 -0
  1839. data/spec/ecloud/requests/get_network_ip_spec.rb +40 -0
  1840. data/spec/ecloud/requests/get_network_ips_spec.rb +58 -0
  1841. data/spec/ecloud/requests/get_network_spec.rb +49 -0
  1842. data/spec/ecloud/requests/get_node_spec.rb +41 -0
  1843. data/spec/ecloud/requests/get_nodes_spec.rb +58 -0
  1844. data/spec/ecloud/requests/get_organization_spec.rb +52 -0
  1845. data/spec/ecloud/requests/get_public_ip_spec.rb +38 -0
  1846. data/spec/ecloud/requests/get_public_ips_spec.rb +52 -0
  1847. data/spec/ecloud/requests/get_vapp_spec.rb +125 -0
  1848. data/spec/ecloud/requests/get_vdc_spec.rb +112 -0
  1849. data/spec/ecloud/requests/get_versions_spec.rb +57 -0
  1850. data/spec/ecloud/requests/instantiate_vapp_template_spec.rb +95 -0
  1851. data/spec/ecloud/requests/login_spec.rb +10 -0
  1852. data/spec/ecloud/requests/power_off_spec.rb +34 -0
  1853. data/spec/ecloud/requests/power_on_spec.rb +34 -0
  1854. data/spec/ecloud/spec_helper.rb +387 -0
  1855. data/spec/ecloud/vcloud_spec.rb +18 -0
  1856. data/spec/lib/fog/aws/parsers/sqs/receive_message_spec.rb +58 -0
  1857. data/spec/spec_helper.rb +8 -0
  1858. data/tests/aws/models/auto_scaling/activities_tests.rb +6 -0
  1859. data/tests/aws/models/auto_scaling/configuration_test.rb +13 -0
  1860. data/tests/aws/models/auto_scaling/configurations_tests.rb +11 -0
  1861. data/tests/aws/models/auto_scaling/helper.rb +0 -0
  1862. data/tests/aws/models/auto_scaling/instances_tests.rb +6 -0
  1863. data/tests/aws/models/cloud_watch/alarm_data_tests.rb +42 -0
  1864. data/tests/aws/models/cloud_watch/alarm_history_tests.rb +22 -0
  1865. data/tests/aws/models/cloud_watch/metric_statistics_tests.rb +51 -0
  1866. data/tests/aws/models/cloud_watch/metrics_tests.rb +17 -0
  1867. data/tests/aws/models/compute/address_tests.rb +16 -0
  1868. data/tests/aws/models/compute/addresses_tests.rb +5 -0
  1869. data/tests/aws/models/compute/key_pair_tests.rb +27 -0
  1870. data/tests/aws/models/compute/key_pairs_tests.rb +5 -0
  1871. data/tests/aws/models/compute/security_group_tests.rb +37 -0
  1872. data/tests/aws/models/compute/security_groups_tests.rb +5 -0
  1873. data/tests/aws/models/compute/server_tests.rb +63 -0
  1874. data/tests/aws/models/compute/snapshot_tests.rb +10 -0
  1875. data/tests/aws/models/compute/snapshots_tests.rb +10 -0
  1876. data/tests/aws/models/compute/volume_tests.rb +39 -0
  1877. data/tests/aws/models/compute/volumes_tests.rb +5 -0
  1878. data/tests/aws/models/dns/record_tests.rb +23 -0
  1879. data/tests/aws/models/dns/records_tests.rb +23 -0
  1880. data/tests/aws/models/dns/zone_tests.rb +4 -0
  1881. data/tests/aws/models/dns/zones_tests.rb +4 -0
  1882. data/tests/aws/models/elasticache/cluster_tests.rb +30 -0
  1883. data/tests/aws/models/elasticache/parameter_groups_tests.rb +17 -0
  1884. data/tests/aws/models/elasticache/security_groups_tests.rb +52 -0
  1885. data/tests/aws/models/elb/model_tests.rb +262 -0
  1886. data/tests/aws/models/rds/helper.rb +5 -0
  1887. data/tests/aws/models/rds/parameter_group_tests.rb +24 -0
  1888. data/tests/aws/models/rds/parameter_groups_tests.rb +8 -0
  1889. data/tests/aws/models/rds/security_group_tests.rb +53 -0
  1890. data/tests/aws/models/rds/security_groups_tests.rb +5 -0
  1891. data/tests/aws/models/rds/server_tests.rb +106 -0
  1892. data/tests/aws/models/rds/servers_tests.rb +6 -0
  1893. data/tests/aws/models/rds/snapshot_tests.rb +13 -0
  1894. data/tests/aws/models/rds/snapshots_tests.rb +13 -0
  1895. data/tests/aws/models/storage/directory_tests.rb +51 -0
  1896. data/tests/aws/models/storage/file_tests.rb +78 -0
  1897. data/tests/aws/models/storage/files_tests.rb +56 -0
  1898. data/tests/aws/models/storage/version_tests.rb +52 -0
  1899. data/tests/aws/models/storage/versions_tests.rb +56 -0
  1900. data/tests/aws/requests/auto_scaling/auto_scaling_tests.rb +80 -0
  1901. data/tests/aws/requests/auto_scaling/helper.rb +185 -0
  1902. data/tests/aws/requests/auto_scaling/model_tests.rb +235 -0
  1903. data/tests/aws/requests/cloud_formation/stack_tests.rb +157 -0
  1904. data/tests/aws/requests/cloud_watch/get_metric_statistics_tests.rb +28 -0
  1905. data/tests/aws/requests/cloud_watch/list_metrics_test.rb +64 -0
  1906. data/tests/aws/requests/cloud_watch/put_metric_data_tests.rb +36 -0
  1907. data/tests/aws/requests/compute/address_tests.rb +78 -0
  1908. data/tests/aws/requests/compute/availability_zone_tests.rb +25 -0
  1909. data/tests/aws/requests/compute/helper.rb +16 -0
  1910. data/tests/aws/requests/compute/image_tests.rb +107 -0
  1911. data/tests/aws/requests/compute/instance_tests.rb +286 -0
  1912. data/tests/aws/requests/compute/key_pair_tests.rb +67 -0
  1913. data/tests/aws/requests/compute/placement_group_tests.rb +48 -0
  1914. data/tests/aws/requests/compute/region_tests.rb +23 -0
  1915. data/tests/aws/requests/compute/security_group_tests.rb +363 -0
  1916. data/tests/aws/requests/compute/snapshot_tests.rb +57 -0
  1917. data/tests/aws/requests/compute/spot_datafeed_subscription_tests.rb +47 -0
  1918. data/tests/aws/requests/compute/spot_instance_tests.rb +53 -0
  1919. data/tests/aws/requests/compute/spot_price_history_tests.rb +24 -0
  1920. data/tests/aws/requests/compute/tag_tests.rb +77 -0
  1921. data/tests/aws/requests/compute/volume_tests.rb +122 -0
  1922. data/tests/aws/requests/dns/dns_tests.rb +289 -0
  1923. data/tests/aws/requests/dynamodb/item_tests.rb +117 -0
  1924. data/tests/aws/requests/dynamodb/table_tests.rb +99 -0
  1925. data/tests/aws/requests/elasticache/cache_cluster_tests.rb +137 -0
  1926. data/tests/aws/requests/elasticache/describe_events.rb +17 -0
  1927. data/tests/aws/requests/elasticache/helper.rb +68 -0
  1928. data/tests/aws/requests/elasticache/parameter_group_tests.rb +105 -0
  1929. data/tests/aws/requests/elasticache/security_group_tests.rb +107 -0
  1930. data/tests/aws/requests/elb/helper.rb +80 -0
  1931. data/tests/aws/requests/elb/listener_tests.rb +68 -0
  1932. data/tests/aws/requests/elb/load_balancer_tests.rb +61 -0
  1933. data/tests/aws/requests/elb/policy_tests.rb +54 -0
  1934. data/tests/aws/requests/emr/helper.rb +172 -0
  1935. data/tests/aws/requests/emr/instance_group_tests.rb +106 -0
  1936. data/tests/aws/requests/emr/job_flow_tests.rb +88 -0
  1937. data/tests/aws/requests/iam/access_key_tests.rb +55 -0
  1938. data/tests/aws/requests/iam/group_policy_tests.rb +42 -0
  1939. data/tests/aws/requests/iam/group_tests.rb +44 -0
  1940. data/tests/aws/requests/iam/helper.rb +104 -0
  1941. data/tests/aws/requests/iam/login_profile_tests.rb +64 -0
  1942. data/tests/aws/requests/iam/server_certificate_tests.rb +95 -0
  1943. data/tests/aws/requests/iam/user_policy_tests.rb +35 -0
  1944. data/tests/aws/requests/iam/user_tests.rb +72 -0
  1945. data/tests/aws/requests/rds/helper.rb +204 -0
  1946. data/tests/aws/requests/rds/instance_tests.rb +127 -0
  1947. data/tests/aws/requests/rds/parameter_group_tests.rb +68 -0
  1948. data/tests/aws/requests/rds/parameter_request_tests.rb +35 -0
  1949. data/tests/aws/requests/rds/security_group_tests.rb +101 -0
  1950. data/tests/aws/requests/ses/helper.rb +15 -0
  1951. data/tests/aws/requests/ses/verified_email_address_tests.rb +27 -0
  1952. data/tests/aws/requests/simpledb/attributes_tests.rb +86 -0
  1953. data/tests/aws/requests/simpledb/domain_tests.rb +51 -0
  1954. data/tests/aws/requests/simpledb/helper.rb +16 -0
  1955. data/tests/aws/requests/sns/helper.rb +9 -0
  1956. data/tests/aws/requests/sns/subscription_tests.rb +86 -0
  1957. data/tests/aws/requests/sns/topic_tests.rb +50 -0
  1958. data/tests/aws/requests/sqs/helper.rb +15 -0
  1959. data/tests/aws/requests/sqs/message_tests.rb +51 -0
  1960. data/tests/aws/requests/sqs/queue_tests.rb +50 -0
  1961. data/tests/aws/requests/storage/acl_utils_tests.rb +209 -0
  1962. data/tests/aws/requests/storage/bucket_tests.rb +294 -0
  1963. data/tests/aws/requests/storage/multipart_upload_tests.rb +132 -0
  1964. data/tests/aws/requests/storage/object_tests.rb +135 -0
  1965. data/tests/aws/requests/storage/versioning_tests.rb +188 -0
  1966. data/tests/aws/requests/sts/get_federation_token_tests.rb +21 -0
  1967. data/tests/aws/requests/sts/session_token_tests.rb +16 -0
  1968. data/tests/aws/signed_params_tests.rb +5 -0
  1969. data/tests/bluebox/requests/compute/block_tests.rb +82 -0
  1970. data/tests/bluebox/requests/compute/helper.rb +22 -0
  1971. data/tests/bluebox/requests/compute/location_tests.rb +32 -0
  1972. data/tests/bluebox/requests/compute/product_tests.rb +34 -0
  1973. data/tests/bluebox/requests/compute/template_tests.rb +37 -0
  1974. data/tests/bluebox/requests/dns/dns_tests.rb +259 -0
  1975. data/tests/brightbox/requests/compute/account_tests.rb +37 -0
  1976. data/tests/brightbox/requests/compute/api_client_tests.rb +64 -0
  1977. data/tests/brightbox/requests/compute/cloud_ip_tests.rb +86 -0
  1978. data/tests/brightbox/requests/compute/helper.rb +597 -0
  1979. data/tests/brightbox/requests/compute/image_tests.rb +60 -0
  1980. data/tests/brightbox/requests/compute/interface_tests.rb +31 -0
  1981. data/tests/brightbox/requests/compute/load_balancer_tests.rb +121 -0
  1982. data/tests/brightbox/requests/compute/server_group_tests.rb +96 -0
  1983. data/tests/brightbox/requests/compute/server_tests.rb +96 -0
  1984. data/tests/brightbox/requests/compute/server_type_tests.rb +34 -0
  1985. data/tests/brightbox/requests/compute/user_tests.rb +36 -0
  1986. data/tests/brightbox/requests/compute/zone_tests.rb +34 -0
  1987. data/tests/clodo/requests/compute/image_tests.rb +36 -0
  1988. data/tests/clodo/requests/compute/server_tests.rb +152 -0
  1989. data/tests/cloudstack/requests/disk_offering_tests.rb +29 -0
  1990. data/tests/cloudstack/requests/os_type_tests.rb +38 -0
  1991. data/tests/cloudstack/requests/security_group_tests.rb +29 -0
  1992. data/tests/cloudstack/requests/service_offering_tests.rb +38 -0
  1993. data/tests/cloudstack/requests/snapshot_tests.rb +32 -0
  1994. data/tests/cloudstack/requests/ssh_key_pair_tests.rb +23 -0
  1995. data/tests/cloudstack/requests/template_tests.rb +53 -0
  1996. data/tests/cloudstack/requests/virtual_machine_tests.rb +71 -0
  1997. data/tests/cloudstack/requests/volume_tests.rb +48 -0
  1998. data/tests/cloudstack/requests/zone_tests.rb +33 -0
  1999. data/tests/cloudstack/signed_params_tests.rb +12 -0
  2000. data/tests/compute/helper.rb +56 -0
  2001. data/tests/compute/models/flavors_tests.rb +11 -0
  2002. data/tests/compute/models/server_tests.rb +20 -0
  2003. data/tests/compute/models/servers_tests.rb +9 -0
  2004. data/tests/core/attribute_tests.rb +83 -0
  2005. data/tests/core/credential_tests.rb +66 -0
  2006. data/tests/core/mocking_tests.rb +60 -0
  2007. data/tests/core/parser_tests.rb +67 -0
  2008. data/tests/core/timeout_tests.rb +10 -0
  2009. data/tests/dns/helper.rb +55 -0
  2010. data/tests/dns/models/record_tests.rb +30 -0
  2011. data/tests/dns/models/records_tests.rb +30 -0
  2012. data/tests/dns/models/zone_tests.rb +18 -0
  2013. data/tests/dns/models/zones_tests.rb +18 -0
  2014. data/tests/dnsimple/requests/dns/dns_tests.rb +118 -0
  2015. data/tests/dnsmadeeasy/requests/dns/dns_tests.rb +138 -0
  2016. data/tests/dynect/requests/dns/dns_tests.rb +193 -0
  2017. data/tests/glesys/requests/compute/helper.rb +261 -0
  2018. data/tests/glesys/requests/compute/ip_tests.rb +67 -0
  2019. data/tests/glesys/requests/compute/server_tests.rb +125 -0
  2020. data/tests/glesys/requests/compute/template_tests.rb +12 -0
  2021. data/tests/go_grid/requests/compute/image_tests.rb +0 -0
  2022. data/tests/google/requests/storage/bucket_tests.rb +78 -0
  2023. data/tests/google/requests/storage/object_tests.rb +81 -0
  2024. data/tests/helper.rb +20 -0
  2025. data/tests/helpers/collection_helper.rb +59 -0
  2026. data/tests/helpers/compute/flavors_helper.rb +34 -0
  2027. data/tests/helpers/compute/server_helper.rb +26 -0
  2028. data/tests/helpers/compute/servers_helper.rb +11 -0
  2029. data/tests/helpers/formats_helper.rb +84 -0
  2030. data/tests/helpers/formats_helper_tests.rb +51 -0
  2031. data/tests/helpers/mock_helper.rb +72 -0
  2032. data/tests/helpers/model_helper.rb +38 -0
  2033. data/tests/helpers/responds_to_helper.rb +13 -0
  2034. data/tests/helpers/succeeds_helper.rb +12 -0
  2035. data/tests/joyent/requests/compute/datasets_tests.rb +49 -0
  2036. data/tests/joyent/requests/compute/keys_tests.rb +47 -0
  2037. data/tests/joyent/requests/compute/machines_tests.rb +67 -0
  2038. data/tests/joyent/requests/compute/packages_tests.rb +68 -0
  2039. data/tests/linode/requests/compute/datacenter_tests.rb +19 -0
  2040. data/tests/linode/requests/compute/distribution_tests.rb +32 -0
  2041. data/tests/linode/requests/compute/helper.rb +16 -0
  2042. data/tests/linode/requests/compute/kernel_tests.rb +27 -0
  2043. data/tests/linode/requests/compute/linode_tests.rb +143 -0
  2044. data/tests/linode/requests/compute/linodeplans_tests.rb +40 -0
  2045. data/tests/linode/requests/compute/stackscripts_tests.rb +36 -0
  2046. data/tests/linode/requests/dns/dns_tests.rb +250 -0
  2047. data/tests/lorem.txt +1 -0
  2048. data/tests/ninefold/models/storage/file_update_tests.rb +19 -0
  2049. data/tests/ninefold/models/storage/nested_directories_tests.rb +23 -0
  2050. data/tests/ninefold/requests/compute/address_tests.rb +42 -0
  2051. data/tests/ninefold/requests/compute/async_job_tests.rb +33 -0
  2052. data/tests/ninefold/requests/compute/helper.rb +317 -0
  2053. data/tests/ninefold/requests/compute/list_tests.rb +56 -0
  2054. data/tests/ninefold/requests/compute/nat_tests.rb +92 -0
  2055. data/tests/ninefold/requests/compute/network_tests.rb +21 -0
  2056. data/tests/ninefold/requests/compute/template_tests.rb +21 -0
  2057. data/tests/ninefold/requests/compute/virtual_machine_tests.rb +69 -0
  2058. data/tests/openstack/requests/compute/flavor_tests.rb +35 -0
  2059. data/tests/openstack/requests/compute/helper.rb +17 -0
  2060. data/tests/openstack/requests/compute/image_tests.rb +59 -0
  2061. data/tests/openstack/requests/compute/server_tests.rb +142 -0
  2062. data/tests/ovirt/compute_tests.rb +22 -0
  2063. data/tests/ovirt/models/compute/cluster_tests.rb +31 -0
  2064. data/tests/ovirt/models/compute/clusters_tests.rb +9 -0
  2065. data/tests/ovirt/models/compute/server_tests.rb +51 -0
  2066. data/tests/ovirt/models/compute/servers_tests.rb +14 -0
  2067. data/tests/ovirt/models/compute/template_tests.rb +28 -0
  2068. data/tests/ovirt/models/compute/templates_tests.rb +9 -0
  2069. data/tests/ovirt/requests/compute/create_vm_tests.rb +26 -0
  2070. data/tests/ovirt/requests/compute/destroy_vm_tests.rb +18 -0
  2071. data/tests/ovirt/requests/compute/list_datacenters_tests.rb +13 -0
  2072. data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +13 -0
  2073. data/tests/ovirt/requests/compute/update_vm_tests.rb +18 -0
  2074. data/tests/rackspace/helper.rb +24 -0
  2075. data/tests/rackspace/load_balancer_tests.rb +21 -0
  2076. data/tests/rackspace/models/dns/zone_tests.rb +14 -0
  2077. data/tests/rackspace/models/load_balancers/access_list_tests.rb +12 -0
  2078. data/tests/rackspace/models/load_balancers/access_lists_tests.rb +12 -0
  2079. data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +141 -0
  2080. data/tests/rackspace/models/load_balancers/load_balancers_tests.rb +19 -0
  2081. data/tests/rackspace/models/load_balancers/node_tests.rb +19 -0
  2082. data/tests/rackspace/models/load_balancers/nodes_tests.rb +12 -0
  2083. data/tests/rackspace/models/load_balancers/virtual_ip_tests.rb +16 -0
  2084. data/tests/rackspace/models/load_balancers/virtual_ips_tests.rb +12 -0
  2085. data/tests/rackspace/requests/compute/address_tests.rb +40 -0
  2086. data/tests/rackspace/requests/compute/flavor_tests.rb +38 -0
  2087. data/tests/rackspace/requests/compute/helper.rb +16 -0
  2088. data/tests/rackspace/requests/compute/image_tests.rb +68 -0
  2089. data/tests/rackspace/requests/compute/resize_tests.rb +33 -0
  2090. data/tests/rackspace/requests/compute/server_tests.rb +92 -0
  2091. data/tests/rackspace/requests/dns/dns_tests.rb +125 -0
  2092. data/tests/rackspace/requests/dns/helper.rb +140 -0
  2093. data/tests/rackspace/requests/dns/records_tests.rb +83 -0
  2094. data/tests/rackspace/requests/load_balancers/access_list_tests.rb +56 -0
  2095. data/tests/rackspace/requests/load_balancers/algorithm_tests.rb +19 -0
  2096. data/tests/rackspace/requests/load_balancers/connection_logging_tests.rb +25 -0
  2097. data/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb +37 -0
  2098. data/tests/rackspace/requests/load_balancers/error_page_tests.rb +31 -0
  2099. data/tests/rackspace/requests/load_balancers/helper.rb +139 -0
  2100. data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +66 -0
  2101. data/tests/rackspace/requests/load_balancers/load_balancer_usage_tests.rb +19 -0
  2102. data/tests/rackspace/requests/load_balancers/monitor_tests.rb +46 -0
  2103. data/tests/rackspace/requests/load_balancers/node_tests.rb +86 -0
  2104. data/tests/rackspace/requests/load_balancers/protocol_tests.rb +21 -0
  2105. data/tests/rackspace/requests/load_balancers/session_persistence_tests.rb +33 -0
  2106. data/tests/rackspace/requests/load_balancers/usage_tests.rb +17 -0
  2107. data/tests/rackspace/requests/load_balancers/virtual_ip_tests.rb +40 -0
  2108. data/tests/rackspace/requests/storage/container_tests.rb +64 -0
  2109. data/tests/rackspace/requests/storage/large_object_tests.rb +47 -0
  2110. data/tests/rackspace/requests/storage/object_tests.rb +78 -0
  2111. data/tests/rackspace/url_encoding_tests.rb +3 -0
  2112. data/tests/slicehost/requests/compute/backup_tests.rb +18 -0
  2113. data/tests/slicehost/requests/compute/flavor_tests.rb +33 -0
  2114. data/tests/slicehost/requests/compute/image_tests.rb +31 -0
  2115. data/tests/slicehost/requests/compute/slice_tests.rb +75 -0
  2116. data/tests/slicehost/requests/dns/dns_tests.rb +314 -0
  2117. data/tests/storage/helper.rb +19 -0
  2118. data/tests/storage/models/directories_tests.rb +17 -0
  2119. data/tests/storage/models/directory_test.rb +29 -0
  2120. data/tests/storage/models/file_tests.rb +41 -0
  2121. data/tests/storage/models/files_tests.rb +26 -0
  2122. data/tests/storm_on_demand/requests/compute/server_tests.rb +64 -0
  2123. data/tests/vcloud/data/api_+_admin_+_network_+_2 +110 -0
  2124. data/tests/vcloud/data/api_+_network_+_1 +44 -0
  2125. data/tests/vcloud/data/api_+_org_+_ +5 -0
  2126. data/tests/vcloud/data/api_+_org_+_1 +17 -0
  2127. data/tests/vcloud/data/api_+_sessions +8 -0
  2128. data/tests/vcloud/data/api_+_v1.0_+_admin_+_network_+_2 +110 -0
  2129. data/tests/vcloud/data/api_+_v1.0_+_login +5 -0
  2130. data/tests/vcloud/data/api_+_v1.0_+_network_+_1 +44 -0
  2131. data/tests/vcloud/data/api_+_v1.0_+_network_+_2 +31 -0
  2132. data/tests/vcloud/data/api_+_v1.0_+_org_+_1 +17 -0
  2133. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vapp-1 +369 -0
  2134. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1 +139 -0
  2135. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2 +155 -0
  2136. data/tests/vcloud/data/api_+_v1.0_+_vdc_+_1 +61 -0
  2137. data/tests/vcloud/data/api_+_vApp_+_vapp-1 +369 -0
  2138. data/tests/vcloud/data/api_+_vApp_+_vm-2 +155 -0
  2139. data/tests/vcloud/data/api_+_vdc_+_1 +61 -0
  2140. data/tests/vcloud/models/compute/conn_helper.rb +20 -0
  2141. data/tests/vcloud/models/compute/helper.rb +25 -0
  2142. data/tests/vcloud/models/compute/network_tests.rb +67 -0
  2143. data/tests/vcloud/models/compute/networks_tests.rb +61 -0
  2144. data/tests/vcloud/models/compute/organization_tests.rb +20 -0
  2145. data/tests/vcloud/models/compute/organizations_tests.rb +16 -0
  2146. data/tests/vcloud/models/compute/server_tests.rb +142 -0
  2147. data/tests/vcloud/models/compute/servers_tests.rb +23 -0
  2148. data/tests/vcloud/models/compute/vapp_tests.rb +32 -0
  2149. data/tests/vcloud/models/compute/vapps_tests.rb +19 -0
  2150. data/tests/vcloud/models/compute/vdc_tests.rb +48 -0
  2151. data/tests/vcloud/models/compute/vdcs_tests.rb +24 -0
  2152. data/tests/vcloud/requests/compute/disk_configure_tests.rb +114 -0
  2153. data/tests/voxel/requests/compute/image_tests.rb +52 -0
  2154. data/tests/voxel/requests/compute/server_tests.rb +123 -0
  2155. data/tests/vsphere/compute_tests.rb +55 -0
  2156. data/tests/vsphere/models/compute/server_tests.rb +45 -0
  2157. data/tests/vsphere/models/compute/servers_tests.rb +15 -0
  2158. data/tests/vsphere/requests/compute/current_time_tests.rb +12 -0
  2159. data/tests/vsphere/requests/compute/find_vm_by_ref_tests.rb +26 -0
  2160. data/tests/vsphere/requests/compute/list_virtual_machines_tests.rb +46 -0
  2161. data/tests/vsphere/requests/compute/vm_clone_tests.rb +32 -0
  2162. data/tests/vsphere/requests/compute/vm_create_tests.rb +20 -0
  2163. data/tests/vsphere/requests/compute/vm_destroy_tests.rb +17 -0
  2164. data/tests/vsphere/requests/compute/vm_power_off_tests.rb +26 -0
  2165. data/tests/vsphere/requests/compute/vm_power_on_tests.rb +17 -0
  2166. data/tests/vsphere/requests/compute/vm_reboot_tests.rb +26 -0
  2167. data/tests/vsphere/requests/compute/vm_reconfig_cpus_tests.rb +19 -0
  2168. data/tests/vsphere/requests/compute/vm_reconfig_hardware_tests.rb +19 -0
  2169. data/tests/vsphere/requests/compute/vm_reconfig_memory_tests.rb +19 -0
  2170. data/tests/watchr.rb +22 -0
  2171. data/tests/zerigo/requests/dns/dns_tests.rb +373 -0
  2172. metadata +2795 -0
@@ -0,0 +1,43 @@
1
+ module Fog
2
+ module DNS
3
+ class Dynect
4
+ class Real
5
+
6
+ def post_session
7
+ request(
8
+ :expects => 200,
9
+ :method => :post,
10
+ :path => "Session",
11
+ :body => MultiJson.encode({
12
+ :customer_name => @dynect_customer,
13
+ :user_name => @dynect_username,
14
+ :password => @dynect_password
15
+ })
16
+ )
17
+ end
18
+ end
19
+
20
+ class Mock
21
+ def post_session
22
+ response = Excon::Response.new
23
+ response.status = 200
24
+ response.body = {
25
+ "status" => "success",
26
+ "data" => {
27
+ "token" => auth_token,
28
+ "version" => Fog::Dynect::Mock.version
29
+ },
30
+ "job_id" => Fog::Dynect::Mock.job_id,
31
+ "msgs"=>[{
32
+ "INFO"=>"login: Login successful",
33
+ "SOURCE"=>"BLL",
34
+ "ERR_CD"=>nil,
35
+ "LVL"=>"INFO"
36
+ }]
37
+ }
38
+ response
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,71 @@
1
+ module Fog
2
+ module DNS
3
+ class Dynect
4
+ class Real
5
+
6
+ # Create a zone
7
+ #
8
+ # ==== Parameters
9
+ # * rname<~String> - administrative contact
10
+ # * ttl<~Integer> - time to live (in seconds) for records in this zone
11
+ # * zone<~String> - name of zone to host
12
+ # * options<~Hash>:
13
+ # * serial_style<~String> - style of serial number, in ['day', 'epoch', 'increment', 'minute']. Defaults to increment
14
+
15
+ def post_zone(rname, ttl, zone, options = {})
16
+ body = MultiJson.encode({
17
+ :rname => rname,
18
+ :token => auth_token,
19
+ :ttl => ttl
20
+ }.merge!(options))
21
+
22
+ request(
23
+ :body => body,
24
+ :expects => 200,
25
+ :method => :post,
26
+ :path => 'Zone/' << zone
27
+ )
28
+ end
29
+ end
30
+
31
+ class Mock
32
+ def post_zone(rname, ttl, zone, options = {})
33
+ new_zone = self.data[:zones][zone] = {
34
+ :next_record_id => 0,
35
+ :records => Hash.new do |records_hash, type|
36
+ records_hash[type] = []
37
+ end,
38
+ :records_to_delete => [],
39
+ :rname => rname,
40
+ :serial_style => options[:serial_style] || "increment",
41
+ :serial => 0,
42
+ :ttl => ttl,
43
+ :zone => zone,
44
+ :zone_type => "Primary"
45
+ }
46
+
47
+ response = Excon::Response.new
48
+ response.status = 200
49
+ response.body = {
50
+ "status" => "success",
51
+ "data" => {
52
+ "zone_type" => new_zone[:zone_type],
53
+ "serial_style" => new_zone[:serial_style],
54
+ "serial" => new_zone[:serial],
55
+ "zone" => zone
56
+ },
57
+ "job_id" => Fog::Dynect::Mock.job_id,
58
+ "msgs" => [{
59
+ "INFO" => "create: New zone #{zone} created. Publish it to put it on our server.",
60
+ "SOURCE" => "BLL",
61
+ "ERR_CD" => nil,
62
+ "LVL" => "INFO"
63
+ }]
64
+ }
65
+
66
+ response
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,76 @@
1
+ module Fog
2
+ module DNS
3
+ class Dynect
4
+ class Real
5
+
6
+ # Update a zone
7
+ #
8
+ # ==== Parameters
9
+ # * zone<~String> - name or id of zone
10
+ # * options<~Hash>:
11
+ # * freeze<~Boolean> - causes zone to become frozen
12
+ # * publish<~Boolean> - causes all pending changes to be pushed to nameservers
13
+ # * thaw<~Boolean> - causes zone to cease being frozen
14
+
15
+ def put_zone(zone, options = {})
16
+ request(
17
+ :body => MultiJson.encode(options),
18
+ :expects => 200,
19
+ :method => :put,
20
+ :path => 'Zone/' << zone
21
+ )
22
+ end
23
+ end
24
+
25
+ class Mock
26
+ def put_zone(zone, options = {})
27
+ raise Fog::DNS::Dynect::NotFound unless zone = self.data[:zones][zone]
28
+
29
+ raise ArgumentError unless options.size == 1
30
+
31
+ response = Excon::Response.new
32
+ response.status = 200
33
+
34
+ data = {}
35
+
36
+ if options['freeze']
37
+ zone['frozen'] = true
38
+ info = "freeze: Your zone is now frozen"
39
+ elsif options['publish']
40
+ zone[:changes] = {}
41
+ zone[:records_to_delete].each do |record|
42
+ zone[:records][record[:type]].delete_if { |r| r[:fqdn] == record[:fqdn] && r[:record_id] == record[:record_id] }
43
+ end
44
+ zone[:records_to_delete] = []
45
+ data = {
46
+ "zone_type" => zone[:zone_type],
47
+ "serial_style" => zone[:serial_style],
48
+ "serial" => zone[:serial] += 1,
49
+ "zone" => zone[:zone]
50
+ }
51
+ info = "publish: #{zone[:zone]} published"
52
+ elsif options['thaw']
53
+ zone[:frozen] = false
54
+ info = "thaw: Your zone is now thawed, you may edit normally"
55
+ else
56
+ raise ArgumentError
57
+ end
58
+
59
+ response.body = {
60
+ "status" => "success",
61
+ "data" => data,
62
+ "job_id" => Fog::Dynect::Mock.job_id,
63
+ "msgs" => [{
64
+ "INFO" => info,
65
+ "SOURCE"=>"BLL",
66
+ "ERR_CD"=>nil,
67
+ "LVL"=>"INFO"
68
+ }]
69
+ }
70
+
71
+ response
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end
@@ -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,1307 @@
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
+ opts = { :parent => opts } if opts.is_a?(String)
22
+ msg = ":href missing, call with a :href pointing to #{if opts[:message]
23
+ opts[:message]
24
+ elsif opts[:parent]
25
+ "the #{opts[:parent]} whos #{self.class.to_s.split('::').last.downcase} you want to enumerate"
26
+ else
27
+ "the resource"
28
+ end}"
29
+ raise Fog::Errors::Error.new(msg)
30
+ end
31
+ end
32
+
33
+ end
34
+ end
35
+ end
36
+
37
+ module Fog
38
+ module Ecloud
39
+ module MockDataClasses
40
+ class Base < Hash
41
+ def self.base_url=(url)
42
+ @base_url = url
43
+ end
44
+
45
+ self.base_url = "http://vcloud.example.com"
46
+
47
+ def self.base_url
48
+ @base_url
49
+ end
50
+
51
+ def first
52
+ raise "Don't do this"
53
+ end
54
+
55
+ def last
56
+ raise "Don't do this"
57
+ end
58
+
59
+ def initialize(data = {}, parent = nil)
60
+ @parent = parent
61
+
62
+ replace(data)
63
+ end
64
+
65
+ def _parent
66
+ @parent
67
+ end
68
+
69
+ def base_url
70
+ Base.base_url
71
+ end
72
+
73
+ def href
74
+ [base_url, self.class.name.split("::").last, object_id].join("/")
75
+ end
76
+
77
+ def inspect
78
+ "<#{self.class.name} #{object_id} data=#{super}>"
79
+ end
80
+ end
81
+
82
+ class MockData < Base
83
+ def versions
84
+ @versions ||= []
85
+ end
86
+
87
+ def organizations
88
+ @organizations ||= []
89
+ end
90
+
91
+ def organization_from_href(href)
92
+ find_href_in(href, organizations)
93
+ end
94
+
95
+ def all_vdcs
96
+ organizations.map(&:vdcs).flatten
97
+ end
98
+
99
+ def vdc_from_href(href)
100
+ find_href_in(href, all_vdcs)
101
+ end
102
+
103
+ def all_catalogs
104
+ all_vdcs.map(&:catalog).flatten
105
+ end
106
+
107
+ def catalog_from_href(href)
108
+ find_href_in(href, all_catalogs)
109
+ end
110
+
111
+ def all_catalog_items
112
+ all_catalogs.map(&:items).flatten
113
+ end
114
+
115
+ def catalog_item_from_href(href)
116
+ find_href_in(href, all_catalog_items)
117
+ end
118
+
119
+ def all_virtual_machines
120
+ all_vdcs.map(&:virtual_machines).flatten
121
+ end
122
+
123
+ def virtual_machine_from_href(href)
124
+ find_href_prefixed_in(href, all_virtual_machines)
125
+ end
126
+
127
+
128
+ def all_networks
129
+ all_vdcs.map(&:networks).flatten
130
+ end
131
+
132
+ def network_from_href(href)
133
+ find_href_in(href, all_networks)
134
+ end
135
+
136
+ def all_network_extensions
137
+ all_networks.map(&:extensions).flatten
138
+ end
139
+
140
+ def network_extension_from_href(href)
141
+ find_href_in(href, all_network_extensions)
142
+ end
143
+
144
+ def all_vdc_internet_service_collections
145
+ all_vdcs.map(&:internet_service_collection).flatten
146
+ end
147
+
148
+ def vdc_internet_service_collection_from_href(href)
149
+ find_href_in(href, all_vdc_internet_service_collections)
150
+ end
151
+
152
+ def all_backup_internet_services
153
+ all_vdc_internet_service_collections.map(&:backup_internet_services).flatten
154
+ end
155
+
156
+ def backup_internet_service_from_href(href)
157
+ find_href_in(href, all_backup_internet_services)
158
+ end
159
+
160
+ def all_public_ip_collections
161
+ all_vdcs.map {|v| v.public_ip_collection }.flatten
162
+ end
163
+
164
+ def public_ip_collection_from_href(href)
165
+ find_href_in(href, all_public_ip_collections)
166
+ end
167
+
168
+ def all_public_ips
169
+ all_public_ip_collections.map(&:items).flatten
170
+ end
171
+
172
+ def public_ip_from_href(href)
173
+ find_href_in(href, all_public_ips)
174
+ end
175
+
176
+ def all_public_ip_internet_service_collections
177
+ all_public_ips.map(&:internet_service_collection).flatten
178
+ end
179
+
180
+ def public_ip_internet_service_collection_from_href(href)
181
+ find_href_in(href, all_public_ip_internet_service_collections)
182
+ end
183
+
184
+ def all_public_ip_internet_services
185
+ all_public_ip_internet_service_collections.map(&:items).flatten
186
+ end
187
+
188
+ def public_ip_internet_service_from_href(href)
189
+ find_href_in(href, all_public_ip_internet_services)
190
+ end
191
+
192
+ def all_public_ip_internet_service_node_collections
193
+ all_public_ip_internet_services.map(&:node_collection).flatten
194
+ end
195
+
196
+ def public_ip_internet_service_node_collection_from_href(href)
197
+ find_href_in(href, all_public_ip_internet_service_node_collections)
198
+ end
199
+
200
+ def all_public_ip_internet_service_nodes
201
+ all_public_ip_internet_service_node_collections.map(&:items).flatten
202
+ end
203
+
204
+ def public_ip_internet_service_node_from_href(href)
205
+ find_href_in(href, all_public_ip_internet_service_nodes)
206
+ end
207
+
208
+ def all_network_ip_collections
209
+ all_networks.map(&:ip_collection)
210
+ end
211
+
212
+ def network_ip_collection_from_href(href)
213
+ find_href_in(href, all_network_ip_collections)
214
+ end
215
+
216
+ def all_network_ips
217
+ all_network_ip_collections.map {|c| c.items.values }.flatten
218
+ end
219
+
220
+ def network_ip_from_href(href)
221
+ find_href_in(href, all_network_ips)
222
+ end
223
+
224
+ private
225
+
226
+ def find_href_in(href, objects)
227
+ objects.detect {|o| o.href == href }
228
+ end
229
+
230
+ def find_href_prefixed_in(href, objects)
231
+ objects.detect {|o| href =~ %r{^#{o.href}($|/)} }
232
+ end
233
+ end
234
+
235
+ class MockVersion < Base
236
+ def version
237
+ self[:version]
238
+ end
239
+
240
+ def supported
241
+ !!self[:supported]
242
+ end
243
+
244
+ def login_url
245
+ href
246
+ end
247
+ end
248
+
249
+ class MockOrganization < Base
250
+ def name
251
+ self[:name]
252
+ end
253
+
254
+ def vdcs
255
+ @vdcs ||= []
256
+ end
257
+ end
258
+
259
+ class MockVdc < Base
260
+ def name
261
+ self[:name]
262
+ end
263
+
264
+ def storage_allocated
265
+ self[:storage_allocated] || 200
266
+ end
267
+
268
+ def storage_used
269
+ self[:storage_used] || 105
270
+ end
271
+
272
+ def cpu_allocated
273
+ self[:cpu_allocated] || 10000
274
+ end
275
+
276
+ def memory_allocated
277
+ self[:memory_allocated] || 20480
278
+ end
279
+
280
+ def catalog
281
+ @catalog ||= MockCatalog.new({}, self)
282
+ end
283
+
284
+ def networks
285
+ @networks ||= []
286
+ end
287
+
288
+ def virtual_machines
289
+ @virtual_machines ||= []
290
+ end
291
+
292
+ def task_list
293
+ @task_list ||= MockTaskList.new({}, self)
294
+ end
295
+
296
+ # for TM eCloud, should probably be subclassed
297
+ def public_ip_collection
298
+ @public_ip_collection ||= MockPublicIps.new({}, self)
299
+ end
300
+
301
+ def internet_service_collection
302
+ @internet_service_collection ||= MockVdcInternetServices.new({}, self)
303
+ end
304
+
305
+ def firewall_acls
306
+ @firewall_acls ||= MockFirewallAcls.new({}, self)
307
+ end
308
+ end
309
+
310
+ class MockTaskList < Base
311
+ def name
312
+ self[:name] || "Tasks List"
313
+ end
314
+ end
315
+
316
+ class MockCatalog < Base
317
+ def name
318
+ self[:name] || "Catalog"
319
+ end
320
+
321
+ def items
322
+ @items ||= []
323
+ end
324
+ end
325
+
326
+ class MockCatalogItem < Base
327
+ def name
328
+ self[:name]
329
+ end
330
+
331
+ def disks
332
+ @disks ||= MockVirtualMachineDisks.new(self)
333
+ end
334
+
335
+ def customization
336
+ @customization ||= MockCatalogItemCustomization.new({}, self)
337
+ end
338
+
339
+ def vapp_template
340
+ @vapp_template ||= MockCatalogItemVappTemplate.new({ :name => name }, self)
341
+ end
342
+ end
343
+
344
+ class MockCatalogItemCustomization < Base
345
+ def name
346
+ self[:name] || "Customization Options"
347
+ end
348
+ end
349
+
350
+ class MockCatalogItemVappTemplate < Base
351
+ def name
352
+ self[:name]
353
+ end
354
+ end
355
+
356
+ class MockNetwork < Base
357
+ def name
358
+ self[:name] || subnet
359
+ end
360
+
361
+ def subnet
362
+ self[:subnet]
363
+ end
364
+
365
+ def gateway
366
+ self[:gateway] || subnet_ips[1]
367
+ end
368
+
369
+ def netmask
370
+ self[:netmask] || subnet_ipaddr.mask
371
+ end
372
+
373
+ def dns
374
+ "8.8.8.8"
375
+ end
376
+
377
+ def features
378
+ [
379
+ { :type => :FenceMode, :value => "isolated" }
380
+ ]
381
+ end
382
+
383
+ def ip_collection
384
+ @ip_collection ||= MockNetworkIps.new({}, self)
385
+ end
386
+
387
+ def extensions
388
+ @extensions ||= MockNetworkExtensions.new({}, self)
389
+ end
390
+
391
+ def random_ip
392
+ usable_subnet_ips[rand(usable_subnet_ips.length)]
393
+ end
394
+
395
+ # for TM eCloud. should probably be a subclass
396
+ def rnat
397
+ self[:rnat]
398
+ end
399
+
400
+ def usable_subnet_ips
401
+ subnet_ips[3..-2]
402
+ end
403
+
404
+ def address
405
+ subnet_ips.first
406
+ end
407
+
408
+ def broadcast
409
+ subnet_ips.last
410
+ end
411
+
412
+ private
413
+
414
+ def subnet_ipaddr
415
+ @ipaddr ||= IPAddr.new(subnet)
416
+ end
417
+
418
+ def subnet_ips
419
+ subnet_ipaddr.to_range.to_a.map(&:to_s)
420
+ end
421
+ end
422
+
423
+ class MockNetworkIps < Base
424
+ def items
425
+ @items ||= _parent.usable_subnet_ips.inject({}) do |out, subnet_ip|
426
+ out.update(subnet_ip => MockNetworkIp.new({ :ip => subnet_ip }, self))
427
+ end
428
+ end
429
+
430
+ def ordered_ips
431
+ items.values.sort_by {|i| i.ip.split(".").map(&:to_i) }
432
+ end
433
+
434
+ def name
435
+ "IP Addresses"
436
+ end
437
+ end
438
+
439
+ class MockNetworkIp < Base
440
+ def name
441
+ self[:name] || ip
442
+ end
443
+
444
+ def ip
445
+ self[:ip]
446
+ end
447
+
448
+ def used_by
449
+ self[:used_by] || _parent._parent._parent.virtual_machines.detect {|v| v.ip == ip }
450
+ end
451
+
452
+ def status
453
+ if used_by
454
+ "Assigned"
455
+ else
456
+ "Available"
457
+ end
458
+ end
459
+
460
+ def rnat
461
+ self[:rnat] || _parent._parent.rnat
462
+ end
463
+
464
+ def rnat_set?
465
+ !!self[:rnat]
466
+ end
467
+ end
468
+
469
+ class MockNetworkExtensions < Base
470
+ def name
471
+ _parent.name
472
+ end
473
+
474
+ def gateway
475
+ _parent.gateway
476
+ end
477
+
478
+ def broadcast
479
+ _parent.broadcast
480
+ end
481
+
482
+ def address
483
+ _parent.address
484
+ end
485
+
486
+ def rnat
487
+ _parent.rnat
488
+ end
489
+
490
+ def type
491
+ self[:type] || "DMZ"
492
+ end
493
+
494
+ def vlan
495
+ object_id.to_s
496
+ end
497
+
498
+ def friendly_name
499
+ "#{name} (#{type}_#{object_id})"
500
+ end
501
+ end
502
+
503
+ class MockVirtualMachine < Base
504
+ def name
505
+ self[:name]
506
+ end
507
+
508
+ def ip
509
+ self[:ip]
510
+ end
511
+
512
+ def cpus
513
+ self[:cpus] || 1
514
+ end
515
+
516
+ def memory
517
+ self[:memory] || 1024
518
+ end
519
+
520
+ def disks
521
+ @disks ||= MockVirtualMachineDisks.new(self)
522
+ end
523
+
524
+ def status
525
+ self[:status] || 2
526
+ end
527
+
528
+ def power_off!
529
+ self[:status] = 2
530
+ end
531
+
532
+ def power_on!
533
+ self[:status] = 4
534
+ end
535
+
536
+ def size
537
+ disks.inject(0) {|s, d| s + d.vcloud_size }
538
+ end
539
+
540
+ def network_ip
541
+ if network = _parent.networks.detect {|n| n.ip_collection.items[ip] }
542
+ network.ip_collection.items[ip]
543
+ end
544
+ end
545
+
546
+ # from fog ecloud server's _compose_vapp_data
547
+ def to_configure_vapp_hash
548
+ {
549
+ :name => name,
550
+ :cpus => cpus,
551
+ :memory => memory,
552
+ :disks => disks.map {|d| { :number => d.address.to_s, :size => d.vcloud_size, :resource => d.vcloud_size.to_s } }
553
+ }
554
+ end
555
+
556
+ def href(purpose = :base)
557
+ case purpose
558
+ when :base
559
+ super()
560
+ when :power_on
561
+ super() + "/power/action/powerOn"
562
+ when :power_off
563
+ super() + "/power/action/powerOff"
564
+ end
565
+ end
566
+ end
567
+
568
+ class MockVirtualMachineDisks < Array
569
+ def initialize(parent = nil)
570
+ @parent = parent
571
+ end
572
+
573
+ def _parent
574
+ @parent
575
+ end
576
+
577
+ def <<(disk)
578
+ next_address = 0
579
+ disk_with_max_address = max {|a, b| a[:address] <=> b[:address] }
580
+ disk_with_max_address && next_address = disk_with_max_address.address + 1
581
+ disk[:address] ||= next_address
582
+
583
+ super(disk)
584
+
585
+ if (addresses = map {|d| d.address }).uniq.size != size
586
+ raise "Duplicate disk address in: #{addresses.inspect} (#{size})"
587
+ end
588
+
589
+ sort! {|a, b| a.address <=> b.address }
590
+ self
591
+ end
592
+
593
+ def at_address(address)
594
+ detect {|d| d.address == address }
595
+ end
596
+ end
597
+
598
+ class MockVirtualMachineDisk < Base
599
+ def size
600
+ self[:size].to_i
601
+ end
602
+
603
+ def vcloud_size
604
+ # kilobytes
605
+ size * 1024
606
+ end
607
+
608
+ def address
609
+ self[:address].to_i
610
+ end
611
+ end
612
+
613
+ # for Terremark eCloud
614
+
615
+ class MockVdcInternetServices < Base
616
+ def href
617
+ _parent.href + "/internetServices"
618
+ end
619
+
620
+ def name
621
+ "Internet Services"
622
+ end
623
+
624
+ def items
625
+ public_ip_internet_services + backup_internet_services
626
+ end
627
+
628
+ def public_ip_internet_services
629
+ _parent.public_ip_collection.items.inject([]) do |services, public_ip|
630
+ services + public_ip.internet_service_collection.items
631
+ end
632
+ end
633
+
634
+ def backup_internet_services
635
+ @backup_internet_services ||= []
636
+ end
637
+ end
638
+
639
+ class MockBackupInternetService < Base
640
+ def name
641
+ self[:name] || "Backup Internet Service #{object_id}"
642
+ end
643
+
644
+ def protocol
645
+ self[:protocol]
646
+ end
647
+
648
+ def port
649
+ 0
650
+ end
651
+
652
+ def enabled
653
+ self[:enabled].to_s.downcase != "false"
654
+ end
655
+
656
+ def timeout
657
+ self[:timeout] || 2
658
+ end
659
+
660
+ def description
661
+ self[:description] || "Description for Backup Service #{name}"
662
+ end
663
+
664
+ def redirect_url
665
+ nil
666
+ end
667
+
668
+ def node_collection
669
+ @node_collection ||= MockPublicIpInternetServiceNodes.new({}, self)
670
+ end
671
+ end
672
+
673
+ class MockFirewallAcls < Base
674
+ def name
675
+ "Firewall Access List"
676
+ end
677
+ end
678
+
679
+ class MockPublicIps < Base
680
+ def name
681
+ self[:name] || "Public IPs"
682
+ end
683
+
684
+ def items
685
+ @items ||= []
686
+ end
687
+ end
688
+
689
+ class MockPublicIp < Base
690
+ def name
691
+ self[:name]
692
+ end
693
+
694
+ def internet_service_collection
695
+ @internet_service_collection ||= MockPublicIpInternetServices.new({}, self)
696
+ end
697
+ end
698
+
699
+ class MockPublicIpInternetServices < Base
700
+ def href
701
+ _parent.href + "/internetServices"
702
+ end
703
+
704
+ def items
705
+ @items ||= []
706
+ end
707
+ end
708
+
709
+ class MockPublicIpInternetService < Base
710
+ def name
711
+ self[:name] || "Public IP Service #{object_id}"
712
+ end
713
+
714
+ def description
715
+ self[:description] || "Description for Public IP Service #{name}"
716
+ end
717
+
718
+ def protocol
719
+ self[:protocol]
720
+ end
721
+
722
+ def port
723
+ self[:port]
724
+ end
725
+
726
+ def enabled
727
+ !!self[:enabled]
728
+ end
729
+
730
+ def redirect_url
731
+ self[:redirect_url]
732
+ end
733
+
734
+ def timeout
735
+ self[:timeout] || 2
736
+ end
737
+
738
+ def node_collection
739
+ @node_collection ||= MockPublicIpInternetServiceNodes.new({}, self)
740
+ end
741
+
742
+ def monitor
743
+ nil
744
+ end
745
+
746
+ def backup_service
747
+ self[:backup_service]
748
+ end
749
+ end
750
+
751
+ class MockPublicIpInternetServiceNodes < Base
752
+ def href
753
+ _parent.href + "/nodeServices"
754
+ end
755
+
756
+ def items
757
+ @items ||= [].tap do |node_array|
758
+ node_array.instance_variable_set("@default_port", _parent.port)
759
+
760
+ def node_array.<<(node)
761
+ node[:port] ||= @default_port
762
+ super
763
+ end
764
+ end
765
+ end
766
+ end
767
+
768
+ class MockPublicIpInternetServiceNode < Base
769
+ def ip_address
770
+ self[:ip_address]
771
+ end
772
+
773
+ def name
774
+ self[:name] || "Public IP Service Node #{object_id}"
775
+ end
776
+
777
+ def description
778
+ self[:description] || "Description for Public IP Service Node #{name}"
779
+ end
780
+
781
+ def port
782
+ self[:port]
783
+ end
784
+
785
+ def enabled
786
+ self[:enabled].to_s.downcase != "false"
787
+ end
788
+
789
+ def enabled=(new_value)
790
+ self[:enabled] = new_value
791
+ end
792
+ end
793
+ end
794
+ end
795
+ end
796
+
797
+
798
+ module Fog
799
+ module Ecloud
800
+ class Model < Fog::Model
801
+
802
+ attr_accessor :loaded
803
+ alias_method :loaded?, :loaded
804
+
805
+ def reload
806
+ instance = super
807
+ @loaded = true
808
+ instance
809
+ end
810
+
811
+ def load_unless_loaded!
812
+ unless @loaded
813
+ reload
814
+ end
815
+ end
816
+
817
+ end
818
+ end
819
+ end
820
+
821
+ module Fog
822
+ module Compute
823
+ class Ecloud < Fog::Service
824
+
825
+ class UnsupportedVersion < Exception ; end
826
+
827
+ requires :ecloud_username, :ecloud_password, :ecloud_versions_uri
828
+ recognizes :ecloud_version
829
+
830
+ model_path 'fog/ecloud/models/compute'
831
+ model :catalog_item
832
+ model :catalog
833
+ model :firewall_acl
834
+ collection :firewall_acls
835
+ model :internet_service
836
+ collection :internet_services
837
+ model :backup_internet_service
838
+ collection :backup_internet_services
839
+ model :ip
840
+ collection :ips
841
+ model :network
842
+ collection :networks
843
+ model :node
844
+ collection :nodes
845
+ model :public_ip
846
+ collection :public_ips
847
+ model :server
848
+ collection :servers
849
+ model :task
850
+ collection :tasks
851
+ model :vdc
852
+ collection :vdcs
853
+
854
+ request_path 'fog/ecloud/requests/compute'
855
+ request :add_internet_service
856
+ request :add_backup_internet_service
857
+ request :add_node
858
+ request :clone_vapp
859
+ request :configure_internet_service
860
+ request :configure_network
861
+ request :configure_network_ip
862
+ request :configure_node
863
+ request :configure_vapp
864
+ request :delete_internet_service
865
+ request :delete_node
866
+ request :delete_vapp
867
+ request :get_catalog
868
+ request :get_catalog_item
869
+ request :get_customization_options
870
+ request :get_firewall_acls
871
+ request :get_firewall_acl
872
+ request :get_internet_services
873
+ request :get_network
874
+ request :get_network_ip
875
+ request :get_network_ips
876
+ request :get_network_extensions
877
+ request :get_organization
878
+ request :get_node
879
+ request :get_nodes
880
+ request :get_public_ip
881
+ request :get_public_ips
882
+ request :get_task
883
+ request :get_task_list
884
+ request :get_vapp
885
+ request :get_vapp_template
886
+ request :get_vdc
887
+ request :get_versions
888
+ request :instantiate_vapp_template
889
+ request :login
890
+ request :power_off
891
+ request :power_on
892
+ request :power_reset
893
+ request :power_shutdown
894
+
895
+ module Shared
896
+
897
+ attr_reader :versions_uri
898
+
899
+ def default_organization_uri
900
+ @default_organization_uri ||= begin
901
+ unless @login_results
902
+ do_login
903
+ end
904
+ case @login_results.body[:Org]
905
+ when Array
906
+ @login_results.body[:Org].first[:href]
907
+ when Hash
908
+ @login_results.body[:Org][:href]
909
+ else
910
+ nil
911
+ end
912
+ end
913
+ end
914
+
915
+ # login handles the auth, but we just need the Set-Cookie
916
+ # header from that call.
917
+ def do_login
918
+ @login_results = login
919
+ @cookie = @login_results.headers['Set-Cookie']
920
+ end
921
+
922
+ def ecloud_xmlns
923
+ {
924
+ "xmlns" => "urn:tmrk:eCloudExtensions-2.6",
925
+ "xmlns:i" => "http://www.w3.org/2001/XMLSchema-instance"
926
+ }
927
+ end
928
+
929
+ def ensure_unparsed(uri)
930
+ if uri.is_a?(String)
931
+ uri
932
+ else
933
+ uri.to_s
934
+ end
935
+ end
936
+
937
+ def supported_versions
938
+ @supported_versions ||= get_versions(@versions_uri).body[:VersionInfo]
939
+ end
940
+
941
+ def xmlns
942
+ { "xmlns" => "http://www.vmware.com/vcloud/v0.8",
943
+ "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
944
+ "xmlns:xsd" => "http://www.w3.org/2001/XMLSchema" }
945
+ end
946
+
947
+ end
948
+
949
+ class Mock
950
+ include Shared
951
+ include Fog::Ecloud::MockDataClasses
952
+
953
+ def self.base_url
954
+ "https://fakey.com/api/v0.8b-ext2.6"
955
+ end
956
+
957
+ def self.data( base_url = self.base_url )
958
+ @mock_data ||= MockData.new.tap do |vcloud_mock_data|
959
+ vcloud_mock_data.versions.clear
960
+ vcloud_mock_data.versions << MockVersion.new(:version => "v0.8b-ext2.6", :supported => true)
961
+
962
+ vcloud_mock_data.organizations << MockOrganization.new(:name => "Boom Inc.").tap do |mock_organization|
963
+ mock_organization.vdcs << MockVdc.new(:name => "Boomstick").tap do |mock_vdc|
964
+ mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 0").tap do |mock_catalog_item|
965
+ mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
966
+ end
967
+ mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 1").tap do |mock_catalog_item|
968
+ mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
969
+ end
970
+ mock_vdc.catalog.items << MockCatalogItem.new(:name => "Item 2").tap do |mock_catalog_item|
971
+ mock_catalog_item.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
972
+ end
973
+
974
+ mock_vdc.networks << MockNetwork.new({ :subnet => "1.2.3.0/24" }, mock_vdc)
975
+ mock_vdc.networks << MockNetwork.new({ :subnet => "4.5.6.0/24" }, mock_vdc)
976
+
977
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Broom 1", :ip => "1.2.3.3" }, mock_vdc)
978
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Broom 2", :ip => "1.2.3.4" }, mock_vdc)
979
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Email!", :ip => "1.2.3.10" }, mock_vdc)
980
+ end
981
+
982
+ 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|
983
+ mock_vdc.networks << MockNetwork.new({ :subnet => "7.8.9.0/24" }, mock_vdc)
984
+
985
+ mock_vdc.virtual_machines << MockVirtualMachine.new({ :name => "Master Blaster", :ip => "7.8.9.10" }, mock_vdc)
986
+ end
987
+ end
988
+
989
+ vcloud_mock_data.organizations.detect {|o| o.name == "Boom Inc." }.tap do |mock_organization|
990
+ mock_organization.vdcs.detect {|v| v.name == "Boomstick" }.tap do |mock_vdc|
991
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.2.3").tap do |mock_public_ip|
992
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
993
+ :protocol => "HTTP",
994
+ :port => 80,
995
+ :name => "Web Site",
996
+ :description => "Web Servers",
997
+ :redirect_url => "http://fakey.com"
998
+ }, mock_public_ip.internet_service_collection
999
+ ).tap do |mock_public_ip_service|
1000
+ 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)
1001
+ 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)
1002
+ 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)
1003
+ end
1004
+
1005
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1006
+ :protocol => "TCP",
1007
+ :port => 7000,
1008
+ :name => "An SSH Map",
1009
+ :description => "SSH 1"
1010
+ }, mock_public_ip.internet_service_collection
1011
+ ).tap do |mock_public_ip_service|
1012
+ 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)
1013
+ end
1014
+ end
1015
+
1016
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.2.4").tap do |mock_public_ip|
1017
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1018
+ :protocol => "HTTP",
1019
+ :port => 80,
1020
+ :name => "Web Site",
1021
+ :description => "Web Servers",
1022
+ :redirect_url => "http://fakey.com"
1023
+ }, mock_public_ip.internet_service_collection
1024
+ )
1025
+
1026
+ mock_public_ip.internet_service_collection.items << MockPublicIpInternetService.new({
1027
+ :protocol => "TCP",
1028
+ :port => 7000,
1029
+ :name => "An SSH Map",
1030
+ :description => "SSH 2"
1031
+ }, mock_public_ip.internet_service_collection
1032
+ )
1033
+ end
1034
+
1035
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.1.9.7")
1036
+
1037
+ mock_vdc.internet_service_collection.backup_internet_services << MockBackupInternetService.new({ :port => 10000, :protocol => "TCP"}, self)
1038
+ end
1039
+
1040
+ mock_organization.vdcs.detect {|v| v.name == "Rock-n-Roll" }.tap do |mock_vdc|
1041
+ mock_vdc.public_ip_collection.items << MockPublicIp.new(:name => "99.99.99.99")
1042
+ end
1043
+ end
1044
+
1045
+ vcloud_mock_data.organizations.each do |organization|
1046
+ organization.vdcs.each do |vdc|
1047
+ vdc.networks.each do |network|
1048
+ network[:rnat] = vdc.public_ip_collection.items.first.name
1049
+ end
1050
+ vdc.virtual_machines.each do |virtual_machine|
1051
+ virtual_machine.disks << MockVirtualMachineDisk.new(:size => 25 * 1024)
1052
+ virtual_machine.disks << MockVirtualMachineDisk.new(:size => 50 * 1024)
1053
+ end
1054
+ end
1055
+ end
1056
+ end
1057
+ end
1058
+
1059
+ def self.reset
1060
+ @mock_data = nil
1061
+ end
1062
+
1063
+ def self.data_reset
1064
+ Fog::Logger.deprecation("#{self} => #data_reset is deprecated, use #reset instead [light_black](#{caller.first})[/]")
1065
+ self.reset
1066
+ end
1067
+
1068
+ def initialize(options = {})
1069
+ require 'builder'
1070
+ require 'fog/core/parser'
1071
+
1072
+ @versions_uri = URI.parse('https://vcloud.fakey.com/api/versions')
1073
+ end
1074
+
1075
+ def mock_data
1076
+ Fog::Compute::Ecloud::Mock.data
1077
+ end
1078
+
1079
+ def mock_error(expected, status, body='', headers={})
1080
+ raise Excon::Errors::Unauthorized.new("Expected(#{expected}) <=> Actual(#{status})")
1081
+ end
1082
+
1083
+ def mock_it(status, mock_data, mock_headers = {})
1084
+ response = Excon::Response.new
1085
+
1086
+ #Parse the response body into a hash
1087
+ if mock_data.empty?
1088
+ response.body = mock_data
1089
+ else
1090
+ document = Fog::ToHashDocument.new
1091
+ parser = Nokogiri::XML::SAX::PushParser.new(document)
1092
+ parser << mock_data
1093
+ parser.finish
1094
+ response.body = document.body
1095
+ end
1096
+
1097
+ response.status = status
1098
+ response.headers = mock_headers
1099
+ response
1100
+ end
1101
+
1102
+ end
1103
+
1104
+ class Real
1105
+ include Shared
1106
+
1107
+ class << self
1108
+
1109
+ def basic_request(*args)
1110
+ self.class_eval <<-EOS, __FILE__,__LINE__
1111
+ def #{args[0]}(uri)
1112
+ request({
1113
+ :expects => #{args[1] || 200},
1114
+ :method => '#{args[2] || 'GET'}',
1115
+ :headers => #{args[3] ? args[3].inspect : '{}'},
1116
+ :body => '#{args[4] ? args[4] : ''}',
1117
+ :parse => true,
1118
+ :uri => uri })
1119
+ end
1120
+ EOS
1121
+ end
1122
+
1123
+ def unauthenticated_basic_request(*args)
1124
+ self.class_eval <<-EOS, __FILE__,__LINE__
1125
+ def #{args[0]}(uri)
1126
+ unauthenticated_request({
1127
+ :expects => #{args[1] || 200},
1128
+ :method => '#{args[2] || 'GET'}',
1129
+ :headers => #{args[3] ? args[3].inspect : '{}'},
1130
+ :parse => true,
1131
+ :uri => uri })
1132
+ end
1133
+ EOS
1134
+ end
1135
+
1136
+ end
1137
+
1138
+ def initialize(options = {})
1139
+ require 'builder'
1140
+ require 'fog/core/parser'
1141
+
1142
+ @connections = {}
1143
+ @connection_options = options[:connection_options] || {}
1144
+ @versions_uri = URI.parse(options[:ecloud_versions_uri])
1145
+ @version = options[:ecloud_version]
1146
+ @username = options[:ecloud_username]
1147
+ @password = options[:ecloud_password]
1148
+ @persistent = options[:persistent] || false
1149
+ end
1150
+
1151
+ def default_organization_uri
1152
+ @default_organization_uri ||= begin
1153
+ unless @login_results
1154
+ do_login
1155
+ end
1156
+ case @login_results.body[:Org]
1157
+ when Array
1158
+ @login_results.body[:Org].first[:href]
1159
+ when Hash
1160
+ @login_results.body[:Org][:href]
1161
+ else
1162
+ nil
1163
+ end
1164
+ end
1165
+ end
1166
+
1167
+ def reload
1168
+ @connections.each_value { |k,v| v.reset if v }
1169
+ end
1170
+
1171
+ # If the cookie isn't set, do a get_organizations call to set it
1172
+ # and try the request.
1173
+ # If we get an Unauthorized error, we assume the token expired, re-auth and try again
1174
+ def request(params)
1175
+ unless @cookie
1176
+ do_login
1177
+ end
1178
+ begin
1179
+ do_request(params)
1180
+ rescue Excon::Errors::Unauthorized => e
1181
+ do_login
1182
+ do_request(params)
1183
+ end
1184
+ end
1185
+
1186
+ def supporting_versions
1187
+ ["v0.8b-ext2.6", "0.8b-ext2.6", "v0.8b-ext2.8" , "0.8b-ext2.8"]
1188
+ end
1189
+
1190
+ private
1191
+
1192
+ def ensure_parsed(uri)
1193
+ if uri.is_a?(String)
1194
+ URI.parse(uri)
1195
+ else
1196
+ uri
1197
+ end
1198
+ end
1199
+
1200
+ def supported_version_numbers
1201
+ case supported_versions
1202
+ when Array
1203
+ supported_versions.map { |version| version[:Version] }
1204
+ when Hash
1205
+ [ supported_versions[:Version] ]
1206
+ end
1207
+ end
1208
+
1209
+ def get_login_uri
1210
+ check_versions
1211
+ URI.parse case supported_versions
1212
+ when Array
1213
+ supported_versions.detect {|version| version[:Version] == @version }[:LoginUrl]
1214
+ when Hash
1215
+ supported_versions[:LoginUrl]
1216
+ end
1217
+ end
1218
+
1219
+ # If we don't support any versions the service does, then raise an error.
1220
+ # If the @version that super selected isn't in our supported list, then select one that is.
1221
+ def check_versions
1222
+ if @version
1223
+ unless supported_version_numbers.include?(@version.to_s)
1224
+ raise UnsupportedVersion.new("#{@version} is not supported by the server.")
1225
+ end
1226
+ unless supporting_versions.include?(@version.to_s)
1227
+ raise UnsupportedVersion.new("#{@version} is not supported by #{self.class}")
1228
+ end
1229
+ else
1230
+ unless @version = (supported_version_numbers & supporting_versions).sort.first
1231
+ raise UnsupportedVersion.new("\nService @ #{@versions_uri} supports: #{supported_version_numbers.join(', ')}\n" +
1232
+ "#{self.class} supports: #{supporting_versions.join(', ')}")
1233
+ end
1234
+ end
1235
+ end
1236
+
1237
+ # Don't need to set the cookie for these or retry them if the cookie timed out
1238
+ def unauthenticated_request(params)
1239
+ do_request(params)
1240
+ end
1241
+
1242
+ # Use this to set the Authorization header for login
1243
+ def authorization_header
1244
+ "Basic #{Base64.encode64("#{@username}:#{@password}").chomp!}"
1245
+ end
1246
+
1247
+ def login_uri
1248
+ @login_uri ||= get_login_uri
1249
+ end
1250
+
1251
+ # login handles the auth, but we just need the Set-Cookie
1252
+ # header from that call.
1253
+ def do_login
1254
+ @login_results = login
1255
+ @cookie = @login_results.headers['Set-Cookie']
1256
+ end
1257
+
1258
+ # Actually do the request
1259
+ def do_request(params)
1260
+ # Convert the uri to a URI if it's a string.
1261
+ if params[:uri].is_a?(String)
1262
+ params[:uri] = URI.parse(params[:uri])
1263
+ end
1264
+ host_url = "#{params[:uri].scheme}://#{params[:uri].host}#{params[:uri].port ? ":#{params[:uri].port}" : ''}"
1265
+
1266
+ # Hash connections on the host_url ... There's nothing to say we won't get URI's that go to
1267
+ # different hosts.
1268
+ @connections[host_url] ||= Fog::Connection.new(host_url, @persistent, @connection_options)
1269
+
1270
+ # Set headers to an empty hash if none are set.
1271
+ headers = params[:headers] || {}
1272
+
1273
+ # Add our auth cookie to the headers
1274
+ if @cookie
1275
+ headers.merge!('Cookie' => @cookie)
1276
+ end
1277
+
1278
+ # Make the request
1279
+ response = @connections[host_url].request({
1280
+ :body => params[:body] || '',
1281
+ :expects => params[:expects] || 200,
1282
+ :headers => headers,
1283
+ :method => params[:method] || 'GET',
1284
+ :path => params[:uri].path
1285
+ })
1286
+
1287
+ # Parse the response body into a hash
1288
+ #puts response.body
1289
+ unless response.body.empty?
1290
+ if params[:parse]
1291
+ document = Fog::ToHashDocument.new
1292
+ parser = Nokogiri::XML::SAX::PushParser.new(document)
1293
+ parser << response.body
1294
+ parser.finish
1295
+
1296
+ response.body = document.body
1297
+ end
1298
+ end
1299
+
1300
+ response
1301
+ end
1302
+
1303
+ end
1304
+
1305
+ end
1306
+ end
1307
+ end