tccli 3.0.1237.1__py2.py3-none-any.whl → 3.0.1238.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 (122) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/aca/__init__.py +4 -0
  4. tccli/services/aca/aca_client.py +578 -0
  5. tccli/services/aca/v20210323/api.json +3715 -0
  6. tccli/services/aca/v20210323/examples.json +69 -0
  7. tccli/services/aiart/v20221229/api.json +18 -9
  8. tccli/services/aiart/v20221229/examples.json +2 -2
  9. tccli/services/apm/v20210622/api.json +10 -7
  10. tccli/services/batch/v20170312/api.json +641 -566
  11. tccli/services/batch/v20170312/examples.json +7 -7
  12. tccli/services/bi/v20220105/api.json +9 -0
  13. tccli/services/bpaas/v20181217/examples.json +1 -1
  14. tccli/services/cam/v20190116/api.json +32 -30
  15. tccli/services/cam/v20190116/examples.json +4 -4
  16. tccli/services/ccc/v20200210/api.json +31 -1
  17. tccli/services/ccc/v20200210/examples.json +1 -1
  18. tccli/services/cdb/v20170320/api.json +214 -207
  19. tccli/services/cdb/v20170320/examples.json +10 -10
  20. tccli/services/cdwch/v20200915/api.json +6 -6
  21. tccli/services/cdwdoris/v20211228/api.json +16 -5
  22. tccli/services/cdwdoris/v20211228/examples.json +1 -1
  23. tccli/services/cfg/v20210820/api.json +8 -13
  24. tccli/services/cfg/v20210820/examples.json +1 -1
  25. tccli/services/cfs/v20190719/api.json +84 -84
  26. tccli/services/cfs/v20190719/examples.json +6 -6
  27. tccli/services/chdfs/v20201112/api.json +18 -17
  28. tccli/services/chdfs/v20201112/examples.json +2 -2
  29. tccli/services/clb/v20180317/api.json +184 -162
  30. tccli/services/cloudapp/v20220530/api.json +1 -1
  31. tccli/services/cloudapp/v20220530/examples.json +3 -3
  32. tccli/services/cloudaudit/v20190319/api.json +21 -17
  33. tccli/services/cloudaudit/v20190319/examples.json +3 -3
  34. tccli/services/cls/v20201016/api.json +21 -21
  35. tccli/services/cls/v20201016/examples.json +1 -1
  36. tccli/services/config/v20220802/api.json +2 -0
  37. tccli/services/config/v20220802/examples.json +2 -2
  38. tccli/services/dcdb/v20180411/api.json +390 -387
  39. tccli/services/dcdb/v20180411/examples.json +14 -14
  40. tccli/services/dlc/v20210125/api.json +162 -7
  41. tccli/services/dlc/v20210125/examples.json +1 -1
  42. tccli/services/domain/v20180808/api.json +37 -37
  43. tccli/services/domain/v20180808/examples.json +16 -10
  44. tccli/services/dsgc/v20190723/api.json +1796 -1623
  45. tccli/services/dsgc/v20190723/examples.json +217 -211
  46. tccli/services/dts/v20180330/api.json +143 -106
  47. tccli/services/dts/v20211206/api.json +57 -46
  48. tccli/services/dts/v20211206/examples.json +1 -1
  49. tccli/services/ecm/v20190719/api.json +6 -6
  50. tccli/services/emr/v20190103/api.json +80 -20
  51. tccli/services/ess/ess_client.py +61 -8
  52. tccli/services/ess/v20201111/api.json +267 -37
  53. tccli/services/ess/v20201111/examples.json +11 -3
  54. tccli/services/essbasic/essbasic_client.py +167 -8
  55. tccli/services/essbasic/v20210526/api.json +527 -54
  56. tccli/services/essbasic/v20210526/examples.json +46 -16
  57. tccli/services/facefusion/v20220927/api.json +12 -1
  58. tccli/services/fmu/v20191213/api.json +8 -8
  59. tccli/services/gaap/v20180529/api.json +200 -209
  60. tccli/services/hai/v20230812/api.json +1 -1
  61. tccli/services/iss/v20230517/api.json +11 -11
  62. tccli/services/iss/v20230517/examples.json +31 -31
  63. tccli/services/keewidb/v20220308/api.json +92 -82
  64. tccli/services/keewidb/v20220308/examples.json +5 -5
  65. tccli/services/lighthouse/v20200324/api.json +18 -18
  66. tccli/services/lighthouse/v20200324/examples.json +5 -5
  67. tccli/services/live/v20180801/api.json +27 -9
  68. tccli/services/lke/v20231130/examples.json +1 -1
  69. tccli/services/mariadb/v20170312/api.json +285 -263
  70. tccli/services/mariadb/v20170312/examples.json +12 -12
  71. tccli/services/monitor/monitor_client.py +106 -0
  72. tccli/services/monitor/v20180724/api.json +222 -0
  73. tccli/services/monitor/v20180724/examples.json +16 -0
  74. tccli/services/mps/mps_client.py +228 -16
  75. tccli/services/mps/v20190612/api.json +385 -23
  76. tccli/services/mps/v20190612/examples.json +32 -0
  77. tccli/services/msp/v20180319/api.json +2 -2
  78. tccli/services/ocr/v20181119/api.json +11 -1
  79. tccli/services/omics/v20221128/api.json +14 -2
  80. tccli/services/organization/v20210331/api.json +45 -18
  81. tccli/services/privatedns/v20201028/api.json +90 -81
  82. tccli/services/privatedns/v20201028/examples.json +18 -18
  83. tccli/services/redis/redis_client.py +106 -0
  84. tccli/services/redis/v20180412/api.json +178 -16
  85. tccli/services/redis/v20180412/examples.json +16 -0
  86. tccli/services/region/v20220627/api.json +5 -3
  87. tccli/services/region/v20220627/examples.json +1 -1
  88. tccli/services/ssl/v20191205/api.json +6 -4
  89. tccli/services/tag/v20180813/api.json +4 -5
  90. tccli/services/tcb/v20180608/api.json +36 -16
  91. tccli/services/tdmq/tdmq_client.py +53 -0
  92. tccli/services/tdmq/v20200217/api.json +64 -1
  93. tccli/services/tdmq/v20200217/examples.json +9 -1
  94. tccli/services/teo/teo_client.py +485 -8
  95. tccli/services/teo/v20220901/api.json +837 -39
  96. tccli/services/teo/v20220901/examples.json +108 -0
  97. tccli/services/thpc/v20211109/api.json +32 -34
  98. tccli/services/thpc/v20220401/api.json +31 -33
  99. tccli/services/thpc/v20230321/api.json +55 -57
  100. tccli/services/thpc/v20230321/examples.json +1 -1
  101. tccli/services/tiia/v20190529/api.json +307 -293
  102. tccli/services/tiia/v20190529/examples.json +41 -41
  103. tccli/services/tione/v20211111/api.json +4 -4
  104. tccli/services/tione/v20211111/examples.json +2 -2
  105. tccli/services/tke/v20180525/api.json +1 -1
  106. tccli/services/trocket/trocket_client.py +53 -0
  107. tccli/services/trocket/v20230308/api.json +116 -0
  108. tccli/services/trocket/v20230308/examples.json +14 -0
  109. tccli/services/tse/v20201207/api.json +188 -120
  110. tccli/services/tse/v20201207/examples.json +30 -30
  111. tccli/services/tsf/v20180326/api.json +826 -745
  112. tccli/services/tsf/v20180326/examples.json +99 -111
  113. tccli/services/vclm/v20240523/api.json +1 -1
  114. tccli/services/vdb/v20230616/api.json +80 -80
  115. tccli/services/vdb/v20230616/examples.json +1 -1
  116. tccli/services/vpc/v20170312/api.json +42 -41
  117. tccli/services/vpc/v20170312/examples.json +5 -5
  118. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/METADATA +2 -2
  119. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/RECORD +122 -118
  120. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/WHEEL +0 -0
  121. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/entry_points.txt +0 -0
  122. {tccli-3.0.1237.1.dist-info → tccli-3.0.1238.1.dist-info}/license_files/LICENSE +0 -0
