fog 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1202) hide show
  1. data/.gitignore +1 -0
  2. data/.irbrc +87 -0
  3. data/Rakefile +3 -3
  4. data/bin/fog +1 -3
  5. data/docs/_layouts/default.html +2 -2
  6. data/docs/cdn/index.markdown +2 -2
  7. data/docs/compute/index.markdown +2 -2
  8. data/docs/dns/index.markdown +2 -2
  9. data/docs/public/js/libs/dd_belatedpng.js +289 -13
  10. data/docs/public/js/libs/dd_belatedpng.min.js +13 -0
  11. data/docs/public/js/libs/modernizr-1.6.js +892 -0
  12. data/docs/public/js/profiling/yahoo-profiling.js +1028 -0
  13. data/docs/storage/index.markdown +2 -2
  14. data/fog.gemspec +10 -4
  15. data/lib/fog.rb +4 -1
  16. data/lib/fog/aws.rb +46 -5
  17. data/lib/fog/aws/auto_scaling.rb +26 -11
  18. data/lib/fog/aws/beanstalk.rb +28 -16
  19. data/lib/fog/aws/cdn.rb +25 -9
  20. data/lib/fog/aws/cloud_formation.rb +18 -7
  21. data/lib/fog/aws/cloud_watch.rb +18 -8
  22. data/lib/fog/aws/compute.rb +52 -10
  23. data/lib/fog/aws/credential_fetcher.rb +64 -0
  24. data/lib/fog/aws/dns.rb +31 -11
  25. data/lib/fog/aws/dynamodb.rb +32 -18
  26. data/lib/fog/aws/elasticache.rb +18 -5
  27. data/lib/fog/aws/elb.rb +30 -10
  28. data/lib/fog/aws/elb/policy_types.rb +432 -1
  29. data/lib/fog/aws/emr.rb +20 -20
  30. data/lib/fog/aws/iam.rb +25 -2
  31. data/lib/fog/aws/models/beanstalk/environment.rb +16 -0
  32. data/lib/fog/aws/models/beanstalk/template.rb +16 -0
  33. data/lib/fog/aws/models/compute/address.rb +4 -0
  34. data/lib/fog/aws/models/compute/dhcp_option.rb +68 -0
  35. data/lib/fog/aws/models/compute/dhcp_options.rb +91 -0
  36. data/lib/fog/aws/models/compute/flavors.rb +10 -1
  37. data/lib/fog/aws/models/compute/internet_gateway.rb +81 -0
  38. data/lib/fog/aws/models/compute/internet_gateways.rb +91 -0
  39. data/lib/fog/aws/models/compute/network_interface.rb +70 -0
  40. data/lib/fog/aws/models/compute/network_interfaces.rb +136 -0
  41. data/lib/fog/aws/models/compute/security_group.rb +75 -17
  42. data/lib/fog/aws/models/compute/server.rb +16 -18
  43. data/lib/fog/aws/models/compute/servers.rb +1 -1
  44. data/lib/fog/aws/models/compute/spot_request.rb +20 -0
  45. data/lib/fog/aws/models/compute/spot_requests.rb +4 -4
  46. data/lib/fog/aws/models/compute/volume.rb +13 -0
  47. data/lib/fog/aws/models/dns/record.rb +12 -6
  48. data/lib/fog/aws/models/dns/records.rb +84 -12
  49. data/lib/fog/aws/models/dns/zones.rb +1 -1
  50. data/lib/fog/aws/models/elb/load_balancer.rb +36 -4
  51. data/lib/fog/aws/models/elb/load_balancers.rb +14 -4
  52. data/lib/fog/aws/models/iam/access_key.rb +38 -0
  53. data/lib/fog/aws/models/iam/access_keys.rb +36 -0
  54. data/lib/fog/aws/models/iam/policies.rb +44 -0
  55. data/lib/fog/aws/models/iam/policy.rb +39 -0
  56. data/lib/fog/aws/models/iam/user.rb +40 -0
  57. data/lib/fog/aws/models/iam/users.rb +27 -0
  58. data/lib/fog/aws/models/storage/directory.rb +34 -27
  59. data/lib/fog/aws/models/storage/file.rb +1 -1
  60. data/lib/fog/aws/models/storage/files.rb +5 -0
  61. data/lib/fog/aws/parsers/auto_scaling/put_notification_configuration.rb +27 -0
  62. data/lib/fog/aws/parsers/cloud_formation/describe_stacks.rb +12 -3
  63. data/lib/fog/aws/parsers/compute/associate_dhcp_options.rb +24 -0
  64. data/lib/fog/aws/parsers/compute/attach_internet_gateway.rb +24 -0
  65. data/lib/fog/aws/parsers/compute/attach_network_interface.rb +18 -0
  66. data/lib/fog/aws/parsers/compute/create_dhcp_options.rb +75 -0
  67. data/lib/fog/aws/parsers/compute/create_internet_gateway.rb +65 -0
  68. data/lib/fog/aws/parsers/compute/create_network_interface.rb +28 -0
  69. data/lib/fog/aws/parsers/compute/delete_dhcp_options.rb +24 -0
  70. data/lib/fog/aws/parsers/compute/delete_internet_gateway.rb +24 -0
  71. data/lib/fog/aws/parsers/compute/delete_network_interface.rb +24 -0
  72. data/lib/fog/aws/parsers/compute/describe_dhcp_options.rb +75 -0
  73. data/lib/fog/aws/parsers/compute/describe_instance_status.rb +32 -62
  74. data/lib/fog/aws/parsers/compute/describe_instances.rb +26 -8
  75. data/lib/fog/aws/parsers/compute/describe_internet_gateways.rb +65 -0
  76. data/lib/fog/aws/parsers/compute/describe_network_interface_attribute.rb +79 -0
  77. data/lib/fog/aws/parsers/compute/describe_network_interfaces.rb +43 -0
  78. data/lib/fog/aws/parsers/compute/describe_reserved_instances.rb +2 -2
  79. data/lib/fog/aws/parsers/compute/describe_volume_status.rb +62 -45
  80. data/lib/fog/aws/parsers/compute/describe_volumes.rb +0 -2
  81. data/lib/fog/aws/parsers/compute/detach_internet_gateway.rb +24 -0
  82. data/lib/fog/aws/parsers/compute/detach_network_interface.rb +24 -0
  83. data/lib/fog/aws/parsers/compute/network_interface_parser.rb +89 -0
  84. data/lib/fog/aws/parsers/dns/list_resource_record_sets.rb +2 -2
  85. data/lib/fog/aws/parsers/elb/apply_security_groups_to_load_balancer.rb +26 -0
  86. data/lib/fog/aws/parsers/elb/attach_load_balancer_to_subnets.rb +26 -0
  87. data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +18 -2
  88. data/lib/fog/aws/parsers/elb/detach_load_balancer_from_subnets.rb +26 -0
  89. data/lib/fog/aws/parsers/iam/base_instance_profile.rb +79 -0
  90. data/lib/fog/aws/parsers/iam/get_role_policy.rb +32 -0
  91. data/lib/fog/aws/parsers/iam/get_user_policy.rb +9 -3
  92. data/lib/fog/aws/parsers/iam/instance_profile.rb +34 -0
  93. data/lib/fog/aws/parsers/iam/list_instance_profiles.rb +34 -0
  94. data/lib/fog/aws/parsers/iam/list_roles.rb +31 -0
  95. data/lib/fog/aws/parsers/iam/role_parser.rb +53 -0
  96. data/lib/fog/aws/parsers/iam/single_role.rb +29 -0
  97. data/lib/fog/aws/rds.rb +23 -11
  98. data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +4 -3
  99. data/lib/fog/aws/requests/auto_scaling/delete_notification_configuration.rb +47 -0
  100. data/lib/fog/aws/requests/auto_scaling/put_notification_configuration.rb +51 -0
  101. data/lib/fog/aws/requests/beanstalk/create_configuration_template.rb +3 -0
  102. data/lib/fog/aws/requests/compute/associate_dhcp_options.rb +57 -0
  103. data/lib/fog/aws/requests/compute/attach_internet_gateway.rb +56 -0
  104. data/lib/fog/aws/requests/compute/attach_network_interface.rb +57 -0
  105. data/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb +2 -2
  106. data/lib/fog/aws/requests/compute/create_dhcp_options.rb +75 -0
  107. data/lib/fog/aws/requests/compute/create_internet_gateway.rb +51 -0
  108. data/lib/fog/aws/requests/compute/create_network_interface.rb +118 -0
  109. data/lib/fog/aws/requests/compute/delete_dhcp_options.rb +50 -0
  110. data/lib/fog/aws/requests/compute/delete_internet_gateway.rb +48 -0
  111. data/lib/fog/aws/requests/compute/delete_network_interface.rb +52 -0
  112. data/lib/fog/aws/requests/compute/describe_dhcp_options.rb +62 -0
  113. data/lib/fog/aws/requests/compute/describe_instance_status.rb +11 -1
  114. data/lib/fog/aws/requests/compute/describe_instances.rb +3 -0
  115. data/lib/fog/aws/requests/compute/describe_internet_gateways.rb +61 -0
  116. data/lib/fog/aws/requests/compute/describe_network_interface_attribute.rb +67 -0
  117. data/lib/fog/aws/requests/compute/describe_network_interfaces.rb +85 -0
  118. data/lib/fog/aws/requests/compute/describe_volume_status.rb +3 -8
  119. data/lib/fog/aws/requests/compute/detach_internet_gateway.rb +56 -0
  120. data/lib/fog/aws/requests/compute/detach_network_interface.rb +49 -0
  121. data/lib/fog/aws/requests/compute/modify_network_interface_attribute.rb +90 -0
  122. data/lib/fog/aws/requests/compute/register_image.rb +3 -3
  123. data/lib/fog/aws/requests/compute/release_address.rb +10 -2
  124. data/lib/fog/aws/requests/compute/reset_network_interface_attribute.rb +56 -0
  125. data/lib/fog/aws/requests/compute/run_instances.rb +1 -1
  126. data/lib/fog/aws/requests/compute/start_instances.rb +27 -0
  127. data/lib/fog/aws/requests/compute/stop_instances.rb +27 -0
  128. data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +109 -15
  129. data/lib/fog/aws/requests/dns/create_hosted_zone.rb +46 -1
  130. data/lib/fog/aws/requests/dns/get_hosted_zone.rb +24 -1
  131. data/lib/fog/aws/requests/dns/list_hosted_zones.rb +45 -0
  132. data/lib/fog/aws/requests/dns/list_resource_record_sets.rb +4 -2
  133. data/lib/fog/aws/requests/dynamodb/batch_get_item.rb +1 -1
  134. data/lib/fog/aws/requests/dynamodb/batch_write_item.rb +35 -0
  135. data/lib/fog/aws/requests/dynamodb/create_table.rb +1 -1
  136. data/lib/fog/aws/requests/dynamodb/delete_item.rb +1 -1
  137. data/lib/fog/aws/requests/dynamodb/delete_table.rb +1 -1
  138. data/lib/fog/aws/requests/dynamodb/describe_table.rb +1 -1
  139. data/lib/fog/aws/requests/dynamodb/get_item.rb +1 -1
  140. data/lib/fog/aws/requests/dynamodb/list_tables.rb +1 -1
  141. data/lib/fog/aws/requests/dynamodb/put_item.rb +1 -1
  142. data/lib/fog/aws/requests/dynamodb/query.rb +1 -1
  143. data/lib/fog/aws/requests/dynamodb/scan.rb +1 -1
  144. data/lib/fog/aws/requests/dynamodb/update_item.rb +1 -1
  145. data/lib/fog/aws/requests/dynamodb/update_table.rb +1 -1
  146. data/lib/fog/aws/requests/elb/apply_security_groups_to_load_balancer.rb +61 -0
  147. data/lib/fog/aws/requests/elb/attach_load_balancer_to_subnets.rb +61 -0
  148. data/lib/fog/aws/requests/elb/create_load_balancer.rb +8 -3
  149. data/lib/fog/aws/requests/elb/describe_load_balancers.rb +35 -5
  150. data/lib/fog/aws/requests/elb/detach_load_balancer_from_subnets.rb +61 -0
  151. data/lib/fog/aws/requests/iam/add_role_to_instance_profile.rb +35 -0
  152. data/lib/fog/aws/requests/iam/create_instance_profile.rb +46 -0
  153. data/lib/fog/aws/requests/iam/create_role.rb +56 -0
  154. data/lib/fog/aws/requests/iam/delete_instance_profile.rb +32 -0
  155. data/lib/fog/aws/requests/iam/delete_role.rb +32 -0
  156. data/lib/fog/aws/requests/iam/delete_role_policy.rb +35 -0
  157. data/lib/fog/aws/requests/iam/get_group.rb +18 -0
  158. data/lib/fog/aws/requests/iam/get_instance_profile.rb +42 -0
  159. data/lib/fog/aws/requests/iam/get_role.rb +38 -0
  160. data/lib/fog/aws/requests/iam/get_role_policy.rb +36 -0
  161. data/lib/fog/aws/requests/iam/get_user.rb +23 -3
  162. data/lib/fog/aws/requests/iam/get_user_policy.rb +17 -0
  163. data/lib/fog/aws/requests/iam/list_instance_profiles.rb +50 -0
  164. data/lib/fog/aws/requests/iam/list_instance_profiles_for_role.rb +51 -0
  165. data/lib/fog/aws/requests/iam/list_role_policies.rb +39 -0
  166. data/lib/fog/aws/requests/iam/list_roles.rb +43 -0
  167. data/lib/fog/aws/requests/iam/put_group_policy.rb +1 -1
  168. data/lib/fog/aws/requests/iam/put_role_policy.rb +36 -0
  169. data/lib/fog/aws/requests/iam/put_user_policy.rb +1 -1
  170. data/lib/fog/aws/requests/iam/remove_role_from_instance_profile.rb +36 -0
  171. data/lib/fog/aws/requests/storage/get_bucket_policy.rb +1 -1
  172. data/lib/fog/aws/requests/storage/get_object_http_url.rb +2 -1
  173. data/lib/fog/aws/requests/storage/get_object_https_url.rb +1 -18
  174. data/lib/fog/aws/requests/storage/get_object_url.rb +29 -8
  175. data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +1 -1
  176. data/lib/fog/aws/requests/storage/put_bucket_policy.rb +1 -1
  177. data/lib/fog/aws/requests/storage/put_object_url.rb +22 -28
  178. data/lib/fog/aws/requests/sts/get_federation_token.rb +1 -1
  179. data/lib/fog/aws/ses.rb +21 -8
  180. data/lib/fog/aws/simpledb.rb +22 -9
  181. data/lib/fog/aws/sns.rb +18 -7
  182. data/lib/fog/aws/sqs.rb +20 -11
  183. data/lib/fog/aws/storage.rb +51 -18
  184. data/lib/fog/aws/sts.rb +1 -2
  185. data/lib/fog/bare_metal_cloud.rb +1 -1
  186. data/lib/fog/bare_metal_cloud/compute.rb +1 -1
  187. data/lib/fog/bin.rb +2 -1
  188. data/lib/fog/bin/aws.rb +2 -0
  189. data/lib/fog/bin/hp.rb +38 -0
  190. data/lib/fog/bin/openstack.rb +6 -1
  191. data/lib/fog/bin/xenserver.rb +31 -0
  192. data/lib/fog/bluebox.rb +1 -1
  193. data/lib/fog/bluebox/compute.rb +2 -3
  194. data/lib/fog/bluebox/dns.rb +2 -2
  195. data/lib/fog/bluebox/models/compute/server.rb +1 -1
  196. data/lib/fog/brightbox.rb +1 -1
  197. data/lib/fog/brightbox/compute.rb +6 -8
  198. data/lib/fog/brightbox/models/compute/server.rb +2 -1
  199. data/lib/fog/cdn.rb +3 -0
  200. data/lib/fog/clodo/compute.rb +1 -3
  201. data/lib/fog/clodo/models/compute/server.rb +1 -1
  202. data/lib/fog/clodo/requests/compute/create_server.rb +1 -1
  203. data/lib/fog/clodo/requests/compute/delete_ip_address.rb +1 -1
  204. data/lib/fog/clodo/requests/compute/move_ip_address.rb +1 -1
  205. data/lib/fog/clodo/requests/compute/server_action.rb +1 -1
  206. data/lib/fog/cloudstack.rb +13 -1
  207. data/lib/fog/cloudstack/compute.rb +238 -61
  208. data/lib/fog/cloudstack/models/compute/address.rb +17 -0
  209. data/lib/fog/cloudstack/models/compute/flavor.rb +33 -0
  210. data/lib/fog/cloudstack/models/compute/flavors.rb +28 -0
  211. data/lib/fog/cloudstack/models/compute/image.rb +72 -0
  212. data/lib/fog/cloudstack/models/compute/images.rb +32 -0
  213. data/lib/fog/cloudstack/models/compute/job.rb +29 -0
  214. data/lib/fog/cloudstack/models/compute/jobs.rb +28 -0
  215. data/lib/fog/cloudstack/models/compute/server.rb +92 -0
  216. data/lib/fog/cloudstack/models/compute/servers.rb +34 -0
  217. data/lib/fog/cloudstack/models/compute/volume.rb +119 -0
  218. data/lib/fog/cloudstack/models/compute/volumes.rb +28 -0
  219. data/lib/fog/cloudstack/models/compute/zone.rb +39 -0
  220. data/lib/fog/cloudstack/models/compute/zones.rb +33 -0
  221. data/lib/fog/cloudstack/requests/compute/attach_volume.rb +57 -10
  222. data/lib/fog/cloudstack/requests/compute/create_volume.rb +43 -0
  223. data/lib/fog/cloudstack/requests/compute/delete_template.rb +20 -0
  224. data/lib/fog/cloudstack/requests/compute/delete_volume.rb +24 -4
  225. data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +110 -14
  226. data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +12 -3
  227. data/lib/fog/cloudstack/requests/compute/detach_volume.rb +47 -6
  228. data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +17 -5
  229. data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +1 -1
  230. data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +27 -5
  231. data/lib/fog/cloudstack/requests/compute/list_templates.rb +20 -5
  232. data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +11 -5
  233. data/lib/fog/cloudstack/requests/compute/list_volumes.rb +23 -5
  234. data/lib/fog/cloudstack/requests/compute/list_zones.rb +18 -4
  235. data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +11 -0
  236. data/lib/fog/compute.rb +6 -4
  237. data/lib/fog/compute/models/server.rb +19 -4
  238. data/lib/fog/core/collection.rb +4 -5
  239. data/lib/fog/core/credentials.rb +5 -3
  240. data/lib/fog/core/current_machine.rb +1 -5
  241. data/lib/fog/core/errors.rb +6 -3
  242. data/lib/fog/core/json.rb +27 -1
  243. data/lib/fog/core/model.rb +1 -2
  244. data/lib/fog/core/scp.rb +11 -3
  245. data/lib/fog/core/service.rb +29 -8
  246. data/lib/fog/core/ssh.rb +18 -5
  247. data/lib/fog/dns.rb +0 -4
  248. data/lib/fog/dnsimple.rb +1 -1
  249. data/lib/fog/dnsimple/dns.rb +2 -4
  250. data/lib/fog/dnsimple/requests/dns/create_domain.rb +1 -1
  251. data/lib/fog/dnsimple/requests/dns/create_record.rb +1 -1
  252. data/lib/fog/dnsimple/requests/dns/update_record.rb +1 -1
  253. data/lib/fog/dnsmadeeasy.rb +1 -1
  254. data/lib/fog/dnsmadeeasy/dns.rb +4 -5
  255. data/lib/fog/dnsmadeeasy/requests/dns/create_record.rb +1 -1
  256. data/lib/fog/dnsmadeeasy/requests/dns/create_secondary.rb +1 -1
  257. data/lib/fog/dnsmadeeasy/requests/dns/update_record.rb +1 -1
  258. data/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb +1 -1
  259. data/lib/fog/dynect.rb +1 -1
  260. data/lib/fog/dynect/dns.rb +3 -5
  261. data/lib/fog/dynect/requests/dns/delete_record.rb +1 -0
  262. data/lib/fog/dynect/requests/dns/get_node_list.rb +1 -0
  263. data/lib/fog/dynect/requests/dns/get_record.rb +1 -0
  264. data/lib/fog/dynect/requests/dns/get_zone.rb +1 -0
  265. data/lib/fog/dynect/requests/dns/post_record.rb +1 -1
  266. data/lib/fog/dynect/requests/dns/post_session.rb +2 -1
  267. data/lib/fog/dynect/requests/dns/post_zone.rb +1 -1
  268. data/lib/fog/dynect/requests/dns/put_zone.rb +1 -1
  269. data/lib/fog/ecloud/collection.rb +26 -0
  270. data/lib/fog/ecloud/compute.rb +341 -1135
  271. data/lib/fog/ecloud/generate_collection.rb +130 -0
  272. data/lib/fog/ecloud/ipaddr.rb +5 -0
  273. data/lib/fog/ecloud/mock_data_classes.rb +768 -0
  274. data/lib/fog/ecloud/model.rb +22 -0
  275. data/lib/fog/ecloud/models/compute/admin_organization.rb +39 -0
  276. data/lib/fog/ecloud/models/compute/admin_organizations.rb +27 -0
  277. data/lib/fog/ecloud/models/compute/api_key.rb +21 -0
  278. data/lib/fog/ecloud/models/compute/api_keys.rb +27 -0
  279. data/lib/fog/ecloud/models/compute/association.rb +23 -0
  280. data/lib/fog/ecloud/models/compute/associations.rb +35 -0
  281. data/lib/fog/ecloud/models/compute/authentication_level.rb +22 -0
  282. data/lib/fog/ecloud/models/compute/authentication_levels.rb +27 -0
  283. data/lib/fog/ecloud/models/compute/backup_internet_service.rb +22 -33
  284. data/lib/fog/ecloud/models/compute/backup_internet_services.rb +20 -11
  285. data/lib/fog/ecloud/models/compute/catalog.rb +17 -5
  286. data/lib/fog/ecloud/models/compute/catalog_configuration.rb +23 -0
  287. data/lib/fog/ecloud/models/compute/catalog_configurations.rb +27 -0
  288. data/lib/fog/ecloud/models/compute/catalog_item.rb +12 -17
  289. data/lib/fog/ecloud/models/compute/compute_pool.rb +59 -0
  290. data/lib/fog/ecloud/models/compute/compute_pools.rb +34 -0
  291. data/lib/fog/ecloud/models/compute/cpu_usage_detail.rb +17 -0
  292. data/lib/fog/ecloud/models/compute/cpu_usage_detail_summary.rb +27 -0
  293. data/lib/fog/ecloud/models/compute/environment.rb +105 -0
  294. data/lib/fog/ecloud/models/compute/environments.rb +40 -0
  295. data/lib/fog/ecloud/models/compute/firewall_acl.rb +14 -11
  296. data/lib/fog/ecloud/models/compute/firewall_acls.rb +7 -10
  297. data/lib/fog/ecloud/models/compute/group.rb +39 -0
  298. data/lib/fog/ecloud/models/compute/groups.rb +28 -0
  299. data/lib/fog/ecloud/models/compute/guest_process.rb +15 -0
  300. data/lib/fog/ecloud/models/compute/guest_processes.rb +27 -0
  301. data/lib/fog/ecloud/models/compute/hardware_configuration.rb +18 -0
  302. data/lib/fog/ecloud/models/compute/hardware_configurations.rb +27 -0
  303. data/lib/fog/ecloud/models/compute/internet_service.rb +47 -73
  304. data/lib/fog/ecloud/models/compute/internet_services.rb +23 -10
  305. data/lib/fog/ecloud/models/compute/ip_address.rb +25 -0
  306. data/lib/fog/ecloud/models/compute/ip_addresses.rb +27 -0
  307. data/lib/fog/ecloud/models/compute/layout.rb +20 -0
  308. data/lib/fog/ecloud/models/compute/layouts.rb +27 -0
  309. data/lib/fog/ecloud/models/compute/location.rb +23 -0
  310. data/lib/fog/ecloud/models/compute/locations.rb +31 -0
  311. data/lib/fog/ecloud/models/compute/login_banner.rb +16 -0
  312. data/lib/fog/ecloud/models/compute/login_banners.rb +27 -0
  313. data/lib/fog/ecloud/models/compute/memory_usage_detail.rb +16 -0
  314. data/lib/fog/ecloud/models/compute/memory_usage_detail_summary.rb +27 -0
  315. data/lib/fog/ecloud/models/compute/monitor.rb +46 -0
  316. data/lib/fog/ecloud/models/compute/monitors.rb +31 -0
  317. data/lib/fog/ecloud/models/compute/network.rb +16 -55
  318. data/lib/fog/ecloud/models/compute/networks.rb +5 -10
  319. data/lib/fog/ecloud/models/compute/node.rb +22 -26
  320. data/lib/fog/ecloud/models/compute/nodes.rb +19 -6
  321. data/lib/fog/ecloud/models/compute/operating_system.rb +17 -0
  322. data/lib/fog/ecloud/models/compute/operating_system_families.rb +27 -0
  323. data/lib/fog/ecloud/models/compute/operating_system_family.rb +21 -0
  324. data/lib/fog/ecloud/models/compute/operating_systems.rb +26 -0
  325. data/lib/fog/ecloud/models/compute/organization.rb +79 -0
  326. data/lib/fog/ecloud/models/compute/organizations.rb +39 -0
  327. data/lib/fog/ecloud/models/compute/password_complexity_rule.rb +49 -0
  328. data/lib/fog/ecloud/models/compute/password_complexity_rules.rb +27 -0
  329. data/lib/fog/ecloud/models/compute/physical_device.rb +22 -0
  330. data/lib/fog/ecloud/models/compute/physical_devices.rb +27 -0
  331. data/lib/fog/ecloud/models/compute/public_ip.rb +14 -10
  332. data/lib/fog/ecloud/models/compute/public_ips.rb +8 -11
  333. data/lib/fog/ecloud/models/compute/rnat.rb +27 -0
  334. data/lib/fog/ecloud/models/compute/rnats.rb +27 -0
  335. data/lib/fog/ecloud/models/compute/role.rb +24 -0
  336. data/lib/fog/ecloud/models/compute/roles.rb +37 -0
  337. data/lib/fog/ecloud/models/compute/row.rb +53 -0
  338. data/lib/fog/ecloud/models/compute/rows.rb +37 -0
  339. data/lib/fog/ecloud/models/compute/server.rb +170 -132
  340. data/lib/fog/ecloud/models/compute/server_configuration_option.rb +17 -0
  341. data/lib/fog/ecloud/models/compute/server_configuration_options.rb +27 -0
  342. data/lib/fog/ecloud/models/compute/servers.rb +38 -28
  343. data/lib/fog/ecloud/models/compute/ssh_key.rb +20 -0
  344. data/lib/fog/ecloud/models/compute/ssh_keys.rb +27 -0
  345. data/lib/fog/ecloud/models/compute/storage_usage_detail.rb +16 -0
  346. data/lib/fog/ecloud/models/compute/storage_usage_detail_summary.rb +27 -0
  347. data/lib/fog/ecloud/models/compute/support_ticket.rb +29 -0
  348. data/lib/fog/ecloud/models/compute/support_tickets.rb +27 -0
  349. data/lib/fog/ecloud/models/compute/tag.rb +13 -0
  350. data/lib/fog/ecloud/models/compute/tags.rb +27 -0
  351. data/lib/fog/ecloud/models/compute/task.rb +10 -11
  352. data/lib/fog/ecloud/models/compute/tasks.rb +8 -8
  353. data/lib/fog/ecloud/models/compute/template.rb +24 -0
  354. data/lib/fog/ecloud/models/compute/templates.rb +40 -0
  355. data/lib/fog/ecloud/models/compute/trusted_network_group.rb +33 -0
  356. data/lib/fog/ecloud/models/compute/trusted_network_groups.rb +28 -0
  357. data/lib/fog/ecloud/models/compute/user.rb +35 -0
  358. data/lib/fog/ecloud/models/compute/users.rb +27 -0
  359. data/lib/fog/ecloud/requests/compute/admin_disable_support_access.rb +9 -0
  360. data/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb +34 -0
  361. data/lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb +32 -0
  362. data/lib/fog/ecloud/requests/compute/admin_edit_password_complexity_rules.rb +74 -0
  363. data/lib/fog/ecloud/requests/compute/admin_enable_support_access.rb +9 -0
  364. data/lib/fog/ecloud/requests/compute/backup_internet_service_create.rb +47 -0
  365. data/lib/fog/ecloud/requests/compute/backup_internet_service_delete.rb +11 -0
  366. data/lib/fog/ecloud/requests/compute/backup_internet_service_edit.rb +47 -0
  367. data/lib/fog/ecloud/requests/compute/compute_pool_edit.rb +37 -0
  368. data/lib/fog/ecloud/requests/compute/firewall_acls_create.rb +79 -0
  369. data/lib/fog/ecloud/requests/compute/firewall_acls_delete.rb +11 -0
  370. data/lib/fog/ecloud/requests/compute/get_admin_organization.rb +11 -0
  371. data/lib/fog/ecloud/requests/compute/get_admin_organizations.rb +11 -0
  372. data/lib/fog/ecloud/requests/compute/{get_task_list.rb → get_api_key.rb} +1 -1
  373. data/lib/fog/ecloud/requests/compute/{get_vapp_template.rb → get_api_keys.rb} +1 -1
  374. data/lib/fog/ecloud/requests/compute/get_association.rb +11 -0
  375. data/lib/fog/ecloud/requests/compute/get_associations.rb +11 -0
  376. data/lib/fog/ecloud/requests/compute/get_authentication_level.rb +11 -0
  377. data/lib/fog/ecloud/requests/compute/get_authentication_levels.rb +11 -0
  378. data/lib/fog/ecloud/requests/compute/get_backup_internet_service.rb +11 -0
  379. data/lib/fog/ecloud/requests/compute/get_backup_internet_services.rb +11 -0
  380. data/lib/fog/ecloud/requests/compute/get_catalog.rb +0 -33
  381. data/lib/fog/ecloud/requests/compute/get_catalog_configuration.rb +11 -0
  382. data/lib/fog/ecloud/requests/compute/get_catalog_configurations.rb +11 -0
  383. data/lib/fog/ecloud/requests/compute/get_catalog_item.rb +0 -36
  384. data/lib/fog/ecloud/requests/compute/get_compute_pool.rb +11 -0
  385. data/lib/fog/ecloud/requests/compute/get_compute_pools.rb +11 -0
  386. data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail.rb +11 -0
  387. data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail_summary.rb +11 -0
  388. data/lib/fog/ecloud/requests/compute/get_environment.rb +11 -0
  389. data/lib/fog/ecloud/requests/compute/get_environments.rb +0 -0
  390. data/lib/fog/ecloud/requests/compute/get_group.rb +11 -0
  391. data/lib/fog/ecloud/requests/compute/get_groups.rb +11 -0
  392. data/lib/fog/ecloud/requests/compute/get_guest_process.rb +11 -0
  393. data/lib/fog/ecloud/requests/compute/get_guest_processes.rb +11 -0
  394. data/lib/fog/ecloud/requests/compute/get_hardware_configuration.rb +11 -0
  395. data/lib/fog/ecloud/requests/compute/get_hardware_configurations.rb +11 -0
  396. data/lib/fog/ecloud/requests/compute/get_internet_service.rb +11 -0
  397. data/lib/fog/ecloud/requests/compute/get_internet_services.rb +0 -71
  398. data/lib/fog/ecloud/requests/compute/get_ip_address.rb +11 -0
  399. data/lib/fog/ecloud/requests/compute/get_ip_addresses.rb +11 -0
  400. data/lib/fog/ecloud/requests/compute/get_layout.rb +11 -0
  401. data/lib/fog/ecloud/requests/compute/get_layouts.rb +11 -0
  402. data/lib/fog/ecloud/requests/compute/get_location.rb +12 -0
  403. data/lib/fog/ecloud/requests/compute/get_locations.rb +12 -0
  404. data/lib/fog/ecloud/requests/compute/get_login_banner.rb +11 -0
  405. data/lib/fog/ecloud/requests/compute/get_login_banners.rb +11 -0
  406. data/lib/fog/ecloud/requests/compute/get_memory_usage_detail.rb +11 -0
  407. data/lib/fog/ecloud/requests/compute/get_memory_usage_detail_summary.rb +11 -0
  408. data/lib/fog/ecloud/requests/compute/get_monitor.rb +11 -0
  409. data/lib/fog/ecloud/requests/compute/get_monitors.rb +11 -0
  410. data/lib/fog/ecloud/requests/compute/get_network.rb +1 -34
  411. data/lib/fog/ecloud/requests/compute/get_network_summary.rb +11 -0
  412. data/lib/fog/ecloud/requests/compute/get_networks.rb +11 -0
  413. data/lib/fog/ecloud/requests/compute/get_node.rb +0 -29
  414. data/lib/fog/ecloud/requests/compute/get_nodes.rb +0 -30
  415. data/lib/fog/ecloud/requests/compute/get_operating_system.rb +11 -0
  416. data/lib/fog/ecloud/requests/compute/get_operating_system_families.rb +11 -0
  417. data/lib/fog/ecloud/requests/compute/get_operating_system_family.rb +11 -0
  418. data/lib/fog/ecloud/requests/compute/get_organization.rb +0 -38
  419. data/lib/fog/ecloud/requests/compute/get_organizations.rb +11 -0
  420. data/lib/fog/ecloud/requests/compute/get_password_complexity_rule.rb +11 -0
  421. data/lib/fog/ecloud/requests/compute/get_password_complexity_rules.rb +11 -0
  422. data/lib/fog/ecloud/requests/compute/get_physical_device.rb +11 -0
  423. data/lib/fog/ecloud/requests/compute/get_physical_devices.rb +11 -0
  424. data/lib/fog/ecloud/requests/compute/get_process.rb +11 -0
  425. data/lib/fog/ecloud/requests/compute/get_processes.rb +11 -0
  426. data/lib/fog/ecloud/requests/compute/get_public_ip.rb +0 -23
  427. data/lib/fog/ecloud/requests/compute/get_public_ips.rb +0 -27
  428. data/lib/fog/ecloud/requests/compute/get_rnat.rb +11 -0
  429. data/lib/fog/ecloud/requests/compute/get_rnats.rb +11 -0
  430. data/lib/fog/ecloud/requests/compute/get_role.rb +11 -0
  431. data/lib/fog/ecloud/requests/compute/get_roles.rb +11 -0
  432. data/lib/fog/ecloud/requests/compute/get_row.rb +11 -0
  433. data/lib/fog/ecloud/requests/compute/get_rows.rb +11 -0
  434. data/lib/fog/ecloud/requests/compute/get_server.rb +11 -0
  435. data/lib/fog/ecloud/requests/compute/get_server_configuration_option.rb +11 -0
  436. data/lib/fog/ecloud/requests/compute/get_server_configuration_options.rb +11 -0
  437. data/lib/fog/ecloud/requests/compute/get_servers.rb +11 -0
  438. data/lib/fog/ecloud/requests/compute/get_ssh_key.rb +11 -0
  439. data/lib/fog/ecloud/requests/compute/get_ssh_keys.rb +11 -0
  440. data/lib/fog/ecloud/requests/compute/get_storage_usage_detail.rb +11 -0
  441. data/lib/fog/ecloud/requests/compute/get_storage_usage_detail_summary.rb +11 -0
  442. data/lib/fog/ecloud/requests/compute/get_support_ticket.rb +11 -0
  443. data/lib/fog/ecloud/requests/compute/get_support_tickets.rb +11 -0
  444. data/lib/fog/ecloud/requests/compute/get_tag.rb +11 -0
  445. data/lib/fog/ecloud/requests/compute/get_tags.rb +11 -0
  446. data/lib/fog/ecloud/requests/compute/get_tasks.rb +11 -0
  447. data/lib/fog/ecloud/requests/compute/get_template.rb +11 -0
  448. data/lib/fog/ecloud/requests/compute/get_templates.rb +11 -0
  449. data/lib/fog/ecloud/requests/compute/get_trusted_network_group.rb +11 -0
  450. data/lib/fog/ecloud/requests/compute/get_trusted_network_groups.rb +11 -0
  451. data/lib/fog/ecloud/requests/compute/get_user.rb +11 -0
  452. data/lib/fog/ecloud/requests/compute/get_users.rb +11 -0
  453. data/lib/fog/ecloud/requests/compute/groups_create.rb +31 -0
  454. data/lib/fog/ecloud/requests/compute/groups_delete.rb +11 -0
  455. data/lib/fog/ecloud/requests/compute/groups_edit.rb +29 -0
  456. data/lib/fog/ecloud/requests/compute/groups_movedown.rb +11 -0
  457. data/lib/fog/ecloud/requests/compute/groups_moveup.rb +11 -0
  458. data/lib/fog/ecloud/requests/compute/internet_service_create.rb +67 -0
  459. data/lib/fog/ecloud/requests/compute/internet_service_delete.rb +11 -0
  460. data/lib/fog/ecloud/requests/compute/internet_service_edit.rb +60 -0
  461. data/lib/fog/ecloud/requests/compute/monitors_create_default.rb +11 -0
  462. data/lib/fog/ecloud/requests/compute/monitors_create_ecv.rb +40 -0
  463. data/lib/fog/ecloud/requests/compute/monitors_create_http.rb +44 -0
  464. data/lib/fog/ecloud/requests/compute/monitors_create_loopback.rb +11 -0
  465. data/lib/fog/ecloud/requests/compute/monitors_create_ping.rb +35 -0
  466. data/lib/fog/ecloud/requests/compute/monitors_disable.rb +11 -0
  467. data/lib/fog/ecloud/requests/compute/monitors_edit_ecv.rb +40 -0
  468. data/lib/fog/ecloud/requests/compute/monitors_edit_http.rb +44 -0
  469. data/lib/fog/ecloud/requests/compute/monitors_edit_ping.rb +35 -0
  470. data/lib/fog/ecloud/requests/compute/monitors_enable.rb +11 -0
  471. data/lib/fog/ecloud/requests/compute/node_service_create.rb +45 -0
  472. data/lib/fog/ecloud/requests/compute/node_service_delete.rb +11 -0
  473. data/lib/fog/ecloud/requests/compute/node_service_edit.rb +41 -0
  474. data/lib/fog/ecloud/requests/compute/power_off.rb +0 -12
  475. data/lib/fog/ecloud/requests/compute/power_on.rb +0 -12
  476. data/lib/fog/ecloud/requests/compute/power_shutdown.rb +1 -1
  477. data/lib/fog/ecloud/requests/compute/public_ip_activate.rb +11 -0
  478. data/lib/fog/ecloud/requests/compute/rnat_associations_create_device.rb +32 -0
  479. data/lib/fog/ecloud/requests/compute/rnat_associations_delete.rb +9 -0
  480. data/lib/fog/ecloud/requests/compute/rnat_associations_edit_network.rb +31 -0
  481. data/lib/fog/ecloud/requests/compute/rows_create.rb +29 -0
  482. data/lib/fog/ecloud/requests/compute/rows_delete.rb +11 -0
  483. data/lib/fog/ecloud/requests/compute/rows_edit.rb +29 -0
  484. data/lib/fog/ecloud/requests/compute/rows_movedown.rb +11 -0
  485. data/lib/fog/ecloud/requests/compute/rows_moveup.rb +11 -0
  486. data/lib/fog/ecloud/requests/compute/trusted_network_groups_create.rb +53 -0
  487. data/lib/fog/ecloud/requests/compute/trusted_network_groups_delete.rb +11 -0
  488. data/lib/fog/ecloud/requests/compute/trusted_network_groups_edit.rb +53 -0
  489. data/lib/fog/ecloud/requests/compute/virtual_machine_copy.rb +118 -0
  490. data/lib/fog/ecloud/requests/compute/virtual_machine_copy_identical.rb +45 -0
  491. data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +125 -0
  492. data/lib/fog/ecloud/requests/compute/virtual_machine_delete.rb +11 -0
  493. data/lib/fog/ecloud/requests/compute/virtual_machine_edit.rb +47 -0
  494. data/lib/fog/ecloud/requests/compute/virtual_machine_edit_hardware_configuration.rb +53 -0
  495. data/lib/fog/ecloud/requests/compute/virtual_machine_import.rb +67 -0
  496. data/lib/fog/glesys/compute.rb +2 -2
  497. data/lib/fog/glesys/models/compute/server.rb +5 -0
  498. data/lib/fog/glesys/models/compute/servers.rb +14 -8
  499. data/lib/fog/glesys/requests/compute/reboot.rb +14 -0
  500. data/lib/fog/go_grid.rb +1 -1
  501. data/lib/fog/go_grid/compute.rb +2 -3
  502. data/lib/fog/go_grid/models/compute/server.rb +2 -2
  503. data/lib/fog/google.rb +1 -1
  504. data/lib/fog/google/storage.rb +3 -3
  505. data/lib/fog/hp.rb +234 -0
  506. data/lib/fog/hp/README_HP.rdoc +60 -0
  507. data/lib/fog/hp/cdn.rb +131 -0
  508. data/lib/fog/hp/compute.rb +182 -0
  509. data/lib/fog/hp/models/compute/address.rb +71 -0
  510. data/lib/fog/hp/models/compute/addresses.rb +29 -0
  511. data/lib/fog/hp/models/compute/flavor.rb +24 -0
  512. data/lib/fog/hp/models/compute/flavors.rb +28 -0
  513. data/lib/fog/hp/models/compute/image.rb +37 -0
  514. data/lib/fog/hp/models/compute/images.rb +34 -0
  515. data/lib/fog/hp/models/compute/key_pair.rb +59 -0
  516. data/lib/fog/hp/models/compute/key_pairs.rb +31 -0
  517. data/lib/fog/hp/models/compute/security_group.rb +50 -0
  518. data/lib/fog/hp/models/compute/security_groups.rb +29 -0
  519. data/lib/fog/hp/models/compute/server.rb +225 -0
  520. data/lib/fog/{slicehost → hp}/models/compute/servers.rb +6 -8
  521. data/lib/fog/hp/models/storage/directories.rb +50 -0
  522. data/lib/fog/hp/models/storage/directory.rb +160 -0
  523. data/lib/fog/hp/models/storage/file.rb +87 -0
  524. data/lib/fog/hp/models/storage/files.rb +103 -0
  525. data/lib/fog/hp/requests/cdn/delete_container.rb +38 -0
  526. data/lib/fog/hp/requests/cdn/get_containers.rb +44 -0
  527. data/lib/fog/hp/requests/cdn/head_container.rb +50 -0
  528. data/lib/fog/hp/requests/cdn/post_container.rb +52 -0
  529. data/lib/fog/hp/requests/cdn/put_container.rb +53 -0
  530. data/lib/fog/hp/requests/compute/allocate_address.rb +49 -0
  531. data/lib/fog/hp/requests/compute/associate_address.rb +42 -0
  532. data/lib/fog/hp/requests/compute/change_password_server.rb +33 -0
  533. data/lib/fog/hp/requests/compute/confirm_resized_server.rb +34 -0
  534. data/lib/fog/hp/requests/compute/create_image.rb +63 -0
  535. data/lib/fog/hp/requests/compute/create_key_pair.rb +81 -0
  536. data/lib/fog/hp/requests/compute/create_security_group.rb +83 -0
  537. data/lib/fog/hp/requests/compute/create_security_group_rule.rb +75 -0
  538. data/lib/fog/hp/requests/compute/create_server.rb +140 -0
  539. data/lib/fog/hp/requests/compute/delete_image.rb +45 -0
  540. data/lib/fog/hp/requests/compute/delete_key_pair.rb +39 -0
  541. data/lib/fog/hp/requests/compute/delete_security_group.rb +41 -0
  542. data/lib/fog/hp/requests/compute/delete_security_group_rule.rb +49 -0
  543. data/lib/fog/hp/requests/compute/delete_server.rb +43 -0
  544. data/lib/fog/hp/requests/compute/disassociate_address.rb +39 -0
  545. data/lib/fog/hp/requests/compute/get_address.rb +45 -0
  546. data/lib/fog/hp/requests/compute/get_flavor_details.rb +51 -0
  547. data/lib/fog/hp/requests/compute/get_image_details.rb +43 -0
  548. data/lib/fog/hp/requests/compute/get_security_group.rb +57 -0
  549. data/lib/fog/hp/requests/compute/get_server_details.rb +52 -0
  550. data/lib/fog/hp/requests/compute/list_addresses.rb +41 -0
  551. data/lib/fog/hp/requests/compute/list_flavors.rb +44 -0
  552. data/lib/fog/hp/requests/compute/list_flavors_detail.rb +46 -0
  553. data/lib/fog/hp/requests/compute/list_images.rb +40 -0
  554. data/lib/fog/hp/requests/compute/list_images_detail.rb +49 -0
  555. data/lib/fog/hp/requests/compute/list_key_pairs.rb +44 -0
  556. data/lib/fog/hp/requests/compute/list_security_groups.rb +54 -0
  557. data/lib/fog/hp/requests/compute/list_server_addresses.rb +42 -0
  558. data/lib/fog/hp/requests/compute/list_server_private_addresses.rb +58 -0
  559. data/lib/fog/hp/requests/compute/list_server_public_addresses.rb +58 -0
  560. data/lib/fog/hp/requests/compute/list_servers.rb +41 -0
  561. data/lib/fog/hp/requests/compute/list_servers_detail.rb +56 -0
  562. data/lib/fog/hp/requests/compute/reboot_server.rb +34 -0
  563. data/lib/fog/hp/requests/compute/rebuild_server.rb +32 -0
  564. data/lib/fog/hp/requests/compute/release_address.rb +39 -0
  565. data/lib/fog/hp/requests/compute/resize_server.rb +39 -0
  566. data/lib/fog/hp/requests/compute/revert_resized_server.rb +35 -0
  567. data/lib/fog/hp/requests/compute/server_action.rb +25 -0
  568. data/lib/fog/hp/requests/compute/update_server.rb +42 -0
  569. data/lib/fog/hp/requests/storage/delete_container.rb +43 -0
  570. data/lib/fog/hp/requests/storage/delete_object.rb +44 -0
  571. data/lib/fog/hp/requests/storage/get_container.rb +92 -0
  572. data/lib/fog/hp/requests/storage/get_containers.rb +71 -0
  573. data/lib/fog/hp/requests/storage/get_object.rb +77 -0
  574. data/lib/fog/hp/requests/storage/head_container.rb +40 -0
  575. data/lib/fog/hp/requests/storage/head_containers.rb +37 -0
  576. data/lib/fog/hp/requests/storage/head_object.rb +35 -0
  577. data/lib/fog/hp/requests/storage/put_container.rb +48 -0
  578. data/lib/fog/hp/requests/storage/put_object.rb +94 -0
  579. data/lib/fog/hp/storage.rb +201 -0
  580. data/lib/fog/ibm.rb +2 -3
  581. data/lib/fog/ibm/compute.rb +1 -1
  582. data/lib/fog/ibm/models/compute/server.rb +2 -2
  583. data/lib/fog/ibm/storage.rb +1 -1
  584. data/lib/fog/identity.rb +24 -0
  585. data/lib/fog/image.rb +24 -0
  586. data/lib/fog/joyent/compute.rb +23 -8
  587. data/lib/fog/joyent/models/compute/keys.rb +2 -2
  588. data/lib/fog/joyent/models/compute/server.rb +1 -2
  589. data/lib/fog/joyent/requests/compute/list_datacenters.rb +17 -0
  590. data/lib/fog/libvirt.rb +1 -1
  591. data/lib/fog/libvirt/compute.rb +56 -28
  592. data/lib/fog/libvirt/models/compute/interface.rb +5 -25
  593. data/lib/fog/libvirt/models/compute/interfaces.rb +7 -45
  594. data/lib/fog/libvirt/models/compute/network.rb +3 -34
  595. data/lib/fog/libvirt/models/compute/networks.rb +6 -43
  596. data/lib/fog/libvirt/models/compute/nic.rb +54 -0
  597. data/lib/fog/libvirt/models/compute/nics.rb +16 -0
  598. data/lib/fog/libvirt/models/compute/node.rb +5 -16
  599. data/lib/fog/libvirt/models/compute/nodes.rb +9 -24
  600. data/lib/fog/libvirt/models/compute/pool.rb +26 -138
  601. data/lib/fog/libvirt/models/compute/pools.rb +6 -42
  602. data/lib/fog/libvirt/models/compute/server.rb +206 -308
  603. data/lib/fog/libvirt/models/compute/servers.rb +8 -63
  604. data/lib/fog/libvirt/models/compute/templates/server.xml.erb +17 -21
  605. data/lib/fog/libvirt/models/compute/templates/volume.xml.erb +2 -2
  606. data/lib/fog/libvirt/models/compute/{uri.rb → util/uri.rb} +1 -2
  607. data/lib/fog/libvirt/models/compute/util/util.rb +33 -0
  608. data/lib/fog/libvirt/models/compute/volume.rb +54 -122
  609. data/lib/fog/libvirt/models/compute/volumes.rb +2 -65
  610. data/lib/fog/libvirt/requests/compute/create_domain.rb +17 -0
  611. data/lib/fog/libvirt/requests/compute/create_volume.rb +17 -0
  612. data/lib/fog/libvirt/requests/compute/define_domain.rb +17 -0
  613. data/lib/fog/libvirt/requests/compute/define_pool.rb +17 -0
  614. data/lib/fog/libvirt/requests/compute/destroy_interface.rb +18 -0
  615. data/lib/fog/libvirt/requests/compute/destroy_network.rb +17 -0
  616. data/lib/fog/libvirt/requests/compute/get_node_info.rb +39 -0
  617. data/lib/fog/libvirt/requests/compute/list_domains.rb +106 -0
  618. data/lib/fog/libvirt/requests/compute/list_interfaces.rb +59 -0
  619. data/lib/fog/libvirt/requests/compute/list_networks.rb +58 -0
  620. data/lib/fog/libvirt/requests/compute/list_pool_volumes.rb +21 -0
  621. data/lib/fog/libvirt/requests/compute/list_pools.rb +72 -0
  622. data/lib/fog/libvirt/requests/compute/list_volumes.rb +89 -0
  623. data/lib/fog/libvirt/requests/compute/mock_files/domain.xml +40 -0
  624. data/lib/fog/libvirt/requests/compute/pool_action.rb +19 -0
  625. data/lib/fog/libvirt/requests/compute/update_display.rb +31 -0
  626. data/lib/fog/libvirt/requests/compute/vm_action.rb +19 -0
  627. data/lib/fog/libvirt/requests/compute/volume_action.rb +18 -0
  628. data/lib/fog/linode.rb +1 -1
  629. data/lib/fog/linode/compute.rb +2 -3
  630. data/lib/fog/linode/dns.rb +2 -3
  631. data/lib/fog/linode/requests/compute/avail_datacenters.rb +20 -0
  632. data/lib/fog/linode/requests/compute/avail_distributions.rb +38 -1
  633. data/lib/fog/linode/requests/compute/avail_kernels.rb +36 -1
  634. data/lib/fog/linode/requests/compute/avail_linodeplans.rb +37 -2
  635. data/lib/fog/linode/requests/compute/avail_stackscripts.rb +44 -0
  636. data/lib/fog/linode/requests/compute/linode_boot.rb +13 -0
  637. data/lib/fog/linode/requests/compute/linode_config_create.rb +13 -0
  638. data/lib/fog/linode/requests/compute/linode_config_list.rb +51 -0
  639. data/lib/fog/linode/requests/compute/linode_create.rb +15 -2
  640. data/lib/fog/linode/requests/compute/linode_delete.rb +13 -0
  641. data/lib/fog/linode/requests/compute/linode_disk_create.rb +14 -0
  642. data/lib/fog/linode/requests/compute/linode_disk_createfromdistribution.rb +14 -0
  643. data/lib/fog/linode/requests/compute/linode_disk_createfromstackscript.rb +1 -1
  644. data/lib/fog/linode/requests/compute/linode_disk_delete.rb +14 -0
  645. data/lib/fog/linode/requests/compute/linode_disk_list.rb +40 -1
  646. data/lib/fog/linode/requests/compute/linode_ip_list.rb +38 -0
  647. data/lib/fog/linode/requests/compute/linode_list.rb +53 -0
  648. data/lib/fog/linode/requests/compute/linode_reboot.rb +14 -1
  649. data/lib/fog/linode/requests/compute/linode_shutdown.rb +13 -0
  650. data/lib/fog/linode/requests/compute/linode_update.rb +13 -0
  651. data/lib/fog/local.rb +1 -1
  652. data/lib/fog/local/storage.rb +1 -1
  653. data/lib/fog/ninefold.rb +1 -1
  654. data/lib/fog/ninefold/compute.rb +4 -8
  655. data/lib/fog/ninefold/storage.rb +3 -3
  656. data/lib/fog/openstack.rb +90 -38
  657. data/lib/fog/openstack/compute.rb +223 -64
  658. data/lib/fog/openstack/identity.rb +226 -0
  659. data/lib/fog/openstack/image.rb +203 -0
  660. data/lib/fog/openstack/models/compute/address.rb +71 -0
  661. data/lib/fog/openstack/models/compute/addresses.rb +33 -0
  662. data/lib/fog/openstack/models/compute/flavor.rb +24 -4
  663. data/lib/fog/openstack/models/compute/host.rb +28 -0
  664. data/lib/fog/openstack/models/compute/hosts.rb +32 -0
  665. data/lib/fog/openstack/models/compute/key_pair.rb +60 -0
  666. data/lib/fog/openstack/models/compute/key_pairs.rb +31 -0
  667. data/lib/fog/openstack/models/compute/metadata.rb +5 -5
  668. data/lib/fog/openstack/models/compute/{meta.rb → metadatum.rb} +1 -1
  669. data/lib/fog/openstack/models/compute/network.rb +13 -0
  670. data/lib/fog/openstack/models/compute/networks.rb +29 -0
  671. data/lib/fog/openstack/models/compute/security_group.rb +44 -0
  672. data/lib/fog/openstack/models/compute/security_groups.rb +27 -0
  673. data/lib/fog/openstack/models/compute/server.rb +82 -5
  674. data/lib/fog/openstack/models/compute/snapshot.rb +43 -0
  675. data/lib/fog/openstack/models/compute/snapshots.rb +26 -0
  676. data/lib/fog/openstack/models/compute/tenant.rb +24 -0
  677. data/lib/fog/openstack/models/compute/tenants.rb +20 -0
  678. data/lib/fog/openstack/models/compute/volume.rb +58 -0
  679. data/lib/fog/openstack/models/compute/volumes.rb +26 -0
  680. data/lib/fog/openstack/models/identity/role.rb +50 -0
  681. data/lib/fog/openstack/models/identity/roles.rb +21 -0
  682. data/lib/fog/openstack/models/identity/tenant.rb +62 -0
  683. data/lib/fog/openstack/models/identity/tenants.rb +27 -0
  684. data/lib/fog/openstack/models/identity/user.rb +64 -0
  685. data/lib/fog/openstack/models/identity/users.rb +30 -0
  686. data/lib/fog/openstack/models/image/image.rb +85 -0
  687. data/lib/fog/openstack/models/image/images.rb +60 -0
  688. data/lib/fog/openstack/models/volume/volume.rb +46 -0
  689. data/lib/fog/openstack/models/volume/volumes.rb +27 -0
  690. data/lib/fog/openstack/requests/compute/add_fixed_ip.rb +29 -0
  691. data/lib/fog/openstack/requests/compute/allocate_address.rb +42 -0
  692. data/lib/fog/openstack/requests/compute/associate_address.rb +27 -0
  693. data/lib/fog/openstack/requests/compute/attach_volume.rb +28 -0
  694. data/lib/fog/openstack/requests/compute/boot_from_snapshot.rb +41 -0
  695. data/lib/fog/openstack/requests/compute/{change_password_server.rb → change_server_password.rb} +2 -2
  696. data/lib/fog/openstack/requests/compute/{confirm_resized_server.rb → confirm_resize_server.rb} +2 -2
  697. data/lib/fog/openstack/requests/compute/create_flavor.rb +82 -0
  698. data/lib/fog/openstack/requests/compute/create_image.rb +1 -1
  699. data/lib/fog/openstack/requests/compute/create_key_pair.rb +49 -0
  700. data/lib/fog/openstack/requests/compute/create_security_group.rb +47 -0
  701. data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +56 -0
  702. data/lib/fog/openstack/requests/compute/create_server.rb +16 -14
  703. data/lib/fog/openstack/requests/compute/create_volume.rb +54 -0
  704. data/lib/fog/openstack/requests/compute/create_volume_snapshot.rb +32 -0
  705. data/lib/fog/openstack/requests/compute/delete_flavor.rb +28 -0
  706. data/lib/fog/openstack/requests/compute/delete_key_pair.rb +31 -0
  707. data/lib/fog/openstack/requests/compute/{delete_meta.rb → delete_metadata.rb} +2 -2
  708. data/lib/fog/openstack/requests/compute/delete_security_group.rb +31 -0
  709. data/lib/fog/openstack/requests/compute/delete_security_group_rule.rb +31 -0
  710. data/lib/fog/openstack/requests/compute/delete_snapshot.rb +26 -0
  711. data/lib/fog/openstack/requests/compute/delete_volume.rb +26 -0
  712. data/lib/fog/openstack/requests/compute/detach_volume.rb +21 -0
  713. data/lib/fog/openstack/requests/compute/disassociate_address.rb +27 -0
  714. data/lib/fog/openstack/requests/compute/get_address.rb +41 -0
  715. data/lib/fog/openstack/requests/compute/get_console_output.rb +28 -0
  716. data/lib/fog/openstack/requests/compute/get_host_details.rb +74 -0
  717. data/lib/fog/openstack/requests/compute/{get_meta.rb → get_metadata.rb} +2 -2
  718. data/lib/fog/openstack/requests/compute/get_quota.rb +42 -0
  719. data/lib/fog/openstack/requests/compute/get_quota_defaults.rb +42 -0
  720. data/lib/fog/openstack/requests/compute/get_security_group.rb +49 -0
  721. data/lib/fog/openstack/requests/compute/get_server_volumes.rb +23 -0
  722. data/lib/fog/openstack/requests/compute/get_snapshot_details.rb +39 -0
  723. data/lib/fog/openstack/requests/compute/get_usage.rb +53 -0
  724. data/lib/fog/openstack/requests/compute/get_vnc_console.rb +40 -0
  725. data/lib/fog/openstack/requests/compute/get_volume_details.rb +42 -0
  726. data/lib/fog/openstack/requests/compute/list_address_pools.rb +23 -0
  727. data/lib/fog/openstack/requests/compute/list_all_addresses.rb +64 -0
  728. data/lib/fog/openstack/requests/compute/list_hosts.rb +32 -0
  729. data/lib/fog/openstack/requests/compute/list_key_pairs.rb +39 -0
  730. data/lib/fog/openstack/requests/compute/list_private_addresses.rb +1 -1
  731. data/lib/fog/openstack/requests/compute/list_public_addresses.rb +1 -1
  732. data/lib/fog/openstack/requests/compute/list_security_groups.rb +74 -0
  733. data/lib/fog/openstack/requests/compute/list_servers.rb +6 -2
  734. data/lib/fog/openstack/requests/compute/list_servers_detail.rb +6 -2
  735. data/lib/fog/openstack/requests/compute/list_snapshots.rb +32 -0
  736. data/lib/fog/openstack/requests/compute/list_tenants.rb +43 -0
  737. data/lib/fog/openstack/requests/compute/list_usages.rb +43 -0
  738. data/lib/fog/openstack/requests/compute/list_volumes.rb +53 -0
  739. data/lib/fog/openstack/requests/compute/live_migrate_server.rb +31 -0
  740. data/lib/fog/openstack/requests/compute/migrate_server.rb +24 -0
  741. data/lib/fog/openstack/requests/compute/pause_server.rb +24 -0
  742. data/lib/fog/openstack/requests/compute/release_address.rb +22 -0
  743. data/lib/fog/openstack/requests/compute/remove_fixed_ip.rb +29 -0
  744. data/lib/fog/openstack/requests/compute/rescue_server.rb +24 -0
  745. data/lib/fog/openstack/requests/compute/resume_server.rb +24 -0
  746. data/lib/fog/openstack/requests/compute/{revert_resized_server.rb → revert_resize_server.rb} +0 -0
  747. data/lib/fog/openstack/requests/compute/server_action.rb +2 -2
  748. data/lib/fog/openstack/requests/compute/server_actions.rb +27 -0
  749. data/lib/fog/openstack/requests/compute/server_diagnostics.rb +25 -0
  750. data/lib/fog/openstack/requests/compute/set_metadata.rb +1 -1
  751. data/lib/fog/openstack/requests/compute/set_tenant.rb +21 -0
  752. data/lib/fog/openstack/requests/compute/suspend_server.rb +24 -0
  753. data/lib/fog/openstack/requests/compute/unpause_server.rb +24 -0
  754. data/lib/fog/openstack/requests/compute/update_metadata.rb +1 -1
  755. data/lib/fog/openstack/requests/compute/update_quota.rb +45 -0
  756. data/lib/fog/openstack/requests/compute/update_server.rb +1 -1
  757. data/lib/fog/openstack/requests/identity/add_user_to_tenant.rb +29 -0
  758. data/lib/fog/openstack/requests/identity/check_token.rb +23 -0
  759. data/lib/fog/openstack/requests/identity/create_role.rb +37 -0
  760. data/lib/fog/openstack/requests/identity/create_tenant.rb +34 -0
  761. data/lib/fog/openstack/requests/identity/create_user.rb +47 -0
  762. data/lib/fog/openstack/requests/identity/create_user_role.rb +26 -0
  763. data/lib/fog/openstack/requests/identity/delete_role.rb +32 -0
  764. data/lib/fog/openstack/requests/identity/delete_tenant.rb +31 -0
  765. data/lib/fog/openstack/requests/identity/delete_user.rb +32 -0
  766. data/lib/fog/openstack/requests/identity/delete_user_role.rb +26 -0
  767. data/lib/fog/openstack/requests/identity/get_role.rb +28 -0
  768. data/lib/fog/openstack/requests/identity/get_tenant.rb +31 -0
  769. data/lib/fog/openstack/requests/identity/get_tenants_by_id.rb +23 -0
  770. data/lib/fog/openstack/requests/identity/get_tenants_by_name.rb +23 -0
  771. data/lib/fog/openstack/requests/identity/get_user_by_id.rb +34 -0
  772. data/lib/fog/openstack/requests/identity/get_user_by_name.rb +23 -0
  773. data/lib/fog/openstack/requests/identity/list_endpoints_for_token.rb +23 -0
  774. data/lib/fog/openstack/requests/identity/list_roles.rb +29 -0
  775. data/lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb +24 -0
  776. data/lib/fog/openstack/requests/identity/list_tenants.rb +44 -0
  777. data/lib/fog/openstack/requests/identity/list_user_global_roles.rb +22 -0
  778. data/lib/fog/openstack/requests/identity/list_users.rb +25 -0
  779. data/lib/fog/openstack/requests/identity/remove_user_from_tenant.rb +20 -0
  780. data/lib/fog/openstack/requests/identity/update_tenant.rb +30 -0
  781. data/lib/fog/openstack/requests/identity/update_user.rb +36 -0
  782. data/lib/fog/openstack/requests/identity/validate_token.rb +23 -0
  783. data/lib/fog/openstack/requests/image/add_member_to_image.rb +23 -0
  784. data/lib/fog/openstack/requests/image/create_image.rb +77 -0
  785. data/lib/fog/openstack/requests/image/delete_image.rb +27 -0
  786. data/lib/fog/openstack/requests/image/get_image.rb +45 -0
  787. data/lib/fog/openstack/requests/image/get_image_by_id.rb +32 -0
  788. data/lib/fog/openstack/requests/image/get_image_members.rb +29 -0
  789. data/lib/fog/openstack/requests/image/get_shared_images.rb +29 -0
  790. data/lib/fog/openstack/requests/image/list_public_images.rb +32 -0
  791. data/lib/fog/openstack/requests/image/list_public_images_detailed.rb +52 -0
  792. data/lib/fog/openstack/requests/image/remove_member_from_image.rb +23 -0
  793. data/lib/fog/openstack/requests/image/set_tenant.rb +21 -0
  794. data/lib/fog/openstack/requests/image/update_image.rb +65 -0
  795. data/lib/fog/openstack/requests/volume/create_volume.rb +54 -0
  796. data/lib/fog/openstack/requests/volume/create_volume_snapshot.rb +32 -0
  797. data/lib/fog/openstack/requests/volume/delete_snapshot.rb +26 -0
  798. data/lib/fog/openstack/requests/volume/delete_volume.rb +26 -0
  799. data/lib/fog/openstack/requests/volume/get_snapshot_details.rb +39 -0
  800. data/lib/fog/openstack/requests/volume/get_volume_details.rb +42 -0
  801. data/lib/fog/openstack/requests/volume/list_snapshots.rb +32 -0
  802. data/lib/fog/openstack/requests/volume/list_volumes.rb +55 -0
  803. data/lib/fog/openstack/requests/volume/set_tenant.rb +21 -0
  804. data/lib/fog/openstack/volume.rb +204 -0
  805. data/lib/fog/ovirt/compute.rb +15 -6
  806. data/lib/fog/ovirt/models/compute/server.rb +18 -0
  807. data/lib/fog/ovirt/models/compute/template.rb +8 -1
  808. data/lib/fog/ovirt/models/compute/volume.rb +35 -0
  809. data/lib/fog/ovirt/models/compute/volumes.rb +32 -0
  810. data/lib/fog/ovirt/requests/compute/add_volume.rb +23 -0
  811. data/lib/fog/ovirt/requests/compute/destroy_volume.rb +25 -0
  812. data/lib/fog/ovirt/requests/compute/list_template_volumes.rb +20 -0
  813. data/lib/fog/ovirt/requests/compute/list_vm_volumes.rb +20 -0
  814. data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +0 -2
  815. data/lib/fog/ovirt/requests/compute/mock_files/volumes.xml +40 -0
  816. data/lib/fog/ovirt/requests/compute/storage_domains.rb +2 -2
  817. data/lib/fog/providers.rb +2 -1
  818. data/lib/fog/rackspace.rb +2 -2
  819. data/lib/fog/rackspace/cdn.rb +2 -3
  820. data/lib/fog/rackspace/compute.rb +111 -7
  821. data/lib/fog/rackspace/dns.rb +2 -3
  822. data/lib/fog/rackspace/load_balancers.rb +2 -3
  823. data/lib/fog/rackspace/models/compute/images.rb +3 -1
  824. data/lib/fog/rackspace/models/compute/server.rb +2 -2
  825. data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +8 -1
  826. data/lib/fog/rackspace/models/storage/file.rb +2 -1
  827. data/lib/fog/rackspace/models/storage/files.rb +1 -1
  828. data/lib/fog/rackspace/requests/compute/create_image.rb +1 -1
  829. data/lib/fog/rackspace/requests/compute/create_server.rb +1 -1
  830. data/lib/fog/rackspace/requests/compute/get_server_details.rb +1 -1
  831. data/lib/fog/rackspace/requests/compute/server_action.rb +1 -1
  832. data/lib/fog/rackspace/requests/compute/update_server.rb +1 -1
  833. data/lib/fog/rackspace/requests/dns/add_records.rb +1 -1
  834. data/lib/fog/rackspace/requests/dns/create_domains.rb +1 -1
  835. data/lib/fog/rackspace/requests/dns/modify_domain.rb +1 -1
  836. data/lib/fog/rackspace/requests/dns/modify_record.rb +1 -1
  837. data/lib/fog/rackspace/requests/load_balancers/create_access_rule.rb +1 -1
  838. data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +5 -2
  839. data/lib/fog/rackspace/requests/load_balancers/create_node.rb +1 -1
  840. data/lib/fog/rackspace/requests/load_balancers/create_virtual_ip.rb +1 -1
  841. data/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb +1 -1
  842. data/lib/fog/rackspace/requests/load_balancers/set_connection_throttling.rb +1 -1
  843. data/lib/fog/rackspace/requests/load_balancers/set_error_page.rb +1 -1
  844. data/lib/fog/rackspace/requests/load_balancers/set_monitor.rb +1 -1
  845. data/lib/fog/rackspace/requests/load_balancers/set_session_persistence.rb +1 -1
  846. data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +1 -1
  847. data/lib/fog/rackspace/requests/load_balancers/update_node.rb +1 -1
  848. data/lib/fog/rackspace/storage.rb +37 -11
  849. data/lib/fog/storage.rb +3 -0
  850. data/lib/fog/storm_on_demand.rb +1 -1
  851. data/lib/fog/storm_on_demand/compute.rb +2 -3
  852. data/lib/fog/storm_on_demand/requests/compute/add_balancer_node.rb +1 -1
  853. data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +1 -1
  854. data/lib/fog/storm_on_demand/requests/compute/create_server.rb +1 -1
  855. data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +1 -1
  856. data/lib/fog/storm_on_demand/requests/compute/get_server.rb +1 -1
  857. data/lib/fog/storm_on_demand/requests/compute/get_stats.rb +1 -1
  858. data/lib/fog/storm_on_demand/requests/compute/list_balancers.rb +1 -1
  859. data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +1 -1
  860. data/lib/fog/storm_on_demand/requests/compute/list_images.rb +1 -1
  861. data/lib/fog/storm_on_demand/requests/compute/list_private_ips.rb +1 -1
  862. data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +1 -1
  863. data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +1 -1
  864. data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +1 -1
  865. data/lib/fog/storm_on_demand/requests/compute/remove_balancer_node.rb +1 -1
  866. data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +1 -1
  867. data/lib/fog/terremark.rb +1 -1
  868. data/lib/fog/terremark/shared.rb +1 -1
  869. data/lib/fog/vcloud.rb +1 -1
  870. data/lib/fog/vcloud/compute.rb +2 -2
  871. data/lib/fog/vcloud/requests/compute/configure_vm.rb +1 -139
  872. data/lib/fog/virtual_box.rb +1 -1
  873. data/lib/fog/virtual_box/compute.rb +1 -1
  874. data/lib/fog/virtual_box/models/compute/server.rb +2 -2
  875. data/lib/fog/vmfusion.rb +1 -1
  876. data/lib/fog/vmfusion/compute.rb +1 -1
  877. data/lib/fog/volume.rb +25 -0
  878. data/lib/fog/voxel.rb +1 -1
  879. data/lib/fog/voxel/compute.rb +1 -1
  880. data/lib/fog/vsphere/compute.rb +6 -3
  881. data/lib/fog/vsphere/models/compute/server.rb +31 -1
  882. data/lib/fog/vsphere/requests/compute/vm_clone.rb +16 -5
  883. data/lib/fog/vsphere/requests/compute/vm_config_vnc.rb +47 -0
  884. data/lib/fog/xenserver.rb +56 -0
  885. data/lib/fog/xenserver/compute.rb +122 -0
  886. data/lib/fog/xenserver/models/compute/guest_metrics.rb +28 -0
  887. data/lib/fog/xenserver/models/compute/host.rb +46 -0
  888. data/lib/fog/xenserver/models/compute/hosts.rb +29 -0
  889. data/lib/fog/xenserver/models/compute/network.rb +58 -0
  890. data/lib/fog/xenserver/models/compute/networks.rb +33 -0
  891. data/lib/fog/xenserver/models/compute/pbd.rb +33 -0
  892. data/lib/fog/xenserver/models/compute/pbds.rb +33 -0
  893. data/lib/fog/xenserver/models/compute/pif.rb +46 -0
  894. data/lib/fog/xenserver/models/compute/pifs.rb +33 -0
  895. data/lib/fog/xenserver/models/compute/pool.rb +40 -0
  896. data/lib/fog/xenserver/models/compute/pools.rb +33 -0
  897. data/lib/fog/xenserver/models/compute/server.rb +211 -0
  898. data/lib/fog/xenserver/models/compute/servers.rb +63 -0
  899. data/lib/fog/xenserver/models/compute/storage_repositories.rb +31 -0
  900. data/lib/fog/xenserver/models/compute/storage_repository.rb +47 -0
  901. data/lib/fog/xenserver/models/compute/vbd.rb +90 -0
  902. data/lib/fog/xenserver/models/compute/vbd_metrics.rb +27 -0
  903. data/lib/fog/xenserver/models/compute/vbds.rb +33 -0
  904. data/lib/fog/xenserver/models/compute/vdi.rb +102 -0
  905. data/lib/fog/xenserver/models/compute/vdis.rb +29 -0
  906. data/lib/fog/xenserver/models/compute/vif.rb +51 -0
  907. data/lib/fog/xenserver/models/compute/vifs.rb +29 -0
  908. data/lib/fog/xenserver/parser.rb +36 -0
  909. data/lib/fog/xenserver/parsers/get_hosts.rb +19 -0
  910. data/lib/fog/xenserver/parsers/get_networks.rb +19 -0
  911. data/lib/fog/xenserver/parsers/get_pools.rb +19 -0
  912. data/lib/fog/xenserver/parsers/get_records.rb +19 -0
  913. data/lib/fog/xenserver/parsers/get_storage_repositories.rb +19 -0
  914. data/lib/fog/xenserver/parsers/get_vbds.rb +19 -0
  915. data/lib/fog/xenserver/parsers/get_vifs.rb +19 -0
  916. data/lib/fog/xenserver/parsers/get_vms.rb +20 -0
  917. data/lib/fog/xenserver/requests/compute/clone_server.rb +31 -0
  918. data/lib/fog/xenserver/requests/compute/create_server.rb +126 -0
  919. data/lib/fog/xenserver/requests/compute/create_vbd.rb +40 -0
  920. data/lib/fog/xenserver/requests/compute/create_vdi.rb +33 -0
  921. data/lib/fog/xenserver/requests/compute/create_vif.rb +57 -0
  922. data/lib/fog/xenserver/requests/compute/destroy_server.rb +22 -0
  923. data/lib/fog/xenserver/requests/compute/destroy_vdi.rb +22 -0
  924. data/lib/fog/xenserver/requests/compute/destroy_vif.rb +22 -0
  925. data/lib/fog/xenserver/requests/compute/eject_vbd.rb +22 -0
  926. data/lib/fog/xenserver/requests/compute/get_record.rb +29 -0
  927. data/lib/fog/xenserver/requests/compute/get_records.rb +30 -0
  928. data/lib/fog/xenserver/requests/compute/insert_vbd.rb +22 -0
  929. data/lib/fog/xenserver/requests/compute/provision_server.rb +21 -0
  930. data/lib/fog/xenserver/requests/compute/reboot_server.rb +23 -0
  931. data/lib/fog/xenserver/requests/compute/scan_sr.rb +22 -0
  932. data/lib/fog/xenserver/requests/compute/set_affinity.rb +25 -0
  933. data/lib/fog/xenserver/requests/compute/set_attribute.rb +25 -0
  934. data/lib/fog/xenserver/requests/compute/shutdown_server.rb +23 -0
  935. data/lib/fog/xenserver/requests/compute/start_server.rb +23 -0
  936. data/lib/fog/xenserver/requests/compute/start_vm.rb +25 -0
  937. data/lib/fog/xenserver/requests/compute/unplug_vbd.rb +30 -0
  938. data/lib/fog/xenserver/utilities.rb +8 -0
  939. data/lib/fog/zerigo.rb +1 -1
  940. data/lib/fog/zerigo/dns.rb +1 -1
  941. data/spec/core/current_machine_spec.rb +14 -4
  942. data/spec/spec_helper.rb +1 -1
  943. data/tests/aws/credentials_tests.rb +57 -0
  944. data/tests/aws/models/compute/address_tests.rb +7 -0
  945. data/tests/aws/models/compute/dhcp_option_tests.rb +4 -0
  946. data/tests/aws/models/compute/dhcp_options_tests.rb +4 -0
  947. data/tests/aws/models/compute/internet_gateway_tests.rb +3 -0
  948. data/tests/aws/models/compute/internet_gateways_tests.rb +4 -0
  949. data/tests/aws/models/compute/network_interfaces_test.rb +12 -0
  950. data/tests/aws/models/compute/security_group_tests.rb +14 -0
  951. data/tests/aws/models/compute/volume_tests.rb +5 -1
  952. data/tests/aws/models/elb/model_tests.rb +36 -2
  953. data/tests/aws/models/iam/access_keys_tests.rb +53 -0
  954. data/tests/aws/models/iam/policies_tests.rb +56 -0
  955. data/tests/aws/models/iam/users_tests.rb +54 -0
  956. data/tests/aws/models/storage/url_tests.rb +22 -0
  957. data/tests/aws/requests/compute/dhcp_options_tests.rb +40 -0
  958. data/tests/aws/requests/compute/internet_gateway_tests.rb +44 -0
  959. data/tests/aws/requests/compute/network_interface_tests.rb +175 -0
  960. data/tests/aws/requests/compute/security_group_tests.rb +5 -4
  961. data/tests/aws/requests/compute/volume_tests.rb +34 -5
  962. data/tests/aws/requests/dns/dns_tests.rb +1 -1
  963. data/tests/aws/requests/dynamodb/item_tests.rb +20 -0
  964. data/tests/aws/requests/elb/helper.rb +1 -0
  965. data/tests/aws/requests/elb/load_balancer_tests.rb +2 -2
  966. data/tests/aws/requests/iam/role_tests.rb +168 -0
  967. data/tests/aws/requests/iam/user_policy_tests.rb +10 -0
  968. data/tests/aws/requests/iam/user_tests.rb +4 -0
  969. data/tests/aws/requests/sns/subscription_tests.rb +2 -2
  970. data/tests/aws/requests/storage/object_tests.rb +5 -0
  971. data/tests/brightbox/requests/compute/helper.rb +23 -3
  972. data/tests/cloudstack/requests/virtual_machine_tests.rb +10 -10
  973. data/tests/compute/helper.rb +37 -8
  974. data/tests/compute/models/flavors_tests.rb +1 -1
  975. data/tests/compute/models/server_tests.rb +1 -1
  976. data/tests/compute/models/servers_tests.rb +2 -1
  977. data/tests/dns/helper.rb +0 -3
  978. data/tests/glesys/requests/compute/helper.rb +7 -2
  979. data/tests/helper.rb +9 -1
  980. data/tests/helpers/mock_helper.rb +11 -4
  981. data/tests/helpers/succeeds_helper.rb +2 -3
  982. data/tests/hp/models/compute/address_tests.rb +18 -0
  983. data/tests/hp/models/compute/addresses_tests.rb +5 -0
  984. data/tests/hp/models/compute/key_pair_tests.rb +27 -0
  985. data/tests/hp/models/compute/key_pairs_tests.rb +5 -0
  986. data/tests/hp/models/compute/security_group_tests.rb +36 -0
  987. data/tests/hp/models/compute/security_groups_tests.rb +5 -0
  988. data/tests/hp/requests/cdn/container_tests.rb +56 -0
  989. data/tests/hp/requests/compute/address_tests.rb +72 -0
  990. data/tests/hp/requests/compute/flavor_tests.rb +45 -0
  991. data/tests/hp/requests/compute/image_tests.rb +79 -0
  992. data/tests/hp/requests/compute/key_pair_tests.rb +65 -0
  993. data/tests/hp/requests/compute/security_group_rule_tests.rb +54 -0
  994. data/tests/hp/requests/compute/security_group_tests.rb +64 -0
  995. data/tests/hp/requests/compute/server_address_tests.rb +45 -0
  996. data/tests/hp/requests/compute/server_tests.rb +127 -0
  997. data/tests/hp/requests/storage/container_tests.rb +78 -0
  998. data/tests/hp/requests/storage/object_tests.rb +81 -0
  999. data/tests/libvirt/compute_tests.rb +17 -0
  1000. data/tests/libvirt/models/compute/interface_tests.rb +27 -0
  1001. data/tests/libvirt/models/compute/interfaces_tests.rb +14 -0
  1002. data/tests/libvirt/models/compute/network_tests.rb +27 -0
  1003. data/tests/libvirt/models/compute/networks_tests.rb +13 -0
  1004. data/tests/libvirt/models/compute/nic_tests.rb +31 -0
  1005. data/tests/libvirt/models/compute/nics_tests.rb +10 -0
  1006. data/tests/libvirt/models/compute/pool_tests.rb +27 -0
  1007. data/tests/libvirt/models/compute/pools_tests.rb +13 -0
  1008. data/tests/libvirt/models/compute/server_tests.rb +58 -0
  1009. data/tests/libvirt/models/compute/servers_tests.rb +14 -0
  1010. data/tests/libvirt/models/compute/volume_tests.rb +30 -0
  1011. data/tests/libvirt/models/compute/volumes_tests.rb +14 -0
  1012. data/tests/libvirt/requests/compute/create_domain_tests.rb +21 -0
  1013. data/tests/libvirt/requests/compute/define_domain_tests.rb +11 -0
  1014. data/tests/libvirt/requests/compute/update_display.rb +13 -0
  1015. data/tests/openstack/models/identity/role_tests.rb +27 -0
  1016. data/tests/openstack/models/identity/roles_tests.rb +19 -0
  1017. data/tests/openstack/models/identity/tenant_tests.rb +24 -0
  1018. data/tests/openstack/models/identity/tenants_tests.rb +26 -0
  1019. data/tests/openstack/models/identity/user_tests.rb +46 -0
  1020. data/tests/openstack/models/identity/users_tests.rb +33 -0
  1021. data/tests/openstack/models/image/image_tests.rb +35 -0
  1022. data/tests/openstack/models/image/images_tests.rb +14 -0
  1023. data/tests/openstack/requests/compute/address_tests.rb +49 -0
  1024. data/tests/openstack/requests/compute/flavor_tests.rb +18 -5
  1025. data/tests/openstack/requests/compute/keypair_tests.rb +30 -0
  1026. data/tests/openstack/requests/compute/quota_tests.rb +44 -0
  1027. data/tests/openstack/requests/compute/security_group_tests.rb +51 -0
  1028. data/tests/openstack/requests/compute/tenant_tests.rb +19 -0
  1029. data/tests/openstack/requests/compute/volume_tests.rb +39 -0
  1030. data/tests/openstack/requests/identity/role_tests.rb +41 -0
  1031. data/tests/openstack/requests/identity/tenant_tests.rb +53 -0
  1032. data/tests/openstack/requests/identity/user_tests.rb +29 -0
  1033. data/tests/openstack/requests/image/image_tests.rb +98 -0
  1034. data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +1 -1
  1035. data/tests/rackspace/helper.rb +1 -1
  1036. data/tests/rackspace/models/load_balancers/access_list_tests.rb +1 -1
  1037. data/tests/rackspace/models/load_balancers/access_lists_tests.rb +1 -1
  1038. data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +13 -1
  1039. data/tests/rackspace/models/load_balancers/load_balancers_tests.rb +1 -1
  1040. data/tests/rackspace/models/load_balancers/node_tests.rb +1 -1
  1041. data/tests/rackspace/models/load_balancers/nodes_tests.rb +1 -1
  1042. data/tests/rackspace/requests/load_balancers/helper.rb +10 -2
  1043. data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +13 -4
  1044. data/tests/rackspace/requests/load_balancers/node_tests.rb +5 -5
  1045. data/tests/storage/helper.rb +3 -0
  1046. data/tests/vsphere/requests/compute/vm_config_vnc_tests.rb +19 -0
  1047. data/tests/xenserver/README +21 -0
  1048. data/tests/xenserver/compute_tests.rb +52 -0
  1049. data/tests/xenserver/helper.rb +36 -0
  1050. data/tests/xenserver/models/compute/host_tests.rb +68 -0
  1051. data/tests/xenserver/models/compute/hosts_tests.rb +22 -0
  1052. data/tests/xenserver/models/compute/network_tests.rb +67 -0
  1053. data/tests/xenserver/models/compute/networks_tests.rb +22 -0
  1054. data/tests/xenserver/models/compute/pbd_tests.rb +44 -0
  1055. data/tests/xenserver/models/compute/pbds_tests.rb +22 -0
  1056. data/tests/xenserver/models/compute/pif_tests.rb +58 -0
  1057. data/tests/xenserver/models/compute/pifs_tests.rb +22 -0
  1058. data/tests/xenserver/models/compute/pool_tests.rb +50 -0
  1059. data/tests/xenserver/models/compute/pools_tests.rb +30 -0
  1060. data/tests/xenserver/models/compute/server_tests.rb +167 -0
  1061. data/tests/xenserver/models/compute/servers_tests.rb +88 -0
  1062. data/tests/xenserver/models/compute/storage_repositories_tests.rb +30 -0
  1063. data/tests/xenserver/models/compute/storage_repository_tests.rb +63 -0
  1064. data/tests/xenserver/models/compute/vbd_tests.rb +115 -0
  1065. data/tests/xenserver/models/compute/vbds_tests.rb +22 -0
  1066. data/tests/xenserver/models/compute/vif_tests.rb +53 -0
  1067. data/tests/xenserver/models/compute/vifs_tests.rb +22 -0
  1068. data/tests/xenserver/requests/compute/clone_server_tests.rb +32 -0
  1069. data/tests/xenserver/requests/compute/create_server_tests.rb +129 -0
  1070. data/tests/xenserver/requests/compute/create_vdi_tests.rb +80 -0
  1071. data/tests/xenserver/requests/compute/create_vif_tests.rb +88 -0
  1072. data/tests/xenserver/requests/compute/destroy_vdi_tests.rb +25 -0
  1073. data/tests/xenserver/requests/compute/get_record_tests.rb +15 -0
  1074. data/tests/xenserver/requests/compute/set_attribute_tests.rb +66 -0
  1075. data/tests/xenserver/xenserver_tests.rb +34 -0
  1076. metadata +938 -232
  1077. data/lib/fog/bin/slicehost.rb +0 -36
  1078. data/lib/fog/brightbox/requests/compute/resize_server.rb +0 -19
  1079. data/lib/fog/ecloud/models/compute/ip.rb +0 -49
  1080. data/lib/fog/ecloud/models/compute/ips.rb +0 -32
  1081. data/lib/fog/ecloud/models/compute/vdc.rb +0 -81
  1082. data/lib/fog/ecloud/models/compute/vdcs.rb +0 -40
  1083. data/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +0 -109
  1084. data/lib/fog/ecloud/requests/compute/add_internet_service.rb +0 -149
  1085. data/lib/fog/ecloud/requests/compute/add_node.rb +0 -62
  1086. data/lib/fog/ecloud/requests/compute/clone_vapp.rb +0 -40
  1087. data/lib/fog/ecloud/requests/compute/configure_internet_service.rb +0 -112
  1088. data/lib/fog/ecloud/requests/compute/configure_network.rb +0 -44
  1089. data/lib/fog/ecloud/requests/compute/configure_network_ip.rb +0 -66
  1090. data/lib/fog/ecloud/requests/compute/configure_node.rb +0 -56
  1091. data/lib/fog/ecloud/requests/compute/configure_vapp.rb +0 -144
  1092. data/lib/fog/ecloud/requests/compute/delete_internet_service.rb +0 -22
  1093. data/lib/fog/ecloud/requests/compute/delete_node.rb +0 -22
  1094. data/lib/fog/ecloud/requests/compute/delete_vapp.rb +0 -29
  1095. data/lib/fog/ecloud/requests/compute/get_customization_options.rb +0 -22
  1096. data/lib/fog/ecloud/requests/compute/get_network_extensions.rb +0 -33
  1097. data/lib/fog/ecloud/requests/compute/get_network_ip.rb +0 -43
  1098. data/lib/fog/ecloud/requests/compute/get_network_ips.rb +0 -35
  1099. data/lib/fog/ecloud/requests/compute/get_vapp.rb +0 -99
  1100. data/lib/fog/ecloud/requests/compute/get_vdc.rb +0 -84
  1101. data/lib/fog/ecloud/requests/compute/get_versions.rb +0 -37
  1102. data/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +0 -142
  1103. data/lib/fog/ecloud/requests/compute/login.rb +0 -48
  1104. data/lib/fog/libvirt/models/compute/util.rb +0 -24
  1105. data/lib/fog/openstack/requests/compute/update_meta.rb +0 -45
  1106. data/lib/fog/slicehost.rb +0 -12
  1107. data/lib/fog/slicehost/compute.rb +0 -104
  1108. data/lib/fog/slicehost/dns.rb +0 -101
  1109. data/lib/fog/slicehost/models/compute/flavor.rb +0 -45
  1110. data/lib/fog/slicehost/models/compute/flavors.rb +0 -28
  1111. data/lib/fog/slicehost/models/compute/image.rb +0 -17
  1112. data/lib/fog/slicehost/models/compute/images.rb +0 -27
  1113. data/lib/fog/slicehost/models/compute/server.rb +0 -113
  1114. data/lib/fog/slicehost/models/dns/record.rb +0 -73
  1115. data/lib/fog/slicehost/models/dns/records.rb +0 -36
  1116. data/lib/fog/slicehost/models/dns/zone.rb +0 -69
  1117. data/lib/fog/slicehost/models/dns/zones.rb +0 -28
  1118. data/lib/fog/slicehost/parsers/compute/create_slice.rb +0 -31
  1119. data/lib/fog/slicehost/parsers/compute/get_backups.rb +0 -32
  1120. data/lib/fog/slicehost/parsers/compute/get_flavor.rb +0 -26
  1121. data/lib/fog/slicehost/parsers/compute/get_flavors.rb +0 -30
  1122. data/lib/fog/slicehost/parsers/compute/get_image.rb +0 -26
  1123. data/lib/fog/slicehost/parsers/compute/get_images.rb +0 -30
  1124. data/lib/fog/slicehost/parsers/compute/get_slice.rb +0 -31
  1125. data/lib/fog/slicehost/parsers/compute/get_slices.rb +0 -35
  1126. data/lib/fog/slicehost/parsers/dns/create_record.rb +0 -32
  1127. data/lib/fog/slicehost/parsers/dns/create_zone.rb +0 -26
  1128. data/lib/fog/slicehost/parsers/dns/get_record.rb +0 -38
  1129. data/lib/fog/slicehost/parsers/dns/get_records.rb +0 -38
  1130. data/lib/fog/slicehost/parsers/dns/get_zone.rb +0 -26
  1131. data/lib/fog/slicehost/parsers/dns/get_zones.rb +0 -30
  1132. data/lib/fog/slicehost/requests/compute/create_slice.rb +0 -41
  1133. data/lib/fog/slicehost/requests/compute/delete_slice.rb +0 -23
  1134. data/lib/fog/slicehost/requests/compute/get_backups.rb +0 -29
  1135. data/lib/fog/slicehost/requests/compute/get_flavor.rb +0 -32
  1136. data/lib/fog/slicehost/requests/compute/get_flavors.rb +0 -29
  1137. data/lib/fog/slicehost/requests/compute/get_image.rb +0 -30
  1138. data/lib/fog/slicehost/requests/compute/get_images.rb +0 -27
  1139. data/lib/fog/slicehost/requests/compute/get_slice.rb +0 -38
  1140. data/lib/fog/slicehost/requests/compute/get_slices.rb +0 -35
  1141. data/lib/fog/slicehost/requests/compute/reboot_slice.rb +0 -36
  1142. data/lib/fog/slicehost/requests/dns/create_record.rb +0 -52
  1143. data/lib/fog/slicehost/requests/dns/create_zone.rb +0 -46
  1144. data/lib/fog/slicehost/requests/dns/delete_record.rb +0 -23
  1145. data/lib/fog/slicehost/requests/dns/delete_zone.rb +0 -23
  1146. data/lib/fog/slicehost/requests/dns/get_record.rb +0 -32
  1147. data/lib/fog/slicehost/requests/dns/get_records.rb +0 -32
  1148. data/lib/fog/slicehost/requests/dns/get_zone.rb +0 -32
  1149. data/lib/fog/slicehost/requests/dns/get_zones.rb +0 -30
  1150. data/lib/fog/slicehost/requests/dns/update_record.rb +0 -43
  1151. data/spec/ecloud/bin_spec.rb +0 -28
  1152. data/spec/ecloud/models/backup_internet_service_spec.rb +0 -48
  1153. data/spec/ecloud/models/backup_internet_services_spec.rb +0 -28
  1154. data/spec/ecloud/models/internet_service_spec.rb +0 -104
  1155. data/spec/ecloud/models/internet_services_spec.rb +0 -29
  1156. data/spec/ecloud/models/ip_spec.rb +0 -33
  1157. data/spec/ecloud/models/ips_spec.rb +0 -28
  1158. data/spec/ecloud/models/network_spec.rb +0 -71
  1159. data/spec/ecloud/models/networks_spec.rb +0 -27
  1160. data/spec/ecloud/models/node_spec.rb +0 -38
  1161. data/spec/ecloud/models/nodes_spec.rb +0 -28
  1162. data/spec/ecloud/models/public_ip_spec.rb +0 -36
  1163. data/spec/ecloud/models/public_ips_spec.rb +0 -27
  1164. data/spec/ecloud/models/server_spec.rb +0 -62
  1165. data/spec/ecloud/models/vdc_spec.rb +0 -63
  1166. data/spec/ecloud/models/vdcs_spec.rb +0 -28
  1167. data/spec/ecloud/requests/add_backup_internet_service_spec.rb +0 -60
  1168. data/spec/ecloud/requests/add_internet_service_spec.rb +0 -65
  1169. data/spec/ecloud/requests/add_node_spec.rb +0 -56
  1170. data/spec/ecloud/requests/configure_internet_service_spec.rb +0 -61
  1171. data/spec/ecloud/requests/configure_network_ip_spec.rb +0 -55
  1172. data/spec/ecloud/requests/configure_node_spec.rb +0 -52
  1173. data/spec/ecloud/requests/configure_vapp_spec.rb +0 -71
  1174. data/spec/ecloud/requests/delete_internet_service_spec.rb +0 -34
  1175. data/spec/ecloud/requests/delete_node_spec.rb +0 -30
  1176. data/spec/ecloud/requests/delete_vapp_spec.rb +0 -92
  1177. data/spec/ecloud/requests/get_catalog_item_spec.rb +0 -62
  1178. data/spec/ecloud/requests/get_catalog_spec.rb +0 -44
  1179. data/spec/ecloud/requests/get_customization_options_spec.rb +0 -39
  1180. data/spec/ecloud/requests/get_internet_services_spec.rb +0 -150
  1181. data/spec/ecloud/requests/get_network_ip_spec.rb +0 -40
  1182. data/spec/ecloud/requests/get_network_ips_spec.rb +0 -58
  1183. data/spec/ecloud/requests/get_network_spec.rb +0 -49
  1184. data/spec/ecloud/requests/get_node_spec.rb +0 -41
  1185. data/spec/ecloud/requests/get_nodes_spec.rb +0 -58
  1186. data/spec/ecloud/requests/get_organization_spec.rb +0 -52
  1187. data/spec/ecloud/requests/get_public_ip_spec.rb +0 -38
  1188. data/spec/ecloud/requests/get_public_ips_spec.rb +0 -52
  1189. data/spec/ecloud/requests/get_vapp_spec.rb +0 -125
  1190. data/spec/ecloud/requests/get_vdc_spec.rb +0 -112
  1191. data/spec/ecloud/requests/get_versions_spec.rb +0 -57
  1192. data/spec/ecloud/requests/instantiate_vapp_template_spec.rb +0 -95
  1193. data/spec/ecloud/requests/login_spec.rb +0 -10
  1194. data/spec/ecloud/requests/power_off_spec.rb +0 -34
  1195. data/spec/ecloud/requests/power_on_spec.rb +0 -34
  1196. data/spec/ecloud/spec_helper.rb +0 -387
  1197. data/spec/ecloud/vcloud_spec.rb +0 -18
  1198. data/tests/slicehost/requests/compute/backup_tests.rb +0 -18
  1199. data/tests/slicehost/requests/compute/flavor_tests.rb +0 -33
  1200. data/tests/slicehost/requests/compute/image_tests.rb +0 -31
  1201. data/tests/slicehost/requests/compute/slice_tests.rb +0 -75
  1202. data/tests/slicehost/requests/dns/dns_tests.rb +0 -314
