LibvirtGObject.DomainSnapshot

g GObject.Object GObject.Object LibvirtGObject.DomainSnapshot LibvirtGObject.DomainSnapshot GObject.Object->LibvirtGObject.DomainSnapshot

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

delete (flags)

delete_async (flags, cancellable, callback, *user_data)

delete_finish (res)

get_config (flags)

get_is_current (flags)

get_name ()

revert_to (flags)

revert_to_async (flags, cancellable, callback, *user_data)

revert_to_finish (result)

set_config (conf)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

handle

r/w/co

The domain_snapshot handle

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class LibvirtGObject.DomainSnapshot(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

LibvirtGObject.DomainSnapshotClass

delete(flags)
Parameters:

flags (int) – Bitwise or of LibvirtGObject.DomainSnapshotDeleteFlags

Raises:

GLib.Error

Returns:

True on success, False otherwise

Return type:

bool

delete_async(flags, cancellable, callback, *user_data)
Parameters:
delete_finish(res)
Parameters:

res (Gio.AsyncResult) – async method result

Raises:

GLib.Error

Returns:

True on success, False otherwise.

Return type:

bool

get_config(flags)
Parameters:

flags (int) – the flags

Raises:

GLib.Error

Returns:

the config. The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGConfig.DomainSnapshot

get_is_current(flags)
Parameters:

flags (int) – Currently unused, pass 0

Raises:

GLib.Error

Returns:

True on success, False otherwise.

is_current:

True if the given snapshot is the current snapshot of its domain, False otherwise.

Return type:

(bool, is_current: bool)

get_name()
Return type:

str

revert_to(flags)
Parameters:

flags (int) – Bitwise OR of LibvirtGObject.DomainSnapshotRevertFlags

Raises:

GLib.Error

Returns:

True if the snapshot’s domain has successfully been reverted to the given snapshot, False otherwise, in which case error will be set.

Return type:

bool

revert_to_async(flags, cancellable, callback, *user_data)
Parameters:
revert_to_finish(result)
Parameters:

result (Gio.AsyncResult) – The result

Raises:

GLib.Error

Returns:

True on success, False otherwise.

Return type:

bool

set_config(conf)
Parameters:

conf (LibvirtGConfig.DomainSnapshot) – The new config object

Raises:

GLib.Error

Returns:

True if no error was reported, False otherwise.

Return type:

bool

Updates the given snapshot’s configuration according to the given LibvirtGConfig.DomainSnapshot.

Property Details

LibvirtGObject.DomainSnapshot.props.handle
Name:

handle

Type:

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The domain_snapshot handle