tccli 3.0.1404.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 (83) 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 +95 -25
  5. tccli/services/cdb/v20170320/examples.json +3 -3
  6. tccli/services/cdn/v20180606/api.json +1 -1
  7. tccli/services/cdwdoris/v20211228/api.json +9 -0
  8. tccli/services/ckafka/v20190819/api.json +33 -0
  9. tccli/services/cloudapp/v20220530/api.json +55 -0
  10. tccli/services/cloudhsm/v20191112/api.json +10 -10
  11. tccli/services/cls/v20201016/api.json +40 -31
  12. tccli/services/cls/v20201016/examples.json +8 -2
  13. tccli/services/ctem/v20231128/api.json +30 -0
  14. tccli/services/dbbrain/v20191016/api.json +11 -1
  15. tccli/services/dbbrain/v20191016/examples.json +1 -1
  16. tccli/services/dbbrain/v20210527/api.json +17 -7
  17. tccli/services/dbbrain/v20210527/examples.json +1 -1
  18. tccli/services/dc/v20180410/api.json +101 -3
  19. tccli/services/dlc/v20210125/examples.json +1 -1
  20. tccli/services/dts/v20211206/api.json +13 -3
  21. tccli/services/emr/v20190103/api.json +11 -2
  22. tccli/services/es/es_client.py +57 -4
  23. tccli/services/es/v20180416/api.json +3 -3
  24. tccli/services/es/v20180416/examples.json +1 -1
  25. tccli/services/es/v20250101/api.json +135 -2
  26. tccli/services/es/v20250101/examples.json +8 -0
  27. tccli/services/ess/ess_client.py +159 -0
  28. tccli/services/ess/v20201111/api.json +508 -24
  29. tccli/services/ess/v20201111/examples.json +33 -3
  30. tccli/services/essbasic/v20210526/api.json +12 -3
  31. tccli/services/essbasic/v20210526/examples.json +2 -2
  32. tccli/services/gwlb/gwlb_client.py +53 -0
  33. tccli/services/gwlb/v20240906/api.json +80 -0
  34. tccli/services/gwlb/v20240906/examples.json +8 -0
  35. tccli/services/hunyuan/v20230901/api.json +2 -2
  36. tccli/services/ioa/ioa_client.py +220 -8
  37. tccli/services/ioa/v20220601/api.json +559 -0
  38. tccli/services/ioa/v20220601/examples.json +38 -0
  39. tccli/services/iotexplorer/iotexplorer_client.py +220 -8
  40. tccli/services/iotexplorer/v20190423/api.json +959 -12
  41. tccli/services/iotexplorer/v20190423/examples.json +68 -0
  42. tccli/services/lcic/v20220817/api.json +2 -2
  43. tccli/services/lighthouse/v20200324/api.json +1 -1
  44. tccli/services/lke/v20231130/api.json +1 -1
  45. tccli/services/lke/v20231130/examples.json +2 -2
  46. tccli/services/lkeap/v20240522/api.json +1 -1
  47. tccli/services/lkeap/v20240522/examples.json +7 -1
  48. tccli/services/monitor/monitor_client.py +53 -0
  49. tccli/services/monitor/v20180724/api.json +248 -0
  50. tccli/services/monitor/v20180724/examples.json +8 -0
  51. tccli/services/mps/v20190612/api.json +140 -2
  52. tccli/services/mqtt/v20240516/api.json +10 -0
  53. tccli/services/mqtt/v20240516/examples.json +3 -9
  54. tccli/services/nlp/v20190408/api.json +6 -6
  55. tccli/services/oceanus/oceanus_client.py +110 -4
  56. tccli/services/oceanus/v20190422/api.json +157 -13
  57. tccli/services/oceanus/v20190422/examples.json +16 -0
  58. tccli/services/ocr/v20181119/api.json +3 -3
  59. tccli/services/postgres/v20170312/api.json +5 -5
  60. tccli/services/privatedns/privatedns_client.py +641 -58
  61. tccli/services/privatedns/v20201028/api.json +923 -12
  62. tccli/services/privatedns/v20201028/examples.json +88 -0
  63. tccli/services/redis/v20180412/api.json +1 -1
  64. tccli/services/teo/v20220901/api.json +51 -51
  65. tccli/services/tione/v20211111/api.json +1 -1
  66. tccli/services/tke/v20180525/api.json +23 -14
  67. tccli/services/tke/v20180525/examples.json +1 -1
  68. tccli/services/trtc/v20190722/api.json +9 -9
  69. tccli/services/trtc/v20190722/examples.json +1 -1
  70. tccli/services/tse/v20201207/api.json +30 -1
  71. tccli/services/vpc/v20170312/api.json +231 -4
  72. tccli/services/vpc/v20170312/examples.json +32 -0
  73. tccli/services/vpc/vpc_client.py +228 -16
  74. tccli/services/wedata/v20210820/api.json +1281 -601
  75. tccli/services/wedata/v20210820/examples.json +127 -157
  76. tccli/services/wedata/v20250806/api.json +8736 -3085
  77. tccli/services/wedata/v20250806/examples.json +378 -0
  78. tccli/services/wedata/wedata_client.py +2903 -836
  79. {tccli-3.0.1404.1.dist-info → tccli-3.0.1406.1.dist-info}/METADATA +2 -2
  80. {tccli-3.0.1404.1.dist-info → tccli-3.0.1406.1.dist-info}/RECORD +83 -83
  81. {tccli-3.0.1404.1.dist-info → tccli-3.0.1406.1.dist-info}/WHEEL +0 -0
  82. {tccli-3.0.1404.1.dist-info → tccli-3.0.1406.1.dist-info}/entry_points.txt +0 -0
  83. {tccli-3.0.1404.1.dist-info → tccli-3.0.1406.1.dist-info}/license_files/LICENSE +0 -0