@@ -0,0 +1,29 @@
1
+ Shindo.tests('Fog::Identity[:openstack] | user requests', ['openstack']) do
2
+
3
+ @user_format = {
4
+ 'id' => String,
5
+ 'name' => String,
6
+ 'enabled' => Fog::Boolean,
7
+ 'email' => String,
8
+ 'tenantId' => Fog::Nullable::String
9
+ }
10
+
11
+ tests('success') do
12
+ tests('#create_user("Onamae", "spoof", "user@email.com", "t3n4nt1d", true)').formats(@user_format, false) do
13
+ @user = Fog::Identity[:openstack].create_user("Onamae", "spoof", "morph@example.com", "m0rPh1d").body['user']
14
+ end
15
+
16
+ tests('#list_users').formats({'users' => [@user_format]}) do
17
+ Fog::Identity[:openstack].list_users.body
18
+ end
19
+
20
+ tests("#update_user(#{@user['id']}, :name => 'fogupdateduser')").succeeds do
21
+ Fog::Identity[:openstack].update_user(@user['id'], :name => 'fogupdateduser', :email => 'fog@test.com')
22
+ end
23
+
24
+ tests("#delete_user(#{@user['id']})").succeeds do
25
+ Fog::Identity[:openstack].delete_user(@user['id'])
26
+ end
27
+
28
+ end
29
+ end
@@ -0,0 +1,98 @@
1
+ Shindo.tests('Fog::Image[:openstack] | image requests', ['openstack']) do
2
+
3
+ @image_format = {
4
+ 'id' => String,
5
+ 'name' => String,
6
+ 'size' => Fog::Nullable::Integer,
7
+ 'disk_format' => Fog::Nullable::String,
8
+ 'container_format' => Fog::Nullable::String,
9
+ 'checksum' => Fog::Nullable::String,
10
+ 'min_disk' => Fog::Nullable::Integer,
11
+ 'created_at' => Fog::Nullable::String,
12
+ 'deleted_at' => Fog::Nullable::String,
13
+ 'updated_at' => Fog::Nullable::String,
14
+ 'deleted' => Fog::Nullable::Boolean,
15
+ 'protected' => Fog::Nullable::Boolean,
16
+ 'is_public' => Fog::Nullable::Boolean,
17
+ 'status' => Fog::Nullable::String,
18
+ 'min_ram' => Fog::Nullable::Integer,
19
+ 'owner' => Fog::Nullable::String,
20
+ 'properties' => Fog::Nullable::Hash
21
+ }
22
+
23
+ @image_meta_format ={
24
+ "X-Image-Meta-Is_public"=>String,
25
+ "X-Image-Meta-Min_disk"=>Fog::Nullable::String,
26
+ "X-Image-Meta-Property-Ramdisk_id"=>Fog::Nullable::String,
27
+ "X-Image-Meta-Disk_format"=>Fog::Nullable::String,
28
+ "X-Image-Meta-Created_at"=>String,
29
+ "X-Image-Meta-Container_format"=>Fog::Nullable::String,
30
+ "Etag"=>String,
31
+ "Location"=>String,
32
+ "X-Image-Meta-Protected"=>String,
33
+ "Date"=>String,
34
+ "X-Image-Meta-Name"=>String,
35
+ "X-Image-Meta-Min_ram"=>String,
36
+ "Content-Type"=>String,
37
+ "X-Image-Meta-Updated_at"=>String,
38
+ "X-Image-Meta-Property-Kernel_id"=>Fog::Nullable::String,
39
+ "X-Image-Meta-Size"=>String,
40
+ "X-Image-Meta-Checksum"=>Fog::Nullable::String,
41
+ "X-Image-Meta-Deleted"=>String,
42
+ "Content-Length"=>String,
43
+ "X-Image-Meta-Owner"=>String,
44
+ "X-Image-Meta-Status"=>String,
45
+ "X-Image-Meta-Id"=>String}
46
+
47
+ @image_members_format =[
48
+ {"can_share"=>Fog::Nullable::Boolean,
49
+ "member_id"=>String
50
+ }
51
+ ]
52
+
53
+ tests('success') do
54
+ tests('#list_public_images').formats({'images' => [@image_format]}) do
55
+ Fog::Image[:openstack].list_public_images.body
56
+ end
57
+
58
+ tests('#list_public_images_detailed').formats({'images' => [@image_format]}) do
59
+ Fog::Image[:openstack].list_public_images.body
60
+ end
61
+
62
+ tests('#create_image').formats({'image' => @image_format}) do
63
+ @instance = Fog::Image[:openstack].create_image({:name => "test image"}).body
64
+ end
65
+
66
+ tests('#get_image').formats(@image_meta_format) do
67
+ Fog::Image[:openstack].get_image(@instance['image']['id']).headers
68
+ end
69
+
70
+ tests('#update_image').formats(@image_format) do
71
+ Fog::Image[:openstack].update_image({:id => @instance['image']['id'],
72
+ :name => "edit image"}).body['image']
73
+ end
74
+
75
+ tests('#add_member_to_image').succeeds do
76
+ Fog::Image[:openstack].add_member_to_image(
77
+ @instance['image']['id'], @instance['image']['owner'])
78
+ end
79
+
80
+ tests('#get_image_members').succeeds do
81
+ Fog::Image[:openstack].get_image_members(@instance['image']['id'])
82
+ end
83
+
84
+ tests('#get_shared_images').succeeds do
85
+ Fog::Image[:openstack].get_shared_images(@instance['image']['owner'])
86
+ end
87
+
88
+ tests('#remove_member_from_image').succeeds do
89
+ Fog::Image[:openstack].remove_member_from_image(
90
+ @instance['image']['id'], @instance['image']['owner'])
91
+ end
92
+
93
+ tests('#delete_image').succeeds do
94
+ Fog::Image[:openstack].delete_image(@instance['image']['id'])
95
+ end
96
+
97
+ end
98
+ end
@@ -7,7 +7,7 @@ Shindo.tests('Fog::Compute[:ovirt] | storage_domains request', ['ovirt']) do
7
7
  response = compute.storage_domains
