tccli 3.0.1310.1__py2.py3-none-any.whl → 3.0.1312.1__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 (57) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +22 -2
  3. tccli/services/autoscaling/v20180419/api.json +19 -10
  4. tccli/services/batch/v20170312/api.json +119 -143
  5. tccli/services/batch/v20170312/examples.json +5 -5
  6. tccli/services/billing/billing_client.py +867 -125
  7. tccli/services/billing/v20180709/api.json +1336 -45
  8. tccli/services/billing/v20180709/examples.json +136 -0
  9. tccli/services/cbs/v20170312/api.json +19 -16
  10. tccli/services/cbs/v20170312/examples.json +1 -1
  11. tccli/services/clb/v20180317/api.json +33 -33
  12. tccli/services/clb/v20180317/examples.json +8 -8
  13. tccli/services/cynosdb/v20190107/api.json +2 -2
  14. tccli/services/cynosdb/v20190107/examples.json +1 -1
  15. tccli/services/dbbrain/dbbrain_client.py +147 -41
  16. tccli/services/dbbrain/v20210527/api.json +224 -0
  17. tccli/services/dbbrain/v20210527/examples.json +16 -0
  18. tccli/services/dnspod/dnspod_client.py +53 -0
  19. tccli/services/dnspod/v20210323/api.json +287 -0
  20. tccli/services/dnspod/v20210323/examples.json +8 -0
  21. tccli/services/domain/v20180808/api.json +21 -21
  22. tccli/services/domain/v20180808/examples.json +2 -2
  23. tccli/services/goosefs/v20220519/api.json +5 -5
  24. tccli/services/hunyuan/v20230901/api.json +123 -0
  25. tccli/services/ims/v20201229/api.json +93 -102
  26. tccli/services/lighthouse/v20200324/api.json +2 -2
  27. tccli/services/lke/v20231130/api.json +117 -2
  28. tccli/services/lkeap/v20240522/api.json +1 -1
  29. tccli/services/mps/v20190612/api.json +96 -1
  30. tccli/services/postgres/v20170312/api.json +4 -4
  31. tccli/services/tag/v20180813/api.json +4 -4
  32. tccli/services/tcb/v20180608/api.json +25 -5
  33. tccli/services/tcb/v20180608/examples.json +1 -1
  34. tccli/services/teo/v20220901/api.json +45 -24
  35. tccli/services/thpc/thpc_client.py +53 -0
  36. tccli/services/thpc/v20211109/api.json +3 -3
  37. tccli/services/thpc/v20220401/api.json +4 -4
  38. tccli/services/thpc/v20230321/api.json +48 -5
  39. tccli/services/thpc/v20230321/examples.json +8 -0
  40. tccli/services/tione/v20211111/api.json +159 -4
  41. tccli/services/tke/v20180525/api.json +10 -10
  42. tccli/services/tmt/tmt_client.py +61 -8
  43. tccli/services/tmt/v20180321/api.json +166 -0
  44. tccli/services/tmt/v20180321/examples.json +14 -0
  45. tccli/services/trtc/v20190722/api.json +9 -0
  46. tccli/services/vod/v20180717/api.json +1 -1
  47. tccli/services/vpc/v20170312/api.json +9 -9
  48. tccli/services/vpc/v20170312/examples.json +6 -6
  49. tccli/services/waf/v20180125/api.json +11 -0
  50. tccli/services/wedata/v20210820/api.json +603 -0
  51. tccli/services/wedata/v20210820/examples.json +16 -0
  52. tccli/services/wedata/wedata_client.py +106 -0
  53. {tccli-3.0.1310.1.dist-info → tccli-3.0.1312.1.dist-info}/METADATA +2 -2
  54. {tccli-3.0.1310.1.dist-info → tccli-3.0.1312.1.dist-info}/RECORD +57 -57
  55. {tccli-3.0.1310.1.dist-info → tccli-3.0.1312.1.dist-info}/WHEEL +0 -0
  56. {tccli-3.0.1310.1.dist-info → tccli-3.0.1312.1.dist-info}/entry_points.txt +0 -0
  57. {tccli-3.0.1310.1.dist-info → tccli-3.0.1312.1.dist-info}/license_files/LICENSE +0 -0
