tencentcloud-sdk-yinsuda 3.0.597 → 3.0.598

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ebcaf32e48184a44dfbc72f690a4092cc053527
4
- data.tar.gz: 7102c8f38d825cba94f65ebaa6ce2561e73854d4
3
+ metadata.gz: 167c6ab903fef6c33479c54a61d709e3c531302f
4
+ data.tar.gz: 311a06a1963f352d2c229a082f5cbff047328433
5
5
  SHA512:
6
- metadata.gz: be8c09c9e3353cd8156202ab9ae50987a03650373938da7de988eb13d1c3b30ca779c70bf882512f51b58be79570e0aae9bc7e9b1429fbd20b49a4ffb5dbd35f
7
- data.tar.gz: 16f45062dc4f8453d53b1fe0e986c7a289f749263c77e69ee0e2f1be93da0ea38f6fc64aa3f75040beb5d4e482191d02c885c63b88cae3fa21cd0123687f6259
6
+ metadata.gz: e6416d569b7d9d066582a6b6bed5fad2bbf63bb40ad4fd68a1c407d7cd8f59416ae778825293919b04a89ee263252ac377595be774960802927aace7671709d5
7
+ data.tar.gz: 108333fe050ad2ff10158a0a343142eecc7501f64822acc8c9e4a04531468dd220d8be7a8c41d639764168d69fd37f7e48e212af885b9f0a6005e52bec900d55
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.597
1
+ 3.0.598
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 获取歌曲伴奏片段链接,可用于抢唱
129
+
130
+ # @param request: Request instance for DescribeKTVMusicAccompanySegmentUrl.
131
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMusicAccompanySegmentUrlRequest`
132
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMusicAccompanySegmentUrlResponse`
133
+ def DescribeKTVMusicAccompanySegmentUrl(request)
134
+ body = send_request('DescribeKTVMusicAccompanySegmentUrl', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeKTVMusicAccompanySegmentUrlResponse.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
+
128
152
  # 通过标签过滤歌曲列表。
129
153
 
130
154
  # @param request: Request instance for DescribeKTVMusicsByTag.
@@ -317,6 +317,96 @@ module TencentCloud
317
317
  end
318
318
  end
319
319
 
320
+ # DescribeKTVMusicAccompanySegmentUrl请求参数结构体
321
+ class DescribeKTVMusicAccompanySegmentUrlRequest < TencentCloud::Common::AbstractModel
322
+ # @param AppName: 应用名称。
323
+ # @type AppName: String
324
+ # @param UserId: 用户标识。
325
+ # @type UserId: String
326
+ # @param MusicId: 歌曲 Id 。
327
+ # @type MusicId: String
328
+ # @param PlayScene: 播放场景。默认为Chat
329
+ # <li>Live:直播</li><li>Chat:语聊</li>
330
+ # @type PlayScene: String
331
+ # @param RoomId: 房间Id
332
+ # @type RoomId: String
333
+
334
+ attr_accessor :AppName, :UserId, :MusicId, :PlayScene, :RoomId
335
+
336
+ def initialize(appname=nil, userid=nil, musicid=nil, playscene=nil, roomid=nil)
337
+ @AppName = appname
338
+ @UserId = userid
339
+ @MusicId = musicid
340
+ @PlayScene = playscene
341
+ @RoomId = roomid
342
+ end
343
+
344
+ def deserialize(params)
345
+ @AppName = params['AppName']
346
+ @UserId = params['UserId']
347
+ @MusicId = params['MusicId']
348
+ @PlayScene = params['PlayScene']
349
+ @RoomId = params['RoomId']
350
+ end
351
+ end
352
+
353
+ # DescribeKTVMusicAccompanySegmentUrl返回参数结构体
354
+ class DescribeKTVMusicAccompanySegmentUrlResponse < TencentCloud::Common::AbstractModel
355
+ # @param Status: 歌曲状态。
356
+ # 0:可用
357
+ # 1:下线
358
+ # 2:没权限
359
+ # 3:没伴奏
360
+ # 当返回2时,其他参数有可能全部为空
361
+ # @type Status: Integer
362
+ # @param Url: 伴奏链接
363
+ # @type Url: String
364
+ # @param ExtName: 伴奏类型,如mkv,mp3等
365
+ # @type ExtName: String
366
+ # @param SegmentBegin: 高潮开始时间
367
+ # @type SegmentBegin: Integer
368
+ # @param SegmentEnd: 高潮结束时间
369
+ # @type SegmentEnd: Integer
370
+ # @param FileSize: 链接文件大小 单位 字节
371
+ # @type FileSize: Integer
372
+ # @param OtherSegments: 其它片段时间(可用于抢唱)
373
+ # 注意:此字段可能返回 null,表示取不到有效值。
374
+ # @type OtherSegments: Array
375
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
376
+ # @type RequestId: String
377
+
378
+ attr_accessor :Status, :Url, :ExtName, :SegmentBegin, :SegmentEnd, :FileSize, :OtherSegments, :RequestId
379
+
380
+ def initialize(status=nil, url=nil, extname=nil, segmentbegin=nil, segmentend=nil, filesize=nil, othersegments=nil, requestid=nil)
381
+ @Status = status
382
+ @Url = url
383
+ @ExtName = extname
384
+ @SegmentBegin = segmentbegin
385
+ @SegmentEnd = segmentend
386
+ @FileSize = filesize
387
+ @OtherSegments = othersegments
388
+ @RequestId = requestid
389
+ end
390
+
391
+ def deserialize(params)
392
+ @Status = params['Status']
393
+ @Url = params['Url']
394
+ @ExtName = params['ExtName']
395
+ @SegmentBegin = params['SegmentBegin']
396
+ @SegmentEnd = params['SegmentEnd']
397
+ @FileSize = params['FileSize']
398
+ unless params['OtherSegments'].nil?
399
+ @OtherSegments = []
400
+ params['OtherSegments'].each do |i|
401
+ ktvothersegments_tmp = KTVOtherSegments.new
402
+ ktvothersegments_tmp.deserialize(i)
403
+ @OtherSegments << ktvothersegments_tmp
404
+ end
405
+ end
406
+ @RequestId = params['RequestId']
407
+ end
408
+ end
409
+
320
410
  # DescribeKTVMusicsByTag请求参数结构体
321
411
  class DescribeKTVMusicsByTagRequest < TencentCloud::Common::AbstractModel
322
412
  # @param AppName: 应用名称。
@@ -1105,6 +1195,28 @@ module TencentCloud
1105
1195
  end
1106
1196
  end
1107
1197
 
1198
+ # 其它片段时间(可用于抢唱)
1199
+ class KTVOtherSegments < TencentCloud::Common::AbstractModel
1200
+ # @param SegmentBegin: 片段开始时间
1201
+ # 注意:此字段可能返回 null,表示取不到有效值。
1202
+ # @type SegmentBegin: Integer
1203
+ # @param SegmentEnd: 片段结束时间
1204
+ # 注意:此字段可能返回 null,表示取不到有效值。
1205
+ # @type SegmentEnd: Integer
1206
+
1207
+ attr_accessor :SegmentBegin, :SegmentEnd
1208
+
1209
+ def initialize(segmentbegin=nil, segmentend=nil)
1210
+ @SegmentBegin = segmentbegin
1211
+ @SegmentEnd = segmentend
1212
+ end
1213
+
1214
+ def deserialize(params)
1215
+ @SegmentBegin = params['SegmentBegin']
1216
+ @SegmentEnd = params['SegmentEnd']
1217
+ end
1218
+ end
1219
+
1108
1220
  # 歌单基础信息。
1109
1221
  class KTVPlaylistBaseInfo < TencentCloud::Common::AbstractModel
1110
1222
  # @param PlaylistId: 歌单Id。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-yinsuda
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.597
4
+ version: 3.0.598
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-21 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common