8
8
  tests("The response data format ...") do
9
9
  test("it should be a kind of Array") { response.kind_of? Array }
10
- test("be a kind of Hash") { response.first.kind_of? Hash }
10
+ test("be a kind of OVIRT::StorageDomain") { response.first.kind_of? OVIRT::StorageDomain }
11
11
  end
12
12
  end
13
13
  end
@@ -10,7 +10,7 @@ module Shindo
10
10
  :protocol => 'HTTP',
11
11
  :port => 80,
12
12
  :virtual_ips => [{ :type => 'PUBLIC'}],
13
- :nodes => [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]
13
+ :nodes => [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]
14
14
  })
15
15
  @lb.wait_for { ready? }
16
16
  begin
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | access_list', ['rackspace']) do
4
4
 
5
5
  given_a_load_balancer_service do
6
6
  given_a_load_balancer do
7
- model_tests(@lb.access_rules, { :address => '10.0.0.2', :type => 'ALLOW'}, false) do
7
+ model_tests(@lb.access_rules, { :address => '1.1.1.2', :type => 'ALLOW'}, false) do
8
8
  @lb.wait_for { ready? }
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | access_lists', ['rackspace']) do
4
4
 
5
5
  given_a_load_balancer_service do
6
6
  given_a_load_balancer do
