From 3f8f46fc8d8aaef021d5679c90d8ec10f4129aa9 Mon Sep 17 00:00:00 2001 From: Chris Sepic Date: Sun, 23 Jan 2011 16:12:09 -0600 Subject: update vendored evernote libs to support lastest api --- VERSION | 2 +- evernote.gemspec | 26 +- vendor/gen-rb/evernote/edam/errors_types.rb | 12 +- vendor/gen-rb/evernote/edam/limits_constants.rb | 14 +- vendor/gen-rb/evernote/edam/note_store.rb | 930 ++++++++++++++++----- vendor/gen-rb/evernote/edam/note_store_types.rb | 122 ++- vendor/gen-rb/evernote/edam/types_types.rb | 146 ++-- vendor/gen-rb/evernote/edam/user_store.rb | 42 +- .../gen-rb/evernote/edam/user_store_constants.rb | 2 +- vendor/gen-rb/evernote/edam/user_store_types.rb | 8 +- 10 files changed, 963 insertions(+), 341 deletions(-) diff --git a/VERSION b/VERSION index a3df0a6..ac39a10 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8.0 +0.9.0 diff --git a/evernote.gemspec b/evernote.gemspec index e5e9694..8b7158b 100644 --- a/evernote.gemspec +++ b/evernote.gemspec @@ -1,15 +1,15 @@ # Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command +# DO NOT EDIT THIS FILE +# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec` # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{evernote} - s.version = "0.8.0" + s.version = "0.9.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Chris Sepic"] - s.date = %q{2010-03-19} + s.date = %q{2011-01-23} s.email = %q{chris.sepic@gmail.com} s.extra_rdoc_files = [ "LICENSE", @@ -28,28 +28,41 @@ Gem::Specification.new do |s| "lib/evernote/note_store.rb", "lib/evernote/user_store.rb", "spec/evernote/auth.yaml", + "spec/evernote/auth.yaml", "spec/evernote/client_spec.rb", "spec/evernote/note_store_spec.rb", "spec/evernote/user_store_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "vendor/gen-rb/evernote.rb", + "vendor/gen-rb/evernote.rb", "vendor/gen-rb/evernote/edam/errors_types.rb", + "vendor/gen-rb/evernote/edam/errors_types.rb", + "vendor/gen-rb/evernote/edam/limits_constants.rb", "vendor/gen-rb/evernote/edam/limits_constants.rb", "vendor/gen-rb/evernote/edam/limits_types.rb", + "vendor/gen-rb/evernote/edam/limits_types.rb", + "vendor/gen-rb/evernote/edam/note_store.rb", "vendor/gen-rb/evernote/edam/note_store.rb", "vendor/gen-rb/evernote/edam/note_store_constants.rb", + "vendor/gen-rb/evernote/edam/note_store_constants.rb", "vendor/gen-rb/evernote/edam/note_store_types.rb", + "vendor/gen-rb/evernote/edam/note_store_types.rb", + "vendor/gen-rb/evernote/edam/types_constants.rb", "vendor/gen-rb/evernote/edam/types_constants.rb", "vendor/gen-rb/evernote/edam/types_types.rb", + "vendor/gen-rb/evernote/edam/types_types.rb", "vendor/gen-rb/evernote/edam/user_store.rb", + "vendor/gen-rb/evernote/edam/user_store.rb", + "vendor/gen-rb/evernote/edam/user_store_constants.rb", "vendor/gen-rb/evernote/edam/user_store_constants.rb", + "vendor/gen-rb/evernote/edam/user_store_types.rb", "vendor/gen-rb/evernote/edam/user_store_types.rb" ] s.homepage = %q{http://github.com/cgs/evernote} s.rdoc_options = ["--charset=UTF-8"] s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.5} + s.rubygems_version = %q{1.3.7} s.summary = %q{High level wrapper for the Evernote API} s.test_files = [ "spec/evernote/client_spec.rb", @@ -62,7 +75,7 @@ Gem::Specification.new do |s| current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then s.add_runtime_dependency(%q, [">= 0"]) s.add_development_dependency(%q, [">= 0"]) s.add_development_dependency(%q, [">= 0"]) @@ -77,4 +90,3 @@ Gem::Specification.new do |s| s.add_dependency(%q, [">= 0"]) end end - diff --git a/vendor/gen-rb/evernote/edam/errors_types.rb b/vendor/gen-rb/evernote/edam/errors_types.rb index 1da14ac..12a9d89 100644 --- a/vendor/gen-rb/evernote/edam/errors_types.rb +++ b/vendor/gen-rb/evernote/edam/errors_types.rb @@ -41,11 +41,10 @@ module Evernote # parameter: If the error applied to a particular input parameter, this will # indicate which parameter. class EDAMUserException < ::Thrift::Exception - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ERRORCODE = 1 PARAMETER = 2 - ::Thrift::Struct.field_accessor self, :errorCode, :parameter FIELDS = { ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => Evernote::EDAM::Error::EDAMErrorCode}, PARAMETER => {:type => ::Thrift::Types::STRING, :name => 'parameter', :optional => true} @@ -60,6 +59,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # This exception is thrown by EDAM procedures when a call fails as a result of @@ -70,11 +70,10 @@ module Evernote # # message: This may contain additional information about the error class EDAMSystemException < ::Thrift::Exception - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ERRORCODE = 1 MESSAGE = 2 - ::Thrift::Struct.field_accessor self, :errorCode, :message FIELDS = { ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => Evernote::EDAM::Error::EDAMErrorCode}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true} @@ -89,6 +88,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # This exception is thrown by EDAM procedures when a caller asks to perform @@ -101,11 +101,10 @@ module Evernote # key: the value passed from the client in the identifier, which was not # found. E.g. the GUID of an object that was not found. class EDAMNotFoundException < ::Thrift::Exception - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union IDENTIFIER = 1 KEY = 2 - ::Thrift::Struct.field_accessor self, :identifier, :key FIELDS = { IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier', :optional => true}, KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :optional => true} @@ -116,6 +115,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end end diff --git a/vendor/gen-rb/evernote/edam/limits_constants.rb b/vendor/gen-rb/evernote/edam/limits_constants.rb index 24253bb..2bb52e5 100644 --- a/vendor/gen-rb/evernote/edam/limits_constants.rb +++ b/vendor/gen-rb/evernote/edam/limits_constants.rb @@ -82,6 +82,10 @@ require 'limits_types' EDAM_COMMERCE_SERVICE_TRIALPAY = %q"TrialPay" + EDAM_COMMERCE_SERVICE_TRIAL = %q"Trial" + + EDAM_COMMERCE_SERVICE_GROUP = %q"Group" + EDAM_SEARCH_QUERY_LEN_MIN = 0 EDAM_SEARCH_QUERY_LEN_MAX = 1024 @@ -124,6 +128,12 @@ require 'limits_types' EDAM_NOTEBOOK_NAME_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$" + EDAM_NOTEBOOK_STACK_LEN_MIN = 1 + + EDAM_NOTEBOOK_STACK_LEN_MAX = 100 + + EDAM_NOTEBOOK_STACK_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$" + EDAM_PUBLISHING_URI_LEN_MIN = 1 EDAM_PUBLISHING_URI_LEN_MAX = 255 @@ -162,7 +172,7 @@ require 'limits_types' EDAM_USER_NOTES_MAX = 100000 - EDAM_USER_NOTEBOOKS_MAX = 100 + EDAM_USER_NOTEBOOKS_MAX = 250 EDAM_USER_RECENT_MAILED_ADDRESSES_MAX = 10 @@ -180,7 +190,7 @@ require 'limits_types' EDAM_USER_LINKED_NOTEBOOK_MAX = 100 - EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 100 + EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250 end end diff --git a/vendor/gen-rb/evernote/edam/note_store.rb b/vendor/gen-rb/evernote/edam/note_store.rb index 4540e94..6742359 100644 --- a/vendor/gen-rb/evernote/edam/note_store.rb +++ b/vendor/gen-rb/evernote/edam/note_store.rb @@ -48,6 +48,42 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncChunk failed: unknown result') end + def getLinkedNotebookSyncState(authenticationToken, linkedNotebook) + send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook) + return recv_getLinkedNotebookSyncState() + end + + def send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook) + send_message('getLinkedNotebookSyncState', GetLinkedNotebookSyncState_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook) + end + + def recv_getLinkedNotebookSyncState() + result = receive_message(GetLinkedNotebookSyncState_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, 'getLinkedNotebookSyncState failed: unknown result') + end + + def getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly) + send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly) + return recv_getLinkedNotebookSyncChunk() + end + + def send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly) + send_message('getLinkedNotebookSyncChunk', GetLinkedNotebookSyncChunk_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook, :afterUSN => afterUSN, :maxEntries => maxEntries, :fullSyncOnly => fullSyncOnly) + end + + def recv_getLinkedNotebookSyncChunk() + result = receive_message(GetLinkedNotebookSyncChunk_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, 'getLinkedNotebookSyncChunk failed: unknown result') + end + def listNotebooks(authenticationToken) send_listNotebooks(authenticationToken) return recv_listNotebooks() @@ -379,6 +415,7 @@ require 'note_store_types' 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, 'findNotes failed: unknown result') end @@ -396,6 +433,7 @@ require 'note_store_types' 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, 'findNoteCounts failed: unknown result') end @@ -435,13 +473,13 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteContent failed: unknown result') end - def getNoteSearchText(authenticationToken, guid) - send_getNoteSearchText(authenticationToken, guid) + def getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing) + send_getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing) return recv_getNoteSearchText() end - def send_getNoteSearchText(authenticationToken, guid) - send_message('getNoteSearchText', GetNoteSearchText_args, :authenticationToken => authenticationToken, :guid => guid) + def send_getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing) + send_message('getNoteSearchText', GetNoteSearchText_args, :authenticationToken => authenticationToken, :guid => guid, :noteOnly => noteOnly, :tokenizeForIndexing => tokenizeForIndexing) end def recv_getNoteSearchText() @@ -453,6 +491,24 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteSearchText failed: unknown result') end + def getResourceSearchText(authenticationToken, guid) + send_getResourceSearchText(authenticationToken, guid) + return recv_getResourceSearchText() + end + + def send_getResourceSearchText(authenticationToken, guid) + send_message('getResourceSearchText', GetResourceSearchText_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getResourceSearchText() + result = receive_message(GetResourceSearchText_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, 'getResourceSearchText failed: unknown result') + end + def getNoteTagNames(authenticationToken, guid) send_getNoteTagNames(authenticationToken, guid) return recv_getNoteTagNames() @@ -507,6 +563,24 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateNote failed: unknown result') end + def deleteNote(authenticationToken, guid) + send_deleteNote(authenticationToken, guid) + return recv_deleteNote() + end + + def send_deleteNote(authenticationToken, guid) + send_message('deleteNote', DeleteNote_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_deleteNote() + result = receive_message(DeleteNote_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, 'deleteNote failed: unknown result') + end + def expungeNote(authenticationToken, guid) send_expungeNote(authenticationToken, guid) return recv_expungeNote() @@ -578,6 +652,42 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'copyNote failed: unknown result') end + def listNoteVersions(authenticationToken, noteGuid) + send_listNoteVersions(authenticationToken, noteGuid) + return recv_listNoteVersions() + end + + def send_listNoteVersions(authenticationToken, noteGuid) + send_message('listNoteVersions', ListNoteVersions_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid) + end + + def recv_listNoteVersions() + result = receive_message(ListNoteVersions_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, 'listNoteVersions failed: unknown result') + end + + def getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData) + send_getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData) + return recv_getNoteVersion() + end + + def send_getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData) + send_message('getNoteVersion', GetNoteVersion_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid, :updateSequenceNum => updateSequenceNum, :withResourcesData => withResourcesData, :withResourcesRecognition => withResourcesRecognition, :withResourcesAlternateData => withResourcesAlternateData) + end + + def recv_getNoteVersion() + result = receive_message(GetNoteVersion_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, 'getNoteVersion failed: unknown result') + end + def getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData) send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData) return recv_getResource() @@ -880,13 +990,13 @@ require 'note_store_types' raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listLinkedNotebooks failed: unknown result') end - def expungeLinkedNotebook(authenticationToken, linkedNotebookId) - send_expungeLinkedNotebook(authenticationToken, linkedNotebookId) + def expungeLinkedNotebook(authenticationToken, guid) + send_expungeLinkedNotebook(authenticationToken, guid) return recv_expungeLinkedNotebook() end - def send_expungeLinkedNotebook(authenticationToken, linkedNotebookId) - send_message('expungeLinkedNotebook', ExpungeLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebookId => linkedNotebookId) + def send_expungeLinkedNotebook(authenticationToken, guid) + send_message('expungeLinkedNotebook', ExpungeLinkedNotebook_args, :authenticationToken => authenticationToken, :guid => guid) end def recv_expungeLinkedNotebook() @@ -982,6 +1092,36 @@ require 'note_store_types' write_result(result, oprot, 'getSyncChunk', seqid) end + def process_getLinkedNotebookSyncState(seqid, iprot, oprot) + args = read_args(iprot, GetLinkedNotebookSyncState_args) + result = GetLinkedNotebookSyncState_result.new() + begin + result.success = @handler.getLinkedNotebookSyncState(args.authenticationToken, args.linkedNotebook) + 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, 'getLinkedNotebookSyncState', seqid) + end + + def process_getLinkedNotebookSyncChunk(seqid, iprot, oprot) + args = read_args(iprot, GetLinkedNotebookSyncChunk_args) + result = GetLinkedNotebookSyncChunk_result.new() + begin + result.success = @handler.getLinkedNotebookSyncChunk(args.authenticationToken, args.linkedNotebook, args.afterUSN, args.maxEntries, args.fullSyncOnly) + 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, 'getLinkedNotebookSyncChunk', seqid) + end + def process_listNotebooks(seqid, iprot, oprot) args = read_args(iprot, ListNotebooks_args) result = ListNotebooks_result.new() @@ -1249,6 +1389,8 @@ require 'note_store_types' 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, 'findNotes', seqid) end @@ -1262,6 +1404,8 @@ require 'note_store_types' 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, 'findNoteCounts', seqid) end @@ -1300,7 +1444,7 @@ require 'note_store_types' args = read_args(iprot, GetNoteSearchText_args) result = GetNoteSearchText_result.new() begin - result.success = @handler.getNoteSearchText(args.authenticationToken, args.guid) + result.success = @handler.getNoteSearchText(args.authenticationToken, args.guid, args.noteOnly, args.tokenizeForIndexing) rescue Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue Evernote::EDAM::Error::EDAMSystemException => systemException @@ -1311,6 +1455,21 @@ require 'note_store_types' write_result(result, oprot, 'getNoteSearchText', seqid) end + def process_getResourceSearchText(seqid, iprot, oprot) + args = read_args(iprot, GetResourceSearchText_args) + result = GetResourceSearchText_result.new() + begin + result.success = @handler.getResourceSearchText(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, 'getResourceSearchText', seqid) + end + def process_getNoteTagNames(seqid, iprot, oprot) args = read_args(iprot, GetNoteTagNames_args) result = GetNoteTagNames_result.new() @@ -1356,6 +1515,21 @@ require 'note_store_types' write_result(result, oprot, 'updateNote', seqid) end + def process_deleteNote(seqid, iprot, oprot) + args = read_args(iprot, DeleteNote_args) + result = DeleteNote_result.new() + begin + result.success = @handler.deleteNote(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, 'deleteNote', seqid) + end + def process_expungeNote(seqid, iprot, oprot) args = read_args(iprot, ExpungeNote_args) result = ExpungeNote_result.new() @@ -1414,6 +1588,36 @@ require 'note_store_types' write_result(result, oprot, 'copyNote', seqid) end + def process_listNoteVersions(seqid, iprot, oprot) + args = read_args(iprot, ListNoteVersions_args) + result = ListNoteVersions_result.new() + begin + result.success = @handler.listNoteVersions(args.authenticationToken, args.noteGuid) + 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, 'listNoteVersions', seqid) + end + + def process_getNoteVersion(seqid, iprot, oprot) + args = read_args(iprot, GetNoteVersion_args) + result = GetNoteVersion_result.new() + begin + result.success = @handler.getNoteVersion(args.authenticationToken, args.noteGuid, args.updateSequenceNum, args.withResourcesData, args.withResourcesRecognition, args.withResourcesAlternateData) + 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, 'getNoteVersion', seqid) + end + def process_getResource(seqid, iprot, oprot) args = read_args(iprot, GetResource_args) result = GetResource_result.new() @@ -1665,7 +1869,7 @@ require 'note_store_types' args = read_args(iprot, ExpungeLinkedNotebook_args) result = ExpungeLinkedNotebook_result.new() begin - result.success = @handler.expungeLinkedNotebook(args.authenticationToken, args.linkedNotebookId) + result.success = @handler.expungeLinkedNotebook(args.authenticationToken, args.guid) rescue Evernote::EDAM::Error::EDAMUserException => userException result.userException = userException rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException @@ -1726,10 +1930,9 @@ require 'note_store_types' # HELPER FUNCTIONS AND STRUCTURES class GetSyncState_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -1739,15 +1942,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSyncState_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncState}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -1759,16 +1962,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSyncChunk_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 AFTERUSN = 2 MAXENTRIES = 3 FULLSYNCONLY = 4 - ::Thrift::Struct.field_accessor self, :authenticationToken, :afterUSN, :maxEntries, :fullSyncOnly FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'}, @@ -1781,15 +1984,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSyncChunk_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException 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}, @@ -1801,13 +2004,99 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self + end + + class GetLinkedNotebookSyncState_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + LINKEDNOTEBOOK = 2 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetLinkedNotebookSyncState_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::NoteStore::SyncState}, + 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 GetLinkedNotebookSyncChunk_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + LINKEDNOTEBOOK = 2 + AFTERUSN = 3 + MAXENTRIES = 4 + FULLSYNCONLY = 5 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook}, + AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'}, + MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'}, + FULLSYNCONLY => {:type => ::Thrift::Types::BOOL, :name => 'fullSyncOnly'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetLinkedNotebookSyncChunk_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::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}, + 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 ListNotebooks_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -1817,15 +2106,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListNotebooks_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Notebook}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -1837,14 +2126,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -1855,16 +2144,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -1877,13 +2166,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetDefaultNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -1893,15 +2182,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetDefaultNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -1913,14 +2202,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTEBOOK = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :notebook FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'notebook', :class => Evernote::EDAM::Type::Notebook} @@ -1931,15 +2220,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -1951,14 +2240,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTEBOOK = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :notebook FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'notebook', :class => Evernote::EDAM::Type::Notebook} @@ -1969,16 +2258,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -1991,14 +2280,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2009,16 +2298,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2031,13 +2320,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListTags_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -2047,15 +2336,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListTags_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2067,14 +2356,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListTagsByNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTEBOOKGUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :notebookGuid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid'} @@ -2085,16 +2374,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListTagsByNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2107,14 +2396,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetTag_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2125,16 +2414,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetTag_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Tag}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2147,14 +2436,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateTag_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 TAG = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :tag FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, TAG => {:type => ::Thrift::Types::STRUCT, :name => 'tag', :class => Evernote::EDAM::Type::Tag} @@ -2165,16 +2454,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateTag_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Tag}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2187,14 +2476,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateTag_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 TAG = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :tag FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, TAG => {:type => ::Thrift::Types::STRUCT, :name => 'tag', :class => Evernote::EDAM::Type::Tag} @@ -2205,16 +2494,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateTag_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2227,14 +2516,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UntagAll_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2245,15 +2534,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UntagAll_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :userException, :systemException, :notFoundException FIELDS = { USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, @@ -2265,14 +2554,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeTag_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2283,16 +2572,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeTag_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2305,13 +2594,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListSearches_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -2321,15 +2610,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListSearches_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SavedSearch}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2341,14 +2630,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSearch_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2359,16 +2648,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSearch_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SavedSearch}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2381,14 +2670,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateSearch_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 SEARCH = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :search FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, SEARCH => {:type => ::Thrift::Types::STRUCT, :name => 'search', :class => Evernote::EDAM::Type::SavedSearch} @@ -2399,15 +2688,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateSearch_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SavedSearch}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2419,14 +2708,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateSearch_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 SEARCH = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :search FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, SEARCH => {:type => ::Thrift::Types::STRUCT, :name => 'search', :class => Evernote::EDAM::Type::SavedSearch} @@ -2437,16 +2726,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateSearch_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2459,14 +2748,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeSearch_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2477,16 +2766,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeSearch_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2499,16 +2788,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class FindNotes_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 FILTER = 2 OFFSET = 3 MAXNOTES = 4 - ::Thrift::Struct.field_accessor self, :authenticationToken, :filter, :offset, :maxNotes FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter}, @@ -2521,19 +2810,21 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class FindNotes_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NoteList}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, - SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + 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 @@ -2541,15 +2832,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class FindNoteCounts_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 FILTER = 2 WITHTRASH = 3 - ::Thrift::Struct.field_accessor self, :authenticationToken, :filter, :withTrash FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter}, @@ -2561,19 +2852,21 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class FindNoteCounts_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 + NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NoteCollectionCounts}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, - SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + 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 @@ -2581,10 +2874,11 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNote_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 WITHCONTENT = 3 @@ -2592,7 +2886,6 @@ require 'note_store_types' WITHRESOURCESRECOGNITION = 5 WITHRESOURCESALTERNATEDATA = 6 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid, :withContent, :withResourcesData, :withResourcesRecognition, :withResourcesAlternateData FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, @@ -2607,16 +2900,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNote_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2629,14 +2922,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNoteContent_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2647,16 +2940,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNoteContent_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2669,17 +2962,21 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNoteSearchText_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 + NOTEONLY = 3 + TOKENIZEFORINDEXING = 4 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, - GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} + 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 @@ -2687,16 +2984,56 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNoteSearchText_result - include ::Thrift::Struct + 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 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2709,14 +3046,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNoteTagNames_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2727,16 +3064,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetNoteTagNames_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException 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}, @@ -2749,14 +3086,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateNote_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTE = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :note FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note} @@ -2767,16 +3104,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateNote_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2789,14 +3126,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateNote_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTE = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :note FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note} @@ -2807,16 +3144,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateNote_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2829,14 +3166,54 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self + end + + class DeleteNote_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 DeleteNote_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 ExpungeNote_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -2847,16 +3224,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeNote_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2869,14 +3246,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeNotes_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTEGUIDS = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuids FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTEGUIDS => {:type => ::Thrift::Types::LIST, :name => 'noteGuids', :element => {:type => ::Thrift::Types::STRING}} @@ -2887,16 +3264,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeNotes_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2909,13 +3286,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeInactiveNotes_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -2925,15 +3302,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeInactiveNotes_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2945,15 +3322,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CopyNote_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTEGUID = 2 TONOTEBOOKGUID = 3 - ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuid, :toNotebookGuid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'}, @@ -2965,16 +3342,104 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CopyNote_result - include ::Thrift::Struct + 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::Note}, + 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 ListNoteVersions_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + NOTEGUID = 2 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class ListNoteVersions_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::STRUCT, :class => Evernote::EDAM::NoteStore::NoteVersionId}}, + 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 GetNoteVersion_args + include ::Thrift::Struct, ::Thrift::Struct_Union + AUTHENTICATIONTOKEN = 1 + NOTEGUID = 2 + UPDATESEQUENCENUM = 3 + WITHRESOURCESDATA = 4 + WITHRESOURCESRECOGNITION = 5 + WITHRESOURCESALTERNATEDATA = 6 + + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'}, + UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum'}, + WITHRESOURCESDATA => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesData'}, + WITHRESOURCESRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesRecognition'}, + WITHRESOURCESALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesAlternateData'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class GetNoteVersion_result + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -2987,10 +3452,11 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResource_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 WITHDATA = 3 @@ -2998,7 +3464,6 @@ require 'note_store_types' WITHATTRIBUTES = 5 WITHALTERNATEDATA = 6 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid, :withData, :withRecognition, :withAttributes, :withAlternateData FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, @@ -3013,16 +3478,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResource_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Resource}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3035,14 +3500,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateResource_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 RESOURCE = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :resource FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, RESOURCE => {:type => ::Thrift::Types::STRUCT, :name => 'resource', :class => Evernote::EDAM::Type::Resource} @@ -3053,16 +3518,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateResource_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3075,14 +3540,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceData_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -3093,18 +3558,18 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceData_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true}, 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} @@ -3115,10 +3580,11 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceByHash_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 NOTEGUID = 2 CONTENTHASH = 3 @@ -3126,11 +3592,10 @@ require 'note_store_types' WITHRECOGNITION = 5 WITHALTERNATEDATA = 6 - ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuid, :contentHash, :withData, :withRecognition, :withAlternateData FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'}, - CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash'}, + CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash', :binary => true}, WITHDATA => {:type => ::Thrift::Types::BOOL, :name => 'withData'}, WITHRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withRecognition'}, WITHALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withAlternateData'} @@ -3141,16 +3606,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceByHash_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Resource}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3163,14 +3628,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceRecognition_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -3181,18 +3646,18 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceRecognition_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true}, 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} @@ -3203,14 +3668,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceAlternateData_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -3221,18 +3686,18 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceAlternateData_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true}, 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} @@ -3243,14 +3708,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceAttributes_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :guid FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} @@ -3261,16 +3726,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetResourceAttributes_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 NOTFOUNDEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::ResourceAttributes}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3283,13 +3748,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetAccountSize_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -3299,15 +3764,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetAccountSize_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3319,14 +3784,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetAds_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 ADPARAMETERS = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :adParameters FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, ADPARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'adParameters', :class => Evernote::EDAM::NoteStore::AdParameters} @@ -3337,15 +3802,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetAds_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Ad}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3357,14 +3822,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetRandomAd_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 ADPARAMETERS = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :adParameters FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, ADPARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'adParameters', :class => Evernote::EDAM::NoteStore::AdParameters} @@ -3375,15 +3840,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetRandomAd_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Ad}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3395,14 +3860,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetPublicNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union USERID = 1 PUBLICURI = 2 - ::Thrift::Struct.field_accessor self, :userId, :publicUri FIELDS = { USERID => {:type => ::Thrift::Types::I32, :name => 'userId'}, PUBLICURI => {:type => ::Thrift::Types::STRING, :name => 'publicUri'} @@ -3413,15 +3878,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetPublicNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 SYSTEMEXCEPTION = 1 NOTFOUNDEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :systemException, :notFoundException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook}, SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, @@ -3433,14 +3898,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateSharedNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 SHAREDNOTEBOOK = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :sharedNotebook FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, SHAREDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'sharedNotebook', :class => Evernote::EDAM::Type::SharedNotebook} @@ -3451,16 +3916,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateSharedNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SharedNotebook}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3473,13 +3938,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListSharedNotebooks_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -3489,16 +3954,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListSharedNotebooks_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SharedNotebook}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3511,14 +3976,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeSharedNotebooks_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 SHAREDNOTEBOOKIDS = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :sharedNotebookIds FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}} @@ -3529,16 +3994,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeSharedNotebooks_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3551,14 +4016,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateLinkedNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 LINKEDNOTEBOOK = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebook FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook} @@ -3569,16 +4034,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CreateLinkedNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LinkedNotebook}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3591,14 +4056,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateLinkedNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 LINKEDNOTEBOOK = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebook FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook} @@ -3609,18 +4074,18 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class UpdateLinkedNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LinkedNotebook}, + 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} @@ -3631,13 +4096,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListLinkedNotebooks_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -3647,16 +4112,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ListLinkedNotebooks_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::LinkedNotebook}}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3669,17 +4134,17 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeLinkedNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - LINKEDNOTEBOOKID = 2 + GUID = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebookId FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, - LINKEDNOTEBOOKID => {:type => ::Thrift::Types::I64, :name => 'linkedNotebookId'} + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} } def struct_fields; FIELDS; end @@ -3687,16 +4152,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class ExpungeLinkedNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3709,14 +4174,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class AuthenticateToSharedNotebook_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SHAREKEY = 1 AUTHENTICATIONTOKEN = 2 - ::Thrift::Struct.field_accessor self, :shareKey, :authenticationToken FIELDS = { SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey'}, AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} @@ -3727,16 +4192,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class AuthenticateToSharedNotebook_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3749,13 +4214,13 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSharedNotebookByAuth_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -3765,16 +4230,16 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetSharedNotebookByAuth_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SharedNotebook}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -3787,14 +4252,14 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class EmailNote_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 PARAMETERS = 2 - ::Thrift::Struct.field_accessor self, :authenticationToken, :parameters FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, PARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'parameters', :class => Evernote::EDAM::NoteStore::NoteEmailParameters} @@ -3805,15 +4270,15 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class EmailNote_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union USEREXCEPTION = 1 NOTFOUNDEXCEPTION = 2 SYSTEMEXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :userException, :notFoundException, :systemException FIELDS = { USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}, @@ -3825,6 +4290,7 @@ require 'note_store_types' def validate end + ::Thrift::Struct.generate_accessors self end end diff --git a/vendor/gen-rb/evernote/edam/note_store_types.rb b/vendor/gen-rb/evernote/edam/note_store_types.rb index 7fdf61c..9a98b8a 100644 --- a/vendor/gen-rb/evernote/edam/note_store_types.rb +++ b/vendor/gen-rb/evernote/edam/note_store_types.rb @@ -46,16 +46,17 @@ module Evernote # this account in the current monthly period. This can be compared against # Accounting.uploadLimit (from the UserStore) to determine how close the user # is to their monthly upload limit. + # This value may not be present if the SyncState has been retrieved by + # a caller that only has read access to the account. # # class SyncState - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union CURRENTTIME = 1 FULLSYNCBEFORE = 2 UPDATECOUNT = 3 UPLOADED = 4 - ::Thrift::Struct.field_accessor self, :currentTime, :fullSyncBefore, :updateCount, :uploaded FIELDS = { CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'}, FULLSYNCBEFORE => {:type => ::Thrift::Types::I64, :name => 'fullSyncBefore'}, @@ -71,6 +72,7 @@ module Evernote raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount end + ::Thrift::Struct.generate_accessors self end # This structure is given out by the NoteStore when a client asks to @@ -165,9 +167,21 @@ module Evernote # If present, the GUIDs of all of the saved searches # that were permanently expunged in this chunk. # + # + #
linkedNotebooks
+ #
+ # If present, this is a list of non-expunged LinkedNotebooks that + # have a USN in this chunk. + #
+ # + #
expungedLinkedNotebooks
+ #
+ # If present, the GUIDs of all of the LinkedNotebooks + # that were permanently expunged in this chunk. + #
# class SyncChunk - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union CURRENTTIME = 1 CHUNKHIGHUSN = 2 UPDATECOUNT = 3 @@ -180,8 +194,9 @@ module Evernote EXPUNGEDNOTEBOOKS = 10 EXPUNGEDTAGS = 11 EXPUNGEDSEARCHES = 12 + LINKEDNOTEBOOKS = 13 + EXPUNGEDLINKEDNOTEBOOKS = 14 - ::Thrift::Struct.field_accessor self, :currentTime, :chunkHighUSN, :updateCount, :notes, :notebooks, :tags, :searches, :resources, :expungedNotes, :expungedNotebooks, :expungedTags, :expungedSearches FIELDS = { CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'}, CHUNKHIGHUSN => {:type => ::Thrift::Types::I32, :name => 'chunkHighUSN', :optional => true}, @@ -194,7 +209,9 @@ module Evernote EXPUNGEDNOTES => {:type => ::Thrift::Types::LIST, :name => 'expungedNotes', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, EXPUNGEDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'expungedNotebooks', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, EXPUNGEDTAGS => {:type => ::Thrift::Types::LIST, :name => 'expungedTags', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, - EXPUNGEDSEARCHES => {:type => ::Thrift::Types::LIST, :name => 'expungedSearches', :element => {:type => ::Thrift::Types::STRING}, :optional => true} + EXPUNGEDSEARCHES => {:type => ::Thrift::Types::LIST, :name => 'expungedSearches', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + LINKEDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'linkedNotebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::LinkedNotebook}, :optional => true}, + EXPUNGEDLINKEDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'expungedLinkedNotebooks', :element => {:type => ::Thrift::Types::STRING}, :optional => true} } def struct_fields; FIELDS; end @@ -204,6 +221,7 @@ module Evernote raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount end + ::Thrift::Struct.generate_accessors self end # A list of criteria that are used to indicate which notes are desired from @@ -259,7 +277,7 @@ module Evernote # # class NoteFilter - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ORDER = 1 ASCENDING = 2 WORDS = 3 @@ -268,7 +286,6 @@ module Evernote TIMEZONE = 6 INACTIVE = 7 - ::Thrift::Struct.field_accessor self, :order, :ascending, :words, :notebookGuid, :tagGuids, :timeZone, :inactive FIELDS = { ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :optional => true}, ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :optional => true}, @@ -284,6 +301,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # A small structure for returning a list of notes out of a larger set. @@ -323,22 +341,33 @@ module Evernote # include a list of those words. Any stopped words will not be included # in this list. # + # + #
updateCount
+ #
+ # Indicates the total number of transactions that have + # been committed within the account. This reflects (for example) the + # number of discrete additions or modifications that have been made to + # the data in this account (tags, notes, resources, etc.). + # This number is the "high water mark" for Update Sequence Numbers (USN) + # within the account. + #
# class NoteList - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union STARTINDEX = 1 TOTALNOTES = 2 NOTES = 3 STOPPEDWORDS = 4 SEARCHEDWORDS = 5 + UPDATECOUNT = 6 - ::Thrift::Struct.field_accessor self, :startIndex, :totalNotes, :notes, :stoppedWords, :searchedWords FIELDS = { STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'}, TOTALNOTES => {:type => ::Thrift::Types::I32, :name => 'totalNotes'}, NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Note}}, STOPPEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'stoppedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, - SEARCHEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'searchedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true} + SEARCHEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'searchedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount', :optional => true} } def struct_fields; FIELDS; end @@ -349,6 +378,7 @@ module Evernote raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field notes is unset!') unless @notes end + ::Thrift::Struct.generate_accessors self end # A data structure representing the number of notes for each notebook @@ -376,12 +406,11 @@ module Evernote # # class NoteCollectionCounts - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union NOTEBOOKCOUNTS = 1 TAGCOUNTS = 2 TRASHCOUNT = 3 - ::Thrift::Struct.field_accessor self, :notebookCounts, :tagCounts, :trashCount FIELDS = { NOTEBOOKCOUNTS => {:type => ::Thrift::Types::MAP, :name => 'notebookCounts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true}, TAGCOUNTS => {:type => ::Thrift::Types::MAP, :name => 'tagCounts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true}, @@ -393,6 +422,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # Information for tracking the display of a particular ad by a client. @@ -418,12 +448,11 @@ module Evernote # # class AdImpressions - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ADID = 1 IMPRESSIONCOUNT = 2 IMPRESSIONTIME = 3 - ::Thrift::Struct.field_accessor self, :adId, :impressionCount, :impressionTime FIELDS = { ADID => {:type => ::Thrift::Types::I32, :name => 'adId'}, IMPRESSIONCOUNT => {:type => ::Thrift::Types::I32, :name => 'impressionCount'}, @@ -438,6 +467,7 @@ module Evernote raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field impressionTime is unset!') unless @impressionTime end + ::Thrift::Struct.generate_accessors self end # Parameters that will be given by a client to the service when it requests @@ -473,13 +503,12 @@ module Evernote # # class AdParameters - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union CLIENTLANGUAGE = 2 IMPRESSIONS = 4 SUPPORTHTML = 5 CLIENTPROPERTIES = 6 - ::Thrift::Struct.field_accessor self, :clientLanguage, :impressions, :supportHtml, :clientProperties FIELDS = { CLIENTLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'clientLanguage', :optional => true}, IMPRESSIONS => {:type => ::Thrift::Types::LIST, :name => 'impressions', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::NoteStore::AdImpressions}, :optional => true}, @@ -492,6 +521,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # Parameters that must be given to the NoteStore emailNote call. These allow @@ -541,7 +571,7 @@ module Evernote # # class NoteEmailParameters - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union GUID = 1 NOTE = 2 TOADDRESSES = 3 @@ -549,7 +579,6 @@ module Evernote SUBJECT = 5 MESSAGE = 6 - ::Thrift::Struct.field_accessor self, :guid, :note, :toAddresses, :ccAddresses, :subject, :message FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note, :optional => true}, @@ -564,6 +593,63 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self + end + + # Identfying information about previous versions of a note that are backed up + # within Evernote's servers. Used in the return value of the listNoteVersions + # call. + # + #
+ #
updateSequenceNum
+ #
+ # The update sequence number for the Note when it last had this content. + # This serves to uniquely identify each version of the note, since USN + # values are unique within an account for each update. + #
+ #
updated
+ #
+ # The 'updated' time that was set on the Note when it had this version + # of the content. This is the user-modifiable modification time on the + # note, so it's not reliable for guaranteeing the order of various + # versions. (E.g. if someone modifies the note, then changes this time + # manually into the past and then updates the note again.) + #
+ #
saved
+ #
+ # A timestamp that holds the date and time when this version of the note + # was backed up by Evernote's servers. This + #
+ #
title
+ #
+ # The title of the note when this particular verison was saved. (The + # current title of the note may differ from this value.) + #
+ #
+ class NoteVersionId + include ::Thrift::Struct, ::Thrift::Struct_Union + UPDATESEQUENCENUM = 1 + UPDATED = 2 + SAVED = 3 + TITLE = 4 + + FIELDS = { + UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum'}, + UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated'}, + SAVED => {:type => ::Thrift::Types::I64, :name => 'saved'}, + TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateSequenceNum is unset!') unless @updateSequenceNum + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updated is unset!') unless @updated + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field saved is unset!') unless @saved + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title + end + + ::Thrift::Struct.generate_accessors self end end diff --git a/vendor/gen-rb/evernote/edam/types_types.rb b/vendor/gen-rb/evernote/edam/types_types.rb index ba3ef1e..04c0d63 100644 --- a/vendor/gen-rb/evernote/edam/types_types.rb +++ b/vendor/gen-rb/evernote/edam/types_types.rb @@ -32,8 +32,9 @@ module Evernote UPDATED = 2 RELEVANCE = 3 UPDATE_SEQUENCE_NUMBER = 4 - VALUE_MAP = {1 => "CREATED", 2 => "UPDATED", 3 => "RELEVANCE", 4 => "UPDATE_SEQUENCE_NUMBER"} - VALID_VALUES = Set.new([CREATED, UPDATED, RELEVANCE, UPDATE_SEQUENCE_NUMBER]).freeze + TITLE = 5 + VALUE_MAP = {1 => "CREATED", 2 => "UPDATED", 3 => "RELEVANCE", 4 => "UPDATE_SEQUENCE_NUMBER", 5 => "TITLE"} + VALID_VALUES = Set.new([CREATED, UPDATED, RELEVANCE, UPDATE_SEQUENCE_NUMBER, TITLE]).freeze end module PremiumOrderStatus @@ -74,16 +75,15 @@ module Evernote # # class Data - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union BODYHASH = 1 SIZE = 2 BODY = 3 - ::Thrift::Struct.field_accessor self, :bodyHash, :size, :body FIELDS = { - BODYHASH => {:type => ::Thrift::Types::STRING, :name => 'bodyHash', :optional => true}, + BODYHASH => {:type => ::Thrift::Types::STRING, :name => 'bodyHash', :binary => true, :optional => true}, SIZE => {:type => ::Thrift::Types::I32, :name => 'size', :optional => true}, - BODY => {:type => ::Thrift::Types::STRING, :name => 'body', :optional => true} + BODY => {:type => ::Thrift::Types::STRING, :name => 'body', :binary => true, :optional => true} } def struct_fields; FIELDS; end @@ -91,6 +91,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # A structure holding the optional attributes that can be stored @@ -246,8 +247,14 @@ module Evernote # # # + #
educationalInstitution
+ #
a flag indicating that the user is part of an educational institution which + # makes them eligible for discounts on bulk purchases + #
+ # + # class UserAttributes - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union DEFAULTLOCATIONNAME = 1 DEFAULTLATITUDE = 2 DEFAULTLONGITUDE = 3 @@ -273,8 +280,9 @@ module Evernote GROUPNAME = 25 RECOGNITIONLANGUAGE = 26 CUSTOMERPROFILEID = 27 + REFERRALPROOF = 28 + EDUCATIONALDISCOUNT = 29 - ::Thrift::Struct.field_accessor self, :defaultLocationName, :defaultLatitude, :defaultLongitude, :preactivation, :viewedPromotions, :incomingEmailAddress, :recentMailedAddresses, :comments, :dateAgreedToTermsOfService, :maxReferrals, :referralCount, :refererCode, :sentEmailDate, :sentEmailCount, :dailyEmailLimit, :emailOptOutDate, :partnerEmailOptInDate, :preferredLanguage, :preferredCountry, :clipFullPage, :twitterUserName, :twitterId, :groupName, :recognitionLanguage, :customerProfileId FIELDS = { DEFAULTLOCATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultLocationName', :optional => true}, DEFAULTLATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'defaultLatitude', :optional => true}, @@ -300,7 +308,9 @@ module Evernote TWITTERID => {:type => ::Thrift::Types::STRING, :name => 'twitterId', :optional => true}, GROUPNAME => {:type => ::Thrift::Types::STRING, :name => 'groupName', :optional => true}, RECOGNITIONLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'recognitionLanguage', :optional => true}, - CUSTOMERPROFILEID => {:type => ::Thrift::Types::I64, :name => 'customerProfileId', :optional => true} + CUSTOMERPROFILEID => {:type => ::Thrift::Types::I64, :name => 'customerProfileId', :optional => true}, + REFERRALPROOF => {:type => ::Thrift::Types::STRING, :name => 'referralProof', :optional => true}, + EDUCATIONALDISCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'educationalDiscount', :optional => true} } def struct_fields; FIELDS; end @@ -308,6 +318,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # This represents the bookkeeping information for the user's subscription. @@ -328,7 +339,7 @@ module Evernote # the start of the new month. # #
uploadLimitNextMonth
- #
When uploadLimitEnd is research the service + #
When uploadLimitEnd is reached, the service # will change uploadLimit to uploadLimitNextMonth. If a premium account is # canceled, this mechanism will reset the quota appropriately. #
@@ -381,7 +392,7 @@ module Evernote # # class Accounting - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union UPLOADLIMIT = 1 UPLOADLIMITEND = 2 UPLOADLIMITNEXTMONTH = 3 @@ -399,7 +410,6 @@ module Evernote PREMIUMSUBSCRIPTIONNUMBER = 16 LASTREQUESTEDCHARGE = 17 - ::Thrift::Struct.field_accessor self, :uploadLimit, :uploadLimitEnd, :uploadLimitNextMonth, :premiumServiceStatus, :premiumOrderNumber, :premiumCommerceService, :premiumServiceStart, :premiumServiceSKU, :lastSuccessfulCharge, :lastFailedCharge, :lastFailedChargeReason, :nextPaymentDue, :premiumLockUntil, :updated, :premiumSubscriptionNumber, :lastRequestedCharge FIELDS = { UPLOADLIMIT => {:type => ::Thrift::Types::I64, :name => 'uploadLimit', :optional => true}, UPLOADLIMITEND => {:type => ::Thrift::Types::I64, :name => 'uploadLimitEnd', :optional => true}, @@ -427,6 +437,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # This represents the information about a single user account. @@ -522,7 +533,7 @@ module Evernote # # class User - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ID = 1 USERNAME = 2 EMAIL = 3 @@ -537,7 +548,6 @@ module Evernote ATTRIBUTES = 15 ACCOUNTING = 16 - ::Thrift::Struct.field_accessor self, :id, :username, :email, :name, :timezone, :privilege, :created, :updated, :deleted, :active, :shardId, :attributes, :accounting FIELDS = { ID => {:type => ::Thrift::Types::I32, :name => 'id', :optional => true}, USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true}, @@ -562,6 +572,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # A tag within a user's account is a unique name which may be organized @@ -609,13 +620,12 @@ module Evernote # # class Tag - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union GUID = 1 NAME = 2 PARENTGUID = 3 UPDATESEQUENCENUM = 4 - ::Thrift::Struct.field_accessor self, :guid, :name, :parentGuid, :updateSequenceNum FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, @@ -628,6 +638,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # Structure holding the optional attributes of a Resource @@ -693,7 +704,7 @@ module Evernote # # class ResourceAttributes - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SOURCEURL = 1 TIMESTAMP = 2 LATITUDE = 3 @@ -706,7 +717,6 @@ module Evernote FILENAME = 10 ATTACHMENT = 11 - ::Thrift::Struct.field_accessor self, :sourceURL, :timestamp, :latitude, :longitude, :altitude, :cameraMake, :cameraModel, :clientWillIndex, :recoType, :fileName, :attachment FIELDS = { SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true}, TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true}, @@ -726,6 +736,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # Every media file that is embedded or attached to a note is represented @@ -753,7 +764,8 @@ module Evernote # #
data
#
The contents of the resource. - # Maximum length: The data.body is limited to 25 MB (26214400 bytes) + # Maximum length: The data.body is limited to EDAM_RESOURCE_SIZE_MAX_FREE + # for free accounts and EDAM_RESOURCE_SIZE_MAX_PREMIUM for premium accounts. #
# #
mime
@@ -806,7 +818,7 @@ module Evernote # this field will be unset. # class Resource - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union GUID = 1 NOTEGUID = 2 DATA = 3 @@ -820,7 +832,6 @@ module Evernote UPDATESEQUENCENUM = 12 ALTERNATEDATA = 13 - ::Thrift::Struct.field_accessor self, :guid, :noteGuid, :data, :mime, :width, :height, :duration, :active, :recognition, :attributes, :updateSequenceNum, :alternateData FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid', :optional => true}, @@ -841,6 +852,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # The list of optional attributes that can be stored on a note. @@ -889,7 +901,7 @@ module Evernote # # class NoteAttributes - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUBJECTDATE = 1 LATITUDE = 10 LONGITUDE = 11 @@ -899,7 +911,6 @@ module Evernote SOURCEURL = 15 SOURCEAPPLICATION = 16 - ::Thrift::Struct.field_accessor self, :subjectDate, :latitude, :longitude, :altitude, :author, :source, :sourceURL, :sourceApplication FIELDS = { SUBJECTDATE => {:type => ::Thrift::Types::I64, :name => 'subjectDate', :optional => true}, LATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'latitude', :optional => true}, @@ -916,6 +927,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # Represents a single note in the user's account. @@ -1046,7 +1058,7 @@ module Evernote # # class Note - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union GUID = 1 TITLE = 2 CONTENT = 3 @@ -1063,12 +1075,11 @@ module Evernote ATTRIBUTES = 14 TAGNAMES = 15 - ::Thrift::Struct.field_accessor self, :guid, :title, :content, :contentHash, :contentLength, :created, :updated, :deleted, :active, :updateSequenceNum, :notebookGuid, :tagGuids, :resources, :attributes, :tagNames FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true}, CONTENT => {:type => ::Thrift::Types::STRING, :name => 'content', :optional => true}, - CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash', :optional => true}, + CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash', :binary => true, :optional => true}, CONTENTLENGTH => {:type => ::Thrift::Types::I32, :name => 'contentLength', :optional => true}, CREATED => {:type => ::Thrift::Types::I64, :name => 'created', :optional => true}, UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true}, @@ -1087,6 +1098,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # If a Notebook has been opened to the public, the Notebook will have a @@ -1128,13 +1140,12 @@ module Evernote # # class Publishing - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union URI = 1 ORDER = 2 ASCENDING = 3 PUBLICDESCRIPTION = 4 - ::Thrift::Struct.field_accessor self, :uri, :order, :ascending, :publicDescription FIELDS = { URI => {:type => ::Thrift::Types::STRING, :name => 'uri', :optional => true}, ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :optional => true, :enum_class => Evernote::EDAM::Type::NoteSortOrder}, @@ -1150,6 +1161,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # A unique container for a set of notes. @@ -1225,9 +1237,24 @@ module Evernote # Clients that do not wish to change the publishing behavior of a Notebook # should not set this value when calling NoteStore.updateNotebook(). # + # + #
stack
+ #
If this is set, then the notebook is visually contained within a stack + # of notebooks with this name. All notebooks in the same account with the + # same 'stack' field are considered to be in the same stack. + # Notebooks with no stack set are "top level" and not contained within a + # stack. + #
+ # + #
sharedNotebookIds
+ #
If this notebook has been shared with one or more individuals, then + # this will contain the 'id' fields to identify those SharedNotebook + # entries in the NoteStore. This field is only set by the server, and it + # is ignored in calls to createNotebook, updateNotebook, etc. + #
# class Notebook - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union GUID = 1 NAME = 2 UPDATESEQUENCENUM = 5 @@ -1236,8 +1263,9 @@ module Evernote SERVICEUPDATED = 8 PUBLISHING = 10 PUBLISHED = 11 + STACK = 12 + SHAREDNOTEBOOKIDS = 13 - ::Thrift::Struct.field_accessor self, :guid, :name, :updateSequenceNum, :defaultNotebook, :serviceCreated, :serviceUpdated, :publishing, :published FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, @@ -1246,7 +1274,9 @@ module Evernote SERVICECREATED => {:type => ::Thrift::Types::I64, :name => 'serviceCreated', :optional => true}, SERVICEUPDATED => {:type => ::Thrift::Types::I64, :name => 'serviceUpdated', :optional => true}, PUBLISHING => {:type => ::Thrift::Types::STRUCT, :name => 'publishing', :class => Evernote::EDAM::Type::Publishing, :optional => true}, - PUBLISHED => {:type => ::Thrift::Types::BOOL, :name => 'published', :optional => true} + PUBLISHED => {:type => ::Thrift::Types::BOOL, :name => 'published', :optional => true}, + STACK => {:type => ::Thrift::Types::STRING, :name => 'stack', :optional => true}, + SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}, :optional => true} } def struct_fields; FIELDS; end @@ -1254,6 +1284,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # A named search associated with the account that can be quickly re-used. @@ -1296,14 +1327,13 @@ module Evernote # # class SavedSearch - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union GUID = 1 NAME = 2 QUERY = 3 FORMAT = 4 UPDATESEQUENCENUM = 5 - ::Thrift::Struct.field_accessor self, :guid, :name, :query, :format, :updateSequenceNum FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, @@ -1320,6 +1350,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # An advertisement that may be displayed within an Evernote client. @@ -1381,7 +1412,7 @@ module Evernote # three times more frequently than an ad with a frequency of 1.0. # class Ad - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ID = 1 WIDTH = 2 HEIGHT = 3 @@ -1395,7 +1426,6 @@ module Evernote HTML = 11 DISPLAYFREQUENCY = 12 - ::Thrift::Struct.field_accessor self, :id, :width, :height, :advertiserName, :imageUrl, :destinationUrl, :displaySeconds, :score, :image, :imageMime, :html, :displayFrequency FIELDS = { ID => {:type => ::Thrift::Types::I32, :name => 'id', :optional => true}, WIDTH => {:type => ::Thrift::Types::I16, :name => 'width', :optional => true}, @@ -1405,7 +1435,7 @@ module Evernote DESTINATIONURL => {:type => ::Thrift::Types::STRING, :name => 'destinationUrl', :optional => true}, DISPLAYSECONDS => {:type => ::Thrift::Types::I16, :name => 'displaySeconds', :optional => true}, SCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'score', :optional => true}, - IMAGE => {:type => ::Thrift::Types::STRING, :name => 'image', :optional => true}, + IMAGE => {:type => ::Thrift::Types::STRING, :name => 'image', :binary => true, :optional => true}, IMAGEMIME => {:type => ::Thrift::Types::STRING, :name => 'imageMime', :optional => true}, HTML => {:type => ::Thrift::Types::STRING, :name => 'html', :optional => true}, DISPLAYFREQUENCY => {:type => ::Thrift::Types::DOUBLE, :name => 'displayFrequency', :optional => true} @@ -1416,6 +1446,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # Shared notebooks represent a relationship between a notebook and a single @@ -1425,17 +1456,17 @@ module Evernote #
the primary identifier of the share
# #
userId
- #
The user id of the owner of the notebook
+ #
the user id of the owner of the notebook
# #
notebookGuid
- #
the GUID of the notebooks that's being shared.
+ #
the GUID of the associated notebook shared.
# #
email
#
the email address of the recipient - used by the notebook # owner to identify who they shared with.
# #
notebookModifiable
- #
a flag indicating the a share is read/write -otherwise it's read only
+ #
a flag indicating the share is read/write -otherwise it's read only
# #
requireLogin
#
indicates that a user must login to access the share
@@ -1449,7 +1480,7 @@ module Evernote # Once it's assigned it cannot be changed. # class SharedNotebook - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union ID = 1 USERID = 2 NOTEBOOKGUID = 3 @@ -1460,7 +1491,6 @@ module Evernote SHAREKEY = 8 USERNAME = 9 - ::Thrift::Struct.field_accessor self, :id, :userId, :notebookGuid, :email, :notebookModifiable, :requireLogin, :serviceCreated, :shareKey, :username FIELDS = { ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, USERID => {:type => ::Thrift::Types::I32, :name => 'userId', :optional => true}, @@ -1478,15 +1508,13 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end # A link in an users account that refers them to a public or individual share in # another user's account. # #
- #
id
- #
the primary identify of a linked notebook only used for deleting.
- # #
shareName
#
the display name of the shared notebook. # The link owner can change this.
@@ -1502,23 +1530,42 @@ module Evernote # #
uri
#
the identifier of the public notebook
+ # + #
guid
+ #
The unique identifier of this linked notebook. Will be set whenever + # a resource is retrieved from the service, but may be null when a client + # is creating a resource. + #
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX + #
+ # Regex: EDAM_GUID_REGEX + #
+ # + #
updateSequenceNum
+ #
A number identifying the last transaction to + # modify the state of this object. The USN values are sequential within an + # account, and can be used to compare the order of modifications within the + # service. + #
+ #
class LinkedNotebook - include ::Thrift::Struct - ID = 1 + include ::Thrift::Struct, ::Thrift::Struct_Union SHARENAME = 2 USERNAME = 3 SHARDID = 4 SHAREKEY = 5 URI = 6 + GUID = 7 + UPDATESEQUENCENUM = 8 - ::Thrift::Struct.field_accessor self, :id, :shareName, :username, :shardId, :shareKey, :uri FIELDS = { - ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, SHARENAME => {:type => ::Thrift::Types::STRING, :name => 'shareName', :optional => true}, USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true}, SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId', :optional => true}, SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey', :optional => true}, - URI => {:type => ::Thrift::Types::STRING, :name => 'uri', :optional => true} + URI => {:type => ::Thrift::Types::STRING, :name => 'uri', :optional => true}, + GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, + UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true} } def struct_fields; FIELDS; end @@ -1526,6 +1573,7 @@ module Evernote def validate end + ::Thrift::Struct.generate_accessors self end end diff --git a/vendor/gen-rb/evernote/edam/user_store.rb b/vendor/gen-rb/evernote/edam/user_store.rb index 406043a..894338f 100644 --- a/vendor/gen-rb/evernote/edam/user_store.rb +++ b/vendor/gen-rb/evernote/edam/user_store.rb @@ -169,16 +169,15 @@ require 'user_store_types' # HELPER FUNCTIONS AND STRUCTURES class CheckVersion_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union CLIENTNAME = 1 EDAMVERSIONMAJOR = 2 EDAMVERSIONMINOR = 3 - ::Thrift::Struct.field_accessor self, :clientName, :edamVersionMajor, :edamVersionMinor FIELDS = { CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'}, EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1}, - EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 14} + EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 17} } def struct_fields; FIELDS; end @@ -186,13 +185,13 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class CheckVersion_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 - ::Thrift::Struct.field_accessor self, :success FIELDS = { SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'} } @@ -202,16 +201,16 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class Authenticate_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union USERNAME = 1 PASSWORD = 2 CONSUMERKEY = 3 CONSUMERSECRET = 4 - ::Thrift::Struct.field_accessor self, :username, :password, :consumerKey, :consumerSecret FIELDS = { USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}, PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'}, @@ -224,15 +223,15 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class Authenticate_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -244,13 +243,13 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class RefreshAuthentication_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -260,15 +259,15 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class RefreshAuthentication_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -280,13 +279,13 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetUser_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union AUTHENTICATIONTOKEN = 1 - ::Thrift::Struct.field_accessor self, :authenticationToken FIELDS = { AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} } @@ -296,15 +295,15 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetUser_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 USEREXCEPTION = 1 SYSTEMEXCEPTION = 2 - ::Thrift::Struct.field_accessor self, :success, :userException, :systemException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::User}, USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, @@ -316,13 +315,13 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetPublicUserInfo_args - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union USERNAME = 1 - ::Thrift::Struct.field_accessor self, :username FIELDS = { USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'} } @@ -332,16 +331,16 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end class GetPublicUserInfo_result - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 NOTFOUNDEXCEPTION = 1 SYSTEMEXCEPTION = 2 USEREXCEPTION = 3 - ::Thrift::Struct.field_accessor self, :success, :notFoundException, :systemException, :userException FIELDS = { SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PublicUserInfo}, NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}, @@ -354,6 +353,7 @@ require 'user_store_types' def validate end + ::Thrift::Struct.generate_accessors self end end diff --git a/vendor/gen-rb/evernote/edam/user_store_constants.rb b/vendor/gen-rb/evernote/edam/user_store_constants.rb index f30fff2..4a61bcf 100644 --- a/vendor/gen-rb/evernote/edam/user_store_constants.rb +++ b/vendor/gen-rb/evernote/edam/user_store_constants.rb @@ -11,7 +11,7 @@ require 'user_store_types' module UserStore EDAM_VERSION_MAJOR = 1 - EDAM_VERSION_MINOR = 14 + EDAM_VERSION_MINOR = 17 end end diff --git a/vendor/gen-rb/evernote/edam/user_store_types.rb b/vendor/gen-rb/evernote/edam/user_store_types.rb index 3727eb1..228530f 100644 --- a/vendor/gen-rb/evernote/edam/user_store_types.rb +++ b/vendor/gen-rb/evernote/edam/user_store_types.rb @@ -32,13 +32,12 @@ module Evernote # # class PublicUserInfo - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union USERID = 1 SHARDID = 2 PRIVILEGE = 3 USERNAME = 4 - ::Thrift::Struct.field_accessor self, :userId, :shardId, :privilege, :username FIELDS = { USERID => {:type => ::Thrift::Types::I32, :name => 'userId'}, SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId'}, @@ -56,6 +55,7 @@ module Evernote end end + ::Thrift::Struct.generate_accessors self end # When an authentication (or re-authentication) is performed, this structure @@ -92,14 +92,13 @@ module Evernote # # class AuthenticationResult - include ::Thrift::Struct + include ::Thrift::Struct, ::Thrift::Struct_Union CURRENTTIME = 1 AUTHENTICATIONTOKEN = 2 EXPIRATION = 3 USER = 4 PUBLICUSERINFO = 5 - ::Thrift::Struct.field_accessor self, :currentTime, :authenticationToken, :expiration, :user, :publicUserInfo FIELDS = { CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'}, AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, @@ -116,6 +115,7 @@ module Evernote raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field expiration is unset!') unless @expiration end + ::Thrift::Struct.generate_accessors self end end -- cgit v1.2.3