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.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/fog-ecloud.gemspec +4 -1
- data/lib/fog/bin/ecloud.rb +1 -1
- data/lib/fog/compute/ecloud.rb +826 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/admin_organization.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/admin_organizations.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/api_key.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/api_keys.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/association.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/associations.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/authentication_level.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/authentication_levels.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/backup_internet_service.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/backup_internet_services.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog_configuration.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog_configurations.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/catalog_item.rb +0 -0
- data/lib/fog/{ecloud → compute/ecloud/models}/collection.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/compute_pool.rb +2 -2
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/compute_pools.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/cpu_usage_detail.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/cpu_usage_detail_summary.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/detached_disk.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/detached_disks.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/environment.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/environments.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/firewall_acl.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/firewall_acls.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/group.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/groups.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/guest_process.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/guest_processes.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/hardware_configuration.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/hardware_configurations.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/internet_service.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/internet_services.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ip_address.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ip_addresses.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/layout.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/layouts.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/location.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/locations.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/login_banner.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/login_banners.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/memory_usage_detail.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/memory_usage_detail_summary.rb +1 -1
- data/lib/fog/{ecloud → compute/ecloud/models}/model.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/monitor.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/monitors.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/network.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/networks.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/node.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/nodes.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_system.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_system_families.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_system_family.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/operating_systems.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/organization.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/organizations.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/password_complexity_rule.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/password_complexity_rules.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/physical_device.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/physical_devices.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/public_ip.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/public_ips.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/rnat.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/rnats.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/role.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/roles.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/row.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/rows.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/server.rb +5 -5
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/server_configuration_option.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/server_configuration_options.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/servers.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ssh_key.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/ssh_keys.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/storage_usage_detail.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/storage_usage_detail_summary.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/support_ticket.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/support_tickets.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/tag.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/tags.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/task.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/tasks.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/template.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/templates.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/trusted_network_group.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/trusted_network_groups.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/user.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/users.rb +1 -1
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/virtual_machine_assigned_ip.rb +0 -0
- data/lib/fog/{ecloud/models/compute → compute/ecloud/models}/virtual_machine_assigned_ips.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_disable_support_access.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_edit_authentication_levels.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_edit_login_banner.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_edit_password_complexity_rules.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/admin_enable_support_access.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/backup_internet_service_create.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/backup_internet_service_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/backup_internet_service_edit.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/compute_pool_edit.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/firewall_acls_create.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/firewall_acls_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_admin_organization.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_api_key.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_api_keys.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_association.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_associations.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_authentication_level.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_authentication_levels.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_backup_internet_service.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_backup_internet_services.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog_configuration.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog_configurations.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_catalog_item.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_compute_pool.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_compute_pools.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_cpu_usage_detail.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_cpu_usage_detail_summary.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_detached_disk.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_detached_disks.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_environment.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_environments.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_firewall_acl.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_firewall_acls.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_group.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_groups.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_guest_process.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_guest_processes.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_hardware_configuration.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_hardware_configurations.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_internet_service.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_internet_services.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_ip_address.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_layout.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_layouts.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_location.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_locations.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_login_banner.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_login_banners.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_memory_usage_detail.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_memory_usage_detail_summary.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_monitor.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_monitors.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_network.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_network_summary.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_networks.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_node.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_nodes.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_operating_system.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_operating_system_families.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_organization.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_organizations.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_password_complexity_rule.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_password_complexity_rules.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_physical_device.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_physical_devices.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_process.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_processes.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_public_ip.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_public_ips.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_rnat.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_rnats.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_role.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_roles.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_row.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_rows.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_server.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_server_configuration_option.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_server_configuration_options.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_servers.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_ssh_key.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_ssh_keys.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_storage_usage_detail.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_storage_usage_detail_summary.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_support_ticket.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_support_tickets.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_tag.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_tags.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_task.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_tasks.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_template.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_templates.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_trusted_network_group.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_trusted_network_groups.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_user.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_users.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/get_virtual_machine_assigned_ips.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_create.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_edit.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_movedown.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/groups_moveup.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/internet_service_create.rb +2 -2
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/internet_service_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/internet_service_edit.rb +3 -3
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_default.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_ecv.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_http.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_loopback.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_create_ping.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_disable.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_edit_ecv.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_edit_http.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_edit_ping.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/monitors_enable.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/node_service_create.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/node_service_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/node_service_edit.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_off.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_on.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_reset.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/power_shutdown.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/public_ip_activate.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rnat_associations_create_device.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rnat_associations_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rnat_associations_edit_network.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_create.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_edit.rb +0 -0
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_movedown.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/rows_moveup.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/trusted_network_groups_create.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/trusted_network_groups_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/trusted_network_groups_edit.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_attach_disk.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_copy.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_copy_identical.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_create_from_template.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_delete.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_detach_disk.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_edit.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_edit_assigned_ips.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_edit_hardware_configuration.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_import.rb +1 -1
- data/lib/fog/{ecloud/requests/compute → compute/ecloud/requests}/virtual_machine_upload_file.rb +3 -3
- data/lib/fog/ecloud.rb +37 -3
- data/lib/fog/ecloud/compute.rb +1 -824
- data/lib/fog/ecloud/version.rb +1 -1
- metadata +238 -239
- data/lib/fog/ecloud/core.rb +0 -32
- data/lib/fog/ecloud/generate_collection.rb +0 -127
data/lib/fog/ecloud/core.rb
DELETED
@@ -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) }
|