tccli 3.0.1181.1__py2.py3-none-any.whl → 3.0.1182.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +18 -0
- tccli/services/clb/v20180317/api.json +59 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +50 -11
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dasb/v20191018/api.json +11 -1
- tccli/services/es/v20180416/api.json +1 -1
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +235 -0
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +18 -8
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/tdmq/v20200217/api.json +10 -0
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/wedata/v20210820/api.json +1558 -0
- tccli/services/wedata/v20210820/examples.json +54 -0
- tccli/services/wedata/wedata_client.py +334 -16
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/RECORD +47 -43
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/license_files/LICENSE +0 -0
@@ -1428,7 +1428,7 @@
|
|
1428
1428
|
},
|
1429
1429
|
{
|
1430
1430
|
"disabled": false,
|
1431
|
-
"document": "分散置放群组类型,取值范围:<br><li>HOST
|
1431
|
+
"document": "分散置放群组类型,取值范围:<br><li>HOST:物理机</li><li>SW:交换机</li><li>RACK:机架</li>",
|
1432
1432
|
"example": "HOST",
|
1433
1433
|
"member": "string",
|
1434
1434
|
"name": "Type",
|
@@ -1456,17 +1456,17 @@
|
|
1456
1456
|
"example": "ps-qajfd25h",
|
1457
1457
|
"member": "string",
|
1458
1458
|
"name": "DisasterRecoverGroupId",
|
1459
|
-
"
|
1459
|
+
"output_required": true,
|
1460
1460
|
"type": "string",
|
1461
1461
|
"value_allowed_null": false
|
1462
1462
|
},
|
1463
1463
|
{
|
1464
1464
|
"disabled": false,
|
1465
|
-
"document": "分散置放群组类型,取值范围:<br><li>HOST
|
1465
|
+
"document": "分散置放群组类型,取值范围:<br><li>HOST:物理机</li><li>SW:交换机</li><li>RACK:机架</li>",
|
1466
1466
|
"example": "HOST",
|
1467
1467
|
"member": "string",
|
1468
1468
|
"name": "Type",
|
1469
|
-
"
|
1469
|
+
"output_required": true,
|
1470
1470
|
"type": "string",
|
1471
1471
|
"value_allowed_null": false
|
1472
1472
|
},
|
@@ -1476,7 +1476,7 @@
|
|
1476
1476
|
"example": "物理机容灾组",
|
1477
1477
|
"member": "string",
|
1478
1478
|
"name": "Name",
|
1479
|
-
"
|
1479
|
+
"output_required": true,
|
1480
1480
|
"type": "string",
|
1481
1481
|
"value_allowed_null": false
|
1482
1482
|
},
|
@@ -1486,7 +1486,7 @@
|
|
1486
1486
|
"example": "50",
|
1487
1487
|
"member": "int64",
|
1488
1488
|
"name": "CvmQuotaTotal",
|
1489
|
-
"
|
1489
|
+
"output_required": true,
|
1490
1490
|
"type": "int",
|
1491
1491
|
"value_allowed_null": false
|
1492
1492
|
},
|
@@ -1496,7 +1496,7 @@
|
|
1496
1496
|
"example": "0",
|
1497
1497
|
"member": "int64",
|
1498
1498
|
"name": "CurrentNum",
|
1499
|
-
"
|
1499
|
+
"output_required": true,
|
1500
1500
|
"type": "int",
|
1501
1501
|
"value_allowed_null": false
|
1502
1502
|
},
|
@@ -1506,7 +1506,7 @@
|
|
1506
1506
|
"example": "2018-06-08T07:26:38Z",
|
1507
1507
|
"member": "datetime",
|
1508
1508
|
"name": "CreateTime",
|
1509
|
-
"
|
1509
|
+
"output_required": true,
|
1510
1510
|
"type": "string",
|
1511
1511
|
"value_allowed_null": false
|
1512
1512
|
},
|
@@ -4024,7 +4024,7 @@
|
|
4024
4024
|
"example": "9",
|
4025
4025
|
"member": "uint64",
|
4026
4026
|
"name": "TotalCount",
|
4027
|
-
"
|
4027
|
+
"output_required": true,
|
4028
4028
|
"type": "int",
|
4029
4029
|
"value_allowed_null": false
|
4030
4030
|
},
|
@@ -4034,7 +4034,7 @@
|
|
4034
4034
|
"example": "无",
|
4035
4035
|
"member": "RegionInfo",
|
4036
4036
|
"name": "RegionSet",
|
4037
|
-
"
|
4037
|
+
"output_required": true,
|
4038
4038
|
"type": "list",
|
4039
4039
|
"value_allowed_null": false
|
4040
4040
|
},
|
@@ -4570,7 +4570,7 @@
|
|
4570
4570
|
},
|
4571
4571
|
{
|
4572
4572
|
"disabled": false,
|
4573
|
-
"document": "分散置放群组类型,取值范围:<br
|
4573
|
+
"document": "分散置放群组类型,取值范围:<br>\n<li>HOST:物理机<br></li>\n<li>SW:交换机<br></li>\n<li>RACK:机架</li>",
|
4574
4574
|
"example": "\"HOST\"",
|
4575
4575
|
"member": "string",
|
4576
4576
|
"name": "Type",
|
@@ -7918,7 +7918,7 @@
|
|
7918
7918
|
"example": "10",
|
7919
7919
|
"member": "uint64",
|
7920
7920
|
"name": "LatestVersionNumber",
|
7921
|
-
"
|
7921
|
+
"output_required": true,
|
7922
7922
|
"type": "int",
|
7923
7923
|
"value_allowed_null": true
|
7924
7924
|
},
|
@@ -7928,7 +7928,7 @@
|
|
7928
7928
|
"example": "lt-rf6ogz49",
|
7929
7929
|
"member": "string",
|
7930
7930
|
"name": "LaunchTemplateId",
|
7931
|
-
"
|
7931
|
+
"output_required": true,
|
7932
7932
|
"type": "string",
|
7933
7933
|
"value_allowed_null": true
|
7934
7934
|
},
|
@@ -7938,7 +7938,7 @@
|
|
7938
7938
|
"example": "foobar",
|
7939
7939
|
"member": "string",
|
7940
7940
|
"name": "LaunchTemplateName",
|
7941
|
-
"
|
7941
|
+
"output_required": true,
|
7942
7942
|
"type": "string",
|
7943
7943
|
"value_allowed_null": true
|
7944
7944
|
},
|
@@ -7948,7 +7948,7 @@
|
|
7948
7948
|
"example": "5",
|
7949
7949
|
"member": "uint64",
|
7950
7950
|
"name": "DefaultVersionNumber",
|
7951
|
-
"
|
7951
|
+
"output_required": true,
|
7952
7952
|
"type": "int",
|
7953
7953
|
"value_allowed_null": true
|
7954
7954
|
},
|
@@ -7958,7 +7958,7 @@
|
|
7958
7958
|
"example": "8",
|
7959
7959
|
"member": "uint64",
|
7960
7960
|
"name": "LaunchTemplateVersionCount",
|
7961
|
-
"
|
7961
|
+
"output_required": true,
|
7962
7962
|
"type": "int",
|
7963
7963
|
"value_allowed_null": true
|
7964
7964
|
},
|
@@ -7968,7 +7968,7 @@
|
|
7968
7968
|
"example": "123456",
|
7969
7969
|
"member": "string",
|
7970
7970
|
"name": "CreatedBy",
|
7971
|
-
"
|
7971
|
+
"output_required": true,
|
7972
7972
|
"type": "string",
|
7973
7973
|
"value_allowed_null": true
|
7974
7974
|
},
|
@@ -7978,7 +7978,7 @@
|
|
7978
7978
|
"example": "2020-12-17T01:54:31Z",
|
7979
7979
|
"member": "datetime_iso",
|
7980
7980
|
"name": "CreationTime",
|
7981
|
-
"
|
7981
|
+
"output_required": true,
|
7982
7982
|
"type": "string",
|
7983
7983
|
"value_allowed_null": true
|
7984
7984
|
}
|
@@ -11776,7 +11776,7 @@
|
|
11776
11776
|
},
|
11777
11777
|
{
|
11778
11778
|
"disabled": false,
|
11779
|
-
"document": "是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<
|
11779
|
+
"document": "是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<li>true:表示用作公网网关</li><li>false:表示不作为公网网关</li>默认取值:false。",
|
11780
11780
|
"example": "false",
|
11781
11781
|
"member": "bool",
|
11782
11782
|
"name": "AsVpcGateway",
|
@@ -11815,7 +11815,7 @@
|
|
11815
11815
|
"members": [
|
11816
11816
|
{
|
11817
11817
|
"disabled": false,
|
11818
|
-
"document": "可用区名称,例如,ap-guangzhou-3\n全网可用区名称如下:\n<li> ap-chongqing-1 </li>\n<li> ap-seoul-1 </li>\n<li> ap-seoul-2 </li>\n<li> ap-chengdu-1 </li>\n<li> ap-chengdu-2 </li>\n<li> ap-hongkong-1(售罄) </li>\n<li> ap-hongkong-2 </li>\n<li> ap-hongkong-3 </li>\n<li> ap-shenzhen-fsi-1 </li>\n<li> ap-shenzhen-fsi-2 </li>\n<li> ap-shenzhen-fsi-3(售罄) </li>\n<li> ap-guangzhou-1(售罄)</li>\n<li> ap-guangzhou-2(售罄)</li>\n<li> ap-guangzhou-3 </li>\n<li> ap-guangzhou-4 </li>\n<li> ap-guangzhou-6 </li>\n<li> ap-guangzhou-7 </li>\n<li> ap-tokyo-1 </li>\n<li> ap-tokyo-2 </li>\n<li> ap-singapore-1 </li>\n<li> ap-singapore-2 </li>\n<li> ap-singapore-3 </li>\n<li>ap-singapore-4 </li>\n<li> ap-shanghai-fsi-1 </li>\n<li> ap-shanghai-fsi-2 </li>\n<li> ap-shanghai-fsi-3 </li>\n<li> ap-bangkok-1 </li>\n<li> ap-bangkok-2 </li>\n<li> ap-shanghai-1(售罄) </li>\n<li> ap-shanghai-2 </li>\n<li> ap-shanghai-3 </li>\n<li> ap-shanghai-4 </li>\n<li> ap-shanghai-5 </li>\n<li> ap-shanghai-8 </li>\n<li> ap-mumbai-1 </li>\n<li> ap-mumbai-2 </li>\n<li> eu-moscow-1 </li>\n<li> ap-beijing-1(售罄)</li>\n<li> ap-beijing-2 </li>\n<li> ap-beijing-3 </li>\n<li> ap-beijing-4 </li>\n<li> ap-beijing-5 </li>\n<li> ap-beijing-6 </li>\n<li> ap-beijing-7 </li>\n<li> na-siliconvalley-1 </li>\n<li> na-siliconvalley-2 </li>\n<li> eu-frankfurt-1 </li>\n<li> eu-frankfurt-2 </li>\n<li> na-
|
11818
|
+
"document": "可用区名称,例如,ap-guangzhou-3\n全网可用区名称如下:\n<li> ap-chongqing-1 </li>\n<li> ap-seoul-1 </li>\n<li> ap-seoul-2 </li>\n<li> ap-chengdu-1 </li>\n<li> ap-chengdu-2 </li>\n<li> ap-hongkong-1(售罄) </li>\n<li> ap-hongkong-2 </li>\n<li> ap-hongkong-3 </li>\n<li> ap-shenzhen-fsi-1 </li>\n<li> ap-shenzhen-fsi-2 </li>\n<li> ap-shenzhen-fsi-3(售罄) </li>\n<li> ap-guangzhou-1(售罄)</li>\n<li> ap-guangzhou-2(售罄)</li>\n<li> ap-guangzhou-3 </li>\n<li> ap-guangzhou-4 </li>\n<li> ap-guangzhou-6 </li>\n<li> ap-guangzhou-7 </li>\n<li> ap-tokyo-1 </li>\n<li> ap-tokyo-2 </li>\n<li> ap-singapore-1 </li>\n<li> ap-singapore-2 </li>\n<li> ap-singapore-3 </li>\n<li>ap-singapore-4 </li>\n<li> ap-shanghai-fsi-1 </li>\n<li> ap-shanghai-fsi-2 </li>\n<li> ap-shanghai-fsi-3 </li>\n<li> ap-bangkok-1 </li>\n<li> ap-bangkok-2 </li>\n<li> ap-shanghai-1(售罄) </li>\n<li> ap-shanghai-2 </li>\n<li> ap-shanghai-3 </li>\n<li> ap-shanghai-4 </li>\n<li> ap-shanghai-5 </li>\n<li> ap-shanghai-8 </li>\n<li> ap-mumbai-1 </li>\n<li> ap-mumbai-2 </li>\n<li> eu-moscow-1 </li>\n<li> ap-beijing-1(售罄)</li>\n<li> ap-beijing-2 </li>\n<li> ap-beijing-3 </li>\n<li> ap-beijing-4 </li>\n<li> ap-beijing-5 </li>\n<li> ap-beijing-6 </li>\n<li> ap-beijing-7 </li>\n<li> na-siliconvalley-1 </li>\n<li> na-siliconvalley-2 </li>\n<li> eu-frankfurt-1 </li>\n<li> eu-frankfurt-2 </li>\n<li> na-ashburn-1 </li>\n<li> na-ashburn-2 </li>\n<li> ap-nanjing-1 </li>\n<li> ap-nanjing-2 </li>\n<li> ap-nanjing-3 </li>\n<li> sa-saopaulo-1</li>\n<li> ap-jakarta-1 </li>\n<li> ap-jakarta-2 </li>",
|
11819
11819
|
"example": "ap-guangzhou-3",
|
11820
11820
|
"member": "string",
|
11821
11821
|
"name": "Zone",
|
@@ -364,7 +364,7 @@
|
|
364
364
|
{
|
365
365
|
"document": "",
|
366
366
|
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegions\n<公共请求参数>\n\n{}",
|
367
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 9,\n \"RegionSet\": [\n {\n \"Region\": \"ap-beijing\",\n \"RegionName\": \"华北地区(北京)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-guangzhou\",\n \"RegionName\": \"华南地区(广州)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-hongkong\",\n \"RegionName\": \"港澳台地区(中国香港)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shanghai\",\n \"RegionName\": \"华东地区(上海)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shanghai-fsi\",\n \"RegionName\": \"华东地区(上海金融)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shenzhen-fsi\",\n \"RegionName\": \"华南地区(深圳金融)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-singapore\",\n \"RegionName\": \"亚太东南(新加坡)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"na-siliconvalley\",\n \"RegionName\": \"美国西部(硅谷)\",\n \"RegionState\": \"AVAILABLE\"\n }
|
367
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 9,\n \"RegionSet\": [\n {\n \"Region\": \"ap-beijing\",\n \"RegionName\": \"华北地区(北京)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-guangzhou\",\n \"RegionName\": \"华南地区(广州)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-hongkong\",\n \"RegionName\": \"港澳台地区(中国香港)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shanghai\",\n \"RegionName\": \"华东地区(上海)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shanghai-fsi\",\n \"RegionName\": \"华东地区(上海金融)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shenzhen-fsi\",\n \"RegionName\": \"华南地区(深圳金融)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-singapore\",\n \"RegionName\": \"亚太东南(新加坡)\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"na-siliconvalley\",\n \"RegionName\": \"美国西部(硅谷)\",\n \"RegionState\": \"AVAILABLE\"\n }\n ],\n \"RequestId\": \"C563943B-3BEA-FE92-29FE-591EAEB7871F\"\n }\n}",
|
368
368
|
"title": "请求例子"
|
369
369
|
}
|
370
370
|
],
|
@@ -25433,7 +25433,7 @@
|
|
25433
25433
|
},
|
25434
25434
|
{
|
25435
25435
|
"disabled": false,
|
25436
|
-
"document": "
|
25436
|
+
"document": "过滤条件。<li>Quuid - String - 是否必填:否 - 云服务器uuid</li><li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li><li>MachineName - String - 是否必填:否 - 主机别名</li><li>Ip - String - 是否必填:否 - 主机ip</li><li>InstanceID - String - 是否必填:否 - 主机实例ID</li><li>SrcIp - String - 是否必填:否 - 来源ip筛选</li><li>UserName - String - 是否必填:否 - 用户名筛选</li><li>Status - string - 是否必填:否 - 状态筛选1:正常登录;5:已加白,14:已处理,15:已忽略</li><li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li><li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li><li>RiskLevel - string - 是否必填:否 - 状态筛选0:高危;1:可疑</li>",
|
25437
25437
|
"example": "[]",
|
25438
25438
|
"member": "Filter",
|
25439
25439
|
"name": "Filters",
|
@@ -41114,7 +41114,7 @@
|
|
41114
41114
|
"example": "https://yunjing-dev-1256299843.cos.ap-guangzhou.myqcloud.com/%E6",
|
41115
41115
|
"member": "string",
|
41116
41116
|
"name": "DownloadUrl",
|
41117
|
-
"
|
41117
|
+
"output_required": true,
|
41118
41118
|
"type": "string",
|
41119
41119
|
"value_allowed_null": false
|
41120
41120
|
},
|
@@ -41124,7 +41124,7 @@
|
|
41124
41124
|
"example": "1615549629",
|
41125
41125
|
"member": "string",
|
41126
41126
|
"name": "TaskId",
|
41127
|
-
"
|
41127
|
+
"output_required": true,
|
41128
41128
|
"type": "string",
|
41129
41129
|
"value_allowed_null": false
|
41130
41130
|
},
|
@@ -3424,7 +3424,7 @@
|
|
3424
3424
|
{
|
3425
3425
|
"document": "",
|
3426
3426
|
"input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportVulDetectionReport\n<公共请求参数>\n\n{\n \"TaskId\": \"1596595610\"\n}",
|
3427
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
3427
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxx-xxxx-xxx-xxxx-xxxx\",\n \"DownloadUrl\": \"https://xxx.cos.ap-guangzhou.myqcloud.com/%E6%BC%8F%E6%B4%9E%E6%A3%80%E6%B5%8B%E6%8A%A5%E5%91%8A_20210312.pdf?q-sign-algorithm=sha1&q-ak=xxx&q-sign-time=1615549630%3B1615553230&q-key-time=1615549630%3B1615553230&q-header-list=host&q-url-param-list=&q-signature=xxx\",\n \"TaskId\": \"12341234\"\n }\n}",
|
3428
3428
|
"title": "导出漏洞检测报告"
|
3429
3429
|
}
|
3430
3430
|
],
|
@@ -843,7 +843,7 @@
|
|
843
843
|
"OpenReadOnlyInstanceExclusiveAccess": {
|
844
844
|
"document": "开通只读实例独有访问接入组",
|
845
845
|
"input": "OpenReadOnlyInstanceExclusiveAccessRequest",
|
846
|
-
"name": "
|
846
|
+
"name": "开通只读实例独有访问接入组。",
|
847
847
|
"output": "OpenReadOnlyInstanceExclusiveAccessResponse",
|
848
848
|
"status": "online"
|
849
849
|
},
|
@@ -4929,7 +4929,7 @@
|
|
4929
4929
|
"members": [
|
4930
4930
|
{
|
4931
4931
|
"disabled": false,
|
4932
|
-
"document": "
|
4932
|
+
"document": "实例类型,目前固定传cynosdb-serverless",
|
4933
4933
|
"example": "cynosdb-serverless",
|
4934
4934
|
"member": "string",
|
4935
4935
|
"name": "InstanceType",
|
@@ -4938,8 +4938,8 @@
|
|
4938
4938
|
},
|
4939
4939
|
{
|
4940
4940
|
"disabled": false,
|
4941
|
-
"document": "
|
4942
|
-
"example": "
|
4941
|
+
"document": "资源包使用地域chineseMainland-中国内地通用,overseas-港澳台及海外通用",
|
4942
|
+
"example": "chineseMainland",
|
4943
4943
|
"member": "string",
|
4944
4944
|
"name": "PackageRegion",
|
4945
4945
|
"required": true,
|
@@ -15917,12 +15917,50 @@
|
|
15917
15917
|
},
|
15918
15918
|
"OpenClusterReadOnlyInstanceGroupAccessRequest": {
|
15919
15919
|
"document": "OpenClusterReadOnlyInstanceGroupAccess请求参数结构体",
|
15920
|
-
"members": [
|
15920
|
+
"members": [
|
15921
|
+
{
|
15922
|
+
"disabled": false,
|
15923
|
+
"document": "集群ID",
|
15924
|
+
"example": "cynosdbmysql-12345678",
|
15925
|
+
"member": "string",
|
15926
|
+
"name": "ClusterId",
|
15927
|
+
"required": true,
|
15928
|
+
"type": "string"
|
15929
|
+
},
|
15930
|
+
{
|
15931
|
+
"disabled": false,
|
15932
|
+
"document": "端口",
|
15933
|
+
"example": "1234",
|
15934
|
+
"member": "string",
|
15935
|
+
"name": "Port",
|
15936
|
+
"required": true,
|
15937
|
+
"type": "string"
|
15938
|
+
},
|
15939
|
+
{
|
15940
|
+
"disabled": false,
|
15941
|
+
"document": "安全组ID ",
|
15942
|
+
"example": "[Security1,Security2,Security3]",
|
15943
|
+
"member": "string",
|
15944
|
+
"name": "SecurityGroupIds",
|
15945
|
+
"required": false,
|
15946
|
+
"type": "list"
|
15947
|
+
}
|
15948
|
+
],
|
15921
15949
|
"type": "object"
|
15922
15950
|
},
|
15923
15951
|
"OpenClusterReadOnlyInstanceGroupAccessResponse": {
|
15924
15952
|
"document": "OpenClusterReadOnlyInstanceGroupAccess返回参数结构体",
|
15925
15953
|
"members": [
|
15954
|
+
{
|
15955
|
+
"disabled": false,
|
15956
|
+
"document": "开启流程ID",
|
15957
|
+
"example": "12345",
|
15958
|
+
"member": "string",
|
15959
|
+
"name": "FlowId",
|
15960
|
+
"output_required": true,
|
15961
|
+
"type": "string",
|
15962
|
+
"value_allowed_null": false
|
15963
|
+
},
|
15926
15964
|
{
|
15927
15965
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
15928
15966
|
"member": "string",
|
@@ -15937,7 +15975,7 @@
|
|
15937
15975
|
"members": [
|
15938
15976
|
{
|
15939
15977
|
"disabled": false,
|
15940
|
-
"document": "
|
15978
|
+
"document": "请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 clusterId。",
|
15941
15979
|
"example": "cynosdbmysql-12345678",
|
15942
15980
|
"member": "string",
|
15943
15981
|
"name": "ClusterId",
|
@@ -15946,7 +15984,7 @@
|
|
15946
15984
|
},
|
15947
15985
|
{
|
15948
15986
|
"disabled": false,
|
15949
|
-
"document": "
|
15987
|
+
"document": "请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 instanceId。",
|
15950
15988
|
"example": "cynosdbmysql-ins-12345678",
|
15951
15989
|
"member": "string",
|
15952
15990
|
"name": "InstanceId",
|
@@ -15955,7 +15993,7 @@
|
|
15955
15993
|
},
|
15956
15994
|
{
|
15957
15995
|
"disabled": false,
|
15958
|
-
"document": "指定的vpc ID",
|
15996
|
+
"document": "指定的 vpc ID,请使用 [查询私有网络列表](https://cloud.tencent.com/document/api/215/15778) 获取 vpc ID。",
|
15959
15997
|
"example": "vpc-12345678",
|
15960
15998
|
"member": "string",
|
15961
15999
|
"name": "VpcId",
|
@@ -15964,7 +16002,7 @@
|
|
15964
16002
|
},
|
15965
16003
|
{
|
15966
16004
|
"disabled": false,
|
15967
|
-
"document": "指定的子网ID",
|
16005
|
+
"document": "指定的子网 ID,如果设置了 vpc ID,则 SubnetId 必填,请使用 [查询子网列表](https://cloud.tencent.com/document/api/215/15784) 获取 SubnetId。",
|
15968
16006
|
"example": "subnet-12345678",
|
15969
16007
|
"member": "string",
|
15970
16008
|
"name": "SubnetId",
|
@@ -15973,7 +16011,7 @@
|
|
15973
16011
|
},
|
15974
16012
|
{
|
15975
16013
|
"disabled": false,
|
15976
|
-
"document": "
|
16014
|
+
"document": "用户自定义的端口。",
|
15977
16015
|
"example": "1234",
|
15978
16016
|
"member": "int64",
|
15979
16017
|
"name": "Port",
|
@@ -15982,7 +16020,7 @@
|
|
15982
16020
|
},
|
15983
16021
|
{
|
15984
16022
|
"disabled": false,
|
15985
|
-
"document": "安全组",
|
16023
|
+
"document": "安全组 ID,请使用 [查看安全组](https://cloud.tencent.com/document/api/215/15808) 获取 SecurityGroupId。",
|
15986
16024
|
"example": "[SecurityGroupIds1,SecurityGroupIds2]",
|
15987
16025
|
"member": "string",
|
15988
16026
|
"name": "SecurityGroupIds",
|
@@ -16001,6 +16039,7 @@
|
|
16001
16039
|
"example": "12345",
|
16002
16040
|
"member": "int64",
|
16003
16041
|
"name": "FlowId",
|
16042
|
+
"output_required": true,
|
16004
16043
|
"type": "int",
|
16005
16044
|
"value_allowed_null": false
|
16006
16045
|
},
|
@@ -979,8 +979,8 @@
|
|
979
979
|
"OpenClusterReadOnlyInstanceGroupAccess": [
|
980
980
|
{
|
981
981
|
"document": "任何场景",
|
982
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenClusterReadOnlyInstanceGroupAccess\n<公共请求参数>\n\n{}",
|
983
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"qwertyuiop\"\n }\n}",
|
982
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenClusterReadOnlyInstanceGroupAccess\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-abcd1234\",\n \"Port\": \"3306\",\n \"SecurityGroupIds\": [\n \"SecurityGroupIds1\",\n \"SecurityGroupIds2\"\n ]\n}",
|
983
|
+
"output": "{\n \"Response\": {\n \"FlowId\": \"12345\",\n \"RequestId\": \"qwertyuiop\"\n }\n}",
|
984
984
|
"title": "ex:"
|
985
985
|
}
|
986
986
|
],
|
@@ -988,7 +988,7 @@
|
|
988
988
|
{
|
989
989
|
"document": "任何场景",
|
990
990
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenReadOnlyInstanceExclusiveAccess\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-qwertyui\",\n \"InstanceId\": \"cynosdbmysql-ins-asdfghjk\",\n \"VpcId\": \"vpc-asdfghjk\",\n \"SubnetId\": \"subnet-qwertyui\",\n \"Port\": 3306,\n \"SecurityGroupIds\": [\n \"SecurityGroupIds1\",\n \"SecurityGroupIds2\"\n ]\n}",
|
991
|
-
"output": "{\n \"Response\": {\n \"FlowId\":
|
991
|
+
"output": "{\n \"Response\": {\n \"FlowId\": 12345,\n \"RequestId\": \"123123123123123\"\n }\n}",
|
992
992
|
"title": "ex:"
|
993
993
|
}
|
994
994
|
],
|
@@ -1110,7 +1110,7 @@
|
|
1110
1110
|
"example": "bh-saas-xxxxxxxx",
|
1111
1111
|
"member": "string",
|
1112
1112
|
"name": "ResourceId",
|
1113
|
-
"required":
|
1113
|
+
"required": false,
|
1114
1114
|
"type": "string"
|
1115
1115
|
},
|
1116
1116
|
{
|
@@ -6449,6 +6449,16 @@
|
|
6449
6449
|
"output_required": false,
|
6450
6450
|
"type": "int",
|
6451
6451
|
"value_allowed_null": true
|
6452
|
+
},
|
6453
|
+
{
|
6454
|
+
"disabled": false,
|
6455
|
+
"document": "0 非试用版,1 试用版\n注意:此字段可能返回 null,表示取不到有效值。",
|
6456
|
+
"example": "0",
|
6457
|
+
"member": "uint64",
|
6458
|
+
"name": "Trial",
|
6459
|
+
"output_required": false,
|
6460
|
+
"type": "int",
|
6461
|
+
"value_allowed_null": true
|
6452
6462
|
}
|
6453
6463
|
],
|
6454
6464
|
"usage": "out"
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"status": "online"
|
65
65
|
},
|
66
66
|
"CreateBatchSignUrl": {
|
67
|
-
"document": "通过此接口,可以创建小程序批量签署链接,个人/企业员工可通过此链接跳转至小程序进行批量签署。请确保生成链接时的身份信息与签署合同参与方的信息保持一致。\n\n注意事项:\n- 使用此接口生成链接,需要贵企业先开通 <font color=\"red\"
|
67
|
+
"document": "通过此接口,可以创建小程序批量签署链接,个人/企业员工可通过此链接跳转至小程序进行批量签署。请确保生成链接时的身份信息与签署合同参与方的信息保持一致。\n\n注意事项:\n- 使用此接口生成链接,需要贵企业先开通 <font color=\"red\">个人签署方仅校验手机号 </font>功能。您可以在 <b>【腾讯电子签网页端】->【企业设置】->【拓展服务】</b>中找到该功能。\n- 生成批量签署链接时,<font color=\"red\">合同目标参与方的状态必须为<b>待签署</b>状态</font>。签署人点击链接后需要输入短信验证码才能查看合同内容。\n- 企业员工批量签署链接:需要传入签署方所在企业名称,用户名字和手机号(或者身份证件信息)参数来生成签署链接。<font color=\"red\">该签署方企业必须已完成腾讯电子签企业认证</font>\n- 个人批量签署链接:需要传入签署方用户名字和手机号(或者身份证件信息)参数来生成签署链接。个人批量签署进行的合同的签名区, 全部变成<font color=\"red\">手写签名</font>(不管合同里边设置的签名限制)来进行。",
|
68
68
|
"input": "CreateBatchSignUrlRequest",
|
69
69
|
"name": "获取跳转至腾讯电子签小程序的批量签署链接",
|
70
70
|
"output": "CreateBatchSignUrlResponse",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
45
|
"ChannelCreateBatchSignUrl": {
|
46
|
-
"document": "通过此接口,创建小程序批量签署链接,个人/企业员工点击此链接即可跳转小程序进行批量签署。\n请确保生成链接时候的身份信息和签署合同参与方的信息保持一致。\n\n注:\n- 使用此接口生成链接,需要提前开通
|
46
|
+
"document": "通过此接口,创建小程序批量签署链接,个人/企业员工点击此链接即可跳转小程序进行批量签署。\n请确保生成链接时候的身份信息和签署合同参与方的信息保持一致。\n\n注:\n- 使用此接口生成链接,需要提前开通 `个人签署方仅校验手机号` 功能,在 `腾讯电子签网页端-企业设置-拓展服务` 中可以找到。\n- 个人参与方点击链接后需短信验证码才能查看合同内容。\n- 个人用户批量签署,需要传Name,Mobile,IdCardNumber(IdCardType) 参数。\n- saas企业员工用户批量签署,在传递了姓名等基本信息参数的情况下,还需要传OrganizationName(参与方所在企业名称)参数生成签署链接,<font color=\"red\">请确保此企业已完成腾讯电子签企业认证</font>。\n- 子客企业员工用户批量签署,需要传递员工OpenId和子客企业的OrganizationOpenId。<font color=\"red\">请确保此OrganizationOpenId对应子客已经认证,且OpenId对应员工此子客下已经实名</font>。Name,Mobile, IdCard等信息此时可以不传,系统会查询此OpenId实名信息自动补充。\n- 生成批量签署链接时,合同目标参与方状态需为<font color=\"red\">待签署</font>状态。\n- 个人批量签署进行的合同的签名区, 全部变成<font color=\"red\">手写签名</font>(不管合同里边设置的签名限制)来进行。",
|
47
47
|
"input": "ChannelCreateBatchSignUrlRequest",
|
48
48
|
"name": "获取跳转至腾讯电子签小程序的批量签署链接",
|
49
49
|
"output": "ChannelCreateBatchSignUrlResponse",
|
@@ -17,6 +17,58 @@ from tencentcloud.hunyuan.v20230901 import models as models_v20230901
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doQueryHunyuanImageChatJob(args, parsed_globals):
|
21
|
+
g_param = parse_global_arg(parsed_globals)
|
22
|
+
|
23
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
+
cred = credential.CVMRoleCredential()
|
25
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
+
cred = credential.STSAssumeRoleCredential(
|
27
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
+
)
|
30
|
+
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):
|
31
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
+
else:
|
33
|
+
cred = credential.Credential(
|
34
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
+
)
|
36
|
+
http_profile = HttpProfile(
|
37
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
+
reqMethod="POST",
|
39
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
+
)
|
42
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
+
if g_param[OptionsDefine.Language]:
|
44
|
+
profile.language = g_param[OptionsDefine.Language]
|
45
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.QueryHunyuanImageChatJobRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.QueryHunyuanImageChatJob(model)
|
54
|
+
result = rsp.to_json_string()
|
55
|
+
try:
|
56
|
+
json_obj = json.loads(result)
|
57
|
+
except TypeError as e:
|
58
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
+
break
|
61
|
+
cur_time = time.time()
|
62
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
+
else:
|
67
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
+
|
71
|
+
|
20
72
|
def doSubmitHunyuanImageJob(args, parsed_globals):
|
21
73
|
g_param = parse_global_arg(parsed_globals)
|
22
74
|
|
@@ -173,6 +225,58 @@ def doGetTokenCount(args, parsed_globals):
|
|
173
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
226
|
|
175
227
|
|
228
|
+
def doSubmitHunyuanImageChatJob(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.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.SubmitHunyuanImageChatJobRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.SubmitHunyuanImageChatJob(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
|
+
|
176
280
|
def doChatCompletions(args, parsed_globals):
|
177
281
|
g_param = parse_global_arg(parsed_globals)
|
178
282
|
|
@@ -444,9 +548,11 @@ MODELS_MAP = {
|
|
444
548
|
}
|
445
549
|
|
446
550
|
ACTION_MAP = {
|
551
|
+
"QueryHunyuanImageChatJob": doQueryHunyuanImageChatJob,
|
447
552
|
"SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
|
448
553
|
"QueryHunyuanImageJob": doQueryHunyuanImageJob,
|
449
554
|
"GetTokenCount": doGetTokenCount,
|
555
|
+
"SubmitHunyuanImageChatJob": doSubmitHunyuanImageChatJob,
|
450
556
|
"ChatCompletions": doChatCompletions,
|
451
557
|
"GetEmbedding": doGetEmbedding,
|
452
558
|
"SetPayMode": doSetPayMode,
|