def get_query_logging_config(self, query_logging_config_id): """Return query logging config, if it exists.""" if query_logging_config_id not in self.query_logging_configs: raise NoSuchQueryLoggingConfig() return self.query_logging_configs[query_logging_config_id]
def delete_query_logging_config(self, query_logging_config_id): """Delete query logging config, if it exists.""" if query_logging_config_id not in self.query_logging_configs: raise NoSuchQueryLoggingConfig() self.query_logging_configs.pop(query_logging_config_id)