tccli 3.0.1113.1__py2.py3-none-any.whl → 3.0.1115.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +1 -1
  3. tccli/services/cat/v20180409/api.json +2 -2
  4. tccli/services/cat/v20180409/examples.json +2 -2
  5. tccli/services/cdwdoris/v20211228/api.json +9 -0
  6. tccli/services/cynosdb/v20190107/api.json +151 -50
  7. tccli/services/dasb/dasb_client.py +347 -29
  8. tccli/services/dasb/v20191018/api.json +966 -13
  9. tccli/services/dasb/v20191018/examples.json +48 -0
  10. tccli/services/dbbrain/dbbrain_client.py +110 -4
  11. tccli/services/dbbrain/v20210527/api.json +235 -5
  12. tccli/services/dbbrain/v20210527/examples.json +23 -1
  13. tccli/services/dlc/dlc_client.py +190 -31
  14. tccli/services/dlc/v20210125/api.json +176 -0
  15. tccli/services/dlc/v20210125/examples.json +24 -0
  16. tccli/services/dsgc/v20190723/api.json +30 -17
  17. tccli/services/dsgc/v20190723/examples.json +1 -1
  18. tccli/services/ess/ess_client.py +110 -4
  19. tccli/services/ess/v20201111/api.json +146 -1
  20. tccli/services/ess/v20201111/examples.json +17 -1
  21. tccli/services/essbasic/v20210526/api.json +12 -2
  22. tccli/services/essbasic/v20210526/examples.json +4 -4
  23. tccli/services/hunyuan/v20230901/api.json +6 -6
  24. tccli/services/hunyuan/v20230901/examples.json +6 -6
  25. tccli/services/iotexplorer/iotexplorer_client.py +326 -8
  26. tccli/services/iotexplorer/v20190423/api.json +583 -0
  27. tccli/services/iotexplorer/v20190423/examples.json +48 -0
  28. tccli/services/monitor/v20180724/api.json +27 -0
  29. tccli/services/mps/v20190612/api.json +67 -1
  30. tccli/services/svp/svp_client.py +159 -0
  31. tccli/services/svp/v20240125/api.json +723 -0
  32. tccli/services/svp/v20240125/examples.json +24 -0
  33. tccli/services/tdmq/v20200217/api.json +2 -2
  34. tccli/services/tione/v20211111/api.json +11 -0
  35. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/METADATA +2 -2
  36. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/RECORD +39 -39
  37. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/WHEEL +0 -0
  38. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/entry_points.txt +0 -0
  39. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/license_files/LICENSE +0 -0
@@ -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
 
@@ -901,7 +953,7 @@ def doDescribeDMSPartitions(args, parsed_globals):
901
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
954
 
903
955
 
904
- def doDescribeTaskResult(args, parsed_globals):
956
+ def doDescribeSparkSessionBatchSqlLog(args, parsed_globals):
905
957
  g_param = parse_global_arg(parsed_globals)
906
958
 
907
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -930,11 +982,11 @@ def doDescribeTaskResult(args, parsed_globals):
930
982
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
931
983
  client._sdkVersion += ("_CLI_" + __version__)
932
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
- model = models.DescribeTaskResultRequest()
985
+ model = models.DescribeSparkSessionBatchSqlLogRequest()
934
986
  model.from_json_string(json.dumps(args))
935
987
  start_time = time.time()
936
988
  while True:
937
- rsp = client.DescribeTaskResult(model)
989
+ rsp = client.DescribeSparkSessionBatchSqlLog(model)
938
990
  result = rsp.to_json_string()
939
991
  try:
940
992
  json_obj = json.loads(result)
@@ -1161,7 +1213,7 @@ def doDeleteScript(args, parsed_globals):
1161
1213
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1214
 
1163
1215
 
1164
- def doSwitchDataEngineImage(args, parsed_globals):
1216
+ def doDescribeLakeFsDirSummary(args, parsed_globals):
1165
1217
  g_param = parse_global_arg(parsed_globals)
