tencentcloud-sdk-python 3.0.1277__py2.py3-none-any.whl → 3.0.1279__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/aiart/v20221229/aiart_client.py +48 -0
 - tencentcloud/aiart/v20221229/models.py +402 -21
 - tencentcloud/batch/v20170312/models.py +19 -19
 - tencentcloud/cam/v20190116/cam_client.py +23 -0
 - tencentcloud/cam/v20190116/errorcodes.py +3 -0
 - tencentcloud/cam/v20190116/models.py +111 -0
 - tencentcloud/cfg/v20210820/models.py +15 -0
 - tencentcloud/cfw/v20190904/models.py +2 -2
 - tencentcloud/cloudapp/v20220530/errorcodes.py +6 -0
 - tencentcloud/cloudaudit/v20190319/models.py +8 -8
 - tencentcloud/cvm/v20170312/models.py +14 -14
 - tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
 - tencentcloud/cynosdb/v20190107/models.py +311 -30
 - tencentcloud/dbbrain/v20210527/models.py +2 -2
 - tencentcloud/emr/v20190103/emr_client.py +46 -0
 - tencentcloud/emr/v20190103/errorcodes.py +33 -0
 - tencentcloud/emr/v20190103/models.py +1283 -27
 - tencentcloud/es/v20180416/models.py +171 -0
 - tencentcloud/faceid/v20180301/errorcodes.py +3 -0
 - tencentcloud/iotexplorer/v20190423/models.py +17 -0
 - tencentcloud/ivld/v20210903/ivld_client.py +0 -1
 - tencentcloud/lcic/v20220817/models.py +2 -2
 - tencentcloud/lke/v20231130/lke_client.py +6 -2
 - tencentcloud/mps/v20190612/models.py +110 -0
 - tencentcloud/mqtt/v20240516/models.py +530 -0
 - tencentcloud/mqtt/v20240516/mqtt_client.py +92 -0
 - tencentcloud/ocr/v20181119/errorcodes.py +6 -0
 - tencentcloud/ocr/v20181119/models.py +379 -4
 - tencentcloud/postgres/v20170312/models.py +2 -2
 - tencentcloud/tdmq/v20200217/tdmq_client.py +3 -1
 - tencentcloud/tse/v20201207/errorcodes.py +3 -0
 - tencentcloud/tse/v20201207/models.py +923 -37
 - tencentcloud/tse/v20201207/tse_client.py +92 -0
 - tencentcloud/vclm/v20240523/models.py +6 -6
 - tencentcloud/vdb/v20230616/models.py +12 -0
 - tencentcloud/vod/v20180717/models.py +41 -26
 - tencentcloud/vpc/v20170312/errorcodes.py +3 -0
 - tencentcloud/vpc/v20170312/models.py +1002 -40
 - tencentcloud/vpc/v20170312/vpc_client.py +181 -3
 - {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1279.dist-info}/METADATA +1 -1
 - {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1279.dist-info}/RECORD +45 -45
 - {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1279.dist-info}/LICENSE +0 -0
 - {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1279.dist-info}/WHEEL +0 -0
 - {tencentcloud_sdk_python-3.0.1277.dist-info → tencentcloud_sdk_python-3.0.1279.dist-info}/top_level.txt +0 -0
 
    
        tencentcloud/__init__.py
    CHANGED
    
    
| 
         @@ -75,6 +75,54 @@ class AiartClient(AbstractClient): 
     | 
|
| 
       75 
75 
     | 
    
         
             
                            raise TencentCloudSDKException(type(e).__name__, str(e))
         
     | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
77 
     | 
    
         | 
| 
      
 78 
     | 
    
         
            +
                def ImageInpaintingRemoval(self, request):
         
     | 
| 
      
 79 
     | 
    
         
            +
                    """消除补全接口通过图像 mask 指定需要消除的人、物、文字等区域,在选定区域对图像内容进行消除与重绘补全。
         
     | 
| 
      
 80 
     | 
    
         
            +
                    默认提供1个并发,代表最多能同时处理1个已提交的任务。
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                    :param request: Request instance for ImageInpaintingRemoval.
         
     | 
| 
      
 83 
     | 
    
         
            +
                    :type request: :class:`tencentcloud.aiart.v20221229.models.ImageInpaintingRemovalRequest`
         
     | 
| 
      
 84 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.aiart.v20221229.models.ImageInpaintingRemovalResponse`
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
                    """
         
     | 
| 
      
 87 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 88 
     | 
    
         
            +
                        params = request._serialize()
         
     | 
| 
      
 89 
     | 
    
         
            +
                        headers = request.headers
         
     | 
| 
      
 90 
     | 
    
         
            +
                        body = self.call("ImageInpaintingRemoval", params, headers=headers)
         
     | 
| 
      
 91 
     | 
    
         
            +
                        response = json.loads(body)
         
     | 
| 
      
 92 
     | 
    
         
            +
                        model = models.ImageInpaintingRemovalResponse()
         
     | 
| 
      
 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 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
                def ImageOutpainting(self, request):
         
     | 
| 
      
 103 
     | 
    
         
            +
                    """扩图接口支持对输入图像按指定宽高比实现智能扩图。
         
     | 
| 
      
 104 
     | 
    
         
            +
                    默认提供1个并发,代表最多能同时处理1个已提交的任务。
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
                    :param request: Request instance for ImageOutpainting.
         
     | 
| 
      
 107 
     | 
    
         
            +
                    :type request: :class:`tencentcloud.aiart.v20221229.models.ImageOutpaintingRequest`
         
     | 
| 
      
 108 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.aiart.v20221229.models.ImageOutpaintingResponse`
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
                    """
         
     | 
