evernote 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.9.0
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{evernote}
8
- s.version = "0.8.0"
8
+ s.version = "0.9.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chris Sepic"]
12
- s.date = %q{2010-03-19}
12
+ s.date = %q{2011-01-23}
13
13
  s.email = %q{chris.sepic@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -28,28 +28,41 @@ Gem::Specification.new do |s|
28
28
  "lib/evernote/note_store.rb",
29
29
  "lib/evernote/user_store.rb",
30
30
  "spec/evernote/auth.yaml",
31
+ "spec/evernote/auth.yaml",
31
32
  "spec/evernote/client_spec.rb",
32
33
  "spec/evernote/note_store_spec.rb",
33
34
  "spec/evernote/user_store_spec.rb",
34
35
  "spec/spec.opts",
35
36
  "spec/spec_helper.rb",
36
37
  "vendor/gen-rb/evernote.rb",
38
+ "vendor/gen-rb/evernote.rb",
37
39
  "vendor/gen-rb/evernote/edam/errors_types.rb",
40
+ "vendor/gen-rb/evernote/edam/errors_types.rb",
41
+ "vendor/gen-rb/evernote/edam/limits_constants.rb",
38
42
  "vendor/gen-rb/evernote/edam/limits_constants.rb",
39
43
  "vendor/gen-rb/evernote/edam/limits_types.rb",
44
+ "vendor/gen-rb/evernote/edam/limits_types.rb",
45
+ "vendor/gen-rb/evernote/edam/note_store.rb",
40
46
  "vendor/gen-rb/evernote/edam/note_store.rb",
41
47
  "vendor/gen-rb/evernote/edam/note_store_constants.rb",
48
+ "vendor/gen-rb/evernote/edam/note_store_constants.rb",
42
49
  "vendor/gen-rb/evernote/edam/note_store_types.rb",
50
+ "vendor/gen-rb/evernote/edam/note_store_types.rb",
51
+ "vendor/gen-rb/evernote/edam/types_constants.rb",
43
52
  "vendor/gen-rb/evernote/edam/types_constants.rb",
44
53
  "vendor/gen-rb/evernote/edam/types_types.rb",
54
+ "vendor/gen-rb/evernote/edam/types_types.rb",
45
55
  "vendor/gen-rb/evernote/edam/user_store.rb",
56
+ "vendor/gen-rb/evernote/edam/user_store.rb",
57
+ "vendor/gen-rb/evernote/edam/user_store_constants.rb",
46
58
  "vendor/gen-rb/evernote/edam/user_store_constants.rb",
59
+ "vendor/gen-rb/evernote/edam/user_store_types.rb",
47
60
  "vendor/gen-rb/evernote/edam/user_store_types.rb"
48
61
  ]
49
62
  s.homepage = %q{http://github.com/cgs/evernote}
50
63
  s.rdoc_options = ["--charset=UTF-8"]
51
64
  s.require_paths = ["lib"]
52
- s.rubygems_version = %q{1.3.5}
65
+ s.rubygems_version = %q{1.3.7}
53
66
  s.summary = %q{High level wrapper for the Evernote API}
54
67
  s.test_files = [
55
68
  "spec/evernote/client_spec.rb",
@@ -62,7 +75,7 @@ Gem::Specification.new do |s|
62
75
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
63
76
  s.specification_version = 3
64
77
 
65
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
78
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
79
  s.add_runtime_dependency(%q<thrift_client>, [">= 0"])
67
80
  s.add_development_dependency(%q<rspec>, [">= 0"])
68
81
  s.add_development_dependency(%q<yard>, [">= 0"])
@@ -77,4 +90,3 @@ Gem::Specification.new do |s|
77
90
  s.add_dependency(%q<yard>, [">= 0"])
78
91
  end
79
92
  end
80
-
@@ -41,11 +41,10 @@ module Evernote
41
41
  # parameter: If the error applied to a particular input parameter, this will
42
42
  # indicate which parameter.
43
43
  class EDAMUserException < ::Thrift::Exception
44
- include ::Thrift::Struct
44
+ include ::Thrift::Struct, ::Thrift::Struct_Union
45
45
  ERRORCODE = 1
46
46
  PARAMETER = 2
47
47
 
48
- ::Thrift::Struct.field_accessor self, :errorCode, :parameter
49
48
  FIELDS = {
50
49
  ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => Evernote::EDAM::Error::EDAMErrorCode},
51
50
  PARAMETER => {:type => ::Thrift::Types::STRING, :name => 'parameter', :optional => true}
@@ -60,6 +59,7 @@ module Evernote
60
59
  end
61
60
  end
62
61
 
62
+ ::Thrift::Struct.generate_accessors self
63
63
  end
64
64
 
65
65
  # This exception is thrown by EDAM procedures when a call fails as a result of
@@ -70,11 +70,10 @@ module Evernote
70
70
  #
71
71
  # message: This may contain additional information about the error
72
72
  class EDAMSystemException < ::Thrift::Exception
73
- include ::Thrift::Struct
73
+ include ::Thrift::Struct, ::Thrift::Struct_Union
74
74
  ERRORCODE = 1
75
75
  MESSAGE = 2
76
76
 
77
- ::Thrift::Struct.field_accessor self, :errorCode, :message
78
77
  FIELDS = {
79
78
  ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => Evernote::EDAM::Error::EDAMErrorCode},
80
79
  MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
@@ -89,6 +88,7 @@ module Evernote
89
88
  end
90
89
  end
91
90
 
91
+ ::Thrift::Struct.generate_accessors self
92
92
  end
93
93
 
94
94
  # This exception is thrown by EDAM procedures when a caller asks to perform
@@ -101,11 +101,10 @@ module Evernote
101
101
  # key: the value passed from the client in the identifier, which was not
102
102
  # found. E.g. the GUID of an object that was not found.
103
103
  class EDAMNotFoundException < ::Thrift::Exception
104
- include ::Thrift::Struct
104
+ include ::Thrift::Struct, ::Thrift::Struct_Union
105
105
  IDENTIFIER = 1
106
106
  KEY = 2
107
107
 
108
- ::Thrift::Struct.field_accessor self, :identifier, :key
109
108
  FIELDS = {
110
109
  IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier', :optional => true},
111
110
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :optional => true}
@@ -116,6 +115,7 @@ module Evernote
116
115
  def validate
117
116
  end
118
117
 
118
+ ::Thrift::Struct.generate_accessors self
119
119
  end
120
120
 
121
121
  end
@@ -82,6 +82,10 @@ require 'limits_types'
82
82
 
83
83
  EDAM_COMMERCE_SERVICE_TRIALPAY = %q"TrialPay"
84
84
 
85
+ EDAM_COMMERCE_SERVICE_TRIAL = %q"Trial"
86
+
87
+ EDAM_COMMERCE_SERVICE_GROUP = %q"Group"
88
+
85
89
  EDAM_SEARCH_QUERY_LEN_MIN = 0
86
90
 
87
91
  EDAM_SEARCH_QUERY_LEN_MAX = 1024
@@ -124,6 +128,12 @@ require 'limits_types'
124
128
 
125
129
  EDAM_NOTEBOOK_NAME_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
126
130
 
131
+ EDAM_NOTEBOOK_STACK_LEN_MIN = 1
132
+
133
+ EDAM_NOTEBOOK_STACK_LEN_MAX = 100
134
+
135
+ EDAM_NOTEBOOK_STACK_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
136
+
127
137
  EDAM_PUBLISHING_URI_LEN_MIN = 1
128
138
 
129
139
  EDAM_PUBLISHING_URI_LEN_MAX = 255
@@ -162,7 +172,7 @@ require 'limits_types'
162
172
 
163
173
  EDAM_USER_NOTES_MAX = 100000
164
174
 
165
- EDAM_USER_NOTEBOOKS_MAX = 100
175
+ EDAM_USER_NOTEBOOKS_MAX = 250
166
176
 
167
177
  EDAM_USER_RECENT_MAILED_ADDRESSES_MAX = 10
168
178
 
@@ -180,7 +190,7 @@ require 'limits_types'
180
190
 
181
191
  EDAM_USER_LINKED_NOTEBOOK_MAX = 100
182
192
 
183
- EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 100
193
+ EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250
184
194
 
185
195
  end
186
196
  end
@@ -48,6 +48,42 @@ 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 getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
52
+ send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
53
+ return recv_getLinkedNotebookSyncState()
54
+ end
55
+
56
+ def send_getLinkedNotebookSyncState(authenticationToken, linkedNotebook)
57
+ send_message('getLinkedNotebookSyncState', GetLinkedNotebookSyncState_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook)
58
+ end
59
+
60
+ def recv_getLinkedNotebookSyncState()
61
+ result = receive_message(GetLinkedNotebookSyncState_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 result.notFoundException unless result.notFoundException.nil?
66
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLinkedNotebookSyncState failed: unknown result')
67
+ end
68
+
69
+ def getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly)
70
+ send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly)
71
+ return recv_getLinkedNotebookSyncChunk()
72
+ end
73
+
74
+ def send_getLinkedNotebookSyncChunk(authenticationToken, linkedNotebook, afterUSN, maxEntries, fullSyncOnly)
75
+ send_message('getLinkedNotebookSyncChunk', GetLinkedNotebookSyncChunk_args, :authenticationToken => authenticationToken, :linkedNotebook => linkedNotebook, :afterUSN => afterUSN, :maxEntries => maxEntries, :fullSyncOnly => fullSyncOnly)
76
+ end
77
+
78
+ def recv_getLinkedNotebookSyncChunk()
79
+ result = receive_message(GetLinkedNotebookSyncChunk_result)
80
+ return result.success unless result.success.nil?
81
+ raise result.userException unless result.userException.nil?
82
+ raise result.systemException unless result.systemException.nil?
83
+ raise result.notFoundException unless result.notFoundException.nil?
84
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLinkedNotebookSyncChunk failed: unknown result')
85
+ end
86
+
51
87
  def listNotebooks(authenticationToken)
52
88
  send_listNotebooks(authenticationToken)
53
89
  return recv_listNotebooks()
@@ -379,6 +415,7 @@ require 'note_store_types'
379
415
  return result.success unless result.success.nil?
380
416
  raise result.userException unless result.userException.nil?
381
417
  raise result.systemException unless result.systemException.nil?
418
+ raise result.notFoundException unless result.notFoundException.nil?
382
419
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNotes failed: unknown result')
383
420
  end
384
421
 
@@ -396,6 +433,7 @@ require 'note_store_types'
396
433
  return result.success unless result.success.nil?
397
434
  raise result.userException unless result.userException.nil?
398
435
  raise result.systemException unless result.systemException.nil?
436
+ raise result.notFoundException unless result.notFoundException.nil?
399
437
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNoteCounts failed: unknown result')
400
438
  end
401
439
 
@@ -435,13 +473,13 @@ require 'note_store_types'
435
473
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteContent failed: unknown result')
436
474
  end
437
475
 
438
- def getNoteSearchText(authenticationToken, guid)
439
- send_getNoteSearchText(authenticationToken, guid)
476
+ def getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing)
477
+ send_getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing)
440
478
  return recv_getNoteSearchText()
441
479
  end
442
480
 
443
- def send_getNoteSearchText(authenticationToken, guid)
444
- send_message('getNoteSearchText', GetNoteSearchText_args, :authenticationToken => authenticationToken, :guid => guid)
481
+ def send_getNoteSearchText(authenticationToken, guid, noteOnly, tokenizeForIndexing)
482
+ send_message('getNoteSearchText', GetNoteSearchText_args, :authenticationToken => authenticationToken, :guid => guid, :noteOnly => noteOnly, :tokenizeForIndexing => tokenizeForIndexing)
445
483
  end
446
484
 
447
485
  def recv_getNoteSearchText()
@@ -453,6 +491,24 @@ require 'note_store_types'
453
491
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteSearchText failed: unknown result')
454
492
  end
455
493
 
494
+ def getResourceSearchText(authenticationToken, guid)
495
+ send_getResourceSearchText(authenticationToken, guid)
496
+ return recv_getResourceSearchText()
497
+ end
498
+
499
+ def send_getResourceSearchText(authenticationToken, guid)
500
+ send_message('getResourceSearchText', GetResourceSearchText_args, :authenticationToken => authenticationToken, :guid => guid)
501
+ end
502
+
503
+ def recv_getResourceSearchText()
504
+ result = receive_message(GetResourceSearchText_result)
505
+ return result.success unless result.success.nil?
506
+ raise result.userException unless result.userException.nil?
507
+ raise result.systemException unless result.systemException.nil?
508
+ raise result.notFoundException unless result.notFoundException.nil?
509
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getResourceSearchText failed: unknown result')
510
+ end
511
+
456
512
  def getNoteTagNames(authenticationToken, guid)
