tccli 3.0.1081.1__py2.py3-none-any.whl → 3.0.1082.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1081.1'
1
+ __version__ = '3.0.1082.1'
@@ -1,12 +1,12 @@
1
1
  **Example 1: 创建项目**
2
2
 
3
-
3
+ 创建项目
4
4
 
5
5
  Input:
6
6
 
7
7
  ```
8
8
  tccli tag AddProject --cli-unfold-argument \
9
- --ProjectName tp2
9
+ --ProjectName 测试项目
10
10
  ```
11
11
 
12
12
  Output:
@@ -14,8 +14,8 @@ Output:
14
14
  {
15
15
  "Response": {
16
16
  "IsNew": 1,
17
- "ProjectId": 1024690,
18
- "RequestId": "caf5c6ba-b21b-4769-b0bb-0b3090e0c282"
17
+ "ProjectId": 1001,
18
+ "RequestId": "7f831036-30b5-4972-a729-e6851a15d345"
19
19
  }
20
20
  }
21
21
  ```
@@ -1,20 +1,20 @@
1
1
  **Example 1: 修改项目名称**
2
2
 
3
-
3
+ 修改项目名称
4
4
 
5
5
  Input:
6
6
 
7
7
  ```
8
8
  tccli tag UpdateProject --cli-unfold-argument \
9
- --ProjectId 1024690 \
10
- --ProjectName test
9
+ --ProjectId 1001 \
10
+ --ProjectName 项目名称
11
11
  ```
12
12
 
13
13
  Output:
14
14
  ```
15
15
  {
16
16
  "Response": {
17
- "RequestId": "f26b281e-0cbc-40ab-a38b-e9e62ef6fd24"
17
+ "RequestId": "87ccfc15-4c5a-4f0a-b5f1-eae50aad9e9a"
18
18
  }
19
19
  }
20
20
  ```
@@ -0,0 +1,21 @@
1
+ **Example 1: 查询页面录制状态**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trtc DescribeWebRecord --cli-unfold-argument \
9
+ --TaskId xxx
10
+ ```
11
+
12
+ Output:
13
+ ```
14
+ {
15
+ "Response": {
16
+ "Status": 1,
17
+ "RequestId": "abc"
18
+ }
19
+ }
20
+ ```
21
+
@@ -0,0 +1,31 @@
1
+ **Example 1: 启动一个页面录制任务**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trtc StartWebRecord --cli-unfold-argument \
9
+ --RecordUrl https://web-record-xxxxx.cos.ap-xxx.myqcloud.com/xxxx/xxx.mp4 \
10
+ --StorageParams.CloudStorage.Vendor 0 \
11
+ --StorageParams.CloudStorage.Bucket webrecord-1234589 \
12
+ --StorageParams.CloudStorage.Region ap-chengdu \
13
+ --StorageParams.CloudStorage.AccessKey AKxxxxxx \
14
+ --StorageParams.CloudStorage.SecretKey Idxxxxxx \
15
+ --StorageParams.CloudStorage.FileNamePrefix record video \
16
+ --MaxDurationLimit 3600 \
17
+ --WebRecordVideoParams.Width 1280 \
18
+ --WebRecordVideoParams.Height 720 \
19
+ --WebRecordVideoParams.Format mp4
20
+ ```
21
+
22
+ Output:
23
+ ```
24
+ {
25
+ "Response": {
26
+ "TaskId": "abc",
27
+ "RequestId": "abc"
28
+ }
29
+ }
30
+ ```
31
+
@@ -0,0 +1,20 @@
1
+ **Example 1: 停止页面录制任务**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trtc StopWebRecord --cli-unfold-argument \
9
+ --TaskId xxxx
10
+ ```
11
+
12
+ Output:
13
+ ```
14
+ {
15
+ "Response": {
16
+ "RequestId": "abc"
17
+ }
18
+ }
19
+ ```
20
+
@@ -12774,7 +12774,7 @@
12774
12774
  },
12775
12775
  {
12776
12776
  "disabled": false,
12777
- "document": "阻断状态:1-阻断成功;非1-阻断失败\n注意:此字段可能返回 null,表示取不到有效值。",
12777
+ "document": "0 -不阻断(客户端版本不支持)\n1 -已阻断\n2 -阻断失败(程序异常)\n3 -不阻断(内网不阻断)\n4 -可用区不支持阻断\n10-阻断中\n81-不阻断(未开启阻断)\n82-不阻断(非专业版)\n83-不阻断(已加白名单)\n86-不阻断(系统白名单)\n87-不阻断(客户端离线)\n注意:此字段可能返回 null,表示取不到有效值。",
12778
12778
  "example": "0",
12779
12779
  "member": "uint64",
12780
12780
  "name": "BanStatus",
@@ -12911,6 +12911,26 @@
12911
12911
  "output_required": false,
12912
12912
  "type": "int",
12913
12913
  "value_allowed_null": true
12914
+ },
12915
+ {
12916
+ "disabled": false,
12917
+ "document": "破解状态说明\n注意:此字段可能返回 null,表示取不到有效值。",
12918
+ "example": "无",
12919
+ "member": "string",
12920
+ "name": "AttackStatusDesc",
12921
+ "output_required": false,
12922
+ "type": "string",
12923
+ "value_allowed_null": true
12924
+ },
12925
+ {
12926
+ "disabled": false,
12927
+ "document": "阻断过期时间(仅阻断中事件有效)\n注意:此字段可能返回 null,表示取不到有效值。",
12928
+ "example": "无",
12929
+ "member": "string",
12930
+ "name": "BanExpiredTime",
12931
+ "output_required": false,
12932
+ "type": "string",
12933
+ "value_allowed_null": true
12914
12934
  }
12915
12935
  ],
12916
12936
  "usage": "out"
@@ -21105,6 +21125,16 @@
21105
21125
  "type": "bool",
21106
21126
  "value_allowed_null": false
21107
21127
  },
21128
+ {
21129
+ "disabled": false,
21130
+ "document": "是否开启智能过白模式",
21131
+ "example": "无",
21132
+ "member": "bool",
21133
+ "name": "OpenSmartMode",
21134
+ "output_required": false,
21135
+ "type": "bool",
21136
+ "value_allowed_null": false
21137
+ },
21108
21138
  {
21109
21139
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
21110
21140
  "member": "string",
@@ -46403,12 +46433,21 @@
46403
46433
  "members": [
46404
46434
  {
46405
46435
  "disabled": false,
46406
- "document": "阻断状态 0:关闭 1:开启",
46436
+ "document": "阻断开关状态: 0 -- 关闭 1 -- 高级阻断 2 -- 基础阻断(只阻断情报库黑ip)",
46407
46437
  "example": "1",
46408
46438
  "member": "uint64",
46409
46439
  "name": "Status",
46410
46440
  "required": true,
46411
46441
  "type": "int"
46442
+ },
46443
+ {
46444
+ "disabled": false,
46445
+ "document": "是否开启智能过白模式",
46446
+ "example": "无",
46447
+ "member": "bool",
46448
+ "name": "OpenSmartMode",
46449
+ "required": false,
46450
+ "type": "bool"
46412
46451
  }
46413
46452
  ],
46414
46453
  "type": "object"
@@ -693,7 +693,7 @@
693
693
  },
694
694
  {
695
695
  "disabled": false,
696
- "document": "通知签署方经办人的方式, 有以下途径:\n<ul><li> **sms** : (默认)短信</li>\n<li> **none** : 不通知</li></ul>",
696
+ "document": "通知签署方经办人的方式, 有以下途径:\n<ul><li> **sms** : (默认)短信</li>\n<li> **none** : 不通知</li></ul>\n```\n注意:\n如果使用的是通过文件发起合同(CreateFlowByFiles),NotifyType必须 是 sms 才会发送短信\n```",
697
697
  "example": "sms",
698
698
  "member": "string",
699
699
  "name": "NotifyType",
@@ -1145,7 +1145,7 @@
1145
1145
  },
