tencentcloud-sdk-python 3.0.1444__py2.py3-none-any.whl → 3.0.1445__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cls/v20201016/models.py +393 -62
- tencentcloud/emr/v20190103/errorcodes.py +3 -0
- tencentcloud/ess/v20201111/models.py +105 -0
- tencentcloud/essbasic/v20210526/models.py +60 -0
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +1998 -50
- tencentcloud/ocr/v20181119/models.py +15 -0
- tencentcloud/partners/v20180321/models.py +4 -4
- tencentcloud/sqlserver/v20180328/models.py +6 -6
- tencentcloud/trabbit/v20230418/models.py +15 -0
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +230 -74
- tencentcloud/tsf/v20180326/tsf_client.py +1 -1
- tencentcloud/vod/v20180717/models.py +507 -0
- tencentcloud/vod/v20180717/vod_client.py +101 -0
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/RECORD +21 -21
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/top_level.txt +0 -0
|
@@ -2057,7 +2057,7 @@ class TsfClient(AbstractClient):
|
|
|
2057
2057
|
|
|
2058
2058
|
|
|
2059
2059
|
def DescribeContainerGroupDetail(self, request):
|
|
2060
|
-
"""容器部署组详情(已废弃,请使用 DescribeContainerGroupDeployInfo)
|
|
2060
|
+
"""容器部署组详情(已废弃,请使用 [DescribeContainerGroupDeployInfo](https://cloud.tencent.com/document/product/649/67221))
|
|
2061
2061
|
|
|
2062
2062
|
:param request: Request instance for DescribeContainerGroupDetail.
|
|
2063
2063
|
:type request: :class:`tencentcloud.tsf.v20180326.models.DescribeContainerGroupDetailRequest`
|
|
@@ -18916,6 +18916,127 @@ class CreateJustInTimeTranscodeTemplateResponse(AbstractModel):
|
|
|
18916
18916
|
self._RequestId = params.get("RequestId")
|
|
18917
18917
|
|
|
18918
18918
|
|
|
18919
|
+
class CreateMPSTemplateRequest(AbstractModel):
|
|
18920
|
+
"""CreateMPSTemplate请求参数结构体
|
|
18921
|
+
|
|
18922
|
+
"""
|
|
18923
|
+
|
|
18924
|
+
def __init__(self):
|
|
18925
|
+
r"""
|
|
18926
|
+
:param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。</b>
|
|
18927
|
+
:type SubAppId: int
|
|
18928
|
+
:param _TemplateType: 需要创建的 MPS 模板的类型。取值:
|
|
18929
|
+
<li>Transcode: 创建转码模板,目前仅支持创建增强模板。</li>
|
|
18930
|
+
:type TemplateType: str
|
|
18931
|
+
:param _MPSCreateTemplateParams: MPS 创建模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧创建用户自定义的 MPS 任务模板。
|
|
18932
|
+
目前仅支持通过此方式创建以下任务类型的模板:
|
|
18933
|
+
1. 音视频增强:仅支持填写“[创建转码模板](https://cloud.tencent.com/document/product/862/37605)”接口中的 Container 、Name、Comment、RemoveVideo、RemoveAudio、VideoTemplate、AudioTemplate 和 EnhanceConfig 几个参数。其中 EnhanceConfig 此处必填。
|
|
18934
|
+
|
|
18935
|
+
目前模板中仅支持配置以上参数,其他参数无需填写。若包含其它参数,系统将自动忽略。以上透传参数以JSON形式表示。
|
|
18936
|
+
|
|
18937
|
+
:type MPSCreateTemplateParams: str
|
|
18938
|
+
"""
|
|
18939
|
+
self._SubAppId = None
|
|
18940
|
+
self._TemplateType = None
|
|
18941
|
+
self._MPSCreateTemplateParams = None
|
|
18942
|
+
|
|
18943
|
+
@property
|
|
18944
|
+
def SubAppId(self):
|
|
18945
|
+
"""<b>点播[应用](/document/product/266/14574) ID。</b>
|
|
18946
|
+
:rtype: int
|
|
18947
|
+
"""
|
|
18948
|
+
return self._SubAppId
|
|
18949
|
+
|
|
18950
|
+
@SubAppId.setter
|
|
18951
|
+
def SubAppId(self, SubAppId):
|
|
18952
|
+
self._SubAppId = SubAppId
|
|
18953
|
+
|
|
18954
|
+
@property
|
|
18955
|
+
def TemplateType(self):
|
|
18956
|
+
"""需要创建的 MPS 模板的类型。取值:
|
|
18957
|
+
<li>Transcode: 创建转码模板,目前仅支持创建增强模板。</li>
|
|
18958
|
+
:rtype: str
|
|
18959
|
+
"""
|
|
18960
|
+
return self._TemplateType
|
|
18961
|
+
|
|
18962
|
+
@TemplateType.setter
|
|
18963
|
+
def TemplateType(self, TemplateType):
|
|
18964
|
+
self._TemplateType = TemplateType
|
|
18965
|
+
|
|
18966
|
+
@property
|
|
18967
|
+
def MPSCreateTemplateParams(self):
|
|
18968
|
+
"""MPS 创建模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧创建用户自定义的 MPS 任务模板。
|
|
18969
|
+
目前仅支持通过此方式创建以下任务类型的模板:
|
|
18970
|
+
1. 音视频增强:仅支持填写“[创建转码模板](https://cloud.tencent.com/document/product/862/37605)”接口中的 Container 、Name、Comment、RemoveVideo、RemoveAudio、VideoTemplate、AudioTemplate 和 EnhanceConfig 几个参数。其中 EnhanceConfig 此处必填。
|
|
18971
|
+
|
|
18972
|
+
目前模板中仅支持配置以上参数,其他参数无需填写。若包含其它参数,系统将自动忽略。以上透传参数以JSON形式表示。
|
|
18973
|
+
|
|
18974
|
+
:rtype: str
|
|
18975
|
+
"""
|
|
18976
|
+
return self._MPSCreateTemplateParams
|
|
18977
|
+
|
|
18978
|
+
@MPSCreateTemplateParams.setter
|
|
18979
|
+
def MPSCreateTemplateParams(self, MPSCreateTemplateParams):
|
|
18980
|
+
self._MPSCreateTemplateParams = MPSCreateTemplateParams
|
|
18981
|
+
|
|
18982
|
+
|
|
18983
|
+
def _deserialize(self, params):
|
|
18984
|
+
self._SubAppId = params.get("SubAppId")
|
|
18985
|
+
self._TemplateType = params.get("TemplateType")
|
|
18986
|
+
self._MPSCreateTemplateParams = params.get("MPSCreateTemplateParams")
|
|
18987
|
+
memeber_set = set(params.keys())
|
|
18988
|
+
for name, value in vars(self).items():
|
|
18989
|
+
property_name = name[1:]
|
|
18990
|
+
if property_name in memeber_set:
|
|
18991
|
+
memeber_set.remove(property_name)
|
|
18992
|
+
if len(memeber_set) > 0:
|
|
18993
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18994
|
+
|
|
18995
|
+
|
|
18996
|
+
|
|
18997
|
+
class CreateMPSTemplateResponse(AbstractModel):
|
|
18998
|
+
"""CreateMPSTemplate返回参数结构体
|
|
18999
|
+
|
|
19000
|
+
"""
|
|
19001
|
+
|
|
19002
|
+
def __init__(self):
|
|
19003
|
+
r"""
|
|
19004
|
+
:param _Definition: MPS 任务模板唯一标识。该模板独立于直接在 MPS 服务中创建的模板。
|
|
19005
|
+
:type Definition: int
|
|
19006
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19007
|
+
:type RequestId: str
|
|
19008
|
+
"""
|
|
19009
|
+
self._Definition = None
|
|
19010
|
+
self._RequestId = None
|
|
19011
|
+
|
|
19012
|
+
@property
|
|
19013
|
+
def Definition(self):
|
|
19014
|
+
"""MPS 任务模板唯一标识。该模板独立于直接在 MPS 服务中创建的模板。
|
|
19015
|
+
:rtype: int
|
|
19016
|
+
"""
|
|
19017
|
+
return self._Definition
|
|
19018
|
+
|
|
19019
|
+
@Definition.setter
|
|
19020
|
+
def Definition(self, Definition):
|
|
19021
|
+
self._Definition = Definition
|
|
19022
|
+
|
|
19023
|
+
@property
|
|
19024
|
+
def RequestId(self):
|
|
19025
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19026
|
+
:rtype: str
|
|
19027
|
+
"""
|
|
19028
|
+
return self._RequestId
|
|
19029
|
+
|
|
19030
|
+
@RequestId.setter
|
|
19031
|
+
def RequestId(self, RequestId):
|
|
19032
|
+
self._RequestId = RequestId
|
|
19033
|
+
|
|
19034
|
+
|
|
19035
|
+
def _deserialize(self, params):
|
|
19036
|
+
self._Definition = params.get("Definition")
|
|
19037
|
+
self._RequestId = params.get("RequestId")
|
|
19038
|
+
|
|
19039
|
+
|
|
18919
19040
|
class CreatePersonSampleRequest(AbstractModel):
|
|
18920
19041
|
"""CreatePersonSample请求参数结构体
|
|
18921
19042
|
|
|
@@ -22963,6 +23084,102 @@ class DeleteJustInTimeTranscodeTemplateResponse(AbstractModel):
|
|
|
22963
23084
|
self._RequestId = params.get("RequestId")
|
|
22964
23085
|
|
|
22965
23086
|
|
|
23087
|
+
class DeleteMPSTemplateRequest(AbstractModel):
|
|
23088
|
+
"""DeleteMPSTemplate请求参数结构体
|
|
23089
|
+
|
|
23090
|
+
"""
|
|
23091
|
+
|
|
23092
|
+
def __init__(self):
|
|
23093
|
+
r"""
|
|
23094
|
+
:param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。</b>
|
|
23095
|
+
:type SubAppId: int
|
|
23096
|
+
:param _TemplateType: 需要删除的 MPS 模板的类型。取值:
|
|
23097
|
+
<li>Transcode: 删除转码模板。</li>
|
|
23098
|
+
:type TemplateType: str
|
|
23099
|
+
:param _Definition: MPS 任务模板唯一标识。
|
|
23100
|
+
:type Definition: int
|
|
23101
|
+
"""
|
|
23102
|
+
self._SubAppId = None
|
|
23103
|
+
self._TemplateType = None
|
|
23104
|
+
self._Definition = None
|
|
23105
|
+
|
|
23106
|
+
@property
|
|
23107
|
+
def SubAppId(self):
|
|
23108
|
+
"""<b>点播[应用](/document/product/266/14574) ID。</b>
|
|
23109
|
+
:rtype: int
|
|
23110
|
+
"""
|
|
23111
|
+
return self._SubAppId
|
|
23112
|
+
|
|
23113
|
+
@SubAppId.setter
|
|
23114
|
+
def SubAppId(self, SubAppId):
|
|
23115
|
+
self._SubAppId = SubAppId
|
|
23116
|
+
|
|
23117
|
+
@property
|
|
23118
|
+
def TemplateType(self):
|
|
23119
|
+
"""需要删除的 MPS 模板的类型。取值:
|
|
23120
|
+
<li>Transcode: 删除转码模板。</li>
|
|
23121
|
+
:rtype: str
|
|
23122
|
+
"""
|
|
23123
|
+
return self._TemplateType
|
|
23124
|
+
|
|
23125
|
+
@TemplateType.setter
|
|
23126
|
+
def TemplateType(self, TemplateType):
|
|
23127
|
+
self._TemplateType = TemplateType
|
|
23128
|
+
|
|
23129
|
+
@property
|
|
23130
|
+
def Definition(self):
|
|
23131
|
+
"""MPS 任务模板唯一标识。
|
|
23132
|
+
:rtype: int
|
|
23133
|
+
"""
|
|
23134
|
+
return self._Definition
|
|
23135
|
+
|
|
23136
|
+
@Definition.setter
|
|
23137
|
+
def Definition(self, Definition):
|
|
23138
|
+
self._Definition = Definition
|
|
23139
|
+
|
|
23140
|
+
|
|
23141
|
+
def _deserialize(self, params):
|
|
23142
|
+
self._SubAppId = params.get("SubAppId")
|
|
23143
|
+
self._TemplateType = params.get("TemplateType")
|
|
23144
|
+
self._Definition = params.get("Definition")
|
|
23145
|
+
memeber_set = set(params.keys())
|
|
23146
|
+
for name, value in vars(self).items():
|
|
23147
|
+
property_name = name[1:]
|
|
23148
|
+
if property_name in memeber_set:
|
|
23149
|
+
memeber_set.remove(property_name)
|
|
23150
|
+
if len(memeber_set) > 0:
|
|
23151
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23152
|
+
|
|
23153
|
+
|
|
23154
|
+
|
|
23155
|
+
class DeleteMPSTemplateResponse(AbstractModel):
|
|
23156
|
+
"""DeleteMPSTemplate返回参数结构体
|
|
23157
|
+
|
|
23158
|
+
"""
|
|
23159
|
+
|
|
23160
|
+
def __init__(self):
|
|
23161
|
+
r"""
|
|
23162
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23163
|
+
:type RequestId: str
|
|
23164
|
+
"""
|
|
23165
|
+
self._RequestId = None
|
|
23166
|
+
|
|
23167
|
+
@property
|
|
23168
|
+
def RequestId(self):
|
|
23169
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23170
|
+
:rtype: str
|
|
23171
|
+
"""
|
|
23172
|
+
return self._RequestId
|
|
23173
|
+
|
|
23174
|
+
@RequestId.setter
|
|
23175
|
+
def RequestId(self, RequestId):
|
|
23176
|
+
self._RequestId = RequestId
|
|
23177
|
+
|
|
23178
|
+
|
|
23179
|
+
def _deserialize(self, params):
|
|
23180
|
+
self._RequestId = params.get("RequestId")
|
|
23181
|
+
|
|
23182
|
+
|
|
22966
23183
|
class DeleteMediaRequest(AbstractModel):
|
|
22967
23184
|
"""DeleteMedia请求参数结构体
|
|
22968
23185
|
|
|
@@ -28604,6 +28821,139 @@ class DescribeLicenseUsageDataResponse(AbstractModel):
|
|
|
28604
28821
|
self._RequestId = params.get("RequestId")
|
|
28605
28822
|
|
|
28606
28823
|
|
|
28824
|
+
class DescribeMPSTemplatesRequest(AbstractModel):
|
|
28825
|
+
"""DescribeMPSTemplates请求参数结构体
|
|
28826
|
+
|
|
28827
|
+
"""
|
|
28828
|
+
|
|
28829
|
+
def __init__(self):
|
|
28830
|
+
r"""
|
|
28831
|
+
:param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。</b>
|
|
28832
|
+
:type SubAppId: int
|
|
28833
|
+
:param _TemplateType: MPS 模板类型。根据需要查询的 MPS 模板的类型对结果进行过滤。取值:
|
|
28834
|
+
<li>Transcode: 查询转码模板列表。</li>
|
|
28835
|
+
:type TemplateType: str
|
|
28836
|
+
:param _MPSDescribeTemplateParams: MPS 查询模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧查询 MPS 任务模板列表。目前仅支持通过此方式查询以下任务类型的模板:
|
|
28837
|
+
1. 音视频增强:仅支持填写“[获取转码模板列表](https://cloud.tencent.com/document/product/862/37593)”接口中的 Definitions、Offset 和 Limit 几个参数的内容。目前仅支持在模板中配置以上参数,其他参数无需填写,若包含其它参数,系统将自动忽略。
|
|
28838
|
+
:type MPSDescribeTemplateParams: str
|
|
28839
|
+
"""
|
|
28840
|
+
self._SubAppId = None
|
|
28841
|
+
self._TemplateType = None
|
|
28842
|
+
self._MPSDescribeTemplateParams = None
|
|
28843
|
+
|
|
28844
|
+
@property
|
|
28845
|
+
def SubAppId(self):
|
|
28846
|
+
"""<b>点播[应用](/document/product/266/14574) ID。</b>
|
|
28847
|
+
:rtype: int
|
|
28848
|
+
"""
|
|
28849
|
+
return self._SubAppId
|
|
28850
|
+
|
|
28851
|
+
@SubAppId.setter
|
|
28852
|
+
def SubAppId(self, SubAppId):
|
|
28853
|
+
self._SubAppId = SubAppId
|
|
28854
|
+
|
|
28855
|
+
@property
|
|
28856
|
+
def TemplateType(self):
|
|
28857
|
+
"""MPS 模板类型。根据需要查询的 MPS 模板的类型对结果进行过滤。取值:
|
|
28858
|
+
<li>Transcode: 查询转码模板列表。</li>
|
|
28859
|
+
:rtype: str
|
|
28860
|
+
"""
|
|
28861
|
+
return self._TemplateType
|
|
28862
|
+
|
|
28863
|
+
@TemplateType.setter
|
|
28864
|
+
def TemplateType(self, TemplateType):
|
|
28865
|
+
self._TemplateType = TemplateType
|
|
28866
|
+
|
|
28867
|
+
@property
|
|
28868
|
+
def MPSDescribeTemplateParams(self):
|
|
28869
|
+
"""MPS 查询模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧查询 MPS 任务模板列表。目前仅支持通过此方式查询以下任务类型的模板:
|
|
28870
|
+
1. 音视频增强:仅支持填写“[获取转码模板列表](https://cloud.tencent.com/document/product/862/37593)”接口中的 Definitions、Offset 和 Limit 几个参数的内容。目前仅支持在模板中配置以上参数,其他参数无需填写,若包含其它参数,系统将自动忽略。
|
|
28871
|
+
:rtype: str
|
|
28872
|
+
"""
|
|
28873
|
+
return self._MPSDescribeTemplateParams
|
|
28874
|
+
|
|
28875
|
+
@MPSDescribeTemplateParams.setter
|
|
28876
|
+
def MPSDescribeTemplateParams(self, MPSDescribeTemplateParams):
|
|
28877
|
+
self._MPSDescribeTemplateParams = MPSDescribeTemplateParams
|
|
28878
|
+
|
|
28879
|
+
|
|
28880
|
+
def _deserialize(self, params):
|
|
28881
|
+
self._SubAppId = params.get("SubAppId")
|
|
28882
|
+
self._TemplateType = params.get("TemplateType")
|
|
28883
|
+
self._MPSDescribeTemplateParams = params.get("MPSDescribeTemplateParams")
|
|
28884
|
+
memeber_set = set(params.keys())
|
|
28885
|
+
for name, value in vars(self).items():
|
|
28886
|
+
property_name = name[1:]
|
|
28887
|
+
if property_name in memeber_set:
|
|
28888
|
+
memeber_set.remove(property_name)
|
|
28889
|
+
if len(memeber_set) > 0:
|
|
28890
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
28891
|
+
|
|
28892
|
+
|
|
28893
|
+
|
|
28894
|
+
class DescribeMPSTemplatesResponse(AbstractModel):
|
|
28895
|
+
"""DescribeMPSTemplates返回参数结构体
|
|
28896
|
+
|
|
28897
|
+
"""
|
|
28898
|
+
|
|
28899
|
+
def __init__(self):
|
|
28900
|
+
r"""
|
|
28901
|
+
:param _TotalCount: 符合过滤条件的记录总数。
|
|
28902
|
+
:type TotalCount: int
|
|
28903
|
+
:param _MPSTemplateSet: MPS 任务模板详情列表。
|
|
28904
|
+
:type MPSTemplateSet: list of MPSTemplate
|
|
28905
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
28906
|
+
:type RequestId: str
|
|
28907
|
+
"""
|
|
28908
|
+
self._TotalCount = None
|
|
28909
|
+
self._MPSTemplateSet = None
|
|
28910
|
+
self._RequestId = None
|
|
28911
|
+
|
|
28912
|
+
@property
|
|
28913
|
+
def TotalCount(self):
|
|
28914
|
+
"""符合过滤条件的记录总数。
|
|
28915
|
+
:rtype: int
|
|
28916
|
+
"""
|
|
28917
|
+
return self._TotalCount
|
|
28918
|
+
|
|
28919
|
+
@TotalCount.setter
|
|
28920
|
+
def TotalCount(self, TotalCount):
|
|
28921
|
+
self._TotalCount = TotalCount
|
|
28922
|
+
|
|
28923
|
+
@property
|
|
28924
|
+
def MPSTemplateSet(self):
|
|
28925
|
+
"""MPS 任务模板详情列表。
|
|
28926
|
+
:rtype: list of MPSTemplate
|
|
28927
|
+
"""
|
|
28928
|
+
return self._MPSTemplateSet
|
|
28929
|
+
|
|
28930
|
+
@MPSTemplateSet.setter
|
|
28931
|
+
def MPSTemplateSet(self, MPSTemplateSet):
|
|
28932
|
+
self._MPSTemplateSet = MPSTemplateSet
|
|
28933
|
+
|
|
28934
|
+
@property
|
|
28935
|
+
def RequestId(self):
|
|
28936
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
28937
|
+
:rtype: str
|
|
28938
|
+
"""
|
|
28939
|
+
return self._RequestId
|
|
28940
|
+
|
|
28941
|
+
@RequestId.setter
|
|
28942
|
+
def RequestId(self, RequestId):
|
|
28943
|
+
self._RequestId = RequestId
|
|
28944
|
+
|
|
28945
|
+
|
|
28946
|
+
def _deserialize(self, params):
|
|
28947
|
+
self._TotalCount = params.get("TotalCount")
|
|
28948
|
+
if params.get("MPSTemplateSet") is not None:
|
|
28949
|
+
self._MPSTemplateSet = []
|
|
28950
|
+
for item in params.get("MPSTemplateSet"):
|
|
28951
|
+
obj = MPSTemplate()
|
|
28952
|
+
obj._deserialize(item)
|
|
28953
|
+
self._MPSTemplateSet.append(obj)
|
|
28954
|
+
self._RequestId = params.get("RequestId")
|
|
28955
|
+
|
|
28956
|
+
|
|
28607
28957
|
class DescribeMediaInfosRequest(AbstractModel):
|
|
28608
28958
|
"""DescribeMediaInfos请求参数结构体
|
|
28609
28959
|
|
|
@@ -41132,6 +41482,61 @@ class MPSTaskOutput(AbstractModel):
|
|
|
41132
41482
|
|
|
41133
41483
|
|
|
41134
41484
|
|
|
41485
|
+
class MPSTemplate(AbstractModel):
|
|
41486
|
+
"""MPS 任务模板详情。
|
|
41487
|
+
|
|
41488
|
+
"""
|
|
41489
|
+
|
|
41490
|
+
def __init__(self):
|
|
41491
|
+
r"""
|
|
41492
|
+
:param _TaskType: MPS 模板的类型。取值:
|
|
41493
|
+
<li>Transcode: 转码模板。</li>
|
|
41494
|
+
:type TaskType: str
|
|
41495
|
+
:param _MPSTemplateInfo: MPS 任务模板详情内容。
|
|
41496
|
+
示例:{"Definition":24214,"Name":"test","Comment":"","Type":"Preset","EnhanceConfig":{"VideoEnhance":{"FrameRate":{"Switch":"ON","Fps":50},"SuperResolution":{"Switch":"ON","Type":"lq"}}}}
|
|
41497
|
+
:type MPSTemplateInfo: str
|
|
41498
|
+
"""
|
|
41499
|
+
self._TaskType = None
|
|
41500
|
+
self._MPSTemplateInfo = None
|
|
41501
|
+
|
|
41502
|
+
@property
|
|
41503
|
+
def TaskType(self):
|
|
41504
|
+
"""MPS 模板的类型。取值:
|
|
41505
|
+
<li>Transcode: 转码模板。</li>
|
|
41506
|
+
:rtype: str
|
|
41507
|
+
"""
|
|
41508
|
+
return self._TaskType
|
|
41509
|
+
|
|
41510
|
+
@TaskType.setter
|
|
41511
|
+
def TaskType(self, TaskType):
|
|
41512
|
+
self._TaskType = TaskType
|
|
41513
|
+
|
|
41514
|
+
@property
|
|
41515
|
+
def MPSTemplateInfo(self):
|
|
41516
|
+
"""MPS 任务模板详情内容。
|
|
41517
|
+
示例:{"Definition":24214,"Name":"test","Comment":"","Type":"Preset","EnhanceConfig":{"VideoEnhance":{"FrameRate":{"Switch":"ON","Fps":50},"SuperResolution":{"Switch":"ON","Type":"lq"}}}}
|
|
41518
|
+
:rtype: str
|
|
41519
|
+
"""
|
|
41520
|
+
return self._MPSTemplateInfo
|
|
41521
|
+
|
|
41522
|
+
@MPSTemplateInfo.setter
|
|
41523
|
+
def MPSTemplateInfo(self, MPSTemplateInfo):
|
|
41524
|
+
self._MPSTemplateInfo = MPSTemplateInfo
|
|
41525
|
+
|
|
41526
|
+
|
|
41527
|
+
def _deserialize(self, params):
|
|
41528
|
+
self._TaskType = params.get("TaskType")
|
|
41529
|
+
self._MPSTemplateInfo = params.get("MPSTemplateInfo")
|
|
41530
|
+
memeber_set = set(params.keys())
|
|
41531
|
+
for name, value in vars(self).items():
|
|
41532
|
+
property_name = name[1:]
|
|
41533
|
+
if property_name in memeber_set:
|
|
41534
|
+
memeber_set.remove(property_name)
|
|
41535
|
+
if len(memeber_set) > 0:
|
|
41536
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
41537
|
+
|
|
41538
|
+
|
|
41539
|
+
|
|
41135
41540
|
class ManageTaskRequest(AbstractModel):
|
|
41136
41541
|
"""ManageTask请求参数结构体
|
|
41137
41542
|
|
|
@@ -49537,6 +49942,108 @@ class ModifyJustInTimeTranscodeTemplateResponse(AbstractModel):
|
|
|
49537
49942
|
self._RequestId = params.get("RequestId")
|
|
49538
49943
|
|
|
49539
49944
|
|
|
49945
|
+
class ModifyMPSTemplateRequest(AbstractModel):
|
|
49946
|
+
"""ModifyMPSTemplate请求参数结构体
|
|
49947
|
+
|
|
49948
|
+
"""
|
|
49949
|
+
|
|
49950
|
+
def __init__(self):
|
|
49951
|
+
r"""
|
|
49952
|
+
:param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。</b>
|
|
49953
|
+
:type SubAppId: int
|
|
49954
|
+
:param _TemplateType: 需要修改的 MPS 模板的类型。取值:
|
|
49955
|
+
<li>Transcode: 创建转码模板,目前仅支持修改增强参数。</li>
|
|
49956
|
+
:type TemplateType: str
|
|
49957
|
+
:param _MPSModifyTemplateParams: MPS 修改模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧修改用户自定义的 MPS 任务模板。
|
|
49958
|
+
目前仅支持通过此方式修改以下任务类型的模板:
|
|
49959
|
+
1. 音视频增强:仅支持填写“[修改转码模板](https://cloud.tencent.com/document/api/862/37578)”接口中的 Name、Comment、RemoveVideo、RemoveAudio、VideoTemplate、AudioTemplate 和 EnhanceConfig 几个参数的内容。目前仅支持在模板中配置以上参数,其他参数无需填写,若包含其它参数,系统将自动忽略。
|
|
49960
|
+
示例:{"Definition":24214,"Container":"mp4","Name":"test","RemoveAudio":1,"VideoTemplate":{"Codec":"h264","Fps":0,"Bitrate":0},"EnhanceConfig":{"VideoEnhance":{"FrameRate":{"Switch":"ON","Fps":50}}}}
|
|
49961
|
+
:type MPSModifyTemplateParams: str
|
|
49962
|
+
"""
|
|
49963
|
+
self._SubAppId = None
|
|
49964
|
+
self._TemplateType = None
|
|
49965
|
+
self._MPSModifyTemplateParams = None
|
|
49966
|
+
|
|
49967
|
+
@property
|
|
49968
|
+
def SubAppId(self):
|
|
49969
|
+
"""<b>点播[应用](/document/product/266/14574) ID。</b>
|
|
49970
|
+
:rtype: int
|
|
49971
|
+
"""
|
|
49972
|
+
return self._SubAppId
|
|
49973
|
+
|
|
49974
|
+
@SubAppId.setter
|
|
49975
|
+
def SubAppId(self, SubAppId):
|
|
49976
|
+
self._SubAppId = SubAppId
|
|
49977
|
+
|
|
49978
|
+
@property
|
|
49979
|
+
def TemplateType(self):
|
|
49980
|
+
"""需要修改的 MPS 模板的类型。取值:
|
|
49981
|
+
<li>Transcode: 创建转码模板,目前仅支持修改增强参数。</li>
|
|
49982
|
+
:rtype: str
|
|
49983
|
+
"""
|
|
49984
|
+
return self._TemplateType
|
|
49985
|
+
|
|
49986
|
+
@TemplateType.setter
|
|
49987
|
+
def TemplateType(self, TemplateType):
|
|
49988
|
+
self._TemplateType = TemplateType
|
|
49989
|
+
|
|
49990
|
+
@property
|
|
49991
|
+
def MPSModifyTemplateParams(self):
|
|
49992
|
+
"""MPS 修改模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧修改用户自定义的 MPS 任务模板。
|
|
49993
|
+
目前仅支持通过此方式修改以下任务类型的模板:
|
|
49994
|
+
1. 音视频增强:仅支持填写“[修改转码模板](https://cloud.tencent.com/document/api/862/37578)”接口中的 Name、Comment、RemoveVideo、RemoveAudio、VideoTemplate、AudioTemplate 和 EnhanceConfig 几个参数的内容。目前仅支持在模板中配置以上参数,其他参数无需填写,若包含其它参数,系统将自动忽略。
|
|
49995
|
+
示例:{"Definition":24214,"Container":"mp4","Name":"test","RemoveAudio":1,"VideoTemplate":{"Codec":"h264","Fps":0,"Bitrate":0},"EnhanceConfig":{"VideoEnhance":{"FrameRate":{"Switch":"ON","Fps":50}}}}
|
|
49996
|
+
:rtype: str
|
|
49997
|
+
"""
|
|
49998
|
+
return self._MPSModifyTemplateParams
|
|
49999
|
+
|
|
50000
|
+
@MPSModifyTemplateParams.setter
|
|
50001
|
+
def MPSModifyTemplateParams(self, MPSModifyTemplateParams):
|
|
50002
|
+
self._MPSModifyTemplateParams = MPSModifyTemplateParams
|
|
50003
|
+
|
|
50004
|
+
|
|
50005
|
+
def _deserialize(self, params):
|
|
50006
|
+
self._SubAppId = params.get("SubAppId")
|
|
50007
|
+
self._TemplateType = params.get("TemplateType")
|
|
50008
|
+
self._MPSModifyTemplateParams = params.get("MPSModifyTemplateParams")
|
|
50009
|
+
memeber_set = set(params.keys())
|
|
50010
|
+
for name, value in vars(self).items():
|
|
50011
|
+
property_name = name[1:]
|
|
50012
|
+
if property_name in memeber_set:
|
|
50013
|
+
memeber_set.remove(property_name)
|
|
50014
|
+
if len(memeber_set) > 0:
|
|
50015
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
50016
|
+
|
|
50017
|
+
|
|
50018
|
+
|
|
50019
|
+
class ModifyMPSTemplateResponse(AbstractModel):
|
|
50020
|
+
"""ModifyMPSTemplate返回参数结构体
|
|
50021
|
+
|
|
50022
|
+
"""
|
|
50023
|
+
|
|
50024
|
+
def __init__(self):
|
|
50025
|
+
r"""
|
|
50026
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
50027
|
+
:type RequestId: str
|
|
50028
|
+
"""
|
|
50029
|
+
self._RequestId = None
|
|
50030
|
+
|
|
50031
|
+
@property
|
|
50032
|
+
def RequestId(self):
|
|
50033
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
50034
|
+
:rtype: str
|
|
50035
|
+
"""
|
|
50036
|
+
return self._RequestId
|
|
50037
|
+
|
|
50038
|
+
@RequestId.setter
|
|
50039
|
+
def RequestId(self, RequestId):
|
|
50040
|
+
self._RequestId = RequestId
|
|
50041
|
+
|
|
50042
|
+
|
|
50043
|
+
def _deserialize(self, params):
|
|
50044
|
+
self._RequestId = params.get("RequestId")
|
|
50045
|
+
|
|
50046
|
+
|
|
49540
50047
|
class ModifyMediaInfoRequest(AbstractModel):
|
|
49541
50048
|
"""ModifyMediaInfo请求参数结构体
|
|
49542
50049
|
|
|
@@ -518,6 +518,36 @@ class VodClient(AbstractClient):
|
|
|
518
518
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
519
519
|
|
|
520
520
|
|
|
521
|
+
def CreateMPSTemplate(self, request):
|
|
522
|
+
"""该接口用于创建自定义模板,模板用于 ProcessMediaByMPS 接口的部分功能。
|
|
523
|
+
创建模板时,需要将 MPS 相关参数以 JSON 格式填入 MPSCreateTemplateParams 参数中。关于具体的任务参数配置方法,请参考 MPS 任务模板相关文档说明。
|
|
524
|
+
当前支持创建自定义模板的 MPS 功能:
|
|
525
|
+
1. [音视频增强](https://cloud.tencent.com/document/product/862/118703)。
|
|
526
|
+
|
|
527
|
+
> 以该种方式创建的任务模板:
|
|
528
|
+
> 1. 模板的管理仍在点播平台中完成。
|
|
529
|
+
> 2. 该功能目前仍在内测中,如需测试体验,您可以联系我们获得支持。
|
|
530
|
+
|
|
531
|
+
:param request: Request instance for CreateMPSTemplate.
|
|
532
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.CreateMPSTemplateRequest`
|
|
533
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.CreateMPSTemplateResponse`
|
|
534
|
+
|
|
535
|
+
"""
|
|
536
|
+
try:
|
|
537
|
+
params = request._serialize()
|
|
538
|
+
headers = request.headers
|
|
539
|
+
body = self.call("CreateMPSTemplate", params, headers=headers)
|
|
540
|
+
response = json.loads(body)
|
|
541
|
+
model = models.CreateMPSTemplateResponse()
|
|
542
|
+
model._deserialize(response["Response"])
|
|
543
|
+
return model
|
|
544
|
+
except Exception as e:
|
|
545
|
+
if isinstance(e, TencentCloudSDKException):
|
|
546
|
+
raise
|
|
547
|
+
else:
|
|
548
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
549
|
+
|
|
550
|
+
|
|
521
551
|
def CreatePersonSample(self, request):
|
|
522
552
|
"""该接口用于创建素材样本,用于通过五官定位等技术,进行内容识别、不适宜视频识别等视频处理。
|
|
523
553
|
|
|
@@ -1152,6 +1182,29 @@ class VodClient(AbstractClient):
|
|
|
1152
1182
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1153
1183
|
|
|
1154
1184
|
|
|
1185
|
+
def DeleteMPSTemplate(self, request):
|
|
1186
|
+
"""删除用户自定义 MPS 任务模板。
|
|
1187
|
+
|
|
1188
|
+
:param request: Request instance for DeleteMPSTemplate.
|
|
1189
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.DeleteMPSTemplateRequest`
|
|
1190
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.DeleteMPSTemplateResponse`
|
|
1191
|
+
|
|
1192
|
+
"""
|
|
1193
|
+
try:
|
|
1194
|
+
params = request._serialize()
|
|
1195
|
+
headers = request.headers
|
|
1196
|
+
body = self.call("DeleteMPSTemplate", params, headers=headers)
|
|
1197
|
+
response = json.loads(body)
|
|
1198
|
+
model = models.DeleteMPSTemplateResponse()
|
|
1199
|
+
model._deserialize(response["Response"])
|
|
1200
|
+
return model
|
|
1201
|
+
except Exception as e:
|
|
1202
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1203
|
+
raise
|
|
1204
|
+
else:
|
|
1205
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1206
|
+
|
|
1207
|
+
|
|
1155
1208
|
def DeleteMedia(self, request):
|
|
1156
1209
|
"""* 删除媒体及其对应的视频处理文件(原始文件、如转码视频、雪碧图、截图、微信发布视频等);
|
|
1157
1210
|
* 可单独删除指定 ID 的视频文件下的原文件、转码视频、微信发布视频等;
|
|
@@ -2221,6 +2274,30 @@ class VodClient(AbstractClient):
|
|
|
2221
2274
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2222
2275
|
|
|
2223
2276
|
|
|
2277
|
+
def DescribeMPSTemplates(self, request):
|
|
2278
|
+
"""获取用户自定义媒体处理服务(MPS)任务模板。
|
|
2279
|
+
查询模板列表时,需要将 MPS 相关参数以 JSON 格式填入 MPSDescribeTemplateParams 参数中。关于具体的任务参数配置方法,请参考 MPS 任务模板相关文档说明。
|
|
2280
|
+
|
|
2281
|
+
:param request: Request instance for DescribeMPSTemplates.
|
|
2282
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.DescribeMPSTemplatesRequest`
|
|
2283
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.DescribeMPSTemplatesResponse`
|
|
2284
|
+
|
|
2285
|
+
"""
|
|
2286
|
+
try:
|
|
2287
|
+
params = request._serialize()
|
|
2288
|
+
headers = request.headers
|
|
2289
|
+
body = self.call("DescribeMPSTemplates", params, headers=headers)
|
|
2290
|
+
response = json.loads(body)
|
|
2291
|
+
model = models.DescribeMPSTemplatesResponse()
|
|
2292
|
+
model._deserialize(response["Response"])
|
|
2293
|
+
return model
|
|
2294
|
+
except Exception as e:
|
|
2295
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2296
|
+
raise
|
|
2297
|
+
else:
|
|
2298
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2299
|
+
|
|
2300
|
+
|
|
2224
2301
|
def DescribeMediaInfos(self, request):
|
|
2225
2302
|
"""1. 该接口可以获取多个媒体文件的多种信息,包括:
|
|
2226
2303
|
1. 基础信息(basicInfo):包括媒体名称、分类、播放地址、封面图片等。
|
|
@@ -3441,6 +3518,30 @@ class VodClient(AbstractClient):
|
|
|
3441
3518
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3442
3519
|
|
|
3443
3520
|
|
|
3521
|
+
def ModifyMPSTemplate(self, request):
|
|
3522
|
+
"""修改用户自定义 MPS 任务模板。
|
|
3523
|
+
修改模板时,需要将 MPS 相关参数以 JSON 格式填入 MPSModifyTemplateParams 参数中。关于具体的任务参数配置方法,请参考 MPS 任务模板相关文档说明。
|
|
3524
|
+
|
|
3525
|
+
:param request: Request instance for ModifyMPSTemplate.
|
|
3526
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.ModifyMPSTemplateRequest`
|
|
3527
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.ModifyMPSTemplateResponse`
|
|
3528
|
+
|
|
3529
|
+
"""
|
|
3530
|
+
try:
|
|
3531
|
+
params = request._serialize()
|
|
3532
|
+
headers = request.headers
|
|
3533
|
+
body = self.call("ModifyMPSTemplate", params, headers=headers)
|
|
3534
|
+
response = json.loads(body)
|
|
3535
|
+
model = models.ModifyMPSTemplateResponse()
|
|
3536
|
+
model._deserialize(response["Response"])
|
|
3537
|
+
return model
|
|
3538
|
+
except Exception as e:
|
|
3539
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3540
|
+
raise
|
|
3541
|
+
else:
|
|
3542
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3543
|
+
|
|
3544
|
+
|
|
3444
3545
|
def ModifyMediaInfo(self, request):
|
|
3445
3546
|
"""修改媒体文件的属性,包括分类、名称、描述、标签、过期时间、打点信息、视频封面、字幕信息等。
|
|
3446
3547
|
|