tencentcloud-sdk-python-mps 3.0.1491__tar.gz → 3.1.1__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-mps might be problematic. Click here for more details.

Files changed (17) hide show
  1. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/setup.py +2 -1
  3. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud/mps/v20190612/models.py +123 -4
  5. tencentcloud_sdk_python_mps-3.1.1/tencentcloud/mps/v20190612/mps_client_async.py +2547 -0
  6. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  7. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +1 -0
  8. tencentcloud_sdk_python_mps-3.1.1/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_mps-3.0.1491/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/README.rst +0 -0
  11. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud/mps/__init__.py +0 -0
  13. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud/mps/v20190612/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud/mps/v20190612/mps_client.py +0 -0
  16. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.0.1491 → tencentcloud_sdk_python_mps-3.1.1}/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.0.1491
3
+ Version: 3.1.1
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.0.1491
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.1
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ 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.0.1491,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.1,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Mps SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1491'
17
+ __version__ = '3.1.1'
@@ -1285,6 +1285,9 @@ class AdaptiveDynamicStreamingTaskInput(AbstractModel):
1285
1285
  :type Definition: int
1286
1286
  :param _WatermarkSet: 水印列表,支持多张图片或文字水印,最大可支持 10 张。
1287
1287
  :type WatermarkSet: list of WatermarkInput
1288
+ :param _BlindWatermark: 数字水印参数
1289
+ 注意:此字段可能返回 null,表示取不到有效值。
1290
+ :type BlindWatermark: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkInput`
1288
1291
  :param _OutputStorage: 转自适应码流后文件的目标存储,不填则继承上层的 OutputStorage 值。
1289
1292
  注意:此字段可能返回 null,表示取不到有效值。
1290
1293
  :type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
@@ -1322,6 +1325,7 @@ PureAudio:纯音频类型
1322
1325
  """
1323
1326
  self._Definition = None
1324
1327
  self._WatermarkSet = None
1328
+ self._BlindWatermark = None
1325
1329
  self._OutputStorage = None
1326
1330
  self._OutputObjectPath = None
1327
1331
  self._SubStreamObjectName = None
@@ -1355,6 +1359,18 @@ PureAudio:纯音频类型
1355
1359
  def WatermarkSet(self, WatermarkSet):
1356
1360
  self._WatermarkSet = WatermarkSet
1357
1361
 
1362
+ @property
1363
+ def BlindWatermark(self):
1364
+ r"""数字水印参数
1365
+ 注意:此字段可能返回 null,表示取不到有效值。
1366
+ :rtype: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkInput`
1367
+ """
1368
+ return self._BlindWatermark
1369
+
1370
+ @BlindWatermark.setter
1371
+ def BlindWatermark(self, BlindWatermark):
1372
+ self._BlindWatermark = BlindWatermark
1373
+
1358
1374
  @property
1359
1375
  def OutputStorage(self):
1360
1376
  r"""转自适应码流后文件的目标存储,不填则继承上层的 OutputStorage 值。
@@ -1488,6 +1504,9 @@ PureAudio:纯音频类型
1488
1504
  obj = WatermarkInput()
1489
1505
  obj._deserialize(item)
1490
1506
  self._WatermarkSet.append(obj)
1507
+ if params.get("BlindWatermark") is not None:
1508
+ self._BlindWatermark = BlindWatermarkInput()
1509
+ self._BlindWatermark._deserialize(params.get("BlindWatermark"))
1491
1510
  if params.get("OutputStorage") is not None:
1492
1511
  self._OutputStorage = TaskOutputStorage()
1493
1512
  self._OutputStorage._deserialize(params.get("OutputStorage"))
@@ -14291,6 +14310,42 @@ class BlindWatermarkEmbedInfo(AbstractModel):
14291
14310
 
14292
14311
 
14293
14312
 
14313
+ class BlindWatermarkInput(AbstractModel):
14314
+ r"""媒体处理任务中的数字水印参数类型
14315
+
14316
+ """
14317
+
14318
+ def __init__(self):
14319
+ r"""
14320
+ :param _Definition: 数字水印模板ID
14321
+ :type Definition: int
14322
+ """
14323
+ self._Definition = None
14324
+
14325
+ @property
14326
+ def Definition(self):
14327
+ r"""数字水印模板ID
14328
+ :rtype: int
14329
+ """
14330
+ return self._Definition
14331
+
14332
+ @Definition.setter
14333
+ def Definition(self, Definition):
14334
+ self._Definition = Definition
14335
+
14336
+
14337
+ def _deserialize(self, params):
14338
+ self._Definition = params.get("Definition")
14339
+ memeber_set = set(params.keys())
14340
+ for name, value in vars(self).items():
14341
+ property_name = name[1:]
14342
+ if property_name in memeber_set:
14343
+ memeber_set.remove(property_name)
14344
+ if len(memeber_set) > 0:
14345
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14346
+
14347
+
14348
+
14294
14349
  class ClassificationConfigureInfo(AbstractModel):
