tccli 3.0.1297.1__py2.py3-none-any.whl → 3.0.1299.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 (85) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/batch_client.py +4 -110
  3. tccli/services/batch/v20170312/api.json +0 -527
  4. tccli/services/batch/v20170312/examples.json +0 -16
  5. tccli/services/bi/v20220105/api.json +87 -1
  6. tccli/services/bi/v20220105/examples.json +7 -7
  7. tccli/services/cam/v20190116/api.json +84 -84
  8. tccli/services/cbs/v20170312/api.json +24 -24
  9. tccli/services/cdn/v20180606/api.json +240 -179
  10. tccli/services/cdn/v20180606/examples.json +1 -1
  11. tccli/services/cfg/v20210820/api.json +5 -3
  12. tccli/services/cfg/v20210820/examples.json +1 -1
  13. tccli/services/chdfs/v20201112/api.json +7 -1
  14. tccli/services/cls/cls_client.py +235 -23
  15. tccli/services/cls/v20201016/api.json +457 -3
  16. tccli/services/cls/v20201016/examples.json +32 -0
  17. tccli/services/controlcenter/v20230110/api.json +63 -58
  18. tccli/services/cvm/v20170312/api.json +2 -2
  19. tccli/services/dbbrain/dbbrain_client.py +106 -0
  20. tccli/services/dbbrain/v20191016/api.json +365 -6
  21. tccli/services/dbbrain/v20191016/examples.json +8 -0
  22. tccli/services/dbbrain/v20210527/api.json +550 -21
  23. tccli/services/dbbrain/v20210527/examples.json +16 -0
  24. tccli/services/dcdb/v20180411/api.json +102 -6
  25. tccli/services/dcdb/v20180411/examples.json +4 -4
  26. tccli/services/dlc/dlc_client.py +53 -0
  27. tccli/services/dlc/v20210125/api.json +162 -0
  28. tccli/services/dlc/v20210125/examples.json +8 -0
  29. tccli/services/dnspod/v20210323/api.json +128 -127
  30. tccli/services/ess/v20201111/api.json +1 -1
  31. tccli/services/essbasic/v20210526/api.json +5 -5
  32. tccli/services/facefusion/v20220927/api.json +2 -2
  33. tccli/services/facefusion/v20220927/examples.json +1 -1
  34. tccli/services/gs/v20191118/api.json +22 -3
  35. tccli/services/gs/v20191118/examples.json +1 -1
  36. tccli/services/hai/v20230812/api.json +16 -16
  37. tccli/services/iotcloud/v20210408/api.json +2 -2
  38. tccli/services/iotcloud/v20210408/examples.json +3 -3
  39. tccli/services/iotexplorer/v20190423/api.json +947 -857
  40. tccli/services/iotexplorer/v20190423/examples.json +83 -83
  41. tccli/services/live/v20180801/api.json +2 -2
  42. tccli/services/lkeap/v20240522/api.json +3 -3
  43. tccli/services/mariadb/v20170312/api.json +84 -8
  44. tccli/services/mariadb/v20170312/examples.json +3 -3
  45. tccli/services/mps/v20190612/api.json +63 -61
  46. tccli/services/mps/v20190612/examples.json +48 -48
  47. tccli/services/mqtt/v20240516/api.json +62 -12
  48. tccli/services/mqtt/v20240516/examples.json +6 -6
  49. tccli/services/ocr/ocr_client.py +307 -360
  50. tccli/services/ocr/v20181119/api.json +73 -289
  51. tccli/services/ocr/v20181119/examples.json +0 -8
  52. tccli/services/organization/v20210331/api.json +9 -0
  53. tccli/services/partners/v20180321/api.json +10 -0
  54. tccli/services/sqlserver/v20180328/api.json +9 -0
  55. tccli/services/sqlserver/v20180328/examples.json +1 -1
  56. tccli/services/tcb/v20180608/api.json +11 -1
  57. tccli/services/tdmq/v20200217/api.json +30 -0
  58. tccli/services/teo/v20220106/api.json +4 -4
  59. tccli/services/teo/v20220901/api.json +48 -7
  60. tccli/services/teo/v20220901/examples.json +51 -15
  61. tccli/services/tione/v20211111/api.json +25 -5
  62. tccli/services/tke/v20180525/api.json +2 -2
  63. tccli/services/trro/trro_client.py +269 -4
  64. tccli/services/trro/v20220325/api.json +504 -0
  65. tccli/services/trro/v20220325/examples.json +40 -0
  66. tccli/services/tse/v20201207/api.json +34 -34
  67. tccli/services/vdb/v20230616/api.json +738 -15
  68. tccli/services/vdb/v20230616/examples.json +64 -0
  69. tccli/services/vdb/vdb_client.py +428 -4
  70. tccli/services/vod/v20180717/api.json +9 -0
  71. tccli/services/vod/v20240718/api.json +985 -0
  72. tccli/services/vod/v20240718/examples.json +66 -0
  73. tccli/services/vod/vod_client.py +330 -12
  74. tccli/services/vpc/v20170312/api.json +175 -0
  75. tccli/services/vpc/v20170312/examples.json +8 -0
  76. tccli/services/vpc/vpc_client.py +53 -0
  77. tccli/services/wedata/v20210820/api.json +464 -1
  78. tccli/services/wedata/v20210820/examples.json +22 -0
  79. tccli/services/wedata/wedata_client.py +114 -8
  80. tccli/services/weilingwith/v20230427/api.json +10 -10
  81. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/METADATA +2 -2
  82. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/RECORD +85 -85
  83. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/WHEEL +0 -0
  84. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/entry_points.txt +0 -0
  85. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/license_files/LICENSE +0 -0