7
- collection_tests(@lb.access_rules, { :address => '10.0.0.2', :type => 'ALLOW'}, false) do
7
+ collection_tests(@lb.access_rules, { :address => '1.1.1.2', :type => 'ALLOW'}, false) do
8
8
  @lb.wait_for { ready? }
9
9
  end
10
10
  end
@@ -7,7 +7,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer', ['rackspace']) do
7
7
  :protocol => 'HTTP',
8
8
  :port => 80,
9
9
  :virtual_ips => [{ :type => 'PUBLIC'}],
10
- :nodes => [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]
10
+ :nodes => [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]
11
11
  }
12
12
 
13
13
  given_a_load_balancer_service do
@@ -127,6 +127,18 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer', ['rackspace']) do
127
127
  @instance.wait_for { ready? }
128
128
  end
129
129
 
130
+ tests('create(...with algorithm...)') do
131
+ attributes = LOAD_BALANCER_ATTRIBUTES.clone
132
+ attributes[:algorithm] = 'LEAST_CONNECTIONS'
133
+ @lb = @service.load_balancers.create attributes
134
+ returns('LEAST_CONNECTIONS') { @lb.algorithm }
135
+
136
+ @lb.wait_for { ready? }
137
+
138
+ @lb.destroy
139
+ end
140
+
141
+
130
142
  tests('failure') do
