tccli 3.0.1309.1__py2.py3-none-any.whl → 3.0.1311.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 (62) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +38 -0
  3. tccli/services/asr/v20190614/api.json +9 -0
  4. tccli/services/autoscaling/v20180419/api.json +19 -10
  5. tccli/services/bh/v20230418/api.json +193 -2
  6. tccli/services/bh/v20230418/examples.json +2 -2
  7. tccli/services/billing/billing_client.py +867 -125
  8. tccli/services/billing/v20180709/api.json +1336 -45
  9. tccli/services/billing/v20180709/examples.json +136 -0
  10. tccli/services/cdb/cdb_client.py +0 -53
  11. tccli/services/cdb/v20170320/api.json +0 -64
  12. tccli/services/cdb/v20170320/examples.json +0 -8
  13. tccli/services/cdwch/v20200915/examples.json +1 -1
  14. tccli/services/cfw/v20190904/api.json +11 -1
  15. tccli/services/cfw/v20190904/examples.json +2 -2
  16. tccli/services/cynosdb/v20190107/api.json +2 -2
  17. tccli/services/dsgc/v20190723/api.json +28 -18
  18. tccli/services/dsgc/v20190723/examples.json +1 -1
  19. tccli/services/ess/ess_client.py +53 -0
  20. tccli/services/ess/v20201111/api.json +102 -3
  21. tccli/services/ess/v20201111/examples.json +14 -0
  22. tccli/services/essbasic/essbasic_client.py +53 -0
  23. tccli/services/essbasic/v20210526/api.json +110 -2
  24. tccli/services/essbasic/v20210526/examples.json +14 -0
  25. tccli/services/gaap/gaap_client.py +12 -171
  26. tccli/services/gaap/v20180529/api.json +0 -325
  27. tccli/services/gaap/v20180529/examples.json +0 -24
  28. tccli/services/hunyuan/v20230901/api.json +130 -7
  29. tccli/services/iai/v20180301/api.json +12 -12
  30. tccli/services/iai/v20180301/examples.json +8 -2
  31. tccli/services/keewidb/v20220308/api.json +1 -1
  32. tccli/services/keewidb/v20220308/examples.json +1 -1
  33. tccli/services/lighthouse/v20200324/api.json +4 -4
  34. tccli/services/lke/v20231130/api.json +117 -2
  35. tccli/services/postgres/v20170312/api.json +6 -6
  36. tccli/services/redis/v20180412/api.json +12 -12
  37. tccli/services/redis/v20180412/examples.json +4 -4
  38. tccli/services/tag/v20180813/api.json +4 -4
  39. tccli/services/tcb/v20180608/api.json +20 -0
  40. tccli/services/tcb/v20180608/examples.json +1 -1
  41. tccli/services/tcbr/v20220217/api.json +94 -0
  42. tccli/services/tdmq/v20200217/api.json +4 -4
  43. tccli/services/teo/v20220901/api.json +45 -24
  44. tccli/services/thpc/v20211109/api.json +1 -1
  45. tccli/services/thpc/v20220401/api.json +1 -1
  46. tccli/services/thpc/v20230321/api.json +6 -6
  47. tccli/services/tione/v20211111/api.json +159 -4
  48. tccli/services/tke/v20180525/api.json +10 -10
  49. tccli/services/tmt/v20180321/api.json +1 -1
  50. tccli/services/trtc/v20190722/api.json +9 -0
  51. tccli/services/vod/v20180717/api.json +1 -1
  52. tccli/services/vpc/v20170312/api.json +5 -5
  53. tccli/services/waf/v20180125/api.json +163 -28
  54. tccli/services/waf/v20180125/examples.json +6 -0
  55. tccli/services/wedata/v20210820/api.json +1419 -0
  56. tccli/services/wedata/v20210820/examples.json +57 -1
  57. tccli/services/wedata/wedata_client.py +371 -0
  58. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/METADATA +2 -2
  59. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/RECORD +62 -62
  60. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/WHEEL +0 -0
  61. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/entry_points.txt +0 -0
  62. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/license_files/LICENSE +0 -0
@@ -218,6 +218,22 @@
218
218
  "title": "统计任务实例状态示例"
219
219
  }
220
220
  ],
