tccli 3.0.1033.1__py2.py3-none-any.whl → 3.0.1035.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 (60) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cwp/v20180228/SyncBaselineDetectSummary.md +28 -0
  3. tccli/examples/dnspod/v20210323/DescribeRecordList.md +4 -2
  4. tccli/examples/ess/v20201111/ModifyExtendedService.md +79 -0
  5. tccli/examples/oceanus/v20190422/CreateFolder.md +3 -50
  6. tccli/examples/oceanus/v20190422/DescribeWorkSpaces.md +6 -3
  7. tccli/examples/oceanus/v20190422/GetMetaTable.md +29 -0
  8. tccli/examples/omics/v20221128/RetryRuns.md +50 -4
  9. tccli/examples/tcss/v20201101/DescribeAssetHostList.md +3 -1
  10. tccli/examples/trp/v20210515/DescribeProducts.md +6 -3
  11. tccli/examples/tse/v20201207/CreateCloudNativeAPIGatewayPublicNetwork.md +26 -0
  12. tccli/examples/tse/v20201207/DeleteCloudNativeAPIGatewayPublicNetwork.md +23 -0
  13. tccli/examples/tse/v20201207/ModifyConsoleNetwork.md +22 -0
  14. tccli/examples/tse/v20201207/ModifyNetworkAccessStrategy.md +26 -0
  15. tccli/examples/tse/v20201207/ModifyNetworkBasicInfo.md +25 -0
  16. tccli/examples/tsf/v20180326/ContinueRunFailedTaskBatch.md +2 -1
  17. tccli/examples/wedata/v20210820/DescribeFieldBasicInfo.md +103 -0
  18. tccli/examples/wedata/v20210820/DescribeTableBasicInfo.md +93 -0
  19. tccli/examples/wedata/v20210820/DescribeTableLineageInfo.md +135 -0
  20. tccli/services/aiart/v20221229/api.json +2 -2
  21. tccli/services/cat/v20180409/api.json +3 -3
  22. tccli/services/cfw/v20190904/api.json +7 -7
  23. tccli/services/csip/v20221121/api.json +8 -8
  24. tccli/services/cwp/v20180228/api.json +22 -12
  25. tccli/services/cwp/v20180228/examples.json +6 -0
  26. tccli/services/dbbrain/v20191016/api.json +3 -1
  27. tccli/services/dnspod/v20210323/api.json +5 -3
  28. tccli/services/dnspod/v20210323/examples.json +1 -1
  29. tccli/services/ess/ess_client.py +53 -0
  30. tccli/services/ess/v20201111/api.json +99 -19
  31. tccli/services/ess/v20201111/examples.json +20 -0
  32. tccli/services/essbasic/v20210526/api.json +18 -18
  33. tccli/services/ivld/v20210903/api.json +3 -3
  34. tccli/services/oceanus/oceanus_client.py +53 -0
  35. tccli/services/oceanus/v20190422/api.json +124 -1
  36. tccli/services/oceanus/v20190422/examples.json +11 -15
  37. tccli/services/omics/v20221128/api.json +41 -4
  38. tccli/services/omics/v20221128/examples.json +16 -4
  39. tccli/services/scf/v20180416/api.json +11 -2
  40. tccli/services/ssm/v20190923/api.json +6 -2
  41. tccli/services/tcss/v20201101/api.json +35 -5
  42. tccli/services/tcss/v20201101/examples.json +1 -1
  43. tccli/services/teo/v20220901/api.json +5 -5
  44. tccli/services/tiw/v20190919/api.json +21 -2
  45. tccli/services/trp/v20210515/api.json +63 -5
  46. tccli/services/trp/v20210515/examples.json +2 -2
  47. tccli/services/tse/tse_client.py +281 -16
  48. tccli/services/tse/v20201207/api.json +323 -0
  49. tccli/services/tse/v20201207/examples.json +40 -0
  50. tccli/services/tsf/v20180326/api.json +41 -30
  51. tccli/services/tsf/v20180326/examples.json +1 -1
  52. tccli/services/vod/v20180717/api.json +19 -6
  53. tccli/services/wedata/v20210820/api.json +1018 -80
  54. tccli/services/wedata/v20210820/examples.json +54 -0
  55. tccli/services/wedata/wedata_client.py +167 -8
  56. {tccli-3.0.1033.1.dist-info → tccli-3.0.1035.1.dist-info}/METADATA +2 -2
  57. {tccli-3.0.1033.1.dist-info → tccli-3.0.1035.1.dist-info}/RECORD +60 -50
  58. {tccli-3.0.1033.1.dist-info → tccli-3.0.1035.1.dist-info}/WHEEL +0 -0
  59. {tccli-3.0.1033.1.dist-info → tccli-3.0.1035.1.dist-info}/entry_points.txt +0 -0
  60. {tccli-3.0.1033.1.dist-info → tccli-3.0.1035.1.dist-info}/license_files/LICENSE +0 -0
