summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorJimmy Zimmerman2012-01-10 07:18:58 -0700
committerJimmy Zimmerman2012-01-10 07:18:58 -0700
commitc003c3d123069c5f2842b1867b63fec3c5de6933 (patch)
tree29ca7fbfba416798342529bef60b107ba698a31e /vendor
parent9102191ea729c695289f8c9ce6ca8fadc8619227 (diff)
downloadevernote-c003c3d123069c5f2842b1867b63fec3c5de6933.tar.bz2
Merge Evernote API SDK 1.20 for ruby
Diffstat (limited to 'vendor')
-rw-r--r--vendor/gen-rb/evernote/edam/limits_constants.rb35
-rw-r--r--vendor/gen-rb/evernote/edam/note_store.rb749
-rw-r--r--vendor/gen-rb/evernote/edam/note_store_types.rb179
-rw-r--r--vendor/gen-rb/evernote/edam/types_types.rb157
-rw-r--r--vendor/gen-rb/evernote/edam/user_store.rb68
-rw-r--r--vendor/gen-rb/evernote/edam/user_store_constants.rb2
-rw-r--r--vendor/gen-rb/evernote/edam/user_store_types.rb97
7 files changed, 1245 insertions, 42 deletions
diff --git a/vendor/gen-rb/evernote/edam/limits_constants.rb b/vendor/gen-rb/evernote/edam/limits_constants.rb
index d08e57e..65127f1 100644
--- a/vendor/gen-rb/evernote/edam/limits_constants.rb
+++ b/vendor/gen-rb/evernote/edam/limits_constants.rb
@@ -17,6 +17,8 @@ require 'limits_types'
EDAM_ATTRIBUTE_LIST_MAX = 100
+ EDAM_ATTRIBUTE_MAP_MAX = 100
+
EDAM_GUID_LEN_MIN = 36
EDAM_GUID_LEN_MAX = 36
@@ -57,6 +59,8 @@ require 'limits_types'
EDAM_MIME_TYPE_AMR = %q"audio/amr"
+ EDAM_MIME_TYPE_MP4_VIDEO = %q"video/mp4"
+
EDAM_MIME_TYPE_INK = %q"application/vnd.evernote.ink"
EDAM_MIME_TYPE_PDF = %q"application/pdf"
@@ -72,6 +76,7 @@ require 'limits_types'
%q"audio/amr",
%q"application/vnd.evernote.ink",
%q"application/pdf",
+ %q"video/mp4",
])
EDAM_COMMERCE_SERVICE_GOOGLE = %q"Google"
@@ -126,6 +131,20 @@ require 'limits_types'
EDAM_NOTE_CONTENT_LEN_MAX = 5242880
+ EDAM_APPLICATIONDATA_NAME_LEN_MIN = 3
+
+ EDAM_APPLICATIONDATA_NAME_LEN_MAX = 32
+
+ EDAM_APPLICATIONDATA_VALUE_LEN_MIN = 0
+
+ EDAM_APPLICATIONDATA_VALUE_LEN_MAX = 4092
+
+ EDAM_APPLICATIONDATA_ENTRY_LEN_MAX = 4095
+
+ EDAM_APPLICATIONDATA_NAME_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
+
+ EDAM_APPLICATIONDATA_VALUE_REGEX = %q"^[^\\p{Cc}]{0,4092}$"
+
EDAM_NOTEBOOK_NAME_LEN_MIN = 1
EDAM_NOTEBOOK_NAME_LEN_MAX = 100
@@ -200,6 +219,22 @@ require 'limits_types'
EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250
+ EDAM_NOTE_CONTENT_CLASS_LEN_MIN = 3
+
+ EDAM_NOTE_CONTENT_CLASS_LEN_MAX = 32
+
+ EDAM_HELLO_APP_CONTENT_CLASS_PREFIX = %q"evernote.hello."
+
+ EDAM_FOOD_APP_CONTENT_CLASS_PREFIX = %q"evernote.food."
+
+ EDAM_NOTE_CONTENT_CLASS_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
+
+ EDAM_CONTENT_CLASS_HELLO_ENCOUNTER = %q"evernote.hello.encounter"
+
+ EDAM_CONTENT_CLASS_HELLO_PROFILE = %q"evernote.hello.profile"
+
+ EDAM_CONTENT_CLASS_FOOD_MEAL = %q"evernote.food.meal"
+
end
end
end
diff --git a/vendor/gen-rb/evernote/edam/note_store.rb b/vendor/gen-rb/evernote/edam/note_store.rb
index 5bacc7c..5c4810d 100644
--- a/vendor/gen-rb/evernote/edam/note_store.rb
+++ b/vendor/gen-rb/evernote/edam/note_store.rb
@@ -48,6 +48,23 @@ require 'note_store_types'
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncChunk failed: unknown result')
end
+ def getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter)
+ send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter)
+ return recv_getFilteredSyncChunk()
+ end
+
+ def send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter)
+ send_message('getFilteredSyncChunk', GetFilteredSyncChunk_args, :authenticationToken => authenticationToken, :afterUSN => afterUSN, :maxEntries => maxEntries, :filter => filter)
+ end
+
+ def recv_getFilteredSyncChunk()
+ result = receive_message(GetFilteredSyncChunk_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFilteredSyncChunk failed: unknown result')
+ end
+
def getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
return recv_getLinkedNotebookSyncState()
@@ -491,6 +508,78 @@ require 'note_store_types'
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNote failed: unknown result')
end
+ def getNoteApplicationData(authenticationToken, guid)
+ send_getNoteApplicationData(authenticationToken, guid)
+ return recv_getNoteApplicationData()
+ end
+
+ def send_getNoteApplicationData(authenticationToken, guid)
+ send_message('getNoteApplicationData', GetNoteApplicationData_args, :authenticationToken => authenticationToken, :guid => guid)
+ end
+
+ def recv_getNoteApplicationData()
+ result = receive_message(GetNoteApplicationData_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteApplicationData failed: unknown result')
+ end
+
+ def getNoteApplicationDataEntry(authenticationToken, guid, key)
+ send_getNoteApplicationDataEntry(authenticationToken, guid, key)
+ return recv_getNoteApplicationDataEntry()
+ end
+
+ def send_getNoteApplicationDataEntry(authenticationToken, guid, key)
+ send_message('getNoteApplicationDataEntry', GetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
+ end
+
+ def recv_getNoteApplicationDataEntry()
+ result = receive_message(GetNoteApplicationDataEntry_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteApplicationDataEntry failed: unknown result')
+ end
+
+ def setNoteApplicationDataEntry(authenticationToken, guid, key, value)
+ send_setNoteApplicationDataEntry(authenticationToken, guid, key, value)
+ return recv_setNoteApplicationDataEntry()
+ end
+
+ def send_setNoteApplicationDataEntry(authenticationToken, guid, key, value)
+ send_message('setNoteApplicationDataEntry', SetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key, :value => value)
+ end
+
+ def recv_setNoteApplicationDataEntry()
+ result = receive_message(SetNoteApplicationDataEntry_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setNoteApplicationDataEntry failed: unknown result')
+ end
+
+ def unsetNoteApplicationDataEntry(authenticationToken, guid, key)
+ send_unsetNoteApplicationDataEntry(authenticationToken, guid, key)
+ return recv_unsetNoteApplicationDataEntry()
+ end
+
+ def send_unsetNoteApplicationDataEntry(authenticationToken, guid, key)
+ send_message('unsetNoteApplicationDataEntry', UnsetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
+ end
+
+ def recv_unsetNoteApplicationDataEntry()
+ result = receive_message(UnsetNoteApplicationDataEntry_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unsetNoteApplicationDataEntry failed: unknown result')
+ end
+
def getNoteContent(authenticationToken, guid)
send_getNoteContent(authenticationToken, guid)
return recv_getNoteContent()
@@ -742,6 +831,78 @@ require 'note_store_types'
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResource failed: unknown result')
end
+ def getResourceApplicationData(authenticationToken, guid)
+ send_getResourceApplicationData(authenticationToken, guid)
+ return recv_getResourceApplicationData()
+ end
+
+ def send_getResourceApplicationData(authenticationToken, guid)
+ send_message('getResourceApplicationData', GetResourceApplicationData_args, :authenticationToken => authenticationToken, :guid => guid)
+ end
+
+ def recv_getResourceApplicationData()
+ result = receive_message(GetResourceApplicationData_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceApplicationData failed: unknown result')
+ end
+
+ def getResourceApplicationDataEntry(authenticationToken, guid, key)
+ send_getResourceApplicationDataEntry(authenticationToken, guid, key)
+ return recv_getResourceApplicationDataEntry()
+ end
+
+ def send_getResourceApplicationDataEntry(authenticationToken, guid, key)
+ send_message('getResourceApplicationDataEntry', GetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
+ end
+
+ def recv_getResourceApplicationDataEntry()
+ result = receive_message(GetResourceApplicationDataEntry_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceApplicationDataEntry failed: unknown result')
+ end
+
+ def setResourceApplicationDataEntry(authenticationToken, guid, key, value)
+ send_setResourceApplicationDataEntry(authenticationToken, guid, key, value)
+ return recv_setResourceApplicationDataEntry()
+ end
+
+ def send_setResourceApplicationDataEntry(authenticationToken, guid, key, value)
+ send_message('setResourceApplicationDataEntry', SetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key, :value => value)
+ end
+
+ def recv_setResourceApplicationDataEntry()
+ result = receive_message(SetResourceApplicationDataEntry_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setResourceApplicationDataEntry failed: unknown result')
+ end
+
+ def unsetResourceApplicationDataEntry(authenticationToken, guid, key)
+ send_unsetResourceApplicationDataEntry(authenticationToken, guid, key)
+ return recv_unsetResourceApplicationDataEntry()
+ end
+
+ def send_unsetResourceApplicationDataEntry(authenticationToken, guid, key)
+ send_message('unsetResourceApplicationDataEntry', UnsetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
+ end
+
+ def recv_unsetResourceApplicationDataEntry()
+ result = receive_message(UnsetResourceApplicationDataEntry_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unsetResourceApplicationDataEntry failed: unknown result')
+ end
+
def updateResource(authenticationToken, resource)
send_updateResource(authenticationToken, resource)
return recv_updateResource()
@@ -936,6 +1097,24 @@ require 'note_store_types'
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createSharedNotebook failed: unknown result')
end
+ def sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients)
+ send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients)
+ return recv_sendMessageToSharedNotebookMembers()
+ end
+
+ def send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients)
+ send_message('sendMessageToSharedNotebookMembers', SendMessageToSharedNotebookMembers_args, :authenticationToken => authenticationToken, :notebookGuid => notebookGuid, :messageText => messageText, :recipients => recipients)
+ end
+
+ def recv_sendMessageToSharedNotebookMembers()
+ result = receive_message(SendMessageToSharedNotebookMembers_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sendMessageToSharedNotebookMembers failed: unknown result')
+ end
+
def listSharedNotebooks(authenticationToken)
send_listSharedNotebooks(authenticationToken)
return recv_listSharedNotebooks()
@@ -1181,6 +1360,19 @@ require 'note_store_types'
write_result(result, oprot, 'getSyncChunk', seqid)
end
+ def process_getFilteredSyncChunk(seqid, iprot, oprot)
+ args = read_args(iprot, GetFilteredSyncChunk_args)
+ result = GetFilteredSyncChunk_result.new()
+ begin
+ result.success = @handler.getFilteredSyncChunk(args.authenticationToken, args.afterUSN, args.maxEntries, args.filter)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ end
+ write_result(result, oprot, 'getFilteredSyncChunk', seqid)
+ end
+
def process_getLinkedNotebookSyncState(seqid, iprot, oprot)
args = read_args(iprot, GetLinkedNotebookSyncState_args)
result = GetLinkedNotebookSyncState_result.new()
@@ -1544,6 +1736,66 @@ require 'note_store_types'
write_result(result, oprot, 'getNote', seqid)
end
+ def process_getNoteApplicationData(seqid, iprot, oprot)
+ args = read_args(iprot, GetNoteApplicationData_args)
+ result = GetNoteApplicationData_result.new()
+ begin
+ result.success = @handler.getNoteApplicationData(args.authenticationToken, args.guid)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'getNoteApplicationData', seqid)
+ end
+
+ def process_getNoteApplicationDataEntry(seqid, iprot, oprot)
+ args = read_args(iprot, GetNoteApplicationDataEntry_args)
+ result = GetNoteApplicationDataEntry_result.new()
+ begin
+ result.success = @handler.getNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'getNoteApplicationDataEntry', seqid)
+ end
+
+ def process_setNoteApplicationDataEntry(seqid, iprot, oprot)
+ args = read_args(iprot, SetNoteApplicationDataEntry_args)
+ result = SetNoteApplicationDataEntry_result.new()
+ begin
+ result.success = @handler.setNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key, args.value)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'setNoteApplicationDataEntry', seqid)
+ end
+
+ def process_unsetNoteApplicationDataEntry(seqid, iprot, oprot)
+ args = read_args(iprot, UnsetNoteApplicationDataEntry_args)
+ result = UnsetNoteApplicationDataEntry_result.new()
+ begin
+ result.success = @handler.unsetNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'unsetNoteApplicationDataEntry', seqid)
+ end
+
def process_getNoteContent(seqid, iprot, oprot)
args = read_args(iprot, GetNoteContent_args)
result = GetNoteContent_result.new()
@@ -1752,6 +2004,66 @@ require 'note_store_types'
write_result(result, oprot, 'getResource', seqid)
end
+ def process_getResourceApplicationData(seqid, iprot, oprot)
+ args = read_args(iprot, GetResourceApplicationData_args)
+ result = GetResourceApplicationData_result.new()
+ begin
+ result.success = @handler.getResourceApplicationData(args.authenticationToken, args.guid)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'getResourceApplicationData', seqid)
+ end
+
+ def process_getResourceApplicationDataEntry(seqid, iprot, oprot)
+ args = read_args(iprot, GetResourceApplicationDataEntry_args)
+ result = GetResourceApplicationDataEntry_result.new()
+ begin
+ result.success = @handler.getResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'getResourceApplicationDataEntry', seqid)
+ end
+
+ def process_setResourceApplicationDataEntry(seqid, iprot, oprot)
+ args = read_args(iprot, SetResourceApplicationDataEntry_args)
+ result = SetResourceApplicationDataEntry_result.new()
+ begin
+ result.success = @handler.setResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key, args.value)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'setResourceApplicationDataEntry', seqid)
+ end
+
+ def process_unsetResourceApplicationDataEntry(seqid, iprot, oprot)
+ args = read_args(iprot, UnsetResourceApplicationDataEntry_args)
+ result = UnsetResourceApplicationDataEntry_result.new()
+ begin
+ result.success = @handler.unsetResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ end
+ write_result(result, oprot, 'unsetResourceApplicationDataEntry', seqid)
+ end
+
def process_updateResource(seqid, iprot, oprot)
args = read_args(iprot, UpdateResource_args)
result = UpdateResource_result.new()
@@ -1909,6 +2221,21 @@ require 'note_store_types'
write_result(result, oprot, 'createSharedNotebook', seqid)
end
+ def process_sendMessageToSharedNotebookMembers(seqid, iprot, oprot)
+ args = read_args(iprot, SendMessageToSharedNotebookMembers_args)
+ result = SendMessageToSharedNotebookMembers_result.new()
+ begin
+ result.success = @handler.sendMessageToSharedNotebookMembers(args.authenticationToken, args.notebookGuid, args.messageText, args.recipients)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ end
+ write_result(result, oprot, 'sendMessageToSharedNotebookMembers', seqid)
+ end
+
def process_listSharedNotebooks(seqid, iprot, oprot)
args = read_args(iprot, ListSharedNotebooks_args)
result = ListSharedNotebooks_result.new()
@@ -2171,6 +2498,48 @@ require 'note_store_types'
::Thrift::Struct.generate_accessors self
end
+ class GetFilteredSyncChunk_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ AFTERUSN = 2
+ MAXENTRIES = 3
+ FILTER = 4
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'},
+ MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'},
+ FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::SyncChunkFilter}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetFilteredSyncChunk_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncChunk},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
class GetLinkedNotebookSyncState_args
include ::Thrift::Struct, ::Thrift::Struct_Union
AUTHENTICATIONTOKEN = 1
@@ -3177,6 +3546,174 @@ require 'note_store_types'
::Thrift::Struct.generate_accessors self
end
+ class GetNoteApplicationData_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 GetNoteApplicationData_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ NOTFOUNDEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LazyMap},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetNoteApplicationDataEntry_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+ KEY = 3
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetNoteApplicationDataEntry_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ NOTFOUNDEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class SetNoteApplicationDataEntry_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+ KEY = 3
+ VALUE = 4
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class SetNoteApplicationDataEntry_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 UnsetNoteApplicationDataEntry_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+ KEY = 3
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class UnsetNoteApplicationDataEntry_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 GetNoteContent_args
include ::Thrift::Struct, ::Thrift::Struct_Union
AUTHENTICATIONTOKEN = 1
@@ -3755,6 +4292,174 @@ require 'note_store_types'
::Thrift::Struct.generate_accessors self
end
+ class GetResourceApplicationData_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetResourceApplicationData_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ NOTFOUNDEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LazyMap},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetResourceApplicationDataEntry_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+ KEY = 3
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetResourceApplicationDataEntry_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ NOTFOUNDEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class SetResourceApplicationDataEntry_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+ KEY = 3
+ VALUE = 4
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class SetResourceApplicationDataEntry_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ NOTFOUNDEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class UnsetResourceApplicationDataEntry_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ GUID = 2
+ KEY = 3
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class UnsetResourceApplicationDataEntry_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ NOTFOUNDEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
class UpdateResource_args
include ::Thrift::Struct, ::Thrift::Struct_Union
AUTHENTICATIONTOKEN = 1
@@ -4193,6 +4898,50 @@ require 'note_store_types'
::Thrift::Struct.generate_accessors self
end
+ class SendMessageToSharedNotebookMembers_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+ NOTEBOOKGUID = 2
+ MESSAGETEXT = 3
+ RECIPIENTS = 4
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid'},
+ MESSAGETEXT => {:type => ::Thrift::Types::STRING, :name => 'messageText'},
+ RECIPIENTS => {:type => ::Thrift::Types::LIST, :name => 'recipients', :element => {:type => ::Thrift::Types::STRING}}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class SendMessageToSharedNotebookMembers_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ NOTFOUNDEXCEPTION = 2
+ SYSTEMEXCEPTION = 3
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
class ListSharedNotebooks_args
include ::Thrift::Struct, ::Thrift::Struct_Union
AUTHENTICATIONTOKEN = 1
diff --git a/vendor/gen-rb/evernote/edam/note_store_types.rb b/vendor/gen-rb/evernote/edam/note_store_types.rb
index bbe45fc..90a6e92 100644
--- a/vendor/gen-rb/evernote/edam/note_store_types.rb
+++ b/vendor/gen-rb/evernote/edam/note_store_types.rb
@@ -224,6 +224,139 @@ module Evernote
::Thrift::Struct.generate_accessors self
end
+ # This structure is used with the 'getFilteredSyncChunk' call to provide
+ # fine-grained control over the data that's returned when a client needs
+ # to synchronize with the service. Each flag in this structure specifies
+ # whether to include one class of data in the results of that call.
+ #
+ # <dl>
+ # <dt>includeNotes</dt>
+ # <dd>
+ # If true, then the server will include the SyncChunks.notes field
+ # </dd>
+ #
+ # <dt>includeNoteResources</dt>
+ # <dd>
+ # If true, then the server will include the 'resources' field on all of
+ # the Notes that are in SyncChunk.notes.
+ # If 'includeNotes' is false, then this will have no effect.
+ # </dd>
+ #
+ # <dt>includeNoteAttributes</dt>
+ # <dd>
+ # If true, then the server will include the 'attributes' field on all of
+ # the Notes that are in SyncChunks.notes.
+ # If 'includeNotes' is false, then this will have no effect.
+ # </dd>
+ #
+ # <dt>includeNotebooks</dt>
+ # <dd>
+ # If true, then the server will include the SyncChunks.notebooks field
+ # </dd>
+ #
+ # <dt>includeTags</dt>
+ # <dd>
+ # If true, then the server will include the SyncChunks.tags field
+ # </dd>
+ #
+ # <dt>includeSearches</dt>
+ # <dd>
+ # If true, then the server will include the SyncChunks.searches field
+ # </dd>
+ #
+ # <dt>includeResources</dt>
+ # <dd>
+ # If true, then the server will include the SyncChunks.resources field.
+ # Since the Resources are also provided with their Note
+ # (in the Notes.resources list), this is primarily useful for clients that
+ # want to watch for changes to individual Resources due to recognition data
+ # being added.
+ # </dd>
+ #
+ # <dt>includeLinkedNotebooks</dt>
+ # <dd>
+ # If true, then the server will include the SyncChunks.linkedNotebooks field.
+ # </dd>
+ #
+ # <dt>includeExpunged</dt>
+ # <dd>
+ # If true, then the server will include the 'expunged' data for any type
+ # of included data. For example, if 'includeTags' and 'includeExpunged'
+ # are both true, then the SyncChunks.expungedTags field will be set with
+ # the GUIDs of tags that have been expunged from the server.
+ # </dd>
+ #
+ # <dt>includeNoteApplicationDataFullMap</dt>
+ # <dd>
+ # If true, then the values for the applicationData map will be filled
+ # in, assuming notes and note attributes are being returned. Otherwise,
+ # only the keysOnly field will be filled in.
+ # </dd>
+ #
+ # <dt>includeResourceApplicationDataFullMap</dt>
+ # <dd>
+ # If true, then the fullMap values for the applicationData map will be
+ # filled in, assuming resources and resource attributes are being returned
+ # (includeResources is true). Otherwise, only the keysOnly field will be
+ # filled in.
+ # </dd>
+ #
+ # <dt>includeNoteResourceApplicationDataFullMap</dt>
+ # <dd>
+ # If true, then the fullMap values for the applicationData map will be
+ # filled in for resources found inside of notes, assuming resources are
+ # being returned in notes (includeNoteResources is true). Otherwise,
+ # only the keysOnly field will be filled in.
+ # </dd>
+ #
+ # <dt>requireNoteContentClass</dt>
+ # <dd>
+ # If set, then only send notes whose content class matches this value.
+ # The value can be a literal match or, if the last character is an
+ # asterisk, a prefix match.
+ # </dd>
+ #
+ # </dl>
+ class SyncChunkFilter
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ INCLUDENOTES = 1
+ INCLUDENOTERESOURCES = 2
+ INCLUDENOTEATTRIBUTES = 3
+ INCLUDENOTEBOOKS = 4
+ INCLUDETAGS = 5
+ INCLUDESEARCHES = 6
+ INCLUDERESOURCES = 7
+ INCLUDELINKEDNOTEBOOKS = 8
+ INCLUDEEXPUNGED = 9
+ INCLUDENOTEAPPLICATIONDATAFULLMAP = 10
+ INCLUDERESOURCEAPPLICATIONDATAFULLMAP = 12
+ INCLUDENOTERESOURCEAPPLICATIONDATAFULLMAP = 13
+ REQUIRENOTECONTENTCLASS = 11
+
+ FIELDS = {
+ INCLUDENOTES => {:type => ::Thrift::Types::BOOL, :name => 'includeNotes', :optional => true},
+ INCLUDENOTERESOURCES => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteResources', :optional => true},
+ INCLUDENOTEATTRIBUTES => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteAttributes', :optional => true},
+ INCLUDENOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeNotebooks', :optional => true},
+ INCLUDETAGS => {:type => ::Thrift::Types::BOOL, :name => 'includeTags', :optional => true},
+ INCLUDESEARCHES => {:type => ::Thrift::Types::BOOL, :name => 'includeSearches', :optional => true},
+ INCLUDERESOURCES => {:type => ::Thrift::Types::BOOL, :name => 'includeResources', :optional => true},
+ INCLUDELINKEDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeLinkedNotebooks', :optional => true},
+ INCLUDEEXPUNGED => {:type => ::Thrift::Types::BOOL, :name => 'includeExpunged', :optional => true},
+ INCLUDENOTEAPPLICATIONDATAFULLMAP => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteApplicationDataFullMap', :optional => true},
+ INCLUDERESOURCEAPPLICATIONDATAFULLMAP => {:type => ::Thrift::Types::BOOL, :name => 'includeResourceApplicationDataFullMap', :optional => true},
+ INCLUDENOTERESOURCEAPPLICATIONDATAFULLMAP => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteResourceApplicationDataFullMap', :optional => true},
+ REQUIRENOTECONTENTCLASS => {:type => ::Thrift::Types::STRING, :name => 'requireNoteContentClass', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
# A list of criteria that are used to indicate which notes are desired from
# the account. This is used in queries to the NoteStore to determine
# which notes should be retrieved.
@@ -382,27 +515,27 @@ module Evernote
::Thrift::Struct.generate_accessors self
end
- # * This structure is used in the set of results returned by the
- # * findNotesMetadata function. It represents the high-level information about
- # * a single Note, without some of the larger deep structure. This allows
- # * for the information about a list of Notes to be returned relatively quickly
- # * with less marshalling and data transfer to remote clients.
- # * Most fields in this structure are identical to the corresponding field in
- # * the Note structure, with the exception of:
- # *
- # * <dl>
- # * <dt>largestResourceMime</dt>
- # * <dd>If set, then this will contain the MIME type of the largest Resource
- # * (in bytes) within the Note. This may be useful, for example, to choose
- # * an appropriate icon or thumbnail to represent the Note.
- # * </dd>
- # *
- # * <dt>largestResourceSize</dt>
- # * <dd>If set, this will contain the size of the largest Resource file, in
- # * bytes, within the Note. This may be useful, for example, to decide whether
- # * to ask the server for a thumbnail to represent the Note.
- # * </dd>
- # * </dl>
+ # This structure is used in the set of results returned by the
+ # findNotesMetadata function. It represents the high-level information about
+ # a single Note, without some of the larger deep structure. This allows
+ # for the information about a list of Notes to be returned relatively quickly
+ # with less marshalling and data transfer to remote clients.
+ # Most fields in this structure are identical to the corresponding field in
+ # the Note structure, with the exception of:
+ #
+ # <dl>
+ # <dt>largestResourceMime</dt>
+ # <dd>If set, then this will contain the MIME type of the largest Resource
+ # (in bytes) within the Note. This may be useful, for example, to choose
+ # an appropriate icon or thumbnail to represent the Note.
+ # </dd>
+ #
+ # <dt>largestResourceSize</dt>
+ # <dd>If set, this will contain the size of the largest Resource file, in
+ # bytes, within the Note. This may be useful, for example, to decide whether
+ # to ask the server for a thumbnail to represent the Note.
+ # </dd>
+ # </dl>
class NoteMetadata
include ::Thrift::Struct, ::Thrift::Struct_Union
GUID = 1
@@ -781,7 +914,7 @@ module Evernote
::Thrift::Struct.generate_accessors self
end
- # Identfying information about previous versions of a note that are backed up
+ # Identifying information about previous versions of a note that are backed up
# within Evernote's servers. Used in the return value of the listNoteVersions
# call.
#
@@ -807,7 +940,7 @@ module Evernote
# </dd>
# <dt>title</dt>
# <dd>
- # The title of the note when this particular verison was saved. (The
+ # The title of the note when this particular version was saved. (The
# current title of the note may differ from this value.)
# </dd>
# </dl>
diff --git a/vendor/gen-rb/evernote/edam/types_types.rb b/vendor/gen-rb/evernote/edam/types_types.rb
index 34789ed..670fe61 100644
--- a/vendor/gen-rb/evernote/edam/types_types.rb
+++ b/vendor/gen-rb/evernote/edam/types_types.rb
@@ -172,13 +172,13 @@ module Evernote
# <dd>A code indicating where the user was sent from. AKA
# promotion code
# </dd>
- #
+ #
# <dt>sentEmailDate</dt>
# <dd>The most recent date when the user sent outbound
# emails from the service. Used with sentEmailCount to limit the number
# of emails that can be sent per day.
# </dd>
- #
+ #
# <dt>sentEmailCount</dt>
# <dd>The number of emails that were sent from the user
# via the service on sentEmailDate. Used to enforce a limit on the number
@@ -231,7 +231,7 @@ module Evernote
# <dt>groupName</dt>
# <dd>A name identifier used to identify a particular set of branding and
# light customization.</dd>
- #
+ #
# <dt>recognitionLanguage</dt>
# <dd>a 2 character language codes based on:
# http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt
@@ -254,6 +254,12 @@ module Evernote
# <dd>A string recording the business address of a Sponsored Account user who has requested invoicing.
# </dd>
# </dl>
+ #
+ # <dt>hideSponsorBilling</dt>
+ # <dd>A flag indicating whether to hide the billing information on a sponsored
+ # account owner's settings page
+ # </dd>
+ # </dl>
class UserAttributes
include ::Thrift::Struct, ::Thrift::Struct_Union
DEFAULTLOCATIONNAME = 1
@@ -284,6 +290,7 @@ module Evernote
REFERRALPROOF = 28
EDUCATIONALDISCOUNT = 29
BUSINESSADDRESS = 30
+ HIDESPONSORBILLING = 31
FIELDS = {
DEFAULTLOCATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultLocationName', :optional => true},
@@ -313,7 +320,8 @@ module Evernote
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},
- BUSINESSADDRESS => {:type => ::Thrift::Types::STRING, :name => 'businessAddress', :optional => true}
+ BUSINESSADDRESS => {:type => ::Thrift::Types::STRING, :name => 'businessAddress', :optional => true},
+ HIDESPONSORBILLING => {:type => ::Thrift::Types::BOOL, :name => 'hideSponsorBilling', :optional => true}
}
def struct_fields; FIELDS; end
@@ -325,7 +333,7 @@ module Evernote
end
# This represents the bookkeeping information for the user's subscription.
- #
+ #
# <dl>
# <dt>uploadLimit</dt>
# <dd>The number of bytes that can be uploaded to the account
@@ -615,7 +623,7 @@ module Evernote
#
# <dt>parentGuid</dt>
# <dd>If this is set, then this is the GUID of the tag that
- # holds this tag within the tag organizational heirarchy. If this is
+ # holds this tag within the tag organizational hierarchy. If this is
# not set, then the tag has no parent and it is a "top level" tag.
# Cycles are not allowed (e.g. a->parent->parent == a) and will be
# rejected by the service.
@@ -654,6 +662,46 @@ module Evernote
::Thrift::Struct.generate_accessors self
end
+ # A structure that wraps a map of name/value pairs whose values are not
+ # always present in the structure in order to reduce space when obtaining
+ # batches of entities that contain the map. When a client provides a LazyMap
+ # to the server, the fullMap field must be set and the keysOnly field will
+ # be ignored by the server. When the server provides the client with a
+ # LazyMap, it will fill in either the keysOnly field or the fullMap field,
+ # but not both, based on the API and parameters.
+ #
+ # Check the API documentation of the individual calls involving the LazyMap
+ # for full details including the constraints of the names and values of the
+ # map.
+ #
+ # <dl>
+ # <dt>keysOnly</dt>
+ # <dd>The set of keys for the map. This field is ignored by the
+ # server when set.
+ # </dd>
+ #
+ # <dt>fullMap</dt>
+ # <dd>The complete map, including all keys and values.
+ # </dd>
+ # </dl>
+ class LazyMap
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ KEYSONLY = 1
+ FULLMAP = 2
+
+ FIELDS = {
+ KEYSONLY => {:type => ::Thrift::Types::SET, :name => 'keysOnly', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ FULLMAP => {:type => ::Thrift::Types::MAP, :name => 'fullMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
# Structure holding the optional attributes of a Resource
# <dl>
# <dt>sourceURL</dt>
@@ -711,10 +759,27 @@ module Evernote
# </dd>
#
# <dt>attachment</dt>
- # <dd>this will be true if the resource is a Premium file attachment. This
- # will be available within the search grammar so that you can identify
- # notes that contain attachments.
- # </dd>
+ # <dd>this will be true if the resource should be displayed as an attachment,
+ # or false if the resource should be displayed inline (if possible).
+ # </dd>
+ #
+ # <dt>applicationData</dt>
+ # <dd>Provides a location for applications to store a relatively small
+ # (4kb) blob of data associated with a Resource that is not visible to the user
+ # and that is opaque to the Evernote service. A single application may use at most
+ # one entry in this map, using its API consumer key as the map key. See the
+ # documentation for LazyMap for a description of when the actual map values
+ # are returned by the service.
+ # <p>To safely add or modify your application's entry in the map, use
+ # NoteStore.setResourceApplicationDataEntry. To safely remove your application's
+ # entry from the map, use NoteStore.unsetResourceApplicationDataEntry.</p>
+ # Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN
+ # <br/>
+ # Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX
+ # <br/>
+ # Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX
+ # </dd>
+ #
# </dl>
class ResourceAttributes
include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -729,6 +794,7 @@ module Evernote
RECOTYPE = 9
FILENAME = 10
ATTACHMENT = 11
+ APPLICATIONDATA = 12
FIELDS = {
SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
@@ -741,7 +807,8 @@ module Evernote
CLIENTWILLINDEX => {:type => ::Thrift::Types::BOOL, :name => 'clientWillIndex', :optional => true},
RECOTYPE => {:type => ::Thrift::Types::STRING, :name => 'recoType', :optional => true},
FILENAME => {:type => ::Thrift::Types::STRING, :name => 'fileName', :optional => true},
- ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true}
+ ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true},
+ APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => Evernote::EDAM::Type::LazyMap, :optional => true}
}
def struct_fields; FIELDS; end
@@ -894,13 +961,14 @@ module Evernote
#
# <dt>source</dt>
# <dd>the method that the note was added to the account, if the
- # note wasn't directly authored in an Evernote client.
+ # note wasn't directly authored in an Evernote desktop client.
# <br/>
# Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
# </dd>
#
# <dt>sourceURL</dt>
- # <dd>the original location where the resource was hosted
+ # <dd>the original location where the resource was hosted. For web clips,
+ # this will be the URL of the page that was clipped.
# <br/>
# Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
# </dd>
@@ -915,12 +983,61 @@ module Evernote
#
# <dt>shareDate</dt>
# <dd>The date and time when this note was directly shared via its own URL.
- # This is only set on notes that were individually shared, it's independent
- # of any notebook-level sharing of the containing notepbook. This field
- # is treated as "read-only" for clients ... the server will ignore changes
+ # This is only set on notes that were individually shared - it is independent
+ # of any notebook-level sharing of the containing notepbook. This field
+ # is treated as "read-only" for clients; the server will ignore changes
# to this field from an external client.
# </dd>
#
+ # <dt>placeName</dt>
+ # <dd>Allows the user to assign a human-readable location name associated
+ # with a note. Users may assign values like 'Home' and 'Work'. Place
+ # names may also be populated with values from geonames database
+ # (e.g., a restaurant name). Applications are encouraged to normalize values
+ # so that grouping values by place name provides a useful result. Applications
+ # MUST NOT automatically add place name values based on geolocation without
+ # confirmation from the user; that is, the value in this field should be
+ # more useful than a simple automated lookup based on the note's latitude
+ # and longitude.</dd>
+ #
+ # <dt>contentClass</dt>
+ # <dd>The class (or type) of note. This field is used to indicate to
+ # clients that special structured information is represented within
+ # the note such that special rules apply when making
+ # modifications. If contentClass is set and the client
+ # application does not specifically support the specified class,
+ # the client MUST treat the note as read-only. In this case, the
+ # client MAY modify the note's notebook and tags via the
+ # Note.notebookGuid and Note.tagGuids fields.
+ # <p>Applications should set contentClass only when they are creating notes
+ # that contain structured information that needs to be maintained in order
+ # for the user to be able to use the note within that application.
+ # Setting contentClass makes a note read-only in other applications, so
+ # there is a trade-off when an application chooses to use contentClass.
+ # Applications that set contentClass when creating notes must use a contentClass
+ # string of the form <i>CompanyName.ApplicationName</i> to ensure uniqueness.</p>
+ # Length restrictions: EDAM_ATTRIBUTE_LEN_MIN, EDAM_ATTRIBUTE_LEN_MAX
+ # <br/>
+ # Regex: EDAM_ATTRIBUTE_REGEX
+ # </dd>
+ #
+ # <dt>applicationData</dt>
+ # <dd>Provides a location for applications to store a relatively small
+ # (4kb) blob of data that is not meant to be visible to the user and
+ # that is opaque to the Evernote service. A single application may use at most
+ # one entry in this map, using its API consumer key as the map key. See the
+ # documentation for LazyMap for a description of when the actual map values
+ # are returned by the service.
+ # <p>To safely add or modify your application's entry in the map, use
+ # NoteStore.setNoteApplicationDataEntry. To safely remove your application's
+ # entry from the map, use NoteStore.unsetNoteApplicationDataEntry.</p>
+ # Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN
+ # <br/>
+ # Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX
+ # <br/>
+ # Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX
+ # </dd>
+ #
# </dl>
class NoteAttributes
include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -933,6 +1050,9 @@ module Evernote
SOURCEURL = 15
SOURCEAPPLICATION = 16
SHAREDATE = 17
+ PLACENAME = 21
+ CONTENTCLASS = 22
+ APPLICATIONDATA = 23
FIELDS = {
SUBJECTDATE => {:type => ::Thrift::Types::I64, :name => 'subjectDate', :optional => true},
@@ -943,7 +1063,10 @@ module Evernote
SOURCE => {:type => ::Thrift::Types::STRING, :name => 'source', :optional => true},
SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
SOURCEAPPLICATION => {:type => ::Thrift::Types::STRING, :name => 'sourceApplication', :optional => true},
- SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true}
+ SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true},
+ PLACENAME => {:type => ::Thrift::Types::STRING, :name => 'placeName', :optional => true},
+ CONTENTCLASS => {:type => ::Thrift::Types::STRING, :name => 'contentClass', :optional => true},
+ APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => Evernote::EDAM::Type::LazyMap, :optional => true}
}
def struct_fields; FIELDS; end
diff --git a/vendor/gen-rb/evernote/edam/user_store.rb b/vendor/gen-rb/evernote/edam/user_store.rb
index 3693817..c31b0ba 100644
--- a/vendor/gen-rb/evernote/edam/user_store.rb
+++ b/vendor/gen-rb/evernote/edam/user_store.rb
@@ -98,6 +98,23 @@ require 'user_store_types'
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicUserInfo failed: unknown result')
end
+ def getPremiumInfo(authenticationToken)
+ send_getPremiumInfo(authenticationToken)
+ return recv_getPremiumInfo()
+ end
+
+ def send_getPremiumInfo(authenticationToken)
+ send_message('getPremiumInfo', GetPremiumInfo_args, :authenticationToken => authenticationToken)
+ end
+
+ def recv_getPremiumInfo()
+ result = receive_message(GetPremiumInfo_result)
+ return result.success unless result.success.nil?
+ raise result.userException unless result.userException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPremiumInfo failed: unknown result')
+ end
+
end
class Processor
@@ -164,6 +181,19 @@ require 'user_store_types'
write_result(result, oprot, 'getPublicUserInfo', seqid)
end
+ def process_getPremiumInfo(seqid, iprot, oprot)
+ args = read_args(iprot, GetPremiumInfo_args)
+ result = GetPremiumInfo_result.new()
+ begin
+ result.success = @handler.getPremiumInfo(args.authenticationToken)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ end
+ write_result(result, oprot, 'getPremiumInfo', seqid)
+ end
+
end
# HELPER FUNCTIONS AND STRUCTURES
@@ -177,7 +207,7 @@ require 'user_store_types'
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 => 19}
+ EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 20}
}
def struct_fields; FIELDS; end
@@ -356,6 +386,42 @@ require 'user_store_types'
::Thrift::Struct.generate_accessors self
end
+ class GetPremiumInfo_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ AUTHENTICATIONTOKEN = 1
+
+ FIELDS = {
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class GetPremiumInfo_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ USEREXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PremiumInfo},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
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 a36f4b0..0204da3 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 = 19
+ EDAM_VERSION_MINOR = 20
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 228530f..5a70643 100644
--- a/vendor/gen-rb/evernote/edam/user_store_types.rb
+++ b/vendor/gen-rb/evernote/edam/user_store_types.rb
@@ -11,6 +11,14 @@ require 'errors_types'
module Evernote
module EDAM
module UserStore
+ module SponsoredGroupRole
+ GROUP_MEMBER = 1
+ GROUP_ADMIN = 2
+ GROUP_OWNER = 3
+ VALUE_MAP = {1 => "GROUP_MEMBER", 2 => "GROUP_ADMIN", 3 => "GROUP_OWNER"}
+ VALID_VALUES = Set.new([GROUP_MEMBER, GROUP_ADMIN, GROUP_OWNER]).freeze
+ end
+
# This structure is used to provide publicly-available user information
# about a particular account.
# <dl>
@@ -58,6 +66,95 @@ module Evernote
::Thrift::Struct.generate_accessors self
end
+ # This structure is used to provide information about a user's Premium account.
+ # <dl>
+ # <dt>currentTime:</dt>
+ # <dd>
+ # The server-side date and time when this data was generated.
+ # </dd>
+ # <dt>premium:</dt>
+ # <dd>
+ # True if the user's account is Premium.
+ # </dd>
+ # <dt>premiumRecurring</dt>
+ # <dd>
+ # True if the user's account is Premium and has a recurring payment method.
+ # </dd>
+ # <dt>premiumExpirationDate:</dt>
+ # <dd>
+ # The date when the user's Premium account expires, or the date when the user's
+ # account will be charged if it has a recurring payment method.
+ # </dd>
+ # <dt>premiumExtendable:</dt>
+ # <dd>
+ # True if the user is eligible for purchasing Premium account extensions.
+ # </dd>
+ # <dt>premiumPending:</dt>
+ # <dd>
+ # True if the user's Premium account is pending payment confirmation
+ # </dd>
+ # <dt>premiumCancellationPending:</dt>
+ # <dd>
+ # True if the user has requested that no further charges to be made; the Premium
+ # account will remain active until it expires.
+ # </dd>
+ # <dt>canPurchaseUploadAllowance:</dt>
+ # <dd>
+ # True if the user is eligible for purchasing additional upload allowance.
+ # </dd>
+ # <dt>sponsoredGroupName:</dt>
+ # <dd>
+ # The name of the sponsored group that the user is part of.
+ # </dd>
+ # <dt>sponsoredGroupRole:</dt>
+ # <dd>
+ # The role of the user within a sponsored group.
+ # </dd>
+ # </dl>
+ class PremiumInfo
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ CURRENTTIME = 1
+ PREMIUM = 2
+ PREMIUMRECURRING = 3
+ PREMIUMEXPIRATIONDATE = 4
+ PREMIUMEXTENDABLE = 5
+ PREMIUMPENDING = 6
+ PREMIUMCANCELLATIONPENDING = 7
+ CANPURCHASEUPLOADALLOWANCE = 8
+ SPONSOREDGROUPNAME = 9
+ SPONSOREDGROUPROLE = 10
+
+ FIELDS = {
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
+ PREMIUM => {:type => ::Thrift::Types::BOOL, :name => 'premium'},
+ PREMIUMRECURRING => {:type => ::Thrift::Types::BOOL, :name => 'premiumRecurring'},
+ PREMIUMEXPIRATIONDATE => {:type => ::Thrift::Types::I64, :name => 'premiumExpirationDate', :optional => true},
+ PREMIUMEXTENDABLE => {:type => ::Thrift::Types::BOOL, :name => 'premiumExtendable'},
+ PREMIUMPENDING => {:type => ::Thrift::Types::BOOL, :name => 'premiumPending'},
+ PREMIUMCANCELLATIONPENDING => {:type => ::Thrift::Types::BOOL, :name => 'premiumCancellationPending'},
+ CANPURCHASEUPLOADALLOWANCE => {:type => ::Thrift::Types::BOOL, :name => 'canPurchaseUploadAllowance'},
+ SPONSOREDGROUPNAME => {:type => ::Thrift::Types::STRING, :name => 'sponsoredGroupName', :optional => true},
+ SPONSOREDGROUPROLE => {:type => ::Thrift::Types::I32, :name => 'sponsoredGroupRole', :optional => true, :enum_class => Evernote::EDAM::UserStore::SponsoredGroupRole}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premium is unset!') if @premium.nil?
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premiumRecurring is unset!') if @premiumRecurring.nil?
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premiumExtendable is unset!') if @premiumExtendable.nil?
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premiumPending is unset!') if @premiumPending.nil?
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field premiumCancellationPending is unset!') if @premiumCancellationPending.nil?
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field canPurchaseUploadAllowance is unset!') if @canPurchaseUploadAllowance.nil?
+ unless @sponsoredGroupRole.nil? || Evernote::EDAM::UserStore::SponsoredGroupRole::VALID_VALUES.include?(@sponsoredGroupRole)
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field sponsoredGroupRole!')
+ end
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
# When an authentication (or re-authentication) is performed, this structure
# provides the result to the client.
# <dl>