tccli 3.0.1343.1__py2.py3-none-any.whl → 3.0.1344.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 (79) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +6 -0
  3. tccli/services/ams/v20201229/api.json +46 -46
  4. tccli/services/ams/v20201229/examples.json +1 -1
  5. tccli/services/batch/batch_client.py +53 -0
  6. tccli/services/batch/v20170312/api.json +125 -0
  7. tccli/services/batch/v20170312/examples.json +8 -0
  8. tccli/services/bh/v20230418/api.json +282 -1
  9. tccli/services/bh/v20230418/examples.json +3 -3
  10. tccli/services/bi/v20220105/api.json +9 -0
  11. tccli/services/ccc/v20200210/api.json +9 -0
  12. tccli/services/cdb/v20170320/api.json +38 -38
  13. tccli/services/cdb/v20170320/examples.json +3 -3
  14. tccli/services/cdwch/cdwch_client.py +53 -0
  15. tccli/services/cdwch/v20200915/api.json +410 -0
  16. tccli/services/cdwch/v20200915/examples.json +8 -0
  17. tccli/services/cdwdoris/v20211228/api.json +22 -2
  18. tccli/services/cfg/v20210820/api.json +72 -0
  19. tccli/services/ckafka/v20190819/api.json +21 -1
  20. tccli/services/csip/csip_client.py +163 -4
  21. tccli/services/csip/v20221121/api.json +967 -164
  22. tccli/services/csip/v20221121/examples.json +29 -5
  23. tccli/services/cvm/v20170312/api.json +16 -5
  24. tccli/services/cvm/v20170312/examples.json +1 -1
  25. tccli/services/dlc/v20210125/api.json +61 -0
  26. tccli/services/emr/emr_client.py +167 -8
  27. tccli/services/emr/v20190103/api.json +809 -14
  28. tccli/services/emr/v20190103/examples.json +24 -0
  29. tccli/services/es/v20250101/examples.json +2 -2
  30. tccli/services/ess/v20201111/api.json +15 -6
  31. tccli/services/essbasic/v20210526/api.json +2 -2
  32. tccli/services/gs/v20191118/api.json +40 -1
  33. tccli/services/gs/v20191118/examples.json +2 -2
  34. tccli/services/hunyuan/v20230901/api.json +1 -1
  35. tccli/services/igtm/__init__.py +4 -0
  36. tccli/services/igtm/igtm_client.py +1373 -0
  37. tccli/services/igtm/v20231024/api.json +3569 -0
  38. tccli/services/igtm/v20231024/examples.json +207 -0
  39. tccli/services/ims/v20201229/api.json +20 -28
  40. tccli/services/ioa/ioa_client.py +114 -8
  41. tccli/services/ioa/v20220601/api.json +218 -3
  42. tccli/services/ioa/v20220601/examples.json +16 -0
  43. tccli/services/iss/v20230517/api.json +11 -2
  44. tccli/services/kms/v20190118/api.json +4 -4
  45. tccli/services/lighthouse/v20200324/api.json +1 -1
  46. tccli/services/mps/v20190612/api.json +43 -5
  47. tccli/services/ocr/v20181119/api.json +127 -118
  48. tccli/services/partners/v20180321/api.json +1 -1
  49. tccli/services/securitylake/__init__.py +4 -0
  50. tccli/services/securitylake/securitylake_client.py +207 -0
  51. tccli/services/securitylake/v20240117/api.json +723 -0
  52. tccli/services/securitylake/v20240117/examples.json +13 -0
  53. tccli/services/tcbr/v20220217/api.json +70 -0
  54. tccli/services/tdmq/v20200217/api.json +263 -5
  55. tccli/services/tdmq/v20200217/examples.json +1 -1
  56. tccli/services/teo/v20220901/api.json +40 -30
  57. tccli/services/teo/v20220901/examples.json +19 -19
  58. tccli/services/tione/tione_client.py +57 -4
  59. tccli/services/tione/v20211111/api.json +283 -1
  60. tccli/services/tione/v20211111/examples.json +8 -0
  61. tccli/services/tke/v20180525/api.json +37 -28
  62. tccli/services/tms/v20201229/api.json +14 -21
  63. tccli/services/trocket/v20230308/api.json +80 -80
  64. tccli/services/trocket/v20230308/examples.json +1 -1
  65. tccli/services/tsf/tsf_client.py +61 -8
  66. tccli/services/tsf/v20180326/api.json +3161 -2106
  67. tccli/services/tsf/v20180326/examples.json +8 -0
  68. tccli/services/vdb/v20230616/api.json +49 -0
  69. tccli/services/vdb/v20230616/examples.json +1 -1
  70. tccli/services/vm/v20210922/api.json +8 -8
  71. tccli/services/vpc/v20170312/api.json +1 -1
  72. tccli/services/wav/v20210129/api.json +10 -10
  73. tccli/services/wav/v20210129/examples.json +3 -3
  74. tccli/services/wedata/v20210820/api.json +11 -0
  75. {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/METADATA +2 -2
  76. {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/RECORD +79 -71
  77. {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/WHEEL +0 -0
  78. {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/entry_points.txt +0 -0
  79. {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/license_files/LICENSE +0 -0
@@ -48,6 +48,14 @@
48
48
  "title": "告警中心全量告警示例"
49
49
  }
50
50
  ],
51
+ "DescribeAssetProcessList": [
52
+ {
53
+ "document": "查询云边界分析-暴露路径下主机节点的进程列表",
54
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetProcessList\n<公共请求参数>\n\n{\n \"Provider\": \"tencent\"\n}",
55
+ "output": "{\n \"Response\": {\n \"AssetProcessList\": [\n {\n \"AppID\": 0,\n \"CloudAccountID\": \"\",\n \"CloudAccountName\": \"\",\n \"CmdLine\": \"/usr/sbin/NetworkManager\",\n \"InstanceID\": \"ins-x\",\n \"InstanceName\": \"opcloudos8_1\",\n \"Port\": \"\",\n \"PrivateIp\": \"\",\n \"ProcessID\": \"\",\n \"ProcessName\": \"NetworkManager\",\n \"PublicIp\": \"\"\n }\n ],\n \"RequestId\": \"a6981e0a-681b-4472-83aa-cddbd2c7cccb\",\n \"TotalCount\": 238\n }\n}",
56
+ "title": "查询云边界分析-暴露路径下主机节点的进程列表"
57
+ }
58
+ ],
51
59
  "DescribeAssetRiskList": [
52
60
  {
53
61
  "document": "",
@@ -149,7 +157,7 @@
149
157
  "document": "",
150
158
  "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposeAssetCategory\n<公共请求参数>\n\n{}",
151
159
  "output": "{\n \"Response\": {\n \"ExposeAssetTypeList\": [\n {\n \"Provider\": \"tencent\",\n \"ProviderName\": \"腾讯云\",\n \"AssetType\": \"cvm_instance\",\n \"AssetTypeName\": \"云服务器\"\n }\n ],\n \"RequestId\": \"46fb51ad-b6d8-4c91-af47-8f4bc947a69c\"\n }\n}",
152
- "title": "暴露面资产分类"
160
+ "title": "云边界分析资产分类"
153
161
  }
154
162
  ],
155
163
  "DescribeExposePath": [
@@ -157,7 +165,7 @@
157
165
  "document": "",
158
166
  "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposePath\n<公共请求参数>\n\n{\n \"AssetId\": \"ins-isd76xs9\"\n}",
159
167
  "output": "{\n \"Response\": {\n \"RequestId\": \"c93adc50-6598-4af6-afa4-51e09895451f\",\n \"Content\": \"\"\n }\n}",
160
- "title": "查询互联网暴露节点"
168
+ "title": "查询云边界分析路径节点"
161
169
  }
162
170
  ],
163
171
  "DescribeExposures": [
@@ -165,7 +173,7 @@
165
173
  "document": "",
166
174
  "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposures\n<公共请求参数>\n\n{}",
167
175
  "output": "{\n \"Response\": {\n \"ExposeList\": [\n {\n \"AclList\": \"0.0.0.0/0\",\n \"AclType\": \"whitelist\",\n \"AssetId\": \"ins-bvxns9uy\",\n \"AssetType\": \"cvm_instance\",\n \"AssetTypeName\": \"云服务器\",\n \"CloudAccountId\": \"100010427547\",\n \"CloudAccountName\": \"安全攻防\",\n \"CreateTime\": \"2024-10-15T07:21:22Z\",\n \"DisplayRiskType\": \"非标端口\",\n \"DisplayStatus\": \"完全开放\",\n \"Domain\": \"\",\n \"HighRiskPortServiceCount\": 0,\n \"InstanceName\": \"tke_cls-5q9sj52q_worker21\",\n \"Ip\": \"175.178.22.29\",\n \"Port\": \"30000-32768\",\n \"PortServiceCount\": 0,\n \"Provider\": \"腾讯云\",\n \"RiskType\": \"no_standard_port\",\n \"RiskWebAppCount\": 0,\n \"Status\": \"open\",\n \"UpdateTime\": \"2025-01-14T02:31:55Z\",\n \"VulCount\": 0,\n \"WeakPasswordCount\": 0,\n \"WebAppCount\": 0,\n \"ScanTaskStatus\": \"running\",\n \"Uuid\": \"sadsds\",\n \"HasScan\": \"true\",\n \"AppId\": 12465129\n }\n ],\n \"RequestId\": \"0ce09587-eaba-4f70-ae9b-1a80b69ee21f\",\n \"TotalCount\": 102\n }\n}",
168
- "title": "互联网暴露资产列表"
176
+ "title": "云边界分析资产列表"
169
177
  }
170
178
  ],
171
179
  "DescribeGatewayAssets": [
@@ -176,6 +184,14 @@
176
184
  "title": "示例"
177
185
  }
178
186
  ],
187
+ "DescribeHighBaseLineRiskList": [
188
+ {
189
+ "document": "",
190
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHighBaseLineRiskList\n<公共请求参数>\n\n{\n \"CloudAccountID\": \"100014592178\",\n \"Provider\": \"tencent\"\n}",
191
+ "output": "{\n \"Response\": {\n \"HighBaseLineRiskList\": [\n {\n \"AssetID\": \"ins-xxs13fd\",\n \"CloudAccountID\": \"123342644\",\n \"CreateTime\": \"2024-12-26 21:28:51\",\n \"FixAdvice\": \"\",\n \"InstanceName\": \"主机x安全中心(请勿删除)\",\n \"InstanceStatus\": \"active\",\n \"InstanceStatusName\": \"运行中\",\n \"RiskCategory\": \"4\",\n \"RiskCategoryName\": \"弱口令\",\n \"RiskDesc\": \"系统存在弱口令,可以轻易被猜解,黑客可以通过暴力破解等方式进行密码爆破,从而获取系统用户密码,进而获得系统权限,导致服务器上的文件和数据泄露或者被用作其他攻击用途。\",\n \"RiskLevel\": \"3\",\n \"RiskLevelName\": \"高危\",\n \"RiskName\": \"Linux系统弱口令检测\",\n \"RiskResult\": \"系统中存在弱口令: {\\\"testxxxx\\\": \\\"123******\\\"}\",\n \"UpdateTime\": \"2025-04-22 10:32:19\"\n }\n ],\n \"RequestId\": \"0a44ea12-dce32-46a13-8eb19-2ea7872bb96b\",\n \"TotalCount\": 1\n }\n}",
192
+ "title": "查询云边界分析-暴露路径下主机节点的高危基线风险列表"
193
+ }
194
+ ],
179
195
  "DescribeListenerList": [
180
196
  {
181
197
  "document": "示例1",
@@ -338,10 +354,10 @@
338
354
  ],
339
355
  "DescribeScanStatistic": [
340
356
  {
341
- "document": "查询暴露面扫描结果统计信息",
357
+ "document": "查询云边界分析结果统计信息",
342
358
  "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeScanStatistic\n<公共请求参数>\n\n{}",
343
359
  "output": "{\n \"Response\": {\n \"HighRiskPortServiceCount\": 3,\n \"PortServiceCount\": 3,\n \"PortServiceIncrement\": 0,\n \"RequestId\": \"45ca21d4-f373-4274-9295-5380abc74bed\",\n \"RiskWebAppCount\": 0,\n \"VulCount\": 0,\n \"WeakPasswordCount\": 1,\n \"WebAppCount\": 0,\n \"WebAppIncrement\": 0\n }\n}",
344
- "title": "查询暴露面扫描结果统计信息"
360
+ "title": "查询云边界分析结果统计信息"
345
361
  }
346
362
  ],
347
363
  "DescribeScanTaskList": [
@@ -440,6 +456,14 @@
440
456
  "title": "获取vpc列表"
441
457
  }
442
458
  ],
459
+ "DescribeVulRiskList": [
460
+ {
461
+ "document": "",
462
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVulRiskList\n<公共请求参数>\n\n{\n \"CloudAccountID\": \"100010421111\",\n \"Provider\": \"tencent\"\n}",
463
+ "output": "{\n \"Response\": {\n \"RequestId\": \"8df95ddb-cc28-489d-a37d-422e0d93fe4b\",\n \"TotalCount\": 882,\n \"VulRiskList\": [\n {\n \"AssetID\": \"ins-xxxx\",\n \"CloudAccountID\": \"100010421111\",\n \"ContainerID\": \"\",\n \"CreateTime\": \"2025-05-15 01:18:44\",\n \"CveID\": \"CVE-2025-32911\",\n \"Description\": \"libsoup是GNOME项目的一款GNOME的HTTP客户端/服务器库。 libsoup存在安全漏洞,该漏洞源于函数soup_message_headers_get_content_disposition存在双重释放问题。\",\n \"Fix\": \"软件: libsoup2.4-1, 版本: 2.70.0-1\\n\\n修复命令\\nsudo apt-get -y install libsoup2.4-1 --only-upgrade\\n\",\n \"InstanceName\": \"测试平台\",\n \"InstanceStatus\": \"active\",\n \"UpdateTime\": \"2025-05-21 01:22:30\",\n \"VulCategory\": \"4\",\n \"VulCategoryName\": \"Linux软件漏洞\",\n \"VulLevel\": \"4\",\n \"VulLevelName\": \"严重\",\n \"VulName\": \"libsoup 安全漏洞(CVE-2025-32911)\",\n \"InstanceStatusName\": \"运行中\"\n }\n ]\n }\n}",
464
+ "title": "查询云边界分析-暴露路径下主机节点的漏洞列表"
465
+ }
466
+ ],
443
467
  "DescribeVulViewVulRiskList": [
444
468
  {
445
469
  "document": "获取漏洞视角的漏洞风险列表",
@@ -3098,7 +3098,7 @@
3098
3098
  {
3099
3099
  "disabled": false,
3100
3100
  "document": "<li><strong>zone</strong></li>\n<p style=\"padding-left: 30px;\">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p><p style=\"padding-left: 30px;\">可选项:<a href=\"https://cloud.tencent.com/document/product/213/6091\">可用区列表</a></p>\n<li><strong>quota-type</strong></li>\n<p style=\"padding-left: 30px;\">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p><p style=\"padding-left: 30px;\">可选项:</p><p style=\"padding-left: 30px;\">PostPaidQuotaSet: 后付费配额</p><p style=\"padding-left: 30px;\">PrePaidQuotaSet: 预付费配额</p><p style=\"padding-left: 30px;\">SpotPaidQuotaSet: 竞价配额</p><p style=\"padding-left: 30px;\">ImageQuotaSet: 镜像配额</p><p style=\"padding-left: 30px;\">DisasterRecoverGroupQuotaSet: 置放群组配额</p>",
3101
- "example": "[ { \"Name\": \"quota-type\", \"Values\": [ \"PrePaidQuotaSet\" ] } ]",
3101
+ "example": "",
3102
3102
  "member": "Filter",
3103
3103
  "name": "Filters",
3104
3104
  "required": false,
@@ -3826,9 +3826,10 @@
3826
3826
  {
3827
3827
  "disabled": false,
3828
3828
  "document": "实例机型组配置的列表信息",
3829
- "example": "",
3829
+ "example": "",
3830
3830
  "member": "InstanceFamilyConfig",
3831
3831
  "name": "InstanceFamilyConfigSet",
3832
+ "output_required": true,
3832
3833
  "type": "list",
3833
3834
  "value_allowed_null": false
3834
3835
  },
@@ -4332,9 +4333,10 @@
4332
4333
  {
4333
4334
  "disabled": false,
4334
4335
  "document": "网络计费类型配置。",
4335
- "example": "",
4336
+ "example": "",
4336
4337
  "member": "InternetChargeTypeConfig",
4337
4338
  "name": "InternetChargeTypeConfigSet",
4339
+ "output_required": true,
4338
4340
  "type": "list",
4339
4341
  "value_allowed_null": false
4340
4342
  },
@@ -4617,7 +4619,7 @@
4617
4619
  {
4618
4620
  "disabled": false,
4619
4621
  "document": "地域列表信息。",
4620
- "example": "",
4622
+ "example": "[ { \"Region\": \"ap-beijing\", \"RegionName\": \"华北地区(北京)\", \"RegionState\": \"AVAILABLE\" } ]",
4621
4623
  "member": "RegionInfo",
4622
4624
  "name": "RegionSet",
4623
4625
  "output_required": true,
@@ -6023,7 +6025,7 @@
6023
6025
  },
6024
6026
  {
6025
6027
  "disabled": false,
6026
- "document": "镜像状态:\nCREATING-创建中\nNORMAL-正常\nCREATEFAILED-创建失败\nUSING-使用中\nSYNCING-同步中\nIMPORTING-导入中\nIMPORTFAILED-导入失败",
6028
+ "document": "镜像状态:\nCREATING-创建中\nNORMAL-正常\nCREATEFAILED-创建失败\nSYNCING-复制中\nIMPORTING-导入中\nIMPORTFAILED-导入失败",
6027
6029
  "example": "NORMAL",
6028
6030
  "member": "string",
6029
6031
  "name": "ImageState",
@@ -11932,6 +11934,15 @@
11932
11934
  "name": "DisableApiTermination",
11933
11935
  "required": false,
11934
11936
  "type": "bool"
11937
+ },
11938
+ {
11939
+ "disabled": false,
11940
+ "document": "实例是否开启巨型帧,取值范围:<br><li/> true:表示实例开启巨型帧,只有支持巨型帧的机型可设置为true。<br><li/>false:表示实例关闭巨型帧,只有支持巨型帧的机型可设置为false。<br> 支持巨型帧的实例规格: [实例规格](https://cloud.tencent.com/document/product/213/11518)",
11941
+ "example": "false",
11942
+ "member": "bool",
11943
+ "name": "EnableJumboFrame",
11944
+ "required": false,
11945
+ "type": "bool"
11935
11946
  }
11936
11947
  ],
11937
11948
  "type": "object"
@@ -263,7 +263,7 @@
263
263
  "DescribeInstanceFamilyConfigs": [
264
264
  {
265
265
  "document": "查询广州地域的实例机型组信息。",
266
- "input": "https://cvm.tencentcloudapi.com/?Action=DescribeInstanceFamilyConfigs\r\n&Region=ap-guangzhou\r\n&<公共请求参数>",
266
+ "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceFamilyInfos\n<公共请求参数>\n\n{}",
267
267
  "output": "{\n \"Response\": {\n \"InstanceFamilyConfigSet\": [\n {\n \"InstanceFamilyName\": \"标准型S1\",\n \"InstanceFamily\": \"S1\"\n },\n {\n \"InstanceFamilyName\": \"网络优化型N1\",\n \"InstanceFamily\": \"N1\"\n },\n {\n \"InstanceFamilyName\": \"高IO型I1\",\n \"InstanceFamily\": \"I1\"\n },\n {\n \"InstanceFamilyName\": \"内存型M1\",\n \"InstanceFamily\": \"M1\"\n },\n {\n \"InstanceFamilyName\": \"标准型S2\",\n \"InstanceFamily\": \"S2\"\n },\n {\n \"InstanceFamilyName\": \"标准型SN2\",\n \"InstanceFamily\": \"SN2\"\n },\n {\n \"InstanceFamilyName\": \"高IO型I2\",\n \"InstanceFamily\": \"I2\"\n },\n {\n \"InstanceFamilyName\": \"内存型M2\",\n \"InstanceFamily\": \"M2\"\n },\n {\n \"InstanceFamilyName\": \"计算型C2\",\n \"InstanceFamily\": \"C2\"\n },\n {\n \"InstanceFamilyName\": \"计算型CN2\",\n \"InstanceFamily\": \"CN2\"\n },\n {\n \"InstanceFamilyName\": \"标准型S3\",\n \"InstanceFamily\": \"S3\"\n },\n {\n \"InstanceFamilyName\": \"计算型C3\",\n \"InstanceFamily\": \"C3\"\n },\n {\n \"InstanceFamilyName\": \"FPGA型FX2\",\n \"InstanceFamily\": \"FX2\"\n },\n {\n \"InstanceFamilyName\": \"GPU计算型GN2\",\n \"InstanceFamily\": \"GN2\"\n },\n {\n \"InstanceFamilyName\": \"GPU渲染型GA2\",\n \"InstanceFamily\": \"GA2\"\n },\n {\n \"InstanceFamilyName\": \"GPU计算型GN8\",\n \"InstanceFamily\": \"GN8\"\n },\n {\n \"InstanceFamilyName\": \"独享型\",\n \"InstanceFamily\": \"CDH\"\n },\n {\n \"InstanceFamilyName\": \"共享核\",\n \"InstanceFamily\": \"SHARED\"\n },\n {\n \"InstanceFamilyName\": \"特殊机型\",\n \"InstanceFamily\": \"SPECIAL\"\n },\n {\n \"InstanceFamilyName\": \"其他\",\n \"InstanceFamily\": \"OTHER\"\n }\n ],\n \"RequestId\": \"b061782b-934a-4e53-b1eb-d5f2fed8130e\"\n }\n}",
268
268
  "title": "查询所支持的实例机型族信息"
269
269
  }
@@ -5365,6 +5365,34 @@
5365
5365
  ],
5366
5366
  "usage": "both"
5367
5367
  },
5368
+ "CustomConfig": {
5369
+ "document": "自定义参数",
5370
+ "members": [
5371
+ {
5372
+ "disabled": false,
5373
+ "document": "自定义参数名",
5374
+ "example": "hive.iceberg-catalog-name",
5375
+ "member": "string",
5376
+ "name": "ConfigKey",
5377
+ "output_required": false,
5378
+ "required": false,
5379
+ "type": "string",
5380
+ "value_allowed_null": false
5381
+ },
5382
+ {
5383
+ "disabled": false,
5384
+ "document": "自定义参数值",
5385
+ "example": "prod_iceberg",
5386
+ "member": "string",
5387
+ "name": "ConfigValue",
5388
+ "output_required": false,
5389
+ "required": false,
5390
+ "type": "string",
5391
+ "value_allowed_null": false
5392
+ }
5393
+ ],
5394
+ "usage": "both"
5395
+ },
5368
5396
  "DLCCatalogAccess": {
5369
5397
  "document": "DLC 数据目录访问权限",
5370
5398
  "members": [
@@ -7773,6 +7801,28 @@
7773
7801
  "required": false,
7774
7802
  "type": "string",
7775
7803
  "value_allowed_null": false
7804
+ },
7805
+ {
7806
+ "disabled": false,
7807
+ "document": "自定义参数",
7808
+ "example": "无",
7809
+ "member": "CustomConfig",
7810
+ "name": "CustomConfig",
7811
+ "output_required": false,
7812
+ "required": false,
7813
+ "type": "list",
7814
+ "value_allowed_null": false
7815
+ },
7816
+ {
7817
+ "disabled": false,
7818
+ "document": "是否允许回退",
7819
+ "example": "true",
7820
+ "member": "bool",
7821
+ "name": "AllowRollback",
7822
+ "output_required": false,
7823
+ "required": false,
7824
+ "type": "bool",
7825
+ "value_allowed_null": false
7776
7826
  }
7777
7827
  ],
7778
7828
  "usage": "both"
@@ -15479,6 +15529,17 @@
15479
15529
  "required": false,
15480
15530
  "type": "string",
15481
15531
  "value_allowed_null": true
15532
+ },
15533
+ {
15534
+ "disabled": false,
15535
+ "document": "支持 eg",
15536
+ "example": "1",
15537
+ "member": "int64",
15538
+ "name": "EGSupport",
15539
+ "output_required": true,
15540
+ "required": false,
15541
+ "type": "int",
15542
+ "value_allowed_null": false
15482
15543
  }
15483
15544
  ],
15484
15545
  "usage": "both"
@@ -17,7 +17,7 @@ from tencentcloud.emr.v20190103 import models as models_v20190103
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doModifyUserManagerPwd(args, parsed_globals):
20
+ def doTerminateInstance(args, parsed_globals):
21
21
  g_param = parse_global_arg(parsed_globals)
22
22
 
23
23
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -46,11 +46,11 @@ def doModifyUserManagerPwd(args, parsed_globals):
46
46
  client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
47
47
  client._sdkVersion += ("_CLI_" + __version__)
48
48
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.ModifyUserManagerPwdRequest()
49
+ model = models.TerminateInstanceRequest()
50
50
  model.from_json_string(json.dumps(args))
51
51
  start_time = time.time()
52
52
  while True:
53
- rsp = client.ModifyUserManagerPwd(model)
53
+ rsp = client.TerminateInstance(model)
54
54
  result = rsp.to_json_string()
55
55
  try:
56
56
  json_obj = json.loads(result)
@@ -277,7 +277,7 @@ def doDescribeCvmQuota(args, parsed_globals):
277
277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
278
 
279
279
 
280
- def doTerminateInstance(args, parsed_globals):
280
+ def doModifyUserManagerPwd(args, parsed_globals):
281
281
  g_param = parse_global_arg(parsed_globals)
282
282
 
283
283
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -306,11 +306,11 @@ def doTerminateInstance(args, parsed_globals):
306
306
  client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
307
307
  client._sdkVersion += ("_CLI_" + __version__)
308
308
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
- model = models.TerminateInstanceRequest()
309
+ model = models.ModifyUserManagerPwdRequest()
310
310
  model.from_json_string(json.dumps(args))
311
311
  start_time = time.time()
312
312
  while True:
313
- rsp = client.TerminateInstance(model)
313
+ rsp = client.ModifyUserManagerPwd(model)
314
314
  result = rsp.to_json_string()
315
315
  try:
316
316
  json_obj = json.loads(result)
@@ -485,6 +485,58 @@ def doModifyYarnDeploy(args, parsed_globals):
485
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
486
 
487
487
 
488
+ def doDescribeNodeSpec(args, parsed_globals):
489
+ g_param = parse_global_arg(parsed_globals)
490
+
491
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
492
+ cred = credential.CVMRoleCredential()
493
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
494
+ cred = credential.STSAssumeRoleCredential(
495
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
496
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
497
+ )
498
+ 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):
499
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
500
+ else:
501
+ cred = credential.Credential(
502
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
503
+ )
504
+ http_profile = HttpProfile(
505
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
506
+ reqMethod="POST",
507
+ endpoint=g_param[OptionsDefine.Endpoint],
508
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
509
+ )
510
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
511
+ if g_param[OptionsDefine.Language]:
512
+ profile.language = g_param[OptionsDefine.Language]
513
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
514
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
515
+ client._sdkVersion += ("_CLI_" + __version__)
516
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
517
+ model = models.DescribeNodeSpecRequest()
518
+ model.from_json_string(json.dumps(args))
519
+ start_time = time.time()
520
+ while True:
521
+ rsp = client.DescribeNodeSpec(model)
522
+ result = rsp.to_json_string()
523
+ try:
524
+ json_obj = json.loads(result)
525
+ except TypeError as e:
526
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
527
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
528
+ break
529
+ cur_time = time.time()
530
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
531
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
532
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
533
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
534
+ else:
535
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
536
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
537
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
+
539
+
488
540
  def doDescribeKyuubiQueryInfo(args, parsed_globals):
489
541
  g_param = parse_global_arg(parsed_globals)
490
542
 
@@ -1629,6 +1681,58 @@ def doDeleteUserManagerUserList(args, parsed_globals):
1629
1681
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1682
 
1631
1683
 
1684
+ def doConvertPreToPostCluster(args, parsed_globals):
1685
+ g_param = parse_global_arg(parsed_globals)
1686
+
1687
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1688
+ cred = credential.CVMRoleCredential()
1689
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1690
+ cred = credential.STSAssumeRoleCredential(
1691
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1692
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1693
+ )
1694
+ 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):
1695
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1696
+ else:
1697
+ cred = credential.Credential(
1698
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1699
+ )
1700
+ http_profile = HttpProfile(
1701
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1702
+ reqMethod="POST",
1703
+ endpoint=g_param[OptionsDefine.Endpoint],
1704
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1705
+ )
1706
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1707
+ if g_param[OptionsDefine.Language]:
1708
+ profile.language = g_param[OptionsDefine.Language]
1709
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1710
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
1711
+ client._sdkVersion += ("_CLI_" + __version__)
1712
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
+ model = models.ConvertPreToPostClusterRequest()
1714
+ model.from_json_string(json.dumps(args))
1715
+ start_time = time.time()
1716
+ while True:
1717
+ rsp = client.ConvertPreToPostCluster(model)
1718
+ result = rsp.to_json_string()
1719
+ try:
1720
+ json_obj = json.loads(result)
1721
+ except TypeError as e:
1722
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1723
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1724
+ break
1725
+ cur_time = time.time()
1726
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1727
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1728
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1729
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1730
+ else:
1731
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1732
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1733
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
+
1735
+
1632
1736
  def doTerminateSLInstance(args, parsed_globals):
