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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc242d993b9a645cf783ff9fe5549cd471f9dc267936a0241172c78e896258c9
|
4
|
+
data.tar.gz: 74b266756a38f2d157e4d2004ea9d49323c72c60f0a3b7f536e502a7e6728b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2076cbceb261dbdb6a285c69f319b73be0667e6caa5e6aad2a2f1d7eb6fd6fd29079dd0f7c1f753864b478e7d5d0ae1872573350751d2f54d7fbf713f5e319ca
|
7
|
+
data.tar.gz: 2024a9fb903cd99289f2a91346bbab1b4ab7242ac59d6460e33c8608cf2784f7f78499d5ed2501852f73d40fb39840bdba09d64b58b2a8de3f22474e6846f695
|
data/.envrc.sample
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# --- ALIS ---
|
2
|
+
|
3
|
+
## SDKをエクスポートするAPI GatewayのREST API ID
|
4
|
+
export REST_API_ID=udpuvxxxxx
|
5
|
+
## SDKのバージョン。プロダクトのバージョンに準拠している
|
6
|
+
export API_VERSION=0.13.0
|
7
|
+
|
8
|
+
# --- AWS ---
|
9
|
+
|
10
|
+
## aws-cli
|
11
|
+
## aws-cliが依存する環境変数。
|
12
|
+
## - see: https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cli-environment.html
|
13
|
+
## .credentialsファイルよりもこちらの環境変数が優先される
|
14
|
+
## Cloud formationのデプロイやS3作成など重要な操作を行うため、管理者レベルの権限を持つ必要がある。
|
15
|
+
export AWS_DEFAULT_REGION=ap-northeast-1
|
16
|
+
export AWS_ACCESS_KEY_ID=AKIAJZCGSXXXXXXXXXX
|
17
|
+
export AWS_SECRET_ACCESS_KEY=iU6/q6ls5i5pDBPxxxxxxxxxxxxxxxxxxxx
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,39 +1,62 @@
|
|
1
|
-
#
|
1
|
+
# AlisSdkRuby
|
2
2
|
|
3
|
-
|
3
|
+
This is the Version 0 of the alis-sdk-ruby gem.
|
4
4
|
|
5
|
-
|
5
|
+
## WARNING
|
6
6
|
|
7
|
-
|
7
|
+
Please read through this `README.md` and `alis-sdk-ruby.gemspec` then tailor it with your gem needs before serving it for any official usage or gem publishing. If you have any questions, issue or feature requests for this generated gem, feel free to open an issue or PR againt [`AWS SDK for Ruby`](https://github.com/aws/aws-sdk-ruby)
|
8
8
|
|
9
|
-
|
9
|
+
## API Client
|
10
|
+
|
11
|
+
Initialize a service client and list all operations available.
|
10
12
|
|
11
13
|
```ruby
|
12
|
-
|
14
|
+
require 'alis-sdk-ruby'
|
15
|
+
|
16
|
+
client = AlisSdkRuby::Client.new
|
17
|
+
|
18
|
+
puts client.operation_names
|
13
19
|
```
|
14
20
|
|
15
|
-
|
21
|
+
For each operation usage example, see `lib/client.rb` documentation block per operation
|
16
22
|
|
17
|
-
|
23
|
+
## Authorizer
|
18
24
|
|
19
|
-
|
25
|
+
For operations used custom authorizer, you can provide your own authorizer token logic at `lib/plugins/authorizer.rb` under method `generate_token`. For more information, please see [here](http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html).
|
20
26
|
|
21
|
-
|
27
|
+
## AWS Credentials
|
22
28
|
|
23
|
-
|
29
|
+
For those API requets that are authenticated with AWS Credentials (e.g. IAM roles), you would need to configure `:credentials` and `:region` that helps sigining request with [AWS Signature V4](http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). You can also provide those information via your environment:
|
24
30
|
|
25
|
-
|
31
|
+
The SDK searches the following locations for credentials:
|
26
32
|
|
27
|
-
|
33
|
+
* `ENV['AWS_ACCESS_KEY_ID']` and `ENV['AWS_SECRET_ACCESS_KEY']`
|
34
|
+
* Unless `ENV['AWS_SDK_CONFIG_OPT_OUT']` is set, the shared configuration files (`~/.aws/credentials` and `~/.aws/config`) will be checked for a `role_arn` and `source_profile`, which if present will be used to attempt to assume a role.
|
35
|
+
* The shared credentials ini file at `~/.aws/credentials` ([more information](http://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs))
|
36
|
+
* Unless `ENV['AWS_SDK_CONFIG_OPT_OUT']` is set, the shared configuration ini file at `~/.aws/config` will also be parsed for credentials.
|
37
|
+
* From an instance profile when running on EC2, or from the ECS credential provider when running in an ECS container with that feature enabled.
|
28
38
|
|
29
|
-
|
39
|
+
The SDK searches the following locations for a region:
|
30
40
|
|
31
|
-
|
41
|
+
* `ENV['AWS_REGION']`
|
42
|
+
* Unless `ENV['AWS_SDK_CONFIG_OPT_OUT']` is set, the shared configuration files (`~/.aws/credentials` and `~/.aws/config`) will also be checked for a region selection.
|
32
43
|
|
33
|
-
|
44
|
+
Valid region and credentials options are:
|
34
45
|
|
35
|
-
|
46
|
+
* `:region` - A string like `us-west-2`.
|
47
|
+
* `:credentials` - An instance of one of the following classes:
|
48
|
+
* [`Aws::Credentials`](http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Credentials.html)
|
49
|
+
* [`Aws::SharedCredentials`](http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SharedCredentials.html)
|
50
|
+
* [`Aws::InstanceProfileCredentials`](http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/InstanceProfileCredentials.html)
|
51
|
+
* [`Aws::AssumeRoleCredentials`](http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AssumeRoleCredentials.html)
|
52
|
+
|
53
|
+
## API Key
|
54
|
+
|
55
|
+
Simply provide an `:api_key` value when calling an API along with other params, this value will be picked up in the `x-api-key` header value.
|
36
56
|
|
37
57
|
## License
|
38
58
|
|
39
|
-
|
59
|
+
DEFAULT: This library is distributed under the
|
60
|
+
[Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
|
61
|
+
|
62
|
+
Feel free to change your license specification here and at `alis-sdk-ruby.gemspec`
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.13.0
|
data/alis-sdk-ruby.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "alis/sdk/ruby/version"
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'alis-sdk-ruby'
|
8
|
-
|
9
|
-
spec.version = Alis::Sdk::Ruby::VERSION
|
8
|
+
spec.version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
9
|
+
# spec.version = Alis::Sdk::Ruby::VERSION
|
10
10
|
spec.authors = ["sot528"]
|
11
11
|
spec.email = ["sot528@gmail.com"]
|
12
12
|
|
data/export-sdk.sh
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
EXPORT_DIR=./tmp
|
4
|
+
TMP_ZIP_FILE=${EXPORT_DIR}/tmp.zip
|
5
|
+
rm -fr ${EXPORT_DIR}
|
6
|
+
mkdir ${EXPORT_DIR}
|
7
|
+
|
8
|
+
# export
|
9
|
+
aws apigateway get-sdk \
|
10
|
+
--rest-api-id ${REST_API_ID} \
|
11
|
+
--stage-name api \
|
12
|
+
--sdk-type ruby \
|
13
|
+
--parameters service.name=alis-sdk-ruby,ruby.gem-name=alis-sdk-ruby,ruby.gem-version=${API_VERSION} \
|
14
|
+
${TMP_ZIP_FILE}
|
15
|
+
|
16
|
+
unzip -d ${EXPORT_DIR} ${TMP_ZIP_FILE}
|
17
|
+
rm -fr ${TMP_ZIP_FILE}
|
18
|
+
|
19
|
+
# rewrite endpoint URL
|
20
|
+
sed -i '' 's/client.config.endpoint =.*/client.config.endpoint = \"https:\/\/alis.to\"/' \
|
21
|
+
${EXPORT_DIR}/generated_src/alis-sdk-ruby/lib/alis-sdk-ruby/plugins/apig_endpoint.rb
|
22
|
+
|
23
|
+
# remove un use values
|
24
|
+
sed -i '' '/endpointPrefix/d' \
|
25
|
+
${EXPORT_DIR}/generated_src/alis-sdk-ruby/lib/alis-sdk-ruby/client_api.rb
|
26
|
+
sed -i '' '/serviceFullName/d' \
|
27
|
+
${EXPORT_DIR}/generated_src/alis-sdk-ruby/lib/alis-sdk-ruby/client_api.rb
|
28
|
+
|
29
|
+
# overwrite .gemspec
|
30
|
+
cp -pf ./alis-sdk-ruby.gemspec ${EXPORT_DIR}/generated_src/alis-sdk-ruby/alis-sdk-ruby.gemspec
|
31
|
+
|
32
|
+
# gem build
|
33
|
+
#cd ${EXPORT_DIR}/generated_src/alis-sdk-ruby/
|
34
|
+
cp -prf ${EXPORT_DIR}/generated_src/alis-sdk-ruby/* .
|
35
|
+
gem build alis-sdk-ruby.gemspec
|
data/lib/alis-sdk-ruby.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
require 'aws-sdk-core'
|
2
|
+
require 'aws-sigv4'
|
3
|
+
|
4
|
+
require_relative 'alis-sdk-ruby/types'
|
5
|
+
require_relative 'alis-sdk-ruby/client_api'
|
6
|
+
require_relative 'alis-sdk-ruby/client'
|
7
|
+
require_relative 'alis-sdk-ruby/errors'
|
8
|
+
require_relative 'alis-sdk-ruby/resource'
|
9
|
+
require_relative 'alis-sdk-ruby/customizations'
|
10
10
|
|
11
11
|
# This module provides support for stagingapi. This module is available in the
|
12
12
|
# `alis-sdk-ruby` gem.
|
@@ -0,0 +1,865 @@
|
|
1
|
+
require 'seahorse/client/plugins/content_length.rb'
|
2
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
3
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
4
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
5
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
6
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
7
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
8
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
9
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
10
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
11
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
12
|
+
require 'aws-sdk-core/plugins/protocols/api_gateway.rb'
|
13
|
+
require 'aws-sdk-core/plugins/api_key.rb'
|
14
|
+
require 'aws-sdk-core/plugins/apig_user_agent.rb'
|
15
|
+
require 'aws-sdk-core/plugins/apig_authorizer_token.rb'
|
16
|
+
require 'aws-sdk-core/plugins/apig_credentials_configuration.rb'
|
17
|
+
require 'alis-sdk-ruby/plugins/authorizer.rb'
|
18
|
+
require 'alis-sdk-ruby/plugins/apig_endpoint.rb'
|
19
|
+
|
20
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:alissdkruby)
|
21
|
+
|
22
|
+
module AlisSdkRuby
|
23
|
+
class Client < Seahorse::Client::Base
|
24
|
+
|
25
|
+
include Aws::ClientStubs
|
26
|
+
|
27
|
+
@identifier = :alissdkruby
|
28
|
+
|
29
|
+
set_api(ClientApi::API)
|
30
|
+
|
31
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
32
|
+
add_plugin(Aws::Plugins::Logging)
|
33
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
34
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
35
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
36
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
37
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
38
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
39
|
+
add_plugin(Aws::Plugins::StubResponses)
|
40
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
41
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
42
|
+
add_plugin(Aws::Plugins::Protocols::ApiGateway)
|
43
|
+
add_plugin(Aws::Plugins::ApiKey)
|
44
|
+
add_plugin(Aws::Plugins::APIGUserAgent)
|
45
|
+
add_plugin(Aws::Plugins::APIGAuthorizerToken)
|
46
|
+
add_plugin(Aws::Plugins::APIGCredentialsConfiguration)
|
47
|
+
add_plugin(AlisSdkRuby::Plugins::Authorizer)
|
48
|
+
add_plugin(AlisSdkRuby::Plugins::APIGEndpoint)
|
49
|
+
|
50
|
+
# @option options [String] :access_key_id
|
51
|
+
#
|
52
|
+
# @option options [String] :api_key
|
53
|
+
# When provided, `x-api-key` header will be injected with the value provided.
|
54
|
+
#
|
55
|
+
# @option options [Boolean] :convert_params (true)
|
56
|
+
# When `true`, an attempt is made to coerce request parameters into
|
57
|
+
# the required types.
|
58
|
+
#
|
59
|
+
# @option options [Aws::CredentialProvider] :credentials
|
60
|
+
# AWS Credentials options is only required when your API uses
|
61
|
+
# [AWS Signature Version 4](http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html),
|
62
|
+
# more AWS Credentials Configuration Options are available [here](https://github.com/aws/aws-sdk-ruby#configuration).
|
63
|
+
#
|
64
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
65
|
+
# The log formatter.
|
66
|
+
#
|
67
|
+
# @option options [Symbol] :log_level (:info)
|
68
|
+
# The log level to send messages to the `:logger` at.
|
69
|
+
#
|
70
|
+
# @option options [Logger] :logger
|
71
|
+
# The Logger instance to send log messages to. If this option
|
72
|
+
# is not set, logging will be disabled.
|
73
|
+
#
|
74
|
+
# @option options [String] :profile
|
75
|
+
#
|
76
|
+
# @option options [Integer] :retry_limit (3)
|
77
|
+
# The maximum number of times to retry failed requests. Only
|
78
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
79
|
+
# are retried. Generally, these are throttling errors, data
|
80
|
+
# checksum errors, networking errors, timeout errors and auth
|
81
|
+
# errors from expired credentials.
|
82
|
+
#
|
83
|
+
# @option options [String] :secret_access_key
|
84
|
+
#
|
85
|
+
# @option options [String] :session_token
|
86
|
+
#
|
87
|
+
# @option options [Boolean] :stub_responses (false)
|
88
|
+
# Causes the client to return stubbed responses. By default
|
89
|
+
# fake responses are generated and returned. You can specify
|
90
|
+
# the response data to return or errors to raise by calling
|
91
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
92
|
+
#
|
93
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
94
|
+
# requests are made, and retries are disabled.
|
95
|
+
#
|
96
|
+
# @option options [Boolean] :validate_params (true)
|
97
|
+
# When `true`, request parameters are validated before
|
98
|
+
# sending the request.
|
99
|
+
#
|
100
|
+
def initialize(*args)
|
101
|
+
super
|
102
|
+
end
|
103
|
+
|
104
|
+
# @!group API Operations
|
105
|
+
|
106
|
+
# @option params [required, String] :article_id
|
107
|
+
#
|
108
|
+
# @return [Types::GetArticlesArticle_idResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
109
|
+
#
|
110
|
+
# * {Types::GetArticlesArticle_idResponse#article_content #article_content} => Types::ArticleContent
|
111
|
+
#
|
112
|
+
# @example Request syntax with placeholder values
|
113
|
+
#
|
114
|
+
# resp = client.get_articles_article_id({
|
115
|
+
# article_id: "__string", # required
|
116
|
+
# })
|
117
|
+
#
|
118
|
+
# @example Response structure
|
119
|
+
#
|
120
|
+
# resp.article_content.article_id #=> String
|
121
|
+
# resp.article_content.body #=> String
|
122
|
+
# resp.article_content.created_at #=> Integer
|
123
|
+
# resp.article_content.eye_catch_url #=> String
|
124
|
+
# resp.article_content.overview #=> String
|
125
|
+
# resp.article_content.title #=> String
|
126
|
+
# resp.article_content.user_id #=> String
|
127
|
+
#
|
128
|
+
# @overload get_articles_article_id(params = {})
|
129
|
+
# @param [Hash] params ({})
|
130
|
+
def get_articles_article_id(params = {}, options = {})
|
131
|
+
req = build_request(:get_articles_article_id, params)
|
132
|
+
req.send_request(options)
|
133
|
+
end
|
134
|
+
|
135
|
+
# @option params [required, String] :article_id
|
136
|
+
#
|
137
|
+
# @return [Types::GetArticlesArticle_idAlistokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
138
|
+
#
|
139
|
+
# * {Types::GetArticlesArticle_idAlistokenResponse#model69304a #model69304a} => Types::MODEL69304a
|
140
|
+
#
|
141
|
+
# @example Request syntax with placeholder values
|
142
|
+
#
|
143
|
+
# resp = client.get_articles_article_id_alistoken({
|
144
|
+
# article_id: "__string", # required
|
145
|
+
# })
|
146
|
+
#
|
147
|
+
# @example Response structure
|
148
|
+
#
|
149
|
+
# resp.model69304a.alistoken #=> Float
|
150
|
+
#
|
151
|
+
# @overload get_articles_article_id_alistoken(params = {})
|
152
|
+
# @param [Hash] params ({})
|
153
|
+
def get_articles_article_id_alistoken(params = {}, options = {})
|
154
|
+
req = build_request(:get_articles_article_id_alistoken, params)
|
155
|
+
req.send_request(options)
|
156
|
+
end
|
157
|
+
|
158
|
+
# @option params [required, String] :article_id
|
159
|
+
#
|
160
|
+
# @return [Types::GetArticlesArticle_idLikesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
161
|
+
#
|
162
|
+
# * {Types::GetArticlesArticle_idLikesResponse#mode_ld_25993 #mode_ld_25993} => Types::MODELd25993
|
163
|
+
#
|
164
|
+
# @example Request syntax with placeholder values
|
165
|
+
#
|
166
|
+
# resp = client.get_articles_article_id_likes({
|
167
|
+
# article_id: "__string", # required
|
168
|
+
# })
|
169
|
+
#
|
170
|
+
# @example Response structure
|
171
|
+
#
|
172
|
+
# resp.mode_ld_25993.count #=> Float
|
173
|
+
#
|
174
|
+
# @overload get_articles_article_id_likes(params = {})
|
175
|
+
# @param [Hash] params ({})
|
176
|
+
def get_articles_article_id_likes(params = {}, options = {})
|
177
|
+
req = build_request(:get_articles_article_id_likes, params)
|
178
|
+
req.send_request(options)
|
179
|
+
end
|
180
|
+
|
181
|
+
# @option params [String] :article_id
|
182
|
+
#
|
183
|
+
# @option params [String] :limit
|
184
|
+
#
|
185
|
+
# @option params [String] :score
|
186
|
+
#
|
187
|
+
# @return [Types::GetArticlesPopularResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
188
|
+
#
|
189
|
+
# * {Types::GetArticlesPopularResponse#array_of_article_info #array_of_article_info} => Array<Types::ArticleInfo>
|
190
|
+
#
|
191
|
+
# @example Request syntax with placeholder values
|
192
|
+
#
|
193
|
+
# resp = client.get_articles_popular({
|
194
|
+
# article_id: "__string",
|
195
|
+
# limit: "__string",
|
196
|
+
# score: "__string",
|
197
|
+
# })
|
198
|
+
#
|
199
|
+
# @example Response structure
|
200
|
+
#
|
201
|
+
# resp.array_of_article_info #=> Array
|
202
|
+
# resp.array_of_article_info[0].article_id #=> String
|
203
|
+
# resp.array_of_article_info[0].created_at #=> Integer
|
204
|
+
# resp.array_of_article_info[0].eye_catch_url #=> String
|
205
|
+
# resp.array_of_article_info[0].overview #=> String
|
206
|
+
# resp.array_of_article_info[0].title #=> String
|
207
|
+
# resp.array_of_article_info[0].user_id #=> String
|
208
|
+
#
|
209
|
+
# @overload get_articles_popular(params = {})
|
210
|
+
# @param [Hash] params ({})
|
211
|
+
def get_articles_popular(params = {}, options = {})
|
212
|
+
req = build_request(:get_articles_popular, params)
|
213
|
+
req.send_request(options)
|
214
|
+
end
|
215
|
+
|
216
|
+
# @option params [String] :article_id
|
217
|
+
#
|
218
|
+
# @option params [String] :limit
|
219
|
+
#
|
220
|
+
# @option params [String] :sort_key
|
221
|
+
#
|
222
|
+
# @return [Types::GetArticlesRecentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
223
|
+
#
|
224
|
+
# * {Types::GetArticlesRecentResponse#array_of_article_info #array_of_article_info} => Array<Types::ArticleInfo>
|
225
|
+
#
|
226
|
+
# @example Request syntax with placeholder values
|
227
|
+
#
|
228
|
+
# resp = client.get_articles_recent({
|
229
|
+
# article_id: "__string",
|
230
|
+
# limit: "__string",
|
231
|
+
# sort_key: "__string",
|
232
|
+
# })
|
233
|
+
#
|
234
|
+
# @example Response structure
|
235
|
+
#
|
236
|
+
# resp.array_of_article_info #=> Array
|
237
|
+
# resp.array_of_article_info[0].article_id #=> String
|
238
|
+
# resp.array_of_article_info[0].created_at #=> Integer
|
239
|
+
# resp.array_of_article_info[0].eye_catch_url #=> String
|
240
|
+
# resp.array_of_article_info[0].overview #=> String
|
241
|
+
# resp.array_of_article_info[0].title #=> String
|
242
|
+
# resp.array_of_article_info[0].user_id #=> String
|
243
|
+
#
|
244
|
+
# @overload get_articles_recent(params = {})
|
245
|
+
# @param [Hash] params ({})
|
246
|
+
def get_articles_recent(params = {}, options = {})
|
247
|
+
req = build_request(:get_articles_recent, params)
|
248
|
+
req.send_request(options)
|
249
|
+
end
|
250
|
+
|
251
|
+
# @option params [required, String] :article_id
|
252
|
+
#
|
253
|
+
# @return [Types::GetMeArticlesArticle_idDraftsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
254
|
+
#
|
255
|
+
# * {Types::GetMeArticlesArticle_idDraftsResponse#article_content #article_content} => Types::ArticleContent
|
256
|
+
#
|
257
|
+
# @example Request syntax with placeholder values
|
258
|
+
#
|
259
|
+
# resp = client.get_me_articles_article_id_drafts({
|
260
|
+
# article_id: "__string", # required
|
261
|
+
# })
|
262
|
+
#
|
263
|
+
# @example Response structure
|
264
|
+
#
|
265
|
+
# resp.article_content.article_id #=> String
|
266
|
+
# resp.article_content.body #=> String
|
267
|
+
# resp.article_content.created_at #=> Integer
|
268
|
+
# resp.article_content.eye_catch_url #=> String
|
269
|
+
# resp.article_content.overview #=> String
|
270
|
+
# resp.article_content.title #=> String
|
271
|
+
# resp.article_content.user_id #=> String
|
272
|
+
#
|
273
|
+
# @overload get_me_articles_article_id_drafts(params = {})
|
274
|
+
# @param [Hash] params ({})
|
275
|
+
def get_me_articles_article_id_drafts(params = {}, options = {})
|
276
|
+
req = build_request(:get_me_articles_article_id_drafts, params)
|
277
|
+
req.send_request(options)
|
278
|
+
end
|
279
|
+
|
280
|
+
# @option params [required, String] :article_id
|
281
|
+
#
|
282
|
+
# @return [Types::GetMeArticlesArticle_idLikeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
283
|
+
#
|
284
|
+
# * {Types::GetMeArticlesArticle_idLikeResponse#model84cbde #model84cbde} => Types::MODEL84cbde
|
285
|
+
#
|
286
|
+
# @example Request syntax with placeholder values
|
287
|
+
#
|
288
|
+
# resp = client.get_me_articles_article_id_like({
|
289
|
+
# article_id: "__string", # required
|
290
|
+
# })
|
291
|
+
#
|
292
|
+
# @example Response structure
|
293
|
+
#
|
294
|
+
# resp.model84cbde.liked #=> Boolean
|
295
|
+
#
|
296
|
+
# @overload get_me_articles_article_id_like(params = {})
|
297
|
+
# @param [Hash] params ({})
|
298
|
+
def get_me_articles_article_id_like(params = {}, options = {})
|
299
|
+
req = build_request(:get_me_articles_article_id_like, params)
|
300
|
+
req.send_request(options)
|
301
|
+
end
|
302
|
+
|
303
|
+
# @option params [required, String] :article_id
|
304
|
+
#
|
305
|
+
# @return [Types::GetMeArticlesArticle_idPublicResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
306
|
+
#
|
307
|
+
# * {Types::GetMeArticlesArticle_idPublicResponse#article_content #article_content} => Types::ArticleContent
|
308
|
+
#
|
309
|
+
# @example Request syntax with placeholder values
|
310
|
+
#
|
311
|
+
# resp = client.get_me_articles_article_id_public({
|
312
|
+
# article_id: "__string", # required
|
313
|
+
# })
|
314
|
+
#
|
315
|
+
# @example Response structure
|
316
|
+
#
|
317
|
+
# resp.article_content.article_id #=> String
|
318
|
+
# resp.article_content.body #=> String
|
319
|
+
# resp.article_content.created_at #=> Integer
|
320
|
+
# resp.article_content.eye_catch_url #=> String
|
321
|
+
# resp.article_content.overview #=> String
|
322
|
+
# resp.article_content.title #=> String
|
323
|
+
# resp.article_content.user_id #=> String
|
324
|
+
#
|
325
|
+
# @overload get_me_articles_article_id_public(params = {})
|
326
|
+
# @param [Hash] params ({})
|
327
|
+
def get_me_articles_article_id_public(params = {}, options = {})
|
328
|
+
req = build_request(:get_me_articles_article_id_public, params)
|
329
|
+
req.send_request(options)
|
330
|
+
end
|
331
|
+
|
332
|
+
# @option params [required, String] :article_id
|
333
|
+
#
|
334
|
+
# @return [Types::GetMeArticlesArticle_idPublicEditResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
335
|
+
#
|
336
|
+
# * {Types::GetMeArticlesArticle_idPublicEditResponse#article_content #article_content} => Types::ArticleContent
|
337
|
+
#
|
338
|
+
# @example Request syntax with placeholder values
|
339
|
+
#
|
340
|
+
# resp = client.get_me_articles_article_id_public_edit({
|
341
|
+
# article_id: "__string", # required
|
342
|
+
# })
|
343
|
+
#
|
344
|
+
# @example Response structure
|
345
|
+
#
|
346
|
+
# resp.article_content.article_id #=> String
|
347
|
+
# resp.article_content.body #=> String
|
348
|
+
# resp.article_content.created_at #=> Integer
|
349
|
+
# resp.article_content.eye_catch_url #=> String
|
350
|
+
# resp.article_content.overview #=> String
|
351
|
+
# resp.article_content.title #=> String
|
352
|
+
# resp.article_content.user_id #=> String
|
353
|
+
#
|
354
|
+
# @overload get_me_articles_article_id_public_edit(params = {})
|
355
|
+
# @param [Hash] params ({})
|
356
|
+
def get_me_articles_article_id_public_edit(params = {}, options = {})
|
357
|
+
req = build_request(:get_me_articles_article_id_public_edit, params)
|
358
|
+
req.send_request(options)
|
359
|
+
end
|
360
|
+
|
361
|
+
# @option params [String] :article_id
|
362
|
+
#
|
363
|
+
# @option params [String] :limit
|
364
|
+
#
|
365
|
+
# @option params [String] :sort_key
|
366
|
+
#
|
367
|
+
# @return [Types::GetMeArticlesDraftsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
368
|
+
#
|
369
|
+
# * {Types::GetMeArticlesDraftsResponse#array_of_article_info #array_of_article_info} => Array<Types::ArticleInfo>
|
370
|
+
#
|
371
|
+
# @example Request syntax with placeholder values
|
372
|
+
#
|
373
|
+
# resp = client.get_me_articles_drafts({
|
374
|
+
# article_id: "__string",
|
375
|
+
# limit: "__string",
|
376
|
+
# sort_key: "__string",
|
377
|
+
# })
|
378
|
+
#
|
379
|
+
# @example Response structure
|
380
|
+
#
|
381
|
+
# resp.array_of_article_info #=> Array
|
382
|
+
# resp.array_of_article_info[0].article_id #=> String
|
383
|
+
# resp.array_of_article_info[0].created_at #=> Integer
|
384
|
+
# resp.array_of_article_info[0].eye_catch_url #=> String
|
385
|
+
# resp.array_of_article_info[0].overview #=> String
|
386
|
+
# resp.array_of_article_info[0].title #=> String
|
387
|
+
# resp.array_of_article_info[0].user_id #=> String
|
388
|
+
#
|
389
|
+
# @overload get_me_articles_drafts(params = {})
|
390
|
+
# @param [Hash] params ({})
|
391
|
+
def get_me_articles_drafts(params = {}, options = {})
|
392
|
+
req = build_request(:get_me_articles_drafts, params)
|
393
|
+
req.send_request(options)
|
394
|
+
end
|
395
|
+
|
396
|
+
# @option params [String] :article_id
|
397
|
+
#
|
398
|
+
# @option params [String] :limit
|
399
|
+
#
|
400
|
+
# @option params [String] :sort_key
|
401
|
+
#
|
402
|
+
# @return [Types::GetMeArticlesPublicResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
403
|
+
#
|
404
|
+
# * {Types::GetMeArticlesPublicResponse#array_of_article_info #array_of_article_info} => Array<Types::ArticleInfo>
|
405
|
+
#
|
406
|
+
# @example Request syntax with placeholder values
|
407
|
+
#
|
408
|
+
# resp = client.get_me_articles_public({
|
409
|
+
# article_id: "__string",
|
410
|
+
# limit: "__string",
|
411
|
+
# sort_key: "__string",
|
412
|
+
# })
|
413
|
+
#
|
414
|
+
# @example Response structure
|
415
|
+
#
|
416
|
+
# resp.array_of_article_info #=> Array
|
417
|
+
# resp.array_of_article_info[0].article_id #=> String
|
418
|
+
# resp.array_of_article_info[0].created_at #=> Integer
|
419
|
+
# resp.array_of_article_info[0].eye_catch_url #=> String
|
420
|
+
# resp.array_of_article_info[0].overview #=> String
|
421
|
+
# resp.array_of_article_info[0].title #=> String
|
422
|
+
# resp.array_of_article_info[0].user_id #=> String
|
423
|
+
#
|
424
|
+
# @overload get_me_articles_public(params = {})
|
425
|
+
# @param [Hash] params ({})
|
426
|
+
def get_me_articles_public(params = {}, options = {})
|
427
|
+
req = build_request(:get_me_articles_public, params)
|
428
|
+
req.send_request(options)
|
429
|
+
end
|
430
|
+
|
431
|
+
# @return [Types::GetMeInfoResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
432
|
+
#
|
433
|
+
# * {Types::GetMeInfoResponse#user_info #user_info} => Types::UserInfo
|
434
|
+
#
|
435
|
+
# @example Response structure
|
436
|
+
#
|
437
|
+
# resp.user_info.icon_image_url #=> String
|
438
|
+
# resp.user_info.self_introduction #=> String
|
439
|
+
# resp.user_info.user_display_name #=> String
|
440
|
+
# resp.user_info.user_id #=> String
|
441
|
+
#
|
442
|
+
# @overload get_me_info(params = {})
|
443
|
+
# @param [Hash] params ({})
|
444
|
+
def get_me_info(params = {}, options = {})
|
445
|
+
req = build_request(:get_me_info, params)
|
446
|
+
req.send_request(options)
|
447
|
+
end
|
448
|
+
|
449
|
+
# @return [Types::GetMeNotificationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
450
|
+
#
|
451
|
+
# * {Types::GetMeNotificationsResponse#array_of_notification #array_of_notification} => Array<Types::Notification>
|
452
|
+
#
|
453
|
+
# @example Response structure
|
454
|
+
#
|
455
|
+
# resp.array_of_notification #=> Array
|
456
|
+
# resp.array_of_notification[0].acted_user_id #=> String
|
457
|
+
# resp.array_of_notification[0].created_at #=> Integer
|
458
|
+
# resp.array_of_notification[0].sort_key #=> Integer
|
459
|
+
# resp.array_of_notification[0].type #=> String
|
460
|
+
# resp.array_of_notification[0].user_id #=> String
|
461
|
+
#
|
462
|
+
# @overload get_me_notifications(params = {})
|
463
|
+
# @param [Hash] params ({})
|
464
|
+
def get_me_notifications(params = {}, options = {})
|
465
|
+
req = build_request(:get_me_notifications, params)
|
466
|
+
req.send_request(options)
|
467
|
+
end
|
468
|
+
|
469
|
+
# @return [Types::GetMeUnread_notification_managersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
470
|
+
#
|
471
|
+
# * {Types::GetMeUnread_notification_managersResponse#mode_lc_40ebe #mode_lc_40ebe} => Types::MODELc40ebe
|
472
|
+
#
|
473
|
+
# @example Response structure
|
474
|
+
#
|
475
|
+
# resp.mode_lc_40ebe.unread #=> Boolean
|
476
|
+
#
|
477
|
+
# @overload get_me_unread_notification_managers(params = {})
|
478
|
+
# @param [Hash] params ({})
|
479
|
+
def get_me_unread_notification_managers(params = {}, options = {})
|
480
|
+
req = build_request(:get_me_unread_notification_managers, params)
|
481
|
+
req.send_request(options)
|
482
|
+
end
|
483
|
+
|
484
|
+
# @return [Types::GetMeWalletBalanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
485
|
+
#
|
486
|
+
# * {Types::GetMeWalletBalanceResponse#me_wallet_balance #me_wallet_balance} => Types::MeWalletBalance
|
487
|
+
#
|
488
|
+
# @example Response structure
|
489
|
+
#
|
490
|
+
# resp.me_wallet_balance.private_eth_address #=> String
|
491
|
+
#
|
492
|
+
# @overload get_me_wallet_balance(params = {})
|
493
|
+
# @param [Hash] params ({})
|
494
|
+
def get_me_wallet_balance(params = {}, options = {})
|
495
|
+
req = build_request(:get_me_wallet_balance, params)
|
496
|
+
req.send_request(options)
|
497
|
+
end
|
498
|
+
|
499
|
+
# @option params [String] :article_id
|
500
|
+
#
|
501
|
+
# @option params [String] :limit
|
502
|
+
#
|
503
|
+
# @option params [String] :sort_key
|
504
|
+
#
|
505
|
+
# @option params [required, String] :user_id
|
506
|
+
#
|
507
|
+
# @return [Types::GetUsersUser_idArticlesPublicResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
508
|
+
#
|
509
|
+
# * {Types::GetUsersUser_idArticlesPublicResponse#array_of_article_info #array_of_article_info} => Array<Types::ArticleInfo>
|
510
|
+
#
|
511
|
+
# @example Request syntax with placeholder values
|
512
|
+
#
|
513
|
+
# resp = client.get_users_user_id_articles_public({
|
514
|
+
# article_id: "__string",
|
515
|
+
# limit: "__string",
|
516
|
+
# sort_key: "__string",
|
517
|
+
# user_id: "__string", # required
|
518
|
+
# })
|
519
|
+
#
|
520
|
+
# @example Response structure
|
521
|
+
#
|
522
|
+
# resp.array_of_article_info #=> Array
|
523
|
+
# resp.array_of_article_info[0].article_id #=> String
|
524
|
+
# resp.array_of_article_info[0].created_at #=> Integer
|
525
|
+
# resp.array_of_article_info[0].eye_catch_url #=> String
|
526
|
+
# resp.array_of_article_info[0].overview #=> String
|
527
|
+
# resp.array_of_article_info[0].title #=> String
|
528
|
+
# resp.array_of_article_info[0].user_id #=> String
|
529
|
+
#
|
530
|
+
# @overload get_users_user_id_articles_public(params = {})
|
531
|
+
# @param [Hash] params ({})
|
532
|
+
def get_users_user_id_articles_public(params = {}, options = {})
|
533
|
+
req = build_request(:get_users_user_id_articles_public, params)
|
534
|
+
req.send_request(options)
|
535
|
+
end
|
536
|
+
|
537
|
+
# @option params [required, String] :user_id
|
538
|
+
#
|
539
|
+
# @return [Types::GetUsersUser_idInfoResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
540
|
+
#
|
541
|
+
# * {Types::GetUsersUser_idInfoResponse#user_info #user_info} => Types::UserInfo
|
542
|
+
#
|
543
|
+
# @example Request syntax with placeholder values
|
544
|
+
#
|
545
|
+
# resp = client.get_users_user_id_info({
|
546
|
+
# user_id: "__string", # required
|
547
|
+
# })
|
548
|
+
#
|
549
|
+
# @example Response structure
|
550
|
+
#
|
551
|
+
# resp.user_info.icon_image_url #=> String
|
552
|
+
# resp.user_info.self_introduction #=> String
|
553
|
+
# resp.user_info.user_display_name #=> String
|
554
|
+
# resp.user_info.user_id #=> String
|
555
|
+
#
|
556
|
+
# @overload get_users_user_id_info(params = {})
|
557
|
+
# @param [Hash] params ({})
|
558
|
+
def get_users_user_id_info(params = {}, options = {})
|
559
|
+
req = build_request(:get_users_user_id_info, params)
|
560
|
+
req.send_request(options)
|
561
|
+
end
|
562
|
+
|
563
|
+
# @option params [required, String] :article_id
|
564
|
+
#
|
565
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
566
|
+
#
|
567
|
+
# @example Request syntax with placeholder values
|
568
|
+
#
|
569
|
+
# resp = client.post_me_articles_article_id_fraud({
|
570
|
+
# article_id: "__string", # required
|
571
|
+
# })
|
572
|
+
#
|
573
|
+
# @overload post_me_articles_article_id_fraud(params = {})
|
574
|
+
# @param [Hash] params ({})
|
575
|
+
def post_me_articles_article_id_fraud(params = {}, options = {})
|
576
|
+
req = build_request(:post_me_articles_article_id_fraud, params)
|
577
|
+
req.send_request(options)
|
578
|
+
end
|
579
|
+
|
580
|
+
# @option params [required, String] :article_id
|
581
|
+
#
|
582
|
+
# @option params [required, Types::ArticleImage] :article_image
|
583
|
+
#
|
584
|
+
# @return [Types::PostMeArticlesArticle_idImagesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
585
|
+
#
|
586
|
+
# * {Types::PostMeArticlesArticle_idImagesResponse#mode_ld_06bfe #mode_ld_06bfe} => Types::MODELd06bfe
|
587
|
+
#
|
588
|
+
# @example Request syntax with placeholder values
|
589
|
+
#
|
590
|
+
# resp = client.post_me_articles_article_id_images({
|
591
|
+
# article_id: "__string", # required
|
592
|
+
# article_image: { # required
|
593
|
+
# article_image: "__string",
|
594
|
+
# },
|
595
|
+
# })
|
596
|
+
#
|
597
|
+
# @example Response structure
|
598
|
+
#
|
599
|
+
# resp.mode_ld_06bfe.image_url #=> String
|
600
|
+
#
|
601
|
+
# @overload post_me_articles_article_id_images(params = {})
|
602
|
+
# @param [Hash] params ({})
|
603
|
+
def post_me_articles_article_id_images(params = {}, options = {})
|
604
|
+
req = build_request(:post_me_articles_article_id_images, params)
|
605
|
+
req.send_request(options)
|
606
|
+
end
|
607
|
+
|
608
|
+
# @option params [required, String] :article_id
|
609
|
+
#
|
610
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
611
|
+
#
|
612
|
+
# @example Request syntax with placeholder values
|
613
|
+
#
|
614
|
+
# resp = client.post_me_articles_article_id_like({
|
615
|
+
# article_id: "__string", # required
|
616
|
+
# })
|
617
|
+
#
|
618
|
+
# @overload post_me_articles_article_id_like(params = {})
|
619
|
+
# @param [Hash] params ({})
|
620
|
+
def post_me_articles_article_id_like(params = {}, options = {})
|
621
|
+
req = build_request(:post_me_articles_article_id_like, params)
|
622
|
+
req.send_request(options)
|
623
|
+
end
|
624
|
+
|
625
|
+
# @option params [required, String] :article_id
|
626
|
+
#
|
627
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
628
|
+
#
|
629
|
+
# @example Request syntax with placeholder values
|
630
|
+
#
|
631
|
+
# resp = client.post_me_articles_article_id_pv({
|
632
|
+
# article_id: "__string", # required
|
633
|
+
# })
|
634
|
+
#
|
635
|
+
# @overload post_me_articles_article_id_pv(params = {})
|
636
|
+
# @param [Hash] params ({})
|
637
|
+
def post_me_articles_article_id_pv(params = {}, options = {})
|
638
|
+
req = build_request(:post_me_articles_article_id_pv, params)
|
639
|
+
req.send_request(options)
|
640
|
+
end
|
641
|
+
|
642
|
+
# @option params [required, Types::MeArticlesDraftsCreate] :me_articles_drafts_create
|
643
|
+
#
|
644
|
+
# @return [Types::PostMeArticlesDraftsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
645
|
+
#
|
646
|
+
# * {Types::PostMeArticlesDraftsResponse#mode_lcde_73d #mode_lcde_73d} => Types::MODELcde73d
|
647
|
+
#
|
648
|
+
# @example Request syntax with placeholder values
|
649
|
+
#
|
650
|
+
# resp = client.post_me_articles_drafts({
|
651
|
+
# me_articles_drafts_create: { # required
|
652
|
+
# body: "__string",
|
653
|
+
# eye_catch_url: "__string",
|
654
|
+
# overview: "__string",
|
655
|
+
# title: "__string",
|
656
|
+
# },
|
657
|
+
# })
|
658
|
+
#
|
659
|
+
# @example Response structure
|
660
|
+
#
|
661
|
+
# resp.mode_lcde_73d.article_id #=> String
|
662
|
+
#
|
663
|
+
# @overload post_me_articles_drafts(params = {})
|
664
|
+
# @param [Hash] params ({})
|
665
|
+
def post_me_articles_drafts(params = {}, options = {})
|
666
|
+
req = build_request(:post_me_articles_drafts, params)
|
667
|
+
req.send_request(options)
|
668
|
+
end
|
669
|
+
|
670
|
+
# @option params [required, Types::MeInfoIcon] :me_info_icon
|
671
|
+
#
|
672
|
+
# @return [Types::PostMeInfoIconResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
673
|
+
#
|
674
|
+
# * {Types::PostMeInfoIconResponse#mode_la_08eaf #mode_la_08eaf} => Types::MODELa08eaf
|
675
|
+
#
|
676
|
+
# @example Request syntax with placeholder values
|
677
|
+
#
|
678
|
+
# resp = client.post_me_info_icon({
|
679
|
+
# me_info_icon: { # required
|
680
|
+
# icon_image: "__string",
|
681
|
+
# },
|
682
|
+
# })
|
683
|
+
#
|
684
|
+
# @example Response structure
|
685
|
+
#
|
686
|
+
# resp.mode_la_08eaf.image_url #=> String
|
687
|
+
#
|
688
|
+
# @overload post_me_info_icon(params = {})
|
689
|
+
# @param [Hash] params ({})
|
690
|
+
def post_me_info_icon(params = {}, options = {})
|
691
|
+
req = build_request(:post_me_info_icon, params)
|
692
|
+
req.send_request(options)
|
693
|
+
end
|
694
|
+
|
695
|
+
# @option params [required, Types::MeArticlesDraftsCreate] :me_articles_drafts_create
|
696
|
+
#
|
697
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
698
|
+
#
|
699
|
+
# @example Request syntax with placeholder values
|
700
|
+
#
|
701
|
+
# resp = client.put_me_articles_article_id_drafts({
|
702
|
+
# me_articles_drafts_create: { # required
|
703
|
+
# body: "__string",
|
704
|
+
# eye_catch_url: "__string",
|
705
|
+
# overview: "__string",
|
706
|
+
# title: "__string",
|
707
|
+
# },
|
708
|
+
# })
|
709
|
+
#
|
710
|
+
# @overload put_me_articles_article_id_drafts(params = {})
|
711
|
+
# @param [Hash] params ({})
|
712
|
+
def put_me_articles_article_id_drafts(params = {}, options = {})
|
713
|
+
req = build_request(:put_me_articles_article_id_drafts, params)
|
714
|
+
req.send_request(options)
|
715
|
+
end
|
716
|
+
|
717
|
+
# @option params [required, String] :article_id
|
718
|
+
#
|
719
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
720
|
+
#
|
721
|
+
# @example Request syntax with placeholder values
|
722
|
+
#
|
723
|
+
# resp = client.put_me_articles_article_id_drafts_publish({
|
724
|
+
# article_id: "__string", # required
|
725
|
+
# })
|
726
|
+
#
|
727
|
+
# @overload put_me_articles_article_id_drafts_publish(params = {})
|
728
|
+
# @param [Hash] params ({})
|
729
|
+
def put_me_articles_article_id_drafts_publish(params = {}, options = {})
|
730
|
+
req = build_request(:put_me_articles_article_id_drafts_publish, params)
|
731
|
+
req.send_request(options)
|
732
|
+
end
|
733
|
+
|
734
|
+
# @option params [required, String] :article_id
|
735
|
+
#
|
736
|
+
# @option params [required, Types::UpdateArticle] :update_article
|
737
|
+
#
|
738
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
739
|
+
#
|
740
|
+
# @example Request syntax with placeholder values
|
741
|
+
#
|
742
|
+
# resp = client.put_me_articles_article_id_public({
|
743
|
+
# article_id: "__string", # required
|
744
|
+
# update_article: { # required
|
745
|
+
# body: "__string",
|
746
|
+
# eye_catch_url: "__string",
|
747
|
+
# overview: "__string",
|
748
|
+
# title: "__string",
|
749
|
+
# },
|
750
|
+
# })
|
751
|
+
#
|
752
|
+
# @overload put_me_articles_article_id_public(params = {})
|
753
|
+
# @param [Hash] params ({})
|
754
|
+
def put_me_articles_article_id_public(params = {}, options = {})
|
755
|
+
req = build_request(:put_me_articles_article_id_public, params)
|
756
|
+
req.send_request(options)
|
757
|
+
end
|
758
|
+
|
759
|
+
# @option params [required, String] :article_id
|
760
|
+
#
|
761
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
762
|
+
#
|
763
|
+
# @example Request syntax with placeholder values
|
764
|
+
#
|
765
|
+
# resp = client.put_me_articles_article_id_public_republish({
|
766
|
+
# article_id: "__string", # required
|
767
|
+
# })
|
768
|
+
#
|
769
|
+
# @overload put_me_articles_article_id_public_republish(params = {})
|
770
|
+
# @param [Hash] params ({})
|
771
|
+
def put_me_articles_article_id_public_republish(params = {}, options = {})
|
772
|
+
req = build_request(:put_me_articles_article_id_public_republish, params)
|
773
|
+
req.send_request(options)
|
774
|
+
end
|
775
|
+
|
776
|
+
# @option params [required, String] :article_id
|
777
|
+
#
|
778
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
779
|
+
#
|
780
|
+
# @example Request syntax with placeholder values
|
781
|
+
#
|
782
|
+
# resp = client.put_me_articles_article_id_public_unpublish({
|
783
|
+
# article_id: "__string", # required
|
784
|
+
# })
|
785
|
+
#
|
786
|
+
# @overload put_me_articles_article_id_public_unpublish(params = {})
|
787
|
+
# @param [Hash] params ({})
|
788
|
+
def put_me_articles_article_id_public_unpublish(params = {}, options = {})
|
789
|
+
req = build_request(:put_me_articles_article_id_public_unpublish, params)
|
790
|
+
req.send_request(options)
|
791
|
+
end
|
792
|
+
|
793
|
+
# @option params [required, Types::MeInfoUpdate] :me_info_update
|
794
|
+
#
|
795
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
796
|
+
#
|
797
|
+
# @example Request syntax with placeholder values
|
798
|
+
#
|
799
|
+
# resp = client.put_me_info({
|
800
|
+
# me_info_update: { # required
|
801
|
+
# self_introduction: "__string",
|
802
|
+
# user_display_name: "__string",
|
803
|
+
# },
|
804
|
+
# })
|
805
|
+
#
|
806
|
+
# @overload put_me_info(params = {})
|
807
|
+
# @param [Hash] params ({})
|
808
|
+
def put_me_info(params = {}, options = {})
|
809
|
+
req = build_request(:put_me_info, params)
|
810
|
+
req.send_request(options)
|
811
|
+
end
|
812
|
+
|
813
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
814
|
+
#
|
815
|
+
# @overload put_me_unread_notification_managers(params = {})
|
816
|
+
# @param [Hash] params ({})
|
817
|
+
def put_me_unread_notification_managers(params = {}, options = {})
|
818
|
+
req = build_request(:put_me_unread_notification_managers, params)
|
819
|
+
req.send_request(options)
|
820
|
+
end
|
821
|
+
|
822
|
+
# @!endgroup
|
823
|
+
|
824
|
+
# @param params ({})
|
825
|
+
# @api private
|
826
|
+
def build_request(operation_name, params = {})
|
827
|
+
handlers = @handlers.for(operation_name)
|
828
|
+
authorizer = nil
|
829
|
+
if config.api.operation(operation_name).authorizer
|
830
|
+
authorizer_name = config.api.operation(operation_name).authorizer
|
831
|
+
config.api.authorizers.each do |_, auth|
|
832
|
+
authorizer = auth if auth.name == authorizer_name
|
833
|
+
end
|
834
|
+
end
|
835
|
+
context = Seahorse::Client::RequestContext.new(
|
836
|
+
operation_name: operation_name,
|
837
|
+
operation: config.api.operation(operation_name),
|
838
|
+
authorizer: authorizer,
|
839
|
+
client: self,
|
840
|
+
params: params,
|
841
|
+
config: config)
|
842
|
+
context[:gem_name] = 'alis-sdk-ruby'
|
843
|
+
context[:gem_version] = '0.13.0'
|
844
|
+
Seahorse::Client::Request.new(handlers, context)
|
845
|
+
end
|
846
|
+
|
847
|
+
# @api private
|
848
|
+
# @deprecated
|
849
|
+
def waiter_names
|
850
|
+
[]
|
851
|
+
end
|
852
|
+
|
853
|
+
class << self
|
854
|
+
|
855
|
+
# @api private
|
856
|
+
attr_reader :identifier
|
857
|
+
|
858
|
+
# @api private
|
859
|
+
def errors_module
|
860
|
+
Errors
|
861
|
+
end
|
862
|
+
|
863
|
+
end
|
864
|
+
end
|
865
|
+
end
|