tccli 3.0.1123.1__py2.py3-none-any.whl → 3.0.1124.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 (40) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +2 -2
  3. tccli/services/asr/v20190614/api.json +1 -1
  4. tccli/services/ccc/ccc_client.py +53 -0
  5. tccli/services/ccc/v20200210/api.json +89 -0
  6. tccli/services/ccc/v20200210/examples.json +8 -0
  7. tccli/services/cdb/v20170320/api.json +2 -2
  8. tccli/services/cfw/v20190904/api.json +6 -5
  9. tccli/services/cfw/v20190904/examples.json +1 -1
  10. tccli/services/csip/v20221121/api.json +1 -0
  11. tccli/services/cynosdb/v20190107/api.json +43 -16
  12. tccli/services/cynosdb/v20190107/examples.json +2 -2
  13. tccli/services/dts/v20211206/api.json +9 -0
  14. tccli/services/facefusion/facefusion_client.py +53 -0
  15. tccli/services/facefusion/v20220927/api.json +168 -0
  16. tccli/services/facefusion/v20220927/examples.json +14 -0
  17. tccli/services/hunyuan/v20230901/api.json +15 -15
  18. tccli/services/hunyuan/v20230901/examples.json +5 -5
  19. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  20. tccli/services/iotexplorer/v20190423/api.json +136 -0
  21. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  22. tccli/services/mps/v20190612/api.json +22 -22
  23. tccli/services/pts/v20210728/api.json +1 -1
  24. tccli/services/pts/v20210728/examples.json +1 -1
  25. tccli/services/rum/v20210622/api.json +2 -2
  26. tccli/services/sqlserver/v20180328/api.json +41 -29
  27. tccli/services/tcss/v20201101/api.json +3 -2
  28. tccli/services/tcss/v20201101/examples.json +1 -1
  29. tccli/services/trp/trp_client.py +53 -0
  30. tccli/services/trp/v20210515/api.json +110 -0
  31. tccli/services/trp/v20210515/examples.json +8 -0
  32. tccli/services/vcg/v20240404/api.json +8 -8
  33. tccli/services/waf/v20180125/api.json +11 -1
  34. tccli/services/waf/v20180125/examples.json +2 -2
  35. tccli/services/wedata/v20210820/api.json +40 -7
  36. {tccli-3.0.1123.1.dist-info → tccli-3.0.1124.1.dist-info}/METADATA +2 -2
  37. {tccli-3.0.1123.1.dist-info → tccli-3.0.1124.1.dist-info}/RECORD +40 -40
  38. {tccli-3.0.1123.1.dist-info → tccli-3.0.1124.1.dist-info}/WHEEL +0 -0
  39. {tccli-3.0.1123.1.dist-info → tccli-3.0.1124.1.dist-info}/entry_points.txt +0 -0
  40. {tccli-3.0.1123.1.dist-info → tccli-3.0.1124.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1123.1'
1
+ __version__ = '3.0.1124.1'
@@ -15,7 +15,7 @@
15
15
  "status": "online"
16
16
  },
17
17
  "QueryTextToImageProJob": {
18
- "document": "文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
18
+ "document": "本接口已迁移至腾讯混元大模型-混元生图,即将停止此处维护,可切换至 [混元生图 API](https://cloud.tencent.com/document/product/1729/105970) 继续使用。\n文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
19
19
  "input": "QueryTextToImageProJobRequest",
20
20
  "name": "查询文生图(高级版)任务",
21
21
  "output": "QueryTextToImageProJobResponse",
@@ -36,7 +36,7 @@
36
36
  "status": "online"
37
37
  },