| 
      
 111 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 112 
     | 
    
         
            +
                        params = request._serialize()
         
     | 
| 
      
 113 
     | 
    
         
            +
                        headers = request.headers
         
     | 
| 
      
 114 
     | 
    
         
            +
                        body = self.call("ImageOutpainting", params, headers=headers)
         
     | 
| 
      
 115 
     | 
    
         
            +
                        response = json.loads(body)
         
     | 
| 
      
 116 
     | 
    
         
            +
                        model = models.ImageOutpaintingResponse()
         
     | 
| 
      
 117 
     | 
    
         
            +
                        model._deserialize(response["Response"])
         
     | 
| 
      
 118 
     | 
    
         
            +
                        return model
         
     | 
| 
      
 119 
     | 
    
         
            +
                    except Exception as e:
         
     | 
| 
      
 120 
     | 
    
         
            +
                        if isinstance(e, TencentCloudSDKException):
         
     | 
| 
      
 121 
     | 
    
         
            +
                            raise
         
     | 
| 
      
 122 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 123 
     | 
    
         
            +
                            raise TencentCloudSDKException(type(e).__name__, str(e))
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
       78 
126 
     | 
    
         
             
                def ImageToImage(self, request):
         
     | 
| 
       79 
127 
     | 
    
         
             
                    """图像风格化(图生图)接口提供生成式的图生图风格转化能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
         
     | 
| 
       80 
128 
     | 
    
         
             
                    图像风格化(图生图)默认提供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 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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,387 @@ class GenerateAvatarResponse(AbstractModel): 
     | 
|
| 
       531 
531 
     | 
    
         
             
                    self._RequestId = params.get("RequestId")
         
     | 
| 
       532 
532 
     | 
    
         | 
| 
       533 
533 
     | 
    
         | 
| 
      
 534 
     | 
    
         
            +
            class ImageInpaintingRemovalRequest(AbstractModel):
         
     | 
| 
      
 535 
     | 
    
         
            +
                """ImageInpaintingRemoval请求参数结构体
         
     | 
| 
      
 536 
     | 
    
         
            +
             
     | 
| 
      
 537 
     | 
    
         
            +
                """
         
     | 
| 
      
 538 
     | 
    
         
            +
             
     | 
| 
      
 539 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 540 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 541 
     | 
    
         
            +
                    :param _InputImage: 输入图 Base64 数据。
         
     | 
| 
      
 542 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 543 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 544 
     | 
    
         
            +
                    :type InputImage: str
         
     | 
| 
      
 545 
     | 
    
         
            +
                    :param _InputUrl: 输入图 Url。
         
     | 
| 
      
 546 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 547 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 548 
     | 
    
         
            +
                    :type InputUrl: str
         
     | 
| 
      
 549 
     | 
    
         
            +
                    :param _Mask: 消除区域 Mask 图 Base64 数据。
         
     | 
| 
      
 550 
     | 
    
         
            +
            Mask 为单通道灰度图,待消除部分呈白色区域,原图保持部分呈黑色区域。
         
     | 
| 
      
 551 
     | 
    
         
            +
            Mask 的 Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 552 
     | 
    
         
            +
            图片限制:Mask 分辨率需要和输入原图保持一致,转成 Base64 字符串后小于 6MB。
         
     | 
| 
      
 553 
     | 
    
         
            +
                    :type Mask: str
         
     | 
| 
      
 554 
     | 
    
         
            +
                    :param _MaskUrl: 消除区域 Mask 图 Url。
         
     | 
| 
      
 555 
     | 
    
         
            +
            Mask 为单通道灰度图,待消除部分呈白色区域,原图保持部分呈黑色区域。
         
     | 
| 
      
 556 
     | 
    
         
            +
            Mask 的 Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 557 
     | 
    
         
            +
            图片限制:Mask 分辨率需要和输入原图保持一致,转成 Base64 字符串后小于 6MB。
         
     | 
| 
      
 558 
     | 
    
         
            +
                    :type MaskUrl: str
         
     | 
| 
      
 559 
     | 
    
         
            +
                    :param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
         
     | 
| 
      
 560 
     | 
    
         
            +
                    :type RspImgType: str
         
     | 
| 
      
 561 
     | 
    
         
            +
                    :param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
         
     | 
| 
      
 562 
     | 
    
         
            +
            1:添加标识。
         
     | 
| 
      
 563 
     | 
    
         
            +
            0:不添加标识。
         
     | 
| 
      
 564 
     | 
    
         
            +
            其他数值:默认按1处理。
         
     | 
| 
      
 565 
     | 
    
         
            +
            建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
         
     | 
| 
      
 566 
     | 
    
         
            +
                    :type LogoAdd: int
         
     | 
| 
      
 567 
     | 
    
         
            +
                    :param _LogoParam: 标识内容设置。
         
     | 
| 
      
 568 
     | 
    
         
            +
            默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
         
     | 
| 
      
 569 
     | 
    
         
            +
                    :type LogoParam: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
         
     | 
| 
      
 570 
     | 
    
         
            +
                    """
         
     | 
| 
      
 571 
     | 
    
         
            +
                    self._InputImage = None
         
     | 
