Snapd.Maintenance

g GObject.Object GObject.Object Snapd.Maintenance Snapd.Maintenance GObject.Object->Snapd.Maintenance

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_kind ()

get_message ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

kind

Snapd.MaintenanceKind

r/w/co

Maintenance kind

message

str

r/w/co

User readable message

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Maintenance(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.MaintenanceClass

Snapd.Maintenance contains maintenance information.

New in version 1.45.

get_kind()
Returns:

a Snapd.MaintenanceKind.

Return type:

Snapd.MaintenanceKind

Get the kind of maintenance kind, e.g. Snapd.MaintenanceKind.DAEMON_RESTART.

New in version 1.45.

get_message()
Returns:

message text.

Return type:

str

Get the user readable message associate with the maintenance state.

New in version 1.45.

Property Details

Snapd.Maintenance.props.kind
Name:

kind

Type:

Snapd.MaintenanceKind

Default Value:

Snapd.MaintenanceKind.UNKNOWN

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Maintenance kind

Snapd.Maintenance.props.message
Name:

message

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

User readable message