38
38
  "SubmitTextToImageProJob": {
39
- "document": "文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
39
+ "document": "本接口已迁移至腾讯混元大模型-混元生图,即将停止此处维护,可切换至 [混元生图 API](https://cloud.tencent.com/document/product/1729/105969) 继续使用。\n文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
40
40
  "input": "SubmitTextToImageProJobRequest",
41
41
  "name": "提交文生图(高级版)任务",
42
42
  "output": "SubmitTextToImageProJobResponse",
@@ -519,7 +519,7 @@
519
519
  "members": [
520
520
  {
521
521
  "disabled": false,
522
- "document": "引擎模型类型\n识别引擎采用分级计费方案,标记为“大模型版”的引擎适用大模型计费方案,[点击这里](https://cloud.tencent.com/document/product/1093/35686) 查看产品计费说明\n\n电话通讯场景引擎:\n**注意:电话通讯场景,请务必使用以下8k引擎**\n• 8k_zh:中文电话通讯;\n• 8k_en:英文电话通讯;\n如您有电话通讯场景识别需求,但发现需求语种仅支持16k,可将8k音频传入下方16k引擎,亦能获取识别结果。但**16k引擎并非基于电话通讯数据训练,无法承诺此种调用方式的识别效果,需由您自行验证识别结果是否可用**\n\n通用场景引擎:\n**注意:除电话通讯场景以外的其它识别场景,请务必使用以下16k引擎**\n• **16k_zh:**中文普通话通用引擎,支持中文普通话和少量英语,使用丰富的中文普通话语料训练,覆盖场景广泛,适用于除电话通讯外的所有中文普通话识别场景;\n• **16k_zh_large:**普方英大模型引擎【大模型版】。当前模型同时支持中文、英文、[多种中文方言](https://cloud.tencent.com/document/product/1093/35682)等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远、等低质量音频的识别准确率极大提升,[点击这里](https://console.cloud.tencent.com/asr/demonstrate) 对比中文普通话常规版本与普方英大模型版本的识别效果;\n• **16k_zh_dialect:**中文普通话+多方言混合引擎,除普通话外支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);\n• **16k_en:**英语;\n• **16k_yue:**粤语;\n• **16k_zh-PY:**中英粤混合引擎,使用一个引擎同时识别中文普通话、英语、粤语三个语言;\n• **16k_ja:**日语;\n• **16k_ko:**韩语;\n• **16k_vi:**越南语;\n• **16k_ms:**马来语;\n• **16k_id:**印度尼西亚语;\n• **16k_fil:**菲律宾语;\n• **16k_th:**泰语;\n• **16k_pt:**葡萄牙语;\n• **16k_tr:**土耳其语;\n• **16k_ar:**阿拉伯语;\n• **16k_es:**西班牙语;\n• **16k_hi:**印地语;\n• **16k_fr:**法语;\n• **16k_zh_medical:**中文医疗引擎;\n• **16k_de:**德语;",
522
+ "document": "引擎模型类型\n识别引擎采用分级计费方案,标记为“大模型版”的引擎适用大模型计费方案,[点击这里](https://cloud.tencent.com/document/product/1093/35686) 查看产品计费说明\n\n电话通讯场景引擎:\n**注意:电话通讯场景,请务必使用以下8k引擎**\n• 8k_zh:中文电话通讯;\n• 8k_en:英文电话通讯;\n• **8k_zh_large:**普方大模型引擎【大模型版】。当前模型同时支持中文、[多种中文方言](https://cloud.tencent.com/document/product/1093/35682)等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升,[点击这里](https://console.cloud.tencent.com/asr/demonstrate) 对比常规版本与普方大模型版本的识别效果;\n\n注意:如您有电话通讯场景识别需求,但发现需求语种仅支持16k,可将8k音频传入下方16k引擎,亦能获取识别结果。但**16k引擎并非基于电话通讯数据训练,无法承诺此种调用方式的识别效果,需由您自行验证识别结果是否可用**\n\n通用场景引擎:\n**注意:除电话通讯场景以外的其它识别场景,请务必使用以下16k引擎**\n• **16k_zh:**中文普通话通用引擎,支持中文普通话和少量英语,使用丰富的中文普通话语料训练,覆盖场景广泛,适用于除电话通讯外的所有中文普通话识别场景;\n• **16k_zh_large:**普方英大模型引擎【大模型版】。当前模型同时支持中文、英文、[多种中文方言](https://cloud.tencent.com/document/product/1093/35682)等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升,[点击这里](https://console.cloud.tencent.com/asr/demonstrate) 对比中文普通话常规版本与普方英大模型版本的识别效果;\n• **16k_zh_dialect:**中文普通话+多方言混合引擎,除普通话外支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);\n• **16k_en:**英语;\n• **16k_yue:**粤语;\n• **16k_zh-PY:**中英粤混合引擎,使用一个引擎同时识别中文普通话、英语、粤语三个语言;\n• **16k_ja:**日语;\n• **16k_ko:**韩语;\n• **16k_vi:**越南语;\n• **16k_ms:**马来语;\n• **16k_id:**印度尼西亚语;\n• **16k_fil:**菲律宾语;\n• **16k_th:**泰语;\n• **16k_pt:**葡萄牙语;\n• **16k_tr:**土耳其语;\n• **16k_ar:**阿拉伯语;\n• **16k_es:**西班牙语;\n• **16k_hi:**印地语;\n• **16k_fr:**法语;\n• **16k_zh_medical:**中文医疗引擎;\n• **16k_de:**德语;",
523
523
  "example": "16k_zh",
524
524
  "member": "string",
525
525
  "name": "EngineModelType",
@@ -2097,6 +2097,58 @@ def doDescribeTelCallInfo(args, parsed_globals):
2097
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
2098
 
2099
2099
 
2100
+ def doCreateIVRSession(args, parsed_globals):
2101
+ g_param = parse_global_arg(parsed_globals)
2102
+
2103
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2104
+ cred = credential.CVMRoleCredential()
2105
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2106
+ cred = credential.STSAssumeRoleCredential(
2107
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2108
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2109
+ )
2110
+ 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):
2111
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2112
+ else:
2113
+ cred = credential.Credential(
2114
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2115
+ )
2116
+ http_profile = HttpProfile(
2117
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2118
+ reqMethod="POST",
2119
+ endpoint=g_param[OptionsDefine.Endpoint],
2120
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2121
+ )
2122
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2123
+ if g_param[OptionsDefine.Language]:
2124
+ profile.language = g_param[OptionsDefine.Language]
2125
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2126
+ client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
2127
+ client._sdkVersion += ("_CLI_" + __version__)
2128
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
+ model = models.CreateIVRSessionRequest()
2130
+ model.from_json_string(json.dumps(args))
2131
+ start_time = time.time()
2132
+ while True:
2133
+ rsp = client.CreateIVRSession(model)
2134
+ result = rsp.to_json_string()
2135
+ try:
2136
+ json_obj = json.loads(result)
2137
+ except TypeError as e:
2138
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2139
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2140
+ break
2141
+ cur_time = time.time()
2142
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2143
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2144
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2145
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2146
+ else:
2147
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2148
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2149
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
+
2151
+
2100
2152
  def doCreateAutoCalloutTask(args, parsed_globals):
2101
2153
  g_param = parse_global_arg(parsed_globals)
2102
2154
 
@@ -3032,6 +3084,7 @@ ACTION_MAP = {
3032
3084
  "DisableCCCPhoneNumber": doDisableCCCPhoneNumber,
3033
3085
  "DescribeStaffStatusMetrics": doDescribeStaffStatusMetrics,
3034
3086
  "DescribeTelCallInfo": doDescribeTelCallInfo,
3087
+ "CreateIVRSession": doCreateIVRSession,
3035
3088
  "CreateAutoCalloutTask": doCreateAutoCalloutTask,
3036
3089
  "ModifyExtension": doModifyExtension,
3037
3090
  "UpdateCCCSkillGroup": doUpdateCCCSkillGroup,
@@ -70,6 +70,13 @@
70
70
  "output": "CreateExtensionResponse",
71
71
  "status": "online"
72
72
  },
73
+ "CreateIVRSession": {
74
+ "document": "创建关联 IVR 的会话,仅高级版支持,目前支持呼入和自动外呼两种 IVR 类型。收到请求后 TCCC 会先尝试呼通被叫,然后进入 IVR 流程。",
75
+ "input": "CreateIVRSessionRequest",
76
+ "name": "CreateIVRSession",
77
+ "output": "CreateIVRSessionResponse",
78
+ "status": "online"
79
+ },
73
80
  "CreatePredictiveDialingCampaign": {
74
81
  "document": "创建预测式外呼任务",
75
82
  "input": "CreatePredictiveDialingCampaignRequest",
@@ -1926,6 +1933,88 @@
1926
1933
  ],
1927
1934
  "type": "object"
1928
1935
  },
1936
+ "CreateIVRSessionRequest": {
1937
+ "document": "CreateIVRSession请求参数结构体",
1938
+ "members": [
1939
+ {
1940
+ "disabled": false,
1941
+ "document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
1942
+ "example": "1400000000",
1943
+ "member": "int64",
1944
+ "name": "SdkAppId",
1945
+ "required": true,
1946
+ "type": "int"
1947
+ },
1948
+ {
1949
+ "disabled": false,
1950
+ "document": "被叫",
1951
+ "example": "+8613012345678",
1952
+ "member": "string",
1953
+ "name": "Callee",
1954
+ "required": true,
1955
+ "type": "string"
1956
+ },
1957
+ {
1958
+ "disabled": false,
1959
+ "document": "指定的 IVR Id,目前支持呼入和自动外呼两种类型",
1960
+ "example": "4600",
1961
+ "member": "int64",
1962
+ "name": "IVRId",
1963
+ "required": true,
1964
+ "type": "int"
1965
+ },
1966
+ {
1967
+ "disabled": false,
1968
+ "document": "主叫号码列表",
1969
+ "example": "无",
1970
+ "member": "string",
1971
+ "name": "Callers",
1972
+ "required": false,
1973
+ "type": "list"
1974
+ },
1975
+ {
1976
+ "disabled": false,
1977
+ "document": "自定义变量",
1978
+ "example": "无",
1979
+ "member": "Variable",
1980
+ "name": "Variables",
1981
+ "required": false,
1982
+ "type": "list"
1983
+ },
1984
+ {
1985
+ "disabled": false,
1986
+ "document": "用户数据",
1987
+ "example": "foobar",
1988
+ "member": "string",
1989
+ "name": "UUI",
1990
+ "required": false,
1991
+ "type": "string"
1992
+ }
1993
+ ],
1994
+ "type": "object"
1995
+ },
1996
+ "CreateIVRSessionResponse": {
1997
+ "document": "CreateIVRSession返回参数结构体",
1998
+ "members": [
1999
+ {
2000
+ "disabled": false,
2001
+ "document": "新创建的会话 ID",
2002
+ "example": "adcf61b8-dbb9-4c20-87bf-c0744c04bade",
2003
+ "member": "string",
2004
+ "name": "SessionId",
2005
+ "output_required": false,
2006
+ "type": "string",
2007
+ "value_allowed_null": false
2008
+ },
2009
+ {
2010
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2011
+ "member": "string",
2012
+ "name": "RequestId",
2013
+ "type": "string"
2014
+ }
2015
+ ],
2016
+ "type": "object"
2017
+ },
1929
2018
  "CreatePredictiveDialingCampaignRequest": {
1930
2019
  "document": "CreatePredictiveDialingCampaign请求参数结构体",
1931
2020
  "members": [
@@ -80,6 +80,14 @@
80
80
  "title": "创建话机账号"
81
81
  }
82
82
  ],
83
+ "CreateIVRSession": [
84
+ {
85
+ "document": "",
86
+ "input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateIVRSession\n<公共请求参数>\n\n{\n \"Callee\": \"008612300000000\",\n \"SdkAppId\": 1400000000,\n \"IVRId\": 4500\n}",
87
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6bb56a09-2787-40bc-80c5-dc6dab783eff\",\n \"SessionId\": \"6bb56a09278740bc80c5dc6dab783eff\"\n }\n}",
88
+ "title": "创建关联 IVR 的会话示例"
89
+ }
90
+ ],
83
91
  "CreatePredictiveDialingCampaign": [
84
92
  {
85
93
  "document": "创建预测式外呼任务",
@@ -17592,7 +17592,7 @@
17592
17592
  {
17593
17593
  "disabled": false,
17594
17594
  "document": "实例 ID 数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
17595
- "example": "[\"cdb-f35wr6wj\\r\\n\"]",
17595
+ "example": "[\"cdb-f35wr6wj\"]",
17596
17596
  "member": "string",
17597
17597
  "name": "InstanceIds",
17598
17598
  "required": true,
@@ -17610,7 +17610,7 @@
17610
17610
  "example": "9ad9c2d5-88007b27-7d2c8b8c-f2598f12",
17611
17611
  "member": "string",
17612
17612
  "name": "AsyncRequestId",
17613
- "required": true,
17613
+ "output_required": true,
17614
17614
  "type": "string",
17615
17615
  "value_allowed_null": false
17616
17616
  },
@@ -204,11 +204,11 @@
204
204
  "status": "online"
205
205
  },
206
206
  "DeleteVpcInstance": {
207
- "document": "删除防火墙实例",
207
+ "document": "接口废弃\n\n删除防火墙实例",
208
208
  "input": "DeleteVpcInstanceRequest",
209
209
  "name": "删除防火墙实例",
210
210
  "output": "DeleteVpcInstanceResponse",
211
- "status": "online"
211
+ "status": "deprecated"
212
212
  },
213
213
  "DescribeAcLists": {
214
214
  "document": "访问控制列表",
@@ -421,9 +421,9 @@
421
421
  "status": "online"
422
422
  },
423
423
  "DescribeSourceAsset": {
424
- "document": "DescribeSourceAsset-查询资产组全部资产信息",
424
+ "document": "DescribeSourceAsset-查询全部资产信息",
425
425
  "input": "DescribeSourceAssetRequest",
426
- "name": "查询资产组全部资产信息",
426
+ "name": "查询全部资产信息",
427
427
  "output": "DescribeSourceAssetResponse",
428
428
  "status": "online"
429
429
  },
@@ -5808,6 +5808,7 @@
5808
5808
  "example": "0",
5809
5809
  "member": "int64",
5810
5810
  "name": "SyncStatus",
5811
+ "output_required": true,
5811
5812
  "type": "int",
5812
5813
  "value_allowed_null": false
5813
5814
  },
@@ -5834,7 +5835,7 @@
5834
5835
  "example": "无",
5835
5836
  "member": "ScanInfo",
5836
5837
  "name": "Data",
5837
- "required": true,
5838
+ "output_required": true,
5838
5839
  "type": "object",
5839
5840
  "value_allowed_null": false
5840
5841
  },
