tencentcloud-sdk-ame 1.0.251 → 1.0.255

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb30a6347a156fda5661b4ec9f918e12261ef773
4
- data.tar.gz: b0fa5e235e4635cd83d663a1b60801383ba5fb31
3
+ metadata.gz: 35af7c49369f3cd6b5bcd51173c256c7e991d346
4
+ data.tar.gz: 146cf9f120e6d8cc928ec60b59d0e222e631fe97
5
5
  SHA512:
6
- metadata.gz: eba27460d644ef9de7a4187294a1fa53ca2c03997bbab7ccf67976e0ae67988d83dec41abab38790eb4f1328f0af245b357d72f07821649057536a1291febdb6
7
- data.tar.gz: 22b91bfec973216b7017604f40253e58e53cf3c4929e62c5915cdaabf79c355d92bdf309d17deed5acd25d156fbb8ec59f5fccf338561721efe8740ce3887717
6
+ metadata.gz: 93731538975d89170b8d0f64b1f2b7eeefcd946e4353ec3e6221bd402237fb56260341dd480ea9993c8af01e9afcf394d97b0ad0ebb8cfcc0525c78385196dbe
7
+ data.tar.gz: 42c16173a39af26dec7ec7d6e55ad7e40fee53a57c571cceaaf403084218ce1bd962a636944d420f78da0c80b80a2908777ce5c71db90c68bc1e117ec1ecedbc
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.251
1
+ 1.0.255
@@ -343,6 +343,30 @@ module TencentCloud
343
343
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
344
344
  end
345
345
 
346
+ # 获取直播互动曲库歌曲的周榜和月榜
347
+
348
+ # @param request: Request instance for DescribeKTVTopList.
349
+ # @type request: :class:`Tencentcloud::ame::V20190916::DescribeKTVTopListRequest`
350
+ # @rtype: :class:`Tencentcloud::ame::V20190916::DescribeKTVTopListResponse`
351
+ def DescribeKTVTopList(request)
352
+ body = send_request('DescribeKTVTopList', request.serialize)
353
+ response = JSON.parse(body)
354
+ if response['Response'].key?('Error') == false
355
+ model = DescribeKTVTopListResponse.new
356
+ model.deserialize(response['Response'])
357
+ model
358
+ else
359
+ code = response['Response']['Error']['Code']
360
+ message = response['Response']['Error']['Message']
361
+ reqid = response['Response']['RequestId']
362
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
363
+ end
364
+ rescue TencentCloud::Common::TencentCloudSDKException => e
365
+ raise e
366
+ rescue StandardError => e
367
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
368
+ end
369
+
346
370
  # 根据接口的模式及歌曲ID来取得歌词信息或者波形图信息。
347
371
 
348
372
  # @param request: Request instance for DescribeLyric.
@@ -922,6 +922,60 @@ module TencentCloud
922
922
  end
923
923
  end
924
924
 
925
+ # DescribeKTVTopList请求参数结构体
926
+ class DescribeKTVTopListRequest < TencentCloud::Common::AbstractModel
927
+ # @param Type: 榜单类型。默认Hot
928
+ # <li> Hot, 热歌榜。</li>
929
+ # @type Type: String
930
+ # @param Period: 榜单周期 默认为Week
931
+ # <li> Week, 周榜。</li>
932
+ # <li> Month, 月榜。</li>
933
+ # @type Period: String
934
+
935
+ attr_accessor :Type, :Period
936
+
937
+ def initialize(type=nil, period=nil)
938
+ @Type = type
939
+ @Period = period
940
+ end
941
+
942
+ def deserialize(params)
943
+ @Type = params['Type']
944
+ @Period = params['Period']
945
+ end
946
+ end
947
+
948
+ # DescribeKTVTopList返回参数结构体
949
+ class DescribeKTVTopListResponse < TencentCloud::Common::AbstractModel
950
+ # @param KTVMusicTopInfoSet: 歌曲基础信息列表
951
+ # @type KTVMusicTopInfoSet: Array
952
+ # @param TotalCount: 返回总条数
953
+ # @type TotalCount: Integer
954
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
955
+ # @type RequestId: String
956
+
957
+ attr_accessor :KTVMusicTopInfoSet, :TotalCount, :RequestId
958
+
959
+ def initialize(ktvmusictopinfoset=nil, totalcount=nil, requestid=nil)
960
+ @KTVMusicTopInfoSet = ktvmusictopinfoset
961
+ @TotalCount = totalcount
962
+ @RequestId = requestid
963
+ end
964
+
965
+ def deserialize(params)
966
+ unless params['KTVMusicTopInfoSet'].nil?
967
+ @KTVMusicTopInfoSet = []
968
+ params['KTVMusicTopInfoSet'].each do |i|
969
+ ktvmusictopinfo_tmp = KTVMusicTopInfo.new
970
+ ktvmusictopinfo_tmp.deserialize(i)
971
+ @KTVMusicTopInfoSet << ktvmusictopinfo_tmp
972
+ end
973
+ end
974
+ @TotalCount = params['TotalCount']
975
+ @RequestId = params['RequestId']
976
+ end
977
+ end
978
+
925
979
  # DescribeLyric请求参数结构体
