<s> from libsaas import http , parsers <EOL> from libsaas . services import base <EOL> from . import resource <EOL> class Translations ( resource . PaginatedDeskResource ) : <EOL> path = '<STR_LIT>' <EOL> class Translation ( resource . DeskResource ) : <EOL> path = '<STR_LIT>' <EOL> class Articles ( resource . PaginatedDeskResource ) : <EOL> path = '<STR_LIT>' <EOL> @ base . apimethod <EOL> def search ( self , text = None , topic_ids = None , per_page = None , page = None ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , locals ( ) ) <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) , '<STR_LIT>' ) <EOL> return http . Request ( '<STR_LIT:GET>' , url , params ) , parsers . parse_json <EOL> @ base . resource ( Translations ) <EOL> def translations ( self ) : <EOL> """<STR_LIT>""" <EOL> return Translations ( self ) <EOL> @ base . resource ( Translation ) <EOL> def translation ( self , translation_id ) : <EOL> """<STR_LIT>""" <EOL> return Translation ( self , translation_id ) <EOL> class Article ( resource . DeskResource ) : <EOL> path = '<STR_LIT>' <EOL> class Topics ( resource . PaginatedDeskResource ) : <EOL> path = '<STR_LIT>' <EOL> def update ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) <EOL> class Topic ( resource . DeskResource ) : <EOL> path = '<STR_LIT>' <EOL> @ base . resource ( Articles ) <EOL> def articles ( self ) : <EOL> """<STR_LIT>""" <EOL> return Articles ( self ) <EOL> @ base . resource ( Translations ) <EOL> def translations ( self ) : <EOL> """<STR_LIT>""" <EOL> return Translations ( self ) <EOL> @ base . resource ( Translation ) <EOL> def translation ( self , translation_id ) : <EOL> """<STR_LIT>""" <EOL> return Translation ( self , translation_id ) </s>
