tencentcloud-sdk-yinsuda 3.0.390 → 3.0.397

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: f5925551de5831a7f97cfb3e2c1170d3d59b8cea
4
- data.tar.gz: 544d47ef1fcb75d1260aaca4cf8916dca7ef0fe8
3
+ metadata.gz: b1b40c5a54207ffe3ec005309896218ac69d905a
4
+ data.tar.gz: a2101f25d25a54b9ce40c16a9ab351f440c8464c
5
5
  SHA512:
6
- metadata.gz: b98f45ef67aeb9b8750368f00a48c113be6db598b0ecc21e1e22aa7944af606fe1eacddd51649959793268241583fde402e9876046c5b91fa1cea544c6f547a8
7
- data.tar.gz: 610876c5521597d09ee8f32ed5bcad71e0cd250d649964a24cc3aa4ec7a650b115efe5522974bb6a29bf8c9b6eb4c8bee2bd41c335d316dbadbdb3723279555b
6
+ metadata.gz: c83d41fc65fbd9b9115930150f4b1ef9d68dc694b4c706c0c1244783c721e8a0859d44607806c54acd63a3d4a4605e828bc2935c599de9f3fd93140674e23ee7
7
+ data.tar.gz: 793072fae54de3a5f31c51e0609333b9cb61aa2b52f40a1348571a1e99cc224f8b1d25d9a23c82fd5fe2cedaedabf88a4c1fd87e9d4877c3fb1bfeb0e68ff0b5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.390
1
+ 3.0.397
@@ -53,6 +53,54 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 创建机器人,支持进入 RTC 房间,播放曲库歌曲。
57
+
58
+ # @param request: Request instance for CreateKTVRobot.
59
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::CreateKTVRobotRequest`
60
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::CreateKTVRobotResponse`
61
+ def CreateKTVRobot(request)
62
+ body = send_request('CreateKTVRobot', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateKTVRobotResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 根据输入的规则匹配曲库中的歌曲。
81
+
82
+ # @param request: Request instance for DescribeKTVMatchMusics.
83
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMatchMusicsRequest`
84
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMatchMusicsResponse`
85
+ def DescribeKTVMatchMusics(request)
86
+ body = send_request('DescribeKTVMatchMusics', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeKTVMatchMusicsResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
56
104
  # 根据歌单 Id 获取歌单详情。
57
105
 
58
106
  # @param request: Request instance for DescribeKTVPlaylistDetail.
@@ -101,6 +149,30 @@ module TencentCloud
101
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
150
  end
103
151
 
152
+ # 获取机器人列表,支持 Id、状态等过滤条件。
153
+
154
+ # @param request: Request instance for DescribeKTVRobots.
155
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVRobotsRequest`
156
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVRobotsResponse`
157
+ def DescribeKTVRobots(request)
158
+ body = send_request('DescribeKTVRobots', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeKTVRobotsResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
104
176
  # 根据关键词获取联想词列表。
105
177
 
106
178
  # @param request: Request instance for DescribeKTVSuggestions.
@@ -125,6 +197,30 @@ module TencentCloud
125
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
198
  end
127
199
 
200
+ # 销毁机器人,机器人退出 RTC 房间。
201
+
202
+ # @param request: Request instance for DestroyKTVRobot.
203
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::DestroyKTVRobotRequest`
204
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::DestroyKTVRobotResponse`
205
+ def DestroyKTVRobot(request)
206
+ body = send_request('DestroyKTVRobot', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DestroyKTVRobotResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
128
224
  # 根据关键词搜索歌曲,返回相关歌曲列表。
129
225
 
130
226
  # @param request: Request instance for SearchKTVMusics.
@@ -149,6 +245,30 @@ module TencentCloud
149
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
246
  end
151
247
 
248
+ # 下发操作机器人指令,支持播放、暂停、恢复、歌单设置等操作指令,实现对机器人行为的控制。
249
+
250
+ # @param request: Request instance for SyncKTVRobotCommand.
251
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::SyncKTVRobotCommandRequest`
252
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::SyncKTVRobotCommandResponse`
253
+ def SyncKTVRobotCommand(request)
254
+ body = send_request('SyncKTVRobotCommand', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = SyncKTVRobotCommandResponse.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
+
152
272
 
153
273
  end
154
274
  end
@@ -92,6 +92,138 @@ module TencentCloud
92
92
  end
93
93
  end
94
94
 
95
+ # CreateKTVRobot请求参数结构体
96
+ class CreateKTVRobotRequest < TencentCloud::Common::AbstractModel
97
+ # @param AppName: 应用名称。
98
+ # @type AppName: String
99
+ # @param UserId: 用户标识。
100
+ # @type UserId: String
101
+ # @param RTCSystem: RTC厂商类型,取值有:
102
+ # <li>TRTC</li>
103
+ # @type RTCSystem: String
104
+ # @param JoinRoomInput: 进房参数。
105
+ # @type JoinRoomInput: :class:`Tencentcloud::Yinsuda.v20220527.models.JoinRoomInput`
106
+ # @param SyncRobotCommands: 创建机器人时初始化参数。
107
+ # @type SyncRobotCommands: Array
108
+
109
+ attr_accessor :AppName, :UserId, :RTCSystem, :JoinRoomInput, :SyncRobotCommands
110
+
111
+ def initialize(appname=nil, userid=nil, rtcsystem=nil, joinroominput=nil, syncrobotcommands=nil)
112
+ @AppName = appname
113
+ @UserId = userid
114
+ @RTCSystem = rtcsystem
115
+ @JoinRoomInput = joinroominput
116
+ @SyncRobotCommands = syncrobotcommands
117
+ end
118
+
119
+ def deserialize(params)
120
+ @AppName = params['AppName']
121
+ @UserId = params['UserId']
122
+ @RTCSystem = params['RTCSystem']
123
+ unless params['JoinRoomInput'].nil?
124
+ @JoinRoomInput = JoinRoomInput.new
125
+ @JoinRoomInput.deserialize(params['JoinRoomInput'])
126
+ end
127
+ unless params['SyncRobotCommands'].nil?
128
+ @SyncRobotCommands = []
129
+ params['SyncRobotCommands'].each do |i|
130
+ syncrobotcommand_tmp = SyncRobotCommand.new
131
+ syncrobotcommand_tmp.deserialize(i)
132
+ @SyncRobotCommands << syncrobotcommand_tmp
133
+ end
134
+ end
135
+ end
136
+ end
137
+
138
+ # CreateKTVRobot返回参数结构体
139
+ class CreateKTVRobotResponse < TencentCloud::Common::AbstractModel
140
+ # @param RobotId: 机器人Id。
141
+ # @type RobotId: String
142
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
143
+ # @type RequestId: String
144
+
145
+ attr_accessor :RobotId, :RequestId
146
+
147
+ def initialize(robotid=nil, requestid=nil)
148
+ @RobotId = robotid
149
+ @RequestId = requestid
150
+ end
151
+
152
+ def deserialize(params)
153
+ @RobotId = params['RobotId']
154
+ @RequestId = params['RequestId']
155
+ end
156
+ end
157
+
158
+ # DescribeKTVMatchMusics请求参数结构体
159
+ class DescribeKTVMatchMusicsRequest < TencentCloud::Common::AbstractModel
160
+ # @param AppName: 应用名称。
161
+ # @type AppName: String
162
+ # @param UserId: 用户标识。
163
+ # @type UserId: String
164
+ # @param Rules: 匹配规则列表。
165
+ # @type Rules: Array
166
+
167
+ attr_accessor :AppName, :UserId, :Rules
168
+
169
+ def initialize(appname=nil, userid=nil, rules=nil)
170
+ @AppName = appname
171
+ @UserId = userid
172
+ @Rules = rules
173
+ end
174
+
175
+ def deserialize(params)
176
+ @AppName = params['AppName']
177
+ @UserId = params['UserId']
178
+ unless params['Rules'].nil?
179
+ @Rules = []
180
+ params['Rules'].each do |i|
181
+ ktvmatchrule_tmp = KTVMatchRule.new
182
+ ktvmatchrule_tmp.deserialize(i)
183
+ @Rules << ktvmatchrule_tmp
184
+ end
185
+ end
186
+ end
187
+ end
188
+
189
+ # DescribeKTVMatchMusics返回参数结构体
190
+ class DescribeKTVMatchMusicsResponse < TencentCloud::Common::AbstractModel
191
+ # @param MatchMusicSet: 匹配到的歌曲列表。
192
+ # @type MatchMusicSet: Array
193
+ # @param NotMatchRuleSet: 未匹配的规则列表。
194
+ # @type NotMatchRuleSet: Array
195
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
196
+ # @type RequestId: String
197
+
198
+ attr_accessor :MatchMusicSet, :NotMatchRuleSet, :RequestId
199
+
200
+ def initialize(matchmusicset=nil, notmatchruleset=nil, requestid=nil)
201
+ @MatchMusicSet = matchmusicset
202
+ @NotMatchRuleSet = notmatchruleset
203
+ @RequestId = requestid
204
+ end
205
+
206
+ def deserialize(params)
207
+ unless params['MatchMusicSet'].nil?
208
+ @MatchMusicSet = []
209
+ params['MatchMusicSet'].each do |i|
210
+ ktvmatchmusic_tmp = KTVMatchMusic.new
211
+ ktvmatchmusic_tmp.deserialize(i)
212
+ @MatchMusicSet << ktvmatchmusic_tmp
213
+ end
214
+ end
215
+ unless params['NotMatchRuleSet'].nil?
216
+ @NotMatchRuleSet = []
217
+ params['NotMatchRuleSet'].each do |i|
218
+ ktvmatchrule_tmp = KTVMatchRule.new
219
+ ktvmatchrule_tmp.deserialize(i)
220
+ @NotMatchRuleSet << ktvmatchrule_tmp
221
+ end
222
+ end
223
+ @RequestId = params['RequestId']
224
+ end
225
+ end
226
+
95
227
  # DescribeKTVPlaylistDetail请求参数结构体
96
228
  class DescribeKTVPlaylistDetailRequest < TencentCloud::Common::AbstractModel
97
229
  # @param AppName: 应用名称。
@@ -214,6 +346,84 @@ module TencentCloud
214
346
  end
215
347
  end
216
348
 
349
+ # DescribeKTVRobots请求参数结构体
350
+ class DescribeKTVRobotsRequest < TencentCloud::Common::AbstractModel
351
+ # @param AppName: 应用名称。
352
+ # @type AppName: String
353
+ # @param UserId: 用户标识。
354
+ # @type UserId: String
355
+ # @param RobotIds: 机器人Id列表。
356
+ # @type RobotIds: Array
357
+ # @param Statuses: 机器人状态,取值有:
358
+ # <li>Play:播放</li>
359
+ # <li>Pause:暂停</li>
360
+ # <li>Destroy:销毁</li>
361
+ # @type Statuses: Array
362
+ # @param CreateTime: 匹配创建时间在此时间段内的机器人。
363
+ # <li>包含所指定的头尾时间点。</li>
364
+ # @type CreateTime: :class:`Tencentcloud::Yinsuda.v20220527.models.TimeRange`
365
+ # @param Offset: 分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
366
+ # @type Offset: Integer
367
+ # @param Limit: 分页返回的起始偏移量,默认值:10。
368
+ # @type Limit: Integer
369
+
370
+ attr_accessor :AppName, :UserId, :RobotIds, :Statuses, :CreateTime, :Offset, :Limit
371
+
372
+ def initialize(appname=nil, userid=nil, robotids=nil, statuses=nil, createtime=nil, offset=nil, limit=nil)
373
+ @AppName = appname
374
+ @UserId = userid
375
+ @RobotIds = robotids
376
+ @Statuses = statuses
377
+ @CreateTime = createtime
378
+ @Offset = offset
379
+ @Limit = limit
380
+ end
381
+
382
+ def deserialize(params)
383
+ @AppName = params['AppName']
384
+ @UserId = params['UserId']
385
+ @RobotIds = params['RobotIds']
386
+ @Statuses = params['Statuses']
387
+ unless params['CreateTime'].nil?
388
+ @CreateTime = TimeRange.new
389
+ @CreateTime.deserialize(params['CreateTime'])
390
+ end
391
+ @Offset = params['Offset']
392
+ @Limit = params['Limit']
393
+ end
394
+ end
395
+
396
+ # DescribeKTVRobots返回参数结构体
397
+ class DescribeKTVRobotsResponse < TencentCloud::Common::AbstractModel
398
+ # @param TotalCount: 机器人总数。
399
+ # @type TotalCount: Integer
400
+ # @param KTVRobotInfoSet: 机器人信息集合。
401
+ # @type KTVRobotInfoSet: Array
402
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
403
+ # @type RequestId: String
404
+
405
+ attr_accessor :TotalCount, :KTVRobotInfoSet, :RequestId
406
+
407
+ def initialize(totalcount=nil, ktvrobotinfoset=nil, requestid=nil)
408
+ @TotalCount = totalcount
409
+ @KTVRobotInfoSet = ktvrobotinfoset
410
+ @RequestId = requestid
411
+ end
412
+
413
+ def deserialize(params)
414
+ @TotalCount = params['TotalCount']
415
+ unless params['KTVRobotInfoSet'].nil?
416
+ @KTVRobotInfoSet = []
417
+ params['KTVRobotInfoSet'].each do |i|
418
+ ktvrobotinfo_tmp = KTVRobotInfo.new
419
+ ktvrobotinfo_tmp.deserialize(i)
420
+ @KTVRobotInfoSet << ktvrobotinfo_tmp
421
+ end
422
+ end
423
+ @RequestId = params['RequestId']
424
+ end
425
+ end
426
+
217
427
  # DescribeKTVSuggestions请求参数结构体
218
428
  class DescribeKTVSuggestionsRequest < TencentCloud::Common::AbstractModel
219
429
  # @param AppName: 应用名称。
@@ -265,6 +475,135 @@ module TencentCloud
265
475
  end
266
476
  end
267
477
 
478
+ # DestroyKTVRobot请求参数结构体
479
+ class DestroyKTVRobotRequest < TencentCloud::Common::AbstractModel
480
+ # @param AppName: 应用名称。
481
+ # @type AppName: String
482
+ # @param UserId: 用户标识。
483
+ # @type UserId: String
484
+ # @param RobotId: 机器人Id。
485
+ # @type RobotId: String
486
+
487
+ attr_accessor :AppName, :UserId, :RobotId
488
+
489
+ def initialize(appname=nil, userid=nil, robotid=nil)
490
+ @AppName = appname
491
+ @UserId = userid
492
+ @RobotId = robotid
493
+ end
494
+
495
+ def deserialize(params)
496
+ @AppName = params['AppName']
497
+ @UserId = params['UserId']
498
+ @RobotId = params['RobotId']
499
+ end
500
+ end
501
+
502
+ # DestroyKTVRobot返回参数结构体
503
+ class DestroyKTVRobotResponse < TencentCloud::Common::AbstractModel
504
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
505
+ # @type RequestId: String
506
+
507
+ attr_accessor :RequestId
508
+
509
+ def initialize(requestid=nil)
510
+ @RequestId = requestid
511
+ end
512
+
513
+ def deserialize(params)
514
+ @RequestId = params['RequestId']
515
+ end
516
+ end
517
+
518
+ # 直播进房输入参数
519
+ class JoinRoomInput < TencentCloud::Common::AbstractModel
520
+ # @param TRTCJoinRoomInput: TRTC进房参数
521
+ # @type TRTCJoinRoomInput: :class:`Tencentcloud::Yinsuda.v20220527.models.TRTCJoinRoomInput`
522
+
523
+ attr_accessor :TRTCJoinRoomInput
524
+
525
+ def initialize(trtcjoinroominput=nil)
526
+ @TRTCJoinRoomInput = trtcjoinroominput
527
+ end
528
+
529
+ def deserialize(params)
530
+ unless params['TRTCJoinRoomInput'].nil?
531
+ @TRTCJoinRoomInput = TRTCJoinRoomInput.new
532
+ @TRTCJoinRoomInput.deserialize(params['TRTCJoinRoomInput'])
533
+ end
534
+ end
535
+ end
536
+
537
+ # 匹配歌曲信息。
538
+ class KTVMatchMusic < TencentCloud::Common::AbstractModel
539
+ # @param KTVMusicBaseInfo: 匹配到的歌曲基础信息。
540
+ # @type KTVMusicBaseInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.KTVMusicBaseInfo`
541
+ # @param MatchRule: 命中规则。
542
+ # @type MatchRule: :class:`Tencentcloud::Yinsuda.v20220527.models.KTVMatchRule`
543
+
544
+ attr_accessor :KTVMusicBaseInfo, :MatchRule
545
+
546
+ def initialize(ktvmusicbaseinfo=nil, matchrule=nil)
547
+ @KTVMusicBaseInfo = ktvmusicbaseinfo
548
+ @MatchRule = matchrule
549
+ end
550
+
551
+ def deserialize(params)
552
+ unless params['KTVMusicBaseInfo'].nil?
553
+ @KTVMusicBaseInfo = KTVMusicBaseInfo.new
554
+ @KTVMusicBaseInfo.deserialize(params['KTVMusicBaseInfo'])
555
+ end
556
+ unless params['MatchRule'].nil?
557
+ @MatchRule = KTVMatchRule.new
558
+ @MatchRule.deserialize(params['MatchRule'])
559
+ end
560
+ end
561
+ end
562
+
563
+ # 歌曲匹配规则。
564
+ class KTVMatchRule < TencentCloud::Common::AbstractModel
565
+ # @param AMEMusicId: AME 曲库 Id。
566
+ # @type AMEMusicId: String
567
+ # @param MusicInfo: 歌曲匹配信息。
568
+ # 注意:此字段可能返回 null,表示取不到有效值。
569
+ # @type MusicInfo: :class:`Tencentcloud::Yinsuda.v20220527.models.KTVMatchRuleMusicInfo`
570
+
571
+ attr_accessor :AMEMusicId, :MusicInfo
572
+
573
+ def initialize(amemusicid=nil, musicinfo=nil)
574
+ @AMEMusicId = amemusicid
575
+ @MusicInfo = musicinfo
576
+ end
577
+
578
+ def deserialize(params)
579
+ @AMEMusicId = params['AMEMusicId']
580
+ unless params['MusicInfo'].nil?
581
+ @MusicInfo = KTVMatchRuleMusicInfo.new
582
+ @MusicInfo.deserialize(params['MusicInfo'])
583
+ end
584
+ end
585
+ end
586
+
587
+ # 歌曲信息匹配。
588
+ class KTVMatchRuleMusicInfo < TencentCloud::Common::AbstractModel
589
+ # @param MusicName: 歌曲名称。
590
+ # @type MusicName: String
591
+ # @param SingerSet: 歌手列表。
592
+ # @type SingerSet: Array
593
+
594
+ attr_accessor :MusicName, :SingerSet
595
+
596
+ def initialize(musicname=nil, singerset=nil)
597
+ @MusicName = musicname
598
+ @SingerSet = singerset
599
+ end
600
+
601
+ def deserialize(params)
602
+ @MusicName = params['MusicName']
603
+ @SingerSet = params['SingerSet']
604
+ end
605
+ end
606
+
268
607
  # 歌曲基础信息。
269
608
  class KTVMusicBaseInfo < TencentCloud::Common::AbstractModel
270
609
  # @param MusicId: 歌曲Id。
@@ -387,6 +726,71 @@ module TencentCloud
387
726
  end
388
727
  end
389
728
 
729
+ # 机器人信息
730
+ class KTVRobotInfo < TencentCloud::Common::AbstractModel
731
+ # @param RobotId: 机器人Id。
732
+ # @type RobotId: String
733
+ # @param Status: 状态,取值有:
734
+ # <li>Play:播放</li>
735
+ # <li>Pause:暂停</li>
736
+ # <li>Destroy:销毁</li>
737
+ # @type Status: String
738
+ # @param Playlists: 播放列表。
739
+ # @type Playlists: Array
740
+ # @param CurIndex: 当前歌单索引位置。
741
+ # @type CurIndex: Integer
742
+ # @param Position: 播放进度,单位:毫秒。
743
+ # @type Position: Integer
744
+ # @param SetAudioParamInput: 音频参数。
745
+ # @type SetAudioParamInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SetAudioParamCommandInput`
746
+ # @param JoinRoomInput: 进房信息。
747
+ # @type JoinRoomInput: :class:`Tencentcloud::Yinsuda.v20220527.models.JoinRoomInput`
748
+ # @param RTCSystem: RTC厂商类型,取值有:
749
+ # <li>TRTC</li>
750
+ # @type RTCSystem: String
751
+ # @param SetPlayModeInput: 播放模式,PlayMode取值有:
752
+ # <li>RepeatPlaylist:列表循环</li>
753
+ # <li>Order:顺序播放</li>
754
+ # <li>RepeatSingle:单曲循环</li>
755
+ # <li>Shuffle:随机播放</li>
756
+ # @type SetPlayModeInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SetPlayModeCommandInput`
757
+
758
+ attr_accessor :RobotId, :Status, :Playlists, :CurIndex, :Position, :SetAudioParamInput, :JoinRoomInput, :RTCSystem, :SetPlayModeInput
759
+
760
+ def initialize(robotid=nil, status=nil, playlists=nil, curindex=nil, position=nil, setaudioparaminput=nil, joinroominput=nil, rtcsystem=nil, setplaymodeinput=nil)
761
+ @RobotId = robotid
762
+ @Status = status
763
+ @Playlists = playlists
764
+ @CurIndex = curindex
765
+ @Position = position
766
+ @SetAudioParamInput = setaudioparaminput
767
+ @JoinRoomInput = joinroominput
768
+ @RTCSystem = rtcsystem
769
+ @SetPlayModeInput = setplaymodeinput
770
+ end
771
+
772
+ def deserialize(params)
773
+ @RobotId = params['RobotId']
774
+ @Status = params['Status']
775
+ @Playlists = params['Playlists']
776
+ @CurIndex = params['CurIndex']
777
+ @Position = params['Position']
778
+ unless params['SetAudioParamInput'].nil?
779
+ @SetAudioParamInput = SetAudioParamCommandInput.new
780
+ @SetAudioParamInput.deserialize(params['SetAudioParamInput'])
781
+ end
782
+ unless params['JoinRoomInput'].nil?
783
+ @JoinRoomInput = JoinRoomInput.new
784
+ @JoinRoomInput.deserialize(params['JoinRoomInput'])
785
+ end
786
+ @RTCSystem = params['RTCSystem']
787
+ unless params['SetPlayModeInput'].nil?
788
+ @SetPlayModeInput = SetPlayModeCommandInput.new
789
+ @SetPlayModeInput.deserialize(params['SetPlayModeInput'])
790
+ end
791
+ end
792
+ end
793
+
390
794
  # 联想词信息。
391
795
  class KTVSuggestionInfo < TencentCloud::Common::AbstractModel
392
796
  # @param Suggestion: 联想词。
@@ -453,6 +857,22 @@ module TencentCloud
453
857
  end
454
858
  end
455
859
 
860
+ # 播放指令输入参数
861
+ class PlayCommandInput < TencentCloud::Common::AbstractModel
862
+ # @param Index: 歌曲位置索引。
863
+ # @type Index: Integer
864
+
865
+ attr_accessor :Index
866
+
867
+ def initialize(index=nil)
868
+ @Index = index
869
+ end
870
+
871
+ def deserialize(params)
872
+ @Index = params['Index']
873
+ end
874
+ end
875
+
456
876
  # SearchKTVMusics请求参数结构体
457
877
  class SearchKTVMusicsRequest < TencentCloud::Common::AbstractModel
458
878
  # @param AppName: 应用名称。
@@ -522,6 +942,314 @@ module TencentCloud
522
942
  end
523
943
  end
524
944
 
945
+ # 调整播放进度指令参数
946
+ class SeekCommandInput < TencentCloud::Common::AbstractModel
947
+ # @param Position: 播放位置,单位:毫秒。
948
+ # @type Position: Integer
949
+
950
+ attr_accessor :Position
951
+
952
+ def initialize(position=nil)
953
+ @Position = position
954
+ end
955
+
956
+ def deserialize(params)
957
+ @Position = params['Position']
958
+ end
959
+ end
960
+
961
+ # 发送自定义信息指令参数
962
+ class SendMessageCommandInput < TencentCloud::Common::AbstractModel
963
+ # @param Message: 自定义消息,json格式字符串。
964
+ # @type Message: String
965
+ # @param Repeat: 消息重复次数,默认为 1。
966
+ # @type Repeat: Integer
967
+
968
+ attr_accessor :Message, :Repeat
969
+
970
+ def initialize(message=nil, repeat=nil)
971
+ @Message = message
972
+ @Repeat = repeat
973
+ end
974
+
975
+ def deserialize(params)
976
+ @Message = params['Message']
977
+ @Repeat = params['Repeat']
978
+ end
979
+ end
980
+
981
+ # 音频参数信息
982
+ class SetAudioParamCommandInput < TencentCloud::Common::AbstractModel
983
+ # @param Type: 音频类型,取值有:
984
+ # <li>Original:原唱</li>
985
+ # <li>Accompaniment:伴奏</li>
986
+ # @type Type: String
987
+
988
+ attr_accessor :Type
989
+
990
+ def initialize(type=nil)
991
+ @Type = type
992
+ end
993
+
994
+ def deserialize(params)
995
+ @Type = params['Type']
996
+ end
997
+ end
998
+
999
+ # 设置销毁模式
1000
+ class SetDestroyModeCommandInput < TencentCloud::Common::AbstractModel
1001
+ # @param DestroyMode: 销毁模式,取值有:
1002
+ # <li>Auto:房间没人时自动销毁</li>
1003
+ # <li>Expire:房间没人时过期自动销毁</li>
1004
+ # <li>Never:不自动销毁,需手动销毁</li>默认为:Auto。
1005
+ # @type DestroyMode: String
1006
+ # @param DestroyExpireTime: 过期销毁时间,单位:秒,当DestroyMode取Expire时必填。
1007
+ # @type DestroyExpireTime: Integer
1008
+
1009
+ attr_accessor :DestroyMode, :DestroyExpireTime
1010
+
1011
+ def initialize(destroymode=nil, destroyexpiretime=nil)
1012
+ @DestroyMode = destroymode
1013
+ @DestroyExpireTime = destroyexpiretime
1014
+ end
1015
+
1016
+ def deserialize(params)
1017
+ @DestroyMode = params['DestroyMode']
1018
+ @DestroyExpireTime = params['DestroyExpireTime']
1019
+ end
1020
+ end
1021
+
1022
+ # 设置播放模式
1023
+ class SetPlayModeCommandInput < TencentCloud::Common::AbstractModel
1024
+ # @param PlayMode: 播放模式,取值有:
1025
+ # <li>RepeatPlaylist:列表循环</li>
1026
+ # <li>Order:顺序播放</li>
1027
+ # <li>RepeatSingle:单曲循环</li>
1028
+ # <li>Shuffle:随机播放</li>
1029
+ # @type PlayMode: String
1030
+
1031
+ attr_accessor :PlayMode
1032
+
1033
+ def initialize(playmode=nil)
1034
+ @PlayMode = playmode
1035
+ end
1036
+
1037
+ def deserialize(params)
1038
+ @PlayMode = params['PlayMode']
1039
+ end
1040
+ end
1041
+
1042
+ # 设置播放列表指令参数
1043
+ class SetPlaylistCommandInput < TencentCloud::Common::AbstractModel
1044
+ # @param Type: 变更类型,取值有:
1045
+ # <li>Add:添加</li>
1046
+ # <li>Delete:删除</li>
1047
+ # <li>ClearList:清空歌曲列表</li>
1048
+ # <li>Move:移动歌曲</li>
1049
+ # @type Type: String
1050
+ # @param Index: 歌单索引位置,
1051
+ # 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置;
1052
+ # 当 Type 取 Delete 时,表示待删除歌曲的位置;
1053
+ # 当 Type 取 Move 时,表示待调整歌曲的位置。
1054
+ # @type Index: Integer
1055
+ # @param ChangedIndex: 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。
1056
+ # @type ChangedIndex: Integer
1057
+ # @param MusicIds: 歌曲 ID 列表,当 Type 取 Add 时,必填。
1058
+ # @type MusicIds: Array
1059
+
1060
+ attr_accessor :Type, :Index, :ChangedIndex, :MusicIds
1061
+
1062
+ def initialize(type=nil, index=nil, changedindex=nil, musicids=nil)
1063
+ @Type = type
1064
+ @Index = index
1065
+ @ChangedIndex = changedindex
1066
+ @MusicIds = musicids
1067
+ end
1068
+
1069
+ def deserialize(params)
1070
+ @Type = params['Type']
1071
+ @Index = params['Index']
1072
+ @ChangedIndex = params['ChangedIndex']
1073
+ @MusicIds = params['MusicIds']
1074
+ end
1075
+ end
1076
+
1077
+ # SyncKTVRobotCommand请求参数结构体
1078
+ class SyncKTVRobotCommandRequest < TencentCloud::Common::AbstractModel
1079
+ # @param AppName: 应用名称。
1080
+ # @type AppName: String
1081
+ # @param UserId: 用户标识。
1082
+ # @type UserId: String
1083
+ # @param RobotId: 机器人Id。
1084
+ # @type RobotId: String
1085
+ # @param SyncRobotCommands: 指令及指令参数数组。
1086
+ # @type SyncRobotCommands: Array
1087
+
1088
+ attr_accessor :AppName, :UserId, :RobotId, :SyncRobotCommands
1089
+
1090
+ def initialize(appname=nil, userid=nil, robotid=nil, syncrobotcommands=nil)
1091
+ @AppName = appname
1092
+ @UserId = userid
1093
+ @RobotId = robotid
1094
+ @SyncRobotCommands = syncrobotcommands
1095
+ end
1096
+
1097
+ def deserialize(params)
1098
+ @AppName = params['AppName']
1099
+ @UserId = params['UserId']
1100
+ @RobotId = params['RobotId']
1101
+ unless params['SyncRobotCommands'].nil?
1102
+ @SyncRobotCommands = []
1103
+ params['SyncRobotCommands'].each do |i|
1104
+ syncrobotcommand_tmp = SyncRobotCommand.new
1105
+ syncrobotcommand_tmp.deserialize(i)
1106
+ @SyncRobotCommands << syncrobotcommand_tmp
1107
+ end
1108
+ end
1109
+ end
1110
+ end
1111
+
1112
+ # SyncKTVRobotCommand返回参数结构体
1113
+ class SyncKTVRobotCommandResponse < TencentCloud::Common::AbstractModel
1114
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1115
+ # @type RequestId: String
1116
+
1117
+ attr_accessor :RequestId
1118
+
1119
+ def initialize(requestid=nil)
1120
+ @RequestId = requestid
1121
+ end
1122
+
1123
+ def deserialize(params)
1124
+ @RequestId = params['RequestId']
1125
+ end
1126
+ end
1127
+
1128
+ # KTV 机器人初始化参数,在创建后自动完成相关初始化工作。
1129
+ class SyncRobotCommand < TencentCloud::Common::AbstractModel
1130
+ # @param Command: 可同时传入多个指令,顺序执行。取值有:
1131
+ # <li>Play:播放</li>
1132
+ # <li>Pause:暂停</li>
1133
+ # <li>SwitchPrevious:上一首</li>
1134
+ # <li>SwitchNext:下一首</li>
1135
+ # <li>SetPlayMode:设置播放模式</li>
1136
+ # <li>Seek:调整播放进度</li>
1137
+ # <li>SetPlaylist:歌单变更</li>
1138
+ # <li>SetAudioParam:音频参数变更</li>
1139
+ # <li>SendMessage:发送自定义消息</li>
1140
+ # <li>SetDestroyMode:设置销毁模式</li>
1141
+ # @type Command: String
1142
+ # @param PlayCommandInput: 播放参数。
1143
+ # @type PlayCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.PlayCommandInput`
1144
+ # @param SetPlaylistCommandInput: 播放列表变更信息,当Command取SetPlaylist时,必填。
1145
+ # @type SetPlaylistCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SetPlaylistCommandInput`
1146
+ # @param SeekCommandInput: 播放进度,当Command取Seek时,必填。
1147
+ # @type SeekCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SeekCommandInput`
1148
+ # @param SetAudioParamCommandInput: 音频参数,当Command取SetAudioParam时,必填。
1149
+ # @type SetAudioParamCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SetAudioParamCommandInput`
1150
+ # @param SendMessageCommandInput: 自定义消息,当Command取SendMessage时,必填。
1151
+ # @type SendMessageCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SendMessageCommandInput`
1152
+ # @param SetPlayModeCommandInput: 播放模式,当Command取SetPlayMode时,必填。
1153
+ # @type SetPlayModeCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SetPlayModeCommandInput`
1154
+ # @param SetDestroyModeCommandInput: 销毁模式,当Command取SetDestroyMode时,必填。
1155
+ # @type SetDestroyModeCommandInput: :class:`Tencentcloud::Yinsuda.v20220527.models.SetDestroyModeCommandInput`
1156
+
1157
+ attr_accessor :Command, :PlayCommandInput, :SetPlaylistCommandInput, :SeekCommandInput, :SetAudioParamCommandInput, :SendMessageCommandInput, :SetPlayModeCommandInput, :SetDestroyModeCommandInput
1158
+
1159
+ def initialize(command=nil, playcommandinput=nil, setplaylistcommandinput=nil, seekcommandinput=nil, setaudioparamcommandinput=nil, sendmessagecommandinput=nil, setplaymodecommandinput=nil, setdestroymodecommandinput=nil)
1160
+ @Command = command
1161
+ @PlayCommandInput = playcommandinput
1162
+ @SetPlaylistCommandInput = setplaylistcommandinput
1163
+ @SeekCommandInput = seekcommandinput
1164
+ @SetAudioParamCommandInput = setaudioparamcommandinput
1165
+ @SendMessageCommandInput = sendmessagecommandinput
1166
+ @SetPlayModeCommandInput = setplaymodecommandinput
1167
+ @SetDestroyModeCommandInput = setdestroymodecommandinput
1168
+ end
1169
+
1170
+ def deserialize(params)
1171
+ @Command = params['Command']
1172
+ unless params['PlayCommandInput'].nil?
1173
+ @PlayCommandInput = PlayCommandInput.new
1174
+ @PlayCommandInput.deserialize(params['PlayCommandInput'])
1175
+ end
1176
+ unless params['SetPlaylistCommandInput'].nil?
1177
+ @SetPlaylistCommandInput = SetPlaylistCommandInput.new
1178
+ @SetPlaylistCommandInput.deserialize(params['SetPlaylistCommandInput'])
1179
+ end
1180
+ unless params['SeekCommandInput'].nil?
1181
+ @SeekCommandInput = SeekCommandInput.new
1182
+ @SeekCommandInput.deserialize(params['SeekCommandInput'])
1183
+ end
1184
+ unless params['SetAudioParamCommandInput'].nil?
1185
+ @SetAudioParamCommandInput = SetAudioParamCommandInput.new
1186
+ @SetAudioParamCommandInput.deserialize(params['SetAudioParamCommandInput'])
1187
+ end
1188
+ unless params['SendMessageCommandInput'].nil?
1189
+ @SendMessageCommandInput = SendMessageCommandInput.new
1190
+ @SendMessageCommandInput.deserialize(params['SendMessageCommandInput'])
1191
+ end
1192
+ unless params['SetPlayModeCommandInput'].nil?
1193
+ @SetPlayModeCommandInput = SetPlayModeCommandInput.new
1194
+ @SetPlayModeCommandInput.deserialize(params['SetPlayModeCommandInput'])
1195
+ end
1196
+ unless params['SetDestroyModeCommandInput'].nil?
1197
+ @SetDestroyModeCommandInput = SetDestroyModeCommandInput.new
1198
+ @SetDestroyModeCommandInput.deserialize(params['SetDestroyModeCommandInput'])
1199
+ end
1200
+ end
1201
+ end
1202
+
1203
+ # TRTC推流进房信息
1204
+ class TRTCJoinRoomInput < TencentCloud::Common::AbstractModel
1205
+ # @param Sign: 签名。
1206
+ # @type Sign: String
1207
+ # @param RoomId: 房间号。
1208
+ # @type RoomId: String
1209
+ # @param SdkAppId: 推流应用ID。
1210
+ # @type SdkAppId: String
1211
+ # @param UserId: 用户唯一标识。
1212
+ # @type UserId: String
1213
+
1214
+ attr_accessor :Sign, :RoomId, :SdkAppId, :UserId
1215
+
1216
+ def initialize(sign=nil, roomid=nil, sdkappid=nil, userid=nil)
1217
+ @Sign = sign
1218
+ @RoomId = roomid
1219
+ @SdkAppId = sdkappid
1220
+ @UserId = userid
1221
+ end
1222
+
1223
+ def deserialize(params)
1224
+ @Sign = params['Sign']
1225
+ @RoomId = params['RoomId']
1226
+ @SdkAppId = params['SdkAppId']
1227
+ @UserId = params['UserId']
1228
+ end
1229
+ end
1230
+
1231
+ # 时间范围
1232
+ class TimeRange < TencentCloud::Common::AbstractModel
1233
+ # @param Before: <li>大于等于此时间(起始时间)。</li>
1234
+ # <li>格式按照 ISO 8601标准表示,详见 <a href="https://cloud.tencent.com/document/product/266/11732#I" target="_blank">ISO 日期格式说明</a>。</li>
1235
+ # @type Before: String
1236
+ # @param After: <li>小于此时间(结束时间)。</li>
1237
+ # <li>格式按照 ISO 8601标准表示,详见 <a href="https://cloud.tencent.com/document/product/266/11732#I" target="_blank">ISO 日期格式说明</a>。</li>
1238
+ # @type After: String
1239
+
1240
+ attr_accessor :Before, :After
1241
+
1242
+ def initialize(before=nil, after=nil)
1243
+ @Before = before
1244
+ @After = after
1245
+ end
1246
+
1247
+ def deserialize(params)
1248
+ @Before = params['Before']
1249
+ @After = params['After']
1250
+ end
1251
+ end
1252
+
525
1253
  end
526
1254
  end
527
1255
  end
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.390
4
+ version: 3.0.397
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-08-18 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common