tccli 3.0.1235.1__py2.py3-none-any.whl → 3.0.1236.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/essbasic/v20210526/api.json +10 -0
- tccli/services/iotexplorer/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +129 -4
- tccli/services/iotexplorer/v20190423/examples.json +14 -0
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/vrs/v20200824/api.json +68 -6
- tccli/services/vrs/v20200824/examples.json +8 -0
- tccli/services/vrs/vrs_client.py +53 -0
- {tccli-3.0.1235.1.dist-info → tccli-3.0.1236.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1235.1.dist-info → tccli-3.0.1236.1.dist-info}/RECORD +14 -14
- {tccli-3.0.1235.1.dist-info → tccli-3.0.1236.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1235.1.dist-info → tccli-3.0.1236.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1235.1.dist-info → tccli-3.0.1236.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1236.1'
|
@@ -2447,6 +2447,16 @@
|
|
2447
2447
|
"type": "list",
|
2448
2448
|
"value_allowed_null": true
|
2449
2449
|
},
|
2450
|
+
{
|
2451
|
+
"disabled": false,
|
2452
|
+
"document": "预览链接,有效期5分钟\n注:如果是预览模式(即NeedPreview设置为true)时, 才会有此预览链接URL",
|
2453
|
+
"example": "https://embed.qian.tencent.cn/document-url-preview?channel=PROXYCHANNEL&scene=SINGLEPAGE&code=yDAY0UUckp7ouj3qU3GpRQCZvA3aO2l0&codeType=QUICK&businessType=RESOURCE&businessId=yDCY0UUckp7oucf2UxAAGY1RtjPw9Pyt",
|
2454
|
+
"member": "string",
|
2455
|
+
"name": "PreviewUrl",
|
2456
|
+
"output_required": false,
|
2457
|
+
"type": "string",
|
2458
|
+
"value_allowed_null": false
|
2459
|
+
},
|
2450
2460
|
{
|
2451
2461
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2452
2462
|
"member": "string",
|
@@ -5321,6 +5321,58 @@ def doCreateBatchProduction(args, parsed_globals):
|
|
5321
5321
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5322
5322
|
|
5323
5323
|
|
5324
|
+
def doCreateCloudStorageAIServiceTask(args, parsed_globals):
|
5325
|
+
g_param = parse_global_arg(parsed_globals)
|
5326
|
+
|
5327
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5328
|
+
cred = credential.CVMRoleCredential()
|
5329
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5330
|
+
cred = credential.STSAssumeRoleCredential(
|
5331
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5332
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5333
|
+
)
|
5334
|
+
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):
|
5335
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5336
|
+
else:
|
5337
|
+
cred = credential.Credential(
|
5338
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5339
|
+
)
|
5340
|
+
http_profile = HttpProfile(
|
5341
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5342
|
+
reqMethod="POST",
|
5343
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5344
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5345
|
+
)
|
5346
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5347
|
+
if g_param[OptionsDefine.Language]:
|
5348
|
+
profile.language = g_param[OptionsDefine.Language]
|
5349
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5350
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
5351
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5352
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5353
|
+
model = models.CreateCloudStorageAIServiceTaskRequest()
|
5354
|
+
model.from_json_string(json.dumps(args))
|
5355
|
+
start_time = time.time()
|
5356
|
+
while True:
|
5357
|
+
rsp = client.CreateCloudStorageAIServiceTask(model)
|
5358
|
+
result = rsp.to_json_string()
|
5359
|
+
try:
|
5360
|
+
json_obj = json.loads(result)
|
5361
|
+
except TypeError as e:
|
5362
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5363
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5364
|
+
break
|
5365
|
+
cur_time = time.time()
|
5366
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5367
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5368
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5369
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5370
|
+
else:
|
5371
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5372
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5373
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5374
|
+
|
5375
|
+
|
5324
5376
|
def doDisableTopicRule(args, parsed_globals):
|
5325
5377
|
g_param = parse_global_arg(parsed_globals)
|
5326
5378
|
|
@@ -7826,6 +7878,7 @@ ACTION_MAP = {
|
|
7826
7878
|
"DescribeDeviceFirmwares": doDescribeDeviceFirmwares,
|
7827
7879
|
"BindDevices": doBindDevices,
|
7828
7880
|
"CreateBatchProduction": doCreateBatchProduction,
|
7881
|
+
"CreateCloudStorageAIServiceTask": doCreateCloudStorageAIServiceTask,
|
7829
7882
|
"DisableTopicRule": doDisableTopicRule,
|
7830
7883
|
"GetFamilyDeviceUserList": doGetFamilyDeviceUserList,
|
7831
7884
|
"ModifyCloudStorageAIService": doModifyCloudStorageAIService,
|
@@ -84,6 +84,13 @@
|
|
84
84
|
"output": "CreateCloudStorageAIServiceResponse",
|
85
85
|
"status": "online"
|
86
86
|
},
|
87
|
+
"CreateCloudStorageAIServiceTask": {
|
88
|
+
"document": "创建设备云存 AI 分析任务",
|
89
|
+
"input": "CreateCloudStorageAIServiceTaskRequest",
|
90
|
+
"name": "创建设备云存AI分析任务",
|
91
|
+
"output": "CreateCloudStorageAIServiceTaskResponse",
|
92
|
+
"status": "online"
|
93
|
+
},
|
87
94
|
"CreateDevice": {
|
88
95
|
"document": "创建设备",
|
89
96
|
"input": "CreateDeviceRequest",
|
@@ -904,11 +911,11 @@
|
|
904
911
|
"status": "online"
|
905
912
|
},
|
906
913
|
"PublishBroadcastMessage": {
|
907
|
-
"document": "发布广播消息",
|
914
|
+
"document": "发布广播消息、发布RRPC消息属于早期服务,目前已停止维护,需要从官网下线。\n\n发布广播消息",
|
908
915
|
"input": "PublishBroadcastMessageRequest",
|
909
916
|
"name": "发布广播消息",
|
910
917
|
"output": "PublishBroadcastMessageResponse",
|
911
|
-
"status": "
|
918
|
+
"status": "deprecated"
|
912
919
|
},
|
913
920
|
"PublishFirmwareUpdateMessage": {
|
914
921
|
"document": "本接口(PublishFirmwareUpdateMessage)用于用户确认升级后,云端向设备发起固件升级请求。",
|
@@ -925,11 +932,11 @@
|
|
925
932
|
"status": "online"
|
926
933
|
},
|
927
934
|
"PublishRRPCMessage": {
|
928
|
-
"document": "下发RRPC消息",
|
935
|
+
"document": "发布广播消息、发布RRPC消息属于早期服务,目前已停止维护,需要从官网下线。\n\n下发RRPC消息",
|
929
936
|
"input": "PublishRRPCMessageRequest",
|
930
937
|
"name": "发布RRPC消息",
|
931
938
|
"output": "PublishRRPCMessageResponse",
|
932
|
-
"status": "
|
939
|
+
"status": "deprecated"
|
933
940
|
},
|
934
941
|
"ReleaseStudioProduct": {
|
935
942
|
"document": "产品开发完成并测试通过后,通过发布产品将产品设置为发布状态",
|
@@ -2480,6 +2487,124 @@
|
|
2480
2487
|
],
|
2481
2488
|
"type": "object"
|
2482
2489
|
},
|
2490
|
+
"CreateCloudStorageAIServiceTaskRequest": {
|
2491
|
+
"document": "CreateCloudStorageAIServiceTask请求参数结构体",
|
2492
|
+
"members": [
|
2493
|
+
{
|
2494
|
+
"disabled": false,
|
2495
|
+
"document": "产品 ID",
|
2496
|
+
"example": "TQBDY6RPI9",
|
2497
|
+
"member": "string",
|
2498
|
+
"name": "ProductId",
|
2499
|
+
"required": true,
|
2500
|
+
"type": "string"
|
2501
|
+
},
|
2502
|
+
{
|
2503
|
+
"disabled": false,
|
2504
|
+
"document": "设备名称",
|
2505
|
+
"example": "cs_112114601_2",
|
2506
|
+
"member": "string",
|
2507
|
+
"name": "DeviceName",
|
2508
|
+
"required": true,
|
2509
|
+
"type": "string"
|
2510
|
+
},
|
2511
|
+
{
|
2512
|
+
"disabled": false,
|
2513
|
+
"document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩\n- `VideoToText`:视频语义理解",
|
2514
|
+
"example": "Highlight",
|
2515
|
+
"member": "string",
|
2516
|
+
"name": "ServiceType",
|
2517
|
+
"required": true,
|
2518
|
+
"type": "string"
|
2519
|
+
},
|
2520
|
+
{
|
2521
|
+
"disabled": false,
|
2522
|
+
"document": "待分析云存的起始时间",
|
2523
|
+
"example": "1704038400",
|
2524
|
+
"member": "uint64",
|
2525
|
+
"name": "StartTime",
|
2526
|
+
"required": true,
|
2527
|
+
"type": "int"
|
2528
|
+
},
|
2529
|
+
{
|
2530
|
+
"disabled": false,
|
2531
|
+
"document": "待分析云存的结束时间",
|
2532
|
+
"example": "1704124800",
|
2533
|
+
"member": "uint64",
|
2534
|
+
"name": "EndTime",
|
2535
|
+
"required": true,
|
2536
|
+
"type": "int"
|
2537
|
+
},
|
2538
|
+
{
|
2539
|
+
"disabled": false,
|
2540
|
+
"document": "通道 ID",
|
2541
|
+
"example": "1",
|
2542
|
+
"member": "uint64",
|
2543
|
+
"name": "ChannelId",
|
2544
|
+
"required": false,
|
2545
|
+
"type": "int"
|
2546
|
+
},
|
2547
|
+
{
|
2548
|
+
"disabled": false,
|
2549
|
+
"document": "视频分析配置参数",
|
2550
|
+
"example": "{\"param1\":\"value1\"}",
|
2551
|
+
"member": "string",
|
2552
|
+
"name": "Config",
|
2553
|
+
"required": false,
|
2554
|
+
"type": "string"
|
2555
|
+
},
|
2556
|
+
{
|
2557
|
+
"disabled": false,
|
2558
|
+
"document": "视频分析识别区域",
|
2559
|
+
"example": "{}",
|
2560
|
+
"member": "string",
|
2561
|
+
"name": "ROI",
|
2562
|
+
"required": false,
|
2563
|
+
"type": "string"
|
2564
|
+
},
|
2565
|
+
{
|
2566
|
+
"disabled": false,
|
2567
|
+
"document": "分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)",
|
2568
|
+
"example": "[\"https://example.com/timeshift.m3u8\"]",
|
2569
|
+
"member": "string",
|
2570
|
+
"name": "VideoURLs",
|
2571
|
+
"required": false,
|
2572
|
+
"type": "list"
|
2573
|
+
},
|
2574
|
+
{
|
2575
|
+
"disabled": false,
|
2576
|
+
"document": "自定义任务 ID",
|
2577
|
+
"example": "event-123",
|
2578
|
+
"member": "string",
|
2579
|
+
"name": "CustomId",
|
2580
|
+
"required": false,
|
2581
|
+
"type": "string"
|
2582
|
+
}
|
2583
|
+
],
|
2584
|
+
"type": "object"
|
2585
|
+
},
|
2586
|
+
"CreateCloudStorageAIServiceTaskResponse": {
|
2587
|
+
"document": "CreateCloudStorageAIServiceTask返回参数结构体",
|
2588
|
+
"members": [
|
2589
|
+
{
|
2590
|
+
"disabled": false,
|
2591
|
+
"document": "任务 ID",
|
2592
|
+
"example": "fb066d7a-baac-4706-acda-058f56f82759",
|
2593
|
+
"member": "string",
|
2594
|
+
"name": "TaskId",
|
2595
|
+
"output_required": true,
|
2596
|
+
"type": "string",
|
2597
|
+
"value_allowed_null": false
|
2598
|
+
},
|
2599
|
+
{
|
2600
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2601
|
+
"member": "string",
|
2602
|
+
"name": "RequestId",
|
2603
|
+
"type": "string"
|
2604
|
+
}
|
2605
|
+
],
|
2606
|
+
"type": "object"
|
2607
|
+
},
|
2483
2608
|
"CreateDeviceChannelRequest": {
|
2484
2609
|
"document": "CreateDeviceChannel请求参数结构体",
|
2485
2610
|
"members": [
|
@@ -156,6 +156,20 @@
|
|
156
156
|
"title": "开通失败:云存 AI 套餐有效时长超过云存套餐的有效时长"
|
157
157
|
}
|
158
158
|
],
|
159
|
+
"CreateCloudStorageAIServiceTask": [
|
160
|
+
{
|
161
|
+
"document": "",
|
162
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudStorageAIServiceTask\n<公共请求参数>\n\n{\n \"ProductId\": \"TQBDY6RPI9\",\n \"DeviceName\": \"cs_112114601_2\",\n \"ServiceType\": \"Highlight\",\n \"StartTime\": 1710487888,\n \"EndTime\": 1710487898,\n \"ChannelId\": 0,\n \"Config\": \"{}\"\n}",
|
163
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"c497cdcb-8eaf-46b0-8850-311cfb278798\",\n \"TaskId\": \"fb066d7a-baac-4706-acda-058f56f82759\"\n }\n}",
|
164
|
+
"title": "创建设备云存 AI 分析任务"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"document": "",
|
168
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudStorageAIServiceTask\n<公共请求参数>\n\n{\n \"ProductId\": \"TQBDY6RPI9\",\n \"DeviceName\": \"cs_112114601_2\",\n \"ServiceType\": \"Highlight\",\n \"StartTime\": 1710487888,\n \"EndTime\": 1710487898,\n \"ChannelId\": 0,\n \"Config\": \"{}\",\n \"VideoURLs\": [\n \"https://example.com/video.mp4\"\n ]\n}",
|
169
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"c497cdcb-8eaf-46b0-8850-311cfb278798\",\n \"TaskId\": \"fb066d7a-baac-4706-acda-058f56f82759\"\n }\n}",
|
170
|
+
"title": "使用外部数据源创建云存 AI 分析任务"
|
171
|
+
}
|
172
|
+
],
|
159
173
|
"CreateDevice": [
|
160
174
|
{
|
161
175
|
"document": "创建设备",
|
@@ -1213,7 +1213,7 @@
|
|
1213
1213
|
},
|
1214
1214
|
{
|
1215
1215
|
"disabled": false,
|
1216
|
-
"document": "国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051
|
1216
|
+
"document": "国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)",
|
1217
1217
|
"example": "China",
|
1218
1218
|
"member": "string",
|
1219
1219
|
"name": "IsoName",
|
@@ -42,6 +42,13 @@
|
|
42
42
|
"output": "GetTrainingTextResponse",
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
|
+
"GetVRSVoiceTypeInfo": {
|
46
|
+
"document": "该接口用于查询复刻音色详细信息。",
|
47
|
+
"input": "GetVRSVoiceTypeInfoRequest",
|
48
|
+
"name": "查询复刻音色信息",
|
49
|
+
"output": "GetVRSVoiceTypeInfoResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
45
52
|
"GetVRSVoiceTypes": {
|
46
53
|
"document": "查询复刻音色",
|
47
54
|
"input": "GetVRSVoiceTypesRequest",
|
@@ -629,6 +636,61 @@
|
|
629
636
|
],
|
630
637
|
"type": "object"
|
631
638
|
},
|
639
|
+
"GetVRSVoiceTypeInfoRequest": {
|
640
|
+
"document": "GetVRSVoiceTypeInfo请求参数结构体",
|
641
|
+
"members": [
|
642
|
+
{
|
643
|
+
"disabled": false,
|
644
|
+
"document": "音色id。",
|
645
|
+
"example": "200000000",
|
646
|
+
"member": "int64",
|
647
|
+
"name": "VoiceType",
|
648
|
+
"required": true,
|
649
|
+
"type": "int"
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"disabled": false,
|
653
|
+
"document": "0 - 除快速声音复刻外其他复刻类型(默认); 5 - 快速声音复刻。 默认为0。",
|
654
|
+
"example": "5",
|
655
|
+
"member": "int64",
|
656
|
+
"name": "TaskType",
|
657
|
+
"required": false,
|
658
|
+
"type": "int"
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"disabled": false,
|
662
|
+
"document": "快速复刻音色id。",
|
663
|
+
"example": "c0be5744e9804c5fae5708fbd71db20d",
|
664
|
+
"member": "string",
|
665
|
+
"name": "FastVoiceType",
|
666
|
+
"required": false,
|
667
|
+
"type": "string"
|
668
|
+
}
|
669
|
+
],
|
670
|
+
"type": "object"
|
671
|
+
},
|
672
|
+
"GetVRSVoiceTypeInfoResponse": {
|
673
|
+
"document": "GetVRSVoiceTypeInfo返回参数结构体",
|
674
|
+
"members": [
|
675
|
+
{
|
676
|
+
"disabled": false,
|
677
|
+
"document": "音色信息",
|
678
|
+
"example": "无",
|
679
|
+
"member": "VoiceTypeInfo",
|
680
|
+
"name": "Data",
|
681
|
+
"output_required": false,
|
682
|
+
"type": "object",
|
683
|
+
"value_allowed_null": false
|
684
|
+
},
|
685
|
+
{
|
686
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
687
|
+
"member": "string",
|
688
|
+
"name": "RequestId",
|
689
|
+
"type": "string"
|
690
|
+
}
|
691
|
+
],
|
692
|
+
"type": "object"
|
693
|
+
},
|
632
694
|
"GetVRSVoiceTypesRequest": {
|
633
695
|
"document": "GetVRSVoiceTypes请求参数结构体",
|
634
696
|
"members": [
|
@@ -825,21 +887,21 @@
|
|
825
887
|
"members": [
|
826
888
|
{
|
827
889
|
"disabled": false,
|
828
|
-
"document": "准确度 (
|
890
|
+
"document": "准确度 (小于75则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
|
829
891
|
"example": "无",
|
830
892
|
"member": "float",
|
831
893
|
"name": "PronAccuracy",
|
832
|
-
"
|
894
|
+
"output_required": true,
|
833
895
|
"type": "float",
|
834
896
|
"value_allowed_null": true
|
835
897
|
},
|
836
898
|
{
|
837
899
|
"disabled": false,
|
838
|
-
"document": "流畅度 (
|
900
|
+
"document": "流畅度 (小于0.95则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
|
839
901
|
"example": "无",
|
840
902
|
"member": "float",
|
841
903
|
"name": "PronFluency",
|
842
|
-
"
|
904
|
+
"output_required": true,
|
843
905
|
"type": "float",
|
844
906
|
"value_allowed_null": true
|
845
907
|
},
|
@@ -849,7 +911,7 @@
|
|
849
911
|
"example": "无",
|
850
912
|
"member": "int64",
|
851
913
|
"name": "Tag",
|
852
|
-
"
|
914
|
+
"output_required": true,
|
853
915
|
"type": "int",
|
854
916
|
"value_allowed_null": true
|
855
917
|
},
|
@@ -859,7 +921,7 @@
|
|
859
921
|
"example": "无",
|
860
922
|
"member": "string",
|
861
923
|
"name": "Word",
|
862
|
-
"
|
924
|
+
"output_required": true,
|
863
925
|
"type": "string",
|
864
926
|
"value_allowed_null": true
|
865
927
|
}
|
@@ -48,6 +48,14 @@
|
|
48
48
|
"title": "获取训练文本信息"
|
49
49
|
}
|
50
50
|
],
|
51
|
+
"GetVRSVoiceTypeInfo": [
|
52
|
+
{
|
53
|
+
"document": "查询复刻音色信息",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: vrs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetVRSVoiceTypeInfo\n<公共请求参数>\n\n{\n \"VoiceType\": 200000000,\n \"FastVoiceType\": \"c0be5744e9804c5fae5708fbd71db20d\",\n \"TaskType\": 5\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"DateCreated\": \"2024-05-30T15:53:58+08:00\",\n \"ExpireTime\": \"2025-05-25T15:54:10+08:00\",\n \"FastVoiceType\": \"c0be5744e9804c5fae5708fbd71db20d\",\n \"IsDeployed\": true,\n \"TaskID\": \"fast6d467a51055149138f7fc8852dbd86a0\",\n \"TaskType\": 5,\n \"VoiceGender\": 1,\n \"VoiceName\": \"ceshi\",\n \"VoiceType\": 200000000\n },\n \"RequestId\": \"9bf903a9-437e-4448-b015-c3c920e2e9cc\"\n }\n}",
|
56
|
+
"title": "查询复刻音色信息"
|
57
|
+
}
|
58
|
+
],
|
51
59
|
"GetVRSVoiceTypes": [
|
52
60
|
{
|
53
61
|
"document": "查询复刻音色",
|
tccli/services/vrs/vrs_client.py
CHANGED
@@ -17,6 +17,58 @@ from tencentcloud.vrs.v20200824 import models as models_v20200824
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doGetVRSVoiceTypeInfo(args, parsed_globals):
|
21
|
+
g_param = parse_global_arg(parsed_globals)
|
22
|
+
|
23
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
+
cred = credential.CVMRoleCredential()
|
25
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
+
cred = credential.STSAssumeRoleCredential(
|
27
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
+
)
|
30
|
+
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):
|
31
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
+
else:
|
33
|
+
cred = credential.Credential(
|
34
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
+
)
|
36
|
+
http_profile = HttpProfile(
|
37
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
+
reqMethod="POST",
|
39
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
+
)
|
42
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
+
if g_param[OptionsDefine.Language]:
|
44
|
+
profile.language = g_param[OptionsDefine.Language]
|
45
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
+
client = mod.VrsClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.GetVRSVoiceTypeInfoRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.GetVRSVoiceTypeInfo(model)
|
54
|
+
result = rsp.to_json_string()
|
55
|
+
try:
|
56
|
+
json_obj = json.loads(result)
|
57
|
+
except TypeError as e:
|
58
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
+
break
|
61
|
+
cur_time = time.time()
|
62
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
+
else:
|
67
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
+
|
71
|
+
|
20
72
|
def doDownloadVRSModel(args, parsed_globals):
|
21
73
|
g_param = parse_global_arg(parsed_globals)
|
22
74
|
|
@@ -392,6 +444,7 @@ MODELS_MAP = {
|
|
392
444
|
}
|
393
445
|
|
394
446
|
ACTION_MAP = {
|
447
|
+
"GetVRSVoiceTypeInfo": doGetVRSVoiceTypeInfo,
|
395
448
|
"DownloadVRSModel": doDownloadVRSModel,
|
396
449
|
"CancelVRSTask": doCancelVRSTask,
|
397
450
|
"DetectEnvAndSoundQuality": doDetectEnvAndSoundQuality,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1236.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.1236
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|
@@ -1,4 +1,4 @@
|
|
1
|
-
tccli/__init__.py,sha256=
|
1
|
+
tccli/__init__.py,sha256=G1qxniMBgaONlQ4DP_tysVEIlmNZ8NuDt5lusz_iNDE,27
|
2
2
|
tccli/argparser.py,sha256=WtfpBhj2R6JHSzagy6w6Q4y3YVmyIC_yK80w3tqBPgU,5589
|
3
3
|
tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
|
4
4
|
tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
|
@@ -475,7 +475,7 @@ tccli/services/essbasic/__init__.py,sha256=Uh5kuYtJvJ4F1S2w-19_B6a_JMF1ubh8Se-7p
|
|
475
475
|
tccli/services/essbasic/essbasic_client.py,sha256=b10yr2n1j2xViP_58Y1TZ6sPpqo47pZQf781uqLBNxE,424260
|
476
476
|
tccli/services/essbasic/v20201222/api.json,sha256=8yA-0DwpjBAZajDJnp3flQ2xn1sdkZMVQcvegUcemSM,184116
|
477
477
|
tccli/services/essbasic/v20201222/examples.json,sha256=TsEP0F9v4W6KvnFnczr2diMh2NX2Tp7TcCEkoeBw69Q,68751
|
478
|
-
tccli/services/essbasic/v20210526/api.json,sha256=
|
478
|
+
tccli/services/essbasic/v20210526/api.json,sha256=mHACYSFjZAAY36Q1exl1VOdidvbGTqt4idJhEUMnS4k,705466
|
479
479
|
tccli/services/essbasic/v20210526/examples.json,sha256=4TKycs-TRtUJsS8MabhANTDC6XkrWoy_gKiz83nWxYU,490108
|
480
480
|
tccli/services/facefusion/__init__.py,sha256=5IsXKY7EJG73GoLZDaRk_QwthyDmfes1nKAVdwZETUE,99
|
481
481
|
tccli/services/facefusion/facefusion_client.py,sha256=OK0ZKLEKnBcxnu05rrnA8M7u8bmxJjnCJaRD-hKEDRE,18707
|
@@ -598,9 +598,9 @@ tccli/services/iotcloud/v20180614/examples.json,sha256=AwfWtQ_qZr8SGnhFLXRjowwtm
|
|
598
598
|
tccli/services/iotcloud/v20210408/api.json,sha256=L-Q60MrK_zo3sEW8jdMQ5W74dZi4-McfF-Yk3Dcv4NI,221870
|
599
599
|
tccli/services/iotcloud/v20210408/examples.json,sha256=YyQWed32XTz3uEq2qhzx-PLFsL-JPV5onzu86QzMxa4,52138
|
600
600
|
tccli/services/iotexplorer/__init__.py,sha256=nyHgP2MNjW7AjPBVM_OQXZ53QOGgNAogZb3jbm7PSd0,101
|
601
|
-
tccli/services/iotexplorer/iotexplorer_client.py,sha256=
|
602
|
-
tccli/services/iotexplorer/v20190423/api.json,sha256=
|
603
|
-
tccli/services/iotexplorer/v20190423/examples.json,sha256=
|
601
|
+
tccli/services/iotexplorer/iotexplorer_client.py,sha256=YBRkeQHpHbyEMm4CJH492ARRXo3oNJb3vGoO6FeH3eI,470132
|
602
|
+
tccli/services/iotexplorer/v20190423/api.json,sha256=MycY7Ck7q2Nit284HYWiCJ_g4kG6NpVJRY4NVhqfHoM,467042
|
603
|
+
tccli/services/iotexplorer/v20190423/examples.json,sha256=21p8BKMKS98PHSkKgAfGW5qQeR466eF_TzOlZx27e2g,138889
|
604
604
|
tccli/services/iottid/__init__.py,sha256=Cv5v-9LmxYZb4Z2ifR8l7vJjP8qESiQYXG4QC54GNBM,91
|
605
605
|
tccli/services/iottid/iottid_client.py,sha256=fI3h49-peRkNeNhaaVApZnNhceXpubXpVl1W0m3M9ms,33872
|
606
606
|
tccli/services/iottid/v20190411/api.json,sha256=tI00843oF1iBgrCeMTfh8SGo-u3sygP5MKPGWfAKhqo,16287
|
@@ -821,7 +821,7 @@ tccli/services/sms/__init__.py,sha256=E2rHgUECIJEv3bXVekxPKSuOjzs_iwnew1sPUNqC5X
|
|
821
821
|
tccli/services/sms/sms_client.py,sha256=otQnHbe7byAuvfSPEjiCkBXIYT1ifnL1TWZuaW3-n4o,61963
|
822
822
|
tccli/services/sms/v20190711/api.json,sha256=nk-gqJAYMHC89puYaRtSxoahhohOjP9-DJxSQeLFLG8,77267
|
823
823
|
tccli/services/sms/v20190711/examples.json,sha256=35eDnV-lers_kNqcszZcKHXnhWWe2e9AtG5QAroxQVs,15256
|
824
|
-
tccli/services/sms/v20210111/api.json,sha256=
|
824
|
+
tccli/services/sms/v20210111/api.json,sha256=1xUPdzE6TNhiIn-uunjL-ZnOuyQHp1kx3y6Muwag9i0,87861
|
825
825
|
tccli/services/sms/v20210111/examples.json,sha256=RTnsNcIEmNRXJlW4Tu8g8sujOQGdICz3LsPGurA-gWQ,17896
|
826
826
|
tccli/services/soe/__init__.py,sha256=hFyYSxg0PufjpabpK-_QyhL5XTHbBjGu2C4MefDV44w,85
|
827
827
|
tccli/services/soe/soe_client.py,sha256=9d-c8rDd4-bfnfzuDuAjZNf4yrxQCmWCZOrNdADzdrU,18489
|
@@ -1108,9 +1108,9 @@ tccli/services/vpc/vpc_client.py,sha256=zkL8HCkuES7QvT-KVQsUPg4cYlnEAypTlHK5Jyy6
|
|
1108
1108
|
tccli/services/vpc/v20170312/api.json,sha256=C3Kp9vOrHL4mjsRK1Z4Hgt9Ij4KNyGQnN9n6FRh--No,1339304
|
1109
1109
|
tccli/services/vpc/v20170312/examples.json,sha256=T_ZI7JBDpIyUUvN2BM81sm818qNcXThtJlN-pD9-2_c,451676
|
1110
1110
|
tccli/services/vrs/__init__.py,sha256=wd5Otb4faSI7EjUxu_vldqDm0UVy5iVTZYbLgHCVoHk,85
|
1111
|
-
tccli/services/vrs/vrs_client.py,sha256=
|
1112
|
-
tccli/services/vrs/v20200824/api.json,sha256=
|
1113
|
-
tccli/services/vrs/v20200824/examples.json,sha256=
|
1111
|
+
tccli/services/vrs/vrs_client.py,sha256=vdFvBNTjELeJHSjLdcdTYK6po9gp0cZbms2qoIVqDTA,30782
|
1112
|
+
tccli/services/vrs/v20200824/api.json,sha256=pFa1BrT3l5mPIMGthl6XYwei_RQAZuYX2CQAn440ATI,33072
|
1113
|
+
tccli/services/vrs/v20200824/examples.json,sha256=p-MtIqqpUBbShPDwsjPQ4hcknu5L3eP94QslW9v_jdo,6830
|
1114
1114
|
tccli/services/vtc/__init__.py,sha256=SLbyXXbEnQ9iq3PQW_kOlzw-Ggz4_Z-rbUJKmVc78as,85
|
1115
1115
|
tccli/services/vtc/vtc_client.py,sha256=SDOemVAlHeeWy63SQJuLiCycChZr9OjytqHa3rii-Jw,15472
|
1116
1116
|
tccli/services/vtc/v20240223/api.json,sha256=JZYqcsJcDWpLXzX1576kBt3b-J01ucjoRgB7BqOd_5k,18790
|
@@ -1153,8 +1153,8 @@ tccli/services/yunsou/v20180504/api.json,sha256=2808fil5p3pTEJ3SqXEEq7eSrASZOiv8
|
|
1153
1153
|
tccli/services/yunsou/v20180504/examples.json,sha256=Jg4WuqS_Wxl7eTBMbzjem65FuUZQi3qq3xtlBNFZlTU,11870
|
1154
1154
|
tccli/services/yunsou/v20191115/api.json,sha256=r_p7c7fMNylQVDpSN0CkUB4Cx1nYW1lI3BM_Zi50FNs,15932
|
1155
1155
|
tccli/services/yunsou/v20191115/examples.json,sha256=vN5MzexHVPMckm4MbnXNiOe3KKiVchvf4_uLpjOskuk,3983
|
1156
|
-
tccli-3.0.
|
1157
|
-
tccli-3.0.
|
1158
|
-
tccli-3.0.
|
1159
|
-
tccli-3.0.
|
1160
|
-
tccli-3.0.
|
1156
|
+
tccli-3.0.1236.1.dist-info/METADATA,sha256=IZw6YQ_mTzB7vfgePuEFcf_WZjycA-nPWkACNykbxB4,16408
|
1157
|
+
tccli-3.0.1236.1.dist-info/WHEEL,sha256=HyPWovjK_wfsxZqVnw7Bu5rgKxNh3Nm__lHm0ALDcb4,101
|
1158
|
+
tccli-3.0.1236.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
|
1159
|
+
tccli-3.0.1236.1.dist-info/license_files/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
1160
|
+
tccli-3.0.1236.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|