tccli 3.0.1214.1__py2.py3-none-any.whl → 3.0.1216.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 (112) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/configure.py +46 -1
  3. tccli/services/__init__.py +0 -3
  4. tccli/services/ams/v20201229/examples.json +2 -2
  5. tccli/services/apm/v20210622/api.json +20 -0
  6. tccli/services/asr/v20190614/api.json +3 -3
  7. tccli/services/bi/v20220105/api.json +32 -4
  8. tccli/services/bi/v20220105/examples.json +1 -1
  9. tccli/services/billing/billing_client.py +53 -0
  10. tccli/services/billing/v20180709/api.json +304 -0
  11. tccli/services/billing/v20180709/examples.json +8 -0
  12. tccli/services/bsca/v20210811/api.json +222 -17
  13. tccli/services/bsca/v20210811/examples.json +4 -4
  14. tccli/services/ccc/ccc_client.py +53 -0
  15. tccli/services/ccc/v20200210/api.json +176 -18
  16. tccli/services/ccc/v20200210/examples.json +11 -3
  17. tccli/services/cdb/v20170320/api.json +22 -4
  18. tccli/services/cdb/v20170320/examples.json +1 -1
  19. tccli/services/cdn/v20180606/api.json +5 -3
  20. tccli/services/cdwdoris/v20211228/api.json +23 -2
  21. tccli/services/cfs/v20190719/api.json +3 -3
  22. tccli/services/cfw/v20190904/api.json +86 -52
  23. tccli/services/cfw/v20190904/examples.json +68 -56
  24. tccli/services/ciam/v20220331/api.json +316 -315
  25. tccli/services/ciam/v20220331/examples.json +49 -49
  26. tccli/services/ckafka/v20190819/api.json +1 -1
  27. tccli/services/cloudaudit/cloudaudit_client.py +30 -30
  28. tccli/services/cloudaudit/v20190319/api.json +215 -186
  29. tccli/services/cloudaudit/v20190319/examples.json +13 -13
  30. tccli/services/cls/v20201016/api.json +365 -66
  31. tccli/services/cls/v20201016/examples.json +9 -3
  32. tccli/services/csip/v20221121/api.json +4 -4
  33. tccli/services/cvm/v20170312/api.json +42 -0
  34. tccli/services/cwp/v20180228/api.json +865 -809
  35. tccli/services/cwp/v20180228/examples.json +98 -110
  36. tccli/services/cynosdb/v20190107/api.json +77 -29
  37. tccli/services/cynosdb/v20190107/examples.json +22 -22
  38. tccli/services/dasb/v20191018/api.json +77 -0
  39. tccli/services/dasb/v20191018/examples.json +5 -5
  40. tccli/services/dbbrain/v20191016/examples.json +1 -1
  41. tccli/services/dlc/v20210125/api.json +11 -0
  42. tccli/services/domain/v20180808/api.json +3 -3
  43. tccli/services/domain/v20180808/examples.json +3 -3
  44. tccli/services/eb/v20210416/api.json +15 -15
  45. tccli/services/eb/v20210416/examples.json +1 -1
  46. tccli/services/emr/v20190103/api.json +9 -0
  47. tccli/services/es/es_client.py +249 -37
  48. tccli/services/es/v20180416/api.json +521 -0
  49. tccli/services/es/v20180416/examples.json +32 -0
  50. tccli/services/ess/ess_client.py +53 -0
  51. tccli/services/ess/v20201111/api.json +155 -10
  52. tccli/services/ess/v20201111/examples.json +15 -1
  53. tccli/services/essbasic/essbasic_client.py +106 -0
  54. tccli/services/essbasic/v20210526/api.json +244 -13
  55. tccli/services/essbasic/v20210526/examples.json +22 -0
  56. tccli/services/gaap/v20180529/api.json +44 -26
  57. tccli/services/gaap/v20180529/examples.json +24 -30
  58. tccli/services/hunyuan/v20230901/examples.json +6 -0
  59. tccli/services/iotexplorer/v20190423/api.json +40 -0
  60. tccli/services/iss/v20230517/api.json +19 -0
  61. tccli/services/live/v20180801/api.json +35 -9
  62. tccli/services/mongodb/v20190725/api.json +6 -8
  63. tccli/services/mqtt/v20240516/api.json +2 -2
  64. tccli/services/mqtt/v20240516/examples.json +1 -1
  65. tccli/services/ocr/v20181119/api.json +2 -2
  66. tccli/services/organization/organization_client.py +352 -34
  67. tccli/services/organization/v20210331/api.json +451 -0
  68. tccli/services/organization/v20210331/examples.json +48 -0
  69. tccli/services/partners/partners_client.py +57 -4
  70. tccli/services/partners/v20180321/api.json +44 -0
  71. tccli/services/partners/v20180321/examples.json +8 -0
  72. tccli/services/region/v20220627/api.json +1 -1
  73. tccli/services/scf/scf_client.py +269 -4
  74. tccli/services/scf/v20180416/api.json +554 -0
  75. tccli/services/scf/v20180416/examples.json +46 -0
  76. tccli/services/ssl/v20191205/api.json +34 -5
  77. tccli/services/tat/v20201028/api.json +27 -25
  78. tccli/services/tat/v20201028/examples.json +4 -4
  79. tccli/services/tcss/v20201101/api.json +256 -14
  80. tccli/services/tcss/v20201101/examples.json +7 -7
  81. tccli/services/tdmq/v20200217/api.json +64 -63
  82. tccli/services/tdmq/v20200217/examples.json +2 -2
  83. tccli/services/tem/v20210701/api.json +144 -103
  84. tccli/services/tem/v20210701/examples.json +27 -27
  85. tccli/services/teo/teo_client.py +277 -12
  86. tccli/services/teo/v20220901/api.json +1023 -146
  87. tccli/services/teo/v20220901/examples.json +71 -1
  88. tccli/services/tke/tke_client.py +53 -0
  89. tccli/services/tke/v20180525/api.json +43 -0
  90. tccli/services/tke/v20180525/examples.json +8 -0
  91. tccli/services/tms/tms_client.py +4 -57
  92. tccli/services/tms/v20201229/api.json +0 -354
  93. tccli/services/tms/v20201229/examples.json +0 -8
  94. tccli/services/trtc/v20190722/api.json +221 -22
  95. tccli/services/vpc/v20170312/api.json +111 -34
  96. tccli/services/vpc/v20170312/examples.json +11 -3
  97. tccli/services/vpc/vpc_client.py +107 -54
  98. tccli/services/waf/v20180125/api.json +61 -0
  99. tccli/services/waf/v20180125/examples.json +8 -0
  100. tccli/services/waf/waf_client.py +53 -0
  101. tccli/services/wedata/v20210820/api.json +686 -0
  102. tccli/services/wedata/v20210820/examples.json +16 -0
  103. tccli/services/wedata/wedata_client.py +106 -0
  104. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/METADATA +6 -2
  105. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/RECORD +108 -112
  106. tccli/services/cr/__init__.py +0 -4
  107. tccli/services/cr/cr_client.py +0 -1626
  108. tccli/services/cr/v20180321/api.json +0 -2829
  109. tccli/services/cr/v20180321/examples.json +0 -235
  110. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/WHEEL +0 -0
  111. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/entry_points.txt +0 -0
  112. {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/license_files/LICENSE +0 -0
@@ -144,6 +144,44 @@
144
144
  "title": "创建四层代理转发规则"
145
145
  }