926
980
  class DescribeLyricRequest < TencentCloud::Common::AbstractModel
927
981
  # @param ItemId: 歌曲ID
@@ -1488,6 +1542,53 @@ module TencentCloud
1488
1542
  end
1489
1543
  end
1490
1544
 
1545
+ # 排行榜结构
1546
+ class KTVMusicTopInfo < TencentCloud::Common::AbstractModel
1547
+ # @param MusicId: 歌曲Id
1548
+ # @type MusicId: String
1549
+ # @param Name: 歌曲名称
1550
+ # @type Name: String
1551
+ # @param SingerInfoSet: 歌手名称列表
1552
+ # @type SingerInfoSet: Array
1553
+ # @param LyricistSet: 歌词名称列表
1554
+ # @type LyricistSet: Array
1555
+ # @param ComposerSet: 作曲列表
1556
+ # @type ComposerSet: Array
1557
+ # @param TagSet: 标签列表
1558
+ # @type TagSet: Array
1559
+ # @param Duration: 播放时长
1560
+ # @type Duration: Integer
1561
+
1562
+ attr_accessor :MusicId, :Name, :SingerInfoSet, :LyricistSet, :ComposerSet, :TagSet, :Duration
1563
+
1564
+ def initialize(musicid=nil, name=nil, singerinfoset=nil, lyricistset=nil, composerset=nil, tagset=nil, duration=nil)
1565
+ @MusicId = musicid
1566
+ @Name = name
1567
+ @SingerInfoSet = singerinfoset
1568
+ @LyricistSet = lyricistset
1569
+ @ComposerSet = composerset
1570
+ @TagSet = tagset
1571
+ @Duration = duration
1572
+ end
1573
+
1574
+ def deserialize(params)
1575
+ @MusicId = params['MusicId']
1576
+ @Name = params['Name']
1577
+ unless params['SingerInfoSet'].nil?
1578
+ @SingerInfoSet = []
1579
+ params['SingerInfoSet'].each do |i|
1580
+ ktvsingerbaseinfo_tmp = KTVSingerBaseInfo.new
1581
+ ktvsingerbaseinfo_tmp.deserialize(i)
1582
+ @SingerInfoSet << ktvsingerbaseinfo_tmp
1583
+ end
1584
+ end
1585
+ @LyricistSet = params['LyricistSet']
1586
+ @ComposerSet = params['ComposerSet']
1587
+ @TagSet = params['TagSet']
1588
+ @Duration = params['Duration']
1589
+ end
1590
+ end
1591
+
1491
1592
  # 推荐歌单基础信息
1492
1593
  class KTVPlaylistBaseInfo < TencentCloud::Common::AbstractModel
1493
1594
  # @param PlaylistId: 歌单Id
@@ -2146,24 +2247,33 @@ module TencentCloud
2146
2247
  # @param KeyWord: 搜索关键词
2147
2248
  # @type KeyWord: String
2148
2249
  # @param Offset: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
2149
- # 取值范围:Offset + Limit 不超过5000。取值范围:小于5000
2250
+ # 取值范围:Offset + Limit 不超过5000
2150
2251
  # @type Offset: Integer
2151
2252
  # @param Limit: 分页返回的起始偏移量,默认值:50。将返回第 Offset 到第 Offset+Limit-1 条。
2152
- # 取值范围:Offset + Limit 不超过5000。
2153
2253
  # @type Limit: Integer
2254
+ # @param Sort: 排序方式。默认按照匹配度排序
2255
+ # <li> Sort.Field 可选 CreateTime</li>
2256
+ # <li> Sort.Order 可选 Desc </li>
2257
+ # <li> 当 KeyWord 不为空时,Sort.Field 字段无效, 搜索结果将以匹配度排序。</li>
2258
+ # @type Sort: :class:`Tencentcloud::Ame.v20190916.models.SortBy`
2154
2259
 
2155
- attr_accessor :KeyWord, :Offset, :Limit
2260
+ attr_accessor :KeyWord, :Offset, :Limit, :Sort
2156
2261
 
2157
- def initialize(keyword=nil, offset=nil, limit=nil)
2262
+ def initialize(keyword=nil, offset=nil, limit=nil, sort=nil)
2158
2263
  @KeyWord = keyword
2159
2264
  @Offset = offset
2160
2265
  @Limit = limit
2266
+ @Sort = sort
2161
2267
  end
2162
2268
 
2163
2269
  def deserialize(params)
2164
2270
  @KeyWord = params['KeyWord']
2165
2271
  @Offset = params['Offset']
2166
2272
  @Limit = params['Limit']
2273
+ unless params['Sort'].nil?
2274
+ @Sort = SortBy.new
2275
+ @Sort.deserialize(params['Sort'])
2276
+ end
2167
2277
  end
2168
2278
  end
2169
2279
 
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.251
4
+ version: 1.0.255
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-01-27 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common