UDisks.ManagerLVM2¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the VolumeGroupCreate() D-Bus method. |
Fields¶
None
Class Details¶
- class UDisks.ManagerLVM2¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Manager.LVM2.
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.Manager.LVM2 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.ManagerLVM2
interface for a concrete class. The properties are overridden in the order they are defined.New in version 2.0.0.
- call_volume_group_create(arg_name, arg_blocks, arg_options, cancellable, callback, *user_data)¶
- Parameters:
arg_name (
str
) – Argument to pass with the method invocation.arg_blocks (
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 VolumeGroupCreate() 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.ManagerLVM2.call_volume_group_create_finish
() to get the result of the operation.See
UDisks.ManagerLVM2.call_volume_group_create_sync
() for the synchronous, blocking version of this method.New in version 2.0.0.
- call_volume_group_create_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toUDisks.ManagerLVM2.call_volume_group_create
().- 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.ManagerLVM2.call_volume_group_create
().New in version 2.0.0.
- call_volume_group_create_sync(arg_name, arg_blocks, arg_options, cancellable)¶
- Parameters:
arg_name (
str
) – Argument to pass with the method invocation.arg_blocks (
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 VolumeGroupCreate() D-Bus method on self. The calling thread is blocked until a reply is received.
See
UDisks.ManagerLVM2.call_volume_group_create
() for the asynchronous version of this method.New in version 2.0.0.
- complete_volume_group_create(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 VolumeGroupCreate() 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_volume_group_create(invocation, arg_name, arg_blocks, arg_options) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_name (
str
) –arg_blocks (
str
) –arg_options (
GLib.Variant
) –
- Return type:
Handler for the
UDisks.ManagerLVM2
::handle-volume-group-create
signal.
Signal Details¶
- UDisks.ManagerLVM2.signals.handle_volume_group_create(manager_l_v_m2, invocation, arg_name, arg_blocks, arg_options)¶
- Signal Name:
handle-volume-group-create
- Flags:
- Parameters:
manager_l_v_m2 (
UDisks.ManagerLVM2
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_name (
str
) – Argument passed by remote caller.arg_blocks ([
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 VolumeGroupCreate() 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.ManagerLVM2.complete_volume_group_create
() 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.