@@ -382,7 +382,7 @@
382
382
  {
383
383
  "document": "",
384
384
  "input": "https://cfw.tencentcloudapi.com/?Action=DescribeGuideScanInfo\n&<公共请求参数>",
385
- "output": "{\n \"Response\": {\n \"Data\": {\n \"ScanTime\": \"xx\",\n \"ScanPercent\": 0.0,\n \"ScanResultInfo\": {\n \"LeakNum\": 1,\n \"IPNum\": 1,\n \"IdpStatus\": true,\n \"PortNum\": 1,\n \"BanStatus\": true,\n \"IPStatus\": true\n },\n \"ScanStatus\": 0\n },\n \"RequestId\": \"xx\"\n }\n}",
385
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"ScanResultInfo\": {\n \"LeakNum\": 1,\n \"IPNum\": 1,\n \"PortNum\": 1,\n \"IPStatus\": true,\n \"IdpStatus\": true,\n \"BanStatus\": true\n },\n \"ScanStatus\": 0,\n \"ScanPercent\": 0,\n \"ScanTime\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
386
386
  "title": "DescribeGuideScanInfo 新手引导扫描接口"
387
387
  }
388
388
  ],
@@ -302,6 +302,7 @@
302
302
  "example": "0",
303
303
  "member": "int64",
