tencentcloud-sdk-apcas 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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-apcas.rb +11 -0
- data/lib/v20201127/client.rb +204 -0
- data/lib/v20201127/models.rb +640 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cffb46e3594be35e51319cca5129ca091aa7b3a5
|
4
|
+
data.tar.gz: ef266f327087797b944a3643c643433cdb4f28f5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c05ba3e1f406a46278621d5db4ea20e4368adabb4bdd7ee903144ca3e5980aac87b14d499e4d2fed654a436a48be7875d591def3b40b6ba1752d420256ac1ca7
|
7
|
+
data.tar.gz: a8d2062d7aff7a490a47190ff0f94294858790179383e059258bc3a1134496c5e771cf3279c36eac8889e2279614a4b04e66c389bf60a44ca55911b520015fac
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,204 @@
|
|
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 Apcas
|
21
|
+
module V20201127
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2020-11-27'
|
26
|
+
api_endpoint = 'apcas.tencentcloudapi.com'
|
27
|
+
sdk_version = 'APCAS_' + 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 GetTaskDetail.
|
35
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::GetTaskDetailRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::GetTaskDetailResponse`
|
37
|
+
def GetTaskDetail(request)
|
38
|
+
body = send_request('GetTaskDetail', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = GetTaskDetailResponse.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
|
+
# 查询当前账号AppID下的画像洞察任务列表
|
57
|
+
|
58
|
+
# @param request: Request instance for GetTaskList.
|
59
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::GetTaskListRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::GetTaskListResponse`
|
61
|
+
def GetTaskList(request)
|
62
|
+
body = send_request('GetTaskList', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = GetTaskListResponse.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
|
+
# 根据传入的设备号(IMEI、IDFA、手机号、手机号MD5),返回意向评级结果
|
81
|
+
|
82
|
+
# @param request: Request instance for PredictRating.
|
83
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::PredictRatingRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::PredictRatingResponse`
|
85
|
+
def PredictRating(request)
|
86
|
+
body = send_request('PredictRating', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = PredictRatingResponse.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
|
+
# @param request: Request instance for QueryCallDetails.
|
107
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::QueryCallDetailsRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::QueryCallDetailsResponse`
|
109
|
+
def QueryCallDetails(request)
|
110
|
+
body = send_request('QueryCallDetails', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = QueryCallDetailsResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 按时间维度获取调用量统计
|
129
|
+
|
130
|
+
# @param request: Request instance for QueryCallStat.
|
131
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::QueryCallStatRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::QueryCallStatResponse`
|
133
|
+
def QueryCallStat(request)
|
134
|
+
body = send_request('QueryCallStat', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = QueryCallStatResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 获取日/月/周/总调用量统计数据
|
153
|
+
|
154
|
+
# @param request: Request instance for QueryGeneralStat.
|
155
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::QueryGeneralStatRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::QueryGeneralStatResponse`
|
157
|
+
def QueryGeneralStat(request)
|
158
|
+
body = send_request('QueryGeneralStat', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = QueryGeneralStatResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 上传群体画像的ID列表(支持的ID类型:0:imei 7:IDFA 8:MD5(imei)),后台返回生成的画像分析任务ID
|
177
|
+
|
178
|
+
# @param request: Request instance for UploadId.
|
179
|
+
# @type request: :class:`Tencentcloud::apcas::V20201127::UploadIdRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::apcas::V20201127::UploadIdResponse`
|
181
|
+
def UploadId(request)
|
182
|
+
body = send_request('UploadId', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = UploadIdResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
@@ -0,0 +1,640 @@
|
|
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 Apcas
|
19
|
+
module V20201127
|
20
|
+
# 调用明细结构体
|
21
|
+
class CallDetailItem < TencentCloud::Common::AbstractModel
|
22
|
+
# @param DataType: 数据类型 0 imei 1 qimei 2 qq 3 phone 7:IDFA 8:MD5(imei)
|
23
|
+
# @type DataType: Integer
|
24
|
+
# @param ValidAmount: 有效数据量
|
25
|
+
# @type ValidAmount: Integer
|
26
|
+
# @param Date: 调用时间
|
27
|
+
# @type Date: String
|
28
|
+
|
29
|
+
attr_accessor :DataType, :ValidAmount, :Date
|
30
|
+
|
31
|
+
def initialize(datatype=nil, validamount=nil, date=nil)
|
32
|
+
@DataType = datatype
|
33
|
+
@ValidAmount = validamount
|
34
|
+
@Date = date
|
35
|
+
end
|
36
|
+
|
37
|
+
def deserialize(params)
|
38
|
+
@DataType = params['DataType']
|
39
|
+
@ValidAmount = params['ValidAmount']
|
40
|
+
@Date = params['Date']
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# 调用明细返回数据体
|
45
|
+
class CallDetails < TencentCloud::Common::AbstractModel
|
46
|
+
# @param TotalCount: 符合条件的总条数
|
47
|
+
# @type TotalCount: Integer
|
48
|
+
# @param CallDetailSet: 调用明细数组
|
49
|
+
# @type CallDetailSet: Array
|
50
|
+
|
51
|
+
attr_accessor :TotalCount, :CallDetailSet
|
52
|
+
|
53
|
+
def initialize(totalcount=nil, calldetailset=nil)
|
54
|
+
@TotalCount = totalcount
|
55
|
+
@CallDetailSet = calldetailset
|
56
|
+
end
|
57
|
+
|
58
|
+
def deserialize(params)
|
59
|
+
@TotalCount = params['TotalCount']
|
60
|
+
unless params['CallDetailSet'].nil?
|
61
|
+
@CallDetailSet = []
|
62
|
+
params['CallDetailSet'].each do |i|
|
63
|
+
calldetailitem_tmp = CallDetailItem.new
|
64
|
+
calldetailitem_tmp.deserialize(i)
|
65
|
+
@CallDetailSet << calldetailitem_tmp
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# 调用量统计item
|
72
|
+
class CallStatItem < TencentCloud::Common::AbstractModel
|
73
|
+
# @param Date: 当前统计量的时间段
|
74
|
+
# @type Date: String
|
75
|
+
# @param Amount: 当前时间段的调用量
|
76
|
+
# @type Amount: Integer
|
77
|
+
|
78
|
+
attr_accessor :Date, :Amount
|
79
|
+
|
80
|
+
def initialize(date=nil, amount=nil)
|
81
|
+
@Date = date
|
82
|
+
@Amount = amount
|
83
|
+
end
|
84
|
+
|
85
|
+
def deserialize(params)
|
86
|
+
@Date = params['Date']
|
87
|
+
@Amount = params['Amount']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# 调用量统计信息,包括周/日/月/总调用量
|
92
|
+
class GeneralStat < TencentCloud::Common::AbstractModel
|
93
|
+
# @param TodayAmount: 今日调用量
|
94
|
+
# @type TodayAmount: Integer
|
95
|
+
# @param WeekAmount: 本周调用量
|
96
|
+
# @type WeekAmount: Integer
|
97
|
+
# @param MonthAmount: 本月调用量
|
98
|
+
# @type MonthAmount: Integer
|
99
|
+
# @param TotalAmount: 总调用量
|
100
|
+
# @type TotalAmount: Integer
|
101
|
+
|
102
|
+
attr_accessor :TodayAmount, :WeekAmount, :MonthAmount, :TotalAmount
|
103
|
+
|
104
|
+
def initialize(todayamount=nil, weekamount=nil, monthamount=nil, totalamount=nil)
|
105
|
+
@TodayAmount = todayamount
|
106
|
+
@WeekAmount = weekamount
|
107
|
+
@MonthAmount = monthamount
|
108
|
+
@TotalAmount = totalamount
|
109
|
+
end
|
110
|
+
|
111
|
+
def deserialize(params)
|
112
|
+
@TodayAmount = params['TodayAmount']
|
113
|
+
@WeekAmount = params['WeekAmount']
|
114
|
+
@MonthAmount = params['MonthAmount']
|
115
|
+
@TotalAmount = params['TotalAmount']
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# GetTaskDetail请求参数结构体
|
120
|
+
class GetTaskDetailRequest < TencentCloud::Common::AbstractModel
|
121
|
+
# @param Id: 任务ID
|
122
|
+
# @type Id: Integer
|
123
|
+
|
124
|
+
attr_accessor :Id
|
125
|
+
|
126
|
+
def initialize(id=nil)
|
127
|
+
@Id = id
|
128
|
+
end
|
129
|
+
|
130
|
+
def deserialize(params)
|
131
|
+
@Id = params['Id']
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# GetTaskDetail返回参数结构体
|
136
|
+
class GetTaskDetailResponse < TencentCloud::Common::AbstractModel
|
137
|
+
# @param TaskDetailDataList: 画像洞察任务TAG详细数据列表
|
138
|
+
# @type TaskDetailDataList: Array
|
139
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
140
|
+
# @type RequestId: String
|
141
|
+
|
142
|
+
attr_accessor :TaskDetailDataList, :RequestId
|
143
|
+
|
144
|
+
def initialize(taskdetaildatalist=nil, requestid=nil)
|
145
|
+
@TaskDetailDataList = taskdetaildatalist
|
146
|
+
@RequestId = requestid
|
147
|
+
end
|
148
|
+
|
149
|
+
def deserialize(params)
|
150
|
+
unless params['TaskDetailDataList'].nil?
|
151
|
+
@TaskDetailDataList = []
|
152
|
+
params['TaskDetailDataList'].each do |i|
|
153
|
+
taskdetaildata_tmp = TaskDetailData.new
|
154
|
+
taskdetaildata_tmp.deserialize(i)
|
155
|
+
@TaskDetailDataList << taskdetaildata_tmp
|
156
|
+
end
|
157
|
+
end
|
158
|
+
@RequestId = params['RequestId']
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# GetTaskList请求参数结构体
|
163
|
+
class GetTaskListRequest < TencentCloud::Common::AbstractModel
|
164
|
+
# @param PageNumber: 查询分页页码
|
165
|
+
# @type PageNumber: Integer
|
166
|
+
# @param PageSize: 查询分页大小
|
167
|
+
# @type PageSize: Integer
|
168
|
+
# @param StartTime: 查询起始时间(13位数字的UNIX时间戳,单位毫秒 )
|
169
|
+
# @type StartTime: Integer
|
170
|
+
# @param EndTime: 查询结束时间(13位数字的UNIX时间戳,单位毫秒 )
|
171
|
+
# @type EndTime: Integer
|
172
|
+
# @param TaskName: 任务名称
|
173
|
+
# @type TaskName: String
|
174
|
+
# @param TaskStatus: 查询任务状态 0:默认状态 1:任务正在运行 2:任务运行成功 3:任务运行失败
|
175
|
+
# @type TaskStatus: Integer
|
176
|
+
|
177
|
+
attr_accessor :PageNumber, :PageSize, :StartTime, :EndTime, :TaskName, :TaskStatus
|
178
|
+
|
179
|
+
def initialize(pagenumber=nil, pagesize=nil, starttime=nil, endtime=nil, taskname=nil, taskstatus=nil)
|
180
|
+
@PageNumber = pagenumber
|
181
|
+
@PageSize = pagesize
|
182
|
+
@StartTime = starttime
|
183
|
+
@EndTime = endtime
|
184
|
+
@TaskName = taskname
|
185
|
+
@TaskStatus = taskstatus
|
186
|
+
end
|
187
|
+
|
188
|
+
def deserialize(params)
|
189
|
+
@PageNumber = params['PageNumber']
|
190
|
+
@PageSize = params['PageSize']
|
191
|
+
@StartTime = params['StartTime']
|
192
|
+
@EndTime = params['EndTime']
|
193
|
+
@TaskName = params['TaskName']
|
194
|
+
@TaskStatus = params['TaskStatus']
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# GetTaskList返回参数结构体
|
199
|
+
class GetTaskListResponse < TencentCloud::Common::AbstractModel
|
200
|
+
# @param TaskListData: 任务列表对象
|
201
|
+
# @type TaskListData: :class:`Tencentcloud::Apcas.v20201127.models.TaskListData`
|
202
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
203
|
+
# @type RequestId: String
|
204
|
+
|
205
|
+
attr_accessor :TaskListData, :RequestId
|
206
|
+
|
207
|
+
def initialize(tasklistdata=nil, requestid=nil)
|
208
|
+
@TaskListData = tasklistdata
|
209
|
+
@RequestId = requestid
|
210
|
+
end
|
211
|
+
|
212
|
+
def deserialize(params)
|
213
|
+
unless params['TaskListData'].nil?
|
214
|
+
@TaskListData = TaskListData.new
|
215
|
+
@TaskListData.deserialize(params['TaskListData'])
|
216
|
+
end
|
217
|
+
@RequestId = params['RequestId']
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# 画像标签详情数据对象
|
222
|
+
class LabelDetailData < TencentCloud::Common::AbstractModel
|
223
|
+
# @param Value: 标签数据对象
|
224
|
+
# @type Value: :class:`Tencentcloud::Apcas.v20201127.models.LabelValue`
|
225
|
+
# @param Label: 标签表述,如"汽车资讯"、"游戏#手游"等
|
226
|
+
# @type Label: String
|
227
|
+
|
228
|
+
attr_accessor :Value, :Label
|
229
|
+
|
230
|
+
def initialize(value=nil, label=nil)
|
231
|
+
@Value = value
|
232
|
+
@Label = label
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
unless params['Value'].nil?
|
237
|
+
@Value = LabelValue.new
|
238
|
+
@Value.deserialize(params['Value'])
|
239
|
+
end
|
240
|
+
@Label = params['Label']
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
# 标签数据
|
245
|
+
class LabelValue < TencentCloud::Common::AbstractModel
|
246
|
+
# @param Proportion: 标签覆盖率占比(在整个上传的ID列表中的覆盖率)
|
247
|
+
# @type Proportion: Float
|
248
|
+
# @param Market: 标签大盘覆盖率占比
|
249
|
+
# @type Market: Float
|
250
|
+
# @param Tgi: TGI指数,由Proportion除以Market得到
|
251
|
+
# @type Tgi: Float
|
252
|
+
|
253
|
+
attr_accessor :Proportion, :Market, :Tgi
|
254
|
+
|
255
|
+
def initialize(proportion=nil, market=nil, tgi=nil)
|
256
|
+
@Proportion = proportion
|
257
|
+
@Market = market
|
258
|
+
@Tgi = tgi
|
259
|
+
end
|
260
|
+
|
261
|
+
def deserialize(params)
|
262
|
+
@Proportion = params['Proportion']
|
263
|
+
@Market = params['Market']
|
264
|
+
@Tgi = params['Tgi']
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# 任务列表项Model
|
269
|
+
class ListModel < TencentCloud::Common::AbstractModel
|
270
|
+
# @param ID: 任务ID
|
271
|
+
# @type ID: Integer
|
272
|
+
# @param TaskName: 任务名称
|
273
|
+
# @type TaskName: String
|
274
|
+
# @param StartTime: 任务起始时间(13位数字的UNIX 时间戳,单位毫秒 )
|
275
|
+
# @type StartTime: Integer
|
276
|
+
# @param Status: 任务状态 0:默认状态 1:任务正在运行 2:任务运行成功 3:任务运行失败
|
277
|
+
# @type Status: Integer
|
278
|
+
# @param Available: 画像覆盖人数
|
279
|
+
# @type Available: Integer
|
280
|
+
# @param ErrMsg: 任务失败描述信息
|
281
|
+
# @type ErrMsg: String
|
282
|
+
|
283
|
+
attr_accessor :ID, :TaskName, :StartTime, :Status, :Available, :ErrMsg
|
284
|
+
|
285
|
+
def initialize(id=nil, taskname=nil, starttime=nil, status=nil, available=nil, errmsg=nil)
|
286
|
+
@ID = id
|
287
|
+
@TaskName = taskname
|
288
|
+
@StartTime = starttime
|
289
|
+
@Status = status
|
290
|
+
@Available = available
|
291
|
+
@ErrMsg = errmsg
|
292
|
+
end
|
293
|
+
|
294
|
+
def deserialize(params)
|
295
|
+
@ID = params['ID']
|
296
|
+
@TaskName = params['TaskName']
|
297
|
+
@StartTime = params['StartTime']
|
298
|
+
@Status = params['Status']
|
299
|
+
@Available = params['Available']
|
300
|
+
@ErrMsg = params['ErrMsg']
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
# PredictRating请求参数结构体
|
305
|
+
class PredictRatingRequest < TencentCloud::Common::AbstractModel
|
306
|
+
# @param Type: ID标志的类型,0:IMEI 7:IDFA 8:MD5(imei) 100: 手机号明文 101: 手机号md5加密
|
307
|
+
# @type Type: Integer
|
308
|
+
# @param Id: 请求唯一标志ID
|
309
|
+
# @type Id: String
|
310
|
+
|
311
|
+
attr_accessor :Type, :Id
|
312
|
+
|
313
|
+
def initialize(type=nil, id=nil)
|
314
|
+
@Type = type
|
315
|
+
@Id = id
|
316
|
+
end
|
317
|
+
|
318
|
+
def deserialize(params)
|
319
|
+
@Type = params['Type']
|
320
|
+
@Id = params['Id']
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
# PredictRating返回参数结构体
|
325
|
+
class PredictRatingResponse < TencentCloud::Common::AbstractModel
|
326
|
+
# @param RatingData: 意向评级
|
327
|
+
# @type RatingData: :class:`Tencentcloud::Apcas.v20201127.models.RatingData`
|
328
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
329
|
+
# @type RequestId: String
|
330
|
+
|
331
|
+
attr_accessor :RatingData, :RequestId
|
332
|
+
|
333
|
+
def initialize(ratingdata=nil, requestid=nil)
|
334
|
+
@RatingData = ratingdata
|
335
|
+
@RequestId = requestid
|
336
|
+
end
|
337
|
+
|
338
|
+
def deserialize(params)
|
339
|
+
unless params['RatingData'].nil?
|
340
|
+
@RatingData = RatingData.new
|
341
|
+
@RatingData.deserialize(params['RatingData'])
|
342
|
+
end
|
343
|
+
@RequestId = params['RequestId']
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# QueryCallDetails请求参数结构体
|
348
|
+
class QueryCallDetailsRequest < TencentCloud::Common::AbstractModel
|
349
|
+
# @param Type: 请求类型 1:人群特征洞察统计 2:购车意向预测统计
|
350
|
+
# @type Type: Integer
|
351
|
+
# @param StartTime: 开始时间戳(毫秒)
|
352
|
+
# @type StartTime: Integer
|
353
|
+
# @param EndTime: 结束时间戳(毫秒)
|
354
|
+
# @type EndTime: Integer
|
355
|
+
# @param PageNumber: 页数
|
356
|
+
# @type PageNumber: Integer
|
357
|
+
# @param PageSize: 每页个数
|
358
|
+
# @type PageSize: Integer
|
359
|
+
|
360
|
+
attr_accessor :Type, :StartTime, :EndTime, :PageNumber, :PageSize
|
361
|
+
|
362
|
+
def initialize(type=nil, starttime=nil, endtime=nil, pagenumber=nil, pagesize=nil)
|
363
|
+
@Type = type
|
364
|
+
@StartTime = starttime
|
365
|
+
@EndTime = endtime
|
366
|
+
@PageNumber = pagenumber
|
367
|
+
@PageSize = pagesize
|
368
|
+
end
|
369
|
+
|
370
|
+
def deserialize(params)
|
371
|
+
@Type = params['Type']
|
372
|
+
@StartTime = params['StartTime']
|
373
|
+
@EndTime = params['EndTime']
|
374
|
+
@PageNumber = params['PageNumber']
|
375
|
+
@PageSize = params['PageSize']
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
# QueryCallDetails返回参数结构体
|
380
|
+
class QueryCallDetailsResponse < TencentCloud::Common::AbstractModel
|
381
|
+
# @param CallDetails: 调用明细
|
382
|
+
# @type CallDetails: :class:`Tencentcloud::Apcas.v20201127.models.CallDetails`
|
383
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
384
|
+
# @type RequestId: String
|
385
|
+
|
386
|
+
attr_accessor :CallDetails, :RequestId
|
387
|
+
|
388
|
+
def initialize(calldetails=nil, requestid=nil)
|
389
|
+
@CallDetails = calldetails
|
390
|
+
@RequestId = requestid
|
391
|
+
end
|
392
|
+
|
393
|
+
def deserialize(params)
|
394
|
+
unless params['CallDetails'].nil?
|
395
|
+
@CallDetails = CallDetails.new
|
396
|
+
@CallDetails.deserialize(params['CallDetails'])
|
397
|
+
end
|
398
|
+
@RequestId = params['RequestId']
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# QueryCallStat请求参数结构体
|
403
|
+
class QueryCallStatRequest < TencentCloud::Common::AbstractModel
|
404
|
+
# @param Type: 请求类型 1:人群特征洞察统计 2:购车意向预测统计
|
405
|
+
# @type Type: Integer
|
406
|
+
# @param StartTime: 开始时间戳(毫秒)
|
407
|
+
# @type StartTime: Integer
|
408
|
+
# @param EndTime: 结束时间戳(毫秒)
|
409
|
+
# @type EndTime: Integer
|
410
|
+
|
411
|
+
attr_accessor :Type, :StartTime, :EndTime
|
412
|
+
|
413
|
+
def initialize(type=nil, starttime=nil, endtime=nil)
|
414
|
+
@Type = type
|
415
|
+
@StartTime = starttime
|
416
|
+
@EndTime = endtime
|
417
|
+
end
|
418
|
+
|
419
|
+
def deserialize(params)
|
420
|
+
@Type = params['Type']
|
421
|
+
@StartTime = params['StartTime']
|
422
|
+
@EndTime = params['EndTime']
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
# QueryCallStat返回参数结构体
|
427
|
+
class QueryCallStatResponse < TencentCloud::Common::AbstractModel
|
428
|
+
# @param CallSet: 调用量数组
|
429
|
+
# @type CallSet: Array
|
430
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
431
|
+
# @type RequestId: String
|
432
|
+
|
433
|
+
attr_accessor :CallSet, :RequestId
|
434
|
+
|
435
|
+
def initialize(callset=nil, requestid=nil)
|
436
|
+
@CallSet = callset
|
437
|
+
@RequestId = requestid
|
438
|
+
end
|
439
|
+
|
440
|
+
def deserialize(params)
|
441
|
+
unless params['CallSet'].nil?
|
442
|
+
@CallSet = []
|
443
|
+
params['CallSet'].each do |i|
|
444
|
+
callstatitem_tmp = CallStatItem.new
|
445
|
+
callstatitem_tmp.deserialize(i)
|
446
|
+
@CallSet << callstatitem_tmp
|
447
|
+
end
|
448
|
+
end
|
449
|
+
@RequestId = params['RequestId']
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# QueryGeneralStat请求参数结构体
|
454
|
+
class QueryGeneralStatRequest < TencentCloud::Common::AbstractModel
|
455
|
+
# @param Type: 请求类型:1,人群特征洞察统计 2购车意向预测统计
|
456
|
+
# @type Type: Integer
|
457
|
+
|
458
|
+
attr_accessor :Type
|
459
|
+
|
460
|
+
def initialize(type=nil)
|
461
|
+
@Type = type
|
462
|
+
end
|
463
|
+
|
464
|
+
def deserialize(params)
|
465
|
+
@Type = params['Type']
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
# QueryGeneralStat返回参数结构体
|
470
|
+
class QueryGeneralStatResponse < TencentCloud::Common::AbstractModel
|
471
|
+
# @param GeneralStat: 调用量信息
|
472
|
+
# @type GeneralStat: :class:`Tencentcloud::Apcas.v20201127.models.GeneralStat`
|
473
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
474
|
+
# @type RequestId: String
|
475
|
+
|
476
|
+
attr_accessor :GeneralStat, :RequestId
|
477
|
+
|
478
|
+
def initialize(generalstat=nil, requestid=nil)
|
479
|
+
@GeneralStat = generalstat
|
480
|
+
@RequestId = requestid
|
481
|
+
end
|
482
|
+
|
483
|
+
def deserialize(params)
|
484
|
+
unless params['GeneralStat'].nil?
|
485
|
+
@GeneralStat = GeneralStat.new
|
486
|
+
@GeneralStat.deserialize(params['GeneralStat'])
|
487
|
+
end
|
488
|
+
@RequestId = params['RequestId']
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
# 返回购车意向评级
|
493
|
+
class RatingData < TencentCloud::Common::AbstractModel
|
494
|
+
# @param Rank: 线索评级(取值:0、1、2、3分别代表无、低、中、高意愿)
|
495
|
+
# @type Rank: Integer
|
496
|
+
|
497
|
+
attr_accessor :Rank
|
498
|
+
|
499
|
+
def initialize(rank=nil)
|
500
|
+
@Rank = rank
|
501
|
+
end
|
502
|
+
|
503
|
+
def deserialize(params)
|
504
|
+
@Rank = params['Rank']
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
# 任务ID信息
|
509
|
+
class TaskData < TencentCloud::Common::AbstractModel
|
510
|
+
# @param Id: 画像洞察任务ID
|
511
|
+
# @type Id: Integer
|
512
|
+
|
513
|
+
attr_accessor :Id
|
514
|
+
|
515
|
+
def initialize(id=nil)
|
516
|
+
@Id = id
|
517
|
+
end
|
518
|
+
|
519
|
+
def deserialize(params)
|
520
|
+
@Id = params['Id']
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
# 画像任务详情对象
|
525
|
+
class TaskDetailData < TencentCloud::Common::AbstractModel
|
526
|
+
# @param TagId: 画像TAG ID
|
527
|
+
# @type TagId: Integer
|
528
|
+
# @param TagDesc: 画像TAG描述(如“省份分布”)
|
529
|
+
# @type TagDesc: String
|
530
|
+
# @param LabelDetailDataList: 画像Label对象列表(一个TAG对于N个Label,例如“省份分布”TAG对应“广东省”、“浙江省”等多个Label)
|
531
|
+
# @type LabelDetailDataList: Array
|
532
|
+
|
533
|
+
attr_accessor :TagId, :TagDesc, :LabelDetailDataList
|
534
|
+
|
535
|
+
def initialize(tagid=nil, tagdesc=nil, labeldetaildatalist=nil)
|
536
|
+
@TagId = tagid
|
537
|
+
@TagDesc = tagdesc
|
538
|
+
@LabelDetailDataList = labeldetaildatalist
|
539
|
+
end
|
540
|
+
|
541
|
+
def deserialize(params)
|
542
|
+
@TagId = params['TagId']
|
543
|
+
@TagDesc = params['TagDesc']
|
544
|
+
unless params['LabelDetailDataList'].nil?
|
545
|
+
@LabelDetailDataList = []
|
546
|
+
params['LabelDetailDataList'].each do |i|
|
547
|
+
labeldetaildata_tmp = LabelDetailData.new
|
548
|
+
labeldetaildata_tmp.deserialize(i)
|
549
|
+
@LabelDetailDataList << labeldetaildata_tmp
|
550
|
+
end
|
551
|
+
end
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
555
|
+
# 任务列表对象
|
556
|
+
class TaskListData < TencentCloud::Common::AbstractModel
|
557
|
+
# @param PageNumber: 查询分页页码
|
558
|
+
# @type PageNumber: Integer
|
559
|
+
# @param PageSize: 查询分页大小
|
560
|
+
# @type PageSize: Integer
|
561
|
+
# @param TotalCount: 任务列表总记录数
|
562
|
+
# @type TotalCount: Integer
|
563
|
+
# @param TaskList: 任务列表
|
564
|
+
# @type TaskList: Array
|
565
|
+
|
566
|
+
attr_accessor :PageNumber, :PageSize, :TotalCount, :TaskList
|
567
|
+
|
568
|
+
def initialize(pagenumber=nil, pagesize=nil, totalcount=nil, tasklist=nil)
|
569
|
+
@PageNumber = pagenumber
|
570
|
+
@PageSize = pagesize
|
571
|
+
@TotalCount = totalcount
|
572
|
+
@TaskList = tasklist
|
573
|
+
end
|
574
|
+
|
575
|
+
def deserialize(params)
|
576
|
+
@PageNumber = params['PageNumber']
|
577
|
+
@PageSize = params['PageSize']
|
578
|
+
@TotalCount = params['TotalCount']
|
579
|
+
unless params['TaskList'].nil?
|
580
|
+
@TaskList = []
|
581
|
+
params['TaskList'].each do |i|
|
582
|
+
listmodel_tmp = ListModel.new
|
583
|
+
listmodel_tmp.deserialize(i)
|
584
|
+
@TaskList << listmodel_tmp
|
585
|
+
end
|
586
|
+
end
|
587
|
+
end
|
588
|
+
end
|
589
|
+
|
590
|
+
# UploadId请求参数结构体
|
591
|
+
class UploadIdRequest < TencentCloud::Common::AbstractModel
|
592
|
+
# @param Type: id标志的类型: 0:imei 7:IDFA 8:MD5(imei)
|
593
|
+
# @type Type: Integer
|
594
|
+
# @param TaskName: 任务名称
|
595
|
+
# @type TaskName: String
|
596
|
+
# @param IdListBase64: ID列表(ID间使用换行符分割、然后使用Base64编码)
|
597
|
+
# @type IdListBase64: String
|
598
|
+
|
599
|
+
attr_accessor :Type, :TaskName, :IdListBase64
|
600
|
+
|
601
|
+
def initialize(type=nil, taskname=nil, idlistbase64=nil)
|
602
|
+
@Type = type
|
603
|
+
@TaskName = taskname
|
604
|
+
@IdListBase64 = idlistbase64
|
605
|
+
end
|
606
|
+
|
607
|
+
def deserialize(params)
|
608
|
+
@Type = params['Type']
|
609
|
+
@TaskName = params['TaskName']
|
610
|
+
@IdListBase64 = params['IdListBase64']
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
614
|
+
# UploadId返回参数结构体
|
615
|
+
class UploadIdResponse < TencentCloud::Common::AbstractModel
|
616
|
+
# @param TaskData: 画像洞察任务ID等信息
|
617
|
+
# @type TaskData: :class:`Tencentcloud::Apcas.v20201127.models.TaskData`
|
618
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
619
|
+
# @type RequestId: String
|
620
|
+
|
621
|
+
attr_accessor :TaskData, :RequestId
|
622
|
+
|
623
|
+
def initialize(taskdata=nil, requestid=nil)
|
624
|
+
@TaskData = taskdata
|
625
|
+
@RequestId = requestid
|
626
|
+
end
|
627
|
+
|
628
|
+
def deserialize(params)
|
629
|
+
unless params['TaskData'].nil?
|
630
|
+
@TaskData = TaskData.new
|
631
|
+
@TaskData.deserialize(params['TaskData'])
|
632
|
+
end
|
633
|
+
@RequestId = params['RequestId']
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
end
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-apcas
|
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
|
+
APCAS.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-apcas.rb
|
38
|
+
- lib/v20201127/client.rb
|
39
|
+
- lib/v20201127/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-apcas
|
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 - APCAS
|
66
|
+
test_files: []
|