@@ -5038,6 +5038,23 @@
5038
5038
  ],
5039
5039
  "usage": "both"
5040
5040
  },
5041
+ "ExecAction": {
5042
+ "document": "执行命令探针检查行为",
5043
+ "members": [
5044
+ {
5045
+ "disabled": false,
5046
+ "document": "执行命令列表",
5047
+ "example": "[\"ls\", \"la\", \"./\"]",
5048
+ "member": "string",
5049
+ "name": "Command",
5050
+ "output_required": false,
5051
+ "required": false,
5052
+ "type": "list",
5053
+ "value_allowed_null": false
5054
+ }
5055
+ ],
5056
+ "usage": "both"
5057
+ },
5041
5058
  "Filter": {
5042
5059
  "document": "过滤器",
5043
5060
  "members": [
@@ -5275,6 +5292,17 @@
5275
5292
  "required": false,
5276
5293
  "type": "string",
5277
5294
  "value_allowed_null": false
5295
+ },
5296
+ {
5297
+ "disabled": false,
5298
+ "document": "调用端口",
5299
+ "example": "8051",
5300
+ "member": "int64",
5301
+ "name": "Port",
5302
+ "output_required": false,
5303
+ "required": false,
5304
+ "type": "int",
5305
+ "value_allowed_null": false
5278
5306
  }
5279
5307
  ],
5280
5308
  "usage": "both"
@@ -8108,6 +8136,34 @@
8108
8136
  ],
8109
8137
  "usage": "out"
8110
8138
  },
8139
+ "NumOrPercent": {
8140
+ "document": "用于表示百分比或数量",
8141
+ "members": [
8142
+ {
8143
+ "disabled": false,
8144
+ "document": "Num,Percent ,分别表示数量和百分比,默认为 Num",
8145
+ "example": "Num",
8146
+ "member": "string",
8147
+ "name": "Type",
8148
+ "output_required": false,
8149
+ "required": false,
8150
+ "type": "string",
8151
+ "value_allowed_null": false
8152
+ },
8153
+ {
8154
+ "disabled": false,
8155
+ "document": "数值",
8156
+ "example": "10",
8157
+ "member": "int64",
8158
+ "name": "Value",
8159
+ "output_required": false,
8160
+ "required": false,
8161
+ "type": "int",
8162
+ "value_allowed_null": false
8163
+ }
8164
+ ],
8165
+ "usage": "both"
8166
+ },
8111
8167
  "Option": {
8112
8168
  "document": "键值对",
8113
8169
  "members": [
@@ -8473,6 +8529,39 @@
8473
8529
  "required": false,
8474
8530
  "type": "object",
8475
8531
  "value_allowed_null": false
8532
+ },
8533
+ {
8534
+ "disabled": false,
8535
+ "document": "执行命令检查 行为",
8536
+ "example": "无",
8537
+ "member": "ExecAction",
8538
+ "name": "Exec",
8539
+ "output_required": false,
8540
+ "required": false,
8541
+ "type": "object",
8542
+ "value_allowed_null": false
8543
+ },
8544
+ {
8545
+ "disabled": false,
8546
+ "document": "tcp socket 检查行为",
8547
+ "example": "无",
8548
+ "member": "TCPSocketAction",
8549
+ "name": "TCPSocket",
8550
+ "output_required": false,
8551
+ "required": false,
8552
+ "type": "object",
8553
+ "value_allowed_null": false
8554
+ },
8555
+ {
8556
+ "disabled": false,
8557
+ "document": "探针类型,默认 HTTPGet,可选值:HTTPGet、Exec、TCPSocket",
8558
+ "example": "HTTPGet",
8559
+ "member": "string",
8560
+ "name": "ActionType",
8561
+ "output_required": false,
8562
+ "required": false,
8563
+ "type": "string",
8564
+ "value_allowed_null": false
8476
8565
  }
8477
8566
  ],
8478
8567
  "usage": "both"
@@ -8890,6 +8979,34 @@
8890
8979
  ],
8891
8980
  "usage": "out"
8892
8981
  },