@@ -1048,6 +1048,26 @@
1048
1048
  "title": "test"
1049
1049
  }
1050
1050
  ],
1051
+ "DescribeFieldBasicInfo": [
1052
+ {
1053
+ "document": "1",
1054
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFieldBasicInfo\n<公共请求参数>\n\n{\n \"PageNumber\": 0,\n \"PageSize\": 0,\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ]\n }\n ],\n \"OrderFields\": [\n {\n \"Name\": \"abc\",\n \"Direction\": \"abc\"\n }\n ]\n}",
1055
+ "output": "{\n \"Response\": {\n \"ColumnBasicInfoList\": [\n {\n \"TableId\": \"abc\",\n \"DatasourceId\": \"abc\",\n \"DatasourceName\": \"abc\",\n \"DatabaseId\": \"abc\",\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"ColumnName\": \"abc\",\n \"DataType\": \"abc\",\n \"ColumnType\": \"abc\",\n \"ColumnDefault\": \"abc\",\n \"ColumnKey\": \"abc\",\n \"ColumnPosition\": 0,\n \"ColumnComment\": \"abc\",\n \"StoreType\": \"abc\",\n \"ProjectId\": \"abc\",\n \"ProjectName\": \"abc\",\n \"ProjectDisplayName\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"abc\"\n }\n}",
1056
+ "title": "1"
1057
+ },
1058
+ {
1059
+ "document": "错误1",
1060
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFieldBasicInfo\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 1,\n \"Filters\": [\n {\n \"Name\": \"1\",\n \"Values\": [\n \"1\"\n ]\n }\n ]\n}",
1061
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError\",\n \"Message\": \"内部服务错误,请稍后重试。\"\n },\n \"RequestId\": \"76e7bf2b-c516-4a4c-97ba-f0b788097c1f\"\n }\n}",
1062
+ "title": "错误1"
1063
+ },
1064
+ {
1065
+ "document": "错误2",
1066
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFieldBasicInfo\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 1,\n \"Filters\": [\n {\n \"Name\": \"1\",\n \"Values\": [\n \"1\"\n ]\n }\n ]\n}",
1067
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError\",\n \"Message\": \"内部服务错误,请稍后重试。\"\n },\n \"RequestId\": \"235a9ac1-1037-4f8a-befe-9765a29480cd\"\n }\n}",
1068
+ "title": "错误2"
1069
+ }
1070
+ ],
1051
1071
  "DescribeFolderList": [
1052
1072
  {
1053
1073
  "document": "",
@@ -1800,6 +1820,20 @@
1800
1820
  "title": "获取下游任务信息"
1801
1821
  }
1802
1822
  ],
1823
+ "DescribeTableBasicInfo": [
1824
+ {
1825
+ "document": "1",
1826
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableBasicInfo\n<公共请求参数>\n\n{\n \"PageNumber\": 0,\n \"PageSize\": 0,\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ]\n }\n ],\n \"OrderFields\": [\n {\n \"Name\": \"abc\",\n \"Direction\": \"abc\"\n }\n ]\n}",
1827
+ "output": "{\n \"Response\": {\n \"TableBasicInfoList\": [\n {\n \"TableId\": \"abc\",\n \"DatasourceId\": \"abc\",\n \"DatasourceName\": \"abc\",\n \"DatabaseId\": \"abc\",\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"EngineType\": \"abc\",\n \"TableType\": \"abc\",\n \"ProjectId\": \"abc\",\n \"ProjectName\": \"abc\",\n \"ProjectDisplayName\": \"abc\",\n \"TableOwnerId\": \"abc\",\n \"TableOwnerName\": \"abc\",\n \"StorageLocation\": 0,\n \"Description\": \"abc\",\n \"IsPartitionTable\": 0,\n \"PartitionColumns\": [\n \"abc\"\n ],\n \"StorageFormat\": \"abc\",\n \"StorageSize\": 1,\n \"StorageSizeWithUnit\": \"abc\",\n \"TotalSizeMb\": 1,\n \"ReplicaCount\": 0,\n \"FileCount\": [\n 0\n ],\n \"PartitionCount\": [\n 0\n ],\n \"PartitionFieldCount\": 0,\n \"PartitionExpireDays\": 0,\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"abc\"\n }\n}",
1828
+ "title": "1"
1829
+ },
1830
+ {
1831
+ "document": "错误1",
1832
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableBasicInfo\n<公共请求参数>\n\n{\n \"PageNumber\": 1,\n \"PageSize\": 1,\n \"Filters\": [\n {\n \"Name\": \"1\",\n \"Values\": [\n \"1\"\n ]\n }\n ],\n \"OrderFields\": [\n {\n \"Name\": \"1\",\n \"Direction\": \"1\"\n }\n ]\n}",
1833
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError\",\n \"Message\": \"内部服务错误,请稍后重试。\"\n },\n \"RequestId\": \"8ded1268-1ffe-4d7c-af37-6d5eeb9868a4\"\n }\n}",
1834
+ "title": "错误1"
1835
+ }
1836
+ ],
1803
1837
  "DescribeTableInfoList": [
1804
1838
  {
1805
1839
  "document": "",
@@ -1822,6 +1856,26 @@
1822
1856
  "title": "表血缘信息"
1823
1857
  }
1824
1858
  ],
1859
+ "DescribeTableLineageInfo": [
1860
+ {
1861
+ "document": "1",
1862
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableLineageInfo\n<公共请求参数>\n\n{\n \"Direction\": \"abc\",\n \"InputDepth\": 0,\n \"OutputDepth\": 0,\n \"ExtParams\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"Data\": {\n \"ProjectId\": \"abc\",\n \"DatasourceId\": \"abc\",\n \"TableId\": \"abc\",\n \"Params\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"ParentSet\": \"abc\",\n \"ChildSet\": \"abc\",\n \"ExtParams\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"Id\": \"abc\",\n \"MetastoreType\": \"abc\",\n \"MetastoreTypeName\": \"abc\",\n \"TableName\": \"abc\",\n \"QualifiedName\": \"abc\",\n \"DownStreamCount\": 0,\n \"UpStreamCount\": 0,\n \"Description\": \"abc\",\n \"PrefixPath\": \"abc\",\n \"CreateTime\": \"abc\",\n \"ModifyTime\": \"abc\",\n \"Tasks\": [\n \"abc\"\n ]\n },\n \"IgnoreTemp\": true,\n \"RecursiveSecond\": true\n}",
1863
+ "output": "{\n \"Response\": {\n \"TableLineageBasicInfo\": {\n \"ProjectId\": \"abc\",\n \"DatasourceId\": \"abc\",\n \"TableId\": \"abc\",\n \"Params\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"ParentSet\": \"abc\",\n \"ChildSet\": \"abc\",\n \"ExtParams\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"Id\": \"abc\",\n \"MetastoreType\": \"abc\",\n \"MetastoreTypeName\": \"abc\",\n \"TableName\": \"abc\",\n \"QualifiedName\": \"abc\",\n \"DownStreamCount\": 0,\n \"UpStreamCount\": 0,\n \"Description\": \"abc\",\n \"PrefixPath\": \"abc\",\n \"CreateTime\": \"abc\",\n \"ModifyTime\": \"abc\",\n \"Tasks\": [\n \"abc\"\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
1864
+ "title": "1"
1865
+ },
1866
+ {
1867
+ "document": "错误1",
1868
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableLineageInfo\n<公共请求参数>\n\n{\n \"Direction\": \"1\",\n \"InputDepth\": 1,\n \"OutputDepth\": 1,\n \"Data\": {\n \"ProjectId\": \"1\"\n }\n}",
1869
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError\",\n \"Message\": \"内部服务错误,请稍后重试。\"\n },\n \"RequestId\": \"ca8fa3de-0024-4054-a5db-4919705ee8ee\"\n }\n}",
1870
+ "title": "错误1"
1871
+ },
1872
+ {
1873
+ "document": "错误2",
1874
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableLineageInfo\n<公共请求参数>\n\n{\n \"Direction\": \"1\",\n \"InputDepth\": 1,\n \"OutputDepth\": 1,\n \"ExtParams\": [\n {\n \"Name\": \"1\"\n }\n ],\n \"Data\": {\n \"ProjectId\": \"1\"\n }\n}",
1875
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError\",\n \"Message\": \"内部服务错误,请稍后重试。\"\n },\n \"RequestId\": \"079c4b23-fd76-4e91-b366-dc0c0a76c032\"\n }\n}",
1876
+ "title": "错误2"
1877
+ }
1878
+ ],
1825
1879
  "DescribeTableMeta": [
1826
1880
  {
1827
1881
  "document": "",
@@ -1785,7 +1785,7 @@ def doSubmitWorkflow(args, parsed_globals):
1785
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1786
 
1787
1787
 
1788
- def doCountOpsInstanceState(args, parsed_globals):
1788
+ def doDescribeFieldBasicInfo(args, parsed_globals):
1789
1789
  g_param = parse_global_arg(parsed_globals)
1790
1790
 
1791
1791
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1814,11 +1814,11 @@ def doCountOpsInstanceState(args, parsed_globals):
1814
1814
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
1815
1815
  client._sdkVersion += ("_CLI_" + __version__)
1816
1816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
- model = models.CountOpsInstanceStateRequest()
1817
+ model = models.DescribeFieldBasicInfoRequest()
1818
1818
  model.from_json_string(json.dumps(args))
1819
1819
  start_time = time.time()
1820
1820
  while True:
1821
- rsp = client.CountOpsInstanceState(model)
1821
+ rsp = client.DescribeFieldBasicInfo(model)
1822
1822
  result = rsp.to_json_string()
1823
1823
  try:
1824
1824
  json_obj = json.loads(result)
@@ -9793,6 +9793,58 @@ def doDescribeRulesByPage(args, parsed_globals):
9793
9793
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9794
9794
 
9795
9795
 
9796
+ def doCountOpsInstanceState(args, parsed_globals):
9797
+ g_param = parse_global_arg(parsed_globals)
9798
+
9799
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9800
+ cred = credential.CVMRoleCredential()
9801
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9802
+ cred = credential.STSAssumeRoleCredential(
9803
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9804
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
9805
+ )
9806
+ 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):
9807
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9808
+ else:
9809
+ cred = credential.Credential(
9810
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9811
+ )
9812
+ http_profile = HttpProfile(
9813
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9814
+ reqMethod="POST",
9815
+ endpoint=g_param[OptionsDefine.Endpoint],
9816
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9817
+ )
9818
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9819
+ if g_param[OptionsDefine.Language]:
9820
+ profile.language = g_param[OptionsDefine.Language]
9821
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9822
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
9823
+ client._sdkVersion += ("_CLI_" + __version__)
9824
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9825
+ model = models.CountOpsInstanceStateRequest()
9826
+ model.from_json_string(json.dumps(args))
9827
+ start_time = time.time()
9828
+ while True:
9829
+ rsp = client.CountOpsInstanceState(model)
9830
+ result = rsp.to_json_string()
9831
+ try:
9832
+ json_obj = json.loads(result)
9833
+ except TypeError as e:
9834
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9835
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9836
+ break
9837
+ cur_time = time.time()
9838
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9839
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9840
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9841
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9842
+ else:
9843
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9844
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9845
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9846
+
9847
+
9796
9848
  def doModifyMonitorStatus(args, parsed_globals):
9797
9849
  g_param = parse_global_arg(parsed_globals)
9798
9850
 
@@ -12133,7 +12185,7 @@ def doBatchDeleteIntegrationTasks(args, parsed_globals):
12133
12185
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12134
12186
 
12135
12187
 
12136
- def doDescribeTableMeta(args, parsed_globals):
12188
+ def doDescribeTableBasicInfo(args, parsed_globals):
12137
12189
  g_param = parse_global_arg(parsed_globals)
12138
12190
 
12139
12191
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12162,11 +12214,11 @@ def doDescribeTableMeta(args, parsed_globals):
12162
12214
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
12163
12215
  client._sdkVersion += ("_CLI_" + __version__)
12164
12216
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12165
- model = models.DescribeTableMetaRequest()
12217
+ model = models.DescribeTableBasicInfoRequest()
12166
12218
  model.from_json_string(json.dumps(args))
12167
12219
  start_time = time.time()
12168
12220
  while True:
12169
- rsp = client.DescribeTableMeta(model)
12221
+ rsp = client.DescribeTableBasicInfo(model)
12170
12222
  result = rsp.to_json_string()
12171
12223
  try:
12172
12224
  json_obj = json.loads(result)
@@ -15617,6 +15669,58 @@ def doLockIntegrationTask(args, parsed_globals):
15617
15669
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
15618
15670
 
15619
15671
 
15672
+ def doDescribeTableMeta(args, parsed_globals):
15673
+ g_param = parse_global_arg(parsed_globals)
15674
+
15675
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
15676
+ cred = credential.CVMRoleCredential()
15677
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
15678
+ cred = credential.STSAssumeRoleCredential(
15679
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
15680
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
15681
+ )
15682
+ 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):
15683
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
15684
+ else:
15685
+ cred = credential.Credential(
15686
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
15687
+ )
15688
+ http_profile = HttpProfile(
15689
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
15690
+ reqMethod="POST",
15691
+ endpoint=g_param[OptionsDefine.Endpoint],
15692
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
15693
+ )
15694
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
15695
+ if g_param[OptionsDefine.Language]:
15696
+ profile.language = g_param[OptionsDefine.Language]
15697
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
15698
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
15699
+ client._sdkVersion += ("_CLI_" + __version__)
15700
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
15701
+ model = models.DescribeTableMetaRequest()
15702
+ model.from_json_string(json.dumps(args))
15703
+ start_time = time.time()
15704
+ while True:
15705
+ rsp = client.DescribeTableMeta(model)
15706
+ result = rsp.to_json_string()
15707
+ try:
15708
+ json_obj = json.loads(result)
15709
+ except TypeError as e:
15710
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
15711
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
15712
+ break
15713
+ cur_time = time.time()
15714
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
15715
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
15716
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
15717
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
15718
+ else:
15719
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
15720
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
15721
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
15722
+
15723
+
15620
15724
  def doDescribeKafkaTopicInfo(args, parsed_globals):
15621
15725
  g_param = parse_global_arg(parsed_globals)
15622
15726
 
@@ -15877,6 +15981,58 @@ def doRunTask(args, parsed_globals):
15877
15981
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
15878
15982
 
15879
15983
 
15984
+ def doDescribeTableLineageInfo(args, parsed_globals):
15985
+ g_param = parse_global_arg(parsed_globals)
15986
+
15987
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
15988
+ cred = credential.CVMRoleCredential()
15989
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
15990
+ cred = credential.STSAssumeRoleCredential(
15991
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
15992
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
15993
+ )
15994
+ 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):
15995
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
15996
+ else:
15997
+ cred = credential.Credential(
15998
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
15999
+ )
16000
+ http_profile = HttpProfile(
16001
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
16002
+ reqMethod="POST",
16003
+ endpoint=g_param[OptionsDefine.Endpoint],
16004
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
16005
+ )
16006
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
16007
+ if g_param[OptionsDefine.Language]:
16008
+ profile.language = g_param[OptionsDefine.Language]
16009
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
16010
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
16011
+ client._sdkVersion += ("_CLI_" + __version__)
16012
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
16013
+ model = models.DescribeTableLineageInfoRequest()
16014
+ model.from_json_string(json.dumps(args))
16015
+ start_time = time.time()
16016
+ while True:
16017
+ rsp = client.DescribeTableLineageInfo(model)
16018
+ result = rsp.to_json_string()
16019
+ try:
16020
+ json_obj = json.loads(result)
16021
+ except TypeError as e:
16022
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
16023
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
16024
+ break
16025
+ cur_time = time.time()
16026
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
16027
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
16028
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
16029
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
16030
+ else:
16031
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
16032
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
16033
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
16034
+
16035
+
15880
16036
  def doSubmitCustomFunction(args, parsed_globals):
15881
16037
  g_param = parse_global_arg(parsed_globals)
15882
16038
 
@@ -16442,7 +16598,7 @@ ACTION_MAP = {
16442
16598
  "DescribeTaskByCycle": doDescribeTaskByCycle,
16443
16599
  "DescribeInstanceLogFile": doDescribeInstanceLogFile,
16444
16600
  "SubmitWorkflow": doSubmitWorkflow,
16445
- "CountOpsInstanceState": doCountOpsInstanceState,
16601
+ "DescribeFieldBasicInfo": doDescribeFieldBasicInfo,
16446
16602
  "DescribeBaselineInstanceGantt": doDescribeBaselineInstanceGantt,
16447
16603
  "RemoveWorkflowDs": doRemoveWorkflowDs,
16448
16604
  "DescribeThirdTaskRunLog": doDescribeThirdTaskRunLog,
@@ -16596,6 +16752,7 @@ ACTION_MAP = {
16596
16752
  "CheckIntegrationTaskNameExists": doCheckIntegrationTaskNameExists,
16597
16753
  "DescribeDataTypes": doDescribeDataTypes,
16598
16754
  "DescribeRulesByPage": doDescribeRulesByPage,
16755
+ "CountOpsInstanceState": doCountOpsInstanceState,
16599
16756
  "ModifyMonitorStatus": doModifyMonitorStatus,
16600
16757
  "DescribeTableMetas": doDescribeTableMetas,
16601
16758
  "DescribeAllTaskType": doDescribeAllTaskType,
@@ -16641,7 +16798,7 @@ ACTION_MAP = {
16641
16798
  "CheckDuplicateTemplateName": doCheckDuplicateTemplateName,
16642
16799
  "DescribeQualityScoreTrend": doDescribeQualityScoreTrend,
16643
16800
  "BatchDeleteIntegrationTasks": doBatchDeleteIntegrationTasks,
16644
- "DescribeTableMeta": doDescribeTableMeta,
16801
+ "DescribeTableBasicInfo": doDescribeTableBasicInfo,
16645
16802
  "ModifyTaskScript": doModifyTaskScript,
16646
16803
  "DescribeColumnLineage": doDescribeColumnLineage,
16647
16804
  "DescribeTableInfoList": doDescribeTableInfoList,
@@ -16708,11 +16865,13 @@ ACTION_MAP = {
16708
16865
  "GetOfflineDIInstanceList": doGetOfflineDIInstanceList,
16709
16866
  "DeleteResourceFile": doDeleteResourceFile,
16710
16867
  "LockIntegrationTask": doLockIntegrationTask,
16868
+ "DescribeTableMeta": doDescribeTableMeta,
16711
16869
  "DescribeKafkaTopicInfo": doDescribeKafkaTopicInfo,
16712
16870
  "GetIntegrationNodeColumnSchema": doGetIntegrationNodeColumnSchema,
16713
16871
  "DescribeOpsWorkflows": doDescribeOpsWorkflows,
16714
16872
  "ModifyBaselineAlarmStatus": doModifyBaselineAlarmStatus,
16715
16873
  "RunTask": doRunTask,
16874
+ "DescribeTableLineageInfo": doDescribeTableLineageInfo,
16716
16875
  "SubmitCustomFunction": doSubmitCustomFunction,
16717
16876
  "DescribeWorkflowCanvasInfo": doDescribeWorkflowCanvasInfo,
16718
16877
  "DescribeIntegrationStatistics": doDescribeIntegrationStatistics,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1033.1
3
+ Version: 3.0.1035.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.1033
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1035
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介