LibvirtGConfig.DomainSnapshot

g GObject.Object GObject.Object LibvirtGConfig.Object LibvirtGConfig.Object GObject.Object->LibvirtGConfig.Object LibvirtGConfig.DomainSnapshot LibvirtGConfig.DomainSnapshot LibvirtGConfig.Object->LibvirtGConfig.DomainSnapshot

Subclasses:

None

Methods

Inherited:

LibvirtGConfig.Object (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_xml (xml)

add_disk (disk)

get_creation_time ()

get_description ()

get_disks ()

get_domain ()

get_memory_file ()

get_memory_state ()

get_name ()

get_parent ()

get_state ()

set_description (description)

set_disks (disks)

set_memory_file (filename)

set_memory_state (state)

set_name (name)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

LibvirtGConfig.Object (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

LibvirtGConfig.Object

r

Class Details

class LibvirtGConfig.DomainSnapshot(**kwargs)
Bases:

LibvirtGConfig.Object

Abstract:

No

Structure:

LibvirtGConfig.DomainSnapshotClass

classmethod new()
Return type:

LibvirtGConfig.DomainSnapshot

classmethod new_from_xml(xml)
Parameters:

xml (str) –

Raises:

GLib.Error

Return type:

LibvirtGConfig.DomainSnapshot

add_disk(disk)
Parameters:

disk (LibvirtGConfig.DomainSnapshotDisk) –

get_creation_time()
Return type:

int

get_description()
Return type:

str

get_disks()
Returns:

a newly allocated GLib.List of LibvirtGConfig.DomainSnapshotDisk.

Return type:

[LibvirtGConfig.DomainSnapshotDisk]

Gets the list of disks attached to self. The returned list should be freed with g_list_free(), after its elements have been unreffed with GObject.Object.unref().

get_domain()
Returns:

A LibvirtGConfig.Domain. The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGConfig.Domain

Gets the configuration of the domain self is a snapshot of.

get_memory_file()
Return type:

str

get_memory_state()
Return type:

LibvirtGConfig.DomainSnapshotMemoryState

get_name()
Return type:

str

get_parent()
Return type:

str

get_state()
Return type:

LibvirtGConfig.DomainSnapshotDomainState

set_description(description)
Parameters:

description (str) –

set_disks(disks)
Parameters:

disks ([LibvirtGConfig.DomainSnapshotDisk]) –

set_memory_file(filename)
Parameters:

filename (str) –

set_memory_state(state)
Parameters:

state (LibvirtGConfig.DomainSnapshotMemoryState) –

set_name(name)
Parameters:

name (str) –