| 
      
 572 
     | 
    
         
            +
                    self._InputUrl = None
         
     | 
| 
      
 573 
     | 
    
         
            +
                    self._Mask = None
         
     | 
| 
      
 574 
     | 
    
         
            +
                    self._MaskUrl = None
         
     | 
| 
      
 575 
     | 
    
         
            +
                    self._RspImgType = None
         
     | 
| 
      
 576 
     | 
    
         
            +
                    self._LogoAdd = None
         
     | 
| 
      
 577 
     | 
    
         
            +
                    self._LogoParam = None
         
     | 
| 
      
 578 
     | 
    
         
            +
             
     | 
| 
      
 579 
     | 
    
         
            +
                @property
         
     | 
| 
      
 580 
     | 
    
         
            +
                def InputImage(self):
         
     | 
| 
      
 581 
     | 
    
         
            +
                    """输入图 Base64 数据。
         
     | 
| 
      
 582 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 583 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 584 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 585 
     | 
    
         
            +
                    """
         
     | 
| 
      
 586 
     | 
    
         
            +
                    return self._InputImage
         
     | 
| 
      
 587 
     | 
    
         
            +
             
     | 
| 
      
 588 
     | 
    
         
            +
                @InputImage.setter
         
     | 
| 
      
 589 
     | 
    
         
            +
                def InputImage(self, InputImage):
         
     | 
| 
      
 590 
     | 
    
         
            +
                    self._InputImage = InputImage
         
     | 
| 
      
 591 
     | 
    
         
            +
             
     | 
| 
      
 592 
     | 
    
         
            +
                @property
         
     | 
| 
      
 593 
     | 
    
         
            +
                def InputUrl(self):
         
     | 
| 
      
 594 
     | 
    
         
            +
                    """输入图 Url。
         
     | 
| 
      
 595 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 596 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 597 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 598 
     | 
    
         
            +
                    """
         
     | 
| 
      
 599 
     | 
    
         
            +
                    return self._InputUrl
         
     | 
| 
      
 600 
     | 
    
         
            +
             
     | 
| 
      
 601 
     | 
    
         
            +
                @InputUrl.setter
         
     | 
| 
      
 602 
     | 
    
         
            +
                def InputUrl(self, InputUrl):
         
     | 
| 
      
 603 
     | 
    
         
            +
                    self._InputUrl = InputUrl
         
     | 
| 
      
 604 
     | 
    
         
            +
             
     | 
| 
      
 605 
     | 
    
         
            +
                @property
         
     | 
| 
      
 606 
     | 
    
         
            +
                def Mask(self):
         
     | 
| 
      
 607 
     | 
    
         
            +
                    """消除区域 Mask 图 Base64 数据。
         
     | 
| 
      
 608 
     | 
    
         
            +
            Mask 为单通道灰度图,待消除部分呈白色区域,原图保持部分呈黑色区域。
         
     | 
| 
      
 609 
     | 
    
         
            +
            Mask 的 Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 610 
     | 
    
         
            +
            图片限制:Mask 分辨率需要和输入原图保持一致,转成 Base64 字符串后小于 6MB。
         
     | 
| 
      
 611 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 612 
     | 
    
         
            +
                    """
         
     | 
| 
      
 613 
     | 
    
         
            +
                    return self._Mask
         
     | 
| 
      
 614 
     | 
    
         
            +
             
     | 
| 
      
 615 
     | 
    
         
            +
                @Mask.setter
         
     | 
| 
      
 616 
     | 
    
         
            +
                def Mask(self, Mask):
         
     | 
| 
      
 617 
     | 
    
         
            +
                    self._Mask = Mask
         
     | 
| 
      
 618 
     | 
    
         
            +
             
     | 
| 
      
 619 
     | 
    
         
            +
                @property
         
     | 
| 
      
 620 
     | 
    
         
            +
                def MaskUrl(self):
         
     | 
| 
      
 621 
     | 
    
         
            +
                    """消除区域 Mask 图 Url。
         
     | 
| 
      
 622 
     | 
    
         
            +
            Mask 为单通道灰度图,待消除部分呈白色区域,原图保持部分呈黑色区域。
         
     | 
| 
      
 623 
     | 
    
         
            +
            Mask 的 Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 624 
     | 
    
         
            +
            图片限制:Mask 分辨率需要和输入原图保持一致,转成 Base64 字符串后小于 6MB。
         
     | 
| 
      
 625 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 626 
     | 
    
         
            +
                    """
         
     | 
| 
      
 627 
     | 
    
         
            +
                    return self._MaskUrl
         
     | 
| 
      
 628 
     | 
    
         
            +
             
     | 
| 
      
 629 
     | 
    
         
            +
                @MaskUrl.setter
         
     | 
| 
      
 630 
     | 
    
         
            +
                def MaskUrl(self, MaskUrl):
         
     | 
| 
      
 631 
     | 
    
         
            +
                    self._MaskUrl = MaskUrl
         
     | 
| 
      
 632 
     | 
    
         
            +
             
     | 
| 
      
 633 
     | 
    
         
            +
                @property
         
     | 
| 
      
 634 
     | 
    
         
            +
                def RspImgType(self):
         
     | 
| 
      
 635 
     | 
    
         
            +
                    """返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
         
     | 
| 
      
 636 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 637 
     | 
    
         
            +
                    """
         
     | 
| 
      
 638 
     | 
    
         
            +
                    return self._RspImgType
         
     | 