1146
1146
  {
1147
1147
  "disabled": false,
1148
- "document": "身份标识(未使用OCR服务时,必须传入)。\n规则:a-z,A-Z,0-9组合。最长长度32位。",
1148
+ "document": "身份标识(是否必传基于[控制台](https://console.cloud.tencent.com/faceid/access)申请业务流程时配置的提示)。\n规则:a-z,A-Z,0-9组合。最长长度32位。",
1149
1149
  "example": "无",
1150
1150
  "member": "string",
1151
1151
  "name": "IdCard",
@@ -1154,7 +1154,7 @@
1154
1154
  },
1155
1155
  {
1156
1156
  "disabled": false,
1157
- "document": "姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。",
1157
+ "document": "姓名。(是否必传基于[控制台](https://console.cloud.tencent.com/faceid/access)申请业务流程时配置的提示)。\n最长长度32位。中文请使用UTF-8编码。",
1158
1158
  "example": "无",
1159
1159
  "member": "string",
1160
1160
  "name": "Name",
@@ -831,6 +831,16 @@
831
831
  "output_required": true,
832
832
  "type": "list",
833
833
  "value_allowed_null": true
834
+ },
835
+ {
836
+ "disabled": false,
837
+ "document": "应用服务的操作系统类型\n注意:此字段可能返回 null,表示取不到有效值。",
838
+ "example": "linux or windows",
839
+ "member": "string",
840
+ "name": "OSType",
841
+ "output_required": true,
842
+ "type": "string",
843
+ "value_allowed_null": true
834
844
  }
835
845
  ],
836
846
  "usage": "out"
