tencentcloud-sdk-tms 3.0.450 → 3.0.452

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201229/models.rb +48 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9c9bfe330575830bb0139a95036e9ee60717f0f
4
- data.tar.gz: 629202f112eec2455362ac0df7f570fc00ecf187
3
+ metadata.gz: a88378320850cc7f09e15f487aaf0e4e4c430b5b
4
+ data.tar.gz: fd5c608304e5ccdd4e32d3d1aae611d1c2aadd16
5
5
  SHA512:
6
- metadata.gz: cce459cdee09a2a12c4f0ca895c2346cf1dff5847b92f05853585c90c13ce73601687561da9096e244285750a897e73258fd80bcaca9cc13189fda720c83a4c0
7
- data.tar.gz: 02948e3a5cef3973d2c559c601a47fdb4dd589cb9a4e5d32eb56aa401b9b6f54ac6af4d4a528d0378bb8e6e9814abb53ce29fbc16ad143c1e2af751b1c26a94c
6
+ metadata.gz: b155fc98d097cc84249969f4c9ac95d2f79c4ab42936903bcb382d6c11753bb8a8d2796cb928e4b3e4c38f6d5730ed6f165dd7105fbb79506fe53ea095dcc8df
7
+ data.tar.gz: 346b3a7704c05dceba306421e499433492ec9b8681f8ddec15168cfcde58258b00bff17aaed7c7a1b268679d9e143cefc0dd30bc8a48d32d70e2ee51659256fc
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.450
1
+ 3.0.452
@@ -42,10 +42,13 @@ module TencentCloud
42
42
  # @param SubLabel: 该字段用于返回当前标签(Label)下的二级标签。
43
43
  # 注意:此字段可能返回 null,表示取不到有效值。
44
44
  # @type SubLabel: String
45
+ # @param Tags: 该字段用于返回当前一级标签(Label)下的关键词、子标签及分数。
46
+ # 注意:此字段可能返回 null,表示取不到有效值。
47
+ # @type Tags: Array
45
48
 
46
- attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel
49
+ attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel, :Tags
47
50
 
48
- def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil)
51
+ def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, tags=nil)
49
52
  @Label = label
50
53
  @Suggestion = suggestion
51
54
  @Keywords = keywords
@@ -54,6 +57,7 @@ module TencentCloud
54
57
  @LibId = libid
55
58
  @LibName = libname
56
59
  @SubLabel = sublabel
60
+ @Tags = tags
57
61
  end
58
62
 
59
63
  def deserialize(params)
@@ -65,6 +69,14 @@ module TencentCloud
65
69
  @LibId = params['LibId']
66
70
  @LibName = params['LibName']
67
71
  @SubLabel = params['SubLabel']
72
+ unless params['Tags'].nil?
73
+ @Tags = []
74
+ params['Tags'].each do |i|
75
+ tag_tmp = Tag.new
76
+ tag_tmp.deserialize(i)
77
+ @Tags << tag_tmp
78
+ end
79
+ end
68
80
  end
69
81
  end
70
82
 
@@ -130,6 +142,33 @@ module TencentCloud
130
142
  end
131
143
  end
132
144
 
145
+ # 该字段用于返回审核结果明细字段的标签及分数
146
+ class Tag < TencentCloud::Common::AbstractModel
147
+ # @param Keyword: 该字段用于返回命中的关键词
148
+ # 注意:此字段可能返回 null,表示取不到有效值。
149
+ # @type Keyword: String
150
+ # @param SubLabel: 该字段用于返回子标签
151
+ # 注意:此字段可能返回 null,表示取不到有效值。
152
+ # @type SubLabel: String
153
+ # @param Score: 该字段用于返回子标签对应的分数
154
+ # 注意:此字段可能返回 null,表示取不到有效值。
155
+ # @type Score: Integer
156
+
157
+ attr_accessor :Keyword, :SubLabel, :Score
158
+
159
+ def initialize(keyword=nil, sublabel=nil, score=nil)
160
+ @Keyword = keyword
161
+ @SubLabel = sublabel
162
+ @Score = score
163
+ end
164
+
165
+ def deserialize(params)
166
+ @Keyword = params['Keyword']
167
+ @SubLabel = params['SubLabel']
168
+ @Score = params['Score']
169
+ end
170
+ end
171
+
133
172
  # TextModeration请求参数结构体
134
173
  class TextModerationRequest < TencentCloud::Common::AbstractModel
135
174
  # @param Content: 该字段表示待检测对象的文本内容,文本需要按utf-8格式编码,长度不能超过10000个字符(按unicode编码计算),并进行 Base64加密
@@ -196,12 +235,15 @@ module TencentCloud
196
235
  # @param SubLabel: 该字段用于返回当前标签(Label)下的二级标签。
197
236
  # 注意:此字段可能返回 null,表示取不到有效值。
198
237
  # @type SubLabel: String
238
+ # @param ContextText: 该字段用于返回上下文关联文本
239
+ # 注意:此字段可能返回 null,表示取不到有效值。
240
+ # @type ContextText: String
199
241
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
200
242
  # @type RequestId: String
201
243
 
202
- attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :RequestId
244
+ attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :RequestId
203
245
 
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)
246
+ def initialize(biztype=nil, label=nil, suggestion=nil, keywords=nil, score=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, sublabel=nil, contexttext=nil, requestid=nil)
205
247
  @BizType = biztype
206
248
  @Label = label
207
249
  @Suggestion = suggestion
@@ -212,6 +254,7 @@ module TencentCloud
212
254
  @Extra = extra
213
255
  @DataId = dataid
214
256
  @SubLabel = sublabel
257
+ @ContextText = contexttext
215
258
  @RequestId = requestid
216
259
  end
217
260
 
@@ -240,6 +283,7 @@ module TencentCloud
240
283
  @Extra = params['Extra']
241
284
  @DataId = params['DataId']
242
285
  @SubLabel = params['SubLabel']
286
+ @ContextText = params['ContextText']
243
287
  @RequestId = params['RequestId']
244
288
  end
245
289
  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: 3.0.450
4
+ version: 3.0.452
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common