class Libvirt::Domain::Snapshot
Constants
- DELETE_CHILDREN
Public Instance Methods
delete(flags=0) → nil
click to toggle source
Call
virDomainSnapshotDelete[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotDelete]
to delete this snapshot.
static VALUE libvirt_dom_snapshot_delete(int argc, VALUE *argv, VALUE s) { VALUE flags; rb_scan_args(argc, argv, "01", &flags); if (NIL_P(flags)) flags = INT2NUM(0); gen_call_void(virDomainSnapshotDelete, conn(s), domain_snapshot_get(s), NUM2UINT(flags)); }
free → nil
click to toggle source
Call
virDomainSnapshotFree[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotFree]
to free up the snapshot object. After this call the snapshot object is no
longer valid.
static VALUE libvirt_dom_snapshot_free(VALUE s) { gen_call_free(DomainSnapshot, s); }
xml_desc(flags=0) → string
click to toggle source
Call
virDomainSnapshotGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotGetXMLDesc]
to retrieve the xml description for this snapshot.
static VALUE libvirt_dom_snapshot_xml_desc(int argc, VALUE *argv, VALUE s) { VALUE flags; rb_scan_args(argc, argv, "01", &flags); if (NIL_P(flags)) flags = INT2NUM(0); gen_call_string(virDomainSnapshotGetXMLDesc, conn(s), 1, domain_snapshot_get(s), NUM2UINT(flags)); }