tencentcloud-sdk-python-intl-en 3.0.1284__py2.py3-none-any.whl → 3.0.1286__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-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/mps/v20190612/errorcodes.py +42 -0
- tencentcloud/mps/v20190612/models.py +810 -43
- tencentcloud/mps/v20190612/mps_client.py +92 -0
- {tencentcloud_sdk_python_intl_en-3.0.1284.dist-info → tencentcloud_sdk_python_intl_en-3.0.1286.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1284.dist-info → tencentcloud_sdk_python_intl_en-3.0.1286.dist-info}/RECORD +8 -8
- {tencentcloud_sdk_python_intl_en-3.0.1284.dist-info → tencentcloud_sdk_python_intl_en-3.0.1286.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1284.dist-info → tencentcloud_sdk_python_intl_en-3.0.1286.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -83,6 +83,9 @@ INVALIDPARAMETERVALUE_AUDIOCODEC = 'InvalidParameterValue.AudioCodec'
|
|
|
83
83
|
# Parameter error: audio stream sample rate.
|
|
84
84
|
INVALIDPARAMETERVALUE_AUDIOSAMPLERATE = 'InvalidParameterValue.AudioSampleRate'
|
|
85
85
|
|
|
86
|
+
# The configuration for the automatic erasing area of the erasing template is incorrect.
|
|
87
|
+
INVALIDPARAMETERVALUE_AUTOAREAS = 'InvalidParameterValue.AutoAreas'
|
|
88
|
+
|
|
86
89
|
# Invalid audio/video bitrate.
|
|
87
90
|
INVALIDPARAMETERVALUE_BITRATE = 'InvalidParameterValue.Bitrate'
|
|
88
91
|
|
|
@@ -113,6 +116,9 @@ INVALIDPARAMETERVALUE_COORDINATEORIGIN = 'InvalidParameterValue.CoordinateOrigin
|
|
|
113
116
|
# Incorrect parameter value: the control field parameter for intelligent cover generation is incorrect.
|
|
114
117
|
INVALIDPARAMETERVALUE_COVERCONFIGURE = 'InvalidParameterValue.CoverConfigure'
|
|
115
118
|
|
|
119
|
+
# The specified area of the erasing template is incorrect.
|
|
120
|
+
INVALIDPARAMETERVALUE_CUSTOMAREAS = 'InvalidParameterValue.CustomAreas'
|
|
121
|
+
|
|
116
122
|
# Incorrect parameter value: the default face library filter tag is invalid.
|
|
117
123
|
INVALIDPARAMETERVALUE_DEFAULTLIBRARYLABELSET = 'InvalidParameterValue.DefaultLibraryLabelSet'
|
|
118
124
|
|
|
@@ -137,6 +143,18 @@ INVALIDPARAMETERVALUE_DISABLEHIGHERVIDEORESOLUTION = 'InvalidParameterValue.Disa
|
|
|
137
143
|
# The enabled detection items of the template are empty.
|
|
138
144
|
INVALIDPARAMETERVALUE_EMPTYDETECTITEM = 'InvalidParameterValue.EmptyDetectItem'
|
|
139
145
|
|
|
146
|
+
# The privacy protection configuration of the erasing template is incorrect.
|
|
147
|
+
INVALIDPARAMETERVALUE_ERASEPRIVACYCONFIG = 'InvalidParameterValue.ErasePrivacyConfig'
|
|
148
|
+
|
|
149
|
+
# The subtitle erasing configuration of the erasing template is incorrect.
|
|
150
|
+
INVALIDPARAMETERVALUE_ERASESUBTITLECONFIG = 'InvalidParameterValue.EraseSubtitleConfig'
|
|
151
|
+
|
|
152
|
+
# The erasing type of the erasing template is incorrect.
|
|
153
|
+
INVALIDPARAMETERVALUE_ERASETYPE = 'InvalidParameterValue.EraseType'
|
|
154
|
+
|
|
155
|
+
# The watermark erasing configuration of the erasing template is incorrect.
|
|
156
|
+
INVALIDPARAMETERVALUE_ERASEWATERMARKCONFIG = 'InvalidParameterValue.EraseWatermarkConfig'
|
|
157
|
+
|
|
140
158
|
# Incorrect parameter value: duplicated face.
|
|
141
159
|
INVALIDPARAMETERVALUE_FACEDUPLICATE = 'InvalidParameterValue.FaceDuplicate'
|
|
142
160
|
|
|
@@ -218,6 +236,12 @@ INVALIDPARAMETERVALUE_OBJECTLIBRARY = 'InvalidParameterValue.ObjectLibrary'
|
|
|
218
236
|
# Incorrect parameter value: incorrect face image format.
|
|
219
237
|
INVALIDPARAMETERVALUE_PICFORMATERROR = 'InvalidParameterValue.PicFormatError'
|
|
220
238
|
|
|
239
|
+
# The privacy protection model of the erasing template is incorrect.
|
|
240
|
+
INVALIDPARAMETERVALUE_PRIVACYMODEL = 'InvalidParameterValue.PrivacyModel'
|
|
241
|
+
|
|
242
|
+
# The privacy protection target of the erasing template is incorrect.
|
|
243
|
+
INVALIDPARAMETERVALUE_PRIVACYTARGETS = 'InvalidParameterValue.PrivacyTargets'
|
|
244
|
+
|
|
221
245
|
# Incorrect parameter value: Quality.
|
|
222
246
|
INVALIDPARAMETERVALUE_QUALITY = 'InvalidParameterValue.Quality'
|
|
223
247
|
|
|
@@ -269,9 +293,18 @@ INVALIDPARAMETERVALUE_SOURCELANGUAGE = 'InvalidParameterValue.SourceLanguage'
|
|
|
269
293
|
# Source file error.
|
|
270
294
|
INVALIDPARAMETERVALUE_SRCFILE = 'InvalidParameterValue.SrcFile'
|
|
271
295
|
|
|
296
|
+
# The subtitle erasing method of the erasing template is incorrect.
|
|
297
|
+
INVALIDPARAMETERVALUE_SUBTITLEERASEMETHOD = 'InvalidParameterValue.SubtitleEraseMethod'
|
|
298
|
+
|
|
272
299
|
# Incorrect parameter value: The value of the `SubtitleFormat` parameter is invalid.
|
|
273
300
|
INVALIDPARAMETERVALUE_SUBTITLEFORMAT = 'InvalidParameterValue.SubtitleFormat'
|
|
274
301
|
|
|
302
|
+
# The language for the subtitle erasing of the erasing template is incorrect.
|
|
303
|
+
INVALIDPARAMETERVALUE_SUBTITLELANG = 'InvalidParameterValue.SubtitleLang'
|
|
304
|
+
|
|
305
|
+
# The subtitle erasing model of the erasing template is incorrect.
|
|
306
|
+
INVALIDPARAMETERVALUE_SUBTITLEMODEL = 'InvalidParameterValue.SubtitleModel'
|
|
307
|
+
|
|
275
308
|
# The value of the subtitle language type is incorrect.
|
|
276
309
|
INVALIDPARAMETERVALUE_SUBTITLETYPE = 'InvalidParameterValue.SubtitleType'
|
|
277
310
|
|
|
@@ -302,6 +335,9 @@ INVALIDPARAMETERVALUE_TEXTALPHA = 'InvalidParameterValue.TextAlpha'
|
|
|
302
335
|
# Parameter error: text template.
|
|
303
336
|
INVALIDPARAMETERVALUE_TEXTTEMPLATE = 'InvalidParameterValue.TextTemplate'
|
|
304
337
|
|
|
338
|
+
# The configuration for the translation target language is incorrect under the smart erasing - subtitle erasing template.
|
|
339
|
+
INVALIDPARAMETERVALUE_TRANSDSTLANG = 'InvalidParameterValue.TransDstLang'
|
|
340
|
+
|
|
305
341
|
# The value of the target language parameter is incorrect.
|
|
306
342
|
INVALIDPARAMETERVALUE_TRANSLATEDSTLANGUAGE = 'InvalidParameterValue.TranslateDstLanguage'
|
|
307
343
|
|
|
@@ -326,6 +362,12 @@ INVALIDPARAMETERVALUE_VIDEOCODEC = 'InvalidParameterValue.VideoCodec'
|
|
|
326
362
|
# The value of the video source language parameter is incorrect.
|
|
327
363
|
INVALIDPARAMETERVALUE_VIDEOSRCLANGUAGE = 'InvalidParameterValue.VideoSrcLanguage'
|
|
328
364
|
|
|
365
|
+
# The watermark erasing method of the erasing template is incorrect.
|
|
366
|
+
INVALIDPARAMETERVALUE_WATERMARKERASEMETHOD = 'InvalidParameterValue.WatermarkEraseMethod'
|
|
367
|
+
|
|
368
|
+
# The watermark erasing model of the erasing template is incorrect.
|
|
369
|
+
INVALIDPARAMETERVALUE_WATERMARKMODEL = 'InvalidParameterValue.WatermarkModel'
|
|
370
|
+
|
|
329
371
|
# Parameter error: Wwdth.
|
|
330
372
|
INVALIDPARAMETERVALUE_WIDTH = 'InvalidParameterValue.Width'
|
|
331
373
|
|
|
@@ -17946,6 +17946,172 @@ class CreateScheduleResponse(AbstractModel):
|
|
|
17946
17946
|
self._RequestId = params.get("RequestId")
|
|
17947
17947
|
|
|
17948
17948
|
|
|
17949
|
+
class CreateSmartEraseTemplateRequest(AbstractModel):
|
|
17950
|
+
r"""CreateSmartEraseTemplate request structure.
|
|
17951
|
+
|
|
17952
|
+
"""
|
|
17953
|
+
|
|
17954
|
+
def __init__(self):
|
|
17955
|
+
r"""
|
|
17956
|
+
:param _Name: Length limit for the smart erasing template name: 64 characters.
|
|
17957
|
+
:type Name: str
|
|
17958
|
+
:param _EraseType: Erasing type.
|
|
17959
|
+
-subtitle: subtitle removal.
|
|
17960
|
+
-watermark: watermark removal.
|
|
17961
|
+
-privacy: privacy protection.
|
|
17962
|
+
:type EraseType: str
|
|
17963
|
+
:param _Comment: Length limit for the description information of the smart erasing template: 256 characters.
|
|
17964
|
+
:type Comment: str
|
|
17965
|
+
:param _EraseSubtitleConfig: Subtitle erasing configuration. This parameter is required and valid only when the value of EraseType is set to subtitle.
|
|
17966
|
+
:type EraseSubtitleConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
17967
|
+
:param _EraseWatermarkConfig: Watermark erasing configuration. This parameter is required and valid only when the value of EraseType is set to watermark.
|
|
17968
|
+
:type EraseWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
17969
|
+
:param _ErasePrivacyConfig: Privacy protection configuration. This parameter is required and valid only when the value of EraseType is set to privacy.
|
|
17970
|
+
:type ErasePrivacyConfig: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
17971
|
+
"""
|
|
17972
|
+
self._Name = None
|
|
17973
|
+
self._EraseType = None
|
|
17974
|
+
self._Comment = None
|
|
17975
|
+
self._EraseSubtitleConfig = None
|
|
17976
|
+
self._EraseWatermarkConfig = None
|
|
17977
|
+
self._ErasePrivacyConfig = None
|
|
17978
|
+
|
|
17979
|
+
@property
|
|
17980
|
+
def Name(self):
|
|
17981
|
+
r"""Length limit for the smart erasing template name: 64 characters.
|
|
17982
|
+
:rtype: str
|
|
17983
|
+
"""
|
|
17984
|
+
return self._Name
|
|
17985
|
+
|
|
17986
|
+
@Name.setter
|
|
17987
|
+
def Name(self, Name):
|
|
17988
|
+
self._Name = Name
|
|
17989
|
+
|
|
17990
|
+
@property
|
|
17991
|
+
def EraseType(self):
|
|
17992
|
+
r"""Erasing type.
|
|
17993
|
+
-subtitle: subtitle removal.
|
|
17994
|
+
-watermark: watermark removal.
|
|
17995
|
+
-privacy: privacy protection.
|
|
17996
|
+
:rtype: str
|
|
17997
|
+
"""
|
|
17998
|
+
return self._EraseType
|
|
17999
|
+
|
|
18000
|
+
@EraseType.setter
|
|
18001
|
+
def EraseType(self, EraseType):
|
|
18002
|
+
self._EraseType = EraseType
|
|
18003
|
+
|
|
18004
|
+
@property
|
|
18005
|
+
def Comment(self):
|
|
18006
|
+
r"""Length limit for the description information of the smart erasing template: 256 characters.
|
|
18007
|
+
:rtype: str
|
|
18008
|
+
"""
|
|
18009
|
+
return self._Comment
|
|
18010
|
+
|
|
18011
|
+
@Comment.setter
|
|
18012
|
+
def Comment(self, Comment):
|
|
18013
|
+
self._Comment = Comment
|
|
18014
|
+
|
|
18015
|
+
@property
|
|
18016
|
+
def EraseSubtitleConfig(self):
|
|
18017
|
+
r"""Subtitle erasing configuration. This parameter is required and valid only when the value of EraseType is set to subtitle.
|
|
18018
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
18019
|
+
"""
|
|
18020
|
+
return self._EraseSubtitleConfig
|
|
18021
|
+
|
|
18022
|
+
@EraseSubtitleConfig.setter
|
|
18023
|
+
def EraseSubtitleConfig(self, EraseSubtitleConfig):
|
|
18024
|
+
self._EraseSubtitleConfig = EraseSubtitleConfig
|
|
18025
|
+
|
|
18026
|
+
@property
|
|
18027
|
+
def EraseWatermarkConfig(self):
|
|
18028
|
+
r"""Watermark erasing configuration. This parameter is required and valid only when the value of EraseType is set to watermark.
|
|
18029
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
18030
|
+
"""
|
|
18031
|
+
return self._EraseWatermarkConfig
|
|
18032
|
+
|
|
18033
|
+
@EraseWatermarkConfig.setter
|
|
18034
|
+
def EraseWatermarkConfig(self, EraseWatermarkConfig):
|
|
18035
|
+
self._EraseWatermarkConfig = EraseWatermarkConfig
|
|
18036
|
+
|
|
18037
|
+
@property
|
|
18038
|
+
def ErasePrivacyConfig(self):
|
|
18039
|
+
r"""Privacy protection configuration. This parameter is required and valid only when the value of EraseType is set to privacy.
|
|
18040
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
18041
|
+
"""
|
|
18042
|
+
return self._ErasePrivacyConfig
|
|
18043
|
+
|
|
18044
|
+
@ErasePrivacyConfig.setter
|
|
18045
|
+
def ErasePrivacyConfig(self, ErasePrivacyConfig):
|
|
18046
|
+
self._ErasePrivacyConfig = ErasePrivacyConfig
|
|
18047
|
+
|
|
18048
|
+
|
|
18049
|
+
def _deserialize(self, params):
|
|
18050
|
+
self._Name = params.get("Name")
|
|
18051
|
+
self._EraseType = params.get("EraseType")
|
|
18052
|
+
self._Comment = params.get("Comment")
|
|
18053
|
+
if params.get("EraseSubtitleConfig") is not None:
|
|
18054
|
+
self._EraseSubtitleConfig = SmartEraseSubtitleConfig()
|
|
18055
|
+
self._EraseSubtitleConfig._deserialize(params.get("EraseSubtitleConfig"))
|
|
18056
|
+
if params.get("EraseWatermarkConfig") is not None:
|
|
18057
|
+
self._EraseWatermarkConfig = SmartEraseWatermarkConfig()
|
|
18058
|
+
self._EraseWatermarkConfig._deserialize(params.get("EraseWatermarkConfig"))
|
|
18059
|
+
if params.get("ErasePrivacyConfig") is not None:
|
|
18060
|
+
self._ErasePrivacyConfig = SmartErasePrivacyConfig()
|
|
18061
|
+
self._ErasePrivacyConfig._deserialize(params.get("ErasePrivacyConfig"))
|
|
18062
|
+
memeber_set = set(params.keys())
|
|
18063
|
+
for name, value in vars(self).items():
|
|
18064
|
+
property_name = name[1:]
|
|
18065
|
+
if property_name in memeber_set:
|
|
18066
|
+
memeber_set.remove(property_name)
|
|
18067
|
+
if len(memeber_set) > 0:
|
|
18068
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18069
|
+
|
|
18070
|
+
|
|
18071
|
+
|
|
18072
|
+
class CreateSmartEraseTemplateResponse(AbstractModel):
|
|
18073
|
+
r"""CreateSmartEraseTemplate response structure.
|
|
18074
|
+
|
|
18075
|
+
"""
|
|
18076
|
+
|
|
18077
|
+
def __init__(self):
|
|
18078
|
+
r"""
|
|
18079
|
+
:param _Definition: Unique identifier of the smart erasing template.
|
|
18080
|
+
:type Definition: int
|
|
18081
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
18082
|
+
:type RequestId: str
|
|
18083
|
+
"""
|
|
18084
|
+
self._Definition = None
|
|
18085
|
+
self._RequestId = None
|
|
18086
|
+
|
|
18087
|
+
@property
|
|
18088
|
+
def Definition(self):
|
|
18089
|
+
r"""Unique identifier of the smart erasing template.
|
|
18090
|
+
:rtype: int
|
|
18091
|
+
"""
|
|
18092
|
+
return self._Definition
|
|
18093
|
+
|
|
18094
|
+
@Definition.setter
|
|
18095
|
+
def Definition(self, Definition):
|
|
18096
|
+
self._Definition = Definition
|
|
18097
|
+
|
|
18098
|
+
@property
|
|
18099
|
+
def RequestId(self):
|
|
18100
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
18101
|
+
:rtype: str
|
|
18102
|
+
"""
|
|
18103
|
+
return self._RequestId
|
|
18104
|
+
|
|
18105
|
+
@RequestId.setter
|
|
18106
|
+
def RequestId(self, RequestId):
|
|
18107
|
+
self._RequestId = RequestId
|
|
18108
|
+
|
|
18109
|
+
|
|
18110
|
+
def _deserialize(self, params):
|
|
18111
|
+
self._Definition = params.get("Definition")
|
|
18112
|
+
self._RequestId = params.get("RequestId")
|
|
18113
|
+
|
|
18114
|
+
|
|
17949
18115
|
class CreateSmartSubtitleTemplateRequest(AbstractModel):
|
|
17950
18116
|
r"""CreateSmartSubtitleTemplate request structure.
|
|
17951
18117
|
|
|
@@ -20003,6 +20169,70 @@ class DeleteScheduleResponse(AbstractModel):
|
|
|
20003
20169
|
self._RequestId = params.get("RequestId")
|
|
20004
20170
|
|
|
20005
20171
|
|
|
20172
|
+
class DeleteSmartEraseTemplateRequest(AbstractModel):
|
|
20173
|
+
r"""DeleteSmartEraseTemplate request structure.
|
|
20174
|
+
|
|
20175
|
+
"""
|
|
20176
|
+
|
|
20177
|
+
def __init__(self):
|
|
20178
|
+
r"""
|
|
20179
|
+
:param _Definition: Unique identifier of the smart erasing template.
|
|
20180
|
+
:type Definition: int
|
|
20181
|
+
"""
|
|
20182
|
+
self._Definition = None
|
|
20183
|
+
|
|
20184
|
+
@property
|
|
20185
|
+
def Definition(self):
|
|
20186
|
+
r"""Unique identifier of the smart erasing template.
|
|
20187
|
+
:rtype: int
|
|
20188
|
+
"""
|
|
20189
|
+
return self._Definition
|
|
20190
|
+
|
|
20191
|
+
@Definition.setter
|
|
20192
|
+
def Definition(self, Definition):
|
|
20193
|
+
self._Definition = Definition
|
|
20194
|
+
|
|
20195
|
+
|
|
20196
|
+
def _deserialize(self, params):
|
|
20197
|
+
self._Definition = params.get("Definition")
|
|
20198
|
+
memeber_set = set(params.keys())
|
|
20199
|
+
for name, value in vars(self).items():
|
|
20200
|
+
property_name = name[1:]
|
|
20201
|
+
if property_name in memeber_set:
|
|
20202
|
+
memeber_set.remove(property_name)
|
|
20203
|
+
if len(memeber_set) > 0:
|
|
20204
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20205
|
+
|
|
20206
|
+
|
|
20207
|
+
|
|
20208
|
+
class DeleteSmartEraseTemplateResponse(AbstractModel):
|
|
20209
|
+
r"""DeleteSmartEraseTemplate response structure.
|
|
20210
|
+
|
|
20211
|
+
"""
|
|
20212
|
+
|
|
20213
|
+
def __init__(self):
|
|
20214
|
+
r"""
|
|
20215
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
20216
|
+
:type RequestId: str
|
|
20217
|
+
"""
|
|
20218
|
+
self._RequestId = None
|
|
20219
|
+
|
|
20220
|
+
@property
|
|
20221
|
+
def RequestId(self):
|
|
20222
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
20223
|
+
:rtype: str
|
|
20224
|
+
"""
|
|
20225
|
+
return self._RequestId
|
|
20226
|
+
|
|
20227
|
+
@RequestId.setter
|
|
20228
|
+
def RequestId(self, RequestId):
|
|
20229
|
+
self._RequestId = RequestId
|
|
20230
|
+
|
|
20231
|
+
|
|
20232
|
+
def _deserialize(self, params):
|
|
20233
|
+
self._RequestId = params.get("RequestId")
|
|
20234
|
+
|
|
20235
|
+
|
|
20006
20236
|
class DeleteSmartSubtitleTemplateRequest(AbstractModel):
|
|
20007
20237
|
r"""DeleteSmartSubtitleTemplate request structure.
|
|
20008
20238
|
|
|
@@ -23322,6 +23552,169 @@ class DescribeSchedulesResponse(AbstractModel):
|
|
|
23322
23552
|
self._RequestId = params.get("RequestId")
|
|
23323
23553
|
|
|
23324
23554
|
|
|
23555
|
+
class DescribeSmartEraseTemplatesRequest(AbstractModel):
|
|
23556
|
+
r"""DescribeSmartEraseTemplates request structure.
|
|
23557
|
+
|
|
23558
|
+
"""
|
|
23559
|
+
|
|
23560
|
+
def __init__(self):
|
|
23561
|
+
r"""
|
|
23562
|
+
:param _Definitions: Filtering condition for the unique identifier of the smart erasing template. Length limit of the array: 100.
|
|
23563
|
+
:type Definitions: list of int
|
|
23564
|
+
:param _Offset: Pagination offset. Default value: 0.
|
|
23565
|
+
:type Offset: int
|
|
23566
|
+
:param _Limit: Number of returned entries. Default value: 10. Maximum value: 100.
|
|
23567
|
+
:type Limit: int
|
|
23568
|
+
:param _Type: Filtering conditions for template type. If this parameter is not specified, all templates are returned. Valid values:
|
|
23569
|
+
* Preset: system preset template.
|
|
23570
|
+
* Custom: user-defined template.
|
|
23571
|
+
:type Type: str
|
|
23572
|
+
:param _Name: Filtering condition for the smart erasing template name. Length limit: 64 characters.
|
|
23573
|
+
:type Name: str
|
|
23574
|
+
"""
|
|
23575
|
+
self._Definitions = None
|
|
23576
|
+
self._Offset = None
|
|
23577
|
+
self._Limit = None
|
|
23578
|
+
self._Type = None
|
|
23579
|
+
self._Name = None
|
|
23580
|
+
|
|
23581
|
+
@property
|
|
23582
|
+
def Definitions(self):
|
|
23583
|
+
r"""Filtering condition for the unique identifier of the smart erasing template. Length limit of the array: 100.
|
|
23584
|
+
:rtype: list of int
|
|
23585
|
+
"""
|
|
23586
|
+
return self._Definitions
|
|
23587
|
+
|
|
23588
|
+
@Definitions.setter
|
|
23589
|
+
def Definitions(self, Definitions):
|
|
23590
|
+
self._Definitions = Definitions
|
|
23591
|
+
|
|
23592
|
+
@property
|
|
23593
|
+
def Offset(self):
|
|
23594
|
+
r"""Pagination offset. Default value: 0.
|
|
23595
|
+
:rtype: int
|
|
23596
|
+
"""
|
|
23597
|
+
return self._Offset
|
|
23598
|
+
|
|
23599
|
+
@Offset.setter
|
|
23600
|
+
def Offset(self, Offset):
|
|
23601
|
+
self._Offset = Offset
|
|
23602
|
+
|
|
23603
|
+
@property
|
|
23604
|
+
def Limit(self):
|
|
23605
|
+
r"""Number of returned entries. Default value: 10. Maximum value: 100.
|
|
23606
|
+
:rtype: int
|
|
23607
|
+
"""
|
|
23608
|
+
return self._Limit
|
|
23609
|
+
|
|
23610
|
+
@Limit.setter
|
|
23611
|
+
def Limit(self, Limit):
|
|
23612
|
+
self._Limit = Limit
|
|
23613
|
+
|
|
23614
|
+
@property
|
|
23615
|
+
def Type(self):
|
|
23616
|
+
r"""Filtering conditions for template type. If this parameter is not specified, all templates are returned. Valid values:
|
|
23617
|
+
* Preset: system preset template.
|
|
23618
|
+
* Custom: user-defined template.
|
|
23619
|
+
:rtype: str
|
|
23620
|
+
"""
|
|
23621
|
+
return self._Type
|
|
23622
|
+
|
|
23623
|
+
@Type.setter
|
|
23624
|
+
def Type(self, Type):
|
|
23625
|
+
self._Type = Type
|
|
23626
|
+
|
|
23627
|
+
@property
|
|
23628
|
+
def Name(self):
|
|
23629
|
+
r"""Filtering condition for the smart erasing template name. Length limit: 64 characters.
|
|
23630
|
+
:rtype: str
|
|
23631
|
+
"""
|
|
23632
|
+
return self._Name
|
|
23633
|
+
|
|
23634
|
+
@Name.setter
|
|
23635
|
+
def Name(self, Name):
|
|
23636
|
+
self._Name = Name
|
|
23637
|
+
|
|
23638
|
+
|
|
23639
|
+
def _deserialize(self, params):
|
|
23640
|
+
self._Definitions = params.get("Definitions")
|
|
23641
|
+
self._Offset = params.get("Offset")
|
|
23642
|
+
self._Limit = params.get("Limit")
|
|
23643
|
+
self._Type = params.get("Type")
|
|
23644
|
+
self._Name = params.get("Name")
|
|
23645
|
+
memeber_set = set(params.keys())
|
|
23646
|
+
for name, value in vars(self).items():
|
|
23647
|
+
property_name = name[1:]
|
|
23648
|
+
if property_name in memeber_set:
|
|
23649
|
+
memeber_set.remove(property_name)
|
|
23650
|
+
if len(memeber_set) > 0:
|
|
23651
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23652
|
+
|
|
23653
|
+
|
|
23654
|
+
|
|
23655
|
+
class DescribeSmartEraseTemplatesResponse(AbstractModel):
|
|
23656
|
+
r"""DescribeSmartEraseTemplates response structure.
|
|
23657
|
+
|
|
23658
|
+
"""
|
|
23659
|
+
|
|
23660
|
+
def __init__(self):
|
|
23661
|
+
r"""
|
|
23662
|
+
:param _TotalCount: Total number of records that meet the filtering conditions.
|
|
23663
|
+
:type TotalCount: int
|
|
23664
|
+
:param _SmartEraseTemplateSet: List of smart erasing template details.
|
|
23665
|
+
:type SmartEraseTemplateSet: list of SmartEraseTemplateItem
|
|
23666
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
23667
|
+
:type RequestId: str
|
|
23668
|
+
"""
|
|
23669
|
+
self._TotalCount = None
|
|
23670
|
+
self._SmartEraseTemplateSet = None
|
|
23671
|
+
self._RequestId = None
|
|
23672
|
+
|
|
23673
|
+
@property
|
|
23674
|
+
def TotalCount(self):
|
|
23675
|
+
r"""Total number of records that meet the filtering conditions.
|
|
23676
|
+
:rtype: int
|
|
23677
|
+
"""
|
|
23678
|
+
return self._TotalCount
|
|
23679
|
+
|
|
23680
|
+
@TotalCount.setter
|
|
23681
|
+
def TotalCount(self, TotalCount):
|
|
23682
|
+
self._TotalCount = TotalCount
|
|
23683
|
+
|
|
23684
|
+
@property
|
|
23685
|
+
def SmartEraseTemplateSet(self):
|
|
23686
|
+
r"""List of smart erasing template details.
|
|
23687
|
+
:rtype: list of SmartEraseTemplateItem
|
|
23688
|
+
"""
|
|
23689
|
+
return self._SmartEraseTemplateSet
|
|
23690
|
+
|
|
23691
|
+
@SmartEraseTemplateSet.setter
|
|
23692
|
+
def SmartEraseTemplateSet(self, SmartEraseTemplateSet):
|
|
23693
|
+
self._SmartEraseTemplateSet = SmartEraseTemplateSet
|
|
23694
|
+
|
|
23695
|
+
@property
|
|
23696
|
+
def RequestId(self):
|
|
23697
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
23698
|
+
:rtype: str
|
|
23699
|
+
"""
|
|
23700
|
+
return self._RequestId
|
|
23701
|
+
|
|
23702
|
+
@RequestId.setter
|
|
23703
|
+
def RequestId(self, RequestId):
|
|
23704
|
+
self._RequestId = RequestId
|
|
23705
|
+
|
|
23706
|
+
|
|
23707
|
+
def _deserialize(self, params):
|
|
23708
|
+
self._TotalCount = params.get("TotalCount")
|
|
23709
|
+
if params.get("SmartEraseTemplateSet") is not None:
|
|
23710
|
+
self._SmartEraseTemplateSet = []
|
|
23711
|
+
for item in params.get("SmartEraseTemplateSet"):
|
|
23712
|
+
obj = SmartEraseTemplateItem()
|
|
23713
|
+
obj._deserialize(item)
|
|
23714
|
+
self._SmartEraseTemplateSet.append(obj)
|
|
23715
|
+
self._RequestId = params.get("RequestId")
|
|
23716
|
+
|
|
23717
|
+
|
|
23325
23718
|
class DescribeSmartSubtitleTemplatesRequest(AbstractModel):
|
|
23326
23719
|
r"""DescribeSmartSubtitleTemplates request structure.
|
|
23327
23720
|
|
|
@@ -38418,60 +38811,226 @@ Note: You need to pass in the full list of subtasks even if you want to change o
|
|
|
38418
38811
|
self._OutputStorage = OutputStorage
|
|
38419
38812
|
|
|
38420
38813
|
@property
|
|
38421
|
-
def OutputDir(self):
|
|
38422
|
-
r"""The directory to save the media processing output file, which must start and end with `/`.
|
|
38423
|
-
Note: If this parameter is left empty, the current `OutputDir` value will be invalidated.
|
|
38424
|
-
:rtype: str
|
|
38814
|
+
def OutputDir(self):
|
|
38815
|
+
r"""The directory to save the media processing output file, which must start and end with `/`.
|
|
38816
|
+
Note: If this parameter is left empty, the current `OutputDir` value will be invalidated.
|
|
38817
|
+
:rtype: str
|
|
38818
|
+
"""
|
|
38819
|
+
return self._OutputDir
|
|
38820
|
+
|
|
38821
|
+
@OutputDir.setter
|
|
38822
|
+
def OutputDir(self, OutputDir):
|
|
38823
|
+
self._OutputDir = OutputDir
|
|
38824
|
+
|
|
38825
|
+
@property
|
|
38826
|
+
def TaskNotifyConfig(self):
|
|
38827
|
+
r"""The notification configuration.
|
|
38828
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskNotifyConfig`
|
|
38829
|
+
"""
|
|
38830
|
+
return self._TaskNotifyConfig
|
|
38831
|
+
|
|
38832
|
+
@TaskNotifyConfig.setter
|
|
38833
|
+
def TaskNotifyConfig(self, TaskNotifyConfig):
|
|
38834
|
+
self._TaskNotifyConfig = TaskNotifyConfig
|
|
38835
|
+
|
|
38836
|
+
@property
|
|
38837
|
+
def ResourceId(self):
|
|
38838
|
+
r"""Resource ID. Ensure the corresponding resource is in the enabled state.
|
|
38839
|
+
:rtype: str
|
|
38840
|
+
"""
|
|
38841
|
+
return self._ResourceId
|
|
38842
|
+
|
|
38843
|
+
@ResourceId.setter
|
|
38844
|
+
def ResourceId(self, ResourceId):
|
|
38845
|
+
self._ResourceId = ResourceId
|
|
38846
|
+
|
|
38847
|
+
|
|
38848
|
+
def _deserialize(self, params):
|
|
38849
|
+
self._ScheduleId = params.get("ScheduleId")
|
|
38850
|
+
self._ScheduleName = params.get("ScheduleName")
|
|
38851
|
+
if params.get("Trigger") is not None:
|
|
38852
|
+
self._Trigger = WorkflowTrigger()
|
|
38853
|
+
self._Trigger._deserialize(params.get("Trigger"))
|
|
38854
|
+
if params.get("Activities") is not None:
|
|
38855
|
+
self._Activities = []
|
|
38856
|
+
for item in params.get("Activities"):
|
|
38857
|
+
obj = Activity()
|
|
38858
|
+
obj._deserialize(item)
|
|
38859
|
+
self._Activities.append(obj)
|
|
38860
|
+
if params.get("OutputStorage") is not None:
|
|
38861
|
+
self._OutputStorage = TaskOutputStorage()
|
|
38862
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
38863
|
+
self._OutputDir = params.get("OutputDir")
|
|
38864
|
+
if params.get("TaskNotifyConfig") is not None:
|
|
38865
|
+
self._TaskNotifyConfig = TaskNotifyConfig()
|
|
38866
|
+
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
|
38867
|
+
self._ResourceId = params.get("ResourceId")
|
|
38868
|
+
memeber_set = set(params.keys())
|
|
38869
|
+
for name, value in vars(self).items():
|
|
38870
|
+
property_name = name[1:]
|
|
38871
|
+
if property_name in memeber_set:
|
|
38872
|
+
memeber_set.remove(property_name)
|
|
38873
|
+
if len(memeber_set) > 0:
|
|
38874
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
38875
|
+
|
|
38876
|
+
|
|
38877
|
+
|
|
38878
|
+
class ModifyScheduleResponse(AbstractModel):
|
|
38879
|
+
r"""ModifySchedule response structure.
|
|
38880
|
+
|
|
38881
|
+
"""
|
|
38882
|
+
|
|
38883
|
+
def __init__(self):
|
|
38884
|
+
r"""
|
|
38885
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
38886
|
+
:type RequestId: str
|
|
38887
|
+
"""
|
|
38888
|
+
self._RequestId = None
|
|
38889
|
+
|
|
38890
|
+
@property
|
|
38891
|
+
def RequestId(self):
|
|
38892
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
38893
|
+
:rtype: str
|
|
38894
|
+
"""
|
|
38895
|
+
return self._RequestId
|
|
38896
|
+
|
|
38897
|
+
@RequestId.setter
|
|
38898
|
+
def RequestId(self, RequestId):
|
|
38899
|
+
self._RequestId = RequestId
|
|
38900
|
+
|
|
38901
|
+
|
|
38902
|
+
def _deserialize(self, params):
|
|
38903
|
+
self._RequestId = params.get("RequestId")
|
|
38904
|
+
|
|
38905
|
+
|
|
38906
|
+
class ModifySmartEraseTemplateRequest(AbstractModel):
|
|
38907
|
+
r"""ModifySmartEraseTemplate request structure.
|
|
38908
|
+
|
|
38909
|
+
"""
|
|
38910
|
+
|
|
38911
|
+
def __init__(self):
|
|
38912
|
+
r"""
|
|
38913
|
+
:param _Definition: Unique identifier of the smart erasing template.
|
|
38914
|
+
:type Definition: int
|
|
38915
|
+
:param _Name: Length limit for the smart erasing template name: 64 characters.
|
|
38916
|
+
:type Name: str
|
|
38917
|
+
:param _Comment: Length limit for the description information of the smart erasing template: 256 characters.
|
|
38918
|
+
:type Comment: str
|
|
38919
|
+
:param _EraseType: Erasing type.
|
|
38920
|
+
-subtitle: subtitle removal.
|
|
38921
|
+
-watermark: watermark removal.
|
|
38922
|
+
-privacy: privacy protection.
|
|
38923
|
+
:type EraseType: str
|
|
38924
|
+
:param _EraseSubtitleConfig: Subtitle erasing configuration. It takes effect when the value of EraseType is set to subtitle, or when the value of EraseType is left unspecified but the original EraseType value of the modified template is subtitle.
|
|
38925
|
+
:type EraseSubtitleConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
38926
|
+
:param _EraseWatermarkConfig: Watermark erasing configuration. The value of EraseType can be set to watermark or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to watermark.
|
|
38927
|
+
:type EraseWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
38928
|
+
:param _ErasePrivacyConfig: Privacy protection configuration. The value of EraseType can be set to privacy or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to privacy.
|
|
38929
|
+
:type ErasePrivacyConfig: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
38930
|
+
"""
|
|
38931
|
+
self._Definition = None
|
|
38932
|
+
self._Name = None
|
|
38933
|
+
self._Comment = None
|
|
38934
|
+
self._EraseType = None
|
|
38935
|
+
self._EraseSubtitleConfig = None
|
|
38936
|
+
self._EraseWatermarkConfig = None
|
|
38937
|
+
self._ErasePrivacyConfig = None
|
|
38938
|
+
|
|
38939
|
+
@property
|
|
38940
|
+
def Definition(self):
|
|
38941
|
+
r"""Unique identifier of the smart erasing template.
|
|
38942
|
+
:rtype: int
|
|
38943
|
+
"""
|
|
38944
|
+
return self._Definition
|
|
38945
|
+
|
|
38946
|
+
@Definition.setter
|
|
38947
|
+
def Definition(self, Definition):
|
|
38948
|
+
self._Definition = Definition
|
|
38949
|
+
|
|
38950
|
+
@property
|
|
38951
|
+
def Name(self):
|
|
38952
|
+
r"""Length limit for the smart erasing template name: 64 characters.
|
|
38953
|
+
:rtype: str
|
|
38954
|
+
"""
|
|
38955
|
+
return self._Name
|
|
38956
|
+
|
|
38957
|
+
@Name.setter
|
|
38958
|
+
def Name(self, Name):
|
|
38959
|
+
self._Name = Name
|
|
38960
|
+
|
|
38961
|
+
@property
|
|
38962
|
+
def Comment(self):
|
|
38963
|
+
r"""Length limit for the description information of the smart erasing template: 256 characters.
|
|
38964
|
+
:rtype: str
|
|
38965
|
+
"""
|
|
38966
|
+
return self._Comment
|
|
38967
|
+
|
|
38968
|
+
@Comment.setter
|
|
38969
|
+
def Comment(self, Comment):
|
|
38970
|
+
self._Comment = Comment
|
|
38971
|
+
|
|
38972
|
+
@property
|
|
38973
|
+
def EraseType(self):
|
|
38974
|
+
r"""Erasing type.
|
|
38975
|
+
-subtitle: subtitle removal.
|
|
38976
|
+
-watermark: watermark removal.
|
|
38977
|
+
-privacy: privacy protection.
|
|
38978
|
+
:rtype: str
|
|
38979
|
+
"""
|
|
38980
|
+
return self._EraseType
|
|
38981
|
+
|
|
38982
|
+
@EraseType.setter
|
|
38983
|
+
def EraseType(self, EraseType):
|
|
38984
|
+
self._EraseType = EraseType
|
|
38985
|
+
|
|
38986
|
+
@property
|
|
38987
|
+
def EraseSubtitleConfig(self):
|
|
38988
|
+
r"""Subtitle erasing configuration. It takes effect when the value of EraseType is set to subtitle, or when the value of EraseType is left unspecified but the original EraseType value of the modified template is subtitle.
|
|
38989
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
38425
38990
|
"""
|
|
38426
|
-
return self.
|
|
38991
|
+
return self._EraseSubtitleConfig
|
|
38427
38992
|
|
|
38428
|
-
@
|
|
38429
|
-
def
|
|
38430
|
-
self.
|
|
38993
|
+
@EraseSubtitleConfig.setter
|
|
38994
|
+
def EraseSubtitleConfig(self, EraseSubtitleConfig):
|
|
38995
|
+
self._EraseSubtitleConfig = EraseSubtitleConfig
|
|
38431
38996
|
|
|
38432
38997
|
@property
|
|
38433
|
-
def
|
|
38434
|
-
r"""
|
|
38435
|
-
:rtype: :class:`tencentcloud.mps.v20190612.models.
|
|
38998
|
+
def EraseWatermarkConfig(self):
|
|
38999
|
+
r"""Watermark erasing configuration. The value of EraseType can be set to watermark or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to watermark.
|
|
39000
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
38436
39001
|
"""
|
|
38437
|
-
return self.
|
|
39002
|
+
return self._EraseWatermarkConfig
|
|
38438
39003
|
|
|
38439
|
-
@
|
|
38440
|
-
def
|
|
38441
|
-
self.
|
|
39004
|
+
@EraseWatermarkConfig.setter
|
|
39005
|
+
def EraseWatermarkConfig(self, EraseWatermarkConfig):
|
|
39006
|
+
self._EraseWatermarkConfig = EraseWatermarkConfig
|
|
38442
39007
|
|
|
38443
39008
|
@property
|
|
38444
|
-
def
|
|
38445
|
-
r"""
|
|
38446
|
-
:rtype:
|
|
39009
|
+
def ErasePrivacyConfig(self):
|
|
39010
|
+
r"""Privacy protection configuration. The value of EraseType can be set to privacy or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to privacy.
|
|
39011
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
38447
39012
|
"""
|
|
38448
|
-
return self.
|
|
39013
|
+
return self._ErasePrivacyConfig
|
|
38449
39014
|
|
|
38450
|
-
@
|
|
38451
|
-
def
|
|
38452
|
-
self.
|
|
39015
|
+
@ErasePrivacyConfig.setter
|
|
39016
|
+
def ErasePrivacyConfig(self, ErasePrivacyConfig):
|
|
39017
|
+
self._ErasePrivacyConfig = ErasePrivacyConfig
|
|
38453
39018
|
|
|
38454
39019
|
|
|
38455
39020
|
def _deserialize(self, params):
|
|
38456
|
-
self.
|
|
38457
|
-
self.
|
|
38458
|
-
|
|
38459
|
-
|
|
38460
|
-
|
|
38461
|
-
|
|
38462
|
-
self.
|
|
38463
|
-
|
|
38464
|
-
|
|
38465
|
-
|
|
38466
|
-
|
|
38467
|
-
|
|
38468
|
-
self.
|
|
38469
|
-
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
38470
|
-
self._OutputDir = params.get("OutputDir")
|
|
38471
|
-
if params.get("TaskNotifyConfig") is not None:
|
|
38472
|
-
self._TaskNotifyConfig = TaskNotifyConfig()
|
|
38473
|
-
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
|
38474
|
-
self._ResourceId = params.get("ResourceId")
|
|
39021
|
+
self._Definition = params.get("Definition")
|
|
39022
|
+
self._Name = params.get("Name")
|
|
39023
|
+
self._Comment = params.get("Comment")
|
|
39024
|
+
self._EraseType = params.get("EraseType")
|
|
39025
|
+
if params.get("EraseSubtitleConfig") is not None:
|
|
39026
|
+
self._EraseSubtitleConfig = SmartEraseSubtitleConfig()
|
|
39027
|
+
self._EraseSubtitleConfig._deserialize(params.get("EraseSubtitleConfig"))
|
|
39028
|
+
if params.get("EraseWatermarkConfig") is not None:
|
|
39029
|
+
self._EraseWatermarkConfig = SmartEraseWatermarkConfig()
|
|
39030
|
+
self._EraseWatermarkConfig._deserialize(params.get("EraseWatermarkConfig"))
|
|
39031
|
+
if params.get("ErasePrivacyConfig") is not None:
|
|
39032
|
+
self._ErasePrivacyConfig = SmartErasePrivacyConfig()
|
|
39033
|
+
self._ErasePrivacyConfig._deserialize(params.get("ErasePrivacyConfig"))
|
|
38475
39034
|
memeber_set = set(params.keys())
|
|
38476
39035
|
for name, value in vars(self).items():
|
|
38477
39036
|
property_name = name[1:]
|
|
@@ -38482,8 +39041,8 @@ Note: If this parameter is left empty, the current `OutputDir` value will be inv
|
|
|
38482
39041
|
|
|
38483
39042
|
|
|
38484
39043
|
|
|
38485
|
-
class
|
|
38486
|
-
r"""
|
|
39044
|
+
class ModifySmartEraseTemplateResponse(AbstractModel):
|
|
39045
|
+
r"""ModifySmartEraseTemplate response structure.
|
|
38487
39046
|
|
|
38488
39047
|
"""
|
|
38489
39048
|
|
|
@@ -47878,6 +48437,214 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
47878
48437
|
|
|
47879
48438
|
|
|
47880
48439
|
|
|
48440
|
+
class SmartEraseTemplateItem(AbstractModel):
|
|
48441
|
+
r"""Smart erasing template details.
|
|
48442
|
+
|
|
48443
|
+
"""
|
|
48444
|
+
|
|
48445
|
+
def __init__(self):
|
|
48446
|
+
r"""
|
|
48447
|
+
:param _Definition: Unique identifier of the smart erasing template.
|
|
48448
|
+
:type Definition: int
|
|
48449
|
+
:param _Name: Smart erasing template name.
|
|
48450
|
+
:type Name: str
|
|
48451
|
+
:param _Comment: Smart erasing template description information.
|
|
48452
|
+
:type Comment: str
|
|
48453
|
+
:param _Type: Template type. Valid values:
|
|
48454
|
+
* Preset: system preset template.
|
|
48455
|
+
* Custom: user-defined template.
|
|
48456
|
+
:type Type: str
|
|
48457
|
+
:param _EraseType: Erasing type.
|
|
48458
|
+
-subtitle: subtitle removal.
|
|
48459
|
+
-watermark: watermark removal.
|
|
48460
|
+
-privacy: privacy protection.
|
|
48461
|
+
:type EraseType: str
|
|
48462
|
+
:param _EraseSubtitleConfig: Subtitle erasing configuration.
|
|
48463
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
48464
|
+
:type EraseSubtitleConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
48465
|
+
:param _EraseWatermarkConfig: Watermark erasing configuration.
|
|
48466
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
48467
|
+
:type EraseWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
48468
|
+
:param _ErasePrivacyConfig: Privacy protection configuration.
|
|
48469
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
48470
|
+
:type ErasePrivacyConfig: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
48471
|
+
:param _CreateTime: Template creation time in [ISO datetime format](https://www.tencentcloud.comom/document/product/862/37710?from_cn_redirect=1#52).
|
|
48472
|
+
:type CreateTime: str
|
|
48473
|
+
:param _UpdateTime: Last modification time of the template in [ISO datetime format](https://www.tencentcloud.comom/document/product/862/37710?from_cn_redirect=1#52).
|
|
48474
|
+
:type UpdateTime: str
|
|
48475
|
+
:param _AliasName: Alias of the preset smart erasing template.
|
|
48476
|
+
:type AliasName: str
|
|
48477
|
+
"""
|
|
48478
|
+
self._Definition = None
|
|
48479
|
+
self._Name = None
|
|
48480
|
+
self._Comment = None
|
|
48481
|
+
self._Type = None
|
|
48482
|
+
self._EraseType = None
|
|
48483
|
+
self._EraseSubtitleConfig = None
|
|
48484
|
+
self._EraseWatermarkConfig = None
|
|
48485
|
+
self._ErasePrivacyConfig = None
|
|
48486
|
+
self._CreateTime = None
|
|
48487
|
+
self._UpdateTime = None
|
|
48488
|
+
self._AliasName = None
|
|
48489
|
+
|
|
48490
|
+
@property
|
|
48491
|
+
def Definition(self):
|
|
48492
|
+
r"""Unique identifier of the smart erasing template.
|
|
48493
|
+
:rtype: int
|
|
48494
|
+
"""
|
|
48495
|
+
return self._Definition
|
|
48496
|
+
|
|
48497
|
+
@Definition.setter
|
|
48498
|
+
def Definition(self, Definition):
|
|
48499
|
+
self._Definition = Definition
|
|
48500
|
+
|
|
48501
|
+
@property
|
|
48502
|
+
def Name(self):
|
|
48503
|
+
r"""Smart erasing template name.
|
|
48504
|
+
:rtype: str
|
|
48505
|
+
"""
|
|
48506
|
+
return self._Name
|
|
48507
|
+
|
|
48508
|
+
@Name.setter
|
|
48509
|
+
def Name(self, Name):
|
|
48510
|
+
self._Name = Name
|
|
48511
|
+
|
|
48512
|
+
@property
|
|
48513
|
+
def Comment(self):
|
|
48514
|
+
r"""Smart erasing template description information.
|
|
48515
|
+
:rtype: str
|
|
48516
|
+
"""
|
|
48517
|
+
return self._Comment
|
|
48518
|
+
|
|
48519
|
+
@Comment.setter
|
|
48520
|
+
def Comment(self, Comment):
|
|
48521
|
+
self._Comment = Comment
|
|
48522
|
+
|
|
48523
|
+
@property
|
|
48524
|
+
def Type(self):
|
|
48525
|
+
r"""Template type. Valid values:
|
|
48526
|
+
* Preset: system preset template.
|
|
48527
|
+
* Custom: user-defined template.
|
|
48528
|
+
:rtype: str
|
|
48529
|
+
"""
|
|
48530
|
+
return self._Type
|
|
48531
|
+
|
|
48532
|
+
@Type.setter
|
|
48533
|
+
def Type(self, Type):
|
|
48534
|
+
self._Type = Type
|
|
48535
|
+
|
|
48536
|
+
@property
|
|
48537
|
+
def EraseType(self):
|
|
48538
|
+
r"""Erasing type.
|
|
48539
|
+
-subtitle: subtitle removal.
|
|
48540
|
+
-watermark: watermark removal.
|
|
48541
|
+
-privacy: privacy protection.
|
|
48542
|
+
:rtype: str
|
|
48543
|
+
"""
|
|
48544
|
+
return self._EraseType
|
|
48545
|
+
|
|
48546
|
+
@EraseType.setter
|
|
48547
|
+
def EraseType(self, EraseType):
|
|
48548
|
+
self._EraseType = EraseType
|
|
48549
|
+
|
|
48550
|
+
@property
|
|
48551
|
+
def EraseSubtitleConfig(self):
|
|
48552
|
+
r"""Subtitle erasing configuration.
|
|
48553
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
48554
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
48555
|
+
"""
|
|
48556
|
+
return self._EraseSubtitleConfig
|
|
48557
|
+
|
|
48558
|
+
@EraseSubtitleConfig.setter
|
|
48559
|
+
def EraseSubtitleConfig(self, EraseSubtitleConfig):
|
|
48560
|
+
self._EraseSubtitleConfig = EraseSubtitleConfig
|
|
48561
|
+
|
|
48562
|
+
@property
|
|
48563
|
+
def EraseWatermarkConfig(self):
|
|
48564
|
+
r"""Watermark erasing configuration.
|
|
48565
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
48566
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
48567
|
+
"""
|
|
48568
|
+
return self._EraseWatermarkConfig
|
|
48569
|
+
|
|
48570
|
+
@EraseWatermarkConfig.setter
|
|
48571
|
+
def EraseWatermarkConfig(self, EraseWatermarkConfig):
|
|
48572
|
+
self._EraseWatermarkConfig = EraseWatermarkConfig
|
|
48573
|
+
|
|
48574
|
+
@property
|
|
48575
|
+
def ErasePrivacyConfig(self):
|
|
48576
|
+
r"""Privacy protection configuration.
|
|
48577
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
48578
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
48579
|
+
"""
|
|
48580
|
+
return self._ErasePrivacyConfig
|
|
48581
|
+
|
|
48582
|
+
@ErasePrivacyConfig.setter
|
|
48583
|
+
def ErasePrivacyConfig(self, ErasePrivacyConfig):
|
|
48584
|
+
self._ErasePrivacyConfig = ErasePrivacyConfig
|
|
48585
|
+
|
|
48586
|
+
@property
|
|
48587
|
+
def CreateTime(self):
|
|
48588
|
+
r"""Template creation time in [ISO datetime format](https://www.tencentcloud.comom/document/product/862/37710?from_cn_redirect=1#52).
|
|
48589
|
+
:rtype: str
|
|
48590
|
+
"""
|
|
48591
|
+
return self._CreateTime
|
|
48592
|
+
|
|
48593
|
+
@CreateTime.setter
|
|
48594
|
+
def CreateTime(self, CreateTime):
|
|
48595
|
+
self._CreateTime = CreateTime
|
|
48596
|
+
|
|
48597
|
+
@property
|
|
48598
|
+
def UpdateTime(self):
|
|
48599
|
+
r"""Last modification time of the template in [ISO datetime format](https://www.tencentcloud.comom/document/product/862/37710?from_cn_redirect=1#52).
|
|
48600
|
+
:rtype: str
|
|
48601
|
+
"""
|
|
48602
|
+
return self._UpdateTime
|
|
48603
|
+
|
|
48604
|
+
@UpdateTime.setter
|
|
48605
|
+
def UpdateTime(self, UpdateTime):
|
|
48606
|
+
self._UpdateTime = UpdateTime
|
|
48607
|
+
|
|
48608
|
+
@property
|
|
48609
|
+
def AliasName(self):
|
|
48610
|
+
r"""Alias of the preset smart erasing template.
|
|
48611
|
+
:rtype: str
|
|
48612
|
+
"""
|
|
48613
|
+
return self._AliasName
|
|
48614
|
+
|
|
48615
|
+
@AliasName.setter
|
|
48616
|
+
def AliasName(self, AliasName):
|
|
48617
|
+
self._AliasName = AliasName
|
|
48618
|
+
|
|
48619
|
+
|
|
48620
|
+
def _deserialize(self, params):
|
|
48621
|
+
self._Definition = params.get("Definition")
|
|
48622
|
+
self._Name = params.get("Name")
|
|
48623
|
+
self._Comment = params.get("Comment")
|
|
48624
|
+
self._Type = params.get("Type")
|
|
48625
|
+
self._EraseType = params.get("EraseType")
|
|
48626
|
+
if params.get("EraseSubtitleConfig") is not None:
|
|
48627
|
+
self._EraseSubtitleConfig = SmartEraseSubtitleConfig()
|
|
48628
|
+
self._EraseSubtitleConfig._deserialize(params.get("EraseSubtitleConfig"))
|
|
48629
|
+
if params.get("EraseWatermarkConfig") is not None:
|
|
48630
|
+
self._EraseWatermarkConfig = SmartEraseWatermarkConfig()
|
|
48631
|
+
self._EraseWatermarkConfig._deserialize(params.get("EraseWatermarkConfig"))
|
|
48632
|
+
if params.get("ErasePrivacyConfig") is not None:
|
|
48633
|
+
self._ErasePrivacyConfig = SmartErasePrivacyConfig()
|
|
48634
|
+
self._ErasePrivacyConfig._deserialize(params.get("ErasePrivacyConfig"))
|
|
48635
|
+
self._CreateTime = params.get("CreateTime")
|
|
48636
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
48637
|
+
self._AliasName = params.get("AliasName")
|
|
48638
|
+
memeber_set = set(params.keys())
|
|
48639
|
+
for name, value in vars(self).items():
|
|
48640
|
+
property_name = name[1:]
|
|
48641
|
+
if property_name in memeber_set:
|
|
48642
|
+
memeber_set.remove(property_name)
|
|
48643
|
+
if len(memeber_set) > 0:
|
|
48644
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
48645
|
+
|
|
48646
|
+
|
|
48647
|
+
|
|
47881
48648
|
class SmartEraseWatermarkConfig(AbstractModel):
|
|
47882
48649
|
r"""smart erasure template watermark configuration.
|
|
47883
48650
|
|
|
@@ -342,6 +342,29 @@ class MpsClient(AbstractClient):
|
|
|
342
342
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
343
343
|
|
|
344
344
|
|
|
345
|
+
def CreateSmartEraseTemplate(self, request):
|
|
346
|
+
r"""This API is used to create a custom smart erasing template.
|
|
347
|
+
|
|
348
|
+
:param request: Request instance for CreateSmartEraseTemplate.
|
|
349
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.CreateSmartEraseTemplateRequest`
|
|
350
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CreateSmartEraseTemplateResponse`
|
|
351
|
+
|
|
352
|
+
"""
|
|
353
|
+
try:
|
|
354
|
+
params = request._serialize()
|
|
355
|
+
headers = request.headers
|
|
356
|
+
body = self.call("CreateSmartEraseTemplate", params, headers=headers)
|
|
357
|
+
response = json.loads(body)
|
|
358
|
+
model = models.CreateSmartEraseTemplateResponse()
|
|
359
|
+
model._deserialize(response["Response"])
|
|
360
|
+
return model
|
|
361
|
+
except Exception as e:
|
|
362
|
+
if isinstance(e, TencentCloudSDKException):
|
|
363
|
+
raise
|
|
364
|
+
else:
|
|
365
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
366
|
+
|
|
367
|
+
|
|
345
368
|
def CreateSmartSubtitleTemplate(self, request):
|
|
346
369
|
r"""This API is used to create a custom smart subtitle template.
|
|
347
370
|
|
|
@@ -769,6 +792,29 @@ class MpsClient(AbstractClient):
|
|
|
769
792
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
770
793
|
|
|
771
794
|
|
|
795
|
+
def DeleteSmartEraseTemplate(self, request):
|
|
796
|
+
r"""This API is used to delete a user-defined smart erasing template.
|
|
797
|
+
|
|
798
|
+
:param request: Request instance for DeleteSmartEraseTemplate.
|
|
799
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.DeleteSmartEraseTemplateRequest`
|
|
800
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.DeleteSmartEraseTemplateResponse`
|
|
801
|
+
|
|
802
|
+
"""
|
|
803
|
+
try:
|
|
804
|
+
params = request._serialize()
|
|
805
|
+
headers = request.headers
|
|
806
|
+
body = self.call("DeleteSmartEraseTemplate", params, headers=headers)
|
|
807
|
+
response = json.loads(body)
|
|
808
|
+
model = models.DeleteSmartEraseTemplateResponse()
|
|
809
|
+
model._deserialize(response["Response"])
|
|
810
|
+
return model
|
|
811
|
+
except Exception as e:
|
|
812
|
+
if isinstance(e, TencentCloudSDKException):
|
|
813
|
+
raise
|
|
814
|
+
else:
|
|
815
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
816
|
+
|
|
817
|
+
|
|
772
818
|
def DeleteSmartSubtitleTemplate(self, request):
|
|
773
819
|
r"""This API is used to delete a user-defined smart subtitle template.
|
|
774
820
|
|
|
@@ -1275,6 +1321,29 @@ class MpsClient(AbstractClient):
|
|
|
1275
1321
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1276
1322
|
|
|
1277
1323
|
|
|
1324
|
+
def DescribeSmartEraseTemplates(self, request):
|
|
1325
|
+
r"""This API is used to obtain the list of smart erasing template details based on the unique identifier of the template. The returned result includes all matching user-defined smart erasing templates and system preset smart erasing templates.
|
|
1326
|
+
|
|
1327
|
+
:param request: Request instance for DescribeSmartEraseTemplates.
|
|
1328
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.DescribeSmartEraseTemplatesRequest`
|
|
1329
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.DescribeSmartEraseTemplatesResponse`
|
|
1330
|
+
|
|
1331
|
+
"""
|
|
1332
|
+
try:
|
|
1333
|
+
params = request._serialize()
|
|
1334
|
+
headers = request.headers
|
|
1335
|
+
body = self.call("DescribeSmartEraseTemplates", params, headers=headers)
|
|
1336
|
+
response = json.loads(body)
|
|
1337
|
+
model = models.DescribeSmartEraseTemplatesResponse()
|
|
1338
|
+
model._deserialize(response["Response"])
|
|
1339
|
+
return model
|
|
1340
|
+
except Exception as e:
|
|
1341
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1342
|
+
raise
|
|
1343
|
+
else:
|
|
1344
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1345
|
+
|
|
1346
|
+
|
|
1278
1347
|
def DescribeSmartSubtitleTemplates(self, request):
|
|
1279
1348
|
r"""This API is used to obtain the list of smart subtitle templates based on template unique identifier. The returned result includes all matching user-defined smart subtitle templates and system preset smart subtitle templates.
|
|
1280
1349
|
|
|
@@ -1935,6 +2004,29 @@ class MpsClient(AbstractClient):
|
|
|
1935
2004
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1936
2005
|
|
|
1937
2006
|
|
|
2007
|
+
def ModifySmartEraseTemplate(self, request):
|
|
2008
|
+
r"""This API is used to modify a user-defined smart erasing template.
|
|
2009
|
+
|
|
2010
|
+
:param request: Request instance for ModifySmartEraseTemplate.
|
|
2011
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.ModifySmartEraseTemplateRequest`
|
|
2012
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ModifySmartEraseTemplateResponse`
|
|
2013
|
+
|
|
2014
|
+
"""
|
|
2015
|
+
try:
|
|
2016
|
+
params = request._serialize()
|
|
2017
|
+
headers = request.headers
|
|
2018
|
+
body = self.call("ModifySmartEraseTemplate", params, headers=headers)
|
|
2019
|
+
response = json.loads(body)
|
|
2020
|
+
model = models.ModifySmartEraseTemplateResponse()
|
|
2021
|
+
model._deserialize(response["Response"])
|
|
2022
|
+
return model
|
|
2023
|
+
except Exception as e:
|
|
2024
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2025
|
+
raise
|
|
2026
|
+
else:
|
|
2027
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2028
|
+
|
|
2029
|
+
|
|
1938
2030
|
def ModifySmartSubtitleTemplate(self, request):
|
|
1939
2031
|
r"""This API is used to modify a user-defined smart subtitle template.
|
|
1940
2032
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=ZGJ1x14_aDxwiP2tG1EOTc2j0HEpPHXOTlWThuWTQQo,630
|
|
2
2
|
tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/advisor/v20200721/advisor_client.py,sha256=PI6LX0PouoGb8e_ydQ9rATqY795jQh7JPK2COE_oH-Q,2899
|
|
@@ -427,9 +427,9 @@ tencentcloud/monitor/v20180724/models.py,sha256=DN-QVzDnOXi34KnHvDWfPinjeW0jDMg_
|
|
|
427
427
|
tencentcloud/monitor/v20180724/monitor_client.py,sha256=1fL7_-XV-jpyxmH5ibvE--EpMU0ly3YrsSCoHmnXovc,143043
|
|
428
428
|
tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
429
429
|
tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
430
|
-
tencentcloud/mps/v20190612/errorcodes.py,sha256=
|
|
431
|
-
tencentcloud/mps/v20190612/models.py,sha256=
|
|
432
|
-
tencentcloud/mps/v20190612/mps_client.py,sha256=
|
|
430
|
+
tencentcloud/mps/v20190612/errorcodes.py,sha256=NhcsYnJvqcMkyN-9kMRGklKluz94Y61iNLyqKEMTqJc,17455
|
|
431
|
+
tencentcloud/mps/v20190612/models.py,sha256=DxXha4Vj3oa-G4jGpaTjAoG2QUqdiPCiBrAWCg_uLuw,2109283
|
|
432
|
+
tencentcloud/mps/v20190612/mps_client.py,sha256=ApOcEiSn6pNpfFjt_2DKU6h4Ep9bgwJYUbUIaoLURdA,101513
|
|
433
433
|
tencentcloud/msp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
434
434
|
tencentcloud/msp/v20180319/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
435
435
|
tencentcloud/msp/v20180319/errorcodes.py,sha256=MNj5ZKgjXM_F5_LD-sYFjb5pPZy8_q---2PdbMWeoZA,779
|
|
@@ -698,7 +698,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
698
698
|
tencentcloud/yunjing/v20180228/errorcodes.py,sha256=g2ac3Fxgbof23WWhGj9VxvuLJZNshnB0Mg7jWUzTh24,3168
|
|
699
699
|
tencentcloud/yunjing/v20180228/models.py,sha256=nivJxxJYNvW-I_WWuoZj5RJaexdeSctX04e7osSjSUo,331388
|
|
700
700
|
tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=XYRY2x9Bs-06YaFx6swLlxuqhNRuykLZuIte6bc8T2E,67433
|
|
701
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
702
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
703
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
704
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
701
|
+
tencentcloud_sdk_python_intl_en-3.0.1286.dist-info/METADATA,sha256=anRo2-O32X86Zgl0SuedRfo1lDOCkmqnYb_3nIFOHFQ,1628
|
|
702
|
+
tencentcloud_sdk_python_intl_en-3.0.1286.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
703
|
+
tencentcloud_sdk_python_intl_en-3.0.1286.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
704
|
+
tencentcloud_sdk_python_intl_en-3.0.1286.dist-info/RECORD,,
|
|
File without changes
|