tencentcloud-sdk-python-mps 3.1.133__tar.gz → 3.1.134__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_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/mps/v20190612/errorcodes.py +12 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/mps/v20190612/models.py +465 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/mps/v20190612/mps_client.py +46 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/mps/v20190612/mps_client_async.py +36 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.134/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.133/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.133 → tencentcloud_sdk_python_mps-3.1.134}/tencentcloud_sdk_python_mps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.134
|
|
4
4
|
Summary: Tencent Cloud Mps 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.134
|
|
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-mps',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.134,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -26,6 +26,9 @@ FAILEDOPERATION_BUCKETNOTIFYALREADYEXIST = 'FailedOperation.BucketNotifyAlreadyE
|
|
|
26
26
|
# 操作失败:COS 已经停服。
|
|
27
27
|
FAILEDOPERATION_COSSTATUSINAVLID = 'FailedOperation.CosStatusInavlid'
|
|
28
28
|
|
|
29
|
+
# 创建AIGC任务失败
|
|
30
|
+
FAILEDOPERATION_CREATEAIGCTASKFAILED = 'FailedOperation.CreateAIGCTaskFailed'
|
|
31
|
+
|
|
29
32
|
# 生成资源失败。
|
|
30
33
|
FAILEDOPERATION_GENERATERESOURCE = 'FailedOperation.GenerateResource'
|
|
31
34
|
|
|
@@ -47,6 +50,9 @@ FAILEDOPERATION_SETSOURCENOTIFY = 'FailedOperation.SetSourceNotify'
|
|
|
47
50
|
# 查询的任务不存在
|
|
48
51
|
FAILEDOPERATION_TASKNOTFOUND = 'FailedOperation.TaskNotFound'
|
|
49
52
|
|
|
53
|
+
# 用户状态已停服
|
|
54
|
+
FAILEDOPERATION_USERARREARS = 'FailedOperation.UserArrears'
|
|
55
|
+
|
|
50
56
|
# 内部错误。
|
|
51
57
|
INTERNALERROR = 'InternalError'
|
|
52
58
|
|
|
@@ -104,6 +110,9 @@ INVALIDPARAMETER_INPUTOUTPUTID = 'InvalidParameter.InputOutputId'
|
|
|
104
110
|
# InvalidParameter.InvalidParameterChannelId
|
|
105
111
|
INVALIDPARAMETER_INVALIDPARAMETERCHANNELID = 'InvalidParameter.InvalidParameterChannelId'
|
|
106
112
|
|
|
113
|
+
# 请求参数中Url不合法
|
|
114
|
+
INVALIDPARAMETER_INVALIDURL = 'InvalidParameter.InvalidUrl'
|
|
115
|
+
|
|
107
116
|
# InvalidParameter.MaxBandwidth
|
|
108
117
|
INVALIDPARAMETER_MAXBANDWIDTH = 'InvalidParameter.MaxBandwidth'
|
|
109
118
|
|
|
@@ -533,6 +542,9 @@ INVALIDPARAMETERVALUE_XPOS = 'InvalidParameterValue.XPos'
|
|
|
533
542
|
# 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式。
|
|
534
543
|
INVALIDPARAMETERVALUE_YPOS = 'InvalidParameterValue.YPos'
|
|
535
544
|
|
|
545
|
+
# 无法创建任务,当前正在执行的任务数达到上限
|
|
546
|
+
LIMITEXCEEDED_CREATETASK = 'LimitExceeded.CreateTask'
|
|
547
|
+
|
|
536
548
|
# 热词库创建数量到达默认上限
|
|
537
549
|
LIMITEXCEEDED_TOOMUCHHOTWORDS = 'LimitExceeded.TooMuchHotWords'
|
|
538
550
|
|
|
@@ -1533,6 +1533,8 @@ class AdaptiveDynamicStreamingTaskInput(AbstractModel):
|
|
|
1533
1533
|
:type KeyPTSList: list of int
|
|
1534
1534
|
:param _AddOnAudios: <p>外挂音频功能,指定要插入的音频文件。</p>
|
|
1535
1535
|
:type AddOnAudios: list of AddOnAudio
|
|
1536
|
+
:param _StdExtStreamInfos: <p>非空时直接替换模板的 StreamInfos 字段,字段格式与创建自适应模板时的 StreamInfos 完全一致</p>
|
|
1537
|
+
:type StdExtStreamInfos: list of AdaptiveStreamTemplate
|
|
1536
1538
|
"""
|
|
1537
1539
|
self._Definition = None
|
|
1538
1540
|
self._WatermarkSet = None
|
|
@@ -1548,6 +1550,7 @@ class AdaptiveDynamicStreamingTaskInput(AbstractModel):
|
|
|
1548
1550
|
self._StdExtInfo = None
|
|
1549
1551
|
self._KeyPTSList = None
|
|
1550
1552
|
self._AddOnAudios = None
|
|
1553
|
+
self._StdExtStreamInfos = None
|
|
1551
1554
|
|
|
1552
1555
|
@property
|
|
1553
1556
|
def Definition(self):
|
|
@@ -1709,6 +1712,17 @@ class AdaptiveDynamicStreamingTaskInput(AbstractModel):
|
|
|
1709
1712
|
def AddOnAudios(self, AddOnAudios):
|
|
1710
1713
|
self._AddOnAudios = AddOnAudios
|
|
1711
1714
|
|
|
1715
|
+
@property
|
|
1716
|
+
def StdExtStreamInfos(self):
|
|
1717
|
+
r"""<p>非空时直接替换模板的 StreamInfos 字段,字段格式与创建自适应模板时的 StreamInfos 完全一致</p>
|
|
1718
|
+
:rtype: list of AdaptiveStreamTemplate
|
|
1719
|
+
"""
|
|
1720
|
+
return self._StdExtStreamInfos
|
|
1721
|
+
|
|
1722
|
+
@StdExtStreamInfos.setter
|
|
1723
|
+
def StdExtStreamInfos(self, StdExtStreamInfos):
|
|
1724
|
+
self._StdExtStreamInfos = StdExtStreamInfos
|
|
1725
|
+
|
|
1712
1726
|
|
|
1713
1727
|
def _deserialize(self, params):
|
|
1714
1728
|
self._Definition = params.get("Definition")
|
|
@@ -1748,6 +1762,12 @@ class AdaptiveDynamicStreamingTaskInput(AbstractModel):
|
|
|
1748
1762
|
obj = AddOnAudio()
|
|
1749
1763
|
obj._deserialize(item)
|
|
1750
1764
|
self._AddOnAudios.append(obj)
|
|
1765
|
+
if params.get("StdExtStreamInfos") is not None:
|
|
1766
|
+
self._StdExtStreamInfos = []
|
|
1767
|
+
for item in params.get("StdExtStreamInfos"):
|
|
1768
|
+
obj = AdaptiveStreamTemplate()
|
|
1769
|
+
obj._deserialize(item)
|
|
1770
|
+
self._StdExtStreamInfos.append(obj)
|
|
1751
1771
|
memeber_set = set(params.keys())
|
|
1752
1772
|
for name, value in vars(self).items():
|
|
1753
1773
|
property_name = name[1:]
|
|
@@ -6916,6 +6936,87 @@ class AiContentReviewTaskInput(AbstractModel):
|
|
|
6916
6936
|
|
|
6917
6937
|
|
|
6918
6938
|
|
|
6939
|
+
class AiDramaInput(AbstractModel):
|
|
6940
|
+
r"""Ai自动生成漫剧的输入
|
|
6941
|
+
|
|
6942
|
+
"""
|
|
6943
|
+
|
|
6944
|
+
def __init__(self):
|
|
6945
|
+
r"""
|
|
6946
|
+
:param _Script: <p>ai漫剧剧本</p><p>参数格式:无</p><p>入参限制:无</p>
|
|
6947
|
+
:type Script: str
|
|
6948
|
+
:param _Style: <p>ai漫剧风格</p><p>枚举值:</p><ul><li>chinese_ink_wash: 国风水墨</li><li>fantasy_cyberpunk: 奇幻赛博朋克</li><li>japanese_anime_2d: 日漫二次元</li></ul><p>默认值:chinese_ink_wash</p><p>枚举值:</p><ul><li>realistic_live_action: 真人写实</li><li>chinese_ink_wash: 国风水墨</li><li>fantasy_cyberpunk: 奇幻赛博朋克</li><li>japanese_anime_2d: 日漫二次元</li></ul><p>默认值:chinese_ink_wash</p>
|
|
6949
|
+
:type Style: str
|
|
6950
|
+
:param _Ratio: <p>宽高比</p><p>枚举值:</p><ul><li>16:9: 16:9</li><li>9:16: 9:16</li></ul><p>默认值:16:9</p>
|
|
6951
|
+
:type Ratio: str
|
|
6952
|
+
:param _Resolution: <p>输出视频分辨率</p><p>枚举值:</p><ul><li>720p: 720p</li><li>1080p: 1080p</li></ul><p>默认值:720p</p>
|
|
6953
|
+
:type Resolution: str
|
|
6954
|
+
"""
|
|
6955
|
+
self._Script = None
|
|
6956
|
+
self._Style = None
|
|
6957
|
+
self._Ratio = None
|
|
6958
|
+
self._Resolution = None
|
|
6959
|
+
|
|
6960
|
+
@property
|
|
6961
|
+
def Script(self):
|
|
6962
|
+
r"""<p>ai漫剧剧本</p><p>参数格式:无</p><p>入参限制:无</p>
|
|
6963
|
+
:rtype: str
|
|
6964
|
+
"""
|
|
6965
|
+
return self._Script
|
|
6966
|
+
|
|
6967
|
+
@Script.setter
|
|
6968
|
+
def Script(self, Script):
|
|
6969
|
+
self._Script = Script
|
|
6970
|
+
|
|
6971
|
+
@property
|
|
6972
|
+
def Style(self):
|
|
6973
|
+
r"""<p>ai漫剧风格</p><p>枚举值:</p><ul><li>chinese_ink_wash: 国风水墨</li><li>fantasy_cyberpunk: 奇幻赛博朋克</li><li>japanese_anime_2d: 日漫二次元</li></ul><p>默认值:chinese_ink_wash</p><p>枚举值:</p><ul><li>realistic_live_action: 真人写实</li><li>chinese_ink_wash: 国风水墨</li><li>fantasy_cyberpunk: 奇幻赛博朋克</li><li>japanese_anime_2d: 日漫二次元</li></ul><p>默认值:chinese_ink_wash</p>
|
|
6974
|
+
:rtype: str
|
|
6975
|
+
"""
|
|
6976
|
+
return self._Style
|
|
6977
|
+
|
|
6978
|
+
@Style.setter
|
|
6979
|
+
def Style(self, Style):
|
|
6980
|
+
self._Style = Style
|
|
6981
|
+
|
|
6982
|
+
@property
|
|
6983
|
+
def Ratio(self):
|
|
6984
|
+
r"""<p>宽高比</p><p>枚举值:</p><ul><li>16:9: 16:9</li><li>9:16: 9:16</li></ul><p>默认值:16:9</p>
|
|
6985
|
+
:rtype: str
|
|
6986
|
+
"""
|
|
6987
|
+
return self._Ratio
|
|
6988
|
+
|
|
6989
|
+
@Ratio.setter
|
|
6990
|
+
def Ratio(self, Ratio):
|
|
6991
|
+
self._Ratio = Ratio
|
|
6992
|
+
|
|
6993
|
+
@property
|
|
6994
|
+
def Resolution(self):
|
|
6995
|
+
r"""<p>输出视频分辨率</p><p>枚举值:</p><ul><li>720p: 720p</li><li>1080p: 1080p</li></ul><p>默认值:720p</p>
|
|
6996
|
+
:rtype: str
|
|
6997
|
+
"""
|
|
6998
|
+
return self._Resolution
|
|
6999
|
+
|
|
7000
|
+
@Resolution.setter
|
|
7001
|
+
def Resolution(self, Resolution):
|
|
7002
|
+
self._Resolution = Resolution
|
|
7003
|
+
|
|
7004
|
+
|
|
7005
|
+
def _deserialize(self, params):
|
|
7006
|
+
self._Script = params.get("Script")
|
|
7007
|
+
self._Style = params.get("Style")
|
|
7008
|
+
self._Ratio = params.get("Ratio")
|
|
7009
|
+
self._Resolution = params.get("Resolution")
|
|
7010
|
+
memeber_set = set(params.keys())
|
|
7011
|
+
for name, value in vars(self).items():
|
|
7012
|
+
property_name = name[1:]
|
|
7013
|
+
if property_name in memeber_set:
|
|
7014
|
+
memeber_set.remove(property_name)
|
|
7015
|
+
if len(memeber_set) > 0:
|
|
7016
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7017
|
+
|
|
7018
|
+
|
|
7019
|
+
|
|
6919
7020
|
class AiParagraphInfo(AbstractModel):
|
|
6920
7021
|
r"""分段信息。
|
|
6921
7022
|
|
|
@@ -20602,6 +20703,104 @@ class CreateAdaptiveDynamicStreamingTemplateResponse(AbstractModel):
|
|
|
20602
20703
|
self._RequestId = params.get("RequestId")
|
|
20603
20704
|
|
|
20604
20705
|
|
|
20706
|
+
class CreateAiDramaTaskRequest(AbstractModel):
|
|
20707
|
+
r"""CreateAiDramaTask请求参数结构体
|
|
20708
|
+
|
|
20709
|
+
"""
|
|
20710
|
+
|
|
20711
|
+
def __init__(self):
|
|
20712
|
+
r"""
|
|
20713
|
+
:param _Input: <p>ai漫剧输入</p>
|
|
20714
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.AiDramaInput`
|
|
20715
|
+
:param _CosInfo: <p>用户cos信息</p>
|
|
20716
|
+
:type CosInfo: :class:`tencentcloud.mps.v20190612.models.VideoDramaCosInfo`
|
|
20717
|
+
"""
|
|
20718
|
+
self._Input = None
|
|
20719
|
+
self._CosInfo = None
|
|
20720
|
+
|
|
20721
|
+
@property
|
|
20722
|
+
def Input(self):
|
|
20723
|
+
r"""<p>ai漫剧输入</p>
|
|
20724
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiDramaInput`
|
|
20725
|
+
"""
|
|
20726
|
+
return self._Input
|
|
20727
|
+
|
|
20728
|
+
@Input.setter
|
|
20729
|
+
def Input(self, Input):
|
|
20730
|
+
self._Input = Input
|
|
20731
|
+
|
|
20732
|
+
@property
|
|
20733
|
+
def CosInfo(self):
|
|
20734
|
+
r"""<p>用户cos信息</p>
|
|
20735
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VideoDramaCosInfo`
|
|
20736
|
+
"""
|
|
20737
|
+
return self._CosInfo
|
|
20738
|
+
|
|
20739
|
+
@CosInfo.setter
|
|
20740
|
+
def CosInfo(self, CosInfo):
|
|
20741
|
+
self._CosInfo = CosInfo
|
|
20742
|
+
|
|
20743
|
+
|
|
20744
|
+
def _deserialize(self, params):
|
|
20745
|
+
if params.get("Input") is not None:
|
|
20746
|
+
self._Input = AiDramaInput()
|
|
20747
|
+
self._Input._deserialize(params.get("Input"))
|
|
20748
|
+
if params.get("CosInfo") is not None:
|
|
20749
|
+
self._CosInfo = VideoDramaCosInfo()
|
|
20750
|
+
self._CosInfo._deserialize(params.get("CosInfo"))
|
|
20751
|
+
memeber_set = set(params.keys())
|
|
20752
|
+
for name, value in vars(self).items():
|
|
20753
|
+
property_name = name[1:]
|
|
20754
|
+
if property_name in memeber_set:
|
|
20755
|
+
memeber_set.remove(property_name)
|
|
20756
|
+
if len(memeber_set) > 0:
|
|
20757
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20758
|
+
|
|
20759
|
+
|
|
20760
|
+
|
|
20761
|
+
class CreateAiDramaTaskResponse(AbstractModel):
|
|
20762
|
+
r"""CreateAiDramaTask返回参数结构体
|
|
20763
|
+
|
|
20764
|
+
"""
|
|
20765
|
+
|
|
20766
|
+
def __init__(self):
|
|
20767
|
+
r"""
|
|
20768
|
+
:param _TaskId: <p>任务id</p>
|
|
20769
|
+
:type TaskId: str
|
|
20770
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20771
|
+
:type RequestId: str
|
|
20772
|
+
"""
|
|
20773
|
+
self._TaskId = None
|
|
20774
|
+
self._RequestId = None
|
|
20775
|
+
|
|
20776
|
+
@property
|
|
20777
|
+
def TaskId(self):
|
|
20778
|
+
r"""<p>任务id</p>
|
|
20779
|
+
:rtype: str
|
|
20780
|
+
"""
|
|
20781
|
+
return self._TaskId
|
|
20782
|
+
|
|
20783
|
+
@TaskId.setter
|
|
20784
|
+
def TaskId(self, TaskId):
|
|
20785
|
+
self._TaskId = TaskId
|
|
20786
|
+
|
|
20787
|
+
@property
|
|
20788
|
+
def RequestId(self):
|
|
20789
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20790
|
+
:rtype: str
|
|
20791
|
+
"""
|
|
20792
|
+
return self._RequestId
|
|
20793
|
+
|
|
20794
|
+
@RequestId.setter
|
|
20795
|
+
def RequestId(self, RequestId):
|
|
20796
|
+
self._RequestId = RequestId
|
|
20797
|
+
|
|
20798
|
+
|
|
20799
|
+
def _deserialize(self, params):
|
|
20800
|
+
self._TaskId = params.get("TaskId")
|
|
20801
|
+
self._RequestId = params.get("RequestId")
|
|
20802
|
+
|
|
20803
|
+
|
|
20605
20804
|
class CreateAigcAudioTaskRequest(AbstractModel):
|
|
20606
20805
|
r"""CreateAigcAudioTask请求参数结构体
|
|
20607
20806
|
|
|
@@ -27593,6 +27792,104 @@ class CreateVideoDatabaseEntryTaskResponse(AbstractModel):
|
|
|
27593
27792
|
self._RequestId = params.get("RequestId")
|
|
27594
27793
|
|
|
27595
27794
|
|
|
27795
|
+
class CreateVideoRedrawTaskRequest(AbstractModel):
|
|
27796
|
+
r"""CreateVideoRedrawTask请求参数结构体
|
|
27797
|
+
|
|
27798
|
+
"""
|
|
27799
|
+
|
|
27800
|
+
def __init__(self):
|
|
27801
|
+
r"""
|
|
27802
|
+
:param _Input: <p>输入待转绘视频url信息</p>
|
|
27803
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.VideoRedrawInput`
|
|
27804
|
+
:param _CosInfo: <p>用户cos信息,用于保存生成结果</p>
|
|
27805
|
+
:type CosInfo: :class:`tencentcloud.mps.v20190612.models.VideoRedrawCosInfo`
|
|
27806
|
+
"""
|
|
27807
|
+
self._Input = None
|
|
27808
|
+
self._CosInfo = None
|
|
27809
|
+
|
|
27810
|
+
@property
|
|
27811
|
+
def Input(self):
|
|
27812
|
+
r"""<p>输入待转绘视频url信息</p>
|
|
27813
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VideoRedrawInput`
|
|
27814
|
+
"""
|
|
27815
|
+
return self._Input
|
|
27816
|
+
|
|
27817
|
+
@Input.setter
|
|
27818
|
+
def Input(self, Input):
|
|
27819
|
+
self._Input = Input
|
|
27820
|
+
|
|
27821
|
+
@property
|
|
27822
|
+
def CosInfo(self):
|
|
27823
|
+
r"""<p>用户cos信息,用于保存生成结果</p>
|
|
27824
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VideoRedrawCosInfo`
|
|
27825
|
+
"""
|
|
27826
|
+
return self._CosInfo
|
|
27827
|
+
|
|
27828
|
+
@CosInfo.setter
|
|
27829
|
+
def CosInfo(self, CosInfo):
|
|
27830
|
+
self._CosInfo = CosInfo
|
|
27831
|
+
|
|
27832
|
+
|
|
27833
|
+
def _deserialize(self, params):
|
|
27834
|
+
if params.get("Input") is not None:
|
|
27835
|
+
self._Input = VideoRedrawInput()
|
|
27836
|
+
self._Input._deserialize(params.get("Input"))
|
|
27837
|
+
if params.get("CosInfo") is not None:
|
|
27838
|
+
self._CosInfo = VideoRedrawCosInfo()
|
|
27839
|
+
self._CosInfo._deserialize(params.get("CosInfo"))
|
|
27840
|
+
memeber_set = set(params.keys())
|
|
27841
|
+
for name, value in vars(self).items():
|
|
27842
|
+
property_name = name[1:]
|
|
27843
|
+
if property_name in memeber_set:
|
|
27844
|
+
memeber_set.remove(property_name)
|
|
27845
|
+
if len(memeber_set) > 0:
|
|
27846
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
27847
|
+
|
|
27848
|
+
|
|
27849
|
+
|
|
27850
|
+
class CreateVideoRedrawTaskResponse(AbstractModel):
|
|
27851
|
+
r"""CreateVideoRedrawTask返回参数结构体
|
|
27852
|
+
|
|
27853
|
+
"""
|
|
27854
|
+
|
|
27855
|
+
def __init__(self):
|
|
27856
|
+
r"""
|
|
27857
|
+
:param _TaskId: <p>任务id</p>
|
|
27858
|
+
:type TaskId: str
|
|
27859
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
27860
|
+
:type RequestId: str
|
|
27861
|
+
"""
|
|
27862
|
+
self._TaskId = None
|
|
27863
|
+
self._RequestId = None
|
|
27864
|
+
|
|
27865
|
+
@property
|
|
27866
|
+
def TaskId(self):
|
|
27867
|
+
r"""<p>任务id</p>
|
|
27868
|
+
:rtype: str
|
|
27869
|
+
"""
|
|
27870
|
+
return self._TaskId
|
|
27871
|
+
|
|
27872
|
+
@TaskId.setter
|
|
27873
|
+
def TaskId(self, TaskId):
|
|
27874
|
+
self._TaskId = TaskId
|
|
27875
|
+
|
|
27876
|
+
@property
|
|
27877
|
+
def RequestId(self):
|
|
27878
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
27879
|
+
:rtype: str
|
|
27880
|
+
"""
|
|
27881
|
+
return self._RequestId
|
|
27882
|
+
|
|
27883
|
+
@RequestId.setter
|
|
27884
|
+
def RequestId(self, RequestId):
|
|
27885
|
+
self._RequestId = RequestId
|
|
27886
|
+
|
|
27887
|
+
|
|
27888
|
+
def _deserialize(self, params):
|
|
27889
|
+
self._TaskId = params.get("TaskId")
|
|
27890
|
+
self._RequestId = params.get("RequestId")
|
|
27891
|
+
|
|
27892
|
+
|
|
27596
27893
|
class CreateVideoSearchTaskRequest(AbstractModel):
|
|
27597
27894
|
r"""CreateVideoSearchTask请求参数结构体
|
|
27598
27895
|
|
|
@@ -90469,6 +90766,72 @@ class VideoDenoiseConfig(AbstractModel):
|
|
|
90469
90766
|
|
|
90470
90767
|
|
|
90471
90768
|
|
|
90769
|
+
class VideoDramaCosInfo(AbstractModel):
|
|
90770
|
+
r"""aigc cos信息,存储用户请求时填写的cos信息,存放结果
|
|
90771
|
+
|
|
90772
|
+
"""
|
|
90773
|
+
|
|
90774
|
+
def __init__(self):
|
|
90775
|
+
r"""
|
|
90776
|
+
:param _CosBucketRegion: <p>cos通地域</p>
|
|
90777
|
+
:type CosBucketRegion: str
|
|
90778
|
+
:param _CosBucketName: <p>cos桶名称</p>
|
|
90779
|
+
:type CosBucketName: str
|
|
90780
|
+
:param _CosBucketPath: <p>cos桶路径</p>
|
|
90781
|
+
:type CosBucketPath: str
|
|
90782
|
+
"""
|
|
90783
|
+
self._CosBucketRegion = None
|
|
90784
|
+
self._CosBucketName = None
|
|
90785
|
+
self._CosBucketPath = None
|
|
90786
|
+
|
|
90787
|
+
@property
|
|
90788
|
+
def CosBucketRegion(self):
|
|
90789
|
+
r"""<p>cos通地域</p>
|
|
90790
|
+
:rtype: str
|
|
90791
|
+
"""
|
|
90792
|
+
return self._CosBucketRegion
|
|
90793
|
+
|
|
90794
|
+
@CosBucketRegion.setter
|
|
90795
|
+
def CosBucketRegion(self, CosBucketRegion):
|
|
90796
|
+
self._CosBucketRegion = CosBucketRegion
|
|
90797
|
+
|
|
90798
|
+
@property
|
|
90799
|
+
def CosBucketName(self):
|
|
90800
|
+
r"""<p>cos桶名称</p>
|
|
90801
|
+
:rtype: str
|
|
90802
|
+
"""
|
|
90803
|
+
return self._CosBucketName
|
|
90804
|
+
|
|
90805
|
+
@CosBucketName.setter
|
|
90806
|
+
def CosBucketName(self, CosBucketName):
|
|
90807
|
+
self._CosBucketName = CosBucketName
|
|
90808
|
+
|
|
90809
|
+
@property
|
|
90810
|
+
def CosBucketPath(self):
|
|
90811
|
+
r"""<p>cos桶路径</p>
|
|
90812
|
+
:rtype: str
|
|
90813
|
+
"""
|
|
90814
|
+
return self._CosBucketPath
|
|
90815
|
+
|
|
90816
|
+
@CosBucketPath.setter
|
|
90817
|
+
def CosBucketPath(self, CosBucketPath):
|
|
90818
|
+
self._CosBucketPath = CosBucketPath
|
|
90819
|
+
|
|
90820
|
+
|
|
90821
|
+
def _deserialize(self, params):
|
|
90822
|
+
self._CosBucketRegion = params.get("CosBucketRegion")
|
|
90823
|
+
self._CosBucketName = params.get("CosBucketName")
|
|
90824
|
+
self._CosBucketPath = params.get("CosBucketPath")
|
|
90825
|
+
memeber_set = set(params.keys())
|
|
90826
|
+
for name, value in vars(self).items():
|
|
90827
|
+
property_name = name[1:]
|
|
90828
|
+
if property_name in memeber_set:
|
|
90829
|
+
memeber_set.remove(property_name)
|
|
90830
|
+
if len(memeber_set) > 0:
|
|
90831
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
90832
|
+
|
|
90833
|
+
|
|
90834
|
+
|
|
90472
90835
|
class VideoEnhanceConfig(AbstractModel):
|
|
90473
90836
|
r"""视频增强配置
|
|
90474
90837
|
|
|
@@ -90744,6 +91107,108 @@ class VideoEnhanceConfig(AbstractModel):
|
|
|
90744
91107
|
|
|
90745
91108
|
|
|
90746
91109
|
|
|
91110
|
+
class VideoRedrawCosInfo(AbstractModel):
|
|
91111
|
+
r"""aigc cos信息,存储用户请求时填写的cos信息,存放结果
|
|
91112
|
+
|
|
91113
|
+
"""
|
|
91114
|
+
|
|
91115
|
+
def __init__(self):
|
|
91116
|
+
r"""
|
|
91117
|
+
:param _CosBucketRegion: <p>cos桶地域</p>
|
|
91118
|
+
:type CosBucketRegion: str
|
|
91119
|
+
:param _CosBucketName: <p>cos桶名称</p>
|
|
91120
|
+
:type CosBucketName: str
|
|
91121
|
+
:param _CosBucketPath: <p>cos桶路径</p>
|
|
91122
|
+
:type CosBucketPath: str
|
|
91123
|
+
"""
|
|
91124
|
+
self._CosBucketRegion = None
|
|
91125
|
+
self._CosBucketName = None
|
|
91126
|
+
self._CosBucketPath = None
|
|
91127
|
+
|
|
91128
|
+
@property
|
|
91129
|
+
def CosBucketRegion(self):
|
|
91130
|
+
r"""<p>cos桶地域</p>
|
|
91131
|
+
:rtype: str
|
|
91132
|
+
"""
|
|
91133
|
+
return self._CosBucketRegion
|
|
91134
|
+
|
|
91135
|
+
@CosBucketRegion.setter
|
|
91136
|
+
def CosBucketRegion(self, CosBucketRegion):
|
|
91137
|
+
self._CosBucketRegion = CosBucketRegion
|
|
91138
|
+
|
|
91139
|
+
@property
|
|
91140
|
+
def CosBucketName(self):
|
|
91141
|
+
r"""<p>cos桶名称</p>
|
|
91142
|
+
:rtype: str
|
|
91143
|
+
"""
|
|
91144
|
+
return self._CosBucketName
|
|
91145
|
+
|
|
91146
|
+
@CosBucketName.setter
|
|
91147
|
+
def CosBucketName(self, CosBucketName):
|
|
91148
|
+
self._CosBucketName = CosBucketName
|
|
91149
|
+
|
|
91150
|
+
@property
|
|
91151
|
+
def CosBucketPath(self):
|
|
91152
|
+
r"""<p>cos桶路径</p>
|
|
91153
|
+
:rtype: str
|
|
91154
|
+
"""
|
|
91155
|
+
return self._CosBucketPath
|
|
91156
|
+
|
|
91157
|
+
@CosBucketPath.setter
|
|
91158
|
+
def CosBucketPath(self, CosBucketPath):
|
|
91159
|
+
self._CosBucketPath = CosBucketPath
|
|
91160
|
+
|
|
91161
|
+
|
|
91162
|
+
def _deserialize(self, params):
|
|
91163
|
+
self._CosBucketRegion = params.get("CosBucketRegion")
|
|
91164
|
+
self._CosBucketName = params.get("CosBucketName")
|
|
91165
|
+
self._CosBucketPath = params.get("CosBucketPath")
|
|
91166
|
+
memeber_set = set(params.keys())
|
|
91167
|
+
for name, value in vars(self).items():
|
|
91168
|
+
property_name = name[1:]
|
|
91169
|
+
if property_name in memeber_set:
|
|
91170
|
+
memeber_set.remove(property_name)
|
|
91171
|
+
if len(memeber_set) > 0:
|
|
91172
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
91173
|
+
|
|
91174
|
+
|
|
91175
|
+
|
|
91176
|
+
class VideoRedrawInput(AbstractModel):
|
|
91177
|
+
r"""视频转绘的输入源
|
|
91178
|
+
|
|
91179
|
+
"""
|
|
91180
|
+
|
|
91181
|
+
def __init__(self):
|
|
91182
|
+
r"""
|
|
91183
|
+
:param _Url: <p>输入待转绘的视频URL</p>
|
|
91184
|
+
:type Url: str
|
|
91185
|
+
"""
|
|
91186
|
+
self._Url = None
|
|
91187
|
+
|
|
91188
|
+
@property
|
|
91189
|
+
def Url(self):
|
|
91190
|
+
r"""<p>输入待转绘的视频URL</p>
|
|
91191
|
+
:rtype: str
|
|
91192
|
+
"""
|
|
91193
|
+
return self._Url
|
|
91194
|
+
|
|
91195
|
+
@Url.setter
|
|
91196
|
+
def Url(self, Url):
|
|
91197
|
+
self._Url = Url
|
|
91198
|
+
|
|
91199
|
+
|
|
91200
|
+
def _deserialize(self, params):
|
|
91201
|
+
self._Url = params.get("Url")
|
|
91202
|
+
memeber_set = set(params.keys())
|
|
91203
|
+
for name, value in vars(self).items():
|
|
91204
|
+
property_name = name[1:]
|
|
91205
|
+
if property_name in memeber_set:
|
|
91206
|
+
memeber_set.remove(property_name)
|
|
91207
|
+
if len(memeber_set) > 0:
|
|
91208
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
91209
|
+
|
|
91210
|
+
|
|
91211
|
+
|
|
90747
91212
|
class VideoTemplateInfo(AbstractModel):
|
|
90748
91213
|
r"""视频流配置参数
|
|
90749
91214
|
|
|
@@ -234,6 +234,29 @@ class MpsClient(AbstractClient):
|
|
|
234
234
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
235
235
|
|
|
236
236
|
|
|
237
|
+
def CreateAiDramaTask(self, request):
|
|
238
|
+
r"""Ai漫剧工作流,输入剧本,自动拆分分镜,生成Ai漫剧
|
|
239
|
+
|
|
240
|
+
:param request: Request instance for CreateAiDramaTask.
|
|
241
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.CreateAiDramaTaskRequest`
|
|
242
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CreateAiDramaTaskResponse`
|
|
243
|
+
|
|
244
|
+
"""
|
|
245
|
+
try:
|
|
246
|
+
params = request._serialize()
|
|
247
|
+
headers = request.headers
|
|
248
|
+
body = self.call("CreateAiDramaTask", params, headers=headers)
|
|
249
|
+
response = json.loads(body)
|
|
250
|
+
model = models.CreateAiDramaTaskResponse()
|
|
251
|
+
model._deserialize(response["Response"])
|
|
252
|
+
return model
|
|
253
|
+
except Exception as e:
|
|
254
|
+
if isinstance(e, TencentCloudSDKException):
|
|
255
|
+
raise
|
|
256
|
+
else:
|
|
257
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
258
|
+
|
|
259
|
+
|
|
237
260
|
def CreateAigcAudioTask(self, request):
|
|
238
261
|
r"""调用该接口,用于创建AI生音频任务。
|
|
239
262
|
|
|
@@ -988,6 +1011,29 @@ class MpsClient(AbstractClient):
|
|
|
988
1011
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
989
1012
|
|
|
990
1013
|
|
|
1014
|
+
def CreateVideoRedrawTask(self, request):
|
|
1015
|
+
r"""创建AIGC转绘任务
|
|
1016
|
+
|
|
1017
|
+
:param request: Request instance for CreateVideoRedrawTask.
|
|
1018
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.CreateVideoRedrawTaskRequest`
|
|
1019
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CreateVideoRedrawTaskResponse`
|
|
1020
|
+
|
|
1021
|
+
"""
|
|
1022
|
+
try:
|
|
1023
|
+
params = request._serialize()
|
|
1024
|
+
headers = request.headers
|
|
1025
|
+
body = self.call("CreateVideoRedrawTask", params, headers=headers)
|
|
1026
|
+
response = json.loads(body)
|
|
1027
|
+
model = models.CreateVideoRedrawTaskResponse()
|
|
1028
|
+
model._deserialize(response["Response"])
|
|
1029
|
+
return model
|
|
1030
|
+
except Exception as e:
|
|
1031
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1032
|
+
raise
|
|
1033
|
+
else:
|
|
1034
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1035
|
+
|
|
1036
|
+
|
|
991
1037
|
def CreateVideoSearchTask(self, request):
|
|
992
1038
|
r"""使用检索值检索库中最接近检索值的若干视频。
|
|
993
1039
|
|
|
@@ -188,6 +188,24 @@ class MpsClient(AbstractClient):
|
|
|
188
188
|
|
|
189
189
|
return await self.call_and_deserialize(**kwargs)
|
|
190
190
|
|
|
191
|
+
async def CreateAiDramaTask(
|
|
192
|
+
self,
|
|
193
|
+
request: models.CreateAiDramaTaskRequest,
|
|
194
|
+
opts: Dict = None,
|
|
195
|
+
) -> models.CreateAiDramaTaskResponse:
|
|
196
|
+
"""
|
|
197
|
+
Ai漫剧工作流,输入剧本,自动拆分分镜,生成Ai漫剧
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
kwargs = {}
|
|
201
|
+
kwargs["action"] = "CreateAiDramaTask"
|
|
202
|
+
kwargs["params"] = request._serialize()
|
|
203
|
+
kwargs["resp_cls"] = models.CreateAiDramaTaskResponse
|
|
204
|
+
kwargs["headers"] = request.headers
|
|
205
|
+
kwargs["opts"] = opts or {}
|
|
206
|
+
|
|
207
|
+
return await self.call_and_deserialize(**kwargs)
|
|
208
|
+
|
|
191
209
|
async def CreateAigcAudioTask(
|
|
192
210
|
self,
|
|
193
211
|
request: models.CreateAigcAudioTaskRequest,
|
|
@@ -782,6 +800,24 @@ class MpsClient(AbstractClient):
|
|
|
782
800
|
|
|
783
801
|
return await self.call_and_deserialize(**kwargs)
|
|
784
802
|
|
|
803
|
+
async def CreateVideoRedrawTask(
|
|
804
|
+
self,
|
|
805
|
+
request: models.CreateVideoRedrawTaskRequest,
|
|
806
|
+
opts: Dict = None,
|
|
807
|
+
) -> models.CreateVideoRedrawTaskResponse:
|
|
808
|
+
"""
|
|
809
|
+
创建AIGC转绘任务
|
|
810
|
+
"""
|
|
811
|
+
|
|
812
|
+
kwargs = {}
|
|
813
|
+
kwargs["action"] = "CreateVideoRedrawTask"
|
|
814
|
+
kwargs["params"] = request._serialize()
|
|
815
|
+
kwargs["resp_cls"] = models.CreateVideoRedrawTaskResponse
|
|
816
|
+
kwargs["headers"] = request.headers
|
|
817
|
+
kwargs["opts"] = opts or {}
|
|
818
|
+
|
|
819
|
+
return await self.call_and_deserialize(**kwargs)
|
|
820
|
+
|
|
785
821
|
async def CreateVideoSearchTask(
|
|
786
822
|
self,
|
|
787
823
|
request: models.CreateVideoSearchTaskRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.134
|
|
4
4
|
Summary: Tencent Cloud Mps 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.134
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.134
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.133
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|