UDisks.Manager

g GObject.GInterface GObject.GInterface UDisks.Manager UDisks.Manager GObject.GInterface->UDisks.Manager

Implementations:

UDisks.ManagerProxy, UDisks.ManagerSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_can_check (arg_type, cancellable, callback, *user_data)

call_can_check_finish (res)

call_can_check_sync (arg_type, cancellable)

call_can_format (arg_type, cancellable, callback, *user_data)

call_can_format_finish (res)

call_can_format_sync (arg_type, cancellable)

call_can_repair (arg_type, cancellable, callback, *user_data)

call_can_repair_finish (res)

call_can_repair_sync (arg_type, cancellable)

call_can_resize (arg_type, cancellable, callback, *user_data)

call_can_resize_finish (res)

call_can_resize_sync (arg_type, cancellable)

call_enable_module (arg_name, arg_enable, cancellable, callback, *user_data)

call_enable_module_finish (res)

call_enable_module_sync (arg_name, arg_enable, cancellable)

call_enable_modules (arg_enable, cancellable, callback, *user_data)

call_enable_modules_finish (res)

call_enable_modules_sync (arg_enable, cancellable)

call_get_block_devices (arg_options, cancellable, callback, *user_data)

call_get_block_devices_finish (res)

call_get_block_devices_sync (arg_options, cancellable)

call_loop_setup (arg_fd, arg_options, fd_list, cancellable, callback, *user_data)

call_loop_setup_finish (res)

call_loop_setup_sync (arg_fd, arg_options, fd_list, cancellable)

call_mdraid_create (arg_blocks, arg_level, arg_name, arg_chunk, arg_options, cancellable, callback, *user_data)

call_mdraid_create_finish (res)

call_mdraid_create_sync (arg_blocks, arg_level, arg_name, arg_chunk, arg_options, cancellable)

call_resolve_device (arg_devspec, arg_options, cancellable, callback, *user_data)

call_resolve_device_finish (res)

call_resolve_device_sync (arg_devspec, arg_options, cancellable)

complete_can_check (invocation, available)

complete_can_format (invocation, available)

complete_can_repair (invocation, available)

complete_can_resize (invocation, available)

complete_enable_module (invocation)

complete_enable_modules (invocation)

complete_get_block_devices (invocation, block_objects)

complete_loop_setup (invocation, fd_list, resulting_device)

complete_mdraid_create (invocation, resulting_array)

complete_resolve_device (invocation, devices)

Virtual Methods

do_handle_can_check (invocation, arg_type)

do_handle_can_format (invocation, arg_type)

do_handle_can_repair (invocation, arg_type)

do_handle_can_resize (invocation, arg_type)

do_handle_enable_module (invocation, arg_name, arg_enable)

do_handle_enable_modules (invocation, arg_enable)

do_handle_get_block_devices (invocation, arg_options)

do_handle_loop_setup (invocation, fd_list, arg_fd, arg_options)

do_handle_mdraid_create (invocation, arg_blocks, arg_level, arg_name, arg_chunk, arg_options)

do_handle_resolve_device (invocation, arg_devspec, arg_options)

Properties

Name

Type

Flags

Short Description

default-encryption-type

str

r/w

DefaultEncryptionType

supported-encryption-types

[str]

r/w

SupportedEncryptionTypes

supported-filesystems

[str]

r/w

SupportedFilesystems

version

str

r/w

Version

Signals

Name

Short Description

handle-can-check

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

handle-can-format

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

handle-can-repair

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

handle-can-resize

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

handle-enable-module

Signal emitted when a remote caller is invoking the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ D-Bus method.

handle-enable-modules

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

handle-get-block-devices

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

handle-loop-setup

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

handle-mdraid-create

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

handle-resolve-device

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

Fields

None

Class Details

class UDisks.Manager
Bases:

GObject.GInterface

Structure:

UDisks.ManagerIface

Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Manager.

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 D-Bus interface.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the UDisks.Manager interface for a concrete class. The properties are overridden in the order they are defined.

