<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> __email__ = '<STR_LIT>' <EOL> __since__ = '<STR_LIT>' <EOL> import sys <EOL> from . import api <EOL> class AppVersions ( api . APIRequest ) : <EOL> def __init__ ( self , api_key , app_id ) : <EOL> """<STR_LIT>""" <EOL> api . APIRequest . __init__ ( self , api_key ) <EOL> self . _key = '<STR_LIT>' <EOL> self . _app_id = app_id <EOL> @ property <EOL> def path ( self ) : <EOL> """<STR_LIT>""" <EOL> return api . BASE_URI + '<STR_LIT>' % self . _app_id <EOL> class AppVersionDelete ( api . APIRequest ) : <EOL> def __init__ ( self , api_key , app_id , version_id , purge = False ) : <EOL> """<STR_LIT>""" <EOL> api . APIRequest . __init__ ( self , api_key ) <EOL> self . _method = '<STR_LIT>' <EOL> self . _app_id = app_id <EOL> self . _version_id = version_id <EOL> self . _purge = purge <EOL> @ property <EOL> def parameters ( self ) : <EOL> """<STR_LIT>""" <EOL> params = { } <EOL> if ( self . _purge ) : <EOL> params [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> return params <EOL> @ property <EOL> def path ( self ) : <EOL> """<STR_LIT>""" <EOL> return api . BASE_URI + '<STR_LIT>' % ( self . _app_id , self . _version_id ) <EOL> class AppVersionAdd ( api . APIRequest ) : <EOL> NOTE_TYPE_MARKDOWN = <NUM_LIT:1> <EOL> NOTE_TYPE_TEXTILE = <NUM_LIT:0> <EOL> def __init__ ( self , api_key , app_id , ipa , dsym = None , notes = None , notes_type = <NUM_LIT:1> , notify = True , downloadable = True , tags = None ) : <EOL> """<STR_LIT>""" <EOL> api . APIRequest . __init__ ( self , api_key ) <EOL> self . _method = '<STR_LIT:POST>' <EOL> self . _app_id = app_id <EOL> self . _ipa = ipa <EOL> self . _dsym = dsym <EOL> self . _notes = notes <EOL> self . _notes_type = notes_type <EOL> self . notify = notify <EOL> self . downloadable = downloadable <EOL> self . _tags = tags <EOL> @ property <EOL> def parameters ( self ) : <EOL> """<STR_LIT>""" <EOL> params = { } <EOL> if self . _ipa : <EOL> params [ '<STR_LIT>' ] = self . _ipa <EOL> if self . _dsym : <EOL> params [ '<STR_LIT>' ] = self . _dsym <EOL> if self . _notes : <EOL> params [ '<STR_LIT>' ] = self . _notes <EOL> params [ '<STR_LIT>' ] = self . _notes_type <EOL> params [ '<STR_LIT>' ] = self . _notify <EOL> params [ '<STR_LIT:status>' ] = self . _status <EOL> if self . _tags : <EOL> params [ '<STR_LIT>' ] = self . _tags <EOL> return params <EOL> @ property <EOL> def path ( self ) : <EOL> """<STR_LIT>""" <EOL> return api . BASE_URI + '<STR_LIT>' % self . _app_id <EOL> @ property <EOL> def dsym ( self ) : <EOL> return self . _dsym <EOL> @ dsym . setter <EOL> def dsym ( self , f ) : <EOL> self . _dsym = f <EOL> @ property <EOL> def notes ( self ) : <EOL> return self . _notes <EOL> @ notes . setter <EOL> def notes ( self , note ) : <EOL> self . _notes = note <EOL> @ property <EOL> def notes_type ( self ) : <EOL> return self . _notes_type <EOL> @ notes_type . setter <EOL> def notes_type ( self , note_type ) : <EOL> self . _notes_type = note_type <EOL> @ property <EOL> def notify ( self ) : <EOL> return self . _notify == <NUM_LIT:1> <EOL> @ notify . setter <EOL> def notify ( self , v ) : <EOL> self . _notify = <NUM_LIT:1> if v else <NUM_LIT:0> <EOL> @ property <EOL> def downloadable ( self ) : <EOL> return self . _status == <NUM_LIT:2> <EOL> @ downloadable . setter <EOL> def downloadable ( self , v ) : <EOL> self . _status = <NUM_LIT:2> if v else <NUM_LIT:1> <EOL> @ property <EOL> def tags ( self ) : <EOL> return self . _tags <EOL> @ tags . setter <EOL> def tags ( self , tags ) : <EOL> self . _tags = tags </s>
