tccli 3.0.1114.1__py2.py3-none-any.whl → 3.0.1116.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 (49) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/examples.json +1 -1
  3. tccli/services/asr/v20190614/api.json +1 -1
  4. tccli/services/cat/v20180409/api.json +1 -1
  5. tccli/services/cat/v20180409/examples.json +2 -2
  6. tccli/services/ccc/v20200210/api.json +2 -2
  7. tccli/services/cdwdoris/v20211228/api.json +9 -0
  8. tccli/services/ckafka/v20190819/api.json +20 -0
  9. tccli/services/cynosdb/v20190107/api.json +151 -50
  10. tccli/services/dasb/dasb_client.py +347 -29
  11. tccli/services/dasb/v20191018/api.json +966 -13
  12. tccli/services/dasb/v20191018/examples.json +48 -0
  13. tccli/services/dbbrain/dbbrain_client.py +53 -0
  14. tccli/services/dbbrain/v20210527/api.json +62 -0
  15. tccli/services/dbbrain/v20210527/examples.json +9 -1
  16. tccli/services/dlc/dlc_client.py +61 -8
  17. tccli/services/dlc/v20210125/api.json +53 -0
  18. tccli/services/dlc/v20210125/examples.json +8 -0
  19. tccli/services/domain/domain_client.py +871 -129
  20. tccli/services/domain/v20180808/api.json +1502 -146
  21. tccli/services/domain/v20180808/examples.json +112 -0
  22. tccli/services/dsgc/v20190723/api.json +30 -17
  23. tccli/services/dsgc/v20190723/examples.json +1 -1
  24. tccli/services/dts/v20211206/api.json +2 -2
  25. tccli/services/ess/v20201111/api.json +10 -1
  26. tccli/services/ess/v20201111/examples.json +1 -1
  27. tccli/services/essbasic/v20210526/api.json +2 -2
  28. tccli/services/gs/v20191118/api.json +11 -8
  29. tccli/services/iotexplorer/iotexplorer_client.py +326 -8
  30. tccli/services/iotexplorer/v20190423/api.json +583 -0
  31. tccli/services/iotexplorer/v20190423/examples.json +48 -0
  32. tccli/services/lighthouse/v20200324/api.json +16 -16
  33. tccli/services/mna/mna_client.py +110 -4
  34. tccli/services/mna/v20210119/api.json +182 -0
  35. tccli/services/mna/v20210119/examples.json +16 -0
  36. tccli/services/ocr/v20181119/api.json +60 -0
  37. tccli/services/ocr/v20181119/examples.json +1 -1
  38. tccli/services/rum/v20210622/api.json +6 -6
  39. tccli/services/rum/v20210622/examples.json +2 -2
  40. tccli/services/ssl/v20191205/api.json +1 -1
  41. tccli/services/ssl/v20191205/examples.json +1 -1
  42. tccli/services/teo/v20220901/api.json +1 -1
  43. tccli/services/tione/v20211111/api.json +11 -0
  44. tccli/services/tmt/v20180321/api.json +3 -3
  45. {tccli-3.0.1114.1.dist-info → tccli-3.0.1116.1.dist-info}/METADATA +2 -2
  46. {tccli-3.0.1114.1.dist-info → tccli-3.0.1116.1.dist-info}/RECORD +49 -49
  47. {tccli-3.0.1114.1.dist-info → tccli-3.0.1116.1.dist-info}/WHEEL +0 -0
  48. {tccli-3.0.1114.1.dist-info → tccli-3.0.1116.1.dist-info}/entry_points.txt +0 -0
  49. {tccli-3.0.1114.1.dist-info → tccli-3.0.1116.1.dist-info}/license_files/LICENSE +0 -0
@@ -56,6 +56,14 @@
56
56
  "title": "创建主机资产同步任务"
57
57
  }
58
58
  ],
