tencentcloud-sdk-rce 1.0.200

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 16135f3ed5e55bc9c39a5cb658ade24f78462677
4
+ data.tar.gz: 5d3fd303e69889b55f361b4267138b4b47c5292b
5
+ SHA512:
6
+ metadata.gz: 3e7832c66a6aae70edb1dbb2724c87e2ab48d9cd7ed1b350de2b03b6d4690ef633d5931b648ca652c7ed80b114dff5f11d90b3598e5b06e8d71adcb460f54960
7
+ data.tar.gz: d329d430b9009b6fb0e741d92688a5774f66b9604f260cf99f6174d8d4a3b504f026c6779c619256531c0524839e4ac16d60fca76de43f21a5e0be0d232fbc30
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20201103/client'
6
+ require_relative 'v20201103/models'
7
+
8
+ module TencentCloud
9
+ module Rce
10
+ end
11
+ end
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Rce
21
+ module V20201103
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-11-03'
26
+ api_endpoint = 'rce.tencentcloudapi.com'
27
+ sdk_version = 'RCE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 依托人工智能技术和腾讯丰富的风控实战经验,根据用户提供的数据和业务场景,给客户提供定制化模型服务
33
+
34
+ # @param request: Request instance for DescribeRiskModel.
35
+ # @type request: :class:`Tencentcloud::rce::V20201103::DescribeRiskModelRequest`
36
+ # @rtype: :class:`Tencentcloud::rce::V20201103::DescribeRiskModelResponse`
37
+ def DescribeRiskModel(request)
38
+ body = send_request('DescribeRiskModel', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeRiskModelResponse.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
+
56
+ # 全栈式风控引擎(RiskControlEngine,RCE)是基于人工智能技术和腾讯20年风控实战沉淀,依托腾讯海量业务构建的风控引擎,以轻量级的 SaaS 服务方式接入,帮助您快速解决注册、登录、营销活动等关键场景遇到的欺诈问题,实时防御黑灰产作恶。
57
+
58
+ # @param request: Request instance for ManageMarketingRisk.
59
+ # @type request: :class:`Tencentcloud::rce::V20201103::ManageMarketingRiskRequest`
60
+ # @rtype: :class:`Tencentcloud::rce::V20201103::ManageMarketingRiskResponse`
61
+ def ManageMarketingRisk(request)
62
+ body = send_request('ManageMarketingRisk', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = ManageMarketingRiskResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,658 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Rce
19
+ module V20201103
20
+ # 账号信息。
21
+ class AccountInfo < TencentCloud::Common::AbstractModel
22
+ # @param AccountType: 账号类型
23
+ # @type AccountType: Integer
24
+ # @param QQAccount: QQ账号信息,AccountType是1时,该字段必填。
25
+ # @type QQAccount: :class:`Tencentcloud::Rce.v20201103.models.QQAccountInfo`
26
+ # @param WeChatAccount: 微信账号信息,AccountType是2时,该字段必填。
27
+ # @type WeChatAccount: :class:`Tencentcloud::Rce.v20201103.models.WeChatAccountInfo`
28
+ # @param OtherAccount: 其它账号信息,AccountType是0、4、8或10004时,该字段必填。
29
+ # @type OtherAccount: :class:`Tencentcloud::Rce.v20201103.models.OtherAccountInfo`
30
+
31
+ attr_accessor :AccountType, :QQAccount, :WeChatAccount, :OtherAccount
32
+
33
+ def initialize(accounttype=nil, qqaccount=nil, wechataccount=nil, otheraccount=nil)
34
+ @AccountType = accounttype
35
+ @QQAccount = qqaccount
36
+ @WeChatAccount = wechataccount
37
+ @OtherAccount = otheraccount
38
+ end
39
+
40
+ def deserialize(params)
41
+ @AccountType = params['AccountType']
42
+ unless params['QQAccount'].nil?
43
+ @QQAccount = QQAccountInfo.new
44
+ @QQAccount.deserialize(params['QQAccount'])
45
+ end
46
+ unless params['WeChatAccount'].nil?
47
+ @WeChatAccount = WeChatAccountInfo.new
48
+ @WeChatAccount.deserialize(params['WeChatAccount'])
49
+ end
50
+ unless params['OtherAccount'].nil?
51
+ @OtherAccount = OtherAccountInfo.new
52
+ @OtherAccount.deserialize(params['OtherAccount'])
53
+ end
54
+ end
55
+ end
56
+
57
+ # DescribeRiskModel请求参数结构体
58
+ class DescribeRiskModelRequest < TencentCloud::Common::AbstractModel
59
+ # @param BusinessSecurityData: 业务入参
60
+ # @type BusinessSecurityData: :class:`Tencentcloud::Rce.v20201103.models.InputDescribeRiskModelData`
61
+
62
+ attr_accessor :BusinessSecurityData
63
+
64
+ def initialize(businesssecuritydata=nil)
65
+ @BusinessSecurityData = businesssecuritydata
66
+ end
67
+
68
+ def deserialize(params)
69
+ unless params['BusinessSecurityData'].nil?
70
+ @BusinessSecurityData = InputDescribeRiskModelData.new
71
+ @BusinessSecurityData.deserialize(params['BusinessSecurityData'])
72
+ end
73
+ end
74
+ end
75
+
76
+ # DescribeRiskModel返回参数结构体
77
+ class DescribeRiskModelResponse < TencentCloud::Common::AbstractModel
78
+ # @param Data: 业务出参
79
+ # @type Data: :class:`Tencentcloud::Rce.v20201103.models.OutputDescribeRiskModel`
80
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
81
+ # @type RequestId: String
82
+
83
+ attr_accessor :Data, :RequestId
84
+
85
+ def initialize(data=nil, requestid=nil)
86
+ @Data = data
87
+ @RequestId = requestid
88
+ end
89
+
90
+ def deserialize(params)
91
+ unless params['Data'].nil?
92
+ @Data = OutputDescribeRiskModel.new
93
+ @Data.deserialize(params['Data'])
94
+ end
95
+ @RequestId = params['RequestId']
96
+ end
97
+ end
98
+
99
+ # 全栈式风控引擎入参
100
+ class InputCryptoManageMarketingRisk < TencentCloud::Common::AbstractModel
101
+ # @param IsAuthorized: 是否授权
102
+ # @type IsAuthorized: String
103
+ # @param CryptoType: 加密类型
104
+ # @type CryptoType: String
105
+ # @param CryptoContent: 加密内容
106
+ # @type CryptoContent: String
107
+
108
+ attr_accessor :IsAuthorized, :CryptoType, :CryptoContent
109
+
110
+ def initialize(isauthorized=nil, cryptotype=nil, cryptocontent=nil)
111
+ @IsAuthorized = isauthorized
112
+ @CryptoType = cryptotype
113
+ @CryptoContent = cryptocontent
114
+ end
115
+
116
+ def deserialize(params)
117
+ @IsAuthorized = params['IsAuthorized']
118
+ @CryptoType = params['CryptoType']
119
+ @CryptoContent = params['CryptoContent']
120
+ end
121
+ end
122
+
123
+ # 客户请求入参
124
+ class InputDescribeRiskModelData < TencentCloud::Common::AbstractModel
125
+ # @param UserData: 业务参数加密后的签名值
126
+ # @type UserData: String
127
+ # @param ApplyDate: 调用时间戳,精确到秒
128
+ # @type ApplyDate: Integer
129
+ # @param UserId: 客户业务侧标识用户的唯一ID
130
+ # @type UserId: String
131
+
132
+ attr_accessor :UserData, :ApplyDate, :UserId
133
+
134
+ def initialize(userdata=nil, applydate=nil, userid=nil)
135
+ @UserData = userdata
136
+ @ApplyDate = applydate
137
+ @UserId = userid
138
+ end
139
+
140
+ def deserialize(params)
141
+ @UserData = params['UserData']
142
+ @ApplyDate = params['ApplyDate']
143
+ @UserId = params['UserId']
144
+ end
145
+ end
146
+
147
+ # 入参的详细参数信息
148
+ class InputDetails < TencentCloud::Common::AbstractModel
149
+ # @param FieldName: 字段名称
150
+ # @type FieldName: String
151
+ # @param FieldValue: 字段值
152
+ # @type FieldValue: String
153
+
154
+ attr_accessor :FieldName, :FieldValue
155
+
156
+ def initialize(fieldname=nil, fieldvalue=nil)
157
+ @FieldName = fieldname
158
+ @FieldValue = fieldvalue
159
+ end
160
+
161
+ def deserialize(params)
162
+ @FieldName = params['FieldName']
163
+ @FieldValue = params['FieldValue']
164
+ end
165
+ end
166
+
167
+ # 全栈式风控引擎入参
168
+ class InputManageMarketingRisk < TencentCloud::Common::AbstractModel
169
+ # @param Account: 账号信息。
170
+ # @type Account: :class:`Tencentcloud::Rce.v20201103.models.AccountInfo`
171
+ # @param SceneCode: 场景类型:场景SceneCode, 控制台上新建对应的场景并获取对应的值;
172
+ # 例如:e_register_protection_1521184361
173
+ # 控制台链接:https://console.cloud.tencent.com/rce/risk/sceneroot;
174
+ # @type SceneCode: String
175
+ # @param UserIp: 登录来源的外网IP
176
+ # @type UserIp: String
177
+ # @param PostTime: 时间戳
178
+ # @type PostTime: Integer
179
+ # @param UserId: 用户唯一标识。
180
+ # @type UserId: String
181
+ # @param DeviceToken: 设备指纹token。
182
+ # @type DeviceToken: String
183
+ # @param DeviceBusinessId: 设备指纹BusinessId
184
+ # @type DeviceBusinessId: Integer
185
+ # @param BusinessId: 业务ID。网站或应用在多个业务中使用此服务,通过此ID区分统计数据。
186
+ # @type BusinessId: Integer
187
+ # @param Nickname: 昵称,UTF-8 编码。
188
+ # @type Nickname: String
189
+ # @param EmailAddress: 用户邮箱地址(非系统自动生成)。
190
+ # @type EmailAddress: String
191
+ # @param CheckDevice: 是否识别设备异常:
192
+ # 0:不识别。
193
+ # 1:识别。
194
+ # @type CheckDevice: Integer
195
+ # @param CookieHash: 用户HTTP请求中的Cookie进行2次hash的值,只要保证相同Cookie的hash值一致即可。
196
+ # @type CookieHash: String
197
+ # @param Referer: 用户HTTP请求的Referer值。
198
+ # @type Referer: String
199
+ # @param UserAgent: 用户HTTP请求的User-Agent值。
200
+ # @type UserAgent: String
201
+ # @param XForwardedFor: 用户HTTP请求的X-Forwarded-For值。
202
+ # @type XForwardedFor: String
203
+ # @param MacAddress: MAC地址或设备唯一标识。
204
+ # @type MacAddress: String
205
+ # @param VendorId: 手机制造商ID,如果手机注册,请带上此信息。
206
+ # @type VendorId: String
207
+ # @param DeviceType: 设备类型:
208
+ # 1:Android
209
+ # 2:IOS
210
+ # @type DeviceType: Integer
211
+ # @param Details: 详细信息
212
+ # @type Details: Array
213
+ # @param Sponsor: 可选填写。详情请跳转至SponsorInfo查看。
214
+ # @type Sponsor: :class:`Tencentcloud::Rce.v20201103.models.SponsorInfo`
215
+ # @param OnlineScam: 可选填写。详情请跳转至OnlineScamInfo查看。
216
+ # @type OnlineScam: :class:`Tencentcloud::Rce.v20201103.models.OnlineScamInfo`
217
+
218
+ attr_accessor :Account, :SceneCode, :UserIp, :PostTime, :UserId, :DeviceToken, :DeviceBusinessId, :BusinessId, :Nickname, :EmailAddress, :CheckDevice, :CookieHash, :Referer, :UserAgent, :XForwardedFor, :MacAddress, :VendorId, :DeviceType, :Details, :Sponsor, :OnlineScam
219
+
220
+ def initialize(account=nil, scenecode=nil, userip=nil, posttime=nil, userid=nil, devicetoken=nil, devicebusinessid=nil, businessid=nil, nickname=nil, emailaddress=nil, checkdevice=nil, cookiehash=nil, referer=nil, useragent=nil, xforwardedfor=nil, macaddress=nil, vendorid=nil, devicetype=nil, details=nil, sponsor=nil, onlinescam=nil)
221
+ @Account = account
222
+ @SceneCode = scenecode
223
+ @UserIp = userip
224
+ @PostTime = posttime
225
+ @UserId = userid
226
+ @DeviceToken = devicetoken
227
+ @DeviceBusinessId = devicebusinessid
228
+ @BusinessId = businessid
229
+ @Nickname = nickname
230
+ @EmailAddress = emailaddress
231
+ @CheckDevice = checkdevice
232
+ @CookieHash = cookiehash
233
+ @Referer = referer
234
+ @UserAgent = useragent
235
+ @XForwardedFor = xforwardedfor
236
+ @MacAddress = macaddress
237
+ @VendorId = vendorid
238
+ @DeviceType = devicetype
239
+ @Details = details
240
+ @Sponsor = sponsor
241
+ @OnlineScam = onlinescam
242
+ end
243
+
244
+ def deserialize(params)
245
+ unless params['Account'].nil?
246
+ @Account = AccountInfo.new
247
+ @Account.deserialize(params['Account'])
248
+ end
249
+ @SceneCode = params['SceneCode']
250
+ @UserIp = params['UserIp']
251
+ @PostTime = params['PostTime']
252
+ @UserId = params['UserId']
253
+ @DeviceToken = params['DeviceToken']
254
+ @DeviceBusinessId = params['DeviceBusinessId']
255
+ @BusinessId = params['BusinessId']
256
+ @Nickname = params['Nickname']
257
+ @EmailAddress = params['EmailAddress']
258
+ @CheckDevice = params['CheckDevice']
259
+ @CookieHash = params['CookieHash']
260
+ @Referer = params['Referer']
261
+ @UserAgent = params['UserAgent']
262
+ @XForwardedFor = params['XForwardedFor']
263
+ @MacAddress = params['MacAddress']
264
+ @VendorId = params['VendorId']
265
+ @DeviceType = params['DeviceType']
266
+ unless params['Details'].nil?
267
+ @Details = []
268
+ params['Details'].each do |i|
269
+ inputdetails_tmp = InputDetails.new
270
+ inputdetails_tmp.deserialize(i)
271
+ @Details << inputdetails_tmp
272
+ end
273
+ end
274
+ unless params['Sponsor'].nil?
275
+ @Sponsor = SponsorInfo.new
276
+ @Sponsor.deserialize(params['Sponsor'])
277
+ end
278
+ unless params['OnlineScam'].nil?
279
+ @OnlineScam = OnlineScamInfo.new
280
+ @OnlineScam.deserialize(params['OnlineScam'])
281
+ end
282
+ end
283
+ end
284
+
285
+ # ManageMarketingRisk请求参数结构体
286
+ class ManageMarketingRiskRequest < TencentCloud::Common::AbstractModel
287
+ # @param BusinessSecurityData: 业务入参
288
+ # @type BusinessSecurityData: :class:`Tencentcloud::Rce.v20201103.models.InputManageMarketingRisk`
289
+ # @param BusinessCryptoData: 业务入参
290
+ # @type BusinessCryptoData: :class:`Tencentcloud::Rce.v20201103.models.InputCryptoManageMarketingRisk`
291
+
292
+ attr_accessor :BusinessSecurityData, :BusinessCryptoData
293
+
294
+ def initialize(businesssecuritydata=nil, businesscryptodata=nil)
295
+ @BusinessSecurityData = businesssecuritydata
296
+ @BusinessCryptoData = businesscryptodata
297
+ end
298
+
299
+ def deserialize(params)
300
+ unless params['BusinessSecurityData'].nil?
301
+ @BusinessSecurityData = InputManageMarketingRisk.new
302
+ @BusinessSecurityData.deserialize(params['BusinessSecurityData'])
303
+ end
304
+ unless params['BusinessCryptoData'].nil?
305
+ @BusinessCryptoData = InputCryptoManageMarketingRisk.new
306
+ @BusinessCryptoData.deserialize(params['BusinessCryptoData'])
307
+ end
308
+ end
309
+ end
310
+
311
+ # ManageMarketingRisk返回参数结构体
312
+ class ManageMarketingRiskResponse < TencentCloud::Common::AbstractModel
313
+ # @param Data: 业务出参
314
+ # @type Data: :class:`Tencentcloud::Rce.v20201103.models.OutputManageMarketingRisk`
315
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
316
+ # @type RequestId: String
317
+
318
+ attr_accessor :Data, :RequestId
319
+
320
+ def initialize(data=nil, requestid=nil)
321
+ @Data = data
322
+ @RequestId = requestid
323
+ end
324
+
325
+ def deserialize(params)
326
+ unless params['Data'].nil?
327
+ @Data = OutputManageMarketingRisk.new
328
+ @Data.deserialize(params['Data'])
329
+ end
330
+ @RequestId = params['RequestId']
331
+ end
332
+ end
333
+
334
+ # 诈骗信息。
335
+ class OnlineScamInfo < TencentCloud::Common::AbstractModel
336
+ # @param ContentLabel: 内容标签。
337
+ # @type ContentLabel: String
338
+ # @param ContentRiskLevel: 内容风险等级:
339
+ # 0:正常。
340
+ # 1:可疑。
341
+ # @type ContentRiskLevel: Integer
342
+ # @param ContentType: 内容产生形式:
343
+ # 0:对话。
344
+ # 1:广播。
345
+ # @type ContentType: Integer
346
+ # @param FraudType: 类型
347
+ # @type FraudType: Integer
348
+ # @param FraudAccount: 账号
349
+ # @type FraudAccount: String
350
+
351
+ attr_accessor :ContentLabel, :ContentRiskLevel, :ContentType, :FraudType, :FraudAccount
352
+
353
+ def initialize(contentlabel=nil, contentrisklevel=nil, contenttype=nil, fraudtype=nil, fraudaccount=nil)
354
+ @ContentLabel = contentlabel
355
+ @ContentRiskLevel = contentrisklevel
356
+ @ContentType = contenttype
357
+ @FraudType = fraudtype
358
+ @FraudAccount = fraudaccount
359
+ end
360
+
361
+ def deserialize(params)
362
+ @ContentLabel = params['ContentLabel']
363
+ @ContentRiskLevel = params['ContentRiskLevel']
364
+ @ContentType = params['ContentType']
365
+ @FraudType = params['FraudType']
366
+ @FraudAccount = params['FraudAccount']
367
+ end
368
+ end
369
+
370
+ # 其它账号信息。
371
+ class OtherAccountInfo < TencentCloud::Common::AbstractModel
372
+ # @param AccountId: id
373
+ # @type AccountId: String
374
+ # @param MobilePhone: 手机号
375
+ # @type MobilePhone: String
376
+ # @param DeviceId: id
377
+ # @type DeviceId: String
378
+
379
+ attr_accessor :AccountId, :MobilePhone, :DeviceId
380
+
381
+ def initialize(accountid=nil, mobilephone=nil, deviceid=nil)
382
+ @AccountId = accountid
383
+ @MobilePhone = mobilephone
384
+ @DeviceId = deviceid
385
+ end
386
+
387
+ def deserialize(params)
388
+ @AccountId = params['AccountId']
389
+ @MobilePhone = params['MobilePhone']
390
+ @DeviceId = params['DeviceId']
391
+ end
392
+ end
393
+
394
+ # 业务出参
395
+ class OutputDescribeRiskModel < TencentCloud::Common::AbstractModel
396
+ # @param Code: 请求返回状态值,0为成功,别的结合Message查看
397
+ # 注意:此字段可能返回 null,表示取不到有效值。
398
+ # @type Code: Integer
399
+ # @param Message: 请求返回信息
400
+ # @type Message: String
401
+ # @param Value: 请求返回结果
402
+ # @type Value: :class:`Tencentcloud::Rce.v20201103.models.OutputDescribeRiskModelValue`
403
+
404
+ attr_accessor :Code, :Message, :Value
405
+
406
+ def initialize(code=nil, message=nil, value=nil)
407
+ @Code = code
408
+ @Message = message
409
+ @Value = value
410
+ end
411
+
412
+ def deserialize(params)
413
+ @Code = params['Code']
414
+ @Message = params['Message']
415
+ unless params['Value'].nil?
416
+ @Value = OutputDescribeRiskModelValue.new
417
+ @Value.deserialize(params['Value'])
418
+ end
419
+ end
420
+ end
421
+
422
+ # 风控建模服务出参对应值
423
+ class OutputDescribeRiskModelValue < TencentCloud::Common::AbstractModel
424
+ # @param ApplyScore: 模型分数值
425
+ # @type ApplyScore: Float
426
+
427
+ attr_accessor :ApplyScore
428
+
429
+ def initialize(applyscore=nil)
430
+ @ApplyScore = applyscore
431
+ end
432
+
433
+ def deserialize(params)
434
+ @ApplyScore = params['ApplyScore']
435
+ end
436
+ end
437
+
438
+ # 全栈式风控引擎出参
439
+ class OutputManageMarketingRisk < TencentCloud::Common::AbstractModel
440
+ # @param Code: 返回码。0表示成功,非0标识失败错误码。
441
+ # 注意:此字段可能返回 null,表示取不到有效值。
442
+ # @type Code: Integer
443
+ # @param Message: UTF-8编码,出错消息。
444
+ # 注意:此字段可能返回 null,表示取不到有效值。
445
+ # @type Message: String
446
+ # @param Value: 业务详情。
447
+ # 注意:此字段可能返回 null,表示取不到有效值。
448
+ # @type Value: :class:`Tencentcloud::Rce.v20201103.models.OutputManageMarketingRiskValue`
449
+ # @param UUid: 控制台显示的req_id。
450
+ # 注意:此字段可能返回 null,表示取不到有效值。
451
+ # @type UUid: String
452
+
453
+ attr_accessor :Code, :Message, :Value, :UUid
454
+
455
+ def initialize(code=nil, message=nil, value=nil, uuid=nil)
456
+ @Code = code
457
+ @Message = message
458
+ @Value = value
459
+ @UUid = uuid
460
+ end
461
+
462
+ def deserialize(params)
463
+ @Code = params['Code']
464
+ @Message = params['Message']
465
+ unless params['Value'].nil?
466
+ @Value = OutputManageMarketingRiskValue.new
467
+ @Value.deserialize(params['Value'])
468
+ end
469
+ @UUid = params['UUid']
470
+ end
471
+ end
472
+
473
+ # 全栈式风控引擎出参值
474
+ class OutputManageMarketingRiskValue < TencentCloud::Common::AbstractModel
475
+ # @param UserId: 账号ID。对应输入参数:
476
+ # AccountType是1时,对应QQ的OpenID。
477
+ # AccountType是2时,对应微信的OpenID/UnionID。
478
+ # AccountType是4时,对应手机号。
479
+ # AccountType是8时,对应imei、idfa、imeiMD5或者idfaMD5。
480
+ # AccountType是0时,对应账号信息。
481
+ # AccountType是10004时,对应手机号的MD5。
482
+ # 注意:此字段可能返回 null,表示取不到有效值。
483
+ # @type UserId: String
484
+ # @param PostTime: 操作时间戳,单位秒(对应输入参数)。
485
+ # 注意:此字段可能返回 null,表示取不到有效值。
486
+ # @type PostTime: Integer
487
+ # @param AssociateAccount: 对应输入参数,AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID。
488
+ # 注意:此字段可能返回 null,表示取不到有效值。
489
+ # @type AssociateAccount: String
490
+ # @param UserIp: 操作来源的外网IP(对应输入参数)。
491
+ # 注意:此字段可能返回 null,表示取不到有效值。
492
+ # @type UserIp: String
493
+ # @param RiskLevel: 风险值
494
+ # pass : 无恶意
495
+ # review:需要人工审核
496
+ # reject:拒绝,高风险恶意
497
+ # 注意:此字段可能返回 null,表示取不到有效值。
498
+ # @type RiskLevel: String
499
+ # @param RiskType: 风险类型,请参考官网风险类型
500
+ # 账号风险
501
+ # 1 账号信用低,账号近期存在因恶意被处罚历史,网络低活跃,被举报等因素
502
+ # 11 疑似 低活跃账号,账号活跃度与正常用户有差异
503
+ # 2 垃圾账号 疑似批量注册小号,近期存在严重违规或大量举报
504
+ # 21 疑似小号 账号有疑似线上养号,小号等行为
505
+ # 22 疑似违规账号 账号曾有违规行为、曾被举报过、曾因违规被处罚过等
506
+ # 3 无效账号 送检账号参数无法成功解析,请检查微信 openid 是否有误/appid与QQopenid无法关联/微信openid权限是否有开通/手机号是否为中国大陆手机号;
507
+ # 4 黑名单 该账号在业务侧有过拉黑记录
508
+ # 5 白名单 业务自行有添加过白名单记录
509
+ # 行为风险
510
+ # 101 批量操作 存在 ip/设备/环境等因素的聚集性异常
511
+ # 1011 疑似 IP 属性聚集,出现 IP 聚集
512
+ # 1012 疑似 设备属性聚集 出现设备聚集
513
+ # 102 自动机 疑似自动机批量请求
514
+ # 103 恶意行为-网赚 疑似网赚
515
+ # 104 微信登录态无效 检查 WeChatAccessToken 参数,是否已经失效;
516
+ # 201 环境风险 环境异常 操作 ip/设备/环境存在异常。当前 ip 为非常用 ip 或恶意 ip 段
517
+ # 2011 疑似 非常用IP 请求 当前请求 IP 非该账号常用 IP
518
+ # 2012 疑似 IP 异常 使用 idc 机房 ip 或 使用代理 ip 或 使用恶意 ip 等
519
+ # 205 非公网有效ip 传进来的 IP 地址为内网 ip 地址或者 ip 保留地址;
520
+ # 设备风险
521
+ # 206 设备异常 该设备存在异常的使用行为
522
+ # 2061 疑似 非常用设备 当前请求的设备非该账号常用设备
523
+ # 2062 疑似 虚拟设备 请求设备为模拟器、脚本、云设备等虚拟设备
524
+ # 2063 疑似 群控设备 请求设备为猫池、手机墙等群控设备
525
+ # 注意:此字段可能返回 null,表示取不到有效值。
526
+ # @type RiskType: Array
527
+
528
+ attr_accessor :UserId, :PostTime, :AssociateAccount, :UserIp, :RiskLevel, :RiskType
529
+
530
+ def initialize(userid=nil, posttime=nil, associateaccount=nil, userip=nil, risklevel=nil, risktype=nil)
531
+ @UserId = userid
532
+ @PostTime = posttime
533
+ @AssociateAccount = associateaccount
534
+ @UserIp = userip
535
+ @RiskLevel = risklevel
536
+ @RiskType = risktype
537
+ end
538
+
539
+ def deserialize(params)
540
+ @UserId = params['UserId']
541
+ @PostTime = params['PostTime']
542
+ @AssociateAccount = params['AssociateAccount']
543
+ @UserIp = params['UserIp']
544
+ @RiskLevel = params['RiskLevel']
545
+ @RiskType = params['RiskType']
546
+ end
547
+ end
548
+
549
+ # QQ账号信息。
550
+ class QQAccountInfo < TencentCloud::Common::AbstractModel
551
+ # @param QQOpenId: QQ的OpenID。
552
+ # @type QQOpenId: String
553
+ # @param AppIdUser: QQ分配给网站或应用的AppId,用来唯一标识网站或应用。
554
+ # @type AppIdUser: String
555
+ # @param AssociateAccount: 用于标识QQ用户登录后所关联业务自身的账号ID。
556
+ # @type AssociateAccount: String
557
+ # @param MobilePhone: 账号绑定的手机号。
558
+ # @type MobilePhone: String
559
+ # @param DeviceId: 用户设备号。
560
+ # @type DeviceId: String
561
+
562
+ attr_accessor :QQOpenId, :AppIdUser, :AssociateAccount, :MobilePhone, :DeviceId
563
+
564
+ def initialize(qqopenid=nil, appiduser=nil, associateaccount=nil, mobilephone=nil, deviceid=nil)
565
+ @QQOpenId = qqopenid
566
+ @AppIdUser = appiduser
567
+ @AssociateAccount = associateaccount
568
+ @MobilePhone = mobilephone
569
+ @DeviceId = deviceid
570
+ end
571
+
572
+ def deserialize(params)
573
+ @QQOpenId = params['QQOpenId']
574
+ @AppIdUser = params['AppIdUser']
575
+ @AssociateAccount = params['AssociateAccount']
576
+ @MobilePhone = params['MobilePhone']
577
+ @DeviceId = params['DeviceId']
578
+ end
579
+ end
580
+
581
+ # 网赚防刷相关参数
582
+ class SponsorInfo < TencentCloud::Common::AbstractModel
583
+ # @param SponsorOpenId: OpenID
584
+ # @type SponsorOpenId: String
585
+ # @param SponsorDeviceNumber: 设备号
586
+ # @type SponsorDeviceNumber: String
587
+ # @param SponsorPhone: 手机号
588
+ # @type SponsorPhone: String
589
+ # @param SponsorIp: IP
590
+ # @type SponsorIp: String
591
+ # @param CampaignUrl: 链接
592
+ # @type CampaignUrl: String
593
+
594
+ attr_accessor :SponsorOpenId, :SponsorDeviceNumber, :SponsorPhone, :SponsorIp, :CampaignUrl
595
+
596
+ def initialize(sponsoropenid=nil, sponsordevicenumber=nil, sponsorphone=nil, sponsorip=nil, campaignurl=nil)
597
+ @SponsorOpenId = sponsoropenid
598
+ @SponsorDeviceNumber = sponsordevicenumber
599
+ @SponsorPhone = sponsorphone
600
+ @SponsorIp = sponsorip
601
+ @CampaignUrl = campaignurl
602
+ end
603
+
604
+ def deserialize(params)
605
+ @SponsorOpenId = params['SponsorOpenId']
606
+ @SponsorDeviceNumber = params['SponsorDeviceNumber']
607
+ @SponsorPhone = params['SponsorPhone']
608
+ @SponsorIp = params['SponsorIp']
609
+ @CampaignUrl = params['CampaignUrl']
610
+ end
611
+ end
612
+
613
+ # 微信账号信息。
614
+ class WeChatAccountInfo < TencentCloud::Common::AbstractModel
615
+ # @param WeChatOpenId: 微信的OpenID/UnionID 。
616
+ # @type WeChatOpenId: String
617
+ # @param WeChatSubType: 微信开放账号类型:
618
+ # 1:微信公众号/微信第三方登录。
619
+ # 2:微信小程序。
620
+ # @type WeChatSubType: Integer
621
+ # @param RandStr: 随机串。如果WeChatSubType是2,该字段必填。Token签名随机数,建议16个字符。
622
+ # @type RandStr: String
623
+ # @param WeChatAccessToken: token
624
+ # @type WeChatAccessToken: String
625
+ # @param AssociateAccount: 用于标识微信用户登录后所关联业务自身的账号ID。
626
+ # @type AssociateAccount: String
627
+ # @param MobilePhone: 账号绑定的手机号。
628
+ # @type MobilePhone: String
629
+ # @param DeviceId: 用户设备号。
630
+ # @type DeviceId: String
631
+
632
+ attr_accessor :WeChatOpenId, :WeChatSubType, :RandStr, :WeChatAccessToken, :AssociateAccount, :MobilePhone, :DeviceId
633
+
634
+ def initialize(wechatopenid=nil, wechatsubtype=nil, randstr=nil, wechataccesstoken=nil, associateaccount=nil, mobilephone=nil, deviceid=nil)
635
+ @WeChatOpenId = wechatopenid
636
+ @WeChatSubType = wechatsubtype
637
+ @RandStr = randstr
638
+ @WeChatAccessToken = wechataccesstoken
639
+ @AssociateAccount = associateaccount
640
+ @MobilePhone = mobilephone
641
+ @DeviceId = deviceid
642
+ end
643
+
644
+ def deserialize(params)
645
+ @WeChatOpenId = params['WeChatOpenId']
646
+ @WeChatSubType = params['WeChatSubType']
647
+ @RandStr = params['RandStr']
648
+ @WeChatAccessToken = params['WeChatAccessToken']
649
+ @AssociateAccount = params['AssociateAccount']
650
+ @MobilePhone = params['MobilePhone']
651
+ @DeviceId = params['DeviceId']
652
+ end
653
+ end
654
+
655
+ end
656
+ end
657
+ end
658
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-rce
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ RCE.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-rce.rb
38
+ - lib/v20201103/client.rb
39
+ - lib/v20201103/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-rce
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - RCE
66
+ test_files: []