tencentcloud-sdk-yinsuda 1.0.345

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 759a35d0ea6b9b3a0fca648855f7017cb907d90d
4
+ data.tar.gz: 18aab09d0fd4b81ee8ab660b26853c974c9b671e
5
+ SHA512:
6
+ metadata.gz: f63f55347bcfaf12ea8e1935640111969b050ed3f8dd64868d5e302bd8cd3bd14f34afe2d49384c1edf4daf00c0d5a83c987b26408d25651aeaabb7d226a6855
7
+ data.tar.gz: 6ecd96734263fb6d2cd9fe51c01a326bc634a1553176b95db92055a20f61a246b6938ac781e0a5c24834261affd73e207877e59a2891140bdfafd64dd4885cf4
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.345
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220527/client'
6
+ require_relative 'v20220527/models'
7
+
8
+ module TencentCloud
9
+ module Yinsuda
10
+ end
11
+ end
@@ -0,0 +1,156 @@
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 Yinsuda
21
+ module V20220527
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-05-27'
26
+ api_endpoint = 'yinsuda.tencentcloudapi.com'
27
+ sdk_version = 'YINSUDA_' + 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 BatchDescribeKTVMusicDetails.
35
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::BatchDescribeKTVMusicDetailsRequest`
36
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::BatchDescribeKTVMusicDetailsResponse`
37
+ def BatchDescribeKTVMusicDetails(request)
38
+ body = send_request('BatchDescribeKTVMusicDetails', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = BatchDescribeKTVMusicDetailsResponse.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
+ # 根据歌单 Id 获取歌单详情。
57
+
58
+ # @param request: Request instance for DescribeKTVPlaylistDetail.
59
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVPlaylistDetailRequest`
60
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVPlaylistDetailResponse`
61
+ def DescribeKTVPlaylistDetail(request)
62
+ body = send_request('DescribeKTVPlaylistDetail', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeKTVPlaylistDetailResponse.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 DescribeKTVPlaylists.
83
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVPlaylistsRequest`
84
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVPlaylistsResponse`
85
+ def DescribeKTVPlaylists(request)
86
+ body = send_request('DescribeKTVPlaylists', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeKTVPlaylistsResponse.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 DescribeKTVSuggestions.
107
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVSuggestionsRequest`
108
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVSuggestionsResponse`
109
+ def DescribeKTVSuggestions(request)
110
+ body = send_request('DescribeKTVSuggestions', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeKTVSuggestionsResponse.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 SearchKTVMusics.
131
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::SearchKTVMusicsRequest`
132
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::SearchKTVMusicsResponse`
133
+ def SearchKTVMusics(request)
134
+ body = send_request('SearchKTVMusics', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = SearchKTVMusicsResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,508 @@
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 Yinsuda
19
+ module V20220527
20
+ # BatchDescribeKTVMusicDetails请求参数结构体
21
+ class BatchDescribeKTVMusicDetailsRequest < TencentCloud::Common::AbstractModel
22
+ # @param AppName: 应用名称。
23
+ # @type AppName: String
24
+ # @param UserId: 用户标识。
25
+ # @type UserId: String
26
+ # @param MusicIds: 歌曲 Id 列表。
27
+ # @type MusicIds: Array
28
+
29
+ attr_accessor :AppName, :UserId, :MusicIds
30
+
31
+ def initialize(appname=nil, userid=nil, musicids=nil)
32
+ @AppName = appname
33
+ @UserId = userid
34
+ @MusicIds = musicids
35
+ end
36
+
37
+ def deserialize(params)
38
+ @AppName = params['AppName']
39
+ @UserId = params['UserId']
40
+ @MusicIds = params['MusicIds']
41
+ end
42
+ end
43
+
44
+ # BatchDescribeKTVMusicDetails返回参数结构体
45
+ class BatchDescribeKTVMusicDetailsResponse < TencentCloud::Common::AbstractModel
46
+ # @param KTVMusicDetailInfoSet: 歌曲详细信息列表。
47
+ # @type KTVMusicDetailInfoSet: Array
48
+ # @param NotExistMusicIdSet: 不存在歌曲Id列表。
49
+ # @type NotExistMusicIdSet: Array
50
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
51
+ # @type RequestId: String
52
+
53
+ attr_accessor :KTVMusicDetailInfoSet, :NotExistMusicIdSet, :RequestId
54
+
55
+ def initialize(ktvmusicdetailinfoset=nil, notexistmusicidset=nil, requestid=nil)
56
+ @KTVMusicDetailInfoSet = ktvmusicdetailinfoset
57
+ @NotExistMusicIdSet = notexistmusicidset
58
+ @RequestId = requestid
59
+ end
60
+
61
+ def deserialize(params)
62
+ unless params['KTVMusicDetailInfoSet'].nil?
63
+ @KTVMusicDetailInfoSet = []
64
+ params['KTVMusicDetailInfoSet'].each do |i|
65
+ ktvmusicdetailinfo_tmp = KTVMusicDetailInfo.new
66
+ ktvmusicdetailinfo_tmp.deserialize(i)
67
+ @KTVMusicDetailInfoSet << ktvmusicdetailinfo_tmp
68
+ end
69
+ end
70
+ @NotExistMusicIdSet = params['NotExistMusicIdSet']
71
+ @RequestId = params['RequestId']
72
+ end
73
+ end
74
+
75
+ # 副歌片段信息。
76
+ class ChorusClip < TencentCloud::Common::AbstractModel
77
+ # @param StartTime: 开始时间,单位:毫秒。
78
+ # @type StartTime: Integer
79
+ # @param EndTime: 结束时间,单位:毫秒。
80
+ # @type EndTime: Integer
81
+
82
+ attr_accessor :StartTime, :EndTime
83
+
84
+ def initialize(starttime=nil, endtime=nil)
85
+ @StartTime = starttime
86
+ @EndTime = endtime
87
+ end
88
+
89
+ def deserialize(params)
90
+ @StartTime = params['StartTime']
91
+ @EndTime = params['EndTime']
92
+ end
93
+ end
94
+
95
+ # DescribeKTVPlaylistDetail请求参数结构体
96
+ class DescribeKTVPlaylistDetailRequest < TencentCloud::Common::AbstractModel
97
+ # @param AppName: 应用名称。
98
+ # @type AppName: String
99
+ # @param UserId: 用户标识。
100
+ # @type UserId: String
101
+ # @param PlaylistId: 歌单 Id。
102
+ # @type PlaylistId: String
103
+ # @param ScrollToken: 滚动标记。
104
+ # @type ScrollToken: String
105
+ # @param Limit: 返回条数,默认:20,最大:50。
106
+ # @type Limit: Integer
107
+ # @param RightFilters: 权益过滤,取值有:
108
+ # <li>Play:可播;</li>
109
+ # <li>Sing:可唱。</li>
110
+ # @type RightFilters: Array
111
+
112
+ attr_accessor :AppName, :UserId, :PlaylistId, :ScrollToken, :Limit, :RightFilters
113
+
114
+ def initialize(appname=nil, userid=nil, playlistid=nil, scrolltoken=nil, limit=nil, rightfilters=nil)
115
+ @AppName = appname
116
+ @UserId = userid
117
+ @PlaylistId = playlistid
118
+ @ScrollToken = scrolltoken
119
+ @Limit = limit
120
+ @RightFilters = rightfilters
121
+ end
122
+
123
+ def deserialize(params)
124
+ @AppName = params['AppName']
125
+ @UserId = params['UserId']
126
+ @PlaylistId = params['PlaylistId']
127
+ @ScrollToken = params['ScrollToken']
128
+ @Limit = params['Limit']
129
+ @RightFilters = params['RightFilters']
130
+ end
131
+ end
132
+
133
+ # DescribeKTVPlaylistDetail返回参数结构体
134
+ class DescribeKTVPlaylistDetailResponse < TencentCloud::Common::AbstractModel
135
+ # @param KTVMusicInfoSet: 歌曲信息列表。
136
+ # @type KTVMusicInfoSet: Array
137
+ # @param ScrollToken: 滚动标记,用于设置下次请求的 ScrollToken 参数。
138
+ # @type ScrollToken: String
139
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
140
+ # @type RequestId: String
141
+
142
+ attr_accessor :KTVMusicInfoSet, :ScrollToken, :RequestId
143
+
144
+ def initialize(ktvmusicinfoset=nil, scrolltoken=nil, requestid=nil)
145
+ @KTVMusicInfoSet = ktvmusicinfoset
146
+ @ScrollToken = scrolltoken
147
+ @RequestId = requestid
148
+ end
149
+
150
+ def deserialize(params)
151
+ unless params['KTVMusicInfoSet'].nil?
152
+ @KTVMusicInfoSet = []
153
+ params['KTVMusicInfoSet'].each do |i|
154
+ ktvmusicbaseinfo_tmp = KTVMusicBaseInfo.new
155
+ ktvmusicbaseinfo_tmp.deserialize(i)
156
+ @KTVMusicInfoSet << ktvmusicbaseinfo_tmp
157
+ end
158
+ end
159
+ @ScrollToken = params['ScrollToken']
160
+ @RequestId = params['RequestId']
161
+ end
162
+ end
163
+
164
+ # DescribeKTVPlaylists请求参数结构体
165
+ class DescribeKTVPlaylistsRequest < TencentCloud::Common::AbstractModel
166
+ # @param AppName: 应用名称。
167
+ # @type AppName: String
168
+ # @param UserId: 用户标识。
169
+ # @type UserId: String
170
+
171
+ attr_accessor :AppName, :UserId
172
+
173
+ def initialize(appname=nil, userid=nil)
174
+ @AppName = appname
175
+ @UserId = userid
176
+ end
177
+
178
+ def deserialize(params)
179
+ @AppName = params['AppName']
180
+ @UserId = params['UserId']
181
+ end
182
+ end
183
+
184
+ # DescribeKTVPlaylists返回参数结构体
185
+ class DescribeKTVPlaylistsResponse < TencentCloud::Common::AbstractModel
186
+ # @param PlaylistBaseInfoSet: 歌单基础信息。
187
+ # @type PlaylistBaseInfoSet: Array
188
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
189
+ # @type RequestId: String
190
+
191
+ attr_accessor :PlaylistBaseInfoSet, :RequestId
192
+
193
+ def initialize(playlistbaseinfoset=nil, requestid=nil)
194
+ @PlaylistBaseInfoSet = playlistbaseinfoset
195
+ @RequestId = requestid
196
+ end
197
+
198
+ def deserialize(params)
199
+ unless params['PlaylistBaseInfoSet'].nil?
200
+ @PlaylistBaseInfoSet = []
201
+ params['PlaylistBaseInfoSet'].each do |i|
202
+ ktvplaylistbaseinfo_tmp = KTVPlaylistBaseInfo.new
203
+ ktvplaylistbaseinfo_tmp.deserialize(i)
204
+ @PlaylistBaseInfoSet << ktvplaylistbaseinfo_tmp
205
+ end
206
+ end
207
+ @RequestId = params['RequestId']
208
+ end
209
+ end
210
+
211
+ # DescribeKTVSuggestions请求参数结构体
212
+ class DescribeKTVSuggestionsRequest < TencentCloud::Common::AbstractModel
213
+ # @param AppName: 应用名称。
214
+ # @type AppName: String
215
+ # @param UserId: 用户标识。
216
+ # @type UserId: String
217
+ # @param KeyWord: 搜索词。
218
+ # @type KeyWord: String
219
+
220
+ attr_accessor :AppName, :UserId, :KeyWord
221
+
222
+ def initialize(appname=nil, userid=nil, keyword=nil)
223
+ @AppName = appname
224
+ @UserId = userid
225
+ @KeyWord = keyword
226
+ end
227
+
228
+ def deserialize(params)
229
+ @AppName = params['AppName']
230
+ @UserId = params['UserId']
231
+ @KeyWord = params['KeyWord']
232
+ end
233
+ end
234
+
235
+ # DescribeKTVSuggestions返回参数结构体
236
+ class DescribeKTVSuggestionsResponse < TencentCloud::Common::AbstractModel
237
+ # @param KTVSuggestionInfoSet: 联想词信息列表。
238
+ # @type KTVSuggestionInfoSet: Array
239
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
240
+ # @type RequestId: String
241
+
242
+ attr_accessor :KTVSuggestionInfoSet, :RequestId
243
+
244
+ def initialize(ktvsuggestioninfoset=nil, requestid=nil)
245
+ @KTVSuggestionInfoSet = ktvsuggestioninfoset
246
+ @RequestId = requestid
247
+ end
248
+
249
+ def deserialize(params)
250
+ unless params['KTVSuggestionInfoSet'].nil?
251
+ @KTVSuggestionInfoSet = []
252
+ params['KTVSuggestionInfoSet'].each do |i|
253
+ ktvsuggestioninfo_tmp = KTVSuggestionInfo.new
254
+ ktvsuggestioninfo_tmp.deserialize(i)
255
+ @KTVSuggestionInfoSet << ktvsuggestioninfo_tmp
256
+ end
257
+ end
258
+ @RequestId = params['RequestId']
259
+ end
260
+ end
261
+
262
+ # 歌曲基础信息。
263
+ class KTVMusicBaseInfo < TencentCloud::Common::AbstractModel
264
+ # @param MusicId: 歌曲Id。
265
+ # @type MusicId: String
266
+ # @param Name: 歌曲名称。
267
+ # @type Name: String
268
+ # @param SingerSet: 歌手名称。
269
+ # @type SingerSet: Array
270
+ # @param Duration: 播放时长。
271
+ # @type Duration: Integer
272
+ # @param SingerImageUrl: 歌手图片链接。
273
+ # @type SingerImageUrl: String
274
+ # @param AlbumInfo: 专辑信息。
275
+ # 注意:此字段可能返回 null,表示取不到有效值。
276
+ # @type AlbumInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.MusicAlbumInfo`
277
+ # @param RightSet: 权益列表,取值有:
278
+ # <li>Play:可播;</li>
279
+ # <li>Sing:可唱。</li>
280
+ # @type RightSet: Array
281
+
282
+ attr_accessor :MusicId, :Name, :SingerSet, :Duration, :SingerImageUrl, :AlbumInfo, :RightSet
283
+
284
+ def initialize(musicid=nil, name=nil, singerset=nil, duration=nil, singerimageurl=nil, albuminfo=nil, rightset=nil)
285
+ @MusicId = musicid
286
+ @Name = name
287
+ @SingerSet = singerset
288
+ @Duration = duration
289
+ @SingerImageUrl = singerimageurl
290
+ @AlbumInfo = albuminfo
291
+ @RightSet = rightset
292
+ end
293
+
294
+ def deserialize(params)
295
+ @MusicId = params['MusicId']
296
+ @Name = params['Name']
297
+ @SingerSet = params['SingerSet']
298
+ @Duration = params['Duration']
299
+ @SingerImageUrl = params['SingerImageUrl']
300
+ unless params['AlbumInfo'].nil?
301
+ @AlbumInfo = MusicAlbumInfo.new
302
+ @AlbumInfo.deserialize(params['AlbumInfo'])
303
+ end
304
+ @RightSet = params['RightSet']
305
+ end
306
+ end
307
+
308
+ # 歌曲详细信息。
309
+ class KTVMusicDetailInfo < TencentCloud::Common::AbstractModel
310
+ # @param KTVMusicBaseInfo: 歌曲基础信息。
311
+ # @type KTVMusicBaseInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.KTVMusicBaseInfo`
312
+ # @param PlayToken: 播放凭证。
313
+ # @type PlayToken: String
314
+ # @param LyricsUrl: 歌词下载链接。
315
+ # @type LyricsUrl: String
316
+ # @param MidiUrl: 音高数据下载链接。
317
+ # @type MidiUrl: String
318
+ # @param ChorusClipSet: 副歌片段信息。
319
+ # @type ChorusClipSet: Array
320
+
321
+ attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :MidiUrl, :ChorusClipSet
322
+
323
+ def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, midiurl=nil, chorusclipset=nil)
324
+ @KTVMusicBaseInfo = ktvmusicbaseinfo
325
+ @PlayToken = playtoken
326
+ @LyricsUrl = lyricsurl
327
+ @MidiUrl = midiurl
328
+ @ChorusClipSet = chorusclipset
329
+ end
330
+
331
+ def deserialize(params)
332
+ unless params['KTVMusicBaseInfo'].nil?
333
+ @KTVMusicBaseInfo = KTVMusicBaseInfo.new
334
+ @KTVMusicBaseInfo.deserialize(params['KTVMusicBaseInfo'])
335
+ end
336
+ @PlayToken = params['PlayToken']
337
+ @LyricsUrl = params['LyricsUrl']
338
+ @MidiUrl = params['MidiUrl']
339
+ unless params['ChorusClipSet'].nil?
340
+ @ChorusClipSet = []
341
+ params['ChorusClipSet'].each do |i|
342
+ chorusclip_tmp = ChorusClip.new
343
+ chorusclip_tmp.deserialize(i)
344
+ @ChorusClipSet << chorusclip_tmp
345
+ end
346
+ end
347
+ end
348
+ end
349
+
350
+ # 歌单基础信息。
351
+ class KTVPlaylistBaseInfo < TencentCloud::Common::AbstractModel
352
+ # @param PlaylistId: 歌单Id。
353
+ # @type PlaylistId: String
354
+ # @param Title: 歌单标题。
355
+ # @type Title: String
356
+
357
+ attr_accessor :PlaylistId, :Title
358
+
359
+ def initialize(playlistid=nil, title=nil)
360
+ @PlaylistId = playlistid
361
+ @Title = title
362
+ end
363
+
364
+ def deserialize(params)
365
+ @PlaylistId = params['PlaylistId']
366
+ @Title = params['Title']
367
+ end
368
+ end
369
+
370
+ # 联想词信息。
371
+ class KTVSuggestionInfo < TencentCloud::Common::AbstractModel
372
+ # @param Suggestion: 联想词。
373
+ # @type Suggestion: String
374
+
375
+ attr_accessor :Suggestion
376
+
377
+ def initialize(suggestion=nil)
378
+ @Suggestion = suggestion
379
+ end
380
+
381
+ def deserialize(params)
382
+ @Suggestion = params['Suggestion']
383
+ end
384
+ end
385
+
386
+ # 歌曲专辑封面信息。
387
+ class MusicAlbumCoverInfo < TencentCloud::Common::AbstractModel
388
+ # @param Dimension: 尺寸规格,取值有:
389
+ # <li>Mini:150 x 150 尺寸;</li>
390
+ # <li>Small:240 x 240 尺寸;</li>
391
+ # <li>Medium:480 x 480 尺寸。</li>
392
+ # @type Dimension: String
393
+ # @param Url: 下载链接。
394
+ # @type Url: String
395
+
396
+ attr_accessor :Dimension, :Url
397
+
398
+ def initialize(dimension=nil, url=nil)
399
+ @Dimension = dimension
400
+ @Url = url
401
+ end
402
+
403
+ def deserialize(params)
404
+ @Dimension = params['Dimension']
405
+ @Url = params['Url']
406
+ end
407
+ end
408
+
409
+ # 歌曲专辑信息。
410
+ class MusicAlbumInfo < TencentCloud::Common::AbstractModel
411
+ # @param Name: 专辑名称。
412
+ # @type Name: String
413
+ # @param CoverInfoSet: 封面列表。
414
+ # @type CoverInfoSet: Array
415
+
416
+ attr_accessor :Name, :CoverInfoSet
417
+
418
+ def initialize(name=nil, coverinfoset=nil)
419
+ @Name = name
420
+ @CoverInfoSet = coverinfoset
421
+ end
422
+
423
+ def deserialize(params)
424
+ @Name = params['Name']
425
+ unless params['CoverInfoSet'].nil?
426
+ @CoverInfoSet = []
427
+ params['CoverInfoSet'].each do |i|
428
+ musicalbumcoverinfo_tmp = MusicAlbumCoverInfo.new
429
+ musicalbumcoverinfo_tmp.deserialize(i)
430
+ @CoverInfoSet << musicalbumcoverinfo_tmp
431
+ end
432
+ end
433
+ end
434
+ end
435
+
436
+ # SearchKTVMusics请求参数结构体
437
+ class SearchKTVMusicsRequest < TencentCloud::Common::AbstractModel
438
+ # @param AppName: 应用名称。
439
+ # @type AppName: String
440
+ # @param UserId: 用户标识。
441
+ # @type UserId: String
442
+ # @param KeyWord: 关键词。
443
+ # @type KeyWord: String
444
+ # @param ScrollToken: 滚动标记。
445
+ # @type ScrollToken: String
446
+ # @param Limit: 返回条数限制,默认 20,最大 50.
447
+ # @type Limit: Integer
448
+ # @param RightFilters: 权益过滤,取值有:
449
+ # <li>Play:可播;</li>
450
+ # <li>Sing:可唱。</li>
451
+ # @type RightFilters: Array
452
+
453
+ attr_accessor :AppName, :UserId, :KeyWord, :ScrollToken, :Limit, :RightFilters
454
+
455
+ def initialize(appname=nil, userid=nil, keyword=nil, scrolltoken=nil, limit=nil, rightfilters=nil)
456
+ @AppName = appname
457
+ @UserId = userid
458
+ @KeyWord = keyword
459
+ @ScrollToken = scrolltoken
460
+ @Limit = limit
461
+ @RightFilters = rightfilters
462
+ end
463
+
464
+ def deserialize(params)
465
+ @AppName = params['AppName']
466
+ @UserId = params['UserId']
467
+ @KeyWord = params['KeyWord']
468
+ @ScrollToken = params['ScrollToken']
469
+ @Limit = params['Limit']
470
+ @RightFilters = params['RightFilters']
471
+ end
472
+ end
473
+
474
+ # SearchKTVMusics返回参数结构体
475
+ class SearchKTVMusicsResponse < TencentCloud::Common::AbstractModel
476
+ # @param KTVMusicInfoSet: 歌曲信息列表。
477
+ # @type KTVMusicInfoSet: Array
478
+ # @param ScrollToken: 滚动标记,用于设置下次请求的 ScrollToken 参数。
479
+ # @type ScrollToken: String
480
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
481
+ # @type RequestId: String
482
+
483
+ attr_accessor :KTVMusicInfoSet, :ScrollToken, :RequestId
484
+
485
+ def initialize(ktvmusicinfoset=nil, scrolltoken=nil, requestid=nil)
486
+ @KTVMusicInfoSet = ktvmusicinfoset
487
+ @ScrollToken = scrolltoken
488
+ @RequestId = requestid
489
+ end
490
+
491
+ def deserialize(params)
492
+ unless params['KTVMusicInfoSet'].nil?
493
+ @KTVMusicInfoSet = []
494
+ params['KTVMusicInfoSet'].each do |i|
495
+ ktvmusicbaseinfo_tmp = KTVMusicBaseInfo.new
496
+ ktvmusicbaseinfo_tmp.deserialize(i)
497
+ @KTVMusicInfoSet << ktvmusicbaseinfo_tmp
498
+ end
499
+ end
500
+ @ScrollToken = params['ScrollToken']
501
+ @RequestId = params['RequestId']
502
+ end
503
+ end
504
+
505
+ end
506
+ end
507
+ end
508
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-yinsuda
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.345
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-06-30 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
+ YINSUDA.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-yinsuda.rb
38
+ - lib/v20220527/client.rb
39
+ - lib/v20220527/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-yinsuda
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 - YINSUDA
66
+ test_files: []