131
143
  @lb = @service.load_balancers.new LOAD_BALANCER_ATTRIBUTES
132
144
  tests('#usage => Requires ID').raises(ArgumentError) do
@@ -10,7 +10,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancers', ['rackspace']) do
10
10
  :protocol => 'HTTP',
11
11
  :port => 80,
12
12
  :virtual_ips => [{ :type => 'PUBLIC'}],
13
- :nodes => [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]
13
+ :nodes => [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]
14
14
  },
15
15
  false) do
16
16
  @instance.wait_for { ready? }
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | node', ['rackspace']) do
4
4
 
5
5
  given_a_load_balancer_service do
6
6
  given_a_load_balancer do
7
- model_tests(@lb.nodes, { :address => '10.0.0.2', :port => 80, :condition => 'ENABLED'}, false) do
7
+ model_tests(@lb.nodes, { :address => '1.1.1.2', :port => 80, :condition => 'ENABLED'}, false) do
8
8
  @lb.wait_for { ready? }
9
9
 
10
10
  tests("#save() => existing node with port = 88").succeeds do
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | nodes', ['rackspace']) do
4
4
 
5
5
  given_a_load_balancer_service do
6
6
  given_a_load_balancer do
7
- collection_tests(@lb.nodes, { :address => '10.0.0.2', :port => 80, :condition => 'ENABLED'}, false) do
7
+ collection_tests(@lb.nodes, { :address => '1.1.1.2', :port => 80, :condition => 'ENABLED'}, false) do
8
8
  @lb.wait_for { ready? }