| 
      
 639 
     | 
    
         
            +
             
     | 
| 
      
 640 
     | 
    
         
            +
                @RspImgType.setter
         
     | 
| 
      
 641 
     | 
    
         
            +
                def RspImgType(self, RspImgType):
         
     | 
| 
      
 642 
     | 
    
         
            +
                    self._RspImgType = RspImgType
         
     | 
| 
      
 643 
     | 
    
         
            +
             
     | 
| 
      
 644 
     | 
    
         
            +
                @property
         
     | 
| 
      
 645 
     | 
    
         
            +
                def LogoAdd(self):
         
     | 
| 
      
 646 
     | 
    
         
            +
                    """为生成结果图添加标识的开关,默认为1。
         
     | 
| 
      
 647 
     | 
    
         
            +
            1:添加标识。
         
     | 
| 
      
 648 
     | 
    
         
            +
            0:不添加标识。
         
     | 
| 
      
 649 
     | 
    
         
            +
            其他数值:默认按1处理。
         
     | 
| 
      
 650 
     | 
    
         
            +
            建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
         
     | 
| 
      
 651 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 652 
     | 
    
         
            +
                    """
         
     | 
| 
      
 653 
     | 
    
         
            +
                    return self._LogoAdd
         
     | 
| 
      
 654 
     | 
    
         
            +
             
     | 
| 
      
 655 
     | 
    
         
            +
                @LogoAdd.setter
         
     | 
| 
      
 656 
     | 
    
         
            +
                def LogoAdd(self, LogoAdd):
         
     | 
| 
      
 657 
     | 
    
         
            +
                    self._LogoAdd = LogoAdd
         
     | 
| 
      
 658 
     | 
    
         
            +
             
     | 
| 
      
 659 
     | 
    
         
            +
                @property
         
     | 
| 
      
 660 
     | 
    
         
            +
                def LogoParam(self):
         
     | 
| 
      
 661 
     | 
    
         
            +
                    """标识内容设置。
         
     | 
| 
      
 662 
     | 
    
         
            +
            默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
         
     | 
| 
      
 663 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
         
     | 
| 
      
 664 
     | 
    
         
            +
                    """
         
     | 
| 
      
 665 
     | 
    
         
            +
                    return self._LogoParam
         
     | 
| 
      
 666 
     | 
    
         
            +
             
     | 
| 
      
 667 
     | 
    
         
            +
                @LogoParam.setter
         
     | 
| 
      
 668 
     | 
    
         
            +
                def LogoParam(self, LogoParam):
         
     | 
| 
      
 669 
     | 
    
         
            +
                    self._LogoParam = LogoParam
         
     | 
| 
      
 670 
     | 
    
         
            +
             
     | 
| 
      
 671 
     | 
    
         
            +
             
     | 
| 
      
 672 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 673 
     | 
    
         
            +
                    self._InputImage = params.get("InputImage")
         
     | 
| 
      
 674 
     | 
    
         
            +
                    self._InputUrl = params.get("InputUrl")
         
     | 
| 
      
 675 
     | 
    
         
            +
                    self._Mask = params.get("Mask")
         
     | 
| 
      
 676 
     | 
    
         
            +
                    self._MaskUrl = params.get("MaskUrl")
         
     | 
| 
      
 677 
     | 
    
         
            +
                    self._RspImgType = params.get("RspImgType")
         
     | 
| 
      
 678 
     | 
    
         
            +
                    self._LogoAdd = params.get("LogoAdd")
         
     | 
| 
      
 679 
     | 
    
         
            +
                    if params.get("LogoParam") is not None:
         
     | 
| 
      
 680 
     | 
    
         
            +
                        self._LogoParam = LogoParam()
         
     | 
| 
      
 681 
     | 
    
         
            +
                        self._LogoParam._deserialize(params.get("LogoParam"))
         
     | 
| 
      
 682 
     | 
    
         
            +
                    memeber_set = set(params.keys())
         
     | 
| 
      
 683 
     | 
    
         
            +
                    for name, value in vars(self).items():
         
     | 
| 
      
 684 
     | 
    
         
            +
                        property_name = name[1:]
         
     | 
| 
      
 685 
     | 
    
         
            +
                        if property_name in memeber_set:
         
     | 
| 
      
 686 
     | 
    
         
            +
                            memeber_set.remove(property_name)
         
     | 
| 
      
 687 
     | 
    
         
            +
                    if len(memeber_set) > 0:
         
     | 
| 
      
 688 
     | 
    
         
            +
                        warnings.warn("%s fileds are useless." % ",".join(memeber_set))
         
     | 
| 
      
 689 
     | 
    
         
            +
                    
         
     | 
| 
      
 690 
     | 
    
         
            +
             
     | 
| 
      
 691 
     | 
    
         
            +
             
     | 
| 
      
 692 
     | 
    
         
            +
            class ImageInpaintingRemovalResponse(AbstractModel):
         
     | 
| 
      
 693 
     | 
    
         
            +
                """ImageInpaintingRemoval返回参数结构体
         
     | 
| 
      
 694 
     | 
    
         
            +
             
     | 
| 
      
 695 
     | 
    
         
            +
                """
         
     | 
| 
      
 696 
     | 
    
         
            +
             
     | 
| 
      
 697 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 698 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 699 
     | 
    
         
            +
                    :param _ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。 如果传入 base64 则返回生成图 Base64 编码。 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
         
     | 
