tccli 3.0.1235.1__py2.py3-none-any.whl → 3.0.1237.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +15 -15
  3. tccli/services/apm/v20210622/examples.json +16 -22
  4. tccli/services/ba/v20200720/api.json +3 -2
  5. tccli/services/billing/v20180709/api.json +2 -2
  6. tccli/services/cam/v20190116/api.json +84 -69
  7. tccli/services/cam/v20190116/examples.json +7 -7
  8. tccli/services/ccc/v20200210/api.json +9 -0
  9. tccli/services/cdb/cdb_client.py +53 -0
  10. tccli/services/cdb/v20170320/api.json +43 -0
  11. tccli/services/cdb/v20170320/examples.json +8 -0
  12. tccli/services/cfg/v20210820/api.json +21 -0
  13. tccli/services/cloudapp/v20220530/api.json +10 -0
  14. tccli/services/cloudaudit/v20190319/api.json +43 -36
  15. tccli/services/cloudaudit/v20190319/examples.json +2 -2
  16. tccli/services/cvm/v20170312/api.json +5 -5
  17. tccli/services/cynosdb/cynosdb_client.py +53 -0
  18. tccli/services/cynosdb/v20190107/api.json +110 -0
  19. tccli/services/cynosdb/v20190107/examples.json +8 -0
  20. tccli/services/domain/v20180808/api.json +18 -17
  21. tccli/services/domain/v20180808/examples.json +22 -22
  22. tccli/services/ess/ess_client.py +57 -4
  23. tccli/services/ess/v20201111/api.json +53 -0
  24. tccli/services/ess/v20201111/examples.json +8 -0
  25. tccli/services/essbasic/v20210526/api.json +11 -1
  26. tccli/services/gwlb/v20240906/api.json +16 -16
  27. tccli/services/gwlb/v20240906/examples.json +2 -2
  28. tccli/services/hunyuan/v20230901/api.json +6 -6
  29. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  30. tccli/services/iotexplorer/v20190423/api.json +129 -4
  31. tccli/services/iotexplorer/v20190423/examples.json +14 -0
  32. tccli/services/lcic/v20220817/api.json +3 -3
  33. tccli/services/lcic/v20220817/examples.json +2 -2
  34. tccli/services/lighthouse/v20200324/examples.json +2 -2
  35. tccli/services/live/v20180801/api.json +5 -5
  36. tccli/services/mongodb/v20180408/api.json +52 -40
  37. tccli/services/mongodb/v20180408/examples.json +4 -4
  38. tccli/services/mongodb/v20190725/api.json +119 -109
  39. tccli/services/mongodb/v20190725/examples.json +5 -5
  40. tccli/services/monitor/v20180724/examples.json +1 -1
  41. tccli/services/mqtt/v20240516/api.json +1 -1
  42. tccli/services/mqtt/v20240516/examples.json +1 -1
  43. tccli/services/pts/v20210728/api.json +8 -0
  44. tccli/services/sms/v20210111/api.json +1 -1
  45. tccli/services/ssl/v20191205/examples.json +1 -1
  46. tccli/services/sts/v20180813/examples.json +1 -1
  47. tccli/services/tdid/v20210519/api.json +30 -38
  48. tccli/services/tdid/v20210519/examples.json +5 -5
  49. tccli/services/trocket/v20230308/api.json +3 -3
  50. tccli/services/vpc/v20170312/api.json +22 -3
  51. tccli/services/vpc/v20170312/examples.json +1 -1
  52. tccli/services/vrs/v20200824/api.json +71 -8
  53. tccli/services/vrs/v20200824/examples.json +8 -0
  54. tccli/services/vrs/vrs_client.py +53 -0
  55. tccli/services/wedata/v20210820/api.json +550 -40
  56. tccli/services/wedata/v20210820/examples.json +10 -4
  57. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/RECORD +61 -61
  59. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/license_files/LICENSE +0 -0
@@ -15,7 +15,7 @@
15
15
  "status": "online"
16
16
  },
17
17
  "DescribeVRSTaskStatus": {
18
- "document": "在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。\n• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。\n• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。\n• 请求方法为 HTTP POST , Content-Type为\"application/json; charset=utf-8\"\n• 签名方法参考 公共参数 中签名方法v3。",
18
+ "document": "在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。(注意:回调方式目前仅支持轻量版声音复刻)\n• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 [“声音复刻任务创建接口”](https://cloud.tencent.com/document/product/1283/90064) CallbackUrl参数说明 。\n• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。\n• 请求方法为 HTTP POST , Content-Type为\"application/json; charset=utf-8\"\n• 签名方法参考 公共参数 中签名方法v3。",
19
19
  "input": "DescribeVRSTaskStatusRequest",
20
20
  "name": "声音复刻任务结果查询接口",
21
21
  "output": "DescribeVRSTaskStatusResponse",
@@ -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",
@@ -166,7 +173,7 @@
166
173
  },
