tencentcloud-sdk-rce 1.0.232 → 1.0.236
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/v20201103/client.rb +48 -0
- data/lib/v20201103/models.rb +190 -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: d3c7d4f606179c31e4adb3030eb27c5db26c2a4f
|
4
|
+
data.tar.gz: 8f7f4b9c374b719c882713426c6c6e656e5ff7b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75af34778214571549f64aacaef4cacc7cab761e490737c4f75d9b09221a53551e306414509b4c8a4931b94e57e2f9a4a5eae2da29dc1f4d068f9600468fcb2
|
7
|
+
data.tar.gz: 9562f0149be1724cd4b471c52db519ccea4f4deceea5ca29917dab58584186dad5a5472fd948a9e2a15a4e58fd3f11dbc094cddf17a68491217d7dd9d05703ef
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.236
|
data/lib/v20201103/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 此接口用于查询风险评估结果
|
33
|
+
|
34
|
+
# @param request: Request instance for DescribeRiskAssessment.
|
35
|
+
# @type request: :class:`Tencentcloud::rce::V20201103::DescribeRiskAssessmentRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::rce::V20201103::DescribeRiskAssessmentResponse`
|
37
|
+
def DescribeRiskAssessment(request)
|
38
|
+
body = send_request('DescribeRiskAssessment', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeRiskAssessmentResponse.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 DescribeRiskModel.
|
@@ -53,6 +77,30 @@ module TencentCloud
|
|
53
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
78
|
end
|
55
79
|
|
80
|
+
# 以图表形式展示三种请求状态的趋势变化
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeRiskTrends.
|
83
|
+
# @type request: :class:`Tencentcloud::rce::V20201103::DescribeRiskTrendsRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::rce::V20201103::DescribeRiskTrendsResponse`
|
85
|
+
def DescribeRiskTrends(request)
|
86
|
+
body = send_request('DescribeRiskTrends', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeRiskTrendsResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
56
104
|
# 全栈式风控引擎(RiskControlEngine,RCE)是基于人工智能技术和腾讯20年风控实战沉淀,依托腾讯海量业务构建的风控引擎,以轻量级的 SaaS 服务方式接入,帮助您快速解决注册、登录、营销活动等关键场景遇到的欺诈问题,实时防御黑灰产作恶。
|
57
105
|
|
58
106
|
# @param request: Request instance for ManageMarketingRisk.
|
data/lib/v20201103/models.rb
CHANGED
@@ -54,6 +54,33 @@ module TencentCloud
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
# DescribeRiskAssessment请求参数结构体
|
58
|
+
class DescribeRiskAssessmentRequest < TencentCloud::Common::AbstractModel
|
59
|
+
|
60
|
+
|
61
|
+
def initialize()
|
62
|
+
end
|
63
|
+
|
64
|
+
def deserialize(params)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# DescribeRiskAssessment返回参数结构体
|
69
|
+
class DescribeRiskAssessmentResponse < TencentCloud::Common::AbstractModel
|
70
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
71
|
+
# @type RequestId: String
|
72
|
+
|
73
|
+
attr_accessor :RequestId
|
74
|
+
|
75
|
+
def initialize(requestid=nil)
|
76
|
+
@RequestId = requestid
|
77
|
+
end
|
78
|
+
|
79
|
+
def deserialize(params)
|
80
|
+
@RequestId = params['RequestId']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
57
84
|
# DescribeRiskModel请求参数结构体
|
58
85
|
class DescribeRiskModelRequest < TencentCloud::Common::AbstractModel
|
59
86
|
# @param BusinessSecurityData: 业务入参
|
@@ -96,6 +123,48 @@ module TencentCloud
|
|
96
123
|
end
|
97
124
|
end
|
98
125
|
|
126
|
+
# DescribeRiskTrends请求参数结构体
|
127
|
+
class DescribeRiskTrendsRequest < TencentCloud::Common::AbstractModel
|
128
|
+
# @param BusinessSecurityData: 业务入参
|
129
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Rce.v20201103.models.InputFrontRisk`
|
130
|
+
|
131
|
+
attr_accessor :BusinessSecurityData
|
132
|
+
|
133
|
+
def initialize(businesssecuritydata=nil)
|
134
|
+
@BusinessSecurityData = businesssecuritydata
|
135
|
+
end
|
136
|
+
|
137
|
+
def deserialize(params)
|
138
|
+
unless params['BusinessSecurityData'].nil?
|
139
|
+
@BusinessSecurityData = InputFrontRisk.new
|
140
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# DescribeRiskTrends返回参数结构体
|
146
|
+
class DescribeRiskTrendsResponse < TencentCloud::Common::AbstractModel
|
147
|
+
# @param Data: 业务出参
|
148
|
+
# @type Data: :class:`Tencentcloud::Rce.v20201103.models.OutputFrontRiskData`
|
149
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
150
|
+
# @type RequestId: String
|
151
|
+
|
152
|
+
attr_accessor :Data, :RequestId
|
153
|
+
|
154
|
+
def initialize(data=nil, requestid=nil)
|
155
|
+
@Data = data
|
156
|
+
@RequestId = requestid
|
157
|
+
end
|
158
|
+
|
159
|
+
def deserialize(params)
|
160
|
+
unless params['Data'].nil?
|
161
|
+
@Data = OutputFrontRiskData.new
|
162
|
+
@Data.deserialize(params['Data'])
|
163
|
+
end
|
164
|
+
@RequestId = params['RequestId']
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
99
168
|
# 全栈式风控引擎入参
|
100
169
|
class InputCryptoManageMarketingRisk < TencentCloud::Common::AbstractModel
|
101
170
|
# @param IsAuthorized: 是否授权
|
@@ -164,6 +233,42 @@ module TencentCloud
|
|
164
233
|
end
|
165
234
|
end
|
166
235
|
|
236
|
+
# 风险趋势统计--入参
|
237
|
+
class InputFrontRisk < TencentCloud::Common::AbstractModel
|
238
|
+
# @param EventId: 事件ID
|
239
|
+
# @type EventId: Integer
|
240
|
+
# @param StartTime: 开始时间
|
241
|
+
# @type StartTime: String
|
242
|
+
# @param EndTime: 结束时间
|
243
|
+
# @type EndTime: String
|
244
|
+
# @param Type: 趋势类型
|
245
|
+
# @type Type: Integer
|
246
|
+
# @param CurrentStartTime: 当前开始时间
|
247
|
+
# @type CurrentStartTime: String
|
248
|
+
# @param CurrentEndTime: 当前结束时间
|
249
|
+
# @type CurrentEndTime: String
|
250
|
+
|
251
|
+
attr_accessor :EventId, :StartTime, :EndTime, :Type, :CurrentStartTime, :CurrentEndTime
|
252
|
+
|
253
|
+
def initialize(eventid=nil, starttime=nil, endtime=nil, type=nil, currentstarttime=nil, currentendtime=nil)
|
254
|
+
@EventId = eventid
|
255
|
+
@StartTime = starttime
|
256
|
+
@EndTime = endtime
|
257
|
+
@Type = type
|
258
|
+
@CurrentStartTime = currentstarttime
|
259
|
+
@CurrentEndTime = currentendtime
|
260
|
+
end
|
261
|
+
|
262
|
+
def deserialize(params)
|
263
|
+
@EventId = params['EventId']
|
264
|
+
@StartTime = params['StartTime']
|
265
|
+
@EndTime = params['EndTime']
|
266
|
+
@Type = params['Type']
|
267
|
+
@CurrentStartTime = params['CurrentStartTime']
|
268
|
+
@CurrentEndTime = params['CurrentEndTime']
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
167
272
|
# 全栈式风控引擎入参
|
168
273
|
class InputManageMarketingRisk < TencentCloud::Common::AbstractModel
|
169
274
|
# @param Account: 账号信息。
|
@@ -435,6 +540,91 @@ module TencentCloud
|
|
435
540
|
end
|
436
541
|
end
|
437
542
|
|
543
|
+
# 风险趋势统计出参,需要为数组
|
544
|
+
class OutputFrontRisk < TencentCloud::Common::AbstractModel
|
545
|
+
# @param Name: 名称
|
546
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
547
|
+
# @type Name: String
|
548
|
+
# @param Value: 参数值
|
549
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
550
|
+
# @type Value: Array
|
551
|
+
|
552
|
+
attr_accessor :Name, :Value
|
553
|
+
|
554
|
+
def initialize(name=nil, value=nil)
|
555
|
+
@Name = name
|
556
|
+
@Value = value
|
557
|
+
end
|
558
|
+
|
559
|
+
def deserialize(params)
|
560
|
+
@Name = params['Name']
|
561
|
+
unless params['Value'].nil?
|
562
|
+
@Value = []
|
563
|
+
params['Value'].each do |i|
|
564
|
+
outputfrontriskvalue_tmp = OutputFrontRiskValue.new
|
565
|
+
outputfrontriskvalue_tmp.deserialize(i)
|
566
|
+
@Value << outputfrontriskvalue_tmp
|
567
|
+
end
|
568
|
+
end
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# 风险趋势统计--出参
|
573
|
+
class OutputFrontRiskData < TencentCloud::Common::AbstractModel
|
574
|
+
# @param Code: 返回码[0:成功;非0:标识失败错误码]。
|
575
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
576
|
+
# @type Code: Integer
|
577
|
+
# @param Message: 出错消息[UTF-8编码]。
|
578
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
579
|
+
# @type Message: String
|
580
|
+
# @param Value: 返回结果。
|
581
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
582
|
+
# @type Value: Array
|
583
|
+
|
584
|
+
attr_accessor :Code, :Message, :Value
|
585
|
+
|
586
|
+
def initialize(code=nil, message=nil, value=nil)
|
587
|
+
@Code = code
|
588
|
+
@Message = message
|
589
|
+
@Value = value
|
590
|
+
end
|
591
|
+
|
592
|
+
def deserialize(params)
|
593
|
+
@Code = params['Code']
|
594
|
+
@Message = params['Message']
|
595
|
+
unless params['Value'].nil?
|
596
|
+
@Value = []
|
597
|
+
params['Value'].each do |i|
|
598
|
+
outputfrontrisk_tmp = OutputFrontRisk.new
|
599
|
+
outputfrontrisk_tmp.deserialize(i)
|
600
|
+
@Value << outputfrontrisk_tmp
|
601
|
+
end
|
602
|
+
end
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
# 风险趋势统计--值
|
607
|
+
class OutputFrontRiskValue < TencentCloud::Common::AbstractModel
|
608
|
+
# @param Requests: 请求次数
|
609
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
610
|
+
# @type Requests: Integer
|
611
|
+
# @param Index: 日期标签
|
612
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
613
|
+
# @type Index: String
|
614
|
+
|
615
|
+
attr_accessor :Requests, :Index
|
616
|
+
|
617
|
+
def initialize(requests=nil, index=nil)
|
618
|
+
@Requests = requests
|
619
|
+
@Index = index
|
620
|
+
end
|
621
|
+
|
622
|
+
def deserialize(params)
|
623
|
+
@Requests = params['Requests']
|
624
|
+
@Index = params['Index']
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
438
628
|
# 全栈式风控引擎出参
|
439
629
|
class OutputManageMarketingRisk < TencentCloud::Common::AbstractModel
|
440
630
|
# @param Code: 返回码。0表示成功,非0标识失败错误码。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-rce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.236
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|