1166
1218
 
1167
1219
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1190,11 +1242,11 @@ def doSwitchDataEngineImage(args, parsed_globals):
1190
1242
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
1191
1243
  client._sdkVersion += ("_CLI_" + __version__)
1192
1244
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
- model = models.SwitchDataEngineImageRequest()
1245
+ model = models.DescribeLakeFsDirSummaryRequest()
1194
1246
  model.from_json_string(json.dumps(args))
1195
1247
  start_time = time.time()
1196
1248
  while True:
1197
- rsp = client.SwitchDataEngineImage(model)
1249
+ rsp = client.DescribeLakeFsDirSummary(model)
1198
1250
  result = rsp.to_json_string()
1199
1251
  try:
1200
1252
  json_obj = json.loads(result)
@@ -1265,7 +1317,7 @@ def doCreateSparkAppTask(args, parsed_globals):
1265
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1318
 
1267
1319
 
1268
- def doDescribeLakeFsDirSummary(args, parsed_globals):
1320
+ def doSwitchDataEngineImage(args, parsed_globals):
1269
1321
  g_param = parse_global_arg(parsed_globals)
1270
1322
 
1271
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1294,11 +1346,11 @@ def doDescribeLakeFsDirSummary(args, parsed_globals):
1294
1346
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
1295
1347
  client._sdkVersion += ("_CLI_" + __version__)
1296
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.DescribeLakeFsDirSummaryRequest()
1349
+ model = models.SwitchDataEngineImageRequest()
1298
1350
  model.from_json_string(json.dumps(args))
1299
1351
  start_time = time.time()
1300
1352
  while True:
1301
- rsp = client.DescribeLakeFsDirSummary(model)
1353
+ rsp = client.SwitchDataEngineImage(model)
1302
1354
  result = rsp.to_json_string()
1303
1355
  try:
1304
1356
  json_obj = json.loads(result)
@@ -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)
@@ -1681,6 +1733,58 @@ def doDescribeLakeFsTaskResult(args, parsed_globals):
1681
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1734
 
1683
1735
 
1736
+ def doAddOptimizerEngines(args, parsed_globals):
1737
+ g_param = parse_global_arg(parsed_globals)
1738
+
1739
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1740
+ cred = credential.CVMRoleCredential()
1741
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
+ cred = credential.STSAssumeRoleCredential(
1743
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
+ )
1746
+ 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):
1747
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1748
+ else:
1749
+ cred = credential.Credential(
1750
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1751
+ )
1752
+ http_profile = HttpProfile(
1753
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1754
+ reqMethod="POST",
1755
+ endpoint=g_param[OptionsDefine.Endpoint],
1756
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1757
+ )
1758
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1759
+ if g_param[OptionsDefine.Language]:
1760
+ profile.language = g_param[OptionsDefine.Language]
1761
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1762
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
1763
+ client._sdkVersion += ("_CLI_" + __version__)
1764
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
+ model = models.AddOptimizerEnginesRequest()
1766
+ model.from_json_string(json.dumps(args))
1767
+ start_time = time.time()
1768
+ while True:
1769
+ rsp = client.AddOptimizerEngines(model)
1770
+ result = rsp.to_json_string()
1771
+ try:
1772
+ json_obj = json.loads(result)
1773
+ except TypeError as e:
1774
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1775
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1776
+ break
1777
+ cur_time = time.time()
1778
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1779
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1780
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1781
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1782
+ else:
1783
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1784
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1785
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
+
1787
+
1684
1788
  def doDescribeDataEngineImageVersions(args, parsed_globals):
1685
1789
  g_param = parse_global_arg(parsed_globals)
1686
1790
 
@@ -3345,7 +3449,7 @@ def doUpdateUserDataEngineConfig(args, parsed_globals):
3345
3449
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
3450
 
