tencentcloud-sdk-ame 1.0.262 → 1.0.265

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: 53a19fd33c54f0f202911fa22e685a5a94115d12
4
- data.tar.gz: 74ca641da80af7dbc824aec45ce111d6009cdd7e
3
+ metadata.gz: 60e9092670bcf381621e0f12bfd1e22c9cd8c8b7
4
+ data.tar.gz: dc8fd82bda5ce210bf7a2a3f0c98228c1afe5859
5
5
  SHA512:
6
- metadata.gz: 2dc3aa758244638d65affe6c97b3f6af44fa5383a65969669eecf854b357506605b709d2203384d1e4a5ffdf476a7d0a27da07a42526eff1b8b89e2d5c8ad2cf
7
- data.tar.gz: 6d074e04fcb2588a02bcc104884aa1f271cf45ba5587359f89ffdea1f4be748d19d9988e5353416ad592d5c506d5fc9b24c9743ac5396299e6dc7464b6a5bc12
6
+ metadata.gz: d98a71b517f72003108bf3916453ab5f297911e8d77af090061f4d33d7480e3440a3e88824f8fccc2b262f35b9d593f5904b8f40ab7b61113c8356c98cc38755
7
+ data.tar.gz: 0ef73c9a94cc6f2274142cf76928af05ac1b095b41de95ed950a355b4f881d490d5fc3800935dc52822b1b92c49904245ea37475a6cbfb5ac34c388673a934bd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.262
1
+ 1.0.265
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 根据 Id 列表查询歌曲的详细信息,包含基础信息及播放信息。
33
+
34
+ # @param request: Request instance for BatchDescribeKTVMusicDetails.
35
+ # @type request: :class:`Tencentcloud::ame::V20190916::BatchDescribeKTVMusicDetailsRequest`
36
+ # @rtype: :class:`Tencentcloud::ame::V20190916::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
+
32
56
  # 创建机器人,支持进入 RTC 房间,播放直播互动曲库歌曲。
33
57
 
34
58
  # @param request: Request instance for CreateKTVRobot.
@@ -107,6 +107,53 @@ module TencentCloud
107
107
  end
108
108
  end
109
109
 
110
+ # BatchDescribeKTVMusicDetails请求参数结构体
111
+ class BatchDescribeKTVMusicDetailsRequest < TencentCloud::Common::AbstractModel
112
+ # @param MusicIds: 歌曲Id列表,注:列表最大长度为50
113
+ # @type MusicIds: Array
114
+
115
+ attr_accessor :MusicIds
116
+
117
+ def initialize(musicids=nil)
118
+ @MusicIds = musicids
119
+ end
120
+
121
+ def deserialize(params)
122
+ @MusicIds = params['MusicIds']
123
+ end
124
+ end
125
+
126
+ # BatchDescribeKTVMusicDetails返回参数结构体
127
+ class BatchDescribeKTVMusicDetailsResponse < TencentCloud::Common::AbstractModel
128
+ # @param KTVMusicDetailInfoSet: 歌曲详情列表信息
129
+ # @type KTVMusicDetailInfoSet: Array
130
+ # @param NotExistMusicIdSet: 不存在的歌曲 ID 列表。
131
+ # @type NotExistMusicIdSet: Array
132
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
133
+ # @type RequestId: String
134
+
135
+ attr_accessor :KTVMusicDetailInfoSet, :NotExistMusicIdSet, :RequestId
136
+
137
+ def initialize(ktvmusicdetailinfoset=nil, notexistmusicidset=nil, requestid=nil)
138
+ @KTVMusicDetailInfoSet = ktvmusicdetailinfoset
139
+ @NotExistMusicIdSet = notexistmusicidset
140
+ @RequestId = requestid
141
+ end
142
+
143
+ def deserialize(params)
144
+ unless params['KTVMusicDetailInfoSet'].nil?
145
+ @KTVMusicDetailInfoSet = []
146
+ params['KTVMusicDetailInfoSet'].each do |i|
147
+ ktvmusicdetailinfo_tmp = KTVMusicDetailInfo.new
148
+ ktvmusicdetailinfo_tmp.deserialize(i)
149
+ @KTVMusicDetailInfoSet << ktvmusicdetailinfo_tmp
150
+ end
151
+ end
152
+ @NotExistMusicIdSet = params['NotExistMusicIdSet']
153
+ @RequestId = params['RequestId']
154
+ end
155
+ end
156
+
110
157
  # 副歌片段信息
111
158
  class ChorusClip < TencentCloud::Common::AbstractModel
112
159
  # @param StartTime: 副歌时间,单位:毫秒
@@ -520,18 +567,21 @@ module TencentCloud
520
567
  # @type MidiJsonUrl: String
521
568
  # @param ChorusClipSet: 副歌片段数据列表
522
569
  # @type ChorusClipSet: Array
570
+ # @param PreludeInterval: 前奏间隔,单位:毫秒;注:若参数返回为0则无人声部分
571
+ # @type PreludeInterval: Integer
523
572
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
524
573
  # @type RequestId: String
