tencentcloud-sdk-tms 1.0.226 → 1.0.227
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201229/models.rb +15 -5
- 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: 187ad593e0a3ce5e74bacdcf45f4964d1f17800d
|
4
|
+
data.tar.gz: e4abf7a8d1ea3b7c2ef885c5574309a788d2a3d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bee872d809918c6df9e1f86924bbff1c98b337aadc20d769fc9dcb7b97b197d520b191505002bfcb85c839b47c946ef2962a9b62e286ff4e366381f71319ec6
|
7
|
+
data.tar.gz: 12e5fc97c15834718f6128ec636bfa372f950d88926d7664b0034a649091f1d237d00e7157b33d8e2fc1f38525e161251c67a0746e4d0a4b4a041bf556c5ee3c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.227
|
data/lib/v20201229/models.rb
CHANGED
@@ -39,10 +39,13 @@ module TencentCloud
|
|
39
39
|
# @param LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
|
40
40
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
41
41
|
# @type LibName: String
|
42
|
+
# @param SubLabel: 该字段用于返回当前标签(Label)下的二级标签。
|
43
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
44
|
+
# @type SubLabel: String
|
42
45
|
|
43
|
-
attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName
|
46
|
+
attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel
|
44
47
|
|
45
|
-
def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil)
|
48
|
+
def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil)
|
46
49
|
@Label = label
|
47
50
|
@Suggestion = suggestion
|
48
51
|
@Keywords = keywords
|
@@ -50,6 +53,7 @@ module TencentCloud
|
|
50
53
|
@LibType = libtype
|
51
54
|
@LibId = libid
|
52
55
|
@LibName = libname
|
56
|
+
@SubLabel = sublabel
|
53
57
|
end
|
54
58
|
|
55
59
|
def deserialize(params)
|
@@ -60,6 +64,7 @@ module TencentCloud
|
|
60
64
|
@LibType = params['LibType']
|
61
65
|
@LibId = params['LibId']
|
62
66
|
@LibName = params['LibName']
|
67
|
+
@SubLabel = params['SubLabel']
|
63
68
|
end
|
64
69
|
end
|
65
70
|
|
@@ -127,7 +132,7 @@ module TencentCloud
|
|
127
132
|
|
128
133
|
# TextModeration请求参数结构体
|
129
134
|
class TextModerationRequest < TencentCloud::Common::AbstractModel
|
130
|
-
# @param Content:
|
135
|
+
# @param Content: 该字段表示待检测对象的文本内容,长度不能超过10000(按unicode编码计算)
|
131
136
|
# @type Content: String
|
132
137
|
# @param BizType: 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。<br>备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype
|
133
138
|
# @type BizType: String
|
@@ -188,12 +193,15 @@ module TencentCloud
|
|
188
193
|
# @param DataId: 该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应
|
189
194
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
190
195
|
# @type DataId: String
|
196
|
+
# @param SubLabel: 该字段用于返回当前标签(Label)下的二级标签。
|
197
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
198
|
+
# @type SubLabel: String
|
191
199
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
192
200
|
# @type RequestId: String
|
193
201
|
|
194
|
-
attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :RequestId
|
202
|
+
attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :RequestId
|
195
203
|
|
196
|
-
def initialize(biztype=nil, label=nil, suggestion=nil, keywords=nil, score=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, requestid=nil)
|
204
|
+
def initialize(biztype=nil, label=nil, suggestion=nil, keywords=nil, score=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, sublabel=nil, requestid=nil)
|
197
205
|
@BizType = biztype
|
198
206
|
@Label = label
|
199
207
|
@Suggestion = suggestion
|
@@ -203,6 +211,7 @@ module TencentCloud
|
|
203
211
|
@RiskDetails = riskdetails
|
204
212
|
@Extra = extra
|
205
213
|
@DataId = dataid
|
214
|
+
@SubLabel = sublabel
|
206
215
|
@RequestId = requestid
|
207
216
|
end
|
208
217
|
|
@@ -230,6 +239,7 @@ module TencentCloud
|
|
230
239
|
end
|
231
240
|
@Extra = params['Extra']
|
232
241
|
@DataId = params['DataId']
|
242
|
+
@SubLabel = params['SubLabel']
|
233
243
|
@RequestId = params['RequestId']
|
234
244
|
end
|
235
245
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.227
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|