tccli 3.0.1186.1__py2.py3-none-any.whl → 3.0.1188.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 (41) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/cfw/cfw_client.py +0 -53
  3. tccli/services/cfw/v20190904/api.json +0 -24
  4. tccli/services/cfw/v20190904/examples.json +0 -8
  5. tccli/services/cvm/cvm_client.py +53 -0
  6. tccli/services/cvm/v20170312/api.json +107 -0
  7. tccli/services/cvm/v20170312/examples.json +8 -0
  8. tccli/services/cwp/v20180228/api.json +1 -1
  9. tccli/services/dc/v20180410/api.json +19 -19
  10. tccli/services/dc/v20180410/examples.json +5 -5
  11. tccli/services/dcdb/v20180411/api.json +20 -2
  12. tccli/services/dlc/dlc_client.py +106 -0
  13. tccli/services/dlc/v20210125/api.json +87 -0
  14. tccli/services/dlc/v20210125/examples.json +16 -0
  15. tccli/services/dts/v20211206/api.json +1 -0
  16. tccli/services/emr/emr_client.py +277 -12
  17. tccli/services/emr/v20190103/api.json +650 -21
  18. tccli/services/emr/v20190103/examples.json +47 -7
  19. tccli/services/es/v20180416/api.json +101 -0
  20. tccli/services/ess/ess_client.py +53 -0
  21. tccli/services/ess/v20201111/api.json +176 -29
  22. tccli/services/ess/v20201111/examples.json +11 -3
  23. tccli/services/gme/v20180711/api.json +12 -12
  24. tccli/services/mariadb/v20170312/api.json +21 -3
  25. tccli/services/rce/v20201103/api.json +2 -2
  26. tccli/services/sms/v20190711/api.json +2 -2
  27. tccli/services/sms/v20210111/api.json +2 -2
  28. tccli/services/teo/v20220901/api.json +2 -2
  29. tccli/services/trocket/v20230308/api.json +9 -0
  30. tccli/services/trtc/v20190722/api.json +11 -0
  31. tccli/services/tse/v20201207/api.json +18 -18
  32. tccli/services/vclm/v20240523/api.json +10 -10
  33. tccli/services/vclm/v20240523/examples.json +17 -5
  34. tccli/services/vpc/v20170312/api.json +1 -1
  35. tccli/services/vtc/v20240223/api.json +8 -8
  36. tccli/services/vtc/v20240223/examples.json +19 -7
  37. {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/METADATA +2 -2
  38. {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/RECORD +41 -41
  39. {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/WHEEL +0 -0
  40. {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/entry_points.txt +0 -0
  41. {tccli-3.0.1186.1.dist-info → tccli-3.0.1188.1.dist-info}/license_files/LICENSE +0 -0
@@ -4489,6 +4489,58 @@ def doCreateCHDFSBindingProduct(args, parsed_globals):
4489
4489
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
4490
 
4491
4491
 
4492
+ def doQueryInternalTableWarehouse(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.DlcClient(cred, g_param[OptionsDefine.Region], profile)
4519
+ client._sdkVersion += ("_CLI_" + __version__)
4520
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4521
+ model = models.QueryInternalTableWarehouseRequest()
4522
+ model.from_json_string(json.dumps(args))
4523
+ start_time = time.time()
4524
+ while True:
4525
+ rsp = client.QueryInternalTableWarehouse(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
+
4492
4544
  def doDescribeDatasourceConnection(args, parsed_globals):
4493
4545
  g_param = parse_global_arg(parsed_globals)
4494
4546
 
@@ -5113,6 +5165,58 @@ def doDeleteUser(args, parsed_globals):
5113
5165
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5114
5166
 
5115
5167
 
5168
+ def doDeleteTable(args, parsed_globals):
5169
+ g_param = parse_global_arg(parsed_globals)
5170
+
5171
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5172
+ cred = credential.CVMRoleCredential()
5173
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5174
+ cred = credential.STSAssumeRoleCredential(
5175
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5176
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5177
+ )
5178
+ 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):
5179
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5180
+ else:
5181
+ cred = credential.Credential(
5182
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5183
+ )
5184
+ http_profile = HttpProfile(
5185
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5186
+ reqMethod="POST",
5187
+ endpoint=g_param[OptionsDefine.Endpoint],
5188
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5189
+ )
5190
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5191
+ if g_param[OptionsDefine.Language]:
5192
+ profile.language = g_param[OptionsDefine.Language]
5193
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5194
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
5195
+ client._sdkVersion += ("_CLI_" + __version__)
5196
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5197
+ model = models.DeleteTableRequest()
5198
+ model.from_json_string(json.dumps(args))
5199
+ start_time = time.time()
5200
+ while True:
5201
+ rsp = client.DeleteTable(model)
5202
+ result = rsp.to_json_string()
5203
+ try:
5204
+ json_obj = json.loads(result)
5205
+ except TypeError as e:
5206
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5207
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5208
+ break
5209
+ cur_time = time.time()
5210
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5211
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5212
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5213
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5214
+ else:
5215
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5216
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5217
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5218
+
5219
+
5116
5220
  def doDescribeEngineUsageInfo(args, parsed_globals):
5117
5221
  g_param = parse_global_arg(parsed_globals)
5118
5222
 
@@ -7446,6 +7550,7 @@ ACTION_MAP = {
7446
7550
  "DropDMSPartitions": doDropDMSPartitions,
7447
7551
  "CreateWorkGroup": doCreateWorkGroup,
7448
7552
  "CreateCHDFSBindingProduct": doCreateCHDFSBindingProduct,
7553
+ "QueryInternalTableWarehouse": doQueryInternalTableWarehouse,
7449
7554
  "DescribeDatasourceConnection": doDescribeDatasourceConnection,
7450
7555
  "CheckDataEngineImageCanBeRollback": doCheckDataEngineImageCanBeRollback,
7451
7556
  "CancelSparkSessionBatchSQL": doCancelSparkSessionBatchSQL,
@@ -7458,6 +7563,7 @@ ACTION_MAP = {
7458
7563
  "CheckDataEngineConfigPairsValidity": doCheckDataEngineConfigPairsValidity,
7459
7564
  "DeleteDataEngine": doDeleteDataEngine,
7460
7565
  "DeleteUser": doDeleteUser,
7566
+ "DeleteTable": doDeleteTable,
7461
7567
  "DescribeEngineUsageInfo": doDescribeEngineUsageInfo,
7462
7568
  "DescribeTasksOverview": doDescribeTasksOverview,
7463
7569
  "UpdateDataEngineConfig": doUpdateDataEngineConfig,
@@ -322,6 +322,13 @@
322
322
  "output": "DeleteSparkAppResponse",
323
323
  "status": "online"
324
324
  },
325
+ "DeleteTable": {
326
+ "document": "删除表",
327
+ "input": "DeleteTableRequest",
328
+ "name": "删除表",
329
+ "output": "DeleteTableResponse",
330
+ "status": "online"
331
+ },
325
332
  "DeleteThirdPartyAccessUser": {
326
333
  "document": "本接口(RegisterThirdPartyAccessUser)用于移除第三方平台访问",
327
334
  "input": "DeleteThirdPartyAccessUserRequest",
@@ -861,6 +868,13 @@
861
868
  "output": "ModifyWorkGroupResponse",
862
869
  "status": "online"
863
870
  },
871
+ "QueryInternalTableWarehouse": {
872
+ "document": "本接口(QueryInternalTableWarehouse)用于获取原生表warehouse路径",
873
+ "input": "QueryInternalTableWarehouseRequest",
874
+ "name": "获取原生表warehouse路径",
875
+ "output": "QueryInternalTableWarehouseResponse",
876
+ "status": "online"
877
+ },
864
878
  "QueryResult": {
865
879
  "document": "获取任务结果查询",
866
880
  "input": "QueryResultRequest",
@@ -7220,6 +7234,33 @@
7220
7234
  ],
7221
7235
  "type": "object"
7222
7236
  },
7237
+ "DeleteTableRequest": {
7238
+ "document": "DeleteTable请求参数结构体",
7239
+ "members": [
7240
+ {
7241
+ "disabled": false,
7242
+ "document": "表基本信息",
7243
+ "example": "无",
7244
+ "member": "TableBaseInfo",
7245
+ "name": "TableBaseInfo",
7246
+ "required": true,
7247
+ "type": "object"
7248
+ }
7249
+ ],
7250
+ "type": "object"
7251
+ },
7252
+ "DeleteTableResponse": {
7253
+ "document": "DeleteTable返回参数结构体",
7254
+ "members": [
7255
+ {
7256
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7257
+ "member": "string",
7258
+ "name": "RequestId",
7259
+ "type": "string"
7260
+ }
7261
+ ],
7262
+ "type": "object"
7263
+ },
7223
7264
  "DeleteThirdPartyAccessUserRequest": {
7224
7265
  "document": "DeleteThirdPartyAccessUser请求参数结构体",
7225
7266
  "members": [],
@@ -14970,6 +15011,52 @@
14970
15011
  ],
14971
15012
  "usage": "out"
14972
15013
  },
15014
+ "QueryInternalTableWarehouseRequest": {
15015
+ "document": "QueryInternalTableWarehouse请求参数结构体",
15016
+ "members": [
15017
+ {
15018
+ "disabled": false,
15019
+ "document": "库名",
15020
+ "example": "db_test",
15021
+ "member": "string",
15022
+ "name": "DatabaseName",
15023
+ "required": true,
15024
+ "type": "string"
15025
+ },
15026
+ {
15027
+ "disabled": false,
15028
+ "document": "表名",
15029
+ "example": "tb_test",
15030
+ "member": "string",
15031
+ "name": "TableName",
15032
+ "required": true,
15033
+ "type": "string"
15034
+ }
15035
+ ],
15036
+ "type": "object"
15037
+ },
15038
+ "QueryInternalTableWarehouseResponse": {
15039
+ "document": "QueryInternalTableWarehouse返回参数结构体",
15040
+ "members": [
15041
+ {
15042
+ "disabled": false,
15043
+ "document": "warehouse路径",
15044
+ "example": "lakefs/xxx/xxx",
15045
+ "member": "string",
15046
+ "name": "WarehousePath",
15047
+ "required": true,
15048
+ "type": "string",
15049
+ "value_allowed_null": false
15050
+ },
15051
+ {
15052
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
15053
+ "member": "string",
15054
+ "name": "RequestId",
15055
+ "type": "string"
15056
+ }
15057
+ ],
15058
+ "type": "object"
15059
+ },
14973
15060
  "QueryResultRequest": {
14974
15061
  "document": "QueryResult请求参数结构体",
14975
15062
  "members": [
@@ -368,6 +368,14 @@
368
368
  "title": "删除spark作业"
369
369
  }
370
370
  ],
371
+ "DeleteTable": [
372
+ {
373
+ "document": "",
374
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteTable\n<公共请求参数>\n\n{\n \"TableBaseInfo\": {\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"DataLakeCatalog\",\n \"DatabaseName\": \"db\"\n }\n}",
375
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b076c1df-26f0-45b7-84f1-fa4eeca7c83f\"\n }\n}",
376
+ "title": "删除表"
377
+ }
378
+ ],
371
379
  "DeleteThirdPartyAccessUser": [
372
380
  {
373
381
  "document": "删除注册的用户",
@@ -996,6 +1004,14 @@
996
1004
  "title": "修改工作组信息"
997
1005
  }
998
1006
  ],
1007
+ "QueryInternalTableWarehouse": [
1008
+ {
1009
+ "document": "",
1010
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryInternalTableWarehouse\n<公共请求参数>\n\n{\n \"TableName\": \"db_test\",\n \"DatabaseName\": \"tb_test\"\n}",
1011
+ "output": "{\n \"Response\": {\n \"WarehousePath\": \"lakefs://xxx@xxx/xxx/warehouse/db_test/tb_test/\",\n \"RequestId\": \"b8sd7dd7-ekd4-4e5e-993e-e5db64fa21c1\"\n }\n}",
1012
+ "title": "获取原生表warehouse路径"
1013
+ }
1014
+ ],
999
1015
  "QueryResult": [
1000
1016
  {
1001
1017
  "document": "",
@@ -2001,6 +2001,7 @@
2001
2001
  "example": "[\"dts-amm1jw5q\"]",
2002
2002
  "member": "string",
2003
2003
  "name": "JobIds",
2004
+ "output_required": true,
2004
2005
  "type": "list",
2005
2006
  "value_allowed_null": true
2006
2007
  },