UDisks.Block

g GObject.GInterface GObject.GInterface UDisks.Block UDisks.Block GObject.GInterface->UDisks.Block

Implementations:

UDisks.BlockProxy, UDisks.BlockSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_add_configuration_item (arg_item, arg_options, cancellable, callback, *user_data)

call_add_configuration_item_finish (res)

call_add_configuration_item_sync (arg_item, arg_options, cancellable)

call_format (arg_type, arg_options, cancellable, callback, *user_data)

call_format_finish (res)

call_format_sync (arg_type, arg_options, cancellable)

call_get_secret_configuration (arg_options, cancellable, callback, *user_data)

call_get_secret_configuration_finish (res)

call_get_secret_configuration_sync (arg_options, cancellable)

call_open_device (arg_mode, arg_options, fd_list, cancellable, callback, *user_data)

call_open_device_finish (res)

call_open_device_sync (arg_mode, arg_options, fd_list, cancellable)

call_open_for_backup (arg_options, fd_list, cancellable, callback, *user_data)

call_open_for_backup_finish (res)

call_open_for_backup_sync (arg_options, fd_list, cancellable)

call_open_for_benchmark (arg_options, fd_list, cancellable, callback, *user_data)

call_open_for_benchmark_finish (res)

call_open_for_benchmark_sync (arg_options, fd_list, cancellable)

call_open_for_restore (arg_options, fd_list, cancellable, callback, *user_data)

call_open_for_restore_finish (res)

call_open_for_restore_sync (arg_options, fd_list, cancellable)

call_remove_configuration_item (arg_item, arg_options, cancellable, callback, *user_data)

call_remove_configuration_item_finish (res)

call_remove_configuration_item_sync (arg_item, arg_options, cancellable)

call_rescan (arg_options, cancellable, callback, *user_data)

call_rescan_finish (res)

call_rescan_sync (arg_options, cancellable)

call_update_configuration_item (arg_old_item, arg_new_item, arg_options, cancellable, callback, *user_data)

call_update_configuration_item_finish (res)

call_update_configuration_item_sync (arg_old_item, arg_new_item, arg_options, cancellable)

complete_add_configuration_item (invocation)

complete_format (invocation)

complete_get_secret_configuration (invocation, configuration)

complete_open_device (invocation, fd_list, fd)

complete_open_for_backup (invocation, fd_list, fd)

complete_open_for_benchmark (invocation, fd_list, fd)

complete_open_for_restore (invocation, fd_list, fd)

complete_remove_configuration_item (invocation)

complete_rescan (invocation)

complete_update_configuration_item (invocation)

Virtual Methods

do_handle_add_configuration_item (invocation, arg_item, arg_options)

do_handle_format (invocation, arg_type, arg_options)

do_handle_get_secret_configuration (invocation, arg_options)

do_handle_open_device (invocation, fd_list, arg_mode, arg_options)

do_handle_open_for_backup (invocation, fd_list, arg_options)

do_handle_open_for_benchmark (invocation, fd_list, arg_options)

do_handle_open_for_restore (invocation, fd_list, arg_options)

do_handle_remove_configuration_item (invocation, arg_item, arg_options)

do_handle_rescan (invocation, arg_options)

do_handle_update_configuration_item (invocation, arg_old_item, arg_new_item, arg_options)

Properties

Name

Type

Flags

Short Description

configuration

GLib.Variant

r/w

Configuration

crypto-backing-device

str

r/w

CryptoBackingDevice

device

str

r/w

Device

device-number

int

r/w

DeviceNumber

drive

str

r/w

Drive

hint-auto

bool

r/w

HintAuto

hint-icon-name

str

r/w

HintIconName

hint-ignore

bool

r/w

HintIgnore

hint-name

str

r/w

HintName

hint-partitionable

bool

r/w

HintPartitionable

hint-symbolic-icon-name

str

r/w

HintSymbolicIconName

hint-system

bool

r/w

HintSystem

id

str

r/w

Id

id-label

str

r/w

IdLabel

id-type

str

r/w

IdType

id-usage

str

r/w

IdUsage

id-uuid

str

r/w