221
+ "CreateCodeTemplate": [
222
+ {
223
+ "document": "创建代码模版",
224
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCodeTemplate\n<公共请求参数>\n\n{\n \"ProjectId\": \"1470547050521227264\",\n \"CodeTemplateName\": \"dfa\",\n \"TaskType\": 30,\n \"CodeTemplateDesc\": \"23\",\n \"FolderId\": \"\"\n}",
225
+ "output": "{\n \"Response\": {\n \"Data\": \"20250319120202893\",\n \"RequestId\": \"4d2dce44-c9f3-4a58-8e1d-8b051d7cdb1e\"\n }\n}",
226
+ "title": "创建代码模版"
227
+ }
228
+ ],
229
+ "CreateCodeTemplateVersion": [
230
+ {
231
+ "document": "错误示例",
232
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCodeTemplateVersion\n<公共请求参数>\n\n{\n \"ProjectId\": \"1461767738399854592\",\n \"CodeTemplateId\": \"20250320223428932\",\n \"VersionRemark\": \"qq\",\n \"Tasks\": [\n {\n \"TaskId\": \"20250327221647427\",\n \"MapParamList\": [\n {\n \"Key\": \"aadd sadasd\",\n \"Value\": \"ah\"\n }\n ]\n },\n {\n \"TaskId\": \"20250327222417287\",\n \"MapParamList\": [\n {\n \"Key\": \"aadd sadasd\",\n \"Value\": \"ac\"\n }\n ]\n },\n {\n \"TaskId\": \"20250321162854699\",\n \"MapParamList\": [\n {\n \"Key\": \"aadd sadasd\",\n \"Value\": \"ad\"\n }\n ]\n }\n ],\n \"OriginalParams\": [\n \"aadd sadasd\"\n ],\n \"NeedSubmitScheduleForTemplate\": true\n}",
233
+ "output": "{\n \"Response\": {\n \"Data\": 127560,\n \"RequestId\": \"407e402d-eacf-4acd-8d6e-54a4e812e4df\"\n }\n}",
234
+ "title": "错误示例"
235
+ }
236
+ ],
221
237
  "CreateCustomFunction": [
222
238
  {
223
239
  "document": "",
@@ -382,6 +398,14 @@
382
398
  "title": "获取当前实例的子实例"
383
399
  }
384
400
  ],
401
+ "DeleteCodeTemplate": [
402
+ {
403
+ "document": "删除模版",
404
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCodeTemplate\n<公共请求参数>\n\n{\n \"ProjectId\": \"1470547050521227264\",\n \"CodeTemplateId\": \"20250319120202893\"\n}",
405
+ "output": "{\n \"Response\": {\n \"Data\": true,\n \"RequestId\": \"9b612578-4f66-4ec0-9a63-3a2c43c858ee\"\n }\n}",
406
+ "title": "删除模版"
407
+ }
408
+ ],
385
409
  "DeleteCustomFunction": [
386
410
  {
387
411
  "document": "删除自定义函数",
@@ -789,7 +813,7 @@
789
813
  "DescribeEventConsumeTasks": [
790
814
  {
791
815
  "document": "成功获取事件实例消费任务",
792
- "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEventConsumeTasks\n<公共请求参数>\n\n{\n \"EventCaseId\": \"9e2a0e***0006\",\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
816
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEventConsumeTasks\n<公共请求参数>\n\n{\n \"ProjectId\": \"1501356495395639320\",\n \"EventCaseId\": \"9e2a0e***0006\",\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
793
817
  "output": "{\n \"Response\": {\n \"Data\": {\n \"Items\": [\n {\n \"ConsumeLogId\": \"9eb04578870ec50d018712b3938d0005\",\n \"ConsumerDetail\": {\n \"Submit\": true,\n \"TasksStr\": \"\",\n \"BrokerIp\": \"any\",\n \"ClusterId\": null,\n \"CreateTime\": \"2023-03-24 16:09:14\",\n \"Creator\": \"stackxchen\",\n \"Crontab\": null,\n \"CrontabExpression\": null,\n \"CycleNum\": null,\n \"CycleStep\": 5,\n \"CycleType\": \"MINUTE_CYCLE\",\n \"CycleUnit\": null,\n \"DelayTime\": 0,\n \"DependencyRel\": \"and\",\n \"DependencyWorkflow\": \"no\",\n \"EndDate\": null,\n \"EndTime\": \"2023-03-24 23:59:59\",\n \"EventListenerConfig\": null,\n \"EventPublisherConfig\": null,\n \"ExecutionEndTime\": null,\n \"ExecutionStartTime\": null,\n \"ExecutionTTL\": -1,\n \"FirstRunTime\": null,\n \"FirstSubmitTime\": null,\n \"FolderId\": null,\n \"FolderName\": null,\n \"InCharge\": \"stackxchen\",\n \"InChargeId\": \"100028590605\",\n \"InitStrategy\": null,\n \"InstanceInitStrategy\": \"T_PLUS_0\",\n \"LastSchedulerCommitTime\": null,\n \"LastUpdate\": \"2023-03-24 16:18:31\",\n \"Layer\": null,\n \"LeftCoordinate\": 376,\n \"MaxDateTime\": null,\n \"MinDateTime\": null,\n \"NormalizedJobStartTime\": null,\n \"Notes\": \"\",\n \"OwnId\": \"100028448903\",\n \"ProductName\": \"DATA_DEV\",\n \"ProjectId\": \"1460963739345731584\",\n \"ProjectIdent\": \"us_pre\",\n \"ProjectName\": \"调度预发验证项目\",\n \"RealWorkflowId\": null,\n \"ResourceGroup\": \"20221221143954438902\",\n \"RetryAble\": 1,\n \"RetryWait\": 5,\n \"RunPriority\": 6,\n \"ScheduleDesc\": null,\n \"SchedulerDesc\": \"从2023年03月24日 00:00:00开始,每间隔5分钟执行一次\",\n \"SelfDepend\": \"parallel\",\n \"ShowWorkflow\": false,\n \"SourceServiceId\": null,\n \"SourceServiceType\": null,\n \"StartDate\": null,\n \"StartTime\": \"2023-03-24 00:00:00\",\n \"StartupTime\": 0,\n \"Status\": \"Y\",\n \"TargetServiceId\": null,\n \"TargetServiceType\": null,\n \"TaskAction\": \"\",\n \"TaskId\": \"20230324160914089\",\n \"TaskLinkInfo\": null,\n \"TaskName\": \"test_event_minute\",\n \"TaskType\": {\n \"TypeDesc\": \"Shell\",\n \"TypeId\": 35,\n \"TypeSort\": \"数据计算\"\n },\n \"TaskTypeDesc\": null,\n \"TaskTypeId\": null,\n \"TenantId\": \"1315051789\",\n \"TopCoordinate\": 247,\n \"TryLimit\": 5,\n \"UpdateTime\": \"2023-03-24 16:18:29\",\n \"UpdateUser\": \"stackxchen\",\n \"UpdateUserId\": \"100028590605\",\n \"UserId\": \"100028590605\",\n \"VirtualFlag\": false,\n \"VirtualTaskId\": null,\n \"VirtualTaskStatus\": null,\n \"WorkflowId\": \"68ce6df0-7b80-11ed-a3a7-b8cef6c14251\",\n \"WorkflowName\": \"dev_test\",\n \"YarnQueue\": null\n },\n \"ConsumerId\": \"20230324160914089\",\n \"CreationTimestamp\": \"2023-03-24T08:19:31.340Z\",\n \"EventCaseId\": \"9e2a0e1f870ec340018712b3925f0006\"\n }\n ],\n \"PageCount\": 1,\n \"PageNumber\": 1,\n \"PageSize\": 10,\n \"TotalCount\": 1,\n \"TotalPage\": 1\n },\n \"RequestId\": \"b7d1e5cf-3454-48db-a261-41a760f70ee6\"\n }\n}",
794
818
  "title": "成功获取事件实例消费任务"
795
819
  }
@@ -830,6 +854,14 @@
830
854
  "title": "拉取文件夹下的工作流示例"
831
855
  }
832
856
  ],
857
+ "DescribeFormVersionParam": [
858
+ {
859
+ "document": "成功示例",
860
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFormVersionParam\n<公共请求参数>\n\n{\n \"ProjectId\": \"1461767738399854592\",\n \"CodeTemplateId\": \"20250320223428932\",\n \"OriginalParams\": [\n \"aaddsadasd\"\n ],\n \"Page\": 1,\n \"Size\": 10\n}",
861
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Items\": [\n {\n \"InCharge\": \"peanutzhu\",\n \"InChargeId\": null,\n \"LatestSavedVersion\": null,\n \"LatestSavedVersionId\": null,\n \"MapParamList\": [],\n \"ProductName\": \"dev_container\",\n \"TaskId\": \"20250327221647427\",\n \"TaskName\": \"testasda\",\n \"WorkflowId\": \"a84dad06-9c40-4cd3-b3d3-7fd651496a8b\",\n \"WorkflowName\": \"test_copy\"\n },\n {\n \"InCharge\": \"peanutzhu\",\n \"InChargeId\": null,\n \"LatestSavedVersion\": null,\n \"LatestSavedVersionId\": null,\n \"MapParamList\": [],\n \"ProductName\": \"dev\",\n \"TaskId\": \"20250327222417287\",\n \"TaskName\": \"test_0327\",\n \"WorkflowId\": \"4dc1320a-191f-4736-9ed7-3edcc05f2d81\",\n \"WorkflowName\": \"上游克隆工作流\"\n },\n {\n \"InCharge\": \"peanutzhu\",\n \"InChargeId\": null,\n \"LatestSavedVersion\": null,\n \"LatestSavedVersionId\": null,\n \"MapParamList\": [],\n \"ProductName\": \"dev_container\",\n \"TaskId\": \"20250321162854699\",\n \"TaskName\": \"test_python\",\n \"WorkflowId\": \"d29535b5-5c19-11ee-83ca-b8cef6c02718\",\n \"WorkflowName\": \"test_make\"\n }\n ],\n \"PageCount\": 1,\n \"TotalCount\": 3\n },\n \"RequestId\": \"6ab1bd29-fdc1-452f-9dd9-ae8f26a4a0d3\"\n }\n}",
862
+ "title": "成功示例"
863
+ }
864
+ ],
833
865
  "DescribeFunctionKinds": [
834
866
  {
835
867
  "document": "",
@@ -1534,6 +1566,14 @@
1534
1566
  "title": "查询实时任务表粒度指标概览"
1535
1567
  }
1536
1568
  ],
1569
+ "DescribeTasksForCodeTemplate": [
1570
+ {
1571
+ "document": "",
1572
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasksForCodeTemplate\n<公共请求参数>\n\n{\n \"ProjectId\": \"1460947878944567296\",\n \"PageNumber\": 1,\n \"PageSize\": 10,\n \"TemplateId\": \"20250311141017356\"\n}",
1573
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Items\": [\n {\n \"InCharge\": \"peterpksong\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250312151216033\",\n \"TaskName\": \"asdasdasdas\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028694266\",\n \"WorkflowId\": \"4b4b885b-cf56-49f7-ae52-05d679b21411\",\n \"WorkflowName\": \"上下游依赖问题\"\n },\n {\n \"InCharge\": \"candouwang\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250312175744154\",\n \"TaskName\": \"fadfadfad\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028649379\",\n \"WorkflowId\": \"eb3ab1cb-464f-4009-b0d0-b3eee4744c24\",\n \"WorkflowName\": \"abel_test\"\n },\n {\n \"InCharge\": \"peterpksong;wenjieyao\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250312111133801\",\n \"TaskName\": \"peter\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028694266\",\n \"WorkflowId\": \"4b4b885b-cf56-49f7-ae52-05d679b21411\",\n \"WorkflowName\": \"上下游依赖问题\"\n },\n {\n \"InCharge\": \"peterpksong\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250312225619856\",\n \"TaskName\": \"peterTest\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028694266\",\n \"WorkflowId\": \"8966c7a5-15b0-400e-8062-9502967e8e34\",\n \"WorkflowName\": \"aiops_delete\"\n },\n {\n \"InCharge\": \"wenjieyao\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250312161138565\",\n \"TaskName\": \"petertest1\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028579606\",\n \"WorkflowId\": \"4b4b885b-cf56-49f7-ae52-05d679b21411\",\n \"WorkflowName\": \"上下游依赖问题\"\n },\n {\n \"InCharge\": \"peanutzhu\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250311145732181\",\n \"TaskName\": \"test_0999\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028578753\",\n \"WorkflowId\": \"8966c7a5-15b0-400e-8062-9502967e8e34\",\n \"WorkflowName\": \"aiops_delete\"\n },\n {\n \"InCharge\": \"peanutzhu\",\n \"OwnId\": \"100028448903\",\n \"TaskId\": \"20250311145611244\",\n \"TaskName\": \"test_peanut_11\",\n \"TaskTypeId\": 30,\n \"TenantId\": \"1315051789\",\n \"UserId\": \"100028578753\",\n \"WorkflowId\": \"8966c7a5-15b0-400e-8062-9502967e8e34\",\n \"WorkflowName\": \"aiops_delete\"\n }\n ],\n \"PageCount\": 1,\n \"TotalCount\": 7\n },\n \"RequestId\": \"8ecf6437-d3e0-47b1-acce-525c952907fc\"\n }\n}",
1574
+ "title": "分页查询引用模板的任务的列表"
1575
+ }
1576
+ ],
1537
1577
  "DescribeTemplateDimCount": [
1538
1578
  {
1539
1579
  "document": "查询规则模板维度分布情况",
@@ -2004,6 +2044,14 @@
2004
2044
  "title": "示例1"
2005
2045
  }
2006
2046
  ],
2047
+ "ReportTaskLineage": [
2048
+ {
2049
+ "document": "",
2050
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReportTaskLineage\n<公共请求参数>\n\n{\n \"ChannelType\": \"THIRD_REPORT\",\n \"Task\": {\n \"TaskId\": \"Task-001\",\n \"TaskType\": \"other\",\n \"TaskSource\": \"other\",\n \"ExtParams\": [\n {\n \"Key\": \"param1\",\n \"Value\": \"value1\"\n },\n {\n \"Key\": \"param2\",\n \"Value\": \"value2\"\n }\n ]\n },\n \"ProjectId\": \"1486804694126882816\",\n \"TableLineages\": [\n {\n \"Sources\": [\n {\n \"DatasourceId\": \"61998\",\n \"DatabaseName\": \"lineage_db1\",\n \"TableName\": \"lineage_source_table1\",\n \"CatalogName\": \"lineage_catalog1\",\n \"TableType\": \"TABLE\"\n },\n {\n \"DatasourceId\": \"61998\",\n \"DatabaseName\": \"lineage_db2\",\n \"TableName\": \"lineage_source_table2\",\n \"CatalogName\": \"lineage_catalog1\",\n \"TableType\": \"TABLE\"\n },\n {\n \"DatasourceId\": \"61998\",\n \"DatabaseName\": \"lineage_db2\",\n \"TableName\": \"lineage_source_table3\",\n \"CatalogName\": \"lineage_catalog1\",\n \"TableType\": \"TABLE\"\n }\n ],\n \"Target\": {\n \"DatasourceId\": \"61998\",\n \"DatabaseName\": \"lineage_db3\",\n \"TableName\": \"lineage_target_table1\",\n \"CatalogName\": \"lineage_catalog1\",\n \"TableType\": \"TABLE\"\n }\n },\n {\n \"Sources\": [\n {\n \"DatasourceId\": \"61999\",\n \"DatabaseName\": \"lineage_db4\",\n \"TableName\": \"lineage_source_table4\",\n \"CatalogName\": \"lineage_catalog2\",\n \"TableType\": \"TABLE\"\n },\n {\n \"DatasourceId\": \"61999\",\n \"DatabaseName\": \"lineage_db5\",\n \"TableName\": \"lineage_source_table5\",\n \"CatalogName\": \"lineage_catalog2\",\n \"TableType\": \"TABLE\"\n }\n ],\n \"Target\": {\n \"DatasourceId\": \"61999\",\n \"DatabaseName\": \"lineage_db6\",\n \"TableName\": \"lineage_target_table2\",\n \"CatalogName\": \"lineage_catalog2\",\n \"TableType\": \"TABLE\"\n }\n }\n ],\n \"ColumnLineages\": [\n {\n \"Sources\": [\n {\n \"DatasourceId\": \"61998\",\n \"DatabaseName\": \"lineage_db1\",\n \"TableName\": \"lineage_source_table1\",\n \"CatalogName\": \"lineage_catalog1\",\n \"TableType\": \"TABLE\",\n \"ColumnName\": \"source_column1\",\n \"ColumnType\": \"STRING\"\n }\n ],\n \"Target\": {\n \"DatasourceId\": \"61998\",\n \"DatabaseName\": \"lineage_db3\",\n \"TableName\": \"lineage_target_table1\",\n \"ColumnName\": \"target_column1\",\n \"CatalogName\": \"lineage_catalog1\",\n \"TableType\": \"TABLE\",\n \"ColumnType\": \"STRING\"\n }\n }\n ]\n}",
2051
+ "output": "{\n \"Response\": {\n \"Data\": true,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
2052
+ "title": "上报测试用例"
2053
+ }
2054
+ ],
2007
2055
  "ResumeIntegrationTask": [
2008
2056
  {
2009
2057
  "document": "继续集成任务",
@@ -2170,6 +2218,14 @@
2170
2218
  "title": "解锁集成任务"
2171
2219
  }
2172
2220
  ],
2221
+ "UpdateCodeTemplate": [
2222
+ {
2223
+ "document": "成功更新代码模版",
2224
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCodeTemplate\n<公共请求参数>\n\n{\n \"ProjectId\": \"1470547050521227264\",\n \"CodeTemplateId\": \"20250319120202893\",\n \"CodeTemplateName\": \"dfa\",\n \"InChargeId\": \"100028579606\",\n \"InCharge\": \"wenjieyao\",\n \"Ext\": {\n \"Properties\": [\n {\n \"ParamKey\": \"bucket\",\n \"ParamValue\": \"wedata-fusion-dev-1257305158\"\n },\n {\n \"ParamKey\": \"ftp.file.name\",\n \"ParamValue\": \"https://wedata-fusion-dev-1257305158.cos.ap-nanjing.myqcloud.com/datastudio/codeTemplate/1470547050521227264/dfa.py\"\n },\n {\n \"ParamKey\": \"region\",\n \"ParamValue\": \"ap-nanjing\"\n }\n ]\n },\n \"BrokerIp\": \"any\",\n \"ResourceGroup\": \"20240222212719833743\",\n \"CodeTemplateDesc\": \"343\",\n \"RequestFromSource\": \"WEB\",\n \"ScriptChange\": true\n}",
2225
+ "output": "{\n \"Response\": {\n \"Data\": true,\n \"RequestId\": \"2430cabe-8dca-455e-917f-b86c78477e10\"\n }\n}",
2226
+ "title": "成功更新代码模版"
2227
+ }
2228
+ ],
2173
2229
  "UpdateDataModelRegistryInfo": [
2174
2230
  {
2175
2231
  "document": "更新数语信息,入参传入ip和端口",
@@ -329,6 +329,58 @@ def doGetFileInfo(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
+ def doReportTaskLineage(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.ReportTaskLineageRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.ReportTaskLineage(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
332
384
  def doDescribeTaskTableMetricOverview(args, parsed_globals):
333
385
  g_param = parse_global_arg(parsed_globals)
334
386
 
@@ -1421,6 +1473,58 @@ def doDescribeFieldBasicInfo(args, parsed_globals):
1421
1473
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
1474
 
1423
1475
 
1476
+ def doDeleteCodeTemplate(args, parsed_globals):
1477
+ g_param = parse_global_arg(parsed_globals)
1478
+
1479
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1480
+ cred = credential.CVMRoleCredential()
1481
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1482
+ cred = credential.STSAssumeRoleCredential(
1483
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1484
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1485
+ )
1486
+ 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):
1487
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1488
+ else:
1489
+ cred = credential.Credential(
1490
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1491
+ )
1492
+ http_profile = HttpProfile(
1493
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1494
+ reqMethod="POST",
1495
+ endpoint=g_param[OptionsDefine.Endpoint],
1496
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1497
+ )
1498
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1499
+ if g_param[OptionsDefine.Language]:
1500
+ profile.language = g_param[OptionsDefine.Language]
1501
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1502
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
1503
+ client._sdkVersion += ("_CLI_" + __version__)
1504
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1505
+ model = models.DeleteCodeTemplateRequest()
1506
+ model.from_json_string(json.dumps(args))
1507
+ start_time = time.time()
1508
+ while True:
1509
+ rsp = client.DeleteCodeTemplate(model)
1510
+ result = rsp.to_json_string()
1511
+ try:
1512
+ json_obj = json.loads(result)
1513
+ except TypeError as e:
1514
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1515
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1516
+ break
1517
+ cur_time = time.time()
1518
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1519
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1520
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1521
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1522
+ else:
1523
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1524
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1525
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
+
1527
+
1424
1528
  def doRemoveWorkflowDs(args, parsed_globals):
1425
1529
  g_param = parse_global_arg(parsed_globals)
1426
1530
 
@@ -1993,6 +2097,58 @@ def doBatchStopIntegrationTasks(args, parsed_globals):
1993
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
2098
 
1995
2099
 
2100
+ def doCreateCodeTemplateVersion(args, parsed_globals):
2101
+ g_param = parse_global_arg(parsed_globals)
2102
+
2103
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2104
+ cred = credential.CVMRoleCredential()
2105
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2106
+ cred = credential.STSAssumeRoleCredential(
2107
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2108
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2109
+ )
2110
+ 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):
2111
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2112
+ else:
2113
+ cred = credential.Credential(
2114
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2115
+ )
2116
+ http_profile = HttpProfile(
2117
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2118
+ reqMethod="POST",
2119
+ endpoint=g_param[OptionsDefine.Endpoint],
2120
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2121
+ )
2122
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2123
+ if g_param[OptionsDefine.Language]:
2124
+ profile.language = g_param[OptionsDefine.Language]
2125
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2126
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
2127
+ client._sdkVersion += ("_CLI_" + __version__)
2128
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
+ model = models.CreateCodeTemplateVersionRequest()
2130
+ model.from_json_string(json.dumps(args))
2131
+ start_time = time.time()
2132
+ while True:
2133
+ rsp = client.CreateCodeTemplateVersion(model)
2134
+ result = rsp.to_json_string()
2135
+ try:
2136
+ json_obj = json.loads(result)
2137
+ except TypeError as e:
2138
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2139
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2140
+ break
2141
+ cur_time = time.time()
2142
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2143
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2144
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2145
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2146
+ else:
2147
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2148
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2149
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
+
2151
+
1996
2152
  def doDescribeSchedulerTaskTypeCnt(args, parsed_globals):
1997
2153
  g_param = parse_global_arg(parsed_globals)
1998
2154
 
@@ -2045,6 +2201,58 @@ def doDescribeSchedulerTaskTypeCnt(args, parsed_globals):
2045
2201
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2202
 
2047
2203
 
2204
+ def doCreateCodeTemplate(args, parsed_globals):
2205
+ g_param = parse_global_arg(parsed_globals)
2206
+
2207
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2208
+ cred = credential.CVMRoleCredential()
2209
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2210
+ cred = credential.STSAssumeRoleCredential(
2211
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2212
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2213
+ )
2214
+ 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):
2215
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2216
+ else:
2217
+ cred = credential.Credential(
2218
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2219
+ )
2220
+ http_profile = HttpProfile(
2221
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2222
+ reqMethod="POST",
2223
+ endpoint=g_param[OptionsDefine.Endpoint],
2224
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2225
+ )
2226
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2227
+ if g_param[OptionsDefine.Language]:
2228
+ profile.language = g_param[OptionsDefine.Language]
2229
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2230
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
2231
+ client._sdkVersion += ("_CLI_" + __version__)
2232
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2233
+ model = models.CreateCodeTemplateRequest()
2234
+ model.from_json_string(json.dumps(args))
2235
+ start_time = time.time()
2236
+ while True:
2237
+ rsp = client.CreateCodeTemplate(model)
2238
+ result = rsp.to_json_string()
2239
+ try:
2240
+ json_obj = json.loads(result)
2241
+ except TypeError as e:
2242
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2243
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2244
+ break
2245
+ cur_time = time.time()
2246
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2247
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2248
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2249
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2250
+ else:
2251
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2252
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2253
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
+
2255
+
2048
2256
  def doDeleteProjectParamDs(args, parsed_globals):
2049
2257
  g_param = parse_global_arg(parsed_globals)
2050
2258
 
@@ -4281,6 +4489,58 @@ def doSetTaskAlarmNew(args, parsed_globals):
4281
4489
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4282
4490
 
4283
4491
 
4492
+ def doDescribeFormVersionParam(args, parsed_globals):
4493
+ g_param = parse_global_arg(parsed_globals)
4494
+
4495
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4496
+ cred = credential.CVMRoleCredential()
4497
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4498
+ cred = credential.STSAssumeRoleCredential(
4499
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4500
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4501
+ )
4502
+ 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):
4503
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4504
+ else:
4505
+ cred = credential.Credential(
4506
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4507
+ )
4508
+ http_profile = HttpProfile(
4509
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4510
+ reqMethod="POST",
4511
+ endpoint=g_param[OptionsDefine.Endpoint],
4512
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4513
+ )
4514
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4515
+ if g_param[OptionsDefine.Language]:
4516
+ profile.language = g_param[OptionsDefine.Language]
4517
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4518
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
4519
+ client._sdkVersion += ("_CLI_" + __version__)
4520
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4521
+ model = models.DescribeFormVersionParamRequest()
4522
+ model.from_json_string(json.dumps(args))
4523
+ start_time = time.time()
4524
+ while True:
4525
+ rsp = client.DescribeFormVersionParam(model)
4526
+ result = rsp.to_json_string()
4527
+ try:
4528
+ json_obj = json.loads(result)
4529
+ except TypeError as e:
4530
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4531
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4532
+ break
4533
+ cur_time = time.time()
4534
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4535
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4536
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4537
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4538
+ else:
4539
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4540
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4541
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4542
+
4543
+
4284
4544
  def doTriggerDsEvent(args, parsed_globals):
4285
4545
  g_param = parse_global_arg(parsed_globals)
4286
4546
 
@@ -7141,6 +7401,58 @@ def doBatchForceSuccessIntegrationTaskInstances(args, parsed_globals):
7141
7401
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7142
7402
 
7143
7403
 
7404
+ def doDescribeTasksForCodeTemplate(args, parsed_globals):
7405
+ g_param = parse_global_arg(parsed_globals)
7406
+
7407
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7408
+ cred = credential.CVMRoleCredential()
7409
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7410
+ cred = credential.STSAssumeRoleCredential(
7411
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7412
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7413
+ )
7414
+ 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):
7415
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7416
+ else:
7417
+ cred = credential.Credential(
7418
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7419
+ )
7420
+ http_profile = HttpProfile(
7421
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7422
+ reqMethod="POST",
7423
+ endpoint=g_param[OptionsDefine.Endpoint],
7424
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7425
+ )
7426
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7427
+ if g_param[OptionsDefine.Language]:
7428
+ profile.language = g_param[OptionsDefine.Language]
7429
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7430
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
7431
+ client._sdkVersion += ("_CLI_" + __version__)
7432
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7433
+ model = models.DescribeTasksForCodeTemplateRequest()
7434
+ model.from_json_string(json.dumps(args))
7435
+ start_time = time.time()
7436
+ while True:
7437
+ rsp = client.DescribeTasksForCodeTemplate(model)
7438
+ result = rsp.to_json_string()
7439
+ try:
7440
+ json_obj = json.loads(result)
7441
+ except TypeError as e:
7442
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7443
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7444
+ break
7445
+ cur_time = time.time()
7446
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7447
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7448
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7449
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7450
+ else:
7451
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7452
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7453
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7454
+
7455
+
7144
7456
  def doRunTasksByMultiWorkflow(args, parsed_globals):
7145
7457
  g_param = parse_global_arg(parsed_globals)
7146
7458
 
@@ -12601,6 +12913,58 @@ def doDescribeRuleTemplates(args, parsed_globals):
12601
12913
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12602
12914
 
12603
12915
 
12916
+ def doUpdateCodeTemplate(args, parsed_globals):
12917
+ g_param = parse_global_arg(parsed_globals)
12918
+
12919
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
12920
+ cred = credential.CVMRoleCredential()
12921
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
12922
+ cred = credential.STSAssumeRoleCredential(
12923
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
12924
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
12925
+ )
12926
+ 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):
12927
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
12928
+ else:
12929
+ cred = credential.Credential(
12930
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
12931
+ )
12932
+ http_profile = HttpProfile(
12933
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
12934
+ reqMethod="POST",
12935
+ endpoint=g_param[OptionsDefine.Endpoint],
12936
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
12937
+ )
12938
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
12939
+ if g_param[OptionsDefine.Language]:
12940
+ profile.language = g_param[OptionsDefine.Language]
12941
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
12942
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
12943
+ client._sdkVersion += ("_CLI_" + __version__)
12944
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
12945
+ model = models.UpdateCodeTemplateRequest()
12946
+ model.from_json_string(json.dumps(args))
12947
+ start_time = time.time()
12948
+ while True:
12949
+ rsp = client.UpdateCodeTemplate(model)
12950
+ result = rsp.to_json_string()
12951
+ try:
12952
+ json_obj = json.loads(result)
12953
+ except TypeError as e:
12954
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
12955
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
12956
+ break
12957
+ cur_time = time.time()
12958
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
12959
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
12960
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
12961
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
12962
+ else:
12963
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
12964
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
12965
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12966
+
12967
+
12604
12968
  def doSuspendIntegrationTask(args, parsed_globals):
12605
12969
  g_param = parse_global_arg(parsed_globals)
12606
12970
 
@@ -13398,6 +13762,7 @@ ACTION_MAP = {
13398
13762
  "DeleteIntegrationTask": doDeleteIntegrationTask,
13399
13763
  "KillScheduleInstances": doKillScheduleInstances,
13400
13764
  "GetFileInfo": doGetFileInfo,
13765
+ "ReportTaskLineage": doReportTaskLineage,
13401
13766
  "DescribeTaskTableMetricOverview": doDescribeTaskTableMetricOverview,
13402
13767
  "DescribeRealTimeTaskMetricOverview": doDescribeRealTimeTaskMetricOverview,
13403
13768
  "DescribeScheduleInstances": doDescribeScheduleInstances,
@@ -13419,6 +13784,7 @@ ACTION_MAP = {
13419
13784
  "DescribeTaskByCycle": doDescribeTaskByCycle,
13420
13785
  "DescribeInstanceLogFile": doDescribeInstanceLogFile,
13421
13786
  "DescribeFieldBasicInfo": doDescribeFieldBasicInfo,
13787
+ "DeleteCodeTemplate": doDeleteCodeTemplate,
13422
13788
  "RemoveWorkflowDs": doRemoveWorkflowDs,
13423
13789
  "DescribeThirdTaskRunLog": doDescribeThirdTaskRunLog,
13424
13790
  "DescribeDsParentFolderTree": doDescribeDsParentFolderTree,
@@ -13430,7 +13796,9 @@ ACTION_MAP = {
13430
13796
  "DescribeExecStrategy": doDescribeExecStrategy,
13431
13797
  "UnlockIntegrationTask": doUnlockIntegrationTask,
13432
13798
  "BatchStopIntegrationTasks": doBatchStopIntegrationTasks,
13799
+ "CreateCodeTemplateVersion": doCreateCodeTemplateVersion,
13433
13800
  "DescribeSchedulerTaskTypeCnt": doDescribeSchedulerTaskTypeCnt,
13801
+ "CreateCodeTemplate": doCreateCodeTemplate,
13434
13802
  "DeleteProjectParamDs": doDeleteProjectParamDs,
13435
13803
  "MoveTasksToFolder": doMoveTasksToFolder,
13436
13804
  "DescribeWorkflowListByProjectId": doDescribeWorkflowListByProjectId,
@@ -13474,6 +13842,7 @@ ACTION_MAP = {
13474
13842
  "KillOpsMakePlanInstances": doKillOpsMakePlanInstances,
13475
13843
  "DescribeDataSourceList": doDescribeDataSourceList,
13476
13844
  "SetTaskAlarmNew": doSetTaskAlarmNew,
13845
+ "DescribeFormVersionParam": doDescribeFormVersionParam,
13477
13846
  "TriggerDsEvent": doTriggerDsEvent,
13478
13847
  "DescribeSchedulerRunTimeInstanceCntByStatus": doDescribeSchedulerRunTimeInstanceCntByStatus,
13479
13848
  "CreateOfflineTask": doCreateOfflineTask,
@@ -13529,6 +13898,7 @@ ACTION_MAP = {
13529
13898
  "DescribeTaskLineage": doDescribeTaskLineage,
13530
13899
  "DescribeResourceManagePathTrees": doDescribeResourceManagePathTrees,
13531
13900
  "BatchForceSuccessIntegrationTaskInstances": doBatchForceSuccessIntegrationTaskInstances,
13901
+ "DescribeTasksForCodeTemplate": doDescribeTasksForCodeTemplate,
13532
13902
  "RunTasksByMultiWorkflow": doRunTasksByMultiWorkflow,
13533
13903
  "DescribeRuleDimStat": doDescribeRuleDimStat,
13534
13904
  "DescribeRuleGroupSubscription": doDescribeRuleGroupSubscription,
@@ -13634,6 +14004,7 @@ ACTION_MAP = {
13634
14004
  "UpdateProjectUserRole": doUpdateProjectUserRole,
13635
14005
  "TaskLog": doTaskLog,
13636
14006
  "DescribeRuleTemplates": doDescribeRuleTemplates,
14007
+ "UpdateCodeTemplate": doUpdateCodeTemplate,
13637
14008
  "SuspendIntegrationTask": doSuspendIntegrationTask,
13638
14009
  "LockIntegrationTask": doLockIntegrationTask,
13639
14010
  "BatchDeleteOpsTasks": doBatchDeleteOpsTasks,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1309.1
3
+ Version: 3.0.1311.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.1309
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1311
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介