tccli 3.0.1181.1__py2.py3-none-any.whl → 3.0.1182.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/__init__.py +3 -0
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +18 -0
- tccli/services/clb/v20180317/api.json +59 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +50 -11
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dasb/v20191018/api.json +11 -1
- tccli/services/es/v20180416/api.json +1 -1
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +235 -0
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +18 -8
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/tdmq/v20200217/api.json +10 -0
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/wedata/v20210820/api.json +1558 -0
- tccli/services/wedata/v20210820/examples.json +54 -0
- tccli/services/wedata/wedata_client.py +334 -16
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/RECORD +47 -43
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1182.1.dist-info}/license_files/LICENSE +0 -0
@@ -712,6 +712,56 @@
|
|
712
712
|
"CreateReceiverDetailWithDataResponse": {
|
713
713
|
"document": "CreateReceiverDetailWithData返回参数结构体",
|
714
714
|
"members": [
|
715
|
+
{
|
716
|
+
"disabled": false,
|
717
|
+
"document": "收件人总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
718
|
+
"example": "1",
|
719
|
+
"member": "uint64",
|
720
|
+
"name": "TotalCount",
|
721
|
+
"output_required": false,
|
722
|
+
"type": "int",
|
723
|
+
"value_allowed_null": true
|
724
|
+
},
|
725
|
+
{
|
726
|
+
"disabled": false,
|
727
|
+
"document": "实际上传数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
728
|
+
"example": "1",
|
729
|
+
"member": "uint64",
|
730
|
+
"name": "ValidCount",
|
731
|
+
"output_required": false,
|
732
|
+
"type": "int",
|
733
|
+
"value_allowed_null": true
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"disabled": false,
|
737
|
+
"document": "数据过长数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
738
|
+
"example": "1",
|
739
|
+
"member": "uint64",
|
740
|
+
"name": "TooLongCount",
|
741
|
+
"output_required": false,
|
742
|
+
"type": "int",
|
743
|
+
"value_allowed_null": true
|
744
|
+
},
|
745
|
+
{
|
746
|
+
"disabled": false,
|
747
|
+
"document": "邮件地址为空数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
748
|
+
"example": "1",
|
749
|
+
"member": "uint64",
|
750
|
+
"name": "EmptyEmailCount",
|
751
|
+
"output_required": false,
|
752
|
+
"type": "int",
|
753
|
+
"value_allowed_null": true
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"disabled": false,
|
757
|
+
"document": "重复数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
758
|
+
"example": "1",
|
759
|
+
"member": "uint64",
|
760
|
+
"name": "RepeatCount",
|
761
|
+
"output_required": false,
|
762
|
+
"type": "int",
|
763
|
+
"value_allowed_null": true
|
764
|
+
},
|
715
765
|
{
|
716
766
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
717
767
|
"member": "string",
|
@@ -1704,6 +1754,33 @@
|
|
1704
1754
|
"name": "Email",
|
1705
1755
|
"required": false,
|
1706
1756
|
"type": "string"
|
1757
|
+
},
|
1758
|
+
{
|
1759
|
+
"disabled": false,
|
1760
|
+
"document": "搜索开始时间",
|
1761
|
+
"example": "2024-08-13",
|
1762
|
+
"member": "string",
|
1763
|
+
"name": "CreateTimeBegin",
|
1764
|
+
"required": false,
|
1765
|
+
"type": "string"
|
1766
|
+
},
|
1767
|
+
{
|
1768
|
+
"disabled": false,
|
1769
|
+
"document": "搜索结束时间",
|
1770
|
+
"example": "2024-08-14",
|
1771
|
+
"member": "string",
|
1772
|
+
"name": "CreateTimeEnd",
|
1773
|
+
"required": false,
|
1774
|
+
"type": "string"
|
1775
|
+
},
|
1776
|
+
{
|
1777
|
+
"disabled": false,
|
1778
|
+
"document": "1:有效,2:无效",
|
1779
|
+
"example": "1",
|
1780
|
+
"member": "uint64",
|
1781
|
+
"name": "Status",
|
1782
|
+
"required": false,
|
1783
|
+
"type": "int"
|
1707
1784
|
}
|
1708
1785
|
],
|
1709
1786
|
"type": "object"
|
@@ -1717,7 +1794,7 @@
|
|
1717
1794
|
"example": "123",
|
1718
1795
|
"member": "uint64",
|
1719
1796
|
"name": "TotalCount",
|
1720
|
-
"
|
1797
|
+
"output_required": true,
|
1721
1798
|
"type": "int",
|
1722
1799
|
"value_allowed_null": false
|
1723
1800
|
},
|
@@ -1727,10 +1804,30 @@
|
|
1727
1804
|
"example": "无",
|
1728
1805
|
"member": "ReceiverDetail",
|
1729
1806
|
"name": "Data",
|
1730
|
-
"
|
1807
|
+
"output_required": true,
|
1731
1808
|
"type": "list",
|
1732
1809
|
"value_allowed_null": false
|
1733
1810
|
},
|
1811
|
+
{
|
1812
|
+
"disabled": false,
|
1813
|
+
"document": "有效邮件地址数",
|
1814
|
+
"example": "1",
|
1815
|
+
"member": "uint64",
|
1816
|
+
"name": "ValidCount",
|
1817
|
+
"output_required": false,
|
1818
|
+
"type": "int",
|
1819
|
+
"value_allowed_null": false
|
1820
|
+
},
|
1821
|
+
{
|
1822
|
+
"disabled": false,
|
1823
|
+
"document": "无效邮件地址数",
|
1824
|
+
"example": "1",
|
1825
|
+
"member": "uint64",
|
1826
|
+
"name": "InvalidCount",
|
1827
|
+
"output_required": false,
|
1828
|
+
"type": "int",
|
1829
|
+
"value_allowed_null": false
|
1830
|
+
},
|
1734
1831
|
{
|
1735
1832
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1736
1833
|
"member": "string",
|
@@ -1906,7 +2003,7 @@
|
|
1906
2003
|
"example": "123",
|
1907
2004
|
"member": "uint64",
|
1908
2005
|
"name": "ReceiverId",
|
1909
|
-
"
|
2006
|
+
"output_required": true,
|
1910
2007
|
"type": "int",
|
1911
2008
|
"value_allowed_null": false
|
1912
2009
|
},
|
@@ -1916,7 +2013,7 @@
|
|
1916
2013
|
"example": "收件人列表",
|
1917
2014
|
"member": "string",
|
1918
2015
|
"name": "ReceiversName",
|
1919
|
-
"
|
2016
|
+
"output_required": true,
|
1920
2017
|
"type": "string",
|
1921
2018
|
"value_allowed_null": false
|
1922
2019
|
},
|
@@ -1926,7 +2023,7 @@
|
|
1926
2023
|
"example": "1",
|
1927
2024
|
"member": "uint64",
|
1928
2025
|
"name": "Count",
|
1929
|
-
"
|
2026
|
+
"output_required": true,
|
1930
2027
|
"type": "int",
|
1931
2028
|
"value_allowed_null": false
|
1932
2029
|
},
|
@@ -1936,7 +2033,7 @@
|
|
1936
2033
|
"example": "收件人列表描述",
|
1937
2034
|
"member": "string",
|
1938
2035
|
"name": "Desc",
|
1939
|
-
"
|
2036
|
+
"output_required": true,
|
1940
2037
|
"type": "string",
|
1941
2038
|
"value_allowed_null": true
|
1942
2039
|
},
|
@@ -1946,7 +2043,7 @@
|
|
1946
2043
|
"example": "1",
|
1947
2044
|
"member": "uint64",
|
1948
2045
|
"name": "ReceiversStatus",
|
1949
|
-
"
|
2046
|
+
"output_required": true,
|
1950
2047
|
"type": "int",
|
1951
2048
|
"value_allowed_null": true
|
1952
2049
|
},
|
@@ -1956,9 +2053,19 @@
|
|
1956
2053
|
"example": "2021-09-28 16:40:35",
|
1957
2054
|
"member": "string",
|
1958
2055
|
"name": "CreateTime",
|
1959
|
-
"
|
2056
|
+
"output_required": true,
|
1960
2057
|
"type": "string",
|
1961
2058
|
"value_allowed_null": false
|
2059
|
+
},
|
2060
|
+
{
|
2061
|
+
"disabled": false,
|
2062
|
+
"document": "无效收件人数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
2063
|
+
"example": "1",
|
2064
|
+
"member": "uint64",
|
2065
|
+
"name": "InvalidCount",
|
2066
|
+
"output_required": false,
|
2067
|
+
"type": "int",
|
2068
|
+
"value_allowed_null": true
|
1962
2069
|
}
|
1963
2070
|
],
|
1964
2071
|
"usage": "out"
|
@@ -1972,7 +2079,7 @@
|
|
1972
2079
|
"example": "123@abc.com",
|
1973
2080
|
"member": "string",
|
1974
2081
|
"name": "Email",
|
1975
|
-
"
|
2082
|
+
"output_required": true,
|
1976
2083
|
"type": "string",
|
1977
2084
|
"value_allowed_null": false
|
1978
2085
|
},
|
@@ -1982,7 +2089,7 @@
|
|
1982
2089
|
"example": "2021-09-09 12:13:14",
|
1983
2090
|
"member": "string",
|
1984
2091
|
"name": "CreateTime",
|
1985
|
-
"
|
2092
|
+
"output_required": true,
|
1986
2093
|
"type": "string",
|
1987
2094
|
"value_allowed_null": false
|
1988
2095
|
},
|
@@ -1992,9 +2099,39 @@
|
|
1992
2099
|
"example": "{\"name\":\"xxx\",\"age\":\"xx\"}",
|
1993
2100
|
"member": "string",
|
1994
2101
|
"name": "TemplateData",
|
1995
|
-
"
|
2102
|
+
"output_required": true,
|
1996
2103
|
"type": "string",
|
1997
2104
|
"value_allowed_null": false
|
2105
|
+
},
|
2106
|
+
{
|
2107
|
+
"disabled": false,
|
2108
|
+
"document": "无效原因\n注意:此字段可能返回 null,表示取不到有效值。",
|
2109
|
+
"example": "无效原因",
|
2110
|
+
"member": "string",
|
2111
|
+
"name": "Reason",
|
2112
|
+
"output_required": false,
|
2113
|
+
"type": "string",
|
2114
|
+
"value_allowed_null": true
|
2115
|
+
},
|
2116
|
+
{
|
2117
|
+
"disabled": false,
|
2118
|
+
"document": "1:有效,2:无效\n注意:此字段可能返回 null,表示取不到有效值。",
|
2119
|
+
"example": "1",
|
2120
|
+
"member": "uint64",
|
2121
|
+
"name": "Status",
|
2122
|
+
"output_required": false,
|
2123
|
+
"type": "int",
|
2124
|
+
"value_allowed_null": true
|
2125
|
+
},
|
2126
|
+
{
|
2127
|
+
"disabled": false,
|
2128
|
+
"document": "收件人地址id\n注意:此字段可能返回 null,表示取不到有效值。",
|
2129
|
+
"example": "1",
|
2130
|
+
"member": "uint64",
|
2131
|
+
"name": "EmailId",
|
2132
|
+
"output_required": false,
|
2133
|
+
"type": "int",
|
2134
|
+
"value_allowed_null": true
|
1998
2135
|
}
|
1999
2136
|
],
|
2000
2137
|
"usage": "out"
|
@@ -14352,6 +14352,16 @@
|
|
14352
14352
|
"output_required": true,
|
14353
14353
|
"type": "string",
|
14354
14354
|
"value_allowed_null": true
|
14355
|
+
},
|
14356
|
+
{
|
14357
|
+
"disabled": false,
|
14358
|
+
"document": "实例到期时间戳,毫秒级精度。\n注意:此字段可能返回 null,表示取不到有效值。",
|
14359
|
+
"example": "1725165113283",
|
14360
|
+
"member": "int64",
|
14361
|
+
"name": "ExpireTime",
|
14362
|
+
"output_required": true,
|
14363
|
+
"type": "int",
|
14364
|
+
"value_allowed_null": true
|
14355
14365
|
}
|
14356
14366
|
],
|
14357
14367
|
"usage": "out"
|
tccli/services/tms/tms_client.py
CHANGED
@@ -175,58 +175,6 @@ def doTextModeration(args, parsed_globals):
|
|
175
175
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
176
176
|
|
177
177
|
|
178
|
-
def doAnswerQuestion(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.TmsClient(cred, g_param[OptionsDefine.Region], profile)
|
205
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
206
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
207
|
-
model = models.AnswerQuestionRequest()
|
208
|
-
model.from_json_string(json.dumps(args))
|
209
|
-
start_time = time.time()
|
210
|
-
while True:
|
211
|
-
rsp = client.AnswerQuestion(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
|
-
|
230
178
|
def doDescribeTextLib(args, parsed_globals):
|
231
179
|
g_param = parse_global_arg(parsed_globals)
|
232
180
|
|
@@ -347,7 +295,6 @@ ACTION_MAP = {
|
|
347
295
|
"DescribeTextStat": doDescribeTextStat,
|
348
296
|
"ModerateText": doModerateText,
|
349
297
|
"TextModeration": doTextModeration,
|
350
|
-
"AnswerQuestion": doAnswerQuestion,
|
351
298
|
"DescribeTextLib": doDescribeTextLib,
|
352
299
|
"AccountTipoffAccess": doAccountTipoffAccess,
|
353
300
|
|
@@ -1,12 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
-
"AnswerQuestion": {
|
4
|
-
"document": "\"AIGC代答\"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。",
|
5
|
-
"input": "AnswerQuestionRequest",
|
6
|
-
"name": "AIGC代答",
|
7
|
-
"output": "AnswerQuestionResponse",
|
8
|
-
"status": "online"
|
9
|
-
},
|
10
3
|
"ModerateText": {
|
11
4
|
"document": "天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。",
|
12
5
|
"input": "ModerateTextRequest",
|
@@ -29,43 +22,6 @@
|
|
29
22
|
"serviceShortName": "tms"
|
30
23
|
},
|
31
24
|
"objects": {
|
32
|
-
"AnswerQuestionRequest": {
|
33
|
-
"document": "AnswerQuestion请求参数结构体",
|
34
|
-
"members": [
|
35
|
-
{
|
36
|
-
"disabled": false,
|
37
|
-
"document": "用户问题",
|
38
|
-
"example": "无",
|
39
|
-
"member": "string",
|
40
|
-
"name": "Question",
|
41
|
-
"required": true,
|
42
|
-
"type": "string"
|
43
|
-
}
|
44
|
-
],
|
45
|
-
"type": "object"
|
46
|
-
},
|
47
|
-
"AnswerQuestionResponse": {
|
48
|
-
"document": "AnswerQuestion返回参数结构体",
|
49
|
-
"members": [
|
50
|
-
{
|
51
|
-
"disabled": false,
|
52
|
-
"document": "匹配到的答案",
|
53
|
-
"example": "无",
|
54
|
-
"member": "string",
|
55
|
-
"name": "Answer",
|
56
|
-
"output_required": false,
|
57
|
-
"type": "string",
|
58
|
-
"value_allowed_null": false
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
62
|
-
"member": "string",
|
63
|
-
"name": "RequestId",
|
64
|
-
"type": "string"
|
65
|
-
}
|
66
|
-
],
|
67
|
-
"type": "object"
|
68
|
-
},
|
69
25
|
"DetailResults": {
|
70
26
|
"document": "文本审核返回的详细结果",
|
71
27
|
"members": [
|
@@ -781,7 +737,7 @@
|
|
781
737
|
{
|
782
738
|
"disabled": false,
|
783
739
|
"document": "该字段用于返回命中的关键词\n注意:此字段可能返回 null,表示取不到有效值。",
|
784
|
-
"example": "
|
740
|
+
"example": "111",
|
785
741
|
"member": "string",
|
786
742
|
"name": "Keyword",
|
787
743
|
"output_required": false,
|
@@ -791,7 +747,7 @@
|
|
791
747
|
{
|
792
748
|
"disabled": false,
|
793
749
|
"document": "该字段用于返回子标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
794
|
-
"example": "
|
750
|
+
"example": "111",
|
795
751
|
"member": "string",
|
796
752
|
"name": "SubLabel",
|
797
753
|
"output_required": false,
|
@@ -1,13 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
-
"AnswerQuestion": [
|
4
|
-
{
|
5
|
-
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: tms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AnswerQuestion\n<公共请求参数>\n\n{\n \"Question\": \"社会主义\"\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"Answer\": \"社会主义是包括社会主义思想、社会主义运动和社会主义制度的总称。它主张通过推翻资产阶级统治、建立公有制经济和实现社会平等来改变资本主义生产方式带来的阶级对立。\",\n \"RequestId\": \"a4963536-8eba-46a3-a5e3-127117ec07f9\"\n }\n}",
|
8
|
-
"title": "AIGC代答示例"
|
9
|
-
}
|
10
|
-
],
|
11
3
|
"ModerateText": [
|
12
4
|
{
|
13
5
|
"document": "用于客户自有标签体系的内容审核,审核结果会以客户定义的标签体系输出结果",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
31
|
"SpeechTranslate": {
|
32
|
-
"document": "本接口提供上传音频,将音频进行语音识别并翻译成文本的服务,目前开放中英互译的语音翻译服务。\n待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>\n如果采用流式传输的方式,要求每个分片时长200ms~500ms;如果采用非流式的传输方式,要求音频时长不超过8s。注意最后一个分片的IsEnd参数设置为1。<br />\n提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源部分。",
|
32
|
+
"document": "本接口提供上传音频,将音频进行语音识别并翻译成文本的服务,目前开放中英互译的语音翻译服务。\n待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,其中支持流式传输的只有pcm格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>\n如果采用流式传输的方式,要求每个分片时长200ms~500ms;如果采用非流式的传输方式,要求音频时长不超过8s。注意最后一个分片的IsEnd参数设置为1。<br />\n提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源部分。",
|
33
33
|
"input": "SpeechTranslateRequest",
|
34
34
|
"name": "语音翻译",
|
35
35
|
"output": "SpeechTranslateResponse",
|
@@ -98,7 +98,7 @@
|
|
98
98
|
},
|
99
99
|
{
|
100
100
|
"disabled": false,
|
101
|
-
"document": "需要翻译文件url
|
101
|
+
"document": "需要翻译文件url,URL长度不能超过1000字符。文件限制如下:docx/xIsx/html/markdown文件不超过800万字符,doc/pdf/pptx文件不超过300页,txt/po文件不超过10MB,pdf/docx/pptx/xlsx不超过40MB",
|
102
102
|
"example": "http://test.com",
|
103
103
|
"member": "string",
|
104
104
|
"name": "Url",
|
@@ -116,7 +116,7 @@
|
|
116
116
|
},
|
117
117
|
{
|
118
118
|
"disabled": false,
|
119
|
-
"document": "回调url
|
119
|
+
"document": "回调url,URL长度不能超过256字符。文件大于10MB或字符较多时,建议采用回调方式;回调时,所有内容会放入 Body 中,具体请参见[文件翻译回调说明](https://cloud.tencent.com/document/product/551/91138)。",
|
120
120
|
"example": "http://test.com",
|
121
121
|
"member": "string",
|
122
122
|
"name": "CallbackUrl",
|