tccli 3.0.1311.1__py2.py3-none-any.whl → 3.0.1313.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 (64) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +164 -161
  3. tccli/services/autoscaling/v20180419/examples.json +13 -13
  4. tccli/services/batch/v20170312/api.json +119 -143
  5. tccli/services/batch/v20170312/examples.json +5 -5
  6. tccli/services/bh/v20230418/api.json +152 -1
  7. tccli/services/bi/v20220105/api.json +19 -0
  8. tccli/services/cbs/v20170312/api.json +19 -16
  9. tccli/services/cbs/v20170312/examples.json +1 -1
  10. tccli/services/cdb/v20170320/api.json +30 -9
  11. tccli/services/cdb/v20170320/examples.json +1 -1
  12. tccli/services/cfw/v20190904/api.json +5 -7
  13. tccli/services/clb/v20180317/api.json +36 -36
  14. tccli/services/clb/v20180317/examples.json +8 -8
  15. tccli/services/cynosdb/v20190107/api.json +14 -4
  16. tccli/services/cynosdb/v20190107/examples.json +1 -1
  17. tccli/services/dbbrain/dbbrain_client.py +147 -41
  18. tccli/services/dbbrain/v20210527/api.json +224 -0
  19. tccli/services/dbbrain/v20210527/examples.json +16 -0
  20. tccli/services/dnspod/dnspod_client.py +53 -0
  21. tccli/services/dnspod/v20210323/api.json +287 -0
  22. tccli/services/dnspod/v20210323/examples.json +8 -0
  23. tccli/services/domain/v20180808/api.json +21 -21
  24. tccli/services/domain/v20180808/examples.json +2 -2
  25. tccli/services/emr/v20190103/api.json +20 -0
  26. tccli/services/ess/v20201111/api.json +9 -0
  27. tccli/services/essbasic/v20210526/api.json +1 -1
  28. tccli/services/essbasic/v20210526/examples.json +6 -0
  29. tccli/services/goosefs/v20220519/api.json +5 -5
  30. tccli/services/ims/v20201229/api.json +93 -102
  31. tccli/services/lkeap/v20240522/api.json +1 -1
  32. tccli/services/mps/v20190612/api.json +96 -1
  33. tccli/services/postgres/postgres_client.py +0 -53
  34. tccli/services/postgres/v20170312/api.json +12 -55
  35. tccli/services/postgres/v20170312/examples.json +0 -14
  36. tccli/services/tbaas/tbaas_client.py +0 -53
  37. tccli/services/tbaas/v20180416/api.json +0 -133
  38. tccli/services/tbaas/v20180416/examples.json +0 -8
  39. tccli/services/tcb/v20180608/api.json +5 -5
  40. tccli/services/teo/teo_client.py +53 -0
  41. tccli/services/teo/v20220901/api.json +464 -100
  42. tccli/services/teo/v20220901/examples.json +8 -0
  43. tccli/services/thpc/thpc_client.py +53 -0
  44. tccli/services/thpc/v20211109/api.json +2 -2
  45. tccli/services/thpc/v20220401/api.json +3 -3
  46. tccli/services/thpc/v20230321/api.json +43 -0
  47. tccli/services/thpc/v20230321/examples.json +8 -0
  48. tccli/services/tke/v20180525/api.json +106 -82
  49. tccli/services/tms/v20201229/api.json +47 -59
  50. tccli/services/tmt/tmt_client.py +61 -8
  51. tccli/services/tmt/v20180321/api.json +234 -0
  52. tccli/services/tmt/v20180321/examples.json +8 -0
  53. tccli/services/trtc/v20190722/api.json +2 -2
  54. tccli/services/vpc/v20170312/api.json +61 -61
  55. tccli/services/vpc/v20170312/examples.json +10 -10
  56. tccli/services/waf/v20180125/api.json +11 -0
  57. tccli/services/wedata/v20210820/api.json +907 -0
  58. tccli/services/wedata/v20210820/examples.json +40 -0
  59. tccli/services/wedata/wedata_client.py +277 -12
  60. {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/METADATA +2 -2
  61. {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/RECORD +64 -64
  62. {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/WHEEL +0 -0
  63. {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/entry_points.txt +0 -0
  64. {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/license_files/LICENSE +0 -0
@@ -620,6 +620,14 @@
620
620
  "title": "批量操作任务列表"
621
621
  }
622
622
  ],
623
+ "DescribeCodeTemplateDetail": [
624
+ {
625
+ "document": "查看代码模版详情",
626
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCodeTemplateDetail\n<公共请求参数>\n\n{\n \"CodeTemplateId\": \"20250311155509313\",\n \"ProjectId\": \"1470547050521227264\"\n}",
627
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"BrokerIp\": \"any\",\n \"CodeTemplateDesc\": null,\n \"CodeTemplateId\": \"20250311155509313\",\n \"CodeTemplateName\": \"copy11\",\n \"Ext\": {\n \"DryRunExtAttributes\": null,\n \"DryRunParameter\": null,\n \"Properties\": [\n {\n \"ParamKey\": \"bucket\",\n \"ParamValue\": \"wedata-fusion-dev-1257305158\"\n },\n {\n \"ParamKey\": \"ftp.file.name\",\n \"ParamValue\": \"/datastudio/codeTemplate/1470547050521227264/copy11.py\"\n },\n {\n \"ParamKey\": \"region\",\n \"ParamValue\": \"ap-nanjing\"\n }\n ],\n \"TaskId\": \"20250311155509313\"\n },\n \"FolderId\": \"\",\n \"FolderName\": \"\",\n \"InCharge\": \"kevinnie\",\n \"InChargeId\": \"100028578763\",\n \"LastUpdateTime\": \"2025-03-11 15:55:09\",\n \"ProjectId\": \"1470547050521227264\",\n \"ResourceGroup\": null,\n \"ScriptChange\": true,\n \"Submit\": false,\n \"TaskType\": 30,\n \"UpdateUser\": \"kevinnie\",\n \"UpdateUserId\": \"100028578763\"\n },\n \"RequestId\": \"9b5e61e9-0575-4c1e-9103-c1a1be7efc11\"\n }\n}",
628
+ "title": "查看代码模版详情"
629
+ }
630
+ ],
623
631
  "DescribeColumnLineage": [
624
632
  {
625
633
  "document": "列出表血缘信息",
@@ -1566,6 +1574,14 @@
1566
1574
  "title": "查询实时任务表粒度指标概览"
1567
1575
  }
1568
1576
  ],
1577
+ "DescribeTaskTemplates": [
1578
+ {
1579
+ "document": "分页查询模版列表",
1580
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskTemplates\n<公共请求参数>\n\n{\n \"ProjectId\": \"1470547050521227264\",\n \"PageNumber\": 1,\n \"PageSize\": 10,\n \"OrderFields\": [\n {\n \"Name\": \"UpdateTime\",\n \"Direction\": \"DESC\"\n }\n ]\n}",
1581
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Items\": [],\n \"PageCount\": 0,\n \"PageNumber\": 1,\n \"PageSize\": 10,\n \"TotalCount\": 0\n },\n \"RequestId\": \"c2b2edf2-8537-4fb8-869a-92fa10cf3bb7\"\n }\n}",
1582
+ "title": "分页查询模版列表"
1583
+ }
1584
+ ],
1569
1585
  "DescribeTasksForCodeTemplate": [
1570
1586
  {
1571
1587
  "document": "",
@@ -1676,6 +1692,14 @@
1676
1692
  "title": "实例诊断示例"
1677
1693
  }
1678
1694
  ],
1695
+ "DownloadLogByLine": [
1696
+ {
1697
+ "document": "",
1698
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DownloadLogByLine\n<公共请求参数>\n\n{\n \"TaskId\": \"abc\",\n \"CurRunDate\": \"abc\",\n \"DetailId\": \"abc\",\n \"StartLine\": 0,\n \"LineCount\": 0,\n \"FilePath\": \"abc\",\n \"ProjectId\": \"abc\",\n \"RecordId\": \"abc\"\n}",
1699
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Count\": 0,\n \"Content\": [\n \"abc\"\n ],\n \"Over\": true,\n \"InstanceState\": \"abc\",\n \"InstanceId\": \"abc\",\n \"TaskId\": \"abc\",\n \"WorkerType\": 0\n },\n \"RequestId\": \"abc\"\n }\n}",
1700
+ "title": "下载日志信息"
1701
+ }
1702
+ ],
1679
1703
  "DryRunDIOfflineTask": [
1680
1704
  {
1681
1705
  "document": "调试运行集成任务",
@@ -1722,6 +1746,14 @@
1722
1746
  "title": "GenHiveTableDDLSql"
1723
1747
  }
1724
1748
  ],
1749
+ "GetBatchDetailErrorLog": [
1750
+ {
1751
+ "document": "",
1752
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetBatchDetailErrorLog\n<公共请求参数>\n\n{\n \"JobId\": 1,\n \"ResourceId\": \"efc02db7-f631-458e-84e7-7947762eab8d\",\n \"ProjectId\": \"1461767738399854592\"\n}",
1753
+ "output": "{\n \"Response\": {\n \"Data\": \"delete workflow fail\",\n \"RequestId\": \"4b948422-9254-422c-9d0d-9c45935ca88c\"\n }\n}",
1754
+ "title": "示例"
1755
+ }
1756
+ ],
1725
1757
  "GetCosToken": [
1726
1758
  {
1727
1759
  "document": "开发空间-获取cos token",
@@ -1802,6 +1834,14 @@
1802
1834
  "title": "批量终止实例"
1803
1835
  }
1804
1836
  ],
1837
+ "ListBatchDetail": [
1838
+ {
1839
+ "document": "",
1840
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListBatchDetail\n<公共请求参数>\n\n{\n \"JobId\": 118786,\n \"ProjectId\": \"1461767738399854592\"\n}",
1841
+ "output": "{\n \"Response\": {\n \"FailResource\": [\n {\n \"ExtraInfo\": null,\n \"ProcessId\": 190394,\n \"ResourceId\": \"20250415191408327\",\n \"ResourceName\": \"aaaadasd\"\n }\n ],\n \"JobId\": 118786,\n \"JobStatus\": \"FAIL\",\n \"JobType\": \"BATCH_MODIFY_SCHEDULE\",\n \"NeedApprove\": false,\n \"RequestId\": \"2fe33308-82db-4d40-a275-d9fca1e5e284\",\n \"RunType\": \"ASYNC\",\n \"SuccessResource\": [],\n \"TotalResource\": 1\n }\n}",
1842
+ "title": "成功示例"
1843
+ }
1844
+ ],
1805
1845
  "ListInstances": [
1806
1846
  {
1807
1847
  "document": "查询实例列表示例",
@@ -641,6 +641,58 @@ def doDescribeTaskByCycleReport(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
+ def doDownloadLogByLine(args, parsed_globals):
645
+ g_param = parse_global_arg(parsed_globals)
646
+
647
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
648
+ cred = credential.CVMRoleCredential()
649
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
+ cred = credential.STSAssumeRoleCredential(
651
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
653
+ )
654
+ 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):
655
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
656
+ else:
657
+ cred = credential.Credential(
658
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
659
+ )
660
+ http_profile = HttpProfile(
661
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
662
+ reqMethod="POST",
663
+ endpoint=g_param[OptionsDefine.Endpoint],
664
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
665
+ )
666
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
667
+ if g_param[OptionsDefine.Language]:
668
+ profile.language = g_param[OptionsDefine.Language]
669
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
670
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.DownloadLogByLineRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.DownloadLogByLine(model)
678
+ result = rsp.to_json_string()
679
+ try:
680
+ json_obj = json.loads(result)
681
+ except TypeError as e:
682
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
683
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
684
+ break
685
+ cur_time = time.time()
686
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
687
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
688
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
689
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
690
+ else:
691
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
692
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
693
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
+
695
+
644
696
  def doDescribeDataCheckStat(args, parsed_globals):
645
697
  g_param = parse_global_arg(parsed_globals)
646
698
 
@@ -1369,7 +1421,7 @@ def doDescribeTaskByCycle(args, parsed_globals):
1369
1421
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1422
 
1371
1423
 
1372
- def doDescribeInstanceLogFile(args, parsed_globals):
1424
+ def doGetBatchDetailErrorLog(args, parsed_globals):
1373
1425
  g_param = parse_global_arg(parsed_globals)
1374
1426
 
1375
1427
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1398,11 +1450,11 @@ def doDescribeInstanceLogFile(args, parsed_globals):
1398
1450
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
1399
1451
  client._sdkVersion += ("_CLI_" + __version__)
1400
1452
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
- model = models.DescribeInstanceLogFileRequest()
1453
+ model = models.GetBatchDetailErrorLogRequest()
1402
1454
  model.from_json_string(json.dumps(args))
1403
1455
  start_time = time.time()
1404
1456
  while True:
1405
- rsp = client.DescribeInstanceLogFile(model)
1457
+ rsp = client.GetBatchDetailErrorLog(model)
1406
1458
  result = rsp.to_json_string()
1407
1459
  try:
1408
1460
  json_obj = json.loads(result)
@@ -5373,6 +5425,58 @@ def doBatchRerunIntegrationTaskInstances(args, parsed_globals):
5373
5425
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5374
5426
 
5375
5427
 
5428
+ def doDescribeTaskTemplates(args, parsed_globals):
5429
+ g_param = parse_global_arg(parsed_globals)
5430
+
5431
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5432
+ cred = credential.CVMRoleCredential()
5433
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5434
+ cred = credential.STSAssumeRoleCredential(
5435
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5436
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5437
+ )
5438
+ 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):
5439
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5440
+ else:
5441
+ cred = credential.Credential(
5442
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5443
+ )
5444
+ http_profile = HttpProfile(
5445
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5446
+ reqMethod="POST",
5447
+ endpoint=g_param[OptionsDefine.Endpoint],
5448
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5449
+ )
5450
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5451
+ if g_param[OptionsDefine.Language]:
5452
+ profile.language = g_param[OptionsDefine.Language]
5453
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5454
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
5455
+ client._sdkVersion += ("_CLI_" + __version__)
5456
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5457
+ model = models.DescribeTaskTemplatesRequest()
5458
+ model.from_json_string(json.dumps(args))
5459
+ start_time = time.time()
5460
+ while True:
5461
+ rsp = client.DescribeTaskTemplates(model)
5462
+ result = rsp.to_json_string()
5463
+ try:
5464
+ json_obj = json.loads(result)
5465
+ except TypeError as e:
5466
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5467
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5468
+ break
5469
+ cur_time = time.time()
5470
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5471
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5472
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5473
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5474
+ else:
5475
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5476
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5477
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5478
+
5479
+
5376
5480
  def doDescribeSchedulerTaskCntByStatus(args, parsed_globals):
5377
5481
  g_param = parse_global_arg(parsed_globals)
5378
5482
 
@@ -8649,7 +8753,7 @@ def doDescribeRulesByPage(args, parsed_globals):
8649
8753
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8650
8754
 
8651
8755
 
8652
- def doDescribeRuleTemplate(args, parsed_globals):
8756
+ def doDescribeCodeTemplateDetail(args, parsed_globals):
8653
8757
  g_param = parse_global_arg(parsed_globals)
8654
8758
 
8655
8759
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -8678,11 +8782,11 @@ def doDescribeRuleTemplate(args, parsed_globals):
8678
8782
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
8679
8783
  client._sdkVersion += ("_CLI_" + __version__)
8680
8784
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
8681
- model = models.DescribeRuleTemplateRequest()
8785
+ model = models.DescribeCodeTemplateDetailRequest()
8682
8786
  model.from_json_string(json.dumps(args))
8683
8787
  start_time = time.time()
8684
8788
  while True:
8685
- rsp = client.DescribeRuleTemplate(model)
8789
+ rsp = client.DescribeCodeTemplateDetail(model)
8686
8790
  result = rsp.to_json_string()
8687
8791
  try:
8688
8792
  json_obj = json.loads(result)
@@ -9221,6 +9325,58 @@ def doModifyApproveStatus(args, parsed_globals):
9221
9325
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9222
9326
 
9223
9327
 
9328
+ def doDescribeInstanceLogFile(args, parsed_globals):
9329
+ g_param = parse_global_arg(parsed_globals)
9330
+
9331
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9332
+ cred = credential.CVMRoleCredential()
9333
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9334
+ cred = credential.STSAssumeRoleCredential(
9335
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9336
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9337
+ )
9338
+ 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):
9339
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9340
+ else:
9341
+ cred = credential.Credential(
9342
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9343
+ )
9344
+ http_profile = HttpProfile(
9345
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9346
+ reqMethod="POST",
9347
+ endpoint=g_param[OptionsDefine.Endpoint],
9348
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9349
+ )
9350
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9351
+ if g_param[OptionsDefine.Language]:
9352
+ profile.language = g_param[OptionsDefine.Language]
9353
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9354
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
9355
+ client._sdkVersion += ("_CLI_" + __version__)
9356
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9357
+ model = models.DescribeInstanceLogFileRequest()
9358
+ model.from_json_string(json.dumps(args))
9359
+ start_time = time.time()
9360
+ while True:
9361
+ rsp = client.DescribeInstanceLogFile(model)
9362
+ result = rsp.to_json_string()
9363
+ try:
9364
+ json_obj = json.loads(result)
9365
+ except TypeError as e:
9366
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9367
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9368
+ break
9369
+ cur_time = time.time()
9370
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9371
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9372
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9373
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9374
+ else:
9375
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9376
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9377
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9378
+
9379
+
9224
9380
  def doDescribeIntegrationStatisticsTaskStatusTrend(args, parsed_globals):
9225
9381
  g_param = parse_global_arg(parsed_globals)
9226
9382
 
@@ -10781,7 +10937,7 @@ def doDeleteResource(args, parsed_globals):
10781
10937
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10782
10938
 
10783
10939
 
10784
- def doDescribeQualityScoreTrend(args, parsed_globals):
10940
+ def doListBatchDetail(args, parsed_globals):
10785
10941
  g_param = parse_global_arg(parsed_globals)
10786
10942
 
10787
10943
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -10810,11 +10966,11 @@ def doDescribeQualityScoreTrend(args, parsed_globals):
10810
10966
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
10811
10967
  client._sdkVersion += ("_CLI_" + __version__)
10812
10968
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
10813
- model = models.DescribeQualityScoreTrendRequest()
10969
+ model = models.ListBatchDetailRequest()
10814
10970
  model.from_json_string(json.dumps(args))
10815
10971
  start_time = time.time()
10816
10972
  while True:
10817
- rsp = client.DescribeQualityScoreTrend(model)
10973
+ rsp = client.ListBatchDetail(model)
10818
10974
  result = rsp.to_json_string()
10819
10975
  try:
10820
10976
  json_obj = json.loads(result)
@@ -11977,6 +12133,58 @@ def doBatchRunOpsTask(args, parsed_globals):
11977
12133
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11978
12134
 
11979
12135
 
12136
+ def doDescribeQualityScoreTrend(args, parsed_globals):
12137
+ g_param = parse_global_arg(parsed_globals)
12138
+
12139
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
12140
+ cred = credential.CVMRoleCredential()
12141
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
12142
+ cred = credential.STSAssumeRoleCredential(
12143
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
12144
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
12145
+ )
12146
+ 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):
12147
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
12148
+ else:
12149
+ cred = credential.Credential(
12150
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
12151
+ )
12152
+ http_profile = HttpProfile(
12153
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
12154
+ reqMethod="POST",
12155
+ endpoint=g_param[OptionsDefine.Endpoint],
12156
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
12157
+ )
12158
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
12159
+ if g_param[OptionsDefine.Language]:
12160
+ profile.language = g_param[OptionsDefine.Language]
12161
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
12162
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
12163
+ client._sdkVersion += ("_CLI_" + __version__)
12164
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
12165
+ model = models.DescribeQualityScoreTrendRequest()
12166
+ model.from_json_string(json.dumps(args))
12167
+ start_time = time.time()
12168
+ while True:
12169
+ rsp = client.DescribeQualityScoreTrend(model)
12170
+ result = rsp.to_json_string()
12171
+ try:
12172
+ json_obj = json.loads(result)
12173
+ except TypeError as e:
12174
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
12175
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
12176
+ break
12177
+ cur_time = time.time()
12178
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
12179
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
12180
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
12181
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
12182
+ else:
12183
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
12184
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
12185
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12186
+
12187
+
11980
12188
  def doModifyTaskLinks(args, parsed_globals):
11981
12189
  g_param = parse_global_arg(parsed_globals)
11982
12190
 
@@ -12549,6 +12757,58 @@ def doGetInstanceLog(args, parsed_globals):
12549
12757
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12550
12758
 
12551
12759
 
12760
+ def doDescribeRuleTemplate(args, parsed_globals):
12761
+ g_param = parse_global_arg(parsed_globals)
12762
+
12763
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
12764
+ cred = credential.CVMRoleCredential()
12765
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
12766
+ cred = credential.STSAssumeRoleCredential(
12767
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
12768
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
12769
+ )
12770
+ 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):
12771
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
12772
+ else:
12773
+ cred = credential.Credential(
12774
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
12775
+ )
12776
+ http_profile = HttpProfile(
12777
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
12778
+ reqMethod="POST",
12779
+ endpoint=g_param[OptionsDefine.Endpoint],
12780
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
12781
+ )
12782
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
12783
+ if g_param[OptionsDefine.Language]:
12784
+ profile.language = g_param[OptionsDefine.Language]
12785
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
12786
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
12787
+ client._sdkVersion += ("_CLI_" + __version__)
12788
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
12789
+ model = models.DescribeRuleTemplateRequest()
12790
+ model.from_json_string(json.dumps(args))
12791
+ start_time = time.time()
12792
+ while True:
12793
+ rsp = client.DescribeRuleTemplate(model)
12794
+ result = rsp.to_json_string()
12795
+ try:
12796
+ json_obj = json.loads(result)
12797
+ except TypeError as e:
12798
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
12799
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
12800
+ break
12801
+ cur_time = time.time()
12802
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
12803
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
12804
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
12805
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
12806
+ else:
12807
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
12808
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
12809
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12810
+
12811
+
12552
12812
  def doDescribeInstanceLastLog(args, parsed_globals):
12553
12813
  g_param = parse_global_arg(parsed_globals)
12554
12814
 
@@ -13768,6 +14028,7 @@ ACTION_MAP = {
13768
14028
  "DescribeScheduleInstances": doDescribeScheduleInstances,
13769
14029
  "BatchStopOpsTasks": doBatchStopOpsTasks,
13770
14030
  "DescribeTaskByCycleReport": doDescribeTaskByCycleReport,
14031
+ "DownloadLogByLine": doDownloadLogByLine,
13771
14032
  "DescribeDataCheckStat": doDescribeDataCheckStat,
13772
14033
  "DescribeTableMeta": doDescribeTableMeta,
13773
14034
  "BatchKillIntegrationTaskInstances": doBatchKillIntegrationTaskInstances,
@@ -13782,7 +14043,7 @@ ACTION_MAP = {
13782
14043
  "DescribeIntegrationNode": doDescribeIntegrationNode,
13783
14044
  "DescribeDatabaseMetas": doDescribeDatabaseMetas,
13784
14045
  "DescribeTaskByCycle": doDescribeTaskByCycle,
13785
- "DescribeInstanceLogFile": doDescribeInstanceLogFile,
14046
+ "GetBatchDetailErrorLog": doGetBatchDetailErrorLog,
13786
14047
  "DescribeFieldBasicInfo": doDescribeFieldBasicInfo,
13787
14048
  "DeleteCodeTemplate": doDeleteCodeTemplate,
13788
14049
  "RemoveWorkflowDs": doRemoveWorkflowDs,
@@ -13859,6 +14120,7 @@ ACTION_MAP = {
13859
14120
  "DescribeWorkflowInfoById": doDescribeWorkflowInfoById,
13860
14121
  "DescribeTaskByStatusReport": doDescribeTaskByStatusReport,
13861
14122
  "BatchRerunIntegrationTaskInstances": doBatchRerunIntegrationTaskInstances,
14123
+ "DescribeTaskTemplates": doDescribeTaskTemplates,
13862
14124
  "DescribeSchedulerTaskCntByStatus": doDescribeSchedulerTaskCntByStatus,
13863
14125
  "ModifyWorkflowSchedule": doModifyWorkflowSchedule,
13864
14126
  "DescribeTableSchemaInfo": doDescribeTableSchemaInfo,
@@ -13922,7 +14184,7 @@ ACTION_MAP = {
13922
14184
  "DeleteFile": doDeleteFile,
13923
14185
  "BatchMakeUpIntegrationTasks": doBatchMakeUpIntegrationTasks,
13924
14186
  "DescribeRulesByPage": doDescribeRulesByPage,
13925
- "DescribeRuleTemplate": doDescribeRuleTemplate,
14187
+ "DescribeCodeTemplateDetail": doDescribeCodeTemplateDetail,
13926
14188
  "DescribeRule": doDescribeRule,
13927
14189
  "ModifyWorkflowInfo": doModifyWorkflowInfo,
13928
14190
  "DescribeRuleExecStat": doDescribeRuleExecStat,
@@ -13933,6 +14195,7 @@ ACTION_MAP = {
13933
14195
  "DagInstances": doDagInstances,
13934
14196
  "DescribeDataServicePublishedApiList": doDescribeDataServicePublishedApiList,
13935
14197
  "ModifyApproveStatus": doModifyApproveStatus,
14198
+ "DescribeInstanceLogFile": doDescribeInstanceLogFile,
13936
14199
  "DescribeIntegrationStatisticsTaskStatusTrend": doDescribeIntegrationStatisticsTaskStatusTrend,
13937
14200
  "DescribeTaskLockStatus": doDescribeTaskLockStatus,
13938
14201
  "DescribeAllByFolderNew": doDescribeAllByFolderNew,
@@ -13963,7 +14226,7 @@ ACTION_MAP = {
13963
14226
  "TriggerEvent": doTriggerEvent,
13964
14227
  "FreezeTasksByWorkflowIds": doFreezeTasksByWorkflowIds,
13965
14228
  "DeleteResource": doDeleteResource,
13966
- "DescribeQualityScoreTrend": doDescribeQualityScoreTrend,
14229
+ "ListBatchDetail": doListBatchDetail,
13967
14230
  "ModifyTaskInfo": doModifyTaskInfo,
13968
14231
  "DescribeDependTaskLists": doDescribeDependTaskLists,
13969
14232
  "SaveCustomFunction": doSaveCustomFunction,
@@ -13986,6 +14249,7 @@ ACTION_MAP = {
13986
14249
  "ListInstances": doListInstances,
13987
14250
  "CommitRuleGroupTask": doCommitRuleGroupTask,
13988
14251
  "BatchRunOpsTask": doBatchRunOpsTask,
14252
+ "DescribeQualityScoreTrend": doDescribeQualityScoreTrend,
13989
14253
  "ModifyTaskLinks": doModifyTaskLinks,
13990
14254
  "RenewWorkflowSchedulerInfoDs": doRenewWorkflowSchedulerInfoDs,
13991
14255
  "DescribeOpsMakePlans": doDescribeOpsMakePlans,
@@ -13997,6 +14261,7 @@ ACTION_MAP = {
13997
14261
  "BatchStopWorkflowsByIds": doBatchStopWorkflowsByIds,
13998
14262
  "BatchResumeIntegrationTasks": doBatchResumeIntegrationTasks,
13999
14263
  "GetInstanceLog": doGetInstanceLog,
14264
+ "DescribeRuleTemplate": doDescribeRuleTemplate,
14000
14265
  "DescribeInstanceLastLog": doDescribeInstanceLastLog,
14001
14266
  "SubmitSqlTask": doSubmitSqlTask,
14002
14267
  "DescribeDataSourceInfoList": doDescribeDataSourceInfoList,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1311.1
3
+ Version: 3.0.1313.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1311
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1313
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介