evernote-thrift 1.23.0 → 1.23.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,18 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.8.0)
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
6
6
 
7
+ require 'thrift'
7
8
  require 'user_store_types'
8
9
 
9
- module Evernote
10
- module EDAM
11
- module UserStore
12
- EDAM_VERSION_MAJOR = 1
10
+ module Evernote
11
+ module EDAM
12
+ module UserStore
13
+ EDAM_VERSION_MAJOR = 1
13
14
 
14
- EDAM_VERSION_MINOR = 23
15
+ EDAM_VERSION_MINOR = 23
15
16
 
16
17
  end
17
18
  end
@@ -1,9 +1,10 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.8.0)
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
6
6
 
7
+ require 'thrift'
7
8
  require 'types_types'
8
9
  require 'errors_types'
9
10
 
@@ -11,310 +12,310 @@ require 'errors_types'
11
12
  module Evernote
12
13
  module EDAM
13
14
  module UserStore
14
- # This structure is used to provide publicly-available user information
15
- # about a particular account.
16
- # <dl>
17
- # <dt>userId:</dt>
18
- # <dd>
19
- # The unique numeric user identifier for the user account.
20
- # </dd>
21
- # <dt>shardId:</dt>
22
- # <dd>
23
- # DEPRECATED - Client applications should have no need to use this field.
24
- # </dd>
25
- # <dt>privilege:</dt>
26
- # <dd>
27
- # The privilege level of the account, to determine whether
28
- # this is a Premium or Free account.
29
- # </dd>
30
- # <dt>noteStoreUrl:</dt>
31
- # <dd>
32
- # This field will contain the full URL that clients should use to make
33
- # NoteStore requests to the server shard that contains that user's data.
34
- # I.e. this is the URL that should be used to create the Thrift HTTP client
35
- # transport to send messages to the NoteStore service for the account.
36
- # </dd>
37
- # <dt>webApiUrlPrefix:</dt>
38
- # <dd>
39
- # This field will contain the initial part of the URLs that should be used
40
- # to make requests to Evernote's thin client "web API", which provide
41
- # optimized operations for clients that aren't capable of manipulating
42
- # the full contents of accounts via the full Thrift data model. Clients
43
- # should concatenate the relative path for the various servlets onto the
44
- # end of this string to construct the full URL, as documented on our
45
- # developer web site.
46
- # </dd>
47
- # </dl>
48
- class PublicUserInfo
49
- include ::Thrift::Struct, ::Thrift::Struct_Union
50
- USERID = 1
51
- SHARDID = 2
52
- PRIVILEGE = 3
53
- USERNAME = 4
54
- NOTESTOREURL = 5
55
- WEBAPIURLPREFIX = 6
15
+ # This structure is used to provide publicly-available user information
16
+ # about a particular account.
17
+ # <dl>
18
+ # <dt>userId:</dt>
19
+ # <dd>
20
+ # The unique numeric user identifier for the user account.
21
+ # </dd>
22
+ # <dt>shardId:</dt>
23
+ # <dd>
24
+ # DEPRECATED - Client applications should have no need to use this field.
25
+ # </dd>
26
+ # <dt>privilege:</dt>
27
+ # <dd>
28
+ # The privilege level of the account, to determine whether
29
+ # this is a Premium or Free account.
30
+ # </dd>
31
+ # <dt>noteStoreUrl:</dt>
32
+ # <dd>
33
+ # This field will contain the full URL that clients should use to make
34
+ # NoteStore requests to the server shard that contains that user's data.
35
+ # I.e. this is the URL that should be used to create the Thrift HTTP client
36
+ # transport to send messages to the NoteStore service for the account.
37
+ # </dd>
38
+ # <dt>webApiUrlPrefix:</dt>
39
+ # <dd>
40
+ # This field will contain the initial part of the URLs that should be used
41
+ # to make requests to Evernote's thin client "web API", which provide
42
+ # optimized operations for clients that aren't capable of manipulating
43
+ # the full contents of accounts via the full Thrift data model. Clients
44
+ # should concatenate the relative path for the various servlets onto the
45
+ # end of this string to construct the full URL, as documented on our
46
+ # developer web site.
47
+ # </dd>
48
+ # </dl>
49
+ class PublicUserInfo
50
+ include ::Thrift::Struct, ::Thrift::Struct_Union
51
+ USERID = 1
52
+ SHARDID = 2
53
+ PRIVILEGE = 3
54
+ USERNAME = 4
55
+ NOTESTOREURL = 5
56
+ WEBAPIURLPREFIX = 6
56
57
 
