tccli 3.0.1047.1__py2.py3-none-any.whl → 3.0.1049.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 (69) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
  3. tccli/examples/billing/v20180709/DescribeSavingPlanResourceInfo.md +24 -0
  4. tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
  5. tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
  6. tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
  7. tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
  8. tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
  9. tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
  10. tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
  11. tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
  12. tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
  13. tccli/examples/emr/v20190103/DescribeInsightList.md +41 -0
  14. tccli/examples/ess/v20201111/CreateFlowByFiles.md +155 -0
  15. tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +9 -9
  16. tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +44 -2
  17. tccli/examples/iotvideo/v20211125/DeleteCloudStorageEvent.md +2 -1
  18. tccli/examples/iotvideo/v20211125/DescribeCloudStorageOrder.md +2 -1
  19. tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
  20. tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
  21. tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
  22. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
  23. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
  24. tccli/examples/wedata/v20210820/DeleteCustomFunction.md +11 -8
  25. tccli/services/antiddos/antiddos_client.py +53 -0
  26. tccli/services/antiddos/v20200309/api.json +439 -0
  27. tccli/services/antiddos/v20200309/examples.json +8 -0
  28. tccli/services/billing/billing_client.py +53 -0
  29. tccli/services/billing/v20180709/api.json +71 -0
  30. tccli/services/billing/v20180709/examples.json +8 -0
  31. tccli/services/cfg/v20210820/api.json +21 -10
  32. tccli/services/ckafka/v20190819/api.json +6 -5
  33. tccli/services/ckafka/v20190819/examples.json +1 -1
  34. tccli/services/cls/v20201016/api.json +52 -23
  35. tccli/services/csip/csip_client.py +53 -0
  36. tccli/services/csip/v20221121/api.json +43 -0
  37. tccli/services/csip/v20221121/examples.json +8 -0
  38. tccli/services/cvm/v20170312/api.json +20 -20
  39. tccli/services/cynosdb/v20190107/api.json +415 -87
  40. tccli/services/cynosdb/v20190107/examples.json +12 -12
  41. tccli/services/emr/emr_client.py +53 -0
  42. tccli/services/emr/v20190103/api.json +228 -0
  43. tccli/services/emr/v20190103/examples.json +8 -0
  44. tccli/services/ess/v20201111/api.json +10 -10
  45. tccli/services/ess/v20201111/examples.json +15 -3
  46. tccli/services/essbasic/v20210526/api.json +5 -5
  47. tccli/services/essbasic/v20210526/examples.json +8 -2
  48. tccli/services/iotvideo/v20211125/api.json +28 -0
  49. tccli/services/iotvideo/v20211125/examples.json +2 -2
  50. tccli/services/live/v20180801/api.json +3 -3
  51. tccli/services/monitor/v20180724/api.json +1 -1
  52. tccli/services/oceanus/v20190422/api.json +32 -3
  53. tccli/services/oceanus/v20190422/examples.json +1 -1
  54. tccli/services/privatedns/v20201028/api.json +29 -19
  55. tccli/services/ssl/ssl_client.py +0 -53
  56. tccli/services/ssl/v20191205/api.json +0 -99
  57. tccli/services/ssl/v20191205/examples.json +0 -8
  58. tccli/services/teo/v20220901/api.json +14 -3
  59. tccli/services/teo/v20220901/examples.json +1 -1
  60. tccli/services/trocket/trocket_client.py +171 -12
  61. tccli/services/trocket/v20230308/api.json +492 -0
  62. tccli/services/trocket/v20230308/examples.json +30 -0
  63. tccli/services/wedata/v20210820/api.json +403 -49
  64. tccli/services/wedata/v20210820/examples.json +4 -4
  65. {tccli-3.0.1047.1.dist-info → tccli-3.0.1049.1.dist-info}/METADATA +2 -2
  66. {tccli-3.0.1047.1.dist-info → tccli-3.0.1049.1.dist-info}/RECORD +69 -62
  67. {tccli-3.0.1047.1.dist-info → tccli-3.0.1049.1.dist-info}/WHEEL +0 -0
  68. {tccli-3.0.1047.1.dist-info → tccli-3.0.1049.1.dist-info}/entry_points.txt +0 -0
  69. {tccli-3.0.1047.1.dist-info → tccli-3.0.1049.1.dist-info}/license_files/LICENSE +0 -0
@@ -259,6 +259,13 @@
259
259
  "output": "DeleteWaterPrintKeyResponse",
260
260
  "status": "online"
261
261
  },
262
+ "DescribeBGPIPL7Rules": {
263
+ "document": "高防IP获取7层规则",
264
+ "input": "DescribeBGPIPL7RulesRequest",
265
+ "name": "高防IP获取7层转发规则",
266
+ "output": "DescribeBGPIPL7RulesResponse",
267
+ "status": "online"
268
+ },
262
269
  "DescribeBasicDeviceStatus": {
263
270
  "document": "获取基础防护攻击状态",
264
271
  "input": "DescribeBasicDeviceStatusRequest",
@@ -1316,6 +1323,309 @@
1316
1323
  ],
1317
1324
  "usage": "out"
1318
1325
  },
1326
+ "BGPIPL7RuleEntry": {
1327
+ "document": "L7规则",
1328
+ "members": [
1329
+ {
1330
+ "disabled": false,
1331
+ "document": "转发协议,取值[http, https]",
1332
+ "example": "无",
1333
+ "member": "string",
1334
+ "name": "Protocol",
1335
+ "output_required": true,
1336
+ "required": true,
1337
+ "type": "string",
1338
+ "value_allowed_null": false
1339
+ },
1340
+ {
1341
+ "disabled": false,
1342
+ "document": "转发域名",
1343
+ "example": "无",
1344
+ "member": "string",
1345
+ "name": "Domain",
1346
+ "output_required": true,
1347
+ "required": true,
1348
+ "type": "string",
1349
+ "value_allowed_null": false
1350
+ },
1351
+ {
1352
+ "disabled": false,
1353
+ "document": "负载均衡方式,取值[1(加权轮询)]",
1354
+ "example": "无",
1355
+ "member": "uint64",
1356
+ "name": "LbType",
1357
+ "output_required": true,
1358
+ "required": true,
1359
+ "type": "int",
1360
+ "value_allowed_null": false
1361
+ },
1362
+ {
1363
+ "disabled": false,
1364
+ "document": "会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]",
1365
+ "example": "无",
1366
+ "member": "uint64",
1367
+ "name": "KeepEnable",
1368
+ "output_required": true,
1369
+ "required": true,
1370
+ "type": "int",
1371
+ "value_allowed_null": false
1372
+ },
1373
+ {
1374
+ "disabled": false,
1375
+ "document": "会话保持时间,单位秒",
1376
+ "example": "无",
1377
+ "member": "uint64",
1378
+ "name": "KeepTime",
1379
+ "output_required": true,
1380
+ "required": true,
1381
+ "type": "int",
1382
+ "value_allowed_null": false
1383
+ },
1384
+ {
1385
+ "disabled": false,
1386
+ "document": "回源方式,取值[1(域名回源),2(IP回源)]",
1387
+ "example": "无",
1388
+ "member": "uint64",
1389
+ "name": "SourceType",
1390
+ "output_required": true,
1391
+ "required": true,
1392
+ "type": "int",
1393
+ "value_allowed_null": false
1394
+ },
1395
+ {
1396
+ "disabled": false,
1397
+ "document": "回源列表",
1398
+ "example": "无",
1399
+ "member": "L4RuleSource",
1400
+ "name": "SourceList",
1401
+ "output_required": true,
1402
+ "required": true,
1403
+ "type": "list",
1404
+ "value_allowed_null": false
1405
+ },
1406
+ {
1407
+ "disabled": false,
1408
+ "document": "区域码",
1409
+ "example": "无",
1410
+ "member": "uint64",
1411
+ "name": "Region",
1412
+ "output_required": true,
1413
+ "required": false,
1414
+ "type": "int",
1415
+ "value_allowed_null": false
1416
+ },
1417
+ {
1418
+ "disabled": false,
1419
+ "document": "资源Id",
1420
+ "example": "无",
1421
+ "member": "string",
1422
+ "name": "Id",
1423
+ "output_required": true,
1424
+ "required": false,
1425
+ "type": "string",
1426
+ "value_allowed_null": false
1427
+ },
1428
+ {
1429
+ "disabled": false,
1430
+ "document": "资源Ip",
1431
+ "example": "无",
1432
+ "member": "string",
1433
+ "name": "Ip",
1434
+ "output_required": true,
1435
+ "required": false,
1436
+ "type": "string",
1437
+ "value_allowed_null": false
1438
+ },
1439
+ {
1440
+ "disabled": false,
1441
+ "document": "规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;",
1442
+ "example": "无",
1443
+ "member": "string",
1444
+ "name": "RuleId",
1445
+ "output_required": true,
1446
+ "required": false,
1447
+ "type": "string",
1448
+ "value_allowed_null": false
1449
+ },
1450
+ {
1451
+ "disabled": false,
1452
+ "document": "规则描述",
1453
+ "example": "无",
1454
+ "member": "string",
1455
+ "name": "RuleName",
1456
+ "output_required": true,
1457
+ "required": false,
1458
+ "type": "string",
1459
+ "value_allowed_null": false
1460
+ },
1461
+ {
1462
+ "disabled": false,
1463
+ "document": "证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0",
1464
+ "example": "无",
1465
+ "member": "uint64",
1466
+ "name": "CertType",
1467
+ "output_required": true,
1468
+ "required": false,
1469
+ "type": "int",
1470
+ "value_allowed_null": false
1471
+ },
1472
+ {
1473
+ "disabled": false,
1474
+ "document": "当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID",
1475
+ "example": "无",
1476
+ "member": "string",
1477
+ "name": "SSLId",
1478
+ "output_required": true,
1479
+ "required": false,
1480
+ "type": "string",
1481
+ "value_allowed_null": false
1482
+ },
1483
+ {
1484
+ "disabled": false,
1485
+ "document": "当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)",
1486
+ "example": "无",
1487
+ "member": "string",
1488
+ "name": "Cert",
1489
+ "output_required": true,
1490
+ "required": false,
1491
+ "type": "string",
1492
+ "value_allowed_null": false
1493
+ },
1494
+ {
1495
+ "disabled": false,
1496
+ "document": "当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)",
1497
+ "example": "无",
1498
+ "member": "string",
1499
+ "name": "PrivateKey",
1500
+ "output_required": true,
1501
+ "required": false,
1502
+ "type": "string",
1503
+ "value_allowed_null": false
1504
+ },
1505
+ {
1506
+ "disabled": false,
1507
+ "document": "规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]",
1508
+ "example": "无",
1509
+ "member": "uint64",
1510
+ "name": "Status",
1511
+ "output_required": true,
1512
+ "required": false,
1513
+ "type": "int",
1514
+ "value_allowed_null": false
1515
+ },
1516
+ {
1517
+ "disabled": false,
1518
+ "document": "cc防护状态,取值[0(关闭), 1(开启)]",
1519
+ "example": "无",
1520
+ "member": "uint64",
1521
+ "name": "CCStatus",
1522
+ "output_required": true,
1523
+ "required": false,
1524
+ "type": "int",
1525
+ "value_allowed_null": false
1526
+ },
1527
+ {
1528
+ "disabled": false,
1529
+ "document": "HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]",
1530
+ "example": "无",
1531
+ "member": "uint64",
1532
+ "name": "CCEnable",
1533
+ "output_required": true,
1534
+ "required": false,
1535
+ "type": "int",
1536
+ "value_allowed_null": false
1537
+ },
1538
+ {
1539
+ "disabled": false,
1540
+ "document": "HTTPS协议的CC防护阈值(已废弃)",
1541
+ "example": "无",
1542
+ "member": "int64",
1543
+ "name": "CCThreshold",
1544
+ "output_required": true,
1545
+ "required": false,
1546
+ "type": "int",
1547
+ "value_allowed_null": false
1548
+ },
1549
+ {
1550
+ "disabled": false,
1551
+ "document": "HTTPS协议的CC防护等级",
1552
+ "example": "无",
1553
+ "member": "string",
1554
+ "name": "CCLevel",
1555
+ "output_required": true,
1556
+ "required": false,
1557
+ "type": "string",
1558
+ "value_allowed_null": false
1559
+ },
1560
+ {
1561
+ "disabled": false,
1562
+ "document": "修改时间",
1563
+ "example": "无",
1564
+ "member": "datetime",
1565
+ "name": "ModifyTime",
1566
+ "output_required": true,
1567
+ "required": false,
1568
+ "type": "string",
1569
+ "value_allowed_null": false
1570
+ },
1571
+ {
1572
+ "disabled": false,
1573
+ "document": "是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭",
1574
+ "example": "无",
1575
+ "member": "uint64",
1576
+ "name": "HttpsToHttpEnable",
1577
+ "output_required": true,
1578
+ "required": false,
1579
+ "type": "int",
1580
+ "value_allowed_null": false
1581
+ },
1582
+ {
1583
+ "disabled": false,
1584
+ "document": "接入端口值\n注意:此字段可能返回 null,表示取不到有效值。",
1585
+ "example": "无",
1586
+ "member": "uint64",
1587
+ "name": "VirtualPort",
1588
+ "output_required": true,
1589
+ "required": false,
1590
+ "type": "int",
1591
+ "value_allowed_null": true
1592
+ },
1593
+ {
1594
+ "disabled": false,
1595
+ "document": "http强制跳转https,1表示打开,0表示关闭",
1596
+ "example": "无",
1597
+ "member": "uint64",
1598
+ "name": "RewriteHttps",
1599
+ "output_required": true,
1600
+ "required": false,
1601
+ "type": "int",
1602
+ "value_allowed_null": false
1603
+ },
1604
+ {
1605
+ "disabled": false,
1606
+ "document": "规则配置失败时的详细错误原因(仅当Status=2时有效),1001证书不存在,1002证书获取失败,1003证书上传失败,1004证书已过期",
1607
+ "example": "无",
1608
+ "member": "uint64",
1609
+ "name": "ErrCode",
1610
+ "output_required": true,
1611
+ "required": false,
1612
+ "type": "int",
1613
+ "value_allowed_null": false
1614
+ },
1615
+ {
1616
+ "disabled": false,
1617
+ "document": "版本\n注意:此字段可能返回 null,表示取不到有效值。",
1618
+ "example": "2",
1619
+ "member": "uint64",
1620
+ "name": "Version",
1621
+ "output_required": true,
1622
+ "required": false,
1623
+ "type": "int",
1624
+ "value_allowed_null": true
1625
+ }
1626
+ ],
1627
+ "usage": "both"
1628
+ },
1319
1629
  "BGPInstance": {
1320
1630
  "document": "高防包资产实例信息",
1321
1631
  "members": [
@@ -4430,6 +4740,135 @@
4430
4740
  ],
4431
4741
  "type": "object"
4432
4742
  },
4743
+ "DescribeBGPIPL7RulesRequest": {
4744
+ "document": "DescribeBGPIPL7Rules请求参数结构体",
4745
+ "members": [
4746
+ {
4747
+ "disabled": false,
4748
+ "document": "DDoS防护子产品代号(bgpip表示高防IP)",
4749
+ "example": "bgpip",
4750
+ "member": "string",
4751
+ "name": "Business",
4752
+ "required": true,
4753
+ "type": "string"
4754
+ },
4755
+ {
4756
+ "disabled": false,
4757
+ "document": "状态搜索,选填,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]",
4758
+ "example": "无",
4759
+ "member": "uint64",
4760
+ "name": "StatusList",
4761
+ "required": false,
4762
+ "type": "list"
4763
+ },
4764
+ {
4765
+ "disabled": false,
4766
+ "document": "域名搜索,选填,当需要搜索域名请填写",
4767
+ "example": "无",
4768
+ "member": "string",
4769
+ "name": "Domain",
4770
+ "required": false,
4771
+ "type": "string"
4772
+ },
4773
+ {
4774
+ "disabled": false,
4775
+ "document": "IP搜索,选填,当需要搜索IP请填写",
4776
+ "example": "1.1.1.1",
4777
+ "member": "string",
4778
+ "name": "Ip",
4779
+ "required": false,
4780
+ "type": "string"
4781
+ },
4782
+ {
4783
+ "disabled": false,
4784
+ "document": "一页条数,默认值100,最大值100,超过100最大返回100条",
4785
+ "example": "无",
4786
+ "member": "uint64",
4787
+ "name": "Limit",
4788
+ "required": false,
4789
+ "type": "int"
4790
+ },
4791
+ {
4792
+ "disabled": false,
4793
+ "document": "规则偏移量,取值为(页码-1)*一页条数",
4794
+ "example": "无",
4795
+ "member": "uint64",
4796
+ "name": "Offset",
4797
+ "required": false,
4798
+ "type": "int"
4799
+ },
4800
+ {
4801
+ "disabled": false,
4802
+ "document": "转发协议搜索,选填,取值[http, https, http/https]",
4803
+ "example": "无",
4804
+ "member": "string",
4805
+ "name": "ProtocolList",
4806
+ "required": false,
4807
+ "type": "list"
4808
+ },
4809
+ {
4810
+ "disabled": false,
4811
+ "document": "高防IP实例的Cname",
4812
+ "example": "abcdefg",
4813
+ "member": "string",
4814
+ "name": "Cname",
4815
+ "required": false,
4816
+ "type": "string"
4817
+ },
4818
+ {
4819
+ "disabled": false,
4820
+ "document": "默认为false,当为true时,将不对各个规则做策略检查,直接导出所有规则",
4821
+ "example": "无",
4822
+ "member": "bool",
4823
+ "name": "Export",
4824
+ "required": false,
4825
+ "type": "bool"
4826
+ }
4827
+ ],
4828
+ "type": "object"
4829
+ },
4830
+ "DescribeBGPIPL7RulesResponse": {
4831
+ "document": "DescribeBGPIPL7Rules返回参数结构体",
4832
+ "members": [
4833
+ {
4834
+ "disabled": false,
4835
+ "document": "转发规则列表",
4836
+ "example": "无",
4837
+ "member": "BGPIPL7RuleEntry",
4838
+ "name": "Rules",
4839
+ "output_required": true,
4840
+ "type": "list",
4841
+ "value_allowed_null": false
4842
+ },
4843
+ {
4844
+ "disabled": false,
4845
+ "document": "健康检查配置列表",
4846
+ "example": "无",
4847
+ "member": "L7RuleHealth",
4848
+ "name": "Healths",
4849
+ "output_required": true,
4850
+ "type": "list",
4851
+ "value_allowed_null": false
4852
+ },
4853
+ {
4854
+ "disabled": false,
4855
+ "document": "总规则数",
4856
+ "example": "1",
4857
+ "member": "uint64",
4858
+ "name": "Total",
4859
+ "output_required": true,
4860
+ "type": "int",
4861
+ "value_allowed_null": false
4862
+ },
4863
+ {
4864
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
4865
+ "member": "string",
4866
+ "name": "RequestId",
4867
+ "type": "string"
4868
+ }
4869
+ ],
4870
+ "type": "object"
4871
+ },
4433
4872
  "DescribeBasicDeviceStatusRequest": {
4434
4873
  "document": "DescribeBasicDeviceStatus请求参数结构体",
4435
4874
  "members": [
@@ -296,6 +296,14 @@
296
296
  "title": "删除DDoS防护的水印防护密钥"
297
297
  }
298
298
  ],
299
+ "DescribeBGPIPL7Rules": [
300
+ {
301
+ "document": "",
302
+ "input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBGPIPL7Rules\n<公共请求参数>\n\n{\n \"StatusList\": [\n 1\n ],\n \"Domain\": \"abc\",\n \"Business\": \"abc\",\n \"Ip\": \"abc\",\n \"Limit\": 1,\n \"Offset\": 1,\n \"ProtocolList\": [\n \"abc\"\n ],\n \"Cname\": \"abc\",\n \"Export\": true\n}",
303
+ "output": "{\n \"Response\": {\n \"Rules\": [\n {\n \"Region\": 1,\n \"Id\": \"abc\",\n \"Ip\": \"abc\",\n \"RuleId\": \"abc\",\n \"RuleName\": \"abc\",\n \"Protocol\": \"abc\",\n \"Domain\": \"abc\",\n \"LbType\": 1,\n \"KeepEnable\": 1,\n \"KeepTime\": 1,\n \"SourceType\": 1,\n \"CertType\": 1,\n \"SSLId\": \"abc\",\n \"Cert\": \"abc\",\n \"PrivateKey\": \"abc\",\n \"SourceList\": [\n {\n \"Source\": \"abc\",\n \"Weight\": 1,\n \"Port\": 1,\n \"Backup\": 1\n }\n ],\n \"Status\": 1,\n \"CCStatus\": 1,\n \"CCEnable\": 1,\n \"CCThreshold\": 1,\n \"CCLevel\": \"abc\",\n \"ModifyTime\": \"2020-09-22 00:00:00\",\n \"HttpsToHttpEnable\": 1,\n \"VirtualPort\": 1,\n \"RewriteHttps\": 1,\n \"ErrCode\": 1,\n \"Version\": 1\n }\n ],\n \"Healths\": [\n {\n \"Status\": 1,\n \"Enable\": 1,\n \"RuleId\": \"abc\",\n \"Url\": \"abc\",\n \"Interval\": 1,\n \"AliveNum\": 1,\n \"KickNum\": 1,\n \"Method\": \"abc\",\n \"StatusCode\": 1,\n \"ProtocolFlag\": 1,\n \"PassiveEnable\": 1,\n \"BlockInter\": 1,\n \"FailedCountInter\": 1,\n \"FailedThreshold\": 1,\n \"PassiveStatusCode\": 1,\n \"PassiveStatus\": 1\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"abc\"\n }\n}",
304
+ "title": "请求示例"
305
+ }
306
+ ],
299
307
  "DescribeBasicDeviceStatus": [
300
308
  {
301
309
  "document": "无",
@@ -1369,6 +1369,58 @@ def doDescribeBillSummaryForOrganization(args, parsed_globals):
1369
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1370
 
1371
1371
 
1372
+ def doDescribeSavingPlanResourceInfo(args, parsed_globals):
1373
+ g_param = parse_global_arg(parsed_globals)
1374
+
1375
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1376
+ cred = credential.CVMRoleCredential()
1377
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
+ cred = credential.STSAssumeRoleCredential(
1379
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1381
+ )
1382
+ 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):
1383
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1384
+ else:
1385
+ cred = credential.Credential(
1386
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1387
+ )
1388
+ http_profile = HttpProfile(
1389
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1390
+ reqMethod="POST",
1391
+ endpoint=g_param[OptionsDefine.Endpoint],
1392
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1393
+ )
1394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1395
+ if g_param[OptionsDefine.Language]:
1396
+ profile.language = g_param[OptionsDefine.Language]
1397
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1398
+ client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
1399
+ client._sdkVersion += ("_CLI_" + __version__)
1400
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
+ model = models.DescribeSavingPlanResourceInfoRequest()
1402
+ model.from_json_string(json.dumps(args))
1403
+ start_time = time.time()
1404
+ while True:
1405
+ rsp = client.DescribeSavingPlanResourceInfo(model)
1406
+ result = rsp.to_json_string()
1407
+ try:
1408
+ json_obj = json.loads(result)
1409
+ except TypeError as e:
1410
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1411
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1412
+ break
1413
+ cur_time = time.time()
1414
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1415
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1416
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1417
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1418
+ else:
1419
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1420
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1421
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
+
1423
+
1372
1424
  def doDescribeTagList(args, parsed_globals):
1373
1425
  g_param = parse_global_arg(parsed_globals)
1374
1426
 
@@ -1770,6 +1822,7 @@ ACTION_MAP = {
1770
1822
  "DescribeBillSummaryByProject": doDescribeBillSummaryByProject,
1771
1823
  "DescribeBillSummaryByTag": doDescribeBillSummaryByTag,
1772
1824
  "DescribeBillSummaryForOrganization": doDescribeBillSummaryForOrganization,
1825
+ "DescribeSavingPlanResourceInfo": doDescribeSavingPlanResourceInfo,
1773
1826
  "DescribeTagList": doDescribeTagList,
1774
1827
  "CreateSavingPlanOrder": doCreateSavingPlanOrder,
1775
1828
  "DeleteAllocationTag": doDeleteAllocationTag,
@@ -196,6 +196,13 @@
196
196
  "output": "DescribeSavingPlanOverviewResponse",
197
197
  "status": "online"
198
198
  },
199
+ "DescribeSavingPlanResourceInfo": {
200
+ "document": "查询节省计划详情",
201
+ "input": "DescribeSavingPlanResourceInfoRequest",
202
+ "name": "查询节省计划可共享列表详情",
203
+ "output": "DescribeSavingPlanResourceInfoResponse",
204
+ "status": "online"
205
+ },
199
206
  "DescribeSavingPlanUsage": {
200
207
  "document": "查用当前用户明细节省计划查询时段内的使用情况",
201
208
  "input": "DescribeSavingPlanUsageRequest",
@@ -6743,6 +6750,70 @@
6743
6750
  ],
6744
6751
  "type": "object"
6745
6752
  },