9
9
  end
10
10
  end
@@ -1,4 +1,4 @@
1
- SINGLE_NODE_FORMAT = {'address' => String, 'id' => Integer, 'status' => String, 'weight' => Fog::Nullable::Integer, 'port' => Integer, 'condition' => String}
1
+ SINGLE_NODE_FORMAT = {'address' => String, 'id' => Integer, 'status' => String, 'weight' => Fog::Nullable::Integer, 'port' => Integer, 'condition' => String, 'type' => String}
2
2
  NODE_FORMAT = {'node' => SINGLE_NODE_FORMAT}
3
3
  NODES_FORMAT = {'nodes' => [SINGLE_NODE_FORMAT]}
4
4
  VIRTUAL_IP_FORMAT = {'type' => String, 'id' => Integer, 'type' => String, 'ipVersion' => String, 'address' => String}
@@ -9,6 +9,13 @@ SOURCE_ADDRESSES = {
9
9
  'ipv6Public' => String,
10
10
  }
11
11
  LOAD_BALANCER_USAGE_FORMAT = {
12
+ 'links' => [
13
+ {
14
+ 'otherAttributes' => [],
15
+ 'href' => Fog::Nullable::String,
16
+ 'rel' => Fog::Nullable::String
17
+ }
18
+ ],
12
19
  'loadBalancerUsageRecords' => [
13
20
  {
14
21
  'id' => Fog::Nullable::Integer,
@@ -95,7 +102,8 @@ LOAD_BALANCERS_FORMAT = {
95
102
  'status' => String,
96
103
  'virtualIps' => [VIRTUAL_IP_FORMAT],
97
104
  'created' => { 'time' => String },
98
- 'updated' => { 'time' => String }
105
+ 'updated' => { 'time' => String },
106
+ 'nodeCount' => Integer
99
107
  }]
100
108
  }
101
109
 
@@ -9,11 +9,20 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
9
9
  @lb_name = 'fog' + Time.now.to_i.to_s
10
10
 
11
11
  tests("#create_load_balancer(#{@lb_name}, 'HTTP', 80,...)").formats(LOAD_BALANCER_FORMAT) do
12
- data = @service.create_load_balancer(@lb_name, 'HTTP', 80, [{ :type => 'PUBLIC'}], [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]).body
12
+ data = @service.create_load_balancer(@lb_name, 'HTTP', 80, [{ :type => 'PUBLIC'}], [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]).body
13
13
  @lb_id = data['loadBalancer']['id']
14
14
  data
15
15
  end
16
16
 
17
+ tests("#create_load_balancer(#{@lb_name}, 'HTTP', 80,...with algorithm)").formats(LOAD_BALANCER_FORMAT) do
18
+ data = @service.create_load_balancer(@lb_name, 'HTTP', 80, [{ :type => 'PUBLIC'}],
19
+ [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}],
20
+ { :algorithm => 'LEAST_CONNECTIONS' }).body
21
+ @lb_id = data['loadBalancer']['id']
22
+ returns('LEAST_CONNECTIONS') { data['loadBalancer']['algorithm'] }
23
+ data
24
+ end
25
+
17
26
  tests("#update_load_balancer(#{@lb_id}) while immutable").raises(Fog::Rackspace::LoadBalancers::ServiceError) do