@@ -494,6 +494,14 @@
494
494
  "title": "示例1"
495
495
  }
496
496
  ],
497
+ "DescribeSecondLevelBackupInfo": [
498
+ {
499
+ "document": "查询秒级备份信息",
500
+ "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecondLevelBackupInfo\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-asdasdas\",\n \"BackupTimestamp\": 1716449238\n}",
501
+ "output": "{\n \"Response\": {\n \"BackupId\": \"154709612-5143180-1043869225\",\n \"BackupTimestamp\": 1719563096,\n \"MissingTimestamps\": null,\n \"RequestId\": \"fa6ec05f-d469-41cd-862f-da6771c4554d\",\n \"StartTimestamp\": 1719562435\n }\n}",
502
+ "title": "查询秒级备份信息"
503
+ }
504
+ ],
497
505
  "DescribeSlowLog": [
498
506
  {
499
507
  "document": "通过 DescribeSlowLog 接口查询一实例的慢查询详情,包含:慢查询的命令、命令行信息、延迟时间、客户端地址、节点ID等信息。",
@@ -670,6 +678,14 @@
670
678
  "title": "示例1"
671
679
  }
672
680
  ],
681
+ "ModifyInstanceBackupMode": [
682
+ {
683
+ "document": "修改实例的备份模式",
684
+ "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceBackupMode\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-asdasdas\",\n \"BackupMode\": \"SecondLevelBackup\"\n}",
685
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fa6ec05f-d469-41cd-862f-da6771c4554d\",\n \"TaskId\": 1719562435\n }\n}",
686
+ "title": "修改实例的备份模式"
687
+ }
688
+ ],
673
689
  "ModifyInstanceEvent": [
674
690
  {
675
691
  "document": "修改实例事件信息",
@@ -59,10 +59,10 @@
59
59
  {
60
60
  "disabled": false,
61
61
  "document": "产品详细信息列表。",
62
- "example": "",
62
+ "example": "[{ \"Name\": \"cvm\"}]",
63
63
  "member": "RegionProduct",
64
64
  "name": "Products",
65
- "required": true,
65
+ "output_required": true,
66
66
  "type": "list",
67
67
  "value_allowed_null": false
68
68
  },
@@ -72,7 +72,7 @@
72
72
  "example": "1",
73
73
  "member": "int64",
74
74
  "name": "TotalCount",
75
- "required": true,
75
+ "output_required": true,
76
76
  "type": "int",
77
77
  "value_allowed_null": false
78
78
  },
@@ -174,6 +174,7 @@
174
174
  "example": "1",
175
175
  "member": "uint64",
176
176
  "name": "TotalCount",
177
+ "output_required": true,
177
178
  "type": "int",
178
179
  "value_allowed_null": false
179
180
  },
@@ -183,6 +184,7 @@
183
184
  "example": "参开输出示例",
184
185
  "member": "ZoneInfo",
185
186
  "name": "ZoneSet",
187
+ "output_required": true,
186
188
  "type": "list",
187
189
  "value_allowed_null": false
188
190
  },
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "document": "查询可用区信息(可用区中文名称)",
22
22
  "input": "POST / HTTP/1.1\nHost: region.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZones\nX-TC-Language: zh-CN\n<公共请求参数>\n\n{\n \"Product\": \"cvm\",\n \"Scene\": 1\n}",
23
- "output": "{\n \"Response\": {\n \"TotalCount\": 7,\n \"RequestId\": \"6c3323bd-c855-49d7-85fb-7d6e0d8e1c55\",\n \"ZoneSet\": [\n {\n \"Zone\": \"ap-beijing-2\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"800002\",\n \"ParentZoneName\": \"\",\n \"ParentZoneId\": \"\",\n \"ParentZone\": \"\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"availability-zone\",\n \"ZoneName\": \"北京二区\"\n },\n {\n \"Zone\": \"ap-beijing-3\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"800003\",\n \"ParentZoneName\": \"\",\n \"ParentZoneId\": \"\",\n \"ParentZone\": \"\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"availability-zone\",\n \"ZoneName\": \"北京三区\"\n },\n {\n \"Zone\": \"ap-beijing-4\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"800004\",\n \"ParentZoneName\": \"\",\n \"ParentZoneId\": \"\",\n \"ParentZone\": \"\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"availability-zone\",\n \"ZoneName\": \"北京四区\"\n },\n {\n \"Zone\": \"ap-beijing-5\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"800005\",\n \"ParentZoneName\": \"\",\n \"ParentZoneId\": \"\",\n \"ParentZone\": \"\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"availability-zone\",\n \"ZoneName\": \"北京五区\"\n },\n {\n \"Zone\": \"ap-beijing-6\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"800006\",\n \"ParentZoneName\": \"\",\n \"ParentZoneId\": \"\",\n \"ParentZone\": \"\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"availability-zone\",\n \"ZoneName\": \"北京六区\"\n },\n {\n \"Zone\": \"ap-beijing-7\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"800007\",\n \"ParentZoneName\": \"\",\n \"ParentZoneId\": \"\",\n \"ParentZone\": \"\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"availability-zone\",\n \"ZoneName\": \"北京七区\"\n },\n {\n \"Zone\": \"ap-beijing-tez-changchun-1\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"2100080001\",\n \"ParentZoneName\": \"北京三区\",\n \"ParentZoneId\": \"800003\",\n \"ParentZone\": \"ap-beijing-3\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"edge-zone\",\n \"ZoneName\": \"长春边缘一区\"\n }\n ]\n }\n}",
23
+ "output": "{\n \"Response\": {\n \"TotalCount\": 7,\n \"RequestId\": \"6c3323bd-c855-49d7-85fb-7d6e0d8e1c55\",\n \"ZoneSet\": [\n {\n \"Zone\": \"ap-beijing-tez-changchun-1\",\n \"ZoneIdMC\": null,\n \"ZoneId\": \"2100080001\",\n \"ParentZoneName\": \"北京三区\",\n \"ParentZoneId\": \"800003\",\n \"ParentZone\": \"ap-beijing-3\",\n \"ZoneState\": \"AVAILABLE\",\n \"MachineRoomTypeMC\": null,\n \"ZoneType\": \"edge-zone\",\n \"ZoneName\": \"长春边缘一区\"\n }\n ]\n }\n}",
24
24
  "title": "查询可用区信息(可用区中文名称)"
