tencentcloud-sdk-cms 3.0.581 → 3.0.582
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190321/client.rb +28 -112
- data/lib/v20190321/models.rb +702 -834
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b49d65992b5741ddd5da1c1fc095cbdd7f24fa9
|
4
|
+
data.tar.gz: 9506341d792375ea2d332509681ba1bd075ef2f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9219b11089ef2ac1986115e85d0972584c5238f7d497fa32d158d46d4f04e9d8381d8bed8d46d332c07cc4f05d12548fd3c418b6ba8970d3f82d781a5e9899f0
|
7
|
+
data.tar.gz: 355eb76a5196627e3be15db646f7808bae90af42c4bdcbe64ef01d446fd49274195757a7e339b35795644c2c89996850312b096157880c4fbbc8a65438aab762
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.582
|
data/lib/v20190321/client.rb
CHANGED
@@ -29,18 +29,16 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
#
|
33
|
-
# <br>
|
34
|
-
# 通过该接口可以将图片新增到样本库。
|
32
|
+
# 创建关键词接口
|
35
33
|
|
36
|
-
# @param request: Request instance for
|
37
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::
|
38
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::
|
39
|
-
def
|
40
|
-
body = send_request('
|
34
|
+
# @param request: Request instance for CreateKeywordsSamples.
|
35
|
+
# @type request: :class:`Tencentcloud::cms::V20190321::CreateKeywordsSamplesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cms::V20190321::CreateKeywordsSamplesResponse`
|
37
|
+
def CreateKeywordsSamples(request)
|
38
|
+
body = send_request('CreateKeywordsSamples', request.serialize)
|
41
39
|
response = JSON.parse(body)
|
42
40
|
if response['Response'].key?('Error') == false
|
43
|
-
model =
|
41
|
+
model = CreateKeywordsSamplesResponse.new
|
44
42
|
model.deserialize(response['Response'])
|
45
43
|
model
|
46
44
|
else
|
@@ -55,18 +53,16 @@ module TencentCloud
|
|
55
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
54
|
end
|
57
55
|
|
58
|
-
#
|
59
|
-
# <br>
|
60
|
-
# 通过该接口可以将文本新增到样本库。
|
56
|
+
# 删除关键词接口
|
61
57
|
|
62
|
-
# @param request: Request instance for
|
63
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::
|
64
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::
|
65
|
-
def
|
66
|
-
body = send_request('
|
58
|
+
# @param request: Request instance for DeleteLibSamples.
|
59
|
+
# @type request: :class:`Tencentcloud::cms::V20190321::DeleteLibSamplesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cms::V20190321::DeleteLibSamplesResponse`
|
61
|
+
def DeleteLibSamples(request)
|
62
|
+
body = send_request('DeleteLibSamples', request.serialize)
|
67
63
|
response = JSON.parse(body)
|
68
64
|
if response['Response'].key?('Error') == false
|
69
|
-
model =
|
65
|
+
model = DeleteLibSamplesResponse.new
|
70
66
|
model.deserialize(response['Response'])
|
71
67
|
model
|
72
68
|
else
|
@@ -81,18 +77,16 @@ module TencentCloud
|
|
81
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
82
78
|
end
|
83
79
|
|
84
|
-
#
|
85
|
-
# <br>
|
86
|
-
# 删除图片样本库,支持批量删除,一次提交不超过20个。
|
80
|
+
# 获取用户词库列表
|
87
81
|
|
88
|
-
# @param request: Request instance for
|
89
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::
|
90
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::
|
91
|
-
def
|
92
|
-
body = send_request('
|
82
|
+
# @param request: Request instance for DescribeKeywordsLibs.
|
83
|
+
# @type request: :class:`Tencentcloud::cms::V20190321::DescribeKeywordsLibsRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::cms::V20190321::DescribeKeywordsLibsResponse`
|
85
|
+
def DescribeKeywordsLibs(request)
|
86
|
+
body = send_request('DescribeKeywordsLibs', request.serialize)
|
93
87
|
response = JSON.parse(body)
|
94
88
|
if response['Response'].key?('Error') == false
|
95
|
-
model =
|
89
|
+
model = DescribeKeywordsLibsResponse.new
|
96
90
|
model.deserialize(response['Response'])
|
97
91
|
model
|
98
92
|
else
|
@@ -107,70 +101,16 @@ module TencentCloud
|
|
107
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
108
102
|
end
|
109
103
|
|
110
|
-
#
|
111
|
-
# <br>
|
112
|
-
# 删除文本样本库,暂时只支持单个删除。
|
104
|
+
# 获取关键词接口
|
113
105
|
|
114
|
-
# @param request: Request instance for
|
115
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::
|
116
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::
|
117
|
-
def
|
118
|
-
body = send_request('
|
106
|
+
# @param request: Request instance for DescribeLibSamples.
|
107
|
+
# @type request: :class:`Tencentcloud::cms::V20190321::DescribeLibSamplesRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::cms::V20190321::DescribeLibSamplesResponse`
|
109
|
+
def DescribeLibSamples(request)
|
110
|
+
body = send_request('DescribeLibSamples', request.serialize)
|
119
111
|
response = JSON.parse(body)
|
120
112
|
if response['Response'].key?('Error') == false
|
121
|
-
model =
|
122
|
-
model.deserialize(response['Response'])
|
123
|
-
model
|
124
|
-
else
|
125
|
-
code = response['Response']['Error']['Code']
|
126
|
-
message = response['Response']['Error']['Message']
|
127
|
-
reqid = response['Response']['RequestId']
|
128
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
129
|
-
end
|
130
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
131
|
-
raise e
|
132
|
-
rescue StandardError => e
|
133
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
134
|
-
end
|
135
|
-
|
136
|
-
# 本文档适用于图片内容安全、视频内容安全自定义识别库的管理。
|
137
|
-
# <br>
|
138
|
-
# 查询图片样本库,支持批量查询。
|
139
|
-
|
140
|
-
# @param request: Request instance for DescribeFileSample.
|
141
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::DescribeFileSampleRequest`
|
142
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::DescribeFileSampleResponse`
|
143
|
-
def DescribeFileSample(request)
|
144
|
-
body = send_request('DescribeFileSample', request.serialize)
|
145
|
-
response = JSON.parse(body)
|
146
|
-
if response['Response'].key?('Error') == false
|
147
|
-
model = DescribeFileSampleResponse.new
|
148
|
-
model.deserialize(response['Response'])
|
149
|
-
model
|
150
|
-
else
|
151
|
-
code = response['Response']['Error']['Code']
|
152
|
-
message = response['Response']['Error']['Message']
|
153
|
-
reqid = response['Response']['RequestId']
|
154
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
155
|
-
end
|
156
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
157
|
-
raise e
|
158
|
-
rescue StandardError => e
|
159
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
160
|
-
end
|
161
|
-
|
162
|
-
# 本文档适用于文本内容安全、音频内容安全自定义识别库的管理。
|
163
|
-
# <br>
|
164
|
-
# 支持批量查询文本样本库。
|
165
|
-
|
166
|
-
# @param request: Request instance for DescribeTextSample.
|
167
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::DescribeTextSampleRequest`
|
168
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::DescribeTextSampleResponse`
|
169
|
-
def DescribeTextSample(request)
|
170
|
-
body = send_request('DescribeTextSample', request.serialize)
|
171
|
-
response = JSON.parse(body)
|
172
|
-
if response['Response'].key?('Error') == false
|
173
|
-
model = DescribeTextSampleResponse.new
|
113
|
+
model = DescribeLibSamplesResponse.new
|
174
114
|
model.deserialize(response['Response'])
|
175
115
|
model
|
176
116
|
else
|
@@ -209,30 +149,6 @@ module TencentCloud
|
|
209
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
210
150
|
end
|
211
151
|
|
212
|
-
# 人工审核对外接口
|
213
|
-
|
214
|
-
# @param request: Request instance for ManualReview.
|
215
|
-
# @type request: :class:`Tencentcloud::cms::V20190321::ManualReviewRequest`
|
216
|
-
# @rtype: :class:`Tencentcloud::cms::V20190321::ManualReviewResponse`
|
217
|
-
def ManualReview(request)
|
218
|
-
body = send_request('ManualReview', request.serialize)
|
219
|
-
response = JSON.parse(body)
|
220
|
-
if response['Response'].key?('Error') == false
|
221
|
-
model = ManualReviewResponse.new
|
222
|
-
model.deserialize(response['Response'])
|
223
|
-
model
|
224
|
-
else
|
225
|
-
code = response['Response']['Error']['Code']
|
226
|
-
message = response['Response']['Error']['Message']
|
227
|
-
reqid = response['Response']['RequestId']
|
228
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
229
|
-
end
|
230
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
231
|
-
raise e
|
232
|
-
rescue StandardError => e
|
233
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
234
|
-
end
|
235
|
-
|
236
152
|
# 文本内容检测(Text Moderation)服务使用了深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。
|
237
153
|
|
238
154
|
# @param request: Request instance for TextModeration.
|