tencentcloud-sdk-trdp 3.0.466
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-trdp.rb +11 -0
- data/lib/v20220726/client.rb +60 -0
- data/lib/v20220726/models.rb +577 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 311ad5cc1ca18907bfb14e962a26d07fde3ea14e
|
4
|
+
data.tar.gz: 8a6943a580ed1dce276fee325a303a181932e0ba
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d8912c249871303b2a012bd9dbd621023d079e59eee6358df845ff619347ee70b50a78cc0ad8a6eab2963733528ee2aeebd510b8437704fe9cde5e2d0ed1271c
|
7
|
+
data.tar.gz: 5a5866123ef1265b9e1e916713ff9e0a5aa52864c57bbe497586cc47551e7306b3e1f9c84f3cfa55d985d173aad1ef4a1ff97db4624bd3b148e704a0b26c1ac1
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.466
|
@@ -0,0 +1,60 @@
|
|
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 Trdp
|
21
|
+
module V20220726
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2022-07-26'
|
26
|
+
api_endpoint = 'trdp.tencentcloudapi.com'
|
27
|
+
sdk_version = 'TRDP_' + 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 EvaluateUserRisk.
|
35
|
+
# @type request: :class:`Tencentcloud::trdp::V20220726::EvaluateUserRiskRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::trdp::V20220726::EvaluateUserRiskResponse`
|
37
|
+
def EvaluateUserRisk(request)
|
38
|
+
body = send_request('EvaluateUserRisk', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = EvaluateUserRiskResponse.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
|
+
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,577 @@
|
|
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 Trdp
|
19
|
+
module V20220726
|
20
|
+
# 账号信息
|
21
|
+
class AccountInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AccountType: 用户账号类型:
|
23
|
+
# 1-手机号;
|
24
|
+
# 2-IMEI;
|
25
|
+
# 3-IDFA;
|
26
|
+
# 100-SSID类型
|
27
|
+
# @type AccountType: Integer
|
28
|
+
# @param UniversalAccount: 通用账号信息,当AccountType为1、2、3、100时必填
|
29
|
+
# @type UniversalAccount: :class:`Tencentcloud::Trdp.v20220726.models.UniversalAccountInfo`
|
30
|
+
|
31
|
+
attr_accessor :AccountType, :UniversalAccount
|
32
|
+
|
33
|
+
def initialize(accounttype=nil, universalaccount=nil)
|
34
|
+
@AccountType = accounttype
|
35
|
+
@UniversalAccount = universalaccount
|
36
|
+
end
|
37
|
+
|
38
|
+
def deserialize(params)
|
39
|
+
@AccountType = params['AccountType']
|
40
|
+
unless params['UniversalAccount'].nil?
|
41
|
+
@UniversalAccount = UniversalAccountInfo.new
|
42
|
+
@UniversalAccount.deserialize(params['UniversalAccount'])
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# 设备详情
|
48
|
+
class DeviceDetailInfo < TencentCloud::Common::AbstractModel
|
49
|
+
# @param MacAddress: mac地址或唯一设备标识
|
50
|
+
# @type MacAddress: String
|
51
|
+
# @param Model: 手机型号
|
52
|
+
# @type Model: String
|
53
|
+
# @param OsSystem: 操作系统(unknown,android,ios,windows)
|
54
|
+
# @type OsSystem: String
|
55
|
+
# @param OsSystemVersion: 操作系统版本
|
56
|
+
# @type OsSystemVersion: String
|
57
|
+
# @param BidFloor: 竞价底价
|
58
|
+
# @type BidFloor: Integer
|
59
|
+
# @param DeviceVersion: 设备版本
|
60
|
+
# @type DeviceVersion: String
|
61
|
+
# @param Maker: 设备制造商
|
62
|
+
# @type Maker: String
|
63
|
+
# @param DeviceType: 设备类型(PHONE,TABLET)
|
64
|
+
# @type DeviceType: String
|
65
|
+
# @param Carrier: 运营商;-1: 获取失败,0: 其他,1: 移动,2: 联通,3: 电信,4: 铁通
|
66
|
+
# @type Carrier: String
|
67
|
+
# @param AccessMode: 入网方式(wifi,5g,4g,3g,2g)
|
68
|
+
# @type AccessMode: String
|
69
|
+
# @param PhoneChipInfo: 手机芯片信息
|
70
|
+
# @type PhoneChipInfo: String
|
71
|
+
# @param CpuModel: CPU 型号
|
72
|
+
# @type CpuModel: String
|
73
|
+
# @param CpuCore: CPU 核数
|
74
|
+
# @type CpuCore: String
|
75
|
+
# @param Memory: 内存容量,单位转换为 GB
|
76
|
+
# @type Memory: String
|
77
|
+
# @param Language: 系统语言
|
78
|
+
# @type Language: String
|
79
|
+
# @param Volume: 手机音量
|
80
|
+
# @type Volume: String
|
81
|
+
# @param BatteryPower: 电池电量
|
82
|
+
# @type BatteryPower: String
|
83
|
+
# @param ResolutionWidth: 屏幕分辨率宽,保留整数
|
84
|
+
# @type ResolutionWidth: Integer
|
85
|
+
# @param ResolutionHeight: 屏幕分辨率高,保留整数
|
86
|
+
# @type ResolutionHeight: Integer
|
87
|
+
# @param Ua: 浏览器类型
|
88
|
+
# @type Ua: String
|
89
|
+
# @param App: 客户端应用
|
90
|
+
# @type App: String
|
91
|
+
# @param AppPackageName: 应用包名
|
92
|
+
# @type AppPackageName: String
|
93
|
+
# @param SerialNumber: 设备序列号
|
94
|
+
# Android设备
|
95
|
+
# @type SerialNumber: String
|
96
|
+
# @param MobileCountryAndNetworkCode: netOperator MCC+MNC
|
97
|
+
# Android设备
|
98
|
+
# @type MobileCountryAndNetworkCode: String
|
99
|
+
# @param VendorId: 设备品牌 “华为”“oppo”“小米”
|
100
|
+
# Android设备
|
101
|
+
# @type VendorId: String
|
102
|
+
# @param AndroidApiLevel: 安卓API等级
|
103
|
+
# Android设备
|
104
|
+
# @type AndroidApiLevel: String
|
105
|
+
# @param Brightness: 屏幕亮度
|
106
|
+
# Android设备
|
107
|
+
# @type Brightness: String
|
108
|
+
# @param BluetoothAddress: 蓝牙地址
|
109
|
+
# Android设备
|
110
|
+
# @type BluetoothAddress: String
|
111
|
+
# @param BaseBandVersion: 基带版本
|
112
|
+
# Android设备
|
113
|
+
# @type BaseBandVersion: String
|
114
|
+
# @param KernelVersion: kernel 版本
|
115
|
+
# Android设备
|
116
|
+
# @type KernelVersion: String
|
117
|
+
# @param Storage: 存储容量,单位转换为 GB
|
118
|
+
# Android设备
|
119
|
+
# @type Storage: String
|
120
|
+
# @param PackageName: 软件包名
|
121
|
+
# Android设备
|
122
|
+
# @type PackageName: String
|
123
|
+
# @param AppVersion: app 版本号
|
124
|
+
# Android设备
|
125
|
+
# @type AppVersion: String
|
126
|
+
# @param AppName: app 显示名称
|
127
|
+
# Android设备
|
128
|
+
# @type AppName: String
|
129
|
+
# @param IsDebug: 是否 debug;0 为正常模式,1 为 debug 模式;其他值无效
|
130
|
+
# Android设备
|
131
|
+
# @type IsDebug: String
|
132
|
+
# @param IsRoot: 是否越狱;0 为正常,1 为越狱;其他值无效
|
133
|
+
# Android设备
|
134
|
+
# @type IsRoot: String
|
135
|
+
# @param IsProxy: 是否启动代理;0 为未开启,1 为开启;其他值无效
|
136
|
+
# Android设备
|
137
|
+
# @type IsProxy: String
|
138
|
+
# @param IsEmulator: 是否模拟器;0 为未开启,1 为开启;其他值无效
|
139
|
+
# Android设备
|
140
|
+
# @type IsEmulator: String
|
141
|
+
# @param ChargeStatus: 充电状态;1-不在充电,2-USB充电,3-电源充电
|
142
|
+
# Android设备
|
143
|
+
# @type ChargeStatus: String
|
144
|
+
# @param NetworkType: 网络类型:2G/3G/4G/5G/WiFi/WWAN/other
|
145
|
+
# Android设备
|
146
|
+
# @type NetworkType: String
|
147
|
+
# @param WifiMac: WiFi MAC地址
|
148
|
+
# Android设备
|
149
|
+
# @type WifiMac: String
|
150
|
+
# @param DeviceName: 设备名称 "xxx 的 iPhone","xxx's IPhone" 等等
|
151
|
+
# IOS设备
|
152
|
+
# @type DeviceName: String
|
153
|
+
# @param StartupTime: 开机时间
|
154
|
+
# IOS设备
|
155
|
+
# @type StartupTime: String
|
156
|
+
# @param Lon: 所在经度
|
157
|
+
# @type Lon: String
|
158
|
+
# @param Lat: 所在纬度
|
159
|
+
# @type Lat: String
|
160
|
+
|
161
|
+
attr_accessor :MacAddress, :Model, :OsSystem, :OsSystemVersion, :BidFloor, :DeviceVersion, :Maker, :DeviceType, :Carrier, :AccessMode, :PhoneChipInfo, :CpuModel, :CpuCore, :Memory, :Language, :Volume, :BatteryPower, :ResolutionWidth, :ResolutionHeight, :Ua, :App, :AppPackageName, :SerialNumber, :MobileCountryAndNetworkCode, :VendorId, :AndroidApiLevel, :Brightness, :BluetoothAddress, :BaseBandVersion, :KernelVersion, :Storage, :PackageName, :AppVersion, :AppName, :IsDebug, :IsRoot, :IsProxy, :IsEmulator, :ChargeStatus, :NetworkType, :WifiMac, :DeviceName, :StartupTime, :Lon, :Lat
|
162
|
+
|
163
|
+
def initialize(macaddress=nil, model=nil, ossystem=nil, ossystemversion=nil, bidfloor=nil, deviceversion=nil, maker=nil, devicetype=nil, carrier=nil, accessmode=nil, phonechipinfo=nil, cpumodel=nil, cpucore=nil, memory=nil, language=nil, volume=nil, batterypower=nil, resolutionwidth=nil, resolutionheight=nil, ua=nil, app=nil, apppackagename=nil, serialnumber=nil, mobilecountryandnetworkcode=nil, vendorid=nil, androidapilevel=nil, brightness=nil, bluetoothaddress=nil, basebandversion=nil, kernelversion=nil, storage=nil, packagename=nil, appversion=nil, appname=nil, isdebug=nil, isroot=nil, isproxy=nil, isemulator=nil, chargestatus=nil, networktype=nil, wifimac=nil, devicename=nil, startuptime=nil, lon=nil, lat=nil)
|
164
|
+
@MacAddress = macaddress
|
165
|
+
@Model = model
|
166
|
+
@OsSystem = ossystem
|
167
|
+
@OsSystemVersion = ossystemversion
|
168
|
+
@BidFloor = bidfloor
|
169
|
+
@DeviceVersion = deviceversion
|
170
|
+
@Maker = maker
|
171
|
+
@DeviceType = devicetype
|
172
|
+
@Carrier = carrier
|
173
|
+
@AccessMode = accessmode
|
174
|
+
@PhoneChipInfo = phonechipinfo
|
175
|
+
@CpuModel = cpumodel
|
176
|
+
@CpuCore = cpucore
|
177
|
+
@Memory = memory
|
178
|
+
@Language = language
|
179
|
+
@Volume = volume
|
180
|
+
@BatteryPower = batterypower
|
181
|
+
@ResolutionWidth = resolutionwidth
|
182
|
+
@ResolutionHeight = resolutionheight
|
183
|
+
@Ua = ua
|
184
|
+
@App = app
|
185
|
+
@AppPackageName = apppackagename
|
186
|
+
@SerialNumber = serialnumber
|
187
|
+
@MobileCountryAndNetworkCode = mobilecountryandnetworkcode
|
188
|
+
@VendorId = vendorid
|
189
|
+
@AndroidApiLevel = androidapilevel
|
190
|
+
@Brightness = brightness
|
191
|
+
@BluetoothAddress = bluetoothaddress
|
192
|
+
@BaseBandVersion = basebandversion
|
193
|
+
@KernelVersion = kernelversion
|
194
|
+
@Storage = storage
|
195
|
+
@PackageName = packagename
|
196
|
+
@AppVersion = appversion
|
197
|
+
@AppName = appname
|
198
|
+
@IsDebug = isdebug
|
199
|
+
@IsRoot = isroot
|
200
|
+
@IsProxy = isproxy
|
201
|
+
@IsEmulator = isemulator
|
202
|
+
@ChargeStatus = chargestatus
|
203
|
+
@NetworkType = networktype
|
204
|
+
@WifiMac = wifimac
|
205
|
+
@DeviceName = devicename
|
206
|
+
@StartupTime = startuptime
|
207
|
+
@Lon = lon
|
208
|
+
@Lat = lat
|
209
|
+
end
|
210
|
+
|
211
|
+
def deserialize(params)
|
212
|
+
@MacAddress = params['MacAddress']
|
213
|
+
@Model = params['Model']
|
214
|
+
@OsSystem = params['OsSystem']
|
215
|
+
@OsSystemVersion = params['OsSystemVersion']
|
216
|
+
@BidFloor = params['BidFloor']
|
217
|
+
@DeviceVersion = params['DeviceVersion']
|
218
|
+
@Maker = params['Maker']
|
219
|
+
@DeviceType = params['DeviceType']
|
220
|
+
@Carrier = params['Carrier']
|
221
|
+
@AccessMode = params['AccessMode']
|
222
|
+
@PhoneChipInfo = params['PhoneChipInfo']
|
223
|
+
@CpuModel = params['CpuModel']
|
224
|
+
@CpuCore = params['CpuCore']
|
225
|
+
@Memory = params['Memory']
|
226
|
+
@Language = params['Language']
|
227
|
+
@Volume = params['Volume']
|
228
|
+
@BatteryPower = params['BatteryPower']
|
229
|
+
@ResolutionWidth = params['ResolutionWidth']
|
230
|
+
@ResolutionHeight = params['ResolutionHeight']
|
231
|
+
@Ua = params['Ua']
|
232
|
+
@App = params['App']
|
233
|
+
@AppPackageName = params['AppPackageName']
|
234
|
+
@SerialNumber = params['SerialNumber']
|
235
|
+
@MobileCountryAndNetworkCode = params['MobileCountryAndNetworkCode']
|
236
|
+
@VendorId = params['VendorId']
|
237
|
+
@AndroidApiLevel = params['AndroidApiLevel']
|
238
|
+
@Brightness = params['Brightness']
|
239
|
+
@BluetoothAddress = params['BluetoothAddress']
|
240
|
+
@BaseBandVersion = params['BaseBandVersion']
|
241
|
+
@KernelVersion = params['KernelVersion']
|
242
|
+
@Storage = params['Storage']
|
243
|
+
@PackageName = params['PackageName']
|
244
|
+
@AppVersion = params['AppVersion']
|
245
|
+
@AppName = params['AppName']
|
246
|
+
@IsDebug = params['IsDebug']
|
247
|
+
@IsRoot = params['IsRoot']
|
248
|
+
@IsProxy = params['IsProxy']
|
249
|
+
@IsEmulator = params['IsEmulator']
|
250
|
+
@ChargeStatus = params['ChargeStatus']
|
251
|
+
@NetworkType = params['NetworkType']
|
252
|
+
@WifiMac = params['WifiMac']
|
253
|
+
@DeviceName = params['DeviceName']
|
254
|
+
@StartupTime = params['StartupTime']
|
255
|
+
@Lon = params['Lon']
|
256
|
+
@Lat = params['Lat']
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
# 设备指纹信息
|
261
|
+
class DeviceFingerprintInfo < TencentCloud::Common::AbstractModel
|
262
|
+
# @param DeviceToken: 设备指纹Token
|
263
|
+
# @type DeviceToken: String
|
264
|
+
# @param SdkChannel: 设备指纹的客户端SDK对应渠道
|
265
|
+
# @type SdkChannel: String
|
266
|
+
|
267
|
+
attr_accessor :DeviceToken, :SdkChannel
|
268
|
+
|
269
|
+
def initialize(devicetoken=nil, sdkchannel=nil)
|
270
|
+
@DeviceToken = devicetoken
|
271
|
+
@SdkChannel = sdkchannel
|
272
|
+
end
|
273
|
+
|
274
|
+
def deserialize(params)
|
275
|
+
@DeviceToken = params['DeviceToken']
|
276
|
+
@SdkChannel = params['SdkChannel']
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
# EvaluateUserRisk请求参数结构体
|
281
|
+
class EvaluateUserRiskRequest < TencentCloud::Common::AbstractModel
|
282
|
+
# @param Account: 账号信息
|
283
|
+
# @type Account: :class:`Tencentcloud::Trdp.v20220726.models.AccountInfo`
|
284
|
+
# @param User: 用户信息
|
285
|
+
# @type User: :class:`Tencentcloud::Trdp.v20220726.models.UserInfo`
|
286
|
+
# @param ModelId: 模型ID
|
287
|
+
# @type ModelId: String
|
288
|
+
# @param DeviceFingerprint: 设备指纹信息
|
289
|
+
# @type DeviceFingerprint: :class:`Tencentcloud::Trdp.v20220726.models.DeviceFingerprintInfo`
|
290
|
+
# @param SceneCode: 场景Code,不传默认活动防刷;
|
291
|
+
# e_activity_antirush;活动防刷场景
|
292
|
+
# e_login_protection;登陆保护场景
|
293
|
+
# e_register_protection:注册保护场景
|
294
|
+
# @type SceneCode: String
|
295
|
+
# @param DeviceDetail: 设备详情
|
296
|
+
# @type DeviceDetail: :class:`Tencentcloud::Trdp.v20220726.models.DeviceDetailInfo`
|
297
|
+
# @param Marketing: 营销信息
|
298
|
+
# @type Marketing: :class:`Tencentcloud::Trdp.v20220726.models.MarketingInfo`
|
299
|
+
|
300
|
+
attr_accessor :Account, :User, :ModelId, :DeviceFingerprint, :SceneCode, :DeviceDetail, :Marketing
|
301
|
+
|
302
|
+
def initialize(account=nil, user=nil, modelid=nil, devicefingerprint=nil, scenecode=nil, devicedetail=nil, marketing=nil)
|
303
|
+
@Account = account
|
304
|
+
@User = user
|
305
|
+
@ModelId = modelid
|
306
|
+
@DeviceFingerprint = devicefingerprint
|
307
|
+
@SceneCode = scenecode
|
308
|
+
@DeviceDetail = devicedetail
|
309
|
+
@Marketing = marketing
|
310
|
+
end
|
311
|
+
|
312
|
+
def deserialize(params)
|
313
|
+
unless params['Account'].nil?
|
314
|
+
@Account = AccountInfo.new
|
315
|
+
@Account.deserialize(params['Account'])
|
316
|
+
end
|
317
|
+
unless params['User'].nil?
|
318
|
+
@User = UserInfo.new
|
319
|
+
@User.deserialize(params['User'])
|
320
|
+
end
|
321
|
+
@ModelId = params['ModelId']
|
322
|
+
unless params['DeviceFingerprint'].nil?
|
323
|
+
@DeviceFingerprint = DeviceFingerprintInfo.new
|
324
|
+
@DeviceFingerprint.deserialize(params['DeviceFingerprint'])
|
325
|
+
end
|
326
|
+
@SceneCode = params['SceneCode']
|
327
|
+
unless params['DeviceDetail'].nil?
|
328
|
+
@DeviceDetail = DeviceDetailInfo.new
|
329
|
+
@DeviceDetail.deserialize(params['DeviceDetail'])
|
330
|
+
end
|
331
|
+
unless params['Marketing'].nil?
|
332
|
+
@Marketing = MarketingInfo.new
|
333
|
+
@Marketing.deserialize(params['Marketing'])
|
334
|
+
end
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
# EvaluateUserRisk返回参数结构体
|
339
|
+
class EvaluateUserRiskResponse < TencentCloud::Common::AbstractModel
|
340
|
+
# @param EvaluationResult: 评估结果
|
341
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
342
|
+
# @type EvaluationResult: :class:`Tencentcloud::Trdp.v20220726.models.EvaluationResult`
|
343
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
344
|
+
# @type RequestId: String
|
345
|
+
|
346
|
+
attr_accessor :EvaluationResult, :RequestId
|
347
|
+
|
348
|
+
def initialize(evaluationresult=nil, requestid=nil)
|
349
|
+
@EvaluationResult = evaluationresult
|
350
|
+
@RequestId = requestid
|
351
|
+
end
|
352
|
+
|
353
|
+
def deserialize(params)
|
354
|
+
unless params['EvaluationResult'].nil?
|
355
|
+
@EvaluationResult = EvaluationResult.new
|
356
|
+
@EvaluationResult.deserialize(params['EvaluationResult'])
|
357
|
+
end
|
358
|
+
@RequestId = params['RequestId']
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
# 评估结果
|
363
|
+
class EvaluationResult < TencentCloud::Common::AbstractModel
|
364
|
+
# @param SSID: SSID值
|
365
|
+
# @type SSID: String
|
366
|
+
# @param Score: 风险价值分
|
367
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
368
|
+
# @type Score: Float
|
369
|
+
# @param RiskLabels: 风险标签,请参考官网风险类型
|
370
|
+
# 账号风险
|
371
|
+
# 1 账号信用低,账号近期存在因恶意被处罚历史,网络低活跃,被举报等因素
|
372
|
+
# 11 疑似 低活跃账号,账号活跃度与正常用户有差异
|
373
|
+
# 2 垃圾账号 疑似批量注册小号,近期存在严重违规或大量举报
|
374
|
+
# 21 疑似小号 账号有疑似线上养号,小号等行为
|
375
|
+
# 22 疑似违规账号 账号曾有违规行为、曾被举报过、曾因违规被处罚过等
|
376
|
+
# 3 无效账号 送检账号参数无法成功解析,请检查微信 openid 是否有误/appid与QQopenid无法关联/微信openid权限是否有开通/手机号是否为中国大陆手机号;
|
377
|
+
# 4 黑名单 该账号在业务侧有过拉黑记录
|
378
|
+
# 5 白名单 业务自行有添加过白名单记录
|
379
|
+
# 行为风险
|
380
|
+
# 101 批量操作 存在 ip/设备/环境等因素的聚集性异常
|
381
|
+
# 1011 疑似 IP 属性聚集,出现 IP 聚集
|
382
|
+
# 1012 疑似 设备属性聚集 出现设备聚集
|
383
|
+
# 102 自动机 疑似自动机批量请求
|
384
|
+
# 103 恶意行为-网赚 疑似网赚
|
385
|
+
# 104 微信登录态无效 检查 WeChatAccessToken 参数,是否已经失效;
|
386
|
+
# 201 环境风险 环境异常 操作 ip/设备/环境存在异常。当前 ip 为非常用 ip 或恶意 ip 段
|
387
|
+
# 2011 疑似 非常用IP 请求 当前请求 IP 非该账号常用 IP
|
388
|
+
# 2012 疑似 IP 异常 使用 idc 机房 ip 或 使用代理 ip 或 使用恶意 ip 等
|
389
|
+
# 205 非公网有效ip 传进来的 IP 地址为内网 ip 地址或者 ip 保留地址;
|
390
|
+
# 设备风险
|
391
|
+
# 206 设备异常 该设备存在异常的使用行为
|
392
|
+
# 2061 疑似 非常用设备 当前请求的设备非该账号常用设备
|
393
|
+
# 2062 疑似 虚拟设备 请求设备为模拟器、脚本、云设备等虚拟设备
|
394
|
+
# 2063 疑似 群控设备 请求设备为猫池、手机墙等群控设备
|
395
|
+
# 10201 设备处于开发者模式 来源于Android
|
396
|
+
# 10202 设备疑似 Root 来源于Android
|
397
|
+
# 10203 疑似应用被注 来源于Android
|
398
|
+
# 10204 疑似应用被重打包 来源于Android
|
399
|
+
# 10205 疑似使用 hook 技术 来源于Android
|
400
|
+
# 10206 疑似应用被双开 来源于Android
|
401
|
+
# 10207 疑似设备存在风险进程 来源于Android
|
402
|
+
# 10208 疑似伪造地理位置 来源于Android
|
403
|
+
# 10209 疑似使用 VPN 软件 来源于Android
|
404
|
+
# 10210 疑似使用代理软件 来源于Android
|
405
|
+
# 10211 疑似设备处于调试模式 来源于Android
|
406
|
+
# 10212 疑似高危 ROM 来源于Android
|
407
|
+
# 10213 疑似检测到系统劫持 来源于Android
|
408
|
+
# 10003 疑似模拟器 来源于Android
|
409
|
+
# 10301 疑似主流模拟器 来源于Android
|
410
|
+
# 10302 疑似云模拟器 来源于Android
|
411
|
+
# 10303 疑似开发板设备 来源于Android
|
412
|
+
# 10004 疑似群控设备风险 来源于Android
|
413
|
+
# 10401 疑似使用自动化软件 来源于Android
|
414
|
+
# 10402 疑似群控自动化操作 来源于Android
|
415
|
+
# 10501 疑似参数异常-IMEI 来源于Android
|
416
|
+
# 10502 疑似参数异常-FP 来源于Android
|
417
|
+
# 10504 疑似参数异常-IMSI 来源于Android
|
418
|
+
# 10801 疑似存在刷量安装应用的行为 来源于Android
|
419
|
+
# 10901 疑似多账号异常 来源于Android
|
420
|
+
# 11001 疑似设备参数篡改 来源于Android
|
421
|
+
# 11002 疑似存在风险软件 来源于Android
|
422
|
+
# 11003 疑似应用被调试 来源于Android
|
423
|
+
# 11100 疑似云真机 来源于Android
|
424
|
+
# 25001 设备疑似越狱 来源于IOS
|
425
|
+
# 25004 进程疑似有注入文件 来源于IOS
|
426
|
+
# 25005 疑似使用代理软件 来源于IOS
|
427
|
+
# 25006 疑似使用 VPN 软件 来源于IOS
|
428
|
+
# 25007 疑似被 Hook 来源于IOS
|
429
|
+
# 25008 疑似进程被调试 来源于IOS
|
430
|
+
# 25009 疑似多开 来源于IOS
|
431
|
+
# 25010 疑似改机 来源于IOS
|
432
|
+
# 25011 疑似应用二次打包 来源于IOS
|
433
|
+
# 25012 疑似模拟器 来源于IOS
|
434
|
+
# 25013 疑似云真机 来源于IOS
|
435
|
+
# 25014 疑似云模拟器 来源于IOS
|
436
|
+
# 25015 疑似伪造地理位置 来源于IOS
|
437
|
+
# 25016 疑似使用自动化脚本 来源于IOS
|
438
|
+
# 25017 疑似群控自动化操作 来源于IOS
|
439
|
+
# 30001 疑似虚拟浏览器 来源于H5
|
440
|
+
# 30002 疑似安装作弊插件 来源于H5
|
441
|
+
# 30003 疑似浏览器参数遭篡改 来源于H5
|
442
|
+
# 30004 疑似 JS 代码被篡改 来源于H5
|
443
|
+
# 30005 疑似 JS 被调试 来源于H5
|
444
|
+
# 30006 Cookies 被禁用 来源于H5
|
445
|
+
# 40001 疑似伪造地理位置 来源于小程序
|
446
|
+
# 40002 疑似被调试 来源于小程序
|
447
|
+
# 40003 疑似模拟器 来源于小程序
|
448
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
449
|
+
# @type RiskLabels: Array
|
450
|
+
|
451
|
+
attr_accessor :SSID, :Score, :RiskLabels
|
452
|
+
|
453
|
+
def initialize(ssid=nil, score=nil, risklabels=nil)
|
454
|
+
@SSID = ssid
|
455
|
+
@Score = score
|
456
|
+
@RiskLabels = risklabels
|
457
|
+
end
|
458
|
+
|
459
|
+
def deserialize(params)
|
460
|
+
@SSID = params['SSID']
|
461
|
+
@Score = params['Score']
|
462
|
+
@RiskLabels = params['RiskLabels']
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
# 营销信息
|
467
|
+
class MarketingInfo < TencentCloud::Common::AbstractModel
|
468
|
+
# @param DeliveryMode: 投放模式(0=PDB,1=PD,2=RTB,10=其他)
|
469
|
+
# @type DeliveryMode: Integer
|
470
|
+
# @param AdvertisingType: 广告位类型 (0=前贴片,1=开屏广告,2=网页头部广告、3=网页中部广告、4=网页底部广告、5=悬浮广告、10=其它)
|
471
|
+
# @type AdvertisingType: Integer
|
472
|
+
# @param FullScreen: 是否全屏插广告(0-否,1-是)
|
473
|
+
# @type FullScreen: Integer
|
474
|
+
# @param AdvertisingSpaceWidth: 广告位宽度
|
475
|
+
# @type AdvertisingSpaceWidth: Integer
|
476
|
+
# @param AdvertisingSpaceHeight: 广告位高度
|
477
|
+
# @type AdvertisingSpaceHeight: Integer
|
478
|
+
# @param Url: 网址
|
479
|
+
# @type Url: String
|
480
|
+
|
481
|
+
attr_accessor :DeliveryMode, :AdvertisingType, :FullScreen, :AdvertisingSpaceWidth, :AdvertisingSpaceHeight, :Url
|
482
|
+
|
483
|
+
def initialize(deliverymode=nil, advertisingtype=nil, fullscreen=nil, advertisingspacewidth=nil, advertisingspaceheight=nil, url=nil)
|
484
|
+
@DeliveryMode = deliverymode
|
485
|
+
@AdvertisingType = advertisingtype
|
486
|
+
@FullScreen = fullscreen
|
487
|
+
@AdvertisingSpaceWidth = advertisingspacewidth
|
488
|
+
@AdvertisingSpaceHeight = advertisingspaceheight
|
489
|
+
@Url = url
|
490
|
+
end
|
491
|
+
|
492
|
+
def deserialize(params)
|
493
|
+
@DeliveryMode = params['DeliveryMode']
|
494
|
+
@AdvertisingType = params['AdvertisingType']
|
495
|
+
@FullScreen = params['FullScreen']
|
496
|
+
@AdvertisingSpaceWidth = params['AdvertisingSpaceWidth']
|
497
|
+
@AdvertisingSpaceHeight = params['AdvertisingSpaceHeight']
|
498
|
+
@Url = params['Url']
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
502
|
+
# 通用账号信息
|
503
|
+
class UniversalAccountInfo < TencentCloud::Common::AbstractModel
|
504
|
+
# @param AccountId: 账号值:
|
505
|
+
# 当账户类型为1时,填入手机号,如135****3695;
|
506
|
+
# 当账户类型为2、3或100时,填入对应的值。
|
507
|
+
# @type AccountId: String
|
508
|
+
|
509
|
+
attr_accessor :AccountId
|
510
|
+
|
511
|
+
def initialize(accountid=nil)
|
512
|
+
@AccountId = accountid
|
513
|
+
end
|
514
|
+
|
515
|
+
def deserialize(params)
|
516
|
+
@AccountId = params['AccountId']
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
# 用户信息
|
521
|
+
class UserInfo < TencentCloud::Common::AbstractModel
|
522
|
+
# @param Ip: 用户外网IP地址
|
523
|
+
# @type Ip: String
|
524
|
+
# @param ChannelSource: 来源渠道编码
|
525
|
+
# @type ChannelSource: String
|
526
|
+
# @param Platform: 用户登录平台。1:安卓 2:iOS 3:H5 4:小程序
|
527
|
+
# @type Platform: Integer
|
528
|
+
# @param Name: 姓名
|
529
|
+
# @type Name: String
|
530
|
+
# @param Age: 年龄
|
531
|
+
# @type Age: Integer
|
532
|
+
# @param Gender: 性别:
|
533
|
+
# male(男)
|
534
|
+
# female(女)
|
535
|
+
# @type Gender: String
|
536
|
+
# @param ResidentIdentityCard: 身份证号
|
537
|
+
# @type ResidentIdentityCard: String
|
538
|
+
# @param Email: 邮箱地址
|
539
|
+
# @type Email: String
|
540
|
+
# @param Address: 用户地址
|
541
|
+
# @type Address: String
|
542
|
+
# @param Nickname: 用户昵称
|
543
|
+
# @type Nickname: String
|
544
|
+
|
545
|
+
attr_accessor :Ip, :ChannelSource, :Platform, :Name, :Age, :Gender, :ResidentIdentityCard, :Email, :Address, :Nickname
|
546
|
+
|
547
|
+
def initialize(ip=nil, channelsource=nil, platform=nil, name=nil, age=nil, gender=nil, residentidentitycard=nil, email=nil, address=nil, nickname=nil)
|
548
|
+
@Ip = ip
|
549
|
+
@ChannelSource = channelsource
|
550
|
+
@Platform = platform
|
551
|
+
@Name = name
|
552
|
+
@Age = age
|
553
|
+
@Gender = gender
|
554
|
+
@ResidentIdentityCard = residentidentitycard
|
555
|
+
@Email = email
|
556
|
+
@Address = address
|
557
|
+
@Nickname = nickname
|
558
|
+
end
|
559
|
+
|
560
|
+
def deserialize(params)
|
561
|
+
@Ip = params['Ip']
|
562
|
+
@ChannelSource = params['ChannelSource']
|
563
|
+
@Platform = params['Platform']
|
564
|
+
@Name = params['Name']
|
565
|
+
@Age = params['Age']
|
566
|
+
@Gender = params['Gender']
|
567
|
+
@ResidentIdentityCard = params['ResidentIdentityCard']
|
568
|
+
@Email = params['Email']
|
569
|
+
@Address = params['Address']
|
570
|
+
@Nickname = params['Nickname']
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
end
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-trdp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.466
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-06 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: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.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
|
+
TRDP.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/tencentcloud-sdk-trdp.rb
|
37
|
+
- lib/v20220726/client.rb
|
38
|
+
- lib/v20220726/models.rb
|
39
|
+
- lib/VERSION
|
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-trdp
|
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.0.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - TRDP
|
66
|
+
test_files: []
|