LibvirtGConfig.StoragePoolSource

g GObject.Object GObject.Object LibvirtGConfig.Object LibvirtGConfig.Object GObject.Object->LibvirtGConfig.Object LibvirtGConfig.StoragePoolSource LibvirtGConfig.StoragePoolSource LibvirtGConfig.Object->LibvirtGConfig.StoragePoolSource

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_xml (xml)

get_adapter ()

get_device_path ()

get_directory ()

get_format ()

get_host ()

get_name ()

get_product ()

get_vendor ()

set_adapter (adapter)

set_device_path (device_path)

set_directory (directory)

set_format (format)

set_host (host)

set_name (name)

set_product (product)

set_vendor (vendor)

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

LibvirtGConfig.Object

Abstract:

No

Structure:

LibvirtGConfig.StoragePoolSourceClass

classmethod new()
Return type:

LibvirtGConfig.StoragePoolSource

classmethod new_from_xml(xml)
Parameters:

xml (str) –

Raises:

GLib.Error

Return type:

LibvirtGConfig.StoragePoolSource

get_adapter()
Returns:

the SCSI adapter name.

Return type:

str

For pools backed by a SCSI adapter, returns the SCSI adapter name

get_device_path()
Returns:

fully qualified path to the block device node.

Return type:

str

For pools backed by a physical device, returns the path to the block device node

get_directory()
Returns:

path to the directory backing directory.

Return type:

str

For pools backed by a directory, returns the path to the backing directory

get_format()
Returns:

the storage pool format.

Return type:

str

Provides information about the format of the pool. This format is backend-specific but is typically used to indicate filesystem type, or network filesystem type, or partition table type, or LVM metadata type.

get_host()
Returns:

hostname or IP address of the remote server.

Return type:

str

For pools backed by storage from remote server, returns the hostname of the remote server.

get_name()
Returns:

name of the element used by self

Return type:

str

For pools backed by storage from a named element (for example, LV groups), returns the name of the element

get_product()
Returns:

product name of the storage device.

Return type:

str

Gets the product name of the storage device.

get_vendor()
Returns:

vendor name of the storage device.

Return type:

str

Gets the vendor name of the storage device.

set_adapter(adapter)
Parameters:

adapter (str) –

set_device_path(device_path)
Parameters:

device_path (str) –

set_directory(directory)
Parameters:

directory (str) –

set_format(format)
Parameters:

format (str) –

set_host(host)
Parameters:

host (str) –

set_name(name)
Parameters:

name (str or None) –

set_product(product)
Parameters:

product (str) –

set_vendor(vendor)
Parameters:

vendor (str) –