146
146
  ],
147
+ "CreateLoadBalancer": [
148
+ {
149
+ "document": "健康检查策略选择 ICMP Ping,请求重试策略选择重试组内其他源站。",
150
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnpaxol\",\n \"Name\": \"ICMP-LB\",\n \"Type\": \"HTTP\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"ICMP Ping\",\n \"Interval\": 30,\n \"Timeout\": 5,\n \"HealthThreshold\": 3,\n \"CriticalThreshold\": 2\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherRecordInOriginGroup\"\n}",
151
+ "output": "{\n \"Response\": {\n \"RequestId\": \"c2967195-cfd7-4bd0-ac05-d2eaccde6909\",\n \"InstanceId\": \"lb-2osw7z07dnyu\"\n }\n}",
152
+ "title": "创建健康检查策略为 ICMP Ping 的负载均衡实例"
153
+ },
154
+ {
155
+ "document": "健康检查策略选择 HTTPS,请求重试策略选择重试组内其他源站。",
156
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnpaxol\",\n \"Name\": \"HTTPS-LB\",\n \"Type\": \"GENERAL\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_3\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"HTTPS\",\n \"Path\": \"www.example.com/test\",\n \"Port\": 80,\n \"Interval\": 30,\n \"Method\": \"HEAD\",\n \"ExpectedCodes\": [\n \"200\",\n \"500\",\n \"501\",\n \"502\",\n \"503\",\n \"504\",\n \"505\",\n \"507\",\n \"520\",\n \"521\",\n \"525\",\n \"530\",\n \"544\",\n \"562\",\n \"567\",\n \"599\"\n ],\n \"FollowRedirect\": \"true\",\n \"Headers\": [\n {\n \"Key\": \"header1\",\n \"Value\": \"header1\"\n },\n {\n \"Key\": \"header2\",\n \"Value\": \"header2\"\n },\n {\n \"Key\": \"header3\",\n \"Value\": \"header3\"\n }\n ],\n \"Timeout\": 5,\n \"HealthThreshold\": 3,\n \"CriticalThreshold\": 2\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherRecordInOriginGroup\"\n}",
157
+ "output": "{\n \"Response\": {\n \"RequestId\": \"c2967195-cfd7-4bd0-ac05-d2eaccde6909\",\n \"InstanceId\": \"lb-2osw7z17dnyu\"\n }\n}",
158
+ "title": "创建健康检查策略为 HTTPS 的负载均衡实例"
159
+ },
160
+ {
161
+ "document": "健康检查策略选择 HTTP,请求重试策略选择重试组内其他源站。",
162
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnpaxol\",\n \"Name\": \"HTTP-LB\",\n \"Type\": \"GENERAL\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_3\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"HTTP\",\n \"Path\": \"www.example.com/test\",\n \"Port\": 80,\n \"Interval\": 30,\n \"Method\": \"HEAD\",\n \"ExpectedCodes\": [\n \"200\",\n \"500\",\n \"501\",\n \"502\",\n \"503\",\n \"504\",\n \"505\",\n \"507\",\n \"520\",\n \"521\",\n \"525\",\n \"530\",\n \"544\",\n \"562\",\n \"567\",\n \"599\"\n ],\n \"FollowRedirect\": \"true\",\n \"Headers\": [\n {\n \"Key\": \"header1\",\n \"Value\": \"header1\"\n },\n {\n \"Key\": \"header2\",\n \"Value\": \"header2\"\n },\n {\n \"Key\": \"header3\",\n \"Value\": \"header3\"\n }\n ],\n \"Timeout\": 5,\n \"HealthThreshold\": 3,\n \"CriticalThreshold\": 2\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherRecordInOriginGroup\"\n}",
163
+ "output": "{\n \"Response\": {\n \"RequestId\": \"c2967195-cfd7-4bd0-ac05-d2eaccde6909\",\n \"InstanceId\": \"lb-2osw7z07dnyu\"\n }\n}",
164
+ "title": "创建健康检查策略为 HTTP 的负载均衡实例"
165
+ },
166
+ {
167
+ "document": "健康检查策略选择 TCP,请求重试策略选择重试下一优先级源站组。",
168
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnsaxol\",\n \"Name\": \"TCP-LB\",\n \"Type\": \"HTTP\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"TCP\",\n \"Port\": 80,\n \"Interval\": 30,\n \"Timeout\": 5,\n \"HealthThreshold\": 3,\n \"CriticalThreshold\": 2\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherOriginGroup\"\n}",
169
+ "output": "{\n \"Response\": {\n \"RequestId\": \"afe08af5-51f3-4f2e-911b-987ebb88a572\",\n \"InstanceId\": \"lb-2osbdyhu19iy\"\n }\n}",
170
+ "title": "创建健康检查策略为 TCP 的负载均衡实例"
171
+ },
172
+ {
173
+ "document": "健康检查策略选择 UDP,请求重试策略选择重试下一优先级源站组。",
174
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lsnpaxol\",\n \"Name\": \"UDP-LB\",\n \"Type\": \"GENERAL\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z215e\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"UDP\",\n \"Port\": 80,\n \"SendContext\": \"requestcontent\",\n \"RecvContext\": \"responsecontent\",\n \"Interval\": 30,\n \"Timeout\": 5,\n \"HealthThreshold\": 3,\n \"CriticalThreshold\": 2\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherOriginGroup\"\n}",
175
+ "output": "{\n \"Response\": {\n \"RequestId\": \"57d0154c-f9ab-42b7-ad83-232106647ff3\",\n \"InstanceId\": \"lb-2oswhs520uqe\"\n }\n}",
176
+ "title": "创建健康检查策略为 UDP 的负载均衡实例"
177
+ },
178
+ {
179
+ "document": "不启用任何健康检查策略,请求重试策略选择重试下一优先级源站组。适用于仅配置主备源站的场景。",
180
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnpaxol\",\n \"Name\": \"NoCheck-LB\",\n \"Type\": \"HTTP\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"og-30l5kv5z2ase\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"NoCheck\"\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherOriginGroup\"\n}",
181
+ "output": "{\n \"Response\": {\n \"RequestId\": \"2c619f7f-27e9-43c5-b42c-68dcca803d35\",\n \"InstanceId\": \"lb-2osw2ssziowm\"\n }\n}",
182
+ "title": "创建不启用探测的负载均衡实例"
183
+ }
184
+ ],
147
185
  "CreateOriginGroup": [
148
186
  {
149
187
  "document": "创建HTTP专用型源站组",
@@ -380,6 +418,14 @@
380
418
  "title": "批量删除四层代理转发规则"
381
419
  }
382
420
  ],