3347
3451
 
3348
- def doModifySparkAppBatch(args, parsed_globals):
3452
+ def doCancelNotebookSessionStatementBatch(args, parsed_globals):
3349
3453
  g_param = parse_global_arg(parsed_globals)
3350
3454
 
3351
3455
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3374,11 +3478,11 @@ def doModifySparkAppBatch(args, parsed_globals):
3374
3478
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
3375
3479
  client._sdkVersion += ("_CLI_" + __version__)
3376
3480
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
- model = models.ModifySparkAppBatchRequest()
3481
+ model = models.CancelNotebookSessionStatementBatchRequest()
3378
3482
  model.from_json_string(json.dumps(args))
3379
3483
  start_time = time.time()
3380
3484
  while True:
3381
- rsp = client.ModifySparkAppBatch(model)
3485
+ rsp = client.CancelNotebookSessionStatementBatch(model)
3382
3486
  result = rsp.to_json_string()
3383
3487
  try:
3384
3488
  json_obj = json.loads(result)
@@ -3553,6 +3657,58 @@ def doDescribeNotebookSessionLog(args, parsed_globals):
3553
3657
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
3658
 
3555
3659
 
3660
+ def doDescribeTasksCostInfo(args, parsed_globals):
3661
+ g_param = parse_global_arg(parsed_globals)
3662
+
3663
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3664
+ cred = credential.CVMRoleCredential()
3665
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3666
+ cred = credential.STSAssumeRoleCredential(
3667
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3668
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3669
+ )
3670
+ 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):
3671
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3672
+ else:
3673
+ cred = credential.Credential(
3674
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3675
+ )
3676
+ http_profile = HttpProfile(
3677
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3678
+ reqMethod="POST",
3679
+ endpoint=g_param[OptionsDefine.Endpoint],
3680
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3681
+ )
3682
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3683
+ if g_param[OptionsDefine.Language]:
3684
+ profile.language = g_param[OptionsDefine.Language]
3685
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3686
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
3687
+ client._sdkVersion += ("_CLI_" + __version__)
3688
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3689
+ model = models.DescribeTasksCostInfoRequest()
3690
+ model.from_json_string(json.dumps(args))
3691
+ start_time = time.time()
3692
+ while True:
3693
+ rsp = client.DescribeTasksCostInfo(model)
3694
+ result = rsp.to_json_string()
3695
+ try:
3696
+ json_obj = json.loads(result)
3697
+ except TypeError as e:
3698
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3699
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3700
+ break
3701
+ cur_time = time.time()
3702
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3703
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3704
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3705
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3706
+ else:
3707
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3708
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3709
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
+
3711
+
3556
3712
  def doDescribeResultDownload(args, parsed_globals):
3557
3713
  g_param = parse_global_arg(parsed_globals)
3558
3714
 
@@ -4021,7 +4177,7 @@ def doDescribeTaskLog(args, parsed_globals):
4021
4177
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
4178
 
4023
4179
 
4024
- def doDescribeSparkSessionBatchSqlLog(args, parsed_globals):
4180
+ def doCancelTask(args, parsed_globals):
4025
4181
  g_param = parse_global_arg(parsed_globals)
4026
4182
 
4027
4183
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4050,11 +4206,11 @@ def doDescribeSparkSessionBatchSqlLog(args, parsed_globals):
4050
4206
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
4051
4207
  client._sdkVersion += ("_CLI_" + __version__)
4052
4208
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4053
- model = models.DescribeSparkSessionBatchSqlLogRequest()
4209
+ model = models.CancelTaskRequest()
4054
4210
  model.from_json_string(json.dumps(args))
4055
4211
  start_time = time.time()
4056
4212
  while True:
4057
- rsp = client.DescribeSparkSessionBatchSqlLog(model)
4213
+ rsp = client.CancelTask(model)
4058
4214
  result = rsp.to_json_string()
4059
4215
  try:
4060
4216
  json_obj = json.loads(result)
@@ -5217,7 +5373,7 @@ def doCreateTable(args, parsed_globals):
5217
5373
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5218
5374
 
5219
5375
 
5220
- def doCreateExportTask(args, parsed_globals):
5376
+ def doDescribeTaskResult(args, parsed_globals):
5221
5377
  g_param = parse_global_arg(parsed_globals)
5222
5378
 
5223
5379
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5246,11 +5402,11 @@ def doCreateExportTask(args, parsed_globals):
5246
5402
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
5247
5403
  client._sdkVersion += ("_CLI_" + __version__)
5248
5404
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5249
- model = models.CreateExportTaskRequest()
5405
+ model = models.DescribeTaskResultRequest()
5250
5406
  model.from_json_string(json.dumps(args))
5251
5407
  start_time = time.time()
5252
5408
  while True:
5253
- rsp = client.CreateExportTask(model)
5409
+ rsp = client.DescribeTaskResult(model)
5254
5410
  result = rsp.to_json_string()
5255
5411
  try:
5256
5412
  json_obj = json.loads(result)
@@ -5269,7 +5425,7 @@ def doCreateExportTask(args, parsed_globals):
5269
5425
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5270
5426
 
5271
5427
 
5272
- def doCancelTask(args, parsed_globals):
5428
+ def doCreateExportTask(args, parsed_globals):
5273
5429
  g_param = parse_global_arg(parsed_globals)
5274
5430
 
5275
5431
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5298,11 +5454,11 @@ def doCancelTask(args, parsed_globals):
5298
5454
  client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
5299
5455
  client._sdkVersion += ("_CLI_" + __version__)
5300
5456
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5301
- model = models.CancelTaskRequest()
5457
+ model = models.CreateExportTaskRequest()
5302
5458
  model.from_json_string(json.dumps(args))
5303
5459
  start_time = time.time()
5304
5460
  while True:
5305
- rsp = client.CancelTask(model)
5461
+ rsp = client.CreateExportTask(model)
5306
5462
  result = rsp.to_json_string()
5307
5463
  try:
5308
5464
  json_obj = json.loads(result)
