Snapd.Change

g GObject.Object GObject.Object Snapd.Change Snapd.Change GObject.Object->Snapd.Change

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_error ()

get_id ()

get_kind ()

get_ready ()

get_ready_time ()

get_spawn_time ()

get_status ()

get_summary ()

get_tasks ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

error

str

r/w/co

Error associated with change

id

str

r/w/co

ID of change

kind

str

r/w/co

Kind of change

ready

bool

r/w/co

True when change complete

ready-time

GLib.DateTime

r/w/co

Time this change completed

spawn-time

GLib.DateTime

r/w/co

Time this change started

status

str

r/w/co

Status of change

summary

str

r/w/co

Summary of change

tasks

GLib.PtrArray

r/w/co

Tasks in this change

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Change(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.ChangeClass

Snapd.Change contains information on a current Snap transaction.

New in version 1.5.

get_error()
Returns:

an error string or None.

Return type:

str or None

Gets the error string associated with this change.

New in version 1.30.

get_id()
Returns:

an ID.

Return type:

str

Get the unique ID for this change.

New in version 1.5.

get_kind()
Returns:

the kind of change.

Return type:

str

Gets the kind of change this is.

New in version 1.5.

get_ready()
Returns:

True if this change is complete.

Return type:

bool

Get if this change is completed.

New in version 1.5.

get_ready_time()
Returns:

a GLib.DateTime or None.

Return type:

GLib.DateTime or None

Get the time this task completed or None if not yet completed.

New in version 1.5.

get_spawn_time()
Returns:

a GLib.DateTime.

Return type:

GLib.DateTime

Get the time this change started.

New in version 1.5.

get_status()
Returns:

a status string.

Return type:

str

Get the status of the change.

New in version 1.5.

get_summary()
Returns:

a string describing the change.

Return type:

str

Get a human readable description of the change.

New in version 1.5.

get_tasks()
Returns:

an array of Snapd.Task.

Return type:

[Snapd.Task]

Get the tasks that are in this change.

New in version 1.5.

Property Details

Snapd.Change.props.error
Name:

error

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Error associated with change

Snapd.Change.props.id
Name:

id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

ID of change

Snapd.Change.props.kind
Name:

kind

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Kind of change

Snapd.Change.props.ready
Name:

ready

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

True when change complete

Snapd.Change.props.ready_time
Name:

ready-time

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Time this change completed

Snapd.Change.props.spawn_time
Name:

spawn-time

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Time this change started

Snapd.Change.props.status
Name:

status

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Status of change

Snapd.Change.props.summary
Name:

summary

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Summary of change

Snapd.Change.props.tasks
Name:

tasks

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Tasks in this change