1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

rounding out API coverage in 'Virtual Machine section

This commit is contained in:
David Nalley 2011-10-29 19:53:10 -04:00
parent a5e9a57416
commit 991a4c35e8
4 changed files with 63 additions and 0 deletions

View file

@ -20,6 +20,7 @@ module Fog
request :assign_to_load_balancer_rule
request :attach_volume
request :authorize_security_group_ingress
request :change_service_for_virtual_machine
request :create_account
request :create_domain
request :create_port_forwarding_rule
@ -82,8 +83,10 @@ module Fog
request :list_virtual_machines
request :list_volumes
request :list_zones
request :migrate_virtual_machine
request :query_async_job_result
request :reboot_virtual_machine
request :recover_virtual_machine
request :register_user_keys
request :remove_from_load_balancer_rule
request :reset_password_for_virtual_machine

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Changes the service offering for a virtual machine. The virtual machine must be in a "Stopped" state for this command to take effect.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.12/global_admin/changeServiceForVirtualMachine.html]
def change_service_for_virtual_machine(options={})
options.merge!(
'command' => 'changeServiceForVirtualMachine'
)
request(options)
end
end
end
end
end

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Attempts Migration of a virtual machine to the host specified
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.12/global_admin/migrateVirtualMachine.html]
def migrate_virtual_machine(options={})
options.merge!(
'command' => 'migrateVirtualMachine'
)
request(options)
end
end
end
end
end

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Recovers a virtual machine.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/recoverVirtualMachine.html]
def recover_virtual_machine(options={})
options.merge!(
'command' => 'recoverVirtualMachine'
)
request(options)
end
end
end
end
end