| 
      
 700 
     | 
    
         
            +
                    :type ResultImage: str
         
     | 
| 
      
 701 
     | 
    
         
            +
                    :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 702 
     | 
    
         
            +
                    :type RequestId: str
         
     | 
| 
      
 703 
     | 
    
         
            +
                    """
         
     | 
| 
      
 704 
     | 
    
         
            +
                    self._ResultImage = None
         
     | 
| 
      
 705 
     | 
    
         
            +
                    self._RequestId = None
         
     | 
| 
      
 706 
     | 
    
         
            +
             
     | 
| 
      
 707 
     | 
    
         
            +
                @property
         
     | 
| 
      
 708 
     | 
    
         
            +
                def ResultImage(self):
         
     | 
| 
      
 709 
     | 
    
         
            +
                    """根据入参 RspImgType 填入不同,返回不同的内容。 如果传入 base64 则返回生成图 Base64 编码。 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
         
     | 
| 
      
 710 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 711 
     | 
    
         
            +
                    """
         
     | 
| 
      
 712 
     | 
    
         
            +
                    return self._ResultImage
         
     | 
| 
      
 713 
     | 
    
         
            +
             
     | 
| 
      
 714 
     | 
    
         
            +
                @ResultImage.setter
         
     | 
| 
      
 715 
     | 
    
         
            +
                def ResultImage(self, ResultImage):
         
     | 
| 
      
 716 
     | 
    
         
            +
                    self._ResultImage = ResultImage
         
     | 
| 
      
 717 
     | 
    
         
            +
             
     | 
| 
      
 718 
     | 
    
         
            +
                @property
         
     | 
| 
      
 719 
     | 
    
         
            +
                def RequestId(self):
         
     | 
| 
      
 720 
     | 
    
         
            +
                    """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 721 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 722 
     | 
    
         
            +
                    """
         
     | 
| 
      
 723 
     | 
    
         
            +
                    return self._RequestId
         
     | 
| 
      
 724 
     | 
    
         
            +
             
     | 
| 
      
 725 
     | 
    
         
            +
                @RequestId.setter
         
     | 
| 
      
 726 
     | 
    
         
            +
                def RequestId(self, RequestId):
         
     | 
| 
      
 727 
     | 
    
         
            +
                    self._RequestId = RequestId
         
     | 
| 
      
 728 
     | 
    
         
            +
             
     | 
| 
      
 729 
     | 
    
         
            +
             
     | 
| 
      
 730 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 731 
     | 
    
         
            +
                    self._ResultImage = params.get("ResultImage")
         
     | 
| 
      
 732 
     | 
    
         
            +
                    self._RequestId = params.get("RequestId")
         
     | 
| 
      
 733 
     | 
    
         
            +
             
     | 
| 
      
 734 
     | 
    
         
            +
             
     | 
| 
      
 735 
     | 
    
         
            +
            class ImageOutpaintingRequest(AbstractModel):
         
     | 
| 
      
 736 
     | 
    
         
            +
                """ImageOutpainting请求参数结构体
         
     | 
| 
      
 737 
     | 
    
         
            +
             
     | 
| 
      
 738 
     | 
    
         
            +
                """
         
     | 
| 
      
 739 
     | 
    
         
            +
             
     | 
| 
      
 740 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 741 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 742 
     | 
    
         
            +
                    :param _Ratio: 扩展后的比例(宽:高),需要不等于原图比例。
         
     | 
| 
      
 743 
     | 
    
         
            +
            支持:1:1、4:3、3:4、16:9、9:16
         
     | 
| 
      
 744 
     | 
    
         
            +
                    :type Ratio: str
         
     | 
| 
      
 745 
     | 
    
         
            +
                    :param _InputImage: 输入图 Base64 数据。
         
     | 
| 
      
 746 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 747 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 748 
     | 
    
         
            +
                    :type InputImage: str
         
     | 
| 
      
 749 
     | 
    
         
            +
                    :param _InputUrl: 输入图 Url。
         
     | 
| 
      
 750 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 751 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 752 
     | 
    
         
            +
                    :type InputUrl: str
         
     | 
| 
      
 753 
     | 
    
         
            +
                    :param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
         
     | 
| 
      
 754 
     | 
    
         
            +
                    :type RspImgType: str
         
     | 
| 
      
 755 
     | 
    
         
            +
                    :param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
         
     | 
| 
      
 756 
     | 
    
         
            +
            1:添加标识。
         
     | 
| 
      
 757 
     | 
    
         
            +
            0:不添加标识。
         
     | 
| 
      
 758 
     | 
    
         
            +
            其他数值:默认按1处理。
         
     | 
| 
      
 759 
     | 
    
         
            +
            建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
         
     | 
| 
      
 760 
     | 
    
         
            +
                    :type LogoAdd: int
         
     | 
| 
      
 761 
     | 
    
         
            +
                    :param _LogoParam: 标识内容设置。
         
     | 
| 
      
 762 
     | 
    
         
            +
            默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
         
     | 
| 
      
 763 
     | 
    
         
            +
                    :type LogoParam: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
         
     | 
| 
      
 764 
     | 
    
         
            +
                    """
         
     | 
| 
      
 765 
     | 
    
         
            +
                    self._Ratio = None
         
     | 
| 
      
 766 
     | 
    
         
            +
                    self._InputImage = None
         
     | 
| 
      
 767 
     | 
    
         
            +
                    self._InputUrl = None
         
     | 
