tccli 3.0.1312.1__py2.py3-none-any.whl → 3.0.1314.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 (45) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +164 -161
  3. tccli/services/autoscaling/v20180419/examples.json +13 -13
  4. tccli/services/batch/v20170312/api.json +1 -1
  5. tccli/services/bh/v20230418/api.json +152 -1
  6. tccli/services/bi/v20220105/api.json +19 -0
  7. tccli/services/cat/v20180409/api.json +9 -0
  8. tccli/services/cdb/v20170320/api.json +30 -9
  9. tccli/services/cdb/v20170320/examples.json +1 -1
  10. tccli/services/cfs/v20190719/api.json +92 -91
  11. tccli/services/cfs/v20190719/examples.json +7 -7
  12. tccli/services/cfw/v20190904/api.json +5 -7
  13. tccli/services/clb/v20180317/api.json +5 -5
  14. tccli/services/cvm/v20170312/api.json +9 -9
  15. tccli/services/cynosdb/v20190107/api.json +14 -4
  16. tccli/services/emr/v20190103/api.json +20 -0
  17. tccli/services/ess/v20201111/api.json +9 -0
  18. tccli/services/essbasic/v20210526/api.json +1 -1
  19. tccli/services/essbasic/v20210526/examples.json +6 -0
  20. tccli/services/lke/v20231130/api.json +1 -1
  21. tccli/services/mps/v20190612/api.json +1 -1
  22. tccli/services/postgres/postgres_client.py +0 -53
  23. tccli/services/postgres/v20170312/api.json +8 -51
  24. tccli/services/postgres/v20170312/examples.json +0 -14
  25. tccli/services/tbaas/tbaas_client.py +0 -53
  26. tccli/services/tbaas/v20180416/api.json +0 -133
  27. tccli/services/tbaas/v20180416/examples.json +0 -8
  28. tccli/services/teo/teo_client.py +53 -0
  29. tccli/services/teo/v20220901/api.json +496 -104
  30. tccli/services/teo/v20220901/examples.json +8 -0
  31. tccli/services/tke/v20180525/api.json +109 -85
  32. tccli/services/tms/v20201229/api.json +47 -59
  33. tccli/services/tmt/v20180321/api.json +68 -0
  34. tccli/services/tmt/v20180321/examples.json +2 -8
  35. tccli/services/trtc/v20190722/api.json +2 -2
  36. tccli/services/vpc/v20170312/api.json +52 -52
  37. tccli/services/vpc/v20170312/examples.json +4 -4
  38. tccli/services/wedata/v20210820/api.json +305 -1
  39. tccli/services/wedata/v20210820/examples.json +24 -0
  40. tccli/services/wedata/wedata_client.py +171 -12
  41. {tccli-3.0.1312.1.dist-info → tccli-3.0.1314.1.dist-info}/METADATA +2 -2
  42. {tccli-3.0.1312.1.dist-info → tccli-3.0.1314.1.dist-info}/RECORD +45 -45
  43. {tccli-3.0.1312.1.dist-info → tccli-3.0.1314.1.dist-info}/WHEEL +0 -0
  44. {tccli-3.0.1312.1.dist-info → tccli-3.0.1314.1.dist-info}/entry_points.txt +0 -0
  45. {tccli-3.0.1312.1.dist-info → tccli-3.0.1314.1.dist-info}/license_files/LICENSE +0 -0
@@ -537,58 +537,6 @@ def doDownloadUserCert(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
- def doGetLatesdTransactionList(args, parsed_globals):
541
- g_param = parse_global_arg(parsed_globals)
542
-
543
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
- cred = credential.CVMRoleCredential()
545
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
- cred = credential.STSAssumeRoleCredential(
547
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
- )
550
- 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):
551
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
- else:
553
- cred = credential.Credential(
554
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
- )
556
- http_profile = HttpProfile(
557
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
- reqMethod="POST",
559
- endpoint=g_param[OptionsDefine.Endpoint],
560
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
- )
562
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
- if g_param[OptionsDefine.Language]:
564
- profile.language = g_param[OptionsDefine.Language]
565
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
- client = mod.TbaasClient(cred, g_param[OptionsDefine.Region], profile)
567
- client._sdkVersion += ("_CLI_" + __version__)
568
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
- model = models.GetLatesdTransactionListRequest()
570
- model.from_json_string(json.dumps(args))
571
- start_time = time.time()
572
- while True:
573
- rsp = client.GetLatesdTransactionList(model)
574
- result = rsp.to_json_string()
575
- try:
576
- json_obj = json.loads(result)
577
- except TypeError as e:
578
- json_obj = json.loads(result.decode('utf-8')) # python3.3
579
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
- break
581
- cur_time = time.time()
582
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
- else:
587
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
-
591
-
592
540
  def doApplyUserCert(args, parsed_globals):
593
541
  g_param = parse_global_arg(parsed_globals)
594
542
 
@@ -1338,7 +1286,6 @@ ACTION_MAP = {
1338
1286
  "GetClusterSummary": doGetClusterSummary,
1339
1287
  "GetLatestTransactionList": doGetLatestTransactionList,
1340
1288
  "DownloadUserCert": doDownloadUserCert,
1341
- "GetLatesdTransactionList": doGetLatesdTransactionList,
1342
1289
  "ApplyUserCert": doApplyUserCert,
1343
1290
  "InvokeChainMakerContract": doInvokeChainMakerContract,
1344
1291
  "GetInvokeTx": doGetInvokeTx,
@@ -63,13 +63,6 @@
63
63
  "output": "GetInvokeTxResponse",
64
64
  "status": "online"
65
65
  },
66
- "GetLatesdTransactionList": {
67
- "document": "获取最新交易列表(已废弃)",
68
- "input": "GetLatesdTransactionListRequest",
69
- "name": "获取最新交易列表(已废弃)",
70
- "output": "GetLatesdTransactionListResponse",
71
- "status": "online"
72
- },
73
66
  "GetLatestTransactionList": {
74
67
  "document": "获取fabric最新交易列表",
75
68
  "input": "GetLatestTransactionListRequest",
@@ -1496,132 +1489,6 @@
1496
1489
  ],
1497
1490
  "type": "object"
1498
1491
  },
1499
- "GetLatesdTransactionListRequest": {
1500
- "document": "GetLatesdTransactionList请求参数结构体",
1501
- "members": [
1502
- {
1503
- "disabled": false,
1504
- "document": "模块名称,固定字段:transaction",
1505
- "example": "transaction",
1506
- "member": "string",
1507
- "name": "Module",
1508
- "required": true,
1509
- "type": "string"
1510
- },
1511
- {
1512
- "disabled": false,
1513
- "document": "操作名称,固定字段:latest_transaction_list",
1514
- "example": "latest_transaction_list",
1515
- "member": "string",
1516
- "name": "Operation",
1517
- "required": true,
1518
- "type": "string"
1519
- },
1520
- {
1521
- "disabled": false,
1522
- "document": "组织ID,固定字段:0",
1523
- "example": "0",
1524
- "member": "uint64",
1525
- "name": "GroupId",
1526
- "required": true,
1527
- "type": "int"
1528
- },
1529
- {
1530
- "disabled": false,
1531
- "document": "通道ID,固定字段:0",
1532
- "example": "0",
1533
- "member": "uint64",
1534
- "name": "ChannelId",
1535
- "required": true,
1536
- "type": "int"
1537
- },
1538
- {
1539
- "disabled": false,
1540
- "document": "获取的最新交易的区块数量,取值范围1~5",
1541
- "example": "5",
1542
- "member": "uint64",
1543
- "name": "LatestBlockNumber",
1544
- "required": true,
1545
- "type": "int"
1546
- },
1547
- {
1548
- "disabled": false,
1549
- "document": "调用接口的组织名称,可以在组织管理列表中获取当前组织的名称",
1550
- "example": "liulanOrg",
1551
- "member": "string",
1552
- "name": "GroupName",
1553
- "required": true,
1554
- "type": "string"
1555
- },
1556
- {
1557
- "disabled": false,
1558
- "document": "需要查询的通道名称,可在通道详情或列表中获取",
1559
- "example": "kylotst",
1560
- "member": "string",
1561
- "name": "ChannelName",
1562
- "required": true,
1563
- "type": "string"
1564
- },
1565
- {
1566
- "disabled": false,
1567
- "document": "区块链网络ID,可在区块链网络详情或列表中获取",
1568
- "example": "251005746bc0f03q8u93j",
1569
- "member": "string",
1570
- "name": "ClusterId",
1571
- "required": true,
1572
- "type": "string"
1573
- },
1574
- {
1575
- "disabled": false,
1576
- "document": "需要获取的起始交易偏移",
1577
- "example": "0",
1578
- "member": "uint64",
1579
- "name": "Offset",
1580
- "required": false,
1581
- "type": "int"
1582
- },
1583
- {
1584
- "disabled": false,
1585
- "document": "需要获取的交易数量",
1586
- "example": "10",
1587
- "member": "uint64",
1588
- "name": "Limit",
1589
- "required": false,
1590
- "type": "int"
1591
- }
1592
- ],
1593
- "type": "object"
1594
- },
1595
- "GetLatesdTransactionListResponse": {
1596
- "document": "GetLatesdTransactionList返回参数结构体",
1597
- "members": [
1598
- {
1599
- "disabled": false,
1600
- "document": "交易总数量",
1601
- "example": "5",
1602
- "member": "uint64",
1603
- "name": "TotalCount",
1604
- "type": "int",
1605
- "value_allowed_null": false
1606
- },
1607
- {
1608
- "disabled": false,
1609
- "document": "交易列表",
1610
- "example": "无",
1611
- "member": "TransactionItem",
1612
- "name": "TransactionList",
1613
- "type": "list",
1614
- "value_allowed_null": false
1615
- },
1616
- {
1617
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1618
- "member": "string",
1619
- "name": "RequestId",
1620
- "type": "string"
1621
- }
1622
- ],
1623
- "type": "object"
1624
- },
1625
1492
  "GetLatestTransactionListRequest": {
1626
1493
  "document": "GetLatestTransactionList请求参数结构体",
1627
1494
  "members": [
@@ -72,14 +72,6 @@
72
72
  "title": "查询异步模式下Invoke接口的调用结果"
73
73
  }
74
74
  ],
75
- "GetLatesdTransactionList": [
76
- {
77
- "document": "获取最新5个区块的交易列表",
78
- "input": "https://tbaas.tencentcloudapi.com/?Action=GetLatesdTransactionList\n&Module=transaction\n&Operation=latest_transaction_list\n&GroupId=0\n&ChannelId=0\n&LatestBlockNumber=5\n&GroupName=liulanOrg\n&ChannelName=kylotst\n&ClusterId=251005746bc0f03q8u93j\n&Offset=0\n&Limit=10\n&<公共请求参数>",
79
- "output": "{\n \"Response\": {\n \"RequestId\": \"68cd2009-6a2b-481e-850e-08522a546221\",\n \"TotalCount\": 5,\n \"TransactionList\": [\n {\n \"BlockHeight\": 6,\n \"BlockId\": 5,\n \"CreateOrgName\": \"liulanOrg\",\n \"CreateTime\": \"2019-04-24 11:39:52\",\n \"TransactionHash\": \"da6a44da08bda02fb94b2b3fb684350a7f636044f348dbed9804f1dc143d2a01\",\n \"TransactionId\": \"4ea1f77d1c2622f6672e37c611a0542dc9e21b15298b03de4127df454a17a457\",\n \"TransactionStatus\": \"VALID\",\n \"TransactionType\": \"ENDORSER_TRANSACTION\"\n },\n {\n \"BlockHeight\": 5,\n \"BlockId\": 4,\n \"CreateOrgName\": \"liulanOrg\",\n \"CreateTime\": \"2019-04-24 11:39:25\",\n \"TransactionHash\": \"6e8a88088e1c0b111f7ff0f74e7891a15c5c32cd1fa68d8e5f8d11637fd4ca04\",\n \"TransactionId\": \"9f2e40a4443d9928ed9b8266e893ac90ed00381227994281833ecd4393d40b15\",\n \"TransactionStatus\": \"VALID\",\n \"TransactionType\": \"ENDORSER_TRANSACTION\"\n },\n {\n \"BlockHeight\": 4,\n \"BlockId\": 3,\n \"CreateOrgName\": \"liulanOrg\",\n \"CreateTime\": \"2019-04-23 19:15:59\",\n \"TransactionHash\": \"421234c8ad48052f202a262f1fe739b963831c423b2d0028ba7496eca837cac9\",\n \"TransactionId\": \"bf2cdfd82a7b9a9a5ce135ef41687f3f04496c41575e2994fae99b58bec80754\",\n \"TransactionStatus\": \"VALID\",\n \"TransactionType\": \"ENDORSER_TRANSACTION\"\n },\n {\n \"BlockHeight\": 3,\n \"BlockId\": 2,\n \"CreateOrgName\": \"liulanOrg\",\n \"CreateTime\": \"2019-04-23 19:14:23\",\n \"TransactionHash\": \"57407887234a4645c7b339aea5e94d3cf5f017f5eb05037a2c12fecf9d4fd6ae\",\n \"TransactionId\": \"71594843087d3435c2aa74f69d9d995ed97fff4951778b86956c2c069691fb54\",\n \"TransactionStatus\": \"VALID\",\n \"TransactionType\": \"ENDORSER_TRANSACTION\"\n },\n {\n \"BlockHeight\": 2,\n \"BlockId\": 1,\n \"CreateOrgName\": \"liulanOrg\",\n \"CreateTime\": \"2019-04-23 14:34:29\",\n \"TransactionHash\": \"9d798fe9f0eeaf5193ec1f9dc21e930bf3232820ddc1db18625b9f02bd35f54a\",\n \"TransactionId\": \"4ee11735f87b34673ea88c162e71b20fb71f798e89231e45bc0fbc6b9f09d02c\",\n \"TransactionStatus\": \"VALID\",\n \"TransactionType\": \"ENDORSER_TRANSACTION\"\n }\n ]\n }\n}",
80
- "title": "获取最新5个区块的交易列表"
81
- }
82
- ],
83
75
  "GetLatestTransactionList": [
84
76
  {
85
77
  "document": "获取fabric最新交易列表",
@@ -4491,6 +4491,58 @@ def doDescribeCustomErrorPages(args, parsed_globals):
4491
4491
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4492
4492
 
4493
4493
 
4494
+ def doDescribePlans(args, parsed_globals):
4495
+ g_param = parse_global_arg(parsed_globals)
4496
+
4497
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4498
+ cred = credential.CVMRoleCredential()
4499
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4500
+ cred = credential.STSAssumeRoleCredential(
4501
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4502
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4503
+ )
4504
+ 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):
4505
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4506
+ else:
4507
+ cred = credential.Credential(
4508
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4509
+ )
4510
+ http_profile = HttpProfile(
4511
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4512
+ reqMethod="POST",
4513
+ endpoint=g_param[OptionsDefine.Endpoint],
4514
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4515
+ )
4516
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4517
+ if g_param[OptionsDefine.Language]:
4518
+ profile.language = g_param[OptionsDefine.Language]
4519
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4520
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
4521
+ client._sdkVersion += ("_CLI_" + __version__)
4522
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4523
+ model = models.DescribePlansRequest()
4524
+ model.from_json_string(json.dumps(args))
4525
+ start_time = time.time()
4526
+ while True:
4527
+ rsp = client.DescribePlans(model)
4528
+ result = rsp.to_json_string()
4529
+ try:
4530
+ json_obj = json.loads(result)
4531
+ except TypeError as e:
4532
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4533
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4534
+ break
4535
+ cur_time = time.time()
4536
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4537
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4538
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4539
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4540
+ else:
4541
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4542
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4543
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4544
+
4545
+
4494
4546
  def doDeleteLoadBalancer(args, parsed_globals):
4495
4547
  g_param = parse_global_arg(parsed_globals)
4496
4548
 
@@ -7502,6 +7554,7 @@ ACTION_MAP = {
7502
7554
  "ModifyFunctionRule": doModifyFunctionRule,
7503
7555
  "DescribeAvailablePlans": doDescribeAvailablePlans,
7504
7556
  "DescribeCustomErrorPages": doDescribeCustomErrorPages,
7557
+ "DescribePlans": doDescribePlans,
7505
7558
  "DeleteLoadBalancer": doDeleteLoadBalancer,
7506
7559
  "DeleteContentIdentifier": doDeleteContentIdentifier,
7507
7560
  "DescribeRulesSetting": doDescribeRulesSetting,