tccli 3.0.1159.1__py2.py3-none-any.whl → 3.0.1160.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/services/aiart/v20221229/api.json +11 -14
- tccli/services/cdb/v20170320/api.json +3 -1
- tccli/services/cfg/cfg_client.py +224 -12
- tccli/services/cfg/v20210820/api.json +897 -32
- tccli/services/cfg/v20210820/examples.json +32 -0
- tccli/services/cfw/v20190904/api.json +12 -2
- tccli/services/cls/v20201016/api.json +11 -1
- tccli/services/cme/v20191029/api.json +9 -9
- tccli/services/cme/v20191029/examples.json +1 -1
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +134 -0
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +66 -46
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/dnspod/v20210323/api.json +1 -1
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/ess/v20201111/examples.json +6 -6
- tccli/services/essbasic/v20210526/api.json +10 -1
- tccli/services/essbasic/v20210526/examples.json +7 -1
- tccli/services/iotexplorer/v20190423/api.json +25 -25
- tccli/services/iotexplorer/v20190423/examples.json +10 -4
- tccli/services/lcic/lcic_client.py +57 -4
- tccli/services/lcic/v20220817/api.json +52 -0
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +7 -7
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +76 -0
- tccli/services/trtc/v20190722/examples.json +8 -0
- tccli/services/vclm/v20240523/api.json +136 -0
- tccli/services/vclm/v20240523/examples.json +46 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vpc/v20170312/api.json +1 -1
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1160.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1160.1.dist-info}/RECORD +40 -40
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1160.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1160.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1160.1.dist-info}/license_files/LICENSE +0 -0
@@ -764,7 +764,7 @@
|
|
764
764
|
"status": "online"
|
765
765
|
},
|
766
766
|
"ModifyCloudStorageAIService": {
|
767
|
-
"document": "修改指定设备的云存 AI
|
767
|
+
"document": "修改指定设备的云存 AI 服务参数配置",
|
768
768
|
"input": "ModifyCloudStorageAIServiceRequest",
|
769
769
|
"name": "修改设备云存AI分析服务",
|
770
770
|
"output": "ModifyCloudStorageAIServiceResponse",
|
@@ -3828,7 +3828,7 @@
|
|
3828
3828
|
"members": [
|
3829
3829
|
{
|
3830
3830
|
"disabled": false,
|
3831
|
-
"document": "产品ID",
|
3831
|
+
"document": "产品 ID",
|
3832
3832
|
"example": "WYILLHRQ4",
|
3833
3833
|
"member": "string",
|
3834
3834
|
"name": "ProductId",
|
@@ -3885,7 +3885,7 @@
|
|
3885
3885
|
"members": [
|
3886
3886
|
{
|
3887
3887
|
"disabled": false,
|
3888
|
-
"document": "产品ID",
|
3888
|
+
"document": "产品 ID",
|
3889
3889
|
"example": "TQBDY6RPI9",
|
3890
3890
|
"member": "string",
|
3891
3891
|
"name": "ProductId",
|
@@ -3903,8 +3903,8 @@
|
|
3903
3903
|
},
|
3904
3904
|
{
|
3905
3905
|
"disabled": false,
|
3906
|
-
"document": "云存 AI 服务类型。可选值:\n
|
3907
|
-
"example": "
|
3906
|
+
"document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩",
|
3907
|
+
"example": "Highlight",
|
3908
3908
|
"member": "string",
|
3909
3909
|
"name": "ServiceType",
|
3910
3910
|
"required": true,
|
@@ -3918,7 +3918,7 @@
|
|
3918
3918
|
"members": [
|
3919
3919
|
{
|
3920
3920
|
"disabled": false,
|
3921
|
-
"document": "
|
3921
|
+
"document": "视频分析启用状态",
|
3922
3922
|
"example": "true",
|
3923
3923
|
"member": "bool",
|
3924
3924
|
"name": "Enabled",
|
@@ -3928,20 +3928,20 @@
|
|
3928
3928
|
},
|
3929
3929
|
{
|
3930
3930
|
"disabled": false,
|
3931
|
-
"document": "
|
3932
|
-
"example": "{}",
|
3931
|
+
"document": "视频分析配置参数",
|
3932
|
+
"example": "{\"param1\":\"value1\"}",
|
3933
3933
|
"member": "string",
|
3934
|
-
"name": "
|
3934
|
+
"name": "Config",
|
3935
3935
|
"output_required": true,
|
3936
3936
|
"type": "string",
|
3937
3937
|
"value_allowed_null": false
|
3938
3938
|
},
|
3939
3939
|
{
|
3940
3940
|
"disabled": false,
|
3941
|
-
"document": "
|
3942
|
-
"example": "{
|
3941
|
+
"document": "视频分析识别区域",
|
3942
|
+
"example": "{}",
|
3943
3943
|
"member": "string",
|
3944
|
-
"name": "
|
3944
|
+
"name": "ROI",
|
3945
3945
|
"output_required": true,
|
3946
3946
|
"type": "string",
|
3947
3947
|
"value_allowed_null": false
|
@@ -4015,8 +4015,8 @@
|
|
4015
4015
|
},
|
4016
4016
|
{
|
4017
4017
|
"disabled": false,
|
4018
|
-
"document": "云存 AI 服务类型。可选值:\n- `
|
4019
|
-
"example": "
|
4018
|
+
"document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩",
|
4019
|
+
"example": "Highlight",
|
4020
4020
|
"member": "string",
|
4021
4021
|
"name": "ServiceType",
|
4022
4022
|
"required": true,
|
@@ -4051,7 +4051,7 @@
|
|
4051
4051
|
},
|
4052
4052
|
{
|
4053
4053
|
"disabled": false,
|
4054
|
-
"document": "用户ID",
|
4054
|
+
"document": "用户 ID",
|
4055
4055
|
"example": "user",
|
4056
4056
|
"member": "string",
|
4057
4057
|
"name": "UserId",
|
@@ -4060,7 +4060,7 @@
|
|
4060
4060
|
},
|
4061
4061
|
{
|
4062
4062
|
"disabled": false,
|
4063
|
-
"document": "通道ID
|
4063
|
+
"document": "通道 ID",
|
4064
4064
|
"example": "1",
|
4065
4065
|
"member": "uint64",
|
4066
4066
|
"name": "ChannelId",
|
@@ -6724,7 +6724,7 @@
|
|
6724
6724
|
"members": [
|
6725
6725
|
{
|
6726
6726
|
"disabled": false,
|
6727
|
-
"document": "产品ID",
|
6727
|
+
"document": "产品 ID",
|
6728
6728
|
"example": "TQBDY6RPI9",
|
6729
6729
|
"member": "string",
|
6730
6730
|
"name": "ProductId",
|
@@ -10316,7 +10316,7 @@
|
|
10316
10316
|
"members": [
|
10317
10317
|
{
|
10318
10318
|
"disabled": false,
|
10319
|
-
"document": "产品ID",
|
10319
|
+
"document": "产品 ID",
|
10320
10320
|
"example": "WYILLHRQ4",
|
10321
10321
|
"member": "string",
|
10322
10322
|
"name": "ProductId",
|
@@ -10370,7 +10370,7 @@
|
|
10370
10370
|
"members": [
|
10371
10371
|
{
|
10372
10372
|
"disabled": false,
|
10373
|
-
"document": "产品ID",
|
10373
|
+
"document": "产品 ID",
|
10374
10374
|
"example": "TQBDY6RPI9",
|
10375
10375
|
"member": "string",
|
10376
10376
|
"name": "ProductId",
|
@@ -10388,8 +10388,8 @@
|
|
10388
10388
|
},
|
10389
10389
|
{
|
10390
10390
|
"disabled": false,
|
10391
|
-
"document": "云存 AI 服务类型。可选值:\n- `
|
10392
|
-
"example": "
|
10391
|
+
"document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩",
|
10392
|
+
"example": "Highlight",
|
10393
10393
|
"member": "string",
|
10394
10394
|
"name": "ServiceType",
|
10395
10395
|
"required": true,
|
@@ -10397,7 +10397,7 @@
|
|
10397
10397
|
},
|
10398
10398
|
{
|
10399
10399
|
"disabled": false,
|
10400
|
-
"document": "
|
10400
|
+
"document": "视频分析启用状态",
|
10401
10401
|
"example": "true",
|
10402
10402
|
"member": "bool",
|
10403
10403
|
"name": "Enabled",
|
@@ -10406,7 +10406,7 @@
|
|
10406
10406
|
},
|
10407
10407
|
{
|
10408
10408
|
"disabled": false,
|
10409
|
-
"document": "
|
10409
|
+
"document": "视频分析识别区域",
|
10410
10410
|
"example": "{}",
|
10411
10411
|
"member": "string",
|
10412
10412
|
"name": "ROI",
|
@@ -10415,7 +10415,7 @@
|
|
10415
10415
|
},
|
10416
10416
|
{
|
10417
10417
|
"disabled": false,
|
10418
|
-
"document": "
|
10418
|
+
"document": "视频分析配置参数",
|
10419
10419
|
"example": "{\"param1\":\"value1\"}",
|
10420
10420
|
"member": "string",
|
10421
10421
|
"name": "Config",
|
@@ -10812,7 +10812,7 @@
|
|
10812
10812
|
"members": [
|
10813
10813
|
{
|
10814
10814
|
"disabled": false,
|
10815
|
-
"document": "产品ID",
|
10815
|
+
"document": "产品 ID",
|
10816
10816
|
"example": "TQBDY6RPI9",
|
10817
10817
|
"member": "string",
|
10818
10818
|
"name": "ProductId",
|
@@ -349,7 +349,7 @@
|
|
349
349
|
"DescribeCloudStorageAIService": [
|
350
350
|
{
|
351
351
|
"document": "",
|
352
|
-
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"
|
352
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\"\n}",
|
353
353
|
"output": "{\n \"Response\": {\n \"Enabled\": true,\n \"ROI\": \"{}\",\n \"Config\": \"{\\\"param1\\\":\\\"value1\\\"}\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
354
354
|
"title": "查询设备云存AI服务"
|
355
355
|
}
|
@@ -373,7 +373,7 @@
|
|
373
373
|
"DescribeCloudStorageAIServiceTasks": [
|
374
374
|
{
|
375
375
|
"document": "",
|
376
|
-
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIServiceTasks\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"
|
376
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIServiceTasks\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\",\n \"Offset\": 0,\n \"Limit\": 20\n}",
|
377
377
|
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"fb066d7a-baac-4706-acda-058f56f82759\",\n \"ProductId\": \"TQBDY6RPI9\",\n \"DeviceName\": \"cs_112114601_2\",\n \"ChannelId\": 0,\n \"ServiceType\": \"PackageDetect\",\n \"StartTime\": 1710487888,\n \"EndTime\": 1710487898,\n \"Status\": 3,\n \"Result\": \"{\\\"param1\\\":\\\"value1\\\"}\",\n \"Files\": [\n \"output.mp4\"\n ],\n \"CreateTime\": 1710490000,\n \"UpdateTime\": 1710490000\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
378
378
|
"title": "查询设备云存 AI 分析任务列表"
|
379
379
|
}
|
@@ -923,9 +923,15 @@
|
|
923
923
|
"ModifyCloudStorageAIService": [
|
924
924
|
{
|
925
925
|
"document": "",
|
926
|
-
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"
|
926
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\",\n \"Enabled\": true\n}",
|
927
927
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
928
|
-
"title": "
|
928
|
+
"title": "修改云存AI服务启用状态"
|
929
|
+
},
|
930
|
+
{
|
931
|
+
"document": "",
|
932
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\",\n \"Config\": \"{\\\"param1\\\":\\\"value1\\\"}\"\n}",
|
933
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
934
|
+
"title": "修改云存AI服务配置参数"
|
929
935
|
}
|
930
936
|
],
|
931
937
|
"ModifyCloudStorageAIServiceCallback": [
|
@@ -1577,6 +1577,58 @@ def doSendRoomNormalMessage(args, parsed_globals):
|
|
1577
1577
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1578
|
|
1579
1579
|
|
1580
|
+
def doCreateGroupWithSubGroup(args, parsed_globals):
|
1581
|
+
g_param = parse_global_arg(parsed_globals)
|
1582
|
+
|
1583
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1584
|
+
cred = credential.CVMRoleCredential()
|
1585
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1586
|
+
cred = credential.STSAssumeRoleCredential(
|
1587
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1588
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1589
|
+
)
|
1590
|
+
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):
|
1591
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1592
|
+
else:
|
1593
|
+
cred = credential.Credential(
|
1594
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1595
|
+
)
|
1596
|
+
http_profile = HttpProfile(
|
1597
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1598
|
+
reqMethod="POST",
|
1599
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1600
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1601
|
+
)
|
1602
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1603
|
+
if g_param[OptionsDefine.Language]:
|
1604
|
+
profile.language = g_param[OptionsDefine.Language]
|
1605
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1606
|
+
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1608
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
+
model = models.CreateGroupWithSubGroupRequest()
|
1610
|
+
model.from_json_string(json.dumps(args))
|
1611
|
+
start_time = time.time()
|
1612
|
+
while True:
|
1613
|
+
rsp = client.CreateGroupWithSubGroup(model)
|
1614
|
+
result = rsp.to_json_string()
|
1615
|
+
try:
|
1616
|
+
json_obj = json.loads(result)
|
1617
|
+
except TypeError as e:
|
1618
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1619
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1620
|
+
break
|
1621
|
+
cur_time = time.time()
|
1622
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1623
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1624
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1625
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1626
|
+
else:
|
1627
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1628
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1629
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
|
+
|
1631
|
+
|
1580
1632
|
def doDescribeGroupList(args, parsed_globals):
|
1581
1633
|
g_param = parse_global_arg(parsed_globals)
|
1582
1634
|
|
@@ -2877,7 +2929,7 @@ def doUnbindDocumentFromRoom(args, parsed_globals):
|
|
2877
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2930
|
|
2879
2931
|
|
2880
|
-
def
|
2932
|
+
def doUnblockKickedUser(args, parsed_globals):
|
2881
2933
|
g_param = parse_global_arg(parsed_globals)
|
2882
2934
|
|
2883
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2958,11 @@ def doCreateGroupWithSubGroup(args, parsed_globals):
|
|
2906
2958
|
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2961
|
+
model = models.UnblockKickedUserRequest()
|
2910
2962
|
model.from_json_string(json.dumps(args))
|
2911
2963
|
start_time = time.time()
|
2912
2964
|
while True:
|
2913
|
-
rsp = client.
|
2965
|
+
rsp = client.UnblockKickedUser(model)
|
2914
2966
|
result = rsp.to_json_string()
|
2915
2967
|
try:
|
2916
2968
|
json_obj = json.loads(result)
|
@@ -3178,6 +3230,7 @@ ACTION_MAP = {
|
|
3178
3230
|
"DescribeRoom": doDescribeRoom,
|
3179
3231
|
"DescribeDocuments": doDescribeDocuments,
|
3180
3232
|
"SendRoomNormalMessage": doSendRoomNormalMessage,
|
3233
|
+
"CreateGroupWithSubGroup": doCreateGroupWithSubGroup,
|
3181
3234
|
"DescribeGroupList": doDescribeGroupList,
|
3182
3235
|
"DeleteSupervisor": doDeleteSupervisor,
|
3183
3236
|
"DeleteUser": doDeleteUser,
|
@@ -3203,7 +3256,7 @@ ACTION_MAP = {
|
|
3203
3256
|
"SendRoomNotificationMessage": doSendRoomNotificationMessage,
|
3204
3257
|
"DeleteRoom": doDeleteRoom,
|
3205
3258
|
"UnbindDocumentFromRoom": doUnbindDocumentFromRoom,
|
3206
|
-
"
|
3259
|
+
"UnblockKickedUser": doUnblockKickedUser,
|
3207
3260
|
"CreateRoom": doCreateRoom,
|
3208
3261
|
"BatchCreateGroupWithMembers": doBatchCreateGroupWithMembers,
|
3209
3262
|
"DescribeScoreList": doDescribeScoreList,
|
@@ -419,6 +419,13 @@
|
|
419
419
|
"name": "文档从房间解绑",
|
420
420
|
"output": "UnbindDocumentFromRoomResponse",
|
421
421
|
"status": "online"
|
422
|
+
},
|
423
|
+
"UnblockKickedUser": {
|
424
|
+
"document": "解禁从房间里面踢出的用户",
|
425
|
+
"input": "UnblockKickedUserRequest",
|
426
|
+
"name": "解禁房间被踢用户",
|
427
|
+
"output": "UnblockKickedUserResponse",
|
428
|
+
"status": "online"
|
422
429
|
}
|
423
430
|
},
|
424
431
|
"metadata": {
|
@@ -6857,6 +6864,51 @@
|
|
6857
6864
|
],
|
6858
6865
|
"type": "object"
|
6859
6866
|
},
|
6867
|
+
"UnblockKickedUserRequest": {
|
6868
|
+
"document": "UnblockKickedUser请求参数结构体",
|
6869
|
+
"members": [
|
6870
|
+
{
|
6871
|
+
"disabled": false,
|
6872
|
+
"document": "低代码平台的SdkAppId。",
|
6873
|
+
"example": "123456",
|
6874
|
+
"member": "uint64",
|
6875
|
+
"name": "SdkAppId",
|
6876
|
+
"required": true,
|
6877
|
+
"type": "int"
|
6878
|
+
},
|
6879
|
+
{
|
6880
|
+
"disabled": false,
|
6881
|
+
"document": "房间Id。",
|
6882
|
+
"example": "301234567",
|
6883
|
+
"member": "uint64",
|
6884
|
+
"name": "RoomId",
|
6885
|
+
"required": true,
|
6886
|
+
"type": "int"
|
6887
|
+
},
|
6888
|
+
{
|
6889
|
+
"disabled": false,
|
6890
|
+
"document": "需要解禁踢出的成员Id。",
|
6891
|
+
"example": "dfgsadffg",
|
6892
|
+
"member": "string",
|
6893
|
+
"name": "UserId",
|
6894
|
+
"required": true,
|
6895
|
+
"type": "string"
|
6896
|
+
}
|
6897
|
+
],
|
6898
|
+
"type": "object"
|
6899
|
+
},
|
6900
|
+
"UnblockKickedUserResponse": {
|
6901
|
+
"document": "UnblockKickedUser返回参数结构体",
|
6902
|
+
"members": [
|
6903
|
+
{
|
6904
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6905
|
+
"member": "string",
|
6906
|
+
"name": "RequestId",
|
6907
|
+
"type": "string"
|
6908
|
+
}
|
6909
|
+
],
|
6910
|
+
"type": "object"
|
6911
|
+
},
|
6860
6912
|
"UserInfo": {
|
6861
6913
|
"document": "用户信息结构体",
|
6862
6914
|
"members": [
|
@@ -509,6 +509,14 @@
|
|
509
509
|
"output": "{\n \"Response\": {\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
510
510
|
"title": "文档从房间解绑"
|
511
511
|
}
|
512
|
+
],
|
513
|
+
"UnblockKickedUser": [
|
514
|
+
{
|
515
|
+
"document": "示例",
|
516
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnblockKickedUser\n<公共请求参数>\n\n{\n \"RoomId\": 313337981,\n \"SdkAppId\": 3520371,\n \"UserId\": \"2PMcgEVHi9CMWq6tmfNnPGUkEGn\"\n}",
|
517
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3f156f86-9939-4ea0-aee7-81d32fa46c3f\"\n }\n}",
|
518
|
+
"title": "解禁房间踢出的用户"
|
519
|
+
}
|
512
520
|
]
|
513
521
|
},
|
514
522
|
"version": "1.0"
|
@@ -1867,7 +1867,7 @@
|
|
1867
1867
|
},
|
1868
1868
|
{
|
1869
1869
|
"disabled": false,
|
1870
|
-
"document": "文件的 Base64
|
1870
|
+
"document": "文件的 Base64 值。支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。",
|
1871
1871
|
"example": "无",
|
1872
1872
|
"member": "string",
|
1873
1873
|
"name": "FileBase64",
|
@@ -1876,7 +1876,7 @@
|
|
1876
1876
|
},
|
1877
1877
|
{
|
1878
1878
|
"disabled": false,
|
1879
|
-
"document": "文件的 Url
|
1879
|
+
"document": "文件的 Url 地址。支持的文件大小:所下载文件经 Base64 编码后不超过 100M。文件下载时间不超过 15 秒。支持的图片像素:单边介于20-10000px之间。 文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
|
1880
1880
|
"example": "无",
|
1881
1881
|
"member": "string",
|
1882
1882
|
"name": "FileUrl",
|
@@ -5177,7 +5177,7 @@
|
|
5177
5177
|
},
|
5178
5178
|
{
|
5179
5179
|
"disabled": false,
|
5180
|
-
"document": "应用AppKey",
|
5180
|
+
"document": "应用AppKey(应用发布后在应用页面[发布管理]-[调用信息]-[API管理]处获取)",
|
5181
5181
|
"example": "无",
|
5182
5182
|
"member": "string",
|
5183
5183
|
"name": "BotAppKey",
|
@@ -5186,7 +5186,7 @@
|
|
5186
5186
|
},
|
5187
5187
|
{
|
5188
5188
|
"disabled": false,
|
5189
|
-
"document": "
|
5189
|
+
"document": "访客ID(外部输入,建议唯一,标识当前接入会话的用户)",
|
5190
5190
|
"example": "无",
|
5191
5191
|
"member": "string",
|
5192
5192
|
"name": "VisitorBizId",
|
@@ -5195,7 +5195,7 @@
|
|
5195
5195
|
},
|
5196
5196
|
{
|
5197
5197
|
"disabled": false,
|
5198
|
-
"document": "
|
5198
|
+
"document": "知识标签(用于知识库中知识的检索过滤)",
|
5199
5199
|
"example": "无",
|
5200
5200
|
"member": "GetWsTokenReq_Label",
|
5201
5201
|
"name": "VisitorLabels",
|
@@ -5210,7 +5210,7 @@
|
|
5210
5210
|
"members": [
|
5211
5211
|
{
|
5212
5212
|
"disabled": false,
|
5213
|
-
"document": "token
|
5213
|
+
"document": "token值(有效期60s)",
|
5214
5214
|
"example": "无",
|
5215
5215
|
"member": "string",
|
5216
5216
|
"name": "Token",
|
@@ -5220,7 +5220,7 @@
|
|
5220
5220
|
},
|
5221
5221
|
{
|
5222
5222
|
"disabled": false,
|
5223
|
-
"document": "余额; 余额大于 0
|
5223
|
+
"document": "余额; 余额大于 0 时表示有效\n注意:此字段可能返回 null,表示取不到有效值。",
|
5224
5224
|
"example": "无",
|
5225
5225
|
"member": "float",
|
5226
5226
|
"name": "Balance",
|
@@ -21084,6 +21084,16 @@
|
|
21084
21084
|
"type": "object",
|
21085
21085
|
"value_allowed_null": false
|
21086
21086
|
},
|
21087
|
+
{
|
21088
|
+
"disabled": false,
|
21089
|
+
"document": "发票标题",
|
21090
|
+
"example": "无",
|
21091
|
+
"member": "string",
|
21092
|
+
"name": "InvoiceTitle",
|
21093
|
+
"output_required": false,
|
21094
|
+
"type": "string",
|
21095
|
+
"value_allowed_null": false
|
21096
|
+
},
|
21087
21097
|
{
|
21088
21098
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
21089
21099
|
"member": "string",
|
@@ -1421,6 +1421,58 @@ def doStopWebRecord(args, parsed_globals):
|
|
1421
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1422
|
|
1423
1423
|
|
1424
|
+
def doControlAIConversation(args, parsed_globals):
|
1425
|
+
g_param = parse_global_arg(parsed_globals)
|
1426
|
+
|
1427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1428
|
+
cred = credential.CVMRoleCredential()
|
1429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1430
|
+
cred = credential.STSAssumeRoleCredential(
|
1431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1433
|
+
)
|
1434
|
+
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):
|
1435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1436
|
+
else:
|
1437
|
+
cred = credential.Credential(
|
1438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1439
|
+
)
|
1440
|
+
http_profile = HttpProfile(
|
1441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1442
|
+
reqMethod="POST",
|
1443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1445
|
+
)
|
1446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1447
|
+
if g_param[OptionsDefine.Language]:
|
1448
|
+
profile.language = g_param[OptionsDefine.Language]
|
1449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1450
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
+
model = models.ControlAIConversationRequest()
|
1454
|
+
model.from_json_string(json.dumps(args))
|
1455
|
+
start_time = time.time()
|
1456
|
+
while True:
|
1457
|
+
rsp = client.ControlAIConversation(model)
|
1458
|
+
result = rsp.to_json_string()
|
1459
|
+
try:
|
1460
|
+
json_obj = json.loads(result)
|
1461
|
+
except TypeError as e:
|
1462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1464
|
+
break
|
1465
|
+
cur_time = time.time()
|
1466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1470
|
+
else:
|
1471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
|
+
|
1475
|
+
|
1424
1476
|
def doCreateCloudRecording(args, parsed_globals):
|
1425
1477
|
g_param = parse_global_arg(parsed_globals)
|
1426
1478
|
|
@@ -2811,6 +2863,7 @@ ACTION_MAP = {
|
|
2811
2863
|
"StartAITranscription": doStartAITranscription,
|
2812
2864
|
"DescribeTRTCMarketScaleData": doDescribeTRTCMarketScaleData,
|
2813
2865
|
"StopWebRecord": doStopWebRecord,
|
2866
|
+
"ControlAIConversation": doControlAIConversation,
|
2814
2867
|
"CreateCloudRecording": doCreateCloudRecording,
|
2815
2868
|
"DescribeScaleInfo": doDescribeScaleInfo,
|
2816
2869
|
"DescribeRelayUsage": doDescribeRelayUsage,
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ControlAIConversation": {
|
4
|
+
"document": "提供服务端控制机器人的功能",
|
5
|
+
"input": "ControlAIConversationRequest",
|
6
|
+
"name": "控制AI对话",
|
7
|
+
"output": "ControlAIConversationResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"CreateCloudRecording": {
|
4
11
|
"document": "接口说明:\n启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。\n\n您可以通过此接口实现如下目标:\n* 指定订阅流参数(RecordParams)来指定需要录制的主播的黑名单或者白名单。\n* 指定录制存储参数(StorageParams)来指定上传到您希望的云存储,目前支持腾讯云(云点播VOD、对象存储COS)和第三方AWS\n* 指定合流模式下的音视频转码详细参数(MixTranscodeParams),包括视频分辨率、视频码率、视频帧率、以及声音质量等\n* 指定合流模式各路画面的位置和布局或者也可以指定自动模板的方式来配置。\n\n关键名词:\n* 单流录制:分别录制房间的订阅UserId的音频和视频,录制服务会实时将录制文件上传至您指定的云存储。\n* 合流录制:将房间内订阅UserId的音视频混录成一个视频文件,并将录制文件上传至您指定的云存储。(录制结束后可前往云点播控制台https://console.cloud.tencent.com/vod/media 或 对象存储COS控制台https://console.cloud.tencent.com/cos/bucket查看文件)。",
|
5
12
|
"input": "CreateCloudRecordingRequest",
|
@@ -744,6 +751,51 @@
|
|
744
751
|
],
|
745
752
|
"usage": "in"
|
746
753
|
},
|
754
|
+
"ControlAIConversationRequest": {
|
755
|
+
"document": "ControlAIConversation请求参数结构体",
|
756
|
+
"members": [
|
757
|
+
{
|
758
|
+
"disabled": false,
|
759
|
+
"document": "任务唯一标识",
|
760
|
+
"example": "无",
|
761
|
+
"member": "string",
|
762
|
+
"name": "TaskId",
|
763
|
+
"required": true,
|
764
|
+
"type": "string"
|
765
|
+
},
|
766
|
+
{
|
767
|
+
"disabled": false,
|
768
|
+
"document": "控制命令,目前支持命令如下:\n\n- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本",
|
769
|
+
"example": "无",
|
770
|
+
"member": "string",
|
771
|
+
"name": "Command",
|
772
|
+
"required": true,
|
773
|
+
"type": "string"
|
774
|
+
},
|
775
|
+
{
|
776
|
+
"disabled": false,
|
777
|
+
"document": "服务端发送播报文本命令,当Command为ServerPushText时必填",
|
778
|
+
"example": "无",
|
779
|
+
"member": "ServerPushText",
|
780
|
+
"name": "ServerPushText",
|
781
|
+
"required": false,
|
782
|
+
"type": "object"
|
783
|
+
}
|
784
|
+
],
|
785
|
+
"type": "object"
|
786
|
+
},
|
787
|
+
"ControlAIConversationResponse": {
|
788
|
+
"document": "ControlAIConversation返回参数结构体",
|
789
|
+
"members": [
|
790
|
+
{
|
791
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
792
|
+
"member": "string",
|
793
|
+
"name": "RequestId",
|
794
|
+
"type": "string"
|
795
|
+
}
|
796
|
+
],
|
797
|
+
"type": "object"
|
798
|
+
},
|
747
799
|
"CreateCloudRecordingRequest": {
|
748
800
|
"document": "CreateCloudRecording请求参数结构体",
|
749
801
|
"members": [
|
@@ -5440,6 +5492,30 @@
|
|
5440
5492
|
],
|
5441
5493
|
"usage": "out"
|
5442
5494
|
},
|
5495
|
+
"ServerPushText": {
|
5496
|
+
"document": "服务端控制AI对话机器人播报指定文本",
|
5497
|
+
"members": [
|
5498
|
+
{
|
5499
|
+
"disabled": false,
|
5500
|
+
"document": "服务端推送播报文本",
|
5501
|
+
"example": "无",
|
5502
|
+
"member": "string",
|
5503
|
+
"name": "Text",
|
5504
|
+
"required": false,
|
5505
|
+
"type": "string"
|
5506
|
+
},
|
5507
|
+
{
|
5508
|
+
"disabled": false,
|
5509
|
+
"document": "是否允许该文本打断机器人说话",
|
5510
|
+
"example": "无",
|
5511
|
+
"member": "bool",
|
5512
|
+
"name": "Interrupt",
|
5513
|
+
"required": false,
|
5514
|
+
"type": "bool"
|
5515
|
+
}
|
5516
|
+
],
|
5517
|
+
"usage": "in"
|
5518
|
+
},
|
5443
5519
|
"SingleSubscribeParams": {
|
5444
5520
|
"document": "单流旁路转推的用户上行信息。",
|
5445
5521
|
"members": [
|