tencentcloud-sdk-python-live 3.1.28__tar.gz → 3.1.29__tar.gz
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.
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/setup.py +1 -1
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/live/v20180801/errorcodes.py +6 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/live/v20180801/live_client.py +47 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/live/v20180801/live_client_async.py +37 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/live/v20180801/models.py +170 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud_sdk_python_live.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_live-3.1.29/tencentcloud_sdk_python_live.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_live-3.1.28/tencentcloud_sdk_python_live.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/README.rst +0 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/setup.cfg +0 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/live/__init__.py +0 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud/live/v20180801/__init__.py +0 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud_sdk_python_live.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud_sdk_python_live.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_live-3.1.28 → tencentcloud_sdk_python_live-3.1.29}/tencentcloud_sdk_python_live.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-live
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.29
|
|
4
4
|
Summary: Tencent Cloud Live SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-live',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.29,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Live SDK for Python',
|
|
@@ -212,9 +212,15 @@ FAILEDOPERATION_MONITORNOTEXIST = 'FailedOperation.MonitorNotExist'
|
|
|
212
212
|
# 当前 CA 机构访问繁忙,请稍后重试。
|
|
213
213
|
FAILEDOPERATION_NETWORKERROR = 'FailedOperation.NetworkError'
|
|
214
214
|
|
|
215
|
+
# 未设置备播流
|
|
216
|
+
FAILEDOPERATION_NOBACKUPINPUT = 'FailedOperation.NoBackupInput'
|
|
217
|
+
|
|
215
218
|
# 直播未配置推流或播放域名
|
|
216
219
|
FAILEDOPERATION_NOLVBPUSHORPLAYDOMAIN = 'FailedOperation.NoLVBPushOrPlayDomain'
|
|
217
220
|
|
|
221
|
+
# 无运行中的PGM
|
|
222
|
+
FAILEDOPERATION_NOPGMRUNNING = 'FailedOperation.NoPgmRunning'
|
|
223
|
+
|
|
218
224
|
# 您没有该项目的操作权限。
|
|
219
225
|
FAILEDOPERATION_NOPROJECTPERMISSION = 'FailedOperation.NoProjectPermission'
|
|
220
226
|
|
|
@@ -1775,6 +1775,29 @@ class LiveClient(AbstractClient):
|
|
|
1775
1775
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1776
1776
|
|
|
1777
1777
|
|
|
1778
|
+
def DescribeCasterEmergencyStatus(self, request):
|
|
1779
|
+
r"""该接口用查询导播台的备播状态
|
|
1780
|
+
|
|
1781
|
+
:param request: Request instance for DescribeCasterEmergencyStatus.
|
|
1782
|
+
:type request: :class:`tencentcloud.live.v20180801.models.DescribeCasterEmergencyStatusRequest`
|
|
1783
|
+
:rtype: :class:`tencentcloud.live.v20180801.models.DescribeCasterEmergencyStatusResponse`
|
|
1784
|
+
|
|
1785
|
+
"""
|
|
1786
|
+
try:
|
|
1787
|
+
params = request._serialize()
|
|
1788
|
+
headers = request.headers
|
|
1789
|
+
body = self.call("DescribeCasterEmergencyStatus", params, headers=headers)
|
|
1790
|
+
response = json.loads(body)
|
|
1791
|
+
model = models.DescribeCasterEmergencyStatusResponse()
|
|
1792
|
+
model._deserialize(response["Response"])
|
|
1793
|
+
return model
|
|
1794
|
+
except Exception as e:
|
|
1795
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1796
|
+
raise
|
|
1797
|
+
else:
|
|
1798
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1799
|
+
|
|
1800
|
+
|
|
1778
1801
|
def DescribeCasterInputInfos(self, request):
|
|
1779
1802
|
r"""该接口用来查询导播台的输入源信息列表。
|
|
1780
1803
|
|
|
@@ -4761,6 +4784,30 @@ class LiveClient(AbstractClient):
|
|
|
4761
4784
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4762
4785
|
|
|
4763
4786
|
|
|
4787
|
+
def SwitchCasterToEmergency(self, request):
|
|
4788
|
+
r"""该接口用来将导播台切换到备播状态。
|
|
4789
|
+
该接口使用时,主监任务需处于运行状态。
|
|
4790
|
+
|
|
4791
|
+
:param request: Request instance for SwitchCasterToEmergency.
|
|
4792
|
+
:type request: :class:`tencentcloud.live.v20180801.models.SwitchCasterToEmergencyRequest`
|
|
4793
|
+
:rtype: :class:`tencentcloud.live.v20180801.models.SwitchCasterToEmergencyResponse`
|
|
4794
|
+
|
|
4795
|
+
"""
|
|
4796
|
+
try:
|
|
4797
|
+
params = request._serialize()
|
|
4798
|
+
headers = request.headers
|
|
4799
|
+
body = self.call("SwitchCasterToEmergency", params, headers=headers)
|
|
4800
|
+
response = json.loads(body)
|
|
4801
|
+
model = models.SwitchCasterToEmergencyResponse()
|
|
4802
|
+
model._deserialize(response["Response"])
|
|
4803
|
+
return model
|
|
4804
|
+
except Exception as e:
|
|
4805
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4806
|
+
raise
|
|
4807
|
+
else:
|
|
4808
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4809
|
+
|
|
4810
|
+
|
|
4764
4811
|
def UnBindLiveDomainCert(self, request):
|
|
4765
4812
|
r"""解绑域名证书
|
|
4766
4813
|
|
|
@@ -1409,6 +1409,24 @@ class LiveClient(AbstractClient):
|
|
|
1409
1409
|
|
|
1410
1410
|
return await self.call_and_deserialize(**kwargs)
|
|
1411
1411
|
|
|
1412
|
+
async def DescribeCasterEmergencyStatus(
|
|
1413
|
+
self,
|
|
1414
|
+
request: models.DescribeCasterEmergencyStatusRequest,
|
|
1415
|
+
opts: Dict = None,
|
|
1416
|
+
) -> models.DescribeCasterEmergencyStatusResponse:
|
|
1417
|
+
"""
|
|
1418
|
+
该接口用查询导播台的备播状态
|
|
1419
|
+
"""
|
|
1420
|
+
|
|
1421
|
+
kwargs = {}
|
|
1422
|
+
kwargs["action"] = "DescribeCasterEmergencyStatus"
|
|
1423
|
+
kwargs["params"] = request._serialize()
|
|
1424
|
+
kwargs["resp_cls"] = models.DescribeCasterEmergencyStatusResponse
|
|
1425
|
+
kwargs["headers"] = request.headers
|
|
1426
|
+
kwargs["opts"] = opts or {}
|
|
1427
|
+
|
|
1428
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1429
|
+
|
|
1412
1430
|
async def DescribeCasterInputInfos(
|
|
1413
1431
|
self,
|
|
1414
1432
|
request: models.DescribeCasterInputInfosRequest,
|
|
@@ -3760,6 +3778,25 @@ class LiveClient(AbstractClient):
|
|
|
3760
3778
|
|
|
3761
3779
|
return await self.call_and_deserialize(**kwargs)
|
|
3762
3780
|
|
|
3781
|
+
async def SwitchCasterToEmergency(
|
|
3782
|
+
self,
|
|
3783
|
+
request: models.SwitchCasterToEmergencyRequest,
|
|
3784
|
+
opts: Dict = None,
|
|
3785
|
+
) -> models.SwitchCasterToEmergencyResponse:
|
|
3786
|
+
"""
|
|
3787
|
+
该接口用来将导播台切换到备播状态。
|
|
3788
|
+
该接口使用时,主监任务需处于运行状态。
|
|
3789
|
+
"""
|
|
3790
|
+
|
|
3791
|
+
kwargs = {}
|
|
3792
|
+
kwargs["action"] = "SwitchCasterToEmergency"
|
|
3793
|
+
kwargs["params"] = request._serialize()
|
|
3794
|
+
kwargs["resp_cls"] = models.SwitchCasterToEmergencyResponse
|
|
3795
|
+
kwargs["headers"] = request.headers
|
|
3796
|
+
kwargs["opts"] = opts or {}
|
|
3797
|
+
|
|
3798
|
+
return await self.call_and_deserialize(**kwargs)
|
|
3799
|
+
|
|
3763
3800
|
async def UnBindLiveDomainCert(
|
|
3764
3801
|
self,
|
|
3765
3802
|
request: models.UnBindLiveDomainCertRequest,
|
|
@@ -14552,6 +14552,91 @@ class DescribeCasterDisplayInfoResponse(AbstractModel):
|
|
|
14552
14552
|
self._RequestId = params.get("RequestId")
|
|
14553
14553
|
|
|
14554
14554
|
|
|
14555
|
+
class DescribeCasterEmergencyStatusRequest(AbstractModel):
|
|
14556
|
+
r"""DescribeCasterEmergencyStatus请求参数结构体
|
|
14557
|
+
|
|
14558
|
+
"""
|
|
14559
|
+
|
|
14560
|
+
def __init__(self):
|
|
14561
|
+
r"""
|
|
14562
|
+
:param _CasterId: 导播台ID。
|
|
14563
|
+
:type CasterId: int
|
|
14564
|
+
"""
|
|
14565
|
+
self._CasterId = None
|
|
14566
|
+
|
|
14567
|
+
@property
|
|
14568
|
+
def CasterId(self):
|
|
14569
|
+
r"""导播台ID。
|
|
14570
|
+
:rtype: int
|
|
14571
|
+
"""
|
|
14572
|
+
return self._CasterId
|
|
14573
|
+
|
|
14574
|
+
@CasterId.setter
|
|
14575
|
+
def CasterId(self, CasterId):
|
|
14576
|
+
self._CasterId = CasterId
|
|
14577
|
+
|
|
14578
|
+
|
|
14579
|
+
def _deserialize(self, params):
|
|
14580
|
+
self._CasterId = params.get("CasterId")
|
|
14581
|
+
memeber_set = set(params.keys())
|
|
14582
|
+
for name, value in vars(self).items():
|
|
14583
|
+
property_name = name[1:]
|
|
14584
|
+
if property_name in memeber_set:
|
|
14585
|
+
memeber_set.remove(property_name)
|
|
14586
|
+
if len(memeber_set) > 0:
|
|
14587
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14588
|
+
|
|
14589
|
+
|
|
14590
|
+
|
|
14591
|
+
class DescribeCasterEmergencyStatusResponse(AbstractModel):
|
|
14592
|
+
r"""DescribeCasterEmergencyStatus返回参数结构体
|
|
14593
|
+
|
|
14594
|
+
"""
|
|
14595
|
+
|
|
14596
|
+
def __init__(self):
|
|
14597
|
+
r"""
|
|
14598
|
+
:param _EmergencyStatus: 备播状态,范围[0,1,2]
|
|
14599
|
+
0. 正常直播状态
|
|
14600
|
+
1. 备播状态
|
|
14601
|
+
2. 备播切换正常直播中,在配置了延播时长时出现
|
|
14602
|
+
:type EmergencyStatus: int
|
|
14603
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14604
|
+
:type RequestId: str
|
|
14605
|
+
"""
|
|
14606
|
+
self._EmergencyStatus = None
|
|
14607
|
+
self._RequestId = None
|
|
14608
|
+
|
|
14609
|
+
@property
|
|
14610
|
+
def EmergencyStatus(self):
|
|
14611
|
+
r"""备播状态,范围[0,1,2]
|
|
14612
|
+
0. 正常直播状态
|
|
14613
|
+
1. 备播状态
|
|
14614
|
+
2. 备播切换正常直播中,在配置了延播时长时出现
|
|
14615
|
+
:rtype: int
|
|
14616
|
+
"""
|
|
14617
|
+
return self._EmergencyStatus
|
|
14618
|
+
|
|
14619
|
+
@EmergencyStatus.setter
|
|
14620
|
+
def EmergencyStatus(self, EmergencyStatus):
|
|
14621
|
+
self._EmergencyStatus = EmergencyStatus
|
|
14622
|
+
|
|
14623
|
+
@property
|
|
14624
|
+
def RequestId(self):
|
|
14625
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14626
|
+
:rtype: str
|
|
14627
|
+
"""
|
|
14628
|
+
return self._RequestId
|
|
14629
|
+
|
|
14630
|
+
@RequestId.setter
|
|
14631
|
+
def RequestId(self, RequestId):
|
|
14632
|
+
self._RequestId = RequestId
|
|
14633
|
+
|
|
14634
|
+
|
|
14635
|
+
def _deserialize(self, params):
|
|
14636
|
+
self._EmergencyStatus = params.get("EmergencyStatus")
|
|
14637
|
+
self._RequestId = params.get("RequestId")
|
|
14638
|
+
|
|
14639
|
+
|
|
14555
14640
|
class DescribeCasterInputInfosRequest(AbstractModel):
|
|
14556
14641
|
r"""DescribeCasterInputInfos请求参数结构体
|
|
14557
14642
|
|
|
@@ -38833,6 +38918,91 @@ class SwitchBackupStreamResponse(AbstractModel):
|
|
|
38833
38918
|
self._RequestId = params.get("RequestId")
|
|
38834
38919
|
|
|
38835
38920
|
|
|
38921
|
+
class SwitchCasterToEmergencyRequest(AbstractModel):
|
|
38922
|
+
r"""SwitchCasterToEmergency请求参数结构体
|
|
38923
|
+
|
|
38924
|
+
"""
|
|
38925
|
+
|
|
38926
|
+
def __init__(self):
|
|
38927
|
+
r"""
|
|
38928
|
+
:param _CasterId: 导播台ID。
|
|
38929
|
+
:type CasterId: int
|
|
38930
|
+
"""
|
|
38931
|
+
self._CasterId = None
|
|
38932
|
+
|
|
38933
|
+
@property
|
|
38934
|
+
def CasterId(self):
|
|
38935
|
+
r"""导播台ID。
|
|
38936
|
+
:rtype: int
|
|
38937
|
+
"""
|
|
38938
|
+
return self._CasterId
|
|
38939
|
+
|
|
38940
|
+
@CasterId.setter
|
|
38941
|
+
def CasterId(self, CasterId):
|
|
38942
|
+
self._CasterId = CasterId
|
|
38943
|
+
|
|
38944
|
+
|
|
38945
|
+
def _deserialize(self, params):
|
|
38946
|
+
self._CasterId = params.get("CasterId")
|
|
38947
|
+
memeber_set = set(params.keys())
|
|
38948
|
+
for name, value in vars(self).items():
|
|
38949
|
+
property_name = name[1:]
|
|
38950
|
+
if property_name in memeber_set:
|
|
38951
|
+
memeber_set.remove(property_name)
|
|
38952
|
+
if len(memeber_set) > 0:
|
|
38953
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
38954
|
+
|
|
38955
|
+
|
|
38956
|
+
|
|
38957
|
+
class SwitchCasterToEmergencyResponse(AbstractModel):
|
|
38958
|
+
r"""SwitchCasterToEmergency返回参数结构体
|
|
38959
|
+
|
|
38960
|
+
"""
|
|
38961
|
+
|
|
38962
|
+
def __init__(self):
|
|
38963
|
+
r"""
|
|
38964
|
+
:param _EmergencyStatus: 备播状态,范围[0,1,2]
|
|
38965
|
+
0. 正常直播状态
|
|
38966
|
+
1. 备播状态
|
|
38967
|
+
2. 备播切换正常直播中,在配置了延播时长时出现
|
|
38968
|
+
:type EmergencyStatus: int
|
|
38969
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
38970
|
+
:type RequestId: str
|
|
38971
|
+
"""
|
|
38972
|
+
self._EmergencyStatus = None
|
|
38973
|
+
self._RequestId = None
|
|
38974
|
+
|
|
38975
|
+
@property
|
|
38976
|
+
def EmergencyStatus(self):
|
|
38977
|
+
r"""备播状态,范围[0,1,2]
|
|
38978
|
+
0. 正常直播状态
|
|
38979
|
+
1. 备播状态
|
|
38980
|
+
2. 备播切换正常直播中,在配置了延播时长时出现
|
|
38981
|
+
:rtype: int
|
|
38982
|
+
"""
|
|
38983
|
+
return self._EmergencyStatus
|
|
38984
|
+
|
|
38985
|
+
@EmergencyStatus.setter
|
|
38986
|
+
def EmergencyStatus(self, EmergencyStatus):
|
|
38987
|
+
self._EmergencyStatus = EmergencyStatus
|
|
38988
|
+
|
|
38989
|
+
@property
|
|
38990
|
+
def RequestId(self):
|
|
38991
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
38992
|
+
:rtype: str
|
|
38993
|
+
"""
|
|
38994
|
+
return self._RequestId
|
|
38995
|
+
|
|
38996
|
+
@RequestId.setter
|
|
38997
|
+
def RequestId(self, RequestId):
|
|
38998
|
+
self._RequestId = RequestId
|
|
38999
|
+
|
|
39000
|
+
|
|
39001
|
+
def _deserialize(self, params):
|
|
39002
|
+
self._EmergencyStatus = params.get("EmergencyStatus")
|
|
39003
|
+
self._RequestId = params.get("RequestId")
|
|
39004
|
+
|
|
39005
|
+
|
|
38836
39006
|
class TaskDurationInfo(AbstractModel):
|
|
38837
39007
|
r"""拉流转推任务的时长分布信息
|
|
38838
39008
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-live
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.29
|
|
4
4
|
Summary: Tencent Cloud Live SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.29
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.28
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|