tencentcloud-sdk-gme 3.0.382 → 3.0.384
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/v20180711/client.rb +24 -0
- data/lib/v20180711/models.rb +75 -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: f2a35b3d63c625208e35fc60c627b08d6fde7259
|
4
|
+
data.tar.gz: 432d0f4c63f258a40c5a37ddd5156d8c76a0bbe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3604757d6c96fd33b2dd44fe9a4aa0e4038ce0a41861842e0640364313f8f718d2873ee0fab55fa017315edb79015a6b376116f5aed6dc3ad1a53a7ee80bd266
|
7
|
+
data.tar.gz: 2e22a4e7936d79c31ca970524fb20e15fc442d8aee9e38a8cbeae946e44b0d61e3a9fa7f1c4da1b9ab6e3a9a8f1108b28e46ffe99ef8540dbea4b6112f05fe11
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.384
|
data/lib/v20180711/client.rb
CHANGED
@@ -400,6 +400,30 @@ module TencentCloud
|
|
400
400
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
401
401
|
end
|
402
402
|
|
403
|
+
# 修改用户麦克风状态。
|
404
|
+
|
405
|
+
# @param request: Request instance for ModifyUserMicStatus.
|
406
|
+
# @type request: :class:`Tencentcloud::gme::V20180711::ModifyUserMicStatusRequest`
|
407
|
+
# @rtype: :class:`Tencentcloud::gme::V20180711::ModifyUserMicStatusResponse`
|
408
|
+
def ModifyUserMicStatus(request)
|
409
|
+
body = send_request('ModifyUserMicStatus', request.serialize)
|
410
|
+
response = JSON.parse(body)
|
411
|
+
if response['Response'].key?('Error') == false
|
412
|
+
model = ModifyUserMicStatusResponse.new
|
413
|
+
model.deserialize(response['Response'])
|
414
|
+
model
|
415
|
+
else
|
416
|
+
code = response['Response']['Error']['Code']
|
417
|
+
message = response['Response']['Error']['Message']
|
418
|
+
reqid = response['Response']['RequestId']
|
419
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
420
|
+
end
|
421
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
422
|
+
raise e
|
423
|
+
rescue StandardError => e
|
424
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
425
|
+
end
|
426
|
+
|
403
427
|
# 本接口(ScanVoice)用于提交语音检测任务,检测任务列表最多支持100个。使用前请您登录[控制台 - 服务配置](https://console.cloud.tencent.com/gamegme/conf)开启语音分析服务。
|
404
428
|
# </br></br>
|
405
429
|
|
data/lib/v20180711/models.rb
CHANGED
@@ -1221,6 +1221,61 @@ module TencentCloud
|
|
1221
1221
|
end
|
1222
1222
|
end
|
1223
1223
|
|
1224
|
+
# ModifyUserMicStatus请求参数结构体
|
1225
|
+
class ModifyUserMicStatusRequest < TencentCloud::Common::AbstractModel
|
1226
|
+
# @param BizId: 应用ID
|
1227
|
+
# @type BizId: Integer
|
1228
|
+
# @param RoomId: 房间ID
|
1229
|
+
# @type RoomId: String
|
1230
|
+
# @param Users: 用户麦克风状态,数组长度不超过20
|
1231
|
+
# @type Users: Array
|
1232
|
+
|
1233
|
+
attr_accessor :BizId, :RoomId, :Users
|
1234
|
+
|
1235
|
+
def initialize(bizid=nil, roomid=nil, users=nil)
|
1236
|
+
@BizId = bizid
|
1237
|
+
@RoomId = roomid
|
1238
|
+
@Users = users
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
def deserialize(params)
|
1242
|
+
@BizId = params['BizId']
|
1243
|
+
@RoomId = params['RoomId']
|
1244
|
+
unless params['Users'].nil?
|
1245
|
+
@Users = []
|
1246
|
+
params['Users'].each do |i|
|
1247
|
+
usermicstatus_tmp = UserMicStatus.new
|
1248
|
+
usermicstatus_tmp.deserialize(i)
|
1249
|
+
@Users << usermicstatus_tmp
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# ModifyUserMicStatus返回参数结构体
|
1256
|
+
class ModifyUserMicStatusResponse < TencentCloud::Common::AbstractModel
|
1257
|
+
# @param Result: 返回结果:0为成功,非0为失败
|
1258
|
+
# @type Result: Integer
|
1259
|
+
# @param ErrMsg: 错误信息
|
1260
|
+
# @type ErrMsg: String
|
1261
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1262
|
+
# @type RequestId: String
|
1263
|
+
|
1264
|
+
attr_accessor :Result, :ErrMsg, :RequestId
|
1265
|
+
|
1266
|
+
def initialize(result=nil, errmsg=nil, requestid=nil)
|
1267
|
+
@Result = result
|
1268
|
+
@ErrMsg = errmsg
|
1269
|
+
@RequestId = requestid
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
def deserialize(params)
|
1273
|
+
@Result = params['Result']
|
1274
|
+
@ErrMsg = params['ErrMsg']
|
1275
|
+
@RequestId = params['RequestId']
|
1276
|
+
end
|
1277
|
+
end
|
1278
|
+
|
1224
1279
|
# 实时语音用量统计数据
|
1225
1280
|
class RealTimeSpeechStatisticsItem < TencentCloud::Common::AbstractModel
|
1226
1281
|
# @param MainLandDau: 大陆地区DAU
|
@@ -1654,6 +1709,26 @@ module TencentCloud
|
|
1654
1709
|
end
|
1655
1710
|
end
|
1656
1711
|
|
1712
|
+
# 用户麦克风状态
|
1713
|
+
class UserMicStatus < TencentCloud::Common::AbstractModel
|
1714
|
+
# @param Uid: 用户ID
|
1715
|
+
# @type Uid: Integer
|
1716
|
+
# @param EnableMic: 是否开麦 。1闭麦 2开麦
|
1717
|
+
# @type EnableMic: Integer
|
1718
|
+
|
1719
|
+
attr_accessor :Uid, :EnableMic
|
1720
|
+
|
1721
|
+
def initialize(uid=nil, enablemic=nil)
|
1722
|
+
@Uid = uid
|
1723
|
+
@EnableMic = enablemic
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
def deserialize(params)
|
1727
|
+
@Uid = params['Uid']
|
1728
|
+
@EnableMic = params['EnableMic']
|
1729
|
+
end
|
1730
|
+
end
|
1731
|
+
|
1657
1732
|
# 过滤结果
|
1658
1733
|
class VoiceFilter < TencentCloud::Common::AbstractModel
|
1659
1734
|
# @param Type: 过滤类型,1:色情,2:涉毒,3:谩骂
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-gme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.384
|
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-
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|