tencentcloud-sdk-live 3.0.592 → 3.0.593

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: 1507d21e57d8035efa637a7f271b936d51c691ad
4
- data.tar.gz: 8166360625cfd22d0c866ae595e1f8b8b0a8a397
3
+ metadata.gz: c09fd864891c8cbe3d19de832ee113050da5a619
4
+ data.tar.gz: 3cf2da4af06340984d9405abd5e3b041c75d88c8
5
5
  SHA512:
6
- metadata.gz: 5f2ae444c1cec5f5b8bd0541aa070b533b95b4731741face9745da55205750295f60b0136c2ef403a265078f3c306f16d28a9eff86d2d1ccb9d5da87e6778f4b
7
- data.tar.gz: 1ce2b15ef8924f90049362737360b910c3eb9a83d142dae2c3c5eee1a68ec096f50fffda94c90df5290f23b4d21660f2315f1556972bf5e625920b95b2e7788b
6
+ metadata.gz: 7f591cb63112a6cda4f22ac81fed7995c9ca379bcdfb6cd84b7d070267b602a87898dc5bc0f2bd14974ef015e1307272dfc43648e8f01364ec55c71c110160a8
7
+ data.tar.gz: 55267b3c5fae56610072e7efe0e6c6586b26658e81ac4818632cf5403eaa9f43e5bb2fbc646e3ad2083ed5ddb945973f12946c3e531dee6f657fe805a8beac47
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.592
1
+ 3.0.593
@@ -228,6 +228,54 @@ module TencentCloud
228
228
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
229
229
  end
230
230
 
231
+ # 创建直播垫片规则。
232
+
233
+ # @param request: Request instance for CreateLivePadRule.
234
+ # @type request: :class:`Tencentcloud::live::V20180801::CreateLivePadRuleRequest`
235
+ # @rtype: :class:`Tencentcloud::live::V20180801::CreateLivePadRuleResponse`
236
+ def CreateLivePadRule(request)
237
+ body = send_request('CreateLivePadRule', request.serialize)
238
+ response = JSON.parse(body)
239
+ if response['Response'].key?('Error') == false
240
+ model = CreateLivePadRuleResponse.new
241
+ model.deserialize(response['Response'])
242
+ model
243
+ else
244
+ code = response['Response']['Error']['Code']
245
+ message = response['Response']['Error']['Message']
246
+ reqid = response['Response']['RequestId']
247
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
248
+ end
249
+ rescue TencentCloud::Common::TencentCloudSDKException => e
250
+ raise e
251
+ rescue StandardError => e
252
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
253
+ end
254
+
255
+ # 创建直播垫片模板。
256
+
257
+ # @param request: Request instance for CreateLivePadTemplate.
258
+ # @type request: :class:`Tencentcloud::live::V20180801::CreateLivePadTemplateRequest`
259
+ # @rtype: :class:`Tencentcloud::live::V20180801::CreateLivePadTemplateResponse`
260
+ def CreateLivePadTemplate(request)
261
+ body = send_request('CreateLivePadTemplate', request.serialize)
262
+ response = JSON.parse(body)
263
+ if response['Response'].key?('Error') == false
264
+ model = CreateLivePadTemplateResponse.new
265
+ model.deserialize(response['Response'])
266
+ model
267
+ else
268
+ code = response['Response']['Error']['Code']
269
+ message = response['Response']['Error']['Message']
270
+ reqid = response['Response']['RequestId']
271
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
272
+ end
273
+ rescue TencentCloud::Common::TencentCloudSDKException => e
274
+ raise e
275
+ rescue StandardError => e
276
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
277
+ end
278
+
231
279
  # 创建直播拉流任务。支持将外部已有的点播文件,或者直播源拉取过来转推到指定的目标地址。
232
280
  # 注意:
233
281
  # 1. 默认支持任务数上限200个,如有特殊需求,可通过提单到售后进行评估增加上限。
@@ -399,6 +447,30 @@ module TencentCloud
399
447
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
400
448
  end
401
449
 
