tencentcloud-sdk-python 3.0.1277__py2.py3-none-any.whl → 3.0.1278__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.
Files changed (31) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +24 -0
  3. tencentcloud/aiart/v20221229/models.py +201 -21
  4. tencentcloud/batch/v20170312/models.py +19 -19
  5. tencentcloud/cfw/v20190904/models.py +2 -2
  6. tencentcloud/cloudapp/v20220530/errorcodes.py +6 -0
  7. tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
  8. tencentcloud/cynosdb/v20190107/models.py +311 -30
  9. tencentcloud/dbbrain/v20210527/models.py +2 -2
  10. tencentcloud/emr/v20190103/emr_client.py +46 -0
  11. tencentcloud/emr/v20190103/errorcodes.py +33 -0
  12. tencentcloud/emr/v20190103/models.py +1283 -27
  13. tencentcloud/iotexplorer/v20190423/models.py +17 -0
  14. tencentcloud/ivld/v20210903/ivld_client.py +0 -1
  15. tencentcloud/lcic/v20220817/models.py +2 -2
  16. tencentcloud/lke/v20231130/lke_client.py +6 -2
  17. tencentcloud/mps/v20190612/models.py +93 -0
  18. tencentcloud/ocr/v20181119/errorcodes.py +6 -0
  19. tencentcloud/ocr/v20181119/models.py +126 -4
  20. tencentcloud/postgres/v20170312/models.py +2 -2
  21. tencentcloud/tdmq/v20200217/tdmq_client.py +3 -1
  22. tencentcloud/vclm/v20240523/models.py +6 -6
  23. tencentcloud/vod/v20180717/models.py +41 -26
  24. tencentcloud/vpc/v20170312/errorcodes.py +3 -0
  25. tencentcloud/vpc/v20170312/models.py +982 -40
  26. tencentcloud/vpc/v20170312/vpc_client.py +181 -3
  27. {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1278.dist-info}/METADATA +1 -1
  28. {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1278.dist-info}/RECORD +31 -31
  29. {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1278.dist-info}/LICENSE +0 -0
  30. {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1278.dist-info}/WHEEL +0 -0
  31. {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1278.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1277'
17
+ __version__ = '3.0.1278'
@@ -75,6 +75,30 @@ class AiartClient(AbstractClient):
75
75
  raise TencentCloudSDKException(type(e).__name__, str(e))
76
76
 
77
77
 
78
+ def ImageOutpainting(self, request):
79
+ """扩图接口支持对输入图像按指定宽高比实现智能扩图。
80
+ 默认提供1个并发,代表最多能同时处理1个已提交的任务。
81
+
82
+ :param request: Request instance for ImageOutpainting.
83
+ :type request: :class:`tencentcloud.aiart.v20221229.models.ImageOutpaintingRequest`
84
+ :rtype: :class:`tencentcloud.aiart.v20221229.models.ImageOutpaintingResponse`
85
+
86
+ """
87
+ try:
88
+ params = request._serialize()
89
+ headers = request.headers
90
+ body = self.call("ImageOutpainting", params, headers=headers)
91
+ response = json.loads(body)
92
+ model = models.ImageOutpaintingResponse()
93
+ model._deserialize(response["Response"])
94
+ return model
95
+ except Exception as e:
96
+ if isinstance(e, TencentCloudSDKException):
97
+ raise
98
+ else:
99
+ raise TencentCloudSDKException(type(e).__name__, str(e))
100
+
101
+
78
102
  def ImageToImage(self, request):
79
103
  """图像风格化(图生图)接口提供生成式的图生图风格转化能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
80
104
  图像风格化(图生图)默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
@@ -312,8 +312,12 @@ class GenerateAvatarRequest(AbstractModel):
312
312
 
313
313
  def __init__(self):
314
314
  r"""
315
+ :param _Type: 图像类型,默认为人像。
316
+ human:人像头像,仅支持人像图片输入,建议避免上传无人、多人、人像过小的图片。
317
+ pet:萌宠贴纸,仅支持动物图片输入,建议避免上传无动物、多动物、动物过小的图片。
318
+ :type Type: str
315
319
  :param _Style: 头像风格,仅在人像模式下生效。
316
- 请在 [百变头像风格列表](https://cloud.tencent.com/document/product/1668/107741) 中选择期望的风格,传入风格编号,不传默认使用 flower 风格。
320
+ 若使用人像模式,请在 [百变头像风格列表](https://cloud.tencent.com/document/product/1668/107741) 中选择期望的风格,传入风格编号,不传默认使用 flower 风格。
317
321
  若使用萌宠贴纸模式,无需选择风格,该参数不生效。
318
322
  :type Style: str
319
323
  :param _InputImage: 输入图 Base64 数据。
@@ -324,10 +328,6 @@ Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
324
328
  Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
325
329
  图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
326
330
  :type InputUrl: str
327
- :param _Type: 图像类型,默认为人像。
328
- human:人像头像,仅支持人像图片输入,建议避免上传无人、多人、人像过小的图片。
329
- pet:萌宠贴纸,仅支持动物图片输入,建议避免上传无动物、多动物、动物过小的图片。
330
- :type Type: str
331
331
  :param _Filter: 输入人像图的质量检测开关,默认开启,仅在人像模式下生效。
332
332
  1:开启
333
333
  0:关闭
@@ -347,19 +347,32 @@ pet:萌宠贴纸,仅支持动物图片输入,建议避免上传无动物
347
347
  :param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
348
348
  :type RspImgType: str
349
349
  """
350
+ self._Type = None
350
351
  self._Style = None
351
352
  self._InputImage = None
352
353
  self._InputUrl = None
353
- self._Type = None
354
354
  self._Filter = None
355
355
  self._LogoAdd = None
356
356
  self._LogoParam = None
357
357
  self._RspImgType = None
358
358
 
359
+ @property
360
+ def Type(self):
361
+ """图像类型,默认为人像。
362
+ human:人像头像,仅支持人像图片输入,建议避免上传无人、多人、人像过小的图片。
363
+ pet:萌宠贴纸,仅支持动物图片输入,建议避免上传无动物、多动物、动物过小的图片。
364
+ :rtype: str
365
+ """
366
+ return self._Type
367
+
368
+ @Type.setter
369
+ def Type(self, Type):
370
+ self._Type = Type
371
+
359
372
  @property
360
373
  def Style(self):
361
374
  """头像风格,仅在人像模式下生效。
362
- 请在 [百变头像风格列表](https://cloud.tencent.com/document/product/1668/107741) 中选择期望的风格,传入风格编号,不传默认使用 flower 风格。
375
+ 若使用人像模式,请在 [百变头像风格列表](https://cloud.tencent.com/document/product/1668/107741) 中选择期望的风格,传入风格编号,不传默认使用 flower 风格。
363
376
  若使用萌宠贴纸模式,无需选择风格,该参数不生效。
364
377
  :rtype: str
365
378
  """
@@ -395,19 +408,6 @@ Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
395
408
  def InputUrl(self, InputUrl):
396
409
  self._InputUrl = InputUrl
397
410
 
398
- @property
399
- def Type(self):
400
- """图像类型,默认为人像。
401
- human:人像头像,仅支持人像图片输入,建议避免上传无人、多人、人像过小的图片。
402
- pet:萌宠贴纸,仅支持动物图片输入,建议避免上传无动物、多动物、动物过小的图片。
403
- :rtype: str
404
- """
405
- return self._Type
406
-
407
- @Type.setter
408
- def Type(self, Type):
409
- self._Type = Type
410
-
411
411
  @property
412
412
  def Filter(self):
413
413
  """输入人像图的质量检测开关,默认开启,仅在人像模式下生效。
@@ -464,10 +464,10 @@ pet:萌宠贴纸,仅支持动物图片输入,建议避免上传无动物
464
464
 
465
465
 
466
466
  def _deserialize(self, params):
467
+ self._Type = params.get("Type")
467
468
  self._Style = params.get("Style")
468
469
  self._InputImage = params.get("InputImage")
469
470
  self._InputUrl = params.get("InputUrl")
470
- self._Type = params.get("Type")
471
471
  self._Filter = params.get("Filter")
472
472
  self._LogoAdd = params.get("LogoAdd")
473
473
  if params.get("LogoParam") is not None:
@@ -531,6 +531,186 @@ class GenerateAvatarResponse(AbstractModel):
531
531
  self._RequestId = params.get("RequestId")
532
532
 
533
533
 
534
+ class ImageOutpaintingRequest(AbstractModel):
535
+ """ImageOutpainting请求参数结构体
536
+
537
+ """
538
+
539
+ def __init__(self):
540
+ r"""
541
+ :param _Ratio: 扩展后的比例(宽:高),需要不等于原图比例。
542
+ 支持:1:1、4:3、3:4、16:9、9:16
543
+ :type Ratio: str
544
+ :param _InputImage: 输入图 Base64 数据。
545
+ Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
546
+ 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
547
+ :type InputImage: str
548
+ :param _InputUrl: 输入图 Url。
549
+ Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
550
+ 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
551
+ :type InputUrl: str
552
+ :param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
553
+ :type RspImgType: str
554
+ :param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
555
+ 1:添加标识。
556
+ 0:不添加标识。
557
+ 其他数值:默认按1处理。
558
+ 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
559
+ :type LogoAdd: int
560
+ :param _LogoParam: 标识内容设置。
561
+ 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
562
+ :type LogoParam: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
563
+ """
564
+ self._Ratio = None
565
+ self._InputImage = None
566
+ self._InputUrl = None
567
+ self._RspImgType = None
568
+ self._LogoAdd = None
569
+ self._LogoParam = None
570
+
571
+ @property
572
+ def Ratio(self):
573
+ """扩展后的比例(宽:高),需要不等于原图比例。
574
+ 支持:1:1、4:3、3:4、16:9、9:16
575
+ :rtype: str
576
+ """
577
+ return self._Ratio
578
+
579
+ @Ratio.setter
580
+ def Ratio(self, Ratio):
581
+ self._Ratio = Ratio
582
+
583
+ @property
584
+ def InputImage(self):
585
+ """输入图 Base64 数据。
586
+ Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
587
+ 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
588
+ :rtype: str
589
+ """
590
+ return self._InputImage
591
+
592
+ @InputImage.setter
593
+ def InputImage(self, InputImage):
594
+ self._InputImage = InputImage
595
+
596
+ @property
597
+ def InputUrl(self):
598
+ """输入图 Url。
599
+ Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
600
+ 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
601
+ :rtype: str
602
+ """
603
+ return self._InputUrl
604
+
605
+ @InputUrl.setter
606
+ def InputUrl(self, InputUrl):
607
+ self._InputUrl = InputUrl
608
+
609
+ @property
610
+ def RspImgType(self):
611
+ """返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
612
+ :rtype: str
613
+ """
614
+ return self._RspImgType
615
+
616
+ @RspImgType.setter
617
+ def RspImgType(self, RspImgType):
618
+ self._RspImgType = RspImgType
619
+
620
+ @property
621
+ def LogoAdd(self):
622
+ """为生成结果图添加标识的开关,默认为1。
623
+ 1:添加标识。
624
+ 0:不添加标识。
625
+ 其他数值:默认按1处理。
626
+ 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
627
+ :rtype: int
628
+ """
629
+ return self._LogoAdd
630
+
631
+ @LogoAdd.setter
632
+ def LogoAdd(self, LogoAdd):
633
+ self._LogoAdd = LogoAdd
634
+
635
+ @property
636
+ def LogoParam(self):
637
+ """标识内容设置。
638
+ 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
639
+ :rtype: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
640
+ """
641
+ return self._LogoParam
642
+
643
+ @LogoParam.setter
644
+ def LogoParam(self, LogoParam):
645
+ self._LogoParam = LogoParam
646
+
647
+
648
+ def _deserialize(self, params):
649
+ self._Ratio = params.get("Ratio")
650
+ self._InputImage = params.get("InputImage")
651
+ self._InputUrl = params.get("InputUrl")
652
+ self._RspImgType = params.get("RspImgType")
653
+ self._LogoAdd = params.get("LogoAdd")
654
+ if params.get("LogoParam") is not None:
655
+ self._LogoParam = LogoParam()
656
+ self._LogoParam._deserialize(params.get("LogoParam"))
657
+ memeber_set = set(params.keys())
658
+ for name, value in vars(self).items():
659
+ property_name = name[1:]
660
+ if property_name in memeber_set:
661
+ memeber_set.remove(property_name)
662
+ if len(memeber_set) > 0:
663
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
664
+
665
+
666
+
667
+ class ImageOutpaintingResponse(AbstractModel):
668
+ """ImageOutpainting返回参数结构体
669
+
670
+ """
671
+
672
+ def __init__(self):
673
+ r"""
674
+ :param _ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
675
+ 如果传入 base64 则返回生成图 Base64 编码。
676
+ 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
677
+ :type ResultImage: str
678
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
679
+ :type RequestId: str
680
+ """
681
+ self._ResultImage = None
682
+ self._RequestId = None
683
+
684
+ @property
685
+ def ResultImage(self):
686
+ """根据入参 RspImgType 填入不同,返回不同的内容。
687
+ 如果传入 base64 则返回生成图 Base64 编码。
688
+ 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
689
+ :rtype: str
690
+ """
691
+ return self._ResultImage
692
+
693
+ @ResultImage.setter
694
+ def ResultImage(self, ResultImage):
695
+ self._ResultImage = ResultImage
696
+
697
+ @property
698
+ def RequestId(self):
699
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
700
+ :rtype: str
701
+ """
702
+ return self._RequestId
703
+
704
+ @RequestId.setter
705
+ def RequestId(self, RequestId):
706
+ self._RequestId = RequestId
707
+
708
+
709
+ def _deserialize(self, params):
710
+ self._ResultImage = params.get("ResultImage")
711
+ self._RequestId = params.get("RequestId")
712
+
713
+
534
714
  class ImageToImageRequest(AbstractModel):
535
715
  """ImageToImage请求参数结构体
536
716
 
@@ -4956,12 +4956,12 @@ class Docker(AbstractModel):
4956
4956
 
4957
4957
  def __init__(self):
4958
4958
  r"""
4959
- :param _User: Docker Hub 用户名或 Tencent Registry 用户名
4960
- :type User: str
4961
- :param _Password: Docker Hub 密码或 Tencent Registry 密码
4962
- :type Password: str
4963
4959
  :param _Image: Docker Hub填写“[user/repo]:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/[namespace/repo]:[tag]”
4964
4960
  :type Image: str
4961
+ :param _User: Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。
4962
+ :type User: str
4963
+ :param _Password: Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。
4964
+ :type Password: str
4965
4965
  :param _Server: Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”
4966
4966
  :type Server: str
4967
4967
  :param _MaxRetryCount: 拉取Docker镜像重试次数。默认值:0。
@@ -4972,17 +4972,28 @@ class Docker(AbstractModel):
4972
4972
  注意:此字段可能返回 null,表示取不到有效值。
4973
4973
  :type DockerRunOption: str
4974
4974
  """
4975
+ self._Image = None
4975
4976
  self._User = None
4976
4977
  self._Password = None
4977
- self._Image = None
4978
4978
  self._Server = None
4979
4979
  self._MaxRetryCount = None
4980
4980
  self._DelayOnRetry = None
4981
4981
  self._DockerRunOption = None
4982
4982
 
4983
+ @property
4984
+ def Image(self):
4985
+ """Docker Hub填写“[user/repo]:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/[namespace/repo]:[tag]”
4986
+ :rtype: str
4987
+ """
4988
+ return self._Image
4989
+
4990
+ @Image.setter
4991
+ def Image(self, Image):
4992
+ self._Image = Image
4993
+
4983
4994
  @property
4984
4995
  def User(self):
4985
- """Docker Hub 用户名或 Tencent Registry 用户名
4996
+ """Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。
4986
4997
  :rtype: str
4987
4998
  """
4988
4999
  return self._User
@@ -4993,7 +5004,7 @@ class Docker(AbstractModel):
4993
5004
 
4994
5005
  @property
4995
5006
  def Password(self):
4996
- """Docker Hub 密码或 Tencent Registry 密码
5007
+ """Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。
4997
5008
  :rtype: str
4998
5009
  """
4999
5010
  return self._Password
@@ -5002,17 +5013,6 @@ class Docker(AbstractModel):
5002
5013
  def Password(self, Password):
5003
5014
  self._Password = Password
5004
5015
 
5005
- @property
5006
- def Image(self):
5007
- """Docker Hub填写“[user/repo]:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/[namespace/repo]:[tag]”
5008
- :rtype: str
5009
- """
5010
- return self._Image
5011
-
5012
- @Image.setter
5013
- def Image(self, Image):
5014
- self._Image = Image
5015
-
5016
5016
  @property
5017
5017
  def Server(self):
5018
5018
  """Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”
@@ -5060,9 +5060,9 @@ class Docker(AbstractModel):
5060
5060
 
5061
5061
 
5062
5062
  def _deserialize(self, params):
5063
+ self._Image = params.get("Image")
5063
5064
  self._User = params.get("User")
5064
5065
  self._Password = params.get("Password")
5065
- self._Image = params.get("Image")
5066
5066
  self._Server = params.get("Server")
5067
5067
  self._MaxRetryCount = params.get("MaxRetryCount")
5068
5068
  self._DelayOnRetry = params.get("DelayOnRetry")
@@ -8894,7 +8894,7 @@ class DescribeBlockStaticListResponse(AbstractModel):
8894
8894
 
8895
8895
  def __init__(self):
8896
8896
  r"""
8897
- :param _Data:
8897
+ :param _Data: 查询结果
8898
8898
  :type Data: list of StaticInfo
8899
8899
  :param _Status: 异步查询状态,1查询执行中,0查询已结束
8900
8900
  :type Status: int
@@ -8907,7 +8907,7 @@ class DescribeBlockStaticListResponse(AbstractModel):
8907
8907
 
8908
8908
  @property
8909
8909
  def Data(self):
8910
- """
8910
+ """查询结果
8911
8911
  :rtype: list of StaticInfo
8912
8912
  """
8913
8913
  return self._Data
@@ -13,3 +13,9 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
+
17
+ # DBError
18
+ INTERNALERROR_DBERROR = 'InternalError.DBError'
19
+
20
+ # 找不到该License
21
+ RESOURCENOTFOUND_LICENSENOTFOUNDERR = 'ResourceNotFound.LicenseNotFoundErr'
@@ -1820,6 +1820,29 @@ class CynosdbClient(AbstractClient):
1820
1820
  raise TencentCloudSDKException(type(e).__name__, str(e))
1821
1821
 
1822
1822
 
1823
+ def DescribeServerlessInstanceSpecs(self, request):
1824
+ """查询Serverless实例可选规格
1825
+
1826
+ :param request: Request instance for DescribeServerlessInstanceSpecs.
1827
+ :type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeServerlessInstanceSpecsRequest`
1828
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeServerlessInstanceSpecsResponse`
1829
+
1830
+ """
1831
+ try:
1832
+ params = request._serialize()
1833
+ headers = request.headers
1834
+ body = self.call("DescribeServerlessInstanceSpecs", params, headers=headers)
1835
+ response = json.loads(body)
1836
+ model = models.DescribeServerlessInstanceSpecsResponse()
1837
+ model._deserialize(response["Response"])
1838
+ return model
1839
+ except Exception as e:
1840
+ if isinstance(e, TencentCloudSDKException):
1841
+ raise
1842
+ else:
1843
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1844
+
1845
+
1823
1846
  def DescribeServerlessStrategy(self, request):
1824
1847
  """查询serverless策略
1825
1848