@@ -2565,7 +2565,7 @@ def doModifyIntegrationNode(args, parsed_globals):
2565
2565
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
2566
 
2567
2567
 
2568
- def doRobAndLockIntegrationTask(args, parsed_globals):
2568
+ def doAddProjectUserRole(args, parsed_globals):
2569
2569
  g_param = parse_global_arg(parsed_globals)
2570
2570
 
2571
2571
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2594,11 +2594,11 @@ def doRobAndLockIntegrationTask(args, parsed_globals):
2594
2594
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
2595
2595
  client._sdkVersion += ("_CLI_" + __version__)
2596
2596
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
- model = models.RobAndLockIntegrationTaskRequest()
2597
+ model = models.AddProjectUserRoleRequest()
2598
2598
  model.from_json_string(json.dumps(args))
2599
2599
  start_time = time.time()
2600
2600
  while True:
2601
- rsp = client.RobAndLockIntegrationTask(model)
2601
+ rsp = client.AddProjectUserRole(model)
2602
2602
  result = rsp.to_json_string()
2603
2603
  try:
2604
2604
  json_obj = json.loads(result)
@@ -3865,7 +3865,7 @@ def doDescribeRuleGroupTable(args, parsed_globals):
3865
3865
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
3866
 
3867
3867
 
3868
- def doAddProjectUserRole(args, parsed_globals):
3868
+ def doDescribeRoleList(args, parsed_globals):
3869
3869
  g_param = parse_global_arg(parsed_globals)
3870
3870
 
3871
3871
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3894,11 +3894,11 @@ def doAddProjectUserRole(args, parsed_globals):
3894
3894
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
3895
3895
  client._sdkVersion += ("_CLI_" + __version__)
3896
3896
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3897
- model = models.AddProjectUserRoleRequest()
3897
+ model = models.DescribeRoleListRequest()
3898
3898
  model.from_json_string(json.dumps(args))
3899
3899
  start_time = time.time()
3900
3900
  while True:
3901
- rsp = client.AddProjectUserRole(model)
3901
+ rsp = client.DescribeRoleList(model)
3902
3902
  result = rsp.to_json_string()
3903
3903
  try:
3904
3904
  json_obj = json.loads(result)
@@ -9065,6 +9065,58 @@ def doDescribeRules(args, parsed_globals):
9065
9065
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9066
9066
 
9067
9067
 
9068
+ def doRobAndLockIntegrationTask(args, parsed_globals):
9069
+ g_param = parse_global_arg(parsed_globals)
9070
+
9071
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9072
+ cred = credential.CVMRoleCredential()
9073
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9074
+ cred = credential.STSAssumeRoleCredential(
9075
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9076
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9077
+ )
9078
+ 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):
9079
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9080
+ else:
9081
+ cred = credential.Credential(
9082
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9083
+ )
9084
+ http_profile = HttpProfile(
9085
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9086
+ reqMethod="POST",
9087
+ endpoint=g_param[OptionsDefine.Endpoint],
9088
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9089
+ )
9090
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9091
+ if g_param[OptionsDefine.Language]:
9092
+ profile.language = g_param[OptionsDefine.Language]
9093
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9094
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
9095
+ client._sdkVersion += ("_CLI_" + __version__)
9096
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9097
+ model = models.RobAndLockIntegrationTaskRequest()
9098
+ model.from_json_string(json.dumps(args))
9099
+ start_time = time.time()
9100
+ while True:
9101
+ rsp = client.RobAndLockIntegrationTask(model)
9102
+ result = rsp.to_json_string()
9103
+ try:
9104
+ json_obj = json.loads(result)
9105
+ except TypeError as e:
9106
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9107
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9108
+ break
9109
+ cur_time = time.time()
9110
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9111
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9112
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9113
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9114
+ else:
9115
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9116
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9117
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9118
+
9119
+
9068
9120
  def doStartIntegrationTask(args, parsed_globals):
