UDisks.ManagerLVM2

g GObject.GInterface GObject.GInterface UDisks.ManagerLVM2 UDisks.ManagerLVM2 GObject.GInterface->UDisks.ManagerLVM2

Implementations:

UDisks.ManagerLVM2Proxy, UDisks.ManagerLVM2Skeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_volume_group_create (arg_name, arg_blocks, arg_options, cancellable, callback, *user_data)

call_volume_group_create_finish (res)

call_volume_group_create_sync (arg_name, arg_blocks, arg_options, cancellable)

complete_volume_group_create (invocation, result)

Virtual Methods

do_handle_volume_group_create (invocation, arg_name, arg_blocks, arg_options)

Properties

None

Signals

Name

Short Description

handle-volume-group-create

Signal emitted when a remote caller is invoking the VolumeGroupCreate() D-Bus method.

Fields

None

Class Details

class UDisks.ManagerLVM2
Bases:

GObject.GInterface

Structure:

UDisks.ManagerLVM2Iface

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:

Gio.DBusInterfaceInfo

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:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the UDisks.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:

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 call UDisks.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) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.ManagerLVM2.call_volume_group_create().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

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:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

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:

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:
Return type:

bool

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:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

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 call UDisks.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, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.