18
27
  @service.update_load_balancer(@lb_id, { :port => 80 }).body
19
28
  end
@@ -30,8 +39,8 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
30
39
  sleep 10
31
40
  end
32
41
 
33
- tests("#list_load_balancers({:node_address => '10.0.0.1'})").formats(LOAD_BALANCERS_FORMAT) do
34
- @service.list_load_balancers({:node_address => '10.0.0.1'}).body
42
+ tests("#list_load_balancers({:node_address => '1.1.1.1'})").formats(LOAD_BALANCERS_FORMAT) do
43
+ @service.list_load_balancers({:node_address => '1.1.1.1'}).body
35
44
  end
36
45
 
37
46
  tests("#update_load_balancer(#{@lb_id}, { :port => 80 })").succeeds do
@@ -49,7 +58,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
49
58
 
50
59
  tests('failure') do
51
60
  tests('#create_load_balancer(invalid name)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
52
- @service.create_load_balancer('', 'HTTP', 80, [{ :type => 'PUBLIC'}], [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}])
61
+ @service.create_load_balancer('', 'HTTP', 80, [{ :type => 'PUBLIC'}], [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}])
53
62
  end
54
63
 
55
64
  tests('#get_load_balancer(0)').raises(Fog::Rackspace::LoadBalancers::NotFound) do