457
513
  send_getNoteTagNames(authenticationToken, guid)
458
514
  return recv_getNoteTagNames()
@@ -507,6 +563,24 @@ require 'note_store_types'
507
563
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateNote failed: unknown result')
508
564
  end
509
565
 
566
+ def deleteNote(authenticationToken, guid)
567
+ send_deleteNote(authenticationToken, guid)
568
+ return recv_deleteNote()
569
+ end
570
+
571
+ def send_deleteNote(authenticationToken, guid)
572
+ send_message('deleteNote', DeleteNote_args, :authenticationToken => authenticationToken, :guid => guid)
573
+ end
574
+
575
+ def recv_deleteNote()
576
+ result = receive_message(DeleteNote_result)
577
+ return result.success unless result.success.nil?
578
+ raise result.userException unless result.userException.nil?
579
+ raise result.systemException unless result.systemException.nil?
580
+ raise result.notFoundException unless result.notFoundException.nil?
581
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'deleteNote failed: unknown result')
582
+ end
583
+
510
584
  def expungeNote(authenticationToken, guid)
511
585
  send_expungeNote(authenticationToken, guid)
512
586
  return recv_expungeNote()
@@ -578,6 +652,42 @@ require 'note_store_types'
578
652
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'copyNote failed: unknown result')
579
653
  end
580
654
 
655
+ def listNoteVersions(authenticationToken, noteGuid)
656
+ send_listNoteVersions(authenticationToken, noteGuid)
657
+ return recv_listNoteVersions()
658
+ end
659
+
660
+ def send_listNoteVersions(authenticationToken, noteGuid)
661
+ send_message('listNoteVersions', ListNoteVersions_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid)
662
+ end
663
+
664
+ def recv_listNoteVersions()
665
+ result = receive_message(ListNoteVersions_result)
666
+ return result.success unless result.success.nil?
667
+ raise result.userException unless result.userException.nil?
668
+ raise result.systemException unless result.systemException.nil?
669
+ raise result.notFoundException unless result.notFoundException.nil?
670
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listNoteVersions failed: unknown result')
671
+ end
672
+
673
+ def getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData)
674
+ send_getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData)
675
+ return recv_getNoteVersion()
676
+ end
677
+
678
+ def send_getNoteVersion(authenticationToken, noteGuid, updateSequenceNum, withResourcesData, withResourcesRecognition, withResourcesAlternateData)
679
+ send_message('getNoteVersion', GetNoteVersion_args, :authenticationToken => authenticationToken, :noteGuid => noteGuid, :updateSequenceNum => updateSequenceNum, :withResourcesData => withResourcesData, :withResourcesRecognition => withResourcesRecognition, :withResourcesAlternateData => withResourcesAlternateData)
680
+ end
681
+
682
+ def recv_getNoteVersion()
683
+ result = receive_message(GetNoteVersion_result)
684
+ return result.success unless result.success.nil?
685
+ raise result.userException unless result.userException.nil?
686
+ raise result.systemException unless result.systemException.nil?
687
+ raise result.notFoundException unless result.notFoundException.nil?
688
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteVersion failed: unknown result')
689
+ end
690
+
581
691
  def getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData)
582
692
  send_getResource(authenticationToken, guid, withData, withRecognition, withAttributes, withAlternateData)
583
693
  return recv_getResource()
@@ -880,13 +990,13 @@ require 'note_store_types'
880
990
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listLinkedNotebooks failed: unknown result')
881
991
  end
882
992
 
883
- def expungeLinkedNotebook(authenticationToken, linkedNotebookId)
884
- send_expungeLinkedNotebook(authenticationToken, linkedNotebookId)
993
+ def expungeLinkedNotebook(authenticationToken, guid)
994
+ send_expungeLinkedNotebook(authenticationToken, guid)
885
995
  return recv_expungeLinkedNotebook()
886
996
  end
887
997
 
888
- def send_expungeLinkedNotebook(authenticationToken, linkedNotebookId)
889
- send_message('expungeLinkedNotebook', ExpungeLinkedNotebook_args, :authenticationToken => authenticationToken, :linkedNotebookId => linkedNotebookId)
998
+ def send_expungeLinkedNotebook(authenticationToken, guid)
999
+ send_message('expungeLinkedNotebook', ExpungeLinkedNotebook_args, :authenticationToken => authenticationToken, :guid => guid)
890
1000
  end
891
1001
 
892
1002
  def recv_expungeLinkedNotebook()
@@ -982,6 +1092,36 @@ require 'note_store_types'
982
1092
  write_result(result, oprot, 'getSyncChunk', seqid)
983
1093
  end
984
1094
 
1095
+ def process_getLinkedNotebookSyncState(seqid, iprot, oprot)
1096
+ args = read_args(iprot, GetLinkedNotebookSyncState_args)
1097
+ result = GetLinkedNotebookSyncState_result.new()
1098
+ begin
1099
+ result.success = @handler.getLinkedNotebookSyncState(args.authenticationToken, args.linkedNotebook)
1100
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1101
+ result.userException = userException
1102
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1103
+ result.systemException = systemException
1104
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1105
+ result.notFoundException = notFoundException
1106
+ end
1107
+ write_result(result, oprot, 'getLinkedNotebookSyncState', seqid)
1108
+ end
1109
+
1110
+ def process_getLinkedNotebookSyncChunk(seqid, iprot, oprot)
1111
+ args = read_args(iprot, GetLinkedNotebookSyncChunk_args)
1112
+ result = GetLinkedNotebookSyncChunk_result.new()
1113
+ begin
1114
+ result.success = @handler.getLinkedNotebookSyncChunk(args.authenticationToken, args.linkedNotebook, args.afterUSN, args.maxEntries, args.fullSyncOnly)
1115
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1116
+ result.userException = userException
1117
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1118
+ result.systemException = systemException
1119
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1120
+ result.notFoundException = notFoundException
1121
+ end
1122
+ write_result(result, oprot, 'getLinkedNotebookSyncChunk', seqid)
1123
+ end
1124
+
985
1125
  def process_listNotebooks(seqid, iprot, oprot)
986
1126
  args = read_args(iprot, ListNotebooks_args)
987
1127
  result = ListNotebooks_result.new()
@@ -1249,6 +1389,8 @@ require 'note_store_types'
1249
1389
  result.userException = userException
1250
1390
  rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1251
1391
  result.systemException = systemException
1392
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1393
+ result.notFoundException = notFoundException
1252
1394
  end
1253
1395
  write_result(result, oprot, 'findNotes', seqid)
1254
1396
  end
@@ -1262,6 +1404,8 @@ require 'note_store_types'
1262
1404
  result.userException = userException
1263
1405
  rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1264
1406
  result.systemException = systemException
1407
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1408
+ result.notFoundException = notFoundException
1265
1409
  end
1266
1410
  write_result(result, oprot, 'findNoteCounts', seqid)
1267
1411
  end
@@ -1300,7 +1444,7 @@ require 'note_store_types'
1300
1444
  args = read_args(iprot, GetNoteSearchText_args)
1301
1445
  result = GetNoteSearchText_result.new()
1302
1446
  begin
1303
- result.success = @handler.getNoteSearchText(args.authenticationToken, args.guid)
1447
+ result.success = @handler.getNoteSearchText(args.authenticationToken, args.guid, args.noteOnly, args.tokenizeForIndexing)
1304
1448
  rescue Evernote::EDAM::Error::EDAMUserException => userException
1305
1449
  result.userException = userException
1306
1450
  rescue Evernote::EDAM::Error::EDAMSystemException => systemException
@@ -1311,6 +1455,21 @@ require 'note_store_types'
1311
1455
  write_result(result, oprot, 'getNoteSearchText', seqid)
1312
1456
  end
1313
1457
 
1458
+ def process_getResourceSearchText(seqid, iprot, oprot)
1459
+ args = read_args(iprot, GetResourceSearchText_args)
1460
+ result = GetResourceSearchText_result.new()
1461
+ begin
1462
+ result.success = @handler.getResourceSearchText(args.authenticationToken, args.guid)
1463
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1464
+ result.userException = userException
1465
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1466
+ result.systemException = systemException
1467
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1468
+ result.notFoundException = notFoundException
1469
+ end
1470
+ write_result(result, oprot, 'getResourceSearchText', seqid)
1471
+ end
1472
+
1314
1473
  def process_getNoteTagNames(seqid, iprot, oprot)
1315
1474
  args = read_args(iprot, GetNoteTagNames_args)
1316
1475
  result = GetNoteTagNames_result.new()
@@ -1356,6 +1515,21 @@ require 'note_store_types'
1356
1515
  write_result(result, oprot, 'updateNote', seqid)
1357
1516
  end
1358
1517
 
1518
+ def process_deleteNote(seqid, iprot, oprot)
1519
+ args = read_args(iprot, DeleteNote_args)
1520
+ result = DeleteNote_result.new()
1521
+ begin
1522
+ result.success = @handler.deleteNote(args.authenticationToken, args.guid)
1523
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1524
+ result.userException = userException
1525
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1526
+ result.systemException = systemException
1527
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1528
+ result.notFoundException = notFoundException
1529
+ end
1530
+ write_result(result, oprot, 'deleteNote', seqid)
1531
+ end
1532
+
1359
1533
  def process_expungeNote(seqid, iprot, oprot)
1360
1534
  args = read_args(iprot, ExpungeNote_args)
1361
1535
  result = ExpungeNote_result.new()
@@ -1414,6 +1588,36 @@ require 'note_store_types'
1414
1588
  write_result(result, oprot, 'copyNote', seqid)
1415
1589
  end
1416
1590
 
1591
+ def process_listNoteVersions(seqid, iprot, oprot)
1592
+ args = read_args(iprot, ListNoteVersions_args)
1593
+ result = ListNoteVersions_result.new()
1594
+ begin
1595
+ result.success = @handler.listNoteVersions(args.authenticationToken, args.noteGuid)
1596
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1597
+ result.userException = userException
1598
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1599
+ result.systemException = systemException
1600
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1601
+ result.notFoundException = notFoundException
1602
+ end
1603
+ write_result(result, oprot, 'listNoteVersions', seqid)
1604
+ end
1605
+
1606
+ def process_getNoteVersion(seqid, iprot, oprot)
1607
+ args = read_args(iprot, GetNoteVersion_args)
1608
+ result = GetNoteVersion_result.new()
1609
+ begin
1610
+ result.success = @handler.getNoteVersion(args.authenticationToken, args.noteGuid, args.updateSequenceNum, args.withResourcesData, args.withResourcesRecognition, args.withResourcesAlternateData)
1611
+ rescue Evernote::EDAM::Error::EDAMUserException => userException
1612
+ result.userException = userException
1613
+ rescue Evernote::EDAM::Error::EDAMSystemException => systemException
1614
+ result.systemException = systemException
1615
+ rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
1616
+ result.notFoundException = notFoundException
1617
+ end
1618
+ write_result(result, oprot, 'getNoteVersion', seqid)
1619
+ end
1620
+
1417
1621
  def process_getResource(seqid, iprot, oprot)
1418
1622
  args = read_args(iprot, GetResource_args)
1419
1623
  result = GetResource_result.new()
@@ -1665,7 +1869,7 @@ require 'note_store_types'
1665
1869
  args = read_args(iprot, ExpungeLinkedNotebook_args)
1666
1870
  result = ExpungeLinkedNotebook_result.new()
1667
1871
  begin
1668
- result.success = @handler.expungeLinkedNotebook(args.authenticationToken, args.linkedNotebookId)
1872
+ result.success = @handler.expungeLinkedNotebook(args.authenticationToken, args.guid)
1669
1873
  rescue Evernote::EDAM::Error::EDAMUserException => userException
1670
1874
  result.userException = userException
1671
1875
  rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException
@@ -1726,10 +1930,9 @@ require 'note_store_types'
1726
1930
  # HELPER FUNCTIONS AND STRUCTURES
1727
1931
 
1728
1932
  class GetSyncState_args
1729
- include ::Thrift::Struct
1933
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1730
1934
  AUTHENTICATIONTOKEN = 1
1731
1935
 
1732
- ::Thrift::Struct.field_accessor self, :authenticationToken
1733
1936
  FIELDS = {
1734
1937
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
1735
1938
  }
@@ -1739,15 +1942,15 @@ require 'note_store_types'
1739
1942
  def validate
1740
1943
  end
1741
1944
 
1945
+ ::Thrift::Struct.generate_accessors self
1742
1946
  end
1743
1947
 
1744
1948
  class GetSyncState_result
1745
- include ::Thrift::Struct
1949
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1746
1950
  SUCCESS = 0
1747
1951
  USEREXCEPTION = 1