| 
      
 768 
     | 
    
         
            +
                    self._RspImgType = None
         
     | 
| 
      
 769 
     | 
    
         
            +
                    self._LogoAdd = None
         
     | 
| 
      
 770 
     | 
    
         
            +
                    self._LogoParam = None
         
     | 
| 
      
 771 
     | 
    
         
            +
             
     | 
| 
      
 772 
     | 
    
         
            +
                @property
         
     | 
| 
      
 773 
     | 
    
         
            +
                def Ratio(self):
         
     | 
| 
      
 774 
     | 
    
         
            +
                    """扩展后的比例(宽:高),需要不等于原图比例。
         
     | 
| 
      
 775 
     | 
    
         
            +
            支持:1:1、4:3、3:4、16:9、9:16
         
     | 
| 
      
 776 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 777 
     | 
    
         
            +
                    """
         
     | 
| 
      
 778 
     | 
    
         
            +
                    return self._Ratio
         
     | 
| 
      
 779 
     | 
    
         
            +
             
     | 
| 
      
 780 
     | 
    
         
            +
                @Ratio.setter
         
     | 
| 
      
 781 
     | 
    
         
            +
                def Ratio(self, Ratio):
         
     | 
| 
      
 782 
     | 
    
         
            +
                    self._Ratio = Ratio
         
     | 
| 
      
 783 
     | 
    
         
            +
             
     | 
| 
      
 784 
     | 
    
         
            +
                @property
         
     | 
| 
      
 785 
     | 
    
         
            +
                def InputImage(self):
         
     | 
| 
      
 786 
     | 
    
         
            +
                    """输入图 Base64 数据。
         
     | 
| 
      
 787 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 788 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 789 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 790 
     | 
    
         
            +
                    """
         
     | 
| 
      
 791 
     | 
    
         
            +
                    return self._InputImage
         
     | 
| 
      
 792 
     | 
    
         
            +
             
     | 
| 
      
 793 
     | 
    
         
            +
                @InputImage.setter
         
     | 
| 
      
 794 
     | 
    
         
            +
                def InputImage(self, InputImage):
         
     | 
| 
      
 795 
     | 
    
         
            +
                    self._InputImage = InputImage
         
     | 
| 
      
 796 
     | 
    
         
            +
             
     | 
| 
      
 797 
     | 
    
         
            +
                @property
         
     | 
| 
      
 798 
     | 
    
         
            +
                def InputUrl(self):
         
     | 
| 
      
 799 
     | 
    
         
            +
                    """输入图 Url。
         
     | 
| 
      
 800 
     | 
    
         
            +
            Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
         
     | 
| 
      
 801 
     | 
    
         
            +
            图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
         
     | 
| 
      
 802 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 803 
     | 
    
         
            +
                    """
         
     | 
| 
      
 804 
     | 
    
         
            +
                    return self._InputUrl
         
     | 
| 
      
 805 
     | 
    
         
            +
             
     | 
| 
      
 806 
     | 
    
         
            +
                @InputUrl.setter
         
     | 
| 
      
 807 
     | 
    
         
            +
                def InputUrl(self, InputUrl):
         
     | 
| 
      
 808 
     | 
    
         
            +
                    self._InputUrl = InputUrl
         
     | 
| 
      
 809 
     | 
    
         
            +
             
     | 
| 
      
 810 
     | 
    
         
            +
                @property
         
     | 
| 
      
 811 
     | 
    
         
            +
                def RspImgType(self):
         
     | 
| 
      
 812 
     | 
    
         
            +
                    """返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
         
     | 
| 
      
 813 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 814 
     | 
    
         
            +
                    """
         
     | 
| 
      
 815 
     | 
    
         
            +
                    return self._RspImgType
         
     | 
| 
      
 816 
     | 
    
         
            +
             
     | 
| 
      
 817 
     | 
    
         
            +
                @RspImgType.setter
         
     | 
| 
      
 818 
     | 
    
         
            +
                def RspImgType(self, RspImgType):
         
     | 
| 
      
 819 
     | 
    
         
            +
                    self._RspImgType = RspImgType
         
     | 
| 
      
 820 
     | 
    
         
            +
             
     | 
| 
      
 821 
     | 
    
         
            +
                @property
         
     | 
| 
      
 822 
     | 
    
         
            +
                def LogoAdd(self):
         
     | 
| 
      
 823 
     | 
    
         
            +
                    """为生成结果图添加标识的开关,默认为1。
         
     | 
| 
      
 824 
     | 
    
         
            +
            1:添加标识。
         
     | 
| 
      
 825 
     | 
    
         
            +
            0:不添加标识。
         
     | 
| 
      
 826 
     | 
    
         
            +
            其他数值:默认按1处理。
         
     | 
| 
      
 827 
     | 
    
         
            +
            建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
         
     | 
| 
      
 828 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 829 
     | 
    
         
            +
                    """
         
     | 
| 
      
 830 
     | 
    
         
            +
                    return self._LogoAdd
         
     | 
| 
      
 831 
     | 
    
         
            +
             
     | 
| 
      
 832 
     | 
    
         
            +
                @LogoAdd.setter
         
     | 
| 
      
 833 
     | 
    
         
            +
                def LogoAdd(self, LogoAdd):
         
     | 
| 
      
 834 
     | 
    
         
            +
                    self._LogoAdd = LogoAdd
         
     | 
| 
      
 835 
     | 
    
         
            +
             
     | 
