tencentcloud-sdk-tms 3.0.682 → 3.0.684
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 +75 -2
- 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: 9d8dd7c77f72920b1aa9f77cda05d07fad7e6b51
|
4
|
+
data.tar.gz: d3981ab2f5a0077957f7f4c3a65f84f964976595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a38f9ff817b8942ea9e4e13805376be348a118ef529c1cb21040116d85392a9a6a5687d92fc224002a40418d056413a85a27f83d35c4e2d31b6a159ed31aaffa
|
7
|
+
data.tar.gz: f1e0c9ea931815ec95e9467afd667c51ef3a984b8c8426a96daccc870bb29c29417be228a63d33ab5ca70fc07990a43a5a990018f15b9ded6b4e63ee29926a4d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.684
|
data/lib/v20201229/models.rb
CHANGED
@@ -45,10 +45,13 @@ module TencentCloud
|
|
45
45
|
# @param Tags: 该字段用于返回当前一级标签(Label)下的关键词、子标签及分数。
|
46
46
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
47
47
|
# @type Tags: Array
|
48
|
+
# @param HitInfos: 该字段用于返回违规文本命中信息
|
49
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
50
|
+
# @type HitInfos: Array
|
48
51
|
|
49
|
-
attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel, :Tags
|
52
|
+
attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel, :Tags, :HitInfos
|
50
53
|
|
51
|
-
def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, tags=nil)
|
54
|
+
def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, tags=nil, hitinfos=nil)
|
52
55
|
@Label = label
|
53
56
|
@Suggestion = suggestion
|
54
57
|
@Keywords = keywords
|
@@ -58,6 +61,7 @@ module TencentCloud
|
|
58
61
|
@LibName = libname
|
59
62
|
@SubLabel = sublabel
|
60
63
|
@Tags = tags
|
64
|
+
@HitInfos = hitinfos
|
61
65
|
end
|
62
66
|
|
63
67
|
def deserialize(params)
|
@@ -77,6 +81,14 @@ module TencentCloud
|
|
77
81
|
@Tags << tag_tmp
|
78
82
|
end
|
79
83
|
end
|
84
|
+
unless params['HitInfos'].nil?
|
85
|
+
@HitInfos = []
|
86
|
+
params['HitInfos'].each do |i|
|
87
|
+
hitinfo_tmp = HitInfo.new
|
88
|
+
hitinfo_tmp.deserialize(i)
|
89
|
+
@HitInfos << hitinfo_tmp
|
90
|
+
end
|
91
|
+
end
|
80
92
|
end
|
81
93
|
end
|
82
94
|
|
@@ -122,6 +134,67 @@ module TencentCloud
|
|
122
134
|
end
|
123
135
|
end
|
124
136
|
|
137
|
+
# 关键词命中位置信息
|
138
|
+
class HitInfo < TencentCloud::Common::AbstractModel
|
139
|
+
# @param Type: 标识模型命中还是关键词命中
|
140
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
141
|
+
# @type Type: String
|
142
|
+
# @param Keyword: 命中关键词
|
143
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
144
|
+
# @type Keyword: String
|
145
|
+
# @param LibName: 自定义词库名称
|
146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
147
|
+
# @type LibName: String
|
148
|
+
# @param Positions: 位置信息
|
149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
150
|
+
# @type Positions: Array
|
151
|
+
|
152
|
+
attr_accessor :Type, :Keyword, :LibName, :Positions
|
153
|
+
|
154
|
+
def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
|
155
|
+
@Type = type
|
156
|
+
@Keyword = keyword
|
157
|
+
@LibName = libname
|
158
|
+
@Positions = positions
|
159
|
+
end
|
160
|
+
|
161
|
+
def deserialize(params)
|
162
|
+
@Type = params['Type']
|
163
|
+
@Keyword = params['Keyword']
|
164
|
+
@LibName = params['LibName']
|
165
|
+
unless params['Positions'].nil?
|
166
|
+
@Positions = []
|
167
|
+
params['Positions'].each do |i|
|
168
|
+
positions_tmp = Positions.new
|
169
|
+
positions_tmp.deserialize(i)
|
170
|
+
@Positions << positions_tmp
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# 标识命中的违规关键词位置信息
|
177
|
+
class Positions < TencentCloud::Common::AbstractModel
|
178
|
+
# @param Start: 关键词起始位置
|
179
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
180
|
+
# @type Start: Integer
|
181
|
+
# @param End: 关键词结束位置
|
182
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
183
|
+
# @type End: Integer
|
184
|
+
|
185
|
+
attr_accessor :Start, :End
|
186
|
+
|
187
|
+
def initialize(start=nil, _end=nil)
|
188
|
+
@Start = start
|
189
|
+
@End = _end
|
190
|
+
end
|
191
|
+
|
192
|
+
def deserialize(params)
|
193
|
+
@Start = params['Start']
|
194
|
+
@End = params['End']
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
125
198
|
# 账号风险检测结果
|
126
199
|
class RiskDetails < TencentCloud::Common::AbstractModel
|
127
200
|
# @param Label: 该字段用于返回账号信息检测对应的风险类别,取值为:**RiskAccount**(账号存在风险)、**RiskIP**(IP地址存在风险)、**RiskIMEI**(移动设备识别码存在风险)。
|
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.
|
4
|
+
version: 3.0.684
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|