421
+ "DeleteLoadBalancer": [
422
+ {
423
+ "document": "删除负载均衡实例",
424
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnqaxol\",\n \"InstanceId\": \"lb-23sw25sziowm\"\n}",
425
+ "output": "{\n \"Response\": {\n \"RequestId\": \"669724a7-65b1-4a13-b130-0ebccdb76ecd\"\n }\n}",
426
+ "title": "删除负载均衡实例"
427
+ }
428
+ ],
383
429
  "DeleteOriginGroup": [
384
430
  {
385
431
  "document": "删除源站组",
@@ -626,6 +672,14 @@
626
672
  "title": "查询四层代理实例转发规则列表"
627
673
  }
628
674
  ],
675
+ "DescribeLoadBalancerList": [
676
+ {
677
+ "document": "查询负载均衡列表。",
678
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLoadBalancerList\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"ZoneId\": \"zone-2ju9lrnpaxol\",\n \"Filters\": []\n}",
679
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b8ecbb28-9360-4895-8138-668315e80b05\",\n \"LoadBalancerList\": [\n {\n \"FailoverPolicy\": \"OtherOriginGroup\",\n \"HealthChecker\": {\n \"CriticalThreshold\": 0,\n \"ExpectedCodes\": [],\n \"FollowRedirect\": \"\",\n \"Headers\": [],\n \"HealthThreshold\": 0,\n \"Interval\": 0,\n \"Method\": \"\",\n \"Path\": \"\",\n \"Port\": 0,\n \"RecvContext\": \"\",\n \"SendContext\": \"\",\n \"Timeout\": 0,\n \"Type\": \"NoCheck\"\n },\n \"InstanceId\": \"lb-2my56s2a4fw7\",\n \"L4UsedList\": [],\n \"L7UsedList\": [],\n \"Name\": \"dyn-lb\",\n \"OriginGroupHealthStatus\": [\n {\n \"OriginGroupID\": \"og-30l5kv5z2bse\",\n \"OriginGroupName\": \"allen_test_slave\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.12.231.49\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"43.137.35.174\"\n }\n ],\n \"OriginType\": \"GENERAL\",\n \"Priority\": \"priority_1\"\n },\n {\n \"OriginGroupID\": \"og-30l5kv5z2ase\",\n \"OriginGroupName\": \"allen_test_master\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.116.214.39\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"43.138.115.171\"\n }\n ],\n \"OriginType\": \"GENERAL\",\n \"Priority\": \"priority_2\"\n },\n {\n \"OriginGroupID\": \"og-30l5kv5z2bsf\",\n \"OriginGroupName\": \"test-origin\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"www.baidu.com\"\n }\n ],\n \"OriginType\": \"GENERAL\",\n \"Priority\": \"priority_3\"\n },\n {\n \"OriginGroupID\": \"og-31l5kv5z2bsf\",\n \"OriginGroupName\": \"origin-general\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n }\n ],\n \"OriginType\": \"GENERAL\",\n \"Priority\": \"priority_4\"\n }\n ],\n \"Status\": \"Running\",\n \"SteeringPolicy\": \"Pritory\",\n \"Type\": \"GENERAL\"\n },\n {\n \"FailoverPolicy\": \"OtherOriginGroup\",\n \"HealthChecker\": {\n \"CriticalThreshold\": 2,\n \"ExpectedCodes\": [],\n \"FollowRedirect\": \"\",\n \"Headers\": [],\n \"HealthThreshold\": 3,\n \"Interval\": 30,\n \"Method\": \"\",\n \"Path\": \"\",\n \"Port\": 3344,\n \"RecvContext\": \"\",\n \"SendContext\": \"\",\n \"Timeout\": 5,\n \"Type\": \"TCP\"\n },\n \"InstanceId\": \"lb-2my4ja5zzo1j\",\n \"L4UsedList\": [],\n \"L7UsedList\": [],\n \"Name\": \"pic-lb\",\n \"OriginGroupHealthStatus\": [\n {\n \"OriginGroupID\": \"og-30l5kv5z2bse\",\n \"OriginGroupName\": \"allen_test_master\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.116.214.39\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"43.138.115.171\"\n }\n ],\n \"OriginType\": \"GENERAL\",\n \"Priority\": \"priority_1\"\n },\n {\n \"OriginGroupID\": \"og-30l5kv5z2bse\",\n \"OriginGroupName\": \"allen_test_slave\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.12.231.49\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"43.137.35.174\"\n }\n ],\n \"OriginType\": \"GENERAL\",\n \"Priority\": \"priority_2\"\n }\n ],\n \"Status\": \"Running\",\n \"SteeringPolicy\": \"Pritory\",\n \"Type\": \"GENERAL\"\n }\n ],\n \"TotalCount\": 2\n }\n}",
680
+ "title": "查询负载均衡列表"
681
+ }
682
+ ],
629
683
  "DescribeOriginGroup": [
630
684
  {
631
685
  "document": "获取指定源站组ID的源站组列表",
@@ -634,6 +688,14 @@
634
688
  "title": "获取源站组列表"
635
689
  }
636
690
  ],