9069
9121
  g_param = parse_global_arg(parsed_globals)
9070
9122
 
@@ -11873,6 +11925,58 @@ def doDescribeFunctionKinds(args, parsed_globals):
11873
11925
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11874
11926
 
11875
11927
 
11928
+ def doUpdateProjectUserRole(args, parsed_globals):
11929
+ g_param = parse_global_arg(parsed_globals)
11930
+
11931
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
11932
+ cred = credential.CVMRoleCredential()
11933
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
11934
+ cred = credential.STSAssumeRoleCredential(
11935
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
11936
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
11937
+ )
11938
+ 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):
11939
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
11940
+ else:
11941
+ cred = credential.Credential(
11942
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
11943
+ )
11944
+ http_profile = HttpProfile(
11945
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
11946
+ reqMethod="POST",
11947
+ endpoint=g_param[OptionsDefine.Endpoint],
11948
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
11949
+ )
11950
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
11951
+ if g_param[OptionsDefine.Language]:
11952
+ profile.language = g_param[OptionsDefine.Language]
11953
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
11954
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
11955
+ client._sdkVersion += ("_CLI_" + __version__)
11956
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
11957
+ model = models.UpdateProjectUserRoleRequest()
11958
+ model.from_json_string(json.dumps(args))
11959
+ start_time = time.time()
11960
+ while True:
11961
+ rsp = client.UpdateProjectUserRole(model)
11962
+ result = rsp.to_json_string()
11963
+ try:
11964
+ json_obj = json.loads(result)
11965
+ except TypeError as e:
11966
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
11967
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
11968
+ break
11969
+ cur_time = time.time()
11970
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
11971
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
11972
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
11973
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
11974
+ else:
11975
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
11976
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
11977
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11978
+
11979
+
11876
11980
  def doTaskLog(args, parsed_globals):
11877
11981
  g_param = parse_global_arg(parsed_globals)
11878
11982
 