304
304
  "name": "Status",
305
+ "output_required": true,
305
306
  "type": "int",
306
307
  "value_allowed_null": false
307
308
  },
@@ -10218,6 +10218,7 @@
10218
10218
  "example": "无",
10219
10219
  "member": "int64",
10220
10220
  "name": "TemplateId",
10221
+ "output_required": true,
10221
10222
  "type": "int",
10222
10223
  "value_allowed_null": false
10223
10224
  },
@@ -10227,6 +10228,7 @@
10227
10228
  "example": "无",
10228
10229
  "member": "string",
10229
10230
  "name": "TemplateName",
10231
+ "output_required": true,
10230
10232
  "type": "string",
10231
10233
  "value_allowed_null": false
10232
10234
  },
@@ -10236,6 +10238,7 @@
10236
10238
  "example": "无",
10237
10239
  "member": "string",
10238
10240
  "name": "TemplateDescription",
10241
+ "output_required": true,
10239
10242
  "type": "string",
10240
10243
  "value_allowed_null": false
10241
10244
  },
@@ -10245,6 +10248,7 @@
10245
10248
  "example": "无",
10246
10249
  "member": "string",
10247
10250
  "name": "EngineVersion",
10251
+ "output_required": true,
10248
10252
  "type": "string",
10249
10253
  "value_allowed_null": false