1748
1952
  SYSTEMEXCEPTION = 2
1749
1953
 
1750
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1751
1954
  FIELDS = {
1752
1955
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncState},
1753
1956
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1759,16 +1962,16 @@ require 'note_store_types'
1759
1962
  def validate
1760
1963
  end
1761
1964
 
1965
+ ::Thrift::Struct.generate_accessors self
1762
1966
  end
1763
1967
 
1764
1968
  class GetSyncChunk_args
1765
- include ::Thrift::Struct
1969
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1766
1970
  AUTHENTICATIONTOKEN = 1
1767
1971
  AFTERUSN = 2
1768
1972
  MAXENTRIES = 3
1769
1973
  FULLSYNCONLY = 4
1770
1974
 
1771
- ::Thrift::Struct.field_accessor self, :authenticationToken, :afterUSN, :maxEntries, :fullSyncOnly
1772
1975
  FIELDS = {
1773
1976
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1774
1977
  AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'},
@@ -1781,15 +1984,15 @@ require 'note_store_types'
1781
1984
  def validate
1782
1985
  end
1783
1986
 
1987
+ ::Thrift::Struct.generate_accessors self
1784
1988
  end
1785
1989
 
1786
1990
  class GetSyncChunk_result
1787
- include ::Thrift::Struct
1991
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1788
1992
  SUCCESS = 0
1789
1993
  USEREXCEPTION = 1
1790
1994
  SYSTEMEXCEPTION = 2
1791
1995
 
1792
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1793
1996
  FIELDS = {
1794
1997
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncChunk},
1795
1998
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1801,13 +2004,99 @@ require 'note_store_types'
1801
2004
  def validate
1802
2005
  end
1803
2006
 
2007
+ ::Thrift::Struct.generate_accessors self
2008
+ end
2009
+
2010
+ class GetLinkedNotebookSyncState_args
2011
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2012
+ AUTHENTICATIONTOKEN = 1
2013
+ LINKEDNOTEBOOK = 2
2014
+
2015
+ FIELDS = {
2016
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2017
+ LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook}
2018
+ }
2019
+
2020
+ def struct_fields; FIELDS; end
2021
+
2022
+ def validate
2023
+ end
2024
+
2025
+ ::Thrift::Struct.generate_accessors self
2026
+ end
2027
+
2028
+ class GetLinkedNotebookSyncState_result
2029
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2030
+ SUCCESS = 0
2031
+ USEREXCEPTION = 1
2032
+ SYSTEMEXCEPTION = 2
2033
+ NOTFOUNDEXCEPTION = 3
2034
+
2035
+ FIELDS = {
2036
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncState},
2037
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2038
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2039
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2040
+ }
2041
+
2042
+ def struct_fields; FIELDS; end
2043
+
2044
+ def validate
2045
+ end
2046
+
2047
+ ::Thrift::Struct.generate_accessors self
2048
+ end
2049
+
2050
+ class GetLinkedNotebookSyncChunk_args
2051
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2052
+ AUTHENTICATIONTOKEN = 1
2053
+ LINKEDNOTEBOOK = 2
2054
+ AFTERUSN = 3
2055
+ MAXENTRIES = 4
2056
+ FULLSYNCONLY = 5
2057
+
2058
+ FIELDS = {
2059
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2060
+ LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook},
2061
+ AFTERUSN => {:type => ::Thrift::Types::I32, :name => 'afterUSN'},
2062
+ MAXENTRIES => {:type => ::Thrift::Types::I32, :name => 'maxEntries'},
2063
+ FULLSYNCONLY => {:type => ::Thrift::Types::BOOL, :name => 'fullSyncOnly'}
2064
+ }
2065
+
2066
+ def struct_fields; FIELDS; end
2067
+
2068
+ def validate
2069
+ end
2070
+
2071
+ ::Thrift::Struct.generate_accessors self
2072
+ end
2073
+
2074
+ class GetLinkedNotebookSyncChunk_result
2075
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2076
+ SUCCESS = 0
2077
+ USEREXCEPTION = 1
2078
+ SYSTEMEXCEPTION = 2
2079
+ NOTFOUNDEXCEPTION = 3
2080
+
2081
+ FIELDS = {
2082
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::SyncChunk},
2083
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2084
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2085
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2086
+ }
2087
+
2088
+ def struct_fields; FIELDS; end
2089
+
2090
+ def validate
2091
+ end
2092
+
2093
+ ::Thrift::Struct.generate_accessors self
1804
2094
  end
1805
2095
 
1806
2096
  class ListNotebooks_args
1807
- include ::Thrift::Struct
2097
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1808
2098
  AUTHENTICATIONTOKEN = 1
1809
2099
 
1810
- ::Thrift::Struct.field_accessor self, :authenticationToken
1811
2100
  FIELDS = {
1812
2101
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
1813
2102
  }
@@ -1817,15 +2106,15 @@ require 'note_store_types'
1817
2106
  def validate
1818
2107
  end
1819
2108
 
2109
+ ::Thrift::Struct.generate_accessors self
1820
2110
  end
1821
2111
 
1822
2112
  class ListNotebooks_result
1823
- include ::Thrift::Struct
2113
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1824
2114
  SUCCESS = 0
1825
2115
  USEREXCEPTION = 1
1826
2116
  SYSTEMEXCEPTION = 2
1827
2117
 
1828
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1829
2118
  FIELDS = {
1830
2119
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Notebook}},
1831
2120
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1837,14 +2126,14 @@ require 'note_store_types'
1837
2126
  def validate
1838
2127
  end
1839
2128
 
2129
+ ::Thrift::Struct.generate_accessors self
1840
2130
  end
1841
2131
 
1842
2132
  class GetNotebook_args
1843
- include ::Thrift::Struct
2133
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1844
2134
  AUTHENTICATIONTOKEN = 1
1845
2135
  GUID = 2
1846
2136
 