| 
      
 836 
     | 
    
         
            +
                @property
         
     | 
| 
      
 837 
     | 
    
         
            +
                def LogoParam(self):
         
     | 
| 
      
 838 
     | 
    
         
            +
                    """标识内容设置。
         
     | 
| 
      
 839 
     | 
    
         
            +
            默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
         
     | 
| 
      
 840 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
         
     | 
| 
      
 841 
     | 
    
         
            +
                    """
         
     | 
| 
      
 842 
     | 
    
         
            +
                    return self._LogoParam
         
     | 
| 
      
 843 
     | 
    
         
            +
             
     | 
| 
      
 844 
     | 
    
         
            +
                @LogoParam.setter
         
     | 
| 
      
 845 
     | 
    
         
            +
                def LogoParam(self, LogoParam):
         
     | 
| 
      
 846 
     | 
    
         
            +
                    self._LogoParam = LogoParam
         
     | 
| 
      
 847 
     | 
    
         
            +
             
     | 
| 
      
 848 
     | 
    
         
            +
             
     | 
| 
      
 849 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 850 
     | 
    
         
            +
                    self._Ratio = params.get("Ratio")
         
     | 
| 
      
 851 
     | 
    
         
            +
                    self._InputImage = params.get("InputImage")
         
     | 
| 
      
 852 
     | 
    
         
            +
                    self._InputUrl = params.get("InputUrl")
         
     | 
| 
      
 853 
     | 
    
         
            +
                    self._RspImgType = params.get("RspImgType")
         
     | 
| 
      
 854 
     | 
    
         
            +
                    self._LogoAdd = params.get("LogoAdd")
         
     | 
| 
      
 855 
     | 
    
         
            +
                    if params.get("LogoParam") is not None:
         
     | 
| 
      
 856 
     | 
    
         
            +
                        self._LogoParam = LogoParam()
         
     | 
| 
      
 857 
     | 
    
         
            +
                        self._LogoParam._deserialize(params.get("LogoParam"))
         
     | 
| 
      
 858 
     | 
    
         
            +
                    memeber_set = set(params.keys())
         
     | 
| 
      
 859 
     | 
    
         
            +
                    for name, value in vars(self).items():
         
     | 
| 
      
 860 
     | 
    
         
            +
                        property_name = name[1:]
         
     | 
| 
      
 861 
     | 
    
         
            +
                        if property_name in memeber_set:
         
     | 
| 
      
 862 
     | 
    
         
            +
                            memeber_set.remove(property_name)
         
     | 
| 
      
 863 
     | 
    
         
            +
                    if len(memeber_set) > 0:
         
     | 
| 
      
 864 
     | 
    
         
            +
                        warnings.warn("%s fileds are useless." % ",".join(memeber_set))
         
     | 
| 
      
 865 
     | 
    
         
            +
                    
         
     | 
| 
      
 866 
     | 
    
         
            +
             
     | 
| 
      
 867 
     | 
    
         
            +
             
     | 
| 
      
 868 
     | 
    
         
            +
            class ImageOutpaintingResponse(AbstractModel):
         
     | 
| 
      
 869 
     | 
    
         
            +
                """ImageOutpainting返回参数结构体
         
     | 
| 
      
 870 
     | 
    
         
            +
             
     | 
| 
      
 871 
     | 
    
         
            +
                """
         
     | 
| 
      
 872 
     | 
    
         
            +
             
     | 
| 
      
 873 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 874 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 875 
     | 
    
         
            +
                    :param _ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
         
     | 
| 
      
 876 
     | 
    
         
            +
            如果传入 base64 则返回生成图 Base64 编码。
         
     | 
| 
      
 877 
     | 
    
         
            +
            如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
         
     | 
| 
      
 878 
     | 
    
         
            +
                    :type ResultImage: str
         
     | 
| 
      
 879 
     | 
    
         
            +
                    :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 880 
     | 
    
         
            +
                    :type RequestId: str
         
     | 
| 
      
 881 
     | 
    
         
            +
                    """
         
     | 
| 
      
 882 
     | 
    
         
            +
                    self._ResultImage = None
         
     | 
| 
      
 883 
     | 
    
         
            +
                    self._RequestId = None
         
     | 
| 
      
 884 
     | 
    
         
            +
             
     | 
| 
      
 885 
     | 
    
         
            +
                @property
         
     | 
| 
      
 886 
     | 
    
         
            +
                def ResultImage(self):
         
     | 
| 
      
 887 
     | 
    
         
            +
                    """根据入参 RspImgType 填入不同,返回不同的内容。
         
     | 
| 
      
 888 
     | 
    
         
            +
            如果传入 base64 则返回生成图 Base64 编码。
         
     | 
| 
      
 889 
     | 
    
         
            +
            如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
         
     | 