57
- FIELDS = {
58
- USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
59
- SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId'},
60
- PRIVILEGE => {:type => ::Thrift::Types::I32, :name => 'privilege', :optional => true, :enum_class => Evernote::EDAM::Type::PrivilegeLevel},
61
- USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true},
62
- NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true},
63
- WEBAPIURLPREFIX => {:type => ::Thrift::Types::STRING, :name => 'webApiUrlPrefix', :optional => true}
64
- }
58
+ FIELDS = {
59
+ USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
60
+ SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId'},
61
+ PRIVILEGE => {:type => ::Thrift::Types::I32, :name => 'privilege', :optional => true, :enum_class => ::Evernote::EDAM::Type::PrivilegeLevel},
62
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true},
63
+ NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true},
64
+ WEBAPIURLPREFIX => {:type => ::Thrift::Types::STRING, :name => 'webApiUrlPrefix', :optional => true}
65
+ }
65
66
 
66
- def struct_fields; FIELDS; end
67
+ def struct_fields; FIELDS; end
67
68
 
68
- def validate
69
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId
70
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field shardId is unset!') unless @shardId
71
- unless @privilege.nil? || Evernote::EDAM::Type::PrivilegeLevel::VALID_VALUES.include?(@privilege)
72
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field privilege!')
73
- end
74
- end
75
-
76
- ::Thrift::Struct.generate_accessors self
77
- end
78
-
79
- # When an authentication (or re-authentication) is performed, this structure
80
- # provides the result to the client.
81
- # <dl>
82
- # <dt>currentTime:</dt>
83
- # <dd>
84
- # The server-side date and time when this result was
85
- # generated.
86
- # </dd>
87
- # <dt>authenticationToken:</dt>
88
- # <dd>
89
- # Holds an opaque, ASCII-encoded token that can be
90
- # used by the client to perform actions on a NoteStore.
91
- # </dd>
92
- # <dt>expiration:</dt>
93
- # <dd>
94
- # Holds the server-side date and time when the
95
- # authentication token will expire.
96
- # This time can be compared to "currentTime" to produce an expiration
97
- # time that can be reconciled with the client's local clock.
98
- # </dd>
99
- # <dt>user:</dt>
100
- # <dd>
101
- # Holds the information about the account which was
102
- # authenticated if this was a full authentication. May be absent if this
103
- # particular authentication did not require user information.
104
- # </dd>
105
- # <dt>publicUserInfo:</dt>
106
- # <dd>
107
- # If this authentication result was achieved without full permissions to
108
- # access the full User structure, this field may be set to give back
109
- # a more limited public set of data.
110
- # </dd>
111
- # <dt>noteStoreUrl:</dt>
112
- # <dd>
113
- # This field will contain the full URL that clients should use to make
114
- # NoteStore requests to the server shard that contains that user's data.
115
- # I.e. this is the URL that should be used to create the Thrift HTTP client
116
- # transport to send messages to the NoteStore service for the account.
117
- # </dd>
118
- # <dt>webApiUrlPrefix:</dt>
119
- # <dd>
120
- # This field will contain the initial part of the URLs that should be used
121
- # to make requests to Evernote's thin client "web API", which provide
122
- # optimized operations for clients that aren't capable of manipulating
123
- # the full contents of accounts via the full Thrift data model. Clients
124
- # should concatenate the relative path for the various servlets onto the
125
- # end of this string to construct the full URL, as documented on our
126
- # developer web site.
127
- # </dd>
128
- # </dl>
129
- class AuthenticationResult
130
- include ::Thrift::Struct, ::Thrift::Struct_Union
131
- CURRENTTIME = 1
132
- AUTHENTICATIONTOKEN = 2
133
- EXPIRATION = 3
134
- USER = 4
135
- PUBLICUSERINFO = 5
136
- NOTESTOREURL = 6
137
- WEBAPIURLPREFIX = 7
69
+ def validate
70
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId
71
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field shardId is unset!') unless @shardId
72
+ unless @privilege.nil? || ::Evernote::EDAM::Type::PrivilegeLevel::VALID_VALUES.include?(@privilege)
73
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field privilege!')
74
+ end
75
+ end
138
76
 