25
25
  }
26
26
  ]
@@ -10749,7 +10749,7 @@
10749
10749
  {
10750
10750
  "disabled": false,
10751
10751
  "document": "证书ID",
10752
- "example": "",
10752
+ "example": "7hex***j",
10753
10753
  "member": "string",
10754
10754
  "name": "CertificateId",
10755
10755
  "required": true,
@@ -10758,7 +10758,7 @@
10758
10758
  {
10759
10759
  "disabled": false,
10760
10760
  "document": "base64编码后的证书确认函文件,格式应为jpg、jpeg、png、pdf,大小应在1kb与1.4M之间。",
10761
- "example": "",
10761
+ "example": "\"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkIC",
10762
10762
  "member": "string",
10763
10763
  "name": "ConfirmLetter",
10764
10764
  "required": true,
@@ -10773,18 +10773,20 @@
10773
10773
  {
10774
10774
  "disabled": false,
10775
10775
  "document": "证书ID",
10776
- "example": "",
10776
+ "example": "7hex***j",
10777
10777
  "member": "string",
10778
10778
  "name": "CertificateId",
10779
+ "output_required": true,
10779
10780
  "type": "string",
10780
10781
  "value_allowed_null": false
10781
10782
  },
10782
10783
  {
10783
10784
  "disabled": false,
10784
10785
  "document": "是否成功",
10785
- "example": "",
10786
+ "example": "true",
10786
10787
  "member": "bool",
10787
10788
  "name": "IsSuccess",
10789
+ "output_required": true,
10788
10790
  "type": "bool",
10789
10791
  "value_allowed_null": false
10790
10792
  },
@@ -2598,7 +2598,7 @@
2598
2598
  {
2599
2599
  "disabled": false,
2600
2600
  "document": "标签键",
2601
- "example": "",
2601
+ "example": "name",
2602
2602
  "member": "string",
2603
2603
  "name": "TagKey",
2604
2604
  "output_required": true,
@@ -2609,7 +2609,7 @@
2609
2609
  {
2610
2610
  "disabled": false,
2611
2611
  "document": "标签值",
2612
- "example": "",
2612
+ "example": "John",
2613
2613
  "member": "string",
2614
2614
  "name": "TagValue",
2615
2615
  "output_required": true,
@@ -2663,12 +2663,11 @@
2663
2663
  {
2664
2664
  "disabled": false,
2665
2665
  "document": "标签键",
2666
- "example": "",
2666
+ "example": "name",
2667
2667
  "member": "string",
2668
2668
  "name": "TagKey",
2669
2669
  "required": true,
2670
- "type": "string",
2671
- "value_allowed_null": false
2670
+ "type": "string"
2672
2671
  }
2673
2672
  ],
2674
2673
  "usage": "in"
@@ -9612,17 +9612,17 @@
9612
9612
  "example": "env-xxxxxx",
9613
9613
  "member": "string",
9614
9614
  "name": "EnvId",
9615
- "required": true,
9615
+ "output_required": true,
9616
9616
  "type": "string",
9617
9617
  "value_allowed_null": false
9618
9618
  },
9619
9619
  {
9620
9620
  "disabled": false,
9621
9621
  "document": "tcb产品套餐ID,参考DescribePackages接口的返回值。",
9622
- "example": "default",
9622
+ "example": "Default",
9623
9623
  "member": "string",
9624
9624
  "name": "PackageId",
9625
- "required": true,
9625
+ "output_required": true,
9626
9626
  "type": "string",
9627
9627
  "value_allowed_null": false
9628
9628
  },
@@ -9632,7 +9632,7 @@
9632
9632
  "example": "true",
9633
9633
  "member": "bool",
9634
9634
  "name": "IsAutoRenew",
9635
- "required": true,
9635
+ "output_required": true,
9636
9636
  "type": "bool",
9637
9637
  "value_allowed_null": false
9638
9638
  },
@@ -9642,7 +9642,7 @@
9642
9642
  "example": "NORMAL",
9643
9643
  "member": "string",
9644
9644
  "name": "Status",
9645
- "required": true,
9645
+ "output_required": true,
9646
9646
  "type": "string",
9647
9647
  "value_allowed_null": false
9648
9648
  },