@@ -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"
@@ -8896,7 +8905,7 @@
8896
8905
  {
8897
8906
  "disabled": false,
8898
8907
  "document": "集群地域",
8899
- "example": "集群地域",
8908
+ "example": "1",
8900
8909
  "member": "uint64",
8901
8910
  "name": "ZoneId",
8902
8911
  "output_required": true,
@@ -9146,7 +9155,7 @@
9146
9155
  {
9147
9156
  "disabled": false,
9148
9157
  "document": "体外客户端组件信息\n注意:此字段可能返回 null,表示取不到有效值。",
9149
- "example": "[\"hdfs-2.8.5\",true]",
9158
+ "example": "",
9150
9159
  "member": "SoftDependInfo",
9151
9160
  "name": "OutSideSoftInfo",
9152
9161
  "output_required": true,
@@ -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
 
@@ -4227,7 +4227,7 @@
4227
4227
  {
4228
4228
  "disabled": false,
4229
4229
  "document": "cos 快照信息列表",
4230
- "example": "[{\"CosBucket\":\"es-ap-beijing\"}]",
4230
+ "example": "",
4231
4231
  "member": "CosSnapShotInfo",
4232
4232
  "name": "CosSnapshotInfoList",
4233
4233
  "output_required": false,
@@ -6148,7 +6148,7 @@
6148
6148
  {
6149
6149
  "disabled": false,
6150
6150
  "document": "客户指定安装的模型名称,可为空,默认为模型文件名",
6151
- "example": "[******]",
6151
+ "example": "[\"test1\"]",
6152
6152
  "member": "string",
6153
6153
  "name": "ModelNames",
6154
6154
  "required": false,
@@ -6172,7 +6172,7 @@
6172
6172
  {
6173
6173
  "disabled": false,
6174
6174
  "document": "发起异步流程的flowId",
6175
- "example": "1111111",
6175
+ "example": "1725",
6176
6176
  "member": "string",
6177
6177
  "name": "FlowId",
6178
6178
  "output_required": false,
@@ -316,7 +316,7 @@
316
316
  {
317
317
  "document": "",
318
318
  "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallInstanceModel\n<公共请求参数>\n\n{\n \"InstanceId\": \"es-xxxxxxxx\",\n \"UsrCosModelUrlList\": [\n \"https://modeltestxxxx-sh-12560502xx.cos.ap-shanghai.myqcloud.com/bge-base-zh-v1.5.zip\"\n ],\n \"ModelNames\": [\n \"wit-test\"\n ],\n \"TaskTypes\": [\n \"text_embedding\"\n ]\n}",
319
- "output": "{\n \"Response\": {\n \"RequestId\": \"d6c1d15f-5eab-11ef-9b1d-525400a23f29\",\n \"FlowId\": \"17279\"\n }\n}",
319
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d6c1d15f-5eab-11ef-9b1d-525400a23f29\",\n \"FlowId\": \"17219\"\n }\n}",
320
320
  "title": "安装模型调用示例"
321
321
  }
322
322
  ],
@@ -35,8 +35,15 @@
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
- "document": "Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。\n本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
46
+ "document": "Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。\n本接口有模型维度调用上限控制,单个模型qps限制20,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
40
47
  "input": "GetTextEmbeddingRequest",
41
48
  "name": "获取特征向量",
42
49
  "output": "GetTextEmbeddingResponse",
@@ -735,12 +742,86 @@
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": [
741
822
  {
742
823
  "disabled": false,
743
- "document": "模型名称,可选模型列表:bge-base-zh-v1.5,conan-embedding-v1,bge-m3,KaLM-embedding-multilingual-mini-v1。",
824
+ "document": "模型名称,可选模型列表:bge-base-zh-v1.5,Conan-embedding-v1,bge-m3,KaLM-embedding-multilingual-mini-v1,Qwen3-Embedding-0.6B。",
744
825
  "example": "bge-base-zh-v1.5",
745
826
  "member": "string",
746
827
  "name": "ModelName",
@@ -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
 
@@ -1785,6 +1837,58 @@ def doDescribeOrganizationAuthStatus(args, parsed_globals):
1785
1837
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1838
 
1787
1839
 
1840
+ def doDescribeContractComparisonTask(args, parsed_globals):
1841
+ g_param = parse_global_arg(parsed_globals)
1842
+
1843
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1844
+ cred = credential.CVMRoleCredential()
1845
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1846
+ cred = credential.STSAssumeRoleCredential(
1847
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1848
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1849
+ )
1850
+ 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):
1851
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1852
+ else:
1853
+ cred = credential.Credential(
1854
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1855
+ )
1856
+ http_profile = HttpProfile(
1857
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1858
+ reqMethod="POST",
1859
+ endpoint=g_param[OptionsDefine.Endpoint],
1860
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1861
+ )
1862
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1863
+ if g_param[OptionsDefine.Language]:
1864
+ profile.language = g_param[OptionsDefine.Language]
1865
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1866
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1867
+ client._sdkVersion += ("_CLI_" + __version__)
1868
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1869
+ model = models.DescribeContractComparisonTaskRequest()
1870
+ model.from_json_string(json.dumps(args))
1871
+ start_time = time.time()
1872
+ while True:
1873
+ rsp = client.DescribeContractComparisonTask(model)
1874
+ result = rsp.to_json_string()
1875
+ try:
1876
+ json_obj = json.loads(result)
1877
+ except TypeError as e:
1878
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1879
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1880
+ break
1881
+ cur_time = time.time()
1882
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1883
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1884
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1885
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1886
+ else:
1887
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1888
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1889
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
+
1891
+
1788
1892
  def doCreateEmployeeChangeUrl(args, parsed_globals):
1789
1893
  g_param = parse_global_arg(parsed_globals)
1790
1894
 
@@ -3397,6 +3501,58 @@ def doCreateUserMobileChangeUrl(args, parsed_globals):
3397
3501
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
3502
 
3399
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
+
3400
3556
  def doDeleteSealPolicies(args, parsed_globals):
3401
3557
  g_param = parse_global_arg(parsed_globals)
3402
3558
 
@@ -6373,6 +6529,7 @@ MODELS_MAP = {
6373
6529
 
6374
6530
  ACTION_MAP = {
6375
6531
  "StartFlow": doStartFlow,
6532
+ "CreateContractComparisonTask": doCreateContractComparisonTask,
6376
6533
  "DescribeFlowTemplates": doDescribeFlowTemplates,
6377
6534
  "CreateUserAutoSignEnableUrl": doCreateUserAutoSignEnableUrl,
6378
6535
  "CreateFlowGroupSignReview": doCreateFlowGroupSignReview,
@@ -6406,6 +6563,7 @@ ACTION_MAP = {
6406
6563
  "CreateBatchContractReviewTask": doCreateBatchContractReviewTask,
6407
6564
  "CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
6408
6565
  "DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
6566
+ "DescribeContractComparisonTask": doDescribeContractComparisonTask,
6409
6567
  "CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
6410
6568
  "RenewAutoSignLicense": doRenewAutoSignLicense,
6411
6569
  "CreateWebThemeConfig": doCreateWebThemeConfig,
@@ -6437,6 +6595,7 @@ ACTION_MAP = {
6437
6595
  "CreateDocument": doCreateDocument,
6438
6596
  "DescribeOrganizationGroupOrganizations": doDescribeOrganizationGroupOrganizations,
6439
6597
  "CreateUserMobileChangeUrl": doCreateUserMobileChangeUrl,
6598
+ "ExportContractComparisonTask": doExportContractComparisonTask,
6440
6599
  "DeleteSealPolicies": doDeleteSealPolicies,
6441
6600
  "DescribeFileUrls": doDescribeFileUrls,
6442
6601
  "CreateBatchQuickSignUrl": doCreateBatchQuickSignUrl,