tencentcloud-sdk-yinsuda 3.0.597 → 3.0.599

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: 59273556e638bdc2782a3a49d036d00dc1c5678c
4
+ data.tar.gz: f5a873a2f5efdce28663895f400b22474125e85e
5
5
  SHA512:
6
- metadata.gz: be8c09c9e3353cd8156202ab9ae50987a03650373938da7de988eb13d1c3b30ca779c70bf882512f51b58be79570e0aae9bc7e9b1429fbd20b49a4ffb5dbd35f
7
- data.tar.gz: 16f45062dc4f8453d53b1fe0e986c7a289f749263c77e69ee0e2f1be93da0ea38f6fc64aa3f75040beb5d4e482191d02c885c63b88cae3fa21cd0123687f6259
6
+ metadata.gz: bb07da219bccfbb35acb379d231a97f7c10bc3ab7c6aecb397e3476576a073547dbfe1d95f7faaaa159221a4f74f32a22bceae665b646da81ed28db26250df51
7
+ data.tar.gz: bf2e5a53574645381c06acc455c2736dfee5397b04167f2a6b92b8095236d8ed0b7a4358549dbe96e8c41814323907687c84e9b01318b38448b9996b5b34ee81
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.597
1
+ 3.0.599
@@ -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.599
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-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common