tencentcloud-sdk-yinsuda 3.0.488 → 3.0.490
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220527/client.rb +24 -0
- data/lib/v20220527/models.rb +56 -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: 190255d98132aefb3b9b1f23ef598f2ce72258df
|
4
|
+
data.tar.gz: ff76d36843e08114f235a3e13bf5c0482d77a2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b26394e8968fd0eb696c434575a22d21be17e628a0cf05b8c6b6d591fb53fae83346cee2f3b54b5ef569d65a41b1de43453f44a27eb496802195d977c4c1f5a
|
7
|
+
data.tar.gz: 41721573d863a48e0864d5a648907818c52182bb160219c5d73c90c032df813bae83f0fa9ccaf09abfda479bd41e58cf1102cdac94ceef9796b9622b328afe95
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.490
|
data/lib/v20220527/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 申请合唱相关信息,用于标记用户的演唱是在合唱场景下。
|
33
|
+
|
34
|
+
# @param request: Request instance for ApplyChorus.
|
35
|
+
# @type request: :class:`Tencentcloud::yinsuda::V20220527::ApplyChorusRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::yinsuda::V20220527::ApplyChorusResponse`
|
37
|
+
def ApplyChorus(request)
|
38
|
+
body = send_request('ApplyChorus', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ApplyChorusResponse.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 BatchDescribeKTVMusicDetails.
|
data/lib/v20220527/models.rb
CHANGED
@@ -41,6 +41,62 @@ module TencentCloud
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
# ApplyChorus请求参数结构体
|
45
|
+
class ApplyChorusRequest < TencentCloud::Common::AbstractModel
|
46
|
+
# @param AppName: 应用名称。
|
47
|
+
# @type AppName: String
|
48
|
+
# @param UserId: 用户标识。
|
49
|
+
# @type UserId: String
|
50
|
+
# @param RoomId: 房间号。
|
51
|
+
# @type RoomId: String
|
52
|
+
# @param MusicId: 歌曲 Id。
|
53
|
+
# @type MusicId: String
|
54
|
+
# @param MaxChorusNum: 最大合唱人数,默认值为 8,最大值为 20。
|
55
|
+
# @type MaxChorusNum: Integer
|
56
|
+
# @param ChorusUserIds: 合唱用户标识列表。
|
57
|
+
# @type ChorusUserIds: Array
|
58
|
+
|
59
|
+
attr_accessor :AppName, :UserId, :RoomId, :MusicId, :MaxChorusNum, :ChorusUserIds
|
60
|
+
|
61
|
+
def initialize(appname=nil, userid=nil, roomid=nil, musicid=nil, maxchorusnum=nil, chorususerids=nil)
|
62
|
+
@AppName = appname
|
63
|
+
@UserId = userid
|
64
|
+
@RoomId = roomid
|
65
|
+
@MusicId = musicid
|
66
|
+
@MaxChorusNum = maxchorusnum
|
67
|
+
@ChorusUserIds = chorususerids
|
68
|
+
end
|
69
|
+
|
70
|
+
def deserialize(params)
|
71
|
+
@AppName = params['AppName']
|
72
|
+
@UserId = params['UserId']
|
73
|
+
@RoomId = params['RoomId']
|
74
|
+
@MusicId = params['MusicId']
|
75
|
+
@MaxChorusNum = params['MaxChorusNum']
|
76
|
+
@ChorusUserIds = params['ChorusUserIds']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# ApplyChorus返回参数结构体
|
81
|
+
class ApplyChorusResponse < TencentCloud::Common::AbstractModel
|
82
|
+
# @param ChorusToken: 合唱 Token。
|
83
|
+
# @type ChorusToken: String
|
84
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
85
|
+
# @type RequestId: String
|
86
|
+
|
87
|
+
attr_accessor :ChorusToken, :RequestId
|
88
|
+
|
89
|
+
def initialize(chorustoken=nil, requestid=nil)
|
90
|
+
@ChorusToken = chorustoken
|
91
|
+
@RequestId = requestid
|
92
|
+
end
|
93
|
+
|
94
|
+
def deserialize(params)
|
95
|
+
@ChorusToken = params['ChorusToken']
|
96
|
+
@RequestId = params['RequestId']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
44
100
|
# BatchDescribeKTVMusicDetails请求参数结构体
|
45
101
|
class BatchDescribeKTVMusicDetailsRequest < TencentCloud::Common::AbstractModel
|
46
102
|
# @param AppName: 应用名称。
|
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.
|
4
|
+
version: 3.0.490
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|