tencentcloud-sdk-python-mps 3.1.114__tar.gz → 3.1.118__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/models.py +126 -0
  6. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/mps_client.py +23 -0
  7. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/mps_client_async.py +18 -0
  8. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_mps-3.1.118/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_mps-3.1.114/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/README.rst +0 -0
  12. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/__init__.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.1.114 → tencentcloud_sdk_python_mps-3.1.118}/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.114
3
+ Version: 3.1.118
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.114
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.118
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.114,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.118,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Mps SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.114'
17
+ __version__ = '3.1.118'
@@ -257,6 +257,9 @@ INVALIDPARAMETERVALUE_DISABLEHIGHERVIDEORESOLUTION = 'InvalidParameterValue.Disa
257
257
  # 水印文本重复
258
258
  INVALIDPARAMETERVALUE_DUPLICATEDTEXTCONTENT = 'InvalidParameterValue.DuplicatedTextContent'
259
259
 
260
+ # Duration 参数过大
261
+ INVALIDPARAMETERVALUE_DURATIONTOOLONG = 'InvalidParameterValue.DurationTooLong'
262
+
260
263
  # 模板开启的检测项为空。
261
264
  INVALIDPARAMETERVALUE_EMPTYDETECTITEM = 'InvalidParameterValue.EmptyDetectItem'
262
265
 
@@ -43784,6 +43784,132 @@ class DetectVideoSubtitleAreaResponse(AbstractModel):
43784
43784
  self._RequestId = params.get("RequestId")
43785
43785
 
43786
43786
 
43787
+ class DetectVideoWatermarkRequest(AbstractModel):
43788
+ r"""DetectVideoWatermark请求参数结构体
43789
+
43790
+ """
43791
+
43792
+ def __init__(self):
43793
+ r"""
43794
+ :param _InputInfo: <p>输入信息,当前仅支持 URL、COS</p>
43795
+ :type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
43796
+ :param _UserExtPara: <p>扩展参数,默认不填</p>
43797
+ :type UserExtPara: str
43798
+ """
43799
+ self._InputInfo = None
43800
+ self._UserExtPara = None
43801
+
43802
+ @property
43803
+ def InputInfo(self):
43804
+ r"""<p>输入信息,当前仅支持 URL、COS</p>
43805
+ :rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
43806
+ """
43807
+ return self._InputInfo
43808
+
43809
+ @InputInfo.setter
43810
+ def InputInfo(self, InputInfo):
43811
+ self._InputInfo = InputInfo
43812
+
43813
+ @property
43814
+ def UserExtPara(self):
43815
+ r"""<p>扩展参数,默认不填</p>
43816
+ :rtype: str
43817
+ """
43818
+ return self._UserExtPara
43819
+
43820
+ @UserExtPara.setter
43821
+ def UserExtPara(self, UserExtPara):
43822
+ self._UserExtPara = UserExtPara
43823
+
43824
+
43825
+ def _deserialize(self, params):
43826
+ if params.get("InputInfo") is not None:
43827
+ self._InputInfo = MediaInputInfo()
43828
+ self._InputInfo._deserialize(params.get("InputInfo"))
43829
+ self._UserExtPara = params.get("UserExtPara")
43830
+ memeber_set = set(params.keys())
43831
+ for name, value in vars(self).items():
43832
+ property_name = name[1:]
43833
+ if property_name in memeber_set:
43834
+ memeber_set.remove(property_name)
43835
+ if len(memeber_set) > 0:
43836
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
43837
+
43838
+
43839
+
43840
+ class DetectVideoWatermarkResponse(AbstractModel):
43841
+ r"""DetectVideoWatermark返回参数结构体
43842
+
43843
+ """
43844
+
43845
+ def __init__(self):
43846
+ r"""
43847
+ :param _Confidence: <p>是否存在水印的置信度</p><p>取值范围:[0, 100]</p>
43848
+ :type Confidence: float
43849
+ :param _HasWatermark: <p>视频中是否存在水印</p>
43850
+ :type HasWatermark: bool
43851
+ :param _Description: <p>关于水印的一些描述性说明</p>
43852
+ :type Description: str
43853
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
43854
+ :type RequestId: str
43855
+ """
43856
+ self._Confidence = None
43857
+ self._HasWatermark = None
43858
+ self._Description = None
43859
+ self._RequestId = None
43860
+
43861
+ @property
43862
+ def Confidence(self):
43863
+ r"""<p>是否存在水印的置信度</p><p>取值范围:[0, 100]</p>
43864
+ :rtype: float
43865
+ """
43866
+ return self._Confidence
43867
+
43868
+ @Confidence.setter
43869
+ def Confidence(self, Confidence):
43870
+ self._Confidence = Confidence
43871
+
43872
+ @property
43873
+ def HasWatermark(self):
43874
+ r"""<p>视频中是否存在水印</p>
43875
+ :rtype: bool
43876
+ """
43877
+ return self._HasWatermark
43878
+
43879
+ @HasWatermark.setter
43880
+ def HasWatermark(self, HasWatermark):
43881
+ self._HasWatermark = HasWatermark
43882
+
43883
+ @property
43884
+ def Description(self):
43885
+ r"""<p>关于水印的一些描述性说明</p>
43886
+ :rtype: str
43887
+ """
43888
+ return self._Description
43889
+
43890
+ @Description.setter
43891
+ def Description(self, Description):
43892
+ self._Description = Description
43893
+
43894
+ @property
43895
+ def RequestId(self):
43896
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
43897
+ :rtype: str
43898
+ """
43899
+ return self._RequestId
43900
+
43901
+ @RequestId.setter
43902
+ def RequestId(self, RequestId):
43903
+ self._RequestId = RequestId
43904
+
43905
+
43906
+ def _deserialize(self, params):
43907
+ self._Confidence = params.get("Confidence")
43908
+ self._HasWatermark = params.get("HasWatermark")
43909
+ self._Description = params.get("Description")
43910
+ self._RequestId = params.get("RequestId")
43911
+
43912
+
43787
43913
  class DiagnoseResult(AbstractModel):
43788
43914
  r"""诊断结果项。