139
- FIELDS = {
140
- CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
141
- AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
142
- EXPIRATION => {:type => ::Thrift::Types::I64, :name => 'expiration'},
143
- USER => {:type => ::Thrift::Types::STRUCT, :name => 'user', :class => Evernote::EDAM::Type::User, :optional => true},
144
- PUBLICUSERINFO => {:type => ::Thrift::Types::STRUCT, :name => 'publicUserInfo', :class => Evernote::EDAM::UserStore::PublicUserInfo, :optional => true},
145
- NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true},
146
- WEBAPIURLPREFIX => {:type => ::Thrift::Types::STRING, :name => 'webApiUrlPrefix', :optional => true}
147
- }
77
+ ::Thrift::Struct.generate_accessors self
78
+ end
148
79
 
149
- def struct_fields; FIELDS; end
80
+ # When an authentication (or re-authentication) is performed, this structure
81
+ # provides the result to the client.
82
+ # <dl>
83
+ # <dt>currentTime:</dt>
84
+ # <dd>
85
+ # The server-side date and time when this result was
86
+ # generated.
87
+ # </dd>
88
+ # <dt>authenticationToken:</dt>
89
+ # <dd>
90
+ # Holds an opaque, ASCII-encoded token that can be
91
+ # used by the client to perform actions on a NoteStore.
92
+ # </dd>
93
+ # <dt>expiration:</dt>
94
+ # <dd>
95
+ # Holds the server-side date and time when the
96
+ # authentication token will expire.
97
+ # This time can be compared to "currentTime" to produce an expiration
98
+ # time that can be reconciled with the client's local clock.
99
+ # </dd>
100
+ # <dt>user:</dt>
101
+ # <dd>
102
+ # Holds the information about the account which was
103
+ # authenticated if this was a full authentication. May be absent if this
104
+ # particular authentication did not require user information.
105
+ # </dd>
106
+ # <dt>publicUserInfo:</dt>
107
+ # <dd>
108
+ # If this authentication result was achieved without full permissions to
109
+ # access the full User structure, this field may be set to give back
110
+ # a more limited public set of data.
111
+ # </dd>
112
+ # <dt>noteStoreUrl:</dt>
113
+ # <dd>
114
+ # This field will contain the full URL that clients should use to make
115
+ # NoteStore requests to the server shard that contains that user's data.
116
+ # I.e. this is the URL that should be used to create the Thrift HTTP client
117
+ # transport to send messages to the NoteStore service for the account.
118
+ # </dd>
119
+ # <dt>webApiUrlPrefix:</dt>
120
+ # <dd>
121
+ # This field will contain the initial part of the URLs that should be used
122
+ # to make requests to Evernote's thin client "web API", which provide
123
+ # optimized operations for clients that aren't capable of manipulating
124
+ # the full contents of accounts via the full Thrift data model. Clients
125
+ # should concatenate the relative path for the various servlets onto the
126
+ # end of this string to construct the full URL, as documented on our
127
+ # developer web site.
128
+ # </dd>
129
+ # </dl>
130
+ class AuthenticationResult
131
+ include ::Thrift::Struct, ::Thrift::Struct_Union
132
+ CURRENTTIME = 1
133
+ AUTHENTICATIONTOKEN = 2
134
+ EXPIRATION = 3
135
+ USER = 4
136
+ PUBLICUSERINFO = 5
137
+ NOTESTOREURL = 6
138
+ WEBAPIURLPREFIX = 7
150
139
 