691
+ "DescribeOriginGroupHealthStatus": [
692
+ {
693
+ "document": "查询负载均衡实例下源站健康状态。\n",
694
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOriginGroupHealthStatus\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrmqaxol\",\n \"LBInstanceId\": \"lb-2mzy6je01y82\",\n \"OriginGroupIds\": [\n \"og-30l5kv5z2bse\"\n ]\n}",
695
+ "output": "{\n \"Response\": {\n \"RequestId\": \"2b891f6f-3317-4c31-a1dd-5b2e53eaae4e\",\n \"OriginGroupHealthStatusList\": [\n {\n \"CheckRegionHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n }\n ],\n \"Region\": \"BR-SP\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n }\n ],\n \"Region\": \"CN-JX\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n }\n ],\n \"Region\": \"NL-NH\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n }\n ],\n \"Region\": \"CN-SD\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n }\n ],\n \"Region\": \"US-FL\"\n }\n ],\n \"OriginGroupId\": \"og-30l5kv5z2bse\",\n \"OriginHealthStatus\": [\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"2.2.2.2\"\n },\n {\n \"Healthy\": \"Unhealthy\",\n \"Origin\": \"1.1.1.1\"\n }\n ]\n }\n ]\n }\n}",
696
+ "title": "查询负载均衡实例下源站健康状态"
697
+ }
698
+ ],
637
699
  "DescribeOriginProtection": [
638
700
  {
639
701
  "document": "查询源站防护信息",
@@ -782,7 +844,7 @@
782
844
  {
783
845
  "document": "",
784
846
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZoneSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\"\n}",
785
- "output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"ZoneSetting\": {\n \"AccelerateMainland\": {\n \"Switch\": \"off\"\n },\n \"Area\": \"global\",\n \"CacheConfig\": {\n \"Cache\": {\n \"CacheTime\": 2592000,\n \"Switch\": \"off\"\n },\n \"FollowOrigin\": {\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0,\n \"Switch\": \"on\"\n },\n \"NoCache\": {\n \"Switch\": \"off\"\n }\n },\n \"CacheKey\": {\n \"FullUrlCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Value\": []\n }\n },\n \"CachePrefresh\": {\n \"Percent\": 90,\n \"Switch\": \"off\"\n },\n \"ClientIpCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"ClientIpHeader\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"ForceRedirect\": {\n \"RedirectStatusCode\": 302,\n \"Switch\": \"off\"\n },\n \"Grpc\": {\n \"Switch\": \"off\"\n },\n \"Https\": {\n \"ApplyType\": \"none\",\n \"CertInfo\": [],\n \"CipherSuite\": \"loose-v2023\",\n \"Hsts\": {\n \"IncludeSubDomains\": \"off\",\n \"MaxAge\": 0,\n \"Preload\": \"off\",\n \"Switch\": \"off\"\n },\n \"Http2\": \"on\",\n \"OcspStapling\": \"off\",\n \"TlsVersion\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ]\n },\n \"ImageOptimize\": {\n \"Switch\": \"off\"\n },\n \"Ipv6\": {\n \"Switch\": \"off\"\n },\n \"MaxAge\": {\n \"FollowOrigin\": \"on\",\n \"MaxAgeTime\": 600\n },\n \"OfflineCache\": {\n \"Switch\": \"on\"\n },\n \"Origin\": {\n \"Origins\": [\n \"30.12.34.23\"\n ],\n \"BackupOrigins\": [\n \"30.12.34.11\"\n ],\n \"OriginPullProtocol\": \"follow\",\n \"CosPrivateAccess\": \"abc\"\n },\n \"PostMaxSize\": {\n \"MaxSize\": 524288000,\n \"Switch\": \"on\"\n },\n \"Quic\": {\n \"Switch\": \"off\"\n },\n \"SmartRouting\": {\n \"Switch\": \"off\"\n },\n \"StandardDebug\": {\n \"AllowClientIPList\": [],\n \"ExpireTime\": \"1969-12-31T16:00:00Z\",\n \"Switch\": \"off\"\n },\n \"UpstreamHttp2\": {\n \"Switch\": \"off\"\n },\n \"WebSocket\": {\n \"Switch\": \"off\",\n \"Timeout\": 30\n },\n \"ZoneName\": \"wxlagame.com\"\n }\n }\n}",
847
+ "output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"ZoneSetting\": {\n \"AccelerateMainland\": {\n \"Switch\": \"off\"\n },\n \"Area\": \"global\",\n \"CacheConfig\": {\n \"Cache\": {\n \"CacheTime\": 2592000,\n \"Switch\": \"off\"\n },\n \"FollowOrigin\": {\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0,\n \"Switch\": \"on\"\n },\n \"NoCache\": {\n \"Switch\": \"off\"\n }\n },\n \"CacheKey\": {\n \"FullUrlCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Value\": []\n }\n },\n \"CachePrefresh\": {\n \"Percent\": 90,\n \"Switch\": \"off\"\n },\n \"ClientIpCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"ClientIpHeader\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"ForceRedirect\": {\n \"RedirectStatusCode\": 302,\n \"Switch\": \"off\"\n },\n \"Grpc\": {\n \"Switch\": \"off\"\n },\n \"Https\": {\n \"ApplyType\": \"none\",\n \"CertInfo\": [],\n \"CipherSuite\": \"loose-v2023\",\n \"Hsts\": {\n \"IncludeSubDomains\": \"off\",\n \"MaxAge\": 0,\n \"Preload\": \"off\",\n \"Switch\": \"off\"\n },\n \"Http2\": \"on\",\n \"OcspStapling\": \"off\",\n \"TlsVersion\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ]\n },\n \"ImageOptimize\": {\n \"Switch\": \"off\"\n },\n \"Ipv6\": {\n \"Switch\": \"off\"\n },\n \"MaxAge\": {\n \"FollowOrigin\": \"on\",\n \"MaxAgeTime\": 600\n },\n \"OfflineCache\": {\n \"Switch\": \"on\"\n },\n \"Origin\": {\n \"Origins\": [\n \"30.12.34.23\"\n ],\n \"BackupOrigins\": [\n \"30.12.34.11\"\n ],\n \"OriginPullProtocol\": \"follow\",\n \"CosPrivateAccess\": \"abc\"\n },\n \"PostMaxSize\": {\n \"MaxSize\": 524288000,\n \"Switch\": \"on\"\n },\n \"Quic\": {\n \"Switch\": \"off\"\n },\n \"SmartRouting\": {\n \"Switch\": \"off\"\n },\n \"StandardDebug\": {\n \"AllowClientIPList\": [],\n \"ExpireTime\": \"1969-12-31T16:00:00Z\",\n \"Switch\": \"off\"\n },\n \"UpstreamHttp2\": {\n \"Switch\": \"off\"\n },\n \"WebSocket\": {\n \"Switch\": \"off\",\n \"Timeout\": 30\n },\n \"JITVideoProcess\": {\n \"Switch\": \"off\"\n },\n \"ZoneName\": \"wxlagame.com\"\n }\n }\n}",
786
848
  "title": "查询站点配置"
787
849
  }
788
850
  ],
@@ -1014,6 +1076,14 @@
1014
1076
  "title": "启用四层代理实例"
1015
1077
  }