43789
43915
 
@@ -3558,6 +3558,29 @@ class MpsClient(AbstractClient):
3558
3558
  raise TencentCloudSDKException(type(e).__name__, str(e))
3559
3559
 
3560
3560
 
3561
+ def DetectVideoWatermark(self, request):
3562
+ r"""快速探测视频文件是否包含水印
3563
+
3564
+ :param request: Request instance for DetectVideoWatermark.
3565
+ :type request: :class:`tencentcloud.mps.v20190612.models.DetectVideoWatermarkRequest`
3566
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DetectVideoWatermarkResponse`
3567
+
3568
+ """
3569
+ try:
3570
+ params = request._serialize()
3571
+ headers = request.headers
3572
+ body = self.call("DetectVideoWatermark", params, headers=headers)
3573
+ response = json.loads(body)
3574
+ model = models.DetectVideoWatermarkResponse()
3575
+ model._deserialize(response["Response"])
3576
+ return model
3577
+ except Exception as e:
3578
+ if isinstance(e, TencentCloudSDKException):
3579
+ raise
3580
+ else:
3581
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3582
+
3583
+
3561
3584
  def DisableSchedule(self, request):
3562
3585
  r"""禁用自动化触发编排任务。
3563
3586
 
@@ -2797,6 +2797,24 @@ class MpsClient(AbstractClient):
2797
2797
 
2798
2798
  return await self.call_and_deserialize(**kwargs)
2799
2799
 
2800
+ async def DetectVideoWatermark(
2801
+ self,
2802
+ request: models.DetectVideoWatermarkRequest,
2803
+ opts: Dict = None,
2804
+ ) -> models.DetectVideoWatermarkResponse:
2805
+ """
2806
+ 快速探测视频文件是否包含水印
2807
+ """
2808
+
2809
+ kwargs = {}
2810
+ kwargs["action"] = "DetectVideoWatermark"
2811
+ kwargs["params"] = request._serialize()
2812
+ kwargs["resp_cls"] = models.DetectVideoWatermarkResponse
2813
+ kwargs["headers"] = request.headers
2814
+ kwargs["opts"] = opts or {}
2815
+
2816
+ return await self.call_and_deserialize(**kwargs)
2817
+
2800
2818
  async def DisableSchedule(
2801
2819
  self,
2802
2820
  request: models.DisableScheduleRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.114
3
+ Version: 3.1.118
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.114
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.118
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.118
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.114