LibvirtGConfig.StoragePool

g GObject.Object GObject.Object LibvirtGConfig.Object LibvirtGConfig.Object GObject.Object->LibvirtGConfig.Object LibvirtGConfig.StoragePool LibvirtGConfig.StoragePool LibvirtGConfig.Object->LibvirtGConfig.StoragePool

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_xml (xml)

get_allocation ()

get_available ()

get_capacity ()

get_name ()

get_pool_type ()

get_source ()

get_target ()

get_uuid ()

set_allocation (allocation)

set_available (available)

set_capacity (capacity)

set_name (name)

set_pool_type (type)

set_source (source)

set_target (target)

set_uuid (uuid)

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.StoragePool(**kwargs)
Bases:

LibvirtGConfig.Object

Abstract:

No

Structure:

LibvirtGConfig.StoragePoolClass

classmethod new()
Return type:

LibvirtGConfig.StoragePool

classmethod new_from_xml(xml)
Parameters:

xml (str) –

Raises:

GLib.Error

Return type:

LibvirtGConfig.StoragePool

get_allocation()
Returns:

total storage allocation in bytes.

Return type:

int

Gets the total storage allocation for the pool.

get_available()
Returns:

free space available in bytes.

Return type:

int

Gets the free space available for allocating new volumes in the pool.

get_capacity()
Returns:

total storage capacity in bytes.

Return type:

int

Gets the total storage capacity for the pool.

get_name()
Returns:

name of self.

Return type:

str

Gets the name of the pool.

get_pool_type()
Returns:

#Gname of self.

Return type:

LibvirtGConfig.StoragePoolType

Gets the type of the pool.

get_source()
Returns:

a new LibvirtGConfig.StoragePoolSource instance.

Return type:

LibvirtGConfig.StoragePoolSource

Gets the source for self

get_target()
Returns:

a new LibvirtGConfig.StoragePoolTarget instance.

Return type:

LibvirtGConfig.StoragePoolTarget

Gets the target for self

get_uuid()
Returns:

unique identifier for self.

Return type:

str

Gets the unique identifier for self.

set_allocation(allocation)
Parameters:

allocation (int) –

set_available(available)
Parameters:

available (int) –

set_capacity(capacity)
Parameters:

capacity (int) –

set_name(name)
Parameters:

name (str or None) –

set_pool_type(type)
Parameters:

type (LibvirtGConfig.StoragePoolType) –

set_source(source)
Parameters:

source (LibvirtGConfig.StoragePoolSource or None) –

set_target(target)
Parameters:

target (LibvirtGConfig.StoragePoolTarget or None) –

set_uuid(uuid)
Parameters:

uuid (str or None) –