151
- def validate
152
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
153
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authenticationToken is unset!') unless @authenticationToken
154
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field expiration is unset!') unless @expiration
155
- end
140
+ FIELDS = {
141
+ CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
142
+ AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
143
+ EXPIRATION => {:type => ::Thrift::Types::I64, :name => 'expiration'},
144
+ USER => {:type => ::Thrift::Types::STRUCT, :name => 'user', :class => ::Evernote::EDAM::Type::User, :optional => true},
145
+ PUBLICUSERINFO => {:type => ::Thrift::Types::STRUCT, :name => 'publicUserInfo', :class => ::Evernote::EDAM::UserStore::PublicUserInfo, :optional => true},
146
+ NOTESTOREURL => {:type => ::Thrift::Types::STRING, :name => 'noteStoreUrl', :optional => true},
147
+ WEBAPIURLPREFIX => {:type => ::Thrift::Types::STRING, :name => 'webApiUrlPrefix', :optional => true}
148
+ }
156
149
 
157
- ::Thrift::Struct.generate_accessors self
158
- end
150
+ def struct_fields; FIELDS; end
159
151
 
160
- # This structure describes a collection of bootstrap settings.
161
- # <dl>
162
- # <dt>serviceHost:</dt>
163
- # <dd>
164
- # The hostname and optional port for composing Evernote web service URLs.
165
- # This URL can be used to access the UserStore and related services,
166
- # but must not be used to compose the NoteStore URL. Client applications
167
- # must handle serviceHost values that include only the hostname
168
- # (e.g. www.evernote.com) or both the hostname and port (e.g. www.evernote.com:8080).
169
- # If no port is specified, or if port 443 is specified, client applications must
170
- # use the scheme "https" when composing URLs. Otherwise, a client must use the
171
- # scheme "http".
172
- # </dd>
173
- # <dt>marketingUrl:</dt>
174
- # <dd>
175
- # The URL stem for the Evernote corporate marketing website, e.g. http://www.evernote.com.
176
- # This stem can be used to compose website URLs. For example, the URL of the Evernote
177
- # Trunk is composed by appending "/about/trunk/" to the value of marketingUrl.
178
- # </dd>
179
- # <dt>supportUrl:</dt>
180
- # <dd>
181
- # The full URL for the Evernote customer support website, e.g. https://support.evernote.com.
182
- # </dd>
183
- # <dt>accountEmailDomain:</dt>
184
- # <dd>
185
- # The domain used for an Evernote user's incoming email address, which allows notes to
186
- # be emailed into an account. E.g. m.evernote.com.
187
- # </dd>
188
- # <dt>enableFacebookSharing:</dt>
189
- # <dd>
190
- # Whether the client application should enable sharing of notes on Facebook.
191
- # </dd>
192
- # <dt>enableGiftSubscriptions:</dt>
193
- # <dd>
194
- # Whether the client application should enable gift subscriptions.
195
- # </dd>
196
- # <dt>enableSupportTickets:</dt>
197
- # <dd>
198
- # Whether the client application should enable in-client creation of support tickets.
199
- # </dd>
200
- # <dt>enableSharedNotebooks:</dt>
201
- # <dd>
202
- # Whether the client application should enable shared notebooks.
203
- # </dd>
204
- # <dt>enableSingleNoteSharing:</dt>
205
- # <dd>
206
- # Whether the client application should enable single note sharing.
207
- # </dd>
208
- # <dt>enableSponsoredAccounts:</dt>
209
- # <dd>
210
- # Whether the client application should enable sponsored accounts.
211
- # </dd>
212
- # <dt>enableTwitterSharing:</dt>
213
- # <dd>
214
- # Whether the client application should enable sharing of notes on Twitter.
215
- # </dd>
216
- # </dl>
217
- class BootstrapSettings
218
- include ::Thrift::Struct, ::Thrift::Struct_Union
219
- SERVICEHOST = 1
220
- MARKETINGURL = 2
221
- SUPPORTURL = 3
222
- ACCOUNTEMAILDOMAIN = 4
223
- ENABLEFACEBOOKSHARING = 5
224
- ENABLEGIFTSUBSCRIPTIONS = 6
225
- ENABLESUPPORTTICKETS = 7
226
- ENABLESHAREDNOTEBOOKS = 8
227
- ENABLESINGLENOTESHARING = 9
228
- ENABLESPONSOREDACCOUNTS = 10
229
- ENABLETWITTERSHARING = 11
230
- ENABLELINKEDINSHARING = 12
231
- ENABLEPUBLICNOTEBOOKS = 13
152
+ def validate
153
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime
154
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authenticationToken is unset!') unless @authenticationToken
155
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field expiration is unset!') unless @expiration
156
+ end
232
157
 
