tencentcloud-sdk-yinsuda 3.0.410 → 3.0.411

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: 24c36f91b9a43d88e5730ba7797947651d7ebde4
4
- data.tar.gz: 948581219a0b61b02acd3a4f3689486e5fe618ca
3
+ metadata.gz: 398ba5f2b52b7a2143b7010d699ccb020b272a92
4
+ data.tar.gz: 512f7f3beda349af36b3b39747819e1a7ce2d808
5
5
  SHA512:
6
- metadata.gz: a7e1c95e211d47de51d9aa3b0298d2e8f9de2564fcfb1ca51d388bfaa110a56b3b31548a2080e9a8c6e9361c42432254c042dd8cf75a0cc181d45474c541e73f
7
- data.tar.gz: a215f7ce49b8fa6b1ed9f1d1bd6dc722140def76dbc0833d636253f905ddc053c95247cf4086ac040ee4eee4bae267e18c66876a2a54926f407be6ff2844dac2
6
+ metadata.gz: fed75929682de2b394c7fc34c569122a57417bce2d1ceae116eaf19b593d3fc85bf0f5b847d5056065b718b937fc104295529572b7d67a42f0730114c0802985
7
+ data.tar.gz: 657a1d3ee51bdd92e1091dbb5ef63b0caaf888e2b711118cfc4b7e43533e4eb75b5a5cd1dcfb10833ac7c0b7734a62331f2240530a848d6d102714206f43b280
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.410
1
+ 3.0.411
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 通过标签过滤歌曲列表。
105
+
106
+ # @param request: Request instance for DescribeKTVMusicsByTag.
107
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMusicsByTagRequest`
108
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMusicsByTagResponse`
109
+ def DescribeKTVMusicsByTag(request)
110
+ body = send_request('DescribeKTVMusicsByTag', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeKTVMusicsByTagResponse.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
+
104
128
  # 根据歌单 Id 获取歌单详情。
105
129
 
106
130
  # @param request: Request instance for DescribeKTVPlaylistDetail.
@@ -197,6 +221,30 @@ module TencentCloud
197
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
222
  end
199
223
 
224
+ # 获取标签分组及分组下的标签列表信息。
225
+
226
+ # @param request: Request instance for DescribeKTVTags.
227
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVTagsRequest`
228
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVTagsResponse`
229
+ def DescribeKTVTags(request)
230
+ body = send_request('DescribeKTVTags', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DescribeKTVTagsResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
200
248
  # 销毁机器人,机器人退出 RTC 房间。
201
249
 
202
250
  # @param request: Request instance for DestroyKTVRobot.
@@ -224,6 +224,75 @@ module TencentCloud
224
224
  end
225
225
  end
226
226
 
227
+ # DescribeKTVMusicsByTag请求参数结构体
228
+ class DescribeKTVMusicsByTagRequest < TencentCloud::Common::AbstractModel
229
+ # @param AppName: 应用名称。
230
+ # @type AppName: String
231
+ # @param UserId: 用户标识。
232
+ # @type UserId: String
233
+ # @param TagId: 标签 Id。
234
+ # @type TagId: String
235
+ # @param ScrollToken: 滚动标记。
236
+ # @type ScrollToken: String
237
+ # @param Limit: 返回条数限制,默认 20,最大 50。
238
+ # @type Limit: Integer
239
+ # @param RightFilters: 权益过滤,取值有:
240
+ # <li>Play:可播;</li>
241
+ # <li>Sing:可唱。</li>
242
+ # @type RightFilters: Array
243
+
244
+ attr_accessor :AppName, :UserId, :TagId, :ScrollToken, :Limit, :RightFilters
245
+
246
+ def initialize(appname=nil, userid=nil, tagid=nil, scrolltoken=nil, limit=nil, rightfilters=nil)
247
+ @AppName = appname
248
+ @UserId = userid
249
+ @TagId = tagid
250
+ @ScrollToken = scrolltoken
251
+ @Limit = limit
252
+ @RightFilters = rightfilters
253
+ end
254
+
255
+ def deserialize(params)
256
+ @AppName = params['AppName']
257
+ @UserId = params['UserId']
258
+ @TagId = params['TagId']
259
+ @ScrollToken = params['ScrollToken']
260
+ @Limit = params['Limit']
261
+ @RightFilters = params['RightFilters']
262
+ end
263
+ end
264
+
265
+ # DescribeKTVMusicsByTag返回参数结构体
266
+ class DescribeKTVMusicsByTagResponse < TencentCloud::Common::AbstractModel
267
+ # @param KTVMusicInfoSet: 歌曲信息列表。
268
+ # @type KTVMusicInfoSet: Array
269
+ # @param ScrollToken: 滚动标记,用于设置下次请求的 ScrollToken 参数。
270
+ # @type ScrollToken: String
271
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
272
+ # @type RequestId: String
273
+
274
+ attr_accessor :KTVMusicInfoSet, :ScrollToken, :RequestId
275
+
276
+ def initialize(ktvmusicinfoset=nil, scrolltoken=nil, requestid=nil)
277
+ @KTVMusicInfoSet = ktvmusicinfoset
278
+ @ScrollToken = scrolltoken
279
+ @RequestId = requestid
280
+ end
281
+
282
+ def deserialize(params)
283
+ unless params['KTVMusicInfoSet'].nil?
284
+ @KTVMusicInfoSet = []
285
+ params['KTVMusicInfoSet'].each do |i|
286
+ ktvmusicbaseinfo_tmp = KTVMusicBaseInfo.new
287
+ ktvmusicbaseinfo_tmp.deserialize(i)
288
+ @KTVMusicInfoSet << ktvmusicbaseinfo_tmp
289
+ end
290
+ end
291
+ @ScrollToken = params['ScrollToken']
292
+ @RequestId = params['RequestId']
293
+ end
294
+ end
295
+
227
296
  # DescribeKTVPlaylistDetail请求参数结构体
228
297
  class DescribeKTVPlaylistDetailRequest < TencentCloud::Common::AbstractModel
229
298
  # @param AppName: 应用名称。
@@ -475,6 +544,53 @@ module TencentCloud
475
544
  end
476
545
  end
477
546
 
547
+ # DescribeKTVTags请求参数结构体
548
+ class DescribeKTVTagsRequest < TencentCloud::Common::AbstractModel
549
+ # @param AppName: 应用名称。
550
+ # @type AppName: String
551
+ # @param UserId: 用户标识。
552
+ # @type UserId: String
553
+
554
+ attr_accessor :AppName, :UserId
555
+
556
+ def initialize(appname=nil, userid=nil)
557
+ @AppName = appname
558
+ @UserId = userid
559
+ end
560
+
561
+ def deserialize(params)
562
+ @AppName = params['AppName']
563
+ @UserId = params['UserId']
564
+ end
565
+ end
566
+
567
+ # DescribeKTVTags返回参数结构体
568
+ class DescribeKTVTagsResponse < TencentCloud::Common::AbstractModel
569
+ # @param TagGroupInfoSet: 标签分组列表。
570
+ # @type TagGroupInfoSet: Array
571
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
572
+ # @type RequestId: String
573
+
574
+ attr_accessor :TagGroupInfoSet, :RequestId
575
+
576
+ def initialize(taggroupinfoset=nil, requestid=nil)
577
+ @TagGroupInfoSet = taggroupinfoset
578
+ @RequestId = requestid
579
+ end
580
+
581
+ def deserialize(params)
582
+ unless params['TagGroupInfoSet'].nil?
583
+ @TagGroupInfoSet = []
584
+ params['TagGroupInfoSet'].each do |i|
585
+ ktvtaggroupinfo_tmp = KTVTagGroupInfo.new
586
+ ktvtaggroupinfo_tmp.deserialize(i)
587
+ @TagGroupInfoSet << ktvtaggroupinfo_tmp
588
+ end
589
+ end
590
+ @RequestId = params['RequestId']
591
+ end
592
+ end
593
+
478
594
  # DestroyKTVRobot请求参数结构体
479
595
  class DestroyKTVRobotRequest < TencentCloud::Common::AbstractModel
480
596
  # @param AppName: 应用名称。
@@ -534,6 +650,30 @@ module TencentCloud
534
650
  end
535
651
  end
536
652
 
653
+ # 节拍信息。
654
+ class KTVBPMInfo < TencentCloud::Common::AbstractModel
655
+ # @param Type: 节拍类型,取值有:
656
+ # <li>Slow:慢;</li>
657
+ # <li>Middle:中等;</li>
658
+ # <li>Fast:快;</li>
659
+ # <li>Unknown:未知。</li>
660
+ # @type Type: String
661
+ # @param Value: BPM 值。
662
+ # @type Value: Integer
663
+
664
+ attr_accessor :Type, :Value
665
+
666
+ def initialize(type=nil, value=nil)
667
+ @Type = type
668
+ @Value = value
669
+ end
670
+
671
+ def deserialize(params)
672
+ @Type = params['Type']
673
+ @Value = params['Value']
674
+ end
675
+ end
676
+
537
677
  # 匹配歌曲信息。
538
678
  class KTVMatchMusic < TencentCloud::Common::AbstractModel
539
679
  # @param KTVMusicBaseInfo: 匹配到的歌曲基础信息。
@@ -672,10 +812,13 @@ module TencentCloud
672
812
  # @type PreludeInterval: Integer
673
813
  # @param GenreSet: 歌曲流派列表。
674
814
  # @type GenreSet: Array
815
+ # @param BPMInfo: 节拍信息。
816
+ # 注意:此字段可能返回 null,表示取不到有效值。
817
+ # @type BPMInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.KTVBPMInfo`
675
818
 
676
- attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :MidiUrl, :ChorusClipSet, :PreludeInterval, :GenreSet
819
+ attr_accessor :KTVMusicBaseInfo, :PlayToken, :LyricsUrl, :MidiUrl, :ChorusClipSet, :PreludeInterval, :GenreSet, :BPMInfo
677
820
 
678
- def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, midiurl=nil, chorusclipset=nil, preludeinterval=nil, genreset=nil)
821
+ def initialize(ktvmusicbaseinfo=nil, playtoken=nil, lyricsurl=nil, midiurl=nil, chorusclipset=nil, preludeinterval=nil, genreset=nil, bpminfo=nil)
679
822
  @KTVMusicBaseInfo = ktvmusicbaseinfo
680
823
  @PlayToken = playtoken
681
824
  @LyricsUrl = lyricsurl
@@ -683,6 +826,7 @@ module TencentCloud
683
826
  @ChorusClipSet = chorusclipset
684
827
  @PreludeInterval = preludeinterval
685
828
  @GenreSet = genreset
829
+ @BPMInfo = bpminfo
686
830
  end
687
831
 
688
832
  def deserialize(params)
@@ -703,6 +847,10 @@ module TencentCloud
703
847
  end
704
848
  @PreludeInterval = params['PreludeInterval']
705
849
  @GenreSet = params['GenreSet']
850
+ unless params['BPMInfo'].nil?
851
+ @BPMInfo = KTVBPMInfo.new
852
+ @BPMInfo.deserialize(params['BPMInfo'])
853
+ end
706
854
  end
707
855
  end
708
856
 
@@ -807,6 +955,57 @@ module TencentCloud
807
955
  end
808
956
  end
809
957
 
958
+ # 标签分组信息。
959
+ class KTVTagGroupInfo < TencentCloud::Common::AbstractModel
960
+ # @param GroupId: 分组 Id。
961
+ # @type GroupId: String
962
+ # @param Name: 分组名。
963
+ # @type Name: String
964
+ # @param TagInfoSet: 标签列表。
965
+ # @type TagInfoSet: Array
966
+
967
+ attr_accessor :GroupId, :Name, :TagInfoSet
968
+
969
+ def initialize(groupid=nil, name=nil, taginfoset=nil)
970
+ @GroupId = groupid
971
+ @Name = name
972
+ @TagInfoSet = taginfoset
973
+ end
974
+
975
+ def deserialize(params)
976
+ @GroupId = params['GroupId']
977
+ @Name = params['Name']
978
+ unless params['TagInfoSet'].nil?
979
+ @TagInfoSet = []
980
+ params['TagInfoSet'].each do |i|
981
+ ktvtaginfo_tmp = KTVTagInfo.new
982
+ ktvtaginfo_tmp.deserialize(i)
983
+ @TagInfoSet << ktvtaginfo_tmp
984
+ end
985
+ end
986
+ end
987
+ end
988
+
989
+ # 标签信息。
990
+ class KTVTagInfo < TencentCloud::Common::AbstractModel
991
+ # @param TagId: 标签 Id。
992
+ # @type TagId: String
993
+ # @param Name: 标签名称。
994
+ # @type Name: String
995
+
996
+ attr_accessor :TagId, :Name
997
+
998
+ def initialize(tagid=nil, name=nil)
999
+ @TagId = tagid
1000
+ @Name = name
1001
+ end
1002
+
1003
+ def deserialize(params)
1004
+ @TagId = params['TagId']
1005
+ @Name = params['Name']
1006
+ end
1007
+ end
1008
+
810
1009
  # 歌曲专辑封面信息。
811
1010
  class MusicAlbumCoverInfo < TencentCloud::Common::AbstractModel
812
1011
  # @param Dimension: 尺寸规格,取值有:
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.410
4
+ version: 3.0.411
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-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common