1847
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
1848
2137
  FIELDS = {
1849
2138
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1850
2139
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -1855,16 +2144,16 @@ require 'note_store_types'
1855
2144
  def validate
1856
2145
  end
1857
2146
 
2147
+ ::Thrift::Struct.generate_accessors self
1858
2148
  end
1859
2149
 
1860
2150
  class GetNotebook_result
1861
- include ::Thrift::Struct
2151
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1862
2152
  SUCCESS = 0
1863
2153
  USEREXCEPTION = 1
1864
2154
  SYSTEMEXCEPTION = 2
1865
2155
  NOTFOUNDEXCEPTION = 3
1866
2156
 
1867
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
1868
2157
  FIELDS = {
1869
2158
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
1870
2159
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1877,13 +2166,13 @@ require 'note_store_types'
1877
2166
  def validate
1878
2167
  end
1879
2168
 
2169
+ ::Thrift::Struct.generate_accessors self
1880
2170
  end
1881
2171
 
1882
2172
  class GetDefaultNotebook_args
1883
- include ::Thrift::Struct
2173
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1884
2174
  AUTHENTICATIONTOKEN = 1
1885
2175
 
1886
- ::Thrift::Struct.field_accessor self, :authenticationToken
1887
2176
  FIELDS = {
1888
2177
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
1889
2178
  }
@@ -1893,15 +2182,15 @@ require 'note_store_types'
1893
2182
  def validate
1894
2183
  end
1895
2184
 
2185
+ ::Thrift::Struct.generate_accessors self
1896
2186
  end
1897
2187
 
1898
2188
  class GetDefaultNotebook_result
1899
- include ::Thrift::Struct
2189
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1900
2190
  SUCCESS = 0
1901
2191
  USEREXCEPTION = 1
1902
2192
  SYSTEMEXCEPTION = 2
1903
2193
 
1904
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1905
2194
  FIELDS = {
1906
2195
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
1907
2196
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1913,14 +2202,14 @@ require 'note_store_types'
1913
2202
  def validate
1914
2203
  end
1915
2204
 
2205
+ ::Thrift::Struct.generate_accessors self
1916
2206
  end
1917
2207
 
1918
2208
  class CreateNotebook_args
1919
- include ::Thrift::Struct
2209
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1920
2210
  AUTHENTICATIONTOKEN = 1
1921
2211
  NOTEBOOK = 2
1922
2212
 
1923
- ::Thrift::Struct.field_accessor self, :authenticationToken, :notebook
1924
2213
  FIELDS = {
1925
2214
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1926
2215
  NOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'notebook', :class => Evernote::EDAM::Type::Notebook}
@@ -1931,15 +2220,15 @@ require 'note_store_types'
1931
2220
  def validate
1932
2221
  end
1933
2222
 
2223
+ ::Thrift::Struct.generate_accessors self
1934
2224
  end
1935
2225
 
1936
2226
  class CreateNotebook_result
1937
- include ::Thrift::Struct
2227
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1938
2228
  SUCCESS = 0
1939
2229
  USEREXCEPTION = 1
1940
2230
  SYSTEMEXCEPTION = 2
1941
2231
 
1942
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
1943
2232
  FIELDS = {
1944
2233
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
1945
2234
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1951,14 +2240,14 @@ require 'note_store_types'
1951
2240
  def validate
1952
2241
  end
1953
2242
 
2243
+ ::Thrift::Struct.generate_accessors self
1954
2244
  end
1955
2245
 
1956
2246
  class UpdateNotebook_args
1957
- include ::Thrift::Struct
2247
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1958
2248
  AUTHENTICATIONTOKEN = 1
1959
2249
  NOTEBOOK = 2
1960
2250
 
1961
- ::Thrift::Struct.field_accessor self, :authenticationToken, :notebook
1962
2251
  FIELDS = {
1963
2252
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
1964
2253
  NOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'notebook', :class => Evernote::EDAM::Type::Notebook}
@@ -1969,16 +2258,16 @@ require 'note_store_types'
1969
2258
  def validate
1970
2259
  end
1971
2260
 
2261
+ ::Thrift::Struct.generate_accessors self
1972
2262
  end
1973
2263
 
1974
2264
  class UpdateNotebook_result
1975
- include ::Thrift::Struct
2265
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1976
2266
  SUCCESS = 0
1977
2267
  USEREXCEPTION = 1
1978
2268
  SYSTEMEXCEPTION = 2
1979
2269
  NOTFOUNDEXCEPTION = 3
1980
2270
 
1981
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
1982
2271
  FIELDS = {
1983
2272
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
1984
2273
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -1991,14 +2280,14 @@ require 'note_store_types'
1991
2280
  def validate
1992
2281
  end
1993
2282
 
2283
+ ::Thrift::Struct.generate_accessors self
1994
2284
  end
1995
2285
 
1996
2286
  class ExpungeNotebook_args
1997
- include ::Thrift::Struct
2287
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1998
2288
  AUTHENTICATIONTOKEN = 1
1999
2289
  GUID = 2
2000
2290
 
2001
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2002
2291
  FIELDS = {
2003
2292
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2004
2293
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2009,16 +2298,16 @@ require 'note_store_types'
2009
2298
  def validate
2010
2299
  end
2011
2300
 
2301
+ ::Thrift::Struct.generate_accessors self
2012
2302
  end
2013
2303
 
2014
2304
  class ExpungeNotebook_result
2015
- include ::Thrift::Struct
2305
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2016
2306
  SUCCESS = 0
2017
2307
  USEREXCEPTION = 1
2018
2308
  SYSTEMEXCEPTION = 2
2019
2309
  NOTFOUNDEXCEPTION = 3
2020
2310
 
2021
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2022
2311
  FIELDS = {
2023
2312
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2024
2313
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2031,13 +2320,13 @@ require 'note_store_types'
2031
2320
  def validate
2032
2321
  end
2033
2322
 
2323
+ ::Thrift::Struct.generate_accessors self
2034
2324
  end
2035
2325
 
2036
2326
  class ListTags_args
2037
- include ::Thrift::Struct
2327
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2038
2328
  AUTHENTICATIONTOKEN = 1
2039
2329
 
2040
- ::Thrift::Struct.field_accessor self, :authenticationToken
2041
2330
  FIELDS = {
2042
2331
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
2043
2332
  }
@@ -2047,15 +2336,15 @@ require 'note_store_types'
2047
2336
  def validate
2048
2337
  end
2049
2338
 
2339
+ ::Thrift::Struct.generate_accessors self
2050
2340
  end
2051
2341
 
2052
2342
  class ListTags_result
2053
- include ::Thrift::Struct
2343
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2054
2344
  SUCCESS = 0
2055
2345
  USEREXCEPTION = 1
2056
2346
  SYSTEMEXCEPTION = 2
2057
2347
 
2058
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2059
2348
  FIELDS = {
2060
2349
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}},
2061
2350
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2067,14 +2356,14 @@ require 'note_store_types'
2067
2356
  def validate
2068
2357
  end
2069
2358
 
2359
+ ::Thrift::Struct.generate_accessors self
2070
2360
  end
2071
2361
 
2072
2362
  class ListTagsByNotebook_args
2073
- include ::Thrift::Struct
2363
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2074
2364
  AUTHENTICATIONTOKEN = 1
2075
2365
  NOTEBOOKGUID = 2
2076
2366
 
2077
- ::Thrift::Struct.field_accessor self, :authenticationToken, :notebookGuid
2078
2367
  FIELDS = {
2079
2368
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2080
2369
  NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid'}
@@ -2085,16 +2374,16 @@ require 'note_store_types'
2085
2374
  def validate
2086
2375
  end
2087
2376
 
2377
+ ::Thrift::Struct.generate_accessors self
2088
2378
  end
2089
2379
 
2090
2380
  class ListTagsByNotebook_result
2091
- include ::Thrift::Struct
2381
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2092
2382
  SUCCESS = 0
2093
2383
  USEREXCEPTION = 1
2094
2384
  SYSTEMEXCEPTION = 2
2095
2385
  NOTFOUNDEXCEPTION = 3
2096
2386
 
2097
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2098
2387
  FIELDS = {
2099
2388
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Tag}},
2100
2389
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2107,14 +2396,14 @@ require 'note_store_types'
2107
2396
  def validate
2108
2397
  end
2109
2398
 
2399
+ ::Thrift::Struct.generate_accessors self
2110
2400
  end
2111
2401
 
2112
2402
  class GetTag_args
2113
- include ::Thrift::Struct
2403
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2114
2404
  AUTHENTICATIONTOKEN = 1
2115
2405
  GUID = 2
2116
2406
 
2117
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2118
2407
  FIELDS = {
2119
2408
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2120
2409
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2125,16 +2414,16 @@ require 'note_store_types'
2125
2414
  def validate
2126
2415
  end
2127
2416
 
2417
+ ::Thrift::Struct.generate_accessors self
2128
2418
  end
2129
2419
 
2130
2420
  class GetTag_result
2131
- include ::Thrift::Struct
2421
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2132
2422
  SUCCESS = 0
2133
2423
  USEREXCEPTION = 1
2134
2424
  SYSTEMEXCEPTION = 2
2135
2425
  NOTFOUNDEXCEPTION = 3
2136
2426
 
2137
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2138
2427
  FIELDS = {
2139
2428
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Tag},
2140
2429
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2147,14 +2436,14 @@ require 'note_store_types'
2147
2436
  def validate
2148
2437
  end
2149
2438
 
2439
+ ::Thrift::Struct.generate_accessors self
2150
2440
  end
2151
2441
 
2152
2442
  class CreateTag_args
2153
- include ::Thrift::Struct
2443
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2154
2444
  AUTHENTICATIONTOKEN = 1
2155
2445
  TAG = 2
2156
2446
 
2157
- ::Thrift::Struct.field_accessor self, :authenticationToken, :tag
2158
2447
  FIELDS = {
2159
2448
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2160
2449
  TAG => {:type => ::Thrift::Types::STRUCT, :name => 'tag', :class => Evernote::EDAM::Type::Tag}
@@ -2165,16 +2454,16 @@ require 'note_store_types'
2165
2454
  def validate
2166
2455
  end
2167
2456
 
2457
+ ::Thrift::Struct.generate_accessors self
2168
2458
  end
2169
2459
 
2170
2460
  class CreateTag_result
2171
- include ::Thrift::Struct
2461
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2172
2462
  SUCCESS = 0
2173
2463
  USEREXCEPTION = 1
2174
2464
  SYSTEMEXCEPTION = 2
2175
2465
  NOTFOUNDEXCEPTION = 3
2176
2466
 
2177
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2178
2467
  FIELDS = {
2179
2468
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Tag},
2180
2469
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2187,14 +2476,14 @@ require 'note_store_types'
2187
2476
  def validate
2188
2477
  end
2189
2478
 
2479
+ ::Thrift::Struct.generate_accessors self
2190
2480
  end
2191
2481
 
2192
2482
  class UpdateTag_args
2193
- include ::Thrift::Struct
2483
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2194
2484
  AUTHENTICATIONTOKEN = 1
2195
2485
  TAG = 2
2196
2486
 
2197
- ::Thrift::Struct.field_accessor self, :authenticationToken, :tag
2198
2487
  FIELDS = {
2199
2488
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2200
2489
  TAG => {:type => ::Thrift::Types::STRUCT, :name => 'tag', :class => Evernote::EDAM::Type::Tag}
@@ -2205,16 +2494,16 @@ require 'note_store_types'
2205
2494
  def validate
2206
2495
  end
2207
2496
 
2497
+ ::Thrift::Struct.generate_accessors self
2208
2498
  end
2209
2499
 
2210
2500
  class UpdateTag_result
2211
- include ::Thrift::Struct
2501
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2212
2502
  SUCCESS = 0
2213
2503
  USEREXCEPTION = 1
2214
2504
  SYSTEMEXCEPTION = 2
2215
2505
  NOTFOUNDEXCEPTION = 3
2216
2506
 
2217
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2218
2507
  FIELDS = {
2219
2508
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2220
2509
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2227,14 +2516,14 @@ require 'note_store_types'
2227
2516
  def validate
2228
2517
  end
2229
2518
 
2519
+ ::Thrift::Struct.generate_accessors self
2230
2520
  end
2231
2521
 
2232
2522
  class UntagAll_args
2233
- include ::Thrift::Struct
2523
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2234
2524
  AUTHENTICATIONTOKEN = 1
2235
2525
  GUID = 2
2236
2526
 
2237
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2238
2527
  FIELDS = {
2239
2528
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2240
2529
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2245,15 +2534,15 @@ require 'note_store_types'
2245
2534
  def validate
2246
2535
  end
2247
2536
 
2537
+ ::Thrift::Struct.generate_accessors self
2248
2538
  end
2249
2539
 
2250
2540
  class UntagAll_result
2251
- include ::Thrift::Struct
2541
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2252
2542
  USEREXCEPTION = 1
2253
2543
  SYSTEMEXCEPTION = 2
2254
2544
  NOTFOUNDEXCEPTION = 3
2255
2545
 
2256
- ::Thrift::Struct.field_accessor self, :userException, :systemException, :notFoundException
2257
2546
  FIELDS = {
2258
2547
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2259
2548
  SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
@@ -2265,14 +2554,14 @@ require 'note_store_types'
2265
2554
  def validate
2266
2555
  end
2267
2556
 
2557
+ ::Thrift::Struct.generate_accessors self
2268
2558
  end
2269
2559
 
2270
2560
  class ExpungeTag_args
2271
- include ::Thrift::Struct
2561
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2272
2562
  AUTHENTICATIONTOKEN = 1
2273
2563
  GUID = 2
2274
2564
 
2275
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2276
2565
  FIELDS = {
2277
2566
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2278
2567
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2283,16 +2572,16 @@ require 'note_store_types'
2283
2572
  def validate
2284
2573
  end
2285
2574
 
2575
+ ::Thrift::Struct.generate_accessors self
2286
2576
  end
2287
2577
 
2288
2578
  class ExpungeTag_result
2289
- include ::Thrift::Struct
2579
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2290
2580
  SUCCESS = 0
2291
2581
  USEREXCEPTION = 1
2292
2582
  SYSTEMEXCEPTION = 2
2293
2583
  NOTFOUNDEXCEPTION = 3
2294
2584
 
2295
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2296
2585
  FIELDS = {
2297
2586
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2298
2587
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2305,13 +2594,13 @@ require 'note_store_types'
2305
2594
  def validate
2306
2595
  end
2307
2596
 
2597
+ ::Thrift::Struct.generate_accessors self
2308
2598
  end
2309
2599
 
2310
2600
  class ListSearches_args
2311
- include ::Thrift::Struct
2601
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2312
2602
  AUTHENTICATIONTOKEN = 1
2313
2603
 
2314
- ::Thrift::Struct.field_accessor self, :authenticationToken
2315
2604
  FIELDS = {
2316
2605
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
2317
2606
  }
@@ -2321,15 +2610,15 @@ require 'note_store_types'
2321
2610
  def validate
2322
2611
  end
2323
2612
 
2613
+ ::Thrift::Struct.generate_accessors self
2324
2614
  end
2325
2615
 
2326
2616
  class ListSearches_result
2327
- include ::Thrift::Struct
2617
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2328
2618
  SUCCESS = 0
2329
2619
  USEREXCEPTION = 1
2330
2620
  SYSTEMEXCEPTION = 2
2331
2621
 
2332
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2333
2622
  FIELDS = {
2334
2623
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SavedSearch}},
2335
2624
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2341,14 +2630,14 @@ require 'note_store_types'
2341
2630
  def validate
2342
2631
  end
2343
2632
 
2633
+ ::Thrift::Struct.generate_accessors self
2344
2634
  end
2345
2635
 
2346
2636
  class GetSearch_args
2347
- include ::Thrift::Struct
2637
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2348
2638
  AUTHENTICATIONTOKEN = 1
2349
2639
  GUID = 2
2350
2640
 
2351
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2352
2641
  FIELDS = {
2353
2642
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2354
2643
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2359,16 +2648,16 @@ require 'note_store_types'
2359
2648
  def validate
2360
2649
  end
2361
2650
 
2651
+ ::Thrift::Struct.generate_accessors self
2362
2652
  end
2363
2653
 
2364
2654
  class GetSearch_result
2365
- include ::Thrift::Struct
2655
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2366
2656
  SUCCESS = 0
2367
2657
  USEREXCEPTION = 1
2368
2658
  SYSTEMEXCEPTION = 2
2369
2659
  NOTFOUNDEXCEPTION = 3
2370
2660
 
2371
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2372
2661
  FIELDS = {
2373
2662
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SavedSearch},
2374
2663
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2381,14 +2670,14 @@ require 'note_store_types'
2381
2670
  def validate
2382
2671
  end
2383
2672
 
2673
+ ::Thrift::Struct.generate_accessors self
2384
2674
  end
2385
2675
 
2386
2676
  class CreateSearch_args
2387
- include ::Thrift::Struct
2677
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2388
2678
  AUTHENTICATIONTOKEN = 1
2389
2679
  SEARCH = 2
2390
2680
 
2391
- ::Thrift::Struct.field_accessor self, :authenticationToken, :search
2392
2681
  FIELDS = {
2393
2682
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2394
2683
  SEARCH => {:type => ::Thrift::Types::STRUCT, :name => 'search', :class => Evernote::EDAM::Type::SavedSearch}
@@ -2399,15 +2688,15 @@ require 'note_store_types'
2399
2688
  def validate
2400
2689
  end
2401
2690
 
2691
+ ::Thrift::Struct.generate_accessors self
2402
2692
  end
2403
2693
 
2404
2694
  class CreateSearch_result
2405
- include ::Thrift::Struct
2695
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2406
2696
  SUCCESS = 0
2407
2697
  USEREXCEPTION = 1
2408
2698
  SYSTEMEXCEPTION = 2
2409
2699
 
2410
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2411
2700
  FIELDS = {
2412
2701
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SavedSearch},
2413
2702
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2419,14 +2708,14 @@ require 'note_store_types'
2419
2708
  def validate
2420
2709
  end
2421
2710
 
2711
+ ::Thrift::Struct.generate_accessors self
2422
2712
  end
2423
2713
 
2424
2714
  class UpdateSearch_args
2425
- include ::Thrift::Struct
2715
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2426
2716
  AUTHENTICATIONTOKEN = 1
2427
2717
  SEARCH = 2
2428
2718
 
2429
- ::Thrift::Struct.field_accessor self, :authenticationToken, :search
2430
2719
  FIELDS = {
2431
2720
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2432
2721
  SEARCH => {:type => ::Thrift::Types::STRUCT, :name => 'search', :class => Evernote::EDAM::Type::SavedSearch}
@@ -2437,16 +2726,16 @@ require 'note_store_types'
2437
2726
  def validate
2438
2727
  end
2439
2728
 
2729
+ ::Thrift::Struct.generate_accessors self
2440
2730
  end
2441
2731
 
2442
2732
  class UpdateSearch_result
2443
- include ::Thrift::Struct
2733
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2444
2734
  SUCCESS = 0
2445
2735
  USEREXCEPTION = 1
2446
2736
  SYSTEMEXCEPTION = 2
2447
2737
  NOTFOUNDEXCEPTION = 3
2448
2738
 
2449
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2450
2739
  FIELDS = {
2451
2740
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2452
2741
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2459,14 +2748,14 @@ require 'note_store_types'
2459
2748
  def validate
2460
2749
  end
2461
2750
 
2751
+ ::Thrift::Struct.generate_accessors self
2462
2752
  end
2463
2753
 
2464
2754
  class ExpungeSearch_args
2465
- include ::Thrift::Struct
2755
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2466
2756
  AUTHENTICATIONTOKEN = 1
2467
2757
  GUID = 2
2468
2758
 
2469
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2470
2759
  FIELDS = {
2471
2760
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2472
2761
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2477,16 +2766,16 @@ require 'note_store_types'
2477
2766
  def validate
2478
2767
  end
2479
2768
 
2769
+ ::Thrift::Struct.generate_accessors self
2480
2770
  end
2481
2771
 
2482
2772
  class ExpungeSearch_result
2483
- include ::Thrift::Struct
2773
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2484
2774
  SUCCESS = 0
2485
2775
  USEREXCEPTION = 1
2486
2776
  SYSTEMEXCEPTION = 2
2487
2777
  NOTFOUNDEXCEPTION = 3
2488
2778
 
2489
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2490
2779
  FIELDS = {
2491
2780
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2492
2781
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2499,16 +2788,16 @@ require 'note_store_types'
2499
2788
  def validate
2500
2789
  end
2501
2790
 
2791
+ ::Thrift::Struct.generate_accessors self
2502
2792
  end
2503
2793
 
2504
2794
  class FindNotes_args
2505
- include ::Thrift::Struct
2795
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2506
2796
  AUTHENTICATIONTOKEN = 1
2507
2797
  FILTER = 2
2508
2798
  OFFSET = 3
2509
2799
  MAXNOTES = 4
2510
2800
 
2511
- ::Thrift::Struct.field_accessor self, :authenticationToken, :filter, :offset, :maxNotes
2512
2801
  FIELDS = {
2513
2802
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2514
2803
  FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter},
@@ -2521,19 +2810,21 @@ require 'note_store_types'
2521
2810
  def validate
2522
2811
  end
2523
2812
 
2813
+ ::Thrift::Struct.generate_accessors self
2524
2814
  end
2525
2815
 
2526
2816
  class FindNotes_result
2527
- include ::Thrift::Struct
2817
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2528
2818
  SUCCESS = 0
2529
2819
  USEREXCEPTION = 1
2530
2820
  SYSTEMEXCEPTION = 2
2821
+ NOTFOUNDEXCEPTION = 3
2531
2822
 
2532
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2533
2823
  FIELDS = {
2534
2824
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NoteList},
2535
2825
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2536
- SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2826
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2827
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2537
2828
  }
2538
2829
 
2539
2830
  def struct_fields; FIELDS; end
@@ -2541,15 +2832,15 @@ require 'note_store_types'
2541
2832
  def validate
2542
2833
  end
2543
2834
 
2835
+ ::Thrift::Struct.generate_accessors self
2544
2836
  end
2545
2837
 
2546
2838
  class FindNoteCounts_args
2547
- include ::Thrift::Struct
2839
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2548
2840
  AUTHENTICATIONTOKEN = 1
2549
2841
  FILTER = 2
2550
2842
  WITHTRASH = 3
2551
2843
 
2552
- ::Thrift::Struct.field_accessor self, :authenticationToken, :filter, :withTrash
2553
2844
  FIELDS = {
2554
2845
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2555
2846
  FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter},
@@ -2561,19 +2852,21 @@ require 'note_store_types'
2561
2852
  def validate
2562
2853
  end
2563
2854
 
2855
+ ::Thrift::Struct.generate_accessors self
2564
2856
  end
2565
2857
 
2566
2858
  class FindNoteCounts_result
2567
- include ::Thrift::Struct
2859
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2568
2860
  SUCCESS = 0
2569
2861
  USEREXCEPTION = 1
2570
2862
  SYSTEMEXCEPTION = 2
2863
+ NOTFOUNDEXCEPTION = 3
2571
2864
 
2572
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2573
2865
  FIELDS = {
2574
2866
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NoteCollectionCounts},
2575
2867
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
2576
- SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
2868
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
2869
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
2577
2870
  }
2578
2871
 
2579
2872
  def struct_fields; FIELDS; end
@@ -2581,10 +2874,11 @@ require 'note_store_types'
2581
2874
  def validate
2582
2875
  end
2583
2876
 
2877
+ ::Thrift::Struct.generate_accessors self
2584
2878
  end
2585
2879
 
2586
2880
  class GetNote_args
2587
- include ::Thrift::Struct
2881
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2588
2882
  AUTHENTICATIONTOKEN = 1
2589
2883
  GUID = 2
2590
2884
  WITHCONTENT = 3
@@ -2592,7 +2886,6 @@ require 'note_store_types'
2592
2886
  WITHRESOURCESRECOGNITION = 5
2593
2887
  WITHRESOURCESALTERNATEDATA = 6
2594
2888
 
2595
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid, :withContent, :withResourcesData, :withResourcesRecognition, :withResourcesAlternateData
2596
2889
  FIELDS = {
2597
2890
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2598
2891
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
@@ -2607,16 +2900,16 @@ require 'note_store_types'
2607
2900
  def validate
2608
2901
  end
2609
2902
 
2903
+ ::Thrift::Struct.generate_accessors self
2610
2904
  end
2611
2905
 
2612
2906
  class GetNote_result
2613
- include ::Thrift::Struct
2907
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2614
2908
  SUCCESS = 0
2615
2909
  USEREXCEPTION = 1
2616
2910
  SYSTEMEXCEPTION = 2
2617
2911
  NOTFOUNDEXCEPTION = 3
2618
2912
 
2619
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2620
2913
  FIELDS = {
2621
2914
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2622
2915
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2629,14 +2922,14 @@ require 'note_store_types'
2629
2922
  def validate
2630
2923
  end
2631
2924
 
2925
+ ::Thrift::Struct.generate_accessors self
2632
2926
  end
2633
2927
 
2634
2928
  class GetNoteContent_args
2635
- include ::Thrift::Struct
2929
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2636
2930
  AUTHENTICATIONTOKEN = 1
2637
2931
  GUID = 2
2638
2932
 
2639
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2640
2933
  FIELDS = {
2641
2934
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2642
2935
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2647,16 +2940,16 @@ require 'note_store_types'
2647
2940
  def validate
2648
2941
  end
2649
2942
 
2943
+ ::Thrift::Struct.generate_accessors self
2650
2944
  end
2651
2945
 
2652
2946
  class GetNoteContent_result
2653
- include ::Thrift::Struct
2947
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2654
2948
  SUCCESS = 0
2655
2949
  USEREXCEPTION = 1
2656
2950
  SYSTEMEXCEPTION = 2
2657
2951
  NOTFOUNDEXCEPTION = 3
2658
2952
 
2659
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2660
2953
  FIELDS = {
2661
2954
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2662
2955
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2669,17 +2962,21 @@ require 'note_store_types'
2669
2962
  def validate
2670
2963
  end
2671
2964
 
2965
+ ::Thrift::Struct.generate_accessors self
2672
2966
  end
2673
2967
 
2674
2968
  class GetNoteSearchText_args
2675
- include ::Thrift::Struct
2969
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2676
2970
  AUTHENTICATIONTOKEN = 1
2677
2971
  GUID = 2
2972
+ NOTEONLY = 3
2973
+ TOKENIZEFORINDEXING = 4
2678
2974
 
2679
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2680
2975
  FIELDS = {
2681
2976
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2682
- GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
2977
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
2978
+ NOTEONLY => {:type => ::Thrift::Types::BOOL, :name => 'noteOnly'},
2979
+ TOKENIZEFORINDEXING => {:type => ::Thrift::Types::BOOL, :name => 'tokenizeForIndexing'}
2683
2980
  }
2684
2981
 
2685
2982
  def struct_fields; FIELDS; end
@@ -2687,16 +2984,56 @@ require 'note_store_types'
2687
2984
  def validate
2688
2985
  end
2689
2986
 
2987
+ ::Thrift::Struct.generate_accessors self
2690
2988
  end
2691
2989
 
2692
2990
  class GetNoteSearchText_result
2693
- include ::Thrift::Struct
2991
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2992
+ SUCCESS = 0
2993
+ USEREXCEPTION = 1
2994
+ SYSTEMEXCEPTION = 2
2995
+ NOTFOUNDEXCEPTION = 3
2996
+
2997
+ FIELDS = {
2998
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2999
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3000
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3001
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3002
+ }
3003
+
3004
+ def struct_fields; FIELDS; end
3005
+
3006
+ def validate
3007
+ end
3008
+
3009
+ ::Thrift::Struct.generate_accessors self
3010
+ end
3011
+
3012
+ class GetResourceSearchText_args
3013
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3014
+ AUTHENTICATIONTOKEN = 1
3015
+ GUID = 2
3016
+
3017
+ FIELDS = {
3018
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3019
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3020
+ }
3021
+
3022
+ def struct_fields; FIELDS; end
3023
+
3024
+ def validate
3025
+ end
3026
+
3027
+ ::Thrift::Struct.generate_accessors self
3028
+ end
3029
+
3030
+ class GetResourceSearchText_result
3031
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2694
3032
  SUCCESS = 0
2695
3033
  USEREXCEPTION = 1
2696
3034
  SYSTEMEXCEPTION = 2
2697
3035
  NOTFOUNDEXCEPTION = 3
2698
3036
 
2699
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2700
3037
  FIELDS = {
2701
3038
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2702
3039
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2709,14 +3046,14 @@ require 'note_store_types'
2709
3046
  def validate
2710
3047
  end
2711
3048
 
3049
+ ::Thrift::Struct.generate_accessors self
2712
3050
  end
2713
3051
 
2714
3052
  class GetNoteTagNames_args
2715
- include ::Thrift::Struct
3053
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2716
3054
  AUTHENTICATIONTOKEN = 1
2717
3055
  GUID = 2
2718
3056
 
2719
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2720
3057
  FIELDS = {
2721
3058
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2722
3059
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2727,16 +3064,16 @@ require 'note_store_types'
2727
3064
  def validate
2728
3065
  end
2729
3066
 
3067
+ ::Thrift::Struct.generate_accessors self
2730
3068
  end
2731
3069
 
2732
3070
  class GetNoteTagNames_result
2733
- include ::Thrift::Struct
3071
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2734
3072
  SUCCESS = 0
2735
3073
  USEREXCEPTION = 1
2736
3074
  SYSTEMEXCEPTION = 2
2737
3075
  NOTFOUNDEXCEPTION = 3
2738
3076
 
2739
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2740
3077
  FIELDS = {
2741
3078
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2742
3079
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2749,14 +3086,14 @@ require 'note_store_types'
2749
3086
  def validate
2750
3087
  end
2751
3088
 
3089
+ ::Thrift::Struct.generate_accessors self
2752
3090
  end
2753
3091
 
2754
3092
  class CreateNote_args
2755
- include ::Thrift::Struct
3093
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2756
3094
  AUTHENTICATIONTOKEN = 1
2757
3095
  NOTE = 2
2758
3096
 
2759
- ::Thrift::Struct.field_accessor self, :authenticationToken, :note
2760
3097
  FIELDS = {
2761
3098
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2762
3099
  NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note}
@@ -2767,16 +3104,16 @@ require 'note_store_types'
2767
3104
  def validate
2768
3105
  end
2769
3106
 
3107
+ ::Thrift::Struct.generate_accessors self
2770
3108
  end
2771
3109
 
2772
3110
  class CreateNote_result
2773
- include ::Thrift::Struct
3111
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2774
3112
  SUCCESS = 0
2775
3113
  USEREXCEPTION = 1
2776
3114
  SYSTEMEXCEPTION = 2
2777
3115
  NOTFOUNDEXCEPTION = 3
2778
3116
 
2779
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2780
3117
  FIELDS = {
2781
3118
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2782
3119
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2789,14 +3126,14 @@ require 'note_store_types'
2789
3126
  def validate
2790
3127
  end
2791
3128
 
3129
+ ::Thrift::Struct.generate_accessors self
2792
3130
  end
2793
3131
 
2794
3132
  class UpdateNote_args
2795
- include ::Thrift::Struct
3133
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2796
3134
  AUTHENTICATIONTOKEN = 1
2797
3135
  NOTE = 2
2798
3136
 
2799
- ::Thrift::Struct.field_accessor self, :authenticationToken, :note
2800
3137
  FIELDS = {
2801
3138
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2802
3139
  NOTE => {:type => ::Thrift::Types::STRUCT, :name => 'note', :class => Evernote::EDAM::Type::Note}
@@ -2807,16 +3144,16 @@ require 'note_store_types'
2807
3144
  def validate
2808
3145
  end
2809
3146
 
3147
+ ::Thrift::Struct.generate_accessors self
2810
3148
  end
2811
3149
 
2812
3150
  class UpdateNote_result
2813
- include ::Thrift::Struct
3151
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2814
3152
  SUCCESS = 0
2815
3153
  USEREXCEPTION = 1
2816
3154
  SYSTEMEXCEPTION = 2
2817
3155
  NOTFOUNDEXCEPTION = 3
2818
3156
 
2819
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2820
3157
  FIELDS = {
2821
3158
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2822
3159
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2829,14 +3166,54 @@ require 'note_store_types'
2829
3166
  def validate
2830
3167
  end
2831
3168
 
3169
+ ::Thrift::Struct.generate_accessors self
3170
+ end
3171
+
3172
+ class DeleteNote_args
3173
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3174
+ AUTHENTICATIONTOKEN = 1
3175
+ GUID = 2
3176
+
3177
+ FIELDS = {
3178
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3179
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3180
+ }
3181
+
3182
+ def struct_fields; FIELDS; end
3183
+
3184
+ def validate
3185
+ end
3186
+
3187
+ ::Thrift::Struct.generate_accessors self
3188
+ end
3189
+
3190
+ class DeleteNote_result
3191
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3192
+ SUCCESS = 0
3193
+ USEREXCEPTION = 1
3194
+ SYSTEMEXCEPTION = 2
3195
+ NOTFOUNDEXCEPTION = 3
3196
+
3197
+ FIELDS = {
3198
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3199
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3200
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3201
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3202
+ }
3203
+
3204
+ def struct_fields; FIELDS; end
3205
+
3206
+ def validate
3207
+ end
3208
+
3209
+ ::Thrift::Struct.generate_accessors self
2832
3210
  end
2833
3211
 
2834
3212
  class ExpungeNote_args
2835
- include ::Thrift::Struct
3213
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2836
3214
  AUTHENTICATIONTOKEN = 1
2837
3215
  GUID = 2
2838
3216
 
2839
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
2840
3217
  FIELDS = {
2841
3218
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2842
3219
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -2847,16 +3224,16 @@ require 'note_store_types'
2847
3224
  def validate
2848
3225
  end
2849
3226
 
3227
+ ::Thrift::Struct.generate_accessors self
2850
3228
  end
2851
3229
 
2852
3230
  class ExpungeNote_result
2853
- include ::Thrift::Struct
3231
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2854
3232
  SUCCESS = 0
2855
3233
  USEREXCEPTION = 1
2856
3234
  SYSTEMEXCEPTION = 2
2857
3235
  NOTFOUNDEXCEPTION = 3
2858
3236
 
2859
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2860
3237
  FIELDS = {
2861
3238
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2862
3239
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2869,14 +3246,14 @@ require 'note_store_types'
2869
3246
  def validate
2870
3247
  end
2871
3248
 
3249
+ ::Thrift::Struct.generate_accessors self
2872
3250
  end
2873
3251
 
2874
3252
  class ExpungeNotes_args
2875
- include ::Thrift::Struct
3253
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2876
3254
  AUTHENTICATIONTOKEN = 1
2877
3255
  NOTEGUIDS = 2
2878
3256
 
2879
- ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuids
2880
3257
  FIELDS = {
2881
3258
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2882
3259
  NOTEGUIDS => {:type => ::Thrift::Types::LIST, :name => 'noteGuids', :element => {:type => ::Thrift::Types::STRING}}
@@ -2887,16 +3264,16 @@ require 'note_store_types'
2887
3264
  def validate
2888
3265
  end
2889
3266
 
3267
+ ::Thrift::Struct.generate_accessors self
2890
3268
  end
2891
3269
 
2892
3270
  class ExpungeNotes_result
2893
- include ::Thrift::Struct
3271
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2894
3272
  SUCCESS = 0
2895
3273
  USEREXCEPTION = 1
2896
3274
  SYSTEMEXCEPTION = 2
2897
3275
  NOTFOUNDEXCEPTION = 3
2898
3276
 
2899
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2900
3277
  FIELDS = {
2901
3278
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2902
3279
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2909,13 +3286,13 @@ require 'note_store_types'
2909
3286
  def validate
2910
3287
  end
2911
3288
 
3289
+ ::Thrift::Struct.generate_accessors self
2912
3290
  end
2913
3291
 
2914
3292
  class ExpungeInactiveNotes_args
2915
- include ::Thrift::Struct
3293
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2916
3294
  AUTHENTICATIONTOKEN = 1
2917
3295
 
2918
- ::Thrift::Struct.field_accessor self, :authenticationToken
2919
3296
  FIELDS = {
2920
3297
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
2921
3298
  }
@@ -2925,15 +3302,15 @@ require 'note_store_types'
2925
3302
  def validate
2926
3303
  end
2927
3304
 
3305
+ ::Thrift::Struct.generate_accessors self
2928
3306
  end
2929
3307
 
2930
3308
  class ExpungeInactiveNotes_result
2931
- include ::Thrift::Struct
3309
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2932
3310
  SUCCESS = 0
2933
3311
  USEREXCEPTION = 1
2934
3312
  SYSTEMEXCEPTION = 2
2935
3313
 
2936
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
2937
3314
  FIELDS = {
2938
3315
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2939
3316
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2945,15 +3322,15 @@ require 'note_store_types'
2945
3322
  def validate
2946
3323
  end
2947
3324
 
3325
+ ::Thrift::Struct.generate_accessors self
2948
3326
  end
2949
3327
 
2950
3328
  class CopyNote_args
2951
- include ::Thrift::Struct
3329
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2952
3330
  AUTHENTICATIONTOKEN = 1
2953
3331
  NOTEGUID = 2
2954
3332
  TONOTEBOOKGUID = 3
2955
3333
 
2956
- ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuid, :toNotebookGuid
2957
3334
  FIELDS = {
2958
3335
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
2959
3336
  NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'},
@@ -2965,16 +3342,104 @@ require 'note_store_types'
2965
3342
  def validate
2966
3343
  end
2967
3344
 
3345
+ ::Thrift::Struct.generate_accessors self
2968
3346
  end
2969
3347
 
2970
3348
  class CopyNote_result
2971
- include ::Thrift::Struct
3349
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3350
+ SUCCESS = 0
3351
+ USEREXCEPTION = 1
3352
+ SYSTEMEXCEPTION = 2
3353
+ NOTFOUNDEXCEPTION = 3
3354
+
3355
+ FIELDS = {
3356
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
3357
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3358
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3359
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3360
+ }
3361
+
3362
+ def struct_fields; FIELDS; end
3363
+
3364
+ def validate
3365
+ end
3366
+
3367
+ ::Thrift::Struct.generate_accessors self
3368
+ end
3369
+
3370
+ class ListNoteVersions_args
3371
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3372
+ AUTHENTICATIONTOKEN = 1
3373
+ NOTEGUID = 2
3374
+
3375
+ FIELDS = {
3376
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3377
+ NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'}
3378
+ }
3379
+
3380
+ def struct_fields; FIELDS; end
3381
+
3382
+ def validate
3383
+ end
3384
+
3385
+ ::Thrift::Struct.generate_accessors self
3386
+ end
3387
+
3388
+ class ListNoteVersions_result
3389
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3390
+ SUCCESS = 0
3391
+ USEREXCEPTION = 1
3392
+ SYSTEMEXCEPTION = 2
3393
+ NOTFOUNDEXCEPTION = 3
3394
+
3395
+ FIELDS = {
3396
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::NoteStore::NoteVersionId}},
3397
+ USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3398
+ SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3399
+ NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
3400
+ }
3401
+
3402
+ def struct_fields; FIELDS; end
3403
+
3404
+ def validate
3405
+ end
3406
+
3407
+ ::Thrift::Struct.generate_accessors self
3408
+ end
3409
+
3410
+ class GetNoteVersion_args
3411
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3412
+ AUTHENTICATIONTOKEN = 1
3413
+ NOTEGUID = 2
3414
+ UPDATESEQUENCENUM = 3
3415
+ WITHRESOURCESDATA = 4
3416
+ WITHRESOURCESRECOGNITION = 5
3417
+ WITHRESOURCESALTERNATEDATA = 6
3418
+
3419
+ FIELDS = {
3420
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3421
+ NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'},
3422
+ UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum'},
3423
+ WITHRESOURCESDATA => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesData'},
3424
+ WITHRESOURCESRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesRecognition'},
3425
+ WITHRESOURCESALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withResourcesAlternateData'}
3426
+ }
3427
+
3428
+ def struct_fields; FIELDS; end
3429
+
3430
+ def validate
3431
+ end
3432
+
3433
+ ::Thrift::Struct.generate_accessors self
3434
+ end
3435
+
3436
+ class GetNoteVersion_result
3437
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2972
3438
  SUCCESS = 0
2973
3439
  USEREXCEPTION = 1
2974
3440
  SYSTEMEXCEPTION = 2
2975
3441
  NOTFOUNDEXCEPTION = 3
2976
3442
 
2977
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
2978
3443
  FIELDS = {
2979
3444
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Note},
2980
3445
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -2987,10 +3452,11 @@ require 'note_store_types'
2987
3452
  def validate
2988
3453
  end
2989
3454
 
3455
+ ::Thrift::Struct.generate_accessors self
2990
3456
  end
2991
3457
 
2992
3458
  class GetResource_args
2993
- include ::Thrift::Struct
3459
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2994
3460
  AUTHENTICATIONTOKEN = 1
2995
3461
  GUID = 2
2996
3462
  WITHDATA = 3
@@ -2998,7 +3464,6 @@ require 'note_store_types'
2998
3464
  WITHATTRIBUTES = 5
2999
3465
  WITHALTERNATEDATA = 6
3000
3466
 
3001
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid, :withData, :withRecognition, :withAttributes, :withAlternateData
3002
3467
  FIELDS = {
3003
3468
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3004
3469
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'},
@@ -3013,16 +3478,16 @@ require 'note_store_types'
3013
3478
  def validate
3014
3479
  end
3015
3480
 
3481
+ ::Thrift::Struct.generate_accessors self
3016
3482
  end
3017
3483
 
3018
3484
  class GetResource_result
3019
- include ::Thrift::Struct
3485
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3020
3486
  SUCCESS = 0
3021
3487
  USEREXCEPTION = 1
3022
3488
  SYSTEMEXCEPTION = 2
3023
3489
  NOTFOUNDEXCEPTION = 3
3024
3490
 
3025
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3026
3491
  FIELDS = {
3027
3492
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Resource},
3028
3493
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3035,14 +3500,14 @@ require 'note_store_types'
3035
3500
  def validate
3036
3501
  end
3037
3502
 
3503
+ ::Thrift::Struct.generate_accessors self
3038
3504
  end
3039
3505
 
3040
3506
  class UpdateResource_args
3041
- include ::Thrift::Struct
3507
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3042
3508
  AUTHENTICATIONTOKEN = 1
3043
3509
  RESOURCE = 2
3044
3510
 
3045
- ::Thrift::Struct.field_accessor self, :authenticationToken, :resource
3046
3511
  FIELDS = {
3047
3512
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3048
3513
  RESOURCE => {:type => ::Thrift::Types::STRUCT, :name => 'resource', :class => Evernote::EDAM::Type::Resource}
@@ -3053,16 +3518,16 @@ require 'note_store_types'
3053
3518
  def validate
3054
3519
  end
3055
3520
 
3521
+ ::Thrift::Struct.generate_accessors self
3056
3522
  end
3057
3523
 
3058
3524
  class UpdateResource_result
3059
- include ::Thrift::Struct
3525
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3060
3526
  SUCCESS = 0
3061
3527
  USEREXCEPTION = 1
3062
3528
  SYSTEMEXCEPTION = 2
3063
3529
  NOTFOUNDEXCEPTION = 3
3064
3530
 
3065
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3066
3531
  FIELDS = {
3067
3532
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3068
3533
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3075,14 +3540,14 @@ require 'note_store_types'
3075
3540
  def validate
3076
3541
  end
3077
3542
 
3543
+ ::Thrift::Struct.generate_accessors self
3078
3544
  end
3079
3545
 
3080
3546
  class GetResourceData_args
3081
- include ::Thrift::Struct
3547
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3082
3548
  AUTHENTICATIONTOKEN = 1
3083
3549
  GUID = 2
3084
3550
 
3085
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3086
3551
  FIELDS = {
3087
3552
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3088
3553
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -3093,18 +3558,18 @@ require 'note_store_types'
3093
3558
  def validate
3094
3559
  end
3095
3560
 
3561
+ ::Thrift::Struct.generate_accessors self
3096
3562
  end
3097
3563
 
3098
3564
  class GetResourceData_result
3099
- include ::Thrift::Struct
3565
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3100
3566
  SUCCESS = 0
3101
3567
  USEREXCEPTION = 1
3102
3568
  SYSTEMEXCEPTION = 2
3103
3569
  NOTFOUNDEXCEPTION = 3
3104
3570
 
3105
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3106
3571
  FIELDS = {
3107
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3572
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true},
3108
3573
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3109
3574
  SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3110
3575
  NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
@@ -3115,10 +3580,11 @@ require 'note_store_types'
3115
3580
  def validate
3116
3581
  end
3117
3582
 
3583
+ ::Thrift::Struct.generate_accessors self
3118
3584
  end
3119
3585
 
3120
3586
  class GetResourceByHash_args
3121
- include ::Thrift::Struct
3587
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3122
3588
  AUTHENTICATIONTOKEN = 1
3123
3589
  NOTEGUID = 2
3124
3590
  CONTENTHASH = 3
@@ -3126,11 +3592,10 @@ require 'note_store_types'
3126
3592
  WITHRECOGNITION = 5
3127
3593
  WITHALTERNATEDATA = 6
3128
3594
 
3129
- ::Thrift::Struct.field_accessor self, :authenticationToken, :noteGuid, :contentHash, :withData, :withRecognition, :withAlternateData
3130
3595
  FIELDS = {
3131
3596
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3132
3597
  NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid'},
3133
- CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash'},
3598
+ CONTENTHASH => {:type => ::Thrift::Types::STRING, :name => 'contentHash', :binary => true},
3134
3599
  WITHDATA => {:type => ::Thrift::Types::BOOL, :name => 'withData'},
3135
3600
  WITHRECOGNITION => {:type => ::Thrift::Types::BOOL, :name => 'withRecognition'},
3136
3601
  WITHALTERNATEDATA => {:type => ::Thrift::Types::BOOL, :name => 'withAlternateData'}
@@ -3141,16 +3606,16 @@ require 'note_store_types'
3141
3606
  def validate
3142
3607
  end
3143
3608
 
3609
+ ::Thrift::Struct.generate_accessors self
3144
3610
  end
3145
3611
 
3146
3612
  class GetResourceByHash_result
3147
- include ::Thrift::Struct
3613
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3148
3614
  SUCCESS = 0
3149
3615
  USEREXCEPTION = 1
3150
3616
  SYSTEMEXCEPTION = 2
3151
3617
  NOTFOUNDEXCEPTION = 3
3152
3618
 
3153
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3154
3619
  FIELDS = {
3155
3620
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Resource},
3156
3621
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3163,14 +3628,14 @@ require 'note_store_types'
3163
3628
  def validate
3164
3629
  end
3165
3630
 
3631
+ ::Thrift::Struct.generate_accessors self
3166
3632
  end
3167
3633
 
3168
3634
  class GetResourceRecognition_args
3169
- include ::Thrift::Struct
3635
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3170
3636
  AUTHENTICATIONTOKEN = 1
3171
3637
  GUID = 2
3172
3638
 
3173
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3174
3639
  FIELDS = {
3175
3640
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3176
3641
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -3181,18 +3646,18 @@ require 'note_store_types'
3181
3646
  def validate
3182
3647
  end
3183
3648
 
3649
+ ::Thrift::Struct.generate_accessors self
3184
3650
  end
3185
3651
 
3186
3652
  class GetResourceRecognition_result
3187
- include ::Thrift::Struct
3653
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3188
3654
  SUCCESS = 0
3189
3655
  USEREXCEPTION = 1
3190
3656
  SYSTEMEXCEPTION = 2
3191
3657
  NOTFOUNDEXCEPTION = 3
3192
3658
 
3193
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3194
3659
  FIELDS = {
3195
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3660
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true},
3196
3661
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3197
3662
  SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3198
3663
  NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
@@ -3203,14 +3668,14 @@ require 'note_store_types'
3203
3668
  def validate
3204
3669
  end
3205
3670
 
3671
+ ::Thrift::Struct.generate_accessors self
3206
3672
  end
3207
3673
 
3208
3674
  class GetResourceAlternateData_args
3209
- include ::Thrift::Struct
3675
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3210
3676
  AUTHENTICATIONTOKEN = 1
3211
3677
  GUID = 2
3212
3678
 
3213
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3214
3679
  FIELDS = {
3215
3680
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3216
3681
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -3221,18 +3686,18 @@ require 'note_store_types'
3221
3686
  def validate
3222
3687
  end
3223
3688
 
3689
+ ::Thrift::Struct.generate_accessors self
3224
3690
  end
3225
3691
 
3226
3692
  class GetResourceAlternateData_result
3227
- include ::Thrift::Struct
3693
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3228
3694
  SUCCESS = 0
3229
3695
  USEREXCEPTION = 1
3230
3696
  SYSTEMEXCEPTION = 2
3231
3697
  NOTFOUNDEXCEPTION = 3
3232
3698
 
3233
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3234
3699
  FIELDS = {
3235
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3700
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true},
3236
3701
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3237
3702
  SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
3238
3703
  NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}
@@ -3243,14 +3708,14 @@ require 'note_store_types'
3243
3708
  def validate
3244
3709
  end
3245
3710
 
3711
+ ::Thrift::Struct.generate_accessors self
3246
3712
  end
3247
3713
 
3248
3714
  class GetResourceAttributes_args
3249
- include ::Thrift::Struct
3715
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3250
3716
  AUTHENTICATIONTOKEN = 1
3251
3717
  GUID = 2
3252
3718
 
3253
- ::Thrift::Struct.field_accessor self, :authenticationToken, :guid
3254
3719
  FIELDS = {
3255
3720
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3256
3721
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
@@ -3261,16 +3726,16 @@ require 'note_store_types'
3261
3726
  def validate
3262
3727
  end
3263
3728
 
3729
+ ::Thrift::Struct.generate_accessors self
3264
3730
  end
3265
3731
 
3266
3732
  class GetResourceAttributes_result
3267
- include ::Thrift::Struct
3733
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3268
3734
  SUCCESS = 0
3269
3735
  USEREXCEPTION = 1
3270
3736
  SYSTEMEXCEPTION = 2
3271
3737
  NOTFOUNDEXCEPTION = 3
3272
3738
 
3273
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException, :notFoundException
3274
3739
  FIELDS = {
3275
3740
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::ResourceAttributes},
3276
3741
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3283,13 +3748,13 @@ require 'note_store_types'
3283
3748
  def validate
3284
3749
  end
3285
3750
 
3751
+ ::Thrift::Struct.generate_accessors self
3286
3752
  end
3287
3753
 
3288
3754
  class GetAccountSize_args
3289
- include ::Thrift::Struct
3755
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3290
3756
  AUTHENTICATIONTOKEN = 1
3291
3757
 
3292
- ::Thrift::Struct.field_accessor self, :authenticationToken
3293
3758
  FIELDS = {
3294
3759
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3295
3760
  }
@@ -3299,15 +3764,15 @@ require 'note_store_types'
3299
3764
  def validate
3300
3765
  end
3301
3766
 
3767
+ ::Thrift::Struct.generate_accessors self
3302
3768
  end
3303
3769
 
3304
3770
  class GetAccountSize_result
3305
- include ::Thrift::Struct
3771
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3306
3772
  SUCCESS = 0
3307
3773
  USEREXCEPTION = 1
3308
3774
  SYSTEMEXCEPTION = 2
3309
3775
 
3310
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
3311
3776
  FIELDS = {
3312
3777
  SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
3313
3778
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3319,14 +3784,14 @@ require 'note_store_types'
3319
3784
  def validate
3320
3785
  end
3321
3786
 
3787
+ ::Thrift::Struct.generate_accessors self
3322
3788
  end
3323
3789
 
3324
3790
  class GetAds_args
3325
- include ::Thrift::Struct
3791
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3326
3792
  AUTHENTICATIONTOKEN = 1
3327
3793
  ADPARAMETERS = 2
3328
3794
 
3329
- ::Thrift::Struct.field_accessor self, :authenticationToken, :adParameters
3330
3795
  FIELDS = {
3331
3796
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3332
3797
  ADPARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'adParameters', :class => Evernote::EDAM::NoteStore::AdParameters}
@@ -3337,15 +3802,15 @@ require 'note_store_types'
3337
3802
  def validate
3338
3803
  end
3339
3804
 
3805
+ ::Thrift::Struct.generate_accessors self
3340
3806
  end
3341
3807
 
3342
3808
  class GetAds_result
3343
- include ::Thrift::Struct
3809
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3344
3810
  SUCCESS = 0
3345
3811
  USEREXCEPTION = 1
3346
3812
  SYSTEMEXCEPTION = 2
3347
3813
 
3348
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
3349
3814
  FIELDS = {
3350
3815
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::Ad}},
3351
3816
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3357,14 +3822,14 @@ require 'note_store_types'
3357
3822
  def validate
3358
3823
  end
3359
3824
 
3825
+ ::Thrift::Struct.generate_accessors self
3360
3826
  end
3361
3827
 
3362
3828
  class GetRandomAd_args
3363
- include ::Thrift::Struct
3829
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3364
3830
  AUTHENTICATIONTOKEN = 1
3365
3831
  ADPARAMETERS = 2
3366
3832
 
3367
- ::Thrift::Struct.field_accessor self, :authenticationToken, :adParameters
3368
3833
  FIELDS = {
3369
3834
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3370
3835
  ADPARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'adParameters', :class => Evernote::EDAM::NoteStore::AdParameters}
@@ -3375,15 +3840,15 @@ require 'note_store_types'
3375
3840
  def validate
3376
3841
  end
3377
3842
 
3843
+ ::Thrift::Struct.generate_accessors self
3378
3844
  end
3379
3845
 
3380
3846
  class GetRandomAd_result
3381
- include ::Thrift::Struct
3847
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3382
3848
  SUCCESS = 0
3383
3849
  USEREXCEPTION = 1
3384
3850
  SYSTEMEXCEPTION = 2
3385
3851
 
3386
- ::Thrift::Struct.field_accessor self, :success, :userException, :systemException
3387
3852
  FIELDS = {
3388
3853
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Ad},
3389
3854
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3395,14 +3860,14 @@ require 'note_store_types'
3395
3860
  def validate
3396
3861
  end
3397
3862
 
3863
+ ::Thrift::Struct.generate_accessors self
3398
3864
  end
3399
3865
 
3400
3866
  class GetPublicNotebook_args
3401
- include ::Thrift::Struct
3867
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3402
3868
  USERID = 1
3403
3869
  PUBLICURI = 2
3404
3870
 
3405
- ::Thrift::Struct.field_accessor self, :userId, :publicUri
3406
3871
  FIELDS = {
3407
3872
  USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
3408
3873
  PUBLICURI => {:type => ::Thrift::Types::STRING, :name => 'publicUri'}
@@ -3413,15 +3878,15 @@ require 'note_store_types'
3413
3878
  def validate
3414
3879
  end
3415
3880
 
3881
+ ::Thrift::Struct.generate_accessors self
3416
3882
  end
3417
3883
 
3418
3884
  class GetPublicNotebook_result
3419
- include ::Thrift::Struct
3885
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3420
3886
  SUCCESS = 0
3421
3887
  SYSTEMEXCEPTION = 1
3422
3888
  NOTFOUNDEXCEPTION = 2
3423
3889
 
3424
- ::Thrift::Struct.field_accessor self, :success, :systemException, :notFoundException
3425
3890
  FIELDS = {
3426
3891
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::Notebook},
3427
3892
  SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException},
@@ -3433,14 +3898,14 @@ require 'note_store_types'
3433
3898
  def validate
3434
3899
  end
3435
3900
 
3901
+ ::Thrift::Struct.generate_accessors self
3436
3902
  end
3437
3903
 
3438
3904
  class CreateSharedNotebook_args
3439
- include ::Thrift::Struct
3905
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3440
3906
  AUTHENTICATIONTOKEN = 1
3441
3907
  SHAREDNOTEBOOK = 2
3442
3908
 
3443
- ::Thrift::Struct.field_accessor self, :authenticationToken, :sharedNotebook
3444
3909
  FIELDS = {
3445
3910
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3446
3911
  SHAREDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'sharedNotebook', :class => Evernote::EDAM::Type::SharedNotebook}
@@ -3451,16 +3916,16 @@ require 'note_store_types'
3451
3916
  def validate
3452
3917
  end
3453
3918
 
3919
+ ::Thrift::Struct.generate_accessors self
3454
3920
  end
3455
3921
 
3456
3922
  class CreateSharedNotebook_result
3457
- include ::Thrift::Struct
3923
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3458
3924
  SUCCESS = 0
3459
3925
  USEREXCEPTION = 1
3460
3926
  NOTFOUNDEXCEPTION = 2
3461
3927
  SYSTEMEXCEPTION = 3
3462
3928
 
3463
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3464
3929
  FIELDS = {
3465
3930
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SharedNotebook},
3466
3931
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3473,13 +3938,13 @@ require 'note_store_types'
3473
3938
  def validate
3474
3939
  end
3475
3940
 
3941
+ ::Thrift::Struct.generate_accessors self
3476
3942
  end
3477
3943
 
3478
3944
  class ListSharedNotebooks_args
3479
- include ::Thrift::Struct
3945
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3480
3946
  AUTHENTICATIONTOKEN = 1
3481
3947
 
3482
- ::Thrift::Struct.field_accessor self, :authenticationToken
3483
3948
  FIELDS = {
3484
3949
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3485
3950
  }
@@ -3489,16 +3954,16 @@ require 'note_store_types'
3489
3954
  def validate
3490
3955
  end
3491
3956
 
3957
+ ::Thrift::Struct.generate_accessors self
3492
3958
  end
3493
3959
 
3494
3960
  class ListSharedNotebooks_result
3495
- include ::Thrift::Struct
3961
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3496
3962
  SUCCESS = 0
3497
3963
  USEREXCEPTION = 1
3498
3964
  NOTFOUNDEXCEPTION = 2
3499
3965
  SYSTEMEXCEPTION = 3
3500
3966
 
3501
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3502
3967
  FIELDS = {
3503
3968
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SharedNotebook}},
3504
3969
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3511,14 +3976,14 @@ require 'note_store_types'
3511
3976
  def validate
3512
3977
  end
3513
3978
 
3979
+ ::Thrift::Struct.generate_accessors self
3514
3980
  end
3515
3981
 
3516
3982
  class ExpungeSharedNotebooks_args
3517
- include ::Thrift::Struct
3983
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3518
3984
  AUTHENTICATIONTOKEN = 1
3519
3985
  SHAREDNOTEBOOKIDS = 2
3520
3986
 
3521
- ::Thrift::Struct.field_accessor self, :authenticationToken, :sharedNotebookIds
3522
3987
  FIELDS = {
3523
3988
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3524
3989
  SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}}
@@ -3529,16 +3994,16 @@ require 'note_store_types'
3529
3994
  def validate
3530
3995
  end
3531
3996
 
3997
+ ::Thrift::Struct.generate_accessors self
3532
3998
  end
3533
3999
 
3534
4000
  class ExpungeSharedNotebooks_result
3535
- include ::Thrift::Struct
4001
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3536
4002
  SUCCESS = 0
3537
4003
  USEREXCEPTION = 1
3538
4004
  NOTFOUNDEXCEPTION = 2
3539
4005
  SYSTEMEXCEPTION = 3
3540
4006
 
3541
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3542
4007
  FIELDS = {
3543
4008
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3544
4009
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3551,14 +4016,14 @@ require 'note_store_types'
3551
4016
  def validate
3552
4017
  end
3553
4018
 
4019
+ ::Thrift::Struct.generate_accessors self
3554
4020
  end
3555
4021
 
3556
4022
  class CreateLinkedNotebook_args
3557
- include ::Thrift::Struct
4023
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3558
4024
  AUTHENTICATIONTOKEN = 1
3559
4025
  LINKEDNOTEBOOK = 2
3560
4026
 
3561
- ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebook
3562
4027
  FIELDS = {
3563
4028
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3564
4029
  LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook}
@@ -3569,16 +4034,16 @@ require 'note_store_types'
3569
4034
  def validate
3570
4035
  end
3571
4036
 
4037
+ ::Thrift::Struct.generate_accessors self
3572
4038
  end
3573
4039
 
3574
4040
  class CreateLinkedNotebook_result
3575
- include ::Thrift::Struct
4041
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3576
4042
  SUCCESS = 0
3577
4043
  USEREXCEPTION = 1
3578
4044
  NOTFOUNDEXCEPTION = 2
3579
4045
  SYSTEMEXCEPTION = 3
3580
4046
 
3581
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3582
4047
  FIELDS = {
3583
4048
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LinkedNotebook},
3584
4049
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3591,14 +4056,14 @@ require 'note_store_types'
3591
4056
  def validate
3592
4057
  end
3593
4058
 
4059
+ ::Thrift::Struct.generate_accessors self
3594
4060
  end
3595
4061
 
3596
4062
  class UpdateLinkedNotebook_args
3597
- include ::Thrift::Struct
4063
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3598
4064
  AUTHENTICATIONTOKEN = 1
3599
4065
  LINKEDNOTEBOOK = 2
3600
4066
 
3601
- ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebook
3602
4067
  FIELDS = {
3603
4068
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3604
4069
  LINKEDNOTEBOOK => {:type => ::Thrift::Types::STRUCT, :name => 'linkedNotebook', :class => Evernote::EDAM::Type::LinkedNotebook}
@@ -3609,18 +4074,18 @@ require 'note_store_types'
3609
4074
  def validate
3610
4075
  end
3611
4076
 
4077
+ ::Thrift::Struct.generate_accessors self
3612
4078
  end
3613
4079
 
3614
4080
  class UpdateLinkedNotebook_result
3615
- include ::Thrift::Struct
4081
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3616
4082
  SUCCESS = 0
3617
4083
  USEREXCEPTION = 1
3618
4084
  NOTFOUNDEXCEPTION = 2
3619
4085
  SYSTEMEXCEPTION = 3
3620
4086
 
3621
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3622
4087
  FIELDS = {
3623
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::LinkedNotebook},
4088
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3624
4089
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3625
4090
  NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
3626
4091
  SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}
@@ -3631,13 +4096,13 @@ require 'note_store_types'
3631
4096
  def validate
3632
4097
  end
3633
4098
 
4099
+ ::Thrift::Struct.generate_accessors self
3634
4100
  end
3635
4101
 
3636
4102
  class ListLinkedNotebooks_args
3637
- include ::Thrift::Struct
4103
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3638
4104
  AUTHENTICATIONTOKEN = 1
3639
4105
 
3640
- ::Thrift::Struct.field_accessor self, :authenticationToken
3641
4106
  FIELDS = {
3642
4107
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3643
4108
  }
@@ -3647,16 +4112,16 @@ require 'note_store_types'
3647
4112
  def validate
3648
4113
  end
3649
4114
 
4115
+ ::Thrift::Struct.generate_accessors self
3650
4116
  end
3651
4117
 
3652
4118
  class ListLinkedNotebooks_result
3653
- include ::Thrift::Struct
4119
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3654
4120
  SUCCESS = 0
3655
4121
  USEREXCEPTION = 1
3656
4122
  NOTFOUNDEXCEPTION = 2
3657
4123
  SYSTEMEXCEPTION = 3
3658
4124
 
3659
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3660
4125
  FIELDS = {
3661
4126
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::LinkedNotebook}},
3662
4127
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3669,17 +4134,17 @@ require 'note_store_types'
3669
4134
  def validate
3670
4135
  end
3671
4136
 
4137
+ ::Thrift::Struct.generate_accessors self
3672
4138
  end
3673
4139
 
3674
4140
  class ExpungeLinkedNotebook_args
3675
- include ::Thrift::Struct
4141
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3676
4142
  AUTHENTICATIONTOKEN = 1
3677
- LINKEDNOTEBOOKID = 2
4143
+ GUID = 2
3678
4144
 
3679
- ::Thrift::Struct.field_accessor self, :authenticationToken, :linkedNotebookId
3680
4145
  FIELDS = {
3681
4146
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3682
- LINKEDNOTEBOOKID => {:type => ::Thrift::Types::I64, :name => 'linkedNotebookId'}
4147
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}
3683
4148
  }
3684
4149
 
3685
4150
  def struct_fields; FIELDS; end
@@ -3687,16 +4152,16 @@ require 'note_store_types'
3687
4152
  def validate
3688
4153
  end
3689
4154
 
4155
+ ::Thrift::Struct.generate_accessors self
3690
4156
  end
3691
4157
 
3692
4158
  class ExpungeLinkedNotebook_result
3693
- include ::Thrift::Struct
4159
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3694
4160
  SUCCESS = 0
3695
4161
  USEREXCEPTION = 1
3696
4162
  NOTFOUNDEXCEPTION = 2
3697
4163
  SYSTEMEXCEPTION = 3
3698
4164
 
3699
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3700
4165
  FIELDS = {
3701
4166
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
3702
4167
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3709,14 +4174,14 @@ require 'note_store_types'
3709
4174
  def validate
3710
4175
  end
3711
4176
 
4177
+ ::Thrift::Struct.generate_accessors self
3712
4178
  end
3713
4179
 
3714
4180
  class AuthenticateToSharedNotebook_args
3715
- include ::Thrift::Struct
4181
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3716
4182
  SHAREKEY = 1
3717
4183
  AUTHENTICATIONTOKEN = 2
3718
4184
 
3719
- ::Thrift::Struct.field_accessor self, :shareKey, :authenticationToken
3720
4185
  FIELDS = {
3721
4186
  SHAREKEY => {:type => ::Thrift::Types::STRING, :name => 'shareKey'},
3722
4187
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
@@ -3727,16 +4192,16 @@ require 'note_store_types'
3727
4192
  def validate
3728
4193
  end
3729
4194
 
4195
+ ::Thrift::Struct.generate_accessors self
3730
4196
  end
3731
4197
 
3732
4198
  class AuthenticateToSharedNotebook_result
3733
- include ::Thrift::Struct
4199
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3734
4200
  SUCCESS = 0
3735
4201
  USEREXCEPTION = 1
3736
4202
  NOTFOUNDEXCEPTION = 2
3737
4203
  SYSTEMEXCEPTION = 3
3738
4204
 
3739
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3740
4205
  FIELDS = {
3741
4206
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
3742
4207
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3749,13 +4214,13 @@ require 'note_store_types'
3749
4214
  def validate
3750
4215
  end
3751
4216
 
4217
+ ::Thrift::Struct.generate_accessors self
3752
4218
  end
3753
4219
 
3754
4220
  class GetSharedNotebookByAuth_args
3755
- include ::Thrift::Struct
4221
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3756
4222
  AUTHENTICATIONTOKEN = 1
3757
4223
 
3758
- ::Thrift::Struct.field_accessor self, :authenticationToken
3759
4224
  FIELDS = {
3760
4225
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
3761
4226
  }
@@ -3765,16 +4230,16 @@ require 'note_store_types'
3765
4230
  def validate
3766
4231
  end
3767
4232
 
4233
+ ::Thrift::Struct.generate_accessors self
3768
4234
  end
3769
4235
 
3770
4236
  class GetSharedNotebookByAuth_result
3771
- include ::Thrift::Struct
4237
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3772
4238
  SUCCESS = 0
3773
4239
  USEREXCEPTION = 1
3774
4240
  NOTFOUNDEXCEPTION = 2
3775
4241
  SYSTEMEXCEPTION = 3
3776
4242
 
3777
- ::Thrift::Struct.field_accessor self, :success, :userException, :notFoundException, :systemException
3778
4243
  FIELDS = {
3779
4244
  SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::SharedNotebook},
3780
4245
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
@@ -3787,14 +4252,14 @@ require 'note_store_types'
3787
4252
  def validate
3788
4253
  end
3789
4254
 
4255
+ ::Thrift::Struct.generate_accessors self
3790
4256
  end
3791
4257
 
3792
4258
  class EmailNote_args
3793
- include ::Thrift::Struct
4259
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3794
4260
  AUTHENTICATIONTOKEN = 1
3795
4261
  PARAMETERS = 2
3796
4262
 
3797
- ::Thrift::Struct.field_accessor self, :authenticationToken, :parameters
3798
4263
  FIELDS = {
3799
4264
  AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
3800
4265
  PARAMETERS => {:type => ::Thrift::Types::STRUCT, :name => 'parameters', :class => Evernote::EDAM::NoteStore::NoteEmailParameters}
@@ -3805,15 +4270,15 @@ require 'note_store_types'
3805
4270
  def validate
3806
4271
  end
3807
4272
 
4273
+ ::Thrift::Struct.generate_accessors self
3808
4274
  end
3809
4275
 
3810
4276
  class EmailNote_result
3811
- include ::Thrift::Struct
4277
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3812
4278
  USEREXCEPTION = 1
3813
4279
  NOTFOUNDEXCEPTION = 2
3814
4280
  SYSTEMEXCEPTION = 3
3815
4281
 
3816
- ::Thrift::Struct.field_accessor self, :userException, :notFoundException, :systemException
3817
4282
  FIELDS = {
3818
4283
  USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
3819
4284
  NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
@@ -3825,6 +4290,7 @@ require 'note_store_types'
3825
4290
  def validate
3826
4291
  end
3827
4292
 
4293
+ ::Thrift::Struct.generate_accessors self
3828
4294
  end
3829
4295
 
3830
4296
  end