@@ -6535,6 +6691,7 @@ ACTION_MAP = {
6535
6691
  "DescribeUserRoles": doDescribeUserRoles,
6536
6692
  "ModifyUserType": doModifyUserType,
6537
6693
  "DescribeWorkGroupInfo": doDescribeWorkGroupInfo,
6694
+ "ListTaskJobLogName": doListTaskJobLogName,
6538
6695
  "DescribeNotebookSession": doDescribeNotebookSession,
6539
6696
  "CreateNotebookSession": doCreateNotebookSession,
6540
6697
  "DeleteWorkGroup": doDeleteWorkGroup,
@@ -6545,21 +6702,22 @@ ACTION_MAP = {
6545
6702
  "SwitchDataEngine": doSwitchDataEngine,
6546
6703
  "AlterDMSDatabase": doAlterDMSDatabase,
6547
6704
  "DescribeDMSPartitions": doDescribeDMSPartitions,
6548
- "DescribeTaskResult": doDescribeTaskResult,
6705
+ "DescribeSparkSessionBatchSqlLog": doDescribeSparkSessionBatchSqlLog,
6549
6706
  "DescribeDMSTables": doDescribeDMSTables,
6550
6707
  "DescribeUserType": doDescribeUserType,
6551
6708
  "DescribeTasks": doDescribeTasks,
6552
6709
  "DeleteScript": doDeleteScript,
6553
- "SwitchDataEngineImage": doSwitchDataEngineImage,
6554
- "CreateSparkAppTask": doCreateSparkAppTask,
6555
6710
  "DescribeLakeFsDirSummary": doDescribeLakeFsDirSummary,
6711
+ "CreateSparkAppTask": doCreateSparkAppTask,
6712
+ "SwitchDataEngineImage": doSwitchDataEngineImage,
6556
6713
  "DescribeDatabases": doDescribeDatabases,
6557
6714
  "AlterDMSPartition": doAlterDMSPartition,
6558
6715
  "CreateUser": doCreateUser,
6559
6716
  "DescribeTables": doDescribeTables,
6560
- "CancelNotebookSessionStatementBatch": doCancelNotebookSessionStatementBatch,
6717
+ "ModifySparkAppBatch": doModifySparkAppBatch,
6561
6718
  "DescribeNotebookSessions": doDescribeNotebookSessions,
6562
6719
  "DescribeLakeFsTaskResult": doDescribeLakeFsTaskResult,
6720
+ "AddOptimizerEngines": doAddOptimizerEngines,
6563
6721
  "DescribeDataEngineImageVersions": doDescribeDataEngineImageVersions,
6564
6722
  "DescribeAdvancedStoreLocation": doDescribeAdvancedStoreLocation,
6565
6723
  "LockMetaData": doLockMetaData,
@@ -6592,10 +6750,11 @@ ACTION_MAP = {
6592
6750
  "DropDMSDatabase": doDropDMSDatabase,
6593
6751
  "AddDMSPartitions": doAddDMSPartitions,
6594
6752
  "UpdateUserDataEngineConfig": doUpdateUserDataEngineConfig,
6595
- "ModifySparkAppBatch": doModifySparkAppBatch,
6753
+ "CancelNotebookSessionStatementBatch": doCancelNotebookSessionStatementBatch,
6596
6754
  "CheckDataEngineImageCanBeUpgrade": doCheckDataEngineImageCanBeUpgrade,
6597
6755
  "DeleteSparkApp": doDeleteSparkApp,
6598
6756
  "DescribeNotebookSessionLog": doDescribeNotebookSessionLog,
6757
+ "DescribeTasksCostInfo": doDescribeTasksCostInfo,
6599
6758
  "DescribeResultDownload": doDescribeResultDownload,
6600
6759
  "DescribeDMSTable": doDescribeDMSTable,
6601
6760
  "QueryTaskCostDetail": doQueryTaskCostDetail,
@@ -6605,7 +6764,7 @@ ACTION_MAP = {
6605
6764
  "CheckDataEngineImageCanBeRollback": doCheckDataEngineImageCanBeRollback,
6606
6765
  "CancelSparkSessionBatchSQL": doCancelSparkSessionBatchSQL,
6607
6766
  "DescribeTaskLog": doDescribeTaskLog,
6608
- "DescribeSparkSessionBatchSqlLog": doDescribeSparkSessionBatchSqlLog,
6767
+ "CancelTask": doCancelTask,
6609
6768
  "DescribeTable": doDescribeTable,
6610
6769
  "GetOptimizerPolicy": doGetOptimizerPolicy,
6611
6770
  "DescribeUserInfo": doDescribeUserInfo,
@@ -6628,8 +6787,8 @@ ACTION_MAP = {
6628
6787
  "CheckLockMetaData": doCheckLockMetaData,
6629
6788
  "CreateImportTask": doCreateImportTask,
6630
6789
  "CreateTable": doCreateTable,
6790
+ "DescribeTaskResult": doDescribeTaskResult,
6631
6791
  "CreateExportTask": doCreateExportTask,
6632
- "CancelTask": doCancelTask,
6633
6792
  "DeleteUsersFromWorkGroup": doDeleteUsersFromWorkGroup,
6634
6793
  "DescribeSparkAppTasks": doDescribeSparkAppTasks,
6635
6794
  "UnbindWorkGroupsFromUser": doUnbindWorkGroupsFromUser,
@@ -7,6 +7,13 @@
7
7
  "output": "AddDMSPartitionsResponse",
8
8
  "status": "online"
9
9
  },
10
+ "AddOptimizerEngines": {
11
+ "document": "添加数据优化资源",
12
+ "input": "AddOptimizerEnginesRequest",
13
+ "name": "添加数据优化资源",
14
+ "output": "AddOptimizerEnginesResponse",
15
+ "status": "online"
16
+ },
10
17
  "AddUsersToWorkGroup": {
11
18
  "document": "添加用户到工作组",
12
19
  "input": "AddUsersToWorkGroupRequest",
@@ -581,6 +588,13 @@
581
588
  "output": "DescribeTasksResponse",
582
589
  "status": "online"
583
590
  },
591
+ "DescribeTasksCostInfo": {
592
+ "document": "该接口(DescribeTasksCostInfo)用于查询任务消耗",
593
+ "input": "DescribeTasksCostInfoRequest",
594
+ "name": "查询任务消耗",
595
+ "output": "DescribeTasksCostInfoResponse",
596
+ "status": "online"
597
+ },
584
598
  "DescribeUpdatableDataEngines": {
585
599
  "document": "查询可更新配置的引擎列表",
586
600
  "input": "DescribeUpdatableDataEnginesRequest",
@@ -700,6 +714,13 @@
700
714
  "output": "ListTaskJobLogDetailResponse",
701
715
  "status": "online"
702
716
  },
717
+ "ListTaskJobLogName": {
718
+ "document": "本接口(ListTaskJobLogName)用于获取spark-jar日志名称列表",
719
+ "input": "ListTaskJobLogNameRequest",
720
+ "name": "日志名称列表",
721
+ "output": "ListTaskJobLogNameResponse",
722
+ "status": "online"
723
+ },
703
724
  "LockMetaData": {
704
725
  "document": "元数据锁",
705
726
  "input": "LockMetaDataRequest",
@@ -930,6 +951,23 @@
930
951
  ],
931
952
  "type": "object"
932
953
  },
954
+ "AddOptimizerEnginesRequest": {
955
+ "document": "AddOptimizerEngines请求参数结构体",
956
+ "members": [],
957
+ "type": "object"
958
+ },
959
+ "AddOptimizerEnginesResponse": {
960
+ "document": "AddOptimizerEngines返回参数结构体",
961
+ "members": [
962
+ {
963
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
964
+ "member": "string",
965
+ "name": "RequestId",
966
+ "type": "string"
967
+ }
968
+ ],
969
+ "type": "object"
970
+ },
933
971
  "AddUsersToWorkGroupRequest": {
934
972
  "document": "AddUsersToWorkGroup请求参数结构体",
935
973
  "members": [
@@ -9734,6 +9772,98 @@
9734
9772
  ],
9735
9773
  "type": "object"
9736
9774
  },
9775
+ "DescribeTasksCostInfoRequest": {
9776
+ "document": "DescribeTasksCostInfo请求参数结构体",
9777
+ "members": [
9778
+ {
9779
+ "disabled": false,
9780
+ "document": "过滤条件,如下支持的过滤类型,传参Name应为以下其中一个,其中task-id支持最大50个过滤个数,其他过滤参数支持的总数不超过5个。\ntask-id - String - (任务ID准确过滤)task-id取值形如:e386471f-139a-4e59-877f-50ece8135b99。\ntask-state - String - (任务状态过滤)取值范围 0(初始化), 1(运行中), 2(成功), -1(失败)。\ntask-sql-keyword - String - (SQL语句关键字模糊过滤)取值形如:DROP TABLE。\ntask-operator- string (子uin过滤)",
9781
+ "example": "无",
9782
+ "member": "Filter",
9783
+ "name": "Filters",
9784
+ "required": false,
9785
+ "type": "list"
9786
+ },
9787
+ {
9788
+ "disabled": false,
9789
+ "document": "起始时间点,格式为yyyy-mm-dd HH:MM:SS。默认为45天前的当前时刻",
9790
+ "example": "2019-01-21 00:00:00",
9791
+ "member": "string",
9792
+ "name": "StartTime",
9793
+ "required": false,
9794
+ "type": "string"
9795
+ },
9796
+ {
9797
+ "disabled": false,
9798
+ "document": "结束时间点,格式为yyyy-mm-dd HH:MM:SS时间跨度在(0,30天],支持最近45天数据查询。默认为当前时刻",
9799
+ "example": "2019-01-22 00:00:00",
9800
+ "member": "string",
9801
+ "name": "EndTime",
9802
+ "required": false,
9803
+ "type": "string"
9804
+ },
9805
+ {
9806
+ "disabled": false,
9807
+ "document": "数据引擎名称,用于筛选",
9808
+ "example": "shared_presto",
9809
+ "member": "string",
9810
+ "name": "DataEngineName",
9811
+ "required": false,
9812
+ "type": "string"
9813
+ },
9814
+ {
9815
+ "disabled": false,
9816
+ "document": "下一页的标识",
9817
+ "example": "上一次返回的searchafter值",
9818
+ "member": "string",
9819
+ "name": "SearchAfter",
9820
+ "required": false,
9821
+ "type": "string"
9822
+ },
9823
+ {
9824
+ "disabled": false,
9825
+ "document": "每页的大小",
9826
+ "example": "10000",
9827
+ "member": "uint64",
9828
+ "name": "PageSize",
9829
+ "required": false,
9830
+ "type": "int"
9831
+ }
9832
+ ],
9833
+ "type": "object"
9834
+ },
9835
+ "DescribeTasksCostInfoResponse": {
9836
+ "document": "DescribeTasksCostInfo返回参数结构体",
9837
+ "members": [
9838
+ {
9839
+ "disabled": false,
9840
+ "document": "下一页的标识\n注意:此字段可能返回 null,表示取不到有效值。",
9841
+ "example": "[1716358571169]",
9842
+ "member": "string",
9843
+ "name": "SearchAfter",
9844
+ "output_required": false,
9845
+ "type": "string",
9846
+ "value_allowed_null": true
9847
+ },
9848
+ {
9849
+ "disabled": false,
9850
+ "document": "返回的数据,字符串类型的二维数组,首行为列中文名称\n注意:此字段可能返回 null,表示取不到有效值。",
9851
+ "example": "[[\\\"任务ID\\\",\\\"引擎具体类别\\\",\\\"任务提交时间\\\",\\\"引擎耗时(ms)\\\",\\\"引擎名称\\\",\\\"使用人\\\",\\\"资源总使用情况(cu*ms)\\\",\\\"资源拆分情况\\\"],[\\\"81e3ca8f-b617-4141-934d-d90dbbf43293\\\",\\\"SparkBatchSQL\\\",\\\"1716358571169\\\",\\\"0\\\",\\\"test_hz\\\",\\\"100000000000\\\",\\\"36396\\\",\\\"[{\\\\\\\"TaskId\\\\\\\":\\\\\\\"cbec28d8-4390-44d2-9c88-5ef777a92ecf\\\\\\\",\\\\\\\"TotalTime\\\\\\\":36396}]\\\"]]",
9852
+ "member": "string",
9853
+ "name": "Data",
9854
+ "output_required": false,
9855
+ "type": "string",
9856
+ "value_allowed_null": true
9857
+ },
9858
+ {
9859
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9860
+ "member": "string",
9861
+ "name": "RequestId",
9862
+ "type": "string"
9863
+ }
9864
+ ],
9865
+ "type": "object"
9866
+ },
9737
9867
  "DescribeTasksRequest": {
9738
9868
  "document": "DescribeTasks请求参数结构体",
9739
9869
  "members": [
@@ -11655,6 +11785,52 @@
11655
11785
  ],
11656
11786
  "type": "object"
11657
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
+ },
11658
11834
  "LockComponentInfo": {
11659
11835
  "document": "元数据加锁内容",
11660
11836
  "members": [