tencentcloud-sdk-tbm 1.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 25787b2e2f46a9876141b2f3575bdb90b73863a1
4
+ data.tar.gz: 4b96b3add6fa92c5066df229c8bf1b793c2d8988
5
+ SHA512:
6
+ metadata.gz: fec98914579264bbf51cd657c67a875eb59cbe1580cd112ea50f3a48e172dff5a091bdf637bb5c1a1f0c8ae76b812c4c5dcd16edb58a316222e9e94e0e7b0cdb
7
+ data.tar.gz: f3be38d735d74e6dd1e4892db39a51a6dcd905071f0d379b3c351b9c570e7226ad6c76caaa775782ec25120b4013a7431e777d79063b516aa36fb6b77a4aa547
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20180129/client'
6
+ require_relative 'v20180129/models'
7
+
8
+ module TencentCloud
9
+ module Tbm
10
+ end
11
+ end
@@ -0,0 +1,252 @@
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 Tbm
21
+ module V20180129
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2018-01-29'
26
+ api_endpoint = 'tbm.tencentcloudapi.com'
27
+ sdk_version = 'TBM_' + 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 DescribeBrandCommentCount.
35
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandCommentCountRequest`
36
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandCommentCountResponse`
37
+ def DescribeBrandCommentCount(request)
38
+ body = send_request('DescribeBrandCommentCount', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeBrandCommentCountResponse.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 DescribeBrandExposure.
59
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandExposureRequest`
60
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandExposureResponse`
61
+ def DescribeBrandExposure(request)
62
+ body = send_request('DescribeBrandExposure', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeBrandExposureResponse.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 DescribeBrandMediaReport.
83
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandMediaReportRequest`
84
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandMediaReportResponse`
85
+ def DescribeBrandMediaReport(request)
86
+ body = send_request('DescribeBrandMediaReport', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeBrandMediaReportResponse.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 DescribeBrandNegComments.
107
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandNegCommentsRequest`
108
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandNegCommentsResponse`
109
+ def DescribeBrandNegComments(request)
110
+ body = send_request('DescribeBrandNegComments', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeBrandNegCommentsResponse.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 DescribeBrandPosComments.
131
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandPosCommentsRequest`
132
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandPosCommentsResponse`
133
+ def DescribeBrandPosComments(request)
134
+ body = send_request('DescribeBrandPosComments', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeBrandPosCommentsResponse.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
+ # 检测品牌关键词出现在微博、QQ兴趣部落、论坛、博客等个人公开贡献资讯中的内容,每天聚合近30天热度最高的观点列表。
153
+
154
+ # @param request: Request instance for DescribeBrandSocialOpinion.
155
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandSocialOpinionRequest`
156
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandSocialOpinionResponse`
157
+ def DescribeBrandSocialOpinion(request)
158
+ body = send_request('DescribeBrandSocialOpinion', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeBrandSocialOpinionResponse.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
+ # 监测品牌关键词出现在微博、QQ兴趣部落、论坛、博客等个人公开贡献资讯中的条数。按天输出数据结果。
177
+
178
+ # @param request: Request instance for DescribeBrandSocialReport.
179
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeBrandSocialReportRequest`
180
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeBrandSocialReportResponse`
181
+ def DescribeBrandSocialReport(request)
182
+ body = send_request('DescribeBrandSocialReport', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeBrandSocialReportResponse.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
+
202
+ # @param request: Request instance for DescribeIndustryNews.
203
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeIndustryNewsRequest`
204
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeIndustryNewsResponse`
205
+ def DescribeIndustryNews(request)
206
+ body = send_request('DescribeIndustryNews', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeIndustryNewsResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 通过分析洞察参与过品牌媒体互动的用户,比如公开发表品牌的新闻评论、在公开社交渠道发表过对品牌的评价观点等用户,返回用户的画像属性分布,例如性别、年龄、地域、喜爱的明星、喜爱的影视。
225
+
226
+ # @param request: Request instance for DescribeUserPortrait.
227
+ # @type request: :class:`Tencentcloud::tbm::V20180129::DescribeUserPortraitRequest`
228
+ # @rtype: :class:`Tencentcloud::tbm::V20180129::DescribeUserPortraitResponse`
229
+ def DescribeUserPortrait(request)
230
+ body = send_request('DescribeUserPortrait', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DescribeUserPortraitResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+
249
+ end
250
+ end
251
+ end
252
+ end
@@ -0,0 +1,968 @@
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 Tbm
19
+ module V20180129
20
+ # 用户年龄画像
21
+ class AgePortrait < TencentCloud::Common::AbstractModel
22
+ # @param AgeRange: 年龄区间
23
+ # @type AgeRange: String
24
+ # @param Percent: 百分比
25
+ # @type Percent: Float
26
+
27
+ attr_accessor :AgeRange, :Percent
28
+
29
+ def initialize(agerange=nil, percent=nil)
30
+ @AgeRange = agerange
31
+ @Percent = percent
32
+ end
33
+
34
+ def deserialize(params)
35
+ @AgeRange = params['AgeRange']
36
+ @Percent = params['Percent']
37
+ end
38
+ end
39
+
40
+ # 用户年龄画像元素数组
41
+ class AgePortraitInfo < TencentCloud::Common::AbstractModel
42
+ # @param PortraitSet: 用户年龄画像数组
43
+ # @type PortraitSet: Array
44
+
45
+ attr_accessor :PortraitSet
46
+
47
+ def initialize(portraitset=nil)
48
+ @PortraitSet = portraitset
49
+ end
50
+
51
+ def deserialize(params)
52
+ unless params['PortraitSet'].nil?
53
+ @PortraitSet = []
54
+ params['PortraitSet'].each do |i|
55
+ ageportrait_tmp = AgePortrait.new
56
+ ageportrait_tmp.deserialize(i)
57
+ @PortraitSet << ageportrait_tmp
58
+ end
59
+ end
60
+ end
61
+ end
62
+
63
+ # 文章信息
64
+ class BrandReportArticle < TencentCloud::Common::AbstractModel
65
+ # @param Title: 文章标题
66
+ # @type Title: String
67
+ # @param Url: 文章url地址
68
+ # @type Url: String
69
+ # @param FromSite: 文章来源
70
+ # @type FromSite: String
71
+ # @param PubTime: 文章发表日期
72
+ # @type PubTime: String
73
+ # @param Flag: 文章标识
74
+ # @type Flag: Integer
75
+ # @param Hot: 文章热度值
76
+ # @type Hot: Integer
77
+ # @param Level: 文章来源等级
78
+ # @type Level: Integer
79
+ # @param Abstract: 文章摘要
80
+ # @type Abstract: String
81
+ # @param ArticleId: 文章ID
82
+ # @type ArticleId: String
83
+
84
+ attr_accessor :Title, :Url, :FromSite, :PubTime, :Flag, :Hot, :Level, :Abstract, :ArticleId
85
+
86
+ def initialize(title=nil, url=nil, fromsite=nil, pubtime=nil, flag=nil, hot=nil, level=nil, abstract=nil, articleid=nil)
87
+ @Title = title
88
+ @Url = url
89
+ @FromSite = fromsite
90
+ @PubTime = pubtime
91
+ @Flag = flag
92
+ @Hot = hot
93
+ @Level = level
94
+ @Abstract = abstract
95
+ @ArticleId = articleid
96
+ end
97
+
98
+ def deserialize(params)
99
+ @Title = params['Title']
100
+ @Url = params['Url']
101
+ @FromSite = params['FromSite']
102
+ @PubTime = params['PubTime']
103
+ @Flag = params['Flag']
104
+ @Hot = params['Hot']
105
+ @Level = params['Level']
106
+ @Abstract = params['Abstract']
107
+ @ArticleId = params['ArticleId']
108
+ end
109
+ end
110
+
111
+ # 用户好评差评个数信息
112
+ class Comment < TencentCloud::Common::AbstractModel
113
+ # @param Date: 评论的日期
114
+ # @type Date: String
115
+ # @param NegCommentCount: 差评的个数
116
+ # @type NegCommentCount: Integer
117
+ # @param PosCommentCount: 好评的个数
118
+ # @type PosCommentCount: Integer
119
+
120
+ attr_accessor :Date, :NegCommentCount, :PosCommentCount
121
+
122
+ def initialize(date=nil, negcommentcount=nil, poscommentcount=nil)
123
+ @Date = date
124
+ @NegCommentCount = negcommentcount
125
+ @PosCommentCount = poscommentcount
126
+ end
127
+
128
+ def deserialize(params)
129
+ @Date = params['Date']
130
+ @NegCommentCount = params['NegCommentCount']
131
+ @PosCommentCount = params['PosCommentCount']
132
+ end
133
+ end
134
+
135
+ # 用户评论内容类型
136
+ class CommentInfo < TencentCloud::Common::AbstractModel
137
+ # @param Comment: 用户评论内容
138
+ # @type Comment: String
139
+ # @param Date: 评论的时间
140
+ # @type Date: String
141
+
142
+ attr_accessor :Comment, :Date
143
+
144
+ def initialize(comment=nil, date=nil)
145
+ @Comment = comment
146
+ @Date = date
147
+ end
148
+
149
+ def deserialize(params)
150
+ @Comment = params['Comment']
151
+ @Date = params['Date']
152
+ end
153
+ end
154
+
155
+ # 按日期的统计数据
156
+ class DateCount < TencentCloud::Common::AbstractModel
157
+ # @param Date: 统计日期
158
+ # @type Date: String
159
+ # @param Count: 统计值
160
+ # @type Count: Integer
161
+
162
+ attr_accessor :Date, :Count
163
+
164
+ def initialize(date=nil, count=nil)
165
+ @Date = date
166
+ @Count = count
167
+ end
168
+
169
+ def deserialize(params)
170
+ @Date = params['Date']
171
+ @Count = params['Count']
172
+ end
173
+ end
174
+
175
+ # DescribeBrandCommentCount请求参数结构体
176
+ class DescribeBrandCommentCountRequest < TencentCloud::Common::AbstractModel
177
+ # @param BrandId: 品牌ID
178
+ # @type BrandId: String
179
+ # @param StartDate: 查询开始日期
180
+ # @type StartDate: String
181
+ # @param EndDate: 查询结束日期
182
+ # @type EndDate: String
183
+
184
+ attr_accessor :BrandId, :StartDate, :EndDate
185
+
186
+ def initialize(brandid=nil, startdate=nil, enddate=nil)
187
+ @BrandId = brandid
188
+ @StartDate = startdate
189
+ @EndDate = enddate
190
+ end
191
+
192
+ def deserialize(params)
193
+ @BrandId = params['BrandId']
194
+ @StartDate = params['StartDate']
195
+ @EndDate = params['EndDate']
196
+ end
197
+ end
198
+
199
+ # DescribeBrandCommentCount返回参数结构体
200
+ class DescribeBrandCommentCountResponse < TencentCloud::Common::AbstractModel
201
+ # @param CommentSet: 按天统计好评/差评数
202
+ # @type CommentSet: Array
203
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
204
+ # @type RequestId: String
205
+
206
+ attr_accessor :CommentSet, :RequestId
207
+
208
+ def initialize(commentset=nil, requestid=nil)
209
+ @CommentSet = commentset
210
+ @RequestId = requestid
211
+ end
212
+
213
+ def deserialize(params)
214
+ unless params['CommentSet'].nil?
215
+ @CommentSet = []
216
+ params['CommentSet'].each do |i|
217
+ comment_tmp = Comment.new
218
+ comment_tmp.deserialize(i)
219
+ @CommentSet << comment_tmp
220
+ end
221
+ end
222
+ @RequestId = params['RequestId']
223
+ end
224
+ end
225
+
226
+ # DescribeBrandExposure请求参数结构体
227
+ class DescribeBrandExposureRequest < TencentCloud::Common::AbstractModel
228
+ # @param BrandId: 品牌ID
229
+ # @type BrandId: String
230
+ # @param StartDate: 查询开始时间
231
+ # @type StartDate: String
232
+ # @param EndDate: 查询结束时间
233
+ # @type EndDate: String
234
+
235
+ attr_accessor :BrandId, :StartDate, :EndDate
236
+
237
+ def initialize(brandid=nil, startdate=nil, enddate=nil)
238
+ @BrandId = brandid
239
+ @StartDate = startdate
240
+ @EndDate = enddate
241
+ end
242
+
243
+ def deserialize(params)
244
+ @BrandId = params['BrandId']
245
+ @StartDate = params['StartDate']
246
+ @EndDate = params['EndDate']
247
+ end
248
+ end
249
+
250
+ # DescribeBrandExposure返回参数结构体
251
+ class DescribeBrandExposureResponse < TencentCloud::Common::AbstractModel
252
+ # @param TotalCount: 累计曝光量
253
+ # @type TotalCount: Integer
254
+ # @param DateCountSet: 按天计算的统计数据
255
+ # @type DateCountSet: Array
256
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
257
+ # @type RequestId: String
258
+
259
+ attr_accessor :TotalCount, :DateCountSet, :RequestId
260
+
261
+ def initialize(totalcount=nil, datecountset=nil, requestid=nil)
262
+ @TotalCount = totalcount
263
+ @DateCountSet = datecountset
264
+ @RequestId = requestid
265
+ end
266
+
267
+ def deserialize(params)
268
+ @TotalCount = params['TotalCount']
269
+ unless params['DateCountSet'].nil?
270
+ @DateCountSet = []
271
+ params['DateCountSet'].each do |i|
272
+ datecount_tmp = DateCount.new
273
+ datecount_tmp.deserialize(i)
274
+ @DateCountSet << datecount_tmp
275
+ end
276
+ end
277
+ @RequestId = params['RequestId']
278
+ end
279
+ end
280
+
281
+ # DescribeBrandMediaReport请求参数结构体
282
+ class DescribeBrandMediaReportRequest < TencentCloud::Common::AbstractModel
283
+ # @param BrandId: 品牌ID
284
+ # @type BrandId: String
285
+ # @param StartDate: 查询开始时间
286
+ # @type StartDate: String
287
+ # @param EndDate: 查询结束时间
288
+ # @type EndDate: String
289
+
290
+ attr_accessor :BrandId, :StartDate, :EndDate
291
+
292
+ def initialize(brandid=nil, startdate=nil, enddate=nil)
293
+ @BrandId = brandid
294
+ @StartDate = startdate
295
+ @EndDate = enddate
296
+ end
297
+
298
+ def deserialize(params)
299
+ @BrandId = params['BrandId']
300
+ @StartDate = params['StartDate']
301
+ @EndDate = params['EndDate']
302
+ end
303
+ end
304
+
305
+ # DescribeBrandMediaReport返回参数结构体
306
+ class DescribeBrandMediaReportResponse < TencentCloud::Common::AbstractModel
307
+ # @param TotalCount: 查询范围内文章总数
308
+ # @type TotalCount: Integer
309
+ # @param DateCountSet: 按天计算的每天文章数
310
+ # @type DateCountSet: Array
311
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
312
+ # @type RequestId: String
313
+
314
+ attr_accessor :TotalCount, :DateCountSet, :RequestId
315
+
316
+ def initialize(totalcount=nil, datecountset=nil, requestid=nil)
317
+ @TotalCount = totalcount
318
+ @DateCountSet = datecountset
319
+ @RequestId = requestid
320
+ end
321
+
322
+ def deserialize(params)
323
+ @TotalCount = params['TotalCount']
324
+ unless params['DateCountSet'].nil?
325
+ @DateCountSet = []
326
+ params['DateCountSet'].each do |i|
327
+ datecount_tmp = DateCount.new
328
+ datecount_tmp.deserialize(i)
329
+ @DateCountSet << datecount_tmp
330
+ end
331
+ end
332
+ @RequestId = params['RequestId']
333
+ end
334
+ end
335
+
336
+ # DescribeBrandNegComments请求参数结构体
337
+ class DescribeBrandNegCommentsRequest < TencentCloud::Common::AbstractModel
338
+ # @param BrandId: 品牌ID
339
+ # @type BrandId: String
340
+ # @param StartDate: 查询开始时间
341
+ # @type StartDate: String
342
+ # @param EndDate: 查询结束时间
343
+ # @type EndDate: String
344
+ # @param Limit: 查询条数上限,默认20
345
+ # @type Limit: Integer
346
+ # @param Offset: 查询偏移,默认从0开始
347
+ # @type Offset: Integer
348
+
349
+ attr_accessor :BrandId, :StartDate, :EndDate, :Limit, :Offset
350
+
351
+ def initialize(brandid=nil, startdate=nil, enddate=nil, limit=nil, offset=nil)
352
+ @BrandId = brandid
353
+ @StartDate = startdate
354
+ @EndDate = enddate
355
+ @Limit = limit
356
+ @Offset = offset
357
+ end
358
+
359
+ def deserialize(params)
360
+ @BrandId = params['BrandId']
361
+ @StartDate = params['StartDate']
362
+ @EndDate = params['EndDate']
363
+ @Limit = params['Limit']
364
+ @Offset = params['Offset']
365
+ end
366
+ end
367
+
368
+ # DescribeBrandNegComments返回参数结构体
369
+ class DescribeBrandNegCommentsResponse < TencentCloud::Common::AbstractModel
370
+ # @param BrandCommentSet: 评论列表
371
+ # @type BrandCommentSet: Array
372
+ # @param TotalComments: 总的差评个数
373
+ # @type TotalComments: Integer
374
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
375
+ # @type RequestId: String
376
+
377
+ attr_accessor :BrandCommentSet, :TotalComments, :RequestId
378
+
379
+ def initialize(brandcommentset=nil, totalcomments=nil, requestid=nil)
380
+ @BrandCommentSet = brandcommentset
381
+ @TotalComments = totalcomments
382
+ @RequestId = requestid
383
+ end
384
+
385
+ def deserialize(params)
386
+ unless params['BrandCommentSet'].nil?
387
+ @BrandCommentSet = []
388
+ params['BrandCommentSet'].each do |i|
389
+ commentinfo_tmp = CommentInfo.new
390
+ commentinfo_tmp.deserialize(i)
391
+ @BrandCommentSet << commentinfo_tmp
392
+ end
393
+ end
394
+ @TotalComments = params['TotalComments']
395
+ @RequestId = params['RequestId']
396
+ end
397
+ end
398
+
399
+ # DescribeBrandPosComments请求参数结构体
400
+ class DescribeBrandPosCommentsRequest < TencentCloud::Common::AbstractModel
401
+ # @param BrandId: 品牌ID
402
+ # @type BrandId: String
403
+ # @param StartDate: 查询开始时间
404
+ # @type StartDate: String
405
+ # @param EndDate: 查询结束时间
406
+ # @type EndDate: String
407
+ # @param Limit: 查询条数上限,默认20
408
+ # @type Limit: Integer
409
+ # @param Offset: 查询偏移,从0开始
410
+ # @type Offset: Integer
411
+
412
+ attr_accessor :BrandId, :StartDate, :EndDate, :Limit, :Offset
413
+
414
+ def initialize(brandid=nil, startdate=nil, enddate=nil, limit=nil, offset=nil)
415
+ @BrandId = brandid
416
+ @StartDate = startdate
417
+ @EndDate = enddate
418
+ @Limit = limit
419
+ @Offset = offset
420
+ end
421
+
422
+ def deserialize(params)
423
+ @BrandId = params['BrandId']
424
+ @StartDate = params['StartDate']
425
+ @EndDate = params['EndDate']
426
+ @Limit = params['Limit']
427
+ @Offset = params['Offset']
428
+ end
429
+ end
430
+
431
+ # DescribeBrandPosComments返回参数结构体
432
+ class DescribeBrandPosCommentsResponse < TencentCloud::Common::AbstractModel
433
+ # @param BrandCommentSet: 评论列表
434
+ # @type BrandCommentSet: Array
435
+ # @param TotalComments: 总的好评个数
436
+ # @type TotalComments: Integer
437
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
438
+ # @type RequestId: String
439
+
440
+ attr_accessor :BrandCommentSet, :TotalComments, :RequestId
441
+
442
+ def initialize(brandcommentset=nil, totalcomments=nil, requestid=nil)
443
+ @BrandCommentSet = brandcommentset
444
+ @TotalComments = totalcomments
445
+ @RequestId = requestid
446
+ end
447
+
448
+ def deserialize(params)
449
+ unless params['BrandCommentSet'].nil?
450
+ @BrandCommentSet = []
451
+ params['BrandCommentSet'].each do |i|
452
+ commentinfo_tmp = CommentInfo.new
453
+ commentinfo_tmp.deserialize(i)
454
+ @BrandCommentSet << commentinfo_tmp
455
+ end
456
+ end
457
+ @TotalComments = params['TotalComments']
458
+ @RequestId = params['RequestId']
459
+ end
460
+ end
461
+
462
+ # DescribeBrandSocialOpinion请求参数结构体
463
+ class DescribeBrandSocialOpinionRequest < TencentCloud::Common::AbstractModel
464
+ # @param BrandId: 品牌ID
465
+ # @type BrandId: String
466
+ # @param StartDate: 检索开始时间
467
+ # @type StartDate: String
468
+ # @param EndDate: 检索结束时间
469
+ # @type EndDate: String
470
+ # @param Offset: 查询偏移,默认从0开始
471
+ # @type Offset: Integer
472
+ # @param Limit: 查询条数上限,默认20
473
+ # @type Limit: Integer
474
+ # @param ShowList: 列表显示标记,若为true,则返回文章列表详情
475
+ # @type ShowList: Boolean
476
+
477
+ attr_accessor :BrandId, :StartDate, :EndDate, :Offset, :Limit, :ShowList
478
+
479
+ def initialize(brandid=nil, startdate=nil, enddate=nil, offset=nil, limit=nil, showlist=nil)
480
+ @BrandId = brandid
481
+ @StartDate = startdate
482
+ @EndDate = enddate
483
+ @Offset = offset
484
+ @Limit = limit
485
+ @ShowList = showlist
486
+ end
487
+
488
+ def deserialize(params)
489
+ @BrandId = params['BrandId']
490
+ @StartDate = params['StartDate']
491
+ @EndDate = params['EndDate']
492
+ @Offset = params['Offset']
493
+ @Limit = params['Limit']
494
+ @ShowList = params['ShowList']
495
+ end
496
+ end
497
+
498
+ # DescribeBrandSocialOpinion返回参数结构体
499
+ class DescribeBrandSocialOpinionResponse < TencentCloud::Common::AbstractModel
500
+ # @param ArticleCount: 文章总数
501
+ # @type ArticleCount: Integer
502
+ # @param FromCount: 来源统计总数
503
+ # @type FromCount: Integer
504
+ # @param AdverseCount: 疑似负面报道总数
505
+ # @type AdverseCount: Integer
506
+ # @param ArticleSet: 文章列表详情
507
+ # @type ArticleSet: Array
508
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
509
+ # @type RequestId: String
510
+
511
+ attr_accessor :ArticleCount, :FromCount, :AdverseCount, :ArticleSet, :RequestId
512
+
513
+ def initialize(articlecount=nil, fromcount=nil, adversecount=nil, articleset=nil, requestid=nil)
514
+ @ArticleCount = articlecount
515
+ @FromCount = fromcount
516
+ @AdverseCount = adversecount
517
+ @ArticleSet = articleset
518
+ @RequestId = requestid
519
+ end
520
+
521
+ def deserialize(params)
522
+ @ArticleCount = params['ArticleCount']
523
+ @FromCount = params['FromCount']
524
+ @AdverseCount = params['AdverseCount']
525
+ unless params['ArticleSet'].nil?
526
+ @ArticleSet = []
527
+ params['ArticleSet'].each do |i|
528
+ brandreportarticle_tmp = BrandReportArticle.new
529
+ brandreportarticle_tmp.deserialize(i)
530
+ @ArticleSet << brandreportarticle_tmp
531
+ end
532
+ end
533
+ @RequestId = params['RequestId']
534
+ end
535
+ end
536
+
537
+ # DescribeBrandSocialReport请求参数结构体
538
+ class DescribeBrandSocialReportRequest < TencentCloud::Common::AbstractModel
539
+ # @param BrandId: 品牌ID
540
+ # @type BrandId: String
541
+ # @param StartDate: 查询开始时间
542
+ # @type StartDate: String
543
+ # @param EndDate: 查询结束时间
544
+ # @type EndDate: String
545
+
546
+ attr_accessor :BrandId, :StartDate, :EndDate
547
+
548
+ def initialize(brandid=nil, startdate=nil, enddate=nil)
549
+ @BrandId = brandid
550
+ @StartDate = startdate
551
+ @EndDate = enddate
552
+ end
553
+
554
+ def deserialize(params)
555
+ @BrandId = params['BrandId']
556
+ @StartDate = params['StartDate']
557
+ @EndDate = params['EndDate']
558
+ end
559
+ end
560
+
561
+ # DescribeBrandSocialReport返回参数结构体
562
+ class DescribeBrandSocialReportResponse < TencentCloud::Common::AbstractModel
563
+ # @param TotalCount: 累计统计数据
564
+ # @type TotalCount: Integer
565
+ # @param DateCountSet: 按天计算的统计数据
566
+ # @type DateCountSet: Array
567
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
568
+ # @type RequestId: String
569
+
570
+ attr_accessor :TotalCount, :DateCountSet, :RequestId
571
+
572
+ def initialize(totalcount=nil, datecountset=nil, requestid=nil)
573
+ @TotalCount = totalcount
574
+ @DateCountSet = datecountset
575
+ @RequestId = requestid
576
+ end
577
+
578
+ def deserialize(params)
579
+ @TotalCount = params['TotalCount']
580
+ unless params['DateCountSet'].nil?
581
+ @DateCountSet = []
582
+ params['DateCountSet'].each do |i|
583
+ datecount_tmp = DateCount.new
584
+ datecount_tmp.deserialize(i)
585
+ @DateCountSet << datecount_tmp
586
+ end
587
+ end
588
+ @RequestId = params['RequestId']
589
+ end
590
+ end
591
+
592
+ # DescribeIndustryNews请求参数结构体
593
+ class DescribeIndustryNewsRequest < TencentCloud::Common::AbstractModel
594
+ # @param IndustryId: 行业ID
595
+ # @type IndustryId: String
596
+ # @param StartDate: 查询开始时间
597
+ # @type StartDate: String
598
+ # @param EndDate: 查询结束时间
599
+ # @type EndDate: String
600
+ # @param ShowList: 是否显示列表,若为 true,则返回文章列表
601
+ # @type ShowList: Boolean
602
+ # @param Offset: 查询偏移,默认从0开始
603
+ # @type Offset: Integer
604
+ # @param Limit: 查询条数上限,默认20
605
+ # @type Limit: Integer
606
+
607
+ attr_accessor :IndustryId, :StartDate, :EndDate, :ShowList, :Offset, :Limit
608
+
609
+ def initialize(industryid=nil, startdate=nil, enddate=nil, showlist=nil, offset=nil, limit=nil)
610
+ @IndustryId = industryid
611
+ @StartDate = startdate
612
+ @EndDate = enddate
613
+ @ShowList = showlist
614
+ @Offset = offset
615
+ @Limit = limit
616
+ end
617
+
618
+ def deserialize(params)
619
+ @IndustryId = params['IndustryId']
620
+ @StartDate = params['StartDate']
621
+ @EndDate = params['EndDate']
622
+ @ShowList = params['ShowList']
623
+ @Offset = params['Offset']
624
+ @Limit = params['Limit']
625
+ end
626
+ end
627
+
628
+ # DescribeIndustryNews返回参数结构体
629
+ class DescribeIndustryNewsResponse < TencentCloud::Common::AbstractModel
630
+ # @param NewsCount: 总计文章数量
631
+ # @type NewsCount: Integer
632
+ # @param FromCount: 总计来源数量
633
+ # @type FromCount: Integer
634
+ # @param AdverseCount: 总计疑似负面数量
635
+ # @type AdverseCount: Integer
636
+ # @param NewsSet: 文章列表
637
+ # @type NewsSet: Array
638
+ # @param DateCountSet: 按天统计的数量列表
639
+ # @type DateCountSet: Array
640
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
641
+ # @type RequestId: String
642
+
643
+ attr_accessor :NewsCount, :FromCount, :AdverseCount, :NewsSet, :DateCountSet, :RequestId
644
+
645
+ def initialize(newscount=nil, fromcount=nil, adversecount=nil, newsset=nil, datecountset=nil, requestid=nil)
646
+ @NewsCount = newscount
647
+ @FromCount = fromcount
648
+ @AdverseCount = adversecount
649
+ @NewsSet = newsset
650
+ @DateCountSet = datecountset
651
+ @RequestId = requestid
652
+ end
653
+
654
+ def deserialize(params)
655
+ @NewsCount = params['NewsCount']
656
+ @FromCount = params['FromCount']
657
+ @AdverseCount = params['AdverseCount']
658
+ unless params['NewsSet'].nil?
659
+ @NewsSet = []
660
+ params['NewsSet'].each do |i|
661
+ industrynews_tmp = IndustryNews.new
662
+ industrynews_tmp.deserialize(i)
663
+ @NewsSet << industrynews_tmp
664
+ end
665
+ end
666
+ unless params['DateCountSet'].nil?
667
+ @DateCountSet = []
668
+ params['DateCountSet'].each do |i|
669
+ datecount_tmp = DateCount.new
670
+ datecount_tmp.deserialize(i)
671
+ @DateCountSet << datecount_tmp
672
+ end
673
+ end
674
+ @RequestId = params['RequestId']
675
+ end
676
+ end
677
+
678
+ # DescribeUserPortrait请求参数结构体
679
+ class DescribeUserPortraitRequest < TencentCloud::Common::AbstractModel
680
+ # @param BrandId: 品牌ID
681
+ # @type BrandId: String
682
+
683
+ attr_accessor :BrandId
684
+
685
+ def initialize(brandid=nil)
686
+ @BrandId = brandid
687
+ end
688
+
689
+ def deserialize(params)
690
+ @BrandId = params['BrandId']
691
+ end
692
+ end
693
+
694
+ # DescribeUserPortrait返回参数结构体
695
+ class DescribeUserPortraitResponse < TencentCloud::Common::AbstractModel
696
+ # @param Age: 年龄画像
697
+ # @type Age: :class:`Tencentcloud::Tbm.v20180129.models.AgePortraitInfo`
698
+ # @param Gender: 性别画像
699
+ # @type Gender: :class:`Tencentcloud::Tbm.v20180129.models.GenderPortraitInfo`
700
+ # @param Province: 省份画像
701
+ # @type Province: :class:`Tencentcloud::Tbm.v20180129.models.ProvincePortraitInfo`
702
+ # @param Movie: 电影喜好画像
703
+ # @type Movie: :class:`Tencentcloud::Tbm.v20180129.models.MoviePortraitInfo`
704
+ # @param Star: 明星喜好画像
705
+ # @type Star: :class:`Tencentcloud::Tbm.v20180129.models.StarPortraitInfo`
706
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
707
+ # @type RequestId: String
708
+
709
+ attr_accessor :Age, :Gender, :Province, :Movie, :Star, :RequestId
710
+
711
+ def initialize(age=nil, gender=nil, province=nil, movie=nil, star=nil, requestid=nil)
712
+ @Age = age
713
+ @Gender = gender
714
+ @Province = province
715
+ @Movie = movie
716
+ @Star = star
717
+ @RequestId = requestid
718
+ end
719
+
720
+ def deserialize(params)
721
+ unless params['Age'].nil?
722
+ @Age = AgePortraitInfo.new
723
+ @Age.deserialize(params['Age'])
724
+ end
725
+ unless params['Gender'].nil?
726
+ @Gender = GenderPortraitInfo.new
727
+ @Gender.deserialize(params['Gender'])
728
+ end
729
+ unless params['Province'].nil?
730
+ @Province = ProvincePortraitInfo.new
731
+ @Province.deserialize(params['Province'])
732
+ end
733
+ unless params['Movie'].nil?
734
+ @Movie = MoviePortraitInfo.new
735
+ @Movie.deserialize(params['Movie'])
736
+ end
737
+ unless params['Star'].nil?
738
+ @Star = StarPortraitInfo.new
739
+ @Star.deserialize(params['Star'])
740
+ end
741
+ @RequestId = params['RequestId']
742
+ end
743
+ end
744
+
745
+ # 性别画像元素
746
+ class GenderPortrait < TencentCloud::Common::AbstractModel
747
+ # @param Gender: 性别
748
+ # @type Gender: String
749
+ # @param Percent: 百分比
750
+ # @type Percent: Integer
751
+
752
+ attr_accessor :Gender, :Percent
753
+
754
+ def initialize(gender=nil, percent=nil)
755
+ @Gender = gender
756
+ @Percent = percent
757
+ end
758
+
759
+ def deserialize(params)
760
+ @Gender = params['Gender']
761
+ @Percent = params['Percent']
762
+ end
763
+ end
764
+
765
+ # 用户性别画像元素数组
766
+ class GenderPortraitInfo < TencentCloud::Common::AbstractModel
767
+ # @param PortraitSet: 用户性别画像数组
768
+ # @type PortraitSet: Array
769
+
770
+ attr_accessor :PortraitSet
771
+
772
+ def initialize(portraitset=nil)
773
+ @PortraitSet = portraitset
774
+ end
775
+
776
+ def deserialize(params)
777
+ unless params['PortraitSet'].nil?
778
+ @PortraitSet = []
779
+ params['PortraitSet'].each do |i|
780
+ genderportrait_tmp = GenderPortrait.new
781
+ genderportrait_tmp.deserialize(i)
782
+ @PortraitSet << genderportrait_tmp
783
+ end
784
+ end
785
+ end
786
+ end
787
+
788
+ # 行业报道新闻
789
+ class IndustryNews < TencentCloud::Common::AbstractModel
790
+ # @param IndustryId: 行业报道ID
791
+ # @type IndustryId: String
792
+ # @param PubTime: 报道发表时间
793
+ # @type PubTime: String
794
+ # @param FromSite: 报道来源
795
+ # @type FromSite: String
796
+ # @param Title: 报道标题
797
+ # @type Title: String
798
+ # @param Url: 报道来源url
799
+ # @type Url: String
800
+ # @param Level: 报道来源等级
801
+ # @type Level: Integer
802
+ # @param Hot: 热度值
803
+ # @type Hot: Integer
804
+ # @param Flag: 报道标识
805
+ # @type Flag: Integer
806
+ # @param Abstract: 报道摘要
807
+ # @type Abstract: String
808
+
809
+ attr_accessor :IndustryId, :PubTime, :FromSite, :Title, :Url, :Level, :Hot, :Flag, :Abstract
810
+
811
+ def initialize(industryid=nil, pubtime=nil, fromsite=nil, title=nil, url=nil, level=nil, hot=nil, flag=nil, abstract=nil)
812
+ @IndustryId = industryid
813
+ @PubTime = pubtime
814
+ @FromSite = fromsite
815
+ @Title = title
816
+ @Url = url
817
+ @Level = level
818
+ @Hot = hot
819
+ @Flag = flag
820
+ @Abstract = abstract
821
+ end
822
+
823
+ def deserialize(params)
824
+ @IndustryId = params['IndustryId']
825
+ @PubTime = params['PubTime']
826
+ @FromSite = params['FromSite']
827
+ @Title = params['Title']
828
+ @Url = params['Url']
829
+ @Level = params['Level']
830
+ @Hot = params['Hot']
831
+ @Flag = params['Flag']
832
+ @Abstract = params['Abstract']
833
+ end
834
+ end
835
+
836
+ # 电影喜好画像元素
837
+ class MoviePortrait < TencentCloud::Common::AbstractModel
838
+ # @param Name: 电影名称
839
+ # @type Name: String
840
+ # @param Percent: 百分比
841
+ # @type Percent: Float
842
+
843
+ attr_accessor :Name, :Percent
844
+
845
+ def initialize(name=nil, percent=nil)
846
+ @Name = name
847
+ @Percent = percent
848
+ end
849
+
850
+ def deserialize(params)
851
+ @Name = params['Name']
852
+ @Percent = params['Percent']
853
+ end
854
+ end
855
+
856
+ # 用户喜好电影画像元素数组
857
+ class MoviePortraitInfo < TencentCloud::Common::AbstractModel
858
+ # @param PortraitSet: 用户喜好电影画像数组
859
+ # @type PortraitSet: Array
860
+
861
+ attr_accessor :PortraitSet
862
+
863
+ def initialize(portraitset=nil)
864
+ @PortraitSet = portraitset
865
+ end
866
+
867
+ def deserialize(params)
868
+ unless params['PortraitSet'].nil?
869
+ @PortraitSet = []
870
+ params['PortraitSet'].each do |i|
871
+ movieportrait_tmp = MoviePortrait.new
872
+ movieportrait_tmp.deserialize(i)
873
+ @PortraitSet << movieportrait_tmp
874
+ end
875
+ end
876
+ end
877
+ end
878
+
879
+ # 省份画像元素
880
+ class ProvincePortrait < TencentCloud::Common::AbstractModel
881
+ # @param Province: 省份名称
882
+ # @type Province: String
883
+ # @param Percent: 百分比
884
+ # @type Percent: Float
885
+
886
+ attr_accessor :Province, :Percent
887
+
888
+ def initialize(province=nil, percent=nil)
889
+ @Province = province
890
+ @Percent = percent
891
+ end
892
+
893
+ def deserialize(params)
894
+ @Province = params['Province']
895
+ @Percent = params['Percent']
896
+ end
897
+ end
898
+
899
+ # 用户省份画像元素数组
900
+ class ProvincePortraitInfo < TencentCloud::Common::AbstractModel
901
+ # @param PortraitSet: 用户省份画像数组
902
+ # @type PortraitSet: Array
903
+
904
+ attr_accessor :PortraitSet
905
+
906
+ def initialize(portraitset=nil)
907
+ @PortraitSet = portraitset
908
+ end
909
+
910
+ def deserialize(params)
911
+ unless params['PortraitSet'].nil?
912
+ @PortraitSet = []
913
+ params['PortraitSet'].each do |i|
914
+ provinceportrait_tmp = ProvincePortrait.new
915
+ provinceportrait_tmp.deserialize(i)
916
+ @PortraitSet << provinceportrait_tmp
917
+ end
918
+ end
919
+ end
920
+ end
921
+
922
+ # 明星喜好画像元素
923
+ class StarPortrait < TencentCloud::Common::AbstractModel
924
+ # @param Name: 喜欢的明星名字
925
+ # @type Name: String
926
+ # @param Percent: 百分比
927
+ # @type Percent: Float
928
+
929
+ attr_accessor :Name, :Percent
930
+
931
+ def initialize(name=nil, percent=nil)
932
+ @Name = name
933
+ @Percent = percent
934
+ end
935
+
936
+ def deserialize(params)
937
+ @Name = params['Name']
938
+ @Percent = params['Percent']
939
+ end
940
+ end
941
+
942
+ # 用户喜好的明星画像元素数组
943
+ class StarPortraitInfo < TencentCloud::Common::AbstractModel
944
+ # @param PortraitSet: 用户喜好的明星画像数组
945
+ # @type PortraitSet: Array
946
+
947
+ attr_accessor :PortraitSet
948
+
949
+ def initialize(portraitset=nil)
950
+ @PortraitSet = portraitset
951
+ end
952
+
953
+ def deserialize(params)
954
+ unless params['PortraitSet'].nil?
955
+ @PortraitSet = []
956
+ params['PortraitSet'].each do |i|
957
+ starportrait_tmp = StarPortrait.new
958
+ starportrait_tmp.deserialize(i)
959
+ @PortraitSet << starportrait_tmp
960
+ end
961
+ end
962
+ end
963
+ end
964
+
965
+ end
966
+ end
967
+ end
968
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-tbm
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
+ TBM.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-tbm.rb
38
+ - lib/v20180129/client.rb
39
+ - lib/v20180129/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-tbm
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 - TBM
66
+ test_files: []