UDisks.LogicalVolume¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Active |
||
r/w |
BlockDevice |
||
r/w |
ChildConfiguration |
||
r/w |
DataAllocatedRatio |
||
r/w |
Layout |
||
r/w |
MetadataAllocatedRatio |
||
r/w |
Name |
||
r/w |
Origin |
||
r/w |
Size |
||
r/w |
Structure |
||
r/w |
SyncRatio |
||
r/w |
ThinPool |
||
r/w |
Type |
||
r/w |
UUID |
||
r/w |
VolumeGroup |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the Activate() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CacheAttach() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CacheDetach() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CacheSplit() D-Bus method. |
|
Signal emitted when a remote caller is invoking the CreateSnapshot() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Deactivate() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Delete() D-Bus method. |
|
Signal emitted when a remote caller is invoking the Rename() D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the Resize() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.LogicalVolume¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.LogicalVolume.
New in version 2.0.0.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the org.freedesktop.UDisks2.LogicalVolume D-Bus interface.
New in version 2.0.0.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theUDisks.LogicalVolume
interface for a concrete class. The properties are overridden in the order they are defined.New in version 2.0.0.
- call_activate(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Activate() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_activate_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_activate_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_activate_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_activate
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_result:
Return location for return parameter or
None
to ignore.
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_activate
().New in version 2.0.0.
- call_activate_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_result:
Return location for return parameter or
None
to ignore.
- Return type:
Synchronously invokes the Activate() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_activate
() for the asynchronous version of this method.New in version 2.0.0.
- call_cache_attach(arg_cache_name, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_cache_name (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the CacheAttach() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_cache_attach_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_cache_attach_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_cache_attach_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_cache_attach
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_cache_attach
().New in version 2.0.0.
- call_cache_attach_sync(arg_cache_name, arg_options, cancellable)¶
- Parameters:
arg_cache_name (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the CacheAttach() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_cache_attach
() for the asynchronous version of this method.New in version 2.0.0.
- call_cache_detach(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the CacheDetach() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_cache_detach_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_cache_detach_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_cache_detach_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_cache_detach
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_cache_detach
().New in version 2.0.0.
- call_cache_detach_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the CacheDetach() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_cache_detach
() for the asynchronous version of this method.New in version 2.0.0.
- call_cache_split(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the CacheSplit() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_cache_split_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_cache_split_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_cache_split_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_cache_split
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_cache_split
().New in version 2.0.0.
- call_cache_split_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the CacheSplit() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_cache_split
() for the asynchronous version of this method.New in version 2.0.0.
- call_create_snapshot(arg_name, arg_size, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_name (
str
) – Argument to pass with the method invocation.arg_size (
int
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the CreateSnapshot() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_create_snapshot_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_create_snapshot_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_create_snapshot_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_create_snapshot
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_result:
Return location for return parameter or
None
to ignore.
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_create_snapshot
().New in version 2.0.0.
- call_create_snapshot_sync(arg_name, arg_size, arg_options, cancellable)¶
- Parameters:
arg_name (
str
) – Argument to pass with the method invocation.arg_size (
int
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_result:
Return location for return parameter or
None
to ignore.
- Return type:
Synchronously invokes the CreateSnapshot() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_create_snapshot
() for the asynchronous version of this method.New in version 2.0.0.
- call_deactivate(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Deactivate() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_deactivate_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_deactivate_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_deactivate_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_deactivate
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_deactivate
().New in version 2.0.0.
- call_deactivate_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Deactivate() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_deactivate
() for the asynchronous version of this method.New in version 2.0.0.
- call_delete(arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Delete() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_delete_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_delete_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_delete_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_delete
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_delete
().New in version 2.0.0.
- call_delete_sync(arg_options, cancellable)¶
- Parameters:
arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Delete() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_delete
() for the asynchronous version of this method.New in version 2.0.0.
- call_rename(arg_new_name, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_new_name (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Rename() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_rename_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_rename_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_rename_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_rename
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_result:
Return location for return parameter or
None
to ignore.
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_rename
().New in version 2.0.0.
- call_rename_sync(arg_new_name, arg_options, cancellable)¶
- Parameters:
arg_new_name (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_result:
Return location for return parameter or
None
to ignore.
- Return type:
Synchronously invokes the Rename() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_rename
() for the asynchronous version of this method.New in version 2.0.0.
- call_repair(arg_pvs, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_pvs (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_repair_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_repair_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_repair_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_repair
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_repair
().New in version 2.0.0.
- call_repair_sync(arg_pvs, arg_options, cancellable)¶
- Parameters:
arg_pvs (
str
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_repair
() for the asynchronous version of this method.New in version 2.0.0.
- call_resize(arg_new_size, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_new_size (
int
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the Resize() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callUDisks.LogicalVolume.call_resize_finish
() to get the result of the operation.See
UDisks.LogicalVolume.call_resize_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_resize_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.LogicalVolume.call_resize
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
UDisks.LogicalVolume.call_resize
().New in version 2.0.0.
- call_resize_sync(arg_new_size, arg_options, cancellable)¶
- Parameters:
arg_new_size (
int
) – Argument to pass with the method invocation.arg_options (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the Resize() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.LogicalVolume.call_resize
() for the asynchronous version of this method.New in version 2.0.0.
- complete_activate(invocation, result)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.result (
str
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the Activate() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_cache_attach(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the CacheAttach() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_cache_detach(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the CacheDetach() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_cache_split(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the CacheSplit() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_create_snapshot(invocation, result)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.result (
str
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the CreateSnapshot() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_deactivate(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Deactivate() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_delete(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Delete() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_rename(invocation, result)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.result (
str
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the Rename() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_repair(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- complete_resize(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the Resize() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
New in version 2.0.0.
- do_handle_activate(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-activate
signal.
- do_handle_cache_attach(invocation, arg_cache_name, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_cache_name (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-cache-attach
signal.
- do_handle_cache_detach(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-cache-detach
signal.
- do_handle_cache_split(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-cache-split
signal.
- do_handle_create_snapshot(invocation, arg_name, arg_size, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_name (
str
) –arg_size (
int
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-create-snapshot
signal.
- do_handle_deactivate(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-deactivate
signal.
- do_handle_delete(invocation, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-delete
signal.
- do_handle_rename(invocation, arg_new_name, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_new_name (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-rename
signal.
- do_handle_repair(invocation, arg_pvs, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_pvs (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-repair
signal.
- do_handle_resize(invocation, arg_new_size, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_new_size (
int
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.LogicalVolume
::handle-resize
signal.
Signal Details¶
- UDisks.LogicalVolume.signals.handle_activate(logical_volume, invocation, arg_options)¶
- Signal Name:
handle-activate
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Activate() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_activate
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_cache_attach(logical_volume, invocation, arg_cache_name, arg_options)¶
- Signal Name:
handle-cache-attach
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_cache_name (
str
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the CacheAttach() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_cache_attach
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_cache_detach(logical_volume, invocation, arg_options)¶
- Signal Name:
handle-cache-detach
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the CacheDetach() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_cache_detach
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_cache_split(logical_volume, invocation, arg_options)¶
- Signal Name:
handle-cache-split
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the CacheSplit() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_cache_split
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_create_snapshot(logical_volume, invocation, arg_name, arg_size, arg_options)¶
- Signal Name:
handle-create-snapshot
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_name (
str
) – Argument passed by remote caller.arg_size (
int
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the CreateSnapshot() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_create_snapshot
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_deactivate(logical_volume, invocation, arg_options)¶
- Signal Name:
handle-deactivate
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Deactivate() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_deactivate
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_delete(logical_volume, invocation, arg_options)¶
- Signal Name:
handle-delete
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Delete() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_delete
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_rename(logical_volume, invocation, arg_new_name, arg_options)¶
- Signal Name:
handle-rename
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_new_name (
str
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Rename() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_rename
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_repair(logical_volume, invocation, arg_pvs, arg_options)¶
- Signal Name:
handle-repair
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_pvs ([
str
]) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_repair
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
- UDisks.LogicalVolume.signals.handle_resize(logical_volume, invocation, arg_new_size, arg_options)¶
- Signal Name:
handle-resize
- Flags:
- Parameters:
logical_volume (
UDisks.LogicalVolume
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_new_size (
int
) – Argument passed by remote caller.arg_options (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the Resize() D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callUDisks.LogicalVolume.complete_resize
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.New in version 2.0.0.
Property Details¶
- UDisks.LogicalVolume.props.active¶
-
Represents the D-Bus property “Active”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.block_device¶
-
Represents the D-Bus property “BlockDevice”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.child_configuration¶
- Name:
child-configuration
- Type:
- Default Value:
- Flags:
Represents the D-Bus property “ChildConfiguration”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.data_allocated_ratio¶
-
Represents the D-Bus property “DataAllocatedRatio”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.layout¶
-
Represents the D-Bus property ‘“Layout” [gdbus-property-org-freedesktop-UDisks2-LogicalVolume.Layout]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.metadata_allocated_ratio¶
-
Represents the D-Bus property “MetadataAllocatedRatio”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.name¶
-
Represents the D-Bus property “Name”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.origin¶
-
Represents the D-Bus property “Origin”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.size¶
-
Represents the D-Bus property “Size”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.structure¶
- Name:
structure
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Structure” [gdbus-property-org-freedesktop-UDisks2-LogicalVolume.Structure]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.sync_ratio¶
-
Represents the D-Bus property ‘“SyncRatio” [gdbus-property-org-freedesktop-UDisks2-LogicalVolume.SyncRatio]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.thin_pool¶
-
Represents the D-Bus property “ThinPool”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.type¶
-
Represents the D-Bus property “Type”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.uuid¶
-
Represents the D-Bus property “UUID”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.
- UDisks.LogicalVolume.props.volume_group¶
-
Represents the D-Bus property “VolumeGroup”.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.New in version 2.0.0.