233
- FIELDS = {
234
- SERVICEHOST => {:type => ::Thrift::Types::STRING, :name => 'serviceHost'},
235
- MARKETINGURL => {:type => ::Thrift::Types::STRING, :name => 'marketingUrl'},
236
- SUPPORTURL => {:type => ::Thrift::Types::STRING, :name => 'supportUrl'},
237
- ACCOUNTEMAILDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'accountEmailDomain'},
238
- ENABLEFACEBOOKSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableFacebookSharing', :optional => true},
239
- ENABLEGIFTSUBSCRIPTIONS => {:type => ::Thrift::Types::BOOL, :name => 'enableGiftSubscriptions', :optional => true},
240
- ENABLESUPPORTTICKETS => {:type => ::Thrift::Types::BOOL, :name => 'enableSupportTickets', :optional => true},
241
- ENABLESHAREDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enableSharedNotebooks', :optional => true},
242
- ENABLESINGLENOTESHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableSingleNoteSharing', :optional => true},
243
- ENABLESPONSOREDACCOUNTS => {:type => ::Thrift::Types::BOOL, :name => 'enableSponsoredAccounts', :optional => true},
244
- ENABLETWITTERSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableTwitterSharing', :optional => true},
245
- ENABLELINKEDINSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableLinkedInSharing', :optional => true},
246
- ENABLEPUBLICNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enablePublicNotebooks', :optional => true}
247
- }
158
+ ::Thrift::Struct.generate_accessors self
159
+ end
248
160
 