@@ -9,15 +9,15 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | node_tests', ['rackspace']) do
9
9
  tests('success') do
10
10
 
11
11
  @lb.wait_for { ready? }
12
- tests("#create_node(#{@lb.id}, '10.10.10.10', 80, 'ENABLED')").formats(NODES_FORMAT) do
13
- data = @service.create_node(@lb.id, '10.10.10.10', 80, 'ENABLED').body
12
+ tests("#create_node(#{@lb.id}, '1.1.1.2', 80, 'ENABLED')").formats(NODES_FORMAT) do
13
+ data = @service.create_node(@lb.id, '1.1.1.2', 80, 'ENABLED').body
14
14
  @nodes_created << data['nodes'][0]['id']
15
15
  data
16
16
  end
17
17
 
18
18
  @lb.wait_for { ready? }
19
19
  tests('#create_node with weight').formats(NODES_FORMAT) do
20
- data = @service.create_node(@lb.id, '10.10.10.11', 80, 'ENABLED', { :weight => 10 }).body
20
+ data = @service.create_node(@lb.id, '1.1.1.3', 80, 'ENABLED', { :weight => 10 }).body
21
21
  @nodes_created << data['nodes'][0]['id']
22
22
  data
23
23
  end
@@ -53,7 +53,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | node_tests', ['rackspace']) do
53
53
  @service.create_node(@lb.id, '', 80, 'ENABLED')
54
54
  end
55
55
  tests('#create_node(invalid condition)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
56
- @service.create_node(@lb.id, '10.10.10.10', 80, 'EABLED')
56
+ @service.create_node(@lb.id, '1.1.1.2', 80, 'EABLED')
57
57
  end
58
58
  tests("#get_node(#{@lb.id}, 0)").raises(Fog::Rackspace::LoadBalancers::NotFound) do
59
59
  @service.get_node(@lb.id, 0)
@@ -76,7 +76,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | node_tests', ['rackspace']) do
76
76
  end
77
77
  @lb.wait_for { ready? }
78
78
  tests("#delete_node()").succeeds do
79
- node_id = @service.create_node(@lb.id, '10.10.10.12', 80, 'ENABLED').body['nodes'][0]['id']
79
+ node_id = @service.create_node(@lb.id, '1.1.1.3', 80, 'ENABLED').body['nodes'][0]['id']
80
80
  @lb.wait_for { ready? }
81
81
  @service.delete_node(@lb.id, node_id)
82
82
  end
@@ -6,6 +6,9 @@ def storage_providers
6
6
  :google => {
7
7
  :mocked => true
8
8
  },
9
+ :hp => {
10
+ :mocked => true
11
+ },
9
12
  :local => {
10
13
  :mocked => false
11
14
  },
@@ -0,0 +1,19 @@
1
+ Shindo.tests('Fog::Compute[:vsphere] | vm_config_vnc request', ['vsphere']) do
2
+
3
+ compute = Fog::Compute[:vsphere]
4
+
5
+ reconfig_target = '50137835-88a1-436e-768e-9b2677076e67'
6
+ vnc_spec = {:port => '5900', :password => 'ssaaa', :enabled => 'true'}
7
+
8
+ tests('The response should') do
9
+ response = compute.vm_config_vnc('instance_uuid' => reconfig_target).merge(vnc_spec)
10
+ test('be a kind of Hash') { response.kind_of? Hash }
11
+ test('should have a task_state key') { response.has_key? 'task_state' }
12
+ end
13
+
14
+ tests('VNC attrs response should') do
15
+ response = compute.vm_get_vnc(reconfig_target)
16
+ test('be a kind of Hash') { response.kind_of? Hash }
17
+ test('should have a port key') { response.has_key? :port }
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ # Running the XenServer tests.
2
+
3
+ Tweak the helper.rb file in tests/xenserver/helper.rb to fit your needs.
4
+
5
+ Fog credentials in $HOME/.fog file are used to run the tests. In particular:
6
+
7
+ :default:
8
+ :xenserver_url: xenserver-test
9
+ :xenserver_username: root
10
+ :xenserver_password: secret
11
+
12
+ We need a working template named squeeze-test available in the XenServer
13
+ to perform the tests. Change the template name to fit your needs
14
+ or create a working template named squeeze-test.
15
+
16
+ The tests creates a few VMs during the flight. Make sure you have enough RAM and
17
+ Storage available in the hypervisor.
18
+
19
+ Run the XenServer provider tests issuing:
20
+
21
+ shindo tests/xenserver
@@ -0,0 +1,52 @@
1
+ Shindo.tests('Fog::Compute[:xenserver]', ['xenserver']) do
2
+
3
+ compute = Fog::Compute[:xenserver]
4
+
5
+ tests("Compute attributes") do
6
+ %w{ default_template }.each do |attr|
7
+ test("it should respond to #{attr}") { compute.respond_to? attr }
8
+ end
9
+ end
10
+
11
+ tests("Compute collections") do
12
+ %w{ pifs vifs hosts storage_repositories servers networks vbds vdis pools }.each do |collection|
13
+ test("it should respond to #{collection}") { compute.respond_to? collection }
14
+ test("it should respond to #{collection}.all") { eval("compute.#{collection}").respond_to? 'all' }
15
+ test("it should respond to #{collection}.get") { eval("compute.#{collection}").respond_to? 'get' }
16
+ end
17
+ # This will fail if there are no PIFs
18
+ # (not sure if that's gonna be a real scenario though)
19
+ tests("PIFs collection") do
20
+ test("should have at least one PIF") { compute.pifs.size >= 1 }
21
+ end
22
+
23
+ # This will fail if there are no VIFs
24
+ # (not sure if that's gonna be a real scenario though)
25
+ tests("VIFs collection") do
26
+ test("should have at least one VIF") { compute.vifs.size >= 1 }
27
+ end
28
+
29
+ # This will fail if there are no VIFs
30
+ # (not sure if that's gonna be a real scenario though)
31
+ tests("Networks collection") do
32
+ test("should have at least one Network") { compute.networks.size >= 1 }
33
+ tests("each network should be a Fog::Compute::XenServer::Network") do
34
+ ok = true
35
+ compute.networks.each { |n| ok = false if n.kind_of? Fog::Compute::XenServer::Network }
36
+ end
37
+ end
38
+ end
39
+
40
+ tests "Default template" do
41
+ test("it should NOT have a default template") { compute.default_template.nil? }
42
+ # This template exists in our XenServer
43
+ compute.default_template = 'squeeze-test'
44
+ test("it should have a default template if template exists") { compute.default_template.name == 'squeeze-test' }
45
+ test("it should be a Fog::Compute::XenServer::Server") { compute.default_template.is_a? Fog::Compute::XenServer::Server }
46
+ test("it should return nil when not found") do
47
+ compute.default_template = 'asdfasdfasfdwe'
48
+ compute.default_template.nil?
49
+ end
50
+ end
51
+ end
52
+
@@ -0,0 +1,36 @@
1
+ def test_template_name
2
+ ENV['FOG_XENSERVER_TEMPLATE'] || 'squeeze-test'
3
+ end
4
+
5
+ def test_ephemeral_vm_name
6
+ 'fog-test-server-shindo'
7
+ end
8
+
9
+ def valid_ref?(ref)
10
+ (ref =~ /OpaqueRef:/) and \
11
+ (ref != "OpaqueRef:NULL" )
12
+ end
13
+
14
+ def create_ephemeral_vm
15
+ Fog::Compute[:xenserver].servers.create(:name => test_ephemeral_vm_name,
16
+ :template_name => test_template_name)
17
+ end
18
+
19
+ def create_ephemeral_server
20
+ create_ephemeral_vm
21
+ end
22
+
23
+ def destroy_ephemeral_servers
24
+ servers = Fog::Compute[:xenserver].servers
25
+ # Teardown cleanup
26
+ (servers.all :name_matches => test_ephemeral_vm_name).each do |s|
27
+ s.destroy
28
+ end
29
+ (servers.templates.find_all { |t| t.name == test_ephemeral_vm_name}).each do |s|
30
+ s.destroy
31
+ end
32
+ end
33
+
34
+ def destroy_ephemeral_vms
35
+ destroy_ephemeral_servers
36
+ end