<s> from . import resource <EOL> from libsaas import http , parsers <EOL> from libsaas . services import base <EOL> class FlagsBase ( resource . UserVoiceResource ) : <EOL> path = '<STR_LIT>' <EOL> def wrap_object ( self , obj ) : <EOL> return { '<STR_LIT:code>' : obj } <EOL> @ base . apimethod <EOL> def create ( self , flag ) : <EOL> """<STR_LIT>""" <EOL> self . require_collection ( ) <EOL> request = http . Request ( '<STR_LIT:POST>' , self . get_url ( ) , self . wrap_object ( flag ) ) <EOL> return request , parsers . parse_json <EOL> def update ( self , obj ) : <EOL> raise base . MethodNotSupported ( ) <EOL> class SuggestionCommentFlags ( FlagsBase ) : <EOL> pass <EOL> class SuggestionFlags ( FlagsBase ) : <EOL> pass <EOL> class FaqFlags ( FlagsBase ) : <EOL> pass </s>
