mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1 from ke4qqq/master
rounding out Virtual Machine section of API Coverage
This commit is contained in:
commit
57c54cc870
4 changed files with 63 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue