diff options
| author | Philippe Creux | 2012-06-06 11:12:54 +0200 | 
|---|---|---|
| committer | Philippe Creux | 2012-06-06 11:12:54 +0200 | 
| commit | 80c8825ddede55d9bcdc780b107f0454589ede29 (patch) | |
| tree | 9771a332a18204a35f83974a25b629cb31375496 /vendor | |
| parent | 5ffb9a6280becaf0be90aab85c477e773ddcf0d7 (diff) | |
| download | evernote-80c8825ddede55d9bcdc780b107f0454589ede29.tar.bz2 | |
Upgrade to Evernote API SDK 1.21 for ruby
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/gen-rb/evernote/edam/errors_constants.rb | 2 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/errors_types.rb | 11 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/limits_constants.rb | 2 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/limits_types.rb | 2 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/note_store.rb | 70 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/note_store_constants.rb | 2 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/note_store_types.rb | 45 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/types_constants.rb | 2 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/types_types.rb | 324 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/user_store.rb | 124 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/user_store_constants.rb | 4 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/user_store_types.rb | 215 | 
12 files changed, 643 insertions, 160 deletions
| diff --git a/vendor/gen-rb/evernote/edam/errors_constants.rb b/vendor/gen-rb/evernote/edam/errors_constants.rb index d2cb653..4ebe97c 100644 --- a/vendor/gen-rb/evernote/edam/errors_constants.rb +++ b/vendor/gen-rb/evernote/edam/errors_constants.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # diff --git a/vendor/gen-rb/evernote/edam/errors_types.rb b/vendor/gen-rb/evernote/edam/errors_types.rb index 12a9d89..cc99888 100644 --- a/vendor/gen-rb/evernote/edam/errors_types.rb +++ b/vendor/gen-rb/evernote/edam/errors_types.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -21,8 +21,13 @@ module Evernote                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 +              LEN_TOO_SHORT = 13 +              LEN_TOO_LONG = 14 +              TOO_FEW = 15 +              TOO_MANY = 16 +              UNSUPPORTED_OPERATION = 17 +              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", 13 => "LEN_TOO_SHORT", 14 => "LEN_TOO_LONG", 15 => "TOO_FEW", 16 => "TOO_MANY", 17 => "UNSUPPORTED_OPERATION"} +              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, LEN_TOO_SHORT, LEN_TOO_LONG, TOO_FEW, TOO_MANY, UNSUPPORTED_OPERATION]).freeze              end              # This exception is thrown by EDAM procedures when a call fails as a result of diff --git a/vendor/gen-rb/evernote/edam/limits_constants.rb b/vendor/gen-rb/evernote/edam/limits_constants.rb index 65127f1..c5a138b 100644 --- a/vendor/gen-rb/evernote/edam/limits_constants.rb +++ b/vendor/gen-rb/evernote/edam/limits_constants.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # diff --git a/vendor/gen-rb/evernote/edam/limits_types.rb b/vendor/gen-rb/evernote/edam/limits_types.rb index b3d57a9..48536c1 100644 --- a/vendor/gen-rb/evernote/edam/limits_types.rb +++ b/vendor/gen-rb/evernote/edam/limits_types.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # diff --git a/vendor/gen-rb/evernote/edam/note_store.rb b/vendor/gen-rb/evernote/edam/note_store.rb index 5c4810d..9575023 100644 --- a/vendor/gen-rb/evernote/edam/note_store.rb +++ b/vendor/gen-rb/evernote/edam/note_store.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -31,6 +31,23 @@ require 'note_store_types'                          raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncState failed: unknown result')                        end +                      def getSyncStateWithMetrics(authenticationToken, clientMetrics) +                        send_getSyncStateWithMetrics(authenticationToken, clientMetrics) +                        return recv_getSyncStateWithMetrics() +                      end + +                      def send_getSyncStateWithMetrics(authenticationToken, clientMetrics) +                        send_message('getSyncStateWithMetrics', GetSyncStateWithMetrics_args, :authenticationToken => authenticationToken, :clientMetrics => clientMetrics) +                      end + +                      def recv_getSyncStateWithMetrics() +                        result = receive_message(GetSyncStateWithMetrics_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, 'getSyncStateWithMetrics failed: unknown result') +                      end +                        def getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly)                          send_getSyncChunk(authenticationToken, afterUSN, maxEntries, fullSyncOnly)                          return recv_getSyncChunk() @@ -1347,6 +1364,19 @@ require 'note_store_types'                          write_result(result, oprot, 'getSyncState', seqid)                        end +                      def process_getSyncStateWithMetrics(seqid, iprot, oprot) +                        args = read_args(iprot, GetSyncStateWithMetrics_args) +                        result = GetSyncStateWithMetrics_result.new() +                        begin +                          result.success = @handler.getSyncStateWithMetrics(args.authenticationToken, args.clientMetrics) +                        rescue Evernote::EDAM::Error::EDAMUserException => userException +                          result.userException = userException +                        rescue Evernote::EDAM::Error::EDAMSystemException => systemException +                          result.systemException = systemException +                        end +                        write_result(result, oprot, 'getSyncStateWithMetrics', seqid) +                      end +                        def process_getSyncChunk(seqid, iprot, oprot)                          args = read_args(iprot, GetSyncChunk_args)                          result = GetSyncChunk_result.new() @@ -2456,6 +2486,44 @@ require 'note_store_types'                        ::Thrift::Struct.generate_accessors self                      end +                    class GetSyncStateWithMetrics_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      AUTHENTICATIONTOKEN = 1 +                      CLIENTMETRICS = 2 + +                      FIELDS = { +                        AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, +                        CLIENTMETRICS => {:type => ::Thrift::Types::STRUCT, :name => 'clientMetrics', :class => Evernote::EDAM::NoteStore::ClientUsageMetrics} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class GetSyncStateWithMetrics_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 +                      USEREXCEPTION = 1 +                      SYSTEMEXCEPTION = 2 + +                      FIELDS = { +                        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::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 + +                      ::Thrift::Struct.generate_accessors self +                    end +                      class GetSyncChunk_args                        include ::Thrift::Struct, ::Thrift::Struct_Union                        AUTHENTICATIONTOKEN = 1 diff --git a/vendor/gen-rb/evernote/edam/note_store_constants.rb b/vendor/gen-rb/evernote/edam/note_store_constants.rb index 6ad8a6d..f167b02 100644 --- a/vendor/gen-rb/evernote/edam/note_store_constants.rb +++ b/vendor/gen-rb/evernote/edam/note_store_constants.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # diff --git a/vendor/gen-rb/evernote/edam/note_store_types.rb b/vendor/gen-rb/evernote/edam/note_store_types.rb index 90a6e92..bd91f14 100644 --- a/vendor/gen-rb/evernote/edam/note_store_types.rb +++ b/vendor/gen-rb/evernote/edam/note_store_types.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -308,14 +308,14 @@ module Evernote              #    being returned in notes (includeNoteResources is true).  Otherwise,              #    only the keysOnly field will be filled in.              #    </dd> -            #     +            #               #  <dt>requireNoteContentClass</dt>              #    <dd>              #    If set, then only send notes whose content class matches this value.              #    The value can be a literal match or, if the last character is an              #    asterisk, a prefix match.              #    </dd> -            #      +            #               #  </dl>              class SyncChunkFilter                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -576,7 +576,7 @@ module Evernote              #  This structure is returned from calls to the findNotesMetadata function to              #  give the high-level metadata about a subset of Notes that are found to              #  match a specified NoteFilter in a search. -            #   +            #               # <dl>              #  <dt>startIndex</dt>              #    <dd> @@ -970,6 +970,43 @@ module Evernote                ::Thrift::Struct.generate_accessors self              end +            # This structure is passed from clients to the Evernote service when they wish +            # to relay coarse-grained usage metrics to the service to help improve +            # products. +            #  +            # <dl> +            #  <dt>sessions</dt> +            #  <dd> +            #    This field contains a count of the number of usage "sessions" that have +            #    occurred with this client which have not previously been reported to +            #    the service. +            #    A "session" is defined as one of the 96 fifteen-minute intervals of the +            #    day when someone used Evernote's interface at least once. +            #    So if a user interacts with an Evernote client at 12:18, 12:24, and 12:36, +            #    and then the client synchronizes at 12:39, it would report that there were +            #    two previously-unreported sessions (one session for the 12:15-12:30 time +            #    period, and one for the 12:30-12:45 period). +            #    If the user used Evernote again at 12:41 and synchronized at 12:43, it +            #    would not report any new sessions, because the 12:30-12:45 session had +            #    already been reported. +            #  </dd> +            # </dl> +            class ClientUsageMetrics +              include ::Thrift::Struct, ::Thrift::Struct_Union +              SESSIONS = 1 + +              FIELDS = { +                SESSIONS => {:type => ::Thrift::Types::I32, :name => 'sessions', :optional => true} +              } + +              def struct_fields; FIELDS; end + +              def validate +              end + +              ::Thrift::Struct.generate_accessors self +            end +            end          end        end diff --git a/vendor/gen-rb/evernote/edam/types_constants.rb b/vendor/gen-rb/evernote/edam/types_constants.rb index 68cc3cc..1bc5423 100644 --- a/vendor/gen-rb/evernote/edam/types_constants.rb +++ b/vendor/gen-rb/evernote/edam/types_constants.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # diff --git a/vendor/gen-rb/evernote/edam/types_types.rb b/vendor/gen-rb/evernote/edam/types_types.rb index 670fe61..39ee984 100644 --- a/vendor/gen-rb/evernote/edam/types_types.rb +++ b/vendor/gen-rb/evernote/edam/types_types.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -664,11 +664,16 @@ module Evernote              # A structure that wraps a map of name/value pairs whose values are not              # always present in the structure in order to reduce space when obtaining -            # batches of entities that contain the map.  When a client provides a LazyMap -            # to the server, the fullMap field must be set and the keysOnly field will -            # be ignored by the server.  When the server provides the client with a -            # LazyMap, it will fill in either the keysOnly field or the fullMap field, -            # but not both, based on the API and parameters. +            # batches of entities that contain the map. +            #  +            # When the server provides the client with a LazyMap, it will fill in either +            # the keysOnly field or the fullMap field, but never both, based on the API +            # and parameters. +            #  +            # When a client provides a LazyMap to the server as part of an update to +            # an object, the server will only update the LazyMap if the fullMap field is +            # set. If the fullMap field is not set, the server will not make any changes +            # to the map.              #               # Check the API documentation of the individual calls involving the LazyMap              # for full details including the constraints of the names and values of the @@ -1016,9 +1021,9 @@ module Evernote              # there is a trade-off when an application chooses to use contentClass.              # Applications that set contentClass when creating notes must use a contentClass              # string of the form <i>CompanyName.ApplicationName</i> to ensure uniqueness.</p> -            # Length restrictions: EDAM_ATTRIBUTE_LEN_MIN, EDAM_ATTRIBUTE_LEN_MAX +            # Length restrictions: EDAM_NOTE_CONTENT_CLASS_LEN_MIN, EDAM_NOTE_CONTENT_CLASS_LEN_MAX              # <br/> -            # Regex: EDAM_ATTRIBUTE_REGEX +            # Regex: EDAM_NOTE_CONTENT_CLASS_REGEX              # </dd>              #               # <dt>applicationData</dt> @@ -1038,6 +1043,17 @@ module Evernote              # Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX              # </dd>              #  +            # <dt>lastEditedBy</dt> +            # <dd>An indication of who made the last change to the note.  If you are +            # accessing the note via a shared notebook to which you have modification +            # rights, or if you are the owner of the notebook to which the note belongs, +            # then you have access to the value.  In this case, the value will be +            # unset if the owner of the notebook containing the note was the last to +            # make the modification, else it will be a string describing the +            # guest who made the last edit.  If you do not have access to this value, +            # it will be left unset.  This field is read-only by clients.  The server +            # will ignore all values set by clients into this field.</dd> +            #               # </dl>              class NoteAttributes                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -1053,6 +1069,7 @@ module Evernote                PLACENAME = 21                CONTENTCLASS = 22                APPLICATIONDATA = 23 +              LASTEDITEDBY = 24                FIELDS = {                  SUBJECTDATE => {:type => ::Thrift::Types::I64, :name => 'subjectDate', :optional => true}, @@ -1066,7 +1083,8 @@ module Evernote                  SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true},                  PLACENAME => {:type => ::Thrift::Types::STRING, :name => 'placeName', :optional => true},                  CONTENTCLASS => {:type => ::Thrift::Types::STRING, :name => 'contentClass', :optional => true}, -                APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => Evernote::EDAM::Type::LazyMap, :optional => true} +                APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => Evernote::EDAM::Type::LazyMap, :optional => true}, +                LASTEDITEDBY => {:type => ::Thrift::Types::STRING, :name => 'lastEditedBy', :optional => true}                }                def struct_fields; FIELDS; end @@ -1311,129 +1329,6 @@ module Evernote                ::Thrift::Struct.generate_accessors self              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> -            #  -            # <dt>stack</dt> -            #   <dd>If this is set, then the notebook is visually contained within a stack -            #   of notebooks with this name.  All notebooks in the same account with the -            #   same 'stack' field are considered to be in the same stack. -            #   Notebooks with no stack set are "top level" and not contained within a -            #   stack. -            #   </dd> -            #  -            # <dt>sharedNotebookIds</dt> -            #   <dd>If this notebook has been shared with one or more individuals, then -            #   this will contain the 'id' fields to identify those SharedNotebook -            #   entries in the NoteStore.  This field is only set by the server, and it -            #   is ignored in calls to createNotebook, updateNotebook, etc. -            #   </dd> -            # </dl> -            class Notebook -              include ::Thrift::Struct, ::Thrift::Struct_Union -              GUID = 1 -              NAME = 2 -              UPDATESEQUENCENUM = 5 -              DEFAULTNOTEBOOK = 6 -              SERVICECREATED = 7 -              SERVICEUPDATED = 8 -              PUBLISHING = 10 -              PUBLISHED = 11 -              STACK = 12 -              SHAREDNOTEBOOKIDS = 13 - -              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}, -                STACK => {:type => ::Thrift::Types::STRING, :name => 'stack', :optional => true}, -                SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}, :optional => true} -              } - -              def struct_fields; FIELDS; end - -              def validate -              end - -              ::Thrift::Struct.generate_accessors self -            end -              # A named search associated with the account that can be quickly re-used.              # <dl>              # <dt>guid</dt> @@ -1628,6 +1523,12 @@ module Evernote              # <dd>the date the owner first created the share with the specific email              #   address</dd>              #  +            # <dt>serviceUpdated</dt> +            # <dd>the date the shared notebook was last updated on the service.  This +            #     will be updated when authenticateToSharedNotebook is called the first +            #     time with a shared notebook requiring login (i.e. when the username is +            #     bound to that shared notebook).</dd> +            #               # <dt>username</dt>              # <dd>the username of the user who can access this share.              #   Once it's assigned it cannot be changed.</dd> @@ -1641,6 +1542,7 @@ module Evernote                NOTEBOOKMODIFIABLE = 5                REQUIRELOGIN = 6                SERVICECREATED = 7 +              SERVICEUPDATED = 10                SHAREKEY = 8                USERNAME = 9 @@ -1652,6 +1554,7 @@ module Evernote                  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}, +                SERVICEUPDATED => {:type => ::Thrift::Types::I64, :name => 'serviceUpdated', :optional => true},                  SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey', :optional => true},                  USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true}                } @@ -1664,6 +1567,138 @@ module Evernote                ::Thrift::Struct.generate_accessors self              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> +            #  +            # <dt>stack</dt> +            #   <dd>If this is set, then the notebook is visually contained within a stack +            #   of notebooks with this name.  All notebooks in the same account with the +            #   same 'stack' field are considered to be in the same stack. +            #   Notebooks with no stack set are "top level" and not contained within a +            #   stack. +            #   </dd> +            #  +            # <dt>sharedNotebookIds</dt> +            #   <dd><i>DEPRECATED</i> - replaced by sharedNotebooks.</dd> +            #  +            # <dt>sharedNotebooks</dt> +            #   <dd>The list of recipients to whom this notebook has been shared +            #   (one SharedNotebook object per recipient email address). This field will +            #   be unset if you do not have permission to access this data. If you are +            #   accessing the notebook as the owner or via a shared notebook that is +            #   modifiable, then you have access to this data and the value will be set. +            #   This field is read-only. Clients may not make changes to shared notebooks +            #   via this field. +            #   </dd> +            #  +            # </dl> +            class Notebook +              include ::Thrift::Struct, ::Thrift::Struct_Union +              GUID = 1 +              NAME = 2 +              UPDATESEQUENCENUM = 5 +              DEFAULTNOTEBOOK = 6 +              SERVICECREATED = 7 +              SERVICEUPDATED = 8 +              PUBLISHING = 10 +              PUBLISHED = 11 +              STACK = 12 +              SHAREDNOTEBOOKIDS = 13 +              SHAREDNOTEBOOKS = 14 + +              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}, +                STACK => {:type => ::Thrift::Types::STRING, :name => 'stack', :optional => true}, +                SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}, :optional => true}, +                SHAREDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SharedNotebook}, :optional => true} +              } + +              def struct_fields; FIELDS; end + +              def validate +              end + +              ::Thrift::Struct.generate_accessors self +            end +              # A link in an users account that refers them to a public or individual share in              # another user's account.              #  @@ -1700,6 +1735,25 @@ module Evernote              #   account, and can be used to compare the order of modifications within the              #   service.              #   </dd> +            #  +            # <dt>noteStoreUrl</dt> +            #   <dd> +            #   This field will contain the full URL that clients should use to make +            #   NoteStore requests to the server shard that contains that notebook's data. +            #   I.e. this is the URL that should be used to create the Thrift HTTP client +            #   transport to send messages to the NoteStore service for the account. +            #   </dd> +            #  +            # <dt>webApiUrlPrefix:</dt> +            #   <dd> +            #   This field will contain the initial part of the URLs that should be used +            #   to make requests to Evernote's thin client "web API", which provide +            #   optimized operations for clients that aren't capable of manipulating +            #   the full contents of accounts via the full Thrift data model. Clients +            #   should concatenate the relative path for the various servlets onto the +            #   end of this string to construct the full URL, as documented on our +            #   developer web site. +            #   </dd>              # </dl>              class LinkedNotebook                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -1710,6 +1764,8 @@ module Evernote                URI = 6                GUID = 7                UPDATESEQUENCENUM = 8 +              NOTESTOREURL = 9 +              WEBAPIURLPREFIX = 10                FIELDS = {                  SHARENAME => {:type => ::Thrift::Types::STRING, :name => 'shareName', :optional => true}, @@ -1718,7 +1774,9 @@ module Evernote                  SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey', :optional => true},                  URI => {:type => ::Thrift::Types::STRING, :name => 'uri', :optional => true},                  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, -                UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true} +                UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true}, +                NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true}, +                WEBAPIURLPREFIX => {:type => ::Thrift::Types::STRING, :name => 'webApiUrlPrefix', :optional => true}                }                def struct_fields; FIELDS; end diff --git a/vendor/gen-rb/evernote/edam/user_store.rb b/vendor/gen-rb/evernote/edam/user_store.rb index c31b0ba..08f8343 100644 --- a/vendor/gen-rb/evernote/edam/user_store.rb +++ b/vendor/gen-rb/evernote/edam/user_store.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -29,6 +29,21 @@ require 'user_store_types'                          raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'checkVersion failed: unknown result')                        end +                      def getBootstrapInfo(locale) +                        send_getBootstrapInfo(locale) +                        return recv_getBootstrapInfo() +                      end + +                      def send_getBootstrapInfo(locale) +                        send_message('getBootstrapInfo', GetBootstrapInfo_args, :locale => locale) +                      end + +                      def recv_getBootstrapInfo() +                        result = receive_message(GetBootstrapInfo_result) +                        return result.success unless result.success.nil? +                        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBootstrapInfo failed: unknown result') +                      end +                        def authenticate(username, password, consumerKey, consumerSecret)                          send_authenticate(username, password, consumerKey, consumerSecret)                          return recv_authenticate() @@ -115,6 +130,23 @@ require 'user_store_types'                          raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPremiumInfo failed: unknown result')                        end +                      def getNoteStoreUrl(authenticationToken) +                        send_getNoteStoreUrl(authenticationToken) +                        return recv_getNoteStoreUrl() +                      end + +                      def send_getNoteStoreUrl(authenticationToken) +                        send_message('getNoteStoreUrl', GetNoteStoreUrl_args, :authenticationToken => authenticationToken) +                      end + +                      def recv_getNoteStoreUrl() +                        result = receive_message(GetNoteStoreUrl_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, 'getNoteStoreUrl failed: unknown result') +                      end +                      end                      class Processor @@ -127,6 +159,13 @@ require 'user_store_types'                          write_result(result, oprot, 'checkVersion', seqid)                        end +                      def process_getBootstrapInfo(seqid, iprot, oprot) +                        args = read_args(iprot, GetBootstrapInfo_args) +                        result = GetBootstrapInfo_result.new() +                        result.success = @handler.getBootstrapInfo(args.locale) +                        write_result(result, oprot, 'getBootstrapInfo', seqid) +                      end +                        def process_authenticate(seqid, iprot, oprot)                          args = read_args(iprot, Authenticate_args)                          result = Authenticate_result.new() @@ -194,6 +233,19 @@ require 'user_store_types'                          write_result(result, oprot, 'getPremiumInfo', seqid)                        end +                      def process_getNoteStoreUrl(seqid, iprot, oprot) +                        args = read_args(iprot, GetNoteStoreUrl_args) +                        result = GetNoteStoreUrl_result.new() +                        begin +                          result.success = @handler.getNoteStoreUrl(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, 'getNoteStoreUrl', seqid) +                      end +                      end                      # HELPER FUNCTIONS AND STRUCTURES @@ -207,7 +259,7 @@ require 'user_store_types'                        FIELDS = {                          CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},                          EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1}, -                        EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 20} +                        EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 21}                        }                        def struct_fields; FIELDS; end @@ -234,6 +286,38 @@ require 'user_store_types'                        ::Thrift::Struct.generate_accessors self                      end +                    class GetBootstrapInfo_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      LOCALE = 1 + +                      FIELDS = { +                        LOCALE => {:type => ::Thrift::Types::STRING, :name => 'locale'} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class GetBootstrapInfo_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 + +                      FIELDS = { +                        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::BootstrapInfo} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end +                      class Authenticate_args                        include ::Thrift::Struct, ::Thrift::Struct_Union                        USERNAME = 1 @@ -422,6 +506,42 @@ require 'user_store_types'                        ::Thrift::Struct.generate_accessors self                      end +                    class GetNoteStoreUrl_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      AUTHENTICATIONTOKEN = 1 + +                      FIELDS = { +                        AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class GetNoteStoreUrl_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 +                      USEREXCEPTION = 1 +                      SYSTEMEXCEPTION = 2 + +                      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} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end +                    end                  end diff --git a/vendor/gen-rb/evernote/edam/user_store_constants.rb b/vendor/gen-rb/evernote/edam/user_store_constants.rb index 0204da3..10a8229 100644 --- a/vendor/gen-rb/evernote/edam/user_store_constants.rb +++ b/vendor/gen-rb/evernote/edam/user_store_constants.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -11,7 +11,7 @@ require 'user_store_types'            module UserStore              EDAM_VERSION_MAJOR = 1 -            EDAM_VERSION_MINOR = 20 +            EDAM_VERSION_MINOR = 21      end    end diff --git a/vendor/gen-rb/evernote/edam/user_store_types.rb b/vendor/gen-rb/evernote/edam/user_store_types.rb index 5a70643..c8a5a37 100644 --- a/vendor/gen-rb/evernote/edam/user_store_types.rb +++ b/vendor/gen-rb/evernote/edam/user_store_types.rb @@ -1,5 +1,5 @@  # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.8.0)  #  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING  # @@ -30,14 +30,20 @@ module Evernote              #    <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. +            #    service requests about this user's data.              #    </dd>              #  <dt>privilege:</dt>              #    <dd>              #    The privilege level of the account, to determine whether              #    this is a Premium or Free account.              #    </dd> +            #  <dt>noteStoreUrl:</dt> +            #    <dd> +            #    This field will contain the full URL that clients should use to make +            #    NoteStore requests to the server shard that contains that user's data. +            #    I.e. this is the URL that should be used to create the Thrift HTTP client +            #    transport to send messages to the NoteStore service for the account. +            #    </dd>              #  </dl>              class PublicUserInfo                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -45,12 +51,14 @@ module Evernote                SHARDID = 2                PRIVILEGE = 3                USERNAME = 4 +              NOTESTOREURL = 5                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} +                USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true}, +                NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true}                }                def struct_fields; FIELDS; end @@ -82,8 +90,8 @@ module Evernote              #    </dd>              #  <dt>premiumExpirationDate:</dt>              #    <dd> -            #    The date when the user's Premium account expires, or the date when the user's -            #    account will be charged if it has a recurring payment method. +            #    The date when the user's Premium account expires, or the date when the +            #    user's account will be charged if it has a recurring payment method.              #    </dd>              #  <dt>premiumExtendable:</dt>              #    <dd> @@ -95,8 +103,8 @@ module Evernote              #    </dd>              #  <dt>premiumCancellationPending:</dt>              #    <dd> -            #    True if the user has requested that no further charges to be made; the Premium -            #    account will remain active until it expires. +            #    True if the user has requested that no further charges to be made; the +            #    Premium account will remain active until it expires.              #    </dd>              #  <dt>canPurchaseUploadAllowance:</dt>              #    <dd> @@ -110,6 +118,14 @@ module Evernote              #    <dd>              #    The role of the user within a sponsored group.              #    </dd> +            #  <dt>businessName:</dt> +            #    <dd> +            #    The name of the business that the user is associated with. +            #    </dd> +            #  <dt>businessAdmin:</dt> +            #    <dd> +            #    True if the user is the administrator of the business. +            #    </dd>              #  </dl>              class PremiumInfo                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -123,6 +139,8 @@ module Evernote                CANPURCHASEUPLOADALLOWANCE = 8                SPONSOREDGROUPNAME = 9                SPONSOREDGROUPROLE = 10 +              BUSINESSNAME = 11 +              BUSINESSADMIN = 12                FIELDS = {                  CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'}, @@ -134,7 +152,9 @@ module Evernote                  PREMIUMCANCELLATIONPENDING => {:type => ::Thrift::Types::BOOL, :name => 'premiumCancellationPending'},                  CANPURCHASEUPLOADALLOWANCE => {:type => ::Thrift::Types::BOOL, :name => 'canPurchaseUploadAllowance'},                  SPONSOREDGROUPNAME => {:type => ::Thrift::Types::STRING, :name => 'sponsoredGroupName', :optional => true}, -                SPONSOREDGROUPROLE => {:type => ::Thrift::Types::I32, :name => 'sponsoredGroupRole', :optional => true, :enum_class => Evernote::EDAM::UserStore::SponsoredGroupRole} +                SPONSOREDGROUPROLE => {:type => ::Thrift::Types::I32, :name => 'sponsoredGroupRole', :optional => true, :enum_class => Evernote::EDAM::UserStore::SponsoredGroupRole}, +                BUSINESSNAME => {:type => ::Thrift::Types::STRING, :name => 'businessName', :optional => true}, +                BUSINESSADMIN => {:type => ::Thrift::Types::BOOL, :name => 'businessAdmin', :optional => true}                }                def struct_fields; FIELDS; end @@ -187,6 +207,23 @@ module Evernote              #    access the full User structure, this field may be set to give back              #    a more limited public set of data.              #    </dd> +            #  <dt>noteStoreUrl:</dt> +            #    <dd> +            #    This field will contain the full URL that clients should use to make +            #    NoteStore requests to the server shard that contains that user's data. +            #    I.e. this is the URL that should be used to create the Thrift HTTP client +            #    transport to send messages to the NoteStore service for the account. +            #    </dd> +            #  <dt>webApiUrlPrefix:</dt> +            #    <dd> +            #    This field will contain the initial part of the URLs that should be used +            #    to make requests to Evernote's thin client "web API", which provide +            #    optimized operations for clients that aren't capable of manipulating +            #    the full contents of accounts via the full Thrift data model. Clients +            #    should concatenate the relative path for the various servlets onto the +            #    end of this string to construct the full URL, as documented on our +            #    developer web site. +            #    </dd>              #  </dl>              class AuthenticationResult                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -195,13 +232,17 @@ module Evernote                EXPIRATION = 3                USER = 4                PUBLICUSERINFO = 5 +              NOTESTOREURL = 6 +              WEBAPIURLPREFIX = 7                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} +                PUBLICUSERINFO => {:type => ::Thrift::Types::STRUCT, :name => 'publicUserInfo', :class => Evernote::EDAM::UserStore::PublicUserInfo, :optional => true}, +                NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true}, +                WEBAPIURLPREFIX => {:type => ::Thrift::Types::STRING, :name => 'webApiUrlPrefix', :optional => true}                }                def struct_fields; FIELDS; end @@ -215,6 +256,160 @@ module Evernote                ::Thrift::Struct.generate_accessors self              end +            #  This structure describes a collection of bootstrap settings. +            # <dl> +            #  <dt>serviceHost:</dt> +            #    <dd> +            #    The hostname and optional port for composing Evernote web service URLs. +            #    This URL can be used to access the UserStore and related services, +            #    but must not be used to compose the NoteStore URL. Client applications +            #    must handle serviceHost values that include only the hostname +            #    (e.g. www.evernote.com) or both the hostname and port (e.g. www.evernote.com:8080). +            #    If no port is specified, or if port 443 is specified, client applications must +            #    use the scheme "https" when composing URLs. Otherwise, a client must use the +            #    scheme "http". +            #  </dd> +            #  <dt>marketingUrl:</dt> +            #    <dd> +            #    The URL stem for the Evernote corporate marketing website, e.g. http://www.evernote.com. +            #    This stem can be used to compose website URLs. For example, the URL of the Evernote +            #    Trunk is composed by appending "/about/trunk/" to the value of marketingUrl. +            #    </dd> +            #  <dt>supportUrl:</dt> +            #    <dd> +            #    The full URL for the Evernote customer support website, e.g. https://support.evernote.com. +            #    </dd> +            #  <dt>accountEmailDomain:</dt> +            #    <dd> +            #    The domain used for an Evernote user's incoming email address, which allows notes to +            #    be emailed into an account. E.g. m.evernote.com. +            #    </dd> +            #  <dt>enableFacebookSharing:</dt> +            #    <dd> +            #    Whether the client application should enable sharing of notes on Facebook. +            #    </dd> +            #  <dt>enableGiftSubscriptions:</dt> +            #    <dd> +            #    Whether the client application should enable gift subscriptions. +            #    </dd> +            #  <dt>enableSupportTickets:</dt> +            #    <dd> +            #    Whether the client application should enable in-client creation of support tickets. +            #    </dd> +            #  <dt>enableSharedNotebooks:</dt> +            #    <dd> +            #    Whether the client application should enable shared notebooks. +            #    </dd> +            #  <dt>enableSingleNoteSharing:</dt> +            #    <dd> +            #    Whether the client application should enable single note sharing. +            #    </dd> +            #  <dt>enableSponsoredAccounts:</dt> +            #    <dd> +            #    Whether the client application should enable sponsored accounts. +            #    </dd> +            #  <dt>enableTwitterSharing:</dt> +            #    <dd> +            #    Whether the client application should enable sharing of notes on Twitter. +            #    </dd> +            #  </dl> +            class BootstrapSettings +              include ::Thrift::Struct, ::Thrift::Struct_Union +              SERVICEHOST = 1 +              MARKETINGURL = 2 +              SUPPORTURL = 3 +              ACCOUNTEMAILDOMAIN = 4 +              ENABLEFACEBOOKSHARING = 5 +              ENABLEGIFTSUBSCRIPTIONS = 6 +              ENABLESUPPORTTICKETS = 7 +              ENABLESHAREDNOTEBOOKS = 8 +              ENABLESINGLENOTESHARING = 9 +              ENABLESPONSOREDACCOUNTS = 10 +              ENABLETWITTERSHARING = 11 + +              FIELDS = { +                SERVICEHOST => {:type => ::Thrift::Types::STRING, :name => 'serviceHost'}, +                MARKETINGURL => {:type => ::Thrift::Types::STRING, :name => 'marketingUrl'}, +                SUPPORTURL => {:type => ::Thrift::Types::STRING, :name => 'supportUrl'}, +                ACCOUNTEMAILDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'accountEmailDomain'}, +                ENABLEFACEBOOKSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableFacebookSharing', :optional => true}, +                ENABLEGIFTSUBSCRIPTIONS => {:type => ::Thrift::Types::BOOL, :name => 'enableGiftSubscriptions', :optional => true}, +                ENABLESUPPORTTICKETS => {:type => ::Thrift::Types::BOOL, :name => 'enableSupportTickets', :optional => true}, +                ENABLESHAREDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enableSharedNotebooks', :optional => true}, +                ENABLESINGLENOTESHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableSingleNoteSharing', :optional => true}, +                ENABLESPONSOREDACCOUNTS => {:type => ::Thrift::Types::BOOL, :name => 'enableSponsoredAccounts', :optional => true}, +                ENABLETWITTERSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableTwitterSharing', :optional => true} +              } + +              def struct_fields; FIELDS; end + +              def validate +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serviceHost is unset!') unless @serviceHost +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field marketingUrl is unset!') unless @marketingUrl +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supportUrl is unset!') unless @supportUrl +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field accountEmailDomain is unset!') unless @accountEmailDomain +              end + +              ::Thrift::Struct.generate_accessors self +            end + +            #  This structure describes a collection of bootstrap settings. +            # <dl> +            #  <dt>name:</dt> +            #    <dd> +            #    The unique name of the profile, which is guaranteed to remain consistent across +            #    calls to getBootstrapInfo. +            #    </dd> +            #  <dt>settings:</dt> +            #    <dd> +            #    The settings for this profile. +            #    </dd> +            #  </dl> +            class BootstrapProfile +              include ::Thrift::Struct, ::Thrift::Struct_Union +              NAME = 1 +              SETTINGS = 2 + +              FIELDS = { +                NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, +                SETTINGS => {:type => ::Thrift::Types::STRUCT, :name => 'settings', :class => Evernote::EDAM::UserStore::BootstrapSettings} +              } + +              def struct_fields; FIELDS; end + +              def validate +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field settings is unset!') unless @settings +              end + +              ::Thrift::Struct.generate_accessors self +            end + +            #  This structure describes a collection of bootstrap profiles. +            # <dl> +            #  <dt>profiles:</dt> +            #    <dd> +            #    List of one or more bootstrap profiles, in descending +            #    preference order. +            #    </dd> +            #  </dl> +            class BootstrapInfo +              include ::Thrift::Struct, ::Thrift::Struct_Union +              PROFILES = 1 + +              FIELDS = { +                PROFILES => {:type => ::Thrift::Types::LIST, :name => 'profiles', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::UserStore::BootstrapProfile}} +              } + +              def struct_fields; FIELDS; end + +              def validate +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profiles is unset!') unless @profiles +              end + +              ::Thrift::Struct.generate_accessors self +            end +            end          end        end | 