8982
+ "RollingUpdate": {
8983
+ "document": "滚动更新策略",
8984
+ "members": [
8985
+ {
8986
+ "disabled": false,
8987
+ "document": "滚动更新的最大不可用",
8988
+ "example": "无",
8989
+ "member": "NumOrPercent",
8990
+ "name": "MaxUnavailable",
8991
+ "output_required": false,
8992
+ "required": false,
8993
+ "type": "object",
8994
+ "value_allowed_null": false
8995
+ },
8996
+ {
8997
+ "disabled": false,
8998
+ "document": "滚动更新的最大新增实例",
8999
+ "example": "无",
9000
+ "member": "NumOrPercent",
9001
+ "name": "MaxSurge",
9002
+ "output_required": false,
9003
+ "required": false,
9004
+ "type": "object",
9005
+ "value_allowed_null": false
9006
+ }
9007
+ ],
9008
+ "usage": "both"
9009
+ },
8893
9010
  "SSHConfig": {
8894
9011
  "document": "notebook ssh端口配置",
8895
9012
  "members": [
@@ -9803,6 +9920,16 @@
9803
9920
  "output_required": false,
9804
9921
  "type": "list",
9805
9922
  "value_allowed_null": false
9923
+ },
9924
+ {
9925
+ "disabled": false,
9926
+ "document": "用于监控的创建来源字段",
9927
+ "example": "NORMAL",
9928
+ "member": "string",
9929
+ "name": "MonitorSource",
9930
+ "output_required": false,
9931
+ "type": "string",
9932
+ "value_allowed_null": false
9806
9933
  }
9807
9934
  ],
9808
9935
  "usage": "out"
@@ -10205,6 +10332,17 @@
10205
10332
  "required": false,
10206
10333
  "type": "object",
10207
10334
  "value_allowed_null": false
10335
+ },
10336
+ {
10337
+ "disabled": false,
10338
+ "document": "滚动更新配置",
10339
+ "example": "无",
10340
+ "member": "RollingUpdate",
10341
+ "name": "RollingUpdate",
10342
+ "output_required": false,
10343
+ "required": false,
10344
+ "type": "object",
10345
+ "value_allowed_null": false
10208
10346
  }
10209
10347
  ],
10210
10348
  "usage": "both"
@@ -10364,7 +10502,7 @@
10364
10502
  "example": "TI.S.MEDIUM.POST",
10365
10503
  "member": "string",
10366
10504
  "name": "SpecName",
10367
- "required": true,
10505
+ "output_required": true,
10368
10506
  "type": "string",
10369
10507
  "value_allowed_null": false
10370
10508
  },
@@ -10374,7 +10512,7 @@
10374
10512
  "example": "70",
10375
10513
  "member": "uint64",
10376
10514
  "name": "TotalCost",
10377
- "required": true,
10515
+ "output_required": true,
10378
10516
  "type": "int",
10379
10517
  "value_allowed_null": false
10380
10518
  },
@@ -10384,7 +10522,7 @@
10384
10522
  "example": "70",
10385
10523
  "member": "uint64",
10386
10524
  "name": "RealTotalCost",
10387
- "required": true,
10525
+ "output_required": true,
10388
10526
  "type": "int",
10389
10527
  "value_allowed_null": false
10390
10528
  },
@@ -10394,7 +10532,7 @@
10394
10532
  "example": "1",
10395
10533
  "member": "uint64",
10396
10534
  "name": "SpecCount",
10397
- "required": false,
10535
+ "output_required": true,
10398
10536
  "type": "int",
10399
10537
  "value_allowed_null": false
10400
10538
  }
@@ -10690,6 +10828,23 @@
10690
10828
  ],
10691
10829
  "type": "object"
10692
10830
  },
