tccli 3.0.1286.1__py2.py3-none-any.whl → 3.0.1288.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.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/autoscaling_client.py +53 -0
- tccli/services/autoscaling/v20180419/api.json +53 -0
- tccli/services/autoscaling/v20180419/examples.json +8 -0
- tccli/services/billing/v20180709/api.json +254 -254
- tccli/services/captcha/v20190722/api.json +79 -77
- tccli/services/cdc/v20201214/api.json +123 -113
- tccli/services/cdwch/v20200915/api.json +70 -2
- tccli/services/cdwch/v20200915/examples.json +2 -2
- tccli/services/cdz/v20221123/api.json +10 -10
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +110 -5
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +63 -15
- tccli/services/cynosdb/v20190107/api.json +298 -298
- tccli/services/dbbrain/v20210527/api.json +11 -2
- tccli/services/domain/v20180808/api.json +49 -29
- tccli/services/ess/v20201111/api.json +25 -1
- tccli/services/essbasic/v20210526/api.json +27 -3
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +329 -12
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/lcic/v20220817/api.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +47 -47
- tccli/services/lke/v20231130/api.json +10 -10
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/mariadb/v20170312/api.json +30 -30
- tccli/services/mongodb/v20190725/api.json +3 -3
- tccli/services/ocr/v20181119/api.json +36 -0
- tccli/services/redis/v20180412/api.json +4 -4
- tccli/services/ses/v20201002/api.json +1 -1
- tccli/services/ssl/v20191205/api.json +317 -317
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/tat/v20201028/api.json +7 -7
- tccli/services/tat/v20201028/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +232 -231
- tccli/services/tcb/v20180608/examples.json +1 -7
- tccli/services/tchd/tchd_client.py +53 -0
- tccli/services/tchd/v20230306/api.json +89 -0
- tccli/services/tchd/v20230306/examples.json +8 -0
- tccli/services/tdmq/v20200217/api.json +232 -222
- tccli/services/teo/v20220901/api.json +129 -7
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +61 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trro/trro_client.py +53 -0
- tccli/services/trro/v20220325/api.json +70 -0
- tccli/services/trro/v20220325/examples.json +8 -0
- tccli/services/waf/v20180125/api.json +225 -0
- tccli/services/waf/v20180125/examples.json +24 -0
- tccli/services/waf/waf_client.py +159 -0
- tccli/services/wedata/v20210820/api.json +124 -204
- tccli/services/wedata/v20210820/examples.json +7 -1
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/RECORD +59 -59
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/license_files/LICENSE +0 -0
@@ -2863,6 +2863,15 @@
|
|
2863
2863
|
"required": false,
|
2864
2864
|
"type": "list"
|
2865
2865
|
},
|
2866
|
+
{
|
2867
|
+
"disabled": false,
|
2868
|
+
"document": "服务产品类型,支持值包括:\"mysql\" - 云数据库 MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
2869
|
+
"example": "mysql",
|
2870
|
+
"member": "string",
|
2871
|
+
"name": "Product",
|
2872
|
+
"required": false,
|
2873
|
+
"type": "string"
|
2874
|
+
},
|
2866
2875
|
{
|
2867
2876
|
"disabled": false,
|
2868
2877
|
"document": "偏移量,默认0。",
|
@@ -2893,7 +2902,7 @@
|
|
2893
2902
|
"example": "1",
|
2894
2903
|
"member": "int64",
|
2895
2904
|
"name": "TotalCount",
|
2896
|
-
"
|
2905
|
+
"output_required": true,
|
2897
2906
|
"type": "int",
|
2898
2907
|
"value_allowed_null": false
|
2899
2908
|
},
|
@@ -2903,7 +2912,7 @@
|
|
2903
2912
|
"example": "无",
|
2904
2913
|
"member": "DiagHistoryEventItem",
|
2905
2914
|
"name": "Items",
|
2906
|
-
"
|
2915
|
+
"output_required": true,
|
2907
2916
|
"type": "list",
|
2908
2917
|
"value_allowed_null": false
|
2909
2918
|
},
|
@@ -550,48 +550,48 @@
|
|
550
550
|
"members": [
|
551
551
|
{
|
552
552
|
"disabled": false,
|
553
|
-
"document": "
|
553
|
+
"document": "域名",
|
554
554
|
"example": "tencent.com",
|
555
555
|
"member": "string",
|
556
556
|
"name": "Domain",
|
557
557
|
"output_required": false,
|
558
558
|
"type": "string",
|
559
|
-
"value_allowed_null":
|
559
|
+
"value_allowed_null": false
|
560
560
|
},
|
561
561
|
{
|
562
562
|
"disabled": false,
|
563
|
-
"document": "
|
563
|
+
"document": "当前域名价格",
|
564
564
|
"example": "120.00",
|
565
565
|
"member": "float",
|
566
566
|
"name": "CurrentPrice",
|
567
567
|
"output_required": false,
|
568
568
|
"type": "float",
|
569
|
-
"value_allowed_null":
|
569
|
+
"value_allowed_null": false
|
570
570
|
},
|
571
571
|
{
|
572
572
|
"disabled": false,
|
573
|
-
"document": "
|
573
|
+
"document": "用户上次出价",
|
574
574
|
"example": "100.00",
|
575
575
|
"member": "float",
|
576
576
|
"name": "BidPrice",
|
577
577
|
"output_required": false,
|
578
578
|
"type": "float",
|
579
|
-
"value_allowed_null":
|
579
|
+
"value_allowed_null": false
|
580
580
|
},
|
581
581
|
{
|
582
582
|
"disabled": false,
|
583
|
-
"document": "
|
583
|
+
"document": "当前加价幅度",
|
584
584
|
"example": "50.00",
|
585
585
|
"member": "float",
|
586
586
|
"name": "CurrentPriceScope",
|
587
587
|
"output_required": false,
|
588
588
|
"type": "float",
|
589
|
-
"value_allowed_null":
|
589
|
+
"value_allowed_null": false
|
590
590
|
},
|
591
591
|
{
|
592
592
|
"disabled": false,
|
593
593
|
"document": "加价幅度区间配置\n注意:此字段可能返回 null,表示取不到有效值。",
|
594
|
-
"example": "
|
594
|
+
"example": "[\"PriceScopeConf\"]",
|
595
595
|
"member": "PriceScopeConf",
|
596
596
|
"name": "PriceScope",
|
597
597
|
"output_required": false,
|
@@ -600,13 +600,13 @@
|
|
600
600
|
},
|
601
601
|
{
|
602
602
|
"disabled": false,
|
603
|
-
"document": "
|
603
|
+
"document": "用户当前已经支付了的保证金",
|
604
604
|
"example": "50.00",
|
605
605
|
"member": "float",
|
606
606
|
"name": "DepositPrice",
|
607
607
|
"output_required": false,
|
608
608
|
"type": "float",
|
609
|
-
"value_allowed_null":
|
609
|
+
"value_allowed_null": false
|
610
610
|
},
|
611
611
|
{
|
612
612
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -1527,13 +1527,13 @@
|
|
1527
1527
|
"members": [
|
1528
1528
|
{
|
1529
1529
|
"disabled": false,
|
1530
|
-
"document": "批量日志ID
|
1530
|
+
"document": "批量日志ID",
|
1531
1531
|
"example": "318",
|
1532
1532
|
"member": "int64",
|
1533
1533
|
"name": "LogId",
|
1534
1534
|
"output_required": true,
|
1535
1535
|
"type": "int",
|
1536
|
-
"value_allowed_null":
|
1536
|
+
"value_allowed_null": false
|
1537
1537
|
},
|
1538
1538
|
{
|
1539
1539
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -1889,23 +1889,23 @@
|
|
1889
1889
|
"members": [
|
1890
1890
|
{
|
1891
1891
|
"disabled": false,
|
1892
|
-
"document": "
|
1892
|
+
"document": "竞拍详情列表",
|
1893
1893
|
"example": "list[\"AuctionInfo\"]",
|
1894
1894
|
"member": "AuctionInfo",
|
1895
1895
|
"name": "AuctionList",
|
1896
1896
|
"output_required": false,
|
1897
1897
|
"type": "list",
|
1898
|
-
"value_allowed_null":
|
1898
|
+
"value_allowed_null": false
|
1899
1899
|
},
|
1900
1900
|
{
|
1901
1901
|
"disabled": false,
|
1902
|
-
"document": "
|
1902
|
+
"document": "总数",
|
1903
1903
|
"example": "20",
|
1904
1904
|
"member": "int64",
|
1905
1905
|
"name": "TotalCount",
|
1906
1906
|
"output_required": false,
|
1907
1907
|
"type": "int",
|
1908
|
-
"value_allowed_null":
|
1908
|
+
"value_allowed_null": false
|
1909
1909
|
},
|
1910
1910
|
{
|
1911
1911
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -1964,13 +1964,13 @@
|
|
1964
1964
|
},
|
1965
1965
|
{
|
1966
1966
|
"disabled": false,
|
1967
|
-
"document": "
|
1968
|
-
"example": "[{\"UpdatedOn\": \"2024-12-18 12:21:16\",\"BigDealId\": \"\",\"TransferDnsResult\": null,\"Action\": \"
|
1967
|
+
"document": "日志详情列表。",
|
1968
|
+
"example": "[{\"UpdatedOn\": \"2024-12-18 12:21:16\",\"BigDealId\": \"\",\"TransferDnsResult\": null,\"Action\": \"batch_modify_*\",\"Status\": \"failed\",\"Domain\": \"***.com\",\"ReasonZh\": \"域名***\",\"CreatedOn\": \"2024-12-18 12:21:12\",\"Reason\": \"域名***\",\"PayStatus\": 0,\"Id\": 1001}]",
|
1969
1969
|
"member": "DomainBatchDetailSet",
|
1970
1970
|
"name": "DomainBatchDetailSet",
|
1971
1971
|
"output_required": true,
|
1972
1972
|
"type": "list",
|
1973
|
-
"value_allowed_null":
|
1973
|
+
"value_allowed_null": false
|
1974
1974
|
},
|
1975
1975
|
{
|
1976
1976
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -2020,13 +2020,13 @@
|
|
2020
2020
|
},
|
2021
2021
|
{
|
2022
2022
|
"disabled": false,
|
2023
|
-
"document": "
|
2024
|
-
"example": "[]",
|
2023
|
+
"document": "日志列表",
|
2024
|
+
"example": "[{\"Status\": \"doing\",\"Success\": 0,\"Doing\": 1,\"CreatedOn\": \"2025-03-10 17:41:07\",\"Number\": 1,\"LogId\": 1001,\"Failed\": 0,\"Action\": \"new\",\"PayStatus\": false,\"BigDealId\": \"2025***\"}]",
|
2025
2025
|
"member": "DomainBatchLogSet",
|
2026
2026
|
"name": "DomainBatchLogSet",
|
2027
2027
|
"output_required": true,
|
2028
2028
|
"type": "list",
|
2029
|
-
"value_allowed_null":
|
2029
|
+
"value_allowed_null": false
|
2030
2030
|
},
|
2031
2031
|
{
|
2032
2032
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -2885,13 +2885,13 @@
|
|
2885
2885
|
"members": [
|
2886
2886
|
{
|
2887
2887
|
"disabled": false,
|
2888
|
-
"document": "
|
2889
|
-
"example": "
|
2888
|
+
"document": "域名信息集合",
|
2889
|
+
"example": "无",
|
2890
2890
|
"member": "DomainList",
|
2891
2891
|
"name": "DomainSet",
|
2892
2892
|
"output_required": true,
|
2893
2893
|
"type": "list",
|
2894
|
-
"value_allowed_null":
|
2894
|
+
"value_allowed_null": false
|
2895
2895
|
},
|
2896
2896
|
{
|
2897
2897
|
"disabled": false,
|
@@ -3524,13 +3524,13 @@
|
|
3524
3524
|
},
|
3525
3525
|
{
|
3526
3526
|
"disabled": false,
|
3527
|
-
"document": "
|
3527
|
+
"document": "预释放列表",
|
3528
3528
|
"example": "list[\"PreReleaseInfo\"]",
|
3529
3529
|
"member": "PreReleaseInfo",
|
3530
3530
|
"name": "PreReleaseList",
|
3531
3531
|
"output_required": false,
|
3532
3532
|
"type": "list",
|
3533
|
-
"value_allowed_null":
|
3533
|
+
"value_allowed_null": false
|
3534
3534
|
},
|
3535
3535
|
{
|
3536
3536
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -4319,6 +4319,26 @@
|
|
4319
4319
|
"output_required": true,
|
4320
4320
|
"type": "int",
|
4321
4321
|
"value_allowed_null": false
|
4322
|
+
},
|
4323
|
+
{
|
4324
|
+
"disabled": false,
|
4325
|
+
"document": "是否付费",
|
4326
|
+
"example": "false",
|
4327
|
+
"member": "bool",
|
4328
|
+
"name": "PayStatus",
|
4329
|
+
"output_required": false,
|
4330
|
+
"type": "bool",
|
4331
|
+
"value_allowed_null": false
|
4332
|
+
},
|
4333
|
+
{
|
4334
|
+
"disabled": false,
|
4335
|
+
"document": "大订单ID",
|
4336
|
+
"example": "2025***",
|
4337
|
+
"member": "string",
|
4338
|
+
"name": "BigDealId",
|
4339
|
+
"output_required": false,
|
4340
|
+
"type": "string",
|
4341
|
+
"value_allowed_null": false
|
4322
4342
|
}
|
4323
4343
|
],
|
4324
4344
|
"usage": "out"
|
@@ -5841,7 +5861,7 @@
|
|
5841
5861
|
{
|
5842
5862
|
"disabled": false,
|
5843
5863
|
"document": "联系人信息",
|
5844
|
-
"example": "
|
5864
|
+
"example": "无",
|
5845
5865
|
"member": "ContactInfo",
|
5846
5866
|
"name": "ContactInfo",
|
5847
5867
|
"output_required": true,
|
@@ -6561,6 +6561,15 @@
|
|
6561
6561
|
"name": "FlowDisplayType",
|
6562
6562
|
"required": false,
|
6563
6563
|
"type": "int"
|
6564
|
+
},
|
6565
|
+
{
|
6566
|
+
"disabled": false,
|
6567
|
+
"document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括 \n\n- 签署控件 是否默认展示日期.",
|
6568
|
+
"example": "无",
|
6569
|
+
"member": "SignComponentConfig",
|
6570
|
+
"name": "SignComponentConfig",
|
6571
|
+
"required": false,
|
6572
|
+
"type": "object"
|
6564
6573
|
}
|
6565
6574
|
],
|
6566
6575
|
"type": "object"
|
@@ -12221,7 +12230,7 @@
|
|
12221
12230
|
},
|
12222
12231
|
{
|
12223
12232
|
"disabled": false,
|
12224
|
-
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:",
|
12233
|
+
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:",
|
12225
12234
|
"example": "1",
|
12226
12235
|
"member": "int64",
|
12227
12236
|
"name": "FlowDisplayType",
|
@@ -14734,6 +14743,21 @@
|
|
14734
14743
|
],
|
14735
14744
|
"usage": "both"
|
14736
14745
|
},
|
14746
|
+
"SignComponentConfig": {
|
14747
|
+
"document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括\n\n- 签署控件是否默认展示日期.",
|
14748
|
+
"members": [
|
14749
|
+
{
|
14750
|
+
"disabled": false,
|
14751
|
+
"document": "签署控件默认属性配置,是否默认展示签署日期, 在页面中可以进行修改。\n\n- false 展示签署日期(默认)\n- true 不展示签署日期 \n。",
|
14752
|
+
"example": "false",
|
14753
|
+
"member": "bool",
|
14754
|
+
"name": "HideDate",
|
14755
|
+
"required": false,
|
14756
|
+
"type": "bool"
|
14757
|
+
}
|
14758
|
+
],
|
14759
|
+
"usage": "in"
|
14760
|
+
},
|
14737
14761
|
"SignQrCode": {
|
14738
14762
|
"document": "签署二维码的基本信息,用于创建二维码,用户可扫描该二维码进行签署操作。",
|
14739
14763
|
"members": [
|
@@ -1209,7 +1209,7 @@
|
|
1209
1209
|
},
|
1210
1210
|
{
|
1211
1211
|
"disabled": false,
|
1212
|
-
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:\n",
|
1212
|
+
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:\n",
|
1213
1213
|
"example": "1",
|
1214
1214
|
"member": "int64",
|
1215
1215
|
"name": "FlowDisplayType",
|
@@ -3454,6 +3454,15 @@
|
|
3454
3454
|
"name": "Operator",
|
3455
3455
|
"required": false,
|
3456
3456
|
"type": "object"
|
3457
|
+
},
|
3458
|
+
{
|
3459
|
+
"disabled": false,
|
3460
|
+
"document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括\n\n- 签署控件 是否默认展示日期.",
|
3461
|
+
"example": "无",
|
3462
|
+
"member": "SignComponentConfig",
|
3463
|
+
"name": "SignComponentConfig",
|
3464
|
+
"required": false,
|
3465
|
+
"type": "object"
|
3457
3466
|
}
|
3458
3467
|
],
|
3459
3468
|
"type": "object"
|
@@ -10595,7 +10604,7 @@
|
|
10595
10604
|
},
|
10596
10605
|
{
|
10597
10606
|
"disabled": false,
|
10598
|
-
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:",
|
10607
|
+
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:",
|
10599
10608
|
"example": "1",
|
10600
10609
|
"member": "int64",
|
10601
10610
|
"name": "FlowDisplayType",
|
@@ -10875,7 +10884,7 @@
|
|
10875
10884
|
},
|
10876
10885
|
{
|
10877
10886
|
"disabled": false,
|
10878
|
-
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:",
|
10887
|
+
"document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:",
|
10879
10888
|
"example": "1",
|
10880
10889
|
"member": "int64",
|
10881
10890
|
"name": "FlowDisplayType",
|
@@ -12942,6 +12951,21 @@
|
|
12942
12951
|
],
|
12943
12952
|
"usage": "out"
|
12944
12953
|
},
|
12954
|
+
"SignComponentConfig": {
|
12955
|
+
"document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括 \n\n- 签署控件 是否默认展示日期.",
|
12956
|
+
"members": [
|
12957
|
+
{
|
12958
|
+
"disabled": false,
|
12959
|
+
"document": "签署控件默认属性配置,是否默认展示签署日期, 在页面中可以进行修改。\n\n- false 展示签署日期(默认)\n- true 不展示签署日期 \n。",
|
12960
|
+
"example": "false",
|
12961
|
+
"member": "bool",
|
12962
|
+
"name": "HideDate",
|
12963
|
+
"required": false,
|
12964
|
+
"type": "bool"
|
12965
|
+
}
|
12966
|
+
],
|
12967
|
+
"usage": "in"
|
12968
|
+
},
|
12945
12969
|
"SignQrCode": {
|
12946
12970
|
"document": "签署二维码的基本信息,用于创建二维码,用户可扫描该二维码进行签署操作。",
|
12947
12971
|
"members": [
|
@@ -433,6 +433,58 @@ def doGetTokenCount(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
+
def doGroupChatCompletions(args, parsed_globals):
|
437
|
+
g_param = parse_global_arg(parsed_globals)
|
438
|
+
|
439
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
+
cred = credential.CVMRoleCredential()
|
441
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
+
cred = credential.STSAssumeRoleCredential(
|
443
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
+
)
|
446
|
+
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):
|
447
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
+
else:
|
449
|
+
cred = credential.Credential(
|
450
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
+
)
|
452
|
+
http_profile = HttpProfile(
|
453
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
+
reqMethod="POST",
|
455
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
+
)
|
458
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
+
if g_param[OptionsDefine.Language]:
|
460
|
+
profile.language = g_param[OptionsDefine.Language]
|
461
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
+
model = models.GroupChatCompletionsRequest()
|
466
|
+
model.from_json_string(json.dumps(args))
|
467
|
+
start_time = time.time()
|
468
|
+
while True:
|
469
|
+
rsp = client.GroupChatCompletions(model)
|
470
|
+
result = rsp.to_json_string()
|
471
|
+
try:
|
472
|
+
json_obj = json.loads(result)
|
473
|
+
except TypeError as e:
|
474
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
+
break
|
477
|
+
cur_time = time.time()
|
478
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
+
else:
|
483
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
+
|
487
|
+
|
436
488
|
def doSubmitHunyuanImageChatJob(args, parsed_globals):
|
437
489
|
g_param = parse_global_arg(parsed_globals)
|
438
490
|
|
@@ -1024,6 +1076,7 @@ ACTION_MAP = {
|
|
1024
1076
|
"FilesDeletions": doFilesDeletions,
|
1025
1077
|
"FilesUploads": doFilesUploads,
|
1026
1078
|
"GetTokenCount": doGetTokenCount,
|
1079
|
+
"GroupChatCompletions": doGroupChatCompletions,
|
1027
1080
|
"SubmitHunyuanImageChatJob": doSubmitHunyuanImageChatJob,
|
1028
1081
|
"RunThread": doRunThread,
|
1029
1082
|
"GetThreadMessage": doGetThreadMessage,
|