tccli 3.0.997.1__py2.py3-none-any.whl → 3.0.999.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 (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cynosdb/v20190107/DescribeClusterDatabases.md +24 -0
  3. tccli/examples/essbasic/v20210526/ChannelDeleteSealPolicies.md +10 -7
  4. tccli/examples/essbasic/v20210526/ChannelDescribeOrganizationSeals.md +6 -5
  5. tccli/examples/essbasic/v20210526/ChannelDescribeRoles.md +669 -447
  6. tccli/examples/essbasic/v20210526/ChannelUpdateSealStatus.md +6 -3
  7. tccli/examples/faceid/v20180301/DetectAIFakeFaces.md +52 -0
  8. tccli/examples/monitor/v20180724/ModifyAlarmPolicyCondition.md +77 -0
  9. tccli/examples/sqlserver/v20180328/CreateAccount.md +1 -1
  10. tccli/examples/sqlserver/v20180328/ModifyAccountPrivilege.md +1 -1
  11. tccli/examples/sqlserver/v20180328/RestartDBInstance.md +1 -1
  12. tccli/examples/sqlserver/v20180328/StartInstanceXEvent.md +1 -1
  13. tccli/examples/waf/v20180125/DescribeCCAutoStatus.md +21 -0
  14. tccli/examples/waf/v20180125/DescribeCCRuleList.md +59 -1
  15. tccli/examples/waf/v20180125/UpsertCCAutoStatus.md +22 -0
  16. tccli/examples/wedata/v20210820/DescribeTableMetas.md +90 -0
  17. tccli/examples/weilingwith/v20230427/DescribeApplicationList.md +48 -2
  18. tccli/examples/weilingwith/v20230427/DescribeDeviceShadowList.md +21 -2
  19. tccli/examples/weilingwith/v20230427/DescribeVideoRecordStream.md +9 -1
  20. tccli/services/cdb/v20170320/api.json +2 -2
  21. tccli/services/cynosdb/cynosdb_client.py +53 -0
  22. tccli/services/cynosdb/v20190107/api.json +92 -0
  23. tccli/services/cynosdb/v20190107/examples.json +8 -0
  24. tccli/services/ess/v20201111/api.json +1 -1
  25. tccli/services/essbasic/v20210526/api.json +31 -22
  26. tccli/services/essbasic/v20210526/examples.json +12 -12
  27. tccli/services/faceid/faceid_client.py +53 -0
  28. tccli/services/faceid/v20180301/api.json +79 -0
  29. tccli/services/faceid/v20180301/examples.json +14 -0
  30. tccli/services/gaap/v20180529/api.json +10 -0
  31. tccli/services/live/v20180801/api.json +18 -0
  32. tccli/services/monitor/v20180724/api.json +11 -7
  33. tccli/services/monitor/v20180724/examples.json +6 -0
  34. tccli/services/ocr/v20181119/api.json +76 -0
  35. tccli/services/omics/v20221128/api.json +151 -23
  36. tccli/services/sqlserver/v20180328/api.json +9 -9
  37. tccli/services/sqlserver/v20180328/examples.json +4 -4
  38. tccli/services/teo/v20220901/api.json +14 -3
  39. tccli/services/vrs/v20200824/api.json +1 -1
  40. tccli/services/waf/v20180125/api.json +298 -67
  41. tccli/services/waf/v20180125/examples.json +18 -10
  42. tccli/services/waf/waf_client.py +75 -22
  43. tccli/services/wedata/v20210820/api.json +825 -0
  44. tccli/services/wedata/v20210820/examples.json +8 -0
  45. tccli/services/wedata/wedata_client.py +69 -16
  46. tccli/services/weilingwith/v20230427/api.json +490 -40
  47. tccli/services/weilingwith/v20230427/examples.json +5 -5
  48. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/RECORD +52 -47
  50. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/license_files/LICENSE +0 -0
@@ -1740,6 +1740,14 @@
1740
1740
  "title": "表血缘信息"
1741
1741
  }
1742
1742
  ],