525
574
 
526
- attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :DefinitionInfoSet, :MidiJsonUrl, :ChorusClipSet, :RequestId
575
+ attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :DefinitionInfoSet, :MidiJsonUrl, :ChorusClipSet, :PreludeInterval, :RequestId
527
576
 
528
- def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, definitioninfoset=nil, midijsonurl=nil, chorusclipset=nil, requestid=nil)
577
+ def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, definitioninfoset=nil, midijsonurl=nil, chorusclipset=nil, preludeinterval=nil, requestid=nil)
529
578
  @KTVMusicBaseInfo = ktvmusicbaseinfo
530
579
  @PlayToken = playtoken
531
580
  @LyricsUrl = lyricsurl
532
581
  @DefinitionInfoSet = definitioninfoset
533
582
  @MidiJsonUrl = midijsonurl
534
583
  @ChorusClipSet = chorusclipset
584
+ @PreludeInterval = preludeinterval
535
585
  @RequestId = requestid
536
586
  end
537
587
 
@@ -559,6 +609,7 @@ module TencentCloud
559
609
  @ChorusClipSet << chorusclip_tmp
560
610
  end
561
611
  end
612
+ @PreludeInterval = params['PreludeInterval']
562
613
  @RequestId = params['RequestId']
563
614
  end
564
615
  end
@@ -1542,6 +1593,63 @@ module TencentCloud
1542
1593
  end
1543
1594
  end
1544
1595
 
1596
+ # 即使广播曲库歌曲信息详情列表
1597
+ class KTVMusicDetailInfo < TencentCloud::Common::AbstractModel
1598
+ # @param KTVMusicBaseInfo: 即使广播曲库歌曲基础信息
1599
+ # @type KTVMusicBaseInfo: :class:`Tencentcloud::Ame.v20190916.models.KTVMusicBaseInfo`
1600
+ # @param PlayToken: 播放凭证
1601
+ # @type PlayToken: String
1602
+ # @param LyricsUrl: 歌词下载地址
1603
+ # @type LyricsUrl: String
1604
+ # @param DefinitionInfoSet: 歌曲规格信息列表
1605
+ # @type DefinitionInfoSet: Array
1606
+ # @param MidiJsonUrl: 音高数据文件下载地址
1607
+ # @type MidiJsonUrl: String
1608
+ # @param ChorusClipSet: 副歌片段数据列表
1609
+ # @type ChorusClipSet: Array
1610
+ # @param PreludeInterval: 前奏间隔,单位:毫秒;注:若参数返回为0则无人声部分
1611
+ # @type PreludeInterval: Integer
1612
+
1613
+ attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :DefinitionInfoSet, :MidiJsonUrl, :ChorusClipSet, :PreludeInterval
1614
+
1615
+ def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, definitioninfoset=nil, midijsonurl=nil, chorusclipset=nil, preludeinterval=nil)
1616
+ @KTVMusicBaseInfo = ktvmusicbaseinfo
1617
+ @PlayToken = playtoken
1618
+ @LyricsUrl = lyricsurl
1619
+ @DefinitionInfoSet = definitioninfoset
1620
+ @MidiJsonUrl = midijsonurl
1621
+ @ChorusClipSet = chorusclipset
1622
+ @PreludeInterval = preludeinterval
1623
+ end
1624
+
1625
+ def deserialize(params)
1626
+ unless params['KTVMusicBaseInfo'].nil?
1627
+ @KTVMusicBaseInfo = KTVMusicBaseInfo.new
1628
+ @KTVMusicBaseInfo.deserialize(params['KTVMusicBaseInfo'])
1629
+ end
1630
+ @PlayToken = params['PlayToken']
1631
+ @LyricsUrl = params['LyricsUrl']
1632
+ unless params['DefinitionInfoSet'].nil?
1633
+ @DefinitionInfoSet = []
1634
+ params['DefinitionInfoSet'].each do |i|
1635
+ ktvmusicdefinitioninfo_tmp = KTVMusicDefinitionInfo.new
1636
+ ktvmusicdefinitioninfo_tmp.deserialize(i)
1637
+ @DefinitionInfoSet << ktvmusicdefinitioninfo_tmp
1638
+ end
1639
+ end
1640
+ @MidiJsonUrl = params['MidiJsonUrl']
1641
+ unless params['ChorusClipSet'].nil?
1642
+ @ChorusClipSet = []
1643
+ params['ChorusClipSet'].each do |i|
1644
+ chorusclip_tmp = ChorusClip.new
1645
+ chorusclip_tmp.deserialize(i)
1646
+ @ChorusClipSet << chorusclip_tmp
1647
+ end
1648
+ end
1649
+ @PreludeInterval = params['PreludeInterval']
1650
+ end
1651
+ end
1652
+
1545
1653
  # 排行榜结构
1546
1654
  class KTVMusicTopInfo < TencentCloud::Common::AbstractModel
1547
1655
  # @param MusicId: 歌曲Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ame
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.262
4
+ version: 1.0.265
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-22 00:00:00.000000000 Z
11
+ date: 2022-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common