6753
+ "DescribeSavingPlanResourceInfoRequest": {
6754
+ "document": "DescribeSavingPlanResourceInfo请求参数结构体",
6755
+ "members": [
6756
+ {
6757
+ "disabled": false,
6758
+ "document": "数量,最大值为100",
6759
+ "example": "10",
6760
+ "member": "int64",
6761
+ "name": "Limit",
6762
+ "required": true,
6763
+ "type": "int"
6764
+ },
6765
+ {
6766
+ "disabled": false,
6767
+ "document": "偏移量",
6768
+ "example": "1",
6769
+ "member": "uint64",
6770
+ "name": "Offset",
6771
+ "required": true,
6772
+ "type": "int"
6773
+ },
6774
+ {
6775
+ "disabled": false,
6776
+ "document": "购买开始时间,格式yyyy-MM-dd",
6777
+ "example": "2023-06-01",
6778
+ "member": "string",
6779
+ "name": "CreateStartDate",
6780
+ "required": false,
6781
+ "type": "string"
6782
+ },
6783
+ {
6784
+ "disabled": false,
6785
+ "document": "购买结束时间,格式yyyy-MM-dd",
6786
+ "example": "2023-06-30",
6787
+ "member": "string",
6788
+ "name": "CreateEndDate",
6789
+ "required": false,
6790
+ "type": "string"
6791
+ }
6792
+ ],
6793
+ "type": "object"
6794
+ },
6795
+ "DescribeSavingPlanResourceInfoResponse": {
6796
+ "document": "DescribeSavingPlanResourceInfo返回参数结构体",
6797
+ "members": [
6798
+ {
6799
+ "disabled": false,
6800
+ "document": "记录数",
6801
+ "example": "0",
6802
+ "member": "uint64",
6803
+ "name": "Total",
6804
+ "output_required": true,
6805
+ "type": "int",
6806
+ "value_allowed_null": false
6807
+ },
6808
+ {
6809
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
6810
+ "member": "string",
6811
+ "name": "RequestId",
6812
+ "type": "string"
6813
+ }
6814
+ ],
6815
+ "type": "object"
6816
+ },
6746
6817
  "DescribeSavingPlanUsageRequest": {
6747
6818
  "document": "DescribeSavingPlanUsage请求参数结构体",
6748
6819
  "members": [
@@ -278,6 +278,14 @@
278
278
  "title": "查询节省计划明细示例"
279
279
  }
280
280
  ],
281
+ "DescribeSavingPlanResourceInfo": [
282
+ {
283
+ "document": "查询名下可共享的sp资源详细",
284
+ "input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSavingPlanResourceInfo\n<公共请求参数>\n\n{\n \"Limit\": 0,\n \"Offset\": 1,\n \"CreateStartDate\": \"2023-06-01\",\n \"CreateEndDate\": \"2023-09-30\"\n}",
285
+ "output": "{\n \"Response\": {\n \"RequestId\": \"37963bb4-f4ac-4c20-8c83-97d751f1aa91\",\n \"Total\": 3\n }\n}",
286
+ "title": "输出示例"
287
+ }
288
+ ],
281
289
  "DescribeSavingPlanUsage": [
282
290
  {
283
291
  "document": "",