tccli 3.0.1405.1__py2.py3-none-any.whl → 3.0.1406.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 (68) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +1 -1
  3. tccli/services/batch/v20170312/api.json +1 -1
  4. tccli/services/cdb/v20170320/api.json +31 -21
  5. tccli/services/cdn/v20180606/api.json +1 -1
  6. tccli/services/cloudhsm/v20191112/api.json +10 -10
  7. tccli/services/cls/v20201016/api.json +40 -31
  8. tccli/services/cls/v20201016/examples.json +8 -2
  9. tccli/services/ctem/v20231128/api.json +30 -0
  10. tccli/services/dbbrain/v20210527/api.json +17 -7
  11. tccli/services/dbbrain/v20210527/examples.json +1 -1
  12. tccli/services/dts/v20211206/api.json +13 -3
  13. tccli/services/emr/v20190103/api.json +9 -0
  14. tccli/services/es/es_client.py +57 -4
  15. tccli/services/es/v20250101/api.json +133 -0
  16. tccli/services/es/v20250101/examples.json +8 -0
  17. tccli/services/ess/ess_client.py +106 -0
  18. tccli/services/ess/v20201111/api.json +345 -24
  19. tccli/services/ess/v20201111/examples.json +25 -3
  20. tccli/services/essbasic/v20210526/api.json +12 -3
  21. tccli/services/essbasic/v20210526/examples.json +2 -2
  22. tccli/services/gwlb/gwlb_client.py +53 -0
  23. tccli/services/gwlb/v20240906/api.json +80 -0
  24. tccli/services/gwlb/v20240906/examples.json +8 -0
  25. tccli/services/hunyuan/v20230901/api.json +2 -2
  26. tccli/services/ioa/ioa_client.py +220 -8
  27. tccli/services/ioa/v20220601/api.json +559 -0
  28. tccli/services/ioa/v20220601/examples.json +38 -0
  29. tccli/services/iotexplorer/iotexplorer_client.py +220 -8
  30. tccli/services/iotexplorer/v20190423/api.json +959 -12
  31. tccli/services/iotexplorer/v20190423/examples.json +68 -0
  32. tccli/services/lcic/v20220817/api.json +2 -2
  33. tccli/services/lke/v20231130/api.json +1 -1
  34. tccli/services/lke/v20231130/examples.json +2 -2
  35. tccli/services/lkeap/v20240522/api.json +1 -1
  36. tccli/services/lkeap/v20240522/examples.json +7 -1
  37. tccli/services/monitor/monitor_client.py +53 -0
  38. tccli/services/monitor/v20180724/api.json +248 -0
  39. tccli/services/monitor/v20180724/examples.json +8 -0
  40. tccli/services/mps/v20190612/api.json +140 -2
  41. tccli/services/mqtt/v20240516/api.json +10 -0
  42. tccli/services/mqtt/v20240516/examples.json +3 -9
  43. tccli/services/nlp/v20190408/api.json +6 -6
  44. tccli/services/oceanus/oceanus_client.py +110 -4
  45. tccli/services/oceanus/v20190422/api.json +152 -8
  46. tccli/services/oceanus/v20190422/examples.json +16 -0
  47. tccli/services/privatedns/privatedns_client.py +641 -58
  48. tccli/services/privatedns/v20201028/api.json +923 -12
  49. tccli/services/privatedns/v20201028/examples.json +88 -0
  50. tccli/services/redis/v20180412/api.json +1 -1
  51. tccli/services/teo/v20220901/api.json +51 -51
  52. tccli/services/tione/v20211111/api.json +1 -1
  53. tccli/services/tke/v20180525/api.json +23 -14
  54. tccli/services/tke/v20180525/examples.json +1 -1
  55. tccli/services/trtc/v20190722/api.json +9 -9
  56. tccli/services/trtc/v20190722/examples.json +1 -1
  57. tccli/services/tse/v20201207/api.json +30 -1
  58. tccli/services/vpc/v20170312/api.json +11 -2
  59. tccli/services/wedata/v20210820/api.json +1281 -601
  60. tccli/services/wedata/v20210820/examples.json +127 -157
  61. tccli/services/wedata/v20250806/api.json +477 -15
  62. tccli/services/wedata/v20250806/examples.json +38 -6
  63. tccli/services/wedata/wedata_client.py +216 -4
  64. {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/METADATA +2 -2
  65. {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/RECORD +68 -68
  66. {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/WHEEL +0 -0
  67. {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/entry_points.txt +0 -0
  68. {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/license_files/LICENSE +0 -0
@@ -4975,8 +4975,8 @@
4975
4975
  },
4976
4976
  {
4977
4977
  "disabled": false,
4978
- "document": "线程的操作状态,用于筛选线程列表。包含以下值:Sending data,Updating, Opening tables ",
4979
- "example": "updating",
4978
+ "document": "线程的操作状态。包含以下枚举值:Sending data​-线程正在处理查询结果, ​Sorting result​-线程正在对查询结果进行排序​,Creating tmp table​-线程正在创建临时表,Altering table​-线程正在执行表结构变更,Updating-线程执行更新中。",
4979
+ "example": "Updating",
4980
4980
  "member": "string",
4981
4981
  "name": "State",
4982
4982
  "required": false,
@@ -4984,7 +4984,7 @@
4984
4984
  },
4985
4985
  {
4986
4986
  "disabled": false,
4987
- "document": "线程的操作状态,用于筛选线程列表。包含以下值:Sending data,Updating, Opening tables 等",
4987
+ "document": "线程的执行类型。包含以下枚举值:Sleep-线程处于空闲状态,Query-线程正在执行一个查询,Connect-从服务器连接到主服务器,Execute-线程正在执行预处理语句。",
4988
4988
  "example": "Execute",
4989
4989
  "member": "string",
4990
4990
  "name": "Command",
@@ -5020,7 +5020,7 @@
5020
5020
  },
5021
5021
  {
5022
5022
  "disabled": false,
5023
- "document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,默认为\"mysql\"",
5023
+ "document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"mariadb\"-mariadb;\"cynosdb\"-TDSQL-C for MySQL ;\"dcdb\"-TDSQL MySQL 默认为\"mysql\"。\n\n",
5024
5024
  "example": "mysql",
5025
5025
  "member": "string",
5026
5026
  "name": "Product",
@@ -5054,7 +5054,7 @@
5054
5054
  },
5055
5055
  {
5056
5056
  "disabled": false,
5057
- "document": "sql会话统计信息。",
5057
+ "document": "sql会话统计信息。如果请求参数中包含StatDimensions,该参数则可能返回,否则不返回。",
5058
5058
  "example": "无",
5059
5059
  "member": "StatisticInfo",
5060
5060
  "name": "Statistics",
@@ -9700,7 +9700,7 @@
9700
9700
  },
9701
9701
  {
9702
9702
  "disabled": false,
9703
- "document": "线程的操作状态。",
9703
+ "document": "线程的操作状态。包含以下枚举值:Sending data​-线程正在处理查询结果, ​Sorting result​-线程正在对查询结果进行排序​,Creating tmp table​-线程正在创建临时表,Altering table​-线程正在执行表结构变更,Updating-线程执行更新中。",
9704
9704
  "example": "updating",
9705
9705
  "member": "string",
9706
9706
  "name": "State",
@@ -9710,7 +9710,7 @@
9710
9710
  },
9711
9711
  {
9712
9712
  "disabled": false,
9713
- "document": "线程的执行类型。",
9713
+ "document": "线程的执行类型。包含以下枚举值:Sleep-线程处于空闲状态,Query-线程正在执行一个查询,Connect-从服务器连接到主服务器,Execute-线程正在执行预处理语句。",
9714
9714
  "example": "Execute",
9715
9715
  "member": "string",
9716
9716
  "name": "Command",
@@ -9737,6 +9737,16 @@
9737
9737
  "output_required": true,
9738
9738
  "type": "string",
9739
9739
  "value_allowed_null": false
9740
+ },
9741
+ {
9742
+ "disabled": false,
9743
+ "document": "sql类型\n注意:此字段可能返回 null,表示取不到有效值。",
9744
+ "example": "StartTransaction,SQLSelectStatement,MySqlDeleteStatement",
9745
+ "member": "string",
9746
+ "name": "SqlType",
9747
+ "output_required": true,
9748
+ "type": "string",
9749
+ "value_allowed_null": true
9740
9750
  }
9741
9751
  ],
9742
9752
  "usage": "out"
@@ -356,7 +356,7 @@
356
356
  {
357
357
  "document": "",
358
358
  "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeMySqlProcessList\n&Product=mysql\n&InstanceId=cdb-test\n&User=root\n&<公共请求参数>",
359
- "output": "{\n \"Response\": {\n \"ProcessList\": [\n {\n \"Command\": \"Query\",\n \"DB\": \"\",\n \"Host\": \"100.98.212.252:29285\",\n \"ID\": \"2075425\",\n \"Info\": \"/* p = 2342 , f=abd */ select sleep(1000)\",\n \"State\": \"User sleep\",\n \"Time\": \"103\",\n \"User\": \"root\"\n }\n ],\n \"RequestId\": \"7d0d84f2-d4c0-4349-b5a3-cd70b6efbdfe\",\n \"Statistics\": [\n {\n \"Data\": [\n {\n \"Count\": 1,\n \"Name\": \"f=abd,p=2342\",\n \"TimeAvg\": 103,\n \"TimeSum\": 103\n }\n ],\n \"Dimension\": \"SqlTag\"\n }\n ]\n }\n}",
359
+ "output": "{\n \"Response\": {\n \"ProcessList\": [\n {\n \"Command\": \"Query\",\n \"DB\": \"\",\n \"Host\": \"100.98.212.252:29285\",\n \"ID\": \"2075425\",\n \"Info\": \"/* p = 2342 , f=abd */ select sleep(1000)\",\n \"State\": \"User sleep\",\n \"Time\": \"103\",\n \"User\": \"root\",\n \"SqlType\": \"SQLSelectStatement\"\n }\n ],\n \"RequestId\": \"7d0d84f2-d4c0-4349-b5a3-cd70b6efbdfe\",\n \"Statistics\": [\n {\n \"Data\": [\n {\n \"Count\": 1,\n \"Name\": \"f=abd,p=2342\",\n \"TimeAvg\": 103,\n \"TimeSum\": 103\n }\n ],\n \"Dimension\": \"SqlTag\"\n }\n ]\n }\n}",
360
360
  "title": "查询实时线程列表。"
361
361
  }
362
362
  ],
@@ -449,7 +449,7 @@
449
449
  "status": "online"
450
450
  },
451
451
  "StartCompare": {
452
- "document": "启动一致性校验任务,启动之前需要先通过接口`CreateCompareTask` 创建一致性校验任务,启动后可通过接口`DescribeCompareTasks` 查询一致性校验任务列表来获得启动后的状态",
452
+ "document": "启动一致性校验任务,启动之前需要先通过接口 [CreateCompareTask](https://cloud.tencent.com/document/product/571/82093) 创建一致性校验任务,启动后可通过接口 [DescribeCompareTasks](https://cloud.tencent.com/document/product/571/82088) 查询一致性校验任务列表来获得启动后的状态",
453
453
  "input": "StartCompareRequest",
454
454
  "name": "启动一致性校验任务",
455
455
  "output": "StartCompareResponse",
@@ -5436,6 +5436,16 @@
5436
5436
  "type": "string",
5437
5437
  "value_allowed_null": false
5438
5438
  },
5439
+ {
5440
+ "disabled": false,
5441
+ "document": "创建时间",
5442
+ "example": "2023-10-26 18:49:00",
5443
+ "member": "string",
5444
+ "name": "CreatedAt",
5445
+ "output_required": false,
5446
+ "type": "string",
5447
+ "value_allowed_null": false
5448
+ },
5439
5449
  {
5440
5450
  "disabled": false,
5441
5451
  "document": "更新时间",
@@ -9110,7 +9120,7 @@
9110
9120
  "members": [
9111
9121
  {
9112
9122
  "disabled": false,
9113
- "document": "迁移任务 Id",
9123
+ "document": "迁移任务 ID,可通过 [DescribeMigrationJobs](https://cloud.tencent.com/document/product/571/82084) 接口获取。\n",
9114
9124
  "example": "dts-8yv4w2i1",
9115
9125
  "member": "string",
9116
9126
  "name": "JobId",
@@ -9119,7 +9129,7 @@
9119
9129
  },
9120
9130
  {
9121
9131
  "disabled": false,
9122
- "document": "对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9",
9132
+ "document": "对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9,可通过 [DescribeMigrationJobs](https://cloud.tencent.com/document/product/571/82084) 接口获取。\n",
9123
9133
  "example": "dts-8yv4w2i1-cmp-37skmii9",
9124
9134
  "member": "string",
9125
9135
  "name": "CompareTaskId",
@@ -6423,6 +6423,15 @@
6423
6423
  "name": "Filters",
6424
6424
  "required": false,
6425
6425
  "type": "list"
6426
+ },
6427
+ {
6428
+ "disabled": false,
6429
+ "document": "默认0为普通集群,2为tke集群",
6430
+ "example": "0",
6431
+ "member": "int64",
6432
+ "name": "ClusterType",
6433
+ "required": false,
6434
+ "type": "int"
6426
6435
  }
6427
6436
  ],
6428
6437
  "type": "object"
@@ -2463,6 +2463,58 @@ def doUpdateIndex(args, parsed_globals):
2463
2463
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2464
2464
 
2465
2465
 
2466
+ def doDescribeLogstashInstanceOperations(args, parsed_globals):
2467
+ g_param = parse_global_arg(parsed_globals)
2468
+
2469
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2470
+ cred = credential.CVMRoleCredential()
2471
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2472
+ cred = credential.STSAssumeRoleCredential(
2473
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2474
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2475
+ )
2476
+ 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):
2477
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2478
+ else:
2479
+ cred = credential.Credential(
2480
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2481
+ )
2482
+ http_profile = HttpProfile(
2483
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2484
+ reqMethod="POST",
2485
+ endpoint=g_param[OptionsDefine.Endpoint],
2486
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2487
+ )
2488
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2489
+ if g_param[OptionsDefine.Language]:
2490
+ profile.language = g_param[OptionsDefine.Language]
2491
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2492
+ client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
2493
+ client._sdkVersion += ("_CLI_" + __version__)
2494
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2495
+ model = models.DescribeLogstashInstanceOperationsRequest()
2496
+ model.from_json_string(json.dumps(args))
2497
+ start_time = time.time()
2498
+ while True:
2499
+ rsp = client.DescribeLogstashInstanceOperations(model)
2500
+ result = rsp.to_json_string()
2501
+ try:
2502
+ json_obj = json.loads(result)
2503
+ except TypeError as e:
2504
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2505
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2506
+ break
2507
+ cur_time = time.time()
2508
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2509
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2510
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2511
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2512
+ else:
2513
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2514
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2515
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2516
+
2517
+
2466
2518
  def doDescribeInstances(args, parsed_globals):
2467
2519
  g_param = parse_global_arg(parsed_globals)
2468
2520
 
@@ -3555,7 +3607,7 @@ def doChunkDocument(args, parsed_globals):
3555
3607
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3556
3608
 
3557
3609
 
3558
- def doDescribeLogstashInstanceOperations(args, parsed_globals):
3610
+ def doGetMultiModalEmbedding(args, parsed_globals):
3559
3611
  g_param = parse_global_arg(parsed_globals)
3560
3612
 
3561
3613
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3584,11 +3636,11 @@ def doDescribeLogstashInstanceOperations(args, parsed_globals):
3584
3636
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
3585
3637
  client._sdkVersion += ("_CLI_" + __version__)
3586
3638
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3587
- model = models.DescribeLogstashInstanceOperationsRequest()
3639
+ model = models.GetMultiModalEmbeddingRequest()
3588
3640
  model.from_json_string(json.dumps(args))
3589
3641
  start_time = time.time()
3590
3642
  while True:
3591
- rsp = client.DescribeLogstashInstanceOperations(model)
3643
+ rsp = client.GetMultiModalEmbedding(model)
3592
3644
  result = rsp.to_json_string()
3593
3645
  try:
3594
3646
  json_obj = json.loads(result)
@@ -3771,6 +3823,7 @@ ACTION_MAP = {
3771
3823
  "ParseDocument": doParseDocument,
3772
3824
  "UpdateDictionaries": doUpdateDictionaries,
3773
3825
  "UpdateIndex": doUpdateIndex,
3826
+ "DescribeLogstashInstanceOperations": doDescribeLogstashInstanceOperations,
3774
3827
  "DescribeInstances": doDescribeInstances,
3775
3828
  "UpdateServerlessSpace": doUpdateServerlessSpace,
3776
3829
  "StartLogstashPipelines": doStartLogstashPipelines,
@@ -3792,7 +3845,7 @@ ACTION_MAP = {
3792
3845
  "DescribeIndexMeta": doDescribeIndexMeta,
3793
3846
  "ChatCompletions": doChatCompletions,
3794
3847
  "ChunkDocument": doChunkDocument,
3795
- "DescribeLogstashInstanceOperations": doDescribeLogstashInstanceOperations,
3848
+ "GetMultiModalEmbedding": doGetMultiModalEmbedding,
3796
3849
  "InquirePriceRenewInstance": doInquirePriceRenewInstance,
3797
3850
  "CreateClusterSnapshot": doCreateClusterSnapshot,
3798
3851
 
@@ -35,6 +35,13 @@
35
35
  "output": "GetDocumentParseResultResponse",
36
36
  "status": "online"
37
37
  },
38
+ "GetMultiModalEmbedding": {
39
+ "document": "Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。 本接口有模型维度调用上限控制,单个模型qps限制10,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
40
+ "input": "GetMultiModalEmbeddingRequest",
41
+ "name": "获取多模态特征向量",
42
+ "output": "GetMultiModalEmbeddingResponse",
43
+ "status": "online"
44
+ },
38
45
  "GetTextEmbedding": {
39
46
  "document": "Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。\n本接口有模型维度调用上限控制,单个模型qps限制20,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
40
47
  "input": "GetTextEmbeddingRequest",
@@ -735,6 +742,80 @@
735
742
  ],
736
743
  "type": "object"
737
744
  },
745
+ "GetMultiModalEmbeddingRequest": {
746
+ "document": "GetMultiModalEmbedding请求参数结构体",
747
+ "members": [
748
+ {
749
+ "disabled": false,
750
+ "document": "模型名称,支持WeCLIPv2-Base和WeCLIPv2-Large",
751
+ "example": "WeCLIPv2-Base",
752
+ "member": "string",
753
+ "name": "ModelName",
754
+ "required": false,
755
+ "type": "string"
756
+ },
757
+ {
758
+ "disabled": false,
759
+ "document": "需进行向量化的文本集,一次输入限10条,单条文本长度限72",
760
+ "example": "[\"红色帽子\",\"白色围巾\"]",
761
+ "member": "string",
762
+ "name": "Texts",
763
+ "required": false,
764
+ "type": "list"
765
+ },
766
+ {
767
+ "disabled": false,
768
+ "document": "输入图片,base64编码格式,一次输入限制8个,单张图片限制1M",
769
+ "example": "[\"data:image/jpeg;base64,/AAA/BBB/CCC\"]",
770
+ "member": "string",
771
+ "name": "ImageData",
772
+ "required": false,
773
+ "type": "list"
774
+ },
775
+ {
776
+ "disabled": false,
777
+ "document": "输入图片url,一次输入限8个,推荐cos地址,速度更快",
778
+ "example": "[\"http://aaa.bb.com/cc\"]",
779
+ "member": "string",
780
+ "name": "ImageUrl",
781
+ "required": false,
782
+ "type": "list"
783
+ }
784
+ ],
785
+ "type": "object"
786
+ },
787
+ "GetMultiModalEmbeddingResponse": {
788
+ "document": "GetMultiModalEmbedding返回参数结构体",
789
+ "members": [
790
+ {
791
+ "disabled": false,
792
+ "document": "多模态特征向量输出",
793
+ "example": "无",
794
+ "member": "MultiModalEmbeddingData",
795
+ "name": "Data",
796
+ "output_required": false,
797
+ "type": "object",
798
+ "value_allowed_null": false
799
+ },
800
+ {
801
+ "disabled": false,
802
+ "document": "消耗的tokens和输入图片数量",
803
+ "example": "无",
804
+ "member": "MultiModalUsage",
805
+ "name": "Usage",
806
+ "output_required": false,
807
+ "type": "object",
808
+ "value_allowed_null": false
809
+ },
810
+ {
811
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
812
+ "member": "string",
813
+ "name": "RequestId",
814
+ "type": "string"
815
+ }
816
+ ],
817
+ "type": "object"
818
+ },
738
819
  "GetTextEmbeddingRequest": {
739
820
  "document": "GetTextEmbedding请求参数结构体",
740
821
  "members": [
@@ -841,6 +922,58 @@
841
922
  ],
842
923
  "usage": "both"
843
924
  },
925
+ "MultiModalEmbeddingData": {
926
+ "document": "多模态特征向量",
927
+ "members": [
928
+ {
929
+ "disabled": false,
930
+ "document": "文本特征向量\n注意:此字段可能返回 null,表示取不到有效值。",
931
+ "example": "无",
932
+ "member": "EmbeddingData",
933
+ "name": "TextEmbeddings",
934
+ "output_required": false,
935
+ "type": "list",
936
+ "value_allowed_null": true
937
+ },
938
+ {
939
+ "disabled": false,
940
+ "document": "图片特征向量\n注意:此字段可能返回 null,表示取不到有效值。",
941
+ "example": "无",
942
+ "member": "EmbeddingData",
943
+ "name": "ImageEmbeddings",
944
+ "output_required": false,
945
+ "type": "list",
946
+ "value_allowed_null": true
947
+ }
948
+ ],
949
+ "usage": "out"
950
+ },
951
+ "MultiModalUsage": {
952
+ "document": "多模态向量化消耗tokens和images数量",
953
+ "members": [
954
+ {
955
+ "disabled": false,
956
+ "document": "消耗tokens",
957
+ "example": "100",
958
+ "member": "uint64",
959
+ "name": "TotalTokens",
960
+ "output_required": false,
961
+ "type": "int",
962
+ "value_allowed_null": false
963
+ },
964
+ {
965
+ "disabled": false,
966
+ "document": "输入图片数量",
967
+ "example": "2",
968
+ "member": "uint64",
969
+ "name": "TotalImages",
970
+ "output_required": false,
971
+ "type": "int",
972
+ "value_allowed_null": false
973
+ }
974
+ ],
975
+ "usage": "out"
976
+ },
844
977
  "OnlineSearchOptions": {
845
978
  "document": "联网搜索选项。",
846
979
  "members": [
@@ -40,6 +40,14 @@
40
40
  "title": "获取文档解析任务结果"
41
41
  }
42
42
  ],
43
+ "GetMultiModalEmbedding": [
44
+ {
45
+ "document": "",
46
+ "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetMultiModalEmbedding\n<公共请求参数>\n\n{\n \"ModelName\": \"WeCLIPv2-Base\",\n \"Texts\": [\n \"红色帽子\"\n ],\n \"ImageData\": [\n \"data:image/jpeg;base64,/AAA/BBB/CCC\"\n ]\n}",
47
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b5623e99-ea0c-9509-9b25-20bcc99d03e9\",\n \"Data\": {\n \"TextEmbeddings\": [\n {\n \"Embedding\": [\n -0.007741480600088835,\n -0.017921222373843193,\n -0.04486401379108429,\n -0.0073757413774728775,\n 0.014934351667761803,\n -0.025723660364747047,\n 0.03559861704707146,\n -0.034379489719867706,\n 0.027674268931150436,\n 0.04876523092389107,\n -0.04266957566142082\n ],\n \"Index\": 0\n }\n ],\n \"ImageEmbeddings\": [\n {\n \"Embedding\": [\n -0.007741480600088835,\n -0.017921222373843193,\n -0.04486401379108429,\n -0.0073757413774728775,\n 0.014934351667761803,\n -0.025723660364747047,\n 0.03559861704707146,\n -0.034379489719867706,\n 0.027674268931150436,\n 0.04876523092389107,\n -0.04266957566142082\n ],\n \"Index\": 0\n }\n ]\n },\n \"Usage\": {\n \"TotalTokens\": 4,\n \"TotalImages\": 1\n }\n }\n}",
48
+ "title": "获取多模态特征向量"
49
+ }
50
+ ],
43
51
  "GetTextEmbedding": [
44
52
  {
45
53
  "document": "",
@@ -69,6 +69,58 @@ def doStartFlow(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
+ def doCreateContractComparisonTask(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ 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):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.CreateContractComparisonTaskRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.CreateContractComparisonTask(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
72
124
  def doDescribeFlowTemplates(args, parsed_globals):
73
125
  g_param = parse_global_arg(parsed_globals)
74
126
 
@@ -3449,6 +3501,58 @@ def doCreateUserMobileChangeUrl(args, parsed_globals):
3449
3501
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
3502
 
3451
3503
 
3504
+ def doExportContractComparisonTask(args, parsed_globals):
3505
+ g_param = parse_global_arg(parsed_globals)
3506
+
3507
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3508
+ cred = credential.CVMRoleCredential()
3509
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3510
+ cred = credential.STSAssumeRoleCredential(
3511
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3512
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3513
+ )
3514
+ 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):
3515
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3516
+ else:
3517
+ cred = credential.Credential(
3518
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3519
+ )
3520
+ http_profile = HttpProfile(
3521
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3522
+ reqMethod="POST",
3523
+ endpoint=g_param[OptionsDefine.Endpoint],
3524
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3525
+ )
3526
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3527
+ if g_param[OptionsDefine.Language]:
3528
+ profile.language = g_param[OptionsDefine.Language]
3529
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3530
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
3531
+ client._sdkVersion += ("_CLI_" + __version__)
3532
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
+ model = models.ExportContractComparisonTaskRequest()
3534
+ model.from_json_string(json.dumps(args))
3535
+ start_time = time.time()
3536
+ while True:
3537
+ rsp = client.ExportContractComparisonTask(model)
3538
+ result = rsp.to_json_string()
3539
+ try:
3540
+ json_obj = json.loads(result)
3541
+ except TypeError as e:
3542
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3543
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3544
+ break
3545
+ cur_time = time.time()
3546
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3547
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3548
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3549
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3550
+ else:
3551
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3552
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3553
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
+
3555
+
3452
3556
  def doDeleteSealPolicies(args, parsed_globals):
3453
3557
  g_param = parse_global_arg(parsed_globals)
3454
3558
 
@@ -6425,6 +6529,7 @@ MODELS_MAP = {
6425
6529
 
6426
6530
  ACTION_MAP = {
6427
6531
  "StartFlow": doStartFlow,
6532
+ "CreateContractComparisonTask": doCreateContractComparisonTask,
6428
6533
  "DescribeFlowTemplates": doDescribeFlowTemplates,
6429
6534
  "CreateUserAutoSignEnableUrl": doCreateUserAutoSignEnableUrl,
6430
6535
  "CreateFlowGroupSignReview": doCreateFlowGroupSignReview,
@@ -6490,6 +6595,7 @@ ACTION_MAP = {
6490
6595
  "CreateDocument": doCreateDocument,
6491
6596
  "DescribeOrganizationGroupOrganizations": doDescribeOrganizationGroupOrganizations,
6492
6597
  "CreateUserMobileChangeUrl": doCreateUserMobileChangeUrl,
6598
+ "ExportContractComparisonTask": doExportContractComparisonTask,
6493
6599
  "DeleteSealPolicies": doDeleteSealPolicies,
6494
6600
  "DescribeFileUrls": doDescribeFileUrls,
6495
6601
  "CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,