#NEWLINE# def getApiConfigs( self , request ) : #NEWLINE# #INDENT# 'Return a list of active APIs and their configuration files.\n\n    Args:\n      request: A request which may contain an app revision\n\n    Returns:\n      ApiConfigList: A list of API config strings\n    ' #NEWLINE# if ( request . appRevision and ( request . appRevision != self . __app_revision ) ) : #NEWLINE# #INDENT# raise api_exceptions . BadRequestException ( message = ( 'API backend app revision %s not the same as expected %s' % ( self . __app_revision , request . appRevision ) ) ) #NEWLINE# #UNINDENT# configs = self . __api_config_registry . all_api_configs ( ) #NEWLINE# return api_backend . ApiConfigList ( items = configs )