10831
+ "TCPSocketAction": {
10832
+ "document": "tcp socket 健康探针检查行为",
10833
+ "members": [
10834
+ {
10835
+ "disabled": false,
10836
+ "document": "调用端口",
10837
+ "example": "8501",
10838
+ "member": "int64",
10839
+ "name": "Port",
10840
+ "output_required": false,
10841
+ "required": false,
10842
+ "type": "int",
10843
+ "value_allowed_null": false
10844
+ }
10845
+ ],
10846
+ "usage": "both"
10847
+ },
10693
10848
  "TJCallInfo": {
10694
10849
  "document": "太极服务的调用信息",
10695
10850
  "members": [
@@ -17599,14 +17599,14 @@
17599
17599
  "members": [
17600
17600
  {
17601
17601
  "disabled": false,
17602
- "document": "该节点属于podCIDR大小自定义模式时,可指定节点上运行的pod数量上限",
17602
+ "document": "该节点属于podCIDR大小自定义模式时,可指定节点上运行的pod数量上限\n注意:此字段可能返回 null,表示取不到有效值。",
17603
17603
  "example": "16",
17604
17604
  "member": "int64",
17605
17605
  "name": "DesiredPodNumber",
17606
17606
  "output_required": true,
17607
17607
  "required": true,
17608
17608
  "type": "int",
17609
- "value_allowed_null": false
17609
+ "value_allowed_null": true
17610
17610
  },
17611
17611
  {
17612
17612
  "disabled": false,
@@ -17621,14 +17621,14 @@
17621
17621
  },
17622
17622
  {
17623
17623
  "disabled": false,
17624
- "document": "base64 编码的用户脚本,在初始化节点之前执行,目前只对添加已有节点生效",
17624
+ "document": "base64 编码的用户脚本,在初始化节点之前执行,目前只对添加已有节点生效\n注意:此字段可能返回 null,表示取不到有效值。",
17625
17625
  "example": "#!/bin/sh echo \"hello world\"",
17626
17626
  "member": "string",
17627
17627
  "name": "PreStartUserScript",
17628
17628
  "output_required": true,
17629
17629
  "required": true,
17630
17630
  "type": "string",
17631
- "value_allowed_null": false
17631
+ "value_allowed_null": true
17632
17632
  },
17633
17633
  {
17634
17634
  "disabled": false,
@@ -17643,36 +17643,36 @@
17643
17643
  },
17644
17644
  {
17645
17645
  "disabled": false,
17646
- "document": "数据盘挂载点, 默认不挂载数据盘. 已格式化的 ext3,ext4,xfs 文件系统的数据盘将直接挂载,其他文件系统或未格式化的数据盘将自动格式化为ext4 (tlinux系统格式化成xfs)并挂载,请注意备份数据! 无数据盘或有多块数据盘的云主机此设置不生效。\n注意,注意,多盘场景请使用下方的DataDisks数据结构,设置对应的云盘类型、云盘大小、挂载路径、是否格式化等信息。",
17646
+ "document": "数据盘挂载点, 默认不挂载数据盘. 已格式化的 ext3,ext4,xfs 文件系统的数据盘将直接挂载,其他文件系统或未格式化的数据盘将自动格式化为ext4 (tlinux系统格式化成xfs)并挂载,请注意备份数据! 无数据盘或有多块数据盘的云主机此设置不生效。\n注意,注意,多盘场景请使用下方的DataDisks数据结构,设置对应的云盘类型、云盘大小、挂载路径、是否格式化等信息。\n注意:此字段可能返回 null,表示取不到有效值。",
17647
17647
  "example": "/tmp",
17648
17648
  "member": "string",
17649
17649
  "name": "MountTarget",
17650
17650
  "output_required": true,
17651
17651
  "required": false,
17652
17652
  "type": "string",
17653
- "value_allowed_null": false
17653
+ "value_allowed_null": true
17654
17654
  },
17655
17655
  {
17656
17656
  "disabled": false,
17657
- "document": "dockerd --graph 指定值, 默认为 /var/lib/docker",
17657
+ "document": "dockerd --graph 指定值, 默认为 /var/lib/docker\n注意:此字段可能返回 null,表示取不到有效值。",
17658
17658
  "example": "/var/lib/docker",
17659
17659
  "member": "string",
17660
17660
  "name": "DockerGraphPath",
17661
17661
  "output_required": true,
17662
17662
  "required": false,
17663
17663
  "type": "string",
17664
- "value_allowed_null": false
17664
+ "value_allowed_null": true
17665
17665
  },
17666
17666
  {
17667
17667
  "disabled": false,
17668
- "document": "base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度",
17668
+ "document": "base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度\n注意:此字段可能返回 null,表示取不到有效值。",
17669
17669
  "example": "#!/bin/sh echo \"hello world\"",
17670
17670
  "member": "string",
17671
17671
  "name": "UserScript",
17672
17672
  "output_required": true,
17673
17673
  "required": false,
17674
17674
  "type": "string",
17675
- "value_allowed_null": false
17675
+ "value_allowed_null": true
17676
17676
  },
17677
17677
  {
17678
17678
  "disabled": false,
@@ -121,7 +121,7 @@ def doTextTranslateBatch(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doImageTranslate(args, parsed_globals):
124
+ def doImageTranslateLLM(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,11 @@ def doImageTranslate(args, parsed_globals):
150
150
  client = mod.TmtClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.ImageTranslateRequest()
153
+ model = models.ImageTranslateLLMRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.ImageTranslate(model)
157
+ rsp = client.ImageTranslateLLM(model)
158
158
  result = rsp.to_json_string()
159
159
  try:
160
160
  json_obj = json.loads(result)
@@ -225,6 +225,58 @@ def doGetFileTranslate(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doFileTranslate(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.TmtClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.FileTranslateRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.FileTranslate(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doTextTranslate(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -277,7 +329,7 @@ def doTextTranslate(args, parsed_globals):
277
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
330
 
279
331
 
280
- def doFileTranslate(args, parsed_globals):
332
+ def doImageTranslate(args, parsed_globals):
281
333
  g_param = parse_global_arg(parsed_globals)
282
334
 
283
335
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -306,11 +358,11 @@ def doFileTranslate(args, parsed_globals):
306
358
  client = mod.TmtClient(cred, g_param[OptionsDefine.Region], profile)
307
359
  client._sdkVersion += ("_CLI_" + __version__)
308
360
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
- model = models.FileTranslateRequest()
361
+ model = models.ImageTranslateRequest()
310
362
  model.from_json_string(json.dumps(args))
311
363
  start_time = time.time()
312
364
  while True:
313
- rsp = client.FileTranslate(model)
365
+ rsp = client.ImageTranslate(model)
314
366
  result = rsp.to_json_string()
315
367
  try:
316
368
  json_obj = json.loads(result)
@@ -394,10 +446,11 @@ MODELS_MAP = {
394
446
  ACTION_MAP = {
395
447
  "LanguageDetect": doLanguageDetect,
396
448
  "TextTranslateBatch": doTextTranslateBatch,
397
- "ImageTranslate": doImageTranslate,
449
+ "ImageTranslateLLM": doImageTranslateLLM,
398
450
  "GetFileTranslate": doGetFileTranslate,
399
- "TextTranslate": doTextTranslate,
400
451
  "FileTranslate": doFileTranslate,
452
+ "TextTranslate": doTextTranslate,
453
+ "ImageTranslate": doImageTranslate,
401
454
  "SpeechTranslate": doSpeechTranslate,
402
455
 
403
456
  }
@@ -21,6 +21,13 @@
21
21
  "output": "ImageTranslateResponse",
22
22
  "status": "online"
23
23
  },
24
+ "ImageTranslateLLM": {
25
+ "document": "提供18种语言的图片翻译服务,可自动识别图片中的文本内容并翻译成目标语言,识别后的文本按行翻译,后续会提供可按段落翻译的版本。\n\n- 输入图片格式:png、jpg、jpeg等常用图片格式,不支持gif动图。\n- 输出图片格式:jpg。\n\n提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。",
26
+ "input": "ImageTranslateLLMRequest",
27
+ "name": "端到端图片翻译",
28
+ "output": "ImageTranslateLLMResponse",
29
+ "status": "online"
30
+ },
24
31
  "LanguageDetect": {
25
32
  "document": "可自动识别文本内容的语言种类,轻量高效,无需额外实现判断方式,使面向客户的服务体验更佳。 <br />\n提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。",
26
33
  "input": "LanguageDetectRequest",
@@ -57,6 +64,52 @@
57
64
  "serviceShortName": "tmt"
58
65
  },
59
66
  "objects": {
67
+ "BoundingBox": {
68
+ "document": "段落文本框位置:x,y代表左上顶点,width和height代表宽高",
69
+ "members": [
70
+ {
71
+ "disabled": false,
72
+ "document": "左上顶点x坐标",
73
+ "example": "0",
74
+ "member": "int64",
75
+ "name": "X",
76
+ "output_required": false,
77
+ "type": "int",
78
+ "value_allowed_null": false
79
+ },
80
+ {
81
+ "disabled": false,
82
+ "document": "左上顶点y坐标",
83
+ "example": "0",
84
+ "member": "int64",
85
+ "name": "Y",
86
+ "output_required": false,
87
+ "type": "int",
88
+ "value_allowed_null": false
89
+ },
90
+ {
91
+ "disabled": false,
92
+ "document": "宽",
93
+ "example": "10",
94
+ "member": "int64",
95
+ "name": "Width",
96
+ "output_required": false,
97
+ "type": "int",
98
+ "value_allowed_null": false
99
+ },
100
+ {
101
+ "disabled": false,
102
+ "document": "高",
103
+ "example": "10",
104
+ "member": "int64",
105
+ "name": "Height",
106
+ "output_required": false,
107
+ "type": "int",
108
+ "value_allowed_null": false
109
+ }
110
+ ],
111
+ "usage": "out"
112
+ },
60
113
  "FileTranslateRequest": {
61
114
  "document": "FileTranslate请求参数结构体",
62
115
  "members": [
@@ -276,6 +329,53 @@
276
329
  ],
277
330
  "usage": "out"
278
331
  },
332
+ "ImageTranslateLLMRequest": {
333
+ "document": "ImageTranslateLLM请求参数结构体",
334
+ "members": [
335
+ {
336
+ "disabled": false,
337
+ "document": "输入图 Url。 使用Url的时候,Data参数需要传入\"\"。 图片限制:小于 10MB,分辨率建议600*800以上,格式支持 jpg、jpeg、png。\n",
338
+ "example": "https://xxx.com/image.jpg",
339
+ "member": "string",
340
+ "name": "Url",
341
+ "required": false,
342
+ "type": "string"
343
+ }
344
+ ],
345
+ "type": "object"
346
+ },
347
+ "ImageTranslateLLMResponse": {
348
+ "document": "ImageTranslateLLM返回参数结构体",
349
+ "members": [
350
+ {
351
+ "disabled": false,
352
+ "document": "逆时针图片角度,取值范围为0-359",
353
+ "example": "90",
354
+ "member": "float",
355
+ "name": "Angle",
356
+ "output_required": false,
357
+ "type": "float",
358
+ "value_allowed_null": false
359
+ },
360
+ {
361
+ "disabled": false,
362
+ "document": "翻译详情信息",
363
+ "example": "[{\"BoundingBox\":{\"Height\":26,\"Width\":240,\"X\":532,\"Y\":53},\"LineHeight\":23,\"LinesCount\":1,\"SourceLineText\":\"你好\",\"TargetLineText\":\"hello\"}]",
364
+ "member": "TransDetail",
365
+ "name": "TransDetails",
366
+ "output_required": false,
367
+ "type": "list",
368
+ "value_allowed_null": false
369
+ },
370
+ {
371
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
372
+ "member": "string",
373
+ "name": "RequestId",
374
+ "type": "string"
375
+ }
376
+ ],
377
+ "type": "object"
378
+ },
279
379
  "ImageTranslateRequest": {
280
380
  "document": "ImageTranslate请求参数结构体",
281
381
  "members": [
@@ -936,6 +1036,72 @@
936
1036
  }
937
1037
  ],
938
1038
  "type": "object"
1039
+ },
1040
+ "TransDetail": {
1041
+ "document": "大模型图片翻译详情信息",
1042
+ "members": [
1043
+ {
1044
+ "disabled": false,
1045
+ "document": "当前行的原文本",
1046
+ "example": "你好",
1047
+ "member": "string",
1048
+ "name": "SourceLineText",
1049
+ "output_required": false,
1050
+ "type": "string",
1051
+ "value_allowed_null": false
1052
+ },
1053
+ {
1054
+ "disabled": false,
1055
+ "document": "当前行的译文",
1056
+ "example": "hello",
1057
+ "member": "string",
1058
+ "name": "TargetLineText",
1059
+ "output_required": false,
1060
+ "type": "string",
1061
+ "value_allowed_null": false
1062
+ },
1063
+ {
1064
+ "disabled": false,
1065
+ "document": "段落文本框位置",
1066
+ "example": "{ \"Height\": 26, \"Width\": 356, \"X\": 527, \"Y\": 25 }",
1067
+ "member": "BoundingBox",
1068
+ "name": "BoundingBox",
1069
+ "output_required": false,
1070
+ "type": "object",
1071
+ "value_allowed_null": false
1072
+ },
1073
+ {
1074
+ "disabled": false,
1075
+ "document": "行数",
1076
+ "example": "1",
1077
+ "member": "int64",
1078
+ "name": "LinesCount",
1079
+ "output_required": false,
1080
+ "type": "int",
1081
+ "value_allowed_null": false
1082
+ },
1083
+ {
1084
+ "disabled": false,
1085
+ "document": "行高",
1086
+ "example": "10",
1087
+ "member": "int64",
1088
+ "name": "LineHeight",
1089
+ "output_required": false,
1090
+ "type": "int",
1091
+ "value_allowed_null": false
1092
+ },
1093
+ {
1094
+ "disabled": false,
1095
+ "document": "正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。",
1096
+ "example": "0",
1097
+ "member": "int64",
1098
+ "name": "SpamCode",
1099
+ "output_required": false,
1100
+ "type": "int",
1101
+ "value_allowed_null": false
1102
+ }
1103
+ ],
1104
+ "usage": "out"
939
1105
  }
940
1106
  },
941
1107
  "version": "1.0"
@@ -24,6 +24,20 @@
24
24
  "title": "API调用"
25
25
  }
26
26
  ],
27
+ "ImageTranslateLLM": [
28
+ {
29
+ "document": "",
30
+ "input": "POST / HTTP/1.1\nHost: tmt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageTranslateLLM\n<公共请求参数>\n\n{}",
31
+ "output": "{\n \"Response\": {\n \"RequestId\": \"962cc025-f31c-466a-9a2d-c7947bd866c2\"\n }\n}",
32
+ "title": "图片翻译调用示例"
33
+ },
34
+ {
35
+ "document": "成功示例2",
36
+ "input": "POST / HTTP/1.1\nHost: tmt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageTranslateLLM\n<公共请求参数>\n\n{\n \"Url\": \"https://xxx.com/image.jpg\"\n}",
37
+ "output": "{\n \"Response\": {\n \"Angle\": 90,\n \"RequestId\": \"d434a671-2835-4bed-a3c3-66becaf6a50c\",\n \"TransDetails\": [\n {\n \"BoundingBox\": {\n \"Height\": 34,\n \"Width\": 202,\n \"X\": 37,\n \"Y\": 57\n },\n \"LineHeight\": 15,\n \"LinesCount\": 1,\n \"SourceLineText\": \"你好\",\n \"TargetLineText\": \"hello\"\n }\n ]\n }\n}",
38
+ "title": "成功示例2"
39
+ }
40
+ ],
27
41
  "LanguageDetect": [
28
42
  {
29
43
  "document": "语种识别",
@@ -5466,6 +5466,15 @@
5466
5466
  "name": "TranslationLanguage",
5467
5467
  "required": false,
5468
5468
  "type": "string"
5469
+ },
5470
+ {
5471
+ "disabled": false,
5472
+ "document": "热词表:该参数用于提升识别准确率。 单个热词限制:\"热词|权重\",单个热词不超过30个字符(最多10个汉字),权重[1-11]或者100,如:“腾讯云|5” 或 “ASR|11”; 热词表限制:多个热词用英文逗号分割,最多支持300个热词,如:“腾讯云|10,语音识别|5,ASR|11”;",
5473
+ "example": "腾讯云|10,语音识别|5,ASR|11",
5474
+ "member": "string",
5475
+ "name": "HotWordList",
5476
+ "required": false,
5477
+ "type": "string"
5469
5478
  }
5470
5479
  ],
5471
5480
  "usage": "in"