450
+ # 该接口用来创建直播流监播任务。
451
+
452
+ # @param request: Request instance for CreateLiveStreamMonitor.
453
+ # @type request: :class:`Tencentcloud::live::V20180801::CreateLiveStreamMonitorRequest`
454
+ # @rtype: :class:`Tencentcloud::live::V20180801::CreateLiveStreamMonitorResponse`
455
+ def CreateLiveStreamMonitor(request)
456
+ body = send_request('CreateLiveStreamMonitor', request.serialize)
457
+ response = JSON.parse(body)
458
+ if response['Response'].key?('Error') == false
459
+ model = CreateLiveStreamMonitorResponse.new
460
+ model.deserialize(response['Response'])
461
+ model
462
+ else
463
+ code = response['Response']['Error']['Code']
464
+ message = response['Response']['Error']['Message']
465
+ reqid = response['Response']['RequestId']
466
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
467
+ end
468
+ rescue TencentCloud::Common::TencentCloudSDKException => e
469
+ raise e
470
+ rescue StandardError => e
471
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
472
+ end
473
+
402
474
  # 创建直播时移规则,需要先调用[CreateLiveTimeShiftTemplate](/document/product/267/86169)接口创建直播时移模板,将返回的模板id绑定到流使用。
403
475
  # <br>直播时移相关文档:[直播时移](/document/product/267/86134)。
404
476
 
@@ -686,6 +758,54 @@ module TencentCloud
686
758
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
687
759
  end
688
760
 
761
+ # 删除直播垫片规则。
762
+
763
+ # @param request: Request instance for DeleteLivePadRule.
764
+ # @type request: :class:`Tencentcloud::live::V20180801::DeleteLivePadRuleRequest`
765
+ # @rtype: :class:`Tencentcloud::live::V20180801::DeleteLivePadRuleResponse`
766
+ def DeleteLivePadRule(request)
767
+ body = send_request('DeleteLivePadRule', request.serialize)
768
+ response = JSON.parse(body)
769
+ if response['Response'].key?('Error') == false
770
+ model = DeleteLivePadRuleResponse.new
771
+ model.deserialize(response['Response'])
772
+ model
773
+ else
774
+ code = response['Response']['Error']['Code']
775
+ message = response['Response']['Error']['Message']
776
+ reqid = response['Response']['RequestId']
777
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
778
+ end
779
+ rescue TencentCloud::Common::TencentCloudSDKException => e
780
+ raise e
781
+ rescue StandardError => e
782
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
783
+ end
784
+
785
+ # 删除直播垫片模板。
786
+
787
+ # @param request: Request instance for DeleteLivePadTemplate.
788
+ # @type request: :class:`Tencentcloud::live::V20180801::DeleteLivePadTemplateRequest`
789
+ # @rtype: :class:`Tencentcloud::live::V20180801::DeleteLivePadTemplateResponse`
790
+ def DeleteLivePadTemplate(request)
791
+ body = send_request('DeleteLivePadTemplate', request.serialize)
792
+ response = JSON.parse(body)
793
+ if response['Response'].key?('Error') == false
794
+ model = DeleteLivePadTemplateResponse.new
795
+ model.deserialize(response['Response'])
796
+ model
797
+ else
798
+ code = response['Response']['Error']['Code']
799
+ message = response['Response']['Error']['Message']
800
+ reqid = response['Response']['RequestId']
801
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
802
+ end
803
+ rescue TencentCloud::Common::TencentCloudSDKException => e
804
+ raise e
805
+ rescue StandardError => e
806
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
807
+ end
808
+
689
809
  # 删除接口 CreateLivePullStreamTask 创建的拉流任务。
690
810
  # 注意:
691
811
  # 1. 入参中的 TaskId 为 CreateLivePullStreamTask 接口创建时返回的TaskId。
@@ -833,6 +953,30 @@ module TencentCloud
833
953
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
834
954
  end
835
955
 
