evernote 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.mkd +2 -1
- data/lib/evernote/user_store.rb +1 -1
- data/lib/evernote/version.rb +1 -1
- data/vendor/gen-rb/evernote/edam/limits_constants.rb +35 -0
- data/vendor/gen-rb/evernote/edam/note_store.rb +766 -17
- data/vendor/gen-rb/evernote/edam/note_store_types.rb +156 -23
- data/vendor/gen-rb/evernote/edam/types_types.rb +140 -17
- data/vendor/gen-rb/evernote/edam/user_store.rb +67 -1
- data/vendor/gen-rb/evernote/edam/user_store_constants.rb +1 -1
- data/vendor/gen-rb/evernote/edam/user_store_types.rb +97 -0
- metadata +10 -12
data/README.mkd
CHANGED
@@ -46,7 +46,8 @@ Thanks to the following peeps for helping out:
|
|
46
46
|
* Peter Mangiafico (peetucket)
|
47
47
|
* d1
|
48
48
|
* Mikhail Zelenin (MioGreen)
|
49
|
-
|
49
|
+
* Jimmy Zimmerman (jimmyz)
|
50
|
+
* Buck Doyle (backspace)
|
50
51
|
|
51
52
|
## Copyright ##
|
52
53
|
Copyright (c) 2011 Chris Sepic. See LICENSE for details.
|
data/lib/evernote/user_store.rb
CHANGED
@@ -7,7 +7,7 @@ module Evernote
|
|
7
7
|
|
8
8
|
def initialize(uri, credentials, thrift_client_options = {})
|
9
9
|
|
10
|
-
raise ArgumentError, "credentials must be passed in as a hash" unless credentials.
|
10
|
+
raise ArgumentError, "credentials must be passed in as a hash" unless credentials.is_a? Hash
|
11
11
|
|
12
12
|
credentials=credentials.inject({}) { |h,(k,v)| h[k.to_sym] = v; h } # convert any stringifyed hash keys into symbols
|
13
13
|
|
data/lib/evernote/version.rb
CHANGED
@@ -17,6 +17,8 @@ require 'limits_types'
|
|
17
17
|
|
18
18
|
EDAM_ATTRIBUTE_LIST_MAX = 100
|
19
19
|
|
20
|
+
EDAM_ATTRIBUTE_MAP_MAX = 100
|
21
|
+
|
20
22
|
EDAM_GUID_LEN_MIN = 36
|
21
23
|
|
22
24
|
EDAM_GUID_LEN_MAX = 36
|
@@ -57,6 +59,8 @@ require 'limits_types'
|
|
57
59
|
|
58
60
|
EDAM_MIME_TYPE_AMR = %q"audio/amr"
|
59
61
|
|
62
|
+
EDAM_MIME_TYPE_MP4_VIDEO = %q"video/mp4"
|
63
|
+
|
60
64
|
EDAM_MIME_TYPE_INK = %q"application/vnd.evernote.ink"
|
61
65
|
|
62
66
|
EDAM_MIME_TYPE_PDF = %q"application/pdf"
|
@@ -72,6 +76,7 @@ require 'limits_types'
|
|
72
76
|
%q"audio/amr",
|
73
77
|
%q"application/vnd.evernote.ink",
|
74
78
|
%q"application/pdf",
|
79
|
+
%q"video/mp4",
|
75
80
|
])
|
76
81
|
|
77
82
|
EDAM_COMMERCE_SERVICE_GOOGLE = %q"Google"
|
@@ -126,6 +131,20 @@ require 'limits_types'
|
|
126
131
|
|
127
132
|
EDAM_NOTE_CONTENT_LEN_MAX = 5242880
|
128
133
|
|
134
|
+
EDAM_APPLICATIONDATA_NAME_LEN_MIN = 3
|
135
|
+
|
136
|
+
EDAM_APPLICATIONDATA_NAME_LEN_MAX = 32
|
137
|
+
|
138
|
+
EDAM_APPLICATIONDATA_VALUE_LEN_MIN = 0
|
139
|
+
|
140
|
+
EDAM_APPLICATIONDATA_VALUE_LEN_MAX = 4092
|
141
|
+
|
142
|
+
EDAM_APPLICATIONDATA_ENTRY_LEN_MAX = 4095
|
143
|
+
|
144
|
+
EDAM_APPLICATIONDATA_NAME_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
145
|
+
|
146
|
+
EDAM_APPLICATIONDATA_VALUE_REGEX = %q"^[^\\p{Cc}]{0,4092}$"
|
147
|
+
|
129
148
|
EDAM_NOTEBOOK_NAME_LEN_MIN = 1
|
130
149
|
|
131
150
|
EDAM_NOTEBOOK_NAME_LEN_MAX = 100
|
@@ -200,6 +219,22 @@ require 'limits_types'
|
|
200
219
|
|
201
220
|
EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250
|
202
221
|
|
222
|
+
EDAM_NOTE_CONTENT_CLASS_LEN_MIN = 3
|
223
|
+
|
224
|
+
EDAM_NOTE_CONTENT_CLASS_LEN_MAX = 32
|
225
|
+
|
226
|
+
EDAM_HELLO_APP_CONTENT_CLASS_PREFIX = %q"evernote.hello."
|
227
|
+
|
228
|
+
EDAM_FOOD_APP_CONTENT_CLASS_PREFIX = %q"evernote.food."
|
229
|
+
|
230
|
+
EDAM_NOTE_CONTENT_CLASS_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
231
|
+
|
232
|
+
EDAM_CONTENT_CLASS_HELLO_ENCOUNTER = %q"evernote.hello.encounter"
|
233
|
+
|
234
|
+
EDAM_CONTENT_CLASS_HELLO_PROFILE = %q"evernote.hello.profile"
|
235
|
+
|
236
|
+
EDAM_CONTENT_CLASS_FOOD_MEAL = %q"evernote.food.meal"
|
237
|
+
|
203
238
|
end
|
204
239
|
end
|
205
240
|
end
|
@@ -48,6 +48,23 @@ require 'note_store_types'
|
|
48
48
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSyncChunk failed: unknown result')
|
49
49
|
end
|
50
50
|
|
51
|
+
def getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter)
|
52
|
+
send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter)
|
53
|
+
return recv_getFilteredSyncChunk()
|
54
|
+
end
|
55
|
+
|
56
|
+
def send_getFilteredSyncChunk(authenticationToken, afterUSN, maxEntries, filter)
|
57
|
+
send_message('getFilteredSyncChunk', GetFilteredSyncChunk_args, :authenticationToken => authenticationToken, :afterUSN => afterUSN, :maxEntries => maxEntries, :filter => filter)
|
58
|
+
end
|
59
|
+
|
60
|
+
def recv_getFilteredSyncChunk()
|
61
|
+
result = receive_message(GetFilteredSyncChunk_result)
|
62
|
+
return result.success unless result.success.nil?
|
63
|
+
raise result.userException unless result.userException.nil?
|
64
|
+
raise result.systemException unless result.systemException.nil?
|
65
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFilteredSyncChunk failed: unknown result')
|
66
|
+
end
|
67
|
+
|
51
68
|
def getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
|
52
69
|
send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
|
53
70
|
return recv_getLinkedNotebookSyncState()
|
@@ -491,6 +508,78 @@ require 'note_store_types'
|
|
491
508
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNote failed: unknown result')
|
492
509
|
end
|
493
510
|
|
511
|
+
def getNoteApplicationData(authenticationToken, guid)
|
512
|
+
send_getNoteApplicationData(authenticationToken, guid)
|
513
|
+
return recv_getNoteApplicationData()
|
514
|
+
end
|
515
|
+
|
516
|
+
def send_getNoteApplicationData(authenticationToken, guid)
|
517
|
+
send_message('getNoteApplicationData', GetNoteApplicationData_args, :authenticationToken => authenticationToken, :guid => guid)
|
518
|
+
end
|
519
|
+
|
520
|
+
def recv_getNoteApplicationData()
|
521
|
+
result = receive_message(GetNoteApplicationData_result)
|
522
|
+
return result.success unless result.success.nil?
|
523
|
+
raise result.userException unless result.userException.nil?
|
524
|
+
raise result.systemException unless result.systemException.nil?
|
525
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
526
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteApplicationData failed: unknown result')
|
527
|
+
end
|
528
|
+
|
529
|
+
def getNoteApplicationDataEntry(authenticationToken, guid, key)
|
530
|
+
send_getNoteApplicationDataEntry(authenticationToken, guid, key)
|
531
|
+
return recv_getNoteApplicationDataEntry()
|
532
|
+
end
|
533
|
+
|
534
|
+
def send_getNoteApplicationDataEntry(authenticationToken, guid, key)
|
535
|
+
send_message('getNoteApplicationDataEntry', GetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
|
536
|
+
end
|
537
|
+
|
538
|
+
def recv_getNoteApplicationDataEntry()
|
539
|
+
result = receive_message(GetNoteApplicationDataEntry_result)
|
540
|
+
return result.success unless result.success.nil?
|
541
|
+
raise result.userException unless result.userException.nil?
|
542
|
+
raise result.systemException unless result.systemException.nil?
|
543
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
544
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteApplicationDataEntry failed: unknown result')
|
545
|
+
end
|
546
|
+
|
547
|
+
def setNoteApplicationDataEntry(authenticationToken, guid, key, value)
|
548
|
+
send_setNoteApplicationDataEntry(authenticationToken, guid, key, value)
|
549
|
+
return recv_setNoteApplicationDataEntry()
|
550
|
+
end
|
551
|
+
|
552
|
+
def send_setNoteApplicationDataEntry(authenticationToken, guid, key, value)
|
553
|
+
send_message('setNoteApplicationDataEntry', SetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key, :value => value)
|
554
|
+
end
|
555
|
+
|
556
|
+
def recv_setNoteApplicationDataEntry()
|
557
|
+
result = receive_message(SetNoteApplicationDataEntry_result)
|
558
|
+
return result.success unless result.success.nil?
|
559
|
+
raise result.userException unless result.userException.nil?
|
560
|
+
raise result.systemException unless result.systemException.nil?
|
561
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
562
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setNoteApplicationDataEntry failed: unknown result')
|
563
|
+
end
|
564
|
+
|
565
|
+
def unsetNoteApplicationDataEntry(authenticationToken, guid, key)
|
566
|
+
send_unsetNoteApplicationDataEntry(authenticationToken, guid, key)
|
567
|
+
return recv_unsetNoteApplicationDataEntry()
|
568
|
+
end
|
569
|
+
|
570
|
+
def send_unsetNoteApplicationDataEntry(authenticationToken, guid, key)
|
571
|
+
send_message('unsetNoteApplicationDataEntry', UnsetNoteApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
|
572
|
+
end
|
573
|
+
|
574
|
+
def recv_unsetNoteApplicationDataEntry()
|
575
|
+
result = receive_message(UnsetNoteApplicationDataEntry_result)
|
576
|
+
return result.success unless result.success.nil?
|
577
|
+
raise result.userException unless result.userException.nil?
|
578
|
+
raise result.systemException unless result.systemException.nil?
|
579
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
580
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unsetNoteApplicationDataEntry failed: unknown result')
|
581
|
+
end
|
582
|
+
|
494
583
|
def getNoteContent(authenticationToken, guid)
|
495
584
|
send_getNoteContent(authenticationToken, guid)
|
496
585
|
return recv_getNoteContent()
|
@@ -742,6 +831,78 @@ require 'note_store_types'
|
|
742
831
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResource failed: unknown result')
|
743
832
|
end
|
744
833
|
|
834
|
+
def getResourceApplicationData(authenticationToken, guid)
|
835
|
+
send_getResourceApplicationData(authenticationToken, guid)
|
836
|
+
return recv_getResourceApplicationData()
|
837
|
+
end
|
838
|
+
|
839
|
+
def send_getResourceApplicationData(authenticationToken, guid)
|
840
|
+
send_message('getResourceApplicationData', GetResourceApplicationData_args, :authenticationToken => authenticationToken, :guid => guid)
|
841
|
+
end
|
842
|
+
|
843
|
+
def recv_getResourceApplicationData()
|
844
|
+
result = receive_message(GetResourceApplicationData_result)
|
845
|
+
return result.success unless result.success.nil?
|
846
|
+
raise result.userException unless result.userException.nil?
|
847
|
+
raise result.systemException unless result.systemException.nil?
|
848
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
849
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceApplicationData failed: unknown result')
|
850
|
+
end
|
851
|
+
|
852
|
+
def getResourceApplicationDataEntry(authenticationToken, guid, key)
|
853
|
+
send_getResourceApplicationDataEntry(authenticationToken, guid, key)
|
854
|
+
return recv_getResourceApplicationDataEntry()
|
855
|
+
end
|
856
|
+
|
857
|
+
def send_getResourceApplicationDataEntry(authenticationToken, guid, key)
|
858
|
+
send_message('getResourceApplicationDataEntry', GetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
|
859
|
+
end
|
860
|
+
|
861
|
+
def recv_getResourceApplicationDataEntry()
|
862
|
+
result = receive_message(GetResourceApplicationDataEntry_result)
|
863
|
+
return result.success unless result.success.nil?
|
864
|
+
raise result.userException unless result.userException.nil?
|
865
|
+
raise result.systemException unless result.systemException.nil?
|
866
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
867
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceApplicationDataEntry failed: unknown result')
|
868
|
+
end
|
869
|
+
|
870
|
+
def setResourceApplicationDataEntry(authenticationToken, guid, key, value)
|
871
|
+
send_setResourceApplicationDataEntry(authenticationToken, guid, key, value)
|
872
|
+
return recv_setResourceApplicationDataEntry()
|
873
|
+
end
|
874
|
+
|
875
|
+
def send_setResourceApplicationDataEntry(authenticationToken, guid, key, value)
|
876
|
+
send_message('setResourceApplicationDataEntry', SetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key, :value => value)
|
877
|
+
end
|
878
|
+
|
879
|
+
def recv_setResourceApplicationDataEntry()
|
880
|
+
result = receive_message(SetResourceApplicationDataEntry_result)
|
881
|
+
return result.success unless result.success.nil?
|
882
|
+
raise result.userException unless result.userException.nil?
|
883
|
+
raise result.systemException unless result.systemException.nil?
|
884
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
885
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setResourceApplicationDataEntry failed: unknown result')
|
886
|
+
end
|
887
|
+
|
888
|
+
def unsetResourceApplicationDataEntry(authenticationToken, guid, key)
|
889
|
+
send_unsetResourceApplicationDataEntry(authenticationToken, guid, key)
|
890
|
+
return recv_unsetResourceApplicationDataEntry()
|
891
|
+
end
|
892
|
+
|
893
|
+
def send_unsetResourceApplicationDataEntry(authenticationToken, guid, key)
|
894
|
+
send_message('unsetResourceApplicationDataEntry', UnsetResourceApplicationDataEntry_args, :authenticationToken => authenticationToken, :guid => guid, :key => key)
|
895
|
+
end
|
896
|
+
|
897
|
+
def recv_unsetResourceApplicationDataEntry()
|
898
|
+
result = receive_message(UnsetResourceApplicationDataEntry_result)
|
899
|
+
return result.success unless result.success.nil?
|
900
|
+
raise result.userException unless result.userException.nil?
|
901
|
+
raise result.systemException unless result.systemException.nil?
|
902
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
903
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unsetResourceApplicationDataEntry failed: unknown result')
|
904
|
+
end
|
905
|
+
|
745
906
|
def updateResource(authenticationToken, resource)
|
746
907
|
send_updateResource(authenticationToken, resource)
|
747
908
|
return recv_updateResource()
|
@@ -936,6 +1097,24 @@ require 'note_store_types'
|
|
936
1097
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createSharedNotebook failed: unknown result')
|
937
1098
|
end
|
938
1099
|
|
1100
|
+
def sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients)
|
1101
|
+
send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients)
|
1102
|
+
return recv_sendMessageToSharedNotebookMembers()
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
def send_sendMessageToSharedNotebookMembers(authenticationToken, notebookGuid, messageText, recipients)
|
1106
|
+
send_message('sendMessageToSharedNotebookMembers', SendMessageToSharedNotebookMembers_args, :authenticationToken => authenticationToken, :notebookGuid => notebookGuid, :messageText => messageText, :recipients => recipients)
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
def recv_sendMessageToSharedNotebookMembers()
|
1110
|
+
result = receive_message(SendMessageToSharedNotebookMembers_result)
|
1111
|
+
return result.success unless result.success.nil?
|
1112
|
+
raise result.userException unless result.userException.nil?
|
1113
|
+
raise result.notFoundException unless result.notFoundException.nil?
|
1114
|
+
raise result.systemException unless result.systemException.nil?
|
1115
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sendMessageToSharedNotebookMembers failed: unknown result')
|
1116
|
+
end
|
1117
|
+
|
939
1118
|
def listSharedNotebooks(authenticationToken)
|
940
1119
|
send_listSharedNotebooks(authenticationToken)
|
941
1120
|
return recv_listSharedNotebooks()
|
@@ -1181,6 +1360,19 @@ require 'note_store_types'
|
|
1181
1360
|
write_result(result, oprot, 'getSyncChunk', seqid)
|
1182
1361
|
end
|
1183
1362
|
|
1363
|
+
def process_getFilteredSyncChunk(seqid, iprot, oprot)
|
1364
|
+
args = read_args(iprot, GetFilteredSyncChunk_args)
|
1365
|
+
result = GetFilteredSyncChunk_result.new()
|
1366
|
+
begin
|
1367
|
+
result.success = @handler.getFilteredSyncChunk(args.authenticationToken, args.afterUSN, args.maxEntries, args.filter)
|
1368
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
1369
|
+
result.userException = userException
|
1370
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
1371
|
+
result.systemException = systemException
|
1372
|
+
end
|
1373
|
+
write_result(result, oprot, 'getFilteredSyncChunk', seqid)
|
1374
|
+
end
|
1375
|
+
|
1184
1376
|
def process_getLinkedNotebookSyncState(seqid, iprot, oprot)
|
1185
1377
|
args = read_args(iprot, GetLinkedNotebookSyncState_args)
|
1186
1378
|
result = GetLinkedNotebookSyncState_result.new()
|
@@ -1544,6 +1736,66 @@ require 'note_store_types'
|
|
1544
1736
|
write_result(result, oprot, 'getNote', seqid)
|
1545
1737
|
end
|
1546
1738
|
|
1739
|
+
def process_getNoteApplicationData(seqid, iprot, oprot)
|
1740
|
+
args = read_args(iprot, GetNoteApplicationData_args)
|
1741
|
+
result = GetNoteApplicationData_result.new()
|
1742
|
+
begin
|
1743
|
+
result.success = @handler.getNoteApplicationData(args.authenticationToken, args.guid)
|
1744
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
1745
|
+
result.userException = userException
|
1746
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
1747
|
+
result.systemException = systemException
|
1748
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
1749
|
+
result.notFoundException = notFoundException
|
1750
|
+
end
|
1751
|
+
write_result(result, oprot, 'getNoteApplicationData', seqid)
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
def process_getNoteApplicationDataEntry(seqid, iprot, oprot)
|
1755
|
+
args = read_args(iprot, GetNoteApplicationDataEntry_args)
|
1756
|
+
result = GetNoteApplicationDataEntry_result.new()
|
1757
|
+
begin
|
1758
|
+
result.success = @handler.getNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key)
|
1759
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
1760
|
+
result.userException = userException
|
1761
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
1762
|
+
result.systemException = systemException
|
1763
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
1764
|
+
result.notFoundException = notFoundException
|
1765
|
+
end
|
1766
|
+
write_result(result, oprot, 'getNoteApplicationDataEntry', seqid)
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
def process_setNoteApplicationDataEntry(seqid, iprot, oprot)
|
1770
|
+
args = read_args(iprot, SetNoteApplicationDataEntry_args)
|
1771
|
+
result = SetNoteApplicationDataEntry_result.new()
|
1772
|
+
begin
|
1773
|
+
result.success = @handler.setNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key, args.value)
|
1774
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
1775
|
+
result.userException = userException
|
1776
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
1777
|
+
result.systemException = systemException
|
1778
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
1779
|
+
result.notFoundException = notFoundException
|
1780
|
+
end
|
1781
|
+
write_result(result, oprot, 'setNoteApplicationDataEntry', seqid)
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
def process_unsetNoteApplicationDataEntry(seqid, iprot, oprot)
|
1785
|
+
args = read_args(iprot, UnsetNoteApplicationDataEntry_args)
|
1786
|
+
result = UnsetNoteApplicationDataEntry_result.new()
|
1787
|
+
begin
|
1788
|
+
result.success = @handler.unsetNoteApplicationDataEntry(args.authenticationToken, args.guid, args.key)
|
1789
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
1790
|
+
result.userException = userException
|
1791
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
1792
|
+
result.systemException = systemException
|
1793
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
1794
|
+
result.notFoundException = notFoundException
|
1795
|
+
end
|
1796
|
+
write_result(result, oprot, 'unsetNoteApplicationDataEntry', seqid)
|
1797
|
+
end
|
1798
|
+
|
1547
1799
|
def process_getNoteContent(seqid, iprot, oprot)
|
1548
1800
|
args = read_args(iprot, GetNoteContent_args)
|
1549
1801
|
result = GetNoteContent_result.new()
|
@@ -1752,6 +2004,66 @@ require 'note_store_types'
|
|
1752
2004
|
write_result(result, oprot, 'getResource', seqid)
|
1753
2005
|
end
|
1754
2006
|
|
2007
|
+
def process_getResourceApplicationData(seqid, iprot, oprot)
|
2008
|
+
args = read_args(iprot, GetResourceApplicationData_args)
|
2009
|
+
result = GetResourceApplicationData_result.new()
|
2010
|
+
begin
|
2011
|
+
result.success = @handler.getResourceApplicationData(args.authenticationToken, args.guid)
|
2012
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
2013
|
+
result.userException = userException
|
2014
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
2015
|
+
result.systemException = systemException
|
2016
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
2017
|
+
result.notFoundException = notFoundException
|
2018
|
+
end
|
2019
|
+
write_result(result, oprot, 'getResourceApplicationData', seqid)
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
def process_getResourceApplicationDataEntry(seqid, iprot, oprot)
|
2023
|
+
args = read_args(iprot, GetResourceApplicationDataEntry_args)
|
2024
|
+
result = GetResourceApplicationDataEntry_result.new()
|
2025
|
+
begin
|
2026
|
+
result.success = @handler.getResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key)
|
2027
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
2028
|
+
result.userException = userException
|
2029
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
2030
|
+
result.systemException = systemException
|
2031
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
2032
|
+
result.notFoundException = notFoundException
|
2033
|
+
end
|
2034
|
+
write_result(result, oprot, 'getResourceApplicationDataEntry', seqid)
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
def process_setResourceApplicationDataEntry(seqid, iprot, oprot)
|
2038
|
+
args = read_args(iprot, SetResourceApplicationDataEntry_args)
|
2039
|
+
result = SetResourceApplicationDataEntry_result.new()
|
2040
|
+
begin
|
2041
|
+
result.success = @handler.setResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key, args.value)
|
2042
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
2043
|
+
result.userException = userException
|
2044
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
2045
|
+
result.systemException = systemException
|
2046
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
2047
|
+
result.notFoundException = notFoundException
|
2048
|
+
end
|
2049
|
+
write_result(result, oprot, 'setResourceApplicationDataEntry', seqid)
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
def process_unsetResourceApplicationDataEntry(seqid, iprot, oprot)
|
2053
|
+
args = read_args(iprot, UnsetResourceApplicationDataEntry_args)
|
2054
|
+
result = UnsetResourceApplicationDataEntry_result.new()
|
2055
|
+
begin
|
2056
|
+
result.success = @handler.unsetResourceApplicationDataEntry(args.authenticationToken, args.guid, args.key)
|
2057
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
2058
|
+
result.userException = userException
|
2059
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
2060
|
+
result.systemException = systemException
|
2061
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
2062
|
+
result.notFoundException = notFoundException
|
2063
|
+
end
|
2064
|
+
write_result(result, oprot, 'unsetResourceApplicationDataEntry', seqid)
|
2065
|
+
end
|
2066
|
+
|
1755
2067
|
def process_updateResource(seqid, iprot, oprot)
|
1756
2068
|
args = read_args(iprot, UpdateResource_args)
|
1757
2069
|
result = UpdateResource_result.new()
|
@@ -1909,6 +2221,21 @@ require 'note_store_types'
|
|
1909
2221
|
write_result(result, oprot, 'createSharedNotebook', seqid)
|
1910
2222
|
end
|
1911
2223
|
|
2224
|
+
def process_sendMessageToSharedNotebookMembers(seqid, iprot, oprot)
|
2225
|
+
args = read_args(iprot, SendMessageToSharedNotebookMembers_args)
|
2226
|
+
result = SendMessageToSharedNotebookMembers_result.new()
|
2227
|
+
begin
|
2228
|
+
result.success = @handler.sendMessageToSharedNotebookMembers(args.authenticationToken, args.notebookGuid, args.messageText, args.recipients)
|
2229
|
+
rescue Evernote::EDAM::Error::EDAMUserException => userException
|
2230
|
+
result.userException = userException
|
2231
|
+
rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
|
2232
|
+
result.notFoundException = notFoundException
|
2233
|
+
rescue Evernote::EDAM::Error::EDAMSystemException => systemException
|
2234
|
+
result.systemException = systemException
|
2235
|
+
end
|
2236
|
+
write_result(result, oprot, 'sendMessageToSharedNotebookMembers', seqid)
|
2237
|
+
end
|
2238
|
+
|
1912
2239
|
def process_listSharedNotebooks(seqid, iprot, oprot)
|
1913
2240
|
args = read_args(iprot, ListSharedNotebooks_args)
|
1914
2241
|
result = ListSharedNotebooks_result.new()
|
@@ -2171,6 +2498,48 @@ require 'note_store_types'
|
|
2171
2498
|
::Thrift::Struct.generate_accessors self
|
2172
2499
|
end
|
2173
2500
|
|
2501
|
+
class GetFilteredSyncChunk_args
|
2502
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2503
|
+
AUTHENTICATIONTOKEN = 1
|
2504
|
+
AFTERUSN = 2
|
2505
|
+
MAXENTRIES = 3
|
2506
|
+
FILTER = 4
|
2507
|
+
|
2508
|
+
FIELDS = {
|
2509
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
2510
|
+
AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'},
|
2511
|
+
MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'},
|
2512
|
+
FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::SyncChunkFilter}
|
2513
|
+
}
|
2514
|
+
|
2515
|
+
def struct_fields; FIELDS; end
|
2516
|
+
|
2517
|
+
def validate
|
2518
|
+
end
|
2519
|
+
|
2520
|
+
::Thrift::Struct.generate_accessors self
|
2521
|
+
end
|
2522
|
+
|
2523
|
+
class GetFilteredSyncChunk_result
|
2524
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2525
|
+
SUCCESS = 0
|
2526
|
+
USEREXCEPTION = 1
|
2527
|
+
SYSTEMEXCEPTION = 2
|
2528
|
+
|
2529
|
+
FIELDS = {
|
2530
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncChunk},
|
2531
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
2532
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
2533
|
+
}
|
2534
|
+
|
2535
|
+
def struct_fields; FIELDS; end
|
2536
|
+
|
2537
|
+
def validate
|
2538
|
+
end
|
2539
|
+
|
2540
|
+
::Thrift::Struct.generate_accessors self
|
2541
|
+
end
|
2542
|
+
|
2174
2543
|
class GetLinkedNotebookSyncState_args
|
2175
2544
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2176
2545
|
AUTHENTICATIONTOKEN = 1
|
@@ -3177,7 +3546,7 @@ require 'note_store_types'
|
|
3177
3546
|
::Thrift::Struct.generate_accessors self
|
3178
3547
|
end
|
3179
3548
|
|
3180
|
-
class
|
3549
|
+
class GetNoteApplicationData_args
|
3181
3550
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3182
3551
|
AUTHENTICATIONTOKEN = 1
|
3183
3552
|
GUID = 2
|
@@ -3195,7 +3564,7 @@ require 'note_store_types'
|
|
3195
3564
|
::Thrift::Struct.generate_accessors self
|
3196
3565
|
end
|
3197
3566
|
|
3198
|
-
class
|
3567
|
+
class GetNoteApplicationData_result
|
3199
3568
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3200
3569
|
SUCCESS = 0
|
3201
3570
|
USEREXCEPTION = 1
|
@@ -3203,7 +3572,7 @@ require 'note_store_types'
|
|
3203
3572
|
NOTFOUNDEXCEPTION = 3
|
3204
3573
|
|
3205
3574
|
FIELDS = {
|
3206
|
-
SUCCESS => {:type => ::Thrift::Types::
|
3575
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LazyMap},
|
3207
3576
|
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3208
3577
|
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3209
3578
|
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
@@ -3217,18 +3586,16 @@ require 'note_store_types'
|
|
3217
3586
|
::Thrift::Struct.generate_accessors self
|
3218
3587
|
end
|
3219
3588
|
|
3220
|
-
class
|
3589
|
+
class GetNoteApplicationDataEntry_args
|
3221
3590
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3222
3591
|
AUTHENTICATIONTOKEN = 1
|
3223
3592
|
GUID = 2
|
3224
|
-
|
3225
|
-
TOKENIZEFORINDEXING = 4
|
3593
|
+
KEY = 3
|
3226
3594
|
|
3227
3595
|
FIELDS = {
|
3228
3596
|
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3229
3597
|
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
3230
|
-
|
3231
|
-
TOKENIZEFORINDEXING => {:type => ::Thrift::Types::BOOL, :name => 'tokenizeForIndexing'}
|
3598
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
|
3232
3599
|
}
|
3233
3600
|
|
3234
3601
|
def struct_fields; FIELDS; end
|
@@ -3239,7 +3606,7 @@ require 'note_store_types'
|
|
3239
3606
|
::Thrift::Struct.generate_accessors self
|
3240
3607
|
end
|
3241
3608
|
|
3242
|
-
class
|
3609
|
+
class GetNoteApplicationDataEntry_result
|
3243
3610
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3244
3611
|
SUCCESS = 0
|
3245
3612
|
USEREXCEPTION = 1
|
@@ -3261,14 +3628,18 @@ require 'note_store_types'
|
|
3261
3628
|
::Thrift::Struct.generate_accessors self
|
3262
3629
|
end
|
3263
3630
|
|
3264
|
-
class
|
3631
|
+
class SetNoteApplicationDataEntry_args
|
3265
3632
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3266
3633
|
AUTHENTICATIONTOKEN = 1
|
3267
3634
|
GUID = 2
|
3635
|
+
KEY = 3
|
3636
|
+
VALUE = 4
|
3268
3637
|
|
3269
3638
|
FIELDS = {
|
3270
3639
|
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3271
|
-
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
|
3640
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
3641
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
3642
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
|
3272
3643
|
}
|
3273
3644
|
|
3274
3645
|
def struct_fields; FIELDS; end
|
@@ -3279,7 +3650,7 @@ require 'note_store_types'
|
|
3279
3650
|
::Thrift::Struct.generate_accessors self
|
3280
3651
|
end
|
3281
3652
|
|
3282
|
-
class
|
3653
|
+
class SetNoteApplicationDataEntry_result
|
3283
3654
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3284
3655
|
SUCCESS = 0
|
3285
3656
|
USEREXCEPTION = 1
|
@@ -3287,7 +3658,7 @@ require 'note_store_types'
|
|
3287
3658
|
NOTFOUNDEXCEPTION = 3
|
3288
3659
|
|
3289
3660
|
FIELDS = {
|
3290
|
-
SUCCESS => {:type => ::Thrift::Types::
|
3661
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
3291
3662
|
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3292
3663
|
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3293
3664
|
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
@@ -3301,14 +3672,16 @@ require 'note_store_types'
|
|
3301
3672
|
::Thrift::Struct.generate_accessors self
|
3302
3673
|
end
|
3303
3674
|
|
3304
|
-
class
|
3675
|
+
class UnsetNoteApplicationDataEntry_args
|
3305
3676
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3306
3677
|
AUTHENTICATIONTOKEN = 1
|
3307
3678
|
GUID = 2
|
3679
|
+
KEY = 3
|
3308
3680
|
|
3309
3681
|
FIELDS = {
|
3310
3682
|
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3311
|
-
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
|
3683
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
3684
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
|
3312
3685
|
}
|
3313
3686
|
|
3314
3687
|
def struct_fields; FIELDS; end
|
@@ -3319,7 +3692,7 @@ require 'note_store_types'
|
|
3319
3692
|
::Thrift::Struct.generate_accessors self
|
3320
3693
|
end
|
3321
3694
|
|
3322
|
-
class
|
3695
|
+
class UnsetNoteApplicationDataEntry_result
|
3323
3696
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3324
3697
|
SUCCESS = 0
|
3325
3698
|
USEREXCEPTION = 1
|
@@ -3327,7 +3700,171 @@ require 'note_store_types'
|
|
3327
3700
|
NOTFOUNDEXCEPTION = 3
|
3328
3701
|
|
3329
3702
|
FIELDS = {
|
3330
|
-
SUCCESS => {:type => ::Thrift::Types::
|
3703
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
3704
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3705
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3706
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
3707
|
+
}
|
3708
|
+
|
3709
|
+
def struct_fields; FIELDS; end
|
3710
|
+
|
3711
|
+
def validate
|
3712
|
+
end
|
3713
|
+
|
3714
|
+
::Thrift::Struct.generate_accessors self
|
3715
|
+
end
|
3716
|
+
|
3717
|
+
class GetNoteContent_args
|
3718
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3719
|
+
AUTHENTICATIONTOKEN = 1
|
3720
|
+
GUID = 2
|
3721
|
+
|
3722
|
+
FIELDS = {
|
3723
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3724
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
|
3725
|
+
}
|
3726
|
+
|
3727
|
+
def struct_fields; FIELDS; end
|
3728
|
+
|
3729
|
+
def validate
|
3730
|
+
end
|
3731
|
+
|
3732
|
+
::Thrift::Struct.generate_accessors self
|
3733
|
+
end
|
3734
|
+
|
3735
|
+
class GetNoteContent_result
|
3736
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3737
|
+
SUCCESS = 0
|
3738
|
+
USEREXCEPTION = 1
|
3739
|
+
SYSTEMEXCEPTION = 2
|
3740
|
+
NOTFOUNDEXCEPTION = 3
|
3741
|
+
|
3742
|
+
FIELDS = {
|
3743
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
3744
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3745
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3746
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
3747
|
+
}
|
3748
|
+
|
3749
|
+
def struct_fields; FIELDS; end
|
3750
|
+
|
3751
|
+
def validate
|
3752
|
+
end
|
3753
|
+
|
3754
|
+
::Thrift::Struct.generate_accessors self
|
3755
|
+
end
|
3756
|
+
|
3757
|
+
class GetNoteSearchText_args
|
3758
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3759
|
+
AUTHENTICATIONTOKEN = 1
|
3760
|
+
GUID = 2
|
3761
|
+
NOTEONLY = 3
|
3762
|
+
TOKENIZEFORINDEXING = 4
|
3763
|
+
|
3764
|
+
FIELDS = {
|
3765
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3766
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
3767
|
+
NOTEONLY => {:type => ::Thrift::Types::BOOL, :name => 'noteOnly'},
|
3768
|
+
TOKENIZEFORINDEXING => {:type => ::Thrift::Types::BOOL, :name => 'tokenizeForIndexing'}
|
3769
|
+
}
|
3770
|
+
|
3771
|
+
def struct_fields; FIELDS; end
|
3772
|
+
|
3773
|
+
def validate
|
3774
|
+
end
|
3775
|
+
|
3776
|
+
::Thrift::Struct.generate_accessors self
|
3777
|
+
end
|
3778
|
+
|
3779
|
+
class GetNoteSearchText_result
|
3780
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3781
|
+
SUCCESS = 0
|
3782
|
+
USEREXCEPTION = 1
|
3783
|
+
SYSTEMEXCEPTION = 2
|
3784
|
+
NOTFOUNDEXCEPTION = 3
|
3785
|
+
|
3786
|
+
FIELDS = {
|
3787
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
3788
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3789
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3790
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
3791
|
+
}
|
3792
|
+
|
3793
|
+
def struct_fields; FIELDS; end
|
3794
|
+
|
3795
|
+
def validate
|
3796
|
+
end
|
3797
|
+
|
3798
|
+
::Thrift::Struct.generate_accessors self
|
3799
|
+
end
|
3800
|
+
|
3801
|
+
class GetResourceSearchText_args
|
3802
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3803
|
+
AUTHENTICATIONTOKEN = 1
|
3804
|
+
GUID = 2
|
3805
|
+
|
3806
|
+
FIELDS = {
|
3807
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3808
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
|
3809
|
+
}
|
3810
|
+
|
3811
|
+
def struct_fields; FIELDS; end
|
3812
|
+
|
3813
|
+
def validate
|
3814
|
+
end
|
3815
|
+
|
3816
|
+
::Thrift::Struct.generate_accessors self
|
3817
|
+
end
|
3818
|
+
|
3819
|
+
class GetResourceSearchText_result
|
3820
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3821
|
+
SUCCESS = 0
|
3822
|
+
USEREXCEPTION = 1
|
3823
|
+
SYSTEMEXCEPTION = 2
|
3824
|
+
NOTFOUNDEXCEPTION = 3
|
3825
|
+
|
3826
|
+
FIELDS = {
|
3827
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
3828
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3829
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3830
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
3831
|
+
}
|
3832
|
+
|
3833
|
+
def struct_fields; FIELDS; end
|
3834
|
+
|
3835
|
+
def validate
|
3836
|
+
end
|
3837
|
+
|
3838
|
+
::Thrift::Struct.generate_accessors self
|
3839
|
+
end
|
3840
|
+
|
3841
|
+
class GetNoteTagNames_args
|
3842
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3843
|
+
AUTHENTICATIONTOKEN = 1
|
3844
|
+
GUID = 2
|
3845
|
+
|
3846
|
+
FIELDS = {
|
3847
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
3848
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
|
3849
|
+
}
|
3850
|
+
|
3851
|
+
def struct_fields; FIELDS; end
|
3852
|
+
|
3853
|
+
def validate
|
3854
|
+
end
|
3855
|
+
|
3856
|
+
::Thrift::Struct.generate_accessors self
|
3857
|
+
end
|
3858
|
+
|
3859
|
+
class GetNoteTagNames_result
|
3860
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3861
|
+
SUCCESS = 0
|
3862
|
+
USEREXCEPTION = 1
|
3863
|
+
SYSTEMEXCEPTION = 2
|
3864
|
+
NOTFOUNDEXCEPTION = 3
|
3865
|
+
|
3866
|
+
FIELDS = {
|
3867
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
3331
3868
|
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
3332
3869
|
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
3333
3870
|
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
@@ -3755,6 +4292,174 @@ require 'note_store_types'
|
|
3755
4292
|
::Thrift::Struct.generate_accessors self
|
3756
4293
|
end
|
3757
4294
|
|
4295
|
+
class GetResourceApplicationData_args
|
4296
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4297
|
+
AUTHENTICATIONTOKEN = 1
|
4298
|
+
GUID = 2
|
4299
|
+
|
4300
|
+
FIELDS = {
|
4301
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
4302
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
|
4303
|
+
}
|
4304
|
+
|
4305
|
+
def struct_fields; FIELDS; end
|
4306
|
+
|
4307
|
+
def validate
|
4308
|
+
end
|
4309
|
+
|
4310
|
+
::Thrift::Struct.generate_accessors self
|
4311
|
+
end
|
4312
|
+
|
4313
|
+
class GetResourceApplicationData_result
|
4314
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4315
|
+
SUCCESS = 0
|
4316
|
+
USEREXCEPTION = 1
|
4317
|
+
SYSTEMEXCEPTION = 2
|
4318
|
+
NOTFOUNDEXCEPTION = 3
|
4319
|
+
|
4320
|
+
FIELDS = {
|
4321
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LazyMap},
|
4322
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
4323
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
4324
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
4325
|
+
}
|
4326
|
+
|
4327
|
+
def struct_fields; FIELDS; end
|
4328
|
+
|
4329
|
+
def validate
|
4330
|
+
end
|
4331
|
+
|
4332
|
+
::Thrift::Struct.generate_accessors self
|
4333
|
+
end
|
4334
|
+
|
4335
|
+
class GetResourceApplicationDataEntry_args
|
4336
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4337
|
+
AUTHENTICATIONTOKEN = 1
|
4338
|
+
GUID = 2
|
4339
|
+
KEY = 3
|
4340
|
+
|
4341
|
+
FIELDS = {
|
4342
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
4343
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
4344
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
|
4345
|
+
}
|
4346
|
+
|
4347
|
+
def struct_fields; FIELDS; end
|
4348
|
+
|
4349
|
+
def validate
|
4350
|
+
end
|
4351
|
+
|
4352
|
+
::Thrift::Struct.generate_accessors self
|
4353
|
+
end
|
4354
|
+
|
4355
|
+
class GetResourceApplicationDataEntry_result
|
4356
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4357
|
+
SUCCESS = 0
|
4358
|
+
USEREXCEPTION = 1
|
4359
|
+
SYSTEMEXCEPTION = 2
|
4360
|
+
NOTFOUNDEXCEPTION = 3
|
4361
|
+
|
4362
|
+
FIELDS = {
|
4363
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
4364
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
4365
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
4366
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
4367
|
+
}
|
4368
|
+
|
4369
|
+
def struct_fields; FIELDS; end
|
4370
|
+
|
4371
|
+
def validate
|
4372
|
+
end
|
4373
|
+
|
4374
|
+
::Thrift::Struct.generate_accessors self
|
4375
|
+
end
|
4376
|
+
|
4377
|
+
class SetResourceApplicationDataEntry_args
|
4378
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4379
|
+
AUTHENTICATIONTOKEN = 1
|
4380
|
+
GUID = 2
|
4381
|
+
KEY = 3
|
4382
|
+
VALUE = 4
|
4383
|
+
|
4384
|
+
FIELDS = {
|
4385
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
4386
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
4387
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
4388
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
|
4389
|
+
}
|
4390
|
+
|
4391
|
+
def struct_fields; FIELDS; end
|
4392
|
+
|
4393
|
+
def validate
|
4394
|
+
end
|
4395
|
+
|
4396
|
+
::Thrift::Struct.generate_accessors self
|
4397
|
+
end
|
4398
|
+
|
4399
|
+
class SetResourceApplicationDataEntry_result
|
4400
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4401
|
+
SUCCESS = 0
|
4402
|
+
USEREXCEPTION = 1
|
4403
|
+
SYSTEMEXCEPTION = 2
|
4404
|
+
NOTFOUNDEXCEPTION = 3
|
4405
|
+
|
4406
|
+
FIELDS = {
|
4407
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
4408
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
4409
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
4410
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
4411
|
+
}
|
4412
|
+
|
4413
|
+
def struct_fields; FIELDS; end
|
4414
|
+
|
4415
|
+
def validate
|
4416
|
+
end
|
4417
|
+
|
4418
|
+
::Thrift::Struct.generate_accessors self
|
4419
|
+
end
|
4420
|
+
|
4421
|
+
class UnsetResourceApplicationDataEntry_args
|
4422
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4423
|
+
AUTHENTICATIONTOKEN = 1
|
4424
|
+
GUID = 2
|
4425
|
+
KEY = 3
|
4426
|
+
|
4427
|
+
FIELDS = {
|
4428
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
4429
|
+
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
|
4430
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
|
4431
|
+
}
|
4432
|
+
|
4433
|
+
def struct_fields; FIELDS; end
|
4434
|
+
|
4435
|
+
def validate
|
4436
|
+
end
|
4437
|
+
|
4438
|
+
::Thrift::Struct.generate_accessors self
|
4439
|
+
end
|
4440
|
+
|
4441
|
+
class UnsetResourceApplicationDataEntry_result
|
4442
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4443
|
+
SUCCESS = 0
|
4444
|
+
USEREXCEPTION = 1
|
4445
|
+
SYSTEMEXCEPTION = 2
|
4446
|
+
NOTFOUNDEXCEPTION = 3
|
4447
|
+
|
4448
|
+
FIELDS = {
|
4449
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
4450
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
4451
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
|
4452
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
|
4453
|
+
}
|
4454
|
+
|
4455
|
+
def struct_fields; FIELDS; end
|
4456
|
+
|
4457
|
+
def validate
|
4458
|
+
end
|
4459
|
+
|
4460
|
+
::Thrift::Struct.generate_accessors self
|
4461
|
+
end
|
4462
|
+
|
3758
4463
|
class UpdateResource_args
|
3759
4464
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3760
4465
|
AUTHENTICATIONTOKEN = 1
|
@@ -4193,6 +4898,50 @@ require 'note_store_types'
|
|
4193
4898
|
::Thrift::Struct.generate_accessors self
|
4194
4899
|
end
|
4195
4900
|
|
4901
|
+
class SendMessageToSharedNotebookMembers_args
|
4902
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4903
|
+
AUTHENTICATIONTOKEN = 1
|
4904
|
+
NOTEBOOKGUID = 2
|
4905
|
+
MESSAGETEXT = 3
|
4906
|
+
RECIPIENTS = 4
|
4907
|
+
|
4908
|
+
FIELDS = {
|
4909
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
4910
|
+
NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid'},
|
4911
|
+
MESSAGETEXT => {:type => ::Thrift::Types::STRING, :name => 'messageText'},
|
4912
|
+
RECIPIENTS => {:type => ::Thrift::Types::LIST, :name => 'recipients', :element => {:type => ::Thrift::Types::STRING}}
|
4913
|
+
}
|
4914
|
+
|
4915
|
+
def struct_fields; FIELDS; end
|
4916
|
+
|
4917
|
+
def validate
|
4918
|
+
end
|
4919
|
+
|
4920
|
+
::Thrift::Struct.generate_accessors self
|
4921
|
+
end
|
4922
|
+
|
4923
|
+
class SendMessageToSharedNotebookMembers_result
|
4924
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4925
|
+
SUCCESS = 0
|
4926
|
+
USEREXCEPTION = 1
|
4927
|
+
NOTFOUNDEXCEPTION = 2
|
4928
|
+
SYSTEMEXCEPTION = 3
|
4929
|
+
|
4930
|
+
FIELDS = {
|
4931
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
4932
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
4933
|
+
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
|
4934
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
|
4935
|
+
}
|
4936
|
+
|
4937
|
+
def struct_fields; FIELDS; end
|
4938
|
+
|
4939
|
+
def validate
|
4940
|
+
end
|
4941
|
+
|
4942
|
+
::Thrift::Struct.generate_accessors self
|
4943
|
+
end
|
4944
|
+
|
4196
4945
|
class ListSharedNotebooks_args
|
4197
4946
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
4198
4947
|
AUTHENTICATIONTOKEN = 1
|