tencentcloud-sdk-taf 3.0.763 → 3.0.764
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/v20200210/client.rb +24 -0
- data/lib/v20200210/models.rb +116 -0
- 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: 87dfdc503c5a441a83729deb9f2231d53166ff44
|
4
|
+
data.tar.gz: e389a0556d0b5a822b1d9e99c9ffe44c062c5112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a74879616a7ee09909ddd48035a2148fb4ae478a831ed76f3bc07515b8e2f7ddbc65696fcdcfbd5dbe873df95ca063d8f84eb6933ca43e94fa52d84f4803618
|
7
|
+
data.tar.gz: a8f8593263fd26d18bd8e46f0641ab8ca1bf53b55aa63301d309d2301982c41a681c2fa7462dd5acd31fbc54ffcfc7c532a9a4c93ef3934b57f72d3d4690cf1c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.764
|
data/lib/v20200210/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 虚假流量识别
|
33
|
+
|
34
|
+
# @param request: Request instance for ManagePortraitRisk.
|
35
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::ManagePortraitRiskRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::ManagePortraitRiskResponse`
|
37
|
+
def ManagePortraitRisk(request)
|
38
|
+
body = send_request('ManagePortraitRisk', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ManagePortraitRiskResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 流量反欺诈-流量验准定制版
|
33
57
|
|
34
58
|
# @param request: Request instance for RecognizeCustomizedAudience.
|
data/lib/v20200210/models.rb
CHANGED
@@ -227,6 +227,122 @@ module TencentCloud
|
|
227
227
|
end
|
228
228
|
end
|
229
229
|
|
230
|
+
# 业务入参
|
231
|
+
class ManagePortraitRiskInput < TencentCloud::Common::AbstractModel
|
232
|
+
# @param PostTime: 请求时间戳秒
|
233
|
+
# @type PostTime: Integer
|
234
|
+
# @param UserIp: 用户公网ip(仅支持IPv4)
|
235
|
+
# @type UserIp: String
|
236
|
+
# @param Channel: 渠道号
|
237
|
+
# @type Channel: Integer
|
238
|
+
|
239
|
+
attr_accessor :PostTime, :UserIp, :Channel
|
240
|
+
|
241
|
+
def initialize(posttime=nil, userip=nil, channel=nil)
|
242
|
+
@PostTime = posttime
|
243
|
+
@UserIp = userip
|
244
|
+
@Channel = channel
|
245
|
+
end
|
246
|
+
|
247
|
+
def deserialize(params)
|
248
|
+
@PostTime = params['PostTime']
|
249
|
+
@UserIp = params['UserIp']
|
250
|
+
@Channel = params['Channel']
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# 业务出参
|
255
|
+
class ManagePortraitRiskOutput < TencentCloud::Common::AbstractModel
|
256
|
+
# @param Code: 返回码(0,成功,其他失败)
|
257
|
+
# @type Code: Integer
|
258
|
+
# @param Message: 返回码对应的信息
|
259
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
260
|
+
# @type Message: String
|
261
|
+
# @param Value: 结果
|
262
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
263
|
+
# @type Value: :class:`Tencentcloud::Taf.v20200210.models.ManagePortraitRiskValueOutput`
|
264
|
+
|
265
|
+
attr_accessor :Code, :Message, :Value
|
266
|
+
|
267
|
+
def initialize(code=nil, message=nil, value=nil)
|
268
|
+
@Code = code
|
269
|
+
@Message = message
|
270
|
+
@Value = value
|
271
|
+
end
|
272
|
+
|
273
|
+
def deserialize(params)
|
274
|
+
@Code = params['Code']
|
275
|
+
@Message = params['Message']
|
276
|
+
unless params['Value'].nil?
|
277
|
+
@Value = ManagePortraitRiskValueOutput.new
|
278
|
+
@Value.deserialize(params['Value'])
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# ManagePortraitRisk请求参数结构体
|
284
|
+
class ManagePortraitRiskRequest < TencentCloud::Common::AbstractModel
|
285
|
+
# @param BusinessSecurityData: 业务入参
|
286
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Taf.v20200210.models.ManagePortraitRiskInput`
|
287
|
+
|
288
|
+
attr_accessor :BusinessSecurityData
|
289
|
+
|
290
|
+
def initialize(businesssecuritydata=nil)
|
291
|
+
@BusinessSecurityData = businesssecuritydata
|
292
|
+
end
|
293
|
+
|
294
|
+
def deserialize(params)
|
295
|
+
unless params['BusinessSecurityData'].nil?
|
296
|
+
@BusinessSecurityData = ManagePortraitRiskInput.new
|
297
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
298
|
+
end
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
# ManagePortraitRisk返回参数结构体
|
303
|
+
class ManagePortraitRiskResponse < TencentCloud::Common::AbstractModel
|
304
|
+
# @param Data: 业务出参
|
305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
306
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.ManagePortraitRiskOutput`
|
307
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
308
|
+
# @type RequestId: String
|
309
|
+
|
310
|
+
attr_accessor :Data, :RequestId
|
311
|
+
|
312
|
+
def initialize(data=nil, requestid=nil)
|
313
|
+
@Data = data
|
314
|
+
@RequestId = requestid
|
315
|
+
end
|
316
|
+
|
317
|
+
def deserialize(params)
|
318
|
+
unless params['Data'].nil?
|
319
|
+
@Data = ManagePortraitRiskOutput.new
|
320
|
+
@Data.deserialize(params['Data'])
|
321
|
+
end
|
322
|
+
@RequestId = params['RequestId']
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# 业务出参
|
327
|
+
class ManagePortraitRiskValueOutput < TencentCloud::Common::AbstractModel
|
328
|
+
# @param UserIp: 对应的IP
|
329
|
+
# @type UserIp: String
|
330
|
+
# @param Level: 返回风险等级, 0 - 4,0代表无风险,数值越大,风险越高
|
331
|
+
# @type Level: Integer
|
332
|
+
|
333
|
+
attr_accessor :UserIp, :Level
|
334
|
+
|
335
|
+
def initialize(userip=nil, level=nil)
|
336
|
+
@UserIp = userip
|
337
|
+
@Level = level
|
338
|
+
end
|
339
|
+
|
340
|
+
def deserialize(params)
|
341
|
+
@UserIp = params['UserIp']
|
342
|
+
@Level = params['Level']
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
230
346
|
# 流量反欺诈-验准返回值
|
231
347
|
class OutputRecognizeTargetAudience < TencentCloud::Common::AbstractModel
|
232
348
|
# @param Code: 返回码(0,成功,其他失败)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-taf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.764
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|