NM.VpnConnection

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.ActiveConnection NM.ActiveConnection NM.VpnConnection NM.VpnConnection NM.ActiveConnection->NM.VpnConnection NM.Object->NM.ActiveConnection

Subclasses:

None

Methods

Inherited:

NM.ActiveConnection (18), NM.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_banner ()

get_vpn_state ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.ActiveConnection (17), NM.Object (2)

Name

Type

Flags

Short Description

banner

str

r

vpn-state

NM.VpnConnectionState

r

Signals

Inherited:

NM.ActiveConnection (1), GObject.Object (1)

Name

Short Description

vpn-state-changed

Fields

Inherited:

NM.ActiveConnection (1), GObject.Object (1)

Class Details

class NM.VpnConnection(**kwargs)
Bases:

NM.ActiveConnection

Abstract:

No

Structure:

NM.VpnConnectionClass

get_banner()
Returns:

the VPN login banner of the VPN connection. This is the internal string used by the connection, and must not be modified.

Return type:

str

Gets the VPN login banner of the active NM.VpnConnection.

get_vpn_state()
Returns:

the VPN state of the active VPN connection.

Return type:

NM.VpnConnectionState

Gets the current NM.VpnConnection state.

Signal Details

NM.VpnConnection.signals.vpn_state_changed(vpn_connection, object, p0)
Signal Name:

vpn-state-changed

Flags:

RUN_FIRST

Parameters:

Property Details

NM.VpnConnection.props.banner
Name:

banner

Type:

str

Default Value:

None

Flags:

READABLE

The VPN login banner of the active VPN connection.

NM.VpnConnection.props.vpn_state
Name:

vpn-state

Type:

NM.VpnConnectionState

Default Value:

NM.VpnConnectionState.UNKNOWN

Flags:

READABLE

The VPN state of the active VPN connection.