Snapd.Interface

g GObject.Object GObject.Object Snapd.Interface Snapd.Interface GObject.Object->Snapd.Interface

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_doc_url ()

get_name ()

get_plugs ()

get_slots ()

get_summary ()

make_label ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

doc-url

str

r/w/co

Interface documentation URL

name

str

r/w/co

Interface name

plugs

GLib.PtrArray

r/w/co

Plugs of this interface type

slots

GLib.PtrArray

r/w/co

Slots of this interface type

summary

str

r/w/co

Interface summary

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Interface(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.InterfaceClass

Snapd.Interface contains information about a Snap interface.

New in version 1.48.

get_doc_url()
Returns:

a URL.

Return type:

str

Get the documentation URL of this interface.

New in version 1.48.

get_name()
Returns:

a name.

Return type:

str

Get the name of this interface.

New in version 1.48.

get_plugs()
Returns:

an array of Snapd.Plug.

Return type:

[Snapd.Plug]

Get the plugs matching this interface type.

New in version 1.48.

get_slots()
Returns:

an array of Snapd.Slot.

Return type:

[Snapd.Slot]

Get the slots matching this interface type.

New in version 1.48.

get_summary()
Returns:

a summary.

Return type:

str

Get the summary of this interface.

New in version 1.48.

make_label()
Returns:

a newly allocated label string.

Return type:

str

Make a label for this interface suitable for a user interface.

New in version 1.57.

Property Details

Snapd.Interface.props.doc_url
Name:

doc-url

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Interface documentation URL

Snapd.Interface.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Interface name

Snapd.Interface.props.plugs
Name:

plugs

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Plugs of this interface type

Snapd.Interface.props.slots
Name:

slots

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Slots of this interface type

Snapd.Interface.props.summary
Name:

summary

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Interface summary