tencentcloud-sdk-trtc 3.0.949 → 3.0.951
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/v20190722/client.rb +49 -0
- data/lib/v20190722/models.rb +88 -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: 9691d2633c607e48fa3ed966f2e4540000c37d82
|
4
|
+
data.tar.gz: ab260045900f4b64c566eaf09399d8832ba599c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1834383bad2d2304ecc4b0cc8e2adc2ce60274768b51d53482912aa18a4d6f922bdcf378173077f37e001f8b757cb9c0c31933344ae1b9dfb82269a90c983c21
|
7
|
+
data.tar.gz: 5b8ceceb8ae46e7875a13606c8cad28d137a6c45a96d6e515efa443a0e1598e5e43ae29e0c6cc2cb6bf4741e0ec82af2f9f00b23b2caf8118c26bd49aaa31443
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.951
|
data/lib/v20190722/client.rb
CHANGED
@@ -53,6 +53,31 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 接口说明:
|
57
|
+
# 启动终端审核功能,完成房间内的音频审核。
|
58
|
+
|
59
|
+
# @param request: Request instance for CreateBasicModeration.
|
60
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::CreateBasicModerationRequest`
|
61
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::CreateBasicModerationResponse`
|
62
|
+
def CreateBasicModeration(request)
|
63
|
+
body = send_request('CreateBasicModeration', request.serialize)
|
64
|
+
response = JSON.parse(body)
|
65
|
+
if response['Response'].key?('Error') == false
|
66
|
+
model = CreateBasicModerationResponse.new
|
67
|
+
model.deserialize(response['Response'])
|
68
|
+
model
|
69
|
+
else
|
70
|
+
code = response['Response']['Error']['Code']
|
71
|
+
message = response['Response']['Error']['Message']
|
72
|
+
reqid = response['Response']['RequestId']
|
73
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
74
|
+
end
|
75
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
76
|
+
raise e
|
77
|
+
rescue StandardError => e
|
78
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
79
|
+
end
|
80
|
+
|
56
81
|
# 接口说明:
|
57
82
|
# 启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
|
58
83
|
|
@@ -112,6 +137,30 @@ module TencentCloud
|
|
112
137
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
113
138
|
end
|
114
139
|
|
140
|
+
# 成功开启审核任务后,可以使用此接口来停止任务。
|
141
|
+
|
142
|
+
# @param request: Request instance for DeleteBasicModeration.
|
143
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::DeleteBasicModerationRequest`
|
144
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::DeleteBasicModerationResponse`
|
145
|
+
def DeleteBasicModeration(request)
|
146
|
+
body = send_request('DeleteBasicModeration', request.serialize)
|
147
|
+
response = JSON.parse(body)
|
148
|
+
if response['Response'].key?('Error') == false
|
149
|
+
model = DeleteBasicModerationResponse.new
|
150
|
+
model.deserialize(response['Response'])
|
151
|
+
model
|
152
|
+
else
|
153
|
+
code = response['Response']['Error']['Code']
|
154
|
+
message = response['Response']['Error']['Message']
|
155
|
+
reqid = response['Response']['RequestId']
|
156
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
157
|
+
end
|
158
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
159
|
+
raise e
|
160
|
+
rescue StandardError => e
|
161
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
162
|
+
end
|
163
|
+
|
115
164
|
# 成功开启录制后,可以使用此接口来停止录制任务。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
|
116
165
|
|
117
166
|
# @param request: Request instance for DeleteCloudRecording.
|
data/lib/v20190722/models.rb
CHANGED
@@ -334,6 +334,54 @@ module TencentCloud
|
|
334
334
|
end
|
335
335
|
end
|
336
336
|
|
337
|
+
# CreateBasicModeration请求参数结构体
|
338
|
+
class CreateBasicModerationRequest < TencentCloud::Common::AbstractModel
|
339
|
+
# @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
|
340
|
+
# @type SdkAppId: Integer
|
341
|
+
# @param RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
|
342
|
+
# @type RoomId: String
|
343
|
+
# @param UserId: 目标审核用户id
|
344
|
+
# @type UserId: String
|
345
|
+
# @param RoomIdType: TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
|
346
|
+
# @type RoomIdType: Integer
|
347
|
+
|
348
|
+
attr_accessor :SdkAppId, :RoomId, :UserId, :RoomIdType
|
349
|
+
|
350
|
+
def initialize(sdkappid=nil, roomid=nil, userid=nil, roomidtype=nil)
|
351
|
+
@SdkAppId = sdkappid
|
352
|
+
@RoomId = roomid
|
353
|
+
@UserId = userid
|
354
|
+
@RoomIdType = roomidtype
|
355
|
+
end
|
356
|
+
|
357
|
+
def deserialize(params)
|
358
|
+
@SdkAppId = params['SdkAppId']
|
359
|
+
@RoomId = params['RoomId']
|
360
|
+
@UserId = params['UserId']
|
361
|
+
@RoomIdType = params['RoomIdType']
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# CreateBasicModeration返回参数结构体
|
366
|
+
class CreateBasicModerationResponse < TencentCloud::Common::AbstractModel
|
367
|
+
# @param TaskId: 审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
|
368
|
+
# @type TaskId: String
|
369
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
370
|
+
# @type RequestId: String
|
371
|
+
|
372
|
+
attr_accessor :TaskId, :RequestId
|
373
|
+
|
374
|
+
def initialize(taskid=nil, requestid=nil)
|
375
|
+
@TaskId = taskid
|
376
|
+
@RequestId = requestid
|
377
|
+
end
|
378
|
+
|
379
|
+
def deserialize(params)
|
380
|
+
@TaskId = params['TaskId']
|
381
|
+
@RequestId = params['RequestId']
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
337
385
|
# CreateCloudRecording请求参数结构体
|
338
386
|
class CreateCloudRecordingRequest < TencentCloud::Common::AbstractModel
|
339
387
|
# @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
|
@@ -487,6 +535,46 @@ module TencentCloud
|
|
487
535
|
end
|
488
536
|
end
|
489
537
|
|
538
|
+
# DeleteBasicModeration请求参数结构体
|
539
|
+
class DeleteBasicModerationRequest < TencentCloud::Common::AbstractModel
|
540
|
+
# @param SdkAppId: TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
|
541
|
+
# @type SdkAppId: Integer
|
542
|
+
# @param TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
|
543
|
+
# @type TaskId: String
|
544
|
+
|
545
|
+
attr_accessor :SdkAppId, :TaskId
|
546
|
+
|
547
|
+
def initialize(sdkappid=nil, taskid=nil)
|
548
|
+
@SdkAppId = sdkappid
|
549
|
+
@TaskId = taskid
|
550
|
+
end
|
551
|
+
|
552
|
+
def deserialize(params)
|
553
|
+
@SdkAppId = params['SdkAppId']
|
554
|
+
@TaskId = params['TaskId']
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
# DeleteBasicModeration返回参数结构体
|
559
|
+
class DeleteBasicModerationResponse < TencentCloud::Common::AbstractModel
|
560
|
+
# @param TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
|
561
|
+
# @type TaskId: String
|
562
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
563
|
+
# @type RequestId: String
|
564
|
+
|
565
|
+
attr_accessor :TaskId, :RequestId
|
566
|
+
|
567
|
+
def initialize(taskid=nil, requestid=nil)
|
568
|
+
@TaskId = taskid
|
569
|
+
@RequestId = requestid
|
570
|
+
end
|
571
|
+
|
572
|
+
def deserialize(params)
|
573
|
+
@TaskId = params['TaskId']
|
574
|
+
@RequestId = params['RequestId']
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
490
578
|
# DeleteCloudRecording请求参数结构体
|
491
579
|
class DeleteCloudRecordingRequest < TencentCloud::Common::AbstractModel
|
492
580
|
# @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-trtc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.951
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|