fog-ecloud 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -0
  3. data/fog-ecloud.gemspec +4 -1
  4. data/lib/fog/bin/ecloud.rb +1 -1
  5. data/lib/fog/compute/ecloud.rb +826 -0
  6. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/admin_organization.rb +0 -0
  7. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/admin_organizations.rb +1 -1
  8. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/api_key.rb +0 -0
  9. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/api_keys.rb +1 -1
  10. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/association.rb +0 -0
  11. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/associations.rb +1 -1
  12. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/authentication_level.rb +0 -0
  13. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/authentication_levels.rb +1 -1
  14. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/backup_internet_service.rb +0 -0
  15. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/backup_internet_services.rb +1 -1
  16. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog.rb +1 -1
  17. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog_configuration.rb +0 -0
  18. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog_configurations.rb +1 -1
  19. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog_item.rb +0 -0
  20. data/lib/fog/{ecloud → compute/ecloud/models}/collection.rb +0 -0
  21. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/compute_pool.rb +2 -2
  22. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/compute_pools.rb +1 -1
  23. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/cpu_usage_detail.rb +0 -0
  24. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/cpu_usage_detail_summary.rb +1 -1
  25. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/detached_disk.rb +0 -0
  26. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/detached_disks.rb +1 -1
  27. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/environment.rb +0 -0
  28. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/environments.rb +1 -1
  29. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/firewall_acl.rb +0 -0
  30. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/firewall_acls.rb +1 -1
  31. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/group.rb +0 -0
  32. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/groups.rb +1 -1
  33. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/guest_process.rb +0 -0
  34. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/guest_processes.rb +1 -1
  35. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/hardware_configuration.rb +0 -0
  36. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/hardware_configurations.rb +1 -1
  37. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/internet_service.rb +0 -0
  38. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/internet_services.rb +1 -1
  39. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ip_address.rb +0 -0
  40. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ip_addresses.rb +1 -1
  41. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/layout.rb +0 -0
  42. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/layouts.rb +1 -1
  43. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/location.rb +0 -0
  44. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/locations.rb +1 -1
  45. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/login_banner.rb +0 -0
  46. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/login_banners.rb +1 -1
  47. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/memory_usage_detail.rb +0 -0
  48. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/memory_usage_detail_summary.rb +1 -1
  49. data/lib/fog/{ecloud → compute/ecloud/models}/model.rb +0 -0
  50. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/monitor.rb +0 -0
  51. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/monitors.rb +1 -1
  52. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/network.rb +0 -0
  53. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/networks.rb +1 -1
  54. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/node.rb +0 -0
  55. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/nodes.rb +1 -1
  56. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_system.rb +0 -0
  57. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_system_families.rb +1 -1
  58. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_system_family.rb +0 -0
  59. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_systems.rb +1 -1
  60. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/organization.rb +0 -0
  61. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/organizations.rb +1 -1
  62. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/password_complexity_rule.rb +0 -0
  63. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/password_complexity_rules.rb +1 -1
  64. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/physical_device.rb +0 -0
  65. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/physical_devices.rb +1 -1
  66. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/public_ip.rb +0 -0
  67. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/public_ips.rb +1 -1
  68. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/rnat.rb +0 -0
  69. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/rnats.rb +1 -1
  70. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/role.rb +0 -0
  71. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/roles.rb +1 -1
  72. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/row.rb +0 -0
  73. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/rows.rb +1 -1
  74. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/server.rb +5 -5
  75. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/server_configuration_option.rb +0 -0
  76. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/server_configuration_options.rb +1 -1
  77. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/servers.rb +1 -1
  78. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ssh_key.rb +0 -0
  79. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ssh_keys.rb +1 -1
  80. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/storage_usage_detail.rb +0 -0
  81. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/storage_usage_detail_summary.rb +1 -1
  82. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/support_ticket.rb +0 -0
  83. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/support_tickets.rb +1 -1
  84. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/tag.rb +0 -0
  85. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/tags.rb +1 -1
  86. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/task.rb +0 -0
  87. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/tasks.rb +1 -1
  88. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/template.rb +0 -0
  89. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/templates.rb +1 -1
  90. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/trusted_network_group.rb +0 -0
  91. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/trusted_network_groups.rb +1 -1
  92. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/user.rb +0 -0
  93. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/users.rb +1 -1
  94. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/virtual_machine_assigned_ip.rb +0 -0
  95. data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/virtual_machine_assigned_ips.rb +1 -1
  96. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_disable_support_access.rb +1 -1
  97. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_edit_authentication_levels.rb +1 -1
  98. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_edit_login_banner.rb +1 -1
  99. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_edit_password_complexity_rules.rb +1 -1
  100. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_enable_support_access.rb +1 -1
  101. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/backup_internet_service_create.rb +0 -0
  102. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/backup_internet_service_delete.rb +1 -1
  103. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/backup_internet_service_edit.rb +0 -0
  104. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/compute_pool_edit.rb +1 -1
  105. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/firewall_acls_create.rb +0 -0
  106. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/firewall_acls_delete.rb +1 -1
  107. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_admin_organization.rb +0 -0
  108. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_api_key.rb +0 -0
  109. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_api_keys.rb +0 -0
  110. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_association.rb +0 -0
  111. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_associations.rb +0 -0
  112. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_authentication_level.rb +0 -0
  113. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_authentication_levels.rb +0 -0
  114. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_backup_internet_service.rb +0 -0
  115. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_backup_internet_services.rb +0 -0
  116. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog.rb +0 -0
  117. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog_configuration.rb +0 -0
  118. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog_configurations.rb +0 -0
  119. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog_item.rb +0 -0
  120. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_compute_pool.rb +0 -0
  121. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_compute_pools.rb +0 -0
  122. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_cpu_usage_detail.rb +0 -0
  123. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_cpu_usage_detail_summary.rb +0 -0
  124. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_detached_disk.rb +0 -0
  125. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_detached_disks.rb +0 -0
  126. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_environment.rb +0 -0
  127. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_environments.rb +0 -0
  128. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_firewall_acl.rb +0 -0
  129. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_firewall_acls.rb +0 -0
  130. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_group.rb +0 -0
  131. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_groups.rb +0 -0
  132. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_guest_process.rb +0 -0
  133. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_guest_processes.rb +0 -0
  134. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_hardware_configuration.rb +0 -0
  135. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_hardware_configurations.rb +0 -0
  136. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_internet_service.rb +0 -0
  137. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_internet_services.rb +0 -0
  138. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_ip_address.rb +0 -0
  139. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_layout.rb +0 -0
  140. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_layouts.rb +0 -0
  141. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_location.rb +0 -0
  142. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_locations.rb +0 -0
  143. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_login_banner.rb +0 -0
  144. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_login_banners.rb +0 -0
  145. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_memory_usage_detail.rb +0 -0
  146. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_memory_usage_detail_summary.rb +0 -0
  147. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_monitor.rb +0 -0
  148. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_monitors.rb +0 -0
  149. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_network.rb +0 -0
  150. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_network_summary.rb +0 -0
  151. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_networks.rb +0 -0
  152. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_node.rb +0 -0
  153. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_nodes.rb +0 -0
  154. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_operating_system.rb +0 -0
  155. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_operating_system_families.rb +0 -0
  156. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_organization.rb +0 -0
  157. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_organizations.rb +0 -0
  158. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_password_complexity_rule.rb +0 -0
  159. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_password_complexity_rules.rb +0 -0
  160. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_physical_device.rb +0 -0
  161. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_physical_devices.rb +0 -0
  162. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_process.rb +0 -0
  163. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_processes.rb +0 -0
  164. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_public_ip.rb +0 -0
  165. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_public_ips.rb +0 -0
  166. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_rnat.rb +0 -0
  167. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_rnats.rb +0 -0
  168. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_role.rb +0 -0
  169. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_roles.rb +0 -0
  170. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_row.rb +0 -0
  171. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_rows.rb +0 -0
  172. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_server.rb +0 -0
  173. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_server_configuration_option.rb +0 -0
  174. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_server_configuration_options.rb +0 -0
  175. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_servers.rb +0 -0
  176. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_ssh_key.rb +0 -0
  177. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_ssh_keys.rb +0 -0
  178. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_storage_usage_detail.rb +0 -0
  179. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_storage_usage_detail_summary.rb +0 -0
  180. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_support_ticket.rb +0 -0
  181. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_support_tickets.rb +0 -0
  182. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_tag.rb +0 -0
  183. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_tags.rb +0 -0
  184. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_task.rb +0 -0
  185. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_tasks.rb +0 -0
  186. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_template.rb +0 -0
  187. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_templates.rb +0 -0
  188. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_trusted_network_group.rb +0 -0
  189. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_trusted_network_groups.rb +0 -0
  190. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_user.rb +0 -0
  191. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_users.rb +0 -0
  192. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_virtual_machine_assigned_ips.rb +0 -0
  193. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_create.rb +0 -0
  194. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_delete.rb +1 -1
  195. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_edit.rb +0 -0
  196. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_movedown.rb +1 -1
  197. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_moveup.rb +1 -1
  198. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/internet_service_create.rb +2 -2
  199. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/internet_service_delete.rb +1 -1
  200. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/internet_service_edit.rb +3 -3
  201. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_default.rb +1 -1
  202. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_ecv.rb +0 -0
  203. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_http.rb +0 -0
  204. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_loopback.rb +1 -1
  205. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_ping.rb +0 -0
  206. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_disable.rb +1 -1
  207. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_edit_ecv.rb +0 -0
  208. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_edit_http.rb +0 -0
  209. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_edit_ping.rb +0 -0
  210. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_enable.rb +1 -1
  211. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/node_service_create.rb +0 -0
  212. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/node_service_delete.rb +1 -1
  213. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/node_service_edit.rb +1 -1
  214. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_off.rb +1 -1
  215. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_on.rb +1 -1
  216. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_reset.rb +1 -1
  217. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_shutdown.rb +1 -1
  218. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/public_ip_activate.rb +1 -1
  219. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rnat_associations_create_device.rb +0 -0
  220. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rnat_associations_delete.rb +1 -1
  221. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rnat_associations_edit_network.rb +0 -0
  222. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_create.rb +0 -0
  223. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_delete.rb +1 -1
  224. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_edit.rb +0 -0
  225. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_movedown.rb +1 -1
  226. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_moveup.rb +1 -1
  227. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/trusted_network_groups_create.rb +1 -1
  228. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/trusted_network_groups_delete.rb +1 -1
  229. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/trusted_network_groups_edit.rb +1 -1
  230. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_attach_disk.rb +1 -1
  231. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_copy.rb +1 -1
  232. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_copy_identical.rb +1 -1
  233. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_create_from_template.rb +1 -1
  234. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_delete.rb +1 -1
  235. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_detach_disk.rb +1 -1
  236. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_edit.rb +1 -1
  237. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_edit_assigned_ips.rb +1 -1
  238. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_edit_hardware_configuration.rb +1 -1
  239. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_import.rb +1 -1
  240. data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_upload_file.rb +3 -3
  241. data/lib/fog/ecloud.rb +37 -3
  242. data/lib/fog/ecloud/compute.rb +1 -824
  243. data/lib/fog/ecloud/version.rb +1 -1
  244. metadata +238 -239
  245. data/lib/fog/ecloud/core.rb +0 -32
  246. data/lib/fog/ecloud/generate_collection.rb +0 -127
