@@ -181,12 +181,21 @@ async def get_connections_by_id(self, connection_id: str) -> List[str]:
181181 async def get_settings_by_uuid (
182182 self , connection_uuid : str
183183 ) -> NetworkManagerConnectionProperties :
184+ """Helper to get a nested settings dict of a connection profile by uuid.
185+
186+ :param str connection_uuid: The connection uuid of the connection profile
187+ :return: Nested dictionary of all settings of the given connection profile
188+ """
184189 connection = await self .get_connection_by_uuid (connection_uuid )
185190 connection_manager = NetworkConnectionSettings (connection )
186191 connection_settings = await connection_manager .get_settings ()
187192 return connection_settings
188193
189194 async def delete_connection_by_uuid (self , connection_uuid : str ) -> None :
195+ """Helper to delete a connection profile identified by the connection uuid.
196+
197+ :param str connection_uuid: The connection uuid of the connection profile
198+ """
190199 conn_dbus_path = await self .get_connection_by_uuid (connection_uuid )
191200 connection_settings_manager = NetworkConnectionSettings (conn_dbus_path )
192201 await connection_settings_manager .delete ()
@@ -216,6 +225,10 @@ def __init__(self, settings_path: str,
216225 bus )
217226
218227 async def connection_profile (self ) -> ConnectionProfile :
228+ """Return a ConnectionProfile object containing all profile settings
229+
230+ :return: Nested dataclass containing all settings of the profile
231+ """
219232 return ConnectionProfile .from_dbus (await self .get_settings ())
220233
221234
0 commit comments