956
+ # 该接口用来删除直播流监播任务。
957
+
958
+ # @param request: Request instance for DeleteLiveStreamMonitor.
959
+ # @type request: :class:`Tencentcloud::live::V20180801::DeleteLiveStreamMonitorRequest`
960
+ # @rtype: :class:`Tencentcloud::live::V20180801::DeleteLiveStreamMonitorResponse`
961
+ def DeleteLiveStreamMonitor(request)
962
+ body = send_request('DeleteLiveStreamMonitor', request.serialize)
963
+ response = JSON.parse(body)
964
+ if response['Response'].key?('Error') == false
965
+ model = DeleteLiveStreamMonitorResponse.new
966
+ model.deserialize(response['Response'])
967
+ model
968
+ else
969
+ code = response['Response']['Error']['Code']
970
+ message = response['Response']['Error']['Message']
971
+ reqid = response['Response']['RequestId']
972
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
973
+ end
974
+ rescue TencentCloud::Common::TencentCloudSDKException => e
975
+ raise e
976
+ rescue StandardError => e
977
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
978
+ end
979
+
836
980
  # 删除直播时移规则。
837
981
 
838
982
  # @param request: Request instance for DeleteLiveTimeShiftRule.
@@ -1582,6 +1726,78 @@ module TencentCloud
1582
1726
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1583
1727
  end
1584
1728
 
1729
+ # 获取直播垫片规则列表。
1730
+
1731
+ # @param request: Request instance for DescribeLivePadRules.
1732
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeLivePadRulesRequest`
1733
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeLivePadRulesResponse`
1734
+ def DescribeLivePadRules(request)
1735
+ body = send_request('DescribeLivePadRules', request.serialize)
1736
+ response = JSON.parse(body)
1737
+ if response['Response'].key?('Error') == false
1738
+ model = DescribeLivePadRulesResponse.new
1739
+ model.deserialize(response['Response'])
1740
+ model
1741
+ else
1742
+ code = response['Response']['Error']['Code']
1743
+ message = response['Response']['Error']['Message']
1744
+ reqid = response['Response']['RequestId']
1745
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1746
+ end
1747
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1748
+ raise e
1749
+ rescue StandardError => e
1750
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1751
+ end
1752
+
1753
+ # 获取单个直播垫片模板
1754
+
1755
+ # @param request: Request instance for DescribeLivePadTemplate.
1756
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeLivePadTemplateRequest`
1757
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeLivePadTemplateResponse`
1758
+ def DescribeLivePadTemplate(request)
1759
+ body = send_request('DescribeLivePadTemplate', request.serialize)
1760
+ response = JSON.parse(body)
1761
+ if response['Response'].key?('Error') == false
1762
+ model = DescribeLivePadTemplateResponse.new
1763
+ model.deserialize(response['Response'])
1764
+ model
1765
+ else
1766
+ code = response['Response']['Error']['Code']
1767
+ message = response['Response']['Error']['Message']
1768
+ reqid = response['Response']['RequestId']
1769
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1770
+ end
1771
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1772
+ raise e
1773
+ rescue StandardError => e
1774
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1775
+ end
1776
+
1777
+ # 获取直播垫片模板。
1778
+
1779
+ # @param request: Request instance for DescribeLivePadTemplates.
1780
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeLivePadTemplatesRequest`
1781
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeLivePadTemplatesResponse`
1782
+ def DescribeLivePadTemplates(request)
1783
+ body = send_request('DescribeLivePadTemplates', request.serialize)
1784
+ response = JSON.parse(body)
1785
+ if response['Response'].key?('Error') == false
1786
+ model = DescribeLivePadTemplatesResponse.new
1787
+ model.deserialize(response['Response'])
1788
+ model
1789
+ else
1790
+ code = response['Response']['Error']['Code']
1791
+ message = response['Response']['Error']['Message']
1792
+ reqid = response['Response']['RequestId']
1793
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1794
+ end
1795
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1796
+ raise e
1797
+ rescue StandardError => e
1798
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1799
+ end
1800
+
1585
1801
  # 查询播放鉴权key。
1586
1802
 
1587
1803
  # @param request: Request instance for DescribeLivePlayAuthKey.
@@ -1827,6 +2043,54 @@ module TencentCloud
1827
2043
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1828
2044
  end
1829
2045
 
