fog 1.25.0 → 1.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (597) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/CHANGELOG.md +113 -0
  4. data/Rakefile +4 -1
  5. data/fog.gemspec +9 -5
  6. data/lib/fog.rb +2 -0
  7. data/lib/fog/aws/models/auto_scaling/configuration.rb +1 -0
  8. data/lib/fog/aws/models/storage/file.rb +5 -3
  9. data/lib/fog/aws/parsers/sts/assume_role_with_saml.rb +26 -0
  10. data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +3 -0
  11. data/lib/fog/aws/requests/auto_scaling/describe_launch_configurations.rb +1 -0
  12. data/lib/fog/aws/requests/compute/describe_network_acls.rb +1 -2
  13. data/lib/fog/aws/requests/dns/create_health_check.rb +12 -12
  14. data/lib/fog/aws/requests/storage/put_bucket_logging.rb +14 -13
  15. data/lib/fog/aws/requests/sts/assume_role_with_saml.rb +44 -0
  16. data/lib/fog/aws/signaturev4.rb +3 -3
  17. data/lib/fog/aws/storage.rb +140 -34
  18. data/lib/fog/aws/sts.rb +34 -3
  19. data/lib/fog/bin.rb +1 -1
  20. data/lib/fog/core/deprecated/connection.rb +2 -2
  21. data/lib/fog/digitalocean/models/compute/server.rb +27 -2
  22. data/lib/fog/digitalocean/requests/compute/create_server.rb +2 -0
  23. data/lib/fog/fogdocker/models/compute/server.rb +4 -0
  24. data/lib/fog/fogdocker/requests/compute/container_get.rb +1 -0
  25. data/lib/fog/google/models/storage/files.rb +5 -1
  26. data/lib/fog/hp/core.rb +1 -0
  27. data/lib/fog/ninefold/storage.rb +1 -1
  28. data/lib/fog/opennebula/compute.rb +1 -1
  29. data/lib/fog/openstack/examples/compute/block_device_mapping_v2.rb +30 -0
  30. data/lib/fog/openstack/identity.rb +4 -2
  31. data/lib/fog/openstack/models/compute/server.rb +5 -3
  32. data/lib/fog/openstack/models/image/images.rb +2 -2
  33. data/lib/fog/openstack/models/network/floating_ips.rb +1 -1
  34. data/lib/fog/openstack/requests/compute/create_server.rb +23 -11
  35. data/lib/fog/openstack/requests/image/list_public_images_detailed.rb +7 -5
  36. data/lib/fog/openstack/requests/storage/head_containers.rb +1 -1
  37. data/lib/fog/rackspace.rb +1 -0
  38. data/lib/fog/rackspace/core.rb +1 -0
  39. data/lib/fog/rackspace/docs/orchestration.md +356 -0
  40. data/lib/fog/rackspace/models/orchestration/event.rb +18 -0
  41. data/lib/fog/rackspace/models/orchestration/events.rb +28 -0
  42. data/lib/fog/rackspace/models/orchestration/resource.rb +30 -0
  43. data/lib/fog/rackspace/models/orchestration/resource_schemas.rb +16 -0
  44. data/lib/fog/rackspace/models/orchestration/resources.rb +35 -0
  45. data/lib/fog/rackspace/models/orchestration/stack.rb +48 -0
  46. data/lib/fog/rackspace/models/orchestration/stacks.rb +40 -0
  47. data/lib/fog/rackspace/models/orchestration/template.rb +13 -0
  48. data/lib/fog/rackspace/models/orchestration/templates.rb +31 -0
  49. data/lib/fog/rackspace/orchestration.rb +227 -0
  50. data/lib/fog/rackspace/requests/orchestration/abandon_stack.rb +15 -0
  51. data/lib/fog/rackspace/requests/orchestration/build_info.rb +15 -0
  52. data/lib/fog/rackspace/requests/orchestration/create_stack.rb +16 -0
  53. data/lib/fog/rackspace/requests/orchestration/delete_stack.rb +15 -0
  54. data/lib/fog/rackspace/requests/orchestration/get_stack_template.rb +20 -0
  55. data/lib/fog/rackspace/requests/orchestration/list_resource_events.rb +19 -0
  56. data/lib/fog/rackspace/requests/orchestration/list_resource_types.rb +22 -0
  57. data/lib/fog/rackspace/requests/orchestration/list_resources.rb +19 -0
  58. data/lib/fog/rackspace/requests/orchestration/list_stack_data.rb +22 -0
  59. data/lib/fog/rackspace/requests/orchestration/list_stack_events.rb +19 -0
  60. data/lib/fog/rackspace/requests/orchestration/preview_stack.rb +16 -0
  61. data/lib/fog/rackspace/requests/orchestration/show_event_details.rb +22 -0
  62. data/lib/fog/rackspace/requests/orchestration/show_resource_data.rb +22 -0
  63. data/lib/fog/rackspace/requests/orchestration/show_resource_metadata.rb +22 -0
  64. data/lib/fog/rackspace/requests/orchestration/show_resource_schema.rb +15 -0
  65. data/lib/fog/rackspace/requests/orchestration/show_resource_template.rb +20 -0
  66. data/lib/fog/rackspace/requests/orchestration/show_stack_details.rb +22 -0
  67. data/lib/fog/rackspace/requests/orchestration/update_stack.rb +16 -0
  68. data/lib/fog/rackspace/requests/orchestration/validate_template.rb +16 -0
  69. data/lib/fog/version.rb +1 -1
  70. data/lib/tasks/changelog_task.rb +2 -0
  71. data/spec/fog/bin/atmos_spec.rb +10 -0
  72. data/spec/fog/bin/aws_spec.rb +10 -0
  73. data/spec/fog/bin/baremetalcloud_spec.rb +10 -0
  74. data/spec/fog/bin/bluebox_spec.rb +10 -0
  75. data/spec/fog/bin/brightbox_spec.rb +31 -0
  76. data/spec/fog/bin/clodo_spec.rb +10 -0
  77. data/spec/fog/bin/cloudsigma_spec.rb +10 -0
  78. data/spec/fog/bin/cloudstack_spec.rb +10 -0
  79. data/spec/fog/bin/digitalocean_spec.rb +10 -0
  80. data/spec/fog/bin/dnsimple_spec.rb +10 -0
  81. data/spec/fog/bin/dnsmadeeasy_spec.rb +10 -0
  82. data/spec/fog/bin/dreamhost_spec.rb +10 -0
  83. data/spec/fog/bin/dynect_spec.rb +10 -0
  84. data/spec/fog/bin/ecloud_spec.rb +10 -0
  85. data/spec/fog/bin/fogdocker_spec.rb +10 -0
  86. data/spec/fog/bin/glesys_spec.rb +10 -0
  87. data/spec/fog/bin/gogrid_spec.rb +10 -0
  88. data/spec/fog/bin/google_spec.rb +10 -0
  89. data/spec/fog/bin/hp_spec.rb +10 -0
  90. data/spec/fog/bin/ibm_spec.rb +10 -0
  91. data/spec/fog/bin/internetarchive_spec.rb +10 -0
  92. data/spec/fog/bin/joyent_spec.rb +10 -0
  93. data/spec/fog/bin/libvirt_spec.rb +10 -0
  94. data/spec/fog/bin/linode_spec.rb +10 -0
  95. data/spec/fog/bin/local_spec.rb +10 -0
  96. data/spec/fog/bin/ninefold_spec.rb +10 -0
  97. data/spec/fog/bin/opennebula_spec.rb +10 -0
  98. data/spec/fog/bin/openstack_spec.rb +10 -0
  99. data/spec/fog/bin/openvz_spec.rb +10 -0
  100. data/spec/fog/bin/ovirt_spec.rb +10 -0
  101. data/spec/fog/bin/profitbricks_spec.rb +10 -0
  102. data/spec/fog/bin/rackspace_spec.rb +10 -0
  103. data/spec/fog/bin/rage4_spec.rb +10 -0
  104. data/spec/fog/bin/riakcs_spec.rb +10 -0
  105. data/spec/fog/bin/sakuracloud_spec.rb +10 -0
  106. data/spec/fog/bin/serverlove_spec.rb +10 -0
  107. data/spec/fog/bin/softlayer_spec.rb +10 -0
  108. data/spec/fog/bin/stormondemand_spec.rb +10 -0
  109. data/spec/fog/bin/vcloud_spec.rb +10 -0
  110. data/spec/fog/bin/vclouddirector_spec.rb +10 -0
  111. data/spec/fog/bin/vmfusion_spec.rb +10 -0
  112. data/spec/fog/bin/voxel_spec.rb +10 -0
  113. data/spec/fog/bin/vsphere_spec.rb +10 -0
  114. data/spec/fog/bin/xenserver_spec.rb +10 -0
  115. data/spec/fog/bin/zerigo_spec.rb +10 -0
  116. data/spec/fog/bin_spec.rb +165 -0
  117. data/spec/fog/compute_spec.rb +8 -0
  118. data/spec/helpers/bin.rb +30 -0
  119. data/tests/aws/requests/sts/assume_role_with_saml_tests.rb +18 -0
  120. data/tests/compute/helper.rb +0 -23
  121. data/tests/compute/models/flavors_tests.rb +1 -1
  122. data/tests/compute/models/server_tests.rb +0 -3
  123. data/tests/compute/models/servers_tests.rb +0 -3
  124. data/tests/fogdocker/models/compute/server_tests.rb +2 -1
  125. data/tests/helpers/mock_helper.rb +0 -6
  126. data/tests/openstack/requests/compute/helper.rb +8 -3
  127. data/tests/openstack/requests/compute/server_tests.rb +75 -21
  128. metadata +184 -491
  129. data/lib/fog/atmos.rb +0 -1
  130. data/lib/fog/atmos/core.rb +0 -9
  131. data/lib/fog/atmos/models/storage/directories.rb +0 -44
  132. data/lib/fog/atmos/models/storage/directory.rb +0 -48
  133. data/lib/fog/atmos/models/storage/file.rb +0 -108
  134. data/lib/fog/atmos/models/storage/files.rb +0 -74
  135. data/lib/fog/atmos/requests/storage/delete_namespace.rb +0 -17
  136. data/lib/fog/atmos/requests/storage/get_namespace.rb +0 -23
  137. data/lib/fog/atmos/requests/storage/head_namespace.rb +0 -18
  138. data/lib/fog/atmos/requests/storage/post_namespace.rb +0 -18
  139. data/lib/fog/atmos/requests/storage/put_namespace.rb +0 -18
  140. data/lib/fog/atmos/storage.rb +0 -184
  141. data/lib/fog/bin/ecloud.rb +0 -33
  142. data/lib/fog/bin/stormondemand.rb +0 -29
  143. data/lib/fog/ecloud.rb +0 -1
  144. data/lib/fog/ecloud/collection.rb +0 -24
  145. data/lib/fog/ecloud/compute.rb +0 -824
  146. data/lib/fog/ecloud/core.rb +0 -31
  147. data/lib/fog/ecloud/generate_collection.rb +0 -127
  148. data/lib/fog/ecloud/ipaddr.rb +0 -5
  149. data/lib/fog/ecloud/mock_data_classes.rb +0 -766
  150. data/lib/fog/ecloud/model.rb +0 -20
  151. data/lib/fog/ecloud/models/compute/admin_organization.rb +0 -43
  152. data/lib/fog/ecloud/models/compute/admin_organizations.rb +0 -21
  153. data/lib/fog/ecloud/models/compute/api_key.rb +0 -20
  154. data/lib/fog/ecloud/models/compute/api_keys.rb +0 -26
  155. data/lib/fog/ecloud/models/compute/association.rb +0 -23
  156. data/lib/fog/ecloud/models/compute/associations.rb +0 -34
  157. data/lib/fog/ecloud/models/compute/authentication_level.rb +0 -21
  158. data/lib/fog/ecloud/models/compute/authentication_levels.rb +0 -26
  159. data/lib/fog/ecloud/models/compute/backup_internet_service.rb +0 -45
  160. data/lib/fog/ecloud/models/compute/backup_internet_services.rb +0 -41
  161. data/lib/fog/ecloud/models/compute/catalog.rb +0 -39
  162. data/lib/fog/ecloud/models/compute/catalog_configuration.rb +0 -22
  163. data/lib/fog/ecloud/models/compute/catalog_configurations.rb +0 -26
  164. data/lib/fog/ecloud/models/compute/catalog_item.rb +0 -24
  165. data/lib/fog/ecloud/models/compute/compute_pool.rb +0 -70
  166. data/lib/fog/ecloud/models/compute/compute_pools.rb +0 -33
  167. data/lib/fog/ecloud/models/compute/cpu_usage_detail.rb +0 -16
  168. data/lib/fog/ecloud/models/compute/cpu_usage_detail_summary.rb +0 -26
  169. data/lib/fog/ecloud/models/compute/detached_disk.rb +0 -27
  170. data/lib/fog/ecloud/models/compute/detached_disks.rb +0 -26
  171. data/lib/fog/ecloud/models/compute/environment.rb +0 -111
  172. data/lib/fog/ecloud/models/compute/environments.rb +0 -39
  173. data/lib/fog/ecloud/models/compute/firewall_acl.rb +0 -27
  174. data/lib/fog/ecloud/models/compute/firewall_acls.rb +0 -27
  175. data/lib/fog/ecloud/models/compute/group.rb +0 -41
  176. data/lib/fog/ecloud/models/compute/groups.rb +0 -38
  177. data/lib/fog/ecloud/models/compute/guest_process.rb +0 -15
  178. data/lib/fog/ecloud/models/compute/guest_processes.rb +0 -26
  179. data/lib/fog/ecloud/models/compute/hardware_configuration.rb +0 -18
  180. data/lib/fog/ecloud/models/compute/hardware_configurations.rb +0 -26
  181. data/lib/fog/ecloud/models/compute/internet_service.rb +0 -97
  182. data/lib/fog/ecloud/models/compute/internet_services.rb +0 -44
  183. data/lib/fog/ecloud/models/compute/ip_address.rb +0 -39
  184. data/lib/fog/ecloud/models/compute/ip_addresses.rb +0 -32
  185. data/lib/fog/ecloud/models/compute/layout.rb +0 -20
  186. data/lib/fog/ecloud/models/compute/layouts.rb +0 -26
  187. data/lib/fog/ecloud/models/compute/location.rb +0 -22
  188. data/lib/fog/ecloud/models/compute/locations.rb +0 -28
  189. data/lib/fog/ecloud/models/compute/login_banner.rb +0 -16
  190. data/lib/fog/ecloud/models/compute/login_banners.rb +0 -26
  191. data/lib/fog/ecloud/models/compute/memory_usage_detail.rb +0 -16
  192. data/lib/fog/ecloud/models/compute/memory_usage_detail_summary.rb +0 -26
  193. data/lib/fog/ecloud/models/compute/monitor.rb +0 -46
  194. data/lib/fog/ecloud/models/compute/monitors.rb +0 -30
  195. data/lib/fog/ecloud/models/compute/network.rb +0 -46
  196. data/lib/fog/ecloud/models/compute/networks.rb +0 -32
  197. data/lib/fog/ecloud/models/compute/node.rb +0 -45
  198. data/lib/fog/ecloud/models/compute/nodes.rb +0 -42
  199. data/lib/fog/ecloud/models/compute/operating_system.rb +0 -16
  200. data/lib/fog/ecloud/models/compute/operating_system_families.rb +0 -26
  201. data/lib/fog/ecloud/models/compute/operating_system_family.rb +0 -21
  202. data/lib/fog/ecloud/models/compute/operating_systems.rb +0 -25
  203. data/lib/fog/ecloud/models/compute/organization.rb +0 -78
  204. data/lib/fog/ecloud/models/compute/organizations.rb +0 -38
  205. data/lib/fog/ecloud/models/compute/password_complexity_rule.rb +0 -49
  206. data/lib/fog/ecloud/models/compute/password_complexity_rules.rb +0 -26
  207. data/lib/fog/ecloud/models/compute/physical_device.rb +0 -21
  208. data/lib/fog/ecloud/models/compute/physical_devices.rb +0 -26
  209. data/lib/fog/ecloud/models/compute/public_ip.rb +0 -26
  210. data/lib/fog/ecloud/models/compute/public_ips.rb +0 -31
  211. data/lib/fog/ecloud/models/compute/rnat.rb +0 -27
  212. data/lib/fog/ecloud/models/compute/rnats.rb +0 -26
  213. data/lib/fog/ecloud/models/compute/role.rb +0 -23
  214. data/lib/fog/ecloud/models/compute/roles.rb +0 -36
  215. data/lib/fog/ecloud/models/compute/row.rb +0 -56
  216. data/lib/fog/ecloud/models/compute/rows.rb +0 -39
  217. data/lib/fog/ecloud/models/compute/server.rb +0 -323
  218. data/lib/fog/ecloud/models/compute/server_configuration_option.rb +0 -16
  219. data/lib/fog/ecloud/models/compute/server_configuration_options.rb +0 -26
  220. data/lib/fog/ecloud/models/compute/servers.rb +0 -65
  221. data/lib/fog/ecloud/models/compute/ssh_key.rb +0 -19
  222. data/lib/fog/ecloud/models/compute/ssh_keys.rb +0 -26
  223. data/lib/fog/ecloud/models/compute/storage_usage_detail.rb +0 -16
  224. data/lib/fog/ecloud/models/compute/storage_usage_detail_summary.rb +0 -26
  225. data/lib/fog/ecloud/models/compute/support_ticket.rb +0 -28
  226. data/lib/fog/ecloud/models/compute/support_tickets.rb +0 -26
  227. data/lib/fog/ecloud/models/compute/tag.rb +0 -13
  228. data/lib/fog/ecloud/models/compute/tags.rb +0 -26
  229. data/lib/fog/ecloud/models/compute/task.rb +0 -23
  230. data/lib/fog/ecloud/models/compute/tasks.rb +0 -29
  231. data/lib/fog/ecloud/models/compute/template.rb +0 -23
  232. data/lib/fog/ecloud/models/compute/templates.rb +0 -41
  233. data/lib/fog/ecloud/models/compute/trusted_network_group.rb +0 -33
  234. data/lib/fog/ecloud/models/compute/trusted_network_groups.rb +0 -27
  235. data/lib/fog/ecloud/models/compute/user.rb +0 -35
  236. data/lib/fog/ecloud/models/compute/users.rb +0 -26
  237. data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +0 -32
  238. data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ips.rb +0 -26
  239. data/lib/fog/ecloud/requests/compute/admin_disable_support_access.rb +0 -9
  240. data/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb +0 -32
  241. data/lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb +0 -30
  242. data/lib/fog/ecloud/requests/compute/admin_edit_password_complexity_rules.rb +0 -72
  243. data/lib/fog/ecloud/requests/compute/admin_enable_support_access.rb +0 -9
  244. data/lib/fog/ecloud/requests/compute/backup_internet_service_create.rb +0 -47
  245. data/lib/fog/ecloud/requests/compute/backup_internet_service_delete.rb +0 -9
  246. data/lib/fog/ecloud/requests/compute/backup_internet_service_edit.rb +0 -47
  247. data/lib/fog/ecloud/requests/compute/compute_pool_edit.rb +0 -35
  248. data/lib/fog/ecloud/requests/compute/firewall_acls_create.rb +0 -78
  249. data/lib/fog/ecloud/requests/compute/firewall_acls_delete.rb +0 -9
  250. data/lib/fog/ecloud/requests/compute/get_admin_organization.rb +0 -23
  251. data/lib/fog/ecloud/requests/compute/get_api_key.rb +0 -9
  252. data/lib/fog/ecloud/requests/compute/get_api_keys.rb +0 -9
  253. data/lib/fog/ecloud/requests/compute/get_association.rb +0 -9
  254. data/lib/fog/ecloud/requests/compute/get_associations.rb +0 -9
  255. data/lib/fog/ecloud/requests/compute/get_authentication_level.rb +0 -9
  256. data/lib/fog/ecloud/requests/compute/get_authentication_levels.rb +0 -9
  257. data/lib/fog/ecloud/requests/compute/get_backup_internet_service.rb +0 -9
  258. data/lib/fog/ecloud/requests/compute/get_backup_internet_services.rb +0 -9
  259. data/lib/fog/ecloud/requests/compute/get_catalog.rb +0 -9
  260. data/lib/fog/ecloud/requests/compute/get_catalog_configuration.rb +0 -9
  261. data/lib/fog/ecloud/requests/compute/get_catalog_configurations.rb +0 -9
  262. data/lib/fog/ecloud/requests/compute/get_catalog_item.rb +0 -9
  263. data/lib/fog/ecloud/requests/compute/get_compute_pool.rb +0 -21
  264. data/lib/fog/ecloud/requests/compute/get_compute_pools.rb +0 -31
  265. data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail.rb +0 -9
  266. data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail_summary.rb +0 -9
  267. data/lib/fog/ecloud/requests/compute/get_detached_disk.rb +0 -21
  268. data/lib/fog/ecloud/requests/compute/get_detached_disks.rb +0 -31
  269. data/lib/fog/ecloud/requests/compute/get_environment.rb +0 -31
  270. data/lib/fog/ecloud/requests/compute/get_environments.rb +0 -0
  271. data/lib/fog/ecloud/requests/compute/get_firewall_acl.rb +0 -9
  272. data/lib/fog/ecloud/requests/compute/get_firewall_acls.rb +0 -9
  273. data/lib/fog/ecloud/requests/compute/get_group.rb +0 -18
  274. data/lib/fog/ecloud/requests/compute/get_groups.rb +0 -18
  275. data/lib/fog/ecloud/requests/compute/get_guest_process.rb +0 -9
  276. data/lib/fog/ecloud/requests/compute/get_guest_processes.rb +0 -9
  277. data/lib/fog/ecloud/requests/compute/get_hardware_configuration.rb +0 -29
  278. data/lib/fog/ecloud/requests/compute/get_hardware_configurations.rb +0 -14
  279. data/lib/fog/ecloud/requests/compute/get_internet_service.rb +0 -21
  280. data/lib/fog/ecloud/requests/compute/get_internet_services.rb +0 -18
  281. data/lib/fog/ecloud/requests/compute/get_ip_address.rb +0 -20
  282. data/lib/fog/ecloud/requests/compute/get_layout.rb +0 -18
  283. data/lib/fog/ecloud/requests/compute/get_layouts.rb +0 -18
  284. data/lib/fog/ecloud/requests/compute/get_location.rb +0 -9
  285. data/lib/fog/ecloud/requests/compute/get_locations.rb +0 -9
  286. data/lib/fog/ecloud/requests/compute/get_login_banner.rb +0 -9
  287. data/lib/fog/ecloud/requests/compute/get_login_banners.rb +0 -9
  288. data/lib/fog/ecloud/requests/compute/get_memory_usage_detail.rb +0 -9
  289. data/lib/fog/ecloud/requests/compute/get_memory_usage_detail_summary.rb +0 -9
  290. data/lib/fog/ecloud/requests/compute/get_monitor.rb +0 -9
  291. data/lib/fog/ecloud/requests/compute/get_monitors.rb +0 -9
  292. data/lib/fog/ecloud/requests/compute/get_network.rb +0 -21
  293. data/lib/fog/ecloud/requests/compute/get_network_summary.rb +0 -9
  294. data/lib/fog/ecloud/requests/compute/get_networks.rb +0 -30
  295. data/lib/fog/ecloud/requests/compute/get_node.rb +0 -21
  296. data/lib/fog/ecloud/requests/compute/get_nodes.rb +0 -18
  297. data/lib/fog/ecloud/requests/compute/get_operating_system.rb +0 -24
  298. data/lib/fog/ecloud/requests/compute/get_operating_system_families.rb +0 -30
  299. data/lib/fog/ecloud/requests/compute/get_organization.rb +0 -24
  300. data/lib/fog/ecloud/requests/compute/get_organizations.rb +0 -23
  301. data/lib/fog/ecloud/requests/compute/get_password_complexity_rule.rb +0 -9
  302. data/lib/fog/ecloud/requests/compute/get_password_complexity_rules.rb +0 -9
  303. data/lib/fog/ecloud/requests/compute/get_physical_device.rb +0 -9
  304. data/lib/fog/ecloud/requests/compute/get_physical_devices.rb +0 -9
  305. data/lib/fog/ecloud/requests/compute/get_process.rb +0 -9
  306. data/lib/fog/ecloud/requests/compute/get_processes.rb +0 -9
  307. data/lib/fog/ecloud/requests/compute/get_public_ip.rb +0 -21
  308. data/lib/fog/ecloud/requests/compute/get_public_ips.rb +0 -31
  309. data/lib/fog/ecloud/requests/compute/get_rnat.rb +0 -9
  310. data/lib/fog/ecloud/requests/compute/get_rnats.rb +0 -9
  311. data/lib/fog/ecloud/requests/compute/get_role.rb +0 -9
  312. data/lib/fog/ecloud/requests/compute/get_roles.rb +0 -9
  313. data/lib/fog/ecloud/requests/compute/get_row.rb +0 -18
  314. data/lib/fog/ecloud/requests/compute/get_rows.rb +0 -12
  315. data/lib/fog/ecloud/requests/compute/get_server.rb +0 -21
  316. data/lib/fog/ecloud/requests/compute/get_server_configuration_option.rb +0 -9
  317. data/lib/fog/ecloud/requests/compute/get_server_configuration_options.rb +0 -9
  318. data/lib/fog/ecloud/requests/compute/get_servers.rb +0 -42
  319. data/lib/fog/ecloud/requests/compute/get_ssh_key.rb +0 -21
  320. data/lib/fog/ecloud/requests/compute/get_ssh_keys.rb +0 -30
  321. data/lib/fog/ecloud/requests/compute/get_storage_usage_detail.rb +0 -9
  322. data/lib/fog/ecloud/requests/compute/get_storage_usage_detail_summary.rb +0 -9
  323. data/lib/fog/ecloud/requests/compute/get_support_ticket.rb +0 -9
  324. data/lib/fog/ecloud/requests/compute/get_support_tickets.rb +0 -9
  325. data/lib/fog/ecloud/requests/compute/get_tag.rb +0 -9
  326. data/lib/fog/ecloud/requests/compute/get_tags.rb +0 -9
  327. data/lib/fog/ecloud/requests/compute/get_task.rb +0 -13
  328. data/lib/fog/ecloud/requests/compute/get_tasks.rb +0 -9
  329. data/lib/fog/ecloud/requests/compute/get_template.rb +0 -21
  330. data/lib/fog/ecloud/requests/compute/get_templates.rb +0 -48
  331. data/lib/fog/ecloud/requests/compute/get_trusted_network_group.rb +0 -9
  332. data/lib/fog/ecloud/requests/compute/get_trusted_network_groups.rb +0 -9
  333. data/lib/fog/ecloud/requests/compute/get_user.rb +0 -9
  334. data/lib/fog/ecloud/requests/compute/get_users.rb +0 -9
  335. data/lib/fog/ecloud/requests/compute/get_virtual_machine_assigned_ips.rb +0 -42
  336. data/lib/fog/ecloud/requests/compute/groups_create.rb +0 -31
  337. data/lib/fog/ecloud/requests/compute/groups_delete.rb +0 -26
  338. data/lib/fog/ecloud/requests/compute/groups_edit.rb +0 -29
  339. data/lib/fog/ecloud/requests/compute/groups_movedown.rb +0 -9
  340. data/lib/fog/ecloud/requests/compute/groups_moveup.rb +0 -9
  341. data/lib/fog/ecloud/requests/compute/internet_service_create.rb +0 -102
  342. data/lib/fog/ecloud/requests/compute/internet_service_delete.rb +0 -33
  343. data/lib/fog/ecloud/requests/compute/internet_service_edit.rb +0 -58
  344. data/lib/fog/ecloud/requests/compute/monitors_create_default.rb +0 -9
  345. data/lib/fog/ecloud/requests/compute/monitors_create_ecv.rb +0 -40
  346. data/lib/fog/ecloud/requests/compute/monitors_create_http.rb +0 -44
  347. data/lib/fog/ecloud/requests/compute/monitors_create_loopback.rb +0 -9
  348. data/lib/fog/ecloud/requests/compute/monitors_create_ping.rb +0 -35
  349. data/lib/fog/ecloud/requests/compute/monitors_disable.rb +0 -9
  350. data/lib/fog/ecloud/requests/compute/monitors_edit_ecv.rb +0 -40
  351. data/lib/fog/ecloud/requests/compute/monitors_edit_http.rb +0 -44
  352. data/lib/fog/ecloud/requests/compute/monitors_edit_ping.rb +0 -35
  353. data/lib/fog/ecloud/requests/compute/monitors_enable.rb +0 -9
  354. data/lib/fog/ecloud/requests/compute/node_service_create.rb +0 -93
  355. data/lib/fog/ecloud/requests/compute/node_service_delete.rb +0 -33
  356. data/lib/fog/ecloud/requests/compute/node_service_edit.rb +0 -39
  357. data/lib/fog/ecloud/requests/compute/power_off.rb +0 -9
  358. data/lib/fog/ecloud/requests/compute/power_on.rb +0 -9
  359. data/lib/fog/ecloud/requests/compute/power_reset.rb +0 -9
  360. data/lib/fog/ecloud/requests/compute/power_shutdown.rb +0 -9
  361. data/lib/fog/ecloud/requests/compute/public_ip_activate.rb +0 -9
  362. data/lib/fog/ecloud/requests/compute/rnat_associations_create_device.rb +0 -32
  363. data/lib/fog/ecloud/requests/compute/rnat_associations_delete.rb +0 -9
  364. data/lib/fog/ecloud/requests/compute/rnat_associations_edit_network.rb +0 -31
  365. data/lib/fog/ecloud/requests/compute/rows_create.rb +0 -29
  366. data/lib/fog/ecloud/requests/compute/rows_delete.rb +0 -21
  367. data/lib/fog/ecloud/requests/compute/rows_edit.rb +0 -29
  368. data/lib/fog/ecloud/requests/compute/rows_movedown.rb +0 -9
  369. data/lib/fog/ecloud/requests/compute/rows_moveup.rb +0 -9
  370. data/lib/fog/ecloud/requests/compute/trusted_network_groups_create.rb +0 -51
  371. data/lib/fog/ecloud/requests/compute/trusted_network_groups_delete.rb +0 -9
  372. data/lib/fog/ecloud/requests/compute/trusted_network_groups_edit.rb +0 -51
  373. data/lib/fog/ecloud/requests/compute/virtual_machine_attach_disk.rb +0 -61
  374. data/lib/fog/ecloud/requests/compute/virtual_machine_copy.rb +0 -116
  375. data/lib/fog/ecloud/requests/compute/virtual_machine_copy_identical.rb +0 -43
  376. data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +0 -244
  377. data/lib/fog/ecloud/requests/compute/virtual_machine_delete.rb +0 -46
  378. data/lib/fog/ecloud/requests/compute/virtual_machine_detach_disk.rb +0 -70
  379. data/lib/fog/ecloud/requests/compute/virtual_machine_edit.rb +0 -45
  380. data/lib/fog/ecloud/requests/compute/virtual_machine_edit_assigned_ips.rb +0 -80
  381. data/lib/fog/ecloud/requests/compute/virtual_machine_edit_hardware_configuration.rb +0 -75
  382. data/lib/fog/ecloud/requests/compute/virtual_machine_import.rb +0 -179
  383. data/lib/fog/ecloud/requests/compute/virtual_machine_upload_file.rb +0 -28
  384. data/lib/fog/storm_on_demand.rb +0 -9
  385. data/lib/fog/storm_on_demand/README.md +0 -49
  386. data/lib/fog/storm_on_demand/account.rb +0 -51
  387. data/lib/fog/storm_on_demand/billing.rb +0 -55
  388. data/lib/fog/storm_on_demand/compute.rb +0 -105
  389. data/lib/fog/storm_on_demand/core.rb +0 -18
  390. data/lib/fog/storm_on_demand/dns.rb +0 -79
  391. data/lib/fog/storm_on_demand/models/account/token.rb +0 -20
  392. data/lib/fog/storm_on_demand/models/account/tokens.rb +0 -17
  393. data/lib/fog/storm_on_demand/models/billing/invoice.rb +0 -25
  394. data/lib/fog/storm_on_demand/models/billing/invoices.rb +0 -27
  395. data/lib/fog/storm_on_demand/models/billing/payment.rb +0 -13
  396. data/lib/fog/storm_on_demand/models/billing/payments.rb +0 -17
  397. data/lib/fog/storm_on_demand/models/compute/config.rb +0 -37
  398. data/lib/fog/storm_on_demand/models/compute/configs.rb +0 -22
  399. data/lib/fog/storm_on_demand/models/compute/image.rb +0 -37
  400. data/lib/fog/storm_on_demand/models/compute/images.rb +0 -27
  401. data/lib/fog/storm_on_demand/models/compute/notification.rb +0 -31
  402. data/lib/fog/storm_on_demand/models/compute/notifications.rb +0 -27
  403. data/lib/fog/storm_on_demand/models/compute/product.rb +0 -37
  404. data/lib/fog/storm_on_demand/models/compute/products.rb +0 -25
  405. data/lib/fog/storm_on_demand/models/compute/server.rb +0 -91
  406. data/lib/fog/storm_on_demand/models/compute/servers.rb +0 -27
  407. data/lib/fog/storm_on_demand/models/compute/template.rb +0 -26
  408. data/lib/fog/storm_on_demand/models/compute/templates.rb +0 -22
  409. data/lib/fog/storm_on_demand/models/dns/domain.rb +0 -31
  410. data/lib/fog/storm_on_demand/models/dns/domains.rb +0 -17
  411. data/lib/fog/storm_on_demand/models/dns/record.rb +0 -61
  412. data/lib/fog/storm_on_demand/models/dns/records.rb +0 -27
  413. data/lib/fog/storm_on_demand/models/dns/reverse.rb +0 -13
  414. data/lib/fog/storm_on_demand/models/dns/reverses.rb +0 -20
  415. data/lib/fog/storm_on_demand/models/dns/zone.rb +0 -38
  416. data/lib/fog/storm_on_demand/models/dns/zones.rb +0 -27
  417. data/lib/fog/storm_on_demand/models/monitoring/bandwidth.rb +0 -20
  418. data/lib/fog/storm_on_demand/models/monitoring/bandwidths.rb +0 -21
  419. data/lib/fog/storm_on_demand/models/monitoring/load.rb +0 -20
  420. data/lib/fog/storm_on_demand/models/monitoring/loads.rb +0 -21
  421. data/lib/fog/storm_on_demand/models/monitoring/monitor_service.rb +0 -19
  422. data/lib/fog/storm_on_demand/models/monitoring/monitor_services.rb +0 -30
  423. data/lib/fog/storm_on_demand/models/network/balancer.rb +0 -56
  424. data/lib/fog/storm_on_demand/models/network/balancers.rb +0 -40
  425. data/lib/fog/storm_on_demand/models/network/firewall.rb +0 -18
  426. data/lib/fog/storm_on_demand/models/network/firewalls.rb +0 -31
  427. data/lib/fog/storm_on_demand/models/network/network_ip.rb +0 -21
  428. data/lib/fog/storm_on_demand/models/network/network_ips.rb +0 -46
  429. data/lib/fog/storm_on_demand/models/network/pool.rb +0 -30
  430. data/lib/fog/storm_on_demand/models/network/pools.rb +0 -26
  431. data/lib/fog/storm_on_demand/models/network/private_ip.rb +0 -15
  432. data/lib/fog/storm_on_demand/models/network/private_ips.rb +0 -36
  433. data/lib/fog/storm_on_demand/models/network/ruleset.rb +0 -25
  434. data/lib/fog/storm_on_demand/models/network/rulesets.rb +0 -27
  435. data/lib/fog/storm_on_demand/models/network/zone.rb +0 -25
  436. data/lib/fog/storm_on_demand/models/network/zones.rb +0 -22
  437. data/lib/fog/storm_on_demand/models/storage/cluster.rb +0 -17
  438. data/lib/fog/storm_on_demand/models/storage/clusters.rb +0 -17
  439. data/lib/fog/storm_on_demand/models/storage/volume.rb +0 -51
  440. data/lib/fog/storm_on_demand/models/storage/volumes.rb +0 -27
  441. data/lib/fog/storm_on_demand/models/support/alert.rb +0 -16
  442. data/lib/fog/storm_on_demand/models/support/alerts.rb +0 -17
  443. data/lib/fog/storm_on_demand/models/support/ticket.rb +0 -70
  444. data/lib/fog/storm_on_demand/models/support/tickets.rb +0 -30
  445. data/lib/fog/storm_on_demand/models/vpn/vpn.rb +0 -28
  446. data/lib/fog/storm_on_demand/models/vpn/vpns.rb +0 -26
  447. data/lib/fog/storm_on_demand/monitoring.rb +0 -61
  448. data/lib/fog/storm_on_demand/network.rb +0 -107
  449. data/lib/fog/storm_on_demand/requests/account/create_token.rb +0 -14
  450. data/lib/fog/storm_on_demand/requests/account/expire_token.rb +0 -14
  451. data/lib/fog/storm_on_demand/requests/billing/get_invoice.rb +0 -14
  452. data/lib/fog/storm_on_demand/requests/billing/list_invoices.rb +0 -14
  453. data/lib/fog/storm_on_demand/requests/billing/make_payment.rb +0 -14
  454. data/lib/fog/storm_on_demand/requests/billing/next_invoice.rb +0 -14
  455. data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +0 -14
  456. data/lib/fog/storm_on_demand/requests/compute/create_image.rb +0 -14
  457. data/lib/fog/storm_on_demand/requests/compute/create_server.rb +0 -14
  458. data/lib/fog/storm_on_demand/requests/compute/current_notifications.rb +0 -14
  459. data/lib/fog/storm_on_demand/requests/compute/delete_image.rb +0 -14
  460. data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +0 -14
  461. data/lib/fog/storm_on_demand/requests/compute/get_config_details.rb +0 -14
  462. data/lib/fog/storm_on_demand/requests/compute/get_image_details.rb +0 -14
  463. data/lib/fog/storm_on_demand/requests/compute/get_notification.rb +0 -14
  464. data/lib/fog/storm_on_demand/requests/compute/get_product.rb +0 -14
  465. data/lib/fog/storm_on_demand/requests/compute/get_product_code.rb +0 -14
  466. data/lib/fog/storm_on_demand/requests/compute/get_product_price.rb +0 -14
  467. data/lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb +0 -14
  468. data/lib/fog/storm_on_demand/requests/compute/get_server.rb +0 -14
  469. data/lib/fog/storm_on_demand/requests/compute/get_template_details.rb +0 -14
  470. data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +0 -14
  471. data/lib/fog/storm_on_demand/requests/compute/list_images.rb +0 -14
  472. data/lib/fog/storm_on_demand/requests/compute/list_notifications.rb +0 -14
  473. data/lib/fog/storm_on_demand/requests/compute/list_products.rb +0 -14
  474. data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +0 -14
  475. data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +0 -14
  476. data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +0 -14
  477. data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +0 -14
  478. data/lib/fog/storm_on_demand/requests/compute/resolve_notification.rb +0 -14
  479. data/lib/fog/storm_on_demand/requests/compute/restore_image.rb +0 -14
  480. data/lib/fog/storm_on_demand/requests/compute/restore_template.rb +0 -14
  481. data/lib/fog/storm_on_demand/requests/compute/server_history.rb +0 -14
  482. data/lib/fog/storm_on_demand/requests/compute/server_status.rb +0 -14
  483. data/lib/fog/storm_on_demand/requests/compute/shutdown_server.rb +0 -14
  484. data/lib/fog/storm_on_demand/requests/compute/start_server.rb +0 -14
  485. data/lib/fog/storm_on_demand/requests/compute/update_image.rb +0 -14
  486. data/lib/fog/storm_on_demand/requests/compute/update_server.rb +0 -14
  487. data/lib/fog/storm_on_demand/requests/dns/check_zone_delegation.rb +0 -14
  488. data/lib/fog/storm_on_demand/requests/dns/create_record.rb +0 -14
  489. data/lib/fog/storm_on_demand/requests/dns/create_record_region.rb +0 -14
  490. data/lib/fog/storm_on_demand/requests/dns/create_zone.rb +0 -14
  491. data/lib/fog/storm_on_demand/requests/dns/delete_record.rb +0 -14
  492. data/lib/fog/storm_on_demand/requests/dns/delete_record_region.rb +0 -14
  493. data/lib/fog/storm_on_demand/requests/dns/delete_reverse.rb +0 -14
  494. data/lib/fog/storm_on_demand/requests/dns/delete_zone.rb +0 -14
  495. data/lib/fog/storm_on_demand/requests/dns/get_record.rb +0 -14
  496. data/lib/fog/storm_on_demand/requests/dns/get_zone.rb +0 -14
  497. data/lib/fog/storm_on_demand/requests/dns/list_domains.rb +0 -14
  498. data/lib/fog/storm_on_demand/requests/dns/list_records.rb +0 -14
  499. data/lib/fog/storm_on_demand/requests/dns/list_zones.rb +0 -14
  500. data/lib/fog/storm_on_demand/requests/dns/renew_domain.rb +0 -14
  501. data/lib/fog/storm_on_demand/requests/dns/update_record.rb +0 -14
  502. data/lib/fog/storm_on_demand/requests/dns/update_record_region.rb +0 -14
  503. data/lib/fog/storm_on_demand/requests/dns/update_reverse.rb +0 -14
  504. data/lib/fog/storm_on_demand/requests/dns/update_zone.rb +0 -14
  505. data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb +0 -14
  506. data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb +0 -14
  507. data/lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb +0 -14
  508. data/lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb +0 -14
  509. data/lib/fog/storm_on_demand/requests/monitoring/get_service.rb +0 -14
  510. data/lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb +0 -14
  511. data/lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb +0 -14
  512. data/lib/fog/storm_on_demand/requests/monitoring/update_service.rb +0 -14
  513. data/lib/fog/storm_on_demand/requests/network/add_balancer_node.rb +0 -14
  514. data/lib/fog/storm_on_demand/requests/network/add_balancer_service.rb +0 -14
  515. data/lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb +0 -14
  516. data/lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb +0 -14
  517. data/lib/fog/storm_on_demand/requests/network/check_balancer_available.rb +0 -14
  518. data/lib/fog/storm_on_demand/requests/network/check_server_attached.rb +0 -14
  519. data/lib/fog/storm_on_demand/requests/network/create_balancer.rb +0 -14
  520. data/lib/fog/storm_on_demand/requests/network/create_pool.rb +0 -14
  521. data/lib/fog/storm_on_demand/requests/network/create_ruleset.rb +0 -14
  522. data/lib/fog/storm_on_demand/requests/network/delete_balancer.rb +0 -14
  523. data/lib/fog/storm_on_demand/requests/network/delete_pool.rb +0 -14
  524. data/lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb +0 -14
  525. data/lib/fog/storm_on_demand/requests/network/get_assignments.rb +0 -14
  526. data/lib/fog/storm_on_demand/requests/network/get_balancer_details.rb +0 -14
  527. data/lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb +0 -14
  528. data/lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb +0 -14
  529. data/lib/fog/storm_on_demand/requests/network/get_firewall.rb +0 -14
  530. data/lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb +0 -14
  531. data/lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb +0 -14
  532. data/lib/fog/storm_on_demand/requests/network/get_ip_details.rb +0 -14
  533. data/lib/fog/storm_on_demand/requests/network/get_pool.rb +0 -14
  534. data/lib/fog/storm_on_demand/requests/network/get_private_ip.rb +0 -14
  535. data/lib/fog/storm_on_demand/requests/network/get_ruleset.rb +0 -14
  536. data/lib/fog/storm_on_demand/requests/network/get_zone.rb +0 -14
  537. data/lib/fog/storm_on_demand/requests/network/list_balancers.rb +0 -14
  538. data/lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb +0 -14
  539. data/lib/fog/storm_on_demand/requests/network/list_network_ips.rb +0 -14
  540. data/lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb +0 -14
  541. data/lib/fog/storm_on_demand/requests/network/list_private_ips.rb +0 -14
  542. data/lib/fog/storm_on_demand/requests/network/list_rulesets.rb +0 -14
  543. data/lib/fog/storm_on_demand/requests/network/list_zones.rb +0 -14
  544. data/lib/fog/storm_on_demand/requests/network/remove_balancer_node.rb +0 -14
  545. data/lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb +0 -14
  546. data/lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb +0 -14
  547. data/lib/fog/storm_on_demand/requests/network/request_new_ips.rb +0 -14
  548. data/lib/fog/storm_on_demand/requests/network/set_default_zone.rb +0 -14
  549. data/lib/fog/storm_on_demand/requests/network/update_balancer.rb +0 -14
  550. data/lib/fog/storm_on_demand/requests/network/update_firewall.rb +0 -14
  551. data/lib/fog/storm_on_demand/requests/network/update_pool.rb +0 -14
  552. data/lib/fog/storm_on_demand/requests/network/update_ruleset.rb +0 -14
  553. data/lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb +0 -14
  554. data/lib/fog/storm_on_demand/requests/storage/create_volume.rb +0 -14
  555. data/lib/fog/storm_on_demand/requests/storage/delete_volume.rb +0 -14
  556. data/lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb +0 -14
  557. data/lib/fog/storm_on_demand/requests/storage/get_volume.rb +0 -14
  558. data/lib/fog/storm_on_demand/requests/storage/list_clusters.rb +0 -14
  559. data/lib/fog/storm_on_demand/requests/storage/list_volumes.rb +0 -14
  560. data/lib/fog/storm_on_demand/requests/storage/resize_volume.rb +0 -14
  561. data/lib/fog/storm_on_demand/requests/storage/update_volume.rb +0 -14
  562. data/lib/fog/storm_on_demand/requests/support/add_feedback.rb +0 -14
  563. data/lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb +0 -14
  564. data/lib/fog/storm_on_demand/requests/support/authenticate.rb +0 -14
  565. data/lib/fog/storm_on_demand/requests/support/close_ticket.rb +0 -14
  566. data/lib/fog/storm_on_demand/requests/support/create_ticket.rb +0 -14
  567. data/lib/fog/storm_on_demand/requests/support/get_active_alert.rb +0 -14
  568. data/lib/fog/storm_on_demand/requests/support/get_ticket_details.rb +0 -14
  569. data/lib/fog/storm_on_demand/requests/support/list_ticket_types.rb +0 -14
  570. data/lib/fog/storm_on_demand/requests/support/list_tickets.rb +0 -14
  571. data/lib/fog/storm_on_demand/requests/support/reopen_ticket.rb +0 -14
  572. data/lib/fog/storm_on_demand/requests/support/reply_ticket.rb +0 -14
  573. data/lib/fog/storm_on_demand/requests/vpn/create_vpn.rb +0 -14
  574. data/lib/fog/storm_on_demand/requests/vpn/get_vpn.rb +0 -14
  575. data/lib/fog/storm_on_demand/requests/vpn/list_vpn_users.rb +0 -14
  576. data/lib/fog/storm_on_demand/requests/vpn/update_vpn.rb +0 -14
  577. data/lib/fog/storm_on_demand/shared.rb +0 -53
  578. data/lib/fog/storm_on_demand/storage.rb +0 -63
  579. data/lib/fog/storm_on_demand/support.rb +0 -61
  580. data/lib/fog/storm_on_demand/vpn.rb +0 -53
  581. data/tests/atmos/models/storage/file_update_tests.rb +0 -19
  582. data/tests/atmos/models/storage/nested_directories_tests.rb +0 -23
  583. data/tests/ecloud/compute/models/admin_organization_tests.rb +0 -16
  584. data/tests/ecloud/compute/models/compute_pool_tests.rb +0 -17
  585. data/tests/ecloud/compute/models/detached_disk_tests.rb +0 -26
  586. data/tests/ecloud/compute/models/environment_tests.rb +0 -23
  587. data/tests/ecloud/compute/models/internet_service_tests.rb +0 -28
  588. data/tests/ecloud/compute/models/ip_address_tests.rb +0 -19
  589. data/tests/ecloud/compute/models/network_tests.rb +0 -17
  590. data/tests/ecloud/compute/models/operating_system_families_tests.rb +0 -13
  591. data/tests/ecloud/compute/models/operating_system_tests.rb +0 -22
  592. data/tests/ecloud/compute/models/organization_tests.rb +0 -21
  593. data/tests/ecloud/compute/models/public_ip_tests.rb +0 -19
  594. data/tests/ecloud/compute/models/server_tests.rb +0 -144
  595. data/tests/ecloud/compute/models/ssh_key_tests.rb +0 -19
  596. data/tests/ecloud/compute/models/template_tests.rb +0 -20
  597. data/tests/storm_on_demand/requests/compute/server_tests.rb +0 -64