1016
1078
  ],
1079
+ "ModifyLoadBalancer": [
1080
+ {
1081
+ "document": "修改负载均衡实例的检查策略,调整为 HTTP 探测。",
1082
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyLoadBalancer\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2ju9lrnpaxol\",\n \"Name\": \"HTTP-LB\",\n \"OriginGroups\": [\n {\n \"Priority\": \"priority_1\",\n \"OriginGroupId\": \"og-30l5kv5z2bse\"\n },\n {\n \"Priority\": \"priority_2\",\n \"OriginGroupId\": \"oog-30l3kv5z2bse\"\n },\n {\n \"Priority\": \"priority_3\",\n \"OriginGroupId\": \"og-30l5kv5z22e9\"\n }\n ],\n \"HealthChecker\": {\n \"Type\": \"HTTP\",\n \"Path\": \"www.qq.com/test111\",\n \"Port\": 80,\n \"Interval\": 30,\n \"Method\": \"HEAD\",\n \"ExpectedCodes\": [\n \"200\",\n \"400\",\n \"401\",\n \"402\",\n \"403\",\n \"404\",\n \"405\",\n \"406\",\n \"408\",\n \"409\",\n \"410\",\n \"411\",\n \"412\",\n \"413\",\n \"414\",\n \"415\",\n \"416\",\n \"417\",\n \"418\",\n \"421\",\n \"423\",\n \"424\",\n \"426\",\n \"429\",\n \"431\",\n \"433\",\n \"434\",\n \"444\",\n \"451\",\n \"499\"\n ],\n \"FollowRedirect\": \"false\",\n \"Headers\": [\n {\n \"Key\": \"header1\",\n \"Value\": \"header1\"\n },\n {\n \"Key\": \"header2\",\n \"Value\": \"header2\"\n }\n ],\n \"Timeout\": 5,\n \"HealthThreshold\": 3,\n \"CriticalThreshold\": 2\n },\n \"SteeringPolicy\": \"Pritory\",\n \"FailoverPolicy\": \"OtherRecordInOriginGroup\",\n \"InstanceId\": \"lb-2sswjr6gnfy2\"\n}",
1083
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a66b1739-9f63-4c2b-bad2-8ef0ca714d56\"\n }\n}",
1084
+ "title": "修改负载均衡实例的检查策略"
1085
+ }
1086
+ ],
1017
1087
  "ModifyOriginGroup": [
1018
1088
  {
1019
1089
  "document": "修改源站组名称为edgeone-new-origin",
@@ -6155,6 +6155,58 @@ def doCreateNodePool(args, parsed_globals):
6155
6155
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6156
6156
 
6157
6157
 
6158
+ def doModifyClusterImage(args, parsed_globals):
6159
+ g_param = parse_global_arg(parsed_globals)
6160
+
6161
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6162
+ cred = credential.CVMRoleCredential()
6163
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6164
+ cred = credential.STSAssumeRoleCredential(
6165
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6166
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6167
+ )
6168
+ 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):
6169
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6170
+ else:
6171
+ cred = credential.Credential(
6172
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6173
+ )
6174
+ http_profile = HttpProfile(
6175
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6176
+ reqMethod="POST",
6177
+ endpoint=g_param[OptionsDefine.Endpoint],
6178
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6179
+ )
6180
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6181
+ if g_param[OptionsDefine.Language]:
6182
+ profile.language = g_param[OptionsDefine.Language]
6183
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6184
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
6185
+ client._sdkVersion += ("_CLI_" + __version__)
6186
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6187
+ model = models.ModifyClusterImageRequest()
6188
+ model.from_json_string(json.dumps(args))
6189
+ start_time = time.time()
6190
+ while True:
6191
+ rsp = client.ModifyClusterImage(model)
6192
+ result = rsp.to_json_string()
6193
+ try:
6194
+ json_obj = json.loads(result)
6195
+ except TypeError as e:
6196
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6197
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6198
+ break
6199
+ cur_time = time.time()
6200
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6201
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6202
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6203
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6204
+ else:
6205
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6206
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6207
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6208
+
6209
+
6158
6210
  def doModifyClusterAsGroupAttribute(args, parsed_globals):
6159
6211
  g_param = parse_global_arg(parsed_globals)
6160
6212
 
@@ -12474,6 +12526,7 @@ ACTION_MAP = {
12474
12526
  "DescribeVpcCniPodLimits": doDescribeVpcCniPodLimits,
12475
12527
  "DescribeImageCaches": doDescribeImageCaches,
12476
12528
  "CreateNodePool": doCreateNodePool,
12529
+ "ModifyClusterImage": doModifyClusterImage,
12477
12530
  "ModifyClusterAsGroupAttribute": doModifyClusterAsGroupAttribute,
12478
12531
  "CreatePrometheusTemp": doCreatePrometheusTemp,
12479
12532
  "CreateClusterRoute": doCreateClusterRoute,
@@ -1316,6 +1316,13 @@
1316
1316
  "output": "ModifyClusterEndpointSPResponse",
1317
1317
  "status": "online"
1318
1318
  },
1319
+ "ModifyClusterImage": {
1320
+ "document": "修改集群镜像",
1321
+ "input": "ModifyClusterImageRequest",
1322
+ "name": "修改集群镜像",
1323
+ "output": "ModifyClusterImageResponse",
1324
+ "status": "online"
1325
+ },
1319
1326
  "ModifyClusterNodePool": {
1320
1327
  "document": "编辑节点池",
1321
1328
  "input": "ModifyClusterNodePoolRequest",
@@ -18793,6 +18800,42 @@
18793
18800
  ],
18794
18801
  "type": "object"
18795
18802
  },
