tccli 3.0.990.1__py2.py3-none-any.whl → 3.0.992.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 (48) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/car/v20220110/DestroySession.md +1 -1
  3. tccli/examples/cls/v20201016/CheckFunction.md +25 -0
  4. tccli/examples/ess/v20201111/DescribeBillUsageDetail.md +108 -0
  5. tccli/examples/essbasic/v20210526/ChannelCreatePreparedPersonalEsign.md +92 -0
  6. tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +94 -19
  7. tccli/examples/essbasic/v20210526/ChannelCreateSealPolicy.md +88 -0
  8. tccli/examples/essbasic/v20210526/ChannelDescribeEmployees.md +85 -45
  9. tccli/examples/essbasic/v20210526/DescribeBillUsageDetail.md +69 -0
  10. tccli/examples/essbasic/v20210526/SyncProxyOrganization.md +9 -9
  11. tccli/examples/mna/v20210119/GetNetMonitor.md +228 -0
  12. tccli/examples/ocr/v20181119/VatInvoiceVerifyNew.md +4 -0
  13. tccli/examples/tdmq/v20200217/DescribeRocketMQCluster.md +4 -4
  14. tccli/examples/teo/v20220901/BindSharedCNAME.md +48 -0
  15. tccli/examples/teo/v20220901/CreateSharedCNAME.md +4 -4
  16. tccli/examples/teo/v20220901/DeleteSharedCNAME.md +21 -0
  17. tccli/examples/waf/v20180125/DescribeCCRuleList.md +16 -2
  18. tccli/examples/waf/v20180125/DescribeModuleStatus.md +9 -1
  19. tccli/examples/waf/v20180125/ModifyModuleStatus.md +9 -1
  20. tccli/services/aiart/v20221229/api.json +2 -2
  21. tccli/services/car/v20220110/api.json +2 -2
  22. tccli/services/car/v20220110/examples.json +1 -1
  23. tccli/services/clb/v20180317/api.json +1 -1
  24. tccli/services/cls/cls_client.py +53 -0
  25. tccli/services/cls/v20201016/api.json +72 -0
  26. tccli/services/cls/v20201016/examples.json +8 -0
  27. tccli/services/ess/ess_client.py +53 -0
  28. tccli/services/ess/v20201111/api.json +228 -3
  29. tccli/services/ess/v20201111/examples.json +20 -0
  30. tccli/services/essbasic/v20210526/api.json +38 -29
  31. tccli/services/essbasic/v20210526/examples.json +51 -15
  32. tccli/services/mna/mna_client.py +53 -0
  33. tccli/services/mna/v20210119/api.json +142 -0
  34. tccli/services/mna/v20210119/examples.json +8 -0
  35. tccli/services/ocr/v20181119/api.json +65 -25
  36. tccli/services/ocr/v20181119/examples.json +1 -1
  37. tccli/services/tdmq/v20200217/api.json +107 -38
  38. tccli/services/tdmq/v20200217/examples.json +3 -3
  39. tccli/services/teo/teo_client.py +114 -8
  40. tccli/services/teo/v20220901/api.json +127 -4
  41. tccli/services/teo/v20220901/examples.json +26 -4
  42. tccli/services/waf/v20180125/api.json +194 -5
  43. tccli/services/waf/v20180125/examples.json +5 -5
  44. {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/METADATA +2 -2
  45. {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/RECORD +48 -42
  46. {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/WHEEL +0 -0
  47. {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/entry_points.txt +0 -0
  48. {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,69 @@
1
+ **Example 1: 查询失败样例**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli essbasic DescribeBillUsageDetail --cli-unfold-argument \
9
+ --Agent.AppId ydxxxxxx \
10
+ --Agent.ProxyOrganizationOpenId orgxxxx \
11
+ --StartTime 20230902 \
12
+ --EndTime 20230930 \
13
+ --Offset 0 \
14
+ --Limit 1000
15
+ ```
16
+
17
+ Output:
18
+ ```
19
+ {
20
+ "Response": {
21
+ "Error": {
22
+ "Code": "InvalidParameter.Limit",
23
+ "Message": "分页参数不合法"
24
+ },
25
+ "RequestId": "s169935778xxxxxxx"
26
+ }
27
+ }
28
+ ```
29
+
30
+ **Example 2: 查询渠道客户消耗**
31
+
32
+
33
+
34
+ Input:
35
+
36
+ ```
37
+ tccli essbasic DescribeBillUsageDetail --cli-unfold-argument \
38
+ --StartTime 20230902 \
39
+ --EndTime 20230930 \
40
+ --Offset 0 \
41
+ --Limit 1000 \
42
+ --Agent.AppId ydxxxxxx \
43
+ --Agent.ProxyOrganizationOpenId orgxxxx
44
+ ```
45
+
46
+ Output:
47
+ ```
48
+ {
49
+ "Response": {
50
+ "Details": [
51
+ {
52
+ "CostTime": 1695037514,
53
+ "CostType": 1,
54
+ "FlowId": "yDwJOU5e7ikveIUxMW0p2uJxxxxxxxxxx",
55
+ "FlowName": "腾讯电子签xxxxx合同",
56
+ "OperatorName": "张三;李斯",
57
+ "QuotaName": "签署报告(出证服务)",
58
+ "QuotaType": "CloudProve",
59
+ "Remark": "",
60
+ "Status": 4,
61
+ "UseCount": 1
62
+ }
63
+ ],
64
+ "RequestId": "s16992572741898xxxx",
65
+ "Total": 1
66
+ }
67
+ }
68
+ ```
69
+
@@ -6,22 +6,22 @@ Input:
6
6
 
7
7
  ```
8
8
  tccli essbasic SyncProxyOrganization --cli-unfold-argument \
9
- --ProxyOrganizationName 子客企业名称 \
10
- --UniformSocialCreditCode code \
11
- --BusinessLicense l \
12
- --ProxyLegalName name \
9
+ --ProxyOrganizationName 典子谦示例企业 \
10
+ --UniformSocialCreditCode BOLIU101304662708A \
11
+ --BusinessLicense aHR0cHM6Ly9jYXBpLndvYS5jb20vhaWwlM0ZpZCUzRGVzc2Jhc2ljJTI2dGFiJTNEYXBp..图片base64省略 \
12
+ --ProxyLegalName 典子谦 \
13
13
  --ProxyLegalIdCardType ID_CARD \
14
- --ProxyLegalIdCardNumber 666666200001011066 \
15
- --Agent.ProxyOperator.OpenId proxy-operator-openid \
16
- --Agent.ProxyOrganizationOpenId proxy-organization-openid \
17
- --Agent.AppId test-appid
14
+ --ProxyLegalIdCardNumber 620000198802020000 \
15
+ --Agent.ProxyOperator.OpenId n31517 \
16
+ --Agent.ProxyOrganizationOpenId org_zhansan \
17
+ --Agent.AppId yDwhxUUckp3gl8j5UuFX33LSNozpRsbi
18
18
  ```
19
19
 
20
20
  Output:
21
21
  ```
22
22
  {
23
23
  "Response": {
24
- "RequestId": "s16221***14775648"
24
+ "RequestId": "8fb09e62-9642-44c8-992b-ddd6e5086293"
25
25
  }
26
26
  }
27
27
  ```
@@ -0,0 +1,228 @@
1
+ **Example 1: 获取流量监控信息**
2
+
3
+ 获取流量监控信息
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli mna GetNetMonitor --cli-unfold-argument ```
9
+
10
+ Output:
11
+ ```
12
+ {
13
+ "Response": {
14
+ "MonitorData": [
15
+ {
16
+ "Time": "1673601780",
17
+ "BusinessMetrics": 492350276.319998,
18
+ "SlotNetInfo": [
19
+ {
20
+ "NetInfoName": "eth0",
21
+ "PublicIP": "9.223.110.232",
22
+ "Current": 27582845.919998
23
+ },
24
+ {
25
+ "NetInfoName": "eth1",
26
+ "PublicIP": "9.223.96.218",
27
+ "Current": 395158790.239997
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "Time": "1673601840",
33
+ "BusinessMetrics": 412655416,
34
+ "SlotNetInfo": [
35
+ {
36
+ "NetInfoName": "eth0",
37
+ "PublicIP": "9.223.110.232",
38
+ "Current": 27228367.066665
39
+ },
40
+ {
41
+ "NetInfoName": "eth1",
42
+ "PublicIP": "9.223.96.218",
43
+ "Current": 397505721.866666
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "Time": "1673601900",
49
+ "BusinessMetrics": 411823866.666665,
50
+ "SlotNetInfo": [
51
+ {
52
+ "NetInfoName": "eth0",
53
+ "PublicIP": "9.223.110.232",
54
+ "Current": 28047154.266665
55
+ },
56
+ {
57
+ "NetInfoName": "eth1",
58
+ "PublicIP": "9.223.96.218",
59
+ "Current": 396059005.333333
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "Time": "1673601960",
65
+ "BusinessMetrics": 412108687.733331,
66
+ "SlotNetInfo": [
67
+ {
68
+ "NetInfoName": "eth0",
69
+ "PublicIP": "9.223.110.232",
70
+ "Current": 29244132.933331
71
+ },
72
+ {
73
+ "NetInfoName": "eth1",
74
+ "PublicIP": "9.223.96.218",
75
+ "Current": 395156858.266664
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "Time": "1673602020",
81
+ "BusinessMetrics": 412778279.866666,
82
+ "SlotNetInfo": [
83
+ {
84
+ "NetInfoName": "eth0",
85
+ "PublicIP": "9.223.110.232",
86
+ "Current": 26898350.666666
87
+ },
88
+ {
89
+ "NetInfoName": "eth1",
90
+ "PublicIP": "9.223.96.218",
91
+ "Current": 398191465.733331
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "Time": "1673602080",
97
+ "BusinessMetrics": 412630582.533333,
98
+ "SlotNetInfo": [
99
+ {
100
+ "NetInfoName": "eth0",
101
+ "PublicIP": "9.223.110.232",
102
+ "Current": 28580784.266665
103
+ },
104
+ {
105
+ "NetInfoName": "eth1",
106
+ "PublicIP": "9.223.96.218",
107
+ "Current": 396357362.933332
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "Time": "1673602140",
113
+ "BusinessMetrics": 412431913.466665,
114
+ "SlotNetInfo": [
115
+ {
116
+ "NetInfoName": "eth0",
117
+ "PublicIP": "9.223.110.232",
118
+ "Current": 27329174.8
119
+ },
120
+ {
121
+ "NetInfoName": "eth1",
122
+ "PublicIP": "9.223.96.218",
123
+ "Current": 397404181.866666
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "Time": "1673602200",
129
+ "BusinessMetrics": 410982346.266665,
130
+ "SlotNetInfo": [
131
+ {
132
+ "NetInfoName": "eth0",
133
+ "PublicIP": "9.223.110.232",
134
+ "Current": 29038580.399999
135
+ },
136
+ {
137
+ "NetInfoName": "eth1",
138
+ "PublicIP": "9.223.96.218",
139
+ "Current": 394201611.866666
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "Time": "1673602260",
145
+ "BusinessMetrics": 409923330.933332,
146
+ "SlotNetInfo": [
147
+ {
148
+ "NetInfoName": "eth0",
149
+ "PublicIP": "9.223.110.232",
150
+ "Current": 28212205.599999
151
+ },
152
+ {
153
+ "NetInfoName": "eth1",
154
+ "PublicIP": "9.223.96.218",
155
+ "Current": 393937825.066666
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "Time": "1673602320",
161
+ "BusinessMetrics": 353662726.399999,
162
+ "SlotNetInfo": [
163
+ {
164
+ "NetInfoName": "eth0",
165
+ "PublicIP": "9.223.110.232",
166
+ "Current": 25376171.542857
167
+ },
168
+ {
169
+ "NetInfoName": "eth1",
170
+ "PublicIP": "9.223.96.218",
171
+ "Current": 338834939.199999
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "Time": "1673602380",
177
+ "BusinessMetrics": -1,
178
+ "SlotNetInfo": [
179
+ {
180
+ "NetInfoName": "eth0",
181
+ "PublicIP": "9.223.110.232",
182
+ "Current": -1
183
+ },
184
+ {
185
+ "NetInfoName": "eth1",
186
+ "PublicIP": "9.223.96.218",
187
+ "Current": -1
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "Time": "1673602440",
193
+ "BusinessMetrics": -1,
194
+ "SlotNetInfo": [
195
+ {
196
+ "NetInfoName": "eth0",
197
+ "PublicIP": "9.223.110.232",
198
+ "Current": -1
199
+ },
200
+ {
201
+ "NetInfoName": "eth1",
202
+ "PublicIP": "9.223.96.218",
203
+ "Current": -1
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "Time": "1673602500",
209
+ "BusinessMetrics": -1,
210
+ "SlotNetInfo": [
211
+ {
212
+ "NetInfoName": "eth0",
213
+ "PublicIP": "9.223.110.232",
214
+ "Current": -1
215
+ },
216
+ {
217
+ "NetInfoName": "eth1",
218
+ "PublicIP": "9.223.96.218",
219
+ "Current": -1
220
+ }
221
+ ]
222
+ }
223
+ ],
224
+ "RequestId": "xxx"
225
+ }
226
+ }
227
+ ```
228
+
@@ -36,8 +36,12 @@ Output:
36
36
  "MachineNo": "",
37
37
  "Number": "04138864",
38
38
  "Remark": "",
39
+ "RedLetterInvoiceMark": false,
40
+ "IssuingTypeMark": 1,
39
41
  "SellerAddressPhone": "",
40
42
  "SellerBankAccount": "",
43
+ "SellerAgentName": "",
44
+ "SellerAgentTaxID": "",
41
45
  "SellerListTax": "",
42
46
  "SellerListTitle": "",
43
47
  "SellerName": "广州市天河区员美丽美食店",
@@ -1,6 +1,6 @@
1
- **Example 1: huo**
2
-
1
+ **Example 1: 获取RocketMQ集群详情**
3
2
 
3
+ 获取RocketMQ集群详情
4
4
 
5
5
  Input:
6
6
 
@@ -24,8 +24,8 @@ Output:
24
24
  "VpcEndPoint": "pulsar://xxxxx.com:6650",
25
25
  "Vpcs": [
26
26
  {
27
- "SubnetId": "xx",
28
- "VpcId": "xx"
27
+ "SubnetId": "subnet-123",
28
+ "VpcId": "vpc-12333"
29
29
  }
30
30
  ],
31
31
  "SupportNamespaceEndpoint": true,
@@ -0,0 +1,48 @@
1
+ **Example 1: 绑定共享 CNAME**
2
+
3
+ 将 ZoneId 为 zone-225qgrnvbi9w 的站点下的域名 a.qq.com 和 b.qq.com 绑定至共享 CNAME qq.com.sai2ig51kaa5.share.dnse5.com,域名 api.qq.com 和 img.qq.com 绑定至共享 CNAME config.qq.com.sai2ig51kaa5.share.dnse5.com。
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli teo BindSharedCNAME --cli-unfold-argument \
9
+ --ZoneId zone-225qgrnvbi9w \
10
+ --BindType bind \
11
+ --BindSharedCNAMEMaps.0.SharedCNAME qq.com.sai2ig51kaa5.share.dnse5.com \
12
+ --BindSharedCNAMEMaps.0.DomainNames a.qq.com b.qq.com \
13
+ --BindSharedCNAMEMaps.1.SharedCNAME config.qq.com.sai2ig51kaa5.share.dnse5.com \
14
+ --BindSharedCNAMEMaps.1.DomainNames api.qq.com img.qq.com
15
+ ```
16
+
17
+ Output:
18
+ ```
19
+ {
20
+ "Response": {
21
+ "RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
22
+ }
23
+ }
24
+ ```
25
+
26
+ **Example 2: 解绑共享 CNAME**
27
+
28
+ 将 ZoneId 为 zone-225qgrnvbi9w 的站点下的域名 a.qq.com 和共享 CNAME qq.com.sai2ig51kaa5.share.dnse5.com 解绑。
29
+
30
+ Input:
31
+
32
+ ```
33
+ tccli teo BindSharedCNAME --cli-unfold-argument \
34
+ --ZoneId zone-225qgrnvbi9w \
35
+ --BindType unbind \
36
+ --BindSharedCNAMEMaps.0.SharedCNAME qq.com.sai2ig51kaa5.share.dnse5.com \
37
+ --BindSharedCNAMEMaps.0.DomainNames a.qq.com
38
+ ```
39
+
40
+ Output:
41
+ ```
42
+ {
43
+ "Response": {
44
+ "RequestId": "5e0a2b4e-df6d-5d3a-ac39-1706cbf8a708"
45
+ }
46
+ }
47
+ ```
48
+
@@ -1,6 +1,6 @@
1
- **Example 1: 创建共享CNAME**
1
+ **Example 1: 创建共享 CNAME**
2
2
 
3
- 创建共享CNAME
3
+ 在 ZoneId 为 zone-225qgrnvbi9w 的站点下,创建一个共享 CNAME 前缀为 test,描述为 For Service A 的共享 CNAME。
4
4
 
5
5
  Input:
6
6
 
@@ -8,14 +8,14 @@ Input:
8
8
  tccli teo CreateSharedCNAME --cli-unfold-argument \
9
9
  --SharedCNAMEPrefix test \
10
10
  --ZoneId zone-225qgrnvbi9w \
11
- --Description 用于业务A场景
11
+ --Description For Service A
12
12
  ```
13
13
 
14
14
  Output:
15
15
  ```
16
16
  {
17
17
  "Response": {
18
- "SharedCNAME": "test.225qgrnvbi9w.share.eo.dnse1.com",
18
+ "SharedCNAME": "test.225qgrnvbi9w.share.dnse1.com",
19
19
  "RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
20
20
  }
21
21
  }
@@ -0,0 +1,21 @@
1
+ **Example 1: 删除共享 CNAME**
2
+
3
+ 删除 ZoneId 为 zone-225qgrnvbi9w 的站点下的共享 CNAME qq.com.225qgrnvbi9w.share.dnse5.com。
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli teo DeleteSharedCNAME --cli-unfold-argument \
9
+ --SharedCNAME qq.com.225qgrnvbi9w.share.dnse5.com \
10
+ --ZoneId zone-225qgrnvbi9w
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Response": {
17
+ "RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
18
+ }
19
+ }
20
+ ```
21
+
@@ -5,7 +5,15 @@
5
5
  Input:
6
6
 
7
7
  ```
8
- tccli waf DescribeCCRuleList --cli-unfold-argument ```
8
+ tccli waf DescribeCCRuleList --cli-unfold-argument \
9
+ --Domain www.testwaf.com \
10
+ --Limit 1 \
11
+ --Filters.0.Values clb saas \
12
+ --Filters.0.Name InstanceType \
13
+ --Filters.0.ExactMatch True \
14
+ --Offset 1 \
15
+ --By ts_version
16
+ ```
9
17
 
10
18
  Output:
11
19
  ```
@@ -23,7 +31,13 @@ Output:
23
31
  Input:
24
32
 
25
33
  ```
26
- tccli waf DescribeCCRuleList --cli-unfold-argument ```
34
+ tccli waf DescribeCCRuleList --cli-unfold-argument \
35
+ --By ts_version \
36
+ --Domain hzh.qcloud.com \
37
+ --Limit 10 \
38
+ --Order asc \
39
+ --Offset 10000002
40
+ ```
27
41
 
28
42
  Output:
29
43
  ```
@@ -5,12 +5,20 @@
5
5
  Input:
6
6
 
7
7
  ```
8
- tccli waf DescribeModuleStatus --cli-unfold-argument ```
8
+ tccli waf DescribeModuleStatus --cli-unfold-argument \
9
+ --Domain test.qcloudwaf.com
10
+ ```
9
11
 
10
12
  Output:
11
13
  ```
12
14
  {
13
15
  "Response": {
16
+ "AccessControl": 1,
17
+ "AntiLeakage": 1,
18
+ "WebSecurity": 1,
19
+ "ApiProtection": 1,
20
+ "CcProtection": 1,
21
+ "AntiTamper": 1,
14
22
  "RequestId": "46757c6e-786c-48ca-b5c4-9fa29ece1c9e"
15
23
  }
16
24
  }
@@ -5,7 +5,15 @@
5
5
  Input:
6
6
 
7
7
  ```
8
- tccli waf ModifyModuleStatus --cli-unfold-argument ```
8
+ tccli waf ModifyModuleStatus --cli-unfold-argument \
9
+ --Domain zjm.qcloudwaf.com \
10
+ --WebSecurity 1 \
11
+ --AccessControl 1 \
12
+ --CcProtection 1 \
13
+ --AntiTamper 1 \
14
+ --AntiLeakage 1 \
15
+ --ApiProtection 1
16
+ ```
9
17
 
10
18
  Output:
11
19
  ```
@@ -227,7 +227,7 @@
227
227
  "members": [
228
228
  {
229
229
  "disabled": false,
230
- "document": "生成图分辨率\n\n智能文生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9)\n\n智能图生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)\n\n不传默认使用768:768\n\n示例值:768:768",
230
+ "document": "生成图分辨率\n\n智能文生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9)\n\n智能图生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)\n\n不传默认使用768:768",
231
231
  "example": "768:768",
232
232
  "member": "string",
233
233
  "name": "Resolution",
@@ -269,7 +269,7 @@
269
269
  },
270
270
  {
271
271
  "disabled": false,
272
- "document": "生成图结果的配置,包括输出图片分辨率和尺寸等。\n\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、720:1440(1:2)、1440:720(2:1)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。\n\n示例值:768:768\n",
272
+ "document": "生成图结果的配置,包括输出图片分辨率和尺寸等。\n\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。\n",
273
273
  "example": "无",
274
274
  "member": "ResultConfig",
275
275
  "name": "ResultConfig",
@@ -15,7 +15,7 @@
15
15
  "status": "online"
16
16
  },
17
17
  "DestroySession": {
18
- "document": "销毁会话",
18
+ "document": "销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。",
19
19
  "input": "DestroySessionRequest",
20
20
  "name": "销毁会话",
21
21
  "output": "DestroySessionResponse",
@@ -210,7 +210,7 @@
210
210
  {
211
211
  "disabled": false,
212
212
  "document": "唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)",
213
- "example": "cg_user",
213
+ "example": "abc",
214
214
  "member": "string",
215
215
  "name": "UserId",
216
216
  "required": true,
@@ -19,7 +19,7 @@
19
19
  "DestroySession": [
20
20
  {
21
21
  "document": "",
22
- "input": "POST / HTTP/1.1\nHost: car.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DestroySession\n<公共请求参数>\n\n{\n \"UserId\": \"cg_user\"\n}",
22
+ "input": "POST / HTTP/1.1\nHost: car.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DestroySession\n<公共请求参数>\n\n{\n \"UserId\": \"abc\"\n}",
23
23
  "output": "{\n \"Response\": {\n \"RequestId\": \"fcf4146f-64d3-496c-88dc-d12f832de313\"\n }\n}",
24
24
  "title": "DestroySession示例"
25
25
  }
@@ -5917,7 +5917,7 @@
5917
5917
  {
5918
5918
  "disabled": false,
5919
5919
  "document": "健康检查状态码(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式)。可选值:1~31,默认 31。\n1 表示探测后返回值 1xx 代表健康,2 表示返回 2xx 代表健康,4 表示返回 3xx 代表健康,8 表示返回 4xx 代表健康,16 表示返回 5xx 代表健康。若希望多种返回码都可代表健康,则将相应的值相加。\n注意:此字段可能返回 null,表示取不到有效值。",
5920
- "example": "504",
5920
+ "example": "8",
5921
5921
  "member": "int64",
5922
5922
  "name": "HttpCode",
5923
5923
  "output_required": true,
@@ -2877,6 +2877,58 @@ def doDeleteConfigExtra(args, parsed_globals):
2877
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
2878
 
2879
2879
 
2880
+ def doCheckFunction(args, parsed_globals):
2881
+ g_param = parse_global_arg(parsed_globals)
2882
+
2883
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2884
+ cred = credential.CVMRoleCredential()
2885
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2886
+ cred = credential.STSAssumeRoleCredential(
2887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2888
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2889
+ )
2890
+ 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):
2891
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2892
+ else:
2893
+ cred = credential.Credential(
2894
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2895
+ )
2896
+ http_profile = HttpProfile(
2897
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2898
+ reqMethod="POST",
2899
+ endpoint=g_param[OptionsDefine.Endpoint],
2900
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2901
+ )
2902
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2903
+ if g_param[OptionsDefine.Language]:
2904
+ profile.language = g_param[OptionsDefine.Language]
2905
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2906
+ client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
2907
+ client._sdkVersion += ("_CLI_" + __version__)
2908
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
+ model = models.CheckFunctionRequest()
2910
+ model.from_json_string(json.dumps(args))
2911
+ start_time = time.time()
2912
+ while True:
2913
+ rsp = client.CheckFunction(model)
2914
+ result = rsp.to_json_string()
2915
+ try:
2916
+ json_obj = json.loads(result)
2917
+ except TypeError as e:
2918
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2919
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2920
+ break
2921
+ cur_time = time.time()
2922
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2923
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2924
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2925
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2926
+ else:
2927
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2928
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2929
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
+
2931
+
2880
2932
  def doSearchLog(args, parsed_globals):
2881
2933
  g_param = parse_global_arg(parsed_globals)
2882
2934
 
@@ -4614,6 +4666,7 @@ ACTION_MAP = {
4614
4666
  "DescribeAlarmNotices": doDescribeAlarmNotices,
4615
4667
  "DescribePartitions": doDescribePartitions,
4616
4668
  "DeleteConfigExtra": doDeleteConfigExtra,
4669
+ "CheckFunction": doCheckFunction,
4617
4670
  "SearchLog": doSearchLog,
4618
4671
  "DeleteShipper": doDeleteShipper,
4619
4672
  "QueryRangeMetric": doQueryRangeMetric,