2046
+ # 该接口用来查询某个特定监播任务的配置。
2047
+
2048
+ # @param request: Request instance for DescribeLiveStreamMonitor.
2049
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeLiveStreamMonitorRequest`
2050
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeLiveStreamMonitorResponse`
2051
+ def DescribeLiveStreamMonitor(request)
2052
+ body = send_request('DescribeLiveStreamMonitor', request.serialize)
2053
+ response = JSON.parse(body)
2054
+ if response['Response'].key?('Error') == false
2055
+ model = DescribeLiveStreamMonitorResponse.new
2056
+ model.deserialize(response['Response'])
2057
+ model
2058
+ else
2059
+ code = response['Response']['Error']['Code']
2060
+ message = response['Response']['Error']['Message']
2061
+ reqid = response['Response']['RequestId']
2062
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2063
+ end
2064
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2065
+ raise e
2066
+ rescue StandardError => e
2067
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2068
+ end
2069
+
2070
+ # 该接口用来查询直播流监播任务配置的列表信息。
2071
+
2072
+ # @param request: Request instance for DescribeLiveStreamMonitorList.
2073
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeLiveStreamMonitorListRequest`
2074
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeLiveStreamMonitorListResponse`
2075
+ def DescribeLiveStreamMonitorList(request)
2076
+ body = send_request('DescribeLiveStreamMonitorList', request.serialize)
2077
+ response = JSON.parse(body)
2078
+ if response['Response'].key?('Error') == false
2079
+ model = DescribeLiveStreamMonitorListResponse.new
2080
+ model.deserialize(response['Response'])
2081
+ model
2082
+ else
2083
+ code = response['Response']['Error']['Code']
2084
+ message = response['Response']['Error']['Message']
2085
+ reqid = response['Response']['RequestId']
2086
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2087
+ end
2088
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2089
+ raise e
2090
+ rescue StandardError => e
2091
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2092
+ end
2093
+
1830
2094
  # 返回正在直播中的流列表。适用于推流成功后查询在线流信息。
1831
2095
 
1832
2096
  # 注意:
@@ -2252,6 +2516,30 @@ module TencentCloud
2252
2516
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2253
2517
  end
2254
2518
 
2519
+ # 用来查询监播场次7天内的智能识别、断流、低帧率等信息的汇总报告。
2520
+
2521
+ # @param request: Request instance for DescribeMonitorReport.
2522
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeMonitorReportRequest`
2523
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeMonitorReportResponse`
2524
+ def DescribeMonitorReport(request)
2525
+ body = send_request('DescribeMonitorReport', request.serialize)
2526
+ response = JSON.parse(body)
2527
+ if response['Response'].key?('Error') == false
2528
+ model = DescribeMonitorReportResponse.new
2529
+ model.deserialize(response['Response'])
2530
+ model
2531
+ else
2532
+ code = response['Response']['Error']['Code']
2533
+ message = response['Response']['Error']['Message']
2534
+ reqid = response['Response']['RequestId']
2535
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2536
+ end
2537
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2538
+ raise e
2539
+ rescue StandardError => e
2540
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2541
+ end
2542
+
2255
2543
  # 查询下行播放错误码信息,某段时间内1分钟粒度的各http错误码出现的次数,包括4xx,5xx。
2256
2544
 
2257
2545
 
@@ -2867,6 +3155,30 @@ module TencentCloud
2867
3155
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2868
3156
  end
2869
3157
 
3158
+ # 修改直播垫片模板。
3159
+
3160
+ # @param request: Request instance for ModifyLivePadTemplate.
3161
+ # @type request: :class:`Tencentcloud::live::V20180801::ModifyLivePadTemplateRequest`
3162
+ # @rtype: :class:`Tencentcloud::live::V20180801::ModifyLivePadTemplateResponse`
3163
+ def ModifyLivePadTemplate(request)
3164
+ body = send_request('ModifyLivePadTemplate', request.serialize)
3165
+ response = JSON.parse(body)
3166
+ if response['Response'].key?('Error') == false
3167
+ model = ModifyLivePadTemplateResponse.new
3168
+ model.deserialize(response['Response'])
3169
+ model
3170
+ else
3171
+ code = response['Response']['Error']['Code']
3172
+ message = response['Response']['Error']['Message']
3173
+ reqid = response['Response']['RequestId']
3174
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3175
+ end
3176
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3177
+ raise e
3178
+ rescue StandardError => e
3179
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3180
+ end
3181
+
2870
3182
  # 修改播放鉴权key
