tencentcloud-sdk-iotvideoindustry 1.0.223 → 1.0.224
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/v20201201/client.rb +624 -0
- data/lib/v20201201/models.rb +1624 -197
- metadata +2 -2
data/lib/v20201201/client.rb
CHANGED
@@ -149,6 +149,54 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 创建直播频道
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateLiveChannel.
|
155
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateLiveChannelRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateLiveChannelResponse`
|
157
|
+
def CreateLiveChannel(request)
|
158
|
+
body = send_request('CreateLiveChannel', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateLiveChannelResponse.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
|
+
|
176
|
+
# 创建直播录制计划
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateLiveRecordPlan.
|
179
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateLiveRecordPlanRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateLiveRecordPlanResponse`
|
181
|
+
def CreateLiveRecordPlan(request)
|
182
|
+
body = send_request('CreateLiveRecordPlan', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateLiveRecordPlanResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
152
200
|
# 本接口(CreateRecordPlan) 用于创建录制计划,使设备与时间模板绑定,以便及时启动录制
|
153
201
|
|
154
202
|
# @param request: Request instance for CreateRecordPlan.
|
@@ -173,6 +221,30 @@ module TencentCloud
|
|
173
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
222
|
end
|
175
223
|
|
224
|
+
# 创建场景
|
225
|
+
|
226
|
+
# @param request: Request instance for CreateScene.
|
227
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateSceneRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateSceneResponse`
|
229
|
+
def CreateScene(request)
|
230
|
+
body = send_request('CreateScene', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = CreateSceneResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
176
248
|
# 本接口(CreateTimeTemplate) 用于根据模板描述的具体录制时间片段,创建定制化的时间模板。
|
177
249
|
|
178
250
|
# @param request: Request instance for CreateTimeTemplate.
|
@@ -197,6 +269,30 @@ module TencentCloud
|
|
197
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
270
|
end
|
199
271
|
|
272
|
+
# 删除通道接口
|
273
|
+
|
274
|
+
# @param request: Request instance for DeleteChannel.
|
275
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteChannelRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteChannelResponse`
|
277
|
+
def DeleteChannel(request)
|
278
|
+
body = send_request('DeleteChannel', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DeleteChannelResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
200
296
|
# 本接口(DeleteDevice)用于删除设备。
|
201
297
|
|
202
298
|
# @param request: Request instance for DeleteDevice.
|
@@ -245,6 +341,78 @@ module TencentCloud
|
|
245
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
342
|
end
|
247
343
|
|
344
|
+
# 删除直播接口
|
345
|
+
|
346
|
+
# @param request: Request instance for DeleteLiveChannel.
|
347
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteLiveChannelRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteLiveChannelResponse`
|
349
|
+
def DeleteLiveChannel(request)
|
350
|
+
body = send_request('DeleteLiveChannel', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = DeleteLiveChannelResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 删除直播录制计划
|
369
|
+
|
370
|
+
# @param request: Request instance for DeleteLiveRecordPlan.
|
371
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteLiveRecordPlanRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteLiveRecordPlanResponse`
|
373
|
+
def DeleteLiveRecordPlan(request)
|
374
|
+
body = send_request('DeleteLiveRecordPlan', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DeleteLiveRecordPlanResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 直播录像删除
|
393
|
+
|
394
|
+
# @param request: Request instance for DeleteLiveVideoList.
|
395
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteLiveVideoListRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteLiveVideoListResponse`
|
397
|
+
def DeleteLiveVideoList(request)
|
398
|
+
body = send_request('DeleteLiveVideoList', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DeleteLiveVideoListResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
248
416
|
# 本接口(DeleteRecordPlan)用于删除录制计划
|
249
417
|
# 录制计划删除的同时,会停止该录制计划下的全部录制任务。
|
250
418
|
|
@@ -270,6 +438,30 @@ module TencentCloud
|
|
270
438
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
271
439
|
end
|
272
440
|
|
441
|
+
# 删除场景
|
442
|
+
|
443
|
+
# @param request: Request instance for DeleteScene.
|
444
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteSceneRequest`
|
445
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteSceneResponse`
|
446
|
+
def DeleteScene(request)
|
447
|
+
body = send_request('DeleteScene', request.serialize)
|
448
|
+
response = JSON.parse(body)
|
449
|
+
if response['Response'].key?('Error') == false
|
450
|
+
model = DeleteSceneResponse.new
|
451
|
+
model.deserialize(response['Response'])
|
452
|
+
model
|
453
|
+
else
|
454
|
+
code = response['Response']['Error']['Code']
|
455
|
+
message = response['Response']['Error']['Message']
|
456
|
+
reqid = response['Response']['RequestId']
|
457
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
458
|
+
end
|
459
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
460
|
+
raise e
|
461
|
+
rescue StandardError => e
|
462
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
463
|
+
end
|
464
|
+
|
273
465
|
# 本接口(DeleteTimeTemplate) 用于删除时间模板。
|
274
466
|
|
275
467
|
# @param request: Request instance for DeleteTimeTemplate.
|
@@ -294,6 +486,30 @@ module TencentCloud
|
|
294
486
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
295
487
|
end
|
296
488
|
|
489
|
+
# 删除录像存储列表
|
490
|
+
|
491
|
+
# @param request: Request instance for DeleteVideoList.
|
492
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteVideoListRequest`
|
493
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteVideoListResponse`
|
494
|
+
def DeleteVideoList(request)
|
495
|
+
body = send_request('DeleteVideoList', request.serialize)
|
496
|
+
response = JSON.parse(body)
|
497
|
+
if response['Response'].key?('Error') == false
|
498
|
+
model = DeleteVideoListResponse.new
|
499
|
+
model.deserialize(response['Response'])
|
500
|
+
model
|
501
|
+
else
|
502
|
+
code = response['Response']['Error']['Code']
|
503
|
+
message = response['Response']['Error']['Message']
|
504
|
+
reqid = response['Response']['RequestId']
|
505
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
506
|
+
end
|
507
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
508
|
+
raise e
|
509
|
+
rescue StandardError => e
|
510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
511
|
+
end
|
512
|
+
|
297
513
|
# 本接口(DescribeAllDeviceList) 用于获取设备列表。
|
298
514
|
|
299
515
|
# @param request: Request instance for DescribeAllDeviceList.
|
@@ -318,6 +534,54 @@ module TencentCloud
|
|
318
534
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
319
535
|
end
|
320
536
|
|
537
|
+
# 获取场景绑定设备列表
|
538
|
+
|
539
|
+
# @param request: Request instance for DescribeBindSceneDevices.
|
540
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeBindSceneDevicesRequest`
|
541
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeBindSceneDevicesResponse`
|
542
|
+
def DescribeBindSceneDevices(request)
|
543
|
+
body = send_request('DescribeBindSceneDevices', request.serialize)
|
544
|
+
response = JSON.parse(body)
|
545
|
+
if response['Response'].key?('Error') == false
|
546
|
+
model = DescribeBindSceneDevicesResponse.new
|
547
|
+
model.deserialize(response['Response'])
|
548
|
+
model
|
549
|
+
else
|
550
|
+
code = response['Response']['Error']['Code']
|
551
|
+
message = response['Response']['Error']['Message']
|
552
|
+
reqid = response['Response']['RequestId']
|
553
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
554
|
+
end
|
555
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
556
|
+
raise e
|
557
|
+
rescue StandardError => e
|
558
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
|
+
end
|
560
|
+
|
561
|
+
# 根据直播录制计划获取频道列表
|
562
|
+
|
563
|
+
# @param request: Request instance for DescribeChannelsByLiveRecordPlan.
|
564
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeChannelsByLiveRecordPlanRequest`
|
565
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeChannelsByLiveRecordPlanResponse`
|
566
|
+
def DescribeChannelsByLiveRecordPlan(request)
|
567
|
+
body = send_request('DescribeChannelsByLiveRecordPlan', request.serialize)
|
568
|
+
response = JSON.parse(body)
|
569
|
+
if response['Response'].key?('Error') == false
|
570
|
+
model = DescribeChannelsByLiveRecordPlanResponse.new
|
571
|
+
model.deserialize(response['Response'])
|
572
|
+
model
|
573
|
+
else
|
574
|
+
code = response['Response']['Error']['Code']
|
575
|
+
message = response['Response']['Error']['Message']
|
576
|
+
reqid = response['Response']['RequestId']
|
577
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
578
|
+
end
|
579
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
580
|
+
raise e
|
581
|
+
rescue StandardError => e
|
582
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
583
|
+
end
|
584
|
+
|
321
585
|
# 本接口(DescribeDeviceGroup)用于根据设备ID查询设备所在分组信息,可批量查询。
|
322
586
|
|
323
587
|
# @param request: Request instance for DescribeDeviceGroup.
|
@@ -510,6 +774,174 @@ module TencentCloud
|
|
510
774
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
511
775
|
end
|
512
776
|
|
777
|
+
# 直播详情接口
|
778
|
+
|
779
|
+
# @param request: Request instance for DescribeLiveChannel.
|
780
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveChannelRequest`
|
781
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveChannelResponse`
|
782
|
+
def DescribeLiveChannel(request)
|
783
|
+
body = send_request('DescribeLiveChannel', request.serialize)
|
784
|
+
response = JSON.parse(body)
|
785
|
+
if response['Response'].key?('Error') == false
|
786
|
+
model = DescribeLiveChannelResponse.new
|
787
|
+
model.deserialize(response['Response'])
|
788
|
+
model
|
789
|
+
else
|
790
|
+
code = response['Response']['Error']['Code']
|
791
|
+
message = response['Response']['Error']['Message']
|
792
|
+
reqid = response['Response']['RequestId']
|
793
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
794
|
+
end
|
795
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
796
|
+
raise e
|
797
|
+
rescue StandardError => e
|
798
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
799
|
+
end
|
800
|
+
|
801
|
+
# 直播列表接口
|
802
|
+
|
803
|
+
# @param request: Request instance for DescribeLiveChannelList.
|
804
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveChannelListRequest`
|
805
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveChannelListResponse`
|
806
|
+
def DescribeLiveChannelList(request)
|
807
|
+
body = send_request('DescribeLiveChannelList', request.serialize)
|
808
|
+
response = JSON.parse(body)
|
809
|
+
if response['Response'].key?('Error') == false
|
810
|
+
model = DescribeLiveChannelListResponse.new
|
811
|
+
model.deserialize(response['Response'])
|
812
|
+
model
|
813
|
+
else
|
814
|
+
code = response['Response']['Error']['Code']
|
815
|
+
message = response['Response']['Error']['Message']
|
816
|
+
reqid = response['Response']['RequestId']
|
817
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
818
|
+
end
|
819
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
820
|
+
raise e
|
821
|
+
rescue StandardError => e
|
822
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
823
|
+
end
|
824
|
+
|
825
|
+
# 获取直播录制计划详情
|
826
|
+
|
827
|
+
# @param request: Request instance for DescribeLiveRecordPlanById.
|
828
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveRecordPlanByIdRequest`
|
829
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveRecordPlanByIdResponse`
|
830
|
+
def DescribeLiveRecordPlanById(request)
|
831
|
+
body = send_request('DescribeLiveRecordPlanById', request.serialize)
|
832
|
+
response = JSON.parse(body)
|
833
|
+
if response['Response'].key?('Error') == false
|
834
|
+
model = DescribeLiveRecordPlanByIdResponse.new
|
835
|
+
model.deserialize(response['Response'])
|
836
|
+
model
|
837
|
+
else
|
838
|
+
code = response['Response']['Error']['Code']
|
839
|
+
message = response['Response']['Error']['Message']
|
840
|
+
reqid = response['Response']['RequestId']
|
841
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
842
|
+
end
|
843
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
844
|
+
raise e
|
845
|
+
rescue StandardError => e
|
846
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
847
|
+
end
|
848
|
+
|
849
|
+
# 获取直播录制计划列表
|
850
|
+
|
851
|
+
# @param request: Request instance for DescribeLiveRecordPlanIds.
|
852
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveRecordPlanIdsRequest`
|
853
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveRecordPlanIdsResponse`
|
854
|
+
def DescribeLiveRecordPlanIds(request)
|
855
|
+
body = send_request('DescribeLiveRecordPlanIds', request.serialize)
|
856
|
+
response = JSON.parse(body)
|
857
|
+
if response['Response'].key?('Error') == false
|
858
|
+
model = DescribeLiveRecordPlanIdsResponse.new
|
859
|
+
model.deserialize(response['Response'])
|
860
|
+
model
|
861
|
+
else
|
862
|
+
code = response['Response']['Error']['Code']
|
863
|
+
message = response['Response']['Error']['Message']
|
864
|
+
reqid = response['Response']['RequestId']
|
865
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
866
|
+
end
|
867
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
868
|
+
raise e
|
869
|
+
rescue StandardError => e
|
870
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
|
+
end
|
872
|
+
|
873
|
+
# 直播拉流接口
|
874
|
+
|
875
|
+
# @param request: Request instance for DescribeLiveStream.
|
876
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveStreamRequest`
|
877
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveStreamResponse`
|
878
|
+
def DescribeLiveStream(request)
|
879
|
+
body = send_request('DescribeLiveStream', request.serialize)
|
880
|
+
response = JSON.parse(body)
|
881
|
+
if response['Response'].key?('Error') == false
|
882
|
+
model = DescribeLiveStreamResponse.new
|
883
|
+
model.deserialize(response['Response'])
|
884
|
+
model
|
885
|
+
else
|
886
|
+
code = response['Response']['Error']['Code']
|
887
|
+
message = response['Response']['Error']['Message']
|
888
|
+
reqid = response['Response']['RequestId']
|
889
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
890
|
+
end
|
891
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
892
|
+
raise e
|
893
|
+
rescue StandardError => e
|
894
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
895
|
+
end
|
896
|
+
|
897
|
+
# 直播录像回放列表
|
898
|
+
|
899
|
+
# @param request: Request instance for DescribeLiveVideoList.
|
900
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveVideoListRequest`
|
901
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeLiveVideoListResponse`
|
902
|
+
def DescribeLiveVideoList(request)
|
903
|
+
body = send_request('DescribeLiveVideoList', request.serialize)
|
904
|
+
response = JSON.parse(body)
|
905
|
+
if response['Response'].key?('Error') == false
|
906
|
+
model = DescribeLiveVideoListResponse.new
|
907
|
+
model.deserialize(response['Response'])
|
908
|
+
model
|
909
|
+
else
|
910
|
+
code = response['Response']['Error']['Code']
|
911
|
+
message = response['Response']['Error']['Message']
|
912
|
+
reqid = response['Response']['RequestId']
|
913
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
914
|
+
end
|
915
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
916
|
+
raise e
|
917
|
+
rescue StandardError => e
|
918
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
919
|
+
end
|
920
|
+
|
921
|
+
# 直播录像存储日期列表
|
922
|
+
|
923
|
+
# @param request: Request instance for DescribeRecordDatesByLive.
|
924
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeRecordDatesByLiveRequest`
|
925
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeRecordDatesByLiveResponse`
|
926
|
+
def DescribeRecordDatesByLive(request)
|
927
|
+
body = send_request('DescribeRecordDatesByLive', request.serialize)
|
928
|
+
response = JSON.parse(body)
|
929
|
+
if response['Response'].key?('Error') == false
|
930
|
+
model = DescribeRecordDatesByLiveResponse.new
|
931
|
+
model.deserialize(response['Response'])
|
932
|
+
model
|
933
|
+
else
|
934
|
+
code = response['Response']['Error']['Code']
|
935
|
+
message = response['Response']['Error']['Message']
|
936
|
+
reqid = response['Response']['RequestId']
|
937
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
938
|
+
end
|
939
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
940
|
+
raise e
|
941
|
+
rescue StandardError => e
|
942
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
943
|
+
end
|
944
|
+
|
513
945
|
# 获取回放视频流(NVR录制用)
|
514
946
|
# RecordId和StartTime/EndTime互斥
|
515
947
|
# 当存在RecordId时,StartTime和EndTime无效
|
@@ -561,6 +993,30 @@ module TencentCloud
|
|
561
993
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
562
994
|
end
|
563
995
|
|
996
|
+
# 获取场景列表
|
997
|
+
|
998
|
+
# @param request: Request instance for DescribeScenes.
|
999
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeScenesRequest`
|
1000
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeScenesResponse`
|
1001
|
+
def DescribeScenes(request)
|
1002
|
+
body = send_request('DescribeScenes', request.serialize)
|
1003
|
+
response = JSON.parse(body)
|
1004
|
+
if response['Response'].key?('Error') == false
|
1005
|
+
model = DescribeScenesResponse.new
|
1006
|
+
model.deserialize(response['Response'])
|
1007
|
+
model
|
1008
|
+
else
|
1009
|
+
code = response['Response']['Error']['Code']
|
1010
|
+
message = response['Response']['Error']['Message']
|
1011
|
+
reqid = response['Response']['RequestId']
|
1012
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1013
|
+
end
|
1014
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1015
|
+
raise e
|
1016
|
+
rescue StandardError => e
|
1017
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1018
|
+
end
|
1019
|
+
|
564
1020
|
# 本接口(DescribeStatisticDetails)用于查询指定统计项详情,返回结果按天为单位聚合,支持的最大时间查询范围为31天。
|
565
1021
|
|
566
1022
|
# @param request: Request instance for DescribeStatisticDetails.
|
@@ -633,6 +1089,30 @@ module TencentCloud
|
|
633
1089
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
634
1090
|
end
|
635
1091
|
|
1092
|
+
# 查询主设备订阅状态
|
1093
|
+
|
1094
|
+
# @param request: Request instance for DescribeSubscriptionStatus.
|
1095
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeSubscriptionStatusRequest`
|
1096
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeSubscriptionStatusResponse`
|
1097
|
+
def DescribeSubscriptionStatus(request)
|
1098
|
+
body = send_request('DescribeSubscriptionStatus', request.serialize)
|
1099
|
+
response = JSON.parse(body)
|
1100
|
+
if response['Response'].key?('Error') == false
|
1101
|
+
model = DescribeSubscriptionStatusResponse.new
|
1102
|
+
model.deserialize(response['Response'])
|
1103
|
+
model
|
1104
|
+
else
|
1105
|
+
code = response['Response']['Error']['Code']
|
1106
|
+
message = response['Response']['Error']['Message']
|
1107
|
+
reqid = response['Response']['RequestId']
|
1108
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1109
|
+
end
|
1110
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1111
|
+
raise e
|
1112
|
+
rescue StandardError => e
|
1113
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1114
|
+
end
|
1115
|
+
|
636
1116
|
# 根据时间获取回放文件列表(云端录制用)
|
637
1117
|
|
638
1118
|
# @param request: Request instance for DescribeVideoList.
|
@@ -825,6 +1305,30 @@ module TencentCloud
|
|
825
1305
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
826
1306
|
end
|
827
1307
|
|
1308
|
+
# 直播录制计划绑定解绑直播频道
|
1309
|
+
|
1310
|
+
# @param request: Request instance for ModifyBindPlanLiveChannel.
|
1311
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyBindPlanLiveChannelRequest`
|
1312
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyBindPlanLiveChannelResponse`
|
1313
|
+
def ModifyBindPlanLiveChannel(request)
|
1314
|
+
body = send_request('ModifyBindPlanLiveChannel', request.serialize)
|
1315
|
+
response = JSON.parse(body)
|
1316
|
+
if response['Response'].key?('Error') == false
|
1317
|
+
model = ModifyBindPlanLiveChannelResponse.new
|
1318
|
+
model.deserialize(response['Response'])
|
1319
|
+
model
|
1320
|
+
else
|
1321
|
+
code = response['Response']['Error']['Code']
|
1322
|
+
message = response['Response']['Error']['Message']
|
1323
|
+
reqid = response['Response']['RequestId']
|
1324
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1325
|
+
end
|
1326
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1327
|
+
raise e
|
1328
|
+
rescue StandardError => e
|
1329
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1330
|
+
end
|
1331
|
+
|
828
1332
|
# 本接口(ModifyDeviceData)用于编辑设备信息。
|
829
1333
|
|
830
1334
|
# @param request: Request instance for ModifyDeviceData.
|
@@ -849,6 +1353,126 @@ module TencentCloud
|
|
849
1353
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
850
1354
|
end
|
851
1355
|
|
1356
|
+
# 编辑直播接口
|
1357
|
+
|
1358
|
+
# @param request: Request instance for ModifyLiveChannel.
|
1359
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyLiveChannelRequest`
|
1360
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyLiveChannelResponse`
|
1361
|
+
def ModifyLiveChannel(request)
|
1362
|
+
body = send_request('ModifyLiveChannel', request.serialize)
|
1363
|
+
response = JSON.parse(body)
|
1364
|
+
if response['Response'].key?('Error') == false
|
1365
|
+
model = ModifyLiveChannelResponse.new
|
1366
|
+
model.deserialize(response['Response'])
|
1367
|
+
model
|
1368
|
+
else
|
1369
|
+
code = response['Response']['Error']['Code']
|
1370
|
+
message = response['Response']['Error']['Message']
|
1371
|
+
reqid = response['Response']['RequestId']
|
1372
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1373
|
+
end
|
1374
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1375
|
+
raise e
|
1376
|
+
rescue StandardError => e
|
1377
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
# 编辑直播录制计划
|
1381
|
+
|
1382
|
+
# @param request: Request instance for ModifyLiveRecordPlan.
|
1383
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyLiveRecordPlanRequest`
|
1384
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyLiveRecordPlanResponse`
|
1385
|
+
def ModifyLiveRecordPlan(request)
|
1386
|
+
body = send_request('ModifyLiveRecordPlan', request.serialize)
|
1387
|
+
response = JSON.parse(body)
|
1388
|
+
if response['Response'].key?('Error') == false
|
1389
|
+
model = ModifyLiveRecordPlanResponse.new
|
1390
|
+
model.deserialize(response['Response'])
|
1391
|
+
model
|
1392
|
+
else
|
1393
|
+
code = response['Response']['Error']['Code']
|
1394
|
+
message = response['Response']['Error']['Message']
|
1395
|
+
reqid = response['Response']['RequestId']
|
1396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1397
|
+
end
|
1398
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1399
|
+
raise e
|
1400
|
+
rescue StandardError => e
|
1401
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
# 直播录像编辑
|
1405
|
+
|
1406
|
+
# @param request: Request instance for ModifyLiveVideo.
|
1407
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyLiveVideoRequest`
|
1408
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyLiveVideoResponse`
|
1409
|
+
def ModifyLiveVideo(request)
|
1410
|
+
body = send_request('ModifyLiveVideo', request.serialize)
|
1411
|
+
response = JSON.parse(body)
|
1412
|
+
if response['Response'].key?('Error') == false
|
1413
|
+
model = ModifyLiveVideoResponse.new
|
1414
|
+
model.deserialize(response['Response'])
|
1415
|
+
model
|
1416
|
+
else
|
1417
|
+
code = response['Response']['Error']['Code']
|
1418
|
+
message = response['Response']['Error']['Message']
|
1419
|
+
reqid = response['Response']['RequestId']
|
1420
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1421
|
+
end
|
1422
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1423
|
+
raise e
|
1424
|
+
rescue StandardError => e
|
1425
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
# 编辑设备订阅状态
|
1429
|
+
|
1430
|
+
# @param request: Request instance for ModifySubscriptionStatus.
|
1431
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifySubscriptionStatusRequest`
|
1432
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifySubscriptionStatusResponse`
|
1433
|
+
def ModifySubscriptionStatus(request)
|
1434
|
+
body = send_request('ModifySubscriptionStatus', request.serialize)
|
1435
|
+
response = JSON.parse(body)
|
1436
|
+
if response['Response'].key?('Error') == false
|
1437
|
+
model = ModifySubscriptionStatusResponse.new
|
1438
|
+
model.deserialize(response['Response'])
|
1439
|
+
model
|
1440
|
+
else
|
1441
|
+
code = response['Response']['Error']['Code']
|
1442
|
+
message = response['Response']['Error']['Message']
|
1443
|
+
reqid = response['Response']['RequestId']
|
1444
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1445
|
+
end
|
1446
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1447
|
+
raise e
|
1448
|
+
rescue StandardError => e
|
1449
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
# 修改录像存储列表
|
1453
|
+
|
1454
|
+
# @param request: Request instance for ModifyVideoInfo.
|
1455
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyVideoInfoRequest`
|
1456
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyVideoInfoResponse`
|
1457
|
+
def ModifyVideoInfo(request)
|
1458
|
+
body = send_request('ModifyVideoInfo', request.serialize)
|
1459
|
+
response = JSON.parse(body)
|
1460
|
+
if response['Response'].key?('Error') == false
|
1461
|
+
model = ModifyVideoInfoResponse.new
|
1462
|
+
model.deserialize(response['Response'])
|
1463
|
+
model
|
1464
|
+
else
|
1465
|
+
code = response['Response']['Error']['Code']
|
1466
|
+
message = response['Response']['Error']['Message']
|
1467
|
+
reqid = response['Response']['RequestId']
|
1468
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1469
|
+
end
|
1470
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1471
|
+
raise e
|
1472
|
+
rescue StandardError => e
|
1473
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1474
|
+
end
|
1475
|
+
|
852
1476
|
# 本接口(UpdateDeviceGroup)用于修改分组信息。
|
853
1477
|
|
854
1478
|
# @param request: Request instance for UpdateDeviceGroup.
|