@@ -12817,7 +12921,7 @@ ACTION_MAP = {
12817
12921
  "UpdateDataModelRegistryInfo": doUpdateDataModelRegistryInfo,
12818
12922
  "CreateDsFolder": doCreateDsFolder,
12819
12923
  "ModifyIntegrationNode": doModifyIntegrationNode,
12820
- "RobAndLockIntegrationTask": doRobAndLockIntegrationTask,
12924
+ "AddProjectUserRole": doAddProjectUserRole,
12821
12925
  "CheckIntegrationNodeNameExists": doCheckIntegrationNodeNameExists,
12822
12926
  "ModifyIntegrationTask": doModifyIntegrationTask,
12823
12927
  "DescribeStreamTaskLogList": doDescribeStreamTaskLogList,
@@ -12842,7 +12946,7 @@ ACTION_MAP = {
12842
12946
  "DryRunDIOfflineTask": doDryRunDIOfflineTask,
12843
12947
  "DescribeDimensionScore": doDescribeDimensionScore,
12844
12948
  "DescribeRuleGroupTable": doDescribeRuleGroupTable,
12845
- "AddProjectUserRole": doAddProjectUserRole,
12949
+ "DescribeRoleList": doDescribeRoleList,
12846
12950
  "CreateIntegrationTask": doCreateIntegrationTask,
12847
12951
  "KillOpsMakePlanInstances": doKillOpsMakePlanInstances,
12848
12952
  "DescribeDataSourceList": doDescribeDataSourceList,
@@ -12942,6 +13046,7 @@ ACTION_MAP = {
12942
13046
  "GetOfflineDIInstanceList": doGetOfflineDIInstanceList,
12943
13047
  "DeleteWorkflowById": doDeleteWorkflowById,
12944
13048
  "DescribeRules": doDescribeRules,
13049
+ "RobAndLockIntegrationTask": doRobAndLockIntegrationTask,
12945
13050
  "StartIntegrationTask": doStartIntegrationTask,
12946
13051
  "DeleteResourceFiles": doDeleteResourceFiles,
12947
13052
  "DescribeReportTaskList": doDescribeReportTaskList,
@@ -12996,6 +13101,7 @@ ACTION_MAP = {
12996
13101
  "SubmitSqlTask": doSubmitSqlTask,
12997
13102
  "DescribeDataSourceInfoList": doDescribeDataSourceInfoList,
12998
13103
  "DescribeFunctionKinds": doDescribeFunctionKinds,
13104
+ "UpdateProjectUserRole": doUpdateProjectUserRole,
12999
13105
  "TaskLog": doTaskLog,
13000
13106
  "DescribeRuleTemplates": doDescribeRuleTemplates,
13001
13107
  "SuspendIntegrationTask": doSuspendIntegrationTask,
@@ -148,11 +148,11 @@
148
148
  "status": "online"
149
149
  },
150
150
  "DescribeCityWorkspaceList": {
151
- "document": "通过城市id查询工作空间列表",
151
+ "document": "老微瓴后续不继续更新\n\n通过城市id查询工作空间列表",
152
152
  "input": "DescribeCityWorkspaceListRequest",
153
153
  "name": "通过城市id查询工作空间列表",
154
154
  "output": "DescribeCityWorkspaceListResponse",
155
- "status": "online"
155
+ "status": "deprecated"
156
156
  },
157
157
  "DescribeDeviceGroupList": {
158
158
  "document": "设备分组列表",
@@ -538,7 +538,7 @@
538
538
  {
539
539
  "disabled": false,
540
540
  "document": "消息内容,有效值为x-json:后的字段",
541
- "example": "",
541
+ "example": "msgcontent",
542
542
  "member": "string",
543
543
  "name": "MsgContent",
544
544
  "output_required": false,
@@ -1491,7 +1491,7 @@
1491
1491
  {
1492
1492
  "disabled": false,
1493
1493
  "document": "请求体(base64编码)",
1494
- "example": "",
1494
+ "example": "body",
1495
1495
  "member": "string",
1496
1496
  "name": "Body",
1497
1497
  "output_required": false,
@@ -1501,7 +1501,7 @@
1501
1501
  {
1502
1502
  "disabled": false,
1503
1503
  "document": "响应体(base64编码)",
1504
- "example": "",
1504
+ "example": "responsebody",
1505
1505
  "member": "string",
1506
1506
  "name": "ResponseBody",
1507
1507
  "output_required": false,
@@ -3650,7 +3650,7 @@
3650
3650
  {
3651
3651
  "disabled": false,
3652
3652
  "document": "空间编码",
3653
- "example": "",
3653
+ "example": "spacecodes",
3654
3654
  "member": "string",
3655
3655
  "name": "SpaceCodes",
3656
3656
  "required": false,
@@ -4742,7 +4742,7 @@
4742
4742
  {
4743
4743
  "disabled": false,
4744
4744
  "document": "父级构件id",
4745
- "example": "",
4745
+ "example": "parentelementIds",
4746
4746
  "member": "string",
4747
4747
  "name": "ParentElementIds",
4748
4748
  "required": false,
@@ -8359,7 +8359,7 @@
8359
8359
  {
8360
8360
  "disabled": false,
8361
8361
  "document": "时间触发条件",
8362
- "example": "",
8362
+ "example": "condition",
8363
8363
  "member": "string",
8364
8364
  "name": "Condition",
8365
8365
  "output_required": false,
@@ -9694,7 +9694,7 @@
9694
9694
  {
9695
9695
  "disabled": false,
9696
9696
  "document": "扩展字段2,如:算法上报id,若为json格式,需传x-json:{},有效字段为x-json:后的字段",
9697
- "example": "",
9697
+ "example": "extendtwo",
9698
9698
  "member": "string",
9699
9699
  "name": "ExtendTwo",
9700
9700
  "required": false,
@@ -9703,7 +9703,7 @@
9703
9703
  {
9704
9704
  "disabled": false,
9705
9705
  "document": "透传信息,若为json格式,需传x-json:{},有效字段为x-json:后的字段",
9706
- "example": "",
9706
+ "example": "echo",
9707
9707
  "member": "string",
9708
9708
  "name": "Echo",
9709
9709
  "required": false,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1297.1
3
+ Version: 3.0.1299.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.1297
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1299
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介