From c003c3d123069c5f2842b1867b63fec3c5de6933 Mon Sep 17 00:00:00 2001 From: Jimmy Zimmerman Date: Tue, 10 Jan 2012 07:18:58 -0700 Subject: Merge Evernote API SDK 1.20 for ruby --- vendor/gen-rb/evernote/edam/limits_constants.rb | 35 + vendor/gen-rb/evernote/edam/note_store.rb | 783 ++++++++++++++++++++- vendor/gen-rb/evernote/edam/note_store_types.rb | 179 ++++- vendor/gen-rb/evernote/edam/types_types.rb | 157 ++++- vendor/gen-rb/evernote/edam/user_store.rb | 68 +- .../gen-rb/evernote/edam/user_store_constants.rb | 2 +- vendor/gen-rb/evernote/edam/user_store_types.rb | 97 +++ 7 files changed, 1262 insertions(+), 59 deletions(-) diff --git a/vendor/gen-rb/evernote/edam/limits_constants.rb b/vendor/gen-rb/evernote/edam/limits_constants.rb index d08e57e..65127f1 100644 --- a/vendor/gen-rb/evernote/edam/limits_constants.rb +++ b/vendor/gen-rb/evernote/edam/limits_constants.rb @@ -17,6 +17,8 @@ require 'limits_types' EDAM_ATTRIBUTE_LIST_MAX = 100 + EDAM_ATTRIBUTE_MAP_MAX = 100 + EDAM_GUID_LEN_MIN = 36 EDAM_GUID_LEN_MAX = 36 @@ -57,6 +59,8 @@ require 'limits_types' EDAM_MIME_TYPE_AMR = %q"audio/amr" + EDAM_MIME_TYPE_MP4_VIDEO = %q"video/mp4" + EDAM_MIME_TYPE_INK = %q"application/vnd.evernote.ink" EDAM_MIME_TYPE_PDF = %q"application/pdf" @@ -72,6 +76,7 @@ require 'limits_types' %q"audio/amr", %q"application/vnd.evernote.ink", %q"application/pdf", + %q"video/mp4", ]) EDAM_COMMERCE_SERVICE_GOOGLE = %q"Google" @@ -126,6 +131,20 @@ require 'limits_types' EDAM_NOTE_CONTENT_LEN_MAX = 5242880 + EDAM_APPLICATIONDATA_NAME_LEN_MIN = 3 + + EDAM_APPLICATIONDATA_NAME_LEN_MAX = 32 + + EDAM_APPLICATIONDATA_VALUE_LEN_MIN = 0 + + EDAM_APPLICATIONDATA_VALUE_LEN_MAX = 4092 + + EDAM_APPLICATIONDATA_ENTRY_LEN_MAX = 4095 + + EDAM_APPLICATIONDATA_NAME_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$" + + EDAM_APPLICATIONDATA_VALUE_REGEX = %q"^[^\\p{Cc}]{0,4092}$" + EDAM_NOTEBOOK_NAME_LEN_MIN = 1 EDAM_NOTEBOOK_NAME_LEN_MAX = 100 @@ -200,6 +219,22 @@ require 'limits_types' EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250 + EDAM_NOTE_CONTENT_CLASS_LEN_MIN = 3 + + EDAM_NOTE_CONTENT_CLASS_LEN_MAX = 32 + + EDAM_HELLO_APP_CONTENT_CLASS_PREFIX = %q"evernote.hello." + + EDAM_FOOD_APP_CONTENT_CLASS_PREFIX = %q"evernote.food." + + EDAM_NOTE_CONTENT_CLASS_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$" + + EDAM_CONTENT_CLASS_HELLO_ENCOUNTER = %q"evernote.hello.encounter" + + EDAM_CONTENT_CLASS_HELLO_PROFILE = %q"evernote.hello.profile" + + EDAM_CONTENT_CLASS_FOOD_MEAL = %q"evernote.food.meal" + end end end diff --git a/vendor/gen-rb/evernote/edam/note_store.rb b/vendor/gen-rb/evernote/edam/note_store.rb index 5bacc7c..5c4810d 100644 --- a/vendor/gen-rb/evernote/edam/note_store.rb +++ b/vendor/gen-rb/evernote/edam/note_store.rb @@ -48,6 +48,23 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncChunk failed: unknown result') end + def getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter) + send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter) + return recv_getFilteredSyncChunk() + end + + def send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter) + send_message('getFilteredSyncChunk', GetFilteredSyncChunk_args, :authenticationToken => authenticationToken, :afterUSN => afterUSN, :maxEntries => maxEntries, :filter => filter) + end + + def recv_getFilteredSyncChunk() + result = receive_message(GetFilteredSyncChunk_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFilteredSyncChunk failed: unknown result') + end + def getLinkedNotebookSyncState(authenticationToken, linkedNotebook) send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook) return recv_getLinkedNotebookSyncState() @@ -491,6 +508,78 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNote failed: unknown result') end + def getNoteApplicationData(authenticationToken, guid) + send_getNoteApplicationData(authenticationToken, guid) + return recv_getNoteApplicationData() + end + + def send_getNoteApplicationData(authenticationToken, guid) + send_message('getNoteApplicationData', GetNoteApplicationData_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getNoteApplicationData() + result = receive_message(GetNoteApplicationData_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteApplicationData failed: unknown result') + end + + def getNoteApplicationDataEntry(authenticationToken, guid, key) + send_getNoteApplicationDataEntry(authenticationToken, guid, key) + return recv_getNoteApplicationDataEntry() + end + + def send_getNoteApplicationDataEntry(authenticationToken, guid, key) + send_message('getNoteApplicationDataEntry', GetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key) + end + + def recv_getNoteApplicationDataEntry() + result = receive_message(GetNoteApplicationDataEntry_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteApplicationDataEntry failed: unknown result') + end + + def setNoteApplicationDataEntry(authenticationToken, guid, key, value) + send_setNoteApplicationDataEntry(authenticationToken, guid, key, value) + return recv_setNoteApplicationDataEntry() + end + + def send_setNoteApplicationDataEntry(authenticationToken, guid, key, value) + send_message('setNoteApplicationDataEntry', SetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key, :value => value) + end + + def recv_setNoteApplicationDataEntry() + result = receive_message(SetNoteApplicationDataEntry_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setNoteApplicationDataEntry failed: unknown result') + end + + def unsetNoteApplicationDataEntry(authenticationToken, guid, key) + send_unsetNoteApplicationDataEntry(authenticationToken, guid, key) + return recv_unsetNoteApplicationDataEntry() + end + + def send_unsetNoteApplicationDataEntry(authenticationToken, guid, key) + send_message('unsetNoteApplicationDataEntry', UnsetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key) + end + + def recv_unsetNoteApplicationDataEntry() + result = receive_message(UnsetNoteApplicationDataEntry_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unsetNoteApplicationDataEntry failed: unknown result') + end + def getNoteContent(authenticationToken, guid) send_getNoteContent(authenticationToken, guid) return recv_getNoteContent() @@ -742,6 +831,78 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResource failed: unknown result') end + def getResourceApplicationData(authenticationToken, guid) + send_getResourceApplicationData(authenticationToken, guid) + return recv_getResourceApplicationData() + end + + def send_getResourceApplicationData(authenticationToken, guid) + send_message('getResourceApplicationData', GetResourceApplicationData_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getResourceApplicationData() + result = receive_message(GetResourceApplicationData_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceApplicationData failed: unknown result') + end + + def getResourceApplicationDataEntry(authenticationToken, guid, key) + send_getResourceApplicationDataEntry(authenticationToken, guid, key) + return recv_getResourceApplicationDataEntry() + end + + def send_getResourceApplicationDataEntry(authenticationToken, guid, key) + send_message('getResourceApplicationDataEntry', GetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key) + end + + def recv_getResourceApplicationDataEntry() + result = receive_message(GetResourceApplicationDataEntry_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceApplicationDataEntry failed: unknown result') + end + + def setResourceApplicationDataEntry(authenticationToken, guid, key, value) + send_setResourceApplicationDataEntry(authenticationToken, guid, key, value) + return recv_setResourceApplicationDataEntry() + end + + def send_setResourceApplicationDataEntry(authenticationToken, guid, key, value) + send_message('setResourceApplicationDataEntry', SetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key, :value => value) + end + + def recv_setResourceApplicationDataEntry() + result = receive_message(SetResourceApplicationDataEntry_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setResourceApplicationDataEntry failed: unknown result') + end + + def unsetResourceApplicationDataEntry(authenticationToken, guid, key) + send_unsetResourceApplicationDataEntry(authenticationToken, guid, key) + return recv_unsetResourceApplicationDataEntry() + end + + def send_unsetResourceApplicationDataEntry(authenticationToken, guid, key) + send_message('unsetResourceApplicationDataEntry', UnsetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key) + end + + def recv_unsetResourceApplicationDataEntry() + result = receive_message(UnsetResourceApplicationDataEntry_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unsetResourceApplicationDataEntry failed: unknown result') + end + def updateResource(authenticationToken, resource) send_updateResource(authenticationToken, resource) return recv_updateResource() @@ -936,6 +1097,24 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createSharedNotebook failed: unknown result') end + def sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients) + send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients) + return recv_sendMessageToSharedNotebookMembers() + end + + def send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients) + send_message('sendMessageToSharedNotebookMembers', SendMessageToSharedNotebookMembers_args, :authenticationToken => authenticationToken, :notebookGuid => notebookGuid, :messageText => messageText, :recipients => recipients) + end + + def recv_sendMessageToSharedNotebookMembers() + result = receive_message(SendMessageToSharedNotebookMembers_result) + return result.success unless result.success.nil? + raise result.userException unless result.userException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise result.systemException unless result.systemException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sendMessageToSharedNotebookMembers failed: unknown result') + end + def listSharedNotebooks(authenticationToken) send_listSharedNotebooks(authenticationToken) return recv_listSharedNotebooks() @@ -1181,6 +1360,19 @@ require 'note_store_types' write_result(result, oprot, 'getSyncChunk', seqid) end + def process_getFilteredSyncChunk(seqid, iprot, oprot) + args = read_args(iprot, GetFilteredSyncChunk_args) + result = GetFilteredSyncChunk_result.new() + begin + result.success = @handler.getFilteredSyncChunk(args.authenticationToken, args.afterUSN, args.maxEntries, args.filter) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'getFilteredSyncChunk', seqid) + end + def process_getLinkedNotebookSyncState(seqid, iprot, oprot) args = read_args(iprot, GetLinkedNotebookSyncState_args) result = GetLinkedNotebookSyncState_result.new() @@ -1544,6 +1736,66 @@ require 'note_store_types' write_result(result, oprot, 'getNote', seqid) end + def process_getNoteApplicationData(seqid, iprot, oprot) + args = read_args(iprot, GetNoteApplicationData_args) + result = GetNoteApplicationData_result.new() + begin + result.success = @handler.getNoteApplicationData(args.authenticationToken, args.guid) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'getNoteApplicationData', seqid) + end + + def process_getNoteApplicationDataEntry(seqid, iprot, oprot) + args = read_args(iprot, GetNoteApplicationDataEntry_args) + result = GetNoteApplicationDataEntry_result.new() + begin + result.success = @handler.getNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'getNoteApplicationDataEntry', seqid) + end + + def process_setNoteApplicationDataEntry(seqid, iprot, oprot) + args = read_args(iprot, SetNoteApplicationDataEntry_args) + result = SetNoteApplicationDataEntry_result.new() + begin + result.success = @handler.setNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key, args.value) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'setNoteApplicationDataEntry', seqid) + end + + def process_unsetNoteApplicationDataEntry(seqid, iprot, oprot) + args = read_args(iprot, UnsetNoteApplicationDataEntry_args) + result = UnsetNoteApplicationDataEntry_result.new() + begin + result.success = @handler.unsetNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'unsetNoteApplicationDataEntry', seqid) + end + def process_getNoteContent(seqid, iprot, oprot) args = read_args(iprot, GetNoteContent_args) result = GetNoteContent_result.new() @@ -1752,6 +2004,66 @@ require 'note_store_types' write_result(result, oprot, 'getResource', seqid) end + def process_getResourceApplicationData(seqid, iprot, oprot) + args = read_args(iprot, GetResourceApplicationData_args) + result = GetResourceApplicationData_result.new() + begin + result.success = @handler.getResourceApplicationData(args.authenticationToken, args.guid) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'getResourceApplicationData', seqid) + end + + def process_getResourceApplicationDataEntry(seqid, iprot, oprot) + args = read_args(iprot, GetResourceApplicationDataEntry_args) + result = GetResourceApplicationDataEntry_result.new() + begin + result.success = @handler.getResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'getResourceApplicationDataEntry', seqid) + end + + def process_setResourceApplicationDataEntry(seqid, iprot, oprot) + args = read_args(iprot, SetResourceApplicationDataEntry_args) + result = SetResourceApplicationDataEntry_result.new() + begin + result.success = @handler.setResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key, args.value) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'setResourceApplicationDataEntry', seqid) + end + + def process_unsetResourceApplicationDataEntry(seqid, iprot, oprot) + args = read_args(iprot, UnsetResourceApplicationDataEntry_args) + result = UnsetResourceApplicationDataEntry_result.new() + begin + result.success = @handler.unsetResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'unsetResourceApplicationDataEntry', seqid) + end + def process_updateResource(seqid, iprot, oprot) args = read_args(iprot, UpdateResource_args) result = UpdateResource_result.new() @@ -1909,6 +2221,21 @@ require 'note_store_types' write_result(result, oprot, 'createSharedNotebook', seqid) end + def process_sendMessageToSharedNotebookMembers(seqid, iprot, oprot) + args = read_args(iprot, SendMessageToSharedNotebookMembers_args) + result = SendMessageToSharedNotebookMembers_result.new() + begin + result.success = @handler.sendMessageToSharedNotebookMembers(args.authenticationToken, args.notebookGuid, args.messageText, args.recipients) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'sendMessageToSharedNotebookMembers', seqid) + end + def process_listSharedNotebooks(seqid, iprot, oprot) args = read_args(iprot, ListSharedNotebooks_args) result = ListSharedNotebooks_result.new() @@ -2171,6 +2498,48 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end + class GetFilteredSyncChunk_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + AFTERUSN = 2 + MAXENTRIES = 3 + FILTER = 4 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'}, + MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'}, + FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::SyncChunkFilter} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetFilteredSyncChunk_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncChunk}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class GetLinkedNotebookSyncState_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 @@ -3177,7 +3546,7 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetNoteContent_args + class GetNoteApplicationData_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 @@ -3195,7 +3564,7 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetNoteContent_result + class GetNoteApplicationData_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 @@ -3203,7 +3572,7 @@ require 'note_store_types' NOTFOUNDEXCEPTION = 3 FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LazyMap}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} @@ -3217,18 +3586,16 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetNoteSearchText_args + class GetNoteApplicationDataEntry_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - NOTEONLY = 3 - TOKENIZEFORINDEXING = 4 + KEY = 3 FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, - NOTEONLY => {:type => ::Thrift::Types::BOOL, :name => 'noteOnly'}, - TOKENIZEFORINDEXING => {:type => ::Thrift::Types::BOOL, :name => 'tokenizeForIndexing'} + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'} } def struct_fields; FIELDS; end @@ -3239,7 +3606,7 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetNoteSearchText_result + class GetNoteApplicationDataEntry_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 @@ -3261,14 +3628,18 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetResourceSearchText_args + class SetNoteApplicationDataEntry_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 + KEY = 3 + VALUE = 4 FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, - GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}, + VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'} } def struct_fields; FIELDS; end @@ -3279,7 +3650,7 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetResourceSearchText_result + class SetNoteApplicationDataEntry_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 @@ -3287,7 +3658,7 @@ require 'note_store_types' NOTFOUNDEXCEPTION = 3 FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} @@ -3301,14 +3672,16 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetNoteTagNames_args + class UnsetNoteApplicationDataEntry_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 + KEY = 3 FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, - GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'} } def struct_fields; FIELDS; end @@ -3319,7 +3692,7 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end - class GetNoteTagNames_result + class UnsetNoteApplicationDataEntry_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 @@ -3327,7 +3700,171 @@ require 'note_store_types' NOTFOUNDEXCEPTION = 3 FIELDS = { - SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}, + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteContent_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteContent_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteSearchText_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + NOTEONLY = 3 + TOKENIZEFORINDEXING = 4 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, + NOTEONLY => {:type => ::Thrift::Types::BOOL, :name => 'noteOnly'}, + TOKENIZEFORINDEXING => {:type => ::Thrift::Types::BOOL, :name => 'tokenizeForIndexing'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteSearchText_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetResourceSearchText_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetResourceSearchText_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteTagNames_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteTagNames_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} @@ -3755,6 +4292,174 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end + class GetResourceApplicationData_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetResourceApplicationData_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LazyMap}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetResourceApplicationDataEntry_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + KEY = 3 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetResourceApplicationDataEntry_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class SetResourceApplicationDataEntry_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + KEY = 3 + VALUE = 4 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}, + VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class SetResourceApplicationDataEntry_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class UnsetResourceApplicationDataEntry_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + GUID = 2 + KEY = 3 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class UnsetResourceApplicationDataEntry_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class UpdateResource_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 @@ -4193,6 +4898,50 @@ require 'note_store_types' ::Thrift::Struct.generate_accessors self end + class SendMessageToSharedNotebookMembers_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + NOTEBOOKGUID = 2 + MESSAGETEXT = 3 + RECIPIENTS = 4 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid'}, + MESSAGETEXT => {:type => ::Thrift::Types::STRING, :name => 'messageText'}, + RECIPIENTS => {:type => ::Thrift::Types::LIST, :name => 'recipients', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class SendMessageToSharedNotebookMembers_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + USEREXCEPTION = 1 + NOTFOUNDEXCEPTION = 2 + SYSTEMEXCEPTION = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, + USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class ListSharedNotebooks_args include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 diff --git a/vendor/gen-rb/evernote/edam/note_store_types.rb b/vendor/gen-rb/evernote/edam/note_store_types.rb index bbe45fc..90a6e92 100644 --- a/vendor/gen-rb/evernote/edam/note_store_types.rb +++ b/vendor/gen-rb/evernote/edam/note_store_types.rb @@ -224,6 +224,139 @@ module Evernote ::Thrift::Struct.generate_accessors self end + # This structure is used with the 'getFilteredSyncChunk' call to provide + # fine-grained control over the data that's returned when a client needs + # to synchronize with the service. Each flag in this structure specifies + # whether to include one class of data in the results of that call. + # + #
To safely add or modify your application's entry in the map, use + # NoteStore.setResourceApplicationDataEntry. To safely remove your application's + # entry from the map, use NoteStore.unsetResourceApplicationDataEntry.
+ # Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN + #Applications should set contentClass only when they are creating notes + # that contain structured information that needs to be maintained in order + # for the user to be able to use the note within that application. + # Setting contentClass makes a note read-only in other applications, so + # there is a trade-off when an application chooses to use contentClass. + # Applications that set contentClass when creating notes must use a contentClass + # string of the form CompanyName.ApplicationName to ensure uniqueness.
+ # Length restrictions: EDAM_ATTRIBUTE_LEN_MIN, EDAM_ATTRIBUTE_LEN_MAX + #To safely add or modify your application's entry in the map, use + # NoteStore.setNoteApplicationDataEntry. To safely remove your application's + # entry from the map, use NoteStore.unsetNoteApplicationDataEntry.
+ # Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN + #