tccli 3.0.1187.1__py2.py3-none-any.whl → 3.0.1189.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 (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +53 -0
  3. tccli/services/aiart/v20221229/api.json +107 -0
  4. tccli/services/aiart/v20221229/examples.json +8 -0
  5. tccli/services/apm/v20210622/api.json +3 -1
  6. tccli/services/billing/v20180709/api.json +3 -0
  7. tccli/services/billing/v20180709/examples.json +1 -1
  8. tccli/services/cfg/v20210820/api.json +19 -4
  9. tccli/services/ckafka/v20190819/api.json +5 -5
  10. tccli/services/cvm/cvm_client.py +53 -0
  11. tccli/services/cvm/v20170312/api.json +107 -0
  12. tccli/services/cvm/v20170312/examples.json +8 -0
  13. tccli/services/dc/v20180410/api.json +19 -19
  14. tccli/services/dc/v20180410/examples.json +5 -5
  15. tccli/services/dcdb/dcdb_client.py +106 -0
  16. tccli/services/dcdb/v20180411/api.json +338 -2
  17. tccli/services/dcdb/v20180411/examples.json +28 -0
  18. tccli/services/dlc/dlc_client.py +106 -0
  19. tccli/services/dlc/v20210125/api.json +87 -0
  20. tccli/services/dlc/v20210125/examples.json +16 -0
  21. tccli/services/dnspod/dnspod_client.py +53 -0
  22. tccli/services/dnspod/v20210323/api.json +118 -0
  23. tccli/services/dnspod/v20210323/examples.json +8 -0
  24. tccli/services/dts/v20211206/api.json +1 -0
  25. tccli/services/emr/emr_client.py +322 -4
  26. tccli/services/emr/v20190103/api.json +862 -10
  27. tccli/services/emr/v20190103/examples.json +54 -0
  28. tccli/services/es/es_client.py +53 -0
  29. tccli/services/es/v20180416/api.json +155 -0
  30. tccli/services/es/v20180416/examples.json +14 -0
  31. tccli/services/ess/ess_client.py +53 -0
  32. tccli/services/ess/v20201111/api.json +147 -0
  33. tccli/services/ess/v20201111/examples.json +8 -0
  34. tccli/services/essbasic/essbasic_client.py +53 -0
  35. tccli/services/essbasic/v20210526/api.json +120 -0
  36. tccli/services/essbasic/v20210526/examples.json +8 -0
  37. tccli/services/mariadb/mariadb_client.py +110 -4
  38. tccli/services/mariadb/v20170312/api.json +339 -3
  39. tccli/services/mariadb/v20170312/examples.json +16 -0
  40. tccli/services/ocr/v20181119/api.json +12 -2
  41. tccli/services/rce/v20201103/api.json +2 -2
  42. tccli/services/redis/redis_client.py +110 -4
  43. tccli/services/redis/v20180412/api.json +209 -0
  44. tccli/services/redis/v20180412/examples.json +16 -0
  45. tccli/services/sms/v20190711/api.json +2 -2
  46. tccli/services/sms/v20210111/api.json +2 -2
  47. tccli/services/teo/v20220901/api.json +14 -14
  48. tccli/services/trtc/v20190722/api.json +11 -0
  49. tccli/services/tse/v20201207/api.json +18 -18
  50. tccli/services/tsf/v20180326/api.json +74 -29
  51. tccli/services/vclm/v20240523/api.json +2 -2
  52. tccli/services/vdb/v20230616/api.json +491 -0
  53. tccli/services/vdb/v20230616/examples.json +46 -0
  54. tccli/services/vdb/vdb_client.py +265 -0
  55. tccli/services/vpc/v20170312/api.json +5 -5
  56. tccli/services/vtc/v20240223/api.json +2 -2
  57. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/RECORD +61 -61
  59. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1187.1.dist-info → tccli-3.0.1189.1.dist-info}/license_files/LICENSE +0 -0
@@ -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": "",
@@ -2617,6 +2617,58 @@ def doDescribeRecord(args, parsed_globals):
2617
2617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
2618
 
2619
2619
 
2620
+ def doDescribeDomainShareUserList(args, parsed_globals):
2621
+ g_param = parse_global_arg(parsed_globals)
2622
+
2623
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2624
+ cred = credential.CVMRoleCredential()
2625
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2626
+ cred = credential.STSAssumeRoleCredential(
2627
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2628
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2629
+ )
2630
+ 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):
2631
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2632
+ else:
2633
+ cred = credential.Credential(
2634
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2635
+ )
2636
+ http_profile = HttpProfile(
2637
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2638
+ reqMethod="POST",
2639
+ endpoint=g_param[OptionsDefine.Endpoint],
2640
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2641
+ )
2642
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2643
+ if g_param[OptionsDefine.Language]:
2644
+ profile.language = g_param[OptionsDefine.Language]
2645
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2646
+ client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
2647
+ client._sdkVersion += ("_CLI_" + __version__)
2648
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
+ model = models.DescribeDomainShareUserListRequest()
2650
+ model.from_json_string(json.dumps(args))
2651
+ start_time = time.time()
2652
+ while True:
2653
+ rsp = client.DescribeDomainShareUserList(model)
2654
+ result = rsp.to_json_string()
2655
+ try:
2656
+ json_obj = json.loads(result)
2657
+ except TypeError as e:
2658
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2659
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2660
+ break
2661
+ cur_time = time.time()
2662
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2663
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2664
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2665
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2666
+ else:
2667
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2668
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2669
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
+
2671
+
2620
2672
  def doModifyDomainRemark(args, parsed_globals):
2621
2673
  g_param = parse_global_arg(parsed_globals)
2622
2674
 
@@ -3926,6 +3978,7 @@ ACTION_MAP = {
3926
3978
  "ModifyRecord": doModifyRecord,
3927
3979
  "DescribeDomain": doDescribeDomain,
3928
3980
  "DescribeRecord": doDescribeRecord,
3981
+ "DescribeDomainShareUserList": doDescribeDomainShareUserList,
3929
3982
  "ModifyDomainRemark": doModifyDomainRemark,
3930
3983
  "DescribeRecordExistExceptDefaultNS": doDescribeRecordExistExceptDefaultNS,
3931
3984
  "ModifyDomainOwner": doModifyDomainOwner,
@@ -231,6 +231,13 @@
231
231
  "output": "DescribeDomainShareInfoResponse",
232
232
  "status": "online"
233
233
  },
234
+ "DescribeDomainShareUserList": {
235
+ "document": "获取指定域名的已共享列表",
236
+ "input": "DescribeDomainShareUserListRequest",
237
+ "name": "获取指定域名的已共享列表",
238
+ "output": "DescribeDomainShareUserListResponse",
239
+ "status": "online"
240
+ },
234
241
  "DescribeDomainWhois": {
235
242
  "document": "获取域名Whois信息",
236
243
  "input": "DescribeDomainWhoisRequest",
@@ -3531,6 +3538,51 @@
3531
3538
  ],
3532
3539
  "type": "object"
3533
3540
  },
3541
+ "DescribeDomainShareUserListRequest": {
3542
+ "document": "DescribeDomainShareUserList请求参数结构体",
3543
+ "members": [
3544
+ {
3545
+ "disabled": false,
3546
+ "document": "域名",
3547
+ "example": "dnspod.cn",
3548
+ "member": "string",
3549
+ "name": "Domain",
3550
+ "required": true,
3551
+ "type": "string"
3552
+ },
3553
+ {
3554
+ "disabled": false,
3555
+ "document": "域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId",
3556
+ "example": "61",
3557
+ "member": "uint64",
3558
+ "name": "DomainId",
3559
+ "required": false,
3560
+ "type": "int"
3561
+ }
3562
+ ],
3563
+ "type": "object"
3564
+ },
3565
+ "DescribeDomainShareUserListResponse": {
3566
+ "document": "DescribeDomainShareUserList返回参数结构体",
3567
+ "members": [
3568
+ {
3569
+ "disabled": false,
3570
+ "document": "域名套餐信息",
3571
+ "example": "无",
3572
+ "member": "DomainShareUserInfo",
3573
+ "name": "DomainShareList",
3574
+ "type": "list",
3575
+ "value_allowed_null": false
3576
+ },
3577
+ {
3578
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3579
+ "member": "string",
3580
+ "name": "RequestId",
3581
+ "type": "string"
3582
+ }
3583
+ ],
3584
+ "type": "object"
3585
+ },
3534
3586
  "DescribeDomainWhoisRequest": {
3535
3587
  "document": "DescribeDomainWhois请求参数结构体",
3536
3588
  "members": [
@@ -5873,6 +5925,72 @@
5873
5925
  ],
5874
5926
  "usage": "out"
5875
5927
  },
