tencentcloud-sdk-python 3.0.1378__py2.py3-none-any.whl → 3.0.1379__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 (36) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/batch_client.py +3 -3
  3. tencentcloud/batch/v20170312/models.py +230 -168
  4. tencentcloud/cbs/v20170312/cbs_client.py +1 -1
  5. tencentcloud/cbs/v20170312/models.py +18 -18
  6. tencentcloud/clb/v20180317/clb_client.py +7 -7
  7. tencentcloud/clb/v20180317/models.py +51 -41
  8. tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
  9. tencentcloud/dbbrain/v20210527/models.py +368 -0
  10. tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
  11. tencentcloud/dnspod/v20210323/models.py +503 -0
  12. tencentcloud/domain/v20180808/errorcodes.py +3 -0
  13. tencentcloud/domain/v20180808/models.py +68 -44
  14. tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
  15. tencentcloud/mps/v20190612/models.py +211 -2
  16. tencentcloud/postgres/v20170312/models.py +12 -4
  17. tencentcloud/tcb/v20180608/models.py +4 -4
  18. tencentcloud/tdmq/v20200217/errorcodes.py +27 -0
  19. tencentcloud/thpc/v20211109/models.py +2 -2
  20. tencentcloud/thpc/v20220401/models.py +4 -4
  21. tencentcloud/thpc/v20230321/errorcodes.py +9 -0
  22. tencentcloud/thpc/v20230321/models.py +79 -0
  23. tencentcloud/thpc/v20230321/thpc_client.py +23 -0
  24. tencentcloud/tmt/v20180321/errorcodes.py +3 -0
  25. tencentcloud/tmt/v20180321/models.py +296 -1
  26. tencentcloud/tmt/v20180321/tmt_client.py +28 -0
  27. tencentcloud/vpc/v20170312/models.py +24 -18
  28. tencentcloud/waf/v20180125/models.py +15 -0
  29. tencentcloud/wedata/v20210820/errorcodes.py +9 -0
  30. tencentcloud/wedata/v20210820/models.py +1078 -0
  31. tencentcloud/wedata/v20210820/wedata_client.py +46 -0
  32. {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/METADATA +1 -1
  33. {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/RECORD +36 -36
  34. {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/LICENSE +0 -0
  35. {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/WHEEL +0 -0
  36. {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/top_level.txt +0 -0
@@ -3699,7 +3699,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
3699
3699
  :type NeedSupportIpv6: int
3700
3700
  :param _Name: 实例名(后续支持)
3701
3701
  :type Name: str
3702
- :param _DBVersion: 【废弃】不再需要指定,内核版本号与主实例保持一致
3702
+ :param _DBVersion: 不再需要指定,内核版本号与主实例保持一致
3703
3703
  :type DBVersion: str
3704
3704
  :param _DedicatedClusterId: 专属集群ID
3705
3705
  :type DedicatedClusterId: str
@@ -3953,13 +3953,17 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
3953
3953
 
3954
3954
  @property
3955
3955
  def DBVersion(self):
3956
- """【废弃】不再需要指定,内核版本号与主实例保持一致
3956
+ warnings.warn("parameter `DBVersion` is deprecated", DeprecationWarning)
3957
+
3958
+ """不再需要指定,内核版本号与主实例保持一致
3957
3959
  :rtype: str
3958
3960
  """
3959
3961
  return self._DBVersion
3960
3962
 
3961
3963
  @DBVersion.setter
3962
3964
  def DBVersion(self, DBVersion):
3965
+ warnings.warn("parameter `DBVersion` is deprecated", DeprecationWarning)
3966
+
3963
3967
  self._DBVersion = DBVersion
3964
3968
 
3965
3969
  @property
@@ -14012,7 +14016,7 @@ class InquiryPriceUpgradeDBInstanceRequest(AbstractModel):
14012
14016
  :type Memory: int
14013
14017
  :param _DBInstanceId: 实例ID,形如postgres-hez4fh0v
14014
14018
  :type DBInstanceId: str
14015
- :param _InstanceChargeType: 【废弃参数,不再生效】,实例计费类型。
14019
+ :param _InstanceChargeType: 实例计费类型。
14016
14020
  :type InstanceChargeType: str
14017
14021
  :param _Cpu: 实例的Cpu大小,单位Core
14018
14022
  :type Cpu: int
@@ -14058,13 +14062,17 @@ class InquiryPriceUpgradeDBInstanceRequest(AbstractModel):
14058
14062
 
14059
14063
  @property
14060
14064
  def InstanceChargeType(self):
14061
- """【废弃参数,不再生效】,实例计费类型。
14065
+ warnings.warn("parameter `InstanceChargeType` is deprecated", DeprecationWarning)
14066
+
14067
+ """实例计费类型。
14062
14068
  :rtype: str
14063
14069
  """
14064
14070
  return self._InstanceChargeType
14065
14071
 
14066
14072
  @InstanceChargeType.setter
14067
14073
  def InstanceChargeType(self, InstanceChargeType):
14074
+ warnings.warn("parameter `InstanceChargeType` is deprecated", DeprecationWarning)
14075
+
14068
14076
  self._InstanceChargeType = InstanceChargeType
14069
14077
 
14070
14078
  @property
@@ -7931,7 +7931,7 @@ class DescribeCbrServerVersionResponse(AbstractModel):
7931
7931
  :type VersionName: str
7932
7932
  :param _Remark: 备注
7933
7933
  :type Remark: str
7934
- :param _DockerfilePath: Dockefile的路径
7934
+ :param _DockerfilePath: Dockerfile的路径
7935
7935
  :type DockerfilePath: str
7936
7936
  :param _BuildDir: DockerBuild的目录
7937
7937
  :type BuildDir: str
@@ -8049,7 +8049,7 @@ class DescribeCbrServerVersionResponse(AbstractModel):
8049
8049
 
8050
8050
  @property
8051
8051
  def DockerfilePath(self):
8052
- """Dockefile的路径
8052
+ """Dockerfile的路径
8053
8053
  :rtype: str
8054
8054
  """
8055
8055
  return self._DockerfilePath
@@ -10582,7 +10582,7 @@ class DescribeCloudBaseRunServerVersionResponse(AbstractModel):
10582
10582
  :type VersionName: str
10583
10583
  :param _Remark: 备注
10584
10584
  :type Remark: str
10585
- :param _DockerfilePath: Dockefile的路径
10585
+ :param _DockerfilePath: Dockerfile的路径
10586
10586
  :type DockerfilePath: str
10587
10587
  :param _BuildDir: DockerBuild的目录
10588
10588
  :type BuildDir: str
@@ -10727,7 +10727,7 @@ class DescribeCloudBaseRunServerVersionResponse(AbstractModel):
10727
10727
 
10728
10728
  @property
10729
10729
  def DockerfilePath(self):
10730
- """Dockefile的路径
10730
+ """Dockerfile的路径
10731
10731
  :rtype: str
10732
10732
  """
10733
10733
  return self._DockerfilePath
@@ -95,9 +95,15 @@ FAILEDOPERATION_MAXMESSAGESIZEERROR = 'FailedOperation.MaxMessageSizeError'
95
95
  # 上传的msgID错误。
96
96
  FAILEDOPERATION_MESSAGEIDERROR = 'FailedOperation.MessageIDError'
97
97
 
98
+ # 修改集群失败
99
+ FAILEDOPERATION_MODIFYCLUSTER = 'FailedOperation.ModifyCluster'
100
+
98
101
  # 必须先清除关联命名空间才能继续操作。
99
102
  FAILEDOPERATION_NAMESPACEINUSE = 'FailedOperation.NamespaceInUse'
100
103
 
104
+ # 产品信息不存在
105
+ FAILEDOPERATION_PRODUCTNOTEXIST = 'FailedOperation.ProductNotExist'
106
+
101
107
  # PulsarAdminClient错误。
102
108
  FAILEDOPERATION_PULSARADMINERROR = 'FailedOperation.PulsarAdminError'
103
109
 
@@ -119,6 +125,9 @@ FAILEDOPERATION_SAVESECRETKEY = 'FailedOperation.SaveSecretKey'
119
125
  # 消息发送超时。
120
126
  FAILEDOPERATION_SENDMESSAGETIMEOUTERROR = 'FailedOperation.SendMessageTimeoutError'
121
127
 
128
+ # 发送消息失败
129
+ FAILEDOPERATION_SENDMSG = 'FailedOperation.SendMsg'
130
+
122
131
  # 发送消息失败。
123
132
  FAILEDOPERATION_SENDMSGFAILED = 'FailedOperation.SendMsgFailed'
124
133
 
@@ -185,9 +194,15 @@ INVALIDPARAMETER_TENANTNOTFOUND = 'InvalidParameter.TenantNotFound'
185
194
  # 没有获取到正确的 token。
186
195
  INVALIDPARAMETER_TOKENNOTFOUND = 'InvalidParameter.TokenNotFound'
187
196
 
197
+ # 无效的 vpc 信息或者子网信息
198
+ INVALIDPARAMETER_VPC = 'InvalidParameter.Vpc'
199
+
188
200
  # 参数取值错误。
189
201
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
190
202
 
203
+ # AckTime参数错误
204
+ INVALIDPARAMETERVALUE_ACKTIME = 'InvalidParameterValue.AckTime'
205
+
191
206
  # 至少需要提供一个参数。
192
207
  INVALIDPARAMETERVALUE_ATLEASTONE = 'InvalidParameterValue.AtLeastOne'
193
208
 
@@ -215,6 +230,9 @@ LIMITEXCEEDED_CLUSTERS = 'LimitExceeded.Clusters'
215
230
  # 实例下环境数量超过限制。
216
231
  LIMITEXCEEDED_ENVIRONMENTS = 'LimitExceeded.Environments'
217
232
 
233
+ # 消息轨迹查询时间周期太长
234
+ LIMITEXCEEDED_MSGTIME = 'LimitExceeded.MsgTime'
235
+
218
236
  # 实例下命名空间数量超过限额。
219
237
  LIMITEXCEEDED_NAMESPACES = 'LimitExceeded.Namespaces'
220
238
 
@@ -236,6 +254,9 @@ MISSINGPARAMETER = 'MissingParameter'
236
254
  # 必要参数没有传递。
237
255
  MISSINGPARAMETER_NEEDMOREPARAMS = 'MissingParameter.NeedMoreParams'
238
256
 
257
+ # 标签信息缺失
258
+ MISSINGPARAMETER_TAG = 'MissingParameter.Tag'
259
+
239
260
  # 订阅仍在消费中。
240
261
  OPERATIONDENIED_CONSUMERRUNNING = 'OperationDenied.ConsumerRunning'
241
262
 
@@ -329,8 +350,14 @@ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
329
350
  # 未知参数错误。
330
351
  UNKNOWNPARAMETER = 'UnknownParameter'
331
352
 
353
+ # Policy 参数错误
354
+ UNKNOWNPARAMETER_POLICY = 'UnknownParameter.Policy'
355
+
332
356
  # 操作不支持。
333
357
  UNSUPPORTEDOPERATION = 'UnsupportedOperation'
334
358
 
335
359
  # 该实例不支持降配操作。
336
360
  UNSUPPORTEDOPERATION_INSTANCEDOWNGRADE = 'UnsupportedOperation.InstanceDowngrade'
361
+
362
+ # 当前集群不支持Unack 操作
363
+ UNSUPPORTEDOPERATION_TOPICUNACK = 'UnsupportedOperation.TopicUnack'
@@ -711,7 +711,7 @@ class CreateClusterRequest(AbstractModel):
711
711
  :type ComputeNode: :class:`tencentcloud.thpc.v20211109.models.ComputeNode`
712
712
  :param _ComputeNodeCount: 指定计算节点的数量。默认取值:0。
713
713
  :type ComputeNodeCount: int
714
- :param _SchedulerType: 调度器类型。<br><li>SGE:SGE调度器。</li><br><li>SLURM:SLURM调度器。</li>
714
+ :param _SchedulerType: 调度器类型。<br><li>SLURM:SLURM调度器。</li>
715
715
  :type SchedulerType: str
716
716
  :param _ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像。
717
717
  :type ImageId: str
@@ -820,7 +820,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
820
820
 
821
821
  @property
822
822
  def SchedulerType(self):
823
- """调度器类型。<br><li>SGE:SGE调度器。</li><br><li>SLURM:SLURM调度器。</li>
823
+ """调度器类型。<br><li>SLURM:SLURM调度器。</li>
824
824
  :rtype: str
825
825
  """
826
826
  return self._SchedulerType
@@ -138,7 +138,7 @@ class AddNodesRequest(AbstractModel):
138
138
  :type SecurityGroupIds: list of str
139
139
  :param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
140
140
  :type ClientToken: str
141
- :param _QueueName: 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li><li>SGE默认队列为:all.q。</li>
141
+ :param _QueueName: 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li>
142
142
  :type QueueName: str
143
143
  :param _NodeRole: 添加节点角色。默认值:Compute<br><li>Compute:计算节点。</li><br><li>Login:登录节点。</li>
144
144
  :type NodeRole: str
@@ -340,7 +340,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
340
340
 
341
341
  @property
342
342
  def QueueName(self):
343
- """队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li><li>SGE默认队列为:all.q。</li>
343
+ """队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li>
344
344
  :rtype: str
345
345
  """
346
346
  return self._QueueName
@@ -1532,7 +1532,7 @@ class CreateClusterRequest(AbstractModel):
1532
1532
  :type ComputeNode: :class:`tencentcloud.thpc.v20220401.models.ComputeNode`
1533
1533
  :param _ComputeNodeCount: 指定计算节点的数量。默认取值:0。
1534
1534
  :type ComputeNodeCount: int
1535
- :param _SchedulerType: 调度器类型。默认取值:SLURM。<br><li>SGE:SGE调度器。</li><br><li>SLURM:SLURM调度器。</li>
1535
+ :param _SchedulerType: 调度器类型。默认取值:SLURM。<br><li>SLURM:SLURM调度器。</li>
1536
1536
  :type SchedulerType: str
1537
1537
  :param _ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。
1538
1538
  :type ImageId: str
@@ -1642,7 +1642,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
1642
1642
 
1643
1643
  @property
1644
1644
  def SchedulerType(self):
1645
- """调度器类型。默认取值:SLURM。<br><li>SGE:SGE调度器。</li><br><li>SLURM:SLURM调度器。</li>
1645
+ """调度器类型。默认取值:SLURM。<br><li>SLURM:SLURM调度器。</li>
1646
1646
  :rtype: str
1647
1647
  """
1648
1648
  return self._SchedulerType
@@ -62,6 +62,9 @@ INVALIDPARAMETERVALUE_NOTSUPPORTED = 'InvalidParameterValue.NotSupported'
62
62
  # 字段不支持此值。
63
63
  INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = 'InvalidParameterValue.ParametersNotSupported'
64
64
 
65
+ # 工作空间实例查找失败
66
+ INVALIDPARAMETERVALUE_SPACEIDNOTFOUND = 'InvalidParameterValue.SpaceIdNotFound'
67
+
65
68
  # 参数值过大。
66
69
  INVALIDPARAMETERVALUE_TOOLARGE = 'InvalidParameterValue.TooLarge'
67
70
 
@@ -149,5 +152,11 @@ UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = 'UnsupportedOperation.ParameterTooSmall
149
152
  # 队列内存在节点,不支持此操作。
150
153
  UNSUPPORTEDOPERATION_QUEUENOTEMPTY = 'UnsupportedOperation.QueueNotEmpty'
151
154
 
155
+ # 实例的付费模式不支持当前操作。
156
+ UNSUPPORTEDOPERATION_SPACECHARGETYPE = 'UnsupportedOperation.SpaceChargeType'
157
+
152
158
  # vpc冲突,不支持当前操作。
153
159
  UNSUPPORTEDOPERATION_VPCIDCONFLICT = 'UnsupportedOperation.VpcIdConflict'
160
+
161
+ # 隔离状态的工作空间实例不支持当前操作。
162
+ UNSUPPORTEDOPERATION_WORKSPACESTATEARREARS = 'UnsupportedOperation.WorkspaceStateArrears'
@@ -5331,6 +5331,85 @@ class ModifyWorkspacesAttributeResponse(AbstractModel):
5331
5331
  self._RequestId = params.get("RequestId")
5332
5332
 
5333
5333
 
5334
+ class ModifyWorkspacesRenewFlagRequest(AbstractModel):
5335
+ """ModifyWorkspacesRenewFlag请求参数结构体
5336
+
5337
+ """
5338
+
5339
+ def __init__(self):
5340
+ r"""
5341
+ :param _SpaceIds: 工作空间列表
5342
+ :type SpaceIds: list of str
5343
+ :param _RenewFlag: 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费</li><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费</li><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
5344
+ :type RenewFlag: str
5345
+ """
5346
+ self._SpaceIds = None
5347
+ self._RenewFlag = None
5348
+
5349
+ @property
5350
+ def SpaceIds(self):
5351
+ """工作空间列表
5352
+ :rtype: list of str
5353
+ """
5354
+ return self._SpaceIds
5355
+
5356
+ @SpaceIds.setter
5357
+ def SpaceIds(self, SpaceIds):
5358
+ self._SpaceIds = SpaceIds
5359
+
5360
+ @property
5361
+ def RenewFlag(self):
5362
+ """自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费</li><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费</li><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
5363
+ :rtype: str
5364
+ """
5365
+ return self._RenewFlag
5366
+
5367
+ @RenewFlag.setter
5368
+ def RenewFlag(self, RenewFlag):
5369
+ self._RenewFlag = RenewFlag
5370
+
5371
+
5372
+ def _deserialize(self, params):
5373
+ self._SpaceIds = params.get("SpaceIds")
5374
+ self._RenewFlag = params.get("RenewFlag")
5375
+ memeber_set = set(params.keys())
5376
+ for name, value in vars(self).items():
5377
+ property_name = name[1:]
5378
+ if property_name in memeber_set:
5379
+ memeber_set.remove(property_name)
5380
+ if len(memeber_set) > 0:
5381
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5382
+
5383
+
5384
+
5385
+ class ModifyWorkspacesRenewFlagResponse(AbstractModel):
5386
+ """ModifyWorkspacesRenewFlag返回参数结构体
5387
+
5388
+ """
5389
+
5390
+ def __init__(self):
5391
+ r"""
5392
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5393
+ :type RequestId: str
5394
+ """
5395
+ self._RequestId = None
5396
+
5397
+ @property
5398
+ def RequestId(self):
5399
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5400
+ :rtype: str
5401
+ """
5402
+ return self._RequestId
5403
+
5404
+ @RequestId.setter
5405
+ def RequestId(self, RequestId):
5406
+ self._RequestId = RequestId
5407
+
5408
+
5409
+ def _deserialize(self, params):
5410
+ self._RequestId = params.get("RequestId")
5411
+
5412
+
5334
5413
  class NodeActivity(AbstractModel):
5335
5414
  """节点活动信息。
5336
5415
 
@@ -516,6 +516,29 @@ class ThpcClient(AbstractClient):
516
516
  raise TencentCloudSDKException(type(e).__name__, str(e))
517
517
 
518
518
 
519
+ def ModifyWorkspacesRenewFlag(self, request):
520
+ """本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
521
+
522
+ :param request: Request instance for ModifyWorkspacesRenewFlag.
523
+ :type request: :class:`tencentcloud.thpc.v20230321.models.ModifyWorkspacesRenewFlagRequest`
524
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.ModifyWorkspacesRenewFlagResponse`
525
+
526
+ """
527
+ try:
528
+ params = request._serialize()
529
+ headers = request.headers
530
+ body = self.call("ModifyWorkspacesRenewFlag", params, headers=headers)
531
+ response = json.loads(body)
532
+ model = models.ModifyWorkspacesRenewFlagResponse()
533
+ model._deserialize(response["Response"])
534
+ return model
535
+ except Exception as e:
536
+ if isinstance(e, TencentCloudSDKException):
537
+ raise
538
+ else:
539
+ raise TencentCloudSDKException(type(e).__name__, str(e))
540
+
541
+
519
542
  def SetAutoScalingConfiguration(self, request):
520
543
  """本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
521
544
 
@@ -17,6 +17,9 @@
17
17
  # 操作失败。
18
18
  FAILEDOPERATION = 'FailedOperation'
19
19
 
20
+ # 图片下载出错
21
+ FAILEDOPERATION_DOWNLOADERR = 'FailedOperation.DownloadErr'
22
+
20
23
  # 用户区域与请求服务区域不一致。
21
24
  FAILEDOPERATION_ERRORUSERAREA = 'FailedOperation.ErrorUserArea'
22
25
 
@@ -18,6 +18,87 @@ import warnings
18
18
  from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
+ class BoundingBox(AbstractModel):
22
+ """段落文本框位置:x,y代表左上顶点,width和height代表宽高
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _X: 左上顶点x坐标
29
+ :type X: int
30
+ :param _Y: 左上顶点y坐标
31
+ :type Y: int
32
+ :param _Width: 宽
33
+ :type Width: int
34
+ :param _Height: 高
35
+ :type Height: int
36
+ """
37
+ self._X = None
38
+ self._Y = None
39
+ self._Width = None
40
+ self._Height = None
41
+
42
+ @property
43
+ def X(self):
44
+ """左上顶点x坐标
45
+ :rtype: int
46
+ """
47
+ return self._X
48
+
49
+ @X.setter
50
+ def X(self, X):
51
+ self._X = X
52
+
53
+ @property
54
+ def Y(self):
55
+ """左上顶点y坐标
56
+ :rtype: int
57
+ """
58
+ return self._Y
59
+
60
+ @Y.setter
61
+ def Y(self, Y):
62
+ self._Y = Y
63
+
64
+ @property
65
+ def Width(self):
66
+ """宽
67
+ :rtype: int
68
+ """
69
+ return self._Width
70
+
71
+ @Width.setter
72
+ def Width(self, Width):
73
+ self._Width = Width
74
+
75
+ @property
76
+ def Height(self):
77
+ """高
78
+ :rtype: int
79
+ """
80
+ return self._Height
81
+
82
+ @Height.setter
83
+ def Height(self, Height):
84
+ self._Height = Height
85
+
86
+
87
+ def _deserialize(self, params):
88
+ self._X = params.get("X")
89
+ self._Y = params.get("Y")
90
+ self._Width = params.get("Width")
91
+ self._Height = params.get("Height")
92
+ memeber_set = set(params.keys())
93
+ for name, value in vars(self).items():
94
+ property_name = name[1:]
95
+ if property_name in memeber_set:
96
+ memeber_set.remove(property_name)
97
+ if len(memeber_set) > 0:
98
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
99
+
100
+
101
+
21
102
  class FileTranslateRequest(AbstractModel):
22
103
  """FileTranslate请求参数结构体
23
104
 
@@ -519,6 +600,107 @@ class ImageRecord(AbstractModel):
519
600
 
520
601
 
521
602
 
603
+ class ImageTranslateLLMRequest(AbstractModel):
604
+ """ImageTranslateLLM请求参数结构体
605
+
606
+ """
607
+
608
+ def __init__(self):
609
+ r"""
610
+ :param _Url: 输入图 Url。 使用Url的时候,Data参数需要传入""。 图片限制:小于 10MB,分辨率建议600*800以上,格式支持 jpg、jpeg、png。
611
+
612
+ :type Url: str
613
+ """
614
+ self._Url = None
615
+
616
+ @property
617
+ def Url(self):
618
+ """输入图 Url。 使用Url的时候,Data参数需要传入""。 图片限制:小于 10MB,分辨率建议600*800以上,格式支持 jpg、jpeg、png。
619
+
620
+ :rtype: str
621
+ """
622
+ return self._Url
623
+
624
+ @Url.setter
625
+ def Url(self, Url):
626
+ self._Url = Url
627
+
628
+
629
+ def _deserialize(self, params):
630
+ self._Url = params.get("Url")
631
+ memeber_set = set(params.keys())
632
+ for name, value in vars(self).items():
633
+ property_name = name[1:]
634
+ if property_name in memeber_set:
635
+ memeber_set.remove(property_name)
636
+ if len(memeber_set) > 0:
637
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
638
+
639
+
640
+
641
+ class ImageTranslateLLMResponse(AbstractModel):
642
+ """ImageTranslateLLM返回参数结构体
643
+
644
+ """
645
+
646
+ def __init__(self):
647
+ r"""
648
+ :param _Angle: 逆时针图片角度,取值范围为0-359
649
+ :type Angle: float
650
+ :param _TransDetails: 翻译详情信息
651
+ :type TransDetails: list of TransDetail
652
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
653
+ :type RequestId: str
654
+ """
655
+ self._Angle = None
656
+ self._TransDetails = None
657
+ self._RequestId = None
658
+
659
+ @property
660
+ def Angle(self):
661
+ """逆时针图片角度,取值范围为0-359
662
+ :rtype: float
663
+ """
664
+ return self._Angle
665
+
666
+ @Angle.setter
667
+ def Angle(self, Angle):
668
+ self._Angle = Angle
669
+
670
+ @property
671
+ def TransDetails(self):
672
+ """翻译详情信息
673
+ :rtype: list of TransDetail
674
+ """
675
+ return self._TransDetails
676
+
677
+ @TransDetails.setter
678
+ def TransDetails(self, TransDetails):
679
+ self._TransDetails = TransDetails
680
+
681
+ @property
682
+ def RequestId(self):
683
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
684
+ :rtype: str
685
+ """
686
+ return self._RequestId
687
+
688
+ @RequestId.setter
689
+ def RequestId(self, RequestId):
690
+ self._RequestId = RequestId
691
+
692
+
693
+ def _deserialize(self, params):
694
+ self._Angle = params.get("Angle")
695
+ if params.get("TransDetails") is not None:
696
+ self._TransDetails = []
697
+ for item in params.get("TransDetails"):
698
+ obj = TransDetail()
699
+ obj._deserialize(item)
700
+ self._TransDetails.append(obj)
701
+ self._RequestId = params.get("RequestId")
702
+
703
+
522
704
  class ImageTranslateRequest(AbstractModel):
523
705
  """ImageTranslate请求参数结构体
524
706
 
@@ -1880,4 +2062,117 @@ class TextTranslateResponse(AbstractModel):
1880
2062
  self._Source = params.get("Source")
1881
2063
  self._Target = params.get("Target")
1882
2064
  self._UsedAmount = params.get("UsedAmount")
1883
- self._RequestId = params.get("RequestId")
2065
+ self._RequestId = params.get("RequestId")
2066
+
2067
+
2068
+ class TransDetail(AbstractModel):
2069
+ """大模型图片翻译详情信息
2070
+
2071
+ """
2072
+
2073
+ def __init__(self):
2074
+ r"""
2075
+ :param _SourceLineText: 当前行的原文本
2076
+ :type SourceLineText: str
2077
+ :param _TargetLineText: 当前行的译文
2078
+ :type TargetLineText: str
2079
+ :param _BoundingBox: 段落文本框位置
2080
+ :type BoundingBox: :class:`tencentcloud.tmt.v20180321.models.BoundingBox`
2081
+ :param _LinesCount: 行数
2082
+ :type LinesCount: int
2083
+ :param _LineHeight: 行高
2084
+ :type LineHeight: int
2085
+ :param _SpamCode: 正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。
2086
+ :type SpamCode: int
2087
+ """
2088
+ self._SourceLineText = None
2089
+ self._TargetLineText = None
2090
+ self._BoundingBox = None
2091
+ self._LinesCount = None
2092
+ self._LineHeight = None
2093
+ self._SpamCode = None
2094
+
2095
+ @property
2096
+ def SourceLineText(self):
2097
+ """当前行的原文本
2098
+ :rtype: str
2099
+ """
2100
+ return self._SourceLineText
2101
+
2102
+ @SourceLineText.setter
2103
+ def SourceLineText(self, SourceLineText):
2104
+ self._SourceLineText = SourceLineText
2105
+
2106
+ @property
2107
+ def TargetLineText(self):
2108
+ """当前行的译文
2109
+ :rtype: str
2110
+ """
2111
+ return self._TargetLineText
2112
+
2113
+ @TargetLineText.setter
2114
+ def TargetLineText(self, TargetLineText):
2115
+ self._TargetLineText = TargetLineText
2116
+
2117
+ @property
2118
+ def BoundingBox(self):
2119
+ """段落文本框位置
2120
+ :rtype: :class:`tencentcloud.tmt.v20180321.models.BoundingBox`
2121
+ """
2122
+ return self._BoundingBox
2123
+
2124
+ @BoundingBox.setter
2125
+ def BoundingBox(self, BoundingBox):
2126
+ self._BoundingBox = BoundingBox
2127
+
2128
+ @property
2129
+ def LinesCount(self):
2130
+ """行数
2131
+ :rtype: int
2132
+ """
2133
+ return self._LinesCount
2134
+
2135
+ @LinesCount.setter
2136
+ def LinesCount(self, LinesCount):
2137
+ self._LinesCount = LinesCount
2138
+
2139
+ @property
2140
+ def LineHeight(self):
2141
+ """行高
2142
+ :rtype: int
2143
+ """
2144
+ return self._LineHeight
2145
+
2146
+ @LineHeight.setter
2147
+ def LineHeight(self, LineHeight):
2148
+ self._LineHeight = LineHeight
2149
+
2150
+ @property
2151
+ def SpamCode(self):
2152
+ """正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。
2153
+ :rtype: int
2154
+ """
2155
+ return self._SpamCode
2156
+
2157
+ @SpamCode.setter
2158
+ def SpamCode(self, SpamCode):
2159
+ self._SpamCode = SpamCode
2160
+
2161
+
2162
+ def _deserialize(self, params):
2163
+ self._SourceLineText = params.get("SourceLineText")
2164
+ self._TargetLineText = params.get("TargetLineText")
2165
+ if params.get("BoundingBox") is not None:
2166
+ self._BoundingBox = BoundingBox()
2167
+ self._BoundingBox._deserialize(params.get("BoundingBox"))
2168
+ self._LinesCount = params.get("LinesCount")
2169
+ self._LineHeight = params.get("LineHeight")
2170
+ self._SpamCode = params.get("SpamCode")
2171
+ memeber_set = set(params.keys())
2172
+ for name, value in vars(self).items():
2173
+ property_name = name[1:]
2174
+ if property_name in memeber_set:
2175
+ memeber_set.remove(property_name)
2176
+ if len(memeber_set) > 0:
2177
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2178
+