2871
3183
 
2872
3184
  # @param request: Request instance for ModifyLivePlayAuthKey.
@@ -3013,6 +3325,30 @@ module TencentCloud
3013
3325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3014
3326
  end
3015
3327
 
3328
+ # 该接口用来修改直播流监播任务的配置。
3329
+
3330
+ # @param request: Request instance for ModifyLiveStreamMonitor.
3331
+ # @type request: :class:`Tencentcloud::live::V20180801::ModifyLiveStreamMonitorRequest`
3332
+ # @rtype: :class:`Tencentcloud::live::V20180801::ModifyLiveStreamMonitorResponse`
3333
+ def ModifyLiveStreamMonitor(request)
3334
+ body = send_request('ModifyLiveStreamMonitor', request.serialize)
3335
+ response = JSON.parse(body)
3336
+ if response['Response'].key?('Error') == false
3337
+ model = ModifyLiveStreamMonitorResponse.new
3338
+ model.deserialize(response['Response'])
3339
+ model
3340
+ else
3341
+ code = response['Response']['Error']['Code']
3342
+ message = response['Response']['Error']['Message']
3343
+ reqid = response['Response']['RequestId']
3344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3345
+ end
3346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3347
+ raise e
3348
+ rescue StandardError => e
3349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3350
+ end
3351
+
3016
3352
  # 修改直播时移模板。
3017
3353
 
3018
3354
  # @param request: Request instance for ModifyLiveTimeShiftTemplate.
@@ -3184,6 +3520,30 @@ module TencentCloud
3184
3520
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3185
3521
  end
3186
3522
 
3523
+ # 该接口用来启动直播流监播任务。
3524
+
3525
+ # @param request: Request instance for StartLiveStreamMonitor.
3526
+ # @type request: :class:`Tencentcloud::live::V20180801::StartLiveStreamMonitorRequest`
3527
+ # @rtype: :class:`Tencentcloud::live::V20180801::StartLiveStreamMonitorResponse`
3528
+ def StartLiveStreamMonitor(request)
3529
+ body = send_request('StartLiveStreamMonitor', request.serialize)
3530
+ response = JSON.parse(body)
3531
+ if response['Response'].key?('Error') == false
3532
+ model = StartLiveStreamMonitorResponse.new
3533
+ model.deserialize(response['Response'])
3534
+ model
3535
+ else
3536
+ code = response['Response']['Error']['Code']
3537
+ message = response['Response']['Error']['Message']
3538
+ reqid = response['Response']['RequestId']
3539
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3540
+ end
3541
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3542
+ raise e
3543
+ rescue StandardError => e
3544
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3545
+ end
3546
+
3187
3547
  # 说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。
3188
3548
 
3189
3549
  # @param request: Request instance for StopLiveRecord.
@@ -3208,6 +3568,30 @@ module TencentCloud
3208
3568
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3209
3569
  end
3210
3570
 
3571
+ # 该接口用来停止直播流监播任务。
3572
+
3573
+ # @param request: Request instance for StopLiveStreamMonitor.
3574
+ # @type request: :class:`Tencentcloud::live::V20180801::StopLiveStreamMonitorRequest`
3575
+ # @rtype: :class:`Tencentcloud::live::V20180801::StopLiveStreamMonitorResponse`
3576
+ def StopLiveStreamMonitor(request)
3577
+ body = send_request('StopLiveStreamMonitor', request.serialize)
3578
+ response = JSON.parse(body)
3579
+ if response['Response'].key?('Error') == false
3580
+ model = StopLiveStreamMonitorResponse.new
3581
+ model.deserialize(response['Response'])
3582
+ model
3583
+ else
3584
+ code = response['Response']['Error']['Code']
3585
+ message = response['Response']['Error']['Message']
3586
+ reqid = response['Response']['RequestId']
3587
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3588
+ end
3589
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3590
+ raise e
3591
+ rescue StandardError => e
3592
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3593
+ end
3594
+
3211
3595
  # 提前结束录制,中止运行中的录制任务并生成录制文件。任务被成功终止后,本次任务将不再启动。
3212
3596
 
3213
3597
  # @param request: Request instance for StopRecordTask.