10250
10254
  },
@@ -10254,6 +10258,7 @@
10254
10258
  "example": "无",
10255
10259
  "member": "int64",
10256
10260
  "name": "TotalCount",
10261
+ "output_required": true,
10257
10262
  "type": "int",
10258
10263
  "value_allowed_null": false
10259
10264
  },
@@ -10263,6 +10268,7 @@
10263
10268
  "example": "无",
10264
10269
  "member": "ParamDetail",
10265
10270
  "name": "Items",
10271
+ "output_required": true,
10266
10272
  "type": "list",
10267
10273
  "value_allowed_null": false
10268
10274
  },
@@ -10272,6 +10278,7 @@
10272
10278
  "example": "无",
10273
10279
  "member": "string",
10274
10280
  "name": "DbMode",
10281
+ "output_required": true,
10275
10282
  "type": "string",
10276
10283
  "value_allowed_null": false
10277
10284
  },
@@ -15752,7 +15759,7 @@
15752
15759
  "example": "无",
15753
15760
  "member": "string",
15754
15761
  "name": "ParamName",
15755
- "required": true,
15762
+ "output_required": true,
15756
15763
  "type": "string",
15757
15764
  "value_allowed_null": false
15758
15765
  },
@@ -15762,7 +15769,7 @@
15762
15769
  "example": "无",
15763
15770
  "member": "string",
15764
15771
  "name": "ParamType",
15765
- "required": true,
15772
+ "output_required": true,
15766
15773
  "type": "string",
15767
15774
  "value_allowed_null": false
15768
15775
  },
@@ -15772,7 +15779,7 @@
15772
15779
  "example": "无",
15773
15780
  "member": "bool",
15774
15781
  "name": "SupportFunc",
15775
- "required": true,
15782
+ "output_required": true,
15776
15783
  "type": "bool",
15777
15784
  "value_allowed_null": false
15778
15785
  },
@@ -15782,7 +15789,7 @@
15782
15789
  "example": "无",
15783
15790
  "member": "string",
15784
15791
  "name": "Default",
15785
- "required": true,
15792
+ "output_required": true,
15786
15793
  "type": "string",
15787
15794
  "value_allowed_null": false
15788
15795
  },
@@ -15792,7 +15799,7 @@
15792
15799
  "example": "无",
15793
15800
  "member": "string",
15794
15801
  "name": "Description",
15795
- "required": true,
15802
+ "output_required": true,
15796
15803
  "type": "string",
15797
15804
  "value_allowed_null": false
15798
15805
  },
@@ -15802,7 +15809,7 @@
15802
15809
  "example": "无",
15803
15810
  "member": "string",
15804
15811
  "name": "CurrentValue",
15805
- "required": true,
15812
+ "output_required": true,
15806
15813
  "type": "string",
15807
15814
  "value_allowed_null": false
15808
15815
  },
@@ -15812,7 +15819,7 @@
15812
15819
  "example": "无",
15813
15820
  "member": "int64",
15814
15821
  "name": "NeedReboot",
15815
- "required": true,
15822
+ "output_required": true,
15816
15823
  "type": "int",
15817
15824
  "value_allowed_null": false
15818
15825
  },
@@ -15822,7 +15829,7 @@
15822
15829
  "example": "无",
15823
15830
  "member": "string",
15824
15831
  "name": "Max",
15825
- "required": true,
15832
+ "output_required": true,
15826
15833
  "type": "string",
15827
15834
  "value_allowed_null": false
15828
15835
  },
@@ -15832,7 +15839,7 @@
15832
15839
  "example": "无",
15833
15840
  "member": "string",
15834
15841
  "name": "Min",
15835
- "required": true,
15842
+ "output_required": true,
15836
15843
  "type": "string",
15837
15844
  "value_allowed_null": false
15838
15845
  },
@@ -15842,7 +15849,7 @@
15842
15849
  "example": "无",
15843
15850
  "member": "string",
15844
15851
  "name": "EnumValue",
15845
- "required": true,
15852
+ "output_required": true,
15846
15853
  "type": "list",
15847
15854
  "value_allowed_null": true
15848
15855
  },
@@ -15852,7 +15859,7 @@
15852
15859
  "example": "无",
15853
15860
  "member": "int64",
15854
15861
  "name": "IsGlobal",
15855
- "required": true,
15862
+ "output_required": true,
15856
15863
  "type": "int",
15857
15864
  "value_allowed_null": false
15858
15865
  },
@@ -15862,7 +15869,7 @@
15862
15869
  "example": "无",
15863
15870
  "member": "string",
15864
15871
  "name": "MatchType",
15865
- "required": true,
15872
+ "output_required": true,
15866
15873
  "type": "string",
15867
15874
  "value_allowed_null": false
15868
15875
  },
@@ -15872,7 +15879,7 @@
15872
15879
  "example": "无",
15873
15880
  "member": "string",
15874
15881
  "name": "MatchValue",
15875
- "required": true,
15882
+ "output_required": true,
15876
15883
  "type": "string",
15877
15884
  "value_allowed_null": false
15878
15885
  },
@@ -15882,7 +15889,7 @@
15882
15889
  "example": "无",
15883
15890
  "member": "bool",
15884
15891
  "name": "IsFunc",
15885
- "required": true,
15892
+ "output_required": true,
15886
15893
  "type": "bool",
15887
15894
  "value_allowed_null": true
15888
15895
  },
@@ -15892,7 +15899,7 @@
15892
15899
  "example": "无",
15893
15900
  "member": "string",
15894
15901
  "name": "Func",
15895
- "required": true,
15902
+ "output_required": true,
15896
15903
  "type": "string",
15897
15904
  "value_allowed_null": true
15898
15905
  },
@@ -15902,9 +15909,19 @@
15902
15909
  "example": "无",
15903
15910
  "member": "ModifiableInfo",
15904
15911
  "name": "ModifiableInfo",
15905
- "required": true,
15912
+ "output_required": true,
15906
15913
  "type": "object",
15907
15914
  "value_allowed_null": true
15915
+ },
15916
+ {
15917
+ "disabled": false,
15918
+ "document": "支持公式的参数的默认公式样式\n注意:此字段可能返回 null,表示取不到有效值。",
15919
+ "example": "无",
15920
+ "member": "string",
15921
+ "name": "FuncPattern",
15922
+ "output_required": true,
15923
+ "type": "string",
15924
+ "value_allowed_null": true
15908
15925
  }
15909
15926
  ],
15910
15927
  "usage": "out"
@@ -16220,6 +16237,16 @@
16220
16237
  "output_required": true,
16221
16238
  "type": "string",
16222
16239
  "value_allowed_null": true
16240
+ },
16241
+ {
16242
+ "disabled": false,
16243
+ "document": "支持公式的参数的默认公式样式\n注意:此字段可能返回 null,表示取不到有效值。",
16244
+ "example": "无",
16245
+ "member": "string",
16246
+ "name": "FuncPattern",
16247
+ "output_required": true,
16248
+ "type": "string",
16249
+ "value_allowed_null": true
16223
16250
  }
16224
16251
  ],
16225
16252
  "usage": "out"
@@ -478,7 +478,7 @@
478
478
  {
479
479
  "document": "查询实例参数",
480
480
  "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceParams\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-ge5ck0jr\",\n \"ParamKeyword\": \"cdb\",\n \"InstanceIds\": [\n \"cynosdbmysql-ins-kzavkukw\"\n ]\n}",
481
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-1111111\",\n \"ParamsItems\": [\n {\n \"CurrentValue\": \"1\",\n \"Default\": \"1\",\n \"Description\": \"Controls the interval between successive column values.\",\n \"EnumValue\": [],\n \"Func\": \"\",\n \"IsFunc\": false,\n \"IsGlobal\": 1,\n \"Max\": \"65535\",\n \"Min\": \"1\",\n \"NeedReboot\": 0,\n \"ParamName\": \"auto_increment_increment\",\n \"ParamType\": \"integer\"\n }\n ]\n }\n ],\n \"RequestId\": \"12fc29c0-6a35-11ed-bc4c-d5b8675844ad\"\n }\n}",
481
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-1111111\",\n \"ParamsItems\": [\n {\n \"CurrentValue\": \"1\",\n \"Default\": \"1\",\n \"Description\": \"Controls the interval between successive column values.\",\n \"EnumValue\": [],\n \"Func\": \"\",\n \"IsFunc\": false,\n \"IsGlobal\": 1,\n \"Max\": \"65535\",\n \"Min\": \"1\",\n \"NeedReboot\": 0,\n \"ParamName\": \"auto_increment_increment\",\n \"ParamType\": \"integer\",\n \"FuncPattern\": \"{MAX(DBInitCpu/%d,%d)},2,4\"\n }\n ]\n }\n ],\n \"RequestId\": \"12fc29c0-6a35-11ed-bc4c-d5b8675844ad\"\n }\n}",
482
482
  "title": "查询实例参数"
483
483
  }
484
484
  ],
@@ -518,7 +518,7 @@
518
518
  {
519
519
  "document": "查询参数模板详情",
520
520
  "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeParamTemplateDetail\n<公共请求参数>\n\n{\n \"TemplateId\": \"4837003\"\n}",
521
- "output": "{\n \"Response\": {\n \"DbMode\": \"NORMAL\",\n \"EngineVersion\": \"5.7\",\n \"Items\": [\n {\n \"CurrentValue\": \"1000\",\n \"Default\": \"0\",\n \"Description\": \"The maximum permitted number of simultaneous client connections per user.\",\n \"EnumValue\": [],\n \"Func\": \"\",\n \"IsFunc\": false,\n \"IsGlobal\": 0,\n \"MatchType\": \"\",\n \"MatchValue\": \"\",\n \"Max\": \"10240\",\n \"Min\": \"0\",\n \"ModifiableInfo\": {\n \"IsModifiable\": 1\n },\n \"NeedReboot\": 0,\n \"ParamName\": \"max_user_connections\",\n \"ParamType\": \"integer\",\n \"SupportFunc\": false\n }\n ],\n \"RequestId\": \"ca8481bf-ba79-42ba-b90b-bd47df104add\",\n \"TemplateDescription\": \"测试模板\",\n \"TemplateId\": 4837003,\n \"TemplateName\": \"测试模板\",\n \"TotalCount\": 1\n }\n}",
521
+ "output": "{\n \"Response\": {\n \"DbMode\": \"NORMAL\",\n \"EngineVersion\": \"5.7\",\n \"Items\": [\n {\n \"CurrentValue\": \"1000\",\n \"Default\": \"0\",\n \"Description\": \"The maximum permitted number of simultaneous client connections per user.\",\n \"EnumValue\": [],\n \"Func\": \"\",\n \"IsFunc\": false,\n \"IsGlobal\": 0,\n \"MatchType\": \"\",\n \"MatchValue\": \"\",\n \"Max\": \"10240\",\n \"Min\": \"0\",\n \"ModifiableInfo\": {\n \"IsModifiable\": 1\n },\n \"NeedReboot\": 0,\n \"ParamName\": \"max_user_connections\",\n \"ParamType\": \"integer\",\n \"SupportFunc\": false,\n \"FuncPattern\": \"{MAX(DBInitCpu/%d,%d)},2,4\"\n }\n ],\n \"RequestId\": \"ca8481bf-ba79-42ba-b90b-bd47df104add\",\n \"TemplateDescription\": \"测试模板\",\n \"TemplateId\": 4837003,\n \"TemplateName\": \"测试模板\",\n \"TotalCount\": 1\n }\n}",
522
522
  "title": "查询参数模板详情"
523
523
  }
524
524
  ],
@@ -4730,6 +4730,15 @@
4730
4730
  "required": false,
4731
4731
  "type": "string"
4732
4732
  },
4733
+ {
4734
+ "disabled": false,
4735
+ "document": "订阅的topicName",
4736
+ "example": "topic-subs-g9k9ct7gmc--6itdltb8",
4737
+ "member": "string",
4738
+ "name": "Topic",
4739
+ "required": false,
4740
+ "type": "string"
4741
+ },
4733
4742
  {
4734
4743
  "disabled": false,
4735
4744
  "document": "计费模式筛选,可能的值:0-包年包月,1-按量计费",
@@ -175,6 +175,58 @@ def doFuseFace(args, parsed_globals):
175
175
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
176
176
 
177
177
 
178
+ def doFuseFaceUltra(args, parsed_globals):
179
+ g_param = parse_global_arg(parsed_globals)
180
+
181
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
182
+ cred = credential.CVMRoleCredential()
183
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
184
+ cred = credential.STSAssumeRoleCredential(
185
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
186
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
187
+ )
188
+ 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):
189
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
190
+ else:
191
+ cred = credential.Credential(
192
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
193
+ )
194
+ http_profile = HttpProfile(
195
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
196
+ reqMethod="POST",
197
+ endpoint=g_param[OptionsDefine.Endpoint],
198
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
199
+ )
200
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
201
+ if g_param[OptionsDefine.Language]:
202
+ profile.language = g_param[OptionsDefine.Language]
203
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
204
+ client = mod.FacefusionClient(cred, g_param[OptionsDefine.Region], profile)
205
+ client._sdkVersion += ("_CLI_" + __version__)
206
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
207
+ model = models.FuseFaceUltraRequest()
208
+ model.from_json_string(json.dumps(args))
209
+ start_time = time.time()
210
+ while True:
211
+ rsp = client.FuseFaceUltra(model)
212
+ result = rsp.to_json_string()
213
+ try:
214
+ json_obj = json.loads(result)
215
+ except TypeError as e:
216
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
217
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
218
+ break
219
+ cur_time = time.time()
220
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
221
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
222
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
223
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
224
+ else:
225
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
226
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
227
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
228
+
229
+
178
230
  CLIENT_MAP = {
179
231
  "v20220927": facefusion_client_v20220927,
180
232
  "v20181201": facefusion_client_v20181201,
@@ -191,6 +243,7 @@ ACTION_MAP = {
191
243
  "DescribeMaterialList": doDescribeMaterialList,
192
244
  "FaceFusion": doFaceFusion,
193
245
  "FuseFace": doFuseFace,
246
+ "FuseFaceUltra": doFuseFaceUltra,
194
247
 
195
248
  }
196
249