14295
14350
  r"""智能分类任务控制参数
14296
14351
 
@@ -39282,19 +39337,22 @@ class ImageAreaBoxInfo(AbstractModel):
39282
39337
  默认值:logo。
39283
39338
  注意:此字段可能返回 null,表示取不到有效值。
39284
39339
  :type Type: str
39285
- :param _AreaCoordSet: 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
39340
+ :param _AreaCoordSet: 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。注意:该字段最大值为4096。
39286
39341
  示例值:[101, 85, 111, 95]
39287
39342
  注意:此字段可能返回 null,表示取不到有效值。
39288
39343
  :type AreaCoordSet: list of int
39289
- :param _BoundingBox: 图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。
39344
+ :param _BoundingBox: 图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。当表示像素时,该字段最大值为4096。
39290
39345
  - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1)
39291
39346
  - [50, 50, 350, 280] : 表示像素 (数值大于等于1)
39292
39347
  注意:此字段可能返回 null,表示取不到有效值。
39293
39348
  :type BoundingBox: list of float
39349
+ :param _BoundingBoxUnitType: BoundingBox字段单位。设置为0时,按照该字段规则自动选择单位;设置为1时,单位为比例;设置为2时,单位为像素。
39350
+ :type BoundingBoxUnitType: int
39294
39351
  """
39295
39352
  self._Type = None
39296
39353
  self._AreaCoordSet = None
39297
39354
  self._BoundingBox = None
39355
+ self._BoundingBoxUnitType = None
39298
39356
 
39299
39357
  @property
39300
39358
  def Type(self):
@@ -39313,7 +39371,7 @@ class ImageAreaBoxInfo(AbstractModel):
39313
39371
 
39314
39372
  @property
39315
39373
  def AreaCoordSet(self):
39316
- r"""图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
39374
+ r"""图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。注意:该字段最大值为4096。
39317
39375
  示例值:[101, 85, 111, 95]
39318
39376
  注意:此字段可能返回 null,表示取不到有效值。
39319
39377
  :rtype: list of int
@@ -39326,7 +39384,7 @@ class ImageAreaBoxInfo(AbstractModel):
39326
39384
 
39327
39385
  @property
39328
39386
  def BoundingBox(self):
39329
- r"""图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。
39387
+ r"""图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。当表示像素时,该字段最大值为4096。
39330
39388
  - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1)
39331
39389
  - [50, 50, 350, 280] : 表示像素 (数值大于等于1)
39332
39390
  注意:此字段可能返回 null,表示取不到有效值。
@@ -39338,11 +39396,23 @@ class ImageAreaBoxInfo(AbstractModel):
39338
39396
  def BoundingBox(self, BoundingBox):
39339
39397
  self._BoundingBox = BoundingBox
39340
39398
 
39399
+ @property
39400
+ def BoundingBoxUnitType(self):
39401
+ r"""BoundingBox字段单位。设置为0时,按照该字段规则自动选择单位;设置为1时,单位为比例;设置为2时,单位为像素。
39402
+ :rtype: int
39403
+ """
39404
+ return self._BoundingBoxUnitType
39405
+
39406
+ @BoundingBoxUnitType.setter
39407
+ def BoundingBoxUnitType(self, BoundingBoxUnitType):
39408
+ self._BoundingBoxUnitType = BoundingBoxUnitType
39409
+
39341
39410
 
39342
39411
  def _deserialize(self, params):
39343
39412
  self._Type = params.get("Type")
39344
39413
  self._AreaCoordSet = params.get("AreaCoordSet")
39345
39414
  self._BoundingBox = params.get("BoundingBox")
39415
+ self._BoundingBoxUnitType = params.get("BoundingBoxUnitType")
39346
39416
  memeber_set = set(params.keys())
39347
39417
  for name, value in vars(self).items():
39348
39418
  property_name = name[1:]
@@ -55683,6 +55753,10 @@ class ProcessImageRequest(AbstractModel):
55683
55753
  <li>/自定义路径/文件名_{变量名}.{format}</li>
55684
55754
  如果不填,则默认为相对路径:{inputName}.{format}。
55685
55755
  :type OutputPath: str
55756
+ :param _Definition: 图片处理模板唯一标识。
55757
+ :type Definition: int
55758
+ :param _ResourceId: 资源ID,需要保证对应资源是开启状态。默认为帐号主资源ID。
55759
+ :type ResourceId: str
55686
55760
  :param _ImageTask: 图片处理参数。
55687
55761
  :type ImageTask: :class:`tencentcloud.mps.v20190612.models.ImageTaskInput`