1743
+ "DescribeTableMetas": [
1744
+ {
1745
+ "document": "",
1746
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableMetas\n<公共请求参数>\n\n{\n \"OrderFields\": [\n {\n \"Direction\": \"xx\",\n \"Name\": \"xx\"\n }\n ],\n \"PageNumber\": 0,\n \"Filters\": [\n {\n \"Values\": [\n \"\"\n ],\n \"Name\": \"xx\"\n }\n ],\n \"PageSize\": 0\n}",
1747
+ "output": "{\n \"Response\": {\n \"TableMetas\": [\n {\n \"ClusterId\": \"xx\",\n \"TableHeat\": {\n \"Heat\": 0.0,\n \"TableId\": \"xx\",\n \"DayTime\": \"2020-09-22T00:00:00+00:00\"\n },\n \"DatabaseId\": \"xx\",\n \"HasFavorite\": true,\n \"ProjectDisplayName\": \"xx\",\n \"StorageSizeWithUnit\": \"xx\",\n \"TableId\": \"xx\",\n \"BizCatalogNames\": [\n \"xx\"\n ],\n \"TablePath\": \"xx\",\n \"LikeCount\": 0,\n \"TableNameCn\": \"xx\",\n \"DdlModifyTime\": \"2020-09-22T00:00:00+00:00\",\n \"Description\": \"xx\",\n \"InstanceId\": \"xx\",\n \"TableName\": \"xx\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"LifeCycleTime\": 0,\n \"MetastoreId\": 0,\n \"DataModifyTime\": \"2020-09-22T00:00:00+00:00\",\n \"TablePropertyScore\": {\n \"Timeliness\": 0.0,\n \"Average\": 0.0,\n \"DayTime\": \"2020-09-22T00:00:00+00:00\",\n \"Normative\": 0.0,\n \"Stability\": 0.0,\n \"TableId\": \"xx\",\n \"Safety\": 0.0,\n \"Integrity\": 0.0\n },\n \"Partitions\": \"xx\",\n \"ReplicationFactor\": \"xx\",\n \"DatasourceName\": \"xx\",\n \"StorageFormat\": \"xx\",\n \"TechnologyType\": \"xx\",\n \"ProjectId\": \"xx\",\n \"BizCatalogIds\": [\n \"xx\"\n ],\n \"ColumnSeparator\": \"xx\",\n \"DatasourceId\": 0,\n \"HasAdminAuthority\": true,\n \"TableOwnerName\": \"xx\",\n \"ModifyTime\": \"2020-09-22T00:00:00+00:00\",\n \"TableNameEn\": \"xx\",\n \"FavoriteCount\": 0,\n \"TableType\": \"xx\",\n \"DatasourceDisplayName\": \"xx\",\n \"ClusterName\": \"xx\",\n \"ProjectName\": \"xx\",\n \"HasLike\": true,\n \"MetastoreType\": \"xx\",\n \"DatabaseName\": \"xx\",\n \"StorageSize\": 0,\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\"\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"xx\"\n }\n}",
1748
+ "title": "获取表元数据list"
1749
+ }
1750
+ ],
1743
1751
  "DescribeTableQualityDetails": [
1744
1752
  {
1745
1753
  "document": "分页查询表数据质量详情",
@@ -953,7 +953,7 @@ def doDescribeInLongAgentList(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
- def doDescribeWorkflowOpsCanvasInfo(args, parsed_globals):
956
+ def doKillInstances(args, parsed_globals):
957
957
  g_param = parse_global_arg(parsed_globals)
958
958
 
959
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -982,11 +982,11 @@ def doDescribeWorkflowOpsCanvasInfo(args, parsed_globals):
982
982
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
983
983
  client._sdkVersion += ("_CLI_" + __version__)
984
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
- model = models.DescribeWorkflowOpsCanvasInfoRequest()
985
+ model = models.KillInstancesRequest()
986
986
  model.from_json_string(json.dumps(args))
987
987
  start_time = time.time()
988
988
  while True:
989
- rsp = client.DescribeWorkflowOpsCanvasInfo(model)
989
+ rsp = client.KillInstances(model)
990
990
  result = rsp.to_json_string()
991
991
  try:
992
992
  json_obj = json.loads(result)
@@ -6621,7 +6621,7 @@ def doStopIntegrationTask(args, parsed_globals):
6621
6621
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6622
6622
 
6623
6623
 
6624
- def doKillInstances(args, parsed_globals):
6624
+ def doDescribeWorkflowOpsCanvasInfo(args, parsed_globals):
6625
6625
  g_param = parse_global_arg(parsed_globals)
6626
6626
 
6627
6627
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6650,11 +6650,11 @@ def doKillInstances(args, parsed_globals):
6650
6650
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
6651
6651
  client._sdkVersion += ("_CLI_" + __version__)
6652
6652
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6653
- model = models.KillInstancesRequest()
6653
+ model = models.DescribeWorkflowOpsCanvasInfoRequest()
6654
6654
  model.from_json_string(json.dumps(args))
6655
6655
  start_time = time.time()
6656
6656
  while True:
6657
- rsp = client.KillInstances(model)
6657
+ rsp = client.DescribeWorkflowOpsCanvasInfo(model)
6658
6658
  result = rsp.to_json_string()
6659
6659
  try:
6660
6660
  json_obj = json.loads(result)
@@ -9481,7 +9481,7 @@ def doModifyMonitorStatus(args, parsed_globals):
9481
9481
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9482
9482
 
9483
9483
 
9484
- def doDescribeInstancesInfoWithTaskInfo(args, parsed_globals):
9484
+ def doDescribeTableMetas(args, parsed_globals):
9485
9485
  g_param = parse_global_arg(parsed_globals)
9486
9486
 
9487
9487
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -9510,11 +9510,11 @@ def doDescribeInstancesInfoWithTaskInfo(args, parsed_globals):
9510
9510
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
9511
9511
  client._sdkVersion += ("_CLI_" + __version__)
9512
9512
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
9513
- model = models.DescribeInstancesInfoWithTaskInfoRequest()
9513
+ model = models.DescribeTableMetasRequest()
9514
9514
  model.from_json_string(json.dumps(args))
9515
9515
  start_time = time.time()
9516
9516
  while True:
9517
- rsp = client.DescribeInstancesInfoWithTaskInfo(model)
9517
+ rsp = client.DescribeTableMetas(model)
9518
9518
  result = rsp.to_json_string()
9519
9519
  try:
9520
9520
  json_obj = json.loads(result)
@@ -11509,6 +11509,58 @@ def doDeleteResourceFiles(args, parsed_globals):
11509
11509
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11510
11510
 
11511
11511
 
11512
+ def doCheckDuplicateTemplateName(args, parsed_globals):
11513
+ g_param = parse_global_arg(parsed_globals)
11514
+
11515
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
11516
+ cred = credential.CVMRoleCredential()
11517
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
11518
+ cred = credential.STSAssumeRoleCredential(
11519
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
11520
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
11521
+ )
11522
+ 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):
11523
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
11524
+ else:
11525
+ cred = credential.Credential(
11526
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
11527
+ )
11528
+ http_profile = HttpProfile(
11529
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
11530
+ reqMethod="POST",
11531
+ endpoint=g_param[OptionsDefine.Endpoint],
11532
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
11533
+ )
11534
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
11535
+ if g_param[OptionsDefine.Language]:
11536
+ profile.language = g_param[OptionsDefine.Language]
11537
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
11538
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
11539
+ client._sdkVersion += ("_CLI_" + __version__)
11540
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
11541
+ model = models.CheckDuplicateTemplateNameRequest()
11542
+ model.from_json_string(json.dumps(args))
11543
+ start_time = time.time()
11544
+ while True:
11545
+ rsp = client.CheckDuplicateTemplateName(model)
11546
+ result = rsp.to_json_string()
11547
+ try:
11548
+ json_obj = json.loads(result)
11549
+ except TypeError as e:
11550
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
11551
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
11552
+ break
11553
+ cur_time = time.time()
11554
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
11555
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
11556
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
11557
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
11558
+ else:
11559
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
11560
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
11561
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11562
+
11563
+
11512
11564
  def doSubmitWorkflow(args, parsed_globals):
11513
11565
  g_param = parse_global_arg(parsed_globals)
11514
11566
 
@@ -14109,7 +14161,7 @@ def doFindAllFolder(args, parsed_globals):
14109
14161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
14110
14162
 
14111
14163
 
14112
- def doCheckDuplicateTemplateName(args, parsed_globals):
14164
+ def doDescribeInstancesInfoWithTaskInfo(args, parsed_globals):
14113
14165
  g_param = parse_global_arg(parsed_globals)
14114
14166
 
14115
14167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -14138,11 +14190,11 @@ def doCheckDuplicateTemplateName(args, parsed_globals):
14138
14190
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
14139
14191
  client._sdkVersion += ("_CLI_" + __version__)
14140
14192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
14141
- model = models.CheckDuplicateTemplateNameRequest()
14193
+ model = models.DescribeInstancesInfoWithTaskInfoRequest()
14142
14194
  model.from_json_string(json.dumps(args))
14143
14195
  start_time = time.time()
14144
14196
  while True:
14145
- rsp = client.CheckDuplicateTemplateName(model)
14197
+ rsp = client.DescribeInstancesInfoWithTaskInfo(model)
14146
14198
  result = rsp.to_json_string()
14147
14199
  try:
14148
14200
  json_obj = json.loads(result)
@@ -15958,7 +16010,7 @@ ACTION_MAP = {
15958
16010
  "DescribeRuleExecResultsByPage": doDescribeRuleExecResultsByPage,
15959
16011
  "DescribeInLongAgentVpcList": doDescribeInLongAgentVpcList,
15960
16012
  "DescribeInLongAgentList": doDescribeInLongAgentList,
15961
- "DescribeWorkflowOpsCanvasInfo": doDescribeWorkflowOpsCanvasInfo,
16013
+ "KillInstances": doKillInstances,
15962
16014
  "BatchKillIntegrationTaskInstances": doBatchKillIntegrationTaskInstances,
15963
16015
  "ModifyExecStrategy": doModifyExecStrategy,
15964
16016
  "DescribeIntegrationStatisticsTaskStatusTrend": doDescribeIntegrationStatisticsTaskStatusTrend,
@@ -16067,7 +16119,7 @@ ACTION_MAP = {
16067
16119
  "DeleteDataSources": doDeleteDataSources,
16068
16120
  "DeleteIntegrationNode": doDeleteIntegrationNode,
16069
16121
  "StopIntegrationTask": doStopIntegrationTask,
16070
- "KillInstances": doKillInstances,
16122
+ "DescribeWorkflowOpsCanvasInfo": doDescribeWorkflowOpsCanvasInfo,
16071
16123
  "DescribeRealTimeTaskSpeed": doDescribeRealTimeTaskSpeed,
16072
16124
  "DescribeInstanceList": doDescribeInstanceList,
16073
16125
  "DescribeTaskScript": doDescribeTaskScript,
@@ -16122,7 +16174,7 @@ ACTION_MAP = {
16122
16174
  "DescribeDataTypes": doDescribeDataTypes,
16123
16175
  "DescribeRulesByPage": doDescribeRulesByPage,
16124
16176
  "ModifyMonitorStatus": doModifyMonitorStatus,
16125
- "DescribeInstancesInfoWithTaskInfo": doDescribeInstancesInfoWithTaskInfo,
16177
+ "DescribeTableMetas": doDescribeTableMetas,
16126
16178
  "DescribeAllTaskType": doDescribeAllTaskType,
16127
16179
  "DeleteFile": doDeleteFile,
16128
16180
  "BatchMakeUpIntegrationTasks": doBatchMakeUpIntegrationTasks,
@@ -16161,6 +16213,7 @@ ACTION_MAP = {
16161
16213
  "DeleteResource": doDeleteResource,
16162
16214
  "StartIntegrationTask": doStartIntegrationTask,
16163
16215
  "DeleteResourceFiles": doDeleteResourceFiles,
16216
+ "CheckDuplicateTemplateName": doCheckDuplicateTemplateName,
16164
16217
  "SubmitWorkflow": doSubmitWorkflow,
16165
16218
  "BatchDeleteIntegrationTasks": doBatchDeleteIntegrationTasks,
16166
16219
  "DescribeIntegrationTasks": doDescribeIntegrationTasks,
@@ -16211,7 +16264,7 @@ ACTION_MAP = {
16211
16264
  "RestartInLongAgent": doRestartInLongAgent,
16212
16265
  "ModifyDimensionWeight": doModifyDimensionWeight,
16213
16266
  "FindAllFolder": doFindAllFolder,
16214
- "CheckDuplicateTemplateName": doCheckDuplicateTemplateName,
16267
+ "DescribeInstancesInfoWithTaskInfo": doDescribeInstancesInfoWithTaskInfo,
16215
16268
  "RunRerunScheduleInstances": doRunRerunScheduleInstances,
16216
16269
  "BatchStopWorkflowsByIds": doBatchStopWorkflowsByIds,
16217
16270
  "BatchResumeIntegrationTasks": doBatchResumeIntegrationTasks,