tencentcloud-sdk-taf 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-taf.rb +11 -0
- data/lib/v20200210/client.rb +206 -0
- data/lib/v20200210/models.rb +1004 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9c54e8e2140dd2deb9554e05088170132f9687f2
|
4
|
+
data.tar.gz: 89090037f3b32c4b6009a2fcbe55d944f1bb82ee
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4d71cd4049d51985edbe9f4e93e6eb17009bc0661d032b61694a65e23c47b9593c7975b59b6275b1229d3d18dd115357dca00f6dfae93beb93a44f3fe8dea59d
|
7
|
+
data.tar.gz: 7d9ec5a2af1f9b8c9b625a26f3e43df7834b1772f04ca3844c3640a8771be86dafa1c2a0fa6abd88258b26b823bc2125437bdda17a23013a54fb9a08cf3485b9
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,206 @@
|
|
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 Taf
|
21
|
+
module V20200210
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2020-02-10'
|
26
|
+
api_endpoint = 'taf.tencentcloudapi.com'
|
27
|
+
sdk_version = 'TAF_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 流量反欺诈-KOL欺诈识别
|
33
|
+
|
34
|
+
# @param request: Request instance for DetectFraudKOL.
|
35
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::DetectFraudKOLRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::DetectFraudKOLResponse`
|
37
|
+
def DetectFraudKOL(request)
|
38
|
+
body = send_request('DetectFraudKOL', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DetectFraudKOLResponse.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
|
+
# 流量反欺诈-虚假TA识别
|
57
|
+
|
58
|
+
# @param request: Request instance for EnhanceTaDegree.
|
59
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::EnhanceTaDegreeRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::EnhanceTaDegreeResponse`
|
61
|
+
def EnhanceTaDegree(request)
|
62
|
+
body = send_request('EnhanceTaDegree', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = EnhanceTaDegreeResponse.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
|
+
|
82
|
+
# @param request: Request instance for RecognizeCustomizedAudience.
|
83
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::RecognizeCustomizedAudienceRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::RecognizeCustomizedAudienceResponse`
|
85
|
+
def RecognizeCustomizedAudience(request)
|
86
|
+
body = send_request('RecognizeCustomizedAudience', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = RecognizeCustomizedAudienceResponse.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
|
+
|
104
|
+
# 该服务已不再对外提供能力
|
105
|
+
|
106
|
+
# 筛选敏感易骚扰人群
|
107
|
+
|
108
|
+
# @param request: Request instance for RecognizeEffectiveFlow.
|
109
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::RecognizeEffectiveFlowRequest`
|
110
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::RecognizeEffectiveFlowResponse`
|
111
|
+
def RecognizeEffectiveFlow(request)
|
112
|
+
body = send_request('RecognizeEffectiveFlow', request.serialize)
|
113
|
+
response = JSON.parse(body)
|
114
|
+
if response['Response'].key?('Error') == false
|
115
|
+
model = RecognizeEffectiveFlowResponse.new
|
116
|
+
model.deserialize(response['Response'])
|
117
|
+
model
|
118
|
+
else
|
119
|
+
code = response['Response']['Error']['Code']
|
120
|
+
message = response['Response']['Error']['Message']
|
121
|
+
reqid = response['Response']['RequestId']
|
122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
123
|
+
end
|
124
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
125
|
+
raise e
|
126
|
+
rescue StandardError => e
|
127
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
|
+
end
|
129
|
+
|
130
|
+
# 流量反欺诈-流量验准高级版
|
131
|
+
|
132
|
+
# @param request: Request instance for RecognizePreciseTargetAudience.
|
133
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::RecognizePreciseTargetAudienceRequest`
|
134
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::RecognizePreciseTargetAudienceResponse`
|
135
|
+
def RecognizePreciseTargetAudience(request)
|
136
|
+
body = send_request('RecognizePreciseTargetAudience', request.serialize)
|
137
|
+
response = JSON.parse(body)
|
138
|
+
if response['Response'].key?('Error') == false
|
139
|
+
model = RecognizePreciseTargetAudienceResponse.new
|
140
|
+
model.deserialize(response['Response'])
|
141
|
+
model
|
142
|
+
else
|
143
|
+
code = response['Response']['Error']['Code']
|
144
|
+
message = response['Response']['Error']['Message']
|
145
|
+
reqid = response['Response']['RequestId']
|
146
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
147
|
+
end
|
148
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
149
|
+
raise e
|
150
|
+
rescue StandardError => e
|
151
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
152
|
+
end
|
153
|
+
|
154
|
+
# 流量反欺诈-流量验准
|
155
|
+
|
156
|
+
# @param request: Request instance for RecognizeTargetAudience.
|
157
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::RecognizeTargetAudienceRequest`
|
158
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::RecognizeTargetAudienceResponse`
|
159
|
+
def RecognizeTargetAudience(request)
|
160
|
+
body = send_request('RecognizeTargetAudience', request.serialize)
|
161
|
+
response = JSON.parse(body)
|
162
|
+
if response['Response'].key?('Error') == false
|
163
|
+
model = RecognizeTargetAudienceResponse.new
|
164
|
+
model.deserialize(response['Response'])
|
165
|
+
model
|
166
|
+
else
|
167
|
+
code = response['Response']['Error']['Code']
|
168
|
+
message = response['Response']['Error']['Message']
|
169
|
+
reqid = response['Response']['RequestId']
|
170
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
171
|
+
end
|
172
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
173
|
+
raise e
|
174
|
+
rescue StandardError => e
|
175
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
176
|
+
end
|
177
|
+
|
178
|
+
# 流量安选产品,短信发送接口
|
179
|
+
|
180
|
+
# @param request: Request instance for SendTrafficSecuritySmsMessage.
|
181
|
+
# @type request: :class:`Tencentcloud::taf::V20200210::SendTrafficSecuritySmsMessageRequest`
|
182
|
+
# @rtype: :class:`Tencentcloud::taf::V20200210::SendTrafficSecuritySmsMessageResponse`
|
183
|
+
def SendTrafficSecuritySmsMessage(request)
|
184
|
+
body = send_request('SendTrafficSecuritySmsMessage', request.serialize)
|
185
|
+
response = JSON.parse(body)
|
186
|
+
if response['Response'].key?('Error') == false
|
187
|
+
model = SendTrafficSecuritySmsMessageResponse.new
|
188
|
+
model.deserialize(response['Response'])
|
189
|
+
model
|
190
|
+
else
|
191
|
+
code = response['Response']['Error']['Code']
|
192
|
+
message = response['Response']['Error']['Message']
|
193
|
+
reqid = response['Response']['RequestId']
|
194
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
195
|
+
end
|
196
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
197
|
+
raise e
|
198
|
+
rescue StandardError => e
|
199
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
200
|
+
end
|
201
|
+
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -0,0 +1,1004 @@
|
|
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 Taf
|
19
|
+
module V20200210
|
20
|
+
# DetectFraudKOL请求参数结构体
|
21
|
+
class DetectFraudKOLRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param BspData: 业务数据
|
23
|
+
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputKolBspData`
|
24
|
+
# @param BusinessEncryptData: 业务加密数据
|
25
|
+
# @type BusinessEncryptData: :class:`Tencentcloud::Taf.v20200210.models.InputBusinessEncryptData`
|
26
|
+
|
27
|
+
attr_accessor :BspData, :BusinessEncryptData
|
28
|
+
|
29
|
+
def initialize(bspdata=nil, businessencryptdata=nil)
|
30
|
+
@BspData = bspdata
|
31
|
+
@BusinessEncryptData = businessencryptdata
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
unless params['BspData'].nil?
|
36
|
+
@BspData = InputKolBspData.new
|
37
|
+
@BspData.deserialize(params['BspData'])
|
38
|
+
end
|
39
|
+
unless params['BusinessEncryptData'].nil?
|
40
|
+
@BusinessEncryptData = InputBusinessEncryptData.new
|
41
|
+
@BusinessEncryptData.deserialize(params['BusinessEncryptData'])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DetectFraudKOL返回参数结构体
|
47
|
+
class DetectFraudKOLResponse < TencentCloud::Common::AbstractModel
|
48
|
+
# @param Data: 回包数据
|
49
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
50
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputKolData`
|
51
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
52
|
+
# @type RequestId: String
|
53
|
+
|
54
|
+
attr_accessor :Data, :RequestId
|
55
|
+
|
56
|
+
def initialize(data=nil, requestid=nil)
|
57
|
+
@Data = data
|
58
|
+
@RequestId = requestid
|
59
|
+
end
|
60
|
+
|
61
|
+
def deserialize(params)
|
62
|
+
unless params['Data'].nil?
|
63
|
+
@Data = OutputKolData.new
|
64
|
+
@Data.deserialize(params['Data'])
|
65
|
+
end
|
66
|
+
@RequestId = params['RequestId']
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# EnhanceTaDegree请求参数结构体
|
71
|
+
class EnhanceTaDegreeRequest < TencentCloud::Common::AbstractModel
|
72
|
+
# @param BspData: 业务数据
|
73
|
+
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputTaBspData`
|
74
|
+
# @param BusinessEncryptData: 业务加密数据
|
75
|
+
# @type BusinessEncryptData: :class:`Tencentcloud::Taf.v20200210.models.InputBusinessEncryptData`
|
76
|
+
|
77
|
+
attr_accessor :BspData, :BusinessEncryptData
|
78
|
+
|
79
|
+
def initialize(bspdata=nil, businessencryptdata=nil)
|
80
|
+
@BspData = bspdata
|
81
|
+
@BusinessEncryptData = businessencryptdata
|
82
|
+
end
|
83
|
+
|
84
|
+
def deserialize(params)
|
85
|
+
unless params['BspData'].nil?
|
86
|
+
@BspData = InputTaBspData.new
|
87
|
+
@BspData.deserialize(params['BspData'])
|
88
|
+
end
|
89
|
+
unless params['BusinessEncryptData'].nil?
|
90
|
+
@BusinessEncryptData = InputBusinessEncryptData.new
|
91
|
+
@BusinessEncryptData.deserialize(params['BusinessEncryptData'])
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# EnhanceTaDegree返回参数结构体
|
97
|
+
class EnhanceTaDegreeResponse < TencentCloud::Common::AbstractModel
|
98
|
+
# @param Data: 回包数据
|
99
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
100
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputTaData`
|
101
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
102
|
+
# @type RequestId: String
|
103
|
+
|
104
|
+
attr_accessor :Data, :RequestId
|
105
|
+
|
106
|
+
def initialize(data=nil, requestid=nil)
|
107
|
+
@Data = data
|
108
|
+
@RequestId = requestid
|
109
|
+
end
|
110
|
+
|
111
|
+
def deserialize(params)
|
112
|
+
unless params['Data'].nil?
|
113
|
+
@Data = OutputTaData.new
|
114
|
+
@Data.deserialize(params['Data'])
|
115
|
+
end
|
116
|
+
@RequestId = params['RequestId']
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# 业务入参
|
121
|
+
class InputBusinessEncryptData < TencentCloud::Common::AbstractModel
|
122
|
+
|
123
|
+
|
124
|
+
def initialize()
|
125
|
+
end
|
126
|
+
|
127
|
+
def deserialize(params)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# CheckKol
|
132
|
+
class InputKolBspData < TencentCloud::Common::AbstractModel
|
133
|
+
# @param DataList: BspData
|
134
|
+
# @type DataList: Array
|
135
|
+
|
136
|
+
attr_accessor :DataList
|
137
|
+
|
138
|
+
def initialize(datalist=nil)
|
139
|
+
@DataList = datalist
|
140
|
+
end
|
141
|
+
|
142
|
+
def deserialize(params)
|
143
|
+
unless params['DataList'].nil?
|
144
|
+
@DataList = []
|
145
|
+
params['DataList'].each do |i|
|
146
|
+
inputkoldatalist_tmp = InputKolDataList.new
|
147
|
+
inputkoldatalist_tmp.deserialize(i)
|
148
|
+
@DataList << inputkoldatalist_tmp
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# CheckKOL
|
155
|
+
class InputKolDataList < TencentCloud::Common::AbstractModel
|
156
|
+
# @param Type: 账号类型[1:微信;2:qq;3:微博]
|
157
|
+
# @type Type: Integer
|
158
|
+
# @param Id: KOL账号ID[比如微信公众号ID]
|
159
|
+
# @type Id: String
|
160
|
+
# @param Name: KOL名称
|
161
|
+
# @type Name: String
|
162
|
+
# @param Phone: 手机号
|
163
|
+
# @type Phone: String
|
164
|
+
# @param AgentInfo: 代理商名称
|
165
|
+
# @type AgentInfo: String
|
166
|
+
# @param IsAuthorized: 是否授权
|
167
|
+
# @type IsAuthorized: Integer
|
168
|
+
|
169
|
+
attr_accessor :Type, :Id, :Name, :Phone, :AgentInfo, :IsAuthorized
|
170
|
+
|
171
|
+
def initialize(type=nil, id=nil, name=nil, phone=nil, agentinfo=nil, isauthorized=nil)
|
172
|
+
@Type = type
|
173
|
+
@Id = id
|
174
|
+
@Name = name
|
175
|
+
@Phone = phone
|
176
|
+
@AgentInfo = agentinfo
|
177
|
+
@IsAuthorized = isauthorized
|
178
|
+
end
|
179
|
+
|
180
|
+
def deserialize(params)
|
181
|
+
@Type = params['Type']
|
182
|
+
@Id = params['Id']
|
183
|
+
@Name = params['Name']
|
184
|
+
@Phone = params['Phone']
|
185
|
+
@AgentInfo = params['AgentInfo']
|
186
|
+
@IsAuthorized = params['IsAuthorized']
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# 接口入参
|
191
|
+
class InputRecognizeEffectiveFlow < TencentCloud::Common::AbstractModel
|
192
|
+
|
193
|
+
|
194
|
+
def initialize()
|
195
|
+
end
|
196
|
+
|
197
|
+
def deserialize(params)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# 流量反欺诈-验准入参
|
202
|
+
class InputRecognizeTargetAudience < TencentCloud::Common::AbstractModel
|
203
|
+
# @param Uid: 设备ID,AccountType指定的类型
|
204
|
+
# @type Uid: String
|
205
|
+
# @param AccountType: 设备号类型,1.imei 2.imeiMd5(小写后转MD5转小写)3.idfa, 4.idfaMd5(大写后转MD5转小写),5.手机号,256.其它
|
206
|
+
# @type AccountType: Integer
|
207
|
+
# @param ModelIdList: 模型ID列表
|
208
|
+
# @type ModelIdList: Array
|
209
|
+
# @param Ip: 用户IP
|
210
|
+
# @type Ip: String
|
211
|
+
# @param Os: 操作系统类型(unknown,android,ios,windows)
|
212
|
+
# @type Os: String
|
213
|
+
# @param Osv: 操作系统版本
|
214
|
+
# @type Osv: String
|
215
|
+
# @param Lat: 纬度
|
216
|
+
# @type Lat: String
|
217
|
+
# @param Lon: 经度
|
218
|
+
# @type Lon: String
|
219
|
+
# @param DeviceModel: 设备型号(MI 6)
|
220
|
+
# @type DeviceModel: String
|
221
|
+
# @param BidFloor: 竞价底价
|
222
|
+
# @type BidFloor: Integer
|
223
|
+
# @param Age: 年龄
|
224
|
+
# @type Age: Integer
|
225
|
+
# @param Gender: 性别(1.MALE 2.FEMALE)
|
226
|
+
# @type Gender: Integer
|
227
|
+
# @param Location: 用户地址
|
228
|
+
# @type Location: String
|
229
|
+
# @param DeliveryMode: 投放模式(0=PDB,1=PD,2=RTB,10=其他)
|
230
|
+
# @type DeliveryMode: Integer
|
231
|
+
# @param AdvertisingType: 广告位类型<br />(0=前贴片,1=开屏广告,2=网页头部广告、3=网页中部广告、4=网页底部广告、5=悬浮广告、10=其它)
|
232
|
+
# @type AdvertisingType: Integer
|
233
|
+
# @param Mac: mac地址,建议提供
|
234
|
+
# @type Mac: String
|
235
|
+
# @param Phone: 电话号码
|
236
|
+
# @type Phone: String
|
237
|
+
# @param Ua: 浏览器类型
|
238
|
+
# @type Ua: String
|
239
|
+
# @param App: 客户端应用
|
240
|
+
# @type App: String
|
241
|
+
# @param Package: 应用包名
|
242
|
+
# @type Package: String
|
243
|
+
# @param Maker: 设备制造商
|
244
|
+
# @type Maker: String
|
245
|
+
# @param DeviceType: 设备类型(PHONE,TABLET)
|
246
|
+
# @type DeviceType: String
|
247
|
+
# @param AccessMode: 入网方式(wifi,4g,3g,2g)
|
248
|
+
# @type AccessMode: String
|
249
|
+
# @param Sp: 运营商(1.移动 2.联通 3.电信等)
|
250
|
+
# @type Sp: Integer
|
251
|
+
# @param DeviceW: 设备屏幕分辨率宽度像素数
|
252
|
+
# @type DeviceW: Integer
|
253
|
+
# @param DeviceH: 设备屏幕分辨率高度像素数
|
254
|
+
# @type DeviceH: Integer
|
255
|
+
# @param FullScreen: 是否全屏插广告(0-否,1-是)
|
256
|
+
# @type FullScreen: Integer
|
257
|
+
# @param ImpBannerW: 广告位宽度
|
258
|
+
# @type ImpBannerW: Integer
|
259
|
+
# @param ImpBannerH: 广告位高度
|
260
|
+
# @type ImpBannerH: Integer
|
261
|
+
# @param Url: 网址
|
262
|
+
# @type Url: String
|
263
|
+
# @param Context: 上下文信息
|
264
|
+
# @type Context: String
|
265
|
+
# @param Channel: 渠道
|
266
|
+
# @type Channel: String
|
267
|
+
# @param ReqId: 请求ID
|
268
|
+
# @type ReqId: String
|
269
|
+
# @param ReqMd5: 请求ID的md5值
|
270
|
+
# @type ReqMd5: String
|
271
|
+
# @param AdType: ad_type
|
272
|
+
# @type AdType: Integer
|
273
|
+
# @param AppName: app名称
|
274
|
+
# @type AppName: String
|
275
|
+
# @param AppVer: app版本描述
|
276
|
+
# @type AppVer: String
|
277
|
+
# @param ReqType: 竞价模式1:rtb 2:pd
|
278
|
+
# @type ReqType: Integer
|
279
|
+
# @param IsAuthorized: 用户是否授权,1为授权,0为未授权
|
280
|
+
# @type IsAuthorized: Integer
|
281
|
+
|
282
|
+
attr_accessor :Uid, :AccountType, :ModelIdList, :Ip, :Os, :Osv, :Lat, :Lon, :DeviceModel, :BidFloor, :Age, :Gender, :Location, :DeliveryMode, :AdvertisingType, :Mac, :Phone, :Ua, :App, :Package, :Maker, :DeviceType, :AccessMode, :Sp, :DeviceW, :DeviceH, :FullScreen, :ImpBannerW, :ImpBannerH, :Url, :Context, :Channel, :ReqId, :ReqMd5, :AdType, :AppName, :AppVer, :ReqType, :IsAuthorized
|
283
|
+
|
284
|
+
def initialize(uid=nil, accounttype=nil, modelidlist=nil, ip=nil, os=nil, osv=nil, lat=nil, lon=nil, devicemodel=nil, bidfloor=nil, age=nil, gender=nil, location=nil, deliverymode=nil, advertisingtype=nil, mac=nil, phone=nil, ua=nil, app=nil, package=nil, maker=nil, devicetype=nil, accessmode=nil, sp=nil, devicew=nil, deviceh=nil, fullscreen=nil, impbannerw=nil, impbannerh=nil, url=nil, context=nil, channel=nil, reqid=nil, reqmd5=nil, adtype=nil, appname=nil, appver=nil, reqtype=nil, isauthorized=nil)
|
285
|
+
@Uid = uid
|
286
|
+
@AccountType = accounttype
|
287
|
+
@ModelIdList = modelidlist
|
288
|
+
@Ip = ip
|
289
|
+
@Os = os
|
290
|
+
@Osv = osv
|
291
|
+
@Lat = lat
|
292
|
+
@Lon = lon
|
293
|
+
@DeviceModel = devicemodel
|
294
|
+
@BidFloor = bidfloor
|
295
|
+
@Age = age
|
296
|
+
@Gender = gender
|
297
|
+
@Location = location
|
298
|
+
@DeliveryMode = deliverymode
|
299
|
+
@AdvertisingType = advertisingtype
|
300
|
+
@Mac = mac
|
301
|
+
@Phone = phone
|
302
|
+
@Ua = ua
|
303
|
+
@App = app
|
304
|
+
@Package = package
|
305
|
+
@Maker = maker
|
306
|
+
@DeviceType = devicetype
|
307
|
+
@AccessMode = accessmode
|
308
|
+
@Sp = sp
|
309
|
+
@DeviceW = devicew
|
310
|
+
@DeviceH = deviceh
|
311
|
+
@FullScreen = fullscreen
|
312
|
+
@ImpBannerW = impbannerw
|
313
|
+
@ImpBannerH = impbannerh
|
314
|
+
@Url = url
|
315
|
+
@Context = context
|
316
|
+
@Channel = channel
|
317
|
+
@ReqId = reqid
|
318
|
+
@ReqMd5 = reqmd5
|
319
|
+
@AdType = adtype
|
320
|
+
@AppName = appname
|
321
|
+
@AppVer = appver
|
322
|
+
@ReqType = reqtype
|
323
|
+
@IsAuthorized = isauthorized
|
324
|
+
end
|
325
|
+
|
326
|
+
def deserialize(params)
|
327
|
+
@Uid = params['Uid']
|
328
|
+
@AccountType = params['AccountType']
|
329
|
+
@ModelIdList = params['ModelIdList']
|
330
|
+
@Ip = params['Ip']
|
331
|
+
@Os = params['Os']
|
332
|
+
@Osv = params['Osv']
|
333
|
+
@Lat = params['Lat']
|
334
|
+
@Lon = params['Lon']
|
335
|
+
@DeviceModel = params['DeviceModel']
|
336
|
+
@BidFloor = params['BidFloor']
|
337
|
+
@Age = params['Age']
|
338
|
+
@Gender = params['Gender']
|
339
|
+
@Location = params['Location']
|
340
|
+
@DeliveryMode = params['DeliveryMode']
|
341
|
+
@AdvertisingType = params['AdvertisingType']
|
342
|
+
@Mac = params['Mac']
|
343
|
+
@Phone = params['Phone']
|
344
|
+
@Ua = params['Ua']
|
345
|
+
@App = params['App']
|
346
|
+
@Package = params['Package']
|
347
|
+
@Maker = params['Maker']
|
348
|
+
@DeviceType = params['DeviceType']
|
349
|
+
@AccessMode = params['AccessMode']
|
350
|
+
@Sp = params['Sp']
|
351
|
+
@DeviceW = params['DeviceW']
|
352
|
+
@DeviceH = params['DeviceH']
|
353
|
+
@FullScreen = params['FullScreen']
|
354
|
+
@ImpBannerW = params['ImpBannerW']
|
355
|
+
@ImpBannerH = params['ImpBannerH']
|
356
|
+
@Url = params['Url']
|
357
|
+
@Context = params['Context']
|
358
|
+
@Channel = params['Channel']
|
359
|
+
@ReqId = params['ReqId']
|
360
|
+
@ReqMd5 = params['ReqMd5']
|
361
|
+
@AdType = params['AdType']
|
362
|
+
@AppName = params['AppName']
|
363
|
+
@AppVer = params['AppVer']
|
364
|
+
@ReqType = params['ReqType']
|
365
|
+
@IsAuthorized = params['IsAuthorized']
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
# 业务入参
|
370
|
+
class InputSendTrafficSecuritySmsMsg < TencentCloud::Common::AbstractModel
|
371
|
+
# @param TaskId: 投放任务ID
|
372
|
+
# @type TaskId: String
|
373
|
+
# @param Mobiles: 手机号码列表(号码量<=200)
|
374
|
+
# @type Mobiles: Array
|
375
|
+
# @param IsAuthorized: 是否授权,1:已授权
|
376
|
+
# @type IsAuthorized: Integer
|
377
|
+
# @param EncryptMethod: 加密方式,0:AES加密;1:DES加密
|
378
|
+
# @type EncryptMethod: Integer
|
379
|
+
# @param EncryptMode: 加密算法中的块处理模式,0:ECB模式;1:CBC模式;2:CTR模式;3:CFB模式;4:OFB模式;
|
380
|
+
# @type EncryptMode: Integer
|
381
|
+
# @param PaddingType: 填充模式,0:ZeroPadding;1:PKCS5Padding;2:PKCS7Padding;
|
382
|
+
# @type PaddingType: Integer
|
383
|
+
# @param EncryptData: 加密数据
|
384
|
+
# @type EncryptData: String
|
385
|
+
|
386
|
+
attr_accessor :TaskId, :Mobiles, :IsAuthorized, :EncryptMethod, :EncryptMode, :PaddingType, :EncryptData
|
387
|
+
|
388
|
+
def initialize(taskid=nil, mobiles=nil, isauthorized=nil, encryptmethod=nil, encryptmode=nil, paddingtype=nil, encryptdata=nil)
|
389
|
+
@TaskId = taskid
|
390
|
+
@Mobiles = mobiles
|
391
|
+
@IsAuthorized = isauthorized
|
392
|
+
@EncryptMethod = encryptmethod
|
393
|
+
@EncryptMode = encryptmode
|
394
|
+
@PaddingType = paddingtype
|
395
|
+
@EncryptData = encryptdata
|
396
|
+
end
|
397
|
+
|
398
|
+
def deserialize(params)
|
399
|
+
@TaskId = params['TaskId']
|
400
|
+
@Mobiles = params['Mobiles']
|
401
|
+
@IsAuthorized = params['IsAuthorized']
|
402
|
+
@EncryptMethod = params['EncryptMethod']
|
403
|
+
@EncryptMode = params['EncryptMode']
|
404
|
+
@PaddingType = params['PaddingType']
|
405
|
+
@EncryptData = params['EncryptData']
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
# 流量反欺诈-虚假TA识别
|
410
|
+
class InputTaBspData < TencentCloud::Common::AbstractModel
|
411
|
+
# @param Seq: 请求序列号
|
412
|
+
# @type Seq: Integer
|
413
|
+
# @param OsType: 操作系统类型[0:未知;1:android;2:ios;3:windows]
|
414
|
+
# @type OsType: String
|
415
|
+
# @param AgeFloor: 年龄下限
|
416
|
+
# @type AgeFloor: Integer
|
417
|
+
# @param AgeCeil: 年龄上限
|
418
|
+
# @type AgeCeil: Integer
|
419
|
+
# @param Gender: 性别[1:男;2:女]
|
420
|
+
# @type Gender: Integer
|
421
|
+
# @param UserTime: 用户操作时间,uinux时间戳,精确到秒
|
422
|
+
# @type UserTime: Integer
|
423
|
+
# @param Imei: Imei [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1]
|
424
|
+
# @type Imei: String
|
425
|
+
# @param ImeiMd5: Imei小写后加密Md5 [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1]
|
426
|
+
# @type ImeiMd5: String
|
427
|
+
# @param Idfa: Idfa [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1]
|
428
|
+
# @type Idfa: String
|
429
|
+
# @param IdfaMd5: Idfa大写后加密Md5 [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1]
|
430
|
+
# @type IdfaMd5: String
|
431
|
+
# @param UserIp: 用户IP
|
432
|
+
# @type UserIp: String
|
433
|
+
# @param Mac: MAC地址[建议提供]
|
434
|
+
# @type Mac: String
|
435
|
+
# @param PhoneNum: 手机号码[中国大陆]
|
436
|
+
# @type PhoneNum: String
|
437
|
+
# @param UserAgent: 浏览器
|
438
|
+
# @type UserAgent: String
|
439
|
+
# @param App: APP名称
|
440
|
+
# @type App: String
|
441
|
+
# @param Package: 应用安装包名称
|
442
|
+
# @type Package: String
|
443
|
+
# @param DeviceMaker: 设备制造商
|
444
|
+
# @type DeviceMaker: String
|
445
|
+
# @param DeviceModule: 设备型号
|
446
|
+
# @type DeviceModule: String
|
447
|
+
# @param AccessMode: 入网方式[1:WIFI;2:4G;3:3G;4:2G;5:其它]
|
448
|
+
# @type AccessMode: String
|
449
|
+
# @param Sp: 运营商[1:移动;2:联通;3:电信;4:其它]
|
450
|
+
# @type Sp: String
|
451
|
+
# @param Url: 网址
|
452
|
+
# @type Url: String
|
453
|
+
# @param Location: 用户地址
|
454
|
+
# @type Location: String
|
455
|
+
# @param Latitude: 纬度
|
456
|
+
# @type Latitude: String
|
457
|
+
# @param Longitude: 精度
|
458
|
+
# @type Longitude: String
|
459
|
+
# @param Context: 辅助区分信息
|
460
|
+
# @type Context: String
|
461
|
+
# @param IsAuthorized: 是否授权
|
462
|
+
# @type IsAuthorized: Integer
|
463
|
+
|
464
|
+
attr_accessor :Seq, :OsType, :AgeFloor, :AgeCeil, :Gender, :UserTime, :Imei, :ImeiMd5, :Idfa, :IdfaMd5, :UserIp, :Mac, :PhoneNum, :UserAgent, :App, :Package, :DeviceMaker, :DeviceModule, :AccessMode, :Sp, :Url, :Location, :Latitude, :Longitude, :Context, :IsAuthorized
|
465
|
+
|
466
|
+
def initialize(seq=nil, ostype=nil, agefloor=nil, ageceil=nil, gender=nil, usertime=nil, imei=nil, imeimd5=nil, idfa=nil, idfamd5=nil, userip=nil, mac=nil, phonenum=nil, useragent=nil, app=nil, package=nil, devicemaker=nil, devicemodule=nil, accessmode=nil, sp=nil, url=nil, location=nil, latitude=nil, longitude=nil, context=nil, isauthorized=nil)
|
467
|
+
@Seq = seq
|
468
|
+
@OsType = ostype
|
469
|
+
@AgeFloor = agefloor
|
470
|
+
@AgeCeil = ageceil
|
471
|
+
@Gender = gender
|
472
|
+
@UserTime = usertime
|
473
|
+
@Imei = imei
|
474
|
+
@ImeiMd5 = imeimd5
|
475
|
+
@Idfa = idfa
|
476
|
+
@IdfaMd5 = idfamd5
|
477
|
+
@UserIp = userip
|
478
|
+
@Mac = mac
|
479
|
+
@PhoneNum = phonenum
|
480
|
+
@UserAgent = useragent
|
481
|
+
@App = app
|
482
|
+
@Package = package
|
483
|
+
@DeviceMaker = devicemaker
|
484
|
+
@DeviceModule = devicemodule
|
485
|
+
@AccessMode = accessmode
|
486
|
+
@Sp = sp
|
487
|
+
@Url = url
|
488
|
+
@Location = location
|
489
|
+
@Latitude = latitude
|
490
|
+
@Longitude = longitude
|
491
|
+
@Context = context
|
492
|
+
@IsAuthorized = isauthorized
|
493
|
+
end
|
494
|
+
|
495
|
+
def deserialize(params)
|
496
|
+
@Seq = params['Seq']
|
497
|
+
@OsType = params['OsType']
|
498
|
+
@AgeFloor = params['AgeFloor']
|
499
|
+
@AgeCeil = params['AgeCeil']
|
500
|
+
@Gender = params['Gender']
|
501
|
+
@UserTime = params['UserTime']
|
502
|
+
@Imei = params['Imei']
|
503
|
+
@ImeiMd5 = params['ImeiMd5']
|
504
|
+
@Idfa = params['Idfa']
|
505
|
+
@IdfaMd5 = params['IdfaMd5']
|
506
|
+
@UserIp = params['UserIp']
|
507
|
+
@Mac = params['Mac']
|
508
|
+
@PhoneNum = params['PhoneNum']
|
509
|
+
@UserAgent = params['UserAgent']
|
510
|
+
@App = params['App']
|
511
|
+
@Package = params['Package']
|
512
|
+
@DeviceMaker = params['DeviceMaker']
|
513
|
+
@DeviceModule = params['DeviceModule']
|
514
|
+
@AccessMode = params['AccessMode']
|
515
|
+
@Sp = params['Sp']
|
516
|
+
@Url = params['Url']
|
517
|
+
@Location = params['Location']
|
518
|
+
@Latitude = params['Latitude']
|
519
|
+
@Longitude = params['Longitude']
|
520
|
+
@Context = params['Context']
|
521
|
+
@IsAuthorized = params['IsAuthorized']
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# CheckKol
|
526
|
+
class OutputKolData < TencentCloud::Common::AbstractModel
|
527
|
+
# @param Code: 错误码[0:成功;非0:失败的错误码]
|
528
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
529
|
+
# @type Code: Integer
|
530
|
+
# @param Message: 错误信息
|
531
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
532
|
+
# @type Message: String
|
533
|
+
# @param Value: 业务返回数据
|
534
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
535
|
+
# @type Value: Array
|
536
|
+
|
537
|
+
attr_accessor :Code, :Message, :Value
|
538
|
+
|
539
|
+
def initialize(code=nil, message=nil, value=nil)
|
540
|
+
@Code = code
|
541
|
+
@Message = message
|
542
|
+
@Value = value
|
543
|
+
end
|
544
|
+
|
545
|
+
def deserialize(params)
|
546
|
+
@Code = params['Code']
|
547
|
+
@Message = params['Message']
|
548
|
+
unless params['Value'].nil?
|
549
|
+
@Value = []
|
550
|
+
params['Value'].each do |i|
|
551
|
+
outputkolvalue_tmp = OutputKolValue.new
|
552
|
+
outputkolvalue_tmp.deserialize(i)
|
553
|
+
@Value << outputkolvalue_tmp
|
554
|
+
end
|
555
|
+
end
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
# CheckKol
|
560
|
+
class OutputKolValue < TencentCloud::Common::AbstractModel
|
561
|
+
# @param Id: KOL账号ID[比如微信公众号ID]
|
562
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
563
|
+
# @type Id: String
|
564
|
+
# @param IsCheck: 是否查得[0:未查得;1:查得]
|
565
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
566
|
+
# @type IsCheck: Integer
|
567
|
+
# @param FraudPScore: 作弊的可能性[0~100]
|
568
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
569
|
+
# @type FraudPScore: Integer
|
570
|
+
# @param EvilPScore: 作弊的严重性[0~100]
|
571
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
572
|
+
# @type EvilPScore: Integer
|
573
|
+
|
574
|
+
attr_accessor :Id, :IsCheck, :FraudPScore, :EvilPScore
|
575
|
+
|
576
|
+
def initialize(id=nil, ischeck=nil, fraudpscore=nil, evilpscore=nil)
|
577
|
+
@Id = id
|
578
|
+
@IsCheck = ischeck
|
579
|
+
@FraudPScore = fraudpscore
|
580
|
+
@EvilPScore = evilpscore
|
581
|
+
end
|
582
|
+
|
583
|
+
def deserialize(params)
|
584
|
+
@Id = params['Id']
|
585
|
+
@IsCheck = params['IsCheck']
|
586
|
+
@FraudPScore = params['FraudPScore']
|
587
|
+
@EvilPScore = params['EvilPScore']
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
# 业务出参
|
592
|
+
class OutputRecognizeEffectiveFlow < TencentCloud::Common::AbstractModel
|
593
|
+
# @param Code: 返回码。0表示成功,非0标识失败错误码
|
594
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
595
|
+
# @type Code: Integer
|
596
|
+
# @param Message: UTF-8编码,出错消息。
|
597
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
598
|
+
# @type Message: String
|
599
|
+
# @param Value: 业务入参
|
600
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
601
|
+
# @type Value: :class:`Tencentcloud::Taf.v20200210.models.OutputRecognizeEffectiveFlowValue`
|
602
|
+
|
603
|
+
attr_accessor :Code, :Message, :Value
|
604
|
+
|
605
|
+
def initialize(code=nil, message=nil, value=nil)
|
606
|
+
@Code = code
|
607
|
+
@Message = message
|
608
|
+
@Value = value
|
609
|
+
end
|
610
|
+
|
611
|
+
def deserialize(params)
|
612
|
+
@Code = params['Code']
|
613
|
+
@Message = params['Message']
|
614
|
+
unless params['Value'].nil?
|
615
|
+
@Value = OutputRecognizeEffectiveFlowValue.new
|
616
|
+
@Value.deserialize(params['Value'])
|
617
|
+
end
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
621
|
+
# 业务出参
|
622
|
+
class OutputRecognizeEffectiveFlowValue < TencentCloud::Common::AbstractModel
|
623
|
+
# @param Lable: 返回标签
|
624
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
625
|
+
# @type Lable: String
|
626
|
+
# @param Score: 返回分值
|
627
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
628
|
+
# @type Score: Float
|
629
|
+
|
630
|
+
attr_accessor :Lable, :Score
|
631
|
+
|
632
|
+
def initialize(lable=nil, score=nil)
|
633
|
+
@Lable = lable
|
634
|
+
@Score = score
|
635
|
+
end
|
636
|
+
|
637
|
+
def deserialize(params)
|
638
|
+
@Lable = params['Lable']
|
639
|
+
@Score = params['Score']
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
# 流量反欺诈-验准返回值
|
644
|
+
class OutputRecognizeTargetAudience < TencentCloud::Common::AbstractModel
|
645
|
+
# @param Code: 返回码(0,成功,其他失败)
|
646
|
+
# @type Code: Integer
|
647
|
+
# @param Message: 返回码对应的信息
|
648
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
649
|
+
# @type Message: String
|
650
|
+
# @param Value: 返回模型结果
|
651
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
652
|
+
# @type Value: Array
|
653
|
+
|
654
|
+
attr_accessor :Code, :Message, :Value
|
655
|
+
|
656
|
+
def initialize(code=nil, message=nil, value=nil)
|
657
|
+
@Code = code
|
658
|
+
@Message = message
|
659
|
+
@Value = value
|
660
|
+
end
|
661
|
+
|
662
|
+
def deserialize(params)
|
663
|
+
@Code = params['Code']
|
664
|
+
@Message = params['Message']
|
665
|
+
unless params['Value'].nil?
|
666
|
+
@Value = []
|
667
|
+
params['Value'].each do |i|
|
668
|
+
outputrecognizetargetaudiencevalue_tmp = OutputRecognizeTargetAudienceValue.new
|
669
|
+
outputrecognizetargetaudiencevalue_tmp.deserialize(i)
|
670
|
+
@Value << outputrecognizetargetaudiencevalue_tmp
|
671
|
+
end
|
672
|
+
end
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
# 流量反欺诈-验准返回的查询分值
|
677
|
+
class OutputRecognizeTargetAudienceValue < TencentCloud::Common::AbstractModel
|
678
|
+
# @param ModelId: 模型ID
|
679
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
680
|
+
# @type ModelId: Integer
|
681
|
+
# @param IsFound: 是否正常返回结果
|
682
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
683
|
+
# @type IsFound: Integer
|
684
|
+
# @param Score: 返回分值
|
685
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
686
|
+
# @type Score: Float
|
687
|
+
|
688
|
+
attr_accessor :ModelId, :IsFound, :Score
|
689
|
+
|
690
|
+
def initialize(modelid=nil, isfound=nil, score=nil)
|
691
|
+
@ModelId = modelid
|
692
|
+
@IsFound = isfound
|
693
|
+
@Score = score
|
694
|
+
end
|
695
|
+
|
696
|
+
def deserialize(params)
|
697
|
+
@ModelId = params['ModelId']
|
698
|
+
@IsFound = params['IsFound']
|
699
|
+
@Score = params['Score']
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
703
|
+
# 返回结果
|
704
|
+
class OutputSendTrafficSecuritySmsMsg < TencentCloud::Common::AbstractModel
|
705
|
+
# @param Code: 返回码(0:接口调用成功 非0:接口调用失败)
|
706
|
+
# @type Code: Integer
|
707
|
+
# @param Message: 返回码对应的信息
|
708
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
709
|
+
# @type Message: String
|
710
|
+
# @param Value: 发送失败的号码列表
|
711
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
712
|
+
# @type Value: Array
|
713
|
+
|
714
|
+
attr_accessor :Code, :Message, :Value
|
715
|
+
|
716
|
+
def initialize(code=nil, message=nil, value=nil)
|
717
|
+
@Code = code
|
718
|
+
@Message = message
|
719
|
+
@Value = value
|
720
|
+
end
|
721
|
+
|
722
|
+
def deserialize(params)
|
723
|
+
@Code = params['Code']
|
724
|
+
@Message = params['Message']
|
725
|
+
@Value = params['Value']
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
729
|
+
# 流量反欺诈-虚假TA识别
|
730
|
+
class OutputTaData < TencentCloud::Common::AbstractModel
|
731
|
+
# @param Code: 错误码[0:成功;非0:失败的错误码]
|
732
|
+
# @type Code: Integer
|
733
|
+
# @param Message: 错误信息
|
734
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
735
|
+
# @type Message: String
|
736
|
+
# @param Value: 结果数据
|
737
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
738
|
+
# @type Value: :class:`Tencentcloud::Taf.v20200210.models.OutputTaValue`
|
739
|
+
|
740
|
+
attr_accessor :Code, :Message, :Value
|
741
|
+
|
742
|
+
def initialize(code=nil, message=nil, value=nil)
|
743
|
+
@Code = code
|
744
|
+
@Message = message
|
745
|
+
@Value = value
|
746
|
+
end
|
747
|
+
|
748
|
+
def deserialize(params)
|
749
|
+
@Code = params['Code']
|
750
|
+
@Message = params['Message']
|
751
|
+
unless params['Value'].nil?
|
752
|
+
@Value = OutputTaValue.new
|
753
|
+
@Value.deserialize(params['Value'])
|
754
|
+
end
|
755
|
+
end
|
756
|
+
end
|
757
|
+
|
758
|
+
# 流量反欺诈-虚假TA识别
|
759
|
+
class OutputTaValue < TencentCloud::Common::AbstractModel
|
760
|
+
# @param IsCheck: 是否查得[0:未查得;1:查得]
|
761
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
762
|
+
# @type IsCheck: Integer
|
763
|
+
# @param IsMatch: 是否符合[0:不符合;1:符合]
|
764
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
765
|
+
# @type IsMatch: Integer
|
766
|
+
|
767
|
+
attr_accessor :IsCheck, :IsMatch
|
768
|
+
|
769
|
+
def initialize(ischeck=nil, ismatch=nil)
|
770
|
+
@IsCheck = ischeck
|
771
|
+
@IsMatch = ismatch
|
772
|
+
end
|
773
|
+
|
774
|
+
def deserialize(params)
|
775
|
+
@IsCheck = params['IsCheck']
|
776
|
+
@IsMatch = params['IsMatch']
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
780
|
+
# RecognizeCustomizedAudience请求参数结构体
|
781
|
+
class RecognizeCustomizedAudienceRequest < TencentCloud::Common::AbstractModel
|
782
|
+
# @param BspData: 业务入参
|
783
|
+
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputRecognizeTargetAudience`
|
784
|
+
|
785
|
+
attr_accessor :BspData
|
786
|
+
|
787
|
+
def initialize(bspdata=nil)
|
788
|
+
@BspData = bspdata
|
789
|
+
end
|
790
|
+
|
791
|
+
def deserialize(params)
|
792
|
+
unless params['BspData'].nil?
|
793
|
+
@BspData = InputRecognizeTargetAudience.new
|
794
|
+
@BspData.deserialize(params['BspData'])
|
795
|
+
end
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
799
|
+
# RecognizeCustomizedAudience返回参数结构体
|
800
|
+
class RecognizeCustomizedAudienceResponse < TencentCloud::Common::AbstractModel
|
801
|
+
# @param Data: 业务出参
|
802
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
803
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputRecognizeTargetAudience`
|
804
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
805
|
+
# @type RequestId: String
|
806
|
+
|
807
|
+
attr_accessor :Data, :RequestId
|
808
|
+
|
809
|
+
def initialize(data=nil, requestid=nil)
|
810
|
+
@Data = data
|
811
|
+
@RequestId = requestid
|
812
|
+
end
|
813
|
+
|
814
|
+
def deserialize(params)
|
815
|
+
unless params['Data'].nil?
|
816
|
+
@Data = OutputRecognizeTargetAudience.new
|
817
|
+
@Data.deserialize(params['Data'])
|
818
|
+
end
|
819
|
+
@RequestId = params['RequestId']
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
823
|
+
# RecognizeEffectiveFlow请求参数结构体
|
824
|
+
class RecognizeEffectiveFlowRequest < TencentCloud::Common::AbstractModel
|
825
|
+
# @param BusinessSecurityData: 业务入参
|
826
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Taf.v20200210.models.InputRecognizeEffectiveFlow`
|
827
|
+
|
828
|
+
attr_accessor :BusinessSecurityData
|
829
|
+
|
830
|
+
def initialize(businesssecuritydata=nil)
|
831
|
+
@BusinessSecurityData = businesssecuritydata
|
832
|
+
end
|
833
|
+
|
834
|
+
def deserialize(params)
|
835
|
+
unless params['BusinessSecurityData'].nil?
|
836
|
+
@BusinessSecurityData = InputRecognizeEffectiveFlow.new
|
837
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
838
|
+
end
|
839
|
+
end
|
840
|
+
end
|
841
|
+
|
842
|
+
# RecognizeEffectiveFlow返回参数结构体
|
843
|
+
class RecognizeEffectiveFlowResponse < TencentCloud::Common::AbstractModel
|
844
|
+
# @param Data: 业务出参
|
845
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputRecognizeEffectiveFlow`
|
846
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
847
|
+
# @type RequestId: String
|
848
|
+
|
849
|
+
attr_accessor :Data, :RequestId
|
850
|
+
|
851
|
+
def initialize(data=nil, requestid=nil)
|
852
|
+
@Data = data
|
853
|
+
@RequestId = requestid
|
854
|
+
end
|
855
|
+
|
856
|
+
def deserialize(params)
|
857
|
+
unless params['Data'].nil?
|
858
|
+
@Data = OutputRecognizeEffectiveFlow.new
|
859
|
+
@Data.deserialize(params['Data'])
|
860
|
+
end
|
861
|
+
@RequestId = params['RequestId']
|
862
|
+
end
|
863
|
+
end
|
864
|
+
|
865
|
+
# RecognizePreciseTargetAudience请求参数结构体
|
866
|
+
class RecognizePreciseTargetAudienceRequest < TencentCloud::Common::AbstractModel
|
867
|
+
# @param BspData: 业务数据
|
868
|
+
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputRecognizeTargetAudience`
|
869
|
+
|
870
|
+
attr_accessor :BspData
|
871
|
+
|
872
|
+
def initialize(bspdata=nil)
|
873
|
+
@BspData = bspdata
|
874
|
+
end
|
875
|
+
|
876
|
+
def deserialize(params)
|
877
|
+
unless params['BspData'].nil?
|
878
|
+
@BspData = InputRecognizeTargetAudience.new
|
879
|
+
@BspData.deserialize(params['BspData'])
|
880
|
+
end
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
# RecognizePreciseTargetAudience返回参数结构体
|
885
|
+
class RecognizePreciseTargetAudienceResponse < TencentCloud::Common::AbstractModel
|
886
|
+
# @param Data: 回包数据
|
887
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
888
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputRecognizeTargetAudience`
|
889
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
890
|
+
# @type RequestId: String
|
891
|
+
|
892
|
+
attr_accessor :Data, :RequestId
|
893
|
+
|
894
|
+
def initialize(data=nil, requestid=nil)
|
895
|
+
@Data = data
|
896
|
+
@RequestId = requestid
|
897
|
+
end
|
898
|
+
|
899
|
+
def deserialize(params)
|
900
|
+
unless params['Data'].nil?
|
901
|
+
@Data = OutputRecognizeTargetAudience.new
|
902
|
+
@Data.deserialize(params['Data'])
|
903
|
+
end
|
904
|
+
@RequestId = params['RequestId']
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
908
|
+
# RecognizeTargetAudience请求参数结构体
|
909
|
+
class RecognizeTargetAudienceRequest < TencentCloud::Common::AbstractModel
|
910
|
+
# @param BspData: 业务数据
|
911
|
+
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputRecognizeTargetAudience`
|
912
|
+
# @param BusinessEncryptData: 业务加密数据
|
913
|
+
# @type BusinessEncryptData: :class:`Tencentcloud::Taf.v20200210.models.InputBusinessEncryptData`
|
914
|
+
|
915
|
+
attr_accessor :BspData, :BusinessEncryptData
|
916
|
+
|
917
|
+
def initialize(bspdata=nil, businessencryptdata=nil)
|
918
|
+
@BspData = bspdata
|
919
|
+
@BusinessEncryptData = businessencryptdata
|
920
|
+
end
|
921
|
+
|
922
|
+
def deserialize(params)
|
923
|
+
unless params['BspData'].nil?
|
924
|
+
@BspData = InputRecognizeTargetAudience.new
|
925
|
+
@BspData.deserialize(params['BspData'])
|
926
|
+
end
|
927
|
+
unless params['BusinessEncryptData'].nil?
|
928
|
+
@BusinessEncryptData = InputBusinessEncryptData.new
|
929
|
+
@BusinessEncryptData.deserialize(params['BusinessEncryptData'])
|
930
|
+
end
|
931
|
+
end
|
932
|
+
end
|
933
|
+
|
934
|
+
# RecognizeTargetAudience返回参数结构体
|
935
|
+
class RecognizeTargetAudienceResponse < TencentCloud::Common::AbstractModel
|
936
|
+
# @param Data: 回包数据
|
937
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
938
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputRecognizeTargetAudience`
|
939
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
940
|
+
# @type RequestId: String
|
941
|
+
|
942
|
+
attr_accessor :Data, :RequestId
|
943
|
+
|
944
|
+
def initialize(data=nil, requestid=nil)
|
945
|
+
@Data = data
|
946
|
+
@RequestId = requestid
|
947
|
+
end
|
948
|
+
|
949
|
+
def deserialize(params)
|
950
|
+
unless params['Data'].nil?
|
951
|
+
@Data = OutputRecognizeTargetAudience.new
|
952
|
+
@Data.deserialize(params['Data'])
|
953
|
+
end
|
954
|
+
@RequestId = params['RequestId']
|
955
|
+
end
|
956
|
+
end
|
957
|
+
|
958
|
+
# SendTrafficSecuritySmsMessage请求参数结构体
|
959
|
+
class SendTrafficSecuritySmsMessageRequest < TencentCloud::Common::AbstractModel
|
960
|
+
# @param BspData: 业务入参
|
961
|
+
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputSendTrafficSecuritySmsMsg`
|
962
|
+
|
963
|
+
attr_accessor :BspData
|
964
|
+
|
965
|
+
def initialize(bspdata=nil)
|
966
|
+
@BspData = bspdata
|
967
|
+
end
|
968
|
+
|
969
|
+
def deserialize(params)
|
970
|
+
unless params['BspData'].nil?
|
971
|
+
@BspData = InputSendTrafficSecuritySmsMsg.new
|
972
|
+
@BspData.deserialize(params['BspData'])
|
973
|
+
end
|
974
|
+
end
|
975
|
+
end
|
976
|
+
|
977
|
+
# SendTrafficSecuritySmsMessage返回参数结构体
|
978
|
+
class SendTrafficSecuritySmsMessageResponse < TencentCloud::Common::AbstractModel
|
979
|
+
# @param Data: 返回结果
|
980
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
981
|
+
# @type Data: :class:`Tencentcloud::Taf.v20200210.models.OutputSendTrafficSecuritySmsMsg`
|
982
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
983
|
+
# @type RequestId: String
|
984
|
+
|
985
|
+
attr_accessor :Data, :RequestId
|
986
|
+
|
987
|
+
def initialize(data=nil, requestid=nil)
|
988
|
+
@Data = data
|
989
|
+
@RequestId = requestid
|
990
|
+
end
|
991
|
+
|
992
|
+
def deserialize(params)
|
993
|
+
unless params['Data'].nil?
|
994
|
+
@Data = OutputSendTrafficSecuritySmsMsg.new
|
995
|
+
@Data.deserialize(params['Data'])
|
996
|
+
end
|
997
|
+
@RequestId = params['RequestId']
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
|
1001
|
+
end
|
1002
|
+
end
|
1003
|
+
end
|
1004
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-taf
|
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
|
+
TAF.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-taf.rb
|
38
|
+
- lib/v20200210/client.rb
|
39
|
+
- lib/v20200210/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-taf
|
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 - TAF
|
66
|
+
test_files: []
|