UDisks.Partition

g GObject.GInterface GObject.GInterface UDisks.Partition UDisks.Partition GObject.GInterface->UDisks.Partition

Implementations:

UDisks.PartitionProxy, UDisks.PartitionSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_delete (arg_options, cancellable, callback, *user_data)

call_delete_finish (res)

call_delete_sync (arg_options, cancellable)

call_resize (arg_size, arg_options, cancellable, callback, *user_data)

call_resize_finish (res)

call_resize_sync (arg_size, arg_options, cancellable)

call_set_flags (arg_flags, arg_options, cancellable, callback, *user_data)

call_set_flags_finish (res)

call_set_flags_sync (arg_flags, arg_options, cancellable)

call_set_name (arg_name, arg_options, cancellable, callback, *user_data)

call_set_name_finish (res)

call_set_name_sync (arg_name, arg_options, cancellable)

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

call_set_type_finish (res)

call_set_type_sync (arg_type, arg_options, cancellable)

call_set_uuid (arg_uuid, arg_options, cancellable, callback, *user_data)

call_set_uuid_finish (res)

call_set_uuid_sync (arg_uuid, arg_options, cancellable)

complete_delete (invocation)

complete_resize (invocation)

complete_set_flags (invocation)

complete_set_name (invocation)

complete_set_type (invocation)

complete_set_uuid (invocation)

Virtual Methods

do_handle_delete (invocation, arg_options)

do_handle_resize (invocation, arg_size, arg_options)

do_handle_set_flags (invocation, arg_flags, arg_options)

do_handle_set_name (invocation, arg_name, arg_options)

do_handle_set_type (invocation, arg_type, arg_options)

do_handle_set_uuid (invocation, arg_uuid, arg_options)

Properties

Name

Type

Flags

Short Description

flags

int

r/w

Flags

is-contained

bool

r/w

IsContained

is-container

bool

r/w

IsContainer

name

str

r/w

Name

number

int

r/w

Number

offset

int

r/w

Offset

size

int

r/w

Size

table

str

r/w

Table

type

str

r/w

Type

uuid

str

r/w

UUID

Signals

Name

Short Description

handle-delete

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

handle-resize

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

handle-set-flags

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

handle-set-name

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

handle-set-type

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

handle-set-uuid

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

Fields

None

Class Details

class UDisks.Partition
Bases:

GObject.GInterface

Structure:

UDisks.PartitionIface

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

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

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

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

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 call UDisks.Partition.call_delete_finish() to get the result of the operation.

See UDisks.Partition.call_delete_sync() for the synchronous, blocking version of this method.

call_delete_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Partition.call_delete().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Partition.call_delete().

call_delete_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 Delete() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Partition.call_delete() for the asynchronous version of this method.

call_resize(arg_size, arg_options, cancellable, callback, *user_data)
Parameters:

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 call UDisks.Partition.call_resize_finish() to get the result of the operation.

See UDisks.Partition.call_resize_sync() for the synchronous, blocking version of this method.

call_resize_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Partition.call_resize().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Partition.call_resize().

call_resize_sync(arg_size, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Partition.call_resize() for the asynchronous version of this method.

call_set_flags(arg_flags, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the SetFlags() 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.Partition.call_set_flags_finish() to get the result of the operation.

See UDisks.Partition.call_set_flags_sync() for the synchronous, blocking version of this method.

call_set_flags_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Partition.call_set_flags().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Partition.call_set_flags().

call_set_flags_sync(arg_flags, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Partition.call_set_flags() for the asynchronous version of this method.

call_set_name(arg_name, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the SetName() 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.Partition.call_set_name_finish() to get the result of the operation.

See UDisks.Partition.call_set_name_sync() for the synchronous, blocking version of this method.

call_set_name_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Partition.call_set_name().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Partition.call_set_name().

call_set_name_sync(arg_name, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Partition.call_set_name() for the asynchronous version of this method.

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

Asynchronously invokes the SetType() 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.Partition.call_set_type_finish() to get the result of the operation.

See UDisks.Partition.call_set_type_sync() for the synchronous, blocking version of this method.

call_set_type_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Partition.call_set_type().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Partition.call_set_type().

call_set_type_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 SetType() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.Partition.call_set_type() for the asynchronous version of this method.

call_set_uuid(arg_uuid, arg_options, cancellable, callback, *user_data)
Parameters:

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

See UDisks.Partition.call_set_uuid_sync() for the synchronous, blocking version of this method.

New in version 2.10.0.

call_set_uuid_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.Partition.call_set_uuid().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with UDisks.Partition.call_set_uuid().

New in version 2.10.0.

call_set_uuid_sync(arg_uuid, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See UDisks.Partition.call_set_uuid() for the asynchronous version of this method.

New in version 2.10.0.

complete_delete(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.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.

complete_resize(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.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.

complete_set_flags(invocation)
Parameters:

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

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

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

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

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

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

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

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

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

bool

do_handle_resize(invocation, arg_size, arg_options) virtual
Parameters:
Return type:

bool

do_handle_set_flags(invocation, arg_flags, arg_options) virtual
Parameters:
Return type:

bool

do_handle_set_name(invocation, arg_name, arg_options) virtual
Parameters:
Return type:

bool

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

bool

do_handle_set_uuid(invocation, arg_uuid, arg_options) virtual
Parameters:
Return type:

bool

Signal Details

UDisks.Partition.signals.handle_delete(partition, invocation, arg_options)
Signal Name:

handle-delete

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

UDisks.Partition.signals.handle_resize(partition, invocation, arg_size, arg_options)
Signal Name:

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

UDisks.Partition.signals.handle_set_flags(partition, invocation, arg_flags, arg_options)
Signal Name:

handle-set-flags

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 SetFlags() 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.Partition.complete_set_flags() 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.Partition.signals.handle_set_name(partition, invocation, arg_name, arg_options)
Signal Name:

handle-set-name

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 SetName() 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.Partition.complete_set_name() 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.Partition.signals.handle_set_type(partition, invocation, arg_type, arg_options)
Signal Name:

handle-set-type

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 SetType() 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.Partition.complete_set_type() 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.Partition.signals.handle_set_uuid(partition, invocation, arg_uuid, arg_options)
Signal Name:

handle-set-uuid

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 ‘SetUUID() [gdbus-method-org-freedesktop-UDisks2-Partition.SetUUID]’ 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.Partition.complete_set_uuid() 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.10.0.

Property Details

UDisks.Partition.props.flags
Name:

flags

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Flags”.

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.Partition.props.is_contained
Name:

is-contained

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IsContained”.

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.Partition.props.is_container
Name:

is-container

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “IsContainer”.

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.Partition.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

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.

UDisks.Partition.props.number
Name:

number

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Number”.

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.Partition.props.offset
Name:

offset

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Offset”.

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

UDisks.Partition.props.table
Name:

table

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Table”.

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.Partition.props.type
Name:

type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

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.

UDisks.Partition.props.uuid
Name:

uuid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

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.