LibvirtGObject.StorageVol¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The storage_vol handle |
||
r/w/co |
The containing storage pool |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class LibvirtGObject.StorageVol(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- delete(flags)¶
- Parameters:
flags (
int
) – the flags- Raises:
- Returns:
- Return type:
Deletes the storage volume self.
- download(stream, offset, length, flags)¶
- Parameters:
stream (
LibvirtGObject.Stream
) – stream to use as outputoffset (
int
) – position in self to start reading fromlength (
int
) – limit on amount of data to download, or 0 for downloading all dataflags (
int
) – extra flags, not used yet, pass 0
- Raises:
- Returns:
- 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 object should be unreffed with
GObject.Object.unref
() when no longer needed.- Return type:
- get_path()¶
- Raises:
- Return type:
- resize(capacity, flags)¶
- Parameters:
capacity (
int
) – the new capacity of the volumeflags (
LibvirtGObject.StorageVolResizeFlags
) – the flags
- Raises:
- Returns:
- Return type:
Changes the capacity of the storage volume self to capacity.
- upload(stream, offset, length, flags)¶
- Parameters:
stream (
LibvirtGObject.Stream
) – stream to use as inputoffset (
int
) – position in self to start to write tolength (
int
) – limit on amount of data to upload, or 0 for uploading all dataflags (
int
) – the flags, not set yet, pass 0
- Raises:
- Returns:
- Return type:
Property Details¶
- LibvirtGObject.StorageVol.props.handle¶
- Name:
handle
- Type:
- Default Value:
- Flags:
The storage_vol handle
- LibvirtGObject.StorageVol.props.pool¶
- Name:
pool
- Type:
- Default Value:
- Flags:
The containing storage pool