Class Fission::Action::VM::Suspender
In: lib/fission/action/vm/suspender.rb
Parent: Object

Methods

new   suspend  

Public Class methods

Internal: Creates a new VMSuspender object. This accepts a VM object.

vm - An instance of VM

Examples:

  Fission::Action::VMSuspender.new @my_vm

Returns a new VMSuspender object

Public Instance methods

Public: Suspends a VM. The VM must be running in order to suspend it.

Examples

  @suspender.suspend

Returns a Response with the result. If successful, the Response‘s data attribute will be nil. If there is an error, an unsuccessful Response will be returned.

[Validate]