IdUUID

id-version

str

r/w

IdVersion

mdraid

str

r/w

MDRaid

mdraid-member

str

r/w

MDRaidMember

preferred-device

str

r/w

PreferredDevice

read-only

bool

r/w

ReadOnly

size

int

r/w

Size

symlinks

[str]

r/w

Symlinks

userspace-mount-options

[str]

r/w

UserspaceMountOptions

Signals

Name

Short Description

handle-add-configuration-item

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

handle-format

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

handle-get-secret-configuration

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

handle-open-device

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

handle-open-for-backup

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

handle-open-for-benchmark

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

handle-open-for-restore

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

handle-remove-configuration-item

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

handle-rescan

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

handle-update-configuration-item

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

Fields

None

Class Details

class UDisks.Block
Bases:

GObject.GInterface

Structure:

UDisks.BlockIface

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

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the org.freedesktop.UDisks2.Block 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.Block interface for a concrete class. The properties are overridden in the order they are defined.

call_add_configuration_item(arg_item, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the AddConfigurationItem() 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.Block.call_add_configuration_item_finish() to get the result of the operation.

See UDisks.Block.call_add_configuration_item_sync() for the synchronous, blocking version of this method.

call_add_configuration_item_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_add_configuration_item().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Block.call_add_configuration_item().

call_add_configuration_item_sync(arg_item, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Block.call_add_configuration_item() for the asynchronous version of this method.

call_format(arg_type, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the Format() 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.Block.call_format_finish() to get the result of the operation.

See UDisks.Block.call_format_sync() for the synchronous, blocking version of this method.

call_format_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_format().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Block.call_format().

call_format_sync(arg_type, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Block.call_format() for the asynchronous version of this method.

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

Asynchronously invokes the GetSecretConfiguration() 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.Block.call_get_secret_configuration_finish() to get the result of the operation.

See UDisks.Block.call_get_secret_configuration_sync() for the synchronous, blocking version of this method.

call_get_secret_configuration_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_get_secret_configuration().

Raises:

GLib.Error

Returns:

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

out_configuration:

Return location for return parameter or None to ignore.

Return type:

(bool, out_configuration: GLib.Variant)

Finishes an operation started with UDisks.Block.call_get_secret_configuration().

call_get_secret_configuration_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_configuration:

Return location for return parameter or None to ignore.

Return type:

(bool, out_configuration: GLib.Variant)

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

See UDisks.Block.call_get_secret_configuration() for the asynchronous version of this method.

call_open_device(arg_mode, arg_options, fd_list, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the OpenDevice() 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.Block.call_open_device_finish() to get the result of the operation.

See UDisks.Block.call_open_device_sync() for the synchronous, blocking version of this method.

New in version 2.7.3.

call_open_device_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_open_device().

Raises:

GLib.Error

Returns:

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

out_fd:

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_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

Finishes an operation started with UDisks.Block.call_open_device().

New in version 2.7.3.

call_open_device_sync(arg_mode, arg_options, fd_list, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_fd:

Return location for return parameter or None to ignore.

out_fd_list:

Return location for a Gio.UnixFDList or None.

Return type:

(bool, out_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

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

See UDisks.Block.call_open_device() for the asynchronous version of this method.

New in version 2.7.3.

call_open_for_backup(arg_options, fd_list, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the OpenForBackup() 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.Block.call_open_for_backup_finish() to get the result of the operation.

See UDisks.Block.call_open_for_backup_sync() for the synchronous, blocking version of this method.

call_open_for_backup_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_open_for_backup().

Raises:

GLib.Error

Returns:

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

out_fd:

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_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

Finishes an operation started with UDisks.Block.call_open_for_backup().

call_open_for_backup_sync(arg_options, fd_list, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_fd:

Return location for return parameter or None to ignore.

out_fd_list:

Return location for a Gio.UnixFDList or None.

Return type:

(bool, out_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

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

See UDisks.Block.call_open_for_backup() for the asynchronous version of this method.

call_open_for_benchmark(arg_options, fd_list, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the OpenForBenchmark() 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.Block.call_open_for_benchmark_finish() to get the result of the operation.

See UDisks.Block.call_open_for_benchmark_sync() for the synchronous, blocking version of this method.

call_open_for_benchmark_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_open_for_benchmark().

Raises:

GLib.Error

Returns:

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

out_fd:

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_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

Finishes an operation started with UDisks.Block.call_open_for_benchmark().

call_open_for_benchmark_sync(arg_options, fd_list, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_fd:

Return location for return parameter or None to ignore.

out_fd_list:

Return location for a Gio.UnixFDList or None.

Return type:

(bool, out_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

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

See UDisks.Block.call_open_for_benchmark() for the asynchronous version of this method.

call_open_for_restore(arg_options, fd_list, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the OpenForRestore() 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.Block.call_open_for_restore_finish() to get the result of the operation.

See UDisks.Block.call_open_for_restore_sync() for the synchronous, blocking version of this method.

call_open_for_restore_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_open_for_restore().

Raises:

GLib.Error

Returns:

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

out_fd:

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_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

Finishes an operation started with UDisks.Block.call_open_for_restore().

call_open_for_restore_sync(arg_options, fd_list, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

out_fd:

Return location for return parameter or None to ignore.

out_fd_list:

Return location for a Gio.UnixFDList or None.

Return type:

(bool, out_fd: GLib.Variant, out_fd_list: Gio.UnixFDList)

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

See UDisks.Block.call_open_for_restore() for the asynchronous version of this method.

call_remove_configuration_item(arg_item, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the RemoveConfigurationItem() 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.Block.call_remove_configuration_item_finish() to get the result of the operation.

See UDisks.Block.call_remove_configuration_item_sync() for the synchronous, blocking version of this method.

call_remove_configuration_item_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_remove_configuration_item().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Block.call_remove_configuration_item().

call_remove_configuration_item_sync(arg_item, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Block.call_remove_configuration_item() for the asynchronous version of this method.

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

Asynchronously invokes the Rescan() 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.Block.call_rescan_finish() to get the result of the operation.

See UDisks.Block.call_rescan_sync() for the synchronous, blocking version of this method.

call_rescan_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_rescan().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Block.call_rescan().

call_rescan_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Block.call_rescan() for the asynchronous version of this method.

call_update_configuration_item(arg_old_item, arg_new_item, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the UpdateConfigurationItem() 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.Block.call_update_configuration_item_finish() to get the result of the operation.

See UDisks.Block.call_update_configuration_item_sync() for the synchronous, blocking version of this method.

call_update_configuration_item_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Block.call_update_configuration_item().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Block.call_update_configuration_item().

call_update_configuration_item_sync(arg_old_item, arg_new_item, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Block.call_update_configuration_item() for the asynchronous version of this method.

complete_add_configuration_item(invocation)
Parameters:

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

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

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

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

Helper function used in service implementations to finish handling invocations of the GetSecretConfiguration() 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_open_device(invocation, fd_list, fd)
Parameters:

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

complete_open_for_backup(invocation, fd_list, fd)
Parameters:

Helper function used in service implementations to finish handling invocations of the OpenForBackup() 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_open_for_benchmark(invocation, fd_list, fd)
Parameters:

Helper function used in service implementations to finish handling invocations of the OpenForBenchmark() 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_open_for_restore(invocation, fd_list, fd)
Parameters:

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

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

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

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

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

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

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

do_handle_add_configuration_item(invocation, arg_item, arg_options) virtual
Parameters:
Return type:

bool

do_handle_format(invocation, arg_type, arg_options) virtual
Parameters:
Return type:

bool

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

bool

do_handle_open_device(invocation, fd_list, arg_mode, arg_options) virtual
Parameters:
Return type:

bool

do_handle_open_for_backup(invocation, fd_list, arg_options) virtual
Parameters:
Return type:

bool

do_handle_open_for_benchmark(invocation, fd_list, arg_options) virtual
Parameters:
Return type:

bool

do_handle_open_for_restore(invocation, fd_list, arg_options) virtual
Parameters:
Return type:

bool

do_handle_remove_configuration_item(invocation, arg_item, arg_options) virtual
Parameters:
Return type:

bool

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

bool

do_handle_update_configuration_item(invocation, arg_old_item, arg_new_item, arg_options) virtual
Parameters:
Return type:

bool

Signal Details

UDisks.Block.signals.handle_add_configuration_item(block, invocation, arg_item, arg_options)
Signal Name:

handle-add-configuration-item

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 AddConfigurationItem() 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.Block.complete_add_configuration_item() 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.Block.signals.handle_format(block, invocation, arg_type, arg_options)
Signal Name:

handle-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 Format() 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.Block.complete_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.

UDisks.Block.signals.handle_get_secret_configuration(block, invocation, arg_options)
Signal Name:

handle-get-secret-configuration

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 GetSecretConfiguration() 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.Block.complete_get_secret_configuration() 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.Block.signals.handle_open_device(block, invocation, fd_list, arg_mode, arg_options)
Signal Name:

handle-open-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 OpenDevice() 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.Block.complete_open_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.

UDisks.Block.signals.handle_open_for_backup(block, invocation, fd_list, arg_options)
Signal Name:

handle-open-for-backup

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 OpenForBackup() 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.Block.complete_open_for_backup() 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.Block.signals.handle_open_for_benchmark(block, invocation, fd_list, arg_options)
Signal Name:

handle-open-for-benchmark

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 OpenForBenchmark() 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.Block.complete_open_for_benchmark() 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.Block.signals.handle_open_for_restore(block, invocation, fd_list, arg_options)
Signal Name:

handle-open-for-restore

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 OpenForRestore() 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.Block.complete_open_for_restore() 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.Block.signals.handle_remove_configuration_item(block, invocation, arg_item, arg_options)
Signal Name:

handle-remove-configuration-item

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 RemoveConfigurationItem() 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.Block.complete_remove_configuration_item() 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.Block.signals.handle_rescan(block, invocation, arg_options)
Signal Name:

handle-rescan

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 Rescan() 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.Block.complete_rescan() 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.Block.signals.handle_update_configuration_item(block, invocation, arg_old_item, arg_new_item, arg_options)
Signal Name:

handle-update-configuration-item

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 UpdateConfigurationItem() 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.Block.complete_update_configuration_item() 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.

Property Details

UDisks.Block.props.configuration
Name:

configuration

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Configuration”.

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.Block.props.crypto_backing_device
Name:

crypto-backing-device

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “CryptoBackingDevice”.

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.Block.props.device
Name:

device

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Device”.

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.Block.props.device_number
Name:

device-number

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “DeviceNumber”.

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.Block.props.drive
Name:

drive

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Drive”.

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.Block.props.hint_auto
Name:

hint-auto

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintAuto”.

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.Block.props.hint_icon_name
Name:

hint-icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintIconName”.

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.Block.props.hint_ignore
Name:

hint-ignore

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintIgnore”.

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.Block.props.hint_name
Name:

hint-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintName”.

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.Block.props.hint_partitionable
Name:

hint-partitionable

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintPartitionable”.

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.Block.props.hint_symbolic_icon_name
Name:

hint-symbolic-icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintSymbolicIconName”.

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.Block.props.hint_system
Name:

hint-system

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “HintSystem”.

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.Block.props.id
Name:

id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Id”.

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.Block.props.id_label
Name:

id-label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IdLabel”.

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.Block.props.id_type
Name:

id-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IdType”.

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.Block.props.id_usage
Name:

id-usage

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IdUsage”.

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.Block.props.id_uuid
Name:

id-uuid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IdUUID”.

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.Block.props.id_version
Name:

id-version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IdVersion”.

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.Block.props.mdraid
Name:

mdraid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “MDRaid”.

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.Block.props.mdraid_member
Name:

mdraid-member

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “MDRaidMember”.

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.Block.props.preferred_device
Name:

preferred-device

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “PreferredDevice”.

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.Block.props.read_only
Name:

read-only

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “ReadOnly”.

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.Block.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

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.

Name:

symlinks

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Symlinks”.

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.Block.props.userspace_mount_options
Name:

userspace-mount-options

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

Represents the D-Bus property “UserspaceMountOptions”.

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.