call_can_check(arg_type, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CanCheck() 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.Manager.call_can_check_finish() to get the result of the operation.

See UDisks.Manager.call_can_check_sync() for the synchronous, blocking version of this method.

New in version 2.7.2.

call_can_check_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_can_check().

Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Finishes an operation started with UDisks.Manager.call_can_check().

New in version 2.7.2.

call_can_check_sync(arg_type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Synchronously invokes the CanCheck() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_can_check() for the asynchronous version of this method.

New in version 2.7.2.

call_can_format(arg_type, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CanFormat() 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.Manager.call_can_format_finish() to get the result of the operation.

See UDisks.Manager.call_can_format_sync() for the synchronous, blocking version of this method.

New in version 2.7.2.

call_can_format_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_can_format().

Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Finishes an operation started with UDisks.Manager.call_can_format().

New in version 2.7.2.

call_can_format_sync(arg_type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Synchronously invokes the CanFormat() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_can_format() for the asynchronous version of this method.

New in version 2.7.2.

call_can_repair(arg_type, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CanRepair() 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.Manager.call_can_repair_finish() to get the result of the operation.

See UDisks.Manager.call_can_repair_sync() for the synchronous, blocking version of this method.

New in version 2.7.2.

call_can_repair_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_can_repair().

Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Finishes an operation started with UDisks.Manager.call_can_repair().

New in version 2.7.2.

call_can_repair_sync(arg_type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Synchronously invokes the CanRepair() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_can_repair() for the asynchronous version of this method.

New in version 2.7.2.

call_can_resize(arg_type, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CanResize() 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.Manager.call_can_resize_finish() to get the result of the operation.

See UDisks.Manager.call_can_resize_sync() for the synchronous, blocking version of this method.

New in version 2.7.2.

call_can_resize_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_can_resize().

Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Finishes an operation started with UDisks.Manager.call_can_resize().

New in version 2.7.2.

call_can_resize_sync(arg_type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_available:

Return location for return parameter or None to ignore.

Return type:

(bool, out_available: GLib.Variant)

Synchronously invokes the CanResize() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_can_resize() for the asynchronous version of this method.

New in version 2.7.2.

call_enable_module(arg_name, arg_enable, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ 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.Manager.call_enable_module_finish() to get the result of the operation.

See UDisks.Manager.call_enable_module_sync() for the synchronous, blocking version of this method.

New in version 2.9.0.

call_enable_module_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_enable_module().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Manager.call_enable_module().

New in version 2.9.0.

call_enable_module_sync(arg_name, arg_enable, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

Synchronously invokes the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_enable_module() for the asynchronous version of this method.

New in version 2.9.0.

call_enable_modules(arg_enable, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the EnableModules() 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.Manager.call_enable_modules_finish() to get the result of the operation.

See UDisks.Manager.call_enable_modules_sync() for the synchronous, blocking version of this method.

Deprecated since version ???: The D-Bus method has been deprecated.

call_enable_modules_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_enable_modules().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Manager.call_enable_modules().

Deprecated since version ???: The D-Bus method has been deprecated.

call_enable_modules_sync(arg_enable, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

Synchronously invokes the EnableModules() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_enable_modules() for the asynchronous version of this method.

Deprecated since version ???: The D-Bus method has been deprecated.

call_get_block_devices(arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the GetBlockDevices() 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.Manager.call_get_block_devices_finish() to get the result of the operation.

See UDisks.Manager.call_get_block_devices_sync() for the synchronous, blocking version of this method.

New in version 2.7.2.

call_get_block_devices_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_get_block_devices().

Raises:

GLib.Error

Returns:

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

out_block_objects:

Return location for return parameter or None to ignore.

Return type:

(bool, out_block_objects: [str])

Finishes an operation started with UDisks.Manager.call_get_block_devices().

New in version 2.7.2.

call_get_block_devices_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_block_objects:

Return location for return parameter or None to ignore.

Return type:

(bool, out_block_objects: [str])

Synchronously invokes the GetBlockDevices() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_get_block_devices() for the asynchronous version of this method.

New in version 2.7.2.

call_loop_setup(arg_fd, arg_options, fd_list, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the LoopSetup() 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.Manager.call_loop_setup_finish() to get the result of the operation.

See UDisks.Manager.call_loop_setup_sync() for the synchronous, blocking version of this method.

call_loop_setup_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_loop_setup().

Raises:

GLib.Error

Returns:

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

out_resulting_device:

Return location for return parameter or None to ignore.

out_fd_list:

Return location for a Gio.UnixFDList or None to ignore.

Return type:

(bool, out_resulting_device: str, out_fd_list: Gio.UnixFDList)

Finishes an operation started with UDisks.Manager.call_loop_setup().

call_loop_setup_sync(arg_fd, arg_options, fd_list, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_resulting_device:

Return location for return parameter or None to ignore.

out_fd_list:

Return location for a Gio.UnixFDList or None.

Return type:

(bool, out_resulting_device: str, out_fd_list: Gio.UnixFDList)

Synchronously invokes the LoopSetup() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_loop_setup() for the asynchronous version of this method.

call_mdraid_create(arg_blocks, arg_level, arg_name, arg_chunk, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the MDRaidCreate() 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.Manager.call_mdraid_create_finish() to get the result of the operation.

See UDisks.Manager.call_mdraid_create_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_mdraid_create_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_mdraid_create().

Raises:

GLib.Error

Returns:

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

out_resulting_array:

Return location for return parameter or None to ignore.

Return type:

(bool, out_resulting_array: str)

Finishes an operation started with UDisks.Manager.call_mdraid_create().

New in version 2.0.0.

call_mdraid_create_sync(arg_blocks, arg_level, arg_name, arg_chunk, arg_options, cancellable)
Parameters:
  • arg_blocks (str) – Argument to pass with the method invocation.

  • arg_level (str) – Argument to pass with the method invocation.

  • arg_name (str) – Argument to pass with the method invocation.

  • arg_chunk (int) – Argument to pass with the method invocation.

  • arg_options (GLib.Variant) – Argument to pass with the method invocation.

  • cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

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

out_resulting_array:

Return location for return parameter or None to ignore.

Return type:

(bool, out_resulting_array: str)

Synchronously invokes the MDRaidCreate() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_mdraid_create() for the asynchronous version of this method.

New in version 2.0.0.

call_resolve_device(arg_devspec, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ResolveDevice() 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.Manager.call_resolve_device_finish() to get the result of the operation.

See UDisks.Manager.call_resolve_device_sync() for the synchronous, blocking version of this method.

New in version 2.7.3.

call_resolve_device_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Manager.call_resolve_device().

Raises:

GLib.Error

Returns:

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

out_devices:

Return location for return parameter or None to ignore.

Return type:

(bool, out_devices: [str])

Finishes an operation started with UDisks.Manager.call_resolve_device().

New in version 2.7.3.

call_resolve_device_sync(arg_devspec, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_devices:

Return location for return parameter or None to ignore.

Return type:

(bool, out_devices: [str])

Synchronously invokes the ResolveDevice() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Manager.call_resolve_device() for the asynchronous version of this method.

New in version 2.7.3.

complete_can_check(invocation, available)
Parameters:

Helper function used in service implementations to finish handling invocations of the CanCheck() 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.7.2.

complete_can_format(invocation, available)
Parameters:

Helper function used in service implementations to finish handling invocations of the CanFormat() 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.7.2.

complete_can_repair(invocation, available)
Parameters:

Helper function used in service implementations to finish handling invocations of the CanRepair() 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.7.2.

complete_can_resize(invocation, available)
Parameters:

Helper function used in service implementations to finish handling invocations of the CanResize() 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.7.2.

complete_enable_module(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ 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.9.0.

complete_enable_modules(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the EnableModules() 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.

Deprecated since version ???: The D-Bus method has been deprecated.

complete_get_block_devices(invocation, block_objects)
Parameters:

Helper function used in service implementations to finish handling invocations of the GetBlockDevices() 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.7.2.

complete_loop_setup(invocation, fd_list, resulting_device)
Parameters:

Helper function used in service implementations to finish handling invocations of the LoopSetup() 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.

complete_mdraid_create(invocation, resulting_array)
Parameters:

Helper function used in service implementations to finish handling invocations of the MDRaidCreate() 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_resolve_device(invocation, devices)
Parameters:

Helper function used in service implementations to finish handling invocations of the ResolveDevice() 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.7.3.

do_handle_can_check(invocation, arg_type) virtual
Parameters:
Return type:

bool

do_handle_can_format(invocation, arg_type) virtual
Parameters:
Return type:

bool

do_handle_can_repair(invocation, arg_type) virtual
Parameters:
Return type:

bool

do_handle_can_resize(invocation, arg_type) virtual
Parameters:
Return type:

bool

do_handle_enable_module(invocation, arg_name, arg_enable) virtual
Parameters:
Return type:

bool

do_handle_enable_modules(invocation, arg_enable) virtual
Parameters:
Return type:

bool

do_handle_get_block_devices(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_loop_setup(invocation, fd_list, arg_fd, arg_options) virtual
Parameters:
Return type:

bool

do_handle_mdraid_create(invocation, arg_blocks, arg_level, arg_name, arg_chunk, arg_options) virtual
Parameters:
Return type:

bool

do_handle_resolve_device(invocation, arg_devspec, arg_options) virtual
Parameters:
Return type:

bool

Signal Details

UDisks.Manager.signals.handle_can_check(manager, invocation, arg_type)
Signal Name:

handle-can-check

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 CanCheck() 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.Manager.complete_can_check() 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.7.2.

UDisks.Manager.signals.handle_can_format(manager, invocation, arg_type)
Signal Name:

handle-can-format

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 CanFormat() 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.Manager.complete_can_format() 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.7.2.

UDisks.Manager.signals.handle_can_repair(manager, invocation, arg_type)
Signal Name:

handle-can-repair

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 CanRepair() 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.Manager.complete_can_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, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.7.2.

UDisks.Manager.signals.handle_can_resize(manager, invocation, arg_type)
Signal Name:

handle-can-resize

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 CanResize() 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.Manager.complete_can_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, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.7.2.

UDisks.Manager.signals.handle_enable_module(manager, invocation, arg_name, arg_enable)
Signal Name:

handle-enable-module

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 ‘EnableModule() [gdbus-method-org-freedesktop-UDisks2-Manager.EnableModule]’ 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.Manager.complete_enable_module() 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.9.0.

UDisks.Manager.signals.handle_enable_modules(manager, invocation, arg_enable)
Signal Name:

handle-enable-modules

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 EnableModules() 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.Manager.complete_enable_modules() 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.

Deprecated since version ???: The D-Bus method has been deprecated.

UDisks.Manager.signals.handle_get_block_devices(manager, invocation, arg_options)
Signal Name:

handle-get-block-devices

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 GetBlockDevices() 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.Manager.complete_get_block_devices() 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.7.2.

UDisks.Manager.signals.handle_loop_setup(manager, invocation, fd_list, arg_fd, arg_options)
Signal Name:

handle-loop-setup

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 LoopSetup() 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.Manager.complete_loop_setup() 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.

UDisks.Manager.signals.handle_mdraid_create(manager, invocation, arg_blocks, arg_level, arg_name, arg_chunk, arg_options)
Signal Name:

handle-mdraid-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 MDRaidCreate() 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.Manager.complete_mdraid_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.

UDisks.Manager.signals.handle_resolve_device(manager, invocation, arg_devspec, arg_options)
Signal Name:

handle-resolve-device

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 ResolveDevice() 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.Manager.complete_resolve_device() 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.7.3.

Property Details

UDisks.Manager.props.default_encryption_type
Name:

default-encryption-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “DefaultEncryptionType”.

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.8.3.

UDisks.Manager.props.supported_encryption_types
Name:

supported-encryption-types

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

Represents the D-Bus property “SupportedEncryptionTypes”.

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.8.3.

UDisks.Manager.props.supported_filesystems
Name:

supported-filesystems

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

Represents the D-Bus property “SupportedFilesystems”.

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.

UDisks.Manager.props.version
Name:

version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Version”.

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.