LibvirtGObject.StoragePool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The storage_pool handle |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class LibvirtGObject.StoragePool(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- build(flags)¶
- Parameters:
flags (
int
) – the flags- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- build_async(flags, cancellable, callback, *user_data)¶
- Parameters:
flags (
int
) – the flagscancellable (
Gio.Cancellable
orNone
) – cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- build_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- create_volume(conf)¶
- Parameters:
conf (
LibvirtGConfig.StorageVol
) – the configuration for the new volume- Raises:
- Returns:
the newly created volume. The returned object should be unreffed with
GObject.Object.unref
() when no longer needed.- Return type:
- delete(flags)¶
- Parameters:
flags (
int
) – the flags- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- delete_async(flags, cancellable, callback, *user_data)¶
- Parameters:
flags (
int
) – the flagscancellable (
Gio.Cancellable
orNone
) – cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- delete_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- get_autostart()¶
- Raises:
- Returns:
#True if autostart is enabled, #False otherwise.
- Return type:
- get_config(flags)¶
- Parameters:
flags (
int
) – the flags- Raises:
- Returns:
the config. The returned object should be unreffed with
GObject.Object.unref
() when no longer needed.- Return type:
- get_info()¶
- Raises:
- Returns:
the info. The returned pointer should be freed using
GObject.boxed_free
() when no longer needed.- Return type:
- get_volume(name)¶
- Parameters:
name (
str
) – Name of the requested storage volume- Returns:
the
LibvirtGObject.StorageVol
, orNone
. The returned object should be unreffed withGObject.Object.unref
() when no longer needed.- Return type:
- get_volumes()¶
- Returns:
List of
LibvirtGObject.StorageVol
. The returned list should be freed with g_list_free(), after its elements have been unreffed withGObject.Object.unref
().- Return type:
- refresh(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – cancellation object- Raises:
- Return type:
- refresh_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- refresh_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Return type:
- set_autostart(autostart)¶
- Parameters:
autostart (
bool
) – Whether or not to autostart- Raises:
- Returns:
- Return type:
Sets whether or not storage pool self is started automatically on boot.
- start(flags)¶
- Parameters:
flags (
int
) – the flags- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- start_async(flags, cancellable, callback, *user_data)¶
- Parameters:
flags (
int
) – the flagscancellable (
Gio.Cancellable
orNone
) – cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- start_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- stop()¶
- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- stop_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- stop_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- undefine()¶
- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
- undefine_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- undefine_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
#True on success, #False otherwise.
- Return type:
Property Details¶
- LibvirtGObject.StoragePool.props.handle¶
- Name:
handle
- Type:
- Default Value:
- Flags:
The storage_pool handle