18803
+ "ModifyClusterImageRequest": {
18804
+ "document": "ModifyClusterImage请求参数结构体",
18805
+ "members": [
18806
+ {
18807
+ "disabled": false,
18808
+ "document": "集群ID",
18809
+ "example": "cls-1oxlc88c",
18810
+ "member": "string",
18811
+ "name": "ClusterId",
18812
+ "required": true,
18813
+ "type": "string"
18814
+ },
18815
+ {
18816
+ "disabled": false,
18817
+ "document": "指定有效的镜像ID,格式形如img-xxxx。可通过登录控制台查询,也可调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715),取返回信息中的ImageId字段。",
18818
+ "example": "img-9qabwvbn",
18819
+ "member": "string",
18820
+ "name": "ImageId",
18821
+ "required": true,
18822
+ "type": "string"
18823
+ }
18824
+ ],
18825
+ "type": "object"
18826
+ },
18827
+ "ModifyClusterImageResponse": {
18828
+ "document": "ModifyClusterImage返回参数结构体",
18829
+ "members": [
18830
+ {
18831
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
18832
+ "member": "string",
18833
+ "name": "RequestId",
18834
+ "type": "string"
18835
+ }
18836
+ ],
18837
+ "type": "object"
18838
+ },
18796
18839
  "ModifyClusterNodePoolRequest": {
18797
18840
  "document": "ModifyClusterNodePool请求参数结构体",
18798
18841
  "members": [
@@ -1630,6 +1630,14 @@
1630
1630
  "title": "修改托管集群外网端口的安全策略"
1631
1631
  }
1632
1632
  ],
