summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Rakefile1
-rw-r--r--lib/evernote.rb7
-rw-r--r--vendor/gen-rb/evernote.rb12
-rw-r--r--vendor/gen-rb/evernote/edam/errors_types.rb123
-rw-r--r--vendor/gen-rb/evernote/edam/limits_constants.rb187
-rw-r--r--vendor/gen-rb/evernote/edam/limits_types.rb13
-rw-r--r--vendor/gen-rb/evernote/edam/note_store.rb3834
-rw-r--r--vendor/gen-rb/evernote/edam/note_store_constants.rb14
-rw-r--r--vendor/gen-rb/evernote/edam/note_store_types.rb571
-rw-r--r--vendor/gen-rb/evernote/edam/types_constants.rb20
-rw-r--r--vendor/gen-rb/evernote/edam/types_types.rb1533
-rw-r--r--vendor/gen-rb/evernote/edam/user_store.rb363
-rw-r--r--vendor/gen-rb/evernote/edam/user_store_constants.rb18
-rw-r--r--vendor/gen-rb/evernote/edam/user_store_types.rb123
15 files changed, 6820 insertions, 0 deletions
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.
+ # <dl>
+ # <dt>currentTime</dt>
+ # <dd>
+ # The server's current date and time.
+ # </dd>
+ #
+ # <dt>fullSyncBefore</dt>
+ # <dd>
+ # The cutoff date and time for client caches to be
+ # updated via incremental synchronization. Any clients that were last
+ # synched with the server before this date/time must do a full resync of all
+ # objects. This cutoff point will change over time as archival data is
+ # deleted or special circumstances on the service require resynchronization.
+ # </dd>
+ #
+ # <dt>updateCount</dt>
+ # <dd>
+ # Indicates the total number of transactions that have
+ # been committed within the account. This reflects (for example) the
+ # number of discrete additions or modifications that have been made to
+ # the data in this account (tags, notes, resources, etc.).
+ # This number is the "high water mark" for Update Sequence Numbers (USN)
+ # within the account.
+ # </dd>
+ #
+ # <dt>uploaded</dt>
+ # <dd>
+ # The total number of bytes that have been uploaded to
+ # this account in the current monthly period. This can be compared against
+ # Accounting.uploadLimit (from the UserStore) to determine how close the user
+ # is to their monthly upload limit.
+ # </dd>
+ # </dl>
+ class SyncState
+ include ::Thrift::Struct
+ CURRENTTIME = 1
+ FULLSYNCBEFORE = 2
+ UPDATECOUNT = 3
+ UPLOADED = 4
+
+ ::Thrift::Struct.field_accessor self, :currentTime, :fullSyncBefore, :updateCount, :uploaded
+ FIELDS = {
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
+ FULLSYNCBEFORE => {:type => ::Thrift::Types::I64, :name => 'fullSyncBefore'},
+ UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount'},
+ UPLOADED => {:type => ::Thrift::Types::I64, :name => 'uploaded', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fullSyncBefore is unset!') unless @fullSyncBefore
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount
+ end
+
+ end
+
+ # This structure is given out by the NoteStore when a client asks to
+ # receive the current state of an account. The client asks for the server's
+ # state one chunk at a time in order to allow clients to retrieve the state
+ # of a large account without needing to transfer the entire account in
+ # a single message.
+ #
+ # The server always gives SyncChunks using an ascending series of Update
+ # Sequence Numbers (USNs).
+ #
+ # <dl>
+ # <dt>currentTime</dt>
+ # <dd>
+ # The server's current date and time.
+ # </dd>
+ #
+ # <dt>chunkHighUSN</dt>
+ # <dd>
+ # The highest USN for any of the data objects represented
+ # in this sync chunk. If there are no objects in the chunk, this will not be
+ # set.
+ # </dd>
+ #
+ # <dt>updateCount</dt>
+ # <dd>
+ # The total number of updates that have been performed in
+ # the service for this account. This is equal to the highest USN within the
+ # account at the point that this SyncChunk was generated. If updateCount
+ # and chunkHighUSN are identical, that means that this is the last chunk
+ # in the account ... there is no more recent information.
+ # </dd>
+ #
+ # <dt>notes</dt>
+ # <dd>
+ # If present, this is a list of non-expunged notes that
+ # have a USN in this chunk. This will include notes that are "deleted"
+ # but not expunged (i.e. in the trash). The notes will include their list
+ # of tags and resources, but the resource content and recognition data
+ # will not be supplied.
+ # </dd>
+ #
+ # <dt>notebooks</dt>
+ # <dd>
+ # If present, this is a list of non-expunged notebooks that
+ # have a USN in this chunk. This will include notebooks that are "deleted"
+ # but not expunged (i.e. in the trash).
+ # </dd>
+ #
+ # <dt>tags</dt>
+ # <dd>
+ # If present, this is a list of the non-expunged tags that have a
+ # USN in this chunk.
+ # </dd>
+ #
+ # <dt>searches</dt>
+ # <dd>
+ # If present, this is a list of non-expunged searches that
+ # have a USN in this chunk.
+ # </dd>
+ #
+ # <dt>resources</dt>
+ # <dd>
+ # If present, this is a list of the non-expunged resources
+ # that have a USN in this chunk. This will include the metadata for each
+ # resource, but not its binary contents or recognition data, which must be
+ # retrieved separately.
+ # </dd>
+ #
+ # <dt>expungedNotes</dt>
+ # <dd>
+ # If present, the GUIDs of all of the notes that were
+ # permanently expunged in this chunk.
+ # </dd>
+ #
+ # <dt>expungedNotebooks</dt>
+ # <dd>
+ # If present, the GUIDs of all of the notebooks that
+ # were permanently expunged in this chunk. When a notebook is expunged,
+ # this implies that all of its child notes (and their resources) were
+ # also expunged.
+ # </dd>
+ #
+ # <dt>expungedTags</dt>
+ # <dd>
+ # If present, the GUIDs of all of the tags that were
+ # permanently expunged in this chunk.
+ # </dd>
+ #
+ # <dt>expungedSearches</dt>
+ # <dd>
+ # If present, the GUIDs of all of the saved searches
+ # that were permanently expunged in this chunk.
+ # </dd>
+ # </dl>
+ class SyncChunk
+ include ::Thrift::Struct
+ CURRENTTIME = 1
+ CHUNKHIGHUSN = 2
+ UPDATECOUNT = 3
+ NOTES = 4
+ NOTEBOOKS = 5
+ TAGS = 6
+ SEARCHES = 7
+ RESOURCES = 8
+ EXPUNGEDNOTES = 9
+ EXPUNGEDNOTEBOOKS = 10
+ EXPUNGEDTAGS = 11
+ EXPUNGEDSEARCHES = 12
+
+ ::Thrift::Struct.field_accessor self, :currentTime, :chunkHighUSN, :updateCount, :notes, :notebooks, :tags, :searches, :resources, :expungedNotes, :expungedNotebooks, :expungedTags, :expungedSearches
+ FIELDS = {
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
+ CHUNKHIGHUSN => {:type => ::Thrift::Types::I32, :name => 'chunkHighUSN', :optional => true},
+ UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount'},
+ NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Note}, :optional => true},
+ NOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'notebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Notebook}, :optional => true},
+ TAGS => {:type => ::Thrift::Types::LIST, :name => 'tags', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}, :optional => true},
+ SEARCHES => {:type => ::Thrift::Types::LIST, :name => 'searches', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SavedSearch}, :optional => true},
+ RESOURCES => {:type => ::Thrift::Types::LIST, :name => 'resources', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Resource}, :optional => true},
+ EXPUNGEDNOTES => {:type => ::Thrift::Types::LIST, :name => 'expungedNotes', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ EXPUNGEDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'expungedNotebooks', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ EXPUNGEDTAGS => {:type => ::Thrift::Types::LIST, :name => 'expungedTags', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ EXPUNGEDSEARCHES => {:type => ::Thrift::Types::LIST, :name => 'expungedSearches', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field updateCount is unset!') unless @updateCount
+ end
+
+ end
+
+ # A list of criteria that are used to indicate which notes are desired from
+ # the account. This is used in queries to the NoteStore to determine
+ # which notes should be retrieved.
+ #
+ # <dl>
+ # <dt>order</dt>
+ # <dd>
+ # The NoteSortOrder value indicating what criterion should be
+ # used to sort the results of the filter.
+ # </dd>
+ #
+ # <dt>ascending</dt>
+ # <dd>
+ # If true, the results will be ascending in the requested
+ # sort order. If false, the results will be descending.
+ # </dd>
+ #
+ # <dt>words</dt>
+ # <dd>
+ # The string query containing keywords to match, if present.
+ # </dd>
+ #
+ # <dt>notebookGuid</dt>
+ # <dd>
+ # If present, the Guid of the notebook that must contain
+ # the notes.
+ # </dd>
+ #
+ # <dt>tagGuids</dt>
+ # <dd>
+ # If present, the list of tags (by GUID) that must be present
+ # on the notes.
+ # </dd>
+ #
+ # <dt>timeZone</dt>
+ # <dd>
+ # The zone ID for the user, which will be used to interpret
+ # any dates or times in the queries that do not include their desired zone
+ # information.
+ # For example, if a query requests notes created "yesterday", this
+ # will be evaluated from the provided time zone, if provided.
+ # The format must be encoded as a standard zone ID such as
+ # "America/Los_Angeles".
+ # </dd>
+ #
+ # <dt>inactive</dt>
+ # <dd>
+ # If true, then only notes that are not active (i.e. notes in
+ # the Trash) will be returned. Otherwise, only active notes will be returned.
+ # There is no way to find both active and inactive notes in a single query.
+ # </dd>
+ # </dl>
+ class NoteFilter
+ include ::Thrift::Struct
+ ORDER = 1
+ ASCENDING = 2
+ WORDS = 3
+ NOTEBOOKGUID = 4
+ TAGGUIDS = 5
+ TIMEZONE = 6
+ INACTIVE = 7
+
+ ::Thrift::Struct.field_accessor self, :order, :ascending, :words, :notebookGuid, :tagGuids, :timeZone, :inactive
+ FIELDS = {
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :optional => true},
+ ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :optional => true},
+ WORDS => {:type => ::Thrift::Types::STRING, :name => 'words', :optional => true},
+ NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid', :optional => true},
+ TAGGUIDS => {:type => ::Thrift::Types::LIST, :name => 'tagGuids', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ TIMEZONE => {:type => ::Thrift::Types::STRING, :name => 'timeZone', :optional => true},
+ INACTIVE => {:type => ::Thrift::Types::BOOL, :name => 'inactive', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # A small structure for returning a list of notes out of a larger set.
+ #
+ # <dl>
+ # <dt>startIndex</dt>
+ # <dd>
+ # The starting index within the overall set of notes. This
+ # is also the number of notes that are "before" this list in the set.
+ # </dd>
+ #
+ # <dt>totalNotes</dt>
+ # <dd>
+ # The number of notes in the larger set. This can be used
+ # to calculate how many notes are "after" this note in the set.
+ # (I.e. remaining = totalNotes - (startIndex + notes.length) )
+ # </dd>
+ #
+ # <dt>notes</dt>
+ # <dd>
+ # The list of notes from this range. The Notes will include all
+ # metadata (attributes, resources, etc.), but will not include the ENML
+ # content of the note or the binary contents of any resources.
+ # </dd>
+ #
+ # <dt>stoppedWords</dt>
+ # <dd>
+ # If the NoteList was produced using a text based search
+ # query that included words that are not indexed or searched by the service,
+ # this will include a list of those ignored words.
+ # </dd>
+ #
+ # <dt>searchedWords</dt>
+ # <dd>
+ # If the NoteList was produced using a text based search
+ # query that included viable search words or quoted expressions, this will
+ # include a list of those words. Any stopped words will not be included
+ # in this list.
+ # </dd>
+ # </dl>
+ class NoteList
+ include ::Thrift::Struct
+ STARTINDEX = 1
+ TOTALNOTES = 2
+ NOTES = 3
+ STOPPEDWORDS = 4
+ SEARCHEDWORDS = 5
+
+ ::Thrift::Struct.field_accessor self, :startIndex, :totalNotes, :notes, :stoppedWords, :searchedWords
+ FIELDS = {
+ STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
+ TOTALNOTES => {:type => ::Thrift::Types::I32, :name => 'totalNotes'},
+ NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Note}},
+ STOPPEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'stoppedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ SEARCHEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'searchedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startIndex is unset!') unless @startIndex
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalNotes is unset!') unless @totalNotes
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field notes is unset!') unless @notes
+ end
+
+ end
+
+ # A data structure representing the number of notes for each notebook
+ # and tag with a non-zero set of applicable notes.
+ #
+ # <dl>
+ # <dt>notebookCounts</dt>
+ # <dd>
+ # A mapping from the Notebook GUID to the number of
+ # notes (from some selection) that are in the corresponding notebook.
+ # </dd>
+ #
+ # <dt>tagCounts</dt>
+ # <dd>
+ # A mapping from the Tag GUID to the number of notes (from some
+ # selection) that have the corresponding tag.
+ # </dd>
+ #
+ # <dt>trashCount</dt>
+ # <dd>
+ # If this is set, then this is the number of notes that are in the trash.
+ # If this is not set, then the number of notes in the trash hasn't been
+ # reported. (I.e. if there are no notes in the trash, this will be set
+ # to 0.)
+ # </dd>
+ # </dl>
+ class NoteCollectionCounts
+ include ::Thrift::Struct
+ NOTEBOOKCOUNTS = 1
+ TAGCOUNTS = 2
+ TRASHCOUNT = 3
+
+ ::Thrift::Struct.field_accessor self, :notebookCounts, :tagCounts, :trashCount
+ FIELDS = {
+ NOTEBOOKCOUNTS => {:type => ::Thrift::Types::MAP, :name => 'notebookCounts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true},
+ TAGCOUNTS => {:type => ::Thrift::Types::MAP, :name => 'tagCounts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true},
+ TRASHCOUNT => {:type => ::Thrift::Types::I32, :name => 'trashCount', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # Information for tracking the display of a particular ad by a client.
+ #
+ # <dl>
+ # <dt>adId</dt>
+ # <dd>
+ # The identifier for this ad, from a previous Ad.id given to the client
+ # </dd>
+ #
+ # <dt>impressionCount</dt>
+ # <dd>
+ # The number of times this ad was displayed since the last successful
+ # ad retrieval. The client should only report times the ad was selected
+ # when the client was visible.
+ # </dd>
+ #
+ # <dt>impressionTime</dt>
+ # <dd>
+ # The number of seconds that the client displayed the advertisement since
+ # the last successful ad retrieval. This corresponds to the seconds that
+ # the client application was visible.
+ # </dd>
+ # </dl>
+ class AdImpressions
+ include ::Thrift::Struct
+ ADID = 1
+ IMPRESSIONCOUNT = 2
+ IMPRESSIONTIME = 3
+
+ ::Thrift::Struct.field_accessor self, :adId, :impressionCount, :impressionTime
+ FIELDS = {
+ ADID => {:type => ::Thrift::Types::I32, :name => 'adId'},
+ IMPRESSIONCOUNT => {:type => ::Thrift::Types::I32, :name => 'impressionCount'},
+ IMPRESSIONTIME => {:type => ::Thrift::Types::I32, :name => 'impressionTime'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field adId is unset!') unless @adId
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field impressionCount is unset!') unless @impressionCount
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field impressionTime is unset!') unless @impressionTime
+ end
+
+ end
+
+ # Parameters that will be given by a client to the service when it requests
+ # a set of advertisements to display. If any of these values are omitted,
+ # the service will use default values.
+ #
+ # <dl>
+ # <dt>clientLanguage</dt>
+ # <dd>
+ # The ISO 639-1 language code for the primary language for the client.
+ # If omitted, English will be assumed ('en').
+ # </dd>
+ #
+ # <dt>impressions</dt>
+ # <dd>
+ # A list of the impression counts and total display time for the ads
+ # that were displayed in the last day.
+ # </dd>
+ #
+ # <dt>supportHtml</dt>
+ # <dd>
+ # If true, the client requesting the ads supports ads specified via
+ # general HTML (with rich media, Javascript, etc.).
+ # </dd>
+ #
+ # <dt>clientProperties</dt>
+ # <dd>
+ # If provided, this may contain a set of key/value pairs that identify
+ # the characteristics of a particular client that may be used to help
+ # determine appropriate ads for that client. These tuples may be used
+ # either to reduce or increase the likelihood that each ad will be
+ # returned.
+ # </dd>
+ # </dl>
+ class AdParameters
+ include ::Thrift::Struct
+ CLIENTLANGUAGE = 2
+ IMPRESSIONS = 4
+ SUPPORTHTML = 5
+ CLIENTPROPERTIES = 6
+
+ ::Thrift::Struct.field_accessor self, :clientLanguage, :impressions, :supportHtml, :clientProperties
+ FIELDS = {
+ CLIENTLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'clientLanguage', :optional => true},
+ IMPRESSIONS => {:type => ::Thrift::Types::LIST, :name => 'impressions', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::NoteStore::AdImpressions}, :optional => true},
+ SUPPORTHTML => {:type => ::Thrift::Types::BOOL, :name => 'supportHtml', :optional => true},
+ CLIENTPROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'clientProperties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # Parameters that must be given to the NoteStore emailNote call. These allow
+ # the caller to specify the note to send, the recipient addresses, etc.
+ #
+ # <dl>
+ # <dt>guid</dt>
+ # <dd>
+ # If set, this must be the GUID of a note within the user's account that
+ # should be retrieved from the service and sent as email. If not set,
+ # the 'note' field must be provided instead.
+ # </dd>
+ #
+ # <dt>note</dt>
+ # <dd>
+ # If the 'guid' field is not set, this field must be provided, including
+ # the full contents of the note note (and all of its Resources) to send.
+ # This can be used for a Note that as not been created in the service,
+ # for example by a local client with local notes.
+ # </dd>
+ #
+ # <dt>toAddresses</dt>
+ # <dd>
+ # If provided, this should contain a list of the SMTP email addresses
+ # that should be included in the "To:" line of the email.
+ # Callers must specify at least one "to" or "cc" email address.
+ # </dd>
+ #
+ # <dt>ccAddresses</dt>
+ # <dd>
+ # If provided, this should contain a list of the SMTP email addresses
+ # that should be included in the "Cc:" line of the email.
+ # Callers must specify at least one "to" or "cc" email address.
+ # </dd>
+ #
+ # <dt>subject</dt>
+ # <dd>
+ # If provided, this should contain the subject line of the email that
+ # will be sent. If not provided, the title of the note will be used
+ # as the subject of the email.
+ # </dd>
+ #
+ # <dt>message</dt>
+ # <dd>
+ # If provided, this is additional personal text that should be included
+ # into the email as a message from the owner to the recipient(s).
+ # </dd>
+ # </dl>
+ class NoteEmailParameters
+ include ::Thrift::Struct
+ GUID = 1
+ NOTE = 2
+ TOADDRESSES = 3
+ CCADDRESSES = 4
+ SUBJECT = 5
+ MESSAGE = 6
+
+ ::Thrift::Struct.field_accessor self, :guid, :note, :toAddresses, :ccAddresses, :subject, :message
+ FIELDS = {
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
+ NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note, :optional => true},
+ TOADDRESSES => {:type => ::Thrift::Types::LIST, :name => 'toAddresses', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ CCADDRESSES => {:type => ::Thrift::Types::LIST, :name => 'ccAddresses', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ SUBJECT => {:type => ::Thrift::Types::STRING, :name => 'subject', :optional => true},
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ end
+ end
+ end
diff --git a/vendor/gen-rb/evernote/edam/types_constants.rb b/vendor/gen-rb/evernote/edam/types_constants.rb
new file mode 100644
index 0000000..68cc3cc
--- /dev/null
+++ b/vendor/gen-rb/evernote/edam/types_constants.rb
@@ -0,0 +1,20 @@
+#
+# Autogenerated by Thrift
+#
+# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+#
+
+require 'types_types'
+
+ module Evernote
+ module EDAM
+ module Type
+ EDAM_NOTE_SOURCE_WEB_CLIP = %q"web.clip"
+
+ EDAM_NOTE_SOURCE_MAIL_CLIP = %q"mail.clip"
+
+ EDAM_NOTE_SOURCE_MAIL_SMTP_GATEWAY = %q"mail.smtp"
+
+ end
+ end
+end
diff --git a/vendor/gen-rb/evernote/edam/types_types.rb b/vendor/gen-rb/evernote/edam/types_types.rb
new file mode 100644
index 0000000..ba3ef1e
--- /dev/null
+++ b/vendor/gen-rb/evernote/edam/types_types.rb
@@ -0,0 +1,1533 @@
+#
+# 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 Type
+ module PrivilegeLevel
+ NORMAL = 1
+ PREMIUM = 3
+ MANAGER = 7
+ SUPPORT = 8
+ ADMIN = 9
+ VALUE_MAP = {1 => "NORMAL", 3 => "PREMIUM", 7 => "MANAGER", 8 => "SUPPORT", 9 => "ADMIN"}
+ VALID_VALUES = Set.new([NORMAL, PREMIUM, MANAGER, SUPPORT, ADMIN]).freeze
+ end
+
+ module QueryFormat
+ USER = 1
+ SEXP = 2
+ VALUE_MAP = {1 => "USER", 2 => "SEXP"}
+ VALID_VALUES = Set.new([USER, SEXP]).freeze
+ end
+
+ module NoteSortOrder
+ CREATED = 1
+ UPDATED = 2
+ RELEVANCE = 3
+ UPDATE_SEQUENCE_NUMBER = 4
+ VALUE_MAP = {1 => "CREATED", 2 => "UPDATED", 3 => "RELEVANCE", 4 => "UPDATE_SEQUENCE_NUMBER"}
+ VALID_VALUES = Set.new([CREATED, UPDATED, RELEVANCE, UPDATE_SEQUENCE_NUMBER]).freeze
+ end
+
+ module PremiumOrderStatus
+ NONE = 0
+ PENDING = 1
+ ACTIVE = 2
+ FAILED = 3
+ CANCELLATION_PENDING = 4
+ CANCELED = 5
+ VALUE_MAP = {0 => "NONE", 1 => "PENDING", 2 => "ACTIVE", 3 => "FAILED", 4 => "CANCELLATION_PENDING", 5 => "CANCELED"}
+ VALID_VALUES = Set.new([NONE, PENDING, ACTIVE, FAILED, CANCELLATION_PENDING, CANCELED]).freeze
+ end
+
+ # In several places, EDAM exchanges blocks of bytes of data for a component
+ # which may be relatively large. For example: the contents of a clipped
+ # HTML note, the bytes of an embedded image, or the recognition XML for
+ # a large image. This structure is used in the protocol to represent
+ # any of those large blocks of data when they are transmitted or when
+ # they are only referenced their metadata.
+ #
+ # <dl>
+ # <dt>bodyHash</dt>
+ # <dd>This field carries a one-way hash of the contents of the
+ # data body, in binary form. The hash function is MD5<br/>
+ # Length: EDAM_HASH_LEN (exactly)
+ # </dd>
+ #
+ # <dt>size</dt>
+ # <dd>The length, in bytes, of the data body.
+ # </dd>
+ #
+ # <dt>body</dt>
+ # <dd>This field is set to contain the binary contents of the data
+ # whenever the resource is being transferred. If only metadata is
+ # being exchanged, this field will be empty. For example, a client could
+ # notify the service about the change to an attribute for a resource
+ # without transmitting the binary resource contents.
+ # </dd>
+ # </dl>
+ class Data
+ include ::Thrift::Struct
+ BODYHASH = 1
+ SIZE = 2
+ BODY = 3
+
+ ::Thrift::Struct.field_accessor self, :bodyHash, :size, :body
+ FIELDS = {
+ BODYHASH => {:type => ::Thrift::Types::STRING, :name => 'bodyHash', :optional => true},
+ SIZE => {:type => ::Thrift::Types::I32, :name => 'size', :optional => true},
+ BODY => {:type => ::Thrift::Types::STRING, :name => 'body', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # A structure holding the optional attributes that can be stored
+ # on a User. These are generally less critical than the core User fields.
+ #
+ # <dl>
+ # <dt>defaultLocationName</dt>
+ # <dd>the location string that should be associated
+ # with the user in order to determine where notes are taken if not otherwise
+ # specified.<br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>defaultLatitude</dt>
+ # <dd>if set, this is the latitude that should be
+ # assigned to any notes that have no other latitude information.
+ # </dd>
+ #
+ # <dt>defaultLongitude</dt>
+ # <dd>if set, this is the longitude that should be
+ # assigned to any notes that have no other longitude information.
+ # </dd>
+ #
+ # <dt>preactivation</dt>
+ # <dd>if set, the user account is not yet confirmed for
+ # login. I.e. the account has been created, but we are still waiting for
+ # the user to complete the activation step.
+ # </dd>
+ #
+ # <dt>viewedPromotions</dt>
+ # <dd>a list of promotions the user has seen.
+ # This list may occasionally be modified by the system when promotions are
+ # no longer available.<br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>incomingEmailAddress</dt>
+ # <dd>if set, this is the email address that the
+ # user may send email to in order to add an email note directly into the
+ # account via the SMTP email gateway. This is the part of the email
+ # address before the '@' symbol ... our domain is not included.
+ # If this is not set, the user may not add notes via the gateway.<br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>recentMailedAddresses</dt>
+ # <dd>if set, this will contain a list of email
+ # addresses that have recently been used as recipients
+ # of outbound emails by the user. This can be used to pre-populate a
+ # list of possible destinations when a user wishes to send a note via
+ # email.<br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX each<br/>
+ # Max: EDAM_USER_RECENT_MAILED_ADDRESSES_MAX entries
+ # </dd>
+ #
+ # <dt>comments</dt>
+ # <dd>Free-form text field that may hold general support
+ # information, etc.<br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>dateAgreedToTermsOfService</dt>
+ # <dd>The date/time when the user agreed to
+ # the terms of service. This can be used as the effective "start date"
+ # for the account.
+ # </dd>
+ #
+ # <dt>maxReferrals</dt>
+ # <dd>The number of referrals that the user is permitted
+ # to make.
+ # </dd>
+ #
+ # <dt>referralCount</dt>
+ # <dd>The number of referrals sent from this account.
+ # </dd>
+ #
+ # <dt>refererCode</dt>
+ # <dd>A code indicating where the user was sent from. AKA
+ # promotion code
+ # </dd>
+ #
+ # <dt>sentEmailDate</dt>
+ # <dd>The most recent date when the user sent outbound
+ # emails from the service. Used with sentEmailCount to limit the number
+ # of emails that can be sent per day.
+ # </dd>
+ #
+ # <dt>sentEmailCount</dt>
+ # <dd>The number of emails that were sent from the user
+ # via the service on sentEmailDate. Used to enforce a limit on the number
+ # of emails per user per day to prevent spamming.
+ # </dd>
+ #
+ # <dt>dailyEmailLimit</dt>
+ # <dd>If set, this is the maximum number of emails that
+ # may be sent in a given day from this account. If unset, the server will
+ # use the configured default limit.
+ # </dd>
+ #
+ # <dt>emailOptOutDate</dt>
+ # <dd>If set, this is the date when the user asked
+ # to be excluded from offers and promotions sent by Evernote. If not set,
+ # then the user currently agrees to receive these messages.
+ # </dd>
+ #
+ # <dt>partnerEmailOptInDate</dt>
+ # <dd>If set, this is the date when the user asked
+ # to be included in offers and promotions sent by Evernote's partners.
+ # If not sent, then the user currently does not agree to receive these
+ # emails.
+ # </dd>
+ #
+ # <dt>preferredLanguage</dt>
+ # <dd>a 2 character language codes based on:
+ # http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt used for
+ # localization purposes to determine what language to use for the web
+ # interface and for other direct communication (e.g. emails).
+ # </dd>
+ #
+ # <dt>preferredCountry</dt>
+ # <dd>Preferred country code based on ISO 3166-1-alpha-2 indicating the
+ # users preferred country</dd>
+ #
+ # <dt>clipFullPage</dt>
+ # <dd>Boolean flag set to true if the user wants to clip full pages by
+ # default when they use the web clipper without a selection.</dd>
+ #
+ # <dt>twitterUserName</dt>
+ # <dd>The username of the account of someone who has chosen to enable
+ # Twittering into Evernote. This value is subject to change, since users
+ # may change their Twitter user name.</dd>
+ #
+ # <dt>twitterId</dt>
+ # <dd>The unique identifier of the user's Twitter account if that user
+ # has chosen to enable Twittering into Evernote.</dd>
+ #
+ # <dt>groupName</dt>
+ # <dd>A name identifier used to identify a particular set of branding and
+ # light customization.</dd>
+ #
+ # <dt>recognitionLanguage</dt>
+ # <dd>a 2 character language codes based on:
+ # http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt
+ # If set, this is used to determine the language that should be used
+ # when processing images and PDF files to find text.
+ # If not set, then the 'preferredLanguage' will be used.
+ # </dd>
+ # </dl>
+ #
+ # <dt>customerProfileId</dt>
+ # <dd>a numeric identified which provides a linkage between the user record
+ # and the direct credit card payment creditcard profile.
+ # </dd>
+ # </dl>
+ #
+ class UserAttributes
+ include ::Thrift::Struct
+ DEFAULTLOCATIONNAME = 1
+ DEFAULTLATITUDE = 2
+ DEFAULTLONGITUDE = 3
+ PREACTIVATION = 4
+ VIEWEDPROMOTIONS = 5
+ INCOMINGEMAILADDRESS = 6
+ RECENTMAILEDADDRESSES = 7
+ COMMENTS = 9
+ DATEAGREEDTOTERMSOFSERVICE = 11
+ MAXREFERRALS = 12
+ REFERRALCOUNT = 13
+ REFERERCODE = 14
+ SENTEMAILDATE = 15
+ SENTEMAILCOUNT = 16
+ DAILYEMAILLIMIT = 17
+ EMAILOPTOUTDATE = 18
+ PARTNEREMAILOPTINDATE = 19
+ PREFERREDLANGUAGE = 20
+ PREFERREDCOUNTRY = 21
+ CLIPFULLPAGE = 22
+ TWITTERUSERNAME = 23
+ TWITTERID = 24
+ GROUPNAME = 25
+ RECOGNITIONLANGUAGE = 26
+ CUSTOMERPROFILEID = 27
+
+ ::Thrift::Struct.field_accessor self, :defaultLocationName, :defaultLatitude, :defaultLongitude, :preactivation, :viewedPromotions, :incomingEmailAddress, :recentMailedAddresses, :comments, :dateAgreedToTermsOfService, :maxReferrals, :referralCount, :refererCode, :sentEmailDate, :sentEmailCount, :dailyEmailLimit, :emailOptOutDate, :partnerEmailOptInDate, :preferredLanguage, :preferredCountry, :clipFullPage, :twitterUserName, :twitterId, :groupName, :recognitionLanguage, :customerProfileId
+ FIELDS = {
+ DEFAULTLOCATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultLocationName', :optional => true},
+ DEFAULTLATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'defaultLatitude', :optional => true},
+ DEFAULTLONGITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'defaultLongitude', :optional => true},
+ PREACTIVATION => {:type => ::Thrift::Types::BOOL, :name => 'preactivation', :optional => true},
+ VIEWEDPROMOTIONS => {:type => ::Thrift::Types::LIST, :name => 'viewedPromotions', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ INCOMINGEMAILADDRESS => {:type => ::Thrift::Types::STRING, :name => 'incomingEmailAddress', :optional => true},
+ RECENTMAILEDADDRESSES => {:type => ::Thrift::Types::LIST, :name => 'recentMailedAddresses', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ COMMENTS => {:type => ::Thrift::Types::STRING, :name => 'comments', :optional => true},
+ DATEAGREEDTOTERMSOFSERVICE => {:type => ::Thrift::Types::I64, :name => 'dateAgreedToTermsOfService', :optional => true},
+ MAXREFERRALS => {:type => ::Thrift::Types::I32, :name => 'maxReferrals', :optional => true},
+ REFERRALCOUNT => {:type => ::Thrift::Types::I32, :name => 'referralCount', :optional => true},
+ REFERERCODE => {:type => ::Thrift::Types::STRING, :name => 'refererCode', :optional => true},
+ SENTEMAILDATE => {:type => ::Thrift::Types::I64, :name => 'sentEmailDate', :optional => true},
+ SENTEMAILCOUNT => {:type => ::Thrift::Types::I32, :name => 'sentEmailCount', :optional => true},
+ DAILYEMAILLIMIT => {:type => ::Thrift::Types::I32, :name => 'dailyEmailLimit', :optional => true},
+ EMAILOPTOUTDATE => {:type => ::Thrift::Types::I64, :name => 'emailOptOutDate', :optional => true},
+ PARTNEREMAILOPTINDATE => {:type => ::Thrift::Types::I64, :name => 'partnerEmailOptInDate', :optional => true},
+ PREFERREDLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'preferredLanguage', :optional => true},
+ PREFERREDCOUNTRY => {:type => ::Thrift::Types::STRING, :name => 'preferredCountry', :optional => true},
+ CLIPFULLPAGE => {:type => ::Thrift::Types::BOOL, :name => 'clipFullPage', :optional => true},
+ TWITTERUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'twitterUserName', :optional => true},
+ TWITTERID => {:type => ::Thrift::Types::STRING, :name => 'twitterId', :optional => true},
+ GROUPNAME => {:type => ::Thrift::Types::STRING, :name => 'groupName', :optional => true},
+ RECOGNITIONLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'recognitionLanguage', :optional => true},
+ CUSTOMERPROFILEID => {:type => ::Thrift::Types::I64, :name => 'customerProfileId', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # This represents the bookkeeping information for the user's subscription.
+ #
+ # <dl>
+ # <dt>uploadLimit</dt>
+ # <dd>The number of bytes that can be uploaded to the account
+ # in the current month. For new notes that are created, this is the length
+ # of the note content (in Unicode characters) plus the size of each resource
+ # (in bytes). For edited notes, this is the the difference between the old
+ # length and the new length (if this is greater than 0) plus the size of
+ # each new resource.
+ # </dd>
+ # <dt>uploadLimitEnd</dt>
+ # <dd>The date and time when the current upload limit
+ # expires. At this time, the monthly upload count reverts to 0 and a new
+ # limit is imposed. This date and time is exclusive, so this is effectively
+ # the start of the new month.
+ # </dd>
+ # <dt>uploadLimitNextMonth</dt>
+ # <dd> When uploadLimitEnd is research the service
+ # will change uploadLimit to uploadLimitNextMonth. If a premium account is
+ # canceled, this mechanism will reset the quota appropriately.
+ # </dd>
+ # <dt>premiumServiceStatus</dt>
+ # <dd>Indicates the phases of a premium account
+ # during the billing process.
+ # </dd>
+ # <dt>premiumOrderNumber</dt>
+ # <dd>The order number used by the commerce system to
+ # process recurring payments
+ # </dd>
+ # <dt>premiumServiceStart</dt>
+ # <dd>The start date when this premium promotion
+ # began (this number will get overwritten if a premium service is canceled
+ # and then re-activated).
+ # </dd>
+ # <dt>premiumCommerceService</dt>
+ # <dd>The commerce system used (paypal, Google
+ # checkout, etc)
+ # </dd>
+ # <dt>premiumServiceSKU</dt>
+ # <dd>The code associated with the purchase eg. monthly
+ # or annual purchase. Clients should interpret this value and localize it.
+ # </dd>
+ # <dt>lastSuccessfulCharge</dt>
+ # <dd>Date the last time the user was charged.
+ # Null if never charged.
+ # </dd>
+ # <dt>lastFailedCharge</dt>
+ # <dd>Date the last time a charge was attempted and
+ # failed.
+ # </dd>
+ # <dt>lastFailedChargeReason</dt>
+ # <dd>Reason provided for the charge failure
+ # </dd>
+ # <dt>nextPaymentDue</dt>
+ # <dd>The end of the billing cycle. This could be in the
+ # past if there are failed charges.
+ # </dd>
+ # <dt>premiumLockUntil</dt>
+ # <dd>An internal variable to manage locking operations
+ # on the commerce variables.
+ # </dd>
+ # <dt>updated</dt>
+ # <dd>The date any modification where made to this record.
+ # </dd>
+ # <dt>premiumSubscriptionNumber</dt>
+ # <dd>The number number identifying the
+ # recurring subscription used to make the recurring charges.
+ # </dd>
+ # </dl>
+ class Accounting
+ include ::Thrift::Struct
+ UPLOADLIMIT = 1
+ UPLOADLIMITEND = 2
+ UPLOADLIMITNEXTMONTH = 3
+ PREMIUMSERVICESTATUS = 4
+ PREMIUMORDERNUMBER = 5
+ PREMIUMCOMMERCESERVICE = 6
+ PREMIUMSERVICESTART = 7
+ PREMIUMSERVICESKU = 8
+ LASTSUCCESSFULCHARGE = 9
+ LASTFAILEDCHARGE = 10
+ LASTFAILEDCHARGEREASON = 11
+ NEXTPAYMENTDUE = 12
+ PREMIUMLOCKUNTIL = 13
+ UPDATED = 14
+ PREMIUMSUBSCRIPTIONNUMBER = 16
+ LASTREQUESTEDCHARGE = 17
+
+ ::Thrift::Struct.field_accessor self, :uploadLimit, :uploadLimitEnd, :uploadLimitNextMonth, :premiumServiceStatus, :premiumOrderNumber, :premiumCommerceService, :premiumServiceStart, :premiumServiceSKU, :lastSuccessfulCharge, :lastFailedCharge, :lastFailedChargeReason, :nextPaymentDue, :premiumLockUntil, :updated, :premiumSubscriptionNumber, :lastRequestedCharge
+ FIELDS = {
+ UPLOADLIMIT => {:type => ::Thrift::Types::I64, :name => 'uploadLimit', :optional => true},
+ UPLOADLIMITEND => {:type => ::Thrift::Types::I64, :name => 'uploadLimitEnd', :optional => true},
+ UPLOADLIMITNEXTMONTH => {:type => ::Thrift::Types::I64, :name => 'uploadLimitNextMonth', :optional => true},
+ PREMIUMSERVICESTATUS => {:type => ::Thrift::Types::I32, :name => 'premiumServiceStatus', :optional => true, :enum_class => Evernote::EDAM::Type::PremiumOrderStatus},
+ PREMIUMORDERNUMBER => {:type => ::Thrift::Types::STRING, :name => 'premiumOrderNumber', :optional => true},
+ PREMIUMCOMMERCESERVICE => {:type => ::Thrift::Types::STRING, :name => 'premiumCommerceService', :optional => true},
+ PREMIUMSERVICESTART => {:type => ::Thrift::Types::I64, :name => 'premiumServiceStart', :optional => true},
+ PREMIUMSERVICESKU => {:type => ::Thrift::Types::STRING, :name => 'premiumServiceSKU', :optional => true},
+ LASTSUCCESSFULCHARGE => {:type => ::Thrift::Types::I64, :name => 'lastSuccessfulCharge', :optional => true},
+ LASTFAILEDCHARGE => {:type => ::Thrift::Types::I64, :name => 'lastFailedCharge', :optional => true},
+ LASTFAILEDCHARGEREASON => {:type => ::Thrift::Types::STRING, :name => 'lastFailedChargeReason', :optional => true},
+ NEXTPAYMENTDUE => {:type => ::Thrift::Types::I64, :name => 'nextPaymentDue', :optional => true},
+ PREMIUMLOCKUNTIL => {:type => ::Thrift::Types::I64, :name => 'premiumLockUntil', :optional => true},
+ UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true},
+ PREMIUMSUBSCRIPTIONNUMBER => {:type => ::Thrift::Types::STRING, :name => 'premiumSubscriptionNumber', :optional => true},
+ LASTREQUESTEDCHARGE => {:type => ::Thrift::Types::I64, :name => 'lastRequestedCharge', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ unless @premiumServiceStatus.nil? || Evernote::EDAM::Type::PremiumOrderStatus::VALID_VALUES.include?(@premiumServiceStatus)
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field premiumServiceStatus!')
+ end
+ end
+
+ end
+
+ # This represents the information about a single user account.
+ # <dl>
+ # <dt>id</dt>
+ # <dd>The unique numeric identifier for the account, which will not
+ # change for the lifetime of the account.
+ # </dd>
+ #
+ # <dt>username</dt>
+ # <dd>The name that the user provides to log in to their
+ # account. In the future, this may be empty for some accounts if their login
+ # process is indirect (e.g. via social networks, etc.).
+ # May only contain a-z, 0-9, or '-', and may not start or end with the '-'
+ # <br/>
+ # Length: EDAM_USER_USERNAME_LEN_MIN - EDAM_USER_USERNAME_LEN_MAX
+ # <br/>
+ # Regex: EDAM_USER_USERNAME_REGEX
+ # </dd>
+ #
+ # <dt>email</dt>
+ # <dd>The email address registered for the user. Must comply with
+ # RFC 2821 and RFC 2822.<br/>
+ # Length: EDAM_EMAIL_LEN_MIN - EDAM_EMAIL_LEN_MAX
+ # <br/>
+ # Regex: EDAM_EMAIL_REGEX
+ # </dd>
+ #
+ # <dt>name</dt>
+ # <dd>The printable name of the user, which may be a combination
+ # of given and family names. This is used instead of separate "first"
+ # and "last" names due to variations in international name format/order.
+ # May not start or end with a whitespace character. May contain any
+ # character but carriage return or newline (Unicode classes Zl and Zp).
+ # <br/>
+ # Length: EDAM_USER_NAME_LEN_MIN - EDAM_USER_NAME_LEN_MAX
+ # <br/>
+ # Regex: EDAM_USER_NAME_REGEX
+ # </dd>
+ #
+ # <dt>timezone</dt>
+ # <dd>The zone ID for the user's default location. If present,
+ # this may be used to localize the display of any timestamp for which no
+ # other timezone is available - for example, an note that arrives via
+ # a micro-browser may not contain enough information to display its
+ # local time, so this default timezone may be assigned to the note.
+ # The format must be encoded as a standard zone ID such as
+ # "America/Los_Angeles" or "GMT+08:00"
+ # <br/>
+ # Length: EDAM_TIMEZONE_LEN_MIN - EDAM_TIMEZONE_LEN_MAX
+ # <br/>
+ # Regex: EDAM_TIMEZONE_REGEX
+ # </dd>
+ #
+ # <dt>privilege</dt>
+ # <dd>The level of access permitted for the user.
+ # </dd>
+ #
+ # <dt>created</dt>
+ # <dd>The date and time when this user account was created in the
+ # service.
+ # </dd>
+ #
+ # <dt>updated</dt>
+ # <dd>The date and time when this user account was last modified
+ # in the service.
+ # </dd>
+ #
+ # <dt>deleted</dt>
+ # <dd>If the account has been deleted from the system (e.g. as
+ # the result of a legal request by the user), the date and time of the
+ # deletion will be represented here. If not, this value will not be set.
+ # </dd>
+ #
+ # <dt>active</dt>
+ # <dd>If the user account is available for login and
+ # synchronization, this flag will be set to true.
+ # </dd>
+ #
+ # <dt>shardId</dt>
+ # <dd>The name of the virtual server that manages the state of
+ # this user. This value is used internally to determine which system should
+ # service requests about this user's data.
+ # </dd>
+ #
+ # <dt>attributes</dt>
+ # <dd>If present, this will contain a list of the attributes
+ # for this user account.
+ # </dd>
+ #
+ # <dt>accounting</dt>
+ # <dd>Bookkeeping information for the user's subscription.
+ # </dd>
+ # </dl>
+ class User
+ include ::Thrift::Struct
+ ID = 1
+ USERNAME = 2
+ EMAIL = 3
+ NAME = 4
+ TIMEZONE = 6
+ PRIVILEGE = 7
+ CREATED = 9
+ UPDATED = 10
+ DELETED = 11
+ ACTIVE = 13
+ SHARDID = 14
+ ATTRIBUTES = 15
+ ACCOUNTING = 16
+
+ ::Thrift::Struct.field_accessor self, :id, :username, :email, :name, :timezone, :privilege, :created, :updated, :deleted, :active, :shardId, :attributes, :accounting
+ FIELDS = {
+ ID => {:type => ::Thrift::Types::I32, :name => 'id', :optional => true},
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true},
+ EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true},
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
+ TIMEZONE => {:type => ::Thrift::Types::STRING, :name => 'timezone', :optional => true},
+ PRIVILEGE => {:type => ::Thrift::Types::I32, :name => 'privilege', :optional => true, :enum_class => Evernote::EDAM::Type::PrivilegeLevel},
+ CREATED => {:type => ::Thrift::Types::I64, :name => 'created', :optional => true},
+ UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true},
+ DELETED => {:type => ::Thrift::Types::I64, :name => 'deleted', :optional => true},
+ ACTIVE => {:type => ::Thrift::Types::BOOL, :name => 'active', :optional => true},
+ SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId', :optional => true},
+ ATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'attributes', :class => Evernote::EDAM::Type::UserAttributes, :optional => true},
+ ACCOUNTING => {:type => ::Thrift::Types::STRUCT, :name => 'accounting', :class => Evernote::EDAM::Type::Accounting, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ unless @privilege.nil? || Evernote::EDAM::Type::PrivilegeLevel::VALID_VALUES.include?(@privilege)
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field privilege!')
+ end
+ end
+
+ end
+
+ # A tag within a user's account is a unique name which may be organized
+ # a simple hierarchy.
+ # <dl>
+ # <dt>guid</dt>
+ # <dd>The unique identifier of this tag. Will be set by the service,
+ # so may be omitted by the client when creating the Tag.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>name</dt>
+ # <dd>A sequence of characters representing the tag's identifier.
+ # Case is preserved, but is ignored for comparisons.
+ # This means that an account may only have one tag with a given name, via
+ # case-insensitive comparison, so an account may not have both "food" and
+ # "Food" tags.
+ # May not contain a comma (','), and may not begin or end with a space.
+ # <br/>
+ # Length: EDAM_TAG_NAME_LEN_MIN - EDAM_TAG_NAME_LEN_MAX
+ # <br/>
+ # Regex: EDAM_TAG_NAME_REGEX
+ # </dd>
+ #
+ # <dt>parentGuid</dt>
+ # <dd>If this is set, then this is the GUID of the tag that
+ # holds this tag within the tag organizational heirarchy. If this is
+ # not set, then the tag has no parent and it is a "top level" tag.
+ # Cycles are not allowed (e.g. a->parent->parent == a) and will be
+ # rejected by the service.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>updateSequenceNum</dt>
+ # <dd>A number identifying the last transaction to
+ # modify the state of this object. The USN values are sequential within an
+ # account, and can be used to compare the order of modifications within the
+ # service.
+ # </dd>
+ # </dl>
+ class Tag
+ include ::Thrift::Struct
+ GUID = 1
+ NAME = 2
+ PARENTGUID = 3
+ UPDATESEQUENCENUM = 4
+
+ ::Thrift::Struct.field_accessor self, :guid, :name, :parentGuid, :updateSequenceNum
+ FIELDS = {
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
+ PARENTGUID => {:type => ::Thrift::Types::STRING, :name => 'parentGuid', :optional => true},
+ UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # Structure holding the optional attributes of a Resource
+ # <dl>
+ # <dt>sourceURL</dt>
+ # <dd>the original location where the resource was hosted
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>timestamp</dt>
+ # <dd>the date and time that is associated with this resource
+ # (e.g. the time embedded in an image from a digital camera with a clock)
+ # </dd>
+ #
+ # <dt>latitude</dt>
+ # <dd>the latitude where the resource was captured
+ # </dd>
+ #
+ # <dt>longitude</dt>
+ # <dd>the longitude where the resource was captured
+ # </dd>
+ #
+ # <dt>altitude</dt>
+ # <dd>the altitude where the resource was captured
+ # </dd>
+ #
+ # <dt>cameraMake</dt>
+ # <dd>information about an image's camera, e.g. as embedded in
+ # the image's EXIF data
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>cameraModel</dt>
+ # <dd>information about an image's camera, e.g. as embedded
+ # in the image's EXIF data
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>clientWillIndex</dt>
+ # <dd>if true, then the original client that submitted
+ # the resource plans to submit the recognition index for this resource at a
+ # later time.
+ # </dd>
+ #
+ # <dt>recoType</dt>
+ # <dd>DEPRECATED - this field is no longer set by the service, so should
+ # be ignored.
+ # </dd>
+ #
+ # <dt>fileName</dt>
+ # <dd>if the resource came from a source that provided an
+ # explicit file name, the original name will be stored here. Many resources
+ # come from unnamed sources, so this will not always be set.
+ # </dd>
+ #
+ # <dt>attachment</dt>
+ # <dd>this will be true if the resource is a Premium file attachment. This
+ # will be available within the search grammar so that you can identify
+ # notes that contain attachments.
+ # </dd>
+ # </dl>
+ class ResourceAttributes
+ include ::Thrift::Struct
+ SOURCEURL = 1
+ TIMESTAMP = 2
+ LATITUDE = 3
+ LONGITUDE = 4
+ ALTITUDE = 5
+ CAMERAMAKE = 6
+ CAMERAMODEL = 7
+ CLIENTWILLINDEX = 8
+ RECOTYPE = 9
+ FILENAME = 10
+ ATTACHMENT = 11
+
+ ::Thrift::Struct.field_accessor self, :sourceURL, :timestamp, :latitude, :longitude, :altitude, :cameraMake, :cameraModel, :clientWillIndex, :recoType, :fileName, :attachment
+ FIELDS = {
+ SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true},
+ LATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'latitude', :optional => true},
+ LONGITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'longitude', :optional => true},
+ ALTITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'altitude', :optional => true},
+ CAMERAMAKE => {:type => ::Thrift::Types::STRING, :name => 'cameraMake', :optional => true},
+ CAMERAMODEL => {:type => ::Thrift::Types::STRING, :name => 'cameraModel', :optional => true},
+ CLIENTWILLINDEX => {:type => ::Thrift::Types::BOOL, :name => 'clientWillIndex', :optional => true},
+ RECOTYPE => {:type => ::Thrift::Types::STRING, :name => 'recoType', :optional => true},
+ FILENAME => {:type => ::Thrift::Types::STRING, :name => 'fileName', :optional => true},
+ ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # Every media file that is embedded or attached to a note is represented
+ # through a Resource entry.
+ # <dl>
+ # <dt>guid</dt>
+ # <dd>The unique identifier of this resource. Will be set whenever
+ # a resource is retrieved from the service, but may be null when a client
+ # is creating a resource.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>noteGuid</dt>
+ # <dd>The unique identifier of the Note that holds this
+ # Resource. Will be set whenever the resource is retrieved from the service,
+ # but may be null when a client is creating a resource.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>data</dt>
+ # <dd>The contents of the resource.
+ # Maximum length: The data.body is limited to 25 MB (26214400 bytes)
+ # </dd>
+ #
+ # <dt>mime</dt>
+ # <dd>The MIME type for the embedded resource. E.g. "image/gif"
+ # <br/>
+ # Length: EDAM_MIME_LEN_MIN - EDAM_MIME_LEN_MAX
+ # <br/>
+ # Regex: EDAM_MIME_REGEX
+ # </dd>
+ #
+ # <dt>width</dt>
+ # <dd>If set, this contains the display width of this resource, in
+ # pixels.
+ # </dd>
+ #
+ # <dt>height</dt>
+ # <dd>If set, this contains the display height of this resource,
+ # in pixels.
+ # </dd>
+ #
+ # <dt>duration</dt>
+ # <dd>DEPRECATED: ignored.
+ # </dd>
+ #
+ # <dt>active</dt>
+ # <dd>DEPRECATED: ignored.
+ # </dd>
+ #
+ # <dt>recognition</dt>
+ # <dd>If set, this will hold the encoded data that provides
+ # information on search and recognition within this resource.
+ # </dd>
+ #
+ # <dt>attributes</dt>
+ # <dd>A list of the attributes for this resource.
+ # </dd>
+ #
+ # <dt>updateSequenceNum</dt>
+ # <dd>A number identifying the last transaction to
+ # modify the state of this object. The USN values are sequential within an
+ # account, and can be used to compare the order of modifications within the
+ # service.
+ # </dd>
+ #
+ # <dt>alternateData</dt>
+ # <dd>Some Resources may be assigned an alternate data format by the service
+ # which may be more appropriate for indexing or rendering than the original
+ # data provided by the user. In these cases, the alternate data form will
+ # be available via this Data element. If a Resource has no alternate form,
+ # this field will be unset.</dd>
+ # </dl>
+ class Resource
+ include ::Thrift::Struct
+ GUID = 1
+ NOTEGUID = 2
+ DATA = 3
+ MIME = 4
+ WIDTH = 5
+ HEIGHT = 6
+ DURATION = 7
+ ACTIVE = 8
+ RECOGNITION = 9
+ ATTRIBUTES = 11
+ UPDATESEQUENCENUM = 12
+ ALTERNATEDATA = 13
+
+ ::Thrift::Struct.field_accessor self, :guid, :noteGuid, :data, :mime, :width, :height, :duration, :active, :recognition, :attributes, :updateSequenceNum, :alternateData
+ FIELDS = {
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
+ NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid', :optional => true},
+ DATA => {:type => ::Thrift::Types::STRUCT, :name => 'data', :class => Evernote::EDAM::Type::Data, :optional => true},
+ MIME => {:type => ::Thrift::Types::STRING, :name => 'mime', :optional => true},
+ WIDTH => {:type => ::Thrift::Types::I16, :name => 'width', :optional => true},
+ HEIGHT => {:type => ::Thrift::Types::I16, :name => 'height', :optional => true},
+ DURATION => {:type => ::Thrift::Types::I16, :name => 'duration', :optional => true},
+ ACTIVE => {:type => ::Thrift::Types::BOOL, :name => 'active', :optional => true},
+ RECOGNITION => {:type => ::Thrift::Types::STRUCT, :name => 'recognition', :class => Evernote::EDAM::Type::Data, :optional => true},
+ ATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'attributes', :class => Evernote::EDAM::Type::ResourceAttributes, :optional => true},
+ UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true},
+ ALTERNATEDATA => {:type => ::Thrift::Types::STRUCT, :name => 'alternateData', :class => Evernote::EDAM::Type::Data, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # The list of optional attributes that can be stored on a note.
+ # <dl>
+ # <dt>subjectDate</dt>
+ # <dd>time that the note refers to
+ # </dd>
+ #
+ # <dt>latitude</dt>
+ # <dd>the latitude where the note was taken
+ # </dd>
+ #
+ # <dt>longitude</dt>
+ # <dd>the longitude where the note was taken
+ # </dd>
+ #
+ # <dt>altitude</dt>
+ # <dd>the altitude where the note was taken
+ # </dd>
+ #
+ # <dt>author</dt>
+ # <dd>the author of the content of the note
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>source</dt>
+ # <dd>the method that the note was added to the account, if the
+ # note wasn't directly authored in an Evernote client.
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>sourceURL</dt>
+ # <dd>the original location where the resource was hosted
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ #
+ # <dt>sourceApplication</dt>
+ # <dd>an identifying string for the application that
+ # created this note. This string does not have a guaranteed syntax or
+ # structure -- it is intended for human inspection and tracking.
+ # <br/>
+ # Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
+ # </dd>
+ # </dl>
+ class NoteAttributes
+ include ::Thrift::Struct
+ SUBJECTDATE = 1
+ LATITUDE = 10
+ LONGITUDE = 11
+ ALTITUDE = 12
+ AUTHOR = 13
+ SOURCE = 14
+ SOURCEURL = 15
+ SOURCEAPPLICATION = 16
+
+ ::Thrift::Struct.field_accessor self, :subjectDate, :latitude, :longitude, :altitude, :author, :source, :sourceURL, :sourceApplication
+ FIELDS = {
+ SUBJECTDATE => {:type => ::Thrift::Types::I64, :name => 'subjectDate', :optional => true},
+ LATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'latitude', :optional => true},
+ LONGITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'longitude', :optional => true},
+ ALTITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'altitude', :optional => true},
+ AUTHOR => {:type => ::Thrift::Types::STRING, :name => 'author', :optional => true},
+ SOURCE => {:type => ::Thrift::Types::STRING, :name => 'source', :optional => true},
+ SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
+ SOURCEAPPLICATION => {:type => ::Thrift::Types::STRING, :name => 'sourceApplication', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # Represents a single note in the user's account.
+ #
+ # <dl>
+ # <dt>guid</dt>
+ # <dd>The unique identifier of this note. Will be set by the
+ # server, but will be omitted by clients calling NoteStore.createNote()
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>title</dt>
+ # <dd>The subject of the note. Can't begin or end with a space.
+ # <br/>
+ # Length: EDAM_NOTE_TITLE_LEN_MIN - EDAM_NOTE_TITLE_LEN_MAX
+ # <br/>
+ # Regex: EDAM_NOTE_TITLE_REGEX
+ # </dd>
+ #
+ # <dt>content</dt>
+ # <dd>The XHTML block that makes up the note. This is
+ # the canonical form of the note's contents, so will include abstract
+ # Evernote tags for internal resource references. A client may create
+ # a separate transformed version of this content for internal presentation,
+ # but the same canonical bytes should be used for transmission and
+ # comparison unless the user chooses to modify their content.
+ # <br/>
+ # Length: EDAM_NOTE_CONTENT_LEN_MIN - EDAM_NOTE_CONTENT_LEN_MAX
+ # </dd>
+ #
+ # <dt>contentHash</dt>
+ # <dd>The binary MD5 checksum of the UTF-8 encoded content
+ # body. This will always be set by the server, but clients may choose to omit
+ # this when they submit a note with content.
+ # <br/>
+ # Length: EDAM_HASH_LEN (exactly)
+ # </dd>
+ #
+ # <dt>contentLength</dt>
+ # <dd>The number of Unicode characters in the content of
+ # the note. This will always be set by the service, but clients may choose
+ # to omit this value when they submit a Note.
+ # </dd>
+ #
+ # <dt>created</dt>
+ # <dd>The date and time when the note was created in one of the
+ # clients. In most cases, this will match the user's sense of when
+ # the note was created, and ordering between notes will be based on
+ # ordering of this field. However, this is not a "reliable" timestamp
+ # if a client has an incorrect clock, so it cannot provide a true absolute
+ # ordering between notes. Notes created directly through the service
+ # (e.g. via the web GUI) will have an absolutely ordered "created" value.
+ # </dd>
+ #
+ # <dt>updated</dt>
+ # <dd>The date and time when the note was last modified in one of
+ # the clients. In most cases, this will match the user's sense of when
+ # the note was modified, but this field may not be absolutely reliable
+ # due to the possibility of client clock errors.
+ # </dd>
+ #
+ # <dt>deleted</dt>
+ # <dd>If present, the note is considered "deleted", and this
+ # stores the date and time when the note was deleted by one of the clients.
+ # In most cases, this will match the user's sense of when the note was
+ # deleted, but this field may be unreliable due to the possibility of
+ # client clock errors.
+ # </dd>
+ #
+ # <dt>active</dt>
+ # <dd>If the note is available for normal actions and viewing,
+ # this flag will be set to true.
+ # </dd>
+ #
+ # <dt>updateSequenceNum</dt>
+ # <dd>A number identifying the last transaction to
+ # modify the state of this note (including changes to the note's attributes
+ # or resources). The USN values are sequential within an account,
+ # and can be used to compare the order of modifications within the service.
+ # </dd>
+ #
+ # <dt>notebookGuid</dt>
+ # <dd>The unique identifier of the notebook that contains
+ # this note. If no notebookGuid is provided on a call to createNote(), the
+ # default notebook will be used instead.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>tagGuids</dt>
+ # <dd>A list of the GUID identifiers for tags that are applied to this note.
+ # This may be provided in a call to createNote() to unambiguously declare
+ # the tags that should be assigned to the new note. Alternately, clients
+ # may pass the names of desired tags via the 'tagNames' field during
+ # note creation.
+ # If the list of tags are omitted on a call to createNote(), then
+ # the server will assume that no changes have been made to the resources.
+ # Maximum: EDAM_NOTE_TAGS_MAX tags per note
+ # </dd>
+ #
+ # <dt>resources</dt>
+ # <dd>The list of resources that are embedded within this note.
+ # If the list of resources are omitted on a call to updateNote(), then
+ # the server will assume that no changes have been made to the resources.
+ # The binary contents of the resources must be provided when the resource
+ # is first sent to the service, but it will be omitted by the service when
+ # the Note is returned in the future.
+ # Maximum: EDAM_NOTE_RESOURCES_MAX resources per note
+ # </dd>
+ #
+ # <dt>attributes</dt>
+ # <dd>A list of the attributes for this note.
+ # If the list of attributes are omitted on a call to updateNote(), then
+ # the server will assume that no changes have been made to the resources.
+ # </dd>
+ #
+ # <dt>tagNames</dt>
+ # <dd>May be provided by clients during calls to createNote() as an
+ # alternative to providing the tagGuids of existing tags. If any tagNames
+ # are provided during createNote(), these will be found, or created if they
+ # don't already exist. Created tags will have no parent (they will be at
+ # the top level of the tag panel).
+ # </dd>
+ # </dl>
+ class Note
+ include ::Thrift::Struct
+ GUID = 1
+ TITLE = 2
+ CONTENT = 3
+ CONTENTHASH = 4
+ CONTENTLENGTH = 5
+ CREATED = 6
+ UPDATED = 7
+ DELETED = 8
+ ACTIVE = 9
+ UPDATESEQUENCENUM = 10
+ NOTEBOOKGUID = 11
+ TAGGUIDS = 12
+ RESOURCES = 13
+ ATTRIBUTES = 14
+ TAGNAMES = 15
+
+ ::Thrift::Struct.field_accessor self, :guid, :title, :content, :contentHash, :contentLength, :created, :updated, :deleted, :active, :updateSequenceNum, :notebookGuid, :tagGuids, :resources, :attributes, :tagNames
+ FIELDS = {
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
+ CONTENT => {:type => ::Thrift::Types::STRING, :name => 'content', :optional => true},
+ CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash', :optional => true},
+ CONTENTLENGTH => {:type => ::Thrift::Types::I32, :name => 'contentLength', :optional => true},
+ CREATED => {:type => ::Thrift::Types::I64, :name => 'created', :optional => true},
+ UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true},
+ DELETED => {:type => ::Thrift::Types::I64, :name => 'deleted', :optional => true},
+ ACTIVE => {:type => ::Thrift::Types::BOOL, :name => 'active', :optional => true},
+ UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true},
+ NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid', :optional => true},
+ TAGGUIDS => {:type => ::Thrift::Types::LIST, :name => 'tagGuids', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
+ RESOURCES => {:type => ::Thrift::Types::LIST, :name => 'resources', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Resource}, :optional => true},
+ ATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'attributes', :class => Evernote::EDAM::Type::NoteAttributes, :optional => true},
+ TAGNAMES => {:type => ::Thrift::Types::LIST, :name => 'tagNames', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # If a Notebook has been opened to the public, the Notebook will have a
+ # reference to one of these structures, which gives the location and optional
+ # description of the externally-visible public Notebook.
+ # <dl>
+ # <dt>uri</dt>
+ # <dd>If this field is present, then the notebook is published for
+ # mass consumption on the Internet under the provided URI, which is
+ # relative to a defined base publishing URI defined by the service.
+ # This field can only be modified via the web service GUI ... publishing
+ # cannot be modified via an offline client.
+ # <br/>
+ # Length: EDAM_PUBLISHING_URI_LEN_MIN - EDAM_PUBLISHING_URI_LEN_MAX
+ # <br/>
+ # Regex: EDAM_PUBLISHING_URI_REGEX
+ # </dd>
+ #
+ # <dt>order</dt>
+ # <dd>When the notes are publicly displayed, they will be sorted
+ # based on the requested criteria.
+ # </dd>
+ #
+ # <dt>ascending</dt>
+ # <dd>If this is set to true, then the public notes will be
+ # displayed in ascending order (e.g. from oldest to newest). Otherwise,
+ # the notes will be displayed in descending order (e.g. newest to oldest).
+ # </dd>
+ #
+ # <dt>publicDescription</dt>
+ # <dd>This field may be used to provide a short
+ # description of the notebook, which may be displayed when (e.g.) the
+ # notebook is shown in a public view. Can't begin or end with a space.
+ # <br/>
+ # Length: EDAM_PUBLISHING_DESCRIPTION_LEN_MIN -
+ # EDAM_PUBLISHING_DESCRIPTION_LEN_MAX
+ # <br/>
+ # Regex: EDAM_PUBLISHING_DESCRIPTION_REGEX
+ # </dd>
+ # </dl>
+ class Publishing
+ include ::Thrift::Struct
+ URI = 1
+ ORDER = 2
+ ASCENDING = 3
+ PUBLICDESCRIPTION = 4
+
+ ::Thrift::Struct.field_accessor self, :uri, :order, :ascending, :publicDescription
+ FIELDS = {
+ URI => {:type => ::Thrift::Types::STRING, :name => 'uri', :optional => true},
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :optional => true, :enum_class => Evernote::EDAM::Type::NoteSortOrder},
+ ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :optional => true},
+ PUBLICDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'publicDescription', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ unless @order.nil? || Evernote::EDAM::Type::NoteSortOrder::VALID_VALUES.include?(@order)
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
+ end
+ end
+
+ end
+
+ # A unique container for a set of notes.
+ # <dl>
+ # <dt>guid</dt>
+ # <dd>The unique identifier of this notebook.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>name</dt>
+ # <dd>A sequence of characters representing the name of the
+ # notebook. May be changed by clients, but the account may not contain two
+ # notebooks with names that are equal via a case-insensitive comparison.
+ # Can't begin or end with a space.
+ # <br/>
+ # Length: EDAM_NOTEBOOK_NAME_LEN_MIN - EDAM_NOTEBOOK_NAME_LEN_MAX
+ # <br/>
+ # Regex: EDAM_NOTEBOOK_NAME_REGEX
+ # </dd>
+ #
+ # <dt>updateSequenceNum</dt>
+ # <dd>A number identifying the last transaction to
+ # modify the state of this object. The USN values are sequential within an
+ # account, and can be used to compare the order of modifications within the
+ # service.
+ # </dd>
+ #
+ # <dt>defaultNotebook</dt>
+ # <dd>If true, this notebook should be used for new notes
+ # whenever the user has not (or cannot) specify a desired target notebook.
+ # For example, if a note is submitted via SMTP email.
+ # The service will maintain at most one defaultNotebook per account.
+ # If a second notebook is created or updated with defaultNotebook set to
+ # true, the service will automatically update the prior notebook's
+ # defaultNotebook field to false. If the default notebook is deleted
+ # (i.e. "active" set to false), the "defaultNotebook" field will be
+ # set to false by the service. If the account has no default notebook
+ # set, the service will use the most recent notebook as the default.
+ # </dd>
+ #
+ # <dt>serviceCreated</dt>
+ # <dd>The time when this notebook was created on the
+ # service. This will be set on the service during creation, and the service
+ # will provide this value when it returns a Notebook to a client.
+ # The service will ignore this value if it is sent by clients.
+ # </dd>
+ #
+ # <dt>serviceUpdated</dt>
+ # <dd>The time when this notebook was last modified on the
+ # service. This will be set on the service during creation, and the service
+ # will provide this value when it returns a Notebook to a client.
+ # The service will ignore this value if it is sent by clients.
+ # </dd>
+ #
+ # <dt>publishing</dt>
+ # <dd>If the Notebook has been opened for public access (i.e.
+ # if 'published' is set to true), then this will point to the set of
+ # publishing information for the Notebook (URI, description, etc.). A
+ # Notebook cannot be published without providing this information, but it
+ # will persist for later use if publishing is ever disabled on the Notebook.
+ # Clients that do not wish to change the publishing behavior of a Notebook
+ # should not set this value when calling NoteStore.updateNotebook().
+ # </dd>
+ #
+ # <dt>published</dt>
+ # <dd>If this is set to true, then the Notebook will be
+ # accessible to the public via the 'publishing' specification, which must
+ # also be set. If this is set to false, the Notebook will not be available
+ # to the public.
+ # Clients that do not wish to change the publishing behavior of a Notebook
+ # should not set this value when calling NoteStore.updateNotebook().
+ # </dd>
+ # </dl>
+ class Notebook
+ include ::Thrift::Struct
+ GUID = 1
+ NAME = 2
+ UPDATESEQUENCENUM = 5
+ DEFAULTNOTEBOOK = 6
+ SERVICECREATED = 7
+ SERVICEUPDATED = 8
+ PUBLISHING = 10
+ PUBLISHED = 11
+
+ ::Thrift::Struct.field_accessor self, :guid, :name, :updateSequenceNum, :defaultNotebook, :serviceCreated, :serviceUpdated, :publishing, :published
+ FIELDS = {
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
+ UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true},
+ DEFAULTNOTEBOOK => {:type => ::Thrift::Types::BOOL, :name => 'defaultNotebook', :optional => true},
+ SERVICECREATED => {:type => ::Thrift::Types::I64, :name => 'serviceCreated', :optional => true},
+ SERVICEUPDATED => {:type => ::Thrift::Types::I64, :name => 'serviceUpdated', :optional => true},
+ PUBLISHING => {:type => ::Thrift::Types::STRUCT, :name => 'publishing', :class => Evernote::EDAM::Type::Publishing, :optional => true},
+ PUBLISHED => {:type => ::Thrift::Types::BOOL, :name => 'published', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # A named search associated with the account that can be quickly re-used.
+ # <dl>
+ # <dt>guid</dt>
+ # <dd>The unique identifier of this search. Will be set by the
+ # service, so may be omitted by the client when creating.
+ # <br/>
+ # Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
+ # <br/>
+ # Regex: EDAM_GUID_REGEX
+ # </dd>
+ #
+ # <dt>name</dt>
+ # <dd>The name of the saved search to display in the GUI. The
+ # account may only contain one search with a given name (case-insensitive
+ # compare). Can't begin or end with a space.
+ # <br/>
+ # Length: EDAM_SAVED_SEARCH_NAME_LEN_MIN - EDAM_SAVED_SEARCH_NAME_LEN_MAX
+ # <br/>
+ # Regex: EDAM_SAVED_SEARCH_NAME_REGEX
+ # </dd>
+ #
+ # <dt>query</dt>
+ # <dd>A string expressing the search to be performed.
+ # <br/>
+ # Length: EDAM_SAVED_SEARCH_QUERY_LEN_MIN - EDAM_SAVED_SEARCH_QUERY_LEN_MAX
+ # </dd>
+ #
+ # <dt>format</dt>
+ # <dd>The format of the query string, to determine how to parse
+ # and process it.
+ # </dd>
+ #
+ # <dt>updateSequenceNum</dt>
+ # <dd>A number identifying the last transaction to
+ # modify the state of this object. The USN values are sequential within an
+ # account, and can be used to compare the order of modifications within the
+ # service.
+ # </dd>
+ # </dl>
+ class SavedSearch
+ include ::Thrift::Struct
+ GUID = 1
+ NAME = 2
+ QUERY = 3
+ FORMAT = 4
+ UPDATESEQUENCENUM = 5
+
+ ::Thrift::Struct.field_accessor self, :guid, :name, :query, :format, :updateSequenceNum
+ FIELDS = {
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
+ QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :optional => true},
+ FORMAT => {:type => ::Thrift::Types::I32, :name => 'format', :optional => true, :enum_class => Evernote::EDAM::Type::QueryFormat},
+ UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ unless @format.nil? || Evernote::EDAM::Type::QueryFormat::VALID_VALUES.include?(@format)
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field format!')
+ end
+ end
+
+ end
+
+ # An advertisement that may be displayed within an Evernote client.
+ # Advertisements are either a snippet of HTML or else they
+ # are an image (of type: JPEG, GIF, PNG) with an associated destination URL.
+ #
+ # <dl>
+ # <dt>id</dt>
+ # <dd>The unique identifier of this advertisement within Evernote's ad
+ # inventory.
+ # </dd>
+ #
+ # <dt>width</dt>
+ # <dd>This ad should be displayed within a rectangle that is this wide,
+ # in pixels.
+ # </dd>
+ #
+ # <dt>height</dt>
+ # <dd>This ad should be displayed within a rectangle that is this high,
+ # in pixels.
+ # </dd>
+ #
+ # <dt>advertiserName</dt>
+ # <dd>A string containing a readable version of the name of this advertiser.
+ # </dd>
+ #
+ # <dt>imageUrl</dt>
+ # <dd>The location of the image to display for this ad.</dd>
+ #
+ # <dt>destinationUrl</dt>
+ # <dd>When a user clicks on the ad, this is the destination they should be
+ # sent to in a browser.</dd>
+ #
+ # <dt>displaySeconds</dt>
+ # <dd>The number of seconds that the ad should be displayed before it is
+ # replaced with a different ad.</dd>
+ #
+ # <dt>score</dt>
+ # <dd>A numeric indicator of the relative value of this ad, which can be
+ # compared against other ads from the same day.
+ # </dd>
+ #
+ # <dt>image</dt>
+ # <dd>If present, this is the raw image bits of the image file to display
+ # for the ad. If not present, the imageUrl should be retrieved directly.
+ # </dd>
+ #
+ # <dt>imageMime</dt>
+ # <dd>The MIME type of the 'image' bytes, if those are set.</dd>
+ #
+ # <dt>html</dt>
+ # <dd>The exact HTML to display for this ad, to support rich or external
+ # advertisements.</dd>
+ #
+ # <dt>displayFrequency</dt>
+ # <dd>If this value is set, this is the relatively frequency that this
+ # ad should be displayed in the daily set of ads, relative to a base
+ # frequency of 1.0. I.e. an ad with a frequency of 3.0 should be displayed
+ # three times more frequently than an ad with a frequency of 1.0.</dd>
+ # </dl>
+ class Ad
+ include ::Thrift::Struct
+ ID = 1
+ WIDTH = 2
+ HEIGHT = 3
+ ADVERTISERNAME = 4
+ IMAGEURL = 5
+ DESTINATIONURL = 6
+ DISPLAYSECONDS = 7
+ SCORE = 8
+ IMAGE = 9
+ IMAGEMIME = 10
+ HTML = 11
+ DISPLAYFREQUENCY = 12
+
+ ::Thrift::Struct.field_accessor self, :id, :width, :height, :advertiserName, :imageUrl, :destinationUrl, :displaySeconds, :score, :image, :imageMime, :html, :displayFrequency
+ FIELDS = {
+ ID => {:type => ::Thrift::Types::I32, :name => 'id', :optional => true},
+ WIDTH => {:type => ::Thrift::Types::I16, :name => 'width', :optional => true},
+ HEIGHT => {:type => ::Thrift::Types::I16, :name => 'height', :optional => true},
+ ADVERTISERNAME => {:type => ::Thrift::Types::STRING, :name => 'advertiserName', :optional => true},
+ IMAGEURL => {:type => ::Thrift::Types::STRING, :name => 'imageUrl', :optional => true},
+ DESTINATIONURL => {:type => ::Thrift::Types::STRING, :name => 'destinationUrl', :optional => true},
+ DISPLAYSECONDS => {:type => ::Thrift::Types::I16, :name => 'displaySeconds', :optional => true},
+ SCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'score', :optional => true},
+ IMAGE => {:type => ::Thrift::Types::STRING, :name => 'image', :optional => true},
+ IMAGEMIME => {:type => ::Thrift::Types::STRING, :name => 'imageMime', :optional => true},
+ HTML => {:type => ::Thrift::Types::STRING, :name => 'html', :optional => true},
+ DISPLAYFREQUENCY => {:type => ::Thrift::Types::DOUBLE, :name => 'displayFrequency', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # Shared notebooks represent a relationship between a notebook and a single
+ # share invitation recipient.
+ # <dl>
+ # <dt>id</dt>
+ # <dd>the primary identifier of the share</dd>
+ #
+ # <dt>userId</dt>
+ # <dd>The user id of the owner of the notebook</dd>
+ #
+ # <dt>notebookGuid</dt>
+ # <dd>the GUID of the notebooks that's being shared.</dd>
+ #
+ # <dt>email</dt>
+ # <dd>the email address of the recipient - used by the notebook
+ # owner to identify who they shared with.</dd>
+ #
+ # <dt>notebookModifiable</dt>
+ # <dd>a flag indicating the a share is read/write -otherwise it's read only</dd>
+ #
+ # <dt>requireLogin</dt>
+ # <dd>indicates that a user must login to access the share</dd>
+ #
+ # <dt>serviceCreated</dt>
+ # <dd>the date the owner first created the share with the specific email
+ # address</dd>
+ #
+ # <dt>username</dt>
+ # <dd>the username of the user who can access this share.
+ # Once it's assigned it cannot be changed.</dd>
+ # </dl>
+ class SharedNotebook
+ include ::Thrift::Struct
+ ID = 1
+ USERID = 2
+ NOTEBOOKGUID = 3
+ EMAIL = 4
+ NOTEBOOKMODIFIABLE = 5
+ REQUIRELOGIN = 6
+ SERVICECREATED = 7
+ SHAREKEY = 8
+ USERNAME = 9
+
+ ::Thrift::Struct.field_accessor self, :id, :userId, :notebookGuid, :email, :notebookModifiable, :requireLogin, :serviceCreated, :shareKey, :username
+ FIELDS = {
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
+ USERID => {:type => ::Thrift::Types::I32, :name => 'userId', :optional => true},
+ NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid', :optional => true},
+ EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true},
+ NOTEBOOKMODIFIABLE => {:type => ::Thrift::Types::BOOL, :name => 'notebookModifiable', :optional => true},
+ REQUIRELOGIN => {:type => ::Thrift::Types::BOOL, :name => 'requireLogin', :optional => true},
+ SERVICECREATED => {:type => ::Thrift::Types::I64, :name => 'serviceCreated', :optional => true},
+ SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey', :optional => true},
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ # A link in an users account that refers them to a public or individual share in
+ # another user's account.
+ #
+ # <dl>
+ # <dt>id</dt>
+ # <dd>the primary identify of a linked notebook only used for deleting.</dd>
+ #
+ # <dt>shareName</dt>
+ # <dd>the display name of the shared notebook.
+ # The link owner can change this.</dd>
+ #
+ # <dt>username</dt>
+ # <dd>the username of the user who owns the shared or public notebook</dd>
+ #
+ # <dt>shardId</dt>
+ # <dd>the shard ID of the notebook if the notebook is not public</dt>
+ #
+ # <dt>shareKey</dt>
+ # <dd>the secret key that provides access to the shared notebook</dd>
+ #
+ # <dt>uri</dt>
+ # <dd>the identifier of the public notebook</dd>
+ class LinkedNotebook
+ include ::Thrift::Struct
+ ID = 1
+ SHARENAME = 2
+ USERNAME = 3
+ SHARDID = 4
+ SHAREKEY = 5
+ URI = 6
+
+ ::Thrift::Struct.field_accessor self, :id, :shareName, :username, :shardId, :shareKey, :uri
+ FIELDS = {
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
+ SHARENAME => {:type => ::Thrift::Types::STRING, :name => 'shareName', :optional => true},
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true},
+ SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId', :optional => true},
+ SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey', :optional => true},
+ URI => {:type => ::Thrift::Types::STRING, :name => 'uri', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ end
+ end
+ end
diff --git a/vendor/gen-rb/evernote/edam/user_store.rb b/vendor/gen-rb/evernote/edam/user_store.rb
new file mode 100644
index 0000000..406043a
--- /dev/null
+++ b/vendor/gen-rb/evernote/edam/user_store.rb
@@ -0,0 +1,363 @@
+#
+# Autogenerated by Thrift
+#
+# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+#
+
+require 'thrift'
+require 'user_store_types'
+
+ module Evernote
+ module EDAM
+ module UserStore
+ module UserStore
+ class Client
+ include ::Thrift::Client
+
+ def checkVersion(clientName, edamVersionMajor, edamVersionMinor)
+ send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
+ return recv_checkVersion()
+ end
+
+ def send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
+ send_message('checkVersion', CheckVersion_args, :clientName => clientName, :edamVersionMajor => edamVersionMajor, :edamVersionMinor => edamVersionMinor)
+ end
+
+ def recv_checkVersion()
+ result = receive_message(CheckVersion_result)
+ return result.success unless result.success.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'checkVersion failed: unknown result')
+ end
+
+ def authenticate(username, password, consumerKey, consumerSecret)
+ send_authenticate(username, password, consumerKey, consumerSecret)
+ return recv_authenticate()
+ end
+
+ def send_authenticate(username, password, consumerKey, consumerSecret)
+ send_message('authenticate', Authenticate_args, :username => username, :password => password, :consumerKey => consumerKey, :consumerSecret => consumerSecret)
+ end
+
+ def recv_authenticate()
+ result = receive_message(Authenticate_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, 'authenticate failed: unknown result')
+ end
+
+ def refreshAuthentication(authenticationToken)
+ send_refreshAuthentication(authenticationToken)
+ return recv_refreshAuthentication()
+ end
+
+ def send_refreshAuthentication(authenticationToken)
+ send_message('refreshAuthentication', RefreshAuthentication_args, :authenticationToken => authenticationToken)
+ end
+
+ def recv_refreshAuthentication()
+ result = receive_message(RefreshAuthentication_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, 'refreshAuthentication failed: unknown result')
+ end
+
+ def getUser(authenticationToken)
+ send_getUser(authenticationToken)
+ return recv_getUser()
+ end
+
+ def send_getUser(authenticationToken)
+ send_message('getUser', GetUser_args, :authenticationToken => authenticationToken)
+ end
+
+ def recv_getUser()
+ result = receive_message(GetUser_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, 'getUser failed: unknown result')
+ end
+
+ def getPublicUserInfo(username)
+ send_getPublicUserInfo(username)
+ return recv_getPublicUserInfo()
+ end
+
+ def send_getPublicUserInfo(username)
+ send_message('getPublicUserInfo', GetPublicUserInfo_args, :username => username)
+ end
+
+ def recv_getPublicUserInfo()
+ result = receive_message(GetPublicUserInfo_result)
+ return result.success unless result.success.nil?
+ raise result.notFoundException unless result.notFoundException.nil?
+ raise result.systemException unless result.systemException.nil?
+ raise result.userException unless result.userException.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicUserInfo failed: unknown result')
+ end
+
+ end
+
+ class Processor
+ include ::Thrift::Processor
+
+ def process_checkVersion(seqid, iprot, oprot)
+ args = read_args(iprot, CheckVersion_args)
+ result = CheckVersion_result.new()
+ result.success = @handler.checkVersion(args.clientName, args.edamVersionMajor, args.edamVersionMinor)
+ write_result(result, oprot, 'checkVersion', seqid)
+ end
+
+ def process_authenticate(seqid, iprot, oprot)
+ args = read_args(iprot, Authenticate_args)
+ result = Authenticate_result.new()
+ begin
+ result.success = @handler.authenticate(args.username, args.password, args.consumerKey, args.consumerSecret)
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ end
+ write_result(result, oprot, 'authenticate', seqid)
+ end
+
+ def process_refreshAuthentication(seqid, iprot, oprot)
+ args = read_args(iprot, RefreshAuthentication_args)
+ result = RefreshAuthentication_result.new()
+ begin
+ result.success = @handler.refreshAuthentication(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, 'refreshAuthentication', seqid)
+ end
+
+ def process_getUser(seqid, iprot, oprot)
+ args = read_args(iprot, GetUser_args)
+ result = GetUser_result.new()
+ begin
+ result.success = @handler.getUser(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, 'getUser', seqid)
+ end
+
+ def process_getPublicUserInfo(seqid, iprot, oprot)
+ args = read_args(iprot, GetPublicUserInfo_args)
+ result = GetPublicUserInfo_result.new()
+ begin
+ result.success = @handler.getPublicUserInfo(args.username)
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
+ result.notFoundException = notFoundException
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
+ result.systemException = systemException
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
+ result.userException = userException
+ end
+ write_result(result, oprot, 'getPublicUserInfo', seqid)
+ end
+
+ end
+
+ # HELPER FUNCTIONS AND STRUCTURES
+
+ class CheckVersion_args
+ include ::Thrift::Struct
+ CLIENTNAME = 1
+ EDAMVERSIONMAJOR = 2
+ EDAMVERSIONMINOR = 3
+
+ ::Thrift::Struct.field_accessor self, :clientName, :edamVersionMajor, :edamVersionMinor
+ FIELDS = {
+ CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},
+ EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1},
+ EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 14}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ class CheckVersion_result
+ include ::Thrift::Struct
+ SUCCESS = 0
+
+ ::Thrift::Struct.field_accessor self, :success
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ class Authenticate_args
+ include ::Thrift::Struct
+ USERNAME = 1
+ PASSWORD = 2
+ CONSUMERKEY = 3
+ CONSUMERSECRET = 4
+
+ ::Thrift::Struct.field_accessor self, :username, :password, :consumerKey, :consumerSecret
+ FIELDS = {
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
+ PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
+ CONSUMERKEY => {:type => ::Thrift::Types::STRING, :name => 'consumerKey'},
+ CONSUMERSECRET => {:type => ::Thrift::Types::STRING, :name => 'consumerSecret'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ class Authenticate_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::UserStore::AuthenticationResult},
+ 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 RefreshAuthentication_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 RefreshAuthentication_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::UserStore::AuthenticationResult},
+ 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 GetUser_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 GetUser_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::User},
+ 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 GetPublicUserInfo_args
+ include ::Thrift::Struct
+ USERNAME = 1
+
+ ::Thrift::Struct.field_accessor self, :username
+ FIELDS = {
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ class GetPublicUserInfo_result
+ include ::Thrift::Struct
+ SUCCESS = 0
+ NOTFOUNDEXCEPTION = 1
+ SYSTEMEXCEPTION = 2
+ USEREXCEPTION = 3
+
+ ::Thrift::Struct.field_accessor self, :success, :notFoundException, :systemException, :userException
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PublicUserInfo},
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ end
+
+ end
+
+ end
+ end
+ end
diff --git a/vendor/gen-rb/evernote/edam/user_store_constants.rb b/vendor/gen-rb/evernote/edam/user_store_constants.rb
new file mode 100644
index 0000000..f30fff2
--- /dev/null
+++ b/vendor/gen-rb/evernote/edam/user_store_constants.rb
@@ -0,0 +1,18 @@
+#
+# Autogenerated by Thrift
+#
+# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+#
+
+require 'user_store_types'
+
+ module Evernote
+ module EDAM
+ module UserStore
+ EDAM_VERSION_MAJOR = 1
+
+ EDAM_VERSION_MINOR = 14
+
+ end
+ end
+end
diff --git a/vendor/gen-rb/evernote/edam/user_store_types.rb b/vendor/gen-rb/evernote/edam/user_store_types.rb
new file mode 100644
index 0000000..3727eb1
--- /dev/null
+++ b/vendor/gen-rb/evernote/edam/user_store_types.rb
@@ -0,0 +1,123 @@
+#
+# Autogenerated by Thrift
+#
+# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+#
+
+require 'types_types'
+require 'errors_types'
+
+
+module Evernote
+ module EDAM
+ module UserStore
+ # This structure is used to provide publicly-available user information
+ # about a particular account.
+ # <dl>
+ # <dt>userId:</dt>
+ # <dd>
+ # The unique numeric user identifier for the user account.
+ # </dd>
+ # <dt>shardId:</dt>
+ # <dd>
+ # The name of the virtual server that manages the state of
+ # this user. This value is used internally to determine which system should
+ # service requests about this user's data. It is also used to construct
+ # the appropriate URL to make requests from the NoteStore.
+ # </dd>
+ # <dt>privilege:</dt>
+ # <dd>
+ # The privilege level of the account, to determine whether
+ # this is a Premium or Free account.
+ # </dd>
+ # </dl>
+ class PublicUserInfo
+ include ::Thrift::Struct
+ USERID = 1
+ SHARDID = 2
+ PRIVILEGE = 3
+ USERNAME = 4
+
+ ::Thrift::Struct.field_accessor self, :userId, :shardId, :privilege, :username
+ FIELDS = {
+ USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
+ SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId'},
+ PRIVILEGE => {:type => ::Thrift::Types::I32, :name => 'privilege', :optional => true, :enum_class => Evernote::EDAM::Type::PrivilegeLevel},
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field shardId is unset!') unless @shardId
+ unless @privilege.nil? || Evernote::EDAM::Type::PrivilegeLevel::VALID_VALUES.include?(@privilege)
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field privilege!')
+ end
+ end
+
+ end
+
+ # When an authentication (or re-authentication) is performed, this structure
+ # provides the result to the client.
+ # <dl>
+ # <dt>currentTime:</dt>
+ # <dd>
+ # The server-side date and time when this result was
+ # generated.
+ # </dd>
+ # <dt>authenticationToken:</dt>
+ # <dd>
+ # Holds an opaque, ASCII-encoded token that can be
+ # used by the client to perform actions on a NoteStore.
+ # </dd>
+ # <dt>expiration:</dt>
+ # <dd>
+ # Holds the server-side date and time when the
+ # authentication token will expire.
+ # This time can be compared to "currentTime" to produce an expiration
+ # time that can be reconciled with the client's local clock.
+ # </dd>
+ # <dt>user:</dt>
+ # <dd>
+ # Holds the information about the account which was
+ # authenticated if this was a full authentication. May be absent if this
+ # particular authentication did not require user information.
+ # </dd>
+ # <dt>publicUserInfo:</dt>
+ # <dd>
+ # If this authentication result was achieved without full permissions to
+ # access the full User structure, this field may be set to give back
+ # a more limited public set of data.
+ # </dd>
+ # </dl>
+ class AuthenticationResult
+ include ::Thrift::Struct
+ CURRENTTIME = 1
+ AUTHENTICATIONTOKEN = 2
+ EXPIRATION = 3
+ USER = 4
+ PUBLICUSERINFO = 5
+
+ ::Thrift::Struct.field_accessor self, :currentTime, :authenticationToken, :expiration, :user, :publicUserInfo
+ FIELDS = {
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
+ EXPIRATION => {:type => ::Thrift::Types::I64, :name => 'expiration'},
+ USER => {:type => ::Thrift::Types::STRUCT, :name => 'user', :class => Evernote::EDAM::Type::User, :optional => true},
+ PUBLICUSERINFO => {:type => ::Thrift::Types::STRUCT, :name => 'publicUserInfo', :class => Evernote::EDAM::UserStore::PublicUserInfo, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authenticationToken is unset!') unless @authenticationToken
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field expiration is unset!') unless @expiration
+ end
+
+ end
+
+ end
+ end
+ end