@@ -9652,7 +9652,7 @@
9652
9652
  "example": "PREPAYMENT",
9653
9653
  "member": "string",
9654
9654
  "name": "PayMode",
9655
- "required": true,
9655
+ "output_required": true,
9656
9656
  "type": "string",
9657
9657
  "value_allowed_null": false
9658
9658
  },
@@ -9662,7 +9662,7 @@
9662
9662
  "example": "2022-01-01 12:34:56",
9663
9663
  "member": "string",
9664
9664
  "name": "IsolatedTime",
9665
- "required": true,
9665
+ "output_required": true,
9666
9666
  "type": "string",
9667
9667
  "value_allowed_null": false
9668
9668
  },
@@ -9672,7 +9672,7 @@
9672
9672
  "example": "2022-01-01 12:34:56",
9673
9673
  "member": "string",
9674
9674
  "name": "ExpireTime",
9675
- "required": true,
9675
+ "output_required": true,
9676
9676
  "type": "string",
9677
9677
  "value_allowed_null": false
9678
9678
  },
@@ -9682,7 +9682,7 @@
9682
9682
  "example": "2022-01-01 12:34:56",
9683
9683
  "member": "string",
9684
9684
  "name": "CreateTime",
9685
- "required": true,
9685
+ "output_required": true,
9686
9686
  "type": "string",
9687
9687
  "value_allowed_null": false
9688
9688
  },
@@ -9692,7 +9692,7 @@
9692
9692
  "example": "2022-01-01 12:34:56",
9693
9693
  "member": "string",
9694
9694
  "name": "UpdateTime",
9695
- "required": true,
9695
+ "output_required": true,
9696
9696
  "type": "string",
9697
9697
  "value_allowed_null": false
9698
9698
  },
@@ -9702,7 +9702,7 @@
9702
9702
  "example": "false",
9703
9703
  "member": "bool",
9704
9704
  "name": "IsAlwaysFree",
9705
- "required": true,
9705
+ "output_required": true,
9706
9706
  "type": "bool",
9707
9707
  "value_allowed_null": false
9708
9708
  },
@@ -9712,7 +9712,7 @@
9712
9712
  "example": "miniapp",
9713
9713
  "member": "string",
9714
9714
  "name": "PaymentChannel",
9715
- "required": true,
9715
+ "output_required": true,
9716
9716
  "type": "string",