5928
+ "DomainShareUserInfo": {
5929
+ "document": "域名共享信息",
5930
+ "members": [
5931
+ {
5932
+ "disabled": false,
5933
+ "document": "共享记录ID",
5934
+ "example": "21253",
5935
+ "member": "uint64",
5936
+ "name": "DomainShareId",
5937
+ "required": false,
5938
+ "type": "int",
5939
+ "value_allowed_null": false
5940
+ },
5941
+ {
5942
+ "disabled": false,
5943
+ "document": "共享模式。r-只读;w-可写;rw-可读写。\n注意:此字段可能返回 null,表示取不到有效值。",
5944
+ "example": "rw",
5945
+ "member": "string",
5946
+ "name": "Mode",
5947
+ "required": false,
5948
+ "type": "string",
5949
+ "value_allowed_null": true
5950
+ },
5951
+ {
5952
+ "disabled": false,
5953
+ "document": "共享到的用户昵称\n注意:此字段可能返回 null,表示取不到有效值。",
5954
+ "example": "张三",
5955
+ "member": "string",
5956
+ "name": "Nickname",
5957
+ "required": false,
5958
+ "type": "string",
5959
+ "value_allowed_null": true
5960
+ },
5961
+ {
5962
+ "disabled": false,
5963
+ "document": "共享到的用户UIN\n注意:此字段可能返回 null,表示取不到有效值。",
5964
+ "example": "700000283316",
5965
+ "member": "string",
5966
+ "name": "QCloudUIN",
5967
+ "required": false,
5968
+ "type": "string",
5969
+ "value_allowed_null": true
5970
+ },
5971
+ {
5972
+ "disabled": false,
5973
+ "document": "共享状态。enabled-有效;pause-无效。\n注意:此字段可能返回 null,表示取不到有效值。",
5974
+ "example": "enabled",
5975
+ "member": "string",
5976
+ "name": "Status",
5977
+ "required": false,
5978
+ "type": "string",
5979
+ "value_allowed_null": true
5980
+ },
5981
+ {
5982
+ "disabled": false,
5983
+ "document": "共享的子域名\n注意:此字段可能返回 null,表示取不到有效值。",
5984
+ "example": "api",
5985
+ "member": "string",
5986
+ "name": "SubDomain",
5987
+ "required": false,
5988
+ "type": "string",
5989
+ "value_allowed_null": true
5990
+ }
5991
+ ],
5992
+ "usage": "out"
5993
+ },
5876
5994
  "DownloadSnapshotRequest": {
5877
5995
  "document": "DownloadSnapshot请求参数结构体",
5878
5996
  "members": [
@@ -276,6 +276,14 @@
276
276
  "title": "获取域名共享信息"
277
277
  }
278
278
  ],
279
+ "DescribeDomainShareUserList": [
280
+ {
281
+ "document": "获取指定域名的已共享列表",
282
+ "input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDomainShareUserList\n<公共请求参数>\n\n{\n \"Domain\": \"example.com\"\n}",
283
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1dbb40a1-8834-43e2-bae0-c5e2d0823944\",\n \"DomainShareList\": [\n {\n \"DomainShareId\": 21253,\n \"Mode\": \"rw\",\n \"Nickname\": \"我的测试环境企业\",\n \"QCloudUIN\": \"700000283316\",\n \"Status\": \"enabled\",\n \"SubDomain\": \"\"\n }\n ]\n }\n}",
284
+ "title": "获取指定域名的已共享列表"
285
+ }
286
+ ],
279
287
  "DescribeDomainWhois": [
280
288
  {
281
289
  "document": "获取域名Whois信息",
@@ -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
  },