<s> from thrift . Thrift import TType , TMessageType , TException , TApplicationException <EOL> from ttypes import * <EOL> from thrift . Thrift import TProcessor <EOL> from thrift . transport import TTransport <EOL> from thrift . protocol import TBinaryProtocol , TProtocol <EOL> try : <EOL> from thrift . protocol import fastbinary <EOL> except : <EOL> fastbinary = None <EOL> from zope . interface import Interface , implements <EOL> from twisted . internet import defer <EOL> from thrift . transport import TTwisted <EOL> class Iface ( Interface ) : <EOL> def PingCLI ( ) : <EOL> pass <EOL> def CloseWhenPossible ( ) : <EOL> pass <EOL> def LoginUser ( username , Pass , Remember ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def UserIsLoggedIn ( ) : <EOL> pass <EOL> def Logout ( ) : <EOL> pass <EOL> def GetCapsules ( ) : <EOL> pass <EOL> def CreateArchive ( filePaths ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def GetUploads ( ) : <EOL> pass <EOL> def UploadToCapsule ( ArchiveLocalID , CapsuleID , title , description , sandbox ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def ResumeUpload ( ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def QueryArchiveStatus ( ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def PauseUpload ( ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def CancelUpload ( ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def GetCertificates ( ) : <EOL> pass <EOL> def ExportCertificate ( ArchiveID , format ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def Decrypt ( archivePath , key , destinationPath ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def GetSettings ( ) : <EOL> pass <EOL> def SetSettings ( settings ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def GetLatestVersion ( ) : <EOL> pass <EOL> def GetVersion ( ) : <EOL> pass <EOL> class Client ( object ) : <EOL> implements ( Iface ) <EOL> def __init__ ( self , transport , oprot_factory ) : <EOL> self . _transport = transport <EOL> self . _oprot_factory = oprot_factory <EOL> self . _seqid = <NUM_LIT:0> <EOL> self . _reqs = { } <EOL> def PingCLI ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_PingCLI ( ) <EOL> return d <EOL> def send_PingCLI ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = PingCLI_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_PingCLI ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = PingCLI_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def CloseWhenPossible ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_CloseWhenPossible ( ) <EOL> return d <EOL> def send_CloseWhenPossible ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = CloseWhenPossible_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_CloseWhenPossible ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = CloseWhenPossible_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . callback ( None ) <EOL> def LoginUser ( self , username , Pass , Remember ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_LoginUser ( username , Pass , Remember ) <EOL> return d <EOL> def send_LoginUser ( self , username , Pass , Remember ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = LoginUser_args ( ) <EOL> args . username = username <EOL> args . Pass = Pass <EOL> args . Remember = Remember <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_LoginUser ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = LoginUser_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def UserIsLoggedIn ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_UserIsLoggedIn ( ) <EOL> return d <EOL> def send_UserIsLoggedIn ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = UserIsLoggedIn_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_UserIsLoggedIn ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = UserIsLoggedIn_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def Logout ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_Logout ( ) <EOL> return d <EOL> def send_Logout ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = Logout_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_Logout ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = Logout_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def GetCapsules ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_GetCapsules ( ) <EOL> return d <EOL> def send_GetCapsules ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = GetCapsules_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_GetCapsules ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = GetCapsules_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def CreateArchive ( self , filePaths ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_CreateArchive ( filePaths ) <EOL> return d <EOL> def send_CreateArchive ( self , filePaths ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = CreateArchive_args ( ) <EOL> args . filePaths = filePaths <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_CreateArchive ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = CreateArchive_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def GetUploads ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_GetUploads ( ) <EOL> return d <EOL> def send_GetUploads ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = GetUploads_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_GetUploads ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = GetUploads_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def UploadToCapsule ( self , ArchiveLocalID , CapsuleID , title , description , sandbox ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_UploadToCapsule ( ArchiveLocalID , CapsuleID , title , description , sandbox ) <EOL> return d <EOL> def send_UploadToCapsule ( self , ArchiveLocalID , CapsuleID , title , description , sandbox ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = UploadToCapsule_args ( ) <EOL> args . ArchiveLocalID = ArchiveLocalID <EOL> args . CapsuleID = CapsuleID <EOL> args . title = title <EOL> args . description = description <EOL> args . sandbox = sandbox <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_UploadToCapsule ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = UploadToCapsule_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . callback ( None ) <EOL> def ResumeUpload ( self , ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_ResumeUpload ( ArchiveLocalID ) <EOL> return d <EOL> def send_ResumeUpload ( self , ArchiveLocalID ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = ResumeUpload_args ( ) <EOL> args . ArchiveLocalID = ArchiveLocalID <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_ResumeUpload ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = ResumeUpload_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . callback ( None ) <EOL> def QueryArchiveStatus ( self , ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_QueryArchiveStatus ( ArchiveLocalID ) <EOL> return d <EOL> def send_QueryArchiveStatus ( self , ArchiveLocalID ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = QueryArchiveStatus_args ( ) <EOL> args . ArchiveLocalID = ArchiveLocalID <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_QueryArchiveStatus ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = QueryArchiveStatus_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def PauseUpload ( self , ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_PauseUpload ( ArchiveLocalID ) <EOL> return d <EOL> def send_PauseUpload ( self , ArchiveLocalID ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = PauseUpload_args ( ) <EOL> args . ArchiveLocalID = ArchiveLocalID <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_PauseUpload ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = PauseUpload_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . callback ( None ) <EOL> def CancelUpload ( self , ArchiveLocalID ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_CancelUpload ( ArchiveLocalID ) <EOL> return d <EOL> def send_CancelUpload ( self , ArchiveLocalID ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = CancelUpload_args ( ) <EOL> args . ArchiveLocalID = ArchiveLocalID <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_CancelUpload ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = CancelUpload_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . callback ( None ) <EOL> def GetCertificates ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_GetCertificates ( ) <EOL> return d <EOL> def send_GetCertificates ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = GetCertificates_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_GetCertificates ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = GetCertificates_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def ExportCertificate ( self , ArchiveID , format ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_ExportCertificate ( ArchiveID , format ) <EOL> return d <EOL> def send_ExportCertificate ( self , ArchiveID , format ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = ExportCertificate_args ( ) <EOL> args . ArchiveID = ArchiveID <EOL> args . format = format <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_ExportCertificate ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = ExportCertificate_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def Decrypt ( self , archivePath , key , destinationPath ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_Decrypt ( archivePath , key , destinationPath ) <EOL> return d <EOL> def send_Decrypt ( self , archivePath , key , destinationPath ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = Decrypt_args ( ) <EOL> args . archivePath = archivePath <EOL> args . key = key <EOL> args . destinationPath = destinationPath <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_Decrypt ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = Decrypt_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . error is not None : <EOL> return d . errback ( result . error ) <EOL> return d . callback ( None ) <EOL> def GetSettings ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_GetSettings ( ) <EOL> return d <EOL> def send_GetSettings ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = GetSettings_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_GetSettings ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = GetSettings_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def SetSettings ( self , settings ) : <EOL> """<STR_LIT>""" <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_SetSettings ( settings ) <EOL> return d <EOL> def send_SetSettings ( self , settings ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = SetSettings_args ( ) <EOL> args . settings = settings <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_SetSettings ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = SetSettings_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . callback ( None ) <EOL> def GetLatestVersion ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_GetLatestVersion ( ) <EOL> return d <EOL> def send_GetLatestVersion ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = GetLatestVersion_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_GetLatestVersion ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = GetLatestVersion_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> def GetVersion ( self , ) : <EOL> self . _seqid += <NUM_LIT:1> <EOL> d = self . _reqs [ self . _seqid ] = defer . Deferred ( ) <EOL> self . send_GetVersion ( ) <EOL> return d <EOL> def send_GetVersion ( self , ) : <EOL> oprot = self . _oprot_factory . getProtocol ( self . _transport ) <EOL> oprot . writeMessageBegin ( '<STR_LIT>' , TMessageType . CALL , self . _seqid ) <EOL> args = GetVersion_args ( ) <EOL> args . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def recv_GetVersion ( self , iprot , mtype , rseqid ) : <EOL> d = self . _reqs . pop ( rseqid ) <EOL> if mtype == TMessageType . EXCEPTION : <EOL> x = TApplicationException ( ) <EOL> x . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> return d . errback ( x ) <EOL> result = GetVersion_result ( ) <EOL> result . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> if result . success is not None : <EOL> return d . callback ( result . success ) <EOL> return d . errback ( TApplicationException ( TApplicationException . MISSING_RESULT , "<STR_LIT>" ) ) <EOL> class Processor ( TProcessor ) : <EOL> implements ( Iface ) <EOL> def __init__ ( self , handler ) : <EOL> self . _handler = Iface ( handler ) <EOL> self . _processMap = { } <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_PingCLI <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_CloseWhenPossible <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_LoginUser <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_UserIsLoggedIn <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_Logout <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_GetCapsules <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_CreateArchive <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_GetUploads <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_UploadToCapsule <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_ResumeUpload <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_QueryArchiveStatus <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_PauseUpload <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_CancelUpload <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_GetCertificates <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_ExportCertificate <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_Decrypt <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_GetSettings <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_SetSettings <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_GetLatestVersion <EOL> self . _processMap [ "<STR_LIT>" ] = Processor . process_GetVersion <EOL> def process ( self , iprot , oprot ) : <EOL> ( name , type , seqid ) = iprot . readMessageBegin ( ) <EOL> if name not in self . _processMap : <EOL> iprot . skip ( TType . STRUCT ) <EOL> iprot . readMessageEnd ( ) <EOL> x = TApplicationException ( TApplicationException . UNKNOWN_METHOD , '<STR_LIT>' % ( name ) ) <EOL> oprot . writeMessageBegin ( name , TMessageType . EXCEPTION , seqid ) <EOL> x . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> return defer . succeed ( None ) <EOL> else : <EOL> return self . _processMap [ name ] ( self , seqid , iprot , oprot ) <EOL> def process_PingCLI ( self , seqid , iprot , oprot ) : <EOL> args = PingCLI_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = PingCLI_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . PingCLI , ) <EOL> d . addCallback ( self . write_results_success_PingCLI , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_PingCLI ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_CloseWhenPossible ( self , seqid , iprot , oprot ) : <EOL> args = CloseWhenPossible_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = CloseWhenPossible_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . CloseWhenPossible , ) <EOL> d . addCallback ( self . write_results_success_CloseWhenPossible , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_CloseWhenPossible ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_LoginUser ( self , seqid , iprot , oprot ) : <EOL> args = LoginUser_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = LoginUser_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . LoginUser , args . username , args . Pass , args . Remember ) <EOL> d . addCallback ( self . write_results_success_LoginUser , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_LoginUser , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_LoginUser ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_LoginUser ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_UserIsLoggedIn ( self , seqid , iprot , oprot ) : <EOL> args = UserIsLoggedIn_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = UserIsLoggedIn_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . UserIsLoggedIn , ) <EOL> d . addCallback ( self . write_results_success_UserIsLoggedIn , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_UserIsLoggedIn ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_Logout ( self , seqid , iprot , oprot ) : <EOL> args = Logout_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = Logout_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . Logout , ) <EOL> d . addCallback ( self . write_results_success_Logout , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_Logout , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_Logout ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_Logout ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_GetCapsules ( self , seqid , iprot , oprot ) : <EOL> args = GetCapsules_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = GetCapsules_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . GetCapsules , ) <EOL> d . addCallback ( self . write_results_success_GetCapsules , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_GetCapsules , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_GetCapsules ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_GetCapsules ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_CreateArchive ( self , seqid , iprot , oprot ) : <EOL> args = CreateArchive_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = CreateArchive_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . CreateArchive , args . filePaths ) <EOL> d . addCallback ( self . write_results_success_CreateArchive , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_CreateArchive , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_CreateArchive ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_CreateArchive ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_GetUploads ( self , seqid , iprot , oprot ) : <EOL> args = GetUploads_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = GetUploads_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . GetUploads , ) <EOL> d . addCallback ( self . write_results_success_GetUploads , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_GetUploads ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_UploadToCapsule ( self , seqid , iprot , oprot ) : <EOL> args = UploadToCapsule_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = UploadToCapsule_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . UploadToCapsule , args . ArchiveLocalID , args . CapsuleID , args . title , args . description , args . sandbox ) <EOL> d . addCallback ( self . write_results_success_UploadToCapsule , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_UploadToCapsule , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_UploadToCapsule ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_UploadToCapsule ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_ResumeUpload ( self , seqid , iprot , oprot ) : <EOL> args = ResumeUpload_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = ResumeUpload_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . ResumeUpload , args . ArchiveLocalID ) <EOL> d . addCallback ( self . write_results_success_ResumeUpload , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_ResumeUpload , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_ResumeUpload ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_ResumeUpload ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_QueryArchiveStatus ( self , seqid , iprot , oprot ) : <EOL> args = QueryArchiveStatus_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = QueryArchiveStatus_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . QueryArchiveStatus , args . ArchiveLocalID ) <EOL> d . addCallback ( self . write_results_success_QueryArchiveStatus , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_QueryArchiveStatus , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_QueryArchiveStatus ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_QueryArchiveStatus ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_PauseUpload ( self , seqid , iprot , oprot ) : <EOL> args = PauseUpload_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = PauseUpload_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . PauseUpload , args . ArchiveLocalID ) <EOL> d . addCallback ( self . write_results_success_PauseUpload , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_PauseUpload , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_PauseUpload ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_PauseUpload ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_CancelUpload ( self , seqid , iprot , oprot ) : <EOL> args = CancelUpload_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = CancelUpload_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . CancelUpload , args . ArchiveLocalID ) <EOL> d . addCallback ( self . write_results_success_CancelUpload , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_CancelUpload , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_CancelUpload ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_CancelUpload ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_GetCertificates ( self , seqid , iprot , oprot ) : <EOL> args = GetCertificates_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = GetCertificates_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . GetCertificates , ) <EOL> d . addCallback ( self . write_results_success_GetCertificates , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_GetCertificates ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_ExportCertificate ( self , seqid , iprot , oprot ) : <EOL> args = ExportCertificate_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = ExportCertificate_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . ExportCertificate , args . ArchiveID , args . format ) <EOL> d . addCallback ( self . write_results_success_ExportCertificate , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_ExportCertificate , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_ExportCertificate ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_ExportCertificate ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_Decrypt ( self , seqid , iprot , oprot ) : <EOL> args = Decrypt_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = Decrypt_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . Decrypt , args . archivePath , args . key , args . destinationPath ) <EOL> d . addCallback ( self . write_results_success_Decrypt , result , seqid , oprot ) <EOL> d . addErrback ( self . write_results_exception_Decrypt , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_Decrypt ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def write_results_exception_Decrypt ( self , error , result , seqid , oprot ) : <EOL> try : <EOL> error . raiseException ( ) <EOL> except InvalidOperation as error : <EOL> result . error = error <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_GetSettings ( self , seqid , iprot , oprot ) : <EOL> args = GetSettings_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = GetSettings_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . GetSettings , ) <EOL> d . addCallback ( self . write_results_success_GetSettings , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_GetSettings ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_SetSettings ( self , seqid , iprot , oprot ) : <EOL> args = SetSettings_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = SetSettings_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . SetSettings , args . settings ) <EOL> d . addCallback ( self . write_results_success_SetSettings , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_SetSettings ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_GetLatestVersion ( self , seqid , iprot , oprot ) : <EOL> args = GetLatestVersion_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = GetLatestVersion_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . GetLatestVersion , ) <EOL> d . addCallback ( self . write_results_success_GetLatestVersion , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_GetLatestVersion ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> def process_GetVersion ( self , seqid , iprot , oprot ) : <EOL> args = GetVersion_args ( ) <EOL> args . read ( iprot ) <EOL> iprot . readMessageEnd ( ) <EOL> result = GetVersion_result ( ) <EOL> d = defer . maybeDeferred ( self . _handler . GetVersion , ) <EOL> d . addCallback ( self . write_results_success_GetVersion , result , seqid , oprot ) <EOL> return d <EOL> def write_results_success_GetVersion ( self , success , result , seqid , oprot ) : <EOL> result . success = success <EOL> oprot . writeMessageBegin ( "<STR_LIT>" , TMessageType . REPLY , seqid ) <EOL> result . write ( oprot ) <EOL> oprot . writeMessageEnd ( ) <EOL> oprot . trans . flush ( ) <EOL> class PingCLI_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class PingCLI_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . BOOL , '<STR_LIT:success>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . BOOL : <EOL> self . success = iprot . readBool ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . BOOL , <NUM_LIT:0> ) <EOL> oprot . writeBool ( self . success ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class CloseWhenPossible_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class CloseWhenPossible_result ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class LoginUser_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT:username>' , None , None , ) , <EOL> ( <NUM_LIT:2> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ( <NUM_LIT:3> , TType . BOOL , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , username = None , Pass = None , Remember = None , ) : <EOL> self . username = username <EOL> self . Pass = Pass <EOL> self . Remember = Remember <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . username = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:2> : <EOL> if ftype == TType . STRING : <EOL> self . Pass = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:3> : <EOL> if ftype == TType . BOOL : <EOL> self . Remember = iprot . readBool ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . username is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:username>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . username ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . Pass is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:2> ) <EOL> oprot . writeString ( self . Pass ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . Remember is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . BOOL , <NUM_LIT:3> ) <EOL> oprot . writeBool ( self . Remember ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class LoginUser_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . BOOL , '<STR_LIT:success>' , None , None , ) , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , error = None , ) : <EOL> self . success = success <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . BOOL : <EOL> self . success = iprot . readBool ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . BOOL , <NUM_LIT:0> ) <EOL> oprot . writeBool ( self . success ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class UserIsLoggedIn_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class UserIsLoggedIn_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . BOOL , '<STR_LIT:success>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . BOOL : <EOL> self . success = iprot . readBool ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . BOOL , <NUM_LIT:0> ) <EOL> oprot . writeBool ( self . success ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class Logout_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class Logout_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . BOOL , '<STR_LIT:success>' , None , None , ) , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , error = None , ) : <EOL> self . success = success <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . BOOL : <EOL> self . success = iprot . readBool ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . BOOL , <NUM_LIT:0> ) <EOL> oprot . writeBool ( self . success ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetCapsules_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetCapsules_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . LIST , '<STR_LIT:success>' , ( TType . STRUCT , ( Capsule , Capsule . thrift_spec ) ) , None , ) , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , error = None , ) : <EOL> self . success = success <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . LIST : <EOL> self . success = [ ] <EOL> ( _etype10 , _size7 ) = iprot . readListBegin ( ) <EOL> for _i11 in xrange ( _size7 ) : <EOL> _elem12 = Capsule ( ) <EOL> _elem12 . read ( iprot ) <EOL> self . success . append ( _elem12 ) <EOL> iprot . readListEnd ( ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . LIST , <NUM_LIT:0> ) <EOL> oprot . writeListBegin ( TType . STRUCT , len ( self . success ) ) <EOL> for iter13 in self . success : <EOL> iter13 . write ( oprot ) <EOL> oprot . writeListEnd ( ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class CreateArchive_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . LIST , '<STR_LIT>' , ( TType . STRING , None ) , None , ) , <EOL> ) <EOL> def __init__ ( self , filePaths = None , ) : <EOL> self . filePaths = filePaths <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . LIST : <EOL> self . filePaths = [ ] <EOL> ( _etype17 , _size14 ) = iprot . readListBegin ( ) <EOL> for _i18 in xrange ( _size14 ) : <EOL> _elem19 = iprot . readString ( ) ; <EOL> self . filePaths . append ( _elem19 ) <EOL> iprot . readListEnd ( ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . filePaths is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . LIST , <NUM_LIT:1> ) <EOL> oprot . writeListBegin ( TType . STRING , len ( self . filePaths ) ) <EOL> for iter20 in self . filePaths : <EOL> oprot . writeString ( iter20 ) <EOL> oprot . writeListEnd ( ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class CreateArchive_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . STRUCT , '<STR_LIT:success>' , ( Archive , Archive . thrift_spec ) , None , ) , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , error = None , ) : <EOL> self . success = success <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . STRUCT : <EOL> self . success = Archive ( ) <EOL> self . success . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . STRUCT , <NUM_LIT:0> ) <EOL> self . success . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetUploads_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetUploads_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . LIST , '<STR_LIT:success>' , ( TType . STRUCT , ( Archive , Archive . thrift_spec ) ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . LIST : <EOL> self . success = [ ] <EOL> ( _etype24 , _size21 ) = iprot . readListBegin ( ) <EOL> for _i25 in xrange ( _size21 ) : <EOL> _elem26 = Archive ( ) <EOL> _elem26 . read ( iprot ) <EOL> self . success . append ( _elem26 ) <EOL> iprot . readListEnd ( ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . LIST , <NUM_LIT:0> ) <EOL> oprot . writeListBegin ( TType . STRUCT , len ( self . success ) ) <EOL> for iter27 in self . success : <EOL> iter27 . write ( oprot ) <EOL> oprot . writeListEnd ( ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class UploadToCapsule_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ( <NUM_LIT:2> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ( <NUM_LIT:3> , TType . STRING , '<STR_LIT:title>' , None , None , ) , <EOL> ( <NUM_LIT:4> , TType . STRING , '<STR_LIT:description>' , None , None , ) , <EOL> ( <NUM_LIT:5> , TType . BOOL , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , ArchiveLocalID = None , CapsuleID = None , title = None , description = None , sandbox = None , ) : <EOL> self . ArchiveLocalID = ArchiveLocalID <EOL> self . CapsuleID = CapsuleID <EOL> self . title = title <EOL> self . description = description <EOL> self . sandbox = sandbox <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . ArchiveLocalID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:2> : <EOL> if ftype == TType . STRING : <EOL> self . CapsuleID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:3> : <EOL> if ftype == TType . STRING : <EOL> self . title = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:4> : <EOL> if ftype == TType . STRING : <EOL> self . description = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:5> : <EOL> if ftype == TType . BOOL : <EOL> self . sandbox = iprot . readBool ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . ArchiveLocalID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . ArchiveLocalID ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . CapsuleID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:2> ) <EOL> oprot . writeString ( self . CapsuleID ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . title is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:title>' , TType . STRING , <NUM_LIT:3> ) <EOL> oprot . writeString ( self . title ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . description is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:description>' , TType . STRING , <NUM_LIT:4> ) <EOL> oprot . writeString ( self . description ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . sandbox is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . BOOL , <NUM_LIT:5> ) <EOL> oprot . writeBool ( self . sandbox ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class UploadToCapsule_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , error = None , ) : <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class ResumeUpload_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , ArchiveLocalID = None , ) : <EOL> self . ArchiveLocalID = ArchiveLocalID <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . ArchiveLocalID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . ArchiveLocalID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . ArchiveLocalID ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class ResumeUpload_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , error = None , ) : <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class QueryArchiveStatus_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , ArchiveLocalID = None , ) : <EOL> self . ArchiveLocalID = ArchiveLocalID <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . ArchiveLocalID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . ArchiveLocalID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . ArchiveLocalID ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class QueryArchiveStatus_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . STRUCT , '<STR_LIT:success>' , ( TransferStatus , TransferStatus . thrift_spec ) , None , ) , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , error = None , ) : <EOL> self . success = success <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . STRUCT : <EOL> self . success = TransferStatus ( ) <EOL> self . success . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . STRUCT , <NUM_LIT:0> ) <EOL> self . success . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class PauseUpload_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , ArchiveLocalID = None , ) : <EOL> self . ArchiveLocalID = ArchiveLocalID <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . ArchiveLocalID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . ArchiveLocalID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . ArchiveLocalID ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class PauseUpload_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , error = None , ) : <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class CancelUpload_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , ArchiveLocalID = None , ) : <EOL> self . ArchiveLocalID = ArchiveLocalID <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . ArchiveLocalID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . ArchiveLocalID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . ArchiveLocalID ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class CancelUpload_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , error = None , ) : <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetCertificates_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetCertificates_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . LIST , '<STR_LIT:success>' , ( TType . STRUCT , ( Certificate , Certificate . thrift_spec ) ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . LIST : <EOL> self . success = [ ] <EOL> ( _etype31 , _size28 ) = iprot . readListBegin ( ) <EOL> for _i32 in xrange ( _size28 ) : <EOL> _elem33 = Certificate ( ) <EOL> _elem33 . read ( iprot ) <EOL> self . success . append ( _elem33 ) <EOL> iprot . readListEnd ( ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . LIST , <NUM_LIT:0> ) <EOL> oprot . writeListBegin ( TType . STRUCT , len ( self . success ) ) <EOL> for iter34 in self . success : <EOL> iter34 . write ( oprot ) <EOL> oprot . writeListEnd ( ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class ExportCertificate_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ( <NUM_LIT:2> , TType . I32 , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , ArchiveID = None , format = None , ) : <EOL> self . ArchiveID = ArchiveID <EOL> self . format = format <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . ArchiveID = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:2> : <EOL> if ftype == TType . I32 : <EOL> self . format = iprot . readI32 ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . ArchiveID is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . ArchiveID ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . format is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . I32 , <NUM_LIT:2> ) <EOL> oprot . writeI32 ( self . format ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class ExportCertificate_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . STRING , '<STR_LIT:success>' , None , None , ) , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , error = None , ) : <EOL> self . success = success <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . STRING : <EOL> self . success = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . STRING , <NUM_LIT:0> ) <EOL> oprot . writeString ( self . success ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class Decrypt_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ( <NUM_LIT:2> , TType . STRING , '<STR_LIT:key>' , None , None , ) , <EOL> ( <NUM_LIT:3> , TType . STRING , '<STR_LIT>' , None , None , ) , <EOL> ) <EOL> def __init__ ( self , archivePath = None , key = None , destinationPath = None , ) : <EOL> self . archivePath = archivePath <EOL> self . key = key <EOL> self . destinationPath = destinationPath <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRING : <EOL> self . archivePath = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:2> : <EOL> if ftype == TType . STRING : <EOL> self . key = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> elif fid == <NUM_LIT:3> : <EOL> if ftype == TType . STRING : <EOL> self . destinationPath = iprot . readString ( ) ; <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . archivePath is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:1> ) <EOL> oprot . writeString ( self . archivePath ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . key is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:key>' , TType . STRING , <NUM_LIT:2> ) <EOL> oprot . writeString ( self . key ) <EOL> oprot . writeFieldEnd ( ) <EOL> if self . destinationPath is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRING , <NUM_LIT:3> ) <EOL> oprot . writeString ( self . destinationPath ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class Decrypt_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT:error>' , ( InvalidOperation , InvalidOperation . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , error = None , ) : <EOL> self . error = error <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . error = InvalidOperation ( ) <EOL> self . error . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . error is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:error>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . error . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetSettings_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetSettings_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . STRUCT , '<STR_LIT:success>' , ( Settings , Settings . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . STRUCT : <EOL> self . success = Settings ( ) <EOL> self . success . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . STRUCT , <NUM_LIT:0> ) <EOL> self . success . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class SetSettings_args ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> None , <EOL> ( <NUM_LIT:1> , TType . STRUCT , '<STR_LIT>' , ( Settings , Settings . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , settings = None , ) : <EOL> self . settings = settings <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:1> : <EOL> if ftype == TType . STRUCT : <EOL> self . settings = Settings ( ) <EOL> self . settings . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . settings is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT>' , TType . STRUCT , <NUM_LIT:1> ) <EOL> self . settings . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class SetSettings_result ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetLatestVersion_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetLatestVersion_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . STRUCT , '<STR_LIT:success>' , ( VersionInfo , VersionInfo . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . STRUCT : <EOL> self . success = VersionInfo ( ) <EOL> self . success . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . STRUCT , <NUM_LIT:0> ) <EOL> self . success . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetVersion_args ( object ) : <EOL> thrift_spec = ( <EOL> ) <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class GetVersion_result ( object ) : <EOL> """<STR_LIT>""" <EOL> thrift_spec = ( <EOL> ( <NUM_LIT:0> , TType . STRUCT , '<STR_LIT:success>' , ( VersionInfo , VersionInfo . thrift_spec ) , None , ) , <EOL> ) <EOL> def __init__ ( self , success = None , ) : <EOL> self . success = success <EOL> def read ( self , iprot ) : <EOL> if iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and isinstance ( iprot . trans , TTransport . CReadableTransport ) and self . thrift_spec is not None and fastbinary is not None : <EOL> fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) <EOL> return <EOL> iprot . readStructBegin ( ) <EOL> while True : <EOL> ( fname , ftype , fid ) = iprot . readFieldBegin ( ) <EOL> if ftype == TType . STOP : <EOL> break <EOL> if fid == <NUM_LIT:0> : <EOL> if ftype == TType . STRUCT : <EOL> self . success = VersionInfo ( ) <EOL> self . success . read ( iprot ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> else : <EOL> iprot . skip ( ftype ) <EOL> iprot . readFieldEnd ( ) <EOL> iprot . readStructEnd ( ) <EOL> def write ( self , oprot ) : <EOL> if oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated and self . thrift_spec is not None and fastbinary is not None : <EOL> oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) <EOL> return <EOL> oprot . writeStructBegin ( '<STR_LIT>' ) <EOL> if self . success is not None : <EOL> oprot . writeFieldBegin ( '<STR_LIT:success>' , TType . STRUCT , <NUM_LIT:0> ) <EOL> self . success . write ( oprot ) <EOL> oprot . writeFieldEnd ( ) <EOL> oprot . writeFieldStop ( ) <EOL> oprot . writeStructEnd ( ) <EOL> def validate ( self ) : <EOL> return <EOL> def __repr__ ( self ) : <EOL> L = [ '<STR_LIT>' % ( key , value ) <EOL> for key , value in self . __dict__ . iteritems ( ) ] <EOL> return '<STR_LIT>' % ( self . __class__ . __name__ , '<STR_LIT:U+002CU+0020>' . join ( L ) ) <EOL> def __eq__ ( self , other ) : <EOL> return isinstance ( other , self . __class__ ) and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) </s>