9717
9717
  "value_allowed_null": true
9718
9718
  },
@@ -9722,7 +9722,7 @@
9722
9722
  "example": "无",
9723
9723
  "member": "OrderInfo",
9724
9724
  "name": "OrderInfo",
9725
- "required": true,
9725
+ "output_required": true,
9726
9726
  "type": "object",
9727
9727
  "value_allowed_null": true
9728
9728
  },
@@ -9732,7 +9732,7 @@
9732
9732
  "example": "basic",
9733
9733
  "member": "string",
9734
9734
  "name": "FreeQuota",
9735
- "required": true,
9735
+ "output_required": true,
9736
9736
  "type": "string",
9737
9737
  "value_allowed_null": true
9738
9738
  },
@@ -9742,7 +9742,7 @@
9742
9742
  "example": "无",
9743
9743
  "member": "bool",
9744
9744
  "name": "EnableOverrun",
9745
- "required": true,
9745
+ "output_required": true,
9746
9746
  "type": "bool",
9747
9747
  "value_allowed_null": true
9748
9748
  },
@@ -9752,9 +9752,29 @@
9752
9752
  "example": "baas",
9753
9753
  "member": "string",
9754
9754
  "name": "ExtPackageType",
9755
- "required": true,
9755
+ "output_required": true,
9756
9756
  "type": "string",
9757
9757
  "value_allowed_null": true
9758
+ },
9759
+ {
9760
+ "disabled": false,
9761
+ "document": "是否付费期环境,可取值:yes/no。",
9762
+ "example": "yes",
9763
+ "member": "string",
9764
+ "name": "EnvCharged",
9765
+ "output_required": false,
9766
+ "type": "string",
9767
+ "value_allowed_null": false
9768
+ },
9769
+ {
9770
+ "disabled": false,
9771
+ "document": "是否已激活,可取值:yes/no。",
9772
+ "example": "yes",
9773
+ "member": "string",
9774
+ "name": "EnvActivated",
9775
+ "output_required": false,
9776
+ "type": "string",
9777
+ "value_allowed_null": false
9758
9778
  }
9759
9779
  ],
9760
9780
  "usage": "out"
@@ -1525,6 +1525,58 @@ def doDescribeTopics(args, parsed_globals):
1525
1525
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1526
 
1527
1527
 
1528
+ def doModifyPublicNetworkSecurityPolicy(args, parsed_globals):
1529
+ g_param = parse_global_arg(parsed_globals)
1530
+
1531
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1532
+ cred = credential.CVMRoleCredential()
1533
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1534
+ cred = credential.STSAssumeRoleCredential(
1535
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1536
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1537
+ )
1538
+ 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):
1539
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1540
+ else:
1541
+ cred = credential.Credential(
1542
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1543
+ )
1544
+ http_profile = HttpProfile(
1545
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1546
+ reqMethod="POST",
1547
+ endpoint=g_param[OptionsDefine.Endpoint],
1548
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1549
+ )
1550
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1551
+ if g_param[OptionsDefine.Language]:
1552
+ profile.language = g_param[OptionsDefine.Language]
1553
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1554
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
1555
+ client._sdkVersion += ("_CLI_" + __version__)
1556
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
+ model = models.ModifyPublicNetworkSecurityPolicyRequest()
1558
+ model.from_json_string(json.dumps(args))
1559
+ start_time = time.time()
1560
+ while True:
1561
+ rsp = client.ModifyPublicNetworkSecurityPolicy(model)
1562
+ result = rsp.to_json_string()
1563
+ try:
1564
+ json_obj = json.loads(result)
1565
+ except TypeError as e:
1566
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1567
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1568
+ break
1569
+ cur_time = time.time()
1570
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1571
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1572
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1573
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1574
+ else:
1575
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1576
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1577
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
+
1579
+
1528
1580
  def doModifyRocketMQEnvironmentRole(args, parsed_globals):
1529
1581
  g_param = parse_global_arg(parsed_globals)
1530
1582
 
