Class Fission::Action::Snapshot::Deleter
In: lib/fission/action/snapshot/deleter.rb
Parent: Object

Methods

Public Class methods

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

vm - An instance of VM

Examples:

  Fission::Action::SnapshotDeleter.new @my_vm

Returns a new SnapshotDeleter object

Public Instance methods

Public: Deletes a snapshot for a VM. The snapshot to delete must exist. If the Fusion GUI is running, then the VM must also be running.

name - The name of the snapshot to delete.

Examples

  @deleter.delete_snapshot('foo_snap_1')

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]