tencentcloud-sdk-irp 1.0.353
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-irp.rb +11 -0
- data/lib/v20220324/client.rb +132 -0
- data/lib/v20220324/models.rb +784 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d37724bc56bc848e679367708c952479809e48c0
|
4
|
+
data.tar.gz: 4f876ed9943a9d2a46fe60dc737c7b2d6c07cd49
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 99aa1597fdaa255ae33f3195522ebf7156bb3edf1737a7a70eb7e673269a36315c9acf6770680bef5bb8185e74445f036742a1a07ef3cb1b9a93bedfffe47f3a
|
7
|
+
data.tar.gz: 6499cbdbad02fe55fc2529be047889e444a559984e2cd6a5b0376767506eefe1709af806d44b7a52cca95c8628763a57dcfad34e7f8de20dbc0dd0927afae538
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.353
|
@@ -0,0 +1,132 @@
|
|
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 Irp
|
21
|
+
module V20220324
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2022-03-24'
|
26
|
+
api_endpoint = 'irp.tencentcloudapi.com'
|
27
|
+
sdk_version = 'IRP_' + 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 RecommendContent.
|
35
|
+
# @type request: :class:`Tencentcloud::irp::V20220324::RecommendContentRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::irp::V20220324::RecommendContentResponse`
|
37
|
+
def RecommendContent(request)
|
38
|
+
body = send_request('RecommendContent', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = RecommendContentResponse.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
|
+
|
58
|
+
# @param request: Request instance for ReportAction.
|
59
|
+
# @type request: :class:`Tencentcloud::irp::V20220324::ReportActionRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::irp::V20220324::ReportActionResponse`
|
61
|
+
def ReportAction(request)
|
62
|
+
body = send_request('ReportAction', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = ReportActionResponse.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 ReportMaterial.
|
83
|
+
# @type request: :class:`Tencentcloud::irp::V20220324::ReportMaterialRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::irp::V20220324::ReportMaterialResponse`
|
85
|
+
def ReportMaterial(request)
|
86
|
+
body = send_request('ReportMaterial', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = ReportMaterialResponse.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 ReportPortrait.
|
107
|
+
# @type request: :class:`Tencentcloud::irp::V20220324::ReportPortraitRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::irp::V20220324::ReportPortraitResponse`
|
109
|
+
def ReportPortrait(request)
|
110
|
+
body = send_request('ReportPortrait', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = ReportPortraitResponse.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
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,784 @@
|
|
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 Irp
|
19
|
+
module V20220324
|
20
|
+
# 作者信息
|
21
|
+
class AuthorInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Id: 作者id
|
23
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
|
+
# @type Id: String
|
25
|
+
# @param Name: 作者名称
|
26
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
|
+
# @type Name: String
|
28
|
+
# @param SourceId: 作者来源
|
29
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
30
|
+
# @type SourceId: Integer
|
31
|
+
# @param FollowType: 关注类型:1-关注,2-取关
|
32
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
33
|
+
# @type FollowType: Integer
|
34
|
+
# @param IconUrl: 作者头像icon地址
|
35
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
36
|
+
# @type IconUrl: String
|
37
|
+
|
38
|
+
attr_accessor :Id, :Name, :SourceId, :FollowType, :IconUrl
|
39
|
+
|
40
|
+
def initialize(id=nil, name=nil, sourceid=nil, followtype=nil, iconurl=nil)
|
41
|
+
@Id = id
|
42
|
+
@Name = name
|
43
|
+
@SourceId = sourceid
|
44
|
+
@FollowType = followtype
|
45
|
+
@IconUrl = iconurl
|
46
|
+
end
|
47
|
+
|
48
|
+
def deserialize(params)
|
49
|
+
@Id = params['Id']
|
50
|
+
@Name = params['Name']
|
51
|
+
@SourceId = params['SourceId']
|
52
|
+
@FollowType = params['FollowType']
|
53
|
+
@IconUrl = params['IconUrl']
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# 不喜欢信息
|
58
|
+
class DislikeInfo < TencentCloud::Common::AbstractModel
|
59
|
+
# @param Type: 不喜欢的物料类别,对应物料上传协议中的字段名,如authorId,keyword,topic等
|
60
|
+
# @type Type: String
|
61
|
+
# @param Value: type对应字段名的值,如具体的topic名,作者id等
|
62
|
+
# @type Value: String
|
63
|
+
|
64
|
+
attr_accessor :Type, :Value
|
65
|
+
|
66
|
+
def initialize(type=nil, value=nil)
|
67
|
+
@Type = type
|
68
|
+
@Value = value
|
69
|
+
end
|
70
|
+
|
71
|
+
def deserialize(params)
|
72
|
+
@Type = params['Type']
|
73
|
+
@Value = params['Value']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# 行为数据
|
78
|
+
class DocBehavior < TencentCloud::Common::AbstractModel
|
79
|
+
# @param ItemId: 内容唯一ID,如 2824324234
|
80
|
+
# @type ItemId: String
|
81
|
+
# @param BehaviorType: 行为类型
|
82
|
+
# @type BehaviorType: Integer
|
83
|
+
# @param BehaviorValue: 行为值
|
84
|
+
# @type BehaviorValue: String
|
85
|
+
# @param BehaviorTimestamp: 行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
|
86
|
+
# @type BehaviorTimestamp: Integer
|
87
|
+
# @param SceneId: 场景id,在控制台创建场景后获取。
|
88
|
+
# @type SceneId: String
|
89
|
+
# @param UserIdList: 用户id列表
|
90
|
+
# @type UserIdList: Array
|
91
|
+
# @param RecTraceId: 会话id,使用获取推荐结果中返回的RecTraceId填入。<br>注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果
|
92
|
+
# @type RecTraceId: String
|
93
|
+
# @param Source: 算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一<br>● business 表示业务自己的算法对照组<br>● tencent 为腾讯算法<br>● other 为其他算法
|
94
|
+
# @type Source: String
|
95
|
+
# @param ItemType: 物料类型
|
96
|
+
# @type ItemType: Integer
|
97
|
+
# @param AppId: 微信开放平台上查看appId
|
98
|
+
# @type AppId: String
|
99
|
+
# @param VideoPlayDuration: 回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
|
100
|
+
# @type VideoPlayDuration: Integer
|
101
|
+
# @param ReferrerItemId: 来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
|
102
|
+
# @type ReferrerItemId: String
|
103
|
+
# @param Country: 国家,统一用简写,比如中国则填写CN
|
104
|
+
# @type Country: String
|
105
|
+
# @param Province: 省
|
106
|
+
# @type Province: String
|
107
|
+
# @param City: 城市
|
108
|
+
# @type City: String
|
109
|
+
# @param District: 区县
|
110
|
+
# @type District: String
|
111
|
+
# @param IP: 客户端ip
|
112
|
+
# @type IP: String
|
113
|
+
# @param Network: 客户端网络类型
|
114
|
+
# @type Network: String
|
115
|
+
# @param Platform: 客户端平台,ios/android/h5
|
116
|
+
# @type Platform: String
|
117
|
+
# @param AppVersion: 客户端app版本
|
118
|
+
# @type AppVersion: String
|
119
|
+
# @param OsVersion: 操作系统版本
|
120
|
+
# @type OsVersion: String
|
121
|
+
# @param DeviceModel: 机型
|
122
|
+
# @type DeviceModel: String
|
123
|
+
# @param Extension: json字符串,用于行为数据的扩展
|
124
|
+
# @type Extension: String
|
125
|
+
|
126
|
+
attr_accessor :ItemId, :BehaviorType, :BehaviorValue, :BehaviorTimestamp, :SceneId, :UserIdList, :RecTraceId, :Source, :ItemType, :AppId, :VideoPlayDuration, :ReferrerItemId, :Country, :Province, :City, :District, :IP, :Network, :Platform, :AppVersion, :OsVersion, :DeviceModel, :Extension
|
127
|
+
|
128
|
+
def initialize(itemid=nil, behaviortype=nil, behaviorvalue=nil, behaviortimestamp=nil, sceneid=nil, useridlist=nil, rectraceid=nil, source=nil, itemtype=nil, appid=nil, videoplayduration=nil, referreritemid=nil, country=nil, province=nil, city=nil, district=nil, ip=nil, network=nil, platform=nil, appversion=nil, osversion=nil, devicemodel=nil, extension=nil)
|
129
|
+
@ItemId = itemid
|
130
|
+
@BehaviorType = behaviortype
|
131
|
+
@BehaviorValue = behaviorvalue
|
132
|
+
@BehaviorTimestamp = behaviortimestamp
|
133
|
+
@SceneId = sceneid
|
134
|
+
@UserIdList = useridlist
|
135
|
+
@RecTraceId = rectraceid
|
136
|
+
@Source = source
|
137
|
+
@ItemType = itemtype
|
138
|
+
@AppId = appid
|
139
|
+
@VideoPlayDuration = videoplayduration
|
140
|
+
@ReferrerItemId = referreritemid
|
141
|
+
@Country = country
|
142
|
+
@Province = province
|
143
|
+
@City = city
|
144
|
+
@District = district
|
145
|
+
@IP = ip
|
146
|
+
@Network = network
|
147
|
+
@Platform = platform
|
148
|
+
@AppVersion = appversion
|
149
|
+
@OsVersion = osversion
|
150
|
+
@DeviceModel = devicemodel
|
151
|
+
@Extension = extension
|
152
|
+
end
|
153
|
+
|
154
|
+
def deserialize(params)
|
155
|
+
@ItemId = params['ItemId']
|
156
|
+
@BehaviorType = params['BehaviorType']
|
157
|
+
@BehaviorValue = params['BehaviorValue']
|
158
|
+
@BehaviorTimestamp = params['BehaviorTimestamp']
|
159
|
+
@SceneId = params['SceneId']
|
160
|
+
unless params['UserIdList'].nil?
|
161
|
+
@UserIdList = []
|
162
|
+
params['UserIdList'].each do |i|
|
163
|
+
useridinfo_tmp = UserIdInfo.new
|
164
|
+
useridinfo_tmp.deserialize(i)
|
165
|
+
@UserIdList << useridinfo_tmp
|
166
|
+
end
|
167
|
+
end
|
168
|
+
@RecTraceId = params['RecTraceId']
|
169
|
+
@Source = params['Source']
|
170
|
+
@ItemType = params['ItemType']
|
171
|
+
@AppId = params['AppId']
|
172
|
+
@VideoPlayDuration = params['VideoPlayDuration']
|
173
|
+
@ReferrerItemId = params['ReferrerItemId']
|
174
|
+
@Country = params['Country']
|
175
|
+
@Province = params['Province']
|
176
|
+
@City = params['City']
|
177
|
+
@District = params['District']
|
178
|
+
@IP = params['IP']
|
179
|
+
@Network = params['Network']
|
180
|
+
@Platform = params['Platform']
|
181
|
+
@AppVersion = params['AppVersion']
|
182
|
+
@OsVersion = params['OsVersion']
|
183
|
+
@DeviceModel = params['DeviceModel']
|
184
|
+
@Extension = params['Extension']
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# 推荐物料信息
|
189
|
+
class DocItem < TencentCloud::Common::AbstractModel
|
190
|
+
# @param ItemId: 内容唯一id
|
191
|
+
# @type ItemId: String
|
192
|
+
# @param ItemType: 内容类型
|
193
|
+
# @type ItemType: Integer
|
194
|
+
# @param Status: 内容状态:1 - 上架, 2 - 下架
|
195
|
+
# @type Status: Integer
|
196
|
+
# @param PublishTimestamp: 内容生成时间,秒级时间戳(1639624786),需大于0
|
197
|
+
# @type PublishTimestamp: Integer
|
198
|
+
# @param SourceId: 物料来源ID
|
199
|
+
# @type SourceId: Integer
|
200
|
+
# @param Title: 标题名称
|
201
|
+
# @type Title: String
|
202
|
+
# @param Content: 内容正文
|
203
|
+
# @type Content: String
|
204
|
+
# @param Author: 作者
|
205
|
+
# @type Author: String
|
206
|
+
# @param AuthorId: 作者id
|
207
|
+
# @type AuthorId: String
|
208
|
+
# @param Keyword: 标签关键词,多个用英文分号分割
|
209
|
+
# @type Keyword: String
|
210
|
+
# @param Desc: 内容物料描述:物料的描述信息,推荐系统会对内容的描述信息,使用否LP技术,进行分词、提取关键词,作为news的特征使用。
|
211
|
+
# @type Desc: String
|
212
|
+
# @param PicUrlList: 图片url
|
213
|
+
# @type PicUrlList: Array
|
214
|
+
# @param VideoUrlList: 视频url
|
215
|
+
# @type VideoUrlList: Array
|
216
|
+
# @param VideoDuration: 视频时长,时间秒
|
217
|
+
# @type VideoDuration: Integer
|
218
|
+
# @param CategoryLevel: 类目层级数,例如3级类目,则填3,和CategoryPath字段的类数据匹配
|
219
|
+
# @type CategoryLevel: Integer
|
220
|
+
# @param CategoryPath: 类目路径,一级二级三级等依次用英文冒号联接,如体育:“足球:巴塞罗那”
|
221
|
+
# @type CategoryPath: String
|
222
|
+
# @param Country: 国家,统一用简写,比如中国则填写CN
|
223
|
+
# @type Country: String
|
224
|
+
# @param Province: 省
|
225
|
+
# @type Province: String
|
226
|
+
# @param City: 城市
|
227
|
+
# @type City: String
|
228
|
+
# @param District: 区县
|
229
|
+
# @type District: String
|
230
|
+
# @param ExpireTimestamp: 内容过期时间,秒级时间戳(1639624786),如未填,则默认PublishTimestamp往后延一年
|
231
|
+
# @type ExpireTimestamp: Integer
|
232
|
+
# @param Topic: 所属话题
|
233
|
+
# @type Topic: String
|
234
|
+
# @param AuthorFans: 作者粉丝数
|
235
|
+
# @type AuthorFans: Integer
|
236
|
+
# @param AuthorLevel: 作者评级
|
237
|
+
# @type AuthorLevel: String
|
238
|
+
# @param CollectCnt: 内容累计收藏次数
|
239
|
+
# @type CollectCnt: Integer
|
240
|
+
# @param PraiseCnt: 内容累积点赞次数
|
241
|
+
# @type PraiseCnt: Integer
|
242
|
+
# @param CommentCnt: 内容累计评论次数
|
243
|
+
# @type CommentCnt: Integer
|
244
|
+
# @param ShareCnt: 内容累计分享次数
|
245
|
+
# @type ShareCnt: Integer
|
246
|
+
# @param RewardCnt: 内容累积打赏数
|
247
|
+
# @type RewardCnt: Integer
|
248
|
+
# @param Score: 内容质量评分,类似豆瓣电影的评分,这里为100分制,比如97分,满分100分,最低0分,范围外的将会被拦截
|
249
|
+
# @type Score: Float
|
250
|
+
# @param PoolIdList: 内容池id,用于分内容池召回,一个内容支持指定一个或多个内容池, 内容池id不建议使用0(0表示不区分内容池)
|
251
|
+
# @type PoolIdList: Array
|
252
|
+
# @param TagInfoList: 描述用户标签
|
253
|
+
# @type TagInfoList: Array
|
254
|
+
# @param Extension: json字符串,用于物料数据的扩展
|
255
|
+
# @type Extension: String
|
256
|
+
|
257
|
+
attr_accessor :ItemId, :ItemType, :Status, :PublishTimestamp, :SourceId, :Title, :Content, :Author, :AuthorId, :Keyword, :Desc, :PicUrlList, :VideoUrlList, :VideoDuration, :CategoryLevel, :CategoryPath, :Country, :Province, :City, :District, :ExpireTimestamp, :Topic, :AuthorFans, :AuthorLevel, :CollectCnt, :PraiseCnt, :CommentCnt, :ShareCnt, :RewardCnt, :Score, :PoolIdList, :TagInfoList, :Extension
|
258
|
+
|
259
|
+
def initialize(itemid=nil, itemtype=nil, status=nil, publishtimestamp=nil, sourceid=nil, title=nil, content=nil, author=nil, authorid=nil, keyword=nil, desc=nil, picurllist=nil, videourllist=nil, videoduration=nil, categorylevel=nil, categorypath=nil, country=nil, province=nil, city=nil, district=nil, expiretimestamp=nil, topic=nil, authorfans=nil, authorlevel=nil, collectcnt=nil, praisecnt=nil, commentcnt=nil, sharecnt=nil, rewardcnt=nil, score=nil, poolidlist=nil, taginfolist=nil, extension=nil)
|
260
|
+
@ItemId = itemid
|
261
|
+
@ItemType = itemtype
|
262
|
+
@Status = status
|
263
|
+
@PublishTimestamp = publishtimestamp
|
264
|
+
@SourceId = sourceid
|
265
|
+
@Title = title
|
266
|
+
@Content = content
|
267
|
+
@Author = author
|
268
|
+
@AuthorId = authorid
|
269
|
+
@Keyword = keyword
|
270
|
+
@Desc = desc
|
271
|
+
@PicUrlList = picurllist
|
272
|
+
@VideoUrlList = videourllist
|
273
|
+
@VideoDuration = videoduration
|
274
|
+
@CategoryLevel = categorylevel
|
275
|
+
@CategoryPath = categorypath
|
276
|
+
@Country = country
|
277
|
+
@Province = province
|
278
|
+
@City = city
|
279
|
+
@District = district
|
280
|
+
@ExpireTimestamp = expiretimestamp
|
281
|
+
@Topic = topic
|
282
|
+
@AuthorFans = authorfans
|
283
|
+
@AuthorLevel = authorlevel
|
284
|
+
@CollectCnt = collectcnt
|
285
|
+
@PraiseCnt = praisecnt
|
286
|
+
@CommentCnt = commentcnt
|
287
|
+
@ShareCnt = sharecnt
|
288
|
+
@RewardCnt = rewardcnt
|
289
|
+
@Score = score
|
290
|
+
@PoolIdList = poolidlist
|
291
|
+
@TagInfoList = taginfolist
|
292
|
+
@Extension = extension
|
293
|
+
end
|
294
|
+
|
295
|
+
def deserialize(params)
|
296
|
+
@ItemId = params['ItemId']
|
297
|
+
@ItemType = params['ItemType']
|
298
|
+
@Status = params['Status']
|
299
|
+
@PublishTimestamp = params['PublishTimestamp']
|
300
|
+
@SourceId = params['SourceId']
|
301
|
+
@Title = params['Title']
|
302
|
+
@Content = params['Content']
|
303
|
+
@Author = params['Author']
|
304
|
+
@AuthorId = params['AuthorId']
|
305
|
+
@Keyword = params['Keyword']
|
306
|
+
@Desc = params['Desc']
|
307
|
+
@PicUrlList = params['PicUrlList']
|
308
|
+
@VideoUrlList = params['VideoUrlList']
|
309
|
+
@VideoDuration = params['VideoDuration']
|
310
|
+
@CategoryLevel = params['CategoryLevel']
|
311
|
+
@CategoryPath = params['CategoryPath']
|
312
|
+
@Country = params['Country']
|
313
|
+
@Province = params['Province']
|
314
|
+
@City = params['City']
|
315
|
+
@District = params['District']
|
316
|
+
@ExpireTimestamp = params['ExpireTimestamp']
|
317
|
+
@Topic = params['Topic']
|
318
|
+
@AuthorFans = params['AuthorFans']
|
319
|
+
@AuthorLevel = params['AuthorLevel']
|
320
|
+
@CollectCnt = params['CollectCnt']
|
321
|
+
@PraiseCnt = params['PraiseCnt']
|
322
|
+
@CommentCnt = params['CommentCnt']
|
323
|
+
@ShareCnt = params['ShareCnt']
|
324
|
+
@RewardCnt = params['RewardCnt']
|
325
|
+
@Score = params['Score']
|
326
|
+
@PoolIdList = params['PoolIdList']
|
327
|
+
unless params['TagInfoList'].nil?
|
328
|
+
@TagInfoList = []
|
329
|
+
params['TagInfoList'].each do |i|
|
330
|
+
taginfo_tmp = TagInfo.new
|
331
|
+
taginfo_tmp.deserialize(i)
|
332
|
+
@TagInfoList << taginfo_tmp
|
333
|
+
end
|
334
|
+
end
|
335
|
+
@Extension = params['Extension']
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
# 画像信息
|
340
|
+
class PortraitInfo < TencentCloud::Common::AbstractModel
|
341
|
+
# @param UserIdList: 用户id列表
|
342
|
+
# @type UserIdList: Array
|
343
|
+
# @param AppId: 如果"userIdType"是10则必传,在微信开放平台上查看appId
|
344
|
+
# @type AppId: String
|
345
|
+
# @param Age: 用户年龄,值域在 0-200
|
346
|
+
# @type Age: Integer
|
347
|
+
# @param Gender: 用户性别:0-未知,1-男, 2-女
|
348
|
+
# @type Gender: Integer
|
349
|
+
# @param Degree: 用户学历 :小学,初中,高中,大专,本科,硕士,博士
|
350
|
+
# @type Degree: String
|
351
|
+
# @param School: 用户毕业学校全称
|
352
|
+
# @type School: String
|
353
|
+
# @param Occupation: 用户职业,保证业务的唯一性
|
354
|
+
# @type Occupation: String
|
355
|
+
# @param Industry: 用户所属行业,保证业务的唯一性
|
356
|
+
# @type Industry: String
|
357
|
+
# @param ResidentCountry: 用户常驻国家,统一用简写,比如中国则填写CN
|
358
|
+
# @type ResidentCountry: String
|
359
|
+
# @param ResidentProvince: 用户常驻省份
|
360
|
+
# @type ResidentProvince: String
|
361
|
+
# @param ResidentCity: 用户常驻城市
|
362
|
+
# @type ResidentCity: String
|
363
|
+
# @param ResidentDistrict: 用户常驻区县
|
364
|
+
# @type ResidentDistrict: String
|
365
|
+
# @param PhoneMd5: 用户手机的MD5值
|
366
|
+
# @type PhoneMd5: String
|
367
|
+
# @param PhoneImei: 用户手机的IMEI号
|
368
|
+
# @type PhoneImei: String
|
369
|
+
# @param Idfa: 设备idfa信息
|
370
|
+
# @type Idfa: String
|
371
|
+
# @param RegisterTimestamp: 用户注册时间,秒级时间戳(1639624786)
|
372
|
+
# @type RegisterTimestamp: Integer
|
373
|
+
# @param MembershipLevel: 用户会员等级
|
374
|
+
# @type MembershipLevel: String
|
375
|
+
# @param LastLoginTimestamp: 用户上一次登录时间,秒级时间戳(1639624786)
|
376
|
+
# @type LastLoginTimestamp: Integer
|
377
|
+
# @param LastLoginIp: 用户上一次登录的ip
|
378
|
+
# @type LastLoginIp: String
|
379
|
+
# @param LastModifyTimestamp: 用户信息的最后修改时间戳,秒级时间戳(1639624786)
|
380
|
+
# @type LastModifyTimestamp: Integer
|
381
|
+
# @param TagInfoList: 用户标签
|
382
|
+
# @type TagInfoList: Array
|
383
|
+
# @param AuthorInfoList: 用户关注作者列表
|
384
|
+
# @type AuthorInfoList: Array
|
385
|
+
# @param DislikeInfoList: 用户不喜欢列表
|
386
|
+
# @type DislikeInfoList: Array
|
387
|
+
# @param Extension: json字符串,用于画像数据的扩展
|
388
|
+
# @type Extension: String
|
389
|
+
# @param Oaid: 设备oaid信息
|
390
|
+
# @type Oaid: String
|
391
|
+
# @param AndroidId: 设备AndroidId信息
|
392
|
+
# @type AndroidId: String
|
393
|
+
|
394
|
+
attr_accessor :UserIdList, :AppId, :Age, :Gender, :Degree, :School, :Occupation, :Industry, :ResidentCountry, :ResidentProvince, :ResidentCity, :ResidentDistrict, :PhoneMd5, :PhoneImei, :Idfa, :RegisterTimestamp, :MembershipLevel, :LastLoginTimestamp, :LastLoginIp, :LastModifyTimestamp, :TagInfoList, :AuthorInfoList, :DislikeInfoList, :Extension, :Oaid, :AndroidId
|
395
|
+
|
396
|
+
def initialize(useridlist=nil, appid=nil, age=nil, gender=nil, degree=nil, school=nil, occupation=nil, industry=nil, residentcountry=nil, residentprovince=nil, residentcity=nil, residentdistrict=nil, phonemd5=nil, phoneimei=nil, idfa=nil, registertimestamp=nil, membershiplevel=nil, lastlogintimestamp=nil, lastloginip=nil, lastmodifytimestamp=nil, taginfolist=nil, authorinfolist=nil, dislikeinfolist=nil, extension=nil, oaid=nil, androidid=nil)
|
397
|
+
@UserIdList = useridlist
|
398
|
+
@AppId = appid
|
399
|
+
@Age = age
|
400
|
+
@Gender = gender
|
401
|
+
@Degree = degree
|
402
|
+
@School = school
|
403
|
+
@Occupation = occupation
|
404
|
+
@Industry = industry
|
405
|
+
@ResidentCountry = residentcountry
|
406
|
+
@ResidentProvince = residentprovince
|
407
|
+
@ResidentCity = residentcity
|
408
|
+
@ResidentDistrict = residentdistrict
|
409
|
+
@PhoneMd5 = phonemd5
|
410
|
+
@PhoneImei = phoneimei
|
411
|
+
@Idfa = idfa
|
412
|
+
@RegisterTimestamp = registertimestamp
|
413
|
+
@MembershipLevel = membershiplevel
|
414
|
+
@LastLoginTimestamp = lastlogintimestamp
|
415
|
+
@LastLoginIp = lastloginip
|
416
|
+
@LastModifyTimestamp = lastmodifytimestamp
|
417
|
+
@TagInfoList = taginfolist
|
418
|
+
@AuthorInfoList = authorinfolist
|
419
|
+
@DislikeInfoList = dislikeinfolist
|
420
|
+
@Extension = extension
|
421
|
+
@Oaid = oaid
|
422
|
+
@AndroidId = androidid
|
423
|
+
end
|
424
|
+
|
425
|
+
def deserialize(params)
|
426
|
+
unless params['UserIdList'].nil?
|
427
|
+
@UserIdList = []
|
428
|
+
params['UserIdList'].each do |i|
|
429
|
+
useridinfo_tmp = UserIdInfo.new
|
430
|
+
useridinfo_tmp.deserialize(i)
|
431
|
+
@UserIdList << useridinfo_tmp
|
432
|
+
end
|
433
|
+
end
|
434
|
+
@AppId = params['AppId']
|
435
|
+
@Age = params['Age']
|
436
|
+
@Gender = params['Gender']
|
437
|
+
@Degree = params['Degree']
|
438
|
+
@School = params['School']
|
439
|
+
@Occupation = params['Occupation']
|
440
|
+
@Industry = params['Industry']
|
441
|
+
@ResidentCountry = params['ResidentCountry']
|
442
|
+
@ResidentProvince = params['ResidentProvince']
|
443
|
+
@ResidentCity = params['ResidentCity']
|
444
|
+
@ResidentDistrict = params['ResidentDistrict']
|
445
|
+
@PhoneMd5 = params['PhoneMd5']
|
446
|
+
@PhoneImei = params['PhoneImei']
|
447
|
+
@Idfa = params['Idfa']
|
448
|
+
@RegisterTimestamp = params['RegisterTimestamp']
|
449
|
+
@MembershipLevel = params['MembershipLevel']
|
450
|
+
@LastLoginTimestamp = params['LastLoginTimestamp']
|
451
|
+
@LastLoginIp = params['LastLoginIp']
|
452
|
+
@LastModifyTimestamp = params['LastModifyTimestamp']
|
453
|
+
unless params['TagInfoList'].nil?
|
454
|
+
@TagInfoList = []
|
455
|
+
params['TagInfoList'].each do |i|
|
456
|
+
taginfo_tmp = TagInfo.new
|
457
|
+
taginfo_tmp.deserialize(i)
|
458
|
+
@TagInfoList << taginfo_tmp
|
459
|
+
end
|
460
|
+
end
|
461
|
+
unless params['AuthorInfoList'].nil?
|
462
|
+
@AuthorInfoList = []
|
463
|
+
params['AuthorInfoList'].each do |i|
|
464
|
+
authorinfo_tmp = AuthorInfo.new
|
465
|
+
authorinfo_tmp.deserialize(i)
|
466
|
+
@AuthorInfoList << authorinfo_tmp
|
467
|
+
end
|
468
|
+
end
|
469
|
+
unless params['DislikeInfoList'].nil?
|
470
|
+
@DislikeInfoList = []
|
471
|
+
params['DislikeInfoList'].each do |i|
|
472
|
+
dislikeinfo_tmp = DislikeInfo.new
|
473
|
+
dislikeinfo_tmp.deserialize(i)
|
474
|
+
@DislikeInfoList << dislikeinfo_tmp
|
475
|
+
end
|
476
|
+
end
|
477
|
+
@Extension = params['Extension']
|
478
|
+
@Oaid = params['Oaid']
|
479
|
+
@AndroidId = params['AndroidId']
|
480
|
+
end
|
481
|
+
end
|
482
|
+
|
483
|
+
# 推荐内容信息
|
484
|
+
class RecItemData < TencentCloud::Common::AbstractModel
|
485
|
+
# @param ItemId: 推荐的内容id,即用户行为上报中的itemId
|
486
|
+
# @type ItemId: String
|
487
|
+
# @param ItemType: 物料子类型,包括如下: 1-图文、2-长视频(横视频)、3-短视频(横视频)、4-小说、5-小视频(竖视频)、6-纯文本
|
488
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
489
|
+
# @type ItemType: Integer
|
490
|
+
# @param Weight: 推荐内容的权重,取值范围[0,1000000]
|
491
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
492
|
+
# @type Weight: Integer
|
493
|
+
# @param Score: 推荐预测分
|
494
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
495
|
+
# @type Score: Float
|
496
|
+
# @param Keyword: 关键词,多个用英文分号分割,和物料上传的keyword一致
|
497
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
498
|
+
# @type Keyword: String
|
499
|
+
|
500
|
+
attr_accessor :ItemId, :ItemType, :Weight, :Score, :Keyword
|
501
|
+
|
502
|
+
def initialize(itemid=nil, itemtype=nil, weight=nil, score=nil, keyword=nil)
|
503
|
+
@ItemId = itemid
|
504
|
+
@ItemType = itemtype
|
505
|
+
@Weight = weight
|
506
|
+
@Score = score
|
507
|
+
@Keyword = keyword
|
508
|
+
end
|
509
|
+
|
510
|
+
def deserialize(params)
|
511
|
+
@ItemId = params['ItemId']
|
512
|
+
@ItemType = params['ItemType']
|
513
|
+
@Weight = params['Weight']
|
514
|
+
@Score = params['Score']
|
515
|
+
@Keyword = params['Keyword']
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
519
|
+
# RecommendContent请求参数结构体
|
520
|
+
class RecommendContentRequest < TencentCloud::Common::AbstractModel
|
521
|
+
# @param Bid: 业务id
|
522
|
+
# @type Bid: String
|
523
|
+
# @param SceneId: 场景id:比如有“猜你喜欢”,“热门内容”等推荐模块,每一个模块都有一个scene_id来表示。 在控制台创建场景后获取。需要跟行为上报时的id一致
|
524
|
+
# @type SceneId: String
|
525
|
+
# @param UserIdList: 用户唯一ID数组,每个数组元素详见userId结构体,若不填,则接口返回热门结果
|
526
|
+
# @type UserIdList: Array
|
527
|
+
# @param RecTraceId: 会话id:必须和行为数据上报时所填写的traceId相同,用于行为数据来自于那次在线推荐请求的归因。**注意:此处如果没传,则响应会返回一个全局唯一ID返回给客户,并需客户透传给行为日志上报接口**
|
528
|
+
# @type RecTraceId: String
|
529
|
+
# @param ItemCnt: 推荐数量:物料优选的结果, 默认50个,目前最多支持200个的内容返回,如果返回个数更多,会影响性能,容易超时。
|
530
|
+
# @type ItemCnt: Integer
|
531
|
+
# @param PoolId: 物料池id,用于召回该pool_id下的商品,如果有多个,用英文;分割。**注意:此处poolId需和物料上报时的poolIdList对应上**
|
532
|
+
# @type PoolId: String
|
533
|
+
# @param CurrentItemId: 来源物料id,即用户当前浏览的物料id,用于在内容详情页获取关联推荐内容
|
534
|
+
# @type CurrentItemId: String
|
535
|
+
# @param ResponseTimeout: 请求响应超时时间,单位ms,默认300ms,数值设置的过小,会影响推荐效果,最小支持250ms
|
536
|
+
# @type ResponseTimeout: Integer
|
537
|
+
# @param ItemTypeRatio: 返回结果中不同物料类型的比例,比例顺序需严格按照(图文,长视频,短视频,小视频)进行。只允许传[0,100]数字,多个请用**英文冒号**分割,且加起来不能超过100,以及比例数量不能超过**场景绑定的物料类型**(图文,长视频,短视频,小视频)数。**示例:**图文和短视频比例为40%:60%时,则填40:60图文和短视频比例为0%:100%时,则填0:100图文,长视频和短视频的比例为,图文占20%,剩余80%由长视频和短视频随机返回,则填20:80或仅填20均可
|
538
|
+
# @type ItemTypeRatio: String
|
539
|
+
|
540
|
+
attr_accessor :Bid, :SceneId, :UserIdList, :RecTraceId, :ItemCnt, :PoolId, :CurrentItemId, :ResponseTimeout, :ItemTypeRatio
|
541
|
+
|
542
|
+
def initialize(bid=nil, sceneid=nil, useridlist=nil, rectraceid=nil, itemcnt=nil, poolid=nil, currentitemid=nil, responsetimeout=nil, itemtyperatio=nil)
|
543
|
+
@Bid = bid
|
544
|
+
@SceneId = sceneid
|
545
|
+
@UserIdList = useridlist
|
546
|
+
@RecTraceId = rectraceid
|
547
|
+
@ItemCnt = itemcnt
|
548
|
+
@PoolId = poolid
|
549
|
+
@CurrentItemId = currentitemid
|
550
|
+
@ResponseTimeout = responsetimeout
|
551
|
+
@ItemTypeRatio = itemtyperatio
|
552
|
+
end
|
553
|
+
|
554
|
+
def deserialize(params)
|
555
|
+
@Bid = params['Bid']
|
556
|
+
@SceneId = params['SceneId']
|
557
|
+
unless params['UserIdList'].nil?
|
558
|
+
@UserIdList = []
|
559
|
+
params['UserIdList'].each do |i|
|
560
|
+
useridinfo_tmp = UserIdInfo.new
|
561
|
+
useridinfo_tmp.deserialize(i)
|
562
|
+
@UserIdList << useridinfo_tmp
|
563
|
+
end
|
564
|
+
end
|
565
|
+
@RecTraceId = params['RecTraceId']
|
566
|
+
@ItemCnt = params['ItemCnt']
|
567
|
+
@PoolId = params['PoolId']
|
568
|
+
@CurrentItemId = params['CurrentItemId']
|
569
|
+
@ResponseTimeout = params['ResponseTimeout']
|
570
|
+
@ItemTypeRatio = params['ItemTypeRatio']
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
# RecommendContent返回参数结构体
|
575
|
+
class RecommendContentResponse < TencentCloud::Common::AbstractModel
|
576
|
+
# @param RecTraceId: 推荐追踪id,用于行为上报。每次接口调用返回的traceId不同
|
577
|
+
# @type RecTraceId: String
|
578
|
+
# @param DataList: 标识具体的物料信息
|
579
|
+
# @type DataList: Array
|
580
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
581
|
+
# @type RequestId: String
|
582
|
+
|
583
|
+
attr_accessor :RecTraceId, :DataList, :RequestId
|
584
|
+
|
585
|
+
def initialize(rectraceid=nil, datalist=nil, requestid=nil)
|
586
|
+
@RecTraceId = rectraceid
|
587
|
+
@DataList = datalist
|
588
|
+
@RequestId = requestid
|
589
|
+
end
|
590
|
+
|
591
|
+
def deserialize(params)
|
592
|
+
@RecTraceId = params['RecTraceId']
|
593
|
+
unless params['DataList'].nil?
|
594
|
+
@DataList = []
|
595
|
+
params['DataList'].each do |i|
|
596
|
+
recitemdata_tmp = RecItemData.new
|
597
|
+
recitemdata_tmp.deserialize(i)
|
598
|
+
@DataList << recitemdata_tmp
|
599
|
+
end
|
600
|
+
end
|
601
|
+
@RequestId = params['RequestId']
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
# ReportAction请求参数结构体
|
606
|
+
class ReportActionRequest < TencentCloud::Common::AbstractModel
|
607
|
+
# @param Bid: 业务id
|
608
|
+
# @type Bid: String
|
609
|
+
# @param DocBehaviorList: 上报的行为对象数组,数量不超过50
|
610
|
+
# @type DocBehaviorList: Array
|
611
|
+
|
612
|
+
attr_accessor :Bid, :DocBehaviorList
|
613
|
+
|
614
|
+
def initialize(bid=nil, docbehaviorlist=nil)
|
615
|
+
@Bid = bid
|
616
|
+
@DocBehaviorList = docbehaviorlist
|
617
|
+
end
|
618
|
+
|
619
|
+
def deserialize(params)
|
620
|
+
@Bid = params['Bid']
|
621
|
+
unless params['DocBehaviorList'].nil?
|
622
|
+
@DocBehaviorList = []
|
623
|
+
params['DocBehaviorList'].each do |i|
|
624
|
+
docbehavior_tmp = DocBehavior.new
|
625
|
+
docbehavior_tmp.deserialize(i)
|
626
|
+
@DocBehaviorList << docbehavior_tmp
|
627
|
+
end
|
628
|
+
end
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
# ReportAction返回参数结构体
|
633
|
+
class ReportActionResponse < TencentCloud::Common::AbstractModel
|
634
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
635
|
+
# @type RequestId: String
|
636
|
+
|
637
|
+
attr_accessor :RequestId
|
638
|
+
|
639
|
+
def initialize(requestid=nil)
|
640
|
+
@RequestId = requestid
|
641
|
+
end
|
642
|
+
|
643
|
+
def deserialize(params)
|
644
|
+
@RequestId = params['RequestId']
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
# ReportMaterial请求参数结构体
|
649
|
+
class ReportMaterialRequest < TencentCloud::Common::AbstractModel
|
650
|
+
# @param Bid: 业务id
|
651
|
+
# @type Bid: String
|
652
|
+
# @param DocItemList: 上报的信息流数组,一次数量不超过50
|
653
|
+
# @type DocItemList: Array
|
654
|
+
|
655
|
+
attr_accessor :Bid, :DocItemList
|
656
|
+
|
657
|
+
def initialize(bid=nil, docitemlist=nil)
|
658
|
+
@Bid = bid
|
659
|
+
@DocItemList = docitemlist
|
660
|
+
end
|
661
|
+
|
662
|
+
def deserialize(params)
|
663
|
+
@Bid = params['Bid']
|
664
|
+
unless params['DocItemList'].nil?
|
665
|
+
@DocItemList = []
|
666
|
+
params['DocItemList'].each do |i|
|
667
|
+
docitem_tmp = DocItem.new
|
668
|
+
docitem_tmp.deserialize(i)
|
669
|
+
@DocItemList << docitem_tmp
|
670
|
+
end
|
671
|
+
end
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
675
|
+
# ReportMaterial返回参数结构体
|
676
|
+
class ReportMaterialResponse < TencentCloud::Common::AbstractModel
|
677
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
678
|
+
# @type RequestId: String
|
679
|
+
|
680
|
+
attr_accessor :RequestId
|
681
|
+
|
682
|
+
def initialize(requestid=nil)
|
683
|
+
@RequestId = requestid
|
684
|
+
end
|
685
|
+
|
686
|
+
def deserialize(params)
|
687
|
+
@RequestId = params['RequestId']
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
691
|
+
# ReportPortrait请求参数结构体
|
692
|
+
class ReportPortraitRequest < TencentCloud::Common::AbstractModel
|
693
|
+
# @param Bid: 推荐平台上的业务id
|
694
|
+
# @type Bid: String
|
695
|
+
# @param PortraitList: 上报的用户画像数组,数量不超过50
|
696
|
+
# @type PortraitList: Array
|
697
|
+
|
698
|
+
attr_accessor :Bid, :PortraitList
|
699
|
+
|
700
|
+
def initialize(bid=nil, portraitlist=nil)
|
701
|
+
@Bid = bid
|
702
|
+
@PortraitList = portraitlist
|
703
|
+
end
|
704
|
+
|
705
|
+
def deserialize(params)
|
706
|
+
@Bid = params['Bid']
|
707
|
+
unless params['PortraitList'].nil?
|
708
|
+
@PortraitList = []
|
709
|
+
params['PortraitList'].each do |i|
|
710
|
+
portraitinfo_tmp = PortraitInfo.new
|
711
|
+
portraitinfo_tmp.deserialize(i)
|
712
|
+
@PortraitList << portraitinfo_tmp
|
713
|
+
end
|
714
|
+
end
|
715
|
+
end
|
716
|
+
end
|
717
|
+
|
718
|
+
# ReportPortrait返回参数结构体
|
719
|
+
class ReportPortraitResponse < TencentCloud::Common::AbstractModel
|
720
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
721
|
+
# @type RequestId: String
|
722
|
+
|
723
|
+
attr_accessor :RequestId
|
724
|
+
|
725
|
+
def initialize(requestid=nil)
|
726
|
+
@RequestId = requestid
|
727
|
+
end
|
728
|
+
|
729
|
+
def deserialize(params)
|
730
|
+
@RequestId = params['RequestId']
|
731
|
+
end
|
732
|
+
end
|
733
|
+
|
734
|
+
# 标题信息
|
735
|
+
class TagInfo < TencentCloud::Common::AbstractModel
|
736
|
+
# @param Id: 标签id
|
737
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
738
|
+
# @type Id: String
|
739
|
+
# @param Name: 标签名
|
740
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
741
|
+
# @type Name: String
|
742
|
+
# @param Weight: 推荐权重
|
743
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
744
|
+
# @type Weight: Float
|
745
|
+
|
746
|
+
attr_accessor :Id, :Name, :Weight
|
747
|
+
|
748
|
+
def initialize(id=nil, name=nil, weight=nil)
|
749
|
+
@Id = id
|
750
|
+
@Name = name
|
751
|
+
@Weight = weight
|
752
|
+
end
|
753
|
+
|
754
|
+
def deserialize(params)
|
755
|
+
@Id = params['Id']
|
756
|
+
@Name = params['Name']
|
757
|
+
@Weight = params['Weight']
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
761
|
+
# 用户信息
|
762
|
+
class UserIdInfo < TencentCloud::Common::AbstractModel
|
763
|
+
# @param UserIdType: 用户id类型
|
764
|
+
# @type UserIdType: Integer
|
765
|
+
# @param UserId: 用户id
|
766
|
+
# @type UserId: String
|
767
|
+
|
768
|
+
attr_accessor :UserIdType, :UserId
|
769
|
+
|
770
|
+
def initialize(useridtype=nil, userid=nil)
|
771
|
+
@UserIdType = useridtype
|
772
|
+
@UserId = userid
|
773
|
+
end
|
774
|
+
|
775
|
+
def deserialize(params)
|
776
|
+
@UserIdType = params['UserIdType']
|
777
|
+
@UserId = params['UserId']
|
778
|
+
end
|
779
|
+
end
|
780
|
+
|
781
|
+
end
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-irp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.353
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-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
|
+
IRP.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-irp.rb
|
38
|
+
- lib/v20220324/client.rb
|
39
|
+
- lib/v20220324/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-irp
|
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 - IRP
|
66
|
+
test_files: []
|