@@ -1,32 +0,0 @@
1
- require 'fog/core'
2
- require 'fog/xml'
3
-
4
- module Fog
5
- module Ecloud
6
- ECLOUD_OPTIONS = [:ecloud_authentication_method]
7
-
8
- extend Fog::Provider
9
-
10
- service(:compute, 'Compute')
11
-
12
- def self.keep(hash, *keys)
13
- {}.tap do |kept|
14
- keys.each{|k| kept[k]= hash[k] if hash.key?(k)}
15
- end
16
- end
17
-
18
- def self.slice(hash, *keys)
19
- hash.dup.tap do |sliced|
20
- keys.each{|k| sliced.delete(k)}
21
- end
22
- end
23
-
24
- def self.ip_address
25
- 4.times.map{ Fog::Mock.random_numbers(3) }.join(".")
26
- end
27
-
28
- def self.mac_address
29
- 6.times.map{ Fog::Mock.random_numbers(2) }.join(":")
30
- end
31
- end
32
- end
@@ -1,127 +0,0 @@
1
- require 'optparse'
2
-
3
- class String
4
- def camelize
5
- self.split('_').map {|w| w.capitalize}.join
6
- end
7
- end
8
-
9
- options = {}
10
- OptionParser.new do |opts|
11
- opts.banner = "Usage: #{__FILE__} [options]"
12
- opts.on("-m", "--model-name NAME", "Model Name") { |v| options[:model] = v }
13
- opts.on("-c", "--collection-name NAME", "Collection Name") { |v| options[:collection] = v }
14
- opts.on("-M", "--methods a:href,b:href,c:href", Array, "List of methods to be defined and href to the method") { |v| options[:methods] = v.map { |a| a.split(':') } }
15
- opts.on("-a", "--attributes name:alias,other_name:other_alias", Array, "List of attributes to be defined") { |v| options[:attributes] = v.map { |a| a.split(':') } }
16
- end.parse!
17
-
18
- if options[:methods]
19
- methods = options[:methods].map do |m|
20
- m = <<METHOD
21
- def #{m[0]}
22
- @#{m[0]} = Fog::Compute::Ecloud::#{m[0].camelize}.new(:service => service, :href => "#{m[1]}")
23
- end
24
- METHOD
25
- end.join("\n ")
26
- end
27
-
28
- if options[:attributes]
29
- attributes = options[:attributes].map do |a|
30
- a = "attribute :#{a[0]}, :aliases => :#{a[1] || a[0].camelize}"
31
- end.join("\n ")
32
- end
33
-
34
- collection_file = "#{File.expand_path(File.dirname(__FILE__))}/models/compute/#{options[:collection]}.rb"
35
- model_file = "#{File.expand_path(File.dirname(__FILE__))}/models/compute/#{options[:model]}.rb"
36
- collection_request_file = "#{File.expand_path(File.dirname(__FILE__))}/requests/compute/get_#{options[:collection]}.rb"
37
- model_request_file = "#{File.expand_path(File.dirname(__FILE__))}/requests/compute/get_#{options[:model]}.rb"
38
-
39
- collection = <<COLLECTION
40
- require 'fog/ecloud/models/compute/#{options[:model]}'
41
-
42
- module Fog
43
- module Compute
44
- class Ecloud
45
- class #{options[:collection].camelize} < Fog::Ecloud::Collection
46
-
47
- identity :href
48
-
49
- model Fog::Compute::Ecloud::#{options[:model].camelize}
50
-
51
- def all
52
- data = service.get_#{options[:collection]}(href).body
53
- load(data)
54
- end
55
-
56
- def get(uri)
57
- if data = service.get_#{options[:model]}(uri)
58
- new(data.body)
59
- end
60
- rescue Fog::Errors::NotFound
61
- nil
62
- end
63
- end
64
- end
65
- end
66
- end
67
- COLLECTION
68
-
69
- model = <<MODEL
70
- module Fog
71
- module Compute
72
- class Ecloud
73
- class #{options[:model].camelize} < Fog::Model
74
- identity :href
75
-
76
- #{attributes}
77
-
78
- #{methods}
79
- def id
80
- href.scan(/\\d+/)[0]
81
- end
82
- end
83
- end
84
- end
85
- end
86
- MODEL
87
-
88
- collection_request = <<COLLECTION
89
- module Fog
90
- module Compute
91
- class Ecloud
92
-
93
- class Real
94
- basic_request :get_#{options[:collection]}
95
- end
96
-
97
- class Mock
98
- def get_#{options[:collection]}(uri)
99
- end
100
- end
101
- end
102
- end
103
- end
104
- COLLECTION
105
-
106
- model_request = <<MODEL
107
- module Fog
108
- module Compute
109
- class Ecloud
110
-
111
- class Real
112
- basic_request :get_#{options[:model]}
113
- end
114
-
115
- class Mock
116
- def get_#{options[:model]}(uri)
117
- end
118
- end
119
- end
120
- end
121
- end
122
- MODEL
123
-
124
- File.open(collection_file, 'w') { |f| f.write(collection) }
125
- File.open(model_file, 'w') { |f| f.write(model) }
126
- File.open(collection_request_file, 'w') { |f| f.write(collection_request) }
127
- File.open(model_request_file, 'w') { |f| f.write(model_request) }