Snapd.Plug¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Attributes for this plug |
||
r/w/co |
Connections with this plug |
||
r/w/co |
Interface this plug provides |
||
r/w/co |
Short description of this plug |
||
r/w/co |
Plug name |
||
r/w/co |
Snap this plug is on |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Plug(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.Plug
contains information about a Snap plug.New in version 1.0.
- get_attribute(name)¶
- Parameters:
name (
str
) – an attribute name.- Returns:
an attribute value or
None
if not set.- Return type:
GLib.Variant
orNone
Get an attribute for this interface.
New in version 1.3.
- get_attribute_names()¶
- Returns:
a string array of attribute names. Free with
GLib.strfreev
().- length:
location to write number of attributes or
None
if not required.
- Return type:
Get the names of the attributes this plug has.
New in version 1.3.
- get_connected_slots()¶
- Returns:
an array of
Snapd.SlotRef
.- Return type:
Get the slots connected to this plug.
New in version 1.48.
- get_connections()¶
- Returns:
an array of
Snapd.Connection
.- Return type:
Get the connections being made with this plug.
New in version 1.0.
Deprecated since version 1.48: Use
Snapd.Plug.get_connected_slots
()
- get_interface()¶
- Returns:
an interface name.
- Return type:
Get the name of the interface this plug provides.
New in version 1.0.
- get_label()¶
- Returns:
a label.
- Return type:
Get a human readable label for this plug.
New in version 1.0.
- get_snap()¶
- Returns:
a snap name.
- Return type:
Get the snap this plug is on.
New in version 1.0.
Property Details¶
- Snapd.Plug.props.attributes¶
- Name:
attributes
- Type:
- Default Value:
- Flags:
Attributes for this plug
- Snapd.Plug.props.connections¶
- Name:
connections
- Type:
- Default Value:
- Flags:
Connections with this plug
- Snapd.Plug.props.interface¶
- Name:
interface
- Type:
- Default Value:
- Flags:
Interface this plug provides
- Snapd.Plug.props.label¶
- Name:
label
- Type:
- Default Value:
- Flags:
Short description of this plug
- Snapd.Plug.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
Plug name