249
- def struct_fields; FIELDS; end
161
+ # This structure describes a collection of bootstrap settings.
162
+ # <dl>
163
+ # <dt>serviceHost:</dt>
164
+ # <dd>
165
+ # The hostname and optional port for composing Evernote web service URLs.
166
+ # This URL can be used to access the UserStore and related services,
167
+ # but must not be used to compose the NoteStore URL. Client applications
168
+ # must handle serviceHost values that include only the hostname
169
+ # (e.g. www.evernote.com) or both the hostname and port (e.g. www.evernote.com:8080).
170
+ # If no port is specified, or if port 443 is specified, client applications must
171
+ # use the scheme "https" when composing URLs. Otherwise, a client must use the
172
+ # scheme "http".
173
+ # </dd>
174
+ # <dt>marketingUrl:</dt>
175
+ # <dd>
176
+ # The URL stem for the Evernote corporate marketing website, e.g. http://www.evernote.com.
177
+ # This stem can be used to compose website URLs. For example, the URL of the Evernote
178
+ # Trunk is composed by appending "/about/trunk/" to the value of marketingUrl.
179
+ # </dd>
180
+ # <dt>supportUrl:</dt>
181
+ # <dd>
182
+ # The full URL for the Evernote customer support website, e.g. https://support.evernote.com.
183
+ # </dd>
184
+ # <dt>accountEmailDomain:</dt>
185
+ # <dd>
186
+ # The domain used for an Evernote user's incoming email address, which allows notes to
187
+ # be emailed into an account. E.g. m.evernote.com.
188
+ # </dd>
189
+ # <dt>enableFacebookSharing:</dt>
190
+ # <dd>
191
+ # Whether the client application should enable sharing of notes on Facebook.
192
+ # </dd>
193
+ # <dt>enableGiftSubscriptions:</dt>
194
+ # <dd>
195
+ # Whether the client application should enable gift subscriptions.
196
+ # </dd>
197
+ # <dt>enableSupportTickets:</dt>
198
+ # <dd>
199
+ # Whether the client application should enable in-client creation of support tickets.
200
+ # </dd>
201
+ # <dt>enableSharedNotebooks:</dt>
202
+ # <dd>
203
+ # Whether the client application should enable shared notebooks.
204
+ # </dd>
205
+ # <dt>enableSingleNoteSharing:</dt>
206
+ # <dd>
207
+ # Whether the client application should enable single note sharing.
208
+ # </dd>
209
+ # <dt>enableSponsoredAccounts:</dt>
210
+ # <dd>
211
+ # Whether the client application should enable sponsored accounts.
212
+ # </dd>
213
+ # <dt>enableTwitterSharing:</dt>
214
+ # <dd>
215
+ # Whether the client application should enable sharing of notes on Twitter.
216
+ # </dd>
217
+ # </dl>
218
+ class BootstrapSettings
219
+ include ::Thrift::Struct, ::Thrift::Struct_Union
220
+ SERVICEHOST = 1
221
+ MARKETINGURL = 2
222
+ SUPPORTURL = 3
223
+ ACCOUNTEMAILDOMAIN = 4
224
+ ENABLEFACEBOOKSHARING = 5
225
+ ENABLEGIFTSUBSCRIPTIONS = 6
226
+ ENABLESUPPORTTICKETS = 7
227
+ ENABLESHAREDNOTEBOOKS = 8
228
+ ENABLESINGLENOTESHARING = 9
229
+ ENABLESPONSOREDACCOUNTS = 10
230
+ ENABLETWITTERSHARING = 11
231
+ ENABLELINKEDINSHARING = 12
232
+ ENABLEPUBLICNOTEBOOKS = 13
250
233
 
251
- def validate
252
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serviceHost is unset!') unless @serviceHost
253
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field marketingUrl is unset!') unless @marketingUrl
254
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supportUrl is unset!') unless @supportUrl
255
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field accountEmailDomain is unset!') unless @accountEmailDomain
256
- end
234
+ FIELDS = {
235
+ SERVICEHOST => {:type => ::Thrift::Types::STRING, :name => 'serviceHost'},
236
+ MARKETINGURL => {:type => ::Thrift::Types::STRING, :name => 'marketingUrl'},
237
+ SUPPORTURL => {:type => ::Thrift::Types::STRING, :name => 'supportUrl'},
238
+ ACCOUNTEMAILDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'accountEmailDomain'},
239
+ ENABLEFACEBOOKSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableFacebookSharing', :optional => true},
240
+ ENABLEGIFTSUBSCRIPTIONS => {:type => ::Thrift::Types::BOOL, :name => 'enableGiftSubscriptions', :optional => true},
241
+ ENABLESUPPORTTICKETS => {:type => ::Thrift::Types::BOOL, :name => 'enableSupportTickets', :optional => true},
242
+ ENABLESHAREDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enableSharedNotebooks', :optional => true},
243
+ ENABLESINGLENOTESHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableSingleNoteSharing', :optional => true},
244
+ ENABLESPONSOREDACCOUNTS => {:type => ::Thrift::Types::BOOL, :name => 'enableSponsoredAccounts', :optional => true},
245
+ ENABLETWITTERSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableTwitterSharing', :optional => true},
246
+ ENABLELINKEDINSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableLinkedInSharing', :optional => true},
247
+ ENABLEPUBLICNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enablePublicNotebooks', :optional => true}
248
+ }
257
249
 
258
- ::Thrift::Struct.generate_accessors self
259
- end
250
+ def struct_fields; FIELDS; end
260
251
 