167
174
  {
168
175
  "disabled": false,
169
- "document": "回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。\n回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{\"TaskId\":\"xxxxxxxxxxxxxx\",\"Status\":2,\"StatusStr\":\"success\",\"VoiceType\":xxxxx,\"ErrorMsg\":\"\"}",
176
+ "document": "回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。(注意:回调方式目前仅支持轻量版声音复刻)\n回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{\"TaskId\":\"xxxxxxxxxxxxxx\",\"Status\":2,\"StatusStr\":\"success\",\"VoiceType\":xxxxx,\"ErrorMsg\":\"\"}",
170
177
  "example": "无",
171
178
  "member": "string",
172
179
  "name": "CallbackUrl",
@@ -341,6 +348,7 @@
341
348
  "example": "无",
342
349
  "member": "DescribeVRSTaskStatusRespData",
343
350
  "name": "Data",
351
+ "output_required": true,
344
352
  "type": "object",
345
353
  "value_allowed_null": false
346
354
  },
@@ -629,6 +637,61 @@
629
637
  ],
630
638
  "type": "object"
631
639
  },
640
+ "GetVRSVoiceTypeInfoRequest": {
641
+ "document": "GetVRSVoiceTypeInfo请求参数结构体",
642
+ "members": [
643
+ {
644
+ "disabled": false,
645
+ "document": "音色id。",
646
+ "example": "200000000",
647
+ "member": "int64",
648
+ "name": "VoiceType",
649
+ "required": true,
650
+ "type": "int"
651
+ },
652
+ {
653
+ "disabled": false,
654
+ "document": "0 - 除快速声音复刻外其他复刻类型(默认); 5 - 快速声音复刻。 默认为0。",
655
+ "example": "5",
656
+ "member": "int64",
657
+ "name": "TaskType",
658
+ "required": false,
659
+ "type": "int"
660
+ },
661
+ {
662
+ "disabled": false,
663
+ "document": "快速复刻音色id。",
664
+ "example": "c0be5744e9804c5fae5708fbd71db20d",
665
+ "member": "string",
666
+ "name": "FastVoiceType",
667
+ "required": false,
668
+ "type": "string"
669
+ }
670
+ ],
671
+ "type": "object"
672
+ },
673
+ "GetVRSVoiceTypeInfoResponse": {
674
+ "document": "GetVRSVoiceTypeInfo返回参数结构体",
675
+ "members": [
676
+ {
677
+ "disabled": false,
678
+ "document": "音色信息",
679
+ "example": "无",
680
+ "member": "VoiceTypeInfo",
681
+ "name": "Data",
682
+ "output_required": false,
683
+ "type": "object",
684
+ "value_allowed_null": false
685
+ },
686
+ {
687
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
688
+ "member": "string",
689
+ "name": "RequestId",
690
+ "type": "string"
691
+ }
692
+ ],
693
+ "type": "object"
694
+ },
632
695
  "GetVRSVoiceTypesRequest": {
633
696
  "document": "GetVRSVoiceTypes请求参数结构体",
634
697
  "members": [
@@ -825,21 +888,21 @@
825
888
  "members": [
826
889
  {
827
890
  "disabled": false,
828
- "document": "准确度 (<75则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
891
+ "document": "准确度 (小于75则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
829
892
  "example": "无",
830
893
  "member": "float",
831
894
  "name": "PronAccuracy",
832
- "required": false,
895
+ "output_required": true,
833
896
  "type": "float",
834
897
  "value_allowed_null": true
835
898
  },
836
899
  {
837
900
  "disabled": false,
838
- "document": "流畅度 (<0.95则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
901
+ "document": "流畅度 (小于0.95则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
839
902
  "example": "无",
840
903
  "member": "float",
841
904
  "name": "PronFluency",
842
- "required": false,
905
+ "output_required": true,
843
906
  "type": "float",
844
907
  "value_allowed_null": true
845
908
  },
@@ -849,7 +912,7 @@
849
912
  "example": "无",
850
913
  "member": "int64",
851
914
  "name": "Tag",
852
- "required": false,
915
+ "output_required": true,
853
916
  "type": "int",
854
917
  "value_allowed_null": true
855
918
  },
@@ -859,7 +922,7 @@
859
922
  "example": "无",
860
923
  "member": "string",
861
924
  "name": "Word",
862
- "required": false,
925
+ "output_required": true,
863
926
  "type": "string",
864
927
  "value_allowed_null": true
865
928
  }
@@ -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": "查询复刻音色",
@@ -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,