@@ -1,33 +0,0 @@
1
- class Ecloud < Fog::Bin
2
- class << self
3
- def available?
4
- Fog::Ecloud::ECLOUD_OPTIONS.all? {|requirement| Fog.credentials.include?(requirement)}
5
- end
6
-
7
- def class_for(key)
8
- case key
9
- when :compute
10
- Fog::Compute::Ecloud
11
- else
12
- raise ArgumentError, "Unrecognized service: #{key}"
13
- end
14
- end
15
-
16
- def [](service)
17
- @@connections ||= Hash.new do |hash, key|
18
- hash[key] = case key
19
- when :compute
20
- Fog::Logger.warning("Ecloud[:compute] is not recommended, use Compute[:ecloud] for portability")
21
- Fog::Compute.new(:provider => 'Ecloud')
22
- else
23
- raise ArgumentError, "Unrecognized service: #{key.inspect}"
24
- end
25
- end
26
- @@connections[service]
27
- end
28
-
29
- def services
30
- Fog::Ecloud.services
31
- end
32
- end
33
- end
@@ -1,29 +0,0 @@
1
- class StormOnDemand < Fog::Bin
2
- class << self
3
- def class_for(key)
4
- case key
5
- when :compute
6
- Fog::Compute::StormOnDemand
7
- else
8
- raise ArgumentError, "Unsupported #{self} service: #{key}"
9
- end
10
- end
11
-
12
- def [](service)
13
- @@connections ||= Hash.new do |hash, key|
14
- hash[key] = case key
15
- when :compute
16
- Fog::Logger.warning("StormOnDemand[:compute] is not recommended, use Compute[:stormondemand] for portability")
17
- Fog::Compute.new(:provider => 'StormOnDemand')
18
- else
19
- raise ArgumentError, "Unrecognized service: #{key.inspect}"
20
- end
21
- end
22
- @@connections[service]
23
- end
24
-
25
- def services
26
- Fog::StormOnDemand.services
27
- end
28
- end
29
- end
@@ -1 +0,0 @@
1
- require 'fog/ecloud/compute'
@@ -1,24 +0,0 @@
1
- module Fog
2
- module Ecloud
3
- class Collection < Fog::Collection
4
- def load(objects)
5
- objects = [ objects ] if objects.is_a?(Hash)
6
- super
7
- end
8
-
9
- def check_href!(opts = {})
10
- unless href
11
- opts = { :parent => opts } if opts.is_a?(String)
12
- msg = ":href missing, call with a :href pointing to #{if opts[:message]
13
- opts[:message]
14
- elsif opts[:parent]
15
- "the #{opts[:parent]} whos #{self.class.to_s.split('::').last.downcase} you want to enumerate"
16
- else
17
- "the resource"
18
- end}"
19
- raise Fog::Errors::Error.new(msg)
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,824 +0,0 @@
1
- require 'fog/ecloud/core'
2
- require 'fog/ecloud/collection'
3
- require 'fog/ecloud/model'
4
- require 'builder'
5
-
6
- module Fog
7
- module Compute
8
- class Ecloud < Fog::Service
9
- API_URL = "https://services.enterprisecloud.terremark.com"
10
-
11
- attr_reader :authentication_method, :version
12
-
13
- #### Credentials
14
- #requires
15
- recognizes :ecloud_username, :ecloud_password, :ecloud_version,
16
- :ecloud_access_key, :ecloud_private_key,
17
- :ecloud_authentication_method, :base_path
18
-
19
- #### Models
20
- model_path 'fog/ecloud/models/compute'
21
- model :organization
22
- collection :organizations
23
- model :location
24
- collection :locations
25
- model :catalog_item
26
- collection :catalog
27
- model :catalog_configuration
28
- collection :catalog_configurations
29
- model :environment
30
- collection :environments
31
- model :task
32
- collection :tasks
33
- model :compute_pool
34
- collection :compute_pools
35
- model :server
36
- collection :servers
37
- model :virtual_machine_assigned_ip
38
- collection :virtual_machine_assigned_ips
39
- model :hardware_configuration
40
- collection :hardware_configurations
41
- model :server_configuration_option
42
- collection :server_configuration_options
43
- model :guest_process
44
- collection :guest_processes
45
- model :layout
46
- collection :layouts
47
- model :row
48
- collection :rows
49
- model :group
50
- collection :groups
51
- model :internet_service
52
- collection :internet_services
53
- model :node
54
- collection :nodes
55
- model :monitor
56
- collection :monitors
57
- model :cpu_usage_detail
58
- collection :cpu_usage_detail_summary
59
- model :memory_usage_detail
60
- collection :memory_usage_detail_summary
61
- model :storage_usage_detail
62
- collection :storage_usage_detail_summary
63
- model :operating_system_family
64
- collection :operating_system_families
65
- model :operating_system
66
- collection :operating_systems
67
- model :template
68
- collection :templates
69
- model :firewall_acl
70
- collection :firewall_acls
71
- model :network
72
- collection :networks
73
- model :ip_address
74
- collection :ip_addresses
75
- model :physical_device
76
- collection :physical_devices
77
- model :public_ip
78
- collection :public_ips
79
- model :trusted_network_group
80
- collection :trusted_network_groups
81
- model :backup_internet_service
82
- collection :backup_internet_services
83
- model :rnat
84
- collection :rnats
85
- model :association
86
- collection :associations
87
- model :tag
88
- collection :tags
89
- model :admin_organization
90
- collection :admin_organizations
91
- model :ssh_key
92
- collection :ssh_keys
93
- model :password_complexity_rule
94
- collection :password_complexity_rules
95
- model :authentication_level
96
- collection :authentication_levels
97
- model :login_banner
98
- collection :login_banners
99
- model :user
100
- collection :users
101
- model :role
102
- collection :roles
103
- model :ssh_key
104
- collection :ssh_keys
105
- model :support_ticket
106
- collection :support_tickets
107
- model :detached_disk
108
- collection :detached_disks
109
-
110
- #### Requests
111
- request_path 'fog/ecloud/requests/compute'
112
- request :backup_internet_service_create
113
- request :backup_internet_service_delete
114
- request :backup_internet_service_edit
115
- request :compute_pool_edit
116
- request :firewall_acls_create
117
- request :firewall_acls_delete
118
- request :get_admin_organization
119
- request :get_api_key
120
- request :get_api_keys
121
- request :get_association
122
- request :get_associations
123
- request :get_authentication_level
124
- request :get_authentication_levels
125
- request :get_backup_internet_service
126
- request :get_backup_internet_services
127
- request :get_catalog
128
- request :get_catalog_configuration
129
- request :get_catalog_configurations
130
- request :get_catalog_item
131
- request :get_compute_pool
132
- request :get_compute_pools
133
- request :get_cpu_usage_detail
134
- request :get_cpu_usage_detail_summary
135
- request :get_environment
136
- request :get_firewall_acl
137
- request :get_firewall_acls
138
- request :get_group
139
- request :get_groups
140
- request :get_guest_process
141
- request :get_guest_processes
142
- request :get_hardware_configuration
143
- request :get_internet_service
144
- request :get_internet_services
145
- request :get_ip_address
146
- request :get_layout
147
- request :get_layouts
148
- request :get_location
149
- request :get_locations
150
- request :get_login_banner
151
- request :get_login_banners
152
- request :get_memory_usage_detail
153
- request :get_memory_usage_detail_summary
154
- request :get_monitor
155
- request :get_monitors
156
- request :get_network
157
- request :get_network_summary
158
- request :get_networks
159
- request :get_node
160
- request :get_nodes
161
- request :get_operating_system
162
- request :get_operating_system_families
163
- request :get_organization
164
- request :get_organizations
165
- request :get_password_complexity_rule
166
- request :get_password_complexity_rules
167
- request :get_physical_device
168
- request :get_physical_devices
169
- request :get_public_ip
170
- request :get_public_ips
171
- request :get_rnat
172
- request :get_rnats
173
- request :get_role
174
- request :get_roles
175
- request :get_row
176
- request :get_rows
177
- request :get_server
178
- request :get_server_configuration_option
179
- request :get_server_configuration_options
180
- request :get_servers
181
- request :get_ssh_key
182
- request :get_ssh_keys
183
- request :get_storage_usage_detail
184
- request :get_storage_usage_detail_summary
185
- request :get_support_ticket
186
- request :get_support_tickets
187
- request :get_tag
188
- request :get_tags
189
- request :get_task
190
- request :get_tasks
191
- request :get_template
192
- request :get_templates
193
- request :get_trusted_network_group
194
- request :get_trusted_network_groups
195
- request :get_user
196
- request :get_users
197
- request :get_virtual_machine_assigned_ips
198
- request :get_detached_disks
199
- request :get_detached_disk
200
- request :groups_create
201
- request :groups_delete
202
- request :groups_edit
203
- request :groups_movedown
204
- request :groups_moveup
205
- request :internet_service_create
206
- request :internet_service_delete
207
- request :internet_service_edit
208
- request :monitors_create_default
209
- request :monitors_create_ecv
210
- request :monitors_create_http
211
- request :monitors_create_loopback
212
- request :monitors_create_ping
213
- request :monitors_disable
214
- request :monitors_edit_ecv
215
- request :monitors_edit_http
216
- request :monitors_edit_ping
217
- request :monitors_enable
218
- request :node_service_create
219
- request :node_service_delete
220
- request :node_service_edit
221
- request :power_off
222
- request :power_on
223
- request :power_reset
224
- request :power_shutdown
225
- request :public_ip_activate
226
- request :rnat_associations_create_device
227
- request :rnat_associations_delete
228
- request :rnat_associations_edit_network
229
- request :rows_create
230
- request :rows_delete
231
- request :rows_edit
232
- request :rows_movedown
233
- request :rows_moveup
234
- request :trusted_network_groups_create
235
- request :trusted_network_groups_delete
236
- request :trusted_network_groups_edit
237
- request :virtual_machine_edit_assigned_ips
238
- request :virtual_machine_copy
239
- request :virtual_machine_copy_identical
240
- request :virtual_machine_create_from_template
241
- request :virtual_machine_delete
242
- request :virtual_machine_edit
243
- request :virtual_machine_edit_hardware_configuration
244
- request :virtual_machine_import
245
- request :virtual_machine_upload_file
246
- request :virtual_machine_detach_disk
247
- request :virtual_machine_attach_disk
248
-
249
- module Shared
250
- attr_accessor :base_path
251
- attr_reader :versions_uri
252
-
253
- def validate_data(required_opts = [], options = {})
254
- unless required_opts.all? { |opt| options.key?(opt) }
255
- raise ArgumentError.new("Required data missing: #{(required_opts - options.keys).map(&:inspect).join(", ")}")
256
- end
257
- end
258
-
259
- def id_from_uri(uri)
260
- uri.match(/(\d+)$/)[1].to_i
261
- end
262
-
263
- def default_organization_uri
264
- "#{@base_path}/organizations"
265
- end
266
- end
267
-
268
- class Real
269
- include Shared
270
-
271
- class << self
272
- def basic_request(name, expects=[200], method=:get, headers={}, body='')
273
- define_method(name) do |uri|
274
- request({
275
- :expects => expects,
276
- :method => method,
277
- :headers => headers,
278
- :body => body,
279
- :parse => true,
280
- :uri => uri
281
- })
282
- end
283
- end
284
- end
285
-
286
- def initialize(options = {})
287
- @base_path = options[:base_path] || '/cloudapi/ecloud'
288
- @connections = {}
289
- @connection_options = options[:connection_options] || {}
290
- @host = options[:ecloud_host] || API_URL
291
- @persistent = options[:persistent] || false
292
- @version = options[:ecloud_version] || "2013-06-01"
293
- @authentication_method = options[:ecloud_authentication_method] || :cloud_api_auth
294
- @access_key = options[:ecloud_access_key]
295
- @private_key = options[:ecloud_private_key]
296
- if @private_key.nil? || @authentication_method == :basic_auth
297
- @authentication_method = :basic_auth
298
- @username = options[:ecloud_username]
299
- @password = options[:ecloud_password]
300
- if @username.nil? || @password.nil?
301
- raise ArgumentError, "No credentials (cloud auth, or basic auth) passed!"
302
- end
303
- else
304
- @hmac = Fog::HMAC.new("sha256", @private_key)
305
- end
306
- end
307
-
308
- def request(params)
309
- # Convert the uri to a URI if it's a string.
310
- if params[:uri].is_a?(String)
311
- params[:uri] = URI.parse(@host + params[:uri])
312
- end
313
- host_url = "#{params[:uri].scheme}://#{params[:uri].host}#{params[:uri].port ? ":#{params[:uri].port}" : ''}"
314
-
315
- # Hash connections on the host_url ... There's nothing to say we won't get URI's that go to
316
- # different hosts.
317
- @connections[host_url] ||= Fog::XML::Connection.new(host_url, @persistent, @connection_options)
318
-
319
- # Set headers to an empty hash if none are set.
320
- headers = set_extra_headers_for(params) || set_extra_headers_for({})
321
-
322
- # Make the request
323
- options = {
324
- :expects => (params[:expects] || 200),
325
- :method => params[:method] || 'GET',
326
- :path => params[:uri].path + "#{"?#{params[:uri].query}" if params[:uri].query}",
327
- :headers => headers
328
- }
329
- unless params[:body].nil? || params[:body].empty?
330
- options.merge!({:body => params[:body]})
331
- end
332
- response = @connections[host_url].request(options)
333
- # Parse the response body into a hash
334
- unless response.body.empty?
335
- if params[:parse]
336
- document = Fog::ToHashDocument.new
337
- parser = Nokogiri::XML::SAX::PushParser.new(document)
338
- parser << response.body
339
- parser.finish
340
-
341
- response.body = document.body
342
- end
343
- end
344
-
345
- response
346
- end
347
-
348
- private
349
-
350
- # if Authorization and x-tmrk-authorization are used, the x-tmrk-authorization takes precendence.
351
- def set_extra_headers_for(params)
352
- params[:headers] = {
353
- 'x-tmrk-version' => @version,
354
- 'Date' => Time.now.utc.strftime("%a, %d %b %Y %H:%M:%S GMT"),
355
- }.merge(params[:headers] || {})
356
- if params[:method]=="POST" || params[:method]=="PUT"
357
- params[:headers].merge!({"Content-Type" => 'application/xml'}) unless params[:headers]['Content-Type']
358
- params[:headers].merge!({"Accept" => 'application/xml'})
359
- end
360
- unless params[:body].nil? || params[:body].empty?
361
- params[:headers].merge!({"x-tmrk-contenthash" => "Sha256 #{Base64.encode64(Digest::SHA2.digest(params[:body].to_s)).chomp}"})
362
- end
363
- if @authentication_method == :basic_auth
364
- params[:headers].merge!({'Authorization' => "Basic #{Base64.encode64(@username+":"+@password).delete("\r\n")}"})
365
- elsif @authentication_method == :cloud_api_auth
366
- signature = cloud_api_signature(params)
367
- params[:headers].merge!({
368
- "x-tmrk-authorization" => %{CloudApi AccessKey="#{@access_key}" SignatureType="HmacSha256" Signature="#{signature}"},
369
- "Authorization" => %{CloudApi AccessKey="#{@access_key}" SignatureType="HmacSha256" Signature="#{signature}"}
370
- })
371
- end
372
- params[:headers]
373
- end
374
-
375
- def cloud_api_signature(params)
376
- verb = params[:method].upcase
377
- headers = params[:headers]
378
- path = params[:uri].path
379
- canonicalized_headers = canonicalize_headers(headers)
380
- canonicalized_resource = canonicalize_resource(path)
381
- string = [
382
- verb,
383
- headers['Content-Length'].to_s,
384
- headers['Content-Type'].to_s,
385
- headers['Date'].to_s,
386
- canonicalized_headers,
387
- canonicalized_resource + "\n"
388
- ].join("\n")
389
- Base64.encode64(@hmac.sign(string)).chomp
390
- end
391
-
392
- # section 5.6.3.2 in the ~1000 page pdf spec
393
- def canonicalize_headers(headers)
394
- tmp = headers.reduce({}) {|ret, h| ret[h.first.downcase] = h.last if h.first.match(/^x-tmrk/i) ; ret }
395
- tmp.reject! {|k,v| k == "x-tmrk-authorization" }
396
- tmp = tmp.sort.map{|e| "#{e.first}:#{e.last}" }.join("\n")
397
- tmp
398
- end
399
-
400
- # section 5.6.3.3 in the ~1000 page pdf spec
401
- def canonicalize_resource(path)
402
- uri, query_string = path.split("?")
403
- return uri if query_string.nil?
404
- query_string_pairs = query_string.split("&").sort.map{|e| e.split("=") }
405
- tm_query_string = query_string_pairs.map{|x| "#{x.first.downcase}:#{x.last}" }.join("\n")
406
- "#{uri.downcase}\n#{tm_query_string}\n"
407
- end
408
- end
409
-
410
- class Mock
411
- include Shared
412
-
413
- def self.data
414
- @data ||= Hash.new do |hash, key|
415
- hash[key] = begin
416
- compute_pool_id = Fog.credentials[:ecloud_compute_pool_id] || Fog::Mock.random_numbers(3).to_i
417
- environment_id = Fog.credentials[:ecloud_environment_id] || Fog::Mock.random_numbers(3).to_i
418
- public_ip_id = Fog.credentials[:ecloud_public_ip_id] || Fog::Mock.random_numbers(6).to_i
419
- internet_service_id = Fog::Mock.random_numbers(6).to_i
420
- node_service_id = Fog::Mock.random_numbers(6).to_i
421
- environment_name = Fog.credentials[:ecloud_environment_name] || Fog::Mock.random_letters(12)
422
- location_id = Fog::Mock.random_numbers(4).to_i
423
- network_id = Fog.credentials[:ecloud_network_id] || Fog::Mock.random_numbers(6).to_i
424
- network_ip = Fog::Ecloud.ip_address
425
- public_ip = Fog.credentials[:ecloud_public_ip_name] || Fog::Ecloud.ip_address
426
- ip_address_id = Fog::Ecloud.ip_address
427
- ip_address2_id = Fog::Ecloud.ip_address
428
- operating_system_id = Fog::Mock.random_numbers(7).to_i
429
- operating_system_family_id = Fog::Mock.random_numbers(7).to_i
430
- organization_id = Fog::Mock.random_numbers(7).to_i
431
- organization_name = Fog::Mock.random_letters(7)
432
- template_id = Fog.credentials[:ecloud_template_id] || Fog::Mock.random_numbers(7).to_i
433
- ssh_key_id = Fog.credentials[:ecloud_ssh_key_id] || Fog::Mock.random_numbers(4).to_i
434
- ssh_key_name = Fog.credentials[:ecloud_ssh_key_name] || "root"
435
-
436
- environment = {
437
- :id => environment_id,
438
- :href => "/cloudapi/ecloud/environments/#{environment_id}",
439
- :name => environment_name,
440
- :type => "application/vnd.tmrk.cloud.environment"
441
- }
442
-
443
- organization = {
444
- :href => "/cloudapi/ecloud/organizations/#{organization_id}",
445
- :type => "application/vnd.tmrk.cloud.organization",
446
- :name => organization_name,
447
- :Links => {
448
- :Link => [
449
- Fog::Ecloud.keep(environment, :href, :name, :type),
450
- {
451
- :href => "/cloudapi/ecloud/admin/organizations/#{organization_id}",
452
- :name => organization_name,
453
- :type => "application/vnd.tmrk.cloud.admin.organization",
454
- :rel => "alternate",
455
- },
456
- {
457
- :href => "/cloudapi/ecloud/devicetags/organizations/#{organization_id}",
458
- :type => "application/vnd.tmrk.cloud.deviceTag; type=collection",
459
- :rel => "down",
460
- },
461
- {
462
- :href => "/cloudapi/ecloud/alerts/organizations/#{organization_id}",
463
- :type => "application/vnd.tmrk.cloud.alertLog",
464
- :rel => "down",
465
- },
466
- ],
467
- },
468
- :Locations => {
469
- :Location => [
470
- {
471
- :href => "/cloudapi/ecloud/locations/#{location_id}",
472
- :name => organization_name,
473
- :Catalog => {
474
- :href => "/cloudapi/ecloud/admin/catalog/organizations/#{organization_id}/locations/#{location_id}",
475
- :type => "application/vnd.tmrk.cloud.admin.catalogEntry; type=collection"
476
- },
477
- :Environments => { :Environment => [environment] }
478
- }
479
- ]
480
- }
481
- }
482
- environment.merge!(
483
- :Links => {
484
- :Link => [ Fog::Ecloud.keep(organization, :href, :name, :type), ]
485
- }
486
- )
487
-
488
- admin_organization = {
489
- :id => organization_id,
490
- :href => "/cloudapi/ecloud/admin/organizations/#{organization_id}",
491
- :type => "application/vnd.tmrk.cloud.admin.organization",
492
- :name => organization_name,
493
- :Links => {
494
- :Link => [
495
- Fog::Ecloud.keep(organization, :href, :type, :name)
496
- ],
497
- },
498
- :organization_id => organization_id,
499
- }
500
-
501
- compute_pool = {
502
- :id => compute_pool_id,
503
- :href => "/cloudapi/ecloud/computepools/#{compute_pool_id}",
504
- :name => Fog::Mock.random_letters(12),
505
- :type => "application/vnd.tmrk.cloud.computePool",
506
- :environment_id => environment_id,
507
- :Links => {
508
- :Link => [
509
- Fog::Ecloud.keep(organization, :href, :name, :type),
510
- Fog::Ecloud.keep(environment, :href, :name, :type),
511
- ]
512
- }
513
- }
514
-
515
- public_ip = {
516
- :id => public_ip_id,
517
- :href => "/cloudapi/ecloud/publicips/#{public_ip_id}",
518
- :name => public_ip,
519
- :type => "application/vnd.tmrk.cloud.publicIp",
520
- :IpType => "none",
521
- :environment_id => environment_id,
522
- :Links => {
523
- :Link => [
524
- Fog::Ecloud.keep(environment, :href, :name, :type),
525
- ],
526
- },
527
- :InternetServices => {
528
- :InternetService => [
529
- ],
530
- },
531
- }
532
-
533
- internet_service = {
534
- :id => internet_service_id,
535
- :href => "/cloudapi/ecloud/internetservices/#{internet_service_id}",
536
- :name => Fog::Mock.random_letters(6),
537
- :type => "application/vnd.tmrk.cloud.internetService",
538
- :public_ip_id => public_ip_id,
539
- :Links => {
540
- :Link => [
541
- Fog::Ecloud.keep(public_ip, :href, :name, :type),
542
- ],
543
- },
544
- :NodeServices => {
545
- :NodeService => [
546
- ]
547
- },
548
- }
549
-
550
- node_service = {
551
- :id => node_service_id,
552
- :href => "/cloudapi/ecloud/nodeservices/#{node_service_id}",
553
- :name => Fog::Mock.random_letters(6),
554
- :type => "application/vnd.tmrk.cloud.nodeService",
555
- :internet_service_id => internet_service_id,
556
- :Links => {
557
- :Link => [
558
- Fog::Ecloud.keep(internet_service, :href, :name, :type)
559
- ],
560
- },
561
- }
562
-
563
- internet_service[:NodeServices][:NodeService].push(node_service)
564
- public_ip[:InternetServices][:InternetService].push(internet_service)
565
-
566
- network = {
567
- :id => network_id,
568
- :href => "/cloudapi/ecloud/networks/#{network_id}",
569
- :name => "#{network_ip}/#{Fog::Mock.random_numbers(2)}",
570
- :type => "application/vnd.tmrk.cloud.network",
571
- :Address => network_ip,
572
- :NetworkType => "Dmz",
573
- :BroadcastAddress => network_ip,
574
- :GatewayAddress => network_ip,
575
- :environment_id => environment_id,
576
- :Links => {
577
- :Link => [
578
- Fog::Ecloud.keep(environment, :href, :name, :type),
579
- ]
580
- },
581
- :IpAddresses => {
582
- :IpAddress => [],
583
- },
584
- }
585
-
586
- ip_address = {
587
- :id => ip_address_id,
588
- :href => "/cloudapi/ecloud/ipaddresses/networks/#{network_id}/#{ip_address_id}",
589
- :name => ip_address_id,
590
- :type => "application/vnd.tmrk.cloud.ipAddress",
591
- :network_id => network_id,
592
- :Links => {
593
- :Link => [ Fog::Ecloud.keep(network, :href, :name, :type), ],
594
- },
595
- :Reserved => "false",
596
- :Host => nil,
597
- :DetectedOn => nil,
598
- }
599
-
600
- ip_address2 = ip_address.dup.merge(:id => ip_address2_id, :href => "/cloudapi/ecloud/ipaddresses/networks/#{network_id}/#{ip_address2_id}", :name => ip_address2_id)
601
-
602
- network[:IpAddresses][:IpAddress].push(ip_address).push(ip_address2)
603
-
604
- short_name = "solaris10_64guest"
605
- operating_system = {
606
- :short_name => short_name,
607
- :compute_pool_id => compute_pool_id,
608
- :href => "/cloudapi/ecloud/operatingsystems/#{short_name}/computepools/#{compute_pool_id}",
609
- :name => "Sun Solaris 10 (64-bit)",
610
- :type => "application/vnd.tmrk.cloud.operatingSystem",
611
- :FamilyName => "Solaris",
612
- :Links => {
613
- :Link => Fog::Ecloud.keep(compute_pool, :href, :name, :type),
614
- },
615
- :ConfigurationOptions => {
616
- :Processor => {
617
- :Minimum => "1",
618
- :Maximum => "8",
619
- :StepFactor => "1"
620
- },
621
- :Memory => {
622
- :MinimumSize => {
623
- :Unit => "MB",
624
- :Value => "800"
625
- },
626
- :MaximumSize => {
627
- :Unit => "MB",
628
- :Value => "16384"
629
- },
630
- :StepFactor => {
631
- :Unit => "MB",
632
- :Value => "4"
633
- }
634
- },
635
- :Disk => {
636
- :Minimum => "1",
637
- :Maximum => "15",
638
- :SystemDisk => {
639
- :ResourceCapacityRange => {
640
- :MinimumSize => {
641
- :Unit => "GB",
642
- :Value => "1"
643
- },
644
- :MaximumSize => {
645
- :Unit => "GB",
646
- :Value => "512"
647
- },
648
- :StepFactor => {
649
- :Unit => "GB",
650
- :Value => "1"}
651
- },
652
- :MonthlyCost => "0"
653
- },
654
- :DataDisk => {
655
- :ResourceCapacityRange => {
656
- :MinimumSize => {
657
- :Unit => "GB",
658
- :Value => "1"
659
- },
660
- :MaximumSize => {
661
- :Unit => "GB",
662
- :Value => "512"
663
- },
664
- :StepFactor => {
665
- :Unit => "GB",
666
- :Value => "1"
667
- }
668
- },
669
- :MonthlyCost => "0"
670
- }
671
- },
672
- :NetworkAdapter=> {
673
- :Minimum => "1",
674
- :Maximum => "4",
675
- :StepFactor => "1"
676
- }
677
- }
678
- }
679
-
680
- template = {
681
- :id => template_id,
682
- :href => "/cloudapi/ecloud/templates/#{template_id}/computepools/#{compute_pool_id}",
683
- :type => "application/vnd.tmrk.cloud.template",
684
- :name => "Sun Solaris 10 (x64)",
685
- :compute_pool_id => compute_pool_id,
686
- :OperatingSystem => Fog::Ecloud.keep(operating_system, :href, :name, :type),
687
- :Memory => {
688
- :MinimumSize => {
689
- :Unit => "MB",
690
- :Value => "800"
691
- },
692
- :MaximumSize => {
693
- :Unit => "MB",
694
- :Value => "16384"
695
- },
696
- :StepFactor => {
697
- :Unit => "MB",
698
- :Value => "4"
699
- }
700
- },
701
- :Storage => {
702
- :Size => {
703
- :Unit => "GB",
704
- :Value => "7"
705
- }
706
- },
707
- :NetworkAdapters => "1",
708
- :Links => {
709
- :Link => [
710
- Fog::Ecloud.keep(compute_pool, :href, :name, :type),
711
- ]
712
- }
713
- }
714
-
715
- operating_system_family = {
716
- :id => operating_system_family_id,
717
- :compute_pool_id => compute_pool_id,
718
- :OperatingSystemFamily => {
719
- :Name => "Linux",
720
- :OperatingSystems => {
721
- :OperatingSystem => [Fog::Ecloud.keep(operating_system, :href, :name, :type)],
722
- }
723
- },
724
- :Links => {
725
- :Link => [
726
- Fog::Ecloud.keep(compute_pool, :href, :name, :type),
727
- ]
728
- }
729
- }
730
-
731
- ssh_key = {
732
- :id => ssh_key_id,
733
- :href => "/cloudapi/ecloud/admin/sshKeys/#{ssh_key_id}",
734
- :name => ssh_key_name,
735
- :admin_organization_id => organization_id,
736
- :Links => {
737
- :Link => [
738
- Fog::Ecloud.keep(admin_organization, :href, :name, :type),
739
- Fog::Ecloud.keep(organization, :href, :name, :type),
740
- ]
741
- },
742
- :Default => "true",
743
- :FingerPrint => Fog::Ecloud.mac_address
744
- }
745
-
746
- layout = {
747
- :id => environment_id,
748
- :href => "/cloudapi/ecloud/layout/environments/#{environment_id}",
749
- :type => "application/vnd.tmrk.cloud.deviceLayout",
750
- :Links => {
751
- :Link => [
752
- Fog::Ecloud.keep(environment, :name, :href, :type),
753
- ],
754
- },
755
- :Rows => {
756
- :Row => [
757
- ],
758
- },
759
- :environment_id => environment_id
760
- }
761
-
762
- {
763
- :compute_pools => {compute_pool_id => compute_pool},
764
- :environments => {environment_id => environment},
765
- :public_ips => {public_ip_id => public_ip},
766
- :internet_services => {internet_service_id => internet_service},
767
- :node_services => {node_service_id => node_service},
768
- :networks => {network_id => network},
769
- :organizations => {organization_id => organization},
770
- :admin_organizations => {organization_id => admin_organization},
771
- :operating_systems => {operating_system_id => operating_system},
772
- :operating_system_families => {operating_system_family_id => operating_system_family},
773
- :servers => {},
774
- :tasks => {},
775
- :templates => {template_id => template},
776
- :ssh_keys => {ssh_key_id => ssh_key},
777
- :detached_disks => {},
778
- :template_href => (Fog.credentials[:ecloud_template_href] || "/cloudapi/ecloud/templates/#{template_id}/computepools/#{compute_pool_id}"),
779
- :rows => {},
780
- :groups => {},
781
- :layouts => {environment_id => layout},
782
- }
783
- end
784
- end
785
- end
786
-
787
- def self.reset
788
- @data = nil
789
- end
790
-
791
- def initialize(options={})
792
- @base_path = '/cloudapi/ecloud'
793
- @ecloud_api_key = options[:ecloud]
794
- end
795
-
796
- def data
797
- self.class.data[@ecloud_api_key]
798
- end
799
-
800
- def reset_data
801
- self.class.data.delete(@ecloud_api_key)
802
- end
803
-
804
- def response(params={})
805
- body = params[:body]
806
- headers = {
807
- "Content-Type" => "application/xml"
808
- }.merge(params[:headers] || {})
809
- status = params[:status] || 200
810
-
811
- response = Excon::Response.new(:body => body, :headers => headers, :status => status)
812
- if params.key?(:expects) && ![*params[:expects]].include?(response.status)
813
- raise(Excon::Errors.status_error(params, response))
814
- else response
815
- end
816
- end
817
-
818
- def deep_copy(o)
819
- Marshal.load(Marshal.dump(o))
820
- end
821
- end
822
- end
823
- end
824
- end