tencentcloud-sdk-python 3.0.1269__py2.py3-none-any.whl → 3.0.1271__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/af/v20200226/af_client.py +3 -1
- tencentcloud/autoscaling/v20180419/models.py +6 -2
- tencentcloud/billing/v20180709/models.py +2 -2
- tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
- tencentcloud/cdwch/v20200915/models.py +175 -0
- tencentcloud/ckafka/v20190819/models.py +2 -2
- tencentcloud/cwp/v20180228/models.py +16 -0
- tencentcloud/cynosdb/v20190107/models.py +17 -2
- tencentcloud/ess/v20201111/models.py +60 -4
- tencentcloud/essbasic/v20210526/models.py +75 -4
- tencentcloud/faceid/v20180301/models.py +4 -0
- tencentcloud/iai/v20180301/models.py +12 -12
- tencentcloud/iap/__init__.py +0 -0
- tencentcloud/iap/v20240713/__init__.py +0 -0
- tencentcloud/iap/v20240713/errorcodes.py +48 -0
- tencentcloud/iap/v20240713/iap_client.py +164 -0
- tencentcloud/iap/v20240713/models.py +762 -0
- tencentcloud/lcic/v20220817/models.py +12 -6
- tencentcloud/live/v20180801/errorcodes.py +15 -0
- tencentcloud/live/v20180801/live_client.py +185 -0
- tencentcloud/live/v20180801/models.py +3372 -1460
- tencentcloud/market/v20191010/models.py +0 -2
- tencentcloud/mps/v20190612/models.py +316 -0
- tencentcloud/mps/v20190612/mps_client.py +25 -0
- tencentcloud/redis/v20180412/models.py +314 -216
- tencentcloud/redis/v20180412/redis_client.py +47 -47
- tencentcloud/tat/v20201028/models.py +10 -10
- tencentcloud/tke/v20220501/tke_client.py +2 -2
- tencentcloud/tse/v20201207/models.py +311 -6
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/models.py +769 -32
- tencentcloud/vpc/v20170312/vpc_client.py +93 -1
- tencentcloud/wedata/v20210820/models.py +79 -4
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/RECORD +39 -34
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/top_level.txt +0 -0
@@ -141,7 +141,6 @@ class FlowProductRemindResponse(AbstractModel):
|
|
141
141
|
:param _FlowId: 流水号
|
142
142
|
:type FlowId: str
|
143
143
|
:param _Info: 消息
|
144
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
145
144
|
:type Info: str
|
146
145
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
147
146
|
:type RequestId: str
|
@@ -176,7 +175,6 @@ class FlowProductRemindResponse(AbstractModel):
|
|
176
175
|
@property
|
177
176
|
def Info(self):
|
178
177
|
"""消息
|
179
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
180
178
|
:rtype: str
|
181
179
|
"""
|
182
180
|
return self._Info
|
@@ -31563,6 +31563,101 @@ class HighlightSegmentItem(AbstractModel):
|
|
31563
31563
|
|
31564
31564
|
|
31565
31565
|
|
31566
|
+
class ImageEncodeConfig(AbstractModel):
|
31567
|
+
"""图片编码格式参数
|
31568
|
+
|
31569
|
+
"""
|
31570
|
+
|
31571
|
+
def __init__(self):
|
31572
|
+
r"""
|
31573
|
+
:param _Format: 图片格式,取值范围:JPG、BMP、GIF、PNG、WebP,缺省为原图格式。
|
31574
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31575
|
+
:type Format: str
|
31576
|
+
:param _Quality: 图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
|
31577
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31578
|
+
:type Quality: int
|
31579
|
+
"""
|
31580
|
+
self._Format = None
|
31581
|
+
self._Quality = None
|
31582
|
+
|
31583
|
+
@property
|
31584
|
+
def Format(self):
|
31585
|
+
"""图片格式,取值范围:JPG、BMP、GIF、PNG、WebP,缺省为原图格式。
|
31586
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31587
|
+
:rtype: str
|
31588
|
+
"""
|
31589
|
+
return self._Format
|
31590
|
+
|
31591
|
+
@Format.setter
|
31592
|
+
def Format(self, Format):
|
31593
|
+
self._Format = Format
|
31594
|
+
|
31595
|
+
@property
|
31596
|
+
def Quality(self):
|
31597
|
+
"""图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
|
31598
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31599
|
+
:rtype: int
|
31600
|
+
"""
|
31601
|
+
return self._Quality
|
31602
|
+
|
31603
|
+
@Quality.setter
|
31604
|
+
def Quality(self, Quality):
|
31605
|
+
self._Quality = Quality
|
31606
|
+
|
31607
|
+
|
31608
|
+
def _deserialize(self, params):
|
31609
|
+
self._Format = params.get("Format")
|
31610
|
+
self._Quality = params.get("Quality")
|
31611
|
+
memeber_set = set(params.keys())
|
31612
|
+
for name, value in vars(self).items():
|
31613
|
+
property_name = name[1:]
|
31614
|
+
if property_name in memeber_set:
|
31615
|
+
memeber_set.remove(property_name)
|
31616
|
+
if len(memeber_set) > 0:
|
31617
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
31618
|
+
|
31619
|
+
|
31620
|
+
|
31621
|
+
class ImageEnhanceConfig(AbstractModel):
|
31622
|
+
"""图片增强参数
|
31623
|
+
|
31624
|
+
"""
|
31625
|
+
|
31626
|
+
def __init__(self):
|
31627
|
+
r"""
|
31628
|
+
:param _SuperResolution: 超分配置。
|
31629
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31630
|
+
:type SuperResolution: :class:`tencentcloud.mps.v20190612.models.SuperResolutionConfig`
|
31631
|
+
"""
|
31632
|
+
self._SuperResolution = None
|
31633
|
+
|
31634
|
+
@property
|
31635
|
+
def SuperResolution(self):
|
31636
|
+
"""超分配置。
|
31637
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31638
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SuperResolutionConfig`
|
31639
|
+
"""
|
31640
|
+
return self._SuperResolution
|
31641
|
+
|
31642
|
+
@SuperResolution.setter
|
31643
|
+
def SuperResolution(self, SuperResolution):
|
31644
|
+
self._SuperResolution = SuperResolution
|
31645
|
+
|
31646
|
+
|
31647
|
+
def _deserialize(self, params):
|
31648
|
+
if params.get("SuperResolution") is not None:
|
31649
|
+
self._SuperResolution = SuperResolutionConfig()
|
31650
|
+
self._SuperResolution._deserialize(params.get("SuperResolution"))
|
31651
|
+
memeber_set = set(params.keys())
|
31652
|
+
for name, value in vars(self).items():
|
31653
|
+
property_name = name[1:]
|
31654
|
+
if property_name in memeber_set:
|
31655
|
+
memeber_set.remove(property_name)
|
31656
|
+
if len(memeber_set) > 0:
|
31657
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
31658
|
+
|
31659
|
+
|
31660
|
+
|
31566
31661
|
class ImageQualityEnhanceConfig(AbstractModel):
|
31567
31662
|
"""综合增强配置
|
31568
31663
|
|
@@ -32030,6 +32125,65 @@ class ImageSpriteTemplate(AbstractModel):
|
|
32030
32125
|
|
32031
32126
|
|
32032
32127
|
|
32128
|
+
class ImageTaskInput(AbstractModel):
|
32129
|
+
"""图片任务输入参数
|
32130
|
+
|
32131
|
+
"""
|
32132
|
+
|
32133
|
+
def __init__(self):
|
32134
|
+
r"""
|
32135
|
+
:param _EncodeConfig: 图片编码配置。
|
32136
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
32137
|
+
:type EncodeConfig: :class:`tencentcloud.mps.v20190612.models.ImageEncodeConfig`
|
32138
|
+
:param _EnhanceConfig: 图片增强配置。
|
32139
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
32140
|
+
:type EnhanceConfig: :class:`tencentcloud.mps.v20190612.models.ImageEnhanceConfig`
|
32141
|
+
"""
|
32142
|
+
self._EncodeConfig = None
|
32143
|
+
self._EnhanceConfig = None
|
32144
|
+
|
32145
|
+
@property
|
32146
|
+
def EncodeConfig(self):
|
32147
|
+
"""图片编码配置。
|
32148
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
32149
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEncodeConfig`
|
32150
|
+
"""
|
32151
|
+
return self._EncodeConfig
|
32152
|
+
|
32153
|
+
@EncodeConfig.setter
|
32154
|
+
def EncodeConfig(self, EncodeConfig):
|
32155
|
+
self._EncodeConfig = EncodeConfig
|
32156
|
+
|
32157
|
+
@property
|
32158
|
+
def EnhanceConfig(self):
|
32159
|
+
"""图片增强配置。
|
32160
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
32161
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEnhanceConfig`
|
32162
|
+
"""
|
32163
|
+
return self._EnhanceConfig
|
32164
|
+
|
32165
|
+
@EnhanceConfig.setter
|
32166
|
+
def EnhanceConfig(self, EnhanceConfig):
|
32167
|
+
self._EnhanceConfig = EnhanceConfig
|
32168
|
+
|
32169
|
+
|
32170
|
+
def _deserialize(self, params):
|
32171
|
+
if params.get("EncodeConfig") is not None:
|
32172
|
+
self._EncodeConfig = ImageEncodeConfig()
|
32173
|
+
self._EncodeConfig._deserialize(params.get("EncodeConfig"))
|
32174
|
+
if params.get("EnhanceConfig") is not None:
|
32175
|
+
self._EnhanceConfig = ImageEnhanceConfig()
|
32176
|
+
self._EnhanceConfig._deserialize(params.get("EnhanceConfig"))
|
32177
|
+
memeber_set = set(params.keys())
|
32178
|
+
for name, value in vars(self).items():
|
32179
|
+
property_name = name[1:]
|
32180
|
+
if property_name in memeber_set:
|
32181
|
+
memeber_set.remove(property_name)
|
32182
|
+
if len(memeber_set) > 0:
|
32183
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
32184
|
+
|
32185
|
+
|
32186
|
+
|
32033
32187
|
class ImageWatermarkInput(AbstractModel):
|
32034
32188
|
"""图片水印模板输入参数
|
32035
32189
|
|
@@ -45359,6 +45513,136 @@ class PornOcrReviewTemplateInfoForUpdate(AbstractModel):
|
|
45359
45513
|
|
45360
45514
|
|
45361
45515
|
|
45516
|
+
class ProcessImageRequest(AbstractModel):
|
45517
|
+
"""ProcessImage请求参数结构体
|
45518
|
+
|
45519
|
+
"""
|
45520
|
+
|
45521
|
+
def __init__(self):
|
45522
|
+
r"""
|
45523
|
+
:param _InputInfo: 图片处理的文件输入信息。
|
45524
|
+
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
45525
|
+
:param _OutputStorage: 图片处理输出文件的目标存储。不填则继承 InputInfo 中的存储位置。
|
45526
|
+
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
45527
|
+
:param _OutputDir: 图片处理生成的文件输出的路径。如果不填表示与 InputInfo 中文件所在的目录一致。如果是目录,如`/image/201907/`,表示继承原文件名输出到该目录。
|
45528
|
+
:type OutputDir: str
|
45529
|
+
:param _ImageTask: 图片处理参数。
|
45530
|
+
:type ImageTask: :class:`tencentcloud.mps.v20190612.models.ImageTaskInput`
|
45531
|
+
"""
|
45532
|
+
self._InputInfo = None
|
45533
|
+
self._OutputStorage = None
|
45534
|
+
self._OutputDir = None
|
45535
|
+
self._ImageTask = None
|
45536
|
+
|
45537
|
+
@property
|
45538
|
+
def InputInfo(self):
|
45539
|
+
"""图片处理的文件输入信息。
|
45540
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
45541
|
+
"""
|
45542
|
+
return self._InputInfo
|
45543
|
+
|
45544
|
+
@InputInfo.setter
|
45545
|
+
def InputInfo(self, InputInfo):
|
45546
|
+
self._InputInfo = InputInfo
|
45547
|
+
|
45548
|
+
@property
|
45549
|
+
def OutputStorage(self):
|
45550
|
+
"""图片处理输出文件的目标存储。不填则继承 InputInfo 中的存储位置。
|
45551
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
45552
|
+
"""
|
45553
|
+
return self._OutputStorage
|
45554
|
+
|
45555
|
+
@OutputStorage.setter
|
45556
|
+
def OutputStorage(self, OutputStorage):
|
45557
|
+
self._OutputStorage = OutputStorage
|
45558
|
+
|
45559
|
+
@property
|
45560
|
+
def OutputDir(self):
|
45561
|
+
"""图片处理生成的文件输出的路径。如果不填表示与 InputInfo 中文件所在的目录一致。如果是目录,如`/image/201907/`,表示继承原文件名输出到该目录。
|
45562
|
+
:rtype: str
|
45563
|
+
"""
|
45564
|
+
return self._OutputDir
|
45565
|
+
|
45566
|
+
@OutputDir.setter
|
45567
|
+
def OutputDir(self, OutputDir):
|
45568
|
+
self._OutputDir = OutputDir
|
45569
|
+
|
45570
|
+
@property
|
45571
|
+
def ImageTask(self):
|
45572
|
+
"""图片处理参数。
|
45573
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageTaskInput`
|
45574
|
+
"""
|
45575
|
+
return self._ImageTask
|
45576
|
+
|
45577
|
+
@ImageTask.setter
|
45578
|
+
def ImageTask(self, ImageTask):
|
45579
|
+
self._ImageTask = ImageTask
|
45580
|
+
|
45581
|
+
|
45582
|
+
def _deserialize(self, params):
|
45583
|
+
if params.get("InputInfo") is not None:
|
45584
|
+
self._InputInfo = MediaInputInfo()
|
45585
|
+
self._InputInfo._deserialize(params.get("InputInfo"))
|
45586
|
+
if params.get("OutputStorage") is not None:
|
45587
|
+
self._OutputStorage = TaskOutputStorage()
|
45588
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
45589
|
+
self._OutputDir = params.get("OutputDir")
|
45590
|
+
if params.get("ImageTask") is not None:
|
45591
|
+
self._ImageTask = ImageTaskInput()
|
45592
|
+
self._ImageTask._deserialize(params.get("ImageTask"))
|
45593
|
+
memeber_set = set(params.keys())
|
45594
|
+
for name, value in vars(self).items():
|
45595
|
+
property_name = name[1:]
|
45596
|
+
if property_name in memeber_set:
|
45597
|
+
memeber_set.remove(property_name)
|
45598
|
+
if len(memeber_set) > 0:
|
45599
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
45600
|
+
|
45601
|
+
|
45602
|
+
|
45603
|
+
class ProcessImageResponse(AbstractModel):
|
45604
|
+
"""ProcessImage返回参数结构体
|
45605
|
+
|
45606
|
+
"""
|
45607
|
+
|
45608
|
+
def __init__(self):
|
45609
|
+
r"""
|
45610
|
+
:param _TaskId: 任务 ID。
|
45611
|
+
:type TaskId: str
|
45612
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
45613
|
+
:type RequestId: str
|
45614
|
+
"""
|
45615
|
+
self._TaskId = None
|
45616
|
+
self._RequestId = None
|
45617
|
+
|
45618
|
+
@property
|
45619
|
+
def TaskId(self):
|
45620
|
+
"""任务 ID。
|
45621
|
+
:rtype: str
|
45622
|
+
"""
|
45623
|
+
return self._TaskId
|
45624
|
+
|
45625
|
+
@TaskId.setter
|
45626
|
+
def TaskId(self, TaskId):
|
45627
|
+
self._TaskId = TaskId
|
45628
|
+
|
45629
|
+
@property
|
45630
|
+
def RequestId(self):
|
45631
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
45632
|
+
:rtype: str
|
45633
|
+
"""
|
45634
|
+
return self._RequestId
|
45635
|
+
|
45636
|
+
@RequestId.setter
|
45637
|
+
def RequestId(self, RequestId):
|
45638
|
+
self._RequestId = RequestId
|
45639
|
+
|
45640
|
+
|
45641
|
+
def _deserialize(self, params):
|
45642
|
+
self._TaskId = params.get("TaskId")
|
45643
|
+
self._RequestId = params.get("RequestId")
|
45644
|
+
|
45645
|
+
|
45362
45646
|
class ProcessLiveStreamRequest(AbstractModel):
|
45363
45647
|
"""ProcessLiveStream请求参数结构体
|
45364
45648
|
|
@@ -49868,12 +50152,17 @@ class SegmentRecognitionItem(AbstractModel):
|
|
49868
50152
|
:param _SegmentUrl: 拆条片段URL。
|
49869
50153
|
注意:此字段可能返回 null,表示取不到有效值。
|
49870
50154
|
:type SegmentUrl: str
|
50155
|
+
:param _CovImgUrl: 拆条片段封面。
|
50156
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
50157
|
+
:type CovImgUrl: str
|
49871
50158
|
:param _Title: 分段标题。
|
49872
50159
|
注意:此字段可能返回 null,表示取不到有效值。
|
49873
50160
|
:type Title: str
|
49874
50161
|
:param _Summary: 分段概要。
|
49875
50162
|
注意:此字段可能返回 null,表示取不到有效值。
|
49876
50163
|
:type Summary: str
|
50164
|
+
:param _Keywords: 分段关键词。
|
50165
|
+
:type Keywords: list of str
|
49877
50166
|
:param _BeginTime: 直播切片对应直播起始时间点,采用 ISO 日期格式。
|
49878
50167
|
注意:此字段可能返回 null,表示取不到有效值。
|
49879
50168
|
:type BeginTime: str
|
@@ -49885,8 +50174,10 @@ class SegmentRecognitionItem(AbstractModel):
|
|
49885
50174
|
self._StartTimeOffset = None
|
49886
50175
|
self._EndTimeOffset = None
|
49887
50176
|
self._SegmentUrl = None
|
50177
|
+
self._CovImgUrl = None
|
49888
50178
|
self._Title = None
|
49889
50179
|
self._Summary = None
|
50180
|
+
self._Keywords = None
|
49890
50181
|
self._BeginTime = None
|
49891
50182
|
self._EndTime = None
|
49892
50183
|
|
@@ -49935,6 +50226,18 @@ class SegmentRecognitionItem(AbstractModel):
|
|
49935
50226
|
def SegmentUrl(self, SegmentUrl):
|
49936
50227
|
self._SegmentUrl = SegmentUrl
|
49937
50228
|
|
50229
|
+
@property
|
50230
|
+
def CovImgUrl(self):
|
50231
|
+
"""拆条片段封面。
|
50232
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
50233
|
+
:rtype: str
|
50234
|
+
"""
|
50235
|
+
return self._CovImgUrl
|
50236
|
+
|
50237
|
+
@CovImgUrl.setter
|
50238
|
+
def CovImgUrl(self, CovImgUrl):
|
50239
|
+
self._CovImgUrl = CovImgUrl
|
50240
|
+
|
49938
50241
|
@property
|
49939
50242
|
def Title(self):
|
49940
50243
|
"""分段标题。
|
@@ -49959,6 +50262,17 @@ class SegmentRecognitionItem(AbstractModel):
|
|
49959
50262
|
def Summary(self, Summary):
|
49960
50263
|
self._Summary = Summary
|
49961
50264
|
|
50265
|
+
@property
|
50266
|
+
def Keywords(self):
|
50267
|
+
"""分段关键词。
|
50268
|
+
:rtype: list of str
|
50269
|
+
"""
|
50270
|
+
return self._Keywords
|
50271
|
+
|
50272
|
+
@Keywords.setter
|
50273
|
+
def Keywords(self, Keywords):
|
50274
|
+
self._Keywords = Keywords
|
50275
|
+
|
49962
50276
|
@property
|
49963
50277
|
def BeginTime(self):
|
49964
50278
|
"""直播切片对应直播起始时间点,采用 ISO 日期格式。
|
@@ -49989,8 +50303,10 @@ class SegmentRecognitionItem(AbstractModel):
|
|
49989
50303
|
self._StartTimeOffset = params.get("StartTimeOffset")
|
49990
50304
|
self._EndTimeOffset = params.get("EndTimeOffset")
|
49991
50305
|
self._SegmentUrl = params.get("SegmentUrl")
|
50306
|
+
self._CovImgUrl = params.get("CovImgUrl")
|
49992
50307
|
self._Title = params.get("Title")
|
49993
50308
|
self._Summary = params.get("Summary")
|
50309
|
+
self._Keywords = params.get("Keywords")
|
49994
50310
|
self._BeginTime = params.get("BeginTime")
|
49995
50311
|
self._EndTime = params.get("EndTime")
|
49996
50312
|
memeber_set = set(params.keys())
|
@@ -2392,6 +2392,31 @@ class MpsClient(AbstractClient):
|
|
2392
2392
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2393
2393
|
|
2394
2394
|
|
2395
|
+
def ProcessImage(self, request):
|
2396
|
+
"""发起图片处理,功能包括:
|
2397
|
+
1. 格式转换;
|
2398
|
+
2. 图像增强;
|
2399
|
+
|
2400
|
+
:param request: Request instance for ProcessImage.
|
2401
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.ProcessImageRequest`
|
2402
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ProcessImageResponse`
|
2403
|
+
|
2404
|
+
"""
|
2405
|
+
try:
|
2406
|
+
params = request._serialize()
|
2407
|
+
headers = request.headers
|
2408
|
+
body = self.call("ProcessImage", params, headers=headers)
|
2409
|
+
response = json.loads(body)
|
2410
|
+
model = models.ProcessImageResponse()
|
2411
|
+
model._deserialize(response["Response"])
|
2412
|
+
return model
|
2413
|
+
except Exception as e:
|
2414
|
+
if isinstance(e, TencentCloudSDKException):
|
2415
|
+
raise
|
2416
|
+
else:
|
2417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2418
|
+
|
2419
|
+
|
2395
2420
|
def ProcessLiveStream(self, request):
|
2396
2421
|
"""对直播流媒体发起处理任务,功能包括:
|
2397
2422
|
|