1633
1737
  g_param = parse_global_arg(parsed_globals)
1634
1738
 
@@ -3397,6 +3501,58 @@ def doDescribeAutoScaleGroupGlobalConf(args, parsed_globals):
3397
3501
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
3502
 
3399
3503
 
3504
+ def doDescribeServiceConfGroupInfos(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.EmrClient(cred, g_param[OptionsDefine.Region], profile)
3531
+ client._sdkVersion += ("_CLI_" + __version__)
3532
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
+ model = models.DescribeServiceConfGroupInfosRequest()
3534
+ model.from_json_string(json.dumps(args))
3535
+ start_time = time.time()
3536
+ while True:
3537
+ rsp = client.DescribeServiceConfGroupInfos(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 doDescribeInspectionTaskResult(args, parsed_globals):
3401
3557
  g_param = parse_global_arg(parsed_globals)
3402
3558
 
@@ -4500,15 +4656,16 @@ MODELS_MAP = {
4500
4656
  }
4501
4657
 
4502
4658
  ACTION_MAP = {
4503
- "ModifyUserManagerPwd": doModifyUserManagerPwd,
4659
+ "TerminateInstance": doTerminateInstance,
4504
4660
  "CreateCluster": doCreateCluster,
4505
4661
  "ModifyYarnQueueV2": doModifyYarnQueueV2,
4506
4662
  "DeployYarnConf": doDeployYarnConf,
4507
4663
  "DescribeCvmQuota": doDescribeCvmQuota,
4508
- "TerminateInstance": doTerminateInstance,
4664
+ "ModifyUserManagerPwd": doModifyUserManagerPwd,
4509
4665
  "DescribeHBaseTableOverview": doDescribeHBaseTableOverview,
4510
4666
  "DescribeServiceNodeInfos": doDescribeServiceNodeInfos,
4511
4667
  "ModifyYarnDeploy": doModifyYarnDeploy,
4668
+ "DescribeNodeSpec": doDescribeNodeSpec,
4512
4669
  "DescribeKyuubiQueryInfo": doDescribeKyuubiQueryInfo,
4513
4670
  "DeleteAutoScaleStrategy": doDeleteAutoScaleStrategy,
4514
4671
  "ScaleOutCluster": doScaleOutCluster,
@@ -4531,6 +4688,7 @@ ACTION_MAP = {
4531
4688
  "DescribeNodeResourceConfigFast": doDescribeNodeResourceConfigFast,
4532
4689
  "DescribeDAGInfo": doDescribeDAGInfo,
4533
4690
  "DeleteUserManagerUserList": doDeleteUserManagerUserList,
4691
+ "ConvertPreToPostCluster": doConvertPreToPostCluster,
4534
4692
  "TerminateSLInstance": doTerminateSLInstance,
4535
4693
  "ModifyPodNum": doModifyPodNum,
4536
4694
  "CreateSLInstance": doCreateSLInstance,
@@ -4565,6 +4723,7 @@ ACTION_MAP = {
4565
4723
  "ModifyGlobalConfig": doModifyGlobalConfig,
4566
4724
  "DescribeAutoScaleStrategies": doDescribeAutoScaleStrategies,
4567
4725
  "DescribeAutoScaleGroupGlobalConf": doDescribeAutoScaleGroupGlobalConf,
4726
+ "DescribeServiceConfGroupInfos": doDescribeServiceConfGroupInfos,
4568
4727
  "DescribeInspectionTaskResult": doDescribeInspectionTaskResult,
4569
4728
  "DescribeYarnApplications": doDescribeYarnApplications,
4570
4729
  "DescribeUsersForUserManager": doDescribeUsersForUserManager,