LibvirtGConfig.DomainDisk

g GObject.Object GObject.Object LibvirtGConfig.Object LibvirtGConfig.Object GObject.Object->LibvirtGConfig.Object LibvirtGConfig.DomainDevice LibvirtGConfig.DomainDevice LibvirtGConfig.DomainDisk LibvirtGConfig.DomainDisk LibvirtGConfig.DomainDevice->LibvirtGConfig.DomainDisk LibvirtGConfig.Object->LibvirtGConfig.DomainDevice

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_xml (xml)

get_disk_type ()

get_driver ()

get_driver_cache ()

get_driver_format ()

get_driver_name ()

get_driver_type ()

get_guest_device_type ()

get_snapshot_type ()

get_source ()

get_startup_policy ()

get_target_bus ()

get_target_dev ()

set_driver (driver)

set_driver_cache (cache_type)

set_driver_format (format)

set_driver_name (driver_name)

set_driver_type (driver_type)

set_guest_device_type (type)

set_readonly (readonly)

set_snapshot_type (type)

set_source (source)

set_startup_policy (policy)

set_target_bus (bus)

set_target_dev (dev)

set_type (type)

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.DomainDevice

r

Class Details

class LibvirtGConfig.DomainDisk(**kwargs)
Bases:

LibvirtGConfig.DomainDevice

Abstract:

No

Structure:

LibvirtGConfig.DomainDiskClass

classmethod new()
Return type:

LibvirtGConfig.DomainDisk

classmethod new_from_xml(xml)
Parameters:

xml (str) –

Raises:

GLib.Error

Return type:

LibvirtGConfig.DomainDisk

get_disk_type()
Return type:

LibvirtGConfig.DomainDiskType

get_driver()
Returns:

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

Return type:

LibvirtGConfig.DomainDiskDriver

Gets the driver configuration for self.

get_driver_cache()
Return type:

LibvirtGConfig.DomainDiskCacheType

get_driver_format()
Return type:

LibvirtGConfig.DomainDiskFormat

get_driver_name()
Return type:

str

get_driver_type()
Return type:

str

Deprecated since version 0.1.7: Use LibvirtGConfig.DomainDisk.get_driver_format() instead

get_guest_device_type()
Return type:

LibvirtGConfig.DomainDiskGuestDeviceType

get_snapshot_type()
Return type:

LibvirtGConfig.DomainDiskSnapshotType

get_source()
Return type:

str

get_startup_policy()
Return type:

LibvirtGConfig.DomainDiskStartupPolicy

get_target_bus()
Return type:

LibvirtGConfig.DomainDiskBus

get_target_dev()
Return type:

str

set_driver(driver)
Parameters:

driver (LibvirtGConfig.DomainDiskDriver or None) – a LibvirtGConfig.DomainDiskDriver

Uses driver as the driver configuration for self.

set_driver_cache(cache_type)
Parameters:

cache_type (LibvirtGConfig.DomainDiskCacheType) –

set_driver_format(format)
Parameters:

format (LibvirtGConfig.DomainDiskFormat) –

set_driver_name(driver_name)
Parameters:

driver_name (str) –

set_driver_type(driver_type)
Parameters:

driver_type (str) –

Deprecated since version 0.1.7: Use LibvirtGConfig.DomainDisk.set_driver_format() instead

set_guest_device_type(type)
Parameters:

type (LibvirtGConfig.DomainDiskGuestDeviceType) –

set_readonly(readonly)
Parameters:

readonly (bool) –

set_snapshot_type(type)
Parameters:

type (LibvirtGConfig.DomainDiskSnapshotType) –

set_source(source)
Parameters:

source (str) –

set_startup_policy(policy)
Parameters:

policy (LibvirtGConfig.DomainDiskStartupPolicy) –

set_target_bus(bus)
Parameters:

bus (LibvirtGConfig.DomainDiskBus) –

set_target_dev(dev)
Parameters:

dev (str) –

set_type(type)
Parameters:

type (LibvirtGConfig.DomainDiskType) –