@@ -231,7 +231,7 @@
231
231
  {
232
232
  "disabled": false,
233
233
  "document": "项目名称",
234
- "example": "",
234
+ "example": "测试项目",
235
235
  "member": "string",
236
236
  "name": "ProjectName",
237
237
  "required": true,
@@ -240,7 +240,7 @@
240
240
  {
241
241
  "disabled": false,
242
242
  "document": "项目描述",
243
- "example": "",
243
+ "example": "项目描述",
244
244
  "member": "string",
245
245
  "name": "Info",
246
246
  "required": false,
@@ -255,18 +255,20 @@
255
255
  {
256
256
  "disabled": false,
257
257
  "document": "项目Id",
258
- "example": "",
258
+ "example": "1001",
259
259
  "member": "uint64",
260
260
  "name": "ProjectId",
261
+ "output_required": true,
261
262
  "type": "int",
262
263
  "value_allowed_null": false
263
264
  },
264
265
  {
265
266
  "disabled": false,
266
- "document": "是否为新项目",
267
- "example": "",
267
+ "document": "是否为新项目,1是新项目,0不是新项目",
268
+ "example": "1",
268
269
  "member": "int64",
269
270
  "name": "IsNew",
271
+ "output_required": true,
270
272
  "type": "int",
271
273
  "value_allowed_null": false
272
274
  },
@@ -2114,7 +2116,7 @@
2114
2116
  "members": [
2115
2117
  {
2116
2118
  "disabled": false,
2117
- "document": "获取的下一页的Token",
2119
+ "document": "获取的下一页的Token值,如果当前是最后一页,返回为空",
2118
2120
  "example": "无",
2119
2121
  "member": "string",
2120
2122
  "name": "PaginationToken",
@@ -2188,7 +2190,7 @@
2188
2190
  "members": [
2189
2191
  {
2190
2192
  "disabled": false,
2191
- "document": "获取的下一页的Token",
2193
+ "document": "获取的下一页的Token值,如果当前是最后一页,返回为空",
2192
2194
  "example": "POzXXYGXh2fRDHxx7PGaJnLApcyIuAYBC5HX25gKI4Sz2R*********",
2193
2195
  "member": "string",
2194
2196
  "name": "PaginationToken",
@@ -2262,7 +2264,7 @@
2262
2264
  "members": [
2263
2265
  {
2264
2266
  "disabled": false,
2265
- "document": "获取的下一页的Token",
2267
+ "document": "获取的下一页的Token值,如果当前是最后一页,返回为空",
2266
2268
  "example": "POzXXYGXh2fRDHxx7PGaJnLApcyIuAYBC5HX25gKI4Sz2R*********",
2267
2269
  "member": "string",
2268
2270
  "name": "PaginationToken",
@@ -2871,7 +2873,7 @@
2871
2873
  {
2872
2874
  "disabled": false,
2873
2875
  "document": "项目ID",
2874
- "example": "",
2876
+ "example": "1001",
2875
2877
  "member": "uint64",
2876
2878
  "name": "ProjectId",
2877
2879
  "required": true,
@@ -2880,7 +2882,7 @@
2880
2882
  {
2881
2883
  "disabled": false,
2882
2884
  "document": "项目名称",
2883
- "example": "",
2885
+ "example": "测试项目",
2884
2886
  "member": "string",
2885
2887
  "name": "ProjectName",
2886
2888
  "required": false,
@@ -2889,7 +2891,7 @@
2889
2891
  {
2890
2892
  "disabled": false,
2891
2893
  "document": "禁用项目,1,禁用,0,启用",
2892
- "example": "",
2894
+ "example": "0",
2893
2895
  "member": "int64",
2894
2896
  "name": "Disable",
2895
2897
  "required": false,
@@ -2898,7 +2900,7 @@
2898
2900
  {
2899
2901
  "disabled": false,
2900
2902
  "document": "备注",
2901
- "example": "",
2903
+ "example": "备注信息",
2902
2904
  "member": "string",
2903
2905
  "name": "Info",
2904
2906
  "required": false,
@@ -2,9 +2,9 @@
2
2
  "actions": {
3
3
  "AddProject": [
4
4
  {
5
- "document": "",
6
- "input": "https://tag.tencentcloudapi.com/?Action=AddProject\r\n&ProjectName=tp2\r\n&<公共请求参数>",
7
- "output": "{\n \"Response\": {\n \"IsNew\": 1,\n \"ProjectId\": 1024690,\n \"RequestId\": \"caf5c6ba-b21b-4769-b0bb-0b3090e0c282\"\n }\n}",
5
+ "document": "创建项目",
6
+ "input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddProject\n<公共请求参数>\n\n{\n \"ProjectName\": \"测试项目\"\n}",
7
+ "output": "{\n \"Response\": {\n \"IsNew\": 1,\n \"ProjectId\": 1001,\n \"RequestId\": \"7f831036-30b5-4972-a729-e6851a15d345\"\n }\n}",
8
8
  "title": "创建项目"
9
9
  }
10
10
  ],
@@ -67,7 +67,7 @@
67
67
  "DescribeProjects": [
68
68
  {
69
69
  "document": "",
70
- "input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProjects\n<公共请求参数>\n\n{\n \"Limit\": \"500\",\n \"AllList\": \"0\",\n \"Offset\": \"0\"\n}",
70
+ "input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProjects\n<公共请求参数>\n\n{\n \"Limit\": 500,\n \"AllList\": 0,\n \"Offset\": 0\n}",
71
71
  "output": "{\n \"Response\": {\n \"Total\": 1,\n \"Projects\": [\n {\n \"ProjectId\": 1000101,\n \"ProjectName\": \"test1\",\n \"CreatorUin\": 100000012345,\n \"ProjectInfo\": \"\",\n \"CreateTime\": \"2021-10-13 11:03:30\"\n }\n ],\n \"RequestId\": \"d75bbc07-f5bd-4020-b4bd-f877e9ccd1db\"\n }\n}",
72
72
  "title": "获取项目列表"
73
73
  }
@@ -246,9 +246,9 @@
246
246
  ],
247
247
  "UpdateProject": [
248
248
  {
249
- "document": "",
250
- "input": "https://tag.tencentcloudapi.com/?Action=UpdateProject\r\n&ProjectId=1024690\r\n&ProjectName=test\r\n&<公共请求参数>",
251
- "output": "{\n \"Response\": {\n \"RequestId\": \"f26b281e-0cbc-40ab-a38b-e9e62ef6fd24\"\n }\n}",
249
+ "document": "修改项目名称",
250
+ "input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateProject\n<公共请求参数>\n\n{\n \"ProjectId\": 1001,\n \"ProjectName\": \"项目名称\"\n}",
251
+ "output": "{\n \"Response\": {\n \"RequestId\": \"87ccfc15-4c5a-4f0a-b5f1-eae50aad9e9a\"\n }\n}",
252
252
  "title": "修改项目名称"
253
253
  }
254
254
  ],
@@ -1966,7 +1966,7 @@
1966
1966
  },
1967
1967
  {
1968
1968
  "disabled": false,
1969
- "document": "指定绑定或解绑的策略模板 ID ",
1969
+ "document": "指定绑定或解绑的策略模板 ID 或站点全局策略\n- 如需绑定至策略模板,或从策略模板解绑,请指定策略模板 ID。\n- 如需绑定至站点全局策略,或从站点全局策略解绑,请使用 @ZoneLevel@domain 参数值。\n\n注意:解绑后,域名将使用独立策略,并单独计算规则配额,请确保解绑前套餐规则配额充足。",
1970
1970
  "example": "temp-wj86oi2",
1971
1971
  "member": "string",
1972
1972
  "name": "TemplateId",
@@ -11552,7 +11552,7 @@
11552
11552
  },
11553
11553
  {
11554
11554
  "disabled": false,
11555
- "document": "子域名/应用名。当使用Entity时可不填写TemplateId,否则必须填写TemplateId",
11555
+ "document": "子域名/应用名。\n\n注意:当同时指定本参数和 TemplateId 参数时,本参数不生效。请勿同时指定本参数和 TemplateId 参数。",
11556
11556
  "example": "a.test.com",
11557
11557
  "member": "string",
11558
11558
  "name": "Entity",
@@ -11561,8 +11561,8 @@
11561
11561
  },
11562
11562
  {
11563
11563
  "disabled": false,
11564
- "document": "模板策略id。当使用模板Id时可不填Entity,否则必须填写Entity",
11565
- "example": "1",
11564
+ "document": "指定模板策略 ID,或指定站点全局策略。\n- 如需配置策略模板,请指定策略模板 ID。\n- 如需配置站点全局策略,请使用 @ZoneLevel@Domain 参数值\n\n注意:当使用本参数时,Entity 参数不生效。请勿同时使用本参数和 Entity 参数。",
11565
+ "example": "temp-wj86oi2",
11566
11566
  "member": "string",
11567
11567
  "name": "TemplateId",
11568
11568
  "required": false,
@@ -225,6 +225,58 @@ def doDescribeTRTCMarketQualityMetricData(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doDeleteCloudRecording(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.DeleteCloudRecordingRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.DeleteCloudRecording(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doStartPublishCdnStream(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -953,6 +1005,58 @@ def doDescribeUserEvent(args, parsed_globals):
953
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
1006
 
955
1007
 
1008
+ def doStartWebRecord(args, parsed_globals):
1009
+ g_param = parse_global_arg(parsed_globals)
1010
+
1011
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1012
+ cred = credential.CVMRoleCredential()
1013
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1014
+ cred = credential.STSAssumeRoleCredential(
1015
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1016
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1017
+ )
1018
+ 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):
1019
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1020
+ else:
1021
+ cred = credential.Credential(
1022
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1023
+ )
1024
+ http_profile = HttpProfile(
1025
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1026
+ reqMethod="POST",
1027
+ endpoint=g_param[OptionsDefine.Endpoint],
1028
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1029
+ )
1030
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1031
+ if g_param[OptionsDefine.Language]:
1032
+ profile.language = g_param[OptionsDefine.Language]
1033
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1034
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1035
+ client._sdkVersion += ("_CLI_" + __version__)
1036
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
+ model = models.StartWebRecordRequest()
1038
+ model.from_json_string(json.dumps(args))
1039
+ start_time = time.time()
1040
+ while True:
1041
+ rsp = client.StartWebRecord(model)
1042
+ result = rsp.to_json_string()
1043
+ try:
1044
+ json_obj = json.loads(result)
1045
+ except TypeError as e:
1046
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1047
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1048
+ break
1049
+ cur_time = time.time()
1050
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1051
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1052
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1053
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1054
+ else:
1055
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1056
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1057
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
+
1059
+
956
1060
  def doStartMCUMixTranscode(args, parsed_globals):
957
1061
  g_param = parse_global_arg(parsed_globals)
958
1062
 
@@ -1057,6 +1161,58 @@ def doDescribeTRTCMarketScaleData(args, parsed_globals):
1057
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1162
 
1059
1163
 
1164
+ def doStopWebRecord(args, parsed_globals):
1165
+ g_param = parse_global_arg(parsed_globals)
1166
+
1167
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1168
+ cred = credential.CVMRoleCredential()
1169
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1170
+ cred = credential.STSAssumeRoleCredential(
1171
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1172
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1173
+ )
1174
+ 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):
1175
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1176
+ else:
1177
+ cred = credential.Credential(
1178
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1179
+ )
1180
+ http_profile = HttpProfile(
1181
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1182
+ reqMethod="POST",
1183
+ endpoint=g_param[OptionsDefine.Endpoint],
1184
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1185
+ )
1186
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1187
+ if g_param[OptionsDefine.Language]:
1188
+ profile.language = g_param[OptionsDefine.Language]
1189
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1190
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1191
+ client._sdkVersion += ("_CLI_" + __version__)
1192
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
+ model = models.StopWebRecordRequest()
1194
+ model.from_json_string(json.dumps(args))
1195
+ start_time = time.time()
1196
+ while True:
1197
+ rsp = client.StopWebRecord(model)
1198
+ result = rsp.to_json_string()
1199
+ try:
1200
+ json_obj = json.loads(result)
1201
+ except TypeError as e:
1202
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1203
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1204
+ break
1205
+ cur_time = time.time()
1206
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1207
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1208
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1209
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1210
+ else:
1211
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1212
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1213
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
+
1215
+
1060
1216
  def doCreateCloudRecording(args, parsed_globals):
1061
1217
  g_param = parse_global_arg(parsed_globals)
1062
1218
 
@@ -1941,7 +2097,7 @@ def doDescribeTRTCRealTimeQualityData(args, parsed_globals):
1941
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
2098
 
1943
2099
 
1944
- def doDeleteCloudRecording(args, parsed_globals):
2100
+ def doDescribeWebRecord(args, parsed_globals):
1945
2101
  g_param = parse_global_arg(parsed_globals)
1946
2102
 
1947
2103
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1970,11 +2126,11 @@ def doDeleteCloudRecording(args, parsed_globals):
1970
2126
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1971
2127
  client._sdkVersion += ("_CLI_" + __version__)
1972
2128
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
- model = models.DeleteCloudRecordingRequest()
2129
+ model = models.DescribeWebRecordRequest()
1974
2130
  model.from_json_string(json.dumps(args))
1975
2131
  start_time = time.time()
1976
2132
  while True:
1977
- rsp = client.DeleteCloudRecording(model)
2133
+ rsp = client.DescribeWebRecord(model)
1978
2134
  result = rsp.to_json_string()
1979
2135
  try:
1980
2136
  json_obj = json.loads(result)
@@ -2268,6 +2424,7 @@ ACTION_MAP = {
2268
2424
  "DescribeRoomInfo": doDescribeRoomInfo,
2269
2425
  "DescribeTrtcUsage": doDescribeTrtcUsage,
2270
2426
  "DescribeTRTCMarketQualityMetricData": doDescribeTRTCMarketQualityMetricData,
2427
+ "DeleteCloudRecording": doDeleteCloudRecording,
2271
2428
  "StartPublishCdnStream": doStartPublishCdnStream,
2272
2429
  "DescribeCallDetailInfo": doDescribeCallDetailInfo,
2273
2430
  "DescribeStreamIngest": doDescribeStreamIngest,
@@ -2282,8 +2439,10 @@ ACTION_MAP = {
2282
2439
  "RemoveUser": doRemoveUser,
2283
2440
  "ModifyCloudRecording": doModifyCloudRecording,
2284
2441
  "DescribeUserEvent": doDescribeUserEvent,
2442
+ "StartWebRecord": doStartWebRecord,
2285
2443
  "StartMCUMixTranscode": doStartMCUMixTranscode,
2286
2444
  "DescribeTRTCMarketScaleData": doDescribeTRTCMarketScaleData,
2445
+ "StopWebRecord": doStopWebRecord,
2287
2446
  "CreateCloudRecording": doCreateCloudRecording,
2288
2447
  "DescribeScaleInfo": doDescribeScaleInfo,
2289
2448
  "DescribeRelayUsage": doDescribeRelayUsage,
@@ -2301,7 +2460,7 @@ ACTION_MAP = {
2301
2460
  "ModifyPicture": doModifyPicture,
2302
2461
  "UpdatePublishCdnStream": doUpdatePublishCdnStream,
2303
2462
  "DescribeTRTCRealTimeQualityData": doDescribeTRTCRealTimeQualityData,
2304
- "DeleteCloudRecording": doDeleteCloudRecording,
2463
+ "DescribeWebRecord": doDescribeWebRecord,
2305
2464
  "DescribePicture": doDescribePicture,
2306
2465
  "DescribeTRTCMarketQualityData": doDescribeTRTCMarketQualityData,
2307
2466
  "StopPublishCdnStream": doStopPublishCdnStream,
@@ -196,6 +196,13 @@
196
196
  "output": "DescribeUserInfoResponse",
197
197
  "status": "online"
198
198
  },
199
+ "DescribeWebRecord": {
200
+ "document": "查询页面录制任务",
201
+ "input": "DescribeWebRecordRequest",
202
+ "name": "查询页面录制",
203
+ "output": "DescribeWebRecordResponse",
204
+ "status": "online"
205
+ },
199
206
  "DismissRoom": {
200
207
  "document": "接口说明:把房间所有用户从房间移出,解散房间。支持所有平台,Android、iOS、Windows 和 macOS 需升级到 TRTC SDK 6.6及以上版本。",
201
208
  "input": "DismissRoomRequest",
@@ -266,6 +273,13 @@
266
273
  "output": "StartStreamIngestResponse",
267
274
  "status": "online"
268
275
  },
276
+ "StartWebRecord": {
277
+ "document": "通过此接口可以发起 WEB 页面录制任务,在接口参数中指定录制 URL,录制分辨率,录制结果存储等参数。\n因为参数或API逻辑问题会立即返回结果。而因为页面问题,如页面无法访问,会在回调中返回结果,请关注。",
278
+ "input": "StartWebRecordRequest",
279
+ "name": "开始页面录制",
280
+ "output": "StartWebRecordResponse",
281
+ "status": "online"
282
+ },
269
283
  "StopMCUMixTranscode": {
270
284
  "document": "接口说明:结束云端混流",
271
285
  "input": "StopMCUMixTranscodeRequest",
@@ -294,6 +308,13 @@
294
308
  "output": "StopStreamIngestResponse",
295
309
  "status": "online"
296
310
  },
311
+ "StopWebRecord": {
312
+ "document": "停止页面录制任务",
313
+ "input": "StopWebRecordRequest",
314
+ "name": "停止页面录制",
315
+ "output": "StopWebRecordResponse",
316
+ "status": "online"
317
+ },
297
318
  "UpdatePublishCdnStream": {
298
319
  "document": "更新转推任务。\n注:请参见启动转推任务的接口说明和使用说明。",
299
320
  "input": "UpdatePublishCdnStreamRequest",
@@ -2589,6 +2610,43 @@
2589
2610
  ],
2590
2611
  "type": "object"
2591
2612
  },
2613
+ "DescribeWebRecordRequest": {
2614
+ "document": "DescribeWebRecord请求参数结构体",
2615
+ "members": [
2616
+ {
2617
+ "disabled": false,
2618
+ "document": "开始页面录制时返回的任务id",
2619
+ "example": "HMLm5HWNuUAXSb0gTEOx0z1x+nLMZNjXrY3keyUSvu7uu8mF9O656uNtbUtvaWLkpMY134jTN2Ix4vuqgOJ68nQ8tho3ri",
2620
+ "member": "string",
2621
+ "name": "TaskId",
2622
+ "required": true,
2623
+ "type": "string"
2624
+ }
2625
+ ],
2626
+ "type": "object"
2627
+ },
2628
+ "DescribeWebRecordResponse": {
2629
+ "document": "DescribeWebRecord返回参数结构体",
2630
+ "members": [
2631
+ {
2632
+ "disabled": false,
2633
+ "document": "1: 正在录制中\n2: 任务不存在",
2634
+ "example": "1",
2635
+ "member": "int64",
2636
+ "name": "Status",
2637
+ "output_required": false,
2638
+ "type": "int",
2639
+ "value_allowed_null": false
2640
+ },
2641
+ {
2642
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2643
+ "member": "string",
2644
+ "name": "RequestId",
2645
+ "type": "string"
2646
+ }
2647
+ ],
2648
+ "type": "object"
2649
+ },
2592
2650
  "DismissRoomByStrRoomIdRequest": {
2593
2651
  "document": "DismissRoomByStrRoomId请求参数结构体",
2594
2652
  "members": [
@@ -5435,6 +5493,88 @@
5435
5493
  ],
5436
5494
  "type": "object"
5437
5495
  },
5496
+ "StartWebRecordRequest": {
5497
+ "document": "StartWebRecord请求参数结构体",
5498
+ "members": [
5499
+ {
5500
+ "disabled": false,
5501
+ "document": "需要录制的网页URL\n",
5502
+ "example": "https://web-record-xxxx.cos.ap-xxx.xxx.com/test/xxx.mp4",
5503
+ "member": "string",
5504
+ "name": "RecordUrl",
5505
+ "required": true,
5506
+ "type": "string"
5507
+ },
5508
+ {
5509
+ "disabled": false,
5510
+ "document": "录制最大时长限制, 单位 s, 合法取值范围[0, 36000], 默认 36000s(10 小时)\n",
5511
+ "example": "36000",
5512
+ "member": "uint64",
5513
+ "name": "MaxDurationLimit",
5514
+ "required": false,
5515
+ "type": "int"
5516
+ },
5517
+ {
5518
+ "disabled": false,
5519
+ "document": "云存储相关的参数,目前支持腾讯云对象存储,不支持第三方云存储以及VOD",
5520
+ "example": "无",
5521
+ "member": "StorageParams",
5522
+ "name": "StorageParams",
5523
+ "required": false,
5524
+ "type": "object"
5525
+ },
5526
+ {
5527
+ "disabled": false,
5528
+ "document": "页面录制视频参数",
5529
+ "example": "无",
5530
+ "member": "WebRecordVideoParams",
5531
+ "name": "WebRecordVideoParams",
5532
+ "required": false,
5533
+ "type": "object"
5534
+ },
5535
+ {
5536
+ "disabled": false,
5537
+ "document": "TRTC的SdkAppId",
5538
+ "example": "无",
5539
+ "member": "int64",
5540
+ "name": "SdkAppId",
5541
+ "required": false,
5542
+ "type": "int"
5543
+ },
5544
+ {
5545
+ "disabled": false,
5546
+ "document": "当对重复任务敏感时,请关注此值: 为了避免任务在短时间内重复发起,导致任务重复\n传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。",
5547
+ "example": "record_task_abc_1",
5548
+ "member": "string",
5549
+ "name": "RecordId",
5550
+ "required": false,
5551
+ "type": "string"
5552
+ }
5553
+ ],
5554
+ "type": "object"
5555
+ },
5556
+ "StartWebRecordResponse": {
5557
+ "document": "StartWebRecord返回参数结构体",
5558
+ "members": [
5559
+ {
5560
+ "disabled": false,
5561
+ "document": "录制任务的唯一Id",
5562
+ "example": "Vfn+FlMTUh1hL0a6kfBUPUsd9FmPLyznAsbd+QFsasqLg5UulUlA9JhYTw15YEYMCxXlfQwtl5cNmrbJqFubDTUp3OGPsU.",
5563
+ "member": "string",
5564
+ "name": "TaskId",
5565
+ "output_required": false,
5566
+ "type": "string",
5567
+ "value_allowed_null": false
5568
+ },
5569
+ {
5570
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5571
+ "member": "string",
5572
+ "name": "RequestId",
5573
+ "type": "string"
5574
+ }
5575
+ ],
5576
+ "type": "object"
5577
+ },
5438
5578
  "StopMCUMixTranscodeByStrRoomIdRequest": {
5439
5579
  "document": "StopMCUMixTranscodeByStrRoomId请求参数结构体",
5440
5580
  "members": [
@@ -5589,6 +5729,33 @@
5589
5729
  ],
5590
5730
  "type": "object"
5591
5731
  },
5732
+ "StopWebRecordRequest": {
5733
+ "document": "StopWebRecord请求参数结构体",
5734
+ "members": [
5735
+ {
5736
+ "disabled": false,
5737
+ "document": "需要停止的任务Id",
5738
+ "example": "xxx",
5739
+ "member": "string",
5740
+ "name": "TaskId",
5741
+ "required": true,
5742
+ "type": "string"
5743
+ }
5744
+ ],
5745
+ "type": "object"
5746
+ },
5747
+ "StopWebRecordResponse": {
5748
+ "document": "StopWebRecord返回参数结构体",
5749
+ "members": [
5750
+ {
5751
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5752
+ "member": "string",
5753
+ "name": "RequestId",
5754
+ "type": "string"
5755
+ }
5756
+ ],
5757
+ "type": "object"
5758
+ },
5592
5759
  "StorageFile": {
5593
5760
  "document": "云端录制查询接口,录制文件的信息",
5594
5761
  "members": [
@@ -5856,7 +6023,7 @@
5856
6023
  },
5857
6024
  {
5858
6025
  "disabled": false,
5859
- "document": "仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符】。前缀与自动生成的录制文件名之间用__UserDefine_u_分开。",
6026
+ "document": "仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符】。前缀与自动生成的录制文件名之间用`__UserDefine_u_` 分开。",
5860
6027
  "example": "xxx",
5861
6028
  "member": "string",
5862
6029
  "name": "UserDefineRecordId",
@@ -6592,6 +6759,39 @@
6592
6759
  }
6593
6760
  ],
6594
6761
  "usage": "in"
6762
+ },
6763
+ "WebRecordVideoParams": {
6764
+ "document": "页面录制视频参数",
6765
+ "members": [
6766
+ {
6767
+ "disabled": false,
6768
+ "document": "录制画面宽度,默认为1280,取值范围[0, 1920]",
6769
+ "example": "1280",
6770
+ "member": "uint64",
6771
+ "name": "Width",
6772
+ "required": false,
6773
+ "type": "int"
6774
+ },
6775
+ {
6776
+ "disabled": false,
6777
+ "document": "录制画面高度,默认为720,取值范围[0, 1080]",
6778
+ "example": "720",
6779
+ "member": "uint64",
6780
+ "name": "Height",
6781
+ "required": false,
6782
+ "type": "int"
6783
+ },
6784
+ {
6785
+ "disabled": false,
6786
+ "document": "指定输出格式,可选hls,mp4\n",
6787
+ "example": "mp4",
6788
+ "member": "string",
6789
+ "name": "Format",
6790
+ "required": false,
6791
+ "type": "string"
6792
+ }
6793
+ ],
6794
+ "usage": "in"
6595
6795
  }
6596
6796
  },
6597
6797
  "version": "1.0"
@@ -224,6 +224,14 @@
224
224
  "title": "查询用户列表与通话指标"
225
225
  }
226
226
  ],
227
+ "DescribeWebRecord": [
228
+ {
229
+ "document": "",
230
+ "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWebRecord\n<公共请求参数>\n\n{\n \"TaskId\": \"xxx\"\n}",
231
+ "output": "{\n \"Response\": {\n \"Status\": 1,\n \"RequestId\": \"abc\"\n }\n}",
232
+ "title": "查询页面录制状态"
233
+ }
234
+ ],
227
235
  "DismissRoom": [
228
236
  {
229
237
  "document": "解散房间1234。",
@@ -328,6 +336,14 @@
328
336
  "title": "启动输入在线媒体流"
329
337
  }
330
338
  ],
339
+ "StartWebRecord": [
340
+ {
341
+ "document": "",
342
+ "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartWebRecord\n<公共请求参数>\n\n{\n \"RecordUrl\": \"https://web-record-xxxxx.cos.ap-xxx.myqcloud.com/xxxx/xxx.mp4\",\n \"StorageParams\": {\n \"CloudStorage\": {\n \"Vendor\": 0,\n \"Bucket\": \"webrecord-1234589\",\n \"Region\": \"ap-chengdu\",\n \"AccessKey\": \"AKxxxxxx\",\n \"SecretKey\": \"Idxxxxxx\",\n \"FileNamePrefix\": [\n \"record\",\n \"video\"\n ]\n }\n },\n \"MaxDurationLimit\": 3600,\n \"WebRecordVideoParams\": {\n \"Width\": 1280,\n \"Height\": 720,\n \"Format\": \"mp4\"\n }\n}",
343
+ "output": "{\n \"Response\": {\n \"TaskId\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
344
+ "title": "启动一个页面录制任务"
345
+ }
346
+ ],
331
347
  "StopMCUMixTranscode": [
332
348
  {
333
349
  "document": "结束房间号为3560的云端混流。",
@@ -360,6 +376,14 @@
360
376
  "title": "停止输入在线媒体流"
361
377
  }
362
378
  ],
379
+ "StopWebRecord": [
380
+ {
381
+ "document": "",
382
+ "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopWebRecord\n<公共请求参数>\n\n{\n \"TaskId\": \"xxxx\"\n}",
383
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
384
+ "title": "停止页面录制任务"
385
+ }
386
+ ],
363
387
  "UpdatePublishCdnStream": [
364
388
  {
365
389
  "document": "更新为混主播Trtc_User_0和Trtc_User_3的音视频。",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1081.1
3
+ Version: 3.0.1082.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1081
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1082
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介
@@ -1,4 +1,4 @@
1
- tccli/__init__.py,sha256=gNDgQxr1h7hJIoc_oIfp4CkBuHLEa-Bv7I1bxAYuKt8,27
1
+ tccli/__init__.py,sha256=9vq2ymS9lWuhrtUvEc6djXl2XbgiIBVVXFoADhqtVQ4,27
2
2
  tccli/argparser.py,sha256=iFaw_iIMdyVwUdcv2_2OHQfe7-7j9yGzoOgXgXswoBo,5555
3
3
  tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
4
4
  tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
@@ -7921,7 +7921,7 @@ tccli/examples/taf/v20200210/RecognizeEffectiveFlow.md,sha256=Vq6CdbnGHa4t9nwumW
7921
7921
  tccli/examples/taf/v20200210/RecognizePreciseTargetAudience.md,sha256=jjyaEGqTQxA2RBOaqtISpzp0HLGTQ92GfejXPhNHTt4,755
7922
7922
  tccli/examples/taf/v20200210/RecognizeTargetAudience.md,sha256=6nVoqdDXjXsz8bHl2DkBd3C5wkQ7r5qxfB-B9GI5o6s,576
7923
7923
  tccli/examples/taf/v20200210/SendTrafficSecuritySmsMessage.md,sha256=2FZofwWyVC4-BeXvxpf100IPG2XPfnI3sxStNshiplg,584
7924
- tccli/examples/tag/v20180813/AddProject.md,sha256=MTERYKWLBU9Q8q3Pf76wyY_xzw8izqG5aZRtAjwyGaI,273
7924
+ tccli/examples/tag/v20180813/AddProject.md,sha256=bPbLAOqvnO6QNiSfapQTRh6Bi4ipJT5rFJTUuWW7g8E,291
7925
7925
  tccli/examples/tag/v20180813/AddResourceTag.md,sha256=uK3NdaYys8my9I2g7ceAJxj96AvzzwZtT8Er8rIjHwU,334
7926
7926
  tccli/examples/tag/v20180813/AttachResourcesTag.md,sha256=KbxR34ibTHvKvYSUIALtPwgZohkNM9OPXK9V_M9P97M,409
7927
7927
  tccli/examples/tag/v20180813/CreateTag.md,sha256=RSQq__NhZq8uiEy5UyltR0V_MGiSiQvo0FQVucNihsE,254
@@ -7950,7 +7950,7 @@ tccli/examples/tag/v20180813/ModifyResourceTags.md,sha256=38fwsPSdLhMaycoFoCMud-
7950
7950
  tccli/examples/tag/v20180813/ModifyResourcesTagValue.md,sha256=jRcqp6O7E4moWNXmbKlTqZ6ChaSlbcQ8yazamFIC8aQ,447
7951
7951
  tccli/examples/tag/v20180813/TagResources.md,sha256=4l2nquO_Oy727Qj6cMOmXwZF5WwJQ437p3GNM3psPeQ,497
7952
7952
  tccli/examples/tag/v20180813/UnTagResources.md,sha256=-w2zqEYpm0q6BSS5vjXHl6_QV6xaVdjeFpLtaP2_E00,404
7953
- tccli/examples/tag/v20180813/UpdateProject.md,sha256=Sb33CbMbBtdFoX5ajD5SosyiIbsVynZAqqr1XAhenfQ,259
7953
+ tccli/examples/tag/v20180813/UpdateProject.md,sha256=6Bh64QFQQ3WqqWmcKuBczJpBbJ5yZvEMP_gogak7Qjg,282
7954
7954
  tccli/examples/tag/v20180813/UpdateResourceTagValue.md,sha256=KCzVwNZ5mEuJtl7TWKp_qPl34Q1QuVgc9FJ9BTKq3WU,351
7955
7955
  tccli/examples/tan/v20220420/CreateBlockNodeRecords.md,sha256=MeiB3y19BT99ZMWhhlUCgN0B1iDzwZkwEUyb3AUJD_4,709
7956
7956
  tccli/examples/tat/v20201028/CancelInvocation.md,sha256=lP1XZb4v7A7Fd2TdZG0XJXkttDurHvsWociBprQRzIw,278
@@ -9972,6 +9972,7 @@ tccli/examples/trtc/v20190722/DescribeUnusualEvent.md,sha256=RjjzfQakx4ZN39iCuOL
9972
9972
  tccli/examples/trtc/v20190722/DescribeUserEvent.md,sha256=VPjsMNwnQl4D9Me1zuIj_SnsgXCmecEyhq5aRLiY8SI,2570
9973
9973
  tccli/examples/trtc/v20190722/DescribeUserInfo.md,sha256=CeQ3wFVEgkN95ISZLZub5CBfKq0J524_pQXn_4hv8AQ,1121
9974
9974
  tccli/examples/trtc/v20190722/DescribeUserInformation.md,sha256=rp1hgF3pv60a4IK21zqDtJ_IadYxdJZi5uJmy6hZj4U,1128
9975
+ tccli/examples/trtc/v20190722/DescribeWebRecord.md,sha256=uIvajYh4FAFizmi7wwjEcjHxtfkSgUjenG0j9QgeHlU,226
9975
9976
  tccli/examples/trtc/v20190722/DismissRoom.md,sha256=jGV7Rttu0Q5IMfLTtLCDspLSVDxROTN5yWqCkcIIZcw,268
9976
9977
  tccli/examples/trtc/v20190722/DismissRoomByStrRoomId.md,sha256=-BHsmal3xnIU96vLar3hkbVap-MuCz0oYc85gwf-nOw,279
9977
9978
  tccli/examples/trtc/v20190722/MeasureTrtcMcuExternal.md,sha256=gClSsVyhVBhXz-wtyzM4ioHrIHTSmYf8gbei5_hlXqk,1150
@@ -9983,10 +9984,12 @@ tccli/examples/trtc/v20190722/StartMCUMixTranscode.md,sha256=C0x3AuODHj9tfeOYTDI
9983
9984
  tccli/examples/trtc/v20190722/StartMCUMixTranscodeByStrRoomId.md,sha256=ZpiSeqvH6AotJxc5ieK6qghNHeL0hT1gcb0qtlD4WNo,1527
9984
9985
  tccli/examples/trtc/v20190722/StartPublishCdnStream.md,sha256=3uz35ms-Tkbr_qi894QhCJulApwNmgIC-i98mTlNvj8,12883
9985
9986
  tccli/examples/trtc/v20190722/StartStreamIngest.md,sha256=WOCecQiu1ZNo-H9KMRlMzt2IDMmjShpmc2BsSnupTwE,695
9987
+ tccli/examples/trtc/v20190722/StartWebRecord.md,sha256=8rPJY461mi7jEGMXwAEgb0QI3KjHhMoe3sXK0VULjCg,772
9986
9988
  tccli/examples/trtc/v20190722/StopMCUMixTranscode.md,sha256=sD_b9IUBnLvAsEoTIYIIGVuH0hleNwCDjKJqzUBBKXU,303
9987
9989
  tccli/examples/trtc/v20190722/StopMCUMixTranscodeByStrRoomId.md,sha256=SvfuOQ3D6-zfD7ZpFxH2MqQHHj7ArXzHhNWZ45nrUY4,336
9988
9990
  tccli/examples/trtc/v20190722/StopPublishCdnStream.md,sha256=SVgb13vFJVAlTkuEj8Ez7vwQZKFfh_z9oc0P7mjCELU,430
9989
9991
  tccli/examples/trtc/v20190722/StopStreamIngest.md,sha256=tSojgIlnv8H60r1yESXZwnJk8SAJAXqxEe_3RS1WmVQ,315
9992
+ tccli/examples/trtc/v20190722/StopWebRecord.md,sha256=nYydca5bRcp1hJa8CqrtxUT_2OH39vNyAr5g4nrWq8w,202
9990
9993
  tccli/examples/trtc/v20190722/UpdatePublishCdnStream.md,sha256=YrPQJ4slBnFe4R8MRwFRroNdx5MZgeEvk2MPjRWGFPY,2982
9991
9994
  tccli/examples/tse/v20201207/BindAutoScalerResourceStrategyToGroups.md,sha256=QIpl-G7opY7Zg6TeN2rrAf2fKKx1i_C1I2Q6fqDrP5M,380
9992
9995
  tccli/examples/tse/v20201207/CloseWafProtection.md,sha256=IKZ5ZdkLsJxmuOTL5zSDzpLzjk4rkubwKL6icYQiHlQ,284
@@ -12079,7 +12082,7 @@ tccli/services/cvm/v20170312/api.json,sha256=AB7LD5hrxBNRCF1_5LPugusqiSy6Eas1uXK
12079
12082
  tccli/services/cvm/v20170312/examples.json,sha256=ms3qdmJEOKVvE05Ay3Rg7Rjn3kTkUSld69BCG36hCWI,128069
12080
12083
  tccli/services/cwp/__init__.py,sha256=VzfiK7QzpNmTiO4zrmILRFSkKMJka8elLwzYLTjUPFw,85
12081
12084
  tccli/services/cwp/cwp_client.py,sha256=QbRErOXK7jOcASdOTZTXLKgemtt2Zaq-mZjbIPVrVH0,1617193
12082
- tccli/services/cwp/v20180228/api.json,sha256=p9mahbBEPxmvBZtHldOT0vo6dsaAhlWzbVfZ01HwBko,1945509
12085
+ tccli/services/cwp/v20180228/api.json,sha256=7E0QYjGYVh8VolLZ5Woe7PiAjcOIbijtenI8WqIbRYg,1947123
12083
12086
  tccli/services/cwp/v20180228/examples.json,sha256=XZf8bB0PYDBinQ51tVPPsAe_f1ASSLvlCIU334WkHQE,578271
12084
12087
  tccli/services/cws/__init__.py,sha256=sBc-PJIZWjB5UHi4aHmxAAC9ahEHw5zyRGdUsH1fEoA,85
12085
12088
  tccli/services/cws/cws_client.py,sha256=bPGWX2h4Ru5YACa7TklX2FnFIbMeFxvrfbGYPibxjWg,64120
@@ -12189,7 +12192,7 @@ tccli/services/es/v20180416/api.json,sha256=UzITPVr2QoO08qytNB4R_dx3UJykf-uSb-cM
12189
12192
  tccli/services/es/v20180416/examples.json,sha256=5Qj7cfMeCcYm3gdwC3oeFzWId9cQvqEhqItlefTCHhY,57657
12190
12193
  tccli/services/ess/__init__.py,sha256=heBHzUKDuNxQ68yNutgyA8stCndyFWqYJqiQFozTiDs,85
12191
12194
  tccli/services/ess/ess_client.py,sha256=01SXJ6MBJWDXMKQCM6lb3w4y5Qwt7-jfjTmq3Woi40A,238817
12192
- tccli/services/ess/v20201111/api.json,sha256=Q0NRA1BXKlG9t1mx_aTJYvzUS0_4oherxzo6hsfi6gQ,615435
12195
+ tccli/services/ess/v20201111/api.json,sha256=ZRLLKvR8gpA_9ONs1L8gvZgRJAsdpMJS8WFUXui1j6k,615569
12193
12196
  tccli/services/ess/v20201111/examples.json,sha256=DiWjfylObccEiNc73odRxMLc64F6Kp_HGZme156Cd8s,515440
12194
12197
  tccli/services/essbasic/__init__.py,sha256=Uh5kuYtJvJ4F1S2w-19_B6a_JMF1ubh8Se-7p5LA0PE,95
12195
12198
  tccli/services/essbasic/essbasic_client.py,sha256=bhKxFfhWnOF0UIPJBS0nX9TLOGl_Hg8uwcqKgMM7094,395323
@@ -12205,7 +12208,7 @@ tccli/services/facefusion/v20220927/api.json,sha256=JUTXnXTrWKW4vMAJfATrIvSsDFR-
12205
12208
  tccli/services/facefusion/v20220927/examples.json,sha256=qWRwUvfMlVONM0pr7NJqwilVlqXeRKJQXe-7AsYuSdo,5082
12206
12209
  tccli/services/faceid/__init__.py,sha256=zbcAvv37wx7NH6hsSFPSCqgR2ih1UiQOdqNfmitdeVY,91
12207
12210
  tccli/services/faceid/faceid_client.py,sha256=Hw36KYl1ZygCy1wt6gRWK6xmvgmnDz6nBiMQnygnqBo,113668
12208
- tccli/services/faceid/v20180301/api.json,sha256=L3U_RZ99yMcztVJoqIn4Qy1kYvoRtoL47JjOMAbkJP8,194606
12211
+ tccli/services/faceid/v20180301/api.json,sha256=iOie5omjAI9RLACffg_iZUtZ5BqQC5xa-qw3RzoUuXA,194767
12209
12212
  tccli/services/faceid/v20180301/examples.json,sha256=eLBb-p7d66YiNYRrZFNWz1Pd9m7lp0XzpAwVnnNxHqI,39001
12210
12213
  tccli/services/fmu/__init__.py,sha256=uYgLsNe53oF1T-qH3hFFAdGC7d9SKthtORQ7dLiPfx8,85
12211
12214
  tccli/services/fmu/fmu_client.py,sha256=8BCV5LAHPDHw8O749qGM5hthX50xVO5d76fZmWKSlbQ,36237
@@ -12245,7 +12248,7 @@ tccli/services/habo/v20181203/api.json,sha256=LrpnIoUr-8lGHKsHgm3PZONYrp89LH5OcW
12245
12248
  tccli/services/habo/v20181203/examples.json,sha256=xEb9T3H1KN4ptQLZ3zBKCH2m_lycQMXC0VZ5ktZUotQ,1098
12246
12249
  tccli/services/hai/__init__.py,sha256=Zsub6g9em3deYg9eRkP3_i-OeMBvu1qGYKASpPQ4p6Y,85
12247
12250
  tccli/services/hai/hai_client.py,sha256=OjbpG1UOO3sioDn77CPoCcO2w29BEQ0NuGOIJ86uC5U,39554
12248
- tccli/services/hai/v20230812/api.json,sha256=6tbnuo0PbIcmsnz7L_FBu5YJxsaVkZxTZNHlv9b9_cg,48850
12251
+ tccli/services/hai/v20230812/api.json,sha256=2aF_AnhtBN2U6MBm-95clcUWaV2qtP4TtkKt2ig5nQs,49225
12249
12252
  tccli/services/hai/v20230812/examples.json,sha256=5ncpVrVDkObT4UUehJOgoOVsaBOWwWUr8czYN0PHmKg,9629
12250
12253
  tccli/services/hasim/__init__.py,sha256=Kealx-mwEiycC5iYh5K5hz4LfLEPsUcLDXM9AkASFLc,89
12251
12254
  tccli/services/hasim/hasim_client.py,sha256=DwWkuYP8sF24sYVtIbTXguEPD2jKYn-tnIlKqI-XxUw,72959
@@ -12565,8 +12568,8 @@ tccli/services/taf/v20200210/api.json,sha256=Y6ji9WbMMd2sbh1YvMDdEnz_xsp7b8a1Ngj
12565
12568
  tccli/services/taf/v20200210/examples.json,sha256=Rbhl4_dvB92Rd_XMaNGBqXNkZmB2mwmIY5RWYiFqJm8,3521
12566
12569
  tccli/services/tag/__init__.py,sha256=pUwOcEp6HJVGnGGR_3puqK_-W-hgSKqfx_aJq5w0ZnM,85
12567
12570
  tccli/services/tag/tag_client.py,sha256=Ah9kf9cI7CsYAGVkIH3NSLGIjQUyhrSfHkgPGiuriSM,101094
12568
- tccli/services/tag/v20180813/api.json,sha256=g_bkpbT3WgJs53LdzFM6h-cDVTsd8wlo3D1XotIMn0I,95504
12569
- tccli/services/tag/v20180813/examples.json,sha256=a9vJcZ0N3Ua7w7cn7fUYgLKc7pdKB3Dh9x8QCEag9Gg,23000
12571
+ tccli/services/tag/v20180813/api.json,sha256=MZSkJgDB8-qz5h20ecVhJn4vPw3sCrU6EgTU2yRdgCI,95802
12572
+ tccli/services/tag/v20180813/examples.json,sha256=d8eMTep95aqVY5DoV3bX18b_-ZcwLuAQlXAnxaIPe9A,23172
12570
12573
  tccli/services/tan/__init__.py,sha256=VeP-TPT4lqWBjODWfa1DCHrA-QKpX3V8HgfKmZjsSwk,85
12571
12574
  tccli/services/tan/tan_client.py,sha256=sf-UzaRzb63RSYrkTGdCQNWGflbbKjLwC50tsElJRZo,8684
12572
12575
  tccli/services/tan/v20220420/api.json,sha256=dlbHqD5uuHK7F8KSX7hf7P12Uajk6vrXYGfxcqBI4HM,2127
@@ -12655,7 +12658,7 @@ tccli/services/teo/__init__.py,sha256=nvzcUSkSQuTftWEJ399BUZpUk_0jEq-l97539DwbAw
12655
12658
  tccli/services/teo/teo_client.py,sha256=02eZ2_fVjOO1nFG4_lGowlsqc5XnuQvXA7kv45H7EcU,300198
12656
12659
  tccli/services/teo/v20220106/api.json,sha256=HGvEHEkfctNBazbSyZvWAUPSvYa4c_YxZJ9uW61RD4k,29733
12657
12660
  tccli/services/teo/v20220106/examples.json,sha256=2s6dgk31pZ26N8hrFLCmQzVocmsC_QK1dO8WVBdJ8A0,5325
12658
- tccli/services/teo/v20220901/api.json,sha256=A1R7TkN0ptnff1zIxRvoAH5ltXrkwcMHdJ6vQvLF9ZU,613993
12661
+ tccli/services/teo/v20220901/api.json,sha256=c6L3vlTGCzMrszqEB8yMfmuqvLZFowcUU03-mVc0M_U,614628
12659
12662
  tccli/services/teo/v20220901/examples.json,sha256=IAcWtIORbddHf1lhHgbRaWbBuoHTEmj6j4X-BLw0zDA,201876
12660
12663
  tccli/services/thpc/__init__.py,sha256=NancJ76I7PbEBt7VJCaGnBsfMEZm2ezBvYqwxyLbLHo,87
12661
12664
  tccli/services/thpc/thpc_client.py,sha256=X_W3JTRqUSUK1iR0Fhucp8UCZ4kviFUsLQhrMdrUtXk,61680
@@ -12740,9 +12743,9 @@ tccli/services/trro/trro_client.py,sha256=FtccKwF8umt_145g14KOE0jdbCy9wJl-mPzyNY
12740
12743
  tccli/services/trro/v20220325/api.json,sha256=1Nsj-eeqRgZIWOyRK3hFAJ_EVKbntbNgl6lIBTZgTec,80213
12741
12744
  tccli/services/trro/v20220325/examples.json,sha256=yCyfGjK3YydF8fEGrURk5unyndVEqYokeB4gZOCR08Q,18659
12742
12745
  tccli/services/trtc/__init__.py,sha256=7xXIF66WdJHGVIhfHKFx2VYimlxZ_z3QOeJBUJ2P_MQ,87
12743
- tccli/services/trtc/trtc_client.py,sha256=GansGfL_PwW-7h1iqnZccsfuJ4nbSZ-iLcG5gVTAWho,139178
12744
- tccli/services/trtc/v20190722/api.json,sha256=G7oON-qCoy4rub_uQGCXdEX9ANTa8aE7qX33jroba1I,269672
12745
- tccli/services/trtc/v20190722/examples.json,sha256=oi1a-VX5ocs09pPcByAv4vQKUW3z5Y81bJvRRaP1w9U,96277
12746
+ tccli/services/trtc/trtc_client.py,sha256=37kFvYl34t2VjduZVXoonDliYfHol2SzRv6tsXrpIxs,148392
12747
+ tccli/services/trtc/v20190722/api.json,sha256=85aHMVADDU0M6thIDHy-zNUfy4WskfmZBDPfQeL3dDU,276813
12748
+ tccli/services/trtc/v20190722/examples.json,sha256=wBaa4mGNVOBZR5KbVTDsaBUYmxms6U47QEtYDSHWF24,98094
12746
12749
  tccli/services/tse/__init__.py,sha256=3Y4ZA_IFX8df4-ir1I9p0u4ksAywRrtd2CAvJ5yKyz0,85
12747
12750
  tccli/services/tse/tse_client.py,sha256=dB6fIYbGz01ZbcK6tPBI3lRYavc6fgVZfzKNqIczQ0s,354664
12748
12751
  tccli/services/tse/v20201207/api.json,sha256=olnfv-CTtoDJH_h80zad8N76eiz9nZ_pDR6OZEacxh0,513473
@@ -12827,8 +12830,8 @@ tccli/services/yunsou/v20180504/api.json,sha256=2808fil5p3pTEJ3SqXEEq7eSrASZOiv8
12827
12830
  tccli/services/yunsou/v20180504/examples.json,sha256=Jg4WuqS_Wxl7eTBMbzjem65FuUZQi3qq3xtlBNFZlTU,11870
12828
12831
  tccli/services/yunsou/v20191115/api.json,sha256=r_p7c7fMNylQVDpSN0CkUB4Cx1nYW1lI3BM_Zi50FNs,15932
12829
12832
  tccli/services/yunsou/v20191115/examples.json,sha256=vN5MzexHVPMckm4MbnXNiOe3KKiVchvf4_uLpjOskuk,3983
12830
- tccli-3.0.1081.1.dist-info/METADATA,sha256=u4WrxClOh57Cpzs-AiTO3AW5ZjJuV8QvbMgkcxDKIhE,16172
12831
- tccli-3.0.1081.1.dist-info/WHEEL,sha256=HyPWovjK_wfsxZqVnw7Bu5rgKxNh3Nm__lHm0ALDcb4,101
12832
- tccli-3.0.1081.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
12833
- tccli-3.0.1081.1.dist-info/license_files/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12834
- tccli-3.0.1081.1.dist-info/RECORD,,
12833
+ tccli-3.0.1082.1.dist-info/METADATA,sha256=3BU055cwM-POJ251nqkZP1aAUen48w74r8PBTkjgV9s,16172
12834
+ tccli-3.0.1082.1.dist-info/WHEEL,sha256=HyPWovjK_wfsxZqVnw7Bu5rgKxNh3Nm__lHm0ALDcb4,101
12835
+ tccli-3.0.1082.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
12836
+ tccli-3.0.1082.1.dist-info/license_files/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12837
+ tccli-3.0.1082.1.dist-info/RECORD,,