261
- # This structure describes a collection of bootstrap settings.
262
- # <dl>
263
- # <dt>name:</dt>
264
- # <dd>
265
- # The unique name of the profile, which is guaranteed to remain consistent across
266
- # calls to getBootstrapInfo.
267
- # </dd>
268
- # <dt>settings:</dt>
269
- # <dd>
270
- # The settings for this profile.
271
- # </dd>
272
- # </dl>
273
- class BootstrapProfile
274
- include ::Thrift::Struct, ::Thrift::Struct_Union
275
- NAME = 1
276
- SETTINGS = 2
252
+ def validate
253
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serviceHost is unset!') unless @serviceHost
254
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field marketingUrl is unset!') unless @marketingUrl
255
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supportUrl is unset!') unless @supportUrl
256
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field accountEmailDomain is unset!') unless @accountEmailDomain
257
+ end
277
258
 
278
- FIELDS = {
279
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
280
- SETTINGS => {:type => ::Thrift::Types::STRUCT, :name => 'settings', :class => Evernote::EDAM::UserStore::BootstrapSettings}
281
- }
259
+ ::Thrift::Struct.generate_accessors self
260
+ end
282
261
 
283
- def struct_fields; FIELDS; end
262
+ # This structure describes a collection of bootstrap settings.
263
+ # <dl>
264
+ # <dt>name:</dt>
265
+ # <dd>
266
+ # The unique name of the profile, which is guaranteed to remain consistent across
267
+ # calls to getBootstrapInfo.
268
+ # </dd>
269
+ # <dt>settings:</dt>
270
+ # <dd>
271
+ # The settings for this profile.
272
+ # </dd>
273
+ # </dl>
274
+ class BootstrapProfile
275
+ include ::Thrift::Struct, ::Thrift::Struct_Union
276
+ NAME = 1
277
+ SETTINGS = 2
284
278
 
285
- def validate
286
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
287
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field settings is unset!') unless @settings
288
- end
279
+ FIELDS = {
280
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
281
+ SETTINGS => {:type => ::Thrift::Types::STRUCT, :name => 'settings', :class => ::Evernote::EDAM::UserStore::BootstrapSettings}
282
+ }
289
283
 
290
- ::Thrift::Struct.generate_accessors self
291
- end
284
+ def struct_fields; FIELDS; end
292
285
 
293
- # This structure describes a collection of bootstrap profiles.
294
- # <dl>
295
- # <dt>profiles:</dt>
296
- # <dd>
297
- # List of one or more bootstrap profiles, in descending
298
- # preference order.
299
- # </dd>
300
- # </dl>
301
- class BootstrapInfo
302
- include ::Thrift::Struct, ::Thrift::Struct_Union
303
- PROFILES = 1
286
+ def validate
287
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
288
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field settings is unset!') unless @settings
289
+ end
304
290
 
305
- FIELDS = {
306
- PROFILES => {:type => ::Thrift::Types::LIST, :name => 'profiles', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::UserStore::BootstrapProfile}}
307
- }
291
+ ::Thrift::Struct.generate_accessors self
292
+ end
308
293
 
309
- def struct_fields; FIELDS; end
294
+ # This structure describes a collection of bootstrap profiles.
295
+ # <dl>
296
+ # <dt>profiles:</dt>
297
+ # <dd>
298
+ # List of one or more bootstrap profiles, in descending
299
+ # preference order.
300
+ # </dd>
301
+ # </dl>
302
+ class BootstrapInfo
303
+ include ::Thrift::Struct, ::Thrift::Struct_Union
304
+ PROFILES = 1
310
305
 
311
- def validate
312
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profiles is unset!') unless @profiles
313
- end
306
+ FIELDS = {
307
+ PROFILES => {:type => ::Thrift::Types::LIST, :name => 'profiles', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Evernote::EDAM::UserStore::BootstrapProfile}}
308
+ }
314
309
 
315
- ::Thrift::Struct.generate_accessors self
316
- end
310
+ def struct_fields; FIELDS; end
317
311
 
318
- end
312
+ def validate
313
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profiles is unset!') unless @profiles
319
314
  end
315
+
316
+ ::Thrift::Struct.generate_accessors self
320
317
  end
318
+
319
+ end
320
+ end
321
+ end