tencentcloud-sdk-ame 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-ame.rb +11 -0
- data/lib/v20190916/client.rb +516 -0
- data/lib/v20190916/models.rb +1786 -0
- metadata +66 -0
@@ -0,0 +1,1786 @@
|
|
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 Ame
|
19
|
+
module V20190916
|
20
|
+
# Album
|
21
|
+
class Album < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AlbumName: 专辑名
|
23
|
+
# @type AlbumName: String
|
24
|
+
# @param ImagePathMap: 专辑图片大小及类别
|
25
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
26
|
+
# @type ImagePathMap: Array
|
27
|
+
|
28
|
+
attr_accessor :AlbumName, :ImagePathMap
|
29
|
+
|
30
|
+
def initialize(albumname=nil, imagepathmap=nil)
|
31
|
+
@AlbumName = albumname
|
32
|
+
@ImagePathMap = imagepathmap
|
33
|
+
end
|
34
|
+
|
35
|
+
def deserialize(params)
|
36
|
+
@AlbumName = params['AlbumName']
|
37
|
+
unless params['ImagePathMap'].nil?
|
38
|
+
@ImagePathMap = []
|
39
|
+
params['ImagePathMap'].each do |i|
|
40
|
+
imagepath_tmp = ImagePath.new
|
41
|
+
imagepath_tmp.deserialize(i)
|
42
|
+
@ImagePathMap << imagepath_tmp
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Artist
|
49
|
+
class Artist < TencentCloud::Common::AbstractModel
|
50
|
+
# @param ArtistName: 歌手名
|
51
|
+
# @type ArtistName: String
|
52
|
+
|
53
|
+
attr_accessor :ArtistName
|
54
|
+
|
55
|
+
def initialize(artistname=nil)
|
56
|
+
@ArtistName = artistname
|
57
|
+
end
|
58
|
+
|
59
|
+
def deserialize(params)
|
60
|
+
@ArtistName = params['ArtistName']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# AuthInfo集合
|
65
|
+
class AuthInfo < TencentCloud::Common::AbstractModel
|
66
|
+
# @param SubjectName: 主体名称
|
67
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
68
|
+
# @type SubjectName: String
|
69
|
+
# @param ProjectName: 项目名称
|
70
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
71
|
+
# @type ProjectName: String
|
72
|
+
# @param AppScene: 应用场景
|
73
|
+
# @type AppScene: Integer
|
74
|
+
# @param AppRegion: 应用地域
|
75
|
+
# @type AppRegion: Integer
|
76
|
+
# @param AuthPeriod: 授权时间
|
77
|
+
# @type AuthPeriod: Integer
|
78
|
+
# @param Commercialization: 是否可商业化
|
79
|
+
# @type Commercialization: Integer
|
80
|
+
# @param Platform: 是否可跨平台
|
81
|
+
# @type Platform: Integer
|
82
|
+
# @param Id: 加密后Id
|
83
|
+
# @type Id: String
|
84
|
+
|
85
|
+
attr_accessor :SubjectName, :ProjectName, :AppScene, :AppRegion, :AuthPeriod, :Commercialization, :Platform, :Id
|
86
|
+
|
87
|
+
def initialize(subjectname=nil, projectname=nil, appscene=nil, appregion=nil, authperiod=nil, commercialization=nil, platform=nil, id=nil)
|
88
|
+
@SubjectName = subjectname
|
89
|
+
@ProjectName = projectname
|
90
|
+
@AppScene = appscene
|
91
|
+
@AppRegion = appregion
|
92
|
+
@AuthPeriod = authperiod
|
93
|
+
@Commercialization = commercialization
|
94
|
+
@Platform = platform
|
95
|
+
@Id = id
|
96
|
+
end
|
97
|
+
|
98
|
+
def deserialize(params)
|
99
|
+
@SubjectName = params['SubjectName']
|
100
|
+
@ProjectName = params['ProjectName']
|
101
|
+
@AppScene = params['AppScene']
|
102
|
+
@AppRegion = params['AppRegion']
|
103
|
+
@AuthPeriod = params['AuthPeriod']
|
104
|
+
@Commercialization = params['Commercialization']
|
105
|
+
@Platform = params['Platform']
|
106
|
+
@Id = params['Id']
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# 数据信息
|
111
|
+
class DataInfo < TencentCloud::Common::AbstractModel
|
112
|
+
# @param Name: Song Name
|
113
|
+
# @type Name: String
|
114
|
+
# @param Version: 歌曲版本
|
115
|
+
# @type Version: String
|
116
|
+
# @param Duration: 歌曲总时长(非试听时长)
|
117
|
+
# @type Duration: String
|
118
|
+
# @param AuditionBegin: 试听开始时间
|
119
|
+
# @type AuditionBegin: Integer
|
120
|
+
# @param AuditionEnd: 试听结束时间
|
121
|
+
# @type AuditionEnd: Integer
|
122
|
+
# @param TagNames: 标签名称
|
123
|
+
# @type TagNames: Array
|
124
|
+
|
125
|
+
attr_accessor :Name, :Version, :Duration, :AuditionBegin, :AuditionEnd, :TagNames
|
126
|
+
|
127
|
+
def initialize(name=nil, version=nil, duration=nil, auditionbegin=nil, auditionend=nil, tagnames=nil)
|
128
|
+
@Name = name
|
129
|
+
@Version = version
|
130
|
+
@Duration = duration
|
131
|
+
@AuditionBegin = auditionbegin
|
132
|
+
@AuditionEnd = auditionend
|
133
|
+
@TagNames = tagnames
|
134
|
+
end
|
135
|
+
|
136
|
+
def deserialize(params)
|
137
|
+
@Name = params['Name']
|
138
|
+
@Version = params['Version']
|
139
|
+
@Duration = params['Duration']
|
140
|
+
@AuditionBegin = params['AuditionBegin']
|
141
|
+
@AuditionEnd = params['AuditionEnd']
|
142
|
+
@TagNames = params['TagNames']
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# DescribeAuthInfo请求参数结构体
|
147
|
+
class DescribeAuthInfoRequest < TencentCloud::Common::AbstractModel
|
148
|
+
# @param Offset: 偏移量:Offset=Offset+Limit
|
149
|
+
# @type Offset: Integer
|
150
|
+
# @param Limit: 数据条数
|
151
|
+
# @type Limit: Integer
|
152
|
+
# @param Key: 搜索关键字
|
153
|
+
# @type Key: String
|
154
|
+
|
155
|
+
attr_accessor :Offset, :Limit, :Key
|
156
|
+
|
157
|
+
def initialize(offset=nil, limit=nil, key=nil)
|
158
|
+
@Offset = offset
|
159
|
+
@Limit = limit
|
160
|
+
@Key = key
|
161
|
+
end
|
162
|
+
|
163
|
+
def deserialize(params)
|
164
|
+
@Offset = params['Offset']
|
165
|
+
@Limit = params['Limit']
|
166
|
+
@Key = params['Key']
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# DescribeAuthInfo返回参数结构体
|
171
|
+
class DescribeAuthInfoResponse < TencentCloud::Common::AbstractModel
|
172
|
+
# @param AuthInfo: 授权项目列表
|
173
|
+
# @type AuthInfo: Array
|
174
|
+
# @param TotalCount: 总数
|
175
|
+
# @type TotalCount: Integer
|
176
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
177
|
+
# @type RequestId: String
|
178
|
+
|
179
|
+
attr_accessor :AuthInfo, :TotalCount, :RequestId
|
180
|
+
|
181
|
+
def initialize(authinfo=nil, totalcount=nil, requestid=nil)
|
182
|
+
@AuthInfo = authinfo
|
183
|
+
@TotalCount = totalcount
|
184
|
+
@RequestId = requestid
|
185
|
+
end
|
186
|
+
|
187
|
+
def deserialize(params)
|
188
|
+
unless params['AuthInfo'].nil?
|
189
|
+
@AuthInfo = []
|
190
|
+
params['AuthInfo'].each do |i|
|
191
|
+
authinfo_tmp = AuthInfo.new
|
192
|
+
authinfo_tmp.deserialize(i)
|
193
|
+
@AuthInfo << authinfo_tmp
|
194
|
+
end
|
195
|
+
end
|
196
|
+
@TotalCount = params['TotalCount']
|
197
|
+
@RequestId = params['RequestId']
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# DescribeCloudMusicPurchased请求参数结构体
|
202
|
+
class DescribeCloudMusicPurchasedRequest < TencentCloud::Common::AbstractModel
|
203
|
+
# @param AuthInfoId: 授权项目Id
|
204
|
+
# @type AuthInfoId: String
|
205
|
+
|
206
|
+
attr_accessor :AuthInfoId
|
207
|
+
|
208
|
+
def initialize(authinfoid=nil)
|
209
|
+
@AuthInfoId = authinfoid
|
210
|
+
end
|
211
|
+
|
212
|
+
def deserialize(params)
|
213
|
+
@AuthInfoId = params['AuthInfoId']
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# DescribeCloudMusicPurchased返回参数结构体
|
218
|
+
class DescribeCloudMusicPurchasedResponse < TencentCloud::Common::AbstractModel
|
219
|
+
# @param MusicOpenDetail: 云音乐列表
|
220
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
221
|
+
# @type MusicOpenDetail: Array
|
222
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
223
|
+
# @type RequestId: String
|
224
|
+
|
225
|
+
attr_accessor :MusicOpenDetail, :RequestId
|
226
|
+
|
227
|
+
def initialize(musicopendetail=nil, requestid=nil)
|
228
|
+
@MusicOpenDetail = musicopendetail
|
229
|
+
@RequestId = requestid
|
230
|
+
end
|
231
|
+
|
232
|
+
def deserialize(params)
|
233
|
+
unless params['MusicOpenDetail'].nil?
|
234
|
+
@MusicOpenDetail = []
|
235
|
+
params['MusicOpenDetail'].each do |i|
|
236
|
+
musicopendetail_tmp = MusicOpenDetail.new
|
237
|
+
musicopendetail_tmp.deserialize(i)
|
238
|
+
@MusicOpenDetail << musicopendetail_tmp
|
239
|
+
end
|
240
|
+
end
|
241
|
+
@RequestId = params['RequestId']
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# DescribeCloudMusic请求参数结构体
|
246
|
+
class DescribeCloudMusicRequest < TencentCloud::Common::AbstractModel
|
247
|
+
# @param MusicId: 歌曲Id
|
248
|
+
# @type MusicId: String
|
249
|
+
# @param MusicType: 歌曲类型,可选值有:
|
250
|
+
# <li>MP3-128K-FTW:含有水印的试听资源;</li>
|
251
|
+
# <li>MP3-320K-FTD-P:320kbps歌曲热门片段;</li>
|
252
|
+
# <li>MP3-320K-FTD:320kbps已核验歌曲完整资源。</li>
|
253
|
+
# 默认为:MP3-128K-FTW
|
254
|
+
# @type MusicType: String
|
255
|
+
|
256
|
+
attr_accessor :MusicId, :MusicType
|
257
|
+
|
258
|
+
def initialize(musicid=nil, musictype=nil)
|
259
|
+
@MusicId = musicid
|
260
|
+
@MusicType = musictype
|
261
|
+
end
|
262
|
+
|
263
|
+
def deserialize(params)
|
264
|
+
@MusicId = params['MusicId']
|
265
|
+
@MusicType = params['MusicType']
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
# DescribeCloudMusic返回参数结构体
|
270
|
+
class DescribeCloudMusicResponse < TencentCloud::Common::AbstractModel
|
271
|
+
# @param MusicId: 歌曲Id
|
272
|
+
# @type MusicId: String
|
273
|
+
# @param MusicName: 歌曲名称
|
274
|
+
# @type MusicName: String
|
275
|
+
# @param Duration: 歌曲时长
|
276
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
277
|
+
# @type Duration: Integer
|
278
|
+
# @param MusicUrl: 歌曲链接
|
279
|
+
# @type MusicUrl: String
|
280
|
+
# @param MusicImageUrl: 歌曲图片
|
281
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
282
|
+
# @type MusicImageUrl: String
|
283
|
+
# @param Singers: 歌手列表
|
284
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
285
|
+
# @type Singers: Array
|
286
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
287
|
+
# @type RequestId: String
|
288
|
+
|
289
|
+
attr_accessor :MusicId, :MusicName, :Duration, :MusicUrl, :MusicImageUrl, :Singers, :RequestId
|
290
|
+
|
291
|
+
def initialize(musicid=nil, musicname=nil, duration=nil, musicurl=nil, musicimageurl=nil, singers=nil, requestid=nil)
|
292
|
+
@MusicId = musicid
|
293
|
+
@MusicName = musicname
|
294
|
+
@Duration = duration
|
295
|
+
@MusicUrl = musicurl
|
296
|
+
@MusicImageUrl = musicimageurl
|
297
|
+
@Singers = singers
|
298
|
+
@RequestId = requestid
|
299
|
+
end
|
300
|
+
|
301
|
+
def deserialize(params)
|
302
|
+
@MusicId = params['MusicId']
|
303
|
+
@MusicName = params['MusicName']
|
304
|
+
@Duration = params['Duration']
|
305
|
+
@MusicUrl = params['MusicUrl']
|
306
|
+
@MusicImageUrl = params['MusicImageUrl']
|
307
|
+
@Singers = params['Singers']
|
308
|
+
@RequestId = params['RequestId']
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
# DescribeItemById请求参数结构体
|
313
|
+
class DescribeItemByIdRequest < TencentCloud::Common::AbstractModel
|
314
|
+
# @param ItemIDs: 歌曲ID,目前暂不支持批量查询
|
315
|
+
# @type ItemIDs: String
|
316
|
+
|
317
|
+
attr_accessor :ItemIDs
|
318
|
+
|
319
|
+
def initialize(itemids=nil)
|
320
|
+
@ItemIDs = itemids
|
321
|
+
end
|
322
|
+
|
323
|
+
def deserialize(params)
|
324
|
+
@ItemIDs = params['ItemIDs']
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
# DescribeItemById返回参数结构体
|
329
|
+
class DescribeItemByIdResponse < TencentCloud::Common::AbstractModel
|
330
|
+
# @param Items: 歌曲信息
|
331
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
332
|
+
# @type Items: Array
|
333
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
334
|
+
# @type RequestId: String
|
335
|
+
|
336
|
+
attr_accessor :Items, :RequestId
|
337
|
+
|
338
|
+
def initialize(items=nil, requestid=nil)
|
339
|
+
@Items = items
|
340
|
+
@RequestId = requestid
|
341
|
+
end
|
342
|
+
|
343
|
+
def deserialize(params)
|
344
|
+
unless params['Items'].nil?
|
345
|
+
@Items = []
|
346
|
+
params['Items'].each do |i|
|
347
|
+
item_tmp = Item.new
|
348
|
+
item_tmp.deserialize(i)
|
349
|
+
@Items << item_tmp
|
350
|
+
end
|
351
|
+
end
|
352
|
+
@RequestId = params['RequestId']
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
# DescribeItems请求参数结构体
|
357
|
+
class DescribeItemsRequest < TencentCloud::Common::AbstractModel
|
358
|
+
# @param Offset: offset (Default = 0),(当前页-1) * Limit
|
359
|
+
# @type Offset: Integer
|
360
|
+
# @param Limit: 条数,必须大于0,最大值为30
|
361
|
+
# @type Limit: Integer
|
362
|
+
# @param CategoryId: (电台/歌单)ID,CategoryId和CategoryCode两个必传1个,可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容(Station)列表接口</a>中获取。
|
363
|
+
# @type CategoryId: String
|
364
|
+
# @param CategoryCode: (电台/歌单)ID,CategoryId和CategoryCode两个必传1个,可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容(Station)列表接口</a>中获取。
|
365
|
+
# @type CategoryCode: String
|
366
|
+
|
367
|
+
attr_accessor :Offset, :Limit, :CategoryId, :CategoryCode
|
368
|
+
|
369
|
+
def initialize(offset=nil, limit=nil, categoryid=nil, categorycode=nil)
|
370
|
+
@Offset = offset
|
371
|
+
@Limit = limit
|
372
|
+
@CategoryId = categoryid
|
373
|
+
@CategoryCode = categorycode
|
374
|
+
end
|
375
|
+
|
376
|
+
def deserialize(params)
|
377
|
+
@Offset = params['Offset']
|
378
|
+
@Limit = params['Limit']
|
379
|
+
@CategoryId = params['CategoryId']
|
380
|
+
@CategoryCode = params['CategoryCode']
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
# DescribeItems返回参数结构体
|
385
|
+
class DescribeItemsResponse < TencentCloud::Common::AbstractModel
|
386
|
+
# @param Offset: 分页偏移量
|
387
|
+
# @type Offset: Integer
|
388
|
+
# @param Size: 当前页歌曲数量
|
389
|
+
# @type Size: Integer
|
390
|
+
# @param Total: 总数据条数
|
391
|
+
# @type Total: Integer
|
392
|
+
# @param HaveMore: 剩余数量(total-offset-size),通过这个值判断是否
|
393
|
+
# 还有下一页
|
394
|
+
# @type HaveMore: Integer
|
395
|
+
# @param Items: Items 歌曲列表
|
396
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
397
|
+
# @type Items: Array
|
398
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
399
|
+
# @type RequestId: String
|
400
|
+
|
401
|
+
attr_accessor :Offset, :Size, :Total, :HaveMore, :Items, :RequestId
|
402
|
+
|
403
|
+
def initialize(offset=nil, size=nil, total=nil, havemore=nil, items=nil, requestid=nil)
|
404
|
+
@Offset = offset
|
405
|
+
@Size = size
|
406
|
+
@Total = total
|
407
|
+
@HaveMore = havemore
|
408
|
+
@Items = items
|
409
|
+
@RequestId = requestid
|
410
|
+
end
|
411
|
+
|
412
|
+
def deserialize(params)
|
413
|
+
@Offset = params['Offset']
|
414
|
+
@Size = params['Size']
|
415
|
+
@Total = params['Total']
|
416
|
+
@HaveMore = params['HaveMore']
|
417
|
+
unless params['Items'].nil?
|
418
|
+
@Items = []
|
419
|
+
params['Items'].each do |i|
|
420
|
+
item_tmp = Item.new
|
421
|
+
item_tmp.deserialize(i)
|
422
|
+
@Items << item_tmp
|
423
|
+
end
|
424
|
+
end
|
425
|
+
@RequestId = params['RequestId']
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
429
|
+
# DescribeKTVMusicDetail请求参数结构体
|
430
|
+
class DescribeKTVMusicDetailRequest < TencentCloud::Common::AbstractModel
|
431
|
+
# @param MusicId: 曲目 Id
|
432
|
+
# @type MusicId: String
|
433
|
+
|
434
|
+
attr_accessor :MusicId
|
435
|
+
|
436
|
+
def initialize(musicid=nil)
|
437
|
+
@MusicId = musicid
|
438
|
+
end
|
439
|
+
|
440
|
+
def deserialize(params)
|
441
|
+
@MusicId = params['MusicId']
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
# DescribeKTVMusicDetail返回参数结构体
|
446
|
+
class DescribeKTVMusicDetailResponse < TencentCloud::Common::AbstractModel
|
447
|
+
# @param KTVMusicBaseInfo: 歌曲基础信息
|
448
|
+
# @type KTVMusicBaseInfo: :class:`Tencentcloud::Ame.v20190916.models.KTVMusicBaseInfo`
|
449
|
+
# @param PlayToken: 播放凭证
|
450
|
+
# @type PlayToken: String
|
451
|
+
# @param LyricsUrl: 歌词下载地址
|
452
|
+
# @type LyricsUrl: String
|
453
|
+
# @param DefinitionInfoSet: 歌曲规格信息列表
|
454
|
+
# @type DefinitionInfoSet: Array
|
455
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
456
|
+
# @type RequestId: String
|
457
|
+
|
458
|
+
attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :DefinitionInfoSet, :RequestId
|
459
|
+
|
460
|
+
def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, definitioninfoset=nil, requestid=nil)
|
461
|
+
@KTVMusicBaseInfo = ktvmusicbaseinfo
|
462
|
+
@PlayToken = playtoken
|
463
|
+
@LyricsUrl = lyricsurl
|
464
|
+
@DefinitionInfoSet = definitioninfoset
|
465
|
+
@RequestId = requestid
|
466
|
+
end
|
467
|
+
|
468
|
+
def deserialize(params)
|
469
|
+
unless params['KTVMusicBaseInfo'].nil?
|
470
|
+
@KTVMusicBaseInfo = KTVMusicBaseInfo.new
|
471
|
+
@KTVMusicBaseInfo.deserialize(params['KTVMusicBaseInfo'])
|
472
|
+
end
|
473
|
+
@PlayToken = params['PlayToken']
|
474
|
+
@LyricsUrl = params['LyricsUrl']
|
475
|
+
unless params['DefinitionInfoSet'].nil?
|
476
|
+
@DefinitionInfoSet = []
|
477
|
+
params['DefinitionInfoSet'].each do |i|
|
478
|
+
ktvmusicdefinitioninfo_tmp = KTVMusicDefinitionInfo.new
|
479
|
+
ktvmusicdefinitioninfo_tmp.deserialize(i)
|
480
|
+
@DefinitionInfoSet << ktvmusicdefinitioninfo_tmp
|
481
|
+
end
|
482
|
+
end
|
483
|
+
@RequestId = params['RequestId']
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# DescribeKTVPlaylistDetail请求参数结构体
|
488
|
+
class DescribeKTVPlaylistDetailRequest < TencentCloud::Common::AbstractModel
|
489
|
+
# @param PlaylistId: 歌单Id
|
490
|
+
# @type PlaylistId: String
|
491
|
+
# @param Offset: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
|
492
|
+
# @type Offset: Integer
|
493
|
+
# @param Limit: 分页返回的记录条数,默认值:50。将返回第 Offset 到第 Offset+Limit-1 条。
|
494
|
+
# @type Limit: Integer
|
495
|
+
|
496
|
+
attr_accessor :PlaylistId, :Offset, :Limit
|
497
|
+
|
498
|
+
def initialize(playlistid=nil, offset=nil, limit=nil)
|
499
|
+
@PlaylistId = playlistid
|
500
|
+
@Offset = offset
|
501
|
+
@Limit = limit
|
502
|
+
end
|
503
|
+
|
504
|
+
def deserialize(params)
|
505
|
+
@PlaylistId = params['PlaylistId']
|
506
|
+
@Offset = params['Offset']
|
507
|
+
@Limit = params['Limit']
|
508
|
+
end
|
509
|
+
end
|
510
|
+
|
511
|
+
# DescribeKTVPlaylistDetail返回参数结构体
|
512
|
+
class DescribeKTVPlaylistDetailResponse < TencentCloud::Common::AbstractModel
|
513
|
+
# @param KTVMusicInfoSet: 歌曲基础信息列表
|
514
|
+
# @type KTVMusicInfoSet: Array
|
515
|
+
# @param PlaylistBaseInfo: 歌单基础信息
|
516
|
+
# @type PlaylistBaseInfo: :class:`Tencentcloud::Ame.v20190916.models.KTVPlaylistBaseInfo`
|
517
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
518
|
+
# @type RequestId: String
|
519
|
+
|
520
|
+
attr_accessor :KTVMusicInfoSet, :PlaylistBaseInfo, :RequestId
|
521
|
+
|
522
|
+
def initialize(ktvmusicinfoset=nil, playlistbaseinfo=nil, requestid=nil)
|
523
|
+
@KTVMusicInfoSet = ktvmusicinfoset
|
524
|
+
@PlaylistBaseInfo = playlistbaseinfo
|
525
|
+
@RequestId = requestid
|
526
|
+
end
|
527
|
+
|
528
|
+
def deserialize(params)
|
529
|
+
unless params['KTVMusicInfoSet'].nil?
|
530
|
+
@KTVMusicInfoSet = []
|
531
|
+
params['KTVMusicInfoSet'].each do |i|
|
532
|
+
ktvmusicbaseinfo_tmp = KTVMusicBaseInfo.new
|
533
|
+
ktvmusicbaseinfo_tmp.deserialize(i)
|
534
|
+
@KTVMusicInfoSet << ktvmusicbaseinfo_tmp
|
535
|
+
end
|
536
|
+
end
|
537
|
+
unless params['PlaylistBaseInfo'].nil?
|
538
|
+
@PlaylistBaseInfo = KTVPlaylistBaseInfo.new
|
539
|
+
@PlaylistBaseInfo.deserialize(params['PlaylistBaseInfo'])
|
540
|
+
end
|
541
|
+
@RequestId = params['RequestId']
|
542
|
+
end
|
543
|
+
end
|
544
|
+
|
545
|
+
# DescribeKTVPlaylists请求参数结构体
|
546
|
+
class DescribeKTVPlaylistsRequest < TencentCloud::Common::AbstractModel
|
547
|
+
# @param Offset: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
|
548
|
+
# @type Offset: Integer
|
549
|
+
# @param Limit: 分页返回的记录条数,默认值:50。将返回第 Offset 到第 Offset+Limit-1 条。
|
550
|
+
# @type Limit: Integer
|
551
|
+
|
552
|
+
attr_accessor :Offset, :Limit
|
553
|
+
|
554
|
+
def initialize(offset=nil, limit=nil)
|
555
|
+
@Offset = offset
|
556
|
+
@Limit = limit
|
557
|
+
end
|
558
|
+
|
559
|
+
def deserialize(params)
|
560
|
+
@Offset = params['Offset']
|
561
|
+
@Limit = params['Limit']
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
565
|
+
# DescribeKTVPlaylists返回参数结构体
|
566
|
+
class DescribeKTVPlaylistsResponse < TencentCloud::Common::AbstractModel
|
567
|
+
# @param PlaylistBaseInfoSet: 推荐歌单列表
|
568
|
+
# @type PlaylistBaseInfoSet: Array
|
569
|
+
# @param TotalCount: 推荐歌单列表总数
|
570
|
+
# @type TotalCount: Integer
|
571
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
572
|
+
# @type RequestId: String
|
573
|
+
|
574
|
+
attr_accessor :PlaylistBaseInfoSet, :TotalCount, :RequestId
|
575
|
+
|
576
|
+
def initialize(playlistbaseinfoset=nil, totalcount=nil, requestid=nil)
|
577
|
+
@PlaylistBaseInfoSet = playlistbaseinfoset
|
578
|
+
@TotalCount = totalcount
|
579
|
+
@RequestId = requestid
|
580
|
+
end
|
581
|
+
|
582
|
+
def deserialize(params)
|
583
|
+
unless params['PlaylistBaseInfoSet'].nil?
|
584
|
+
@PlaylistBaseInfoSet = []
|
585
|
+
params['PlaylistBaseInfoSet'].each do |i|
|
586
|
+
ktvplaylistbaseinfo_tmp = KTVPlaylistBaseInfo.new
|
587
|
+
ktvplaylistbaseinfo_tmp.deserialize(i)
|
588
|
+
@PlaylistBaseInfoSet << ktvplaylistbaseinfo_tmp
|
589
|
+
end
|
590
|
+
end
|
591
|
+
@TotalCount = params['TotalCount']
|
592
|
+
@RequestId = params['RequestId']
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
596
|
+
# DescribeLyric请求参数结构体
|
597
|
+
class DescribeLyricRequest < TencentCloud::Common::AbstractModel
|
598
|
+
# @param ItemId: 歌曲ID
|
599
|
+
# @type ItemId: String
|
600
|
+
# @param SubItemType: 格式,可选项,可不填写,默认值为:LRC-LRC。
|
601
|
+
# <li>LRC-LRC:歌词;</li>
|
602
|
+
# <li>JSON-ST:波形图。</li>
|
603
|
+
# @type SubItemType: String
|
604
|
+
|
605
|
+
attr_accessor :ItemId, :SubItemType
|
606
|
+
|
607
|
+
def initialize(itemid=nil, subitemtype=nil)
|
608
|
+
@ItemId = itemid
|
609
|
+
@SubItemType = subitemtype
|
610
|
+
end
|
611
|
+
|
612
|
+
def deserialize(params)
|
613
|
+
@ItemId = params['ItemId']
|
614
|
+
@SubItemType = params['SubItemType']
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
618
|
+
# DescribeLyric返回参数结构体
|
619
|
+
class DescribeLyricResponse < TencentCloud::Common::AbstractModel
|
620
|
+
# @param Lyric: 歌词或者波形图详情
|
621
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
622
|
+
# @type Lyric: :class:`Tencentcloud::Ame.v20190916.models.Lyric`
|
623
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
624
|
+
# @type RequestId: String
|
625
|
+
|
626
|
+
attr_accessor :Lyric, :RequestId
|
627
|
+
|
628
|
+
def initialize(lyric=nil, requestid=nil)
|
629
|
+
@Lyric = lyric
|
630
|
+
@RequestId = requestid
|
631
|
+
end
|
632
|
+
|
633
|
+
def deserialize(params)
|
634
|
+
unless params['Lyric'].nil?
|
635
|
+
@Lyric = Lyric.new
|
636
|
+
@Lyric.deserialize(params['Lyric'])
|
637
|
+
end
|
638
|
+
@RequestId = params['RequestId']
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
# DescribeMusic请求参数结构体
|
643
|
+
class DescribeMusicRequest < TencentCloud::Common::AbstractModel
|
644
|
+
# @param ItemId: 歌曲ID
|
645
|
+
# @type ItemId: String
|
646
|
+
# @param IdentityId: 在应用前端播放音乐C端用户的唯一标识。无需是账户信息,用户唯一标识即可。
|
647
|
+
# @type IdentityId: String
|
648
|
+
# @param SubItemType: MP3-320K-FTD-P 为获取320kbps歌曲热门片段。
|
649
|
+
# MP3-320K-FTD 为获取320kbps已核验歌曲完整资源。
|
650
|
+
# @type SubItemType: String
|
651
|
+
# @param Ssl: CDN URL Protocol:HTTP or HTTPS/SSL
|
652
|
+
# Values:Y , N(default)
|
653
|
+
# @type Ssl: String
|
654
|
+
|
655
|
+
attr_accessor :ItemId, :IdentityId, :SubItemType, :Ssl
|
656
|
+
|
657
|
+
def initialize(itemid=nil, identityid=nil, subitemtype=nil, ssl=nil)
|
658
|
+
@ItemId = itemid
|
659
|
+
@IdentityId = identityid
|
660
|
+
@SubItemType = subitemtype
|
661
|
+
@Ssl = ssl
|
662
|
+
end
|
663
|
+
|
664
|
+
def deserialize(params)
|
665
|
+
@ItemId = params['ItemId']
|
666
|
+
@IdentityId = params['IdentityId']
|
667
|
+
@SubItemType = params['SubItemType']
|
668
|
+
@Ssl = params['Ssl']
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
# DescribeMusic返回参数结构体
|
673
|
+
class DescribeMusicResponse < TencentCloud::Common::AbstractModel
|
674
|
+
# @param Music: 音乐相关信息
|
675
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
676
|
+
# @type Music: :class:`Tencentcloud::Ame.v20190916.models.Music`
|
677
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
678
|
+
# @type RequestId: String
|
679
|
+
|
680
|
+
attr_accessor :Music, :RequestId
|
681
|
+
|
682
|
+
def initialize(music=nil, requestid=nil)
|
683
|
+
@Music = music
|
684
|
+
@RequestId = requestid
|
685
|
+
end
|
686
|
+
|
687
|
+
def deserialize(params)
|
688
|
+
unless params['Music'].nil?
|
689
|
+
@Music = Music.new
|
690
|
+
@Music.deserialize(params['Music'])
|
691
|
+
end
|
692
|
+
@RequestId = params['RequestId']
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
# DescribeMusicSaleStatus请求参数结构体
|
697
|
+
class DescribeMusicSaleStatusRequest < TencentCloud::Common::AbstractModel
|
698
|
+
# @param MusicIds: 歌曲Id集合,可传单个,也可传多个,上线查询单次50个
|
699
|
+
# @type MusicIds: Array
|
700
|
+
# @param PurchaseType: 查询哪个渠道的数据,1为曲库包,2为单曲
|
701
|
+
# @type PurchaseType: Integer
|
702
|
+
|
703
|
+
attr_accessor :MusicIds, :PurchaseType
|
704
|
+
|
705
|
+
def initialize(musicids=nil, purchasetype=nil)
|
706
|
+
@MusicIds = musicids
|
707
|
+
@PurchaseType = purchasetype
|
708
|
+
end
|
709
|
+
|
710
|
+
def deserialize(params)
|
711
|
+
@MusicIds = params['MusicIds']
|
712
|
+
@PurchaseType = params['PurchaseType']
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
# DescribeMusicSaleStatus返回参数结构体
|
717
|
+
class DescribeMusicSaleStatusResponse < TencentCloud::Common::AbstractModel
|
718
|
+
# @param MusicStatusSet: musicId对应歌曲状态
|
719
|
+
# @type MusicStatusSet: Array
|
720
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
721
|
+
# @type RequestId: String
|
722
|
+
|
723
|
+
attr_accessor :MusicStatusSet, :RequestId
|
724
|
+
|
725
|
+
def initialize(musicstatusset=nil, requestid=nil)
|
726
|
+
@MusicStatusSet = musicstatusset
|
727
|
+
@RequestId = requestid
|
728
|
+
end
|
729
|
+
|
730
|
+
def deserialize(params)
|
731
|
+
unless params['MusicStatusSet'].nil?
|
732
|
+
@MusicStatusSet = []
|
733
|
+
params['MusicStatusSet'].each do |i|
|
734
|
+
musicstatus_tmp = MusicStatus.new
|
735
|
+
musicstatus_tmp.deserialize(i)
|
736
|
+
@MusicStatusSet << musicstatus_tmp
|
737
|
+
end
|
738
|
+
end
|
739
|
+
@RequestId = params['RequestId']
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
743
|
+
# DescribePackageItems请求参数结构体
|
744
|
+
class DescribePackageItemsRequest < TencentCloud::Common::AbstractModel
|
745
|
+
# @param OrderId: 订单id,从获取已购曲库包列表中获取
|
746
|
+
# @type OrderId: String
|
747
|
+
# @param Offset: 默认0,Offset=Offset+Length
|
748
|
+
# @type Offset: Integer
|
749
|
+
# @param Length: 默认20
|
750
|
+
# @type Length: Integer
|
751
|
+
|
752
|
+
attr_accessor :OrderId, :Offset, :Length
|
753
|
+
|
754
|
+
def initialize(orderid=nil, offset=nil, length=nil)
|
755
|
+
@OrderId = orderid
|
756
|
+
@Offset = offset
|
757
|
+
@Length = length
|
758
|
+
end
|
759
|
+
|
760
|
+
def deserialize(params)
|
761
|
+
@OrderId = params['OrderId']
|
762
|
+
@Offset = params['Offset']
|
763
|
+
@Length = params['Length']
|
764
|
+
end
|
765
|
+
end
|
766
|
+
|
767
|
+
# DescribePackageItems返回参数结构体
|
768
|
+
class DescribePackageItemsResponse < TencentCloud::Common::AbstractModel
|
769
|
+
# @param PackageItems: 已核销歌曲信息列表
|
770
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
771
|
+
# @type PackageItems: Array
|
772
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
773
|
+
# @type RequestId: String
|
774
|
+
|
775
|
+
attr_accessor :PackageItems, :RequestId
|
776
|
+
|
777
|
+
def initialize(packageitems=nil, requestid=nil)
|
778
|
+
@PackageItems = packageitems
|
779
|
+
@RequestId = requestid
|
780
|
+
end
|
781
|
+
|
782
|
+
def deserialize(params)
|
783
|
+
unless params['PackageItems'].nil?
|
784
|
+
@PackageItems = []
|
785
|
+
params['PackageItems'].each do |i|
|
786
|
+
packageitem_tmp = PackageItem.new
|
787
|
+
packageitem_tmp.deserialize(i)
|
788
|
+
@PackageItems << packageitem_tmp
|
789
|
+
end
|
790
|
+
end
|
791
|
+
@RequestId = params['RequestId']
|
792
|
+
end
|
793
|
+
end
|
794
|
+
|
795
|
+
# DescribePackages请求参数结构体
|
796
|
+
class DescribePackagesRequest < TencentCloud::Common::AbstractModel
|
797
|
+
# @param Offset: 默认0,Offset=Offset+Length
|
798
|
+
# @type Offset: Integer
|
799
|
+
# @param Length: 默认20
|
800
|
+
# @type Length: Integer
|
801
|
+
|
802
|
+
attr_accessor :Offset, :Length
|
803
|
+
|
804
|
+
def initialize(offset=nil, length=nil)
|
805
|
+
@Offset = offset
|
806
|
+
@Length = length
|
807
|
+
end
|
808
|
+
|
809
|
+
def deserialize(params)
|
810
|
+
@Offset = params['Offset']
|
811
|
+
@Length = params['Length']
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
815
|
+
# DescribePackages返回参数结构体
|
816
|
+
class DescribePackagesResponse < TencentCloud::Common::AbstractModel
|
817
|
+
# @param Packages: 已购曲库包列表
|
818
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
819
|
+
# @type Packages: Array
|
820
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
821
|
+
# @type RequestId: String
|
822
|
+
|
823
|
+
attr_accessor :Packages, :RequestId
|
824
|
+
|
825
|
+
def initialize(packages=nil, requestid=nil)
|
826
|
+
@Packages = packages
|
827
|
+
@RequestId = requestid
|
828
|
+
end
|
829
|
+
|
830
|
+
def deserialize(params)
|
831
|
+
unless params['Packages'].nil?
|
832
|
+
@Packages = []
|
833
|
+
params['Packages'].each do |i|
|
834
|
+
package_tmp = Package.new
|
835
|
+
package_tmp.deserialize(i)
|
836
|
+
@Packages << package_tmp
|
837
|
+
end
|
838
|
+
end
|
839
|
+
@RequestId = params['RequestId']
|
840
|
+
end
|
841
|
+
end
|
842
|
+
|
843
|
+
# DescribePkgOfflineMusic请求参数结构体
|
844
|
+
class DescribePkgOfflineMusicRequest < TencentCloud::Common::AbstractModel
|
845
|
+
# @param PackageOrderId: 订单id
|
846
|
+
# @type PackageOrderId: String
|
847
|
+
# @param Limit: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条(注:单次上限为100)。
|
848
|
+
# @type Limit: Integer
|
849
|
+
# @param Offset: 分页返回的记录条数,默认值:50。将返回第 Offset 到第 Offset+Limit-1 条。
|
850
|
+
# @type Offset: Integer
|
851
|
+
|
852
|
+
attr_accessor :PackageOrderId, :Limit, :Offset
|
853
|
+
|
854
|
+
def initialize(packageorderid=nil, limit=nil, offset=nil)
|
855
|
+
@PackageOrderId = packageorderid
|
856
|
+
@Limit = limit
|
857
|
+
@Offset = offset
|
858
|
+
end
|
859
|
+
|
860
|
+
def deserialize(params)
|
861
|
+
@PackageOrderId = params['PackageOrderId']
|
862
|
+
@Limit = params['Limit']
|
863
|
+
@Offset = params['Offset']
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
867
|
+
# DescribePkgOfflineMusic返回参数结构体
|
868
|
+
class DescribePkgOfflineMusicResponse < TencentCloud::Common::AbstractModel
|
869
|
+
# @param OfflineMusicSet: 曲库包中不可用歌曲信息
|
870
|
+
# @type OfflineMusicSet: Array
|
871
|
+
# @param TotalCount: 返回总量
|
872
|
+
# @type TotalCount: Integer
|
873
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
874
|
+
# @type RequestId: String
|
875
|
+
|
876
|
+
attr_accessor :OfflineMusicSet, :TotalCount, :RequestId
|
877
|
+
|
878
|
+
def initialize(offlinemusicset=nil, totalcount=nil, requestid=nil)
|
879
|
+
@OfflineMusicSet = offlinemusicset
|
880
|
+
@TotalCount = totalcount
|
881
|
+
@RequestId = requestid
|
882
|
+
end
|
883
|
+
|
884
|
+
def deserialize(params)
|
885
|
+
unless params['OfflineMusicSet'].nil?
|
886
|
+
@OfflineMusicSet = []
|
887
|
+
params['OfflineMusicSet'].each do |i|
|
888
|
+
offlinemusicdetail_tmp = OfflineMusicDetail.new
|
889
|
+
offlinemusicdetail_tmp.deserialize(i)
|
890
|
+
@OfflineMusicSet << offlinemusicdetail_tmp
|
891
|
+
end
|
892
|
+
end
|
893
|
+
@TotalCount = params['TotalCount']
|
894
|
+
@RequestId = params['RequestId']
|
895
|
+
end
|
896
|
+
end
|
897
|
+
|
898
|
+
# DescribeStations请求参数结构体
|
899
|
+
class DescribeStationsRequest < TencentCloud::Common::AbstractModel
|
900
|
+
# @param Limit: 条数,必须大于0
|
901
|
+
# @type Limit: Integer
|
902
|
+
# @param Offset: offset (Default = 0),Offset=Offset+Limit
|
903
|
+
# @type Offset: Integer
|
904
|
+
|
905
|
+
attr_accessor :Limit, :Offset
|
906
|
+
|
907
|
+
def initialize(limit=nil, offset=nil)
|
908
|
+
@Limit = limit
|
909
|
+
@Offset = offset
|
910
|
+
end
|
911
|
+
|
912
|
+
def deserialize(params)
|
913
|
+
@Limit = params['Limit']
|
914
|
+
@Offset = params['Offset']
|
915
|
+
end
|
916
|
+
end
|
917
|
+
|
918
|
+
# DescribeStations返回参数结构体
|
919
|
+
class DescribeStationsResponse < TencentCloud::Common::AbstractModel
|
920
|
+
# @param Total: 总数量
|
921
|
+
# @type Total: Integer
|
922
|
+
# @param Offset: 分页偏移量
|
923
|
+
# @type Offset: Integer
|
924
|
+
# @param Size: 当前页station数量
|
925
|
+
# @type Size: Integer
|
926
|
+
# @param HaveMore: 剩余数量(total-offset-size),通过这个值判断是否还有下一页
|
927
|
+
# @type HaveMore: Integer
|
928
|
+
# @param Stations: Stations 素材库列表
|
929
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
930
|
+
# @type Stations: Array
|
931
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
932
|
+
# @type RequestId: String
|
933
|
+
|
934
|
+
attr_accessor :Total, :Offset, :Size, :HaveMore, :Stations, :RequestId
|
935
|
+
|
936
|
+
def initialize(total=nil, offset=nil, size=nil, havemore=nil, stations=nil, requestid=nil)
|
937
|
+
@Total = total
|
938
|
+
@Offset = offset
|
939
|
+
@Size = size
|
940
|
+
@HaveMore = havemore
|
941
|
+
@Stations = stations
|
942
|
+
@RequestId = requestid
|
943
|
+
end
|
944
|
+
|
945
|
+
def deserialize(params)
|
946
|
+
@Total = params['Total']
|
947
|
+
@Offset = params['Offset']
|
948
|
+
@Size = params['Size']
|
949
|
+
@HaveMore = params['HaveMore']
|
950
|
+
unless params['Stations'].nil?
|
951
|
+
@Stations = []
|
952
|
+
params['Stations'].each do |i|
|
953
|
+
station_tmp = Station.new
|
954
|
+
station_tmp.deserialize(i)
|
955
|
+
@Stations << station_tmp
|
956
|
+
end
|
957
|
+
end
|
958
|
+
@RequestId = params['RequestId']
|
959
|
+
end
|
960
|
+
end
|
961
|
+
|
962
|
+
# 图片路径
|
963
|
+
class ImagePath < TencentCloud::Common::AbstractModel
|
964
|
+
# @param Key: station图片大小及类别
|
965
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
966
|
+
# @type Key: String
|
967
|
+
# @param Value: station图片地址
|
968
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
969
|
+
# @type Value: String
|
970
|
+
|
971
|
+
attr_accessor :Key, :Value
|
972
|
+
|
973
|
+
def initialize(key=nil, value=nil)
|
974
|
+
@Key = key
|
975
|
+
@Value = value
|
976
|
+
end
|
977
|
+
|
978
|
+
def deserialize(params)
|
979
|
+
@Key = params['Key']
|
980
|
+
@Value = params['Value']
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
984
|
+
# 歌曲信息
|
985
|
+
class Item < TencentCloud::Common::AbstractModel
|
986
|
+
# @param ItemID: Song ID
|
987
|
+
# @type ItemID: String
|
988
|
+
# @param DataInfo: Song info
|
989
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
990
|
+
# @type DataInfo: :class:`Tencentcloud::Ame.v20190916.models.DataInfo`
|
991
|
+
# @param Album: 专辑信息
|
992
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
993
|
+
# @type Album: :class:`Tencentcloud::Ame.v20190916.models.Album`
|
994
|
+
# @param Artists: 多个歌手集合
|
995
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
996
|
+
# @type Artists: Array
|
997
|
+
# @param Status: 歌曲状态,1:添加进购物车;2:核销进曲库包
|
998
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
999
|
+
# @type Status: Integer
|
1000
|
+
|
1001
|
+
attr_accessor :ItemID, :DataInfo, :Album, :Artists, :Status
|
1002
|
+
|
1003
|
+
def initialize(itemid=nil, datainfo=nil, album=nil, artists=nil, status=nil)
|
1004
|
+
@ItemID = itemid
|
1005
|
+
@DataInfo = datainfo
|
1006
|
+
@Album = album
|
1007
|
+
@Artists = artists
|
1008
|
+
@Status = status
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
def deserialize(params)
|
1012
|
+
@ItemID = params['ItemID']
|
1013
|
+
unless params['DataInfo'].nil?
|
1014
|
+
@DataInfo = DataInfo.new
|
1015
|
+
@DataInfo.deserialize(params['DataInfo'])
|
1016
|
+
end
|
1017
|
+
unless params['Album'].nil?
|
1018
|
+
@Album = Album.new
|
1019
|
+
@Album.deserialize(params['Album'])
|
1020
|
+
end
|
1021
|
+
unless params['Artists'].nil?
|
1022
|
+
@Artists = []
|
1023
|
+
params['Artists'].each do |i|
|
1024
|
+
artist_tmp = Artist.new
|
1025
|
+
artist_tmp.deserialize(i)
|
1026
|
+
@Artists << artist_tmp
|
1027
|
+
end
|
1028
|
+
end
|
1029
|
+
@Status = params['Status']
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# KTV 曲目基础信息
|
1034
|
+
class KTVMusicBaseInfo < TencentCloud::Common::AbstractModel
|
1035
|
+
# @param MusicId: 歌曲 Id
|
1036
|
+
# @type MusicId: String
|
1037
|
+
# @param Name: 歌曲名称
|
1038
|
+
# @type Name: String
|
1039
|
+
# @param SingerSet: 演唱者列表
|
1040
|
+
# @type SingerSet: Array
|
1041
|
+
# @param LyricistSet: 作词者列表
|
1042
|
+
# @type LyricistSet: Array
|
1043
|
+
# @param ComposerSet: 作曲者列表
|
1044
|
+
# @type ComposerSet: Array
|
1045
|
+
# @param TagSet: 标签列表
|
1046
|
+
# @type TagSet: Array
|
1047
|
+
# @param Duration: 歌曲时长
|
1048
|
+
# @type Duration: Integer
|
1049
|
+
|
1050
|
+
attr_accessor :MusicId, :Name, :SingerSet, :LyricistSet, :ComposerSet, :TagSet, :Duration
|
1051
|
+
|
1052
|
+
def initialize(musicid=nil, name=nil, singerset=nil, lyricistset=nil, composerset=nil, tagset=nil, duration=nil)
|
1053
|
+
@MusicId = musicid
|
1054
|
+
@Name = name
|
1055
|
+
@SingerSet = singerset
|
1056
|
+
@LyricistSet = lyricistset
|
1057
|
+
@ComposerSet = composerset
|
1058
|
+
@TagSet = tagset
|
1059
|
+
@Duration = duration
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
def deserialize(params)
|
1063
|
+
@MusicId = params['MusicId']
|
1064
|
+
@Name = params['Name']
|
1065
|
+
@SingerSet = params['SingerSet']
|
1066
|
+
@LyricistSet = params['LyricistSet']
|
1067
|
+
@ComposerSet = params['ComposerSet']
|
1068
|
+
@TagSet = params['TagSet']
|
1069
|
+
@Duration = params['Duration']
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# 直播互动歌曲规格信息。
|
1074
|
+
class KTVMusicDefinitionInfo < TencentCloud::Common::AbstractModel
|
1075
|
+
# @param Definition: 规格,取值有:
|
1076
|
+
# <li>audio/mi:低规格;</li>
|
1077
|
+
# <li>audio/lo:中规格;</li>
|
1078
|
+
# <li>audio/hi:高规格。</li>
|
1079
|
+
# @type Definition: String
|
1080
|
+
# @param Bitrate: 码率,单位为 bps。
|
1081
|
+
# @type Bitrate: Integer
|
1082
|
+
# @param Size: 文件大小,单位为字节。
|
1083
|
+
# @type Size: Integer
|
1084
|
+
|
1085
|
+
attr_accessor :Definition, :Bitrate, :Size
|
1086
|
+
|
1087
|
+
def initialize(definition=nil, bitrate=nil, size=nil)
|
1088
|
+
@Definition = definition
|
1089
|
+
@Bitrate = bitrate
|
1090
|
+
@Size = size
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
def deserialize(params)
|
1094
|
+
@Definition = params['Definition']
|
1095
|
+
@Bitrate = params['Bitrate']
|
1096
|
+
@Size = params['Size']
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# 推荐歌单基础信息
|
1101
|
+
class KTVPlaylistBaseInfo < TencentCloud::Common::AbstractModel
|
1102
|
+
# @param PlaylistId: 歌单Id
|
1103
|
+
# @type PlaylistId: String
|
1104
|
+
# @param Title: 歌单标题
|
1105
|
+
# @type Title: String
|
1106
|
+
# @param Description: 歌单介绍
|
1107
|
+
# @type Description: String
|
1108
|
+
# @param MusicNum: 歌曲数量
|
1109
|
+
# @type MusicNum: Integer
|
1110
|
+
|
1111
|
+
attr_accessor :PlaylistId, :Title, :Description, :MusicNum
|
1112
|
+
|
1113
|
+
def initialize(playlistid=nil, title=nil, description=nil, musicnum=nil)
|
1114
|
+
@PlaylistId = playlistid
|
1115
|
+
@Title = title
|
1116
|
+
@Description = description
|
1117
|
+
@MusicNum = musicnum
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
def deserialize(params)
|
1121
|
+
@PlaylistId = params['PlaylistId']
|
1122
|
+
@Title = params['Title']
|
1123
|
+
@Description = params['Description']
|
1124
|
+
@MusicNum = params['MusicNum']
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
# 歌词信息
|
1129
|
+
class Lyric < TencentCloud::Common::AbstractModel
|
1130
|
+
# @param Url: 歌词cdn地址
|
1131
|
+
# @type Url: String
|
1132
|
+
# @param FileNameExt: 歌词后缀名
|
1133
|
+
# @type FileNameExt: String
|
1134
|
+
# @param SubItemType: 歌词类型
|
1135
|
+
# @type SubItemType: String
|
1136
|
+
|
1137
|
+
attr_accessor :Url, :FileNameExt, :SubItemType
|
1138
|
+
|
1139
|
+
def initialize(url=nil, filenameext=nil, subitemtype=nil)
|
1140
|
+
@Url = url
|
1141
|
+
@FileNameExt = filenameext
|
1142
|
+
@SubItemType = subitemtype
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
def deserialize(params)
|
1146
|
+
@Url = params['Url']
|
1147
|
+
@FileNameExt = params['FileNameExt']
|
1148
|
+
@SubItemType = params['SubItemType']
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
# ModifyMusicOnShelves请求参数结构体
|
1153
|
+
class ModifyMusicOnShelvesRequest < TencentCloud::Common::AbstractModel
|
1154
|
+
# @param MusicDetailInfos: 歌曲变更信息
|
1155
|
+
# @type MusicDetailInfos: :class:`Tencentcloud::Ame.v20190916.models.MusicDetailInfo`
|
1156
|
+
# @param AmeKey: ame对接资源方密钥
|
1157
|
+
# @type AmeKey: String
|
1158
|
+
|
1159
|
+
attr_accessor :MusicDetailInfos, :AmeKey
|
1160
|
+
|
1161
|
+
def initialize(musicdetailinfos=nil, amekey=nil)
|
1162
|
+
@MusicDetailInfos = musicdetailinfos
|
1163
|
+
@AmeKey = amekey
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
def deserialize(params)
|
1167
|
+
unless params['MusicDetailInfos'].nil?
|
1168
|
+
@MusicDetailInfos = MusicDetailInfo.new
|
1169
|
+
@MusicDetailInfos.deserialize(params['MusicDetailInfos'])
|
1170
|
+
end
|
1171
|
+
@AmeKey = params['AmeKey']
|
1172
|
+
end
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# ModifyMusicOnShelves返回参数结构体
|
1176
|
+
class ModifyMusicOnShelvesResponse < TencentCloud::Common::AbstractModel
|
1177
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1178
|
+
# @type RequestId: String
|
1179
|
+
|
1180
|
+
attr_accessor :RequestId
|
1181
|
+
|
1182
|
+
def initialize(requestid=nil)
|
1183
|
+
@RequestId = requestid
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
def deserialize(params)
|
1187
|
+
@RequestId = params['RequestId']
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# 音乐详情
|
1192
|
+
class Music < TencentCloud::Common::AbstractModel
|
1193
|
+
# @param Url: 音乐播放链接相对路径,必须通过在正版曲库直通车控制台上登记的域名进行拼接。
|
1194
|
+
# @type Url: String
|
1195
|
+
# @param FileSize: 音频文件大小
|
1196
|
+
# @type FileSize: Integer
|
1197
|
+
# @param FileExtension: 音频文件类型
|
1198
|
+
# @type FileExtension: String
|
1199
|
+
# @param AuditionBegin: Song fragment start.试听片段开始时间,试听时长为auditionEnd-auditionBegin
|
1200
|
+
# Unit :ms
|
1201
|
+
# @type AuditionBegin: Integer
|
1202
|
+
# @param AuditionEnd: Song fragment end.试听片段结束时间, 试听时长为auditionEnd-auditionBegin
|
1203
|
+
# Unit :ms
|
1204
|
+
# @type AuditionEnd: Integer
|
1205
|
+
# @param FullUrl: 音乐播放链接全路径,前提是在正版曲库直通车控制台添加过域名,否则返回空字符。
|
1206
|
+
# 如果添加过多个域名只返回第一个添加域名的播放全路径。
|
1207
|
+
# @type FullUrl: String
|
1208
|
+
|
1209
|
+
attr_accessor :Url, :FileSize, :FileExtension, :AuditionBegin, :AuditionEnd, :FullUrl
|
1210
|
+
|
1211
|
+
def initialize(url=nil, filesize=nil, fileextension=nil, auditionbegin=nil, auditionend=nil, fullurl=nil)
|
1212
|
+
@Url = url
|
1213
|
+
@FileSize = filesize
|
1214
|
+
@FileExtension = fileextension
|
1215
|
+
@AuditionBegin = auditionbegin
|
1216
|
+
@AuditionEnd = auditionend
|
1217
|
+
@FullUrl = fullurl
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
def deserialize(params)
|
1221
|
+
@Url = params['Url']
|
1222
|
+
@FileSize = params['FileSize']
|
1223
|
+
@FileExtension = params['FileExtension']
|
1224
|
+
@AuditionBegin = params['AuditionBegin']
|
1225
|
+
@AuditionEnd = params['AuditionEnd']
|
1226
|
+
@FullUrl = params['FullUrl']
|
1227
|
+
end
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
# 歌曲变更细节
|
1231
|
+
class MusicDetailInfo < TencentCloud::Common::AbstractModel
|
1232
|
+
# @param MusicId: 资源方音乐Id
|
1233
|
+
# @type MusicId: String
|
1234
|
+
# @param AmeId: 资源方识别信息
|
1235
|
+
# @type AmeId: String
|
1236
|
+
# @param Tags: 分类标签
|
1237
|
+
# @type Tags: Array
|
1238
|
+
# @param HitWords: 关键词
|
1239
|
+
# @type HitWords: Array
|
1240
|
+
# @param Bpm: 节奏信息
|
1241
|
+
# @type Bpm: Integer
|
1242
|
+
# @param Score: 商业化权益
|
1243
|
+
# @type Score: Float
|
1244
|
+
# @param Scene: 应用歌曲信息,1.图文/短视频,2.网络直播,3.网络电台FM,4.免费游戏,5.商业游戏,6.网店网站设计,7.广告营销,8.网络长视频
|
1245
|
+
# @type Scene: Array
|
1246
|
+
# @param Region: 应用地域,1. 中国大陆,2. 中国含港澳台,3. 全球
|
1247
|
+
# @type Region: Array
|
1248
|
+
# @param AuthPeriod: 授权时间,1. 1年, 5. 随片永久
|
1249
|
+
# @type AuthPeriod: String
|
1250
|
+
# @param Commercialization: 商业化授权,1. 支持商业化 ,2. 不支持商业化
|
1251
|
+
# @type Commercialization: String
|
1252
|
+
# @param Platform: 跨平台传播,1. 支持跨平台传播 ,2. 不支持跨平台传播
|
1253
|
+
# @type Platform: String
|
1254
|
+
# @param Channel: 传播渠道
|
1255
|
+
# @type Channel: String
|
1256
|
+
|
1257
|
+
attr_accessor :MusicId, :AmeId, :Tags, :HitWords, :Bpm, :Score, :Scene, :Region, :AuthPeriod, :Commercialization, :Platform, :Channel
|
1258
|
+
|
1259
|
+
def initialize(musicid=nil, ameid=nil, tags=nil, hitwords=nil, bpm=nil, score=nil, scene=nil, region=nil, authperiod=nil, commercialization=nil, platform=nil, channel=nil)
|
1260
|
+
@MusicId = musicid
|
1261
|
+
@AmeId = ameid
|
1262
|
+
@Tags = tags
|
1263
|
+
@HitWords = hitwords
|
1264
|
+
@Bpm = bpm
|
1265
|
+
@Score = score
|
1266
|
+
@Scene = scene
|
1267
|
+
@Region = region
|
1268
|
+
@AuthPeriod = authperiod
|
1269
|
+
@Commercialization = commercialization
|
1270
|
+
@Platform = platform
|
1271
|
+
@Channel = channel
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def deserialize(params)
|
1275
|
+
@MusicId = params['MusicId']
|
1276
|
+
@AmeId = params['AmeId']
|
1277
|
+
@Tags = params['Tags']
|
1278
|
+
@HitWords = params['HitWords']
|
1279
|
+
@Bpm = params['Bpm']
|
1280
|
+
@Score = params['Score']
|
1281
|
+
@Scene = params['Scene']
|
1282
|
+
@Region = params['Region']
|
1283
|
+
@AuthPeriod = params['AuthPeriod']
|
1284
|
+
@Commercialization = params['Commercialization']
|
1285
|
+
@Platform = params['Platform']
|
1286
|
+
@Channel = params['Channel']
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# 对外开放信息
|
1291
|
+
class MusicOpenDetail < TencentCloud::Common::AbstractModel
|
1292
|
+
# @param MusicId: 音乐Id
|
1293
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1294
|
+
# @type MusicId: String
|
1295
|
+
# @param AlbumName: 专辑名称
|
1296
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1297
|
+
# @type AlbumName: String
|
1298
|
+
# @param AlbumImageUrl: 专辑图片路径
|
1299
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1300
|
+
# @type AlbumImageUrl: String
|
1301
|
+
# @param MusicName: 音乐名称
|
1302
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1303
|
+
# @type MusicName: String
|
1304
|
+
# @param MusicImageUrl: 音乐图片路径
|
1305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1306
|
+
# @type MusicImageUrl: String
|
1307
|
+
# @param Singers: 歌手
|
1308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1309
|
+
# @type Singers: Array
|
1310
|
+
# @param Duration: 播放时长
|
1311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1312
|
+
# @type Duration: Integer
|
1313
|
+
# @param Tags: 标签
|
1314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1315
|
+
# @type Tags: Array
|
1316
|
+
# @param LyricUrl: 歌词url
|
1317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1318
|
+
# @type LyricUrl: String
|
1319
|
+
# @param WaveformUrl: 波形图url
|
1320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1321
|
+
# @type WaveformUrl: String
|
1322
|
+
|
1323
|
+
attr_accessor :MusicId, :AlbumName, :AlbumImageUrl, :MusicName, :MusicImageUrl, :Singers, :Duration, :Tags, :LyricUrl, :WaveformUrl
|
1324
|
+
|
1325
|
+
def initialize(musicid=nil, albumname=nil, albumimageurl=nil, musicname=nil, musicimageurl=nil, singers=nil, duration=nil, tags=nil, lyricurl=nil, waveformurl=nil)
|
1326
|
+
@MusicId = musicid
|
1327
|
+
@AlbumName = albumname
|
1328
|
+
@AlbumImageUrl = albumimageurl
|
1329
|
+
@MusicName = musicname
|
1330
|
+
@MusicImageUrl = musicimageurl
|
1331
|
+
@Singers = singers
|
1332
|
+
@Duration = duration
|
1333
|
+
@Tags = tags
|
1334
|
+
@LyricUrl = lyricurl
|
1335
|
+
@WaveformUrl = waveformurl
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
def deserialize(params)
|
1339
|
+
@MusicId = params['MusicId']
|
1340
|
+
@AlbumName = params['AlbumName']
|
1341
|
+
@AlbumImageUrl = params['AlbumImageUrl']
|
1342
|
+
@MusicName = params['MusicName']
|
1343
|
+
@MusicImageUrl = params['MusicImageUrl']
|
1344
|
+
@Singers = params['Singers']
|
1345
|
+
@Duration = params['Duration']
|
1346
|
+
@Tags = params['Tags']
|
1347
|
+
@LyricUrl = params['LyricUrl']
|
1348
|
+
@WaveformUrl = params['WaveformUrl']
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# 返回单曲页面歌曲是否在售状态
|
1353
|
+
class MusicStatus < TencentCloud::Common::AbstractModel
|
1354
|
+
# @param MusicId: 歌曲Id
|
1355
|
+
# @type MusicId: String
|
1356
|
+
# @param SaleStatus: 在售状态,0为在售,1为临时下架,2为永久下架
|
1357
|
+
# @type SaleStatus: Integer
|
1358
|
+
|
1359
|
+
attr_accessor :MusicId, :SaleStatus
|
1360
|
+
|
1361
|
+
def initialize(musicid=nil, salestatus=nil)
|
1362
|
+
@MusicId = musicid
|
1363
|
+
@SaleStatus = salestatus
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
def deserialize(params)
|
1367
|
+
@MusicId = params['MusicId']
|
1368
|
+
@SaleStatus = params['SaleStatus']
|
1369
|
+
end
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# 曲库包已下架歌曲详细信息
|
1373
|
+
class OfflineMusicDetail < TencentCloud::Common::AbstractModel
|
1374
|
+
# @param ItemId: 歌曲Id
|
1375
|
+
# @type ItemId: String
|
1376
|
+
# @param MusicName: 歌曲名称
|
1377
|
+
# @type MusicName: String
|
1378
|
+
# @param OffRemark: 不可用原因
|
1379
|
+
# @type OffRemark: String
|
1380
|
+
# @param OffTime: 不可用时间
|
1381
|
+
# @type OffTime: String
|
1382
|
+
|
1383
|
+
attr_accessor :ItemId, :MusicName, :OffRemark, :OffTime
|
1384
|
+
|
1385
|
+
def initialize(itemid=nil, musicname=nil, offremark=nil, offtime=nil)
|
1386
|
+
@ItemId = itemid
|
1387
|
+
@MusicName = musicname
|
1388
|
+
@OffRemark = offremark
|
1389
|
+
@OffTime = offtime
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
def deserialize(params)
|
1393
|
+
@ItemId = params['ItemId']
|
1394
|
+
@MusicName = params['MusicName']
|
1395
|
+
@OffRemark = params['OffRemark']
|
1396
|
+
@OffTime = params['OffTime']
|
1397
|
+
end
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# 曲库包信息
|
1401
|
+
class Package < TencentCloud::Common::AbstractModel
|
1402
|
+
# @param OrderId: 订单id
|
1403
|
+
# @type OrderId: String
|
1404
|
+
# @param Name: 曲库包名称
|
1405
|
+
# @type Name: String
|
1406
|
+
# @param AuthorizedArea: 授权地区-global: 全球 CN: 中国
|
1407
|
+
# @type AuthorizedArea: String
|
1408
|
+
# @param AuthorizedLimit: 授权次数
|
1409
|
+
# @type AuthorizedLimit: Integer
|
1410
|
+
# @param TermOfValidity: 套餐有效期,单位:天
|
1411
|
+
# @type TermOfValidity: Integer
|
1412
|
+
# @param Commercial: 0:不可商业化;1:可商业化
|
1413
|
+
# @type Commercial: Integer
|
1414
|
+
# @param PackagePrice: 套餐价格,单位:元
|
1415
|
+
# @type PackagePrice: Float
|
1416
|
+
# @param EffectTime: 生效开始时间,格式yyyy-MM-dd HH:mm:ss
|
1417
|
+
# @type EffectTime: String
|
1418
|
+
# @param ExpireTime: 生效结束时间,格式yyyy-MM-dd HH:mm:ss
|
1419
|
+
# @type ExpireTime: String
|
1420
|
+
# @param UsedCount: 剩余授权次数
|
1421
|
+
# @type UsedCount: Integer
|
1422
|
+
# @param UseRanges: 曲库包用途信息
|
1423
|
+
# @type UseRanges: Array
|
1424
|
+
|
1425
|
+
attr_accessor :OrderId, :Name, :AuthorizedArea, :AuthorizedLimit, :TermOfValidity, :Commercial, :PackagePrice, :EffectTime, :ExpireTime, :UsedCount, :UseRanges
|
1426
|
+
|
1427
|
+
def initialize(orderid=nil, name=nil, authorizedarea=nil, authorizedlimit=nil, termofvalidity=nil, commercial=nil, packageprice=nil, effecttime=nil, expiretime=nil, usedcount=nil, useranges=nil)
|
1428
|
+
@OrderId = orderid
|
1429
|
+
@Name = name
|
1430
|
+
@AuthorizedArea = authorizedarea
|
1431
|
+
@AuthorizedLimit = authorizedlimit
|
1432
|
+
@TermOfValidity = termofvalidity
|
1433
|
+
@Commercial = commercial
|
1434
|
+
@PackagePrice = packageprice
|
1435
|
+
@EffectTime = effecttime
|
1436
|
+
@ExpireTime = expiretime
|
1437
|
+
@UsedCount = usedcount
|
1438
|
+
@UseRanges = useranges
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
def deserialize(params)
|
1442
|
+
@OrderId = params['OrderId']
|
1443
|
+
@Name = params['Name']
|
1444
|
+
@AuthorizedArea = params['AuthorizedArea']
|
1445
|
+
@AuthorizedLimit = params['AuthorizedLimit']
|
1446
|
+
@TermOfValidity = params['TermOfValidity']
|
1447
|
+
@Commercial = params['Commercial']
|
1448
|
+
@PackagePrice = params['PackagePrice']
|
1449
|
+
@EffectTime = params['EffectTime']
|
1450
|
+
@ExpireTime = params['ExpireTime']
|
1451
|
+
@UsedCount = params['UsedCount']
|
1452
|
+
unless params['UseRanges'].nil?
|
1453
|
+
@UseRanges = []
|
1454
|
+
params['UseRanges'].each do |i|
|
1455
|
+
userange_tmp = UseRange.new
|
1456
|
+
userange_tmp.deserialize(i)
|
1457
|
+
@UseRanges << userange_tmp
|
1458
|
+
end
|
1459
|
+
end
|
1460
|
+
end
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# 曲库包歌曲信息
|
1464
|
+
class PackageItem < TencentCloud::Common::AbstractModel
|
1465
|
+
# @param OrderId: 订单id
|
1466
|
+
# @type OrderId: String
|
1467
|
+
# @param TrackName: 歌曲名
|
1468
|
+
# @type TrackName: String
|
1469
|
+
# @param ItemID: 歌曲ID
|
1470
|
+
# @type ItemID: String
|
1471
|
+
# @param Img: 专辑图片
|
1472
|
+
# @type Img: String
|
1473
|
+
# @param ArtistName: 歌手名
|
1474
|
+
# @type ArtistName: String
|
1475
|
+
# @param Duration: 歌曲时长
|
1476
|
+
# @type Duration: String
|
1477
|
+
# @param AuthorizedArea: 授权区域,global: 全球 CN: 中国
|
1478
|
+
# @type AuthorizedArea: String
|
1479
|
+
|
1480
|
+
attr_accessor :OrderId, :TrackName, :ItemID, :Img, :ArtistName, :Duration, :AuthorizedArea
|
1481
|
+
|
1482
|
+
def initialize(orderid=nil, trackname=nil, itemid=nil, img=nil, artistname=nil, duration=nil, authorizedarea=nil)
|
1483
|
+
@OrderId = orderid
|
1484
|
+
@TrackName = trackname
|
1485
|
+
@ItemID = itemid
|
1486
|
+
@Img = img
|
1487
|
+
@ArtistName = artistname
|
1488
|
+
@Duration = duration
|
1489
|
+
@AuthorizedArea = authorizedarea
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
def deserialize(params)
|
1493
|
+
@OrderId = params['OrderId']
|
1494
|
+
@TrackName = params['TrackName']
|
1495
|
+
@ItemID = params['ItemID']
|
1496
|
+
@Img = params['Img']
|
1497
|
+
@ArtistName = params['ArtistName']
|
1498
|
+
@Duration = params['Duration']
|
1499
|
+
@AuthorizedArea = params['AuthorizedArea']
|
1500
|
+
end
|
1501
|
+
end
|
1502
|
+
|
1503
|
+
# PutMusicOnTheShelves请求参数结构体
|
1504
|
+
class PutMusicOnTheShelvesRequest < TencentCloud::Common::AbstractModel
|
1505
|
+
# @param MusicIds: 资源方歌曲Id
|
1506
|
+
# @type MusicIds: Array
|
1507
|
+
|
1508
|
+
attr_accessor :MusicIds
|
1509
|
+
|
1510
|
+
def initialize(musicids=nil)
|
1511
|
+
@MusicIds = musicids
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
def deserialize(params)
|
1515
|
+
@MusicIds = params['MusicIds']
|
1516
|
+
end
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# PutMusicOnTheShelves返回参数结构体
|
1520
|
+
class PutMusicOnTheShelvesResponse < TencentCloud::Common::AbstractModel
|
1521
|
+
# @param SuccessNum: 操作成功数量
|
1522
|
+
# @type SuccessNum: Integer
|
1523
|
+
# @param FailedNum: 操作失败数量
|
1524
|
+
# @type FailedNum: Integer
|
1525
|
+
# @param FailedMusicIds: 失败歌曲Id
|
1526
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1527
|
+
# @type FailedMusicIds: Array
|
1528
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1529
|
+
# @type RequestId: String
|
1530
|
+
|
1531
|
+
attr_accessor :SuccessNum, :FailedNum, :FailedMusicIds, :RequestId
|
1532
|
+
|
1533
|
+
def initialize(successnum=nil, failednum=nil, failedmusicids=nil, requestid=nil)
|
1534
|
+
@SuccessNum = successnum
|
1535
|
+
@FailedNum = failednum
|
1536
|
+
@FailedMusicIds = failedmusicids
|
1537
|
+
@RequestId = requestid
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
def deserialize(params)
|
1541
|
+
@SuccessNum = params['SuccessNum']
|
1542
|
+
@FailedNum = params['FailedNum']
|
1543
|
+
@FailedMusicIds = params['FailedMusicIds']
|
1544
|
+
@RequestId = params['RequestId']
|
1545
|
+
end
|
1546
|
+
end
|
1547
|
+
|
1548
|
+
# ReportData请求参数结构体
|
1549
|
+
class ReportDataRequest < TencentCloud::Common::AbstractModel
|
1550
|
+
# @param ReportData: 上报数据
|
1551
|
+
# 注:reportData为客户端压缩后的上报数据进行16进制转换的字符串数据
|
1552
|
+
# 压缩说明:
|
1553
|
+
# a) 上报的json格式字符串通过流的转换(ByteArrayInputStream, java.util.zip.GZIPOutputStream),获取到压缩后的字节数组。
|
1554
|
+
# b) 将压缩后的字节数组转成16进制字符串。
|
1555
|
+
|
1556
|
+
# reportData由两部分数据组成:
|
1557
|
+
# 1)report_type(上报类型)
|
1558
|
+
# 2)data(歌曲上报数据)
|
1559
|
+
# 不同的report_type对应的data数据结构不一样。
|
1560
|
+
|
1561
|
+
# 详细说明请参考文档reportdata.docx:
|
1562
|
+
# https://github.com/tencentyun/ame-documents
|
1563
|
+
# @type ReportData: String
|
1564
|
+
|
1565
|
+
attr_accessor :ReportData
|
1566
|
+
|
1567
|
+
def initialize(reportdata=nil)
|
1568
|
+
@ReportData = reportdata
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
def deserialize(params)
|
1572
|
+
@ReportData = params['ReportData']
|
1573
|
+
end
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
# ReportData返回参数结构体
|
1577
|
+
class ReportDataResponse < TencentCloud::Common::AbstractModel
|
1578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1579
|
+
# @type RequestId: String
|
1580
|
+
|
1581
|
+
attr_accessor :RequestId
|
1582
|
+
|
1583
|
+
def initialize(requestid=nil)
|
1584
|
+
@RequestId = requestid
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
def deserialize(params)
|
1588
|
+
@RequestId = params['RequestId']
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
# SearchKTVMusics请求参数结构体
|
1593
|
+
class SearchKTVMusicsRequest < TencentCloud::Common::AbstractModel
|
1594
|
+
# @param KeyWord: 搜索关键词
|
1595
|
+
# @type KeyWord: String
|
1596
|
+
# @param Offset: 分页游标
|
1597
|
+
# @type Offset: Integer
|
1598
|
+
# @param Limit: 分页页长
|
1599
|
+
# @type Limit: Integer
|
1600
|
+
|
1601
|
+
attr_accessor :KeyWord, :Offset, :Limit
|
1602
|
+
|
1603
|
+
def initialize(keyword=nil, offset=nil, limit=nil)
|
1604
|
+
@KeyWord = keyword
|
1605
|
+
@Offset = offset
|
1606
|
+
@Limit = limit
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
def deserialize(params)
|
1610
|
+
@KeyWord = params['KeyWord']
|
1611
|
+
@Offset = params['Offset']
|
1612
|
+
@Limit = params['Limit']
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# SearchKTVMusics返回参数结构体
|
1617
|
+
class SearchKTVMusicsResponse < TencentCloud::Common::AbstractModel
|
1618
|
+
# @param TotalCount: 总记录数
|
1619
|
+
# @type TotalCount: Integer
|
1620
|
+
# @param KTVMusicInfoSet: KTV 曲目列表
|
1621
|
+
# @type KTVMusicInfoSet: Array
|
1622
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1623
|
+
# @type RequestId: String
|
1624
|
+
|
1625
|
+
attr_accessor :TotalCount, :KTVMusicInfoSet, :RequestId
|
1626
|
+
|
1627
|
+
def initialize(totalcount=nil, ktvmusicinfoset=nil, requestid=nil)
|
1628
|
+
@TotalCount = totalcount
|
1629
|
+
@KTVMusicInfoSet = ktvmusicinfoset
|
1630
|
+
@RequestId = requestid
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
def deserialize(params)
|
1634
|
+
@TotalCount = params['TotalCount']
|
1635
|
+
unless params['KTVMusicInfoSet'].nil?
|
1636
|
+
@KTVMusicInfoSet = []
|
1637
|
+
params['KTVMusicInfoSet'].each do |i|
|
1638
|
+
ktvmusicbaseinfo_tmp = KTVMusicBaseInfo.new
|
1639
|
+
ktvmusicbaseinfo_tmp.deserialize(i)
|
1640
|
+
@KTVMusicInfoSet << ktvmusicbaseinfo_tmp
|
1641
|
+
end
|
1642
|
+
end
|
1643
|
+
@RequestId = params['RequestId']
|
1644
|
+
end
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
# 分类内容
|
1648
|
+
class Station < TencentCloud::Common::AbstractModel
|
1649
|
+
# @param CategoryID: StationID
|
1650
|
+
# @type CategoryID: String
|
1651
|
+
# @param CategoryCode: Station MCCode
|
1652
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1653
|
+
# @type CategoryCode: String
|
1654
|
+
# @param Name: Category Name
|
1655
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1656
|
+
# @type Name: String
|
1657
|
+
# @param Rank: Station的排序值,供参考(返回结果已按其升序)
|
1658
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1659
|
+
# @type Rank: Integer
|
1660
|
+
# @param ImagePathMap: station图片集合
|
1661
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1662
|
+
# @type ImagePathMap: Array
|
1663
|
+
|
1664
|
+
attr_accessor :CategoryID, :CategoryCode, :Name, :Rank, :ImagePathMap
|
1665
|
+
|
1666
|
+
def initialize(categoryid=nil, categorycode=nil, name=nil, rank=nil, imagepathmap=nil)
|
1667
|
+
@CategoryID = categoryid
|
1668
|
+
@CategoryCode = categorycode
|
1669
|
+
@Name = name
|
1670
|
+
@Rank = rank
|
1671
|
+
@ImagePathMap = imagepathmap
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
def deserialize(params)
|
1675
|
+
@CategoryID = params['CategoryID']
|
1676
|
+
@CategoryCode = params['CategoryCode']
|
1677
|
+
@Name = params['Name']
|
1678
|
+
@Rank = params['Rank']
|
1679
|
+
unless params['ImagePathMap'].nil?
|
1680
|
+
@ImagePathMap = []
|
1681
|
+
params['ImagePathMap'].each do |i|
|
1682
|
+
imagepath_tmp = ImagePath.new
|
1683
|
+
imagepath_tmp.deserialize(i)
|
1684
|
+
@ImagePathMap << imagepath_tmp
|
1685
|
+
end
|
1686
|
+
end
|
1687
|
+
end
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# 下架歌曲复合结构
|
1691
|
+
class TakeMusicOffShelves < TencentCloud::Common::AbstractModel
|
1692
|
+
# @param MusicIds: 资源方对应音乐Id
|
1693
|
+
# @type MusicIds: String
|
1694
|
+
# @param SaleStatus: 当曲目临时下架时:已订购客户无影响,无需消息通知。当曲目封杀下架后,推送消息至已订购老客户,枚举值,判断是否上/下架
|
1695
|
+
# 在售状态,0在售,1临时下架,2永久下架
|
1696
|
+
# @type SaleStatus: String
|
1697
|
+
|
1698
|
+
attr_accessor :MusicIds, :SaleStatus
|
1699
|
+
|
1700
|
+
def initialize(musicids=nil, salestatus=nil)
|
1701
|
+
@MusicIds = musicids
|
1702
|
+
@SaleStatus = salestatus
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
def deserialize(params)
|
1706
|
+
@MusicIds = params['MusicIds']
|
1707
|
+
@SaleStatus = params['SaleStatus']
|
1708
|
+
end
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
# TakeMusicOffShelves请求参数结构体
|
1712
|
+
class TakeMusicOffShelvesRequest < TencentCloud::Common::AbstractModel
|
1713
|
+
# @param TakeMusicOffShelves: 资源方下架必传结构
|
1714
|
+
# @type TakeMusicOffShelves: Array
|
1715
|
+
|
1716
|
+
attr_accessor :TakeMusicOffShelves
|
1717
|
+
|
1718
|
+
def initialize(takemusicoffshelves=nil)
|
1719
|
+
@TakeMusicOffShelves = takemusicoffshelves
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
def deserialize(params)
|
1723
|
+
unless params['TakeMusicOffShelves'].nil?
|
1724
|
+
@TakeMusicOffShelves = []
|
1725
|
+
params['TakeMusicOffShelves'].each do |i|
|
1726
|
+
takemusicoffshelves_tmp = TakeMusicOffShelves.new
|
1727
|
+
takemusicoffshelves_tmp.deserialize(i)
|
1728
|
+
@TakeMusicOffShelves << takemusicoffshelves_tmp
|
1729
|
+
end
|
1730
|
+
end
|
1731
|
+
end
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
# TakeMusicOffShelves返回参数结构体
|
1735
|
+
class TakeMusicOffShelvesResponse < TencentCloud::Common::AbstractModel
|
1736
|
+
# @param SuccessNum: 返回成功数量
|
1737
|
+
# @type SuccessNum: Integer
|
1738
|
+
# @param FailedNum: 返回失败数量
|
1739
|
+
# @type FailedNum: Integer
|
1740
|
+
# @param FailedMusicIds: 返回失败歌曲musicId
|
1741
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1742
|
+
# @type FailedMusicIds: Array
|
1743
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1744
|
+
# @type RequestId: String
|
1745
|
+
|
1746
|
+
attr_accessor :SuccessNum, :FailedNum, :FailedMusicIds, :RequestId
|
1747
|
+
|
1748
|
+
def initialize(successnum=nil, failednum=nil, failedmusicids=nil, requestid=nil)
|
1749
|
+
@SuccessNum = successnum
|
1750
|
+
@FailedNum = failednum
|
1751
|
+
@FailedMusicIds = failedmusicids
|
1752
|
+
@RequestId = requestid
|
1753
|
+
end
|
1754
|
+
|
1755
|
+
def deserialize(params)
|
1756
|
+
@SuccessNum = params['SuccessNum']
|
1757
|
+
@FailedNum = params['FailedNum']
|
1758
|
+
@FailedMusicIds = params['FailedMusicIds']
|
1759
|
+
@RequestId = params['RequestId']
|
1760
|
+
end
|
1761
|
+
end
|
1762
|
+
|
1763
|
+
# 曲库包用途信息
|
1764
|
+
class UseRange < TencentCloud::Common::AbstractModel
|
1765
|
+
# @param UseRangeId: 用途id
|
1766
|
+
# @type UseRangeId: Integer
|
1767
|
+
# @param Name: 用途范围名称
|
1768
|
+
# @type Name: String
|
1769
|
+
|
1770
|
+
attr_accessor :UseRangeId, :Name
|
1771
|
+
|
1772
|
+
def initialize(userangeid=nil, name=nil)
|
1773
|
+
@UseRangeId = userangeid
|
1774
|
+
@Name = name
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
def deserialize(params)
|
1778
|
+
@UseRangeId = params['UseRangeId']
|
1779
|
+
@Name = params['Name']
|
1780
|
+
end
|
1781
|
+
end
|
1782
|
+
|
1783
|
+
end
|
1784
|
+
end
|
1785
|
+
end
|
1786
|
+
|