code: def update_connection_public_key(self, connection_id, public_key):
          
          if connection_id in self._connections:
              connection_info = self._connections[connection_id]
              self._connections[connection_id] = \
                  ConnectionInfo(connection_info.connection_type,
                                 connection_info.connection,
                                 connection_info.uri,
                                 connection_info.status,
                                 public_key)
          else:
              LOGGER.debug("Could not update the public key %s for "
                           "connection_id %s. The connection does not "
                           "exist.",
                           public_key,
                           connection_id)
docs: Adds the public_key to the connection definition.
  
          Args:
              connection_id (str): The identifier for the connection.
              public_key (str): The public key used to enforce permissions on
                  connections.