59
+ "CreateChangePwdTask": [
60
+ {
61
+ "document": "创建改密任务成功",
62
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateChangePwdTask\n<公共请求参数>\n\n{\n \"TaskName\": \"test\",\n \"DeviceIdSet\": [\n 213\n ],\n \"AccountSet\": [\n \"111\"\n ],\n \"ChangeMethod\": 1,\n \"RunAccount\": \"root\",\n \"AuthGenerationStrategy\": 3,\n \"Password\": \"Pw1234567\",\n \"PasswordLength\": 12,\n \"SmallLetter\": 1,\n \"BigLetter\": 1,\n \"Digit\": 1,\n \"Symbol\": \"JX4h=\",\n \"CompleteNotify\": 1,\n \"NotifyEmails\": [\n \"112@qq.com\",\n \"115@qq.com\"\n ],\n \"FilePassword\": \"123456\",\n \"DepartmentId\": \"1\",\n \"Type\": 4,\n \"Period\": 14,\n \"FirstTime\": \"2024-04-27T00:00:00+08:00\"\n}",
63
+ "output": "{\n \"Response\": {\n \"OperationId\": \"ops-xxx\",\n \"RequestId\": \"f0be45dd-8719-46b5-b7ff-xxxx\"\n }\n}",
64
+ "title": "创建改密任务"
65
+ }
66
+ ],
59
67
  "CreateCmdTemplate": [
60
68
  {
61
69
  "document": "控制台页面新增高危命令模板",
@@ -112,6 +120,14 @@
112
120
  "title": "删除访问权限"
113
121
  }
114
122
  ],
123
+ "DeleteChangePwdTask": [
124
+ {
125
+ "document": "删除改密任务",
126
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteChangePwdTask\n<公共请求参数>\n\n{\n \"IdSet\": [\n 1\n ]\n}",
127
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxx\"\n }\n}",
128
+ "title": "删除改密任务"
129
+ }
130
+ ],
115
131
  "DeleteCmdTemplates": [
116
132
  {
117
133
  "document": "",
@@ -206,6 +222,22 @@
206
222
  "title": "查询主机资产自动同步结果"
207
223
  }
208
224
  ],
225
+ "DescribeChangePwdTask": [
226
+ {
227
+ "document": "查询修改密码任务信息",
228
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChangePwdTask\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"TaskName\",\n \"Values\": [\n \"task1\"\n ]\n }\n ],\n \"Limit\": 20,\n \"Offset\": 0\n}",
229
+ "output": "{\n \"Response\": {\n \"RequestId\": \"rid-test\",\n \"Tasks\": [\n {\n \"Id\": 1,\n \"TaskName\": \"test-xxx\",\n \"OperationId\": \"ops-xxx\",\n \"ChangeMethod\": 1,\n \"RunAccount\": \"root\",\n \"AuthGenerationStrategy\": 1,\n \"PasswordLength\": 12,\n \"SmallLetter\": 1,\n \"BigLetter\": 1,\n \"Digit\": 1,\n \"Symbol\": \"\",\n \"CompleteNotify\": 1,\n \"NotifyEmails\": [\n \"11323@qq.com\"\n ],\n \"FilePassword\": \"xxx\",\n \"Type\": 4,\n \"Period\": 0,\n \"FirstTime\": null,\n \"NextTime\": null,\n \"DeviceSet\": [\n {\n \"Id\": 1,\n \"InstanceId\": \"ins-a3dvgvte\",\n \"Name\": \"可用-预发标准版-linux\",\n \"PublicIp\": \"\",\n \"PrivateIp\": \"172.20.0.17\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"OsName\": \"TencentOS Server 3.1 (TK4)\",\n \"Kind\": 1,\n \"Port\": 22,\n \"IpPortSet\": null,\n \"VpcId\": \"vpc-test\",\n \"SubnetId\": \"subnet-test\",\n \"AccountCount\": 0,\n \"GroupSet\": [],\n \"Resource\": {\n \"ResourceId\": \"bh-saas-test\",\n \"ResourceName\": \"T-Sec-堡垒机(SaaS型)/专业版\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"Zone\": \"ap-shanghai-fsi-1\",\n \"Pid\": 10,\n \"SvArgs\": \"sv_cds_dasb_saas_ex_pro_xxx\",\n \"PackageBandwidth\": 0,\n \"PackageNode\": 0,\n \"LogDeliveryArgs\": \"\",\n \"ProductCode\": \"p_cds_dasb\",\n \"SubProductCode\": \"sp_cds_dasb_bh_saas_pro\",\n \"VpcId\": \"vpc-test\",\n \"VpcName\": \"Default-VPC\",\n \"VpcCidrBlock\": \"172.20.0.0/16\",\n \"SubnetId\": \"subnet-test\",\n \"SubnetName\": \"1qu\",\n \"CidrBlock\": \"172.20.50.0/24\",\n \"Nodes\": 50,\n \"UsedNodes\": 2,\n \"PublicIpSet\": [\n \"101.35.32.101\"\n ],\n \"PrivateIpSet\": [\n \"172.20.50.50\"\n ],\n \"RenewFlag\": 2,\n \"CreateTime\": \"2024-04-28T11:00:59+08:00\",\n \"ExpireTime\": \"2024-05-28T11:00:59+08:00\",\n \"Expired\": false,\n \"Deployed\": true,\n \"Status\": 1,\n \"ExtendPoints\": 0,\n \"ModuleSet\": []\n },\n \"Department\": {\n \"Id\": \"1\",\n \"Name\": \"总部\",\n \"Managers\": null,\n \"ManagerUsers\": null\n }\n }\n ],\n \"AccountSet\": [\n \"test042303\",\n \"test042304\",\n \"test042305\",\n \"test092702\"\n ],\n \"Department\": {\n \"Id\": \"1\",\n \"Name\": \"总部\",\n \"Managers\": null,\n \"ManagerUsers\": null\n }\n }\n ],\n \"TotalCount\": 1\n }\n}",
230
+ "title": "查询修改密码任务信息"
231
+ }
232
+ ],
233
+ "DescribeChangePwdTaskDetail": [
234
+ {
235
+ "document": "查询改密计划详情",
236
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChangePwdTaskDetail\n<公共请求参数>\n\n{\n \"OperationId\": \"ops-xxx\",\n \"Filters\": [\n {\n \"Name\": \"InstanceId\",\n \"Values\": [\n \"ins-xxx\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 20\n}",
237
+ "output": "{\n \"Response\": {\n \"Details\": [\n {\n \"Device\": {\n \"Id\": 1,\n \"InstanceId\": \"ins-test\",\n \"Name\": \"linux\",\n \"PublicIp\": \"\",\n \"PrivateIp\": \"172.20.0.1\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"OsName\": \"TencentOS Server 3.1 (TK4)\",\n \"Kind\": 1,\n \"Port\": 22,\n \"IpPortSet\": null,\n \"VpcId\": \"vpc-test\",\n \"SubnetId\": \"subnet-test\",\n \"AccountCount\": 0,\n \"GroupSet\": [\n {\n \"Id\": 1,\n \"Name\": \"测试\",\n \"Department\": {\n \"Id\": \"\",\n \"Name\": \"\",\n \"Managers\": null,\n \"ManagerUsers\": null\n },\n \"Count\": 0\n }\n ],\n \"Resource\": {\n \"ResourceId\": \"bh-saas-test\",\n \"ResourceName\": \"T-Sec-堡垒机(SaaS型)/专业版\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"Zone\": \"ap-shanghai-fsi-1\",\n \"Pid\": 10,\n \"SvArgs\": \"sv_cds_dasb_saas_ex_pro_xxx\",\n \"PackageBandwidth\": 0,\n \"PackageNode\": 0,\n \"LogDeliveryArgs\": \"\",\n \"ProductCode\": \"p_cds_dasb\",\n \"SubProductCode\": \"sp_cds_dasb_bh_saas_pro\",\n \"VpcId\": \"vpc-test\",\n \"VpcName\": \"Default-VPC\",\n \"VpcCidrBlock\": \"172.20.0.0/16\",\n \"SubnetId\": \"subnet-test\",\n \"SubnetName\": \"1qu\",\n \"CidrBlock\": \"172.20.50.0/24\",\n \"Nodes\": 50,\n \"UsedNodes\": 2,\n \"PublicIpSet\": [\n \"1.1.1.1\"\n ],\n \"PrivateIpSet\": [\n \"172.0.0.1\"\n ],\n \"RenewFlag\": 2,\n \"CreateTime\": \"2024-04-28T11:00:59+08:00\",\n \"ExpireTime\": \"2024-05-28T11:00:59+08:00\",\n \"Expired\": false,\n \"Deployed\": true,\n \"Status\": 1,\n \"ExtendPoints\": 0,\n \"ModuleSet\": []\n },\n \"Department\": {\n \"Id\": \"1\",\n \"Name\": \"总部\",\n \"Managers\": null,\n \"ManagerUsers\": null\n }\n },\n \"Account\": \"worktest\",\n \"LastChangeStatus\": 1\n }\n ],\n \"RequestId\": \"rid-test\",\n \"TotalCount\": 1\n }\n}",
238
+ "title": "查询改密计划详情"
239
+ }
240
+ ],
209
241
  "DescribeCmdTemplates": [
210
242
  {
211
243
  "document": "",
@@ -330,6 +362,14 @@
330
362
  "title": "修改访问权限"
331
363
  }
332
364
  ],
365
+ "ModifyChangePwdTask": [
366
+ {
367
+ "document": "修改改密任务",
368
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyChangePwdTask\n<公共请求参数>\n\n{\n \"OperationId\": \"ops-xxx\",\n \"TaskName\": \"testchangePwd\",\n \"DeviceIdSet\": [\n 215,\n 213\n ],\n \"AccountSet\": [\n \"1111\"\n ],\n \"ModifyType\": 1,\n \"DepartmentId\": \"1.10\",\n \"ChangeMethod\": 2,\n \"RunAccount\": \"\",\n \"AuthGenerationStrategy\": 1,\n \"Password\": \"test1234567\",\n \"PasswordLength\": 12,\n \"SmallLetter\": 0,\n \"BigLetter\": 1,\n \"Digit\": 1,\n \"Symbol\": \"ISMkJQ==\",\n \"CompleteNotify\": 1,\n \"NotifyEmails\": [\n \"113@qq.com\"\n ],\n \"FilePassword\": \"1234567\",\n \"Type\": 5,\n \"Period\": 16,\n \"FirstTime\": \"2023-06-01T00:00:00+08:00\"\n}",
369
+ "output": "{\n \"Response\": {\n \"RequestId\": \"rid-test\"\n }\n}",
370
+ "title": "修改改密任务"
371
+ }
372
+ ],
333
373
  "ModifyCmdTemplate": [
334
374
  {
335
375
  "document": "修改高危命令模板",
@@ -410,6 +450,14 @@
410
450
  "title": "重置用户"
411
451
  }
412
452
  ],
453
+ "RunChangePwdTask": [
454
+ {
455
+ "document": "执行改密任务成功",
456
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunChangePwdTask\n<公共请求参数>\n\n{\n \"OperationId\": \"ops-xxx\",\n \"Details\": []\n}",
457
+ "output": "{\n \"Response\": {\n \"RequestId\": \"rid-test\"\n }\n}",
458
+ "title": "执行改密任务"
459
+ }
460
+ ],
413
461
  "SearchAuditLog": [
414
462
  {
415
463
  "document": "搜索审计日志",
@@ -903,6 +903,58 @@ def doDescribeAuditInstanceList(args, parsed_globals):
903
903
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
904
904
 
905
905
 
906
+ def doDeleteRedisBigKeyAnalysisTasks(args, parsed_globals):
907
+ g_param = parse_global_arg(parsed_globals)
908
+
909
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
910
+ cred = credential.CVMRoleCredential()
911
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
912
+ cred = credential.STSAssumeRoleCredential(
913
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
914
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
915
+ )
916
+ 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):
917
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
918
+ else:
919
+ cred = credential.Credential(
920
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
921
+ )
922
+ http_profile = HttpProfile(
923
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
924
+ reqMethod="POST",
925
+ endpoint=g_param[OptionsDefine.Endpoint],
926
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
927
+ )
928
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
929
+ if g_param[OptionsDefine.Language]:
930
+ profile.language = g_param[OptionsDefine.Language]
931
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
932
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
933
+ client._sdkVersion += ("_CLI_" + __version__)
934
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
935
+ model = models.DeleteRedisBigKeyAnalysisTasksRequest()
936
+ model.from_json_string(json.dumps(args))
937
+ start_time = time.time()
938
+ while True:
939
+ rsp = client.DeleteRedisBigKeyAnalysisTasks(model)
940
+ result = rsp.to_json_string()
941
+ try:
942
+ json_obj = json.loads(result)
943
+ except TypeError as e:
944
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
945
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
946
+ break
947
+ cur_time = time.time()
948
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
949
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
950
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
951
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
952
+ else:
953
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
954
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
955
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
956
+
957
+
906
958
  def doDescribeTopSpaceTableTimeSeries(args, parsed_globals):
907
959
  g_param = parse_global_arg(parsed_globals)
908
960
 
@@ -3273,6 +3325,7 @@ ACTION_MAP = {
3273
3325
  "DescribeAllUserGroup": doDescribeAllUserGroup,
3274
3326
  "DescribeDBDiagEvents": doDescribeDBDiagEvents,
3275
3327
  "DescribeAuditInstanceList": doDescribeAuditInstanceList,
3328
+ "DeleteRedisBigKeyAnalysisTasks": doDeleteRedisBigKeyAnalysisTasks,
3276
3329
  "DescribeTopSpaceTableTimeSeries": doDescribeTopSpaceTableTimeSeries,
3277
3330
  "CreateDBDiagReportTask": doCreateDBDiagReportTask,
3278
3331
  "DescribeRedisProcessList": doDescribeRedisProcessList,
@@ -105,6 +105,13 @@
105
105
  "output": "DeleteDBDiagReportTasksResponse",
106
106
  "status": "online"
107
107
  },
108
+ "DeleteRedisBigKeyAnalysisTasks": {
109
+ "document": "删除Redis实例的大key分析任务。",
110
+ "input": "DeleteRedisBigKeyAnalysisTasksRequest",
111
+ "name": "删除redis实例大key分析任务",
112
+ "output": "DeleteRedisBigKeyAnalysisTasksResponse",
113
+ "status": "online"
114
+ },
108
115
  "DeleteSecurityAuditLogExportTasks": {
109
116
  "document": "删除安全审计日志导出任务。",
110
117
  "input": "DeleteSecurityAuditLogExportTasksRequest",
@@ -2136,6 +2143,61 @@
2136
2143
  ],
2137
2144
  "type": "object"
2138
2145
  },
2146
+ "DeleteRedisBigKeyAnalysisTasksRequest": {
2147
+ "document": "DeleteRedisBigKeyAnalysisTasks请求参数结构体",
2148
+ "members": [
2149
+ {
2150
+ "disabled": false,
2151
+ "document": "实例ID。",
2152
+ "example": "crs-c1nl9rpv",
2153
+ "member": "string",
2154
+ "name": "InstanceId",
2155
+ "required": true,
2156
+ "type": "string"
2157
+ },
2158
+ {
2159
+ "disabled": false,
2160
+ "document": "待删除的异步任务ID列表。",
2161
+ "example": "[11822974]",
2162
+ "member": "int64",
2163
+ "name": "AsyncRequestIds",
2164
+ "required": true,
2165
+ "type": "list"
2166
+ },
2167
+ {
2168
+ "disabled": false,
2169
+ "document": "服务产品类型,支持值包括 \"redis\" - 云数据库 Redis。",
2170
+ "example": "redis",
2171
+ "member": "string",
2172
+ "name": "Product",
2173
+ "required": true,
2174
+ "type": "string"
2175
+ }
2176
+ ],
2177
+ "type": "object"
2178
+ },
2179
+ "DeleteRedisBigKeyAnalysisTasksResponse": {
2180
+ "document": "DeleteRedisBigKeyAnalysisTasks返回参数结构体",
2181
+ "members": [
2182
+ {
2183
+ "disabled": false,
2184
+ "document": "状态值,为0时代表正常处理。",
2185
+ "example": "0",
2186
+ "member": "int64",
2187
+ "name": "Status",
2188
+ "output_required": true,
2189
+ "type": "int",
2190
+ "value_allowed_null": false
2191
+ },
2192
+ {
2193
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2194
+ "member": "string",
2195
+ "name": "RequestId",
2196
+ "type": "string"
2197
+ }
2198
+ ],
2199
+ "type": "object"
2200
+ },
2139
2201
  "DeleteSecurityAuditLogExportTasksRequest": {
2140
2202
  "document": "DeleteSecurityAuditLogExportTasks请求参数结构体",
2141
2203
  "members": [
@@ -120,6 +120,14 @@
120
120
  "title": "删除健康报告生成任务"
121
121
  }
122
122
  ],
123
+ "DeleteRedisBigKeyAnalysisTasks": [
124
+ {
125
+ "document": "删除Redis实例的大key分析任务。",
126
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRedisBigKeyAnalysisTasks\n<公共请求参数>\n\n{\n \"Product\": \"redis\",\n \"InstanceId\": \"crs-0hnhwega\",\n \"AsyncRequestIds\": [\n 11822173\n ]\n}",
127
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"RequestId\": \"e9833850-b223-18ee-8376-93f024a9a071\"\n }\n}",
128
+ "title": "删除Redis实例的大key分析任务"
129
+ }
130
+ ],
123
131
  "DeleteSecurityAuditLogExportTasks": [
124
132
  {
125
133
  "document": "",
@@ -463,7 +471,7 @@
463
471
  },
464
472
  {
465
473
  "document": "开启Redis实例大key周期性分析并自定义分隔符。",
466
- "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDiagDBInstanceConf\n<公共请求参数>\n\n{\n \"Product\": \"redis\",\n \"Regions\": \"all\",\n \"InstanceIds\": [\n \"crs-pz1raq11\"\n ],\n \"InstanceConfs\": {\n \"AnalysisTopKey\": \"Yes\",\n \"KeyDelimiters\": [\n \"_\",\n \"-\",\n \":\"\n ]\n }\n}",
474
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDiagDBInstanceConf\n<公共请求参数>\n\n{\n \"Product\": \"redis\",\n \"Regions\": \"All\",\n \"InstanceIds\": [\n \"crs-pz1raq11\"\n ],\n \"InstanceConfs\": {\n \"AnalysisTopKey\": \"Yes\",\n \"KeyDelimiters\": [\n \"_\",\n \"-\",\n \":\"\n ]\n }\n}",
467
475
  "output": "{\n \"Response\": {\n \"RequestId\": \"bcd97ab0-16d1-11ef-8e52-3d11a9997f13\"\n }\n}",
468
476
  "title": "修改Redis实例大key周期性分析"
469
477
  }
@@ -381,6 +381,58 @@ def doDescribeWorkGroupInfo(args, parsed_globals):
381
381
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
382
 
383
383
 
384
+ def doListTaskJobLogName(args, parsed_globals):
385
+ g_param = parse_global_arg(parsed_globals)
386
+
387
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
388
+ cred = credential.CVMRoleCredential()
389
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
390
+ cred = credential.STSAssumeRoleCredential(
391
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
392
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
393
+ )
394
+ 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):
395
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
396
+ else:
397
+ cred = credential.Credential(
398
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
399
+ )
400
+ http_profile = HttpProfile(
401
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
402
+ reqMethod="POST",
403
+ endpoint=g_param[OptionsDefine.Endpoint],
404
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
405
+ )
406
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
407
+ if g_param[OptionsDefine.Language]:
408
+ profile.language = g_param[OptionsDefine.Language]
409
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
410
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
411
+ client._sdkVersion += ("_CLI_" + __version__)
412
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
413
+ model = models.ListTaskJobLogNameRequest()
414
+ model.from_json_string(json.dumps(args))
415
+ start_time = time.time()
416
+ while True:
417
+ rsp = client.ListTaskJobLogName(model)
418
+ result = rsp.to_json_string()
419
+ try:
420
+ json_obj = json.loads(result)
421
+ except TypeError as e:
422
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
423
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
424
+ break
425
+ cur_time = time.time()
426
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
427
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
428
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
429
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
430
+ else:
431
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
432
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
433
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
+
435
+
384
436
  def doDescribeNotebookSession(args, parsed_globals):
385
437
  g_param = parse_global_arg(parsed_globals)
386
438
 
@@ -1525,7 +1577,7 @@ def doDescribeTables(args, parsed_globals):
1525
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1578
 
1527
1579
 
1528
- def doCancelNotebookSessionStatementBatch(args, parsed_globals):
1580
+ def doModifySparkAppBatch(args, parsed_globals):
1529
1581
  g_param = parse_global_arg(parsed_globals)
1530
1582
 
1531
1583
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1554,11 +1606,11 @@ def doCancelNotebookSessionStatementBatch(args, parsed_globals):
1554
1606
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
1555
1607
  client._sdkVersion += ("_CLI_" + __version__)
1556
1608
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
- model = models.CancelNotebookSessionStatementBatchRequest()
1609
+ model = models.ModifySparkAppBatchRequest()
1558
1610
  model.from_json_string(json.dumps(args))
1559
1611
  start_time = time.time()
1560
1612
  while True:
1561
- rsp = client.CancelNotebookSessionStatementBatch(model)
1613
+ rsp = client.ModifySparkAppBatch(model)
1562
1614
  result = rsp.to_json_string()
1563
1615
  try:
1564
1616
  json_obj = json.loads(result)
@@ -3397,7 +3449,7 @@ def doUpdateUserDataEngineConfig(args, parsed_globals):
3397
3449
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
3450
 
3399
3451
 
3400
- def doModifySparkAppBatch(args, parsed_globals):
3452
+ def doCancelNotebookSessionStatementBatch(args, parsed_globals):
3401
3453
  g_param = parse_global_arg(parsed_globals)
3402
3454
 
3403
3455
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3426,11 +3478,11 @@ def doModifySparkAppBatch(args, parsed_globals):
3426
3478
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
3427
3479
  client._sdkVersion += ("_CLI_" + __version__)
3428
3480
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3429
- model = models.ModifySparkAppBatchRequest()
3481
+ model = models.CancelNotebookSessionStatementBatchRequest()
3430
3482
  model.from_json_string(json.dumps(args))
3431
3483
  start_time = time.time()
3432
3484
  while True:
3433
- rsp = client.ModifySparkAppBatch(model)
3485
+ rsp = client.CancelNotebookSessionStatementBatch(model)
3434
3486
  result = rsp.to_json_string()
3435
3487
  try:
3436
3488
  json_obj = json.loads(result)
@@ -6639,6 +6691,7 @@ ACTION_MAP = {
6639
6691
  "DescribeUserRoles": doDescribeUserRoles,
6640
6692
  "ModifyUserType": doModifyUserType,
6641
6693
  "DescribeWorkGroupInfo": doDescribeWorkGroupInfo,
6694
+ "ListTaskJobLogName": doListTaskJobLogName,
6642
6695
  "DescribeNotebookSession": doDescribeNotebookSession,
6643
6696
  "CreateNotebookSession": doCreateNotebookSession,
6644
6697
  "DeleteWorkGroup": doDeleteWorkGroup,
@@ -6661,7 +6714,7 @@ ACTION_MAP = {
6661
6714
  "AlterDMSPartition": doAlterDMSPartition,
6662
6715
  "CreateUser": doCreateUser,
6663
6716
  "DescribeTables": doDescribeTables,
6664
- "CancelNotebookSessionStatementBatch": doCancelNotebookSessionStatementBatch,
6717
+ "ModifySparkAppBatch": doModifySparkAppBatch,
6665
6718
  "DescribeNotebookSessions": doDescribeNotebookSessions,
6666
6719
  "DescribeLakeFsTaskResult": doDescribeLakeFsTaskResult,
6667
6720
  "AddOptimizerEngines": doAddOptimizerEngines,
@@ -6697,7 +6750,7 @@ ACTION_MAP = {
6697
6750
  "DropDMSDatabase": doDropDMSDatabase,
6698
6751
  "AddDMSPartitions": doAddDMSPartitions,
6699
6752
  "UpdateUserDataEngineConfig": doUpdateUserDataEngineConfig,
6700
- "ModifySparkAppBatch": doModifySparkAppBatch,
6753
+ "CancelNotebookSessionStatementBatch": doCancelNotebookSessionStatementBatch,
6701
6754
  "CheckDataEngineImageCanBeUpgrade": doCheckDataEngineImageCanBeUpgrade,
6702
6755
  "DeleteSparkApp": doDeleteSparkApp,
6703
6756
  "DescribeNotebookSessionLog": doDescribeNotebookSessionLog,
@@ -714,6 +714,13 @@
714
714
  "output": "ListTaskJobLogDetailResponse",
715
715
  "status": "online"
716
716
  },
717
+ "ListTaskJobLogName": {
718
+ "document": "本接口(ListTaskJobLogName)用于获取spark-jar日志名称列表",
719
+ "input": "ListTaskJobLogNameRequest",
720
+ "name": "日志名称列表",
721
+ "output": "ListTaskJobLogNameResponse",
722
+ "status": "online"
723
+ },
717
724
  "LockMetaData": {
718
725
  "document": "元数据锁",
719
726
  "input": "LockMetaDataRequest",
@@ -11778,6 +11785,52 @@
11778
11785
  ],
11779
11786
  "type": "object"
11780
11787
  },
11788
+ "ListTaskJobLogNameRequest": {
11789
+ "document": "ListTaskJobLogName请求参数结构体",
11790
+ "members": [
11791
+ {
11792
+ "disabled": false,
11793
+ "document": "查询的taskId",
11794
+ "example": "eks-1",
11795
+ "member": "string",
11796
+ "name": "TaskId",
11797
+ "required": true,
11798
+ "type": "string"
11799
+ },
11800
+ {
11801
+ "disabled": false,
11802
+ "document": "SparkSQL批任务唯一ID",
11803
+ "example": "dsdde-dsada-xxsda-sdask2",
11804
+ "member": "string",
11805
+ "name": "BatchId",
11806
+ "required": false,
11807
+ "type": "string"
11808
+ }
11809
+ ],
11810
+ "type": "object"
11811
+ },
11812
+ "ListTaskJobLogNameResponse": {
11813
+ "document": "ListTaskJobLogName返回参数结构体",
11814
+ "members": [
11815
+ {
11816
+ "disabled": false,
11817
+ "document": "日志名称列表",
11818
+ "example": "无",
11819
+ "member": "string",
11820
+ "name": "Names",
11821
+ "output_required": true,
11822
+ "type": "list",
11823
+ "value_allowed_null": false
11824
+ },
11825
+ {
11826
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11827
+ "member": "string",
11828
+ "name": "RequestId",
11829
+ "type": "string"
11830
+ }
11831
+ ],
11832
+ "type": "object"
11833
+ },
11781
11834
  "LockComponentInfo": {
11782
11835
  "document": "元数据加锁内容",
11783
11836
  "members": [
@@ -822,6 +822,14 @@
822
822
  "title": "查询日志详情"
823
823
  }
824
824
  ],
825
+ "ListTaskJobLogName": [
826
+ {
827
+ "document": "日志名称列表",
828
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListTaskJobLogName\n<公共请求参数>\n\n{\n \"TaskId\": \"dasj-dasdjes0-dsak-dsa\",\n \"BatchId\": \"eusj-2dks-dsad-edsaw2-dsa\"\n}",
829
+ "output": "{\n \"Response\": {\n \"Names\": [\n \"val1\",\n \"val2\"\n ],\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
830
+ "title": "日志名称列表"
831
+ }
832
+ ],
825
833
  "LockMetaData": [
826
834
  {
827
835
  "document": "",