tccli 3.0.1081.1__py2.py3-none-any.whl → 3.0.1083.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 +1 -1
- tccli/examples/ess/v20201111/CreatePrepareFlow.md +4 -0
- tccli/examples/tag/v20180813/AddProject.md +4 -4
- tccli/examples/tag/v20180813/UpdateProject.md +4 -4
- tccli/examples/trtc/v20190722/DescribeWebRecord.md +21 -0
- tccli/examples/trtc/v20190722/StartWebRecord.md +31 -0
- tccli/examples/trtc/v20190722/StopWebRecord.md +20 -0
- tccli/services/apigateway/v20180808/api.json +1 -1
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +71 -22
- tccli/services/ess/v20201111/api.json +88 -1
- tccli/services/ess/v20201111/examples.json +4 -4
- tccli/services/faceid/v20180301/api.json +12 -3
- tccli/services/gaap/v20180529/api.json +76 -36
- tccli/services/hai/v20230812/api.json +10 -0
- tccli/services/tag/v20180813/api.json +14 -12
- tccli/services/tag/v20180813/examples.json +7 -7
- tccli/services/teo/v20220901/api.json +4 -4
- tccli/services/trtc/trtc_client.py +163 -4
- tccli/services/trtc/v20190722/api.json +201 -1
- tccli/services/trtc/v20190722/examples.json +24 -0
- {tccli-3.0.1081.1.dist-info → tccli-3.0.1083.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1081.1.dist-info → tccli-3.0.1083.1.dist-info}/RECORD +26 -23
- {tccli-3.0.1081.1.dist-info → tccli-3.0.1083.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1081.1.dist-info → tccli-3.0.1083.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1081.1.dist-info → tccli-3.0.1083.1.dist-info}/license_files/LICENSE +0 -0
@@ -2,9 +2,9 @@
|
|
2
2
|
"actions": {
|
3
3
|
"AddProject": [
|
4
4
|
{
|
5
|
-
"document": "",
|
6
|
-
"input": "
|
7
|
-
"output": "{\n \"Response\": {\n \"IsNew\": 1,\n \"ProjectId\":
|
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\":
|
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": "
|
251
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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": "
|
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": "
|
11565
|
-
"example": "
|
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
|
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.
|
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.
|
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
|
-
"
|
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
|
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.
|
3
|
+
Version: 3.0.1083.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.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1083
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|