<s> from libsaas import http , parsers <EOL> from libsaas . services import base <EOL> from . resource import ( <EOL> serialize_param , TrelloFieldMixin , TrelloFilterMixin , <EOL> TrelloResource , TrelloCollection , <EOL> TrelloReadonlyResource , TrelloReadonlyCollection ) <EOL> class Actions ( TrelloReadonlyCollection ) : <EOL> path = '<STR_LIT>' <EOL> class Card ( TrelloReadonlyResource ) : <EOL> path = '<STR_LIT>' <EOL> class Cards ( TrelloReadonlyCollection , TrelloFilterMixin ) : <EOL> path = '<STR_LIT>' <EOL> class Checklists ( TrelloCollection ) : <EOL> path = '<STR_LIT>' <EOL> class Lists ( TrelloCollection , TrelloFilterMixin ) : <EOL> path = '<STR_LIT>' <EOL> class Members ( TrelloReadonlyCollection , TrelloFilterMixin ) : <EOL> path = '<STR_LIT>' <EOL> class Member ( TrelloResource ) : <EOL> path = '<STR_LIT>' <EOL> def get ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) <EOL> class MembersInvited ( TrelloReadonlyResource , TrelloFieldMixin ) : <EOL> path = '<STR_LIT>' <EOL> class Memberships ( TrelloReadonlyCollection ) : <EOL> path = '<STR_LIT>' <EOL> class Membership ( TrelloResource ) : <EOL> path = '<STR_LIT>' <EOL> def delete ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) <EOL> class Organization ( TrelloReadonlyResource , TrelloFieldMixin ) : <EOL> path = '<STR_LIT>' <EOL> class Board ( TrelloResource , TrelloFieldMixin ) : <EOL> path = '<STR_LIT>' <EOL> def delete ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) <EOL> @ base . apimethod <EOL> def get ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , kwargs , serialize_param = serialize_param ) <EOL> request = http . Request ( '<STR_LIT:GET>' , self . get_url ( ) , params ) <EOL> return request , parsers . parse_json <EOL> @ base . apimethod <EOL> def calendar_key ( self ) : <EOL> """<STR_LIT>""" <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> request = http . Request ( '<STR_LIT:POST>' , url ) <EOL> return request , parsers . parse_json <EOL> @ base . apimethod <EOL> def email_key ( self ) : <EOL> """<STR_LIT>""" <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> request = http . Request ( '<STR_LIT:POST>' , url ) <EOL> return request , parsers . parse_json <EOL> @ base . apimethod <EOL> def mark_as_viewed ( self ) : <EOL> """<STR_LIT>""" <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> request = http . Request ( '<STR_LIT:POST>' , url ) <EOL> return request , parsers . parse_json <EOL> @ base . resource ( Actions ) <EOL> def actions ( self ) : <EOL> """<STR_LIT>""" <EOL> return Actions ( self ) <EOL> @ base . resource ( Card ) <EOL> def card ( self , card_id ) : <EOL> """<STR_LIT>""" <EOL> return Card ( self , card_id ) <EOL> @ base . resource ( Cards ) <EOL> def cards ( self ) : <EOL> """<STR_LIT>""" <EOL> return Cards ( self ) <EOL> @ base . resource ( Checklists ) <EOL> def checklists ( self ) : <EOL> """<STR_LIT>""" <EOL> return Checklists ( self ) <EOL> @ base . resource ( Lists ) <EOL> def lists ( self ) : <EOL> """<STR_LIT>""" <EOL> return Lists ( self ) <EOL> @ base . resource ( Members ) <EOL> def members ( self ) : <EOL> """<STR_LIT>""" <EOL> return Members ( self ) <EOL> @ base . resource ( Member ) <EOL> def member ( self , member_id ) : <EOL> """<STR_LIT>""" <EOL> return Member ( self , member_id ) <EOL> @ base . resource ( MembersInvited ) <EOL> def members_invited ( self ) : <EOL> """<STR_LIT>""" <EOL> return MembersInvited ( self ) <EOL> @ base . resource ( Memberships ) <EOL> def memberships ( self ) : <EOL> """<STR_LIT>""" <EOL> return Memberships ( self ) <EOL> @ base . resource ( Membership ) <EOL> def membership ( self , membership_id ) : <EOL> """<STR_LIT>""" <EOL> return Membership ( self , membership_id ) <EOL> @ base . resource ( Organization ) <EOL> def organization ( self ) : <EOL> """<STR_LIT>""" <EOL> return Organization ( self ) <EOL> class Boards ( TrelloCollection ) : <EOL> path = '<STR_LIT>' <EOL> def get ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) </s>
