alis-sdk-ruby 0.1.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.envrc.sample +17 -0
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +41 -18
- data/VERSION +1 -0
- data/alis-sdk-ruby.gemspec +2 -2
- data/export-sdk.sh +35 -0
- data/lib/alis-sdk-ruby.rb +9 -9
- data/lib/alis-sdk-ruby/client.rb +865 -0
- data/lib/alis-sdk-ruby/client_api.rb +718 -0
- data/lib/alis-sdk-ruby/customizations.rb +0 -0
- data/lib/alis-sdk-ruby/errors.rb +7 -0
- data/lib/alis-sdk-ruby/plugins/apig_endpoint.rb +14 -0
- data/lib/alis-sdk-ruby/plugins/authorizer.rb +35 -0
- data/lib/alis-sdk-ruby/resource.rb +16 -0
- data/lib/alis-sdk-ruby/types.rb +945 -0
- data/sample.rb +7 -0
- metadata +13 -1
File without changes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module AlisSdkRuby
|
2
|
+
module Plugins
|
3
|
+
|
4
|
+
# APIG Custom Authorizer, generated token will be used by API Gateway
|
5
|
+
# to interact with AWS Lambda for authentication
|
6
|
+
#
|
7
|
+
# More information see: http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html
|
8
|
+
class Authorizer < Seahorse::Client::Plugin
|
9
|
+
|
10
|
+
def add_handlers(handlers, config)
|
11
|
+
handlers.add(CustomAuthHandler, step: :initialize)
|
12
|
+
end
|
13
|
+
|
14
|
+
# @api private
|
15
|
+
class CustomAuthHandler < Seahorse::Client::Handler
|
16
|
+
|
17
|
+
def call(context)
|
18
|
+
if context.operation['authtype'] == 'custom'
|
19
|
+
context.config.authorizer_token = generate_token(context)
|
20
|
+
end
|
21
|
+
@handler.call(context)
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
# TODO
|
27
|
+
# Provide your own token generation logic here
|
28
|
+
def generate_token(context)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module AlisSdkRuby
|
2
|
+
class Resource
|
3
|
+
|
4
|
+
# @param options ({})
|
5
|
+
# @option options [Client] :client
|
6
|
+
def initialize(options = {})
|
7
|
+
@client = options[:client] || Client.new(options)
|
8
|
+
end
|
9
|
+
|
10
|
+
# @return [Client]
|
11
|
+
def client
|
12
|
+
@client
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,945 @@
|
|
1
|
+
module AlisSdkRuby
|
2
|
+
module Types
|
3
|
+
|
4
|
+
# @!attribute [rw] article_id
|
5
|
+
# @return [String]
|
6
|
+
#
|
7
|
+
# @!attribute [rw] body
|
8
|
+
# @return [String]
|
9
|
+
#
|
10
|
+
# @!attribute [rw] created_at
|
11
|
+
# @return [Integer]
|
12
|
+
#
|
13
|
+
# @!attribute [rw] eye_catch_url
|
14
|
+
# @return [String]
|
15
|
+
#
|
16
|
+
# @!attribute [rw] overview
|
17
|
+
# @return [String]
|
18
|
+
#
|
19
|
+
# @!attribute [rw] title
|
20
|
+
# @return [String]
|
21
|
+
#
|
22
|
+
# @!attribute [rw] user_id
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
class ArticleContent < Struct.new(
|
26
|
+
:article_id,
|
27
|
+
:body,
|
28
|
+
:created_at,
|
29
|
+
:eye_catch_url,
|
30
|
+
:overview,
|
31
|
+
:title,
|
32
|
+
:user_id)
|
33
|
+
include Aws::Structure
|
34
|
+
end
|
35
|
+
|
36
|
+
# @note When making an API call, you may pass ArticleImage
|
37
|
+
# data as a hash:
|
38
|
+
#
|
39
|
+
# {
|
40
|
+
# article_image: "__string",
|
41
|
+
# }
|
42
|
+
#
|
43
|
+
# @!attribute [rw] article_image
|
44
|
+
# @return [String]
|
45
|
+
#
|
46
|
+
class ArticleImage < Struct.new(
|
47
|
+
:article_image)
|
48
|
+
include Aws::Structure
|
49
|
+
end
|
50
|
+
|
51
|
+
# @!attribute [rw] article_id
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
# @!attribute [rw] created_at
|
55
|
+
# @return [Integer]
|
56
|
+
#
|
57
|
+
# @!attribute [rw] eye_catch_url
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
# @!attribute [rw] overview
|
61
|
+
# @return [String]
|
62
|
+
#
|
63
|
+
# @!attribute [rw] title
|
64
|
+
# @return [String]
|
65
|
+
#
|
66
|
+
# @!attribute [rw] user_id
|
67
|
+
# @return [String]
|
68
|
+
#
|
69
|
+
class ArticleInfo < Struct.new(
|
70
|
+
:article_id,
|
71
|
+
:created_at,
|
72
|
+
:eye_catch_url,
|
73
|
+
:overview,
|
74
|
+
:title,
|
75
|
+
:user_id)
|
76
|
+
include Aws::Structure
|
77
|
+
end
|
78
|
+
|
79
|
+
# @note When making an API call, you may pass GetArticlesArticle_idAlistokenRequest
|
80
|
+
# data as a hash:
|
81
|
+
#
|
82
|
+
# {
|
83
|
+
# article_id: "__string", # required
|
84
|
+
# }
|
85
|
+
#
|
86
|
+
# @!attribute [rw] article_id
|
87
|
+
# @return [String]
|
88
|
+
#
|
89
|
+
class GetArticlesArticle_idAlistokenRequest < Struct.new(
|
90
|
+
:article_id)
|
91
|
+
include Aws::Structure
|
92
|
+
end
|
93
|
+
|
94
|
+
# @!attribute [rw] model69304a
|
95
|
+
# @return [Types::MODEL69304a]
|
96
|
+
#
|
97
|
+
class GetArticlesArticle_idAlistokenResponse < Struct.new(
|
98
|
+
:model69304a)
|
99
|
+
include Aws::Structure
|
100
|
+
end
|
101
|
+
|
102
|
+
# @note When making an API call, you may pass GetArticlesArticle_idLikesRequest
|
103
|
+
# data as a hash:
|
104
|
+
#
|
105
|
+
# {
|
106
|
+
# article_id: "__string", # required
|
107
|
+
# }
|
108
|
+
#
|
109
|
+
# @!attribute [rw] article_id
|
110
|
+
# @return [String]
|
111
|
+
#
|
112
|
+
class GetArticlesArticle_idLikesRequest < Struct.new(
|
113
|
+
:article_id)
|
114
|
+
include Aws::Structure
|
115
|
+
end
|
116
|
+
|
117
|
+
# @!attribute [rw] mode_ld_25993
|
118
|
+
# @return [Types::MODELd25993]
|
119
|
+
#
|
120
|
+
class GetArticlesArticle_idLikesResponse < Struct.new(
|
121
|
+
:mode_ld_25993)
|
122
|
+
include Aws::Structure
|
123
|
+
end
|
124
|
+
|
125
|
+
# @note When making an API call, you may pass GetArticlesArticle_idRequest
|
126
|
+
# data as a hash:
|
127
|
+
#
|
128
|
+
# {
|
129
|
+
# article_id: "__string", # required
|
130
|
+
# }
|
131
|
+
#
|
132
|
+
# @!attribute [rw] article_id
|
133
|
+
# @return [String]
|
134
|
+
#
|
135
|
+
class GetArticlesArticle_idRequest < Struct.new(
|
136
|
+
:article_id)
|
137
|
+
include Aws::Structure
|
138
|
+
end
|
139
|
+
|
140
|
+
# @!attribute [rw] article_content
|
141
|
+
# @return [Types::ArticleContent]
|
142
|
+
#
|
143
|
+
class GetArticlesArticle_idResponse < Struct.new(
|
144
|
+
:article_content)
|
145
|
+
include Aws::Structure
|
146
|
+
end
|
147
|
+
|
148
|
+
# @note When making an API call, you may pass GetArticlesPopularRequest
|
149
|
+
# data as a hash:
|
150
|
+
#
|
151
|
+
# {
|
152
|
+
# article_id: "__string",
|
153
|
+
# limit: "__string",
|
154
|
+
# score: "__string",
|
155
|
+
# }
|
156
|
+
#
|
157
|
+
# @!attribute [rw] article_id
|
158
|
+
# @return [String]
|
159
|
+
#
|
160
|
+
# @!attribute [rw] limit
|
161
|
+
# @return [String]
|
162
|
+
#
|
163
|
+
# @!attribute [rw] score
|
164
|
+
# @return [String]
|
165
|
+
#
|
166
|
+
class GetArticlesPopularRequest < Struct.new(
|
167
|
+
:article_id,
|
168
|
+
:limit,
|
169
|
+
:score)
|
170
|
+
include Aws::Structure
|
171
|
+
end
|
172
|
+
|
173
|
+
# @!attribute [rw] array_of_article_info
|
174
|
+
# @return [Array<Types::ArticleInfo>]
|
175
|
+
#
|
176
|
+
class GetArticlesPopularResponse < Struct.new(
|
177
|
+
:array_of_article_info)
|
178
|
+
include Aws::Structure
|
179
|
+
end
|
180
|
+
|
181
|
+
# @note When making an API call, you may pass GetArticlesRecentRequest
|
182
|
+
# data as a hash:
|
183
|
+
#
|
184
|
+
# {
|
185
|
+
# article_id: "__string",
|
186
|
+
# limit: "__string",
|
187
|
+
# sort_key: "__string",
|
188
|
+
# }
|
189
|
+
#
|
190
|
+
# @!attribute [rw] article_id
|
191
|
+
# @return [String]
|
192
|
+
#
|
193
|
+
# @!attribute [rw] limit
|
194
|
+
# @return [String]
|
195
|
+
#
|
196
|
+
# @!attribute [rw] sort_key
|
197
|
+
# @return [String]
|
198
|
+
#
|
199
|
+
class GetArticlesRecentRequest < Struct.new(
|
200
|
+
:article_id,
|
201
|
+
:limit,
|
202
|
+
:sort_key)
|
203
|
+
include Aws::Structure
|
204
|
+
end
|
205
|
+
|
206
|
+
# @!attribute [rw] array_of_article_info
|
207
|
+
# @return [Array<Types::ArticleInfo>]
|
208
|
+
#
|
209
|
+
class GetArticlesRecentResponse < Struct.new(
|
210
|
+
:array_of_article_info)
|
211
|
+
include Aws::Structure
|
212
|
+
end
|
213
|
+
|
214
|
+
# @note When making an API call, you may pass GetMeArticlesArticle_idDraftsRequest
|
215
|
+
# data as a hash:
|
216
|
+
#
|
217
|
+
# {
|
218
|
+
# article_id: "__string", # required
|
219
|
+
# }
|
220
|
+
#
|
221
|
+
# @!attribute [rw] article_id
|
222
|
+
# @return [String]
|
223
|
+
#
|
224
|
+
class GetMeArticlesArticle_idDraftsRequest < Struct.new(
|
225
|
+
:article_id)
|
226
|
+
include Aws::Structure
|
227
|
+
end
|
228
|
+
|
229
|
+
# @!attribute [rw] article_content
|
230
|
+
# @return [Types::ArticleContent]
|
231
|
+
#
|
232
|
+
class GetMeArticlesArticle_idDraftsResponse < Struct.new(
|
233
|
+
:article_content)
|
234
|
+
include Aws::Structure
|
235
|
+
end
|
236
|
+
|
237
|
+
# @note When making an API call, you may pass GetMeArticlesArticle_idLikeRequest
|
238
|
+
# data as a hash:
|
239
|
+
#
|
240
|
+
# {
|
241
|
+
# article_id: "__string", # required
|
242
|
+
# }
|
243
|
+
#
|
244
|
+
# @!attribute [rw] article_id
|
245
|
+
# @return [String]
|
246
|
+
#
|
247
|
+
class GetMeArticlesArticle_idLikeRequest < Struct.new(
|
248
|
+
:article_id)
|
249
|
+
include Aws::Structure
|
250
|
+
end
|
251
|
+
|
252
|
+
# @!attribute [rw] model84cbde
|
253
|
+
# @return [Types::MODEL84cbde]
|
254
|
+
#
|
255
|
+
class GetMeArticlesArticle_idLikeResponse < Struct.new(
|
256
|
+
:model84cbde)
|
257
|
+
include Aws::Structure
|
258
|
+
end
|
259
|
+
|
260
|
+
# @note When making an API call, you may pass GetMeArticlesArticle_idPublicEditRequest
|
261
|
+
# data as a hash:
|
262
|
+
#
|
263
|
+
# {
|
264
|
+
# article_id: "__string", # required
|
265
|
+
# }
|
266
|
+
#
|
267
|
+
# @!attribute [rw] article_id
|
268
|
+
# @return [String]
|
269
|
+
#
|
270
|
+
class GetMeArticlesArticle_idPublicEditRequest < Struct.new(
|
271
|
+
:article_id)
|
272
|
+
include Aws::Structure
|
273
|
+
end
|
274
|
+
|
275
|
+
# @!attribute [rw] article_content
|
276
|
+
# @return [Types::ArticleContent]
|
277
|
+
#
|
278
|
+
class GetMeArticlesArticle_idPublicEditResponse < Struct.new(
|
279
|
+
:article_content)
|
280
|
+
include Aws::Structure
|
281
|
+
end
|
282
|
+
|
283
|
+
# @note When making an API call, you may pass GetMeArticlesArticle_idPublicRequest
|
284
|
+
# data as a hash:
|
285
|
+
#
|
286
|
+
# {
|
287
|
+
# article_id: "__string", # required
|
288
|
+
# }
|
289
|
+
#
|
290
|
+
# @!attribute [rw] article_id
|
291
|
+
# @return [String]
|
292
|
+
#
|
293
|
+
class GetMeArticlesArticle_idPublicRequest < Struct.new(
|
294
|
+
:article_id)
|
295
|
+
include Aws::Structure
|
296
|
+
end
|
297
|
+
|
298
|
+
# @!attribute [rw] article_content
|
299
|
+
# @return [Types::ArticleContent]
|
300
|
+
#
|
301
|
+
class GetMeArticlesArticle_idPublicResponse < Struct.new(
|
302
|
+
:article_content)
|
303
|
+
include Aws::Structure
|
304
|
+
end
|
305
|
+
|
306
|
+
# @note When making an API call, you may pass GetMeArticlesDraftsRequest
|
307
|
+
# data as a hash:
|
308
|
+
#
|
309
|
+
# {
|
310
|
+
# article_id: "__string",
|
311
|
+
# limit: "__string",
|
312
|
+
# sort_key: "__string",
|
313
|
+
# }
|
314
|
+
#
|
315
|
+
# @!attribute [rw] article_id
|
316
|
+
# @return [String]
|
317
|
+
#
|
318
|
+
# @!attribute [rw] limit
|
319
|
+
# @return [String]
|
320
|
+
#
|
321
|
+
# @!attribute [rw] sort_key
|
322
|
+
# @return [String]
|
323
|
+
#
|
324
|
+
class GetMeArticlesDraftsRequest < Struct.new(
|
325
|
+
:article_id,
|
326
|
+
:limit,
|
327
|
+
:sort_key)
|
328
|
+
include Aws::Structure
|
329
|
+
end
|
330
|
+
|
331
|
+
# @!attribute [rw] array_of_article_info
|
332
|
+
# @return [Array<Types::ArticleInfo>]
|
333
|
+
#
|
334
|
+
class GetMeArticlesDraftsResponse < Struct.new(
|
335
|
+
:array_of_article_info)
|
336
|
+
include Aws::Structure
|
337
|
+
end
|
338
|
+
|
339
|
+
# @note When making an API call, you may pass GetMeArticlesPublicRequest
|
340
|
+
# data as a hash:
|
341
|
+
#
|
342
|
+
# {
|
343
|
+
# article_id: "__string",
|
344
|
+
# limit: "__string",
|
345
|
+
# sort_key: "__string",
|
346
|
+
# }
|
347
|
+
#
|
348
|
+
# @!attribute [rw] article_id
|
349
|
+
# @return [String]
|
350
|
+
#
|
351
|
+
# @!attribute [rw] limit
|
352
|
+
# @return [String]
|
353
|
+
#
|
354
|
+
# @!attribute [rw] sort_key
|
355
|
+
# @return [String]
|
356
|
+
#
|
357
|
+
class GetMeArticlesPublicRequest < Struct.new(
|
358
|
+
:article_id,
|
359
|
+
:limit,
|
360
|
+
:sort_key)
|
361
|
+
include Aws::Structure
|
362
|
+
end
|
363
|
+
|
364
|
+
# @!attribute [rw] array_of_article_info
|
365
|
+
# @return [Array<Types::ArticleInfo>]
|
366
|
+
#
|
367
|
+
class GetMeArticlesPublicResponse < Struct.new(
|
368
|
+
:array_of_article_info)
|
369
|
+
include Aws::Structure
|
370
|
+
end
|
371
|
+
|
372
|
+
# @api private
|
373
|
+
#
|
374
|
+
class GetMeInfoRequest < Aws::EmptyStructure; end
|
375
|
+
|
376
|
+
# @!attribute [rw] user_info
|
377
|
+
# @return [Types::UserInfo]
|
378
|
+
#
|
379
|
+
class GetMeInfoResponse < Struct.new(
|
380
|
+
:user_info)
|
381
|
+
include Aws::Structure
|
382
|
+
end
|
383
|
+
|
384
|
+
# @api private
|
385
|
+
#
|
386
|
+
class GetMeNotificationsRequest < Aws::EmptyStructure; end
|
387
|
+
|
388
|
+
# @!attribute [rw] array_of_notification
|
389
|
+
# @return [Array<Types::Notification>]
|
390
|
+
#
|
391
|
+
class GetMeNotificationsResponse < Struct.new(
|
392
|
+
:array_of_notification)
|
393
|
+
include Aws::Structure
|
394
|
+
end
|
395
|
+
|
396
|
+
# @api private
|
397
|
+
#
|
398
|
+
class GetMeUnread_notification_managersRequest < Aws::EmptyStructure; end
|
399
|
+
|
400
|
+
# @!attribute [rw] mode_lc_40ebe
|
401
|
+
# @return [Types::MODELc40ebe]
|
402
|
+
#
|
403
|
+
class GetMeUnread_notification_managersResponse < Struct.new(
|
404
|
+
:mode_lc_40ebe)
|
405
|
+
include Aws::Structure
|
406
|
+
end
|
407
|
+
|
408
|
+
# @api private
|
409
|
+
#
|
410
|
+
class GetMeWalletBalanceRequest < Aws::EmptyStructure; end
|
411
|
+
|
412
|
+
# @!attribute [rw] me_wallet_balance
|
413
|
+
# @return [Types::MeWalletBalance]
|
414
|
+
#
|
415
|
+
class GetMeWalletBalanceResponse < Struct.new(
|
416
|
+
:me_wallet_balance)
|
417
|
+
include Aws::Structure
|
418
|
+
end
|
419
|
+
|
420
|
+
# @note When making an API call, you may pass GetUsersUser_idArticlesPublicRequest
|
421
|
+
# data as a hash:
|
422
|
+
#
|
423
|
+
# {
|
424
|
+
# article_id: "__string",
|
425
|
+
# limit: "__string",
|
426
|
+
# sort_key: "__string",
|
427
|
+
# user_id: "__string", # required
|
428
|
+
# }
|
429
|
+
#
|
430
|
+
# @!attribute [rw] article_id
|
431
|
+
# @return [String]
|
432
|
+
#
|
433
|
+
# @!attribute [rw] limit
|
434
|
+
# @return [String]
|
435
|
+
#
|
436
|
+
# @!attribute [rw] sort_key
|
437
|
+
# @return [String]
|
438
|
+
#
|
439
|
+
# @!attribute [rw] user_id
|
440
|
+
# @return [String]
|
441
|
+
#
|
442
|
+
class GetUsersUser_idArticlesPublicRequest < Struct.new(
|
443
|
+
:article_id,
|
444
|
+
:limit,
|
445
|
+
:sort_key,
|
446
|
+
:user_id)
|
447
|
+
include Aws::Structure
|
448
|
+
end
|
449
|
+
|
450
|
+
# @!attribute [rw] array_of_article_info
|
451
|
+
# @return [Array<Types::ArticleInfo>]
|
452
|
+
#
|
453
|
+
class GetUsersUser_idArticlesPublicResponse < Struct.new(
|
454
|
+
:array_of_article_info)
|
455
|
+
include Aws::Structure
|
456
|
+
end
|
457
|
+
|
458
|
+
# @note When making an API call, you may pass GetUsersUser_idInfoRequest
|
459
|
+
# data as a hash:
|
460
|
+
#
|
461
|
+
# {
|
462
|
+
# user_id: "__string", # required
|
463
|
+
# }
|
464
|
+
#
|
465
|
+
# @!attribute [rw] user_id
|
466
|
+
# @return [String]
|
467
|
+
#
|
468
|
+
class GetUsersUser_idInfoRequest < Struct.new(
|
469
|
+
:user_id)
|
470
|
+
include Aws::Structure
|
471
|
+
end
|
472
|
+
|
473
|
+
# @!attribute [rw] user_info
|
474
|
+
# @return [Types::UserInfo]
|
475
|
+
#
|
476
|
+
class GetUsersUser_idInfoResponse < Struct.new(
|
477
|
+
:user_info)
|
478
|
+
include Aws::Structure
|
479
|
+
end
|
480
|
+
|
481
|
+
# @!attribute [rw] alistoken
|
482
|
+
# @return [Float]
|
483
|
+
#
|
484
|
+
class MODEL69304a < Struct.new(
|
485
|
+
:alistoken)
|
486
|
+
include Aws::Structure
|
487
|
+
end
|
488
|
+
|
489
|
+
# @!attribute [rw] liked
|
490
|
+
# @return [Boolean]
|
491
|
+
#
|
492
|
+
class MODEL84cbde < Struct.new(
|
493
|
+
:liked)
|
494
|
+
include Aws::Structure
|
495
|
+
end
|
496
|
+
|
497
|
+
# @!attribute [rw] image_url
|
498
|
+
# @return [String]
|
499
|
+
#
|
500
|
+
class MODELa08eaf < Struct.new(
|
501
|
+
:image_url)
|
502
|
+
include Aws::Structure
|
503
|
+
end
|
504
|
+
|
505
|
+
# @!attribute [rw] unread
|
506
|
+
# @return [Boolean]
|
507
|
+
#
|
508
|
+
class MODELc40ebe < Struct.new(
|
509
|
+
:unread)
|
510
|
+
include Aws::Structure
|
511
|
+
end
|
512
|
+
|
513
|
+
# @!attribute [rw] article_id
|
514
|
+
# @return [String]
|
515
|
+
#
|
516
|
+
class MODELcde73d < Struct.new(
|
517
|
+
:article_id)
|
518
|
+
include Aws::Structure
|
519
|
+
end
|
520
|
+
|
521
|
+
# @!attribute [rw] image_url
|
522
|
+
# @return [String]
|
523
|
+
#
|
524
|
+
class MODELd06bfe < Struct.new(
|
525
|
+
:image_url)
|
526
|
+
include Aws::Structure
|
527
|
+
end
|
528
|
+
|
529
|
+
# @!attribute [rw] count
|
530
|
+
# @return [Float]
|
531
|
+
#
|
532
|
+
class MODELd25993 < Struct.new(
|
533
|
+
:count)
|
534
|
+
include Aws::Structure
|
535
|
+
end
|
536
|
+
|
537
|
+
# @note When making an API call, you may pass MeArticlesDraftsCreate
|
538
|
+
# data as a hash:
|
539
|
+
#
|
540
|
+
# {
|
541
|
+
# body: "__string",
|
542
|
+
# eye_catch_url: "__string",
|
543
|
+
# overview: "__string",
|
544
|
+
# title: "__string",
|
545
|
+
# }
|
546
|
+
#
|
547
|
+
# @!attribute [rw] body
|
548
|
+
# @return [String]
|
549
|
+
#
|
550
|
+
# @!attribute [rw] eye_catch_url
|
551
|
+
# @return [String]
|
552
|
+
#
|
553
|
+
# @!attribute [rw] overview
|
554
|
+
# @return [String]
|
555
|
+
#
|
556
|
+
# @!attribute [rw] title
|
557
|
+
# @return [String]
|
558
|
+
#
|
559
|
+
class MeArticlesDraftsCreate < Struct.new(
|
560
|
+
:body,
|
561
|
+
:eye_catch_url,
|
562
|
+
:overview,
|
563
|
+
:title)
|
564
|
+
include Aws::Structure
|
565
|
+
end
|
566
|
+
|
567
|
+
# @note When making an API call, you may pass MeInfoIcon
|
568
|
+
# data as a hash:
|
569
|
+
#
|
570
|
+
# {
|
571
|
+
# icon_image: "__string",
|
572
|
+
# }
|
573
|
+
#
|
574
|
+
# @!attribute [rw] icon_image
|
575
|
+
# @return [String]
|
576
|
+
#
|
577
|
+
class MeInfoIcon < Struct.new(
|
578
|
+
:icon_image)
|
579
|
+
include Aws::Structure
|
580
|
+
end
|
581
|
+
|
582
|
+
# @note When making an API call, you may pass MeInfoUpdate
|
583
|
+
# data as a hash:
|
584
|
+
#
|
585
|
+
# {
|
586
|
+
# self_introduction: "__string",
|
587
|
+
# user_display_name: "__string",
|
588
|
+
# }
|
589
|
+
#
|
590
|
+
# @!attribute [rw] self_introduction
|
591
|
+
# @return [String]
|
592
|
+
#
|
593
|
+
# @!attribute [rw] user_display_name
|
594
|
+
# @return [String]
|
595
|
+
#
|
596
|
+
class MeInfoUpdate < Struct.new(
|
597
|
+
:self_introduction,
|
598
|
+
:user_display_name)
|
599
|
+
include Aws::Structure
|
600
|
+
end
|
601
|
+
|
602
|
+
# @!attribute [rw] private_eth_address
|
603
|
+
# @return [String]
|
604
|
+
#
|
605
|
+
class MeWalletBalance < Struct.new(
|
606
|
+
:private_eth_address)
|
607
|
+
include Aws::Structure
|
608
|
+
end
|
609
|
+
|
610
|
+
# @!attribute [rw] acted_user_id
|
611
|
+
# @return [String]
|
612
|
+
#
|
613
|
+
# @!attribute [rw] created_at
|
614
|
+
# @return [Integer]
|
615
|
+
#
|
616
|
+
# @!attribute [rw] sort_key
|
617
|
+
# @return [Integer]
|
618
|
+
#
|
619
|
+
# @!attribute [rw] type
|
620
|
+
# @return [String]
|
621
|
+
#
|
622
|
+
# @!attribute [rw] user_id
|
623
|
+
# @return [String]
|
624
|
+
#
|
625
|
+
class Notification < Struct.new(
|
626
|
+
:acted_user_id,
|
627
|
+
:created_at,
|
628
|
+
:sort_key,
|
629
|
+
:type,
|
630
|
+
:user_id)
|
631
|
+
include Aws::Structure
|
632
|
+
end
|
633
|
+
|
634
|
+
# @note When making an API call, you may pass PostMeArticlesArticle_idFraudRequest
|
635
|
+
# data as a hash:
|
636
|
+
#
|
637
|
+
# {
|
638
|
+
# article_id: "__string", # required
|
639
|
+
# }
|
640
|
+
#
|
641
|
+
# @!attribute [rw] article_id
|
642
|
+
# @return [String]
|
643
|
+
#
|
644
|
+
class PostMeArticlesArticle_idFraudRequest < Struct.new(
|
645
|
+
:article_id)
|
646
|
+
include Aws::Structure
|
647
|
+
end
|
648
|
+
|
649
|
+
class PostMeArticlesArticle_idFraudResponse < Aws::EmptyStructure; end
|
650
|
+
|
651
|
+
# @note When making an API call, you may pass PostMeArticlesArticle_idImagesRequest
|
652
|
+
# data as a hash:
|
653
|
+
#
|
654
|
+
# {
|
655
|
+
# article_id: "__string", # required
|
656
|
+
# article_image: { # required
|
657
|
+
# article_image: "__string",
|
658
|
+
# },
|
659
|
+
# }
|
660
|
+
#
|
661
|
+
# @!attribute [rw] article_id
|
662
|
+
# @return [String]
|
663
|
+
#
|
664
|
+
# @!attribute [rw] article_image
|
665
|
+
# @return [Types::ArticleImage]
|
666
|
+
#
|
667
|
+
class PostMeArticlesArticle_idImagesRequest < Struct.new(
|
668
|
+
:article_id,
|
669
|
+
:article_image)
|
670
|
+
include Aws::Structure
|
671
|
+
end
|
672
|
+
|
673
|
+
# @!attribute [rw] mode_ld_06bfe
|
674
|
+
# @return [Types::MODELd06bfe]
|
675
|
+
#
|
676
|
+
class PostMeArticlesArticle_idImagesResponse < Struct.new(
|
677
|
+
:mode_ld_06bfe)
|
678
|
+
include Aws::Structure
|
679
|
+
end
|
680
|
+
|
681
|
+
# @note When making an API call, you may pass PostMeArticlesArticle_idLikeRequest
|
682
|
+
# data as a hash:
|
683
|
+
#
|
684
|
+
# {
|
685
|
+
# article_id: "__string", # required
|
686
|
+
# }
|
687
|
+
#
|
688
|
+
# @!attribute [rw] article_id
|
689
|
+
# @return [String]
|
690
|
+
#
|
691
|
+
class PostMeArticlesArticle_idLikeRequest < Struct.new(
|
692
|
+
:article_id)
|
693
|
+
include Aws::Structure
|
694
|
+
end
|
695
|
+
|
696
|
+
class PostMeArticlesArticle_idLikeResponse < Aws::EmptyStructure; end
|
697
|
+
|
698
|
+
# @note When making an API call, you may pass PostMeArticlesArticle_idPvRequest
|
699
|
+
# data as a hash:
|
700
|
+
#
|
701
|
+
# {
|
702
|
+
# article_id: "__string", # required
|
703
|
+
# }
|
704
|
+
#
|
705
|
+
# @!attribute [rw] article_id
|
706
|
+
# @return [String]
|
707
|
+
#
|
708
|
+
class PostMeArticlesArticle_idPvRequest < Struct.new(
|
709
|
+
:article_id)
|
710
|
+
include Aws::Structure
|
711
|
+
end
|
712
|
+
|
713
|
+
class PostMeArticlesArticle_idPvResponse < Aws::EmptyStructure; end
|
714
|
+
|
715
|
+
# @note When making an API call, you may pass PostMeArticlesDraftsRequest
|
716
|
+
# data as a hash:
|
717
|
+
#
|
718
|
+
# {
|
719
|
+
# me_articles_drafts_create: { # required
|
720
|
+
# body: "__string",
|
721
|
+
# eye_catch_url: "__string",
|
722
|
+
# overview: "__string",
|
723
|
+
# title: "__string",
|
724
|
+
# },
|
725
|
+
# }
|
726
|
+
#
|
727
|
+
# @!attribute [rw] me_articles_drafts_create
|
728
|
+
# @return [Types::MeArticlesDraftsCreate]
|
729
|
+
#
|
730
|
+
class PostMeArticlesDraftsRequest < Struct.new(
|
731
|
+
:me_articles_drafts_create)
|
732
|
+
include Aws::Structure
|
733
|
+
end
|
734
|
+
|
735
|
+
# @!attribute [rw] mode_lcde_73d
|
736
|
+
# @return [Types::MODELcde73d]
|
737
|
+
#
|
738
|
+
class PostMeArticlesDraftsResponse < Struct.new(
|
739
|
+
:mode_lcde_73d)
|
740
|
+
include Aws::Structure
|
741
|
+
end
|
742
|
+
|
743
|
+
# @note When making an API call, you may pass PostMeInfoIconRequest
|
744
|
+
# data as a hash:
|
745
|
+
#
|
746
|
+
# {
|
747
|
+
# me_info_icon: { # required
|
748
|
+
# icon_image: "__string",
|
749
|
+
# },
|
750
|
+
# }
|
751
|
+
#
|
752
|
+
# @!attribute [rw] me_info_icon
|
753
|
+
# @return [Types::MeInfoIcon]
|
754
|
+
#
|
755
|
+
class PostMeInfoIconRequest < Struct.new(
|
756
|
+
:me_info_icon)
|
757
|
+
include Aws::Structure
|
758
|
+
end
|
759
|
+
|
760
|
+
# @!attribute [rw] mode_la_08eaf
|
761
|
+
# @return [Types::MODELa08eaf]
|
762
|
+
#
|
763
|
+
class PostMeInfoIconResponse < Struct.new(
|
764
|
+
:mode_la_08eaf)
|
765
|
+
include Aws::Structure
|
766
|
+
end
|
767
|
+
|
768
|
+
# @note When making an API call, you may pass PutMeArticlesArticle_idDraftsPublishRequest
|
769
|
+
# data as a hash:
|
770
|
+
#
|
771
|
+
# {
|
772
|
+
# article_id: "__string", # required
|
773
|
+
# }
|
774
|
+
#
|
775
|
+
# @!attribute [rw] article_id
|
776
|
+
# @return [String]
|
777
|
+
#
|
778
|
+
class PutMeArticlesArticle_idDraftsPublishRequest < Struct.new(
|
779
|
+
:article_id)
|
780
|
+
include Aws::Structure
|
781
|
+
end
|
782
|
+
|
783
|
+
class PutMeArticlesArticle_idDraftsPublishResponse < Aws::EmptyStructure; end
|
784
|
+
|
785
|
+
# @note When making an API call, you may pass PutMeArticlesArticle_idDraftsRequest
|
786
|
+
# data as a hash:
|
787
|
+
#
|
788
|
+
# {
|
789
|
+
# me_articles_drafts_create: { # required
|
790
|
+
# body: "__string",
|
791
|
+
# eye_catch_url: "__string",
|
792
|
+
# overview: "__string",
|
793
|
+
# title: "__string",
|
794
|
+
# },
|
795
|
+
# }
|
796
|
+
#
|
797
|
+
# @!attribute [rw] me_articles_drafts_create
|
798
|
+
# @return [Types::MeArticlesDraftsCreate]
|
799
|
+
#
|
800
|
+
class PutMeArticlesArticle_idDraftsRequest < Struct.new(
|
801
|
+
:me_articles_drafts_create)
|
802
|
+
include Aws::Structure
|
803
|
+
end
|
804
|
+
|
805
|
+
class PutMeArticlesArticle_idDraftsResponse < Aws::EmptyStructure; end
|
806
|
+
|
807
|
+
# @note When making an API call, you may pass PutMeArticlesArticle_idPublicRepublishRequest
|
808
|
+
# data as a hash:
|
809
|
+
#
|
810
|
+
# {
|
811
|
+
# article_id: "__string", # required
|
812
|
+
# }
|
813
|
+
#
|
814
|
+
# @!attribute [rw] article_id
|
815
|
+
# @return [String]
|
816
|
+
#
|
817
|
+
class PutMeArticlesArticle_idPublicRepublishRequest < Struct.new(
|
818
|
+
:article_id)
|
819
|
+
include Aws::Structure
|
820
|
+
end
|
821
|
+
|
822
|
+
class PutMeArticlesArticle_idPublicRepublishResponse < Aws::EmptyStructure; end
|
823
|
+
|
824
|
+
# @note When making an API call, you may pass PutMeArticlesArticle_idPublicRequest
|
825
|
+
# data as a hash:
|
826
|
+
#
|
827
|
+
# {
|
828
|
+
# article_id: "__string", # required
|
829
|
+
# update_article: { # required
|
830
|
+
# body: "__string",
|
831
|
+
# eye_catch_url: "__string",
|
832
|
+
# overview: "__string",
|
833
|
+
# title: "__string",
|
834
|
+
# },
|
835
|
+
# }
|
836
|
+
#
|
837
|
+
# @!attribute [rw] article_id
|
838
|
+
# @return [String]
|
839
|
+
#
|
840
|
+
# @!attribute [rw] update_article
|
841
|
+
# @return [Types::UpdateArticle]
|
842
|
+
#
|
843
|
+
class PutMeArticlesArticle_idPublicRequest < Struct.new(
|
844
|
+
:article_id,
|
845
|
+
:update_article)
|
846
|
+
include Aws::Structure
|
847
|
+
end
|
848
|
+
|
849
|
+
class PutMeArticlesArticle_idPublicResponse < Aws::EmptyStructure; end
|
850
|
+
|
851
|
+
# @note When making an API call, you may pass PutMeArticlesArticle_idPublicUnpublishRequest
|
852
|
+
# data as a hash:
|
853
|
+
#
|
854
|
+
# {
|
855
|
+
# article_id: "__string", # required
|
856
|
+
# }
|
857
|
+
#
|
858
|
+
# @!attribute [rw] article_id
|
859
|
+
# @return [String]
|
860
|
+
#
|
861
|
+
class PutMeArticlesArticle_idPublicUnpublishRequest < Struct.new(
|
862
|
+
:article_id)
|
863
|
+
include Aws::Structure
|
864
|
+
end
|
865
|
+
|
866
|
+
class PutMeArticlesArticle_idPublicUnpublishResponse < Aws::EmptyStructure; end
|
867
|
+
|
868
|
+
# @note When making an API call, you may pass PutMeInfoRequest
|
869
|
+
# data as a hash:
|
870
|
+
#
|
871
|
+
# {
|
872
|
+
# me_info_update: { # required
|
873
|
+
# self_introduction: "__string",
|
874
|
+
# user_display_name: "__string",
|
875
|
+
# },
|
876
|
+
# }
|
877
|
+
#
|
878
|
+
# @!attribute [rw] me_info_update
|
879
|
+
# @return [Types::MeInfoUpdate]
|
880
|
+
#
|
881
|
+
class PutMeInfoRequest < Struct.new(
|
882
|
+
:me_info_update)
|
883
|
+
include Aws::Structure
|
884
|
+
end
|
885
|
+
|
886
|
+
class PutMeInfoResponse < Aws::EmptyStructure; end
|
887
|
+
|
888
|
+
# @api private
|
889
|
+
#
|
890
|
+
class PutMeUnread_notification_managersRequest < Aws::EmptyStructure; end
|
891
|
+
|
892
|
+
class PutMeUnread_notification_managersResponse < Aws::EmptyStructure; end
|
893
|
+
|
894
|
+
# @note When making an API call, you may pass UpdateArticle
|
895
|
+
# data as a hash:
|
896
|
+
#
|
897
|
+
# {
|
898
|
+
# body: "__string",
|
899
|
+
# eye_catch_url: "__string",
|
900
|
+
# overview: "__string",
|
901
|
+
# title: "__string",
|
902
|
+
# }
|
903
|
+
#
|
904
|
+
# @!attribute [rw] body
|
905
|
+
# @return [String]
|
906
|
+
#
|
907
|
+
# @!attribute [rw] eye_catch_url
|
908
|
+
# @return [String]
|
909
|
+
#
|
910
|
+
# @!attribute [rw] overview
|
911
|
+
# @return [String]
|
912
|
+
#
|
913
|
+
# @!attribute [rw] title
|
914
|
+
# @return [String]
|
915
|
+
#
|
916
|
+
class UpdateArticle < Struct.new(
|
917
|
+
:body,
|
918
|
+
:eye_catch_url,
|
919
|
+
:overview,
|
920
|
+
:title)
|
921
|
+
include Aws::Structure
|
922
|
+
end
|
923
|
+
|
924
|
+
# @!attribute [rw] icon_image_url
|
925
|
+
# @return [String]
|
926
|
+
#
|
927
|
+
# @!attribute [rw] self_introduction
|
928
|
+
# @return [String]
|
929
|
+
#
|
930
|
+
# @!attribute [rw] user_display_name
|
931
|
+
# @return [String]
|
932
|
+
#
|
933
|
+
# @!attribute [rw] user_id
|
934
|
+
# @return [String]
|
935
|
+
#
|
936
|
+
class UserInfo < Struct.new(
|
937
|
+
:icon_image_url,
|
938
|
+
:self_introduction,
|
939
|
+
:user_display_name,
|
940
|
+
:user_id)
|
941
|
+
include Aws::Structure
|
942
|
+
end
|
943
|
+
|
944
|
+
end
|
945
|
+
end
|