tencentcloud-sdk-ame 1.0.243 → 1.0.244
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190916/client.rb +96 -0
- data/lib/v20190916/models.rb +423 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce39983202f00830fbbc4aca51ec7908423f791f
|
4
|
+
data.tar.gz: dd6665354b8d6a3a272bfff75282425be2a4855e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e1602be95bd9489929cf6bb28095b05a29a8b92ae63d2c6db2d0cf726f554bbb3c9135eb7bf01146881b90606b3f9e9c481af326065cc1b11476804c84b37f
|
7
|
+
data.tar.gz: bc9e4bd27159cc5703ec60d41fae63bfd597ae82ebac73844444785b16125369f0076030860e863f5cd489d7d61496524228cd801132b88b1ff87d6882c66682
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.244
|
data/lib/v20190916/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 创建机器人,支持进入 RTC 房间,播放直播互动曲库歌曲。
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateKTVRobot.
|
35
|
+
# @type request: :class:`Tencentcloud::ame::V20190916::CreateKTVRobotRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::ame::V20190916::CreateKTVRobotResponse`
|
37
|
+
def CreateKTVRobot(request)
|
38
|
+
body = send_request('CreateKTVRobot', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateKTVRobotResponse.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
|
# 获取授权项目信息列表
|
33
57
|
|
34
58
|
# @param request: Request instance for DescribeAuthInfo.
|
@@ -221,6 +245,30 @@ module TencentCloud
|
|
221
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
246
|
end
|
223
247
|
|
248
|
+
# 查询机器人列表,支持 Id、状态等过滤条件。
|
249
|
+
|
250
|
+
# @param request: Request instance for DescribeKTVRobots.
|
251
|
+
# @type request: :class:`Tencentcloud::ame::V20190916::DescribeKTVRobotsRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::ame::V20190916::DescribeKTVRobotsResponse`
|
253
|
+
def DescribeKTVRobots(request)
|
254
|
+
body = send_request('DescribeKTVRobots', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DescribeKTVRobotsResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 根据接口的模式及歌曲ID来取得歌词信息或者波形图信息。
|
225
273
|
|
226
274
|
# @param request: Request instance for DescribeLyric.
|
@@ -389,6 +437,30 @@ module TencentCloud
|
|
389
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
438
|
end
|
391
439
|
|
440
|
+
# 销毁机器人,机器人退出 RTC 房间。
|
441
|
+
|
442
|
+
# @param request: Request instance for DestroyKTVRobot.
|
443
|
+
# @type request: :class:`Tencentcloud::ame::V20190916::DestroyKTVRobotRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::ame::V20190916::DestroyKTVRobotResponse`
|
445
|
+
def DestroyKTVRobot(request)
|
446
|
+
body = send_request('DestroyKTVRobot', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DestroyKTVRobotResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
392
464
|
# 根据资源方,需要变更的参数,请求该接口进行变更,为空的参数默认为无变更
|
393
465
|
|
394
466
|
# @param request: Request instance for ModifyMusicOnShelves.
|
@@ -485,6 +557,30 @@ module TencentCloud
|
|
485
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
558
|
end
|
487
559
|
|
560
|
+
# 下发操作机器人指令,支持播放、暂停、恢复、歌单设置等操作指令,实现对机器人行为的控制。
|
561
|
+
|
562
|
+
# @param request: Request instance for SyncKTVRobotCommand.
|
563
|
+
# @type request: :class:`Tencentcloud::ame::V20190916::SyncKTVRobotCommandRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::ame::V20190916::SyncKTVRobotCommandResponse`
|
565
|
+
def SyncKTVRobotCommand(request)
|
566
|
+
body = send_request('SyncKTVRobotCommand', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = SyncKTVRobotCommandResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
488
584
|
# 根据资源方所传MusicId进行将歌曲进行下架,多个MusicId使用逗号隔开
|
489
585
|
|
490
586
|
# @param request: Request instance for TakeMusicOffShelves.
|
data/lib/v20190916/models.rb
CHANGED
@@ -107,6 +107,50 @@ module TencentCloud
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
+
# CreateKTVRobot请求参数结构体
|
111
|
+
class CreateKTVRobotRequest < TencentCloud::Common::AbstractModel
|
112
|
+
# @param RTCSystem: RTC厂商类型,取值有:
|
113
|
+
# <li>TRTC</li>
|
114
|
+
# @type RTCSystem: String
|
115
|
+
# @param JoinRoomInput: 进房参数。
|
116
|
+
# @type JoinRoomInput: :class:`Tencentcloud::Ame.v20190916.models.JoinRoomInput`
|
117
|
+
|
118
|
+
attr_accessor :RTCSystem, :JoinRoomInput
|
119
|
+
|
120
|
+
def initialize(rtcsystem=nil, joinroominput=nil)
|
121
|
+
@RTCSystem = rtcsystem
|
122
|
+
@JoinRoomInput = joinroominput
|
123
|
+
end
|
124
|
+
|
125
|
+
def deserialize(params)
|
126
|
+
@RTCSystem = params['RTCSystem']
|
127
|
+
unless params['JoinRoomInput'].nil?
|
128
|
+
@JoinRoomInput = JoinRoomInput.new
|
129
|
+
@JoinRoomInput.deserialize(params['JoinRoomInput'])
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# CreateKTVRobot返回参数结构体
|
135
|
+
class CreateKTVRobotResponse < TencentCloud::Common::AbstractModel
|
136
|
+
# @param RobotId: 机器人Id。
|
137
|
+
# @type RobotId: String
|
138
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
139
|
+
# @type RequestId: String
|
140
|
+
|
141
|
+
attr_accessor :RobotId, :RequestId
|
142
|
+
|
143
|
+
def initialize(robotid=nil, requestid=nil)
|
144
|
+
@RobotId = robotid
|
145
|
+
@RequestId = requestid
|
146
|
+
end
|
147
|
+
|
148
|
+
def deserialize(params)
|
149
|
+
@RobotId = params['RobotId']
|
150
|
+
@RequestId = params['RequestId']
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
110
154
|
# 数据信息
|
111
155
|
class DataInfo < TencentCloud::Common::AbstractModel
|
112
156
|
# @param Name: Song Name
|
@@ -593,6 +637,68 @@ module TencentCloud
|
|
593
637
|
end
|
594
638
|
end
|
595
639
|
|
640
|
+
# DescribeKTVRobots请求参数结构体
|
641
|
+
class DescribeKTVRobotsRequest < TencentCloud::Common::AbstractModel
|
642
|
+
# @param RobotIds: 机器人Id列表。
|
643
|
+
# @type RobotIds: Array
|
644
|
+
# @param Statuses: 机器人状态,取值有:
|
645
|
+
# <li>Play:播放</li>
|
646
|
+
# <li>Pause:暂停</li>
|
647
|
+
# <li>Destroy:销毁</li>
|
648
|
+
# @type Statuses: Array
|
649
|
+
# @param Offset: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
|
650
|
+
# @type Offset: Integer
|
651
|
+
# @param Limit: 分页返回的起始偏移量,默认值:10。
|
652
|
+
# @type Limit: Integer
|
653
|
+
|
654
|
+
attr_accessor :RobotIds, :Statuses, :Offset, :Limit
|
655
|
+
|
656
|
+
def initialize(robotids=nil, statuses=nil, offset=nil, limit=nil)
|
657
|
+
@RobotIds = robotids
|
658
|
+
@Statuses = statuses
|
659
|
+
@Offset = offset
|
660
|
+
@Limit = limit
|
661
|
+
end
|
662
|
+
|
663
|
+
def deserialize(params)
|
664
|
+
@RobotIds = params['RobotIds']
|
665
|
+
@Statuses = params['Statuses']
|
666
|
+
@Offset = params['Offset']
|
667
|
+
@Limit = params['Limit']
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
# DescribeKTVRobots返回参数结构体
|
672
|
+
class DescribeKTVRobotsResponse < TencentCloud::Common::AbstractModel
|
673
|
+
# @param TotalCount: 机器人总数。
|
674
|
+
# @type TotalCount: Integer
|
675
|
+
# @param KTVRobotInfoSet: 机器人信息集合。
|
676
|
+
# @type KTVRobotInfoSet: Array
|
677
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
678
|
+
# @type RequestId: String
|
679
|
+
|
680
|
+
attr_accessor :TotalCount, :KTVRobotInfoSet, :RequestId
|
681
|
+
|
682
|
+
def initialize(totalcount=nil, ktvrobotinfoset=nil, requestid=nil)
|
683
|
+
@TotalCount = totalcount
|
684
|
+
@KTVRobotInfoSet = ktvrobotinfoset
|
685
|
+
@RequestId = requestid
|
686
|
+
end
|
687
|
+
|
688
|
+
def deserialize(params)
|
689
|
+
@TotalCount = params['TotalCount']
|
690
|
+
unless params['KTVRobotInfoSet'].nil?
|
691
|
+
@KTVRobotInfoSet = []
|
692
|
+
params['KTVRobotInfoSet'].each do |i|
|
693
|
+
ktvrobotinfo_tmp = KTVRobotInfo.new
|
694
|
+
ktvrobotinfo_tmp.deserialize(i)
|
695
|
+
@KTVRobotInfoSet << ktvrobotinfo_tmp
|
696
|
+
end
|
697
|
+
end
|
698
|
+
@RequestId = params['RequestId']
|
699
|
+
end
|
700
|
+
end
|
701
|
+
|
596
702
|
# DescribeLyric请求参数结构体
|
597
703
|
class DescribeLyricRequest < TencentCloud::Common::AbstractModel
|
598
704
|
# @param ItemId: 歌曲ID
|
@@ -959,6 +1065,38 @@ module TencentCloud
|
|
959
1065
|
end
|
960
1066
|
end
|
961
1067
|
|
1068
|
+
# DestroyKTVRobot请求参数结构体
|
1069
|
+
class DestroyKTVRobotRequest < TencentCloud::Common::AbstractModel
|
1070
|
+
# @param RobotId: 机器人Id。
|
1071
|
+
# @type RobotId: String
|
1072
|
+
|
1073
|
+
attr_accessor :RobotId
|
1074
|
+
|
1075
|
+
def initialize(robotid=nil)
|
1076
|
+
@RobotId = robotid
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
def deserialize(params)
|
1080
|
+
@RobotId = params['RobotId']
|
1081
|
+
end
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
# DestroyKTVRobot返回参数结构体
|
1085
|
+
class DestroyKTVRobotResponse < TencentCloud::Common::AbstractModel
|
1086
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1087
|
+
# @type RequestId: String
|
1088
|
+
|
1089
|
+
attr_accessor :RequestId
|
1090
|
+
|
1091
|
+
def initialize(requestid=nil)
|
1092
|
+
@RequestId = requestid
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
def deserialize(params)
|
1096
|
+
@RequestId = params['RequestId']
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
|
962
1100
|
# 图片路径
|
963
1101
|
class ImagePath < TencentCloud::Common::AbstractModel
|
964
1102
|
# @param Key: station图片大小及类别
|
@@ -1030,6 +1168,25 @@ module TencentCloud
|
|
1030
1168
|
end
|
1031
1169
|
end
|
1032
1170
|
|
1171
|
+
# 直播进房输入参数
|
1172
|
+
class JoinRoomInput < TencentCloud::Common::AbstractModel
|
1173
|
+
# @param TRTCJoinRoomInput: TRTC进房参数
|
1174
|
+
# @type TRTCJoinRoomInput: :class:`Tencentcloud::Ame.v20190916.models.TRTCJoinRoomInput`
|
1175
|
+
|
1176
|
+
attr_accessor :TRTCJoinRoomInput
|
1177
|
+
|
1178
|
+
def initialize(trtcjoinroominput=nil)
|
1179
|
+
@TRTCJoinRoomInput = trtcjoinroominput
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
def deserialize(params)
|
1183
|
+
unless params['TRTCJoinRoomInput'].nil?
|
1184
|
+
@TRTCJoinRoomInput = TRTCJoinRoomInput.new
|
1185
|
+
@TRTCJoinRoomInput.deserialize(params['TRTCJoinRoomInput'])
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
end
|
1189
|
+
|
1033
1190
|
# KTV 曲目基础信息
|
1034
1191
|
class KTVMusicBaseInfo < TencentCloud::Common::AbstractModel
|
1035
1192
|
# @param MusicId: 歌曲 Id
|
@@ -1125,6 +1282,60 @@ module TencentCloud
|
|
1125
1282
|
end
|
1126
1283
|
end
|
1127
1284
|
|
1285
|
+
# 机器人信息
|
1286
|
+
class KTVRobotInfo < TencentCloud::Common::AbstractModel
|
1287
|
+
# @param RobotId: 机器人Id。
|
1288
|
+
# @type RobotId: String
|
1289
|
+
# @param Status: 状态,取值有:
|
1290
|
+
# <li>Play:播放</li>
|
1291
|
+
# <li>Pause:暂停</li>
|
1292
|
+
# <li>Destroy:销毁</li>
|
1293
|
+
# @type Status: String
|
1294
|
+
# @param Playlists: 播放列表。
|
1295
|
+
# @type Playlists: Array
|
1296
|
+
# @param CurIndex: 当前歌单索引位置。
|
1297
|
+
# @type CurIndex: Integer
|
1298
|
+
# @param Position: 播放进度,单位:毫秒。
|
1299
|
+
# @type Position: Integer
|
1300
|
+
# @param SetAudioParamInput: 音频参数
|
1301
|
+
# @type SetAudioParamInput: :class:`Tencentcloud::Ame.v20190916.models.SetAudioParamCommandInput`
|
1302
|
+
# @param JoinRoomInput: 进房信息
|
1303
|
+
# @type JoinRoomInput: :class:`Tencentcloud::Ame.v20190916.models.JoinRoomInput`
|
1304
|
+
# @param RTCSystem: RTC厂商类型,取值有:
|
1305
|
+
# <li>TRTC</li>
|
1306
|
+
# @type RTCSystem: String
|
1307
|
+
|
1308
|
+
attr_accessor :RobotId, :Status, :Playlists, :CurIndex, :Position, :SetAudioParamInput, :JoinRoomInput, :RTCSystem
|
1309
|
+
|
1310
|
+
def initialize(robotid=nil, status=nil, playlists=nil, curindex=nil, position=nil, setaudioparaminput=nil, joinroominput=nil, rtcsystem=nil)
|
1311
|
+
@RobotId = robotid
|
1312
|
+
@Status = status
|
1313
|
+
@Playlists = playlists
|
1314
|
+
@CurIndex = curindex
|
1315
|
+
@Position = position
|
1316
|
+
@SetAudioParamInput = setaudioparaminput
|
1317
|
+
@JoinRoomInput = joinroominput
|
1318
|
+
@RTCSystem = rtcsystem
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
def deserialize(params)
|
1322
|
+
@RobotId = params['RobotId']
|
1323
|
+
@Status = params['Status']
|
1324
|
+
@Playlists = params['Playlists']
|
1325
|
+
@CurIndex = params['CurIndex']
|
1326
|
+
@Position = params['Position']
|
1327
|
+
unless params['SetAudioParamInput'].nil?
|
1328
|
+
@SetAudioParamInput = SetAudioParamCommandInput.new
|
1329
|
+
@SetAudioParamInput.deserialize(params['SetAudioParamInput'])
|
1330
|
+
end
|
1331
|
+
unless params['JoinRoomInput'].nil?
|
1332
|
+
@JoinRoomInput = JoinRoomInput.new
|
1333
|
+
@JoinRoomInput.deserialize(params['JoinRoomInput'])
|
1334
|
+
end
|
1335
|
+
@RTCSystem = params['RTCSystem']
|
1336
|
+
end
|
1337
|
+
end
|
1338
|
+
|
1128
1339
|
# 歌词信息
|
1129
1340
|
class Lyric < TencentCloud::Common::AbstractModel
|
1130
1341
|
# @param Url: 歌词cdn地址
|
@@ -1504,6 +1715,22 @@ module TencentCloud
|
|
1504
1715
|
end
|
1505
1716
|
end
|
1506
1717
|
|
1718
|
+
# 播放指令输入参数
|
1719
|
+
class PlayCommandInput < TencentCloud::Common::AbstractModel
|
1720
|
+
# @param Index: 歌曲位置索引。
|
1721
|
+
# @type Index: Integer
|
1722
|
+
|
1723
|
+
attr_accessor :Index
|
1724
|
+
|
1725
|
+
def initialize(index=nil)
|
1726
|
+
@Index = index
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
def deserialize(params)
|
1730
|
+
@Index = params['Index']
|
1731
|
+
end
|
1732
|
+
end
|
1733
|
+
|
1507
1734
|
# PutMusicOnTheShelves请求参数结构体
|
1508
1735
|
class PutMusicOnTheShelvesRequest < TencentCloud::Common::AbstractModel
|
1509
1736
|
# @param MusicIds: 资源方歌曲Id
|
@@ -1650,6 +1877,95 @@ module TencentCloud
|
|
1650
1877
|
end
|
1651
1878
|
end
|
1652
1879
|
|
1880
|
+
# 调整播放进度指令参数
|
1881
|
+
class SeekCommandInput < TencentCloud::Common::AbstractModel
|
1882
|
+
# @param Position: 播放位置,单位:毫秒。
|
1883
|
+
# @type Position: Integer
|
1884
|
+
|
1885
|
+
attr_accessor :Position
|
1886
|
+
|
1887
|
+
def initialize(position=nil)
|
1888
|
+
@Position = position
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
def deserialize(params)
|
1892
|
+
@Position = params['Position']
|
1893
|
+
end
|
1894
|
+
end
|
1895
|
+
|
1896
|
+
# 发送自定义信息指令参数
|
1897
|
+
class SendMessageCommandInput < TencentCloud::Common::AbstractModel
|
1898
|
+
# @param Message: 自定义消息,json格式字符串。
|
1899
|
+
# @type Message: String
|
1900
|
+
# @param Repeat: 消息重复次数,默认为 1。
|
1901
|
+
# @type Repeat: Integer
|
1902
|
+
|
1903
|
+
attr_accessor :Message, :Repeat
|
1904
|
+
|
1905
|
+
def initialize(message=nil, repeat=nil)
|
1906
|
+
@Message = message
|
1907
|
+
@Repeat = repeat
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
def deserialize(params)
|
1911
|
+
@Message = params['Message']
|
1912
|
+
@Repeat = params['Repeat']
|
1913
|
+
end
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
# 音频参数信息
|
1917
|
+
class SetAudioParamCommandInput < TencentCloud::Common::AbstractModel
|
1918
|
+
# @param Definition: 规格,取值有:
|
1919
|
+
# <li>audio/mi:低规格</li>
|
1920
|
+
# <li>audio/lo:中规格</li>
|
1921
|
+
# <li>audio/hi:高规格</li>
|
1922
|
+
# @type Definition: String
|
1923
|
+
# @param Type: 音频类型,取值有:
|
1924
|
+
# <li>Original:原唱</li>
|
1925
|
+
# <li>Accompaniment:伴奏</li>
|
1926
|
+
# @type Type: String
|
1927
|
+
|
1928
|
+
attr_accessor :Definition, :Type
|
1929
|
+
|
1930
|
+
def initialize(definition=nil, type=nil)
|
1931
|
+
@Definition = definition
|
1932
|
+
@Type = type
|
1933
|
+
end
|
1934
|
+
|
1935
|
+
def deserialize(params)
|
1936
|
+
@Definition = params['Definition']
|
1937
|
+
@Type = params['Type']
|
1938
|
+
end
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
# 设置播放列表指令参数
|
1942
|
+
class SetPlaylistCommandInput < TencentCloud::Common::AbstractModel
|
1943
|
+
# @param Type: 变更类型,取值有:
|
1944
|
+
# <li>Add:添加</li>
|
1945
|
+
# <li>Delete:删除</li>
|
1946
|
+
# @type Type: String
|
1947
|
+
# @param Index: 歌单索引位置,
|
1948
|
+
# 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置;
|
1949
|
+
# 当 Type 取 Delete 时,表示要删除的位置。
|
1950
|
+
# @type Index: Integer
|
1951
|
+
# @param MusicIds: 歌曲 ID 列表,当 Type 取 Add 时,必填。
|
1952
|
+
# @type MusicIds: Array
|
1953
|
+
|
1954
|
+
attr_accessor :Type, :Index, :MusicIds
|
1955
|
+
|
1956
|
+
def initialize(type=nil, index=nil, musicids=nil)
|
1957
|
+
@Type = type
|
1958
|
+
@Index = index
|
1959
|
+
@MusicIds = musicids
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
def deserialize(params)
|
1963
|
+
@Type = params['Type']
|
1964
|
+
@Index = params['Index']
|
1965
|
+
@MusicIds = params['MusicIds']
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
|
1653
1969
|
# 分类内容
|
1654
1970
|
class Station < TencentCloud::Common::AbstractModel
|
1655
1971
|
# @param CategoryID: StationID
|
@@ -1693,6 +2009,113 @@ module TencentCloud
|
|
1693
2009
|
end
|
1694
2010
|
end
|
1695
2011
|
|
2012
|
+
# SyncKTVRobotCommand请求参数结构体
|
2013
|
+
class SyncKTVRobotCommandRequest < TencentCloud::Common::AbstractModel
|
2014
|
+
# @param RobotId: 机器人Id。
|
2015
|
+
# @type RobotId: String
|
2016
|
+
# @param Command: 指令,取值有:
|
2017
|
+
# <li>Play:播放</li>
|
2018
|
+
# <li>Pause:暂停</li>
|
2019
|
+
# <li>SwitchPrevious:上一首</li>
|
2020
|
+
# <li>SwitchNext:下一首</li>
|
2021
|
+
# <li>Seek:调整播放进度</li>
|
2022
|
+
# <li>SetPlaylist:歌单变更</li>
|
2023
|
+
# <li>SetAudioParam:音频参数变更</li>
|
2024
|
+
# <li>SendMessage:发送自定义消息</li>
|
2025
|
+
# @type Command: String
|
2026
|
+
# @param PlayCommandInput: 播放参数。
|
2027
|
+
# @type PlayCommandInput: :class:`Tencentcloud::Ame.v20190916.models.PlayCommandInput`
|
2028
|
+
# @param SetPlaylistCommandInput: 播放列表变更信息,当Command取SetPlaylist时,必填。
|
2029
|
+
# @type SetPlaylistCommandInput: :class:`Tencentcloud::Ame.v20190916.models.SetPlaylistCommandInput`
|
2030
|
+
# @param SeekCommandInput: 播放进度,当Command取Seek时,必填。
|
2031
|
+
# @type SeekCommandInput: :class:`Tencentcloud::Ame.v20190916.models.SeekCommandInput`
|
2032
|
+
# @param SetAudioParamCommandInput: 音频参数,当Command取SetAudioParam时,必填。
|
2033
|
+
# @type SetAudioParamCommandInput: :class:`Tencentcloud::Ame.v20190916.models.SetAudioParamCommandInput`
|
2034
|
+
# @param SendMessageCommandInput: 自定义消息,当Command取SendMessage时,必填。
|
2035
|
+
# @type SendMessageCommandInput: :class:`Tencentcloud::Ame.v20190916.models.SendMessageCommandInput`
|
2036
|
+
|
2037
|
+
attr_accessor :RobotId, :Command, :PlayCommandInput, :SetPlaylistCommandInput, :SeekCommandInput, :SetAudioParamCommandInput, :SendMessageCommandInput
|
2038
|
+
|
2039
|
+
def initialize(robotid=nil, command=nil, playcommandinput=nil, setplaylistcommandinput=nil, seekcommandinput=nil, setaudioparamcommandinput=nil, sendmessagecommandinput=nil)
|
2040
|
+
@RobotId = robotid
|
2041
|
+
@Command = command
|
2042
|
+
@PlayCommandInput = playcommandinput
|
2043
|
+
@SetPlaylistCommandInput = setplaylistcommandinput
|
2044
|
+
@SeekCommandInput = seekcommandinput
|
2045
|
+
@SetAudioParamCommandInput = setaudioparamcommandinput
|
2046
|
+
@SendMessageCommandInput = sendmessagecommandinput
|
2047
|
+
end
|
2048
|
+
|
2049
|
+
def deserialize(params)
|
2050
|
+
@RobotId = params['RobotId']
|
2051
|
+
@Command = params['Command']
|
2052
|
+
unless params['PlayCommandInput'].nil?
|
2053
|
+
@PlayCommandInput = PlayCommandInput.new
|
2054
|
+
@PlayCommandInput.deserialize(params['PlayCommandInput'])
|
2055
|
+
end
|
2056
|
+
unless params['SetPlaylistCommandInput'].nil?
|
2057
|
+
@SetPlaylistCommandInput = SetPlaylistCommandInput.new
|
2058
|
+
@SetPlaylistCommandInput.deserialize(params['SetPlaylistCommandInput'])
|
2059
|
+
end
|
2060
|
+
unless params['SeekCommandInput'].nil?
|
2061
|
+
@SeekCommandInput = SeekCommandInput.new
|
2062
|
+
@SeekCommandInput.deserialize(params['SeekCommandInput'])
|
2063
|
+
end
|
2064
|
+
unless params['SetAudioParamCommandInput'].nil?
|
2065
|
+
@SetAudioParamCommandInput = SetAudioParamCommandInput.new
|
2066
|
+
@SetAudioParamCommandInput.deserialize(params['SetAudioParamCommandInput'])
|
2067
|
+
end
|
2068
|
+
unless params['SendMessageCommandInput'].nil?
|
2069
|
+
@SendMessageCommandInput = SendMessageCommandInput.new
|
2070
|
+
@SendMessageCommandInput.deserialize(params['SendMessageCommandInput'])
|
2071
|
+
end
|
2072
|
+
end
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
# SyncKTVRobotCommand返回参数结构体
|
2076
|
+
class SyncKTVRobotCommandResponse < TencentCloud::Common::AbstractModel
|
2077
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2078
|
+
# @type RequestId: String
|
2079
|
+
|
2080
|
+
attr_accessor :RequestId
|
2081
|
+
|
2082
|
+
def initialize(requestid=nil)
|
2083
|
+
@RequestId = requestid
|
2084
|
+
end
|
2085
|
+
|
2086
|
+
def deserialize(params)
|
2087
|
+
@RequestId = params['RequestId']
|
2088
|
+
end
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
# TRTC推流进房信息
|
2092
|
+
class TRTCJoinRoomInput < TencentCloud::Common::AbstractModel
|
2093
|
+
# @param Sign: 签名。
|
2094
|
+
# @type Sign: String
|
2095
|
+
# @param RoomId: 房间号。
|
2096
|
+
# @type RoomId: String
|
2097
|
+
# @param SdkAppId: 推流应用ID。
|
2098
|
+
# @type SdkAppId: String
|
2099
|
+
# @param UserId: 用户唯一标识。
|
2100
|
+
# @type UserId: String
|
2101
|
+
|
2102
|
+
attr_accessor :Sign, :RoomId, :SdkAppId, :UserId
|
2103
|
+
|
2104
|
+
def initialize(sign=nil, roomid=nil, sdkappid=nil, userid=nil)
|
2105
|
+
@Sign = sign
|
2106
|
+
@RoomId = roomid
|
2107
|
+
@SdkAppId = sdkappid
|
2108
|
+
@UserId = userid
|
2109
|
+
end
|
2110
|
+
|
2111
|
+
def deserialize(params)
|
2112
|
+
@Sign = params['Sign']
|
2113
|
+
@RoomId = params['RoomId']
|
2114
|
+
@SdkAppId = params['SdkAppId']
|
2115
|
+
@UserId = params['UserId']
|
2116
|
+
end
|
2117
|
+
end
|
2118
|
+
|
1696
2119
|
# 下架歌曲复合结构
|
1697
2120
|
class TakeMusicOffShelves < TencentCloud::Common::AbstractModel
|
1698
2121
|
# @param MusicIds: 资源方对应音乐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.
|
4
|
+
version: 1.0.244
|
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-
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|