| 
      
 890 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 891 
     | 
    
         
            +
                    """
         
     | 
| 
      
 892 
     | 
    
         
            +
                    return self._ResultImage
         
     | 
| 
      
 893 
     | 
    
         
            +
             
     | 
| 
      
 894 
     | 
    
         
            +
                @ResultImage.setter
         
     | 
| 
      
 895 
     | 
    
         
            +
                def ResultImage(self, ResultImage):
         
     | 
| 
      
 896 
     | 
    
         
            +
                    self._ResultImage = ResultImage
         
     | 
| 
      
 897 
     | 
    
         
            +
             
     | 
| 
      
 898 
     | 
    
         
            +
                @property
         
     | 
| 
      
 899 
     | 
    
         
            +
                def RequestId(self):
         
     | 
| 
      
 900 
     | 
    
         
            +
                    """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 901 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 902 
     | 
    
         
            +
                    """
         
     | 
| 
      
 903 
     | 
    
         
            +
                    return self._RequestId
         
     | 
| 
      
 904 
     | 
    
         
            +
             
     | 
| 
      
 905 
     | 
    
         
            +
                @RequestId.setter
         
     | 
| 
      
 906 
     | 
    
         
            +
                def RequestId(self, RequestId):
         
     | 
| 
      
 907 
     | 
    
         
            +
                    self._RequestId = RequestId
         
     | 
| 
      
 908 
     | 
    
         
            +
             
     | 
| 
      
 909 
     | 
    
         
            +
             
     | 
| 
      
 910 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 911 
     | 
    
         
            +
                    self._ResultImage = params.get("ResultImage")
         
     | 
| 
      
 912 
     | 
    
         
            +
                    self._RequestId = params.get("RequestId")
         
     | 
| 
      
 913 
     | 
    
         
            +
             
     | 
| 
      
 914 
     | 
    
         
            +
             
     | 
| 
       534 
915 
     | 
    
         
             
            class ImageToImageRequest(AbstractModel):
         
     | 
| 
       535 
916 
     | 
    
         
             
                """ImageToImage请求参数结构体
         
     | 
| 
       536 
917 
     | 
    
         | 
| 
         @@ -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")
         
     | 
| 
         @@ -2006,6 +2006,29 @@ class CamClient(AbstractClient): 
     | 
|
| 
       2006 
2006 
     | 
    
         
             
                            raise TencentCloudSDKException(type(e).__name__, str(e))
         
     | 
| 
       2007 
2007 
     | 
    
         | 
| 
       2008 
2008 
     | 
    
         | 
| 
      
 2009 
     | 
    
         
            +
                def UpdateRoleSessionDuration(self, request):
         
     | 
| 
      
 2010 
     | 
    
         
            +
                    """修改角色会话时长
         
     | 
| 
      
 2011 
     | 
    
         
            +
             
     | 
| 
      
 2012 
     | 
    
         
            +
                    :param request: Request instance for UpdateRoleSessionDuration.
         
     | 
| 
      
 2013 
     | 
    
         
            +
                    :type request: :class:`tencentcloud.cam.v20190116.models.UpdateRoleSessionDurationRequest`
         
     | 
| 
      
 2014 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.cam.v20190116.models.UpdateRoleSessionDurationResponse`
         
     | 
| 
      
 2015 
     | 
    
         
            +
             
     | 
| 
      
 2016 
     | 
    
         
            +
                    """
         
     | 
| 
      
 2017 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 2018 
     | 
    
         
            +
                        params = request._serialize()
         
     | 
| 
      
 2019 
     | 
    
         
            +
                        headers = request.headers
         
     | 
| 
      
 2020 
     | 
    
         
            +
                        body = self.call("UpdateRoleSessionDuration", params, headers=headers)
         
     | 
| 
      
 2021 
     | 
    
         
            +
                        response = json.loads(body)
         
     | 
| 
      
 2022 
     | 
    
         
            +
                        model = models.UpdateRoleSessionDurationResponse()
         
     | 
| 
      
 2023 
     | 
    
         
            +
                        model._deserialize(response["Response"])
         
     | 
| 
      
 2024 
     | 
    
         
            +
                        return model
         
     | 
| 
      
 2025 
     | 
    
         
            +
                    except Exception as e:
         
     | 
| 
      
 2026 
     | 
    
         
            +
                        if isinstance(e, TencentCloudSDKException):
         
     | 
| 
      
 2027 
     | 
    
         
            +
                            raise
         
     | 
| 
      
 2028 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 2029 
     | 
    
         
            +
                            raise TencentCloudSDKException(type(e).__name__, str(e))
         
     | 
| 
      
 2030 
     | 
    
         
            +
             
     | 
| 
      
 2031 
     | 
    
         
            +
             
     | 
| 
       2009 
2032 
     | 
    
         
             
                def UpdateSAMLProvider(self, request):
         
     | 
| 
       2010 
2033 
     | 
    
         
             
                    """更新SAML身份提供商信息
         
     | 
| 
       2011 
2034 
     | 
    
         | 
| 
         @@ -32,6 +32,9 @@ FAILEDOPERATION_CICIDENTITYFORBIDDEN = 'FailedOperation.CICIdentityForbidden' 
     | 
|
| 
       32 
32 
     | 
    
         
             
            # 凭据操作失败。
         
     | 
| 
       33 
33 
     | 
    
         
             
            FAILEDOPERATION_FLOWAUTHILLEGAL = 'FailedOperation.FlowAuthIllegal'
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
      
 35 
     | 
    
         
            +
            # 获取用户地域信息失败
         
     | 
| 
      
 36 
     | 
    
         
            +
            FAILEDOPERATION_GETUSERAREAERROR = 'FailedOperation.GetUserAreaError'
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
       35 
38 
     | 
    
         
             
            # 集团策略不允许操作。
         
     | 
| 
       36 
39 
     | 
    
         
             
            FAILEDOPERATION_ORGANIZATIONPOLICYOPERATEERROR = 'FailedOperation.OrganizationPolicyOperateError'
         
     | 
| 
       37 
40 
     | 
    
         |