From 7dac9bbef19d0a1a3f8c19b4730dbef75d9366ff Mon Sep 17 00:00:00 2001 From: Chris Sepic Date: Sun, 24 Jan 2010 16:00:13 -0600 Subject: vendored generated thrift code --- .gitignore | 1 + Rakefile | 1 + lib/evernote.rb | 7 + vendor/gen-rb/evernote.rb | 12 + vendor/gen-rb/evernote/edam/errors_types.rb | 123 + vendor/gen-rb/evernote/edam/limits_constants.rb | 187 + vendor/gen-rb/evernote/edam/limits_types.rb | 13 + vendor/gen-rb/evernote/edam/note_store.rb | 3834 ++++++++++++++++++++ .../gen-rb/evernote/edam/note_store_constants.rb | 14 + vendor/gen-rb/evernote/edam/note_store_types.rb | 571 +++ vendor/gen-rb/evernote/edam/types_constants.rb | 20 + vendor/gen-rb/evernote/edam/types_types.rb | 1533 ++++++++ vendor/gen-rb/evernote/edam/user_store.rb | 363 ++ .../gen-rb/evernote/edam/user_store_constants.rb | 18 + vendor/gen-rb/evernote/edam/user_store_types.rb | 123 + 15 files changed, 6820 insertions(+) create mode 100644 vendor/gen-rb/evernote.rb create mode 100644 vendor/gen-rb/evernote/edam/errors_types.rb create mode 100644 vendor/gen-rb/evernote/edam/limits_constants.rb create mode 100644 vendor/gen-rb/evernote/edam/limits_types.rb create mode 100644 vendor/gen-rb/evernote/edam/note_store.rb create mode 100644 vendor/gen-rb/evernote/edam/note_store_constants.rb create mode 100644 vendor/gen-rb/evernote/edam/note_store_types.rb create mode 100644 vendor/gen-rb/evernote/edam/types_constants.rb create mode 100644 vendor/gen-rb/evernote/edam/types_types.rb create mode 100644 vendor/gen-rb/evernote/edam/user_store.rb create mode 100644 vendor/gen-rb/evernote/edam/user_store_constants.rb create mode 100644 vendor/gen-rb/evernote/edam/user_store_types.rb diff --git a/.gitignore b/.gitignore index 00c0b86..cb55154 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ coverage rdoc pkg +*.gemspec diff --git a/Rakefile b/Rakefile index 0f0c7ea..517bc15 100644 --- a/Rakefile +++ b/Rakefile @@ -9,6 +9,7 @@ begin gem.email = "chris.sepic@gmail.com" gem.homepage = "http://github.com/cgs/evernote" gem.authors = ["Chris Sepic"] + gem.files.include %w{vendor/**/*} gem.add_dependency("thrift_client") gem.add_development_dependency "rspec" gem.add_development_dependency "yard" diff --git a/lib/evernote.rb b/lib/evernote.rb index e69de29..3f9bae8 100644 --- a/lib/evernote.rb +++ b/lib/evernote.rb @@ -0,0 +1,7 @@ +require 'rubygems' +require 'thrift_client' + +gen_rb_path = File.expand_path(File.dirname(__FILE__) + "/../vendor/gen-rb") +$LOAD_PATH.unshift gen_rb_path +$LOAD_PATH.unshift "#{gen_rb_path}/evernote/edam" +require "#{gen_rb_path}/evernote" diff --git a/vendor/gen-rb/evernote.rb b/vendor/gen-rb/evernote.rb new file mode 100644 index 0000000..3b5c68b --- /dev/null +++ b/vendor/gen-rb/evernote.rb @@ -0,0 +1,12 @@ +require 'set' +require 'errors_types' +require 'limits_constants' +require 'limits_types' +require 'note_store' +require 'note_store_constants' +require 'note_store_types' +require 'types_constants' +require 'types_types' +require 'user_store' +require 'user_store_constants' +require 'user_store_types' \ No newline at end of file diff --git a/vendor/gen-rb/evernote/edam/errors_types.rb b/vendor/gen-rb/evernote/edam/errors_types.rb new file mode 100644 index 0000000..1da14ac --- /dev/null +++ b/vendor/gen-rb/evernote/edam/errors_types.rb @@ -0,0 +1,123 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + + +module Evernote + module EDAM + module Error + module EDAMErrorCode + UNKNOWN = 1 + BAD_DATA_FORMAT = 2 + PERMISSION_DENIED = 3 + INTERNAL_ERROR = 4 + DATA_REQUIRED = 5 + LIMIT_REACHED = 6 + QUOTA_REACHED = 7 + INVALID_AUTH = 8 + AUTH_EXPIRED = 9 + DATA_CONFLICT = 10 + ENML_VALIDATION = 11 + SHARD_UNAVAILABLE = 12 + VALUE_MAP = {1 => "UNKNOWN", 2 => "BAD_DATA_FORMAT", 3 => "PERMISSION_DENIED", 4 => "INTERNAL_ERROR", 5 => "DATA_REQUIRED", 6 => "LIMIT_REACHED", 7 => "QUOTA_REACHED", 8 => "INVALID_AUTH", 9 => "AUTH_EXPIRED", 10 => "DATA_CONFLICT", 11 => "ENML_VALIDATION", 12 => "SHARD_UNAVAILABLE"} + VALID_VALUES = Set.new([UNKNOWN, BAD_DATA_FORMAT, PERMISSION_DENIED, INTERNAL_ERROR, DATA_REQUIRED, LIMIT_REACHED, QUOTA_REACHED, INVALID_AUTH, AUTH_EXPIRED, DATA_CONFLICT, ENML_VALIDATION, SHARD_UNAVAILABLE]).freeze + end + + # This exception is thrown by EDAM procedures when a call fails as a result of + # a problem that a user may be able to resolve. For example, if the user + # attempts to add a note to their account which would exceed their storage + # quota, this type of exception may be thrown to indicate the source of the + # error so that they can choose an alternate action. + # + # This exception would not be used for internal system errors that do not + # reflect user actions, but rather reflect a problem within the service that + # the user cannot resolve. + # + # errorCode: The numeric code indicating the type of error that occurred. + # must be one of the values of EDAMErrorCode. + # + # parameter: If the error applied to a particular input parameter, this will + # indicate which parameter. + class EDAMUserException < ::Thrift::Exception + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode + unless @errorCode.nil? || Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!') + end + end + + end + + # This exception is thrown by EDAM procedures when a call fails as a result of + # an a problem in the service that could not be changed through user action. + # + # errorCode: The numeric code indicating the type of error that occurred. + # must be one of the values of EDAMErrorCode. + # + # message: This may contain additional information about the error + class EDAMSystemException < ::Thrift::Exception + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode + unless @errorCode.nil? || Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!') + end + end + + end + + # This exception is thrown by EDAM procedures when a caller asks to perform + # an operation that does not exist. This may be thrown based on an invalid + # primary identifier (e.g. a bad GUID), or when the caller refers to an object + # by another unique identifier (e.g. a User's email address). + # + # identifier: the object identifier that was not found on the server. + # + # 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 + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + end + end + end diff --git a/vendor/gen-rb/evernote/edam/limits_constants.rb b/vendor/gen-rb/evernote/edam/limits_constants.rb new file mode 100644 index 0000000..24253bb --- /dev/null +++ b/vendor/gen-rb/evernote/edam/limits_constants.rb @@ -0,0 +1,187 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + +require 'limits_types' + + module Evernote + module EDAM + module Limits + EDAM_ATTRIBUTE_LEN_MIN = 1 + + EDAM_ATTRIBUTE_LEN_MAX = 4096 + + EDAM_ATTRIBUTE_REGEX = %q"^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,4096}$" + + EDAM_ATTRIBUTE_LIST_MAX = 100 + + EDAM_GUID_LEN_MIN = 36 + + EDAM_GUID_LEN_MAX = 36 + + EDAM_GUID_REGEX = %q"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + + EDAM_EMAIL_LEN_MIN = 6 + + EDAM_EMAIL_LEN_MAX = 255 + + EDAM_EMAIL_LOCAL_REGEX = %q"^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*$" + + EDAM_EMAIL_DOMAIN_REGEX = %q"^[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$" + + EDAM_EMAIL_REGEX = %q"^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$" + + EDAM_TIMEZONE_LEN_MIN = 1 + + EDAM_TIMEZONE_LEN_MAX = 32 + + EDAM_TIMEZONE_REGEX = %q"^([A-Za-z_-]+(/[A-Za-z_-]+)*)|(GMT(-|\\+)[0-9]{1,2}(:[0-9]{2})?)$" + + EDAM_MIME_LEN_MIN = 3 + + EDAM_MIME_LEN_MAX = 255 + + EDAM_MIME_REGEX = %q"^[A-Za-z]+/[A-Za-z0-9._+-]+$" + + EDAM_MIME_TYPE_GIF = %q"image/gif" + + EDAM_MIME_TYPE_JPEG = %q"image/jpeg" + + EDAM_MIME_TYPE_PNG = %q"image/png" + + EDAM_MIME_TYPE_WAV = %q"audio/wav" + + EDAM_MIME_TYPE_MP3 = %q"audio/mpeg" + + EDAM_MIME_TYPE_AMR = %q"audio/amr" + + EDAM_MIME_TYPE_INK = %q"application/vnd.evernote.ink" + + EDAM_MIME_TYPE_PDF = %q"application/pdf" + + EDAM_MIME_TYPE_DEFAULT = %q"application/octet-stream" + + EDAM_MIME_TYPES = Set.new([ + %q"image/gif", + %q"image/jpeg", + %q"image/png", + %q"audio/wav", + %q"audio/mpeg", + %q"audio/amr", + %q"application/vnd.evernote.ink", + %q"application/pdf", + ]) + + EDAM_COMMERCE_SERVICE_GOOGLE = %q"Google" + + EDAM_COMMERCE_SERVICE_PAYPAL = %q"Paypal" + + EDAM_COMMERCE_SERVICE_GIFT = %q"Gift" + + EDAM_COMMERCE_SERVICE_TRIALPAY = %q"TrialPay" + + EDAM_SEARCH_QUERY_LEN_MIN = 0 + + EDAM_SEARCH_QUERY_LEN_MAX = 1024 + + EDAM_SEARCH_QUERY_REGEX = %q"^[^\\p{Cc}\\p{Zl}\\p{Zp}]{0,1024}$" + + EDAM_HASH_LEN = 16 + + EDAM_USER_USERNAME_LEN_MIN = 1 + + EDAM_USER_USERNAME_LEN_MAX = 64 + + EDAM_USER_USERNAME_REGEX = %q"^[a-z0-9]([a-z0-9_-]{0,62}[a-z0-9])?$" + + EDAM_USER_NAME_LEN_MIN = 1 + + EDAM_USER_NAME_LEN_MAX = 255 + + EDAM_USER_NAME_REGEX = %q"^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,255}$" + + EDAM_TAG_NAME_LEN_MIN = 1 + + EDAM_TAG_NAME_LEN_MAX = 100 + + EDAM_TAG_NAME_REGEX = %q"^[^,\\p{Cc}\\p{Z}]([^,\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^,\\p{Cc}\\p{Z}])?$" + + EDAM_NOTE_TITLE_LEN_MIN = 1 + + EDAM_NOTE_TITLE_LEN_MAX = 255 + + EDAM_NOTE_TITLE_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,253}[^\\p{Cc}\\p{Z}])?$" + + EDAM_NOTE_CONTENT_LEN_MIN = 0 + + EDAM_NOTE_CONTENT_LEN_MAX = 5242880 + + EDAM_NOTEBOOK_NAME_LEN_MIN = 1 + + EDAM_NOTEBOOK_NAME_LEN_MAX = 100 + + EDAM_NOTEBOOK_NAME_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 + + EDAM_PUBLISHING_URI_REGEX = %q"^[a-zA-Z0-9.~_+-]{1,255}$" + + EDAM_PUBLISHING_URI_PROHIBITED = Set.new([ + %q"..", + ]) + + EDAM_PUBLISHING_DESCRIPTION_LEN_MIN = 1 + + EDAM_PUBLISHING_DESCRIPTION_LEN_MAX = 200 + + EDAM_PUBLISHING_DESCRIPTION_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$" + + EDAM_SAVED_SEARCH_NAME_LEN_MIN = 1 + + EDAM_SAVED_SEARCH_NAME_LEN_MAX = 100 + + EDAM_SAVED_SEARCH_NAME_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$" + + EDAM_USER_PASSWORD_LEN_MIN = 6 + + EDAM_USER_PASSWORD_LEN_MAX = 64 + + EDAM_USER_PASSWORD_REGEX = %q"^[A-Za-z0-9!#$%&'()*+,./:;<=>?@^_`{|}~\\[\\]\\\\-]{6,64}$" + + EDAM_NOTE_TAGS_MAX = 100 + + EDAM_NOTE_RESOURCES_MAX = 1000 + + EDAM_USER_TAGS_MAX = 100000 + + EDAM_USER_SAVED_SEARCHES_MAX = 100 + + EDAM_USER_NOTES_MAX = 100000 + + EDAM_USER_NOTEBOOKS_MAX = 100 + + EDAM_USER_RECENT_MAILED_ADDRESSES_MAX = 10 + + EDAM_USER_MAIL_LIMIT_DAILY_FREE = 50 + + EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM = 200 + + EDAM_NOTE_SIZE_MAX_FREE = 26214400 + + EDAM_NOTE_SIZE_MAX_PREMIUM = 52428800 + + EDAM_RESOURCE_SIZE_MAX_FREE = 26214400 + + EDAM_RESOURCE_SIZE_MAX_PREMIUM = 52428800 + + EDAM_USER_LINKED_NOTEBOOK_MAX = 100 + + EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 100 + + end + end +end diff --git a/vendor/gen-rb/evernote/edam/limits_types.rb b/vendor/gen-rb/evernote/edam/limits_types.rb new file mode 100644 index 0000000..b3d57a9 --- /dev/null +++ b/vendor/gen-rb/evernote/edam/limits_types.rb @@ -0,0 +1,13 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + + +module Evernote + module EDAM + module Limits + end + end + end diff --git a/vendor/gen-rb/evernote/edam/note_store.rb b/vendor/gen-rb/evernote/edam/note_store.rb new file mode 100644 index 0000000..4540e94 --- /dev/null +++ b/vendor/gen-rb/evernote/edam/note_store.rb @@ -0,0 +1,3834 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + +require 'thrift' +require 'note_store_types' + + module Evernote + module EDAM + module NoteStore + module NoteStore + class Client + include ::Thrift::Client + + def getSyncState(authenticationToken) + send_getSyncState(authenticationToken) + return recv_getSyncState() + end + + def send_getSyncState(authenticationToken) + send_message('getSyncState', GetSyncState_args, :authenticationToken => authenticationToken) + end + + def recv_getSyncState() + result = receive_message(GetSyncState_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, 'getSyncState failed: unknown result') + end + + def getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly) + send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly) + return recv_getSyncChunk() + end + + def send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly) + send_message('getSyncChunk', GetSyncChunk_args, :authenticationToken => authenticationToken, :afterUSN => afterUSN, :maxEntries => maxEntries, :fullSyncOnly => fullSyncOnly) + end + + def recv_getSyncChunk() + result = receive_message(GetSyncChunk_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, 'getSyncChunk failed: unknown result') + end + + def listNotebooks(authenticationToken) + send_listNotebooks(authenticationToken) + return recv_listNotebooks() + end + + def send_listNotebooks(authenticationToken) + send_message('listNotebooks', ListNotebooks_args, :authenticationToken => authenticationToken) + end + + def recv_listNotebooks() + result = receive_message(ListNotebooks_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, 'listNotebooks failed: unknown result') + end + + def getNotebook(authenticationToken, guid) + send_getNotebook(authenticationToken, guid) + return recv_getNotebook() + end + + def send_getNotebook(authenticationToken, guid) + send_message('getNotebook', GetNotebook_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getNotebook() + result = receive_message(GetNotebook_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, 'getNotebook failed: unknown result') + end + + def getDefaultNotebook(authenticationToken) + send_getDefaultNotebook(authenticationToken) + return recv_getDefaultNotebook() + end + + def send_getDefaultNotebook(authenticationToken) + send_message('getDefaultNotebook', GetDefaultNotebook_args, :authenticationToken => authenticationToken) + end + + def recv_getDefaultNotebook() + result = receive_message(GetDefaultNotebook_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, 'getDefaultNotebook failed: unknown result') + end + + def createNotebook(authenticationToken, notebook) + send_createNotebook(authenticationToken, notebook) + return recv_createNotebook() + end + + def send_createNotebook(authenticationToken, notebook) + send_message('createNotebook', CreateNotebook_args, :authenticationToken => authenticationToken, :notebook => notebook) + end + + def recv_createNotebook() + result = receive_message(CreateNotebook_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, 'createNotebook failed: unknown result') + end + + def updateNotebook(authenticationToken, notebook) + send_updateNotebook(authenticationToken, notebook) + return recv_updateNotebook() + end + + def send_updateNotebook(authenticationToken, notebook) + send_message('updateNotebook', UpdateNotebook_args, :authenticationToken => authenticationToken, :notebook => notebook) + end + + def recv_updateNotebook() + result = receive_message(UpdateNotebook_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, 'updateNotebook failed: unknown result') + end + + def expungeNotebook(authenticationToken, guid) + send_expungeNotebook(authenticationToken, guid) + return recv_expungeNotebook() + end + + def send_expungeNotebook(authenticationToken, guid) + send_message('expungeNotebook', ExpungeNotebook_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_expungeNotebook() + result = receive_message(ExpungeNotebook_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, 'expungeNotebook failed: unknown result') + end + + def listTags(authenticationToken) + send_listTags(authenticationToken) + return recv_listTags() + end + + def send_listTags(authenticationToken) + send_message('listTags', ListTags_args, :authenticationToken => authenticationToken) + end + + def recv_listTags() + result = receive_message(ListTags_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, 'listTags failed: unknown result') + end + + def listTagsByNotebook(authenticationToken, notebookGuid) + send_listTagsByNotebook(authenticationToken, notebookGuid) + return recv_listTagsByNotebook() + end + + def send_listTagsByNotebook(authenticationToken, notebookGuid) + send_message('listTagsByNotebook', ListTagsByNotebook_args, :authenticationToken => authenticationToken, :notebookGuid => notebookGuid) + end + + def recv_listTagsByNotebook() + result = receive_message(ListTagsByNotebook_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, 'listTagsByNotebook failed: unknown result') + end + + def getTag(authenticationToken, guid) + send_getTag(authenticationToken, guid) + return recv_getTag() + end + + def send_getTag(authenticationToken, guid) + send_message('getTag', GetTag_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getTag() + result = receive_message(GetTag_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, 'getTag failed: unknown result') + end + + def createTag(authenticationToken, tag) + send_createTag(authenticationToken, tag) + return recv_createTag() + end + + def send_createTag(authenticationToken, tag) + send_message('createTag', CreateTag_args, :authenticationToken => authenticationToken, :tag => tag) + end + + def recv_createTag() + result = receive_message(CreateTag_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, 'createTag failed: unknown result') + end + + def updateTag(authenticationToken, tag) + send_updateTag(authenticationToken, tag) + return recv_updateTag() + end + + def send_updateTag(authenticationToken, tag) + send_message('updateTag', UpdateTag_args, :authenticationToken => authenticationToken, :tag => tag) + end + + def recv_updateTag() + result = receive_message(UpdateTag_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, 'updateTag failed: unknown result') + end + + def untagAll(authenticationToken, guid) + send_untagAll(authenticationToken, guid) + recv_untagAll() + end + + def send_untagAll(authenticationToken, guid) + send_message('untagAll', UntagAll_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_untagAll() + result = receive_message(UntagAll_result) + raise result.userException unless result.userException.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + return + end + + def expungeTag(authenticationToken, guid) + send_expungeTag(authenticationToken, guid) + return recv_expungeTag() + end + + def send_expungeTag(authenticationToken, guid) + send_message('expungeTag', ExpungeTag_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_expungeTag() + result = receive_message(ExpungeTag_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, 'expungeTag failed: unknown result') + end + + def listSearches(authenticationToken) + send_listSearches(authenticationToken) + return recv_listSearches() + end + + def send_listSearches(authenticationToken) + send_message('listSearches', ListSearches_args, :authenticationToken => authenticationToken) + end + + def recv_listSearches() + result = receive_message(ListSearches_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, 'listSearches failed: unknown result') + end + + def getSearch(authenticationToken, guid) + send_getSearch(authenticationToken, guid) + return recv_getSearch() + end + + def send_getSearch(authenticationToken, guid) + send_message('getSearch', GetSearch_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getSearch() + result = receive_message(GetSearch_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, 'getSearch failed: unknown result') + end + + def createSearch(authenticationToken, search) + send_createSearch(authenticationToken, search) + return recv_createSearch() + end + + def send_createSearch(authenticationToken, search) + send_message('createSearch', CreateSearch_args, :authenticationToken => authenticationToken, :search => search) + end + + def recv_createSearch() + result = receive_message(CreateSearch_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, 'createSearch failed: unknown result') + end + + def updateSearch(authenticationToken, search) + send_updateSearch(authenticationToken, search) + return recv_updateSearch() + end + + def send_updateSearch(authenticationToken, search) + send_message('updateSearch', UpdateSearch_args, :authenticationToken => authenticationToken, :search => search) + end + + def recv_updateSearch() + result = receive_message(UpdateSearch_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, 'updateSearch failed: unknown result') + end + + def expungeSearch(authenticationToken, guid) + send_expungeSearch(authenticationToken, guid) + return recv_expungeSearch() + end + + def send_expungeSearch(authenticationToken, guid) + send_message('expungeSearch', ExpungeSearch_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_expungeSearch() + result = receive_message(ExpungeSearch_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, 'expungeSearch failed: unknown result') + end + + def findNotes(authenticationToken, filter, offset, maxNotes) + send_findNotes(authenticationToken, filter, offset, maxNotes) + return recv_findNotes() + end + + def send_findNotes(authenticationToken, filter, offset, maxNotes) + send_message('findNotes', FindNotes_args, :authenticationToken => authenticationToken, :filter => filter, :offset => offset, :maxNotes => maxNotes) + end + + def recv_findNotes() + result = receive_message(FindNotes_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, 'findNotes failed: unknown result') + end + + def findNoteCounts(authenticationToken, filter, withTrash) + send_findNoteCounts(authenticationToken, filter, withTrash) + return recv_findNoteCounts() + end + + def send_findNoteCounts(authenticationToken, filter, withTrash) + send_message('findNoteCounts', FindNoteCounts_args, :authenticationToken => authenticationToken, :filter => filter, :withTrash => withTrash) + end + + def recv_findNoteCounts() + result = receive_message(FindNoteCounts_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, 'findNoteCounts failed: unknown result') + end + + def getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData) + send_getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData) + return recv_getNote() + end + + def send_getNote(authenticationToken, guid, withContent, withResourcesData, withResourcesRecognition, withResourcesAlternateData) + send_message('getNote', GetNote_args, :authenticationToken => authenticationToken, :guid => guid, :withContent => withContent, :withResourcesData => withResourcesData, :withResourcesRecognition => withResourcesRecognition, :withResourcesAlternateData => withResourcesAlternateData) + end + + def recv_getNote() + result = receive_message(GetNote_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, 'getNote failed: unknown result') + end + + def getNoteContent(authenticationToken, guid) + send_getNoteContent(authenticationToken, guid) + return recv_getNoteContent() + end + + def send_getNoteContent(authenticationToken, guid) + send_message('getNoteContent', GetNoteContent_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getNoteContent() + result = receive_message(GetNoteContent_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, 'getNoteContent failed: unknown result') + end + + def getNoteSearchText(authenticationToken, guid) + send_getNoteSearchText(authenticationToken, guid) + return recv_getNoteSearchText() + end + + def send_getNoteSearchText(authenticationToken, guid) + send_message('getNoteSearchText', GetNoteSearchText_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getNoteSearchText() + result = receive_message(GetNoteSearchText_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, 'getNoteSearchText failed: unknown result') + end + + def getNoteTagNames(authenticationToken, guid) + send_getNoteTagNames(authenticationToken, guid) + return recv_getNoteTagNames() + end + + def send_getNoteTagNames(authenticationToken, guid) + send_message('getNoteTagNames', GetNoteTagNames_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getNoteTagNames() + result = receive_message(GetNoteTagNames_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, 'getNoteTagNames failed: unknown result') + end + + def createNote(authenticationToken, note) + send_createNote(authenticationToken, note) + return recv_createNote() + end + + def send_createNote(authenticationToken, note) + send_message('createNote', CreateNote_args, :authenticationToken => authenticationToken, :note => note) + end + + def recv_createNote() + result = receive_message(CreateNote_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, 'createNote failed: unknown result') + end + + def updateNote(authenticationToken, note) + send_updateNote(authenticationToken, note) + return recv_updateNote() + end + + def send_updateNote(authenticationToken, note) + send_message('updateNote', UpdateNote_args, :authenticationToken => authenticationToken, :note => note) + end + + def recv_updateNote() + result = receive_message(UpdateNote_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, 'updateNote failed: unknown result') + end + + def expungeNote(authenticationToken, guid) + send_expungeNote(authenticationToken, guid) + return recv_expungeNote() + end + + def send_expungeNote(authenticationToken, guid) + send_message('expungeNote', ExpungeNote_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_expungeNote() + result = receive_message(ExpungeNote_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, 'expungeNote failed: unknown result') + end + + def expungeNotes(authenticationToken, noteGuids) + send_expungeNotes(authenticationToken, noteGuids) + return recv_expungeNotes() + end + + def send_expungeNotes(authenticationToken, noteGuids) + send_message('expungeNotes', ExpungeNotes_args, :authenticationToken => authenticationToken, :noteGuids => noteGuids) + end + + def recv_expungeNotes() + result = receive_message(ExpungeNotes_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, 'expungeNotes failed: unknown result') + end + + def expungeInactiveNotes(authenticationToken) + send_expungeInactiveNotes(authenticationToken) + return recv_expungeInactiveNotes() + end + + def send_expungeInactiveNotes(authenticationToken) + send_message('expungeInactiveNotes', ExpungeInactiveNotes_args, :authenticationToken => authenticationToken) + end + + def recv_expungeInactiveNotes() + result = receive_message(ExpungeInactiveNotes_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, 'expungeInactiveNotes failed: unknown result') + end + + def copyNote(authenticationToken, noteGuid, toNotebookGuid) + send_copyNote(authenticationToken, noteGuid, toNotebookGuid) + return recv_copyNote() + end + + def send_copyNote(authenticationToken, noteGuid, toNotebookGuid) + send_message('copyNote', CopyNote_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid, :toNotebookGuid => toNotebookGuid) + end + + def recv_copyNote() + result = receive_message(CopyNote_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, 'copyNote failed: unknown result') + end + + def getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData) + send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData) + return recv_getResource() + end + + def send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData) + send_message('getResource', GetResource_args, :authenticationToken => authenticationToken, :guid => guid, :withData => withData, :withRecognition => withRecognition, :withAttributes => withAttributes, :withAlternateData => withAlternateData) + end + + def recv_getResource() + result = receive_message(GetResource_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, 'getResource failed: unknown result') + end + + def updateResource(authenticationToken, resource) + send_updateResource(authenticationToken, resource) + return recv_updateResource() + end + + def send_updateResource(authenticationToken, resource) + send_message('updateResource', UpdateResource_args, :authenticationToken => authenticationToken, :resource => resource) + end + + def recv_updateResource() + result = receive_message(UpdateResource_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, 'updateResource failed: unknown result') + end + + def getResourceData(authenticationToken, guid) + send_getResourceData(authenticationToken, guid) + return recv_getResourceData() + end + + def send_getResourceData(authenticationToken, guid) + send_message('getResourceData', GetResourceData_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getResourceData() + result = receive_message(GetResourceData_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, 'getResourceData failed: unknown result') + end + + def getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData) + send_getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData) + return recv_getResourceByHash() + end + + def send_getResourceByHash(authenticationToken, noteGuid, contentHash, withData, withRecognition, withAlternateData) + send_message('getResourceByHash', GetResourceByHash_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid, :contentHash => contentHash, :withData => withData, :withRecognition => withRecognition, :withAlternateData => withAlternateData) + end + + def recv_getResourceByHash() + result = receive_message(GetResourceByHash_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, 'getResourceByHash failed: unknown result') + end + + def getResourceRecognition(authenticationToken, guid) + send_getResourceRecognition(authenticationToken, guid) + return recv_getResourceRecognition() + end + + def send_getResourceRecognition(authenticationToken, guid) + send_message('getResourceRecognition', GetResourceRecognition_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getResourceRecognition() + result = receive_message(GetResourceRecognition_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, 'getResourceRecognition failed: unknown result') + end + + def getResourceAlternateData(authenticationToken, guid) + send_getResourceAlternateData(authenticationToken, guid) + return recv_getResourceAlternateData() + end + + def send_getResourceAlternateData(authenticationToken, guid) + send_message('getResourceAlternateData', GetResourceAlternateData_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getResourceAlternateData() + result = receive_message(GetResourceAlternateData_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, 'getResourceAlternateData failed: unknown result') + end + + def getResourceAttributes(authenticationToken, guid) + send_getResourceAttributes(authenticationToken, guid) + return recv_getResourceAttributes() + end + + def send_getResourceAttributes(authenticationToken, guid) + send_message('getResourceAttributes', GetResourceAttributes_args, :authenticationToken => authenticationToken, :guid => guid) + end + + def recv_getResourceAttributes() + result = receive_message(GetResourceAttributes_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, 'getResourceAttributes failed: unknown result') + end + + def getAccountSize(authenticationToken) + send_getAccountSize(authenticationToken) + return recv_getAccountSize() + end + + def send_getAccountSize(authenticationToken) + send_message('getAccountSize', GetAccountSize_args, :authenticationToken => authenticationToken) + end + + def recv_getAccountSize() + result = receive_message(GetAccountSize_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, 'getAccountSize failed: unknown result') + end + + def getAds(authenticationToken, adParameters) + send_getAds(authenticationToken, adParameters) + return recv_getAds() + end + + def send_getAds(authenticationToken, adParameters) + send_message('getAds', GetAds_args, :authenticationToken => authenticationToken, :adParameters => adParameters) + end + + def recv_getAds() + result = receive_message(GetAds_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, 'getAds failed: unknown result') + end + + def getRandomAd(authenticationToken, adParameters) + send_getRandomAd(authenticationToken, adParameters) + return recv_getRandomAd() + end + + def send_getRandomAd(authenticationToken, adParameters) + send_message('getRandomAd', GetRandomAd_args, :authenticationToken => authenticationToken, :adParameters => adParameters) + end + + def recv_getRandomAd() + result = receive_message(GetRandomAd_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, 'getRandomAd failed: unknown result') + end + + def getPublicNotebook(userId, publicUri) + send_getPublicNotebook(userId, publicUri) + return recv_getPublicNotebook() + end + + def send_getPublicNotebook(userId, publicUri) + send_message('getPublicNotebook', GetPublicNotebook_args, :userId => userId, :publicUri => publicUri) + end + + def recv_getPublicNotebook() + result = receive_message(GetPublicNotebook_result) + return result.success unless result.success.nil? + raise result.systemException unless result.systemException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicNotebook failed: unknown result') + end + + def createSharedNotebook(authenticationToken, sharedNotebook) + send_createSharedNotebook(authenticationToken, sharedNotebook) + return recv_createSharedNotebook() + end + + def send_createSharedNotebook(authenticationToken, sharedNotebook) + send_message('createSharedNotebook', CreateSharedNotebook_args, :authenticationToken => authenticationToken, :sharedNotebook => sharedNotebook) + end + + def recv_createSharedNotebook() + result = receive_message(CreateSharedNotebook_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, 'createSharedNotebook failed: unknown result') + end + + def listSharedNotebooks(authenticationToken) + send_listSharedNotebooks(authenticationToken) + return recv_listSharedNotebooks() + end + + def send_listSharedNotebooks(authenticationToken) + send_message('listSharedNotebooks', ListSharedNotebooks_args, :authenticationToken => authenticationToken) + end + + def recv_listSharedNotebooks() + result = receive_message(ListSharedNotebooks_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, 'listSharedNotebooks failed: unknown result') + end + + def expungeSharedNotebooks(authenticationToken, sharedNotebookIds) + send_expungeSharedNotebooks(authenticationToken, sharedNotebookIds) + return recv_expungeSharedNotebooks() + end + + def send_expungeSharedNotebooks(authenticationToken, sharedNotebookIds) + send_message('expungeSharedNotebooks', ExpungeSharedNotebooks_args, :authenticationToken => authenticationToken, :sharedNotebookIds => sharedNotebookIds) + end + + def recv_expungeSharedNotebooks() + result = receive_message(ExpungeSharedNotebooks_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, 'expungeSharedNotebooks failed: unknown result') + end + + def createLinkedNotebook(authenticationToken, linkedNotebook) + send_createLinkedNotebook(authenticationToken, linkedNotebook) + return recv_createLinkedNotebook() + end + + def send_createLinkedNotebook(authenticationToken, linkedNotebook) + send_message('createLinkedNotebook', CreateLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook) + end + + def recv_createLinkedNotebook() + result = receive_message(CreateLinkedNotebook_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, 'createLinkedNotebook failed: unknown result') + end + + def updateLinkedNotebook(authenticationToken, linkedNotebook) + send_updateLinkedNotebook(authenticationToken, linkedNotebook) + return recv_updateLinkedNotebook() + end + + def send_updateLinkedNotebook(authenticationToken, linkedNotebook) + send_message('updateLinkedNotebook', UpdateLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook) + end + + def recv_updateLinkedNotebook() + result = receive_message(UpdateLinkedNotebook_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, 'updateLinkedNotebook failed: unknown result') + end + + def listLinkedNotebooks(authenticationToken) + send_listLinkedNotebooks(authenticationToken) + return recv_listLinkedNotebooks() + end + + def send_listLinkedNotebooks(authenticationToken) + send_message('listLinkedNotebooks', ListLinkedNotebooks_args, :authenticationToken => authenticationToken) + end + + def recv_listLinkedNotebooks() + result = receive_message(ListLinkedNotebooks_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, 'listLinkedNotebooks failed: unknown result') + end + + def expungeLinkedNotebook(authenticationToken, linkedNotebookId) + send_expungeLinkedNotebook(authenticationToken, linkedNotebookId) + return recv_expungeLinkedNotebook() + end + + def send_expungeLinkedNotebook(authenticationToken, linkedNotebookId) + send_message('expungeLinkedNotebook', ExpungeLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebookId => linkedNotebookId) + end + + def recv_expungeLinkedNotebook() + result = receive_message(ExpungeLinkedNotebook_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, 'expungeLinkedNotebook failed: unknown result') + end + + def authenticateToSharedNotebook(shareKey, authenticationToken) + send_authenticateToSharedNotebook(shareKey, authenticationToken) + return recv_authenticateToSharedNotebook() + end + + def send_authenticateToSharedNotebook(shareKey, authenticationToken) + send_message('authenticateToSharedNotebook', AuthenticateToSharedNotebook_args, :shareKey => shareKey, :authenticationToken => authenticationToken) + end + + def recv_authenticateToSharedNotebook() + result = receive_message(AuthenticateToSharedNotebook_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, 'authenticateToSharedNotebook failed: unknown result') + end + + def getSharedNotebookByAuth(authenticationToken) + send_getSharedNotebookByAuth(authenticationToken) + return recv_getSharedNotebookByAuth() + end + + def send_getSharedNotebookByAuth(authenticationToken) + send_message('getSharedNotebookByAuth', GetSharedNotebookByAuth_args, :authenticationToken => authenticationToken) + end + + def recv_getSharedNotebookByAuth() + result = receive_message(GetSharedNotebookByAuth_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, 'getSharedNotebookByAuth failed: unknown result') + end + + def emailNote(authenticationToken, parameters) + send_emailNote(authenticationToken, parameters) + recv_emailNote() + end + + def send_emailNote(authenticationToken, parameters) + send_message('emailNote', EmailNote_args, :authenticationToken => authenticationToken, :parameters => parameters) + end + + def recv_emailNote() + result = receive_message(EmailNote_result) + raise result.userException unless result.userException.nil? + raise result.notFoundException unless result.notFoundException.nil? + raise result.systemException unless result.systemException.nil? + return + end + + end + + class Processor + include ::Thrift::Processor + + def process_getSyncState(seqid, iprot, oprot) + args = read_args(iprot, GetSyncState_args) + result = GetSyncState_result.new() + begin + result.success = @handler.getSyncState(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, 'getSyncState', seqid) + end + + def process_getSyncChunk(seqid, iprot, oprot) + args = read_args(iprot, GetSyncChunk_args) + result = GetSyncChunk_result.new() + begin + result.success = @handler.getSyncChunk(args.authenticationToken, args.afterUSN, args.maxEntries, args.fullSyncOnly) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'getSyncChunk', seqid) + end + + def process_listNotebooks(seqid, iprot, oprot) + args = read_args(iprot, ListNotebooks_args) + result = ListNotebooks_result.new() + begin + result.success = @handler.listNotebooks(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, 'listNotebooks', seqid) + end + + def process_getNotebook(seqid, iprot, oprot) + args = read_args(iprot, GetNotebook_args) + result = GetNotebook_result.new() + begin + result.success = @handler.getNotebook(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, 'getNotebook', seqid) + end + + def process_getDefaultNotebook(seqid, iprot, oprot) + args = read_args(iprot, GetDefaultNotebook_args) + result = GetDefaultNotebook_result.new() + begin + result.success = @handler.getDefaultNotebook(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, 'getDefaultNotebook', seqid) + end + + def process_createNotebook(seqid, iprot, oprot) + args = read_args(iprot, CreateNotebook_args) + result = CreateNotebook_result.new() + begin + result.success = @handler.createNotebook(args.authenticationToken, args.notebook) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'createNotebook', seqid) + end + + def process_updateNotebook(seqid, iprot, oprot) + args = read_args(iprot, UpdateNotebook_args) + result = UpdateNotebook_result.new() + begin + result.success = @handler.updateNotebook(args.authenticationToken, args.notebook) + 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, 'updateNotebook', seqid) + end + + def process_expungeNotebook(seqid, iprot, oprot) + args = read_args(iprot, ExpungeNotebook_args) + result = ExpungeNotebook_result.new() + begin + result.success = @handler.expungeNotebook(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, 'expungeNotebook', seqid) + end + + def process_listTags(seqid, iprot, oprot) + args = read_args(iprot, ListTags_args) + result = ListTags_result.new() + begin + result.success = @handler.listTags(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, 'listTags', seqid) + end + + def process_listTagsByNotebook(seqid, iprot, oprot) + args = read_args(iprot, ListTagsByNotebook_args) + result = ListTagsByNotebook_result.new() + begin + result.success = @handler.listTagsByNotebook(args.authenticationToken, args.notebookGuid) + 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, 'listTagsByNotebook', seqid) + end + + def process_getTag(seqid, iprot, oprot) + args = read_args(iprot, GetTag_args) + result = GetTag_result.new() + begin + result.success = @handler.getTag(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, 'getTag', seqid) + end + + def process_createTag(seqid, iprot, oprot) + args = read_args(iprot, CreateTag_args) + result = CreateTag_result.new() + begin + result.success = @handler.createTag(args.authenticationToken, args.tag) + 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, 'createTag', seqid) + end + + def process_updateTag(seqid, iprot, oprot) + args = read_args(iprot, UpdateTag_args) + result = UpdateTag_result.new() + begin + result.success = @handler.updateTag(args.authenticationToken, args.tag) + 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, 'updateTag', seqid) + end + + def process_untagAll(seqid, iprot, oprot) + args = read_args(iprot, UntagAll_args) + result = UntagAll_result.new() + begin + @handler.untagAll(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, 'untagAll', seqid) + end + + def process_expungeTag(seqid, iprot, oprot) + args = read_args(iprot, ExpungeTag_args) + result = ExpungeTag_result.new() + begin + result.success = @handler.expungeTag(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, 'expungeTag', seqid) + end + + def process_listSearches(seqid, iprot, oprot) + args = read_args(iprot, ListSearches_args) + result = ListSearches_result.new() + begin + result.success = @handler.listSearches(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, 'listSearches', seqid) + end + + def process_getSearch(seqid, iprot, oprot) + args = read_args(iprot, GetSearch_args) + result = GetSearch_result.new() + begin + result.success = @handler.getSearch(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, 'getSearch', seqid) + end + + def process_createSearch(seqid, iprot, oprot) + args = read_args(iprot, CreateSearch_args) + result = CreateSearch_result.new() + begin + result.success = @handler.createSearch(args.authenticationToken, args.search) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'createSearch', seqid) + end + + def process_updateSearch(seqid, iprot, oprot) + args = read_args(iprot, UpdateSearch_args) + result = UpdateSearch_result.new() + begin + result.success = @handler.updateSearch(args.authenticationToken, args.search) + 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, 'updateSearch', seqid) + end + + def process_expungeSearch(seqid, iprot, oprot) + args = read_args(iprot, ExpungeSearch_args) + result = ExpungeSearch_result.new() + begin + result.success = @handler.expungeSearch(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, 'expungeSearch', seqid) + end + + def process_findNotes(seqid, iprot, oprot) + args = read_args(iprot, FindNotes_args) + result = FindNotes_result.new() + begin + result.success = @handler.findNotes(args.authenticationToken, args.filter, args.offset, args.maxNotes) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'findNotes', seqid) + end + + def process_findNoteCounts(seqid, iprot, oprot) + args = read_args(iprot, FindNoteCounts_args) + result = FindNoteCounts_result.new() + begin + result.success = @handler.findNoteCounts(args.authenticationToken, args.filter, args.withTrash) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'findNoteCounts', seqid) + end + + def process_getNote(seqid, iprot, oprot) + args = read_args(iprot, GetNote_args) + result = GetNote_result.new() + begin + result.success = @handler.getNote(args.authenticationToken, args.guid, args.withContent, 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, 'getNote', seqid) + end + + def process_getNoteContent(seqid, iprot, oprot) + args = read_args(iprot, GetNoteContent_args) + result = GetNoteContent_result.new() + begin + result.success = @handler.getNoteContent(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, 'getNoteContent', seqid) + end + + def process_getNoteSearchText(seqid, iprot, oprot) + args = read_args(iprot, GetNoteSearchText_args) + result = GetNoteSearchText_result.new() + begin + result.success = @handler.getNoteSearchText(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, 'getNoteSearchText', seqid) + end + + def process_getNoteTagNames(seqid, iprot, oprot) + args = read_args(iprot, GetNoteTagNames_args) + result = GetNoteTagNames_result.new() + begin + result.success = @handler.getNoteTagNames(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, 'getNoteTagNames', seqid) + end + + def process_createNote(seqid, iprot, oprot) + args = read_args(iprot, CreateNote_args) + result = CreateNote_result.new() + begin + result.success = @handler.createNote(args.authenticationToken, args.note) + 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, 'createNote', seqid) + end + + def process_updateNote(seqid, iprot, oprot) + args = read_args(iprot, UpdateNote_args) + result = UpdateNote_result.new() + begin + result.success = @handler.updateNote(args.authenticationToken, args.note) + 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, 'updateNote', seqid) + end + + def process_expungeNote(seqid, iprot, oprot) + args = read_args(iprot, ExpungeNote_args) + result = ExpungeNote_result.new() + begin + result.success = @handler.expungeNote(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, 'expungeNote', seqid) + end + + def process_expungeNotes(seqid, iprot, oprot) + args = read_args(iprot, ExpungeNotes_args) + result = ExpungeNotes_result.new() + begin + result.success = @handler.expungeNotes(args.authenticationToken, args.noteGuids) + 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, 'expungeNotes', seqid) + end + + def process_expungeInactiveNotes(seqid, iprot, oprot) + args = read_args(iprot, ExpungeInactiveNotes_args) + result = ExpungeInactiveNotes_result.new() + begin + result.success = @handler.expungeInactiveNotes(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, 'expungeInactiveNotes', seqid) + end + + def process_copyNote(seqid, iprot, oprot) + args = read_args(iprot, CopyNote_args) + result = CopyNote_result.new() + begin + result.success = @handler.copyNote(args.authenticationToken, args.noteGuid, args.toNotebookGuid) + 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, 'copyNote', seqid) + end + + def process_getResource(seqid, iprot, oprot) + args = read_args(iprot, GetResource_args) + result = GetResource_result.new() + begin + result.success = @handler.getResource(args.authenticationToken, args.guid, args.withData, args.withRecognition, args.withAttributes, args.withAlternateData) + 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, 'getResource', seqid) + end + + def process_updateResource(seqid, iprot, oprot) + args = read_args(iprot, UpdateResource_args) + result = UpdateResource_result.new() + begin + result.success = @handler.updateResource(args.authenticationToken, args.resource) + 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, 'updateResource', seqid) + end + + def process_getResourceData(seqid, iprot, oprot) + args = read_args(iprot, GetResourceData_args) + result = GetResourceData_result.new() + begin + result.success = @handler.getResourceData(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, 'getResourceData', seqid) + end + + def process_getResourceByHash(seqid, iprot, oprot) + args = read_args(iprot, GetResourceByHash_args) + result = GetResourceByHash_result.new() + begin + result.success = @handler.getResourceByHash(args.authenticationToken, args.noteGuid, args.contentHash, args.withData, args.withRecognition, args.withAlternateData) + 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, 'getResourceByHash', seqid) + end + + def process_getResourceRecognition(seqid, iprot, oprot) + args = read_args(iprot, GetResourceRecognition_args) + result = GetResourceRecognition_result.new() + begin + result.success = @handler.getResourceRecognition(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, 'getResourceRecognition', seqid) + end + + def process_getResourceAlternateData(seqid, iprot, oprot) + args = read_args(iprot, GetResourceAlternateData_args) + result = GetResourceAlternateData_result.new() + begin + result.success = @handler.getResourceAlternateData(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, 'getResourceAlternateData', seqid) + end + + def process_getResourceAttributes(seqid, iprot, oprot) + args = read_args(iprot, GetResourceAttributes_args) + result = GetResourceAttributes_result.new() + begin + result.success = @handler.getResourceAttributes(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, 'getResourceAttributes', seqid) + end + + def process_getAccountSize(seqid, iprot, oprot) + args = read_args(iprot, GetAccountSize_args) + result = GetAccountSize_result.new() + begin + result.success = @handler.getAccountSize(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, 'getAccountSize', seqid) + end + + def process_getAds(seqid, iprot, oprot) + args = read_args(iprot, GetAds_args) + result = GetAds_result.new() + begin + result.success = @handler.getAds(args.authenticationToken, args.adParameters) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'getAds', seqid) + end + + def process_getRandomAd(seqid, iprot, oprot) + args = read_args(iprot, GetRandomAd_args) + result = GetRandomAd_result.new() + begin + result.success = @handler.getRandomAd(args.authenticationToken, args.adParameters) + rescue Evernote::EDAM::Error::EDAMUserException => userException + result.userException = userException + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + end + write_result(result, oprot, 'getRandomAd', seqid) + end + + def process_getPublicNotebook(seqid, iprot, oprot) + args = read_args(iprot, GetPublicNotebook_args) + result = GetPublicNotebook_result.new() + begin + result.success = @handler.getPublicNotebook(args.userId, args.publicUri) + rescue Evernote::EDAM::Error::EDAMSystemException => systemException + result.systemException = systemException + rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException + result.notFoundException = notFoundException + end + write_result(result, oprot, 'getPublicNotebook', seqid) + end + + def process_createSharedNotebook(seqid, iprot, oprot) + args = read_args(iprot, CreateSharedNotebook_args) + result = CreateSharedNotebook_result.new() + begin + result.success = @handler.createSharedNotebook(args.authenticationToken, args.sharedNotebook) + 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, 'createSharedNotebook', seqid) + end + + def process_listSharedNotebooks(seqid, iprot, oprot) + args = read_args(iprot, ListSharedNotebooks_args) + result = ListSharedNotebooks_result.new() + begin + result.success = @handler.listSharedNotebooks(args.authenticationToken) + 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, 'listSharedNotebooks', seqid) + end + + def process_expungeSharedNotebooks(seqid, iprot, oprot) + args = read_args(iprot, ExpungeSharedNotebooks_args) + result = ExpungeSharedNotebooks_result.new() + begin + result.success = @handler.expungeSharedNotebooks(args.authenticationToken, args.sharedNotebookIds) + 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, 'expungeSharedNotebooks', seqid) + end + + def process_createLinkedNotebook(seqid, iprot, oprot) + args = read_args(iprot, CreateLinkedNotebook_args) + result = CreateLinkedNotebook_result.new() + begin + result.success = @handler.createLinkedNotebook(args.authenticationToken, args.linkedNotebook) + 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, 'createLinkedNotebook', seqid) + end + + def process_updateLinkedNotebook(seqid, iprot, oprot) + args = read_args(iprot, UpdateLinkedNotebook_args) + result = UpdateLinkedNotebook_result.new() + begin + result.success = @handler.updateLinkedNotebook(args.authenticationToken, args.linkedNotebook) + 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, 'updateLinkedNotebook', seqid) + end + + def process_listLinkedNotebooks(seqid, iprot, oprot) + args = read_args(iprot, ListLinkedNotebooks_args) + result = ListLinkedNotebooks_result.new() + begin + result.success = @handler.listLinkedNotebooks(args.authenticationToken) + 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, 'listLinkedNotebooks', seqid) + end + + def process_expungeLinkedNotebook(seqid, iprot, oprot) + args = read_args(iprot, ExpungeLinkedNotebook_args) + result = ExpungeLinkedNotebook_result.new() + begin + result.success = @handler.expungeLinkedNotebook(args.authenticationToken, args.linkedNotebookId) + 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, 'expungeLinkedNotebook', seqid) + end + + def process_authenticateToSharedNotebook(seqid, iprot, oprot) + args = read_args(iprot, AuthenticateToSharedNotebook_args) + result = AuthenticateToSharedNotebook_result.new() + begin + result.success = @handler.authenticateToSharedNotebook(args.shareKey, args.authenticationToken) + 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, 'authenticateToSharedNotebook', seqid) + end + + def process_getSharedNotebookByAuth(seqid, iprot, oprot) + args = read_args(iprot, GetSharedNotebookByAuth_args) + result = GetSharedNotebookByAuth_result.new() + begin + result.success = @handler.getSharedNotebookByAuth(args.authenticationToken) + 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, 'getSharedNotebookByAuth', seqid) + end + + def process_emailNote(seqid, iprot, oprot) + args = read_args(iprot, EmailNote_args) + result = EmailNote_result.new() + begin + @handler.emailNote(args.authenticationToken, args.parameters) + 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, 'emailNote', seqid) + end + + end + + # HELPER FUNCTIONS AND STRUCTURES + + class GetSyncState_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetSyncState_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetSyncChunk_args + include ::Thrift::Struct + 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'}, + MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'}, + FULLSYNCONLY => {:type => ::Thrift::Types::BOOL, :name => 'fullSyncOnly'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetSyncChunk_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListNotebooks_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListNotebooks_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetNotebook_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetDefaultNotebook_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetDefaultNotebook_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateNotebook_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateNotebook_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateNotebook_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeNotebook_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ListTags_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListTags_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListTagsByNotebook_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListTagsByNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetTag_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetTag_result + include ::Thrift::Struct + 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}, + 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 + + end + + class CreateTag_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateTag_result + include ::Thrift::Struct + 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}, + 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 + + end + + class UpdateTag_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateTag_result + include ::Thrift::Struct + 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}, + 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 + + end + + class UntagAll_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UntagAll_result + include ::Thrift::Struct + 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}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeTag_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeTag_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ListSearches_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListSearches_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetSearch_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetSearch_result + include ::Thrift::Struct + 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}, + 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 + + end + + class CreateSearch_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateSearch_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateSearch_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateSearch_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeSearch_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeSearch_result + include ::Thrift::Struct + 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}, + 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 + + end + + class FindNotes_args + include ::Thrift::Struct + 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}, + OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'}, + MAXNOTES => {:type => ::Thrift::Types::I32, :name => 'maxNotes'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class FindNotes_result + include ::Thrift::Struct + 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::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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class FindNoteCounts_args + include ::Thrift::Struct + 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}, + WITHTRASH => {:type => ::Thrift::Types::BOOL, :name => 'withTrash'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class FindNoteCounts_result + include ::Thrift::Struct + 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::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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetNote_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + GUID = 2 + WITHCONTENT = 3 + WITHRESOURCESDATA = 4 + 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'}, + WITHCONTENT => {:type => ::Thrift::Types::BOOL, :name => 'withContent'}, + 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 + + end + + class GetNote_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetNoteContent_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetNoteContent_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetNoteSearchText_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetNoteSearchText_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetNoteTagNames_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetNoteTagNames_result + include ::Thrift::Struct + 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}, + 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 + + end + + class CreateNote_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateNote_result + include ::Thrift::Struct + 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}, + 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 + + end + + class UpdateNote_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateNote_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeNote_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeNote_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeNotes_args + include ::Thrift::Struct + 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}} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeNotes_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeInactiveNotes_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeInactiveNotes_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CopyNote_args + include ::Thrift::Struct + 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'}, + TONOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'toNotebookGuid'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CopyNote_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetResource_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + GUID = 2 + WITHDATA = 3 + WITHRECOGNITION = 4 + 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'}, + WITHDATA => {:type => ::Thrift::Types::BOOL, :name => 'withData'}, + WITHRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withRecognition'}, + WITHATTRIBUTES => {:type => ::Thrift::Types::BOOL, :name => 'withAttributes'}, + WITHALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withAlternateData'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetResource_result + include ::Thrift::Struct + 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}, + 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 + + end + + class UpdateResource_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateResource_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetResourceData_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetResourceData_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetResourceByHash_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + NOTEGUID = 2 + CONTENTHASH = 3 + WITHDATA = 4 + 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'}, + WITHDATA => {:type => ::Thrift::Types::BOOL, :name => 'withData'}, + WITHRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withRecognition'}, + WITHALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withAlternateData'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetResourceByHash_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetResourceRecognition_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetResourceRecognition_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetResourceAlternateData_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetResourceAlternateData_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetResourceAttributes_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetResourceAttributes_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetAccountSize_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetAccountSize_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetAds_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetAds_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetRandomAd_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetRandomAd_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetPublicNotebook_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetPublicNotebook_result + include ::Thrift::Struct + 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}, + NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateSharedNotebook_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateSharedNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ListSharedNotebooks_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListSharedNotebooks_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeSharedNotebooks_args + include ::Thrift::Struct + 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}} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeSharedNotebooks_result + include ::Thrift::Struct + 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}, + 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 + + end + + class CreateLinkedNotebook_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class CreateLinkedNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class UpdateLinkedNotebook_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class UpdateLinkedNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ListLinkedNotebooks_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ListLinkedNotebooks_result + include ::Thrift::Struct + 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}, + 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 + + end + + class ExpungeLinkedNotebook_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + LINKEDNOTEBOOKID = 2 + + ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebookId + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, + LINKEDNOTEBOOKID => {:type => ::Thrift::Types::I64, :name => 'linkedNotebookId'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class ExpungeLinkedNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class AuthenticateToSharedNotebook_args + include ::Thrift::Struct + 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'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class AuthenticateToSharedNotebook_result + include ::Thrift::Struct + 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}, + 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 + + end + + class GetSharedNotebookByAuth_args + include ::Thrift::Struct + AUTHENTICATIONTOKEN = 1 + + ::Thrift::Struct.field_accessor self, :authenticationToken + FIELDS = { + AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class GetSharedNotebookByAuth_result + include ::Thrift::Struct + 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}, + 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 + + end + + class EmailNote_args + include ::Thrift::Struct + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + class EmailNote_result + include ::Thrift::Struct + 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}, + SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} + } + + def struct_fields; FIELDS; end + + def validate + end + + end + + end + + end + end + end diff --git a/vendor/gen-rb/evernote/edam/note_store_constants.rb b/vendor/gen-rb/evernote/edam/note_store_constants.rb new file mode 100644 index 0000000..6ad8a6d --- /dev/null +++ b/vendor/gen-rb/evernote/edam/note_store_constants.rb @@ -0,0 +1,14 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + +require 'note_store_types' + + module Evernote + module EDAM + module NoteStore + end + end +end diff --git a/vendor/gen-rb/evernote/edam/note_store_types.rb b/vendor/gen-rb/evernote/edam/note_store_types.rb new file mode 100644 index 0000000..7fdf61c --- /dev/null +++ b/vendor/gen-rb/evernote/edam/note_store_types.rb @@ -0,0 +1,571 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + +require 'user_store_types' +require 'types_types' +require 'errors_types' +require 'limits_types' + + +module Evernote + module EDAM + module NoteStore + # This structure encapsulates the information about the state of the + # user's account for the purpose of "state based" synchronization. + #