55688
55762
  """
@@ -55690,6 +55764,8 @@ class ProcessImageRequest(AbstractModel):
55690
55764
  self._OutputStorage = None
55691
55765
  self._OutputDir = None
55692
55766
  self._OutputPath = None
55767
+ self._Definition = None
55768
+ self._ResourceId = None
55693
55769
  self._ImageTask = None
55694
55770
 
55695
55771
  @property
@@ -55743,6 +55819,28 @@ class ProcessImageRequest(AbstractModel):
55743
55819
  def OutputPath(self, OutputPath):
55744
55820
  self._OutputPath = OutputPath
55745
55821
 
55822
+ @property
55823
+ def Definition(self):
55824
+ r"""图片处理模板唯一标识。
55825
+ :rtype: int
55826
+ """
55827
+ return self._Definition
55828
+
55829
+ @Definition.setter
55830
+ def Definition(self, Definition):
55831
+ self._Definition = Definition
55832
+
55833
+ @property
55834
+ def ResourceId(self):
55835
+ r"""资源ID,需要保证对应资源是开启状态。默认为帐号主资源ID。
55836
+ :rtype: str
55837
+ """
55838
+ return self._ResourceId
55839
+
55840
+ @ResourceId.setter
55841
+ def ResourceId(self, ResourceId):
55842
+ self._ResourceId = ResourceId
55843
+
55746
55844
  @property
55747
55845
  def ImageTask(self):
55748
55846
  r"""图片处理参数。
@@ -55764,6 +55862,8 @@ class ProcessImageRequest(AbstractModel):
55764
55862
  self._OutputStorage._deserialize(params.get("OutputStorage"))
55765
55863
  self._OutputDir = params.get("OutputDir")
55766
55864
  self._OutputPath = params.get("OutputPath")
55865
+ self._Definition = params.get("Definition")
55866
+ self._ResourceId = params.get("ResourceId")
55767
55867
  if params.get("ImageTask") is not None:
55768
55868
  self._ImageTask = ImageTaskInput()
55769
55869
  self._ImageTask._deserialize(params.get("ImageTask"))
@@ -67864,6 +67964,9 @@ class TranscodeTaskInput(AbstractModel):
67864
67964
  :type OverrideParameter: :class:`tencentcloud.mps.v20190612.models.OverrideTranscodeParameter`
67865
67965
  :param _WatermarkSet: 水印列表,支持多张图片或文字水印,最大可支持 10 张。
67866
67966
  :type WatermarkSet: list of WatermarkInput
67967
+ :param _BlindWatermark: 数字水印参数。
67968
+ 注意:此字段可能返回 null,表示取不到有效值。
67969
+ :type BlindWatermark: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkInput`
67867
67970
  :param _MosaicSet: 马赛克列表,最大可支持 10 张。
67868
67971
  :type MosaicSet: list of MosaicInput
67869
67972
  :param _StartTimeOffset: 转码后的视频的起始时间偏移,单位:秒。
@@ -67902,6 +68005,7 @@ class TranscodeTaskInput(AbstractModel):
67902
68005
  self._RawParameter = None
67903
68006
  self._OverrideParameter = None
67904
68007
  self._WatermarkSet = None
68008
+ self._BlindWatermark = None
67905
68009
  self._MosaicSet = None
67906
68010
  self._StartTimeOffset = None
67907
68011
  self._EndTimeOffset = None
@@ -67959,6 +68063,18 @@ class TranscodeTaskInput(AbstractModel):
67959
68063
  def WatermarkSet(self, WatermarkSet):
67960
68064
  self._WatermarkSet = WatermarkSet
67961
68065
 
68066
+ @property
68067
+ def BlindWatermark(self):
68068
+ r"""数字水印参数。
68069
+ 注意:此字段可能返回 null,表示取不到有效值。
68070
+ :rtype: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkInput`
68071
+ """
68072
+ return self._BlindWatermark
68073
+
68074
+ @BlindWatermark.setter
68075
+ def BlindWatermark(self, BlindWatermark):
68076
+ self._BlindWatermark = BlindWatermark
68077
+
67962
68078
  @property
67963
68079
  def MosaicSet(self):
67964
68080
  r"""马赛克列表,最大可支持 10 张。
@@ -68079,6 +68195,9 @@ class TranscodeTaskInput(AbstractModel):
68079
68195
  obj = WatermarkInput()
68080
68196
  obj._deserialize(item)
68081
68197
  self._WatermarkSet.append(obj)
68198
+ if params.get("BlindWatermark") is not None:
68199
+ self._BlindWatermark = BlindWatermarkInput()
68200
+ self._BlindWatermark._deserialize(params.get("BlindWatermark"))
68082
68201
  if params.get("MosaicSet") is not None:
68083
68202
  self._MosaicSet = []
68084
68203
  for item in params.get("MosaicSet"):