@@ -7545,6 +7597,7 @@ ACTION_MAP = {
7545
7597
  "AcknowledgeMessage": doAcknowledgeMessage,
7546
7598
  "CreateEnvironment": doCreateEnvironment,
7547
7599
  "DescribeTopics": doDescribeTopics,
7600
+ "ModifyPublicNetworkSecurityPolicy": doModifyPublicNetworkSecurityPolicy,
7548
7601
  "ModifyRocketMQEnvironmentRole": doModifyRocketMQEnvironmentRole,
7549
7602
  "ModifyRocketMQTopic": doModifyRocketMQTopic,
7550
7603
  "DescribeRocketMQTopicMsgs": doDescribeRocketMQTopicMsgs,
@@ -826,6 +826,13 @@
826
826
  "output": "ModifyPublicNetworkAccessPointResponse",
827
827
  "status": "online"
828
828
  },
829
+ "ModifyPublicNetworkSecurityPolicy": {
830
+ "document": "修改pulsar专业版公网安全策略",
831
+ "input": "ModifyPublicNetworkSecurityPolicyRequest",
832
+ "name": "修改公网安全策略",
833
+ "output": "ModifyPublicNetworkSecurityPolicyResponse",
834
+ "status": "online"
835
+ },
829
836
  "ModifyRabbitMQUser": {
830
837
  "document": "修改RabbitMQ的用户",
831
838
  "input": "ModifyRabbitMQUserRequest",
@@ -2113,7 +2120,7 @@
2113
2120
  "members": [
2114
2121
  {
2115
2122
  "disabled": false,
2116
- "document": "订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。\n注意:此字段可能返回 null,表示取不到有效值。",
2123
+ "document": "订阅名字,在单个地域同一账号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。\n注意:此字段可能返回 null,表示取不到有效值。",
2117
2124
  "example": "sub",
2118
2125
  "member": "string",
2119
2126
  "name": "SubscriptionName",
@@ -13124,6 +13131,62 @@
13124
13131
  ],
13125
13132
  "type": "object"
13126
13133
  },
13134
+ "ModifyPublicNetworkSecurityPolicyRequest": {
13135
+ "document": "ModifyPublicNetworkSecurityPolicy请求参数结构体",
13136
+ "members": [
13137
+ {
13138
+ "disabled": false,
13139
+ "document": "集群id",
13140
+ "example": "pulsar-47emajuiaoam",
13141
+ "member": "string",
13142
+ "name": "InstanceId",
13143
+ "required": true,
13144
+ "type": "string"
13145
+ },
13146
+ {
13147
+ "disabled": false,
13148
+ "document": "策略列表",
13149
+ "example": "无",
13150
+ "member": "SecurityPolicy",
13151
+ "name": "PolicyList",
13152
+ "required": true,
13153
+ "type": "list"
13154
+ }
13155
+ ],
13156
+ "type": "object"
13157
+ },
13158
+ "ModifyPublicNetworkSecurityPolicyResponse": {
13159
+ "document": "ModifyPublicNetworkSecurityPolicy返回参数结构体",
13160
+ "members": [
13161
+ {
13162
+ "disabled": false,
13163
+ "document": "SUCCESS或者FAILURE",
13164
+ "example": "SUCCESS",
13165
+ "member": "string",
13166
+ "name": "ModifyResult",
13167
+ "output_required": false,
13168
+ "type": "string",
13169
+ "value_allowed_null": false
13170
+ },
13171
+ {
13172
+ "disabled": false,
13173
+ "document": "集群id",
13174
+ "example": "pulsar-47emajuiaoam",
13175
+ "member": "string",
13176
+ "name": "InstanceId",
13177
+ "output_required": false,
13178
+ "type": "string",
13179
+ "value_allowed_null": false
13180
+ },
13181
+ {
13182
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13183
+ "member": "string",
13184
+ "name": "RequestId",
13185
+ "type": "string"
13186
+ }
13187
+ ],
13188
+ "type": "object"
13189
+ },
13127
13190
  "ModifyRabbitMQUserRequest": {
13128
13191
  "document": "ModifyRabbitMQUser请求参数结构体",
13129
13192
  "members": [
@@ -852,7 +852,7 @@
852
852
  {
853
853
  "document": "",
854
854
  "input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRoles\n<公共请求参数>\n\n{\n \"RoleName\": \"devRole\",\n \"Offset\": 0,\n \"Limit\": 10,\n \"ClusterId\": \"pulsar-xk3ne8k2qkp8\"\n}",
855
- "output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"RoleSets\": [\n {\n \"RoleName\": \"test_role_3\",\n \"Token\": \"eyJzdddaWIiOiJ0ZXN0X3JvbGVfMyJ9.dbHR8m6gc4L4vZUrodhW_O9bDulZQ6lraNswNLtcUcY\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-04 11:59:06\",\n \"UpdateTime\": \"2020-08-04 11:59:06\"\n },\n {\n \"RoleName\": \"test_role_2\",\n \"Token\": \"eyJzdWIiOiJ0asZsXN0X3JasdvbGVfMiJ9.KTbLPg1ax2HDa51vfWmoDK5AQRmEs-_3da8yU0O61D0\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-03 20:23:52\",\n \"UpdateTime\": \"2020-08-03 20:23:52\"\n },\n {\n \"RoleName\": \"test_role_1\",\n \"Token\": \"eyJzddassWIiOiJ0ZXN0X3JvbGVfMSJ9.aatGv_WEZK5jqmXNX3dxQA7vWB0igKr_7eQitbweBoo\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-03 19:48:36\",\n \"UpdateTime\": \"2020-08-03 20:22:21\"\n },\n {\n \"RoleName\": \"test_role\",\n \"Token\": \"eyJzdWIiOiJ0ZXsasdN0X3JvbGUifQ.xeU_xkiB5wSJ8u6sUJWW\",\n \"Remark\": \"Remark1\",\n \"CreateTime\": \"2020-08-03 17:22:09\",\n \"UpdateTime\": \"2020-08-04 15:59:29\"\n }\n ],\n \"RequestId\": \"1004f1de-6fb8-41d5-965e-3aae8c87183a\"\n }\n}",
855
+ "output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"RoleSets\": [\n {\n \"RoleName\": \"test_role_3\",\n \"Token\": \"eyJzdddaWIiOiJ0ZXN0X3****O9bDulZQ6lraNswNLtcUcY\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-04 11:59:06\",\n \"UpdateTime\": \"2020-08-04 11:59:06\"\n },\n {\n \"RoleName\": \"test_role_2\",\n \"Token\": \"eyJzdWIiOiJ0asZsXN0X3Jasdv****AQRmEs-_3da8yU0O61D0\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-03 20:23:52\",\n \"UpdateTime\": \"2020-08-03 20:23:52\"\n },\n {\n \"RoleName\": \"test_role_1\",\n \"Token\": \"eyJzddassWIiOiJ0ZXN0X3J****QA7vWB0igKr_7eQitbweBoo\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-03 19:48:36\",\n \"UpdateTime\": \"2020-08-03 20:22:21\"\n },\n {\n \"RoleName\": \"test_role\",\n \"Token\": \"eyJzdWIiOiJ0ZXsas****5wSJ8u6sUJWW\",\n \"Remark\": \"Remark1\",\n \"CreateTime\": \"2020-08-03 17:22:09\",\n \"UpdateTime\": \"2020-08-04 15:59:29\"\n }\n ],\n \"RequestId\": \"1004f1de-6fb8-41d5-965e-3aae8c87183a\"\n }\n}",
856
856
  "title": "获取角色列表"
857
857
  }
858
858
  ],
@@ -968,6 +968,14 @@
968
968
  "title": "RabbitMQ专享版修改公网管控台,数据流开关"
969
969
  }
970
970
  ],
971
+ "ModifyPublicNetworkSecurityPolicy": [
972
+ {
973
+ "document": "",
974
+ "input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPublicNetworkSecurityPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"pulsar-47emajuiaoam\",\n \"PolicyList\": [\n {\n \"Route\": \"1.1.1.1/24\",\n \"Policy\": true,\n \"Remark\": \"allow\"\n }\n ]\n}",
975
+ "output": "{\n \"Response\": {\n \"ModifyResult\": \"SUCCESS\",\n \"InstanceId\": \"pulsar-47emajuiaoam\",\n \"RequestId\": \"5d6c7091-e82c-4a9c-a18f-34d5fc46006e\"\n }\n}",
976
+ "title": "示例"
977
+ }
978
+ ],
971
979
  "ModifyRabbitMQUser": [
972
980
  {
973
981
  "document": "-",