1633
+ "ModifyClusterImage": [
1634
+ {
1635
+ "document": "",
1636
+ "input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterImage\r\n&ClusterId=cls-xxxxxxxx\r\n&ImageId=img-xxxxxxxx\r\n&<公共请求参数>",
1637
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0b45d041-0f53-428f-ac89-51375d018e95\"\n }\n}",
1638
+ "title": "修改集群镜像"
1639
+ }
1640
+ ],
1633
1641
  "ModifyClusterNodePool": [
1634
1642
  {
1635
1643
  "document": "",
@@ -71,7 +71,7 @@ def doDescribeTextStat(args, parsed_globals):
71
71
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
72
72
 
73
73
 
74
- def doModerateText(args, parsed_globals):
74
+ def doAccountTipoffAccess(args, parsed_globals):
75
75
  g_param = parse_global_arg(parsed_globals)
76
76
 
77
77
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -100,11 +100,11 @@ def doModerateText(args, parsed_globals):
100
100
  client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
101
101
  client._sdkVersion += ("_CLI_" + __version__)
102
102
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
103
- model = models.ModerateTextRequest()
103
+ model = models.AccountTipoffAccessRequest()
104
104
  model.from_json_string(json.dumps(args))
105
105
  start_time = time.time()
106
106
  while True:
107
- rsp = client.ModerateText(model)
107
+ rsp = client.AccountTipoffAccess(model)
108
108
  result = rsp.to_json_string()
109
109
  try:
110
110
  json_obj = json.loads(result)
@@ -227,58 +227,6 @@ def doDescribeTextLib(args, parsed_globals):
227
227
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
228
228
 
229
229
 
230
- def doAccountTipoffAccess(args, parsed_globals):
231
- g_param = parse_global_arg(parsed_globals)
232
-
233
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
234
- cred = credential.CVMRoleCredential()
235
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
236
- cred = credential.STSAssumeRoleCredential(
237
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
238
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
239
- )
240
- 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):
241
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
242
- else:
243
- cred = credential.Credential(
244
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
245
- )
246
- http_profile = HttpProfile(
247
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
248
- reqMethod="POST",
249
- endpoint=g_param[OptionsDefine.Endpoint],
250
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
251
- )
252
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
253
- if g_param[OptionsDefine.Language]:
254
- profile.language = g_param[OptionsDefine.Language]
255
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
256
- client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
257
- client._sdkVersion += ("_CLI_" + __version__)
258
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
259
- model = models.AccountTipoffAccessRequest()
260
- model.from_json_string(json.dumps(args))
261
- start_time = time.time()
262
- while True:
263
- rsp = client.AccountTipoffAccess(model)
264
- result = rsp.to_json_string()
265
- try:
266
- json_obj = json.loads(result)
267
- except TypeError as e:
268
- json_obj = json.loads(result.decode('utf-8')) # python3.3
269
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
270
- break
271
- cur_time = time.time()
272
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
273
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
274
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
275
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
276
- else:
277
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
278
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
279
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
280
-
281
-
282
230
  CLIENT_MAP = {
283
231
  "v20201229": tms_client_v20201229,
284
232
  "v20200713": tms_client_v20200713,
@@ -293,10 +241,9 @@ MODELS_MAP = {
293
241
 
294
242
  ACTION_MAP = {
295
243
  "DescribeTextStat": doDescribeTextStat,
296
- "ModerateText": doModerateText,
244
+ "AccountTipoffAccess": doAccountTipoffAccess,
297
245
  "TextModeration": doTextModeration,
298
246
  "DescribeTextLib": doDescribeTextLib,
299
- "AccountTipoffAccess": doAccountTipoffAccess,
300
247
 
301
248
  }
302
249