Sha256: 66013cdc902208dc6d4c771e5cc2ef6f636d8f1170b02152557e2786241281a2
Contents?: true
Size: 628 Bytes
Versions: 28
Compression:
Stored size: 628 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Revert VM from a vmsnapshot. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/revertToVMSnapshot.html] def revert_to_vm_snapshot(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'revertToVMSnapshot') else options.merge!('command' => 'revertToVMSnapshot', 'vmsnapshotid' => args[0]) end request(options) end end end end end
Version data entries
28 entries across 26 versions & 4 rubygems