tccli 3.0.1166.1__py2.py3-none-any.whl → 3.0.1168.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/autoscaling/v20180419/api.json +42 -10
- tccli/services/cvm/v20170312/api.json +13 -13
- tccli/services/cvm/v20170312/examples.json +4 -10
- tccli/services/dlc/v20210125/api.json +18 -0
- tccli/services/es/v20180416/api.json +28 -0
- tccli/services/es/v20180416/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +3 -3
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/hunyuan/hunyuan_client.py +114 -8
- tccli/services/hunyuan/v20230901/api.json +70 -2
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +30 -0
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +26 -16
- tccli/services/pts/v20210728/api.json +4 -4
- tccli/services/pts/v20210728/examples.json +9 -9
- tccli/services/redis/v20180412/api.json +18 -9
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/ssl/v20191205/api.json +48 -28
- tccli/services/ssl/v20191205/examples.json +3 -3
- tccli/services/tcb/v20180608/api.json +17 -7
- tccli/services/tcb/v20180608/examples.json +7 -1
- tccli/services/tcbr/v20220217/api.json +38 -5
- tccli/services/tds/v20220801/api.json +69 -0
- tccli/services/tds/v20220801/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +56 -9
- tccli/services/trtc/v20190722/examples.json +1 -1
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +10 -0
- tccli/services/vrs/v20200824/api.json +96 -9
- tccli/services/wedata/v20210820/api.json +701 -30
- tccli/services/wedata/v20210820/examples.json +10 -2
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1166.1.dist-info → tccli-3.0.1168.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1166.1.dist-info → tccli-3.0.1168.1.dist-info}/RECORD +40 -40
- {tccli-3.0.1166.1.dist-info → tccli-3.0.1168.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1166.1.dist-info → tccli-3.0.1168.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1166.1.dist-info → tccli-3.0.1168.1.dist-info}/license_files/LICENSE +0 -0
@@ -121,6 +121,58 @@ def doQueryHunyuanImageJob(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
+
def doGetTokenCount(args, parsed_globals):
|
125
|
+
g_param = parse_global_arg(parsed_globals)
|
126
|
+
|
127
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
128
|
+
cred = credential.CVMRoleCredential()
|
129
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
130
|
+
cred = credential.STSAssumeRoleCredential(
|
131
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
132
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
133
|
+
)
|
134
|
+
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):
|
135
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
136
|
+
else:
|
137
|
+
cred = credential.Credential(
|
138
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
139
|
+
)
|
140
|
+
http_profile = HttpProfile(
|
141
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
142
|
+
reqMethod="POST",
|
143
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
144
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
145
|
+
)
|
146
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
147
|
+
if g_param[OptionsDefine.Language]:
|
148
|
+
profile.language = g_param[OptionsDefine.Language]
|
149
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
150
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
151
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
152
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
+
model = models.GetTokenCountRequest()
|
154
|
+
model.from_json_string(json.dumps(args))
|
155
|
+
start_time = time.time()
|
156
|
+
while True:
|
157
|
+
rsp = client.GetTokenCount(model)
|
158
|
+
result = rsp.to_json_string()
|
159
|
+
try:
|
160
|
+
json_obj = json.loads(result)
|
161
|
+
except TypeError as e:
|
162
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
163
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
164
|
+
break
|
165
|
+
cur_time = time.time()
|
166
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
167
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
168
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
169
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
170
|
+
else:
|
171
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
172
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
173
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
|
+
|
175
|
+
|
124
176
|
def doChatCompletions(args, parsed_globals):
|
125
177
|
g_param = parse_global_arg(parsed_globals)
|
126
178
|
|
@@ -173,7 +225,7 @@ def doChatCompletions(args, parsed_globals):
|
|
173
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
226
|
|
175
227
|
|
176
|
-
def
|
228
|
+
def doGetEmbedding(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
179
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -202,11 +254,63 @@ def doGetTokenCount(args, parsed_globals):
|
|
202
254
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
203
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
204
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
-
model = models.
|
257
|
+
model = models.GetEmbeddingRequest()
|
206
258
|
model.from_json_string(json.dumps(args))
|
207
259
|
start_time = time.time()
|
208
260
|
while True:
|
209
|
-
rsp = client.
|
261
|
+
rsp = client.GetEmbedding(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
280
|
+
def doSetPayMode(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
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):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.SetPayModeRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.SetPayMode(model)
|
210
314
|
result = rsp.to_json_string()
|
211
315
|
try:
|
212
316
|
json_obj = json.loads(result)
|
@@ -277,7 +381,7 @@ def doTextToImageLite(args, parsed_globals):
|
|
277
381
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
382
|
|
279
383
|
|
280
|
-
def
|
384
|
+
def doActivateService(args, parsed_globals):
|
281
385
|
g_param = parse_global_arg(parsed_globals)
|
282
386
|
|
283
387
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -306,11 +410,11 @@ def doGetEmbedding(args, parsed_globals):
|
|
306
410
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
307
411
|
client._sdkVersion += ("_CLI_" + __version__)
|
308
412
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
-
model = models.
|
413
|
+
model = models.ActivateServiceRequest()
|
310
414
|
model.from_json_string(json.dumps(args))
|
311
415
|
start_time = time.time()
|
312
416
|
while True:
|
313
|
-
rsp = client.
|
417
|
+
rsp = client.ActivateService(model)
|
314
418
|
result = rsp.to_json_string()
|
315
419
|
try:
|
316
420
|
json_obj = json.loads(result)
|
@@ -342,10 +446,12 @@ MODELS_MAP = {
|
|
342
446
|
ACTION_MAP = {
|
343
447
|
"SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
|
344
448
|
"QueryHunyuanImageJob": doQueryHunyuanImageJob,
|
345
|
-
"ChatCompletions": doChatCompletions,
|
346
449
|
"GetTokenCount": doGetTokenCount,
|
347
|
-
"
|
450
|
+
"ChatCompletions": doChatCompletions,
|
348
451
|
"GetEmbedding": doGetEmbedding,
|
452
|
+
"SetPayMode": doSetPayMode,
|
453
|
+
"TextToImageLite": doTextToImageLite,
|
454
|
+
"ActivateService": doActivateService,
|
349
455
|
|
350
456
|
}
|
351
457
|
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActivateService": {
|
4
|
+
"document": "开通服务",
|
5
|
+
"input": "ActivateServiceRequest",
|
6
|
+
"name": "开通服务",
|
7
|
+
"output": "ActivateServiceResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"ChatCompletions": {
|
4
11
|
"document": "腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。\n\n 1. 本接口暂不支持返回图片内容。\n 2. 默认每种模型单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。\n 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。\n 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。",
|
5
12
|
"input": "ChatCompletionsRequest",
|
@@ -28,6 +35,13 @@
|
|
28
35
|
"output": "QueryHunyuanImageJobResponse",
|
29
36
|
"status": "online"
|
30
37
|
},
|
38
|
+
"SetPayMode": {
|
39
|
+
"document": "设置付费模式",
|
40
|
+
"input": "SetPayModeRequest",
|
41
|
+
"name": "设置付费模式",
|
42
|
+
"output": "SetPayModeResponse",
|
43
|
+
"status": "online"
|
44
|
+
},
|
31
45
|
"SubmitHunyuanImageJob": {
|
32
46
|
"document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
33
47
|
"input": "SubmitHunyuanImageJobRequest",
|
@@ -50,6 +64,33 @@
|
|
50
64
|
"serviceShortName": "hunyuan"
|
51
65
|
},
|
52
66
|
"objects": {
|
67
|
+
"ActivateServiceRequest": {
|
68
|
+
"document": "ActivateService请求参数结构体",
|
69
|
+
"members": [
|
70
|
+
{
|
71
|
+
"disabled": false,
|
72
|
+
"document": "开通之后,是否关闭后付费;默认为0,不关闭;1为关闭",
|
73
|
+
"example": "0",
|
74
|
+
"member": "uint64",
|
75
|
+
"name": "PayMode",
|
76
|
+
"required": false,
|
77
|
+
"type": "int"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"type": "object"
|
81
|
+
},
|
82
|
+
"ActivateServiceResponse": {
|
83
|
+
"document": "ActivateService返回参数结构体",
|
84
|
+
"members": [
|
85
|
+
{
|
86
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
87
|
+
"member": "string",
|
88
|
+
"name": "RequestId",
|
89
|
+
"type": "string"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"type": "object"
|
93
|
+
},
|
53
94
|
"ChatCompletionsRequest": {
|
54
95
|
"document": "ChatCompletions请求参数结构体",
|
55
96
|
"members": [
|
@@ -91,7 +132,7 @@
|
|
91
132
|
},
|
92
133
|
{
|
93
134
|
"disabled": false,
|
94
|
-
"document": "说明:\n1.
|
135
|
+
"document": "说明:\n1. 影响输出文本的多样性,取值区间为 [0.0, 1.0]。取值越大,生成文本的多样性越强。\n2. 模型已有默认参数,不传值时使用各模型推荐值,不推荐用户修改。",
|
95
136
|
"example": "无",
|
96
137
|
"member": "float",
|
97
138
|
"name": "TopP",
|
@@ -100,7 +141,7 @@
|
|
100
141
|
},
|
101
142
|
{
|
102
143
|
"disabled": false,
|
103
|
-
"document": "说明:\n1.
|
144
|
+
"document": "说明:\n1. 影响模型输出多样性,取值区间为 [0.0, 2.0]。较高的数值会使输出更加多样化和不可预测,而较低的数值会使其更加集中和确定。\n2. 模型已有默认参数,不传值时使用各模型推荐值,不推荐用户修改。",
|
104
145
|
"example": "无",
|
105
146
|
"member": "float",
|
106
147
|
"name": "Temperature",
|
@@ -865,6 +906,33 @@
|
|
865
906
|
],
|
866
907
|
"usage": "both"
|
867
908
|
},
|
909
|
+
"SetPayModeRequest": {
|
910
|
+
"document": "SetPayMode请求参数结构体",
|
911
|
+
"members": [
|
912
|
+
{
|
913
|
+
"disabled": false,
|
914
|
+
"document": "设置后付费状态,0:后付费;1:预付费",
|
915
|
+
"example": "无",
|
916
|
+
"member": "int64",
|
917
|
+
"name": "PayMode",
|
918
|
+
"required": true,
|
919
|
+
"type": "int"
|
920
|
+
}
|
921
|
+
],
|
922
|
+
"type": "object"
|
923
|
+
},
|
924
|
+
"SetPayModeResponse": {
|
925
|
+
"document": "SetPayMode返回参数结构体",
|
926
|
+
"members": [
|
927
|
+
{
|
928
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
929
|
+
"member": "string",
|
930
|
+
"name": "RequestId",
|
931
|
+
"type": "string"
|
932
|
+
}
|
933
|
+
],
|
934
|
+
"type": "object"
|
935
|
+
},
|
868
936
|
"SubmitHunyuanImageJobRequest": {
|
869
937
|
"document": "SubmitHunyuanImageJob请求参数结构体",
|
870
938
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActivateService": [
|
4
|
+
{
|
5
|
+
"document": "示例\t\n",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateService\n<公共请求参数>\n\n{\n \"PayMode\": 1\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
8
|
+
"title": "示例\t"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"ChatCompletions": [
|
4
12
|
{
|
5
13
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明 system prompt 的使用方法。",
|
@@ -80,6 +88,14 @@
|
|
80
88
|
"title": "成功查询"
|
81
89
|
}
|
82
90
|
],
|
91
|
+
"SetPayMode": [
|
92
|
+
{
|
93
|
+
"document": "",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetPayMode\n<公共请求参数>\n\n{}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
96
|
+
"title": "示例\t"
|
97
|
+
}
|
98
|
+
],
|
83
99
|
"SubmitHunyuanImageJob": [
|
84
100
|
{
|
85
101
|
"document": "调用成功",
|
@@ -1055,6 +1055,26 @@
|
|
1055
1055
|
"type": "list",
|
1056
1056
|
"value_allowed_null": true
|
1057
1057
|
},
|
1058
|
+
{
|
1059
|
+
"disabled": false,
|
1060
|
+
"document": "设备激活失败返回数据\n注意:此字段可能返回 null,表示取不到有效值。",
|
1061
|
+
"example": "无",
|
1062
|
+
"member": "DeviceActiveResult",
|
1063
|
+
"name": "FailureList",
|
1064
|
+
"output_required": false,
|
1065
|
+
"type": "list",
|
1066
|
+
"value_allowed_null": true
|
1067
|
+
},
|
1068
|
+
{
|
1069
|
+
"disabled": false,
|
1070
|
+
"document": "设备激活成功返回数据\n注意:此字段可能返回 null,表示取不到有效值。",
|
1071
|
+
"example": "无",
|
1072
|
+
"member": "DeviceActiveResult",
|
1073
|
+
"name": "SuccessList",
|
1074
|
+
"output_required": false,
|
1075
|
+
"type": "list",
|
1076
|
+
"value_allowed_null": true
|
1077
|
+
},
|
1058
1078
|
{
|
1059
1079
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1060
1080
|
"member": "string",
|
@@ -7191,6 +7211,16 @@
|
|
7191
7211
|
"output_required": false,
|
7192
7212
|
"type": "int",
|
7193
7213
|
"value_allowed_null": true
|
7214
|
+
},
|
7215
|
+
{
|
7216
|
+
"disabled": false,
|
7217
|
+
"document": "过期时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
7218
|
+
"example": "无",
|
7219
|
+
"member": "int64",
|
7220
|
+
"name": "ExpireTime",
|
7221
|
+
"output_required": false,
|
7222
|
+
"type": "int",
|
7223
|
+
"value_allowed_null": true
|
7194
7224
|
}
|
7195
7225
|
],
|
7196
7226
|
"usage": "out"
|
@@ -4,7 +4,7 @@
|
|
4
4
|
{
|
5
5
|
"document": "",
|
6
6
|
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateTWeCallLicense\n<公共请求参数>\n\n{\n \"PkgType\": 1,\n \"MiniProgramAppId\": \"abc\",\n \"DeviceList\": [\n {\n \"ModelId\": \"1qaz\",\n \"Sn\": \"p/d\"\n }\n ]\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\",\n \"FailureList\": [],\n \"SuccessList\": [\n {\n \"ModelId\": \"modelId\",\n \"Sn\": \"productId_deviceName\",\n \"ExpireTime\": 356123\n }\n ]\n }\n}",
|
8
8
|
"title": "成功激活示例"
|
9
9
|
}
|
10
10
|
],
|
@@ -18224,7 +18224,7 @@
|
|
18224
18224
|
"example": "无",
|
18225
18225
|
"member": "string",
|
18226
18226
|
"name": "Title",
|
18227
|
-
"
|
18227
|
+
"output_required": true,
|
18228
18228
|
"type": "string",
|
18229
18229
|
"value_allowed_null": false
|
18230
18230
|
},
|
@@ -18234,7 +18234,7 @@
|
|
18234
18234
|
"example": "无",
|
18235
18235
|
"member": "string",
|
18236
18236
|
"name": "Number",
|
18237
|
-
"
|
18237
|
+
"output_required": true,
|
18238
18238
|
"type": "string",
|
18239
18239
|
"value_allowed_null": false
|
18240
18240
|
},
|
@@ -18244,7 +18244,7 @@
|
|
18244
18244
|
"example": "无",
|
18245
18245
|
"member": "string",
|
18246
18246
|
"name": "Date",
|
18247
|
-
"
|
18247
|
+
"output_required": true,
|
18248
18248
|
"type": "string",
|
18249
18249
|
"value_allowed_null": false
|
18250
18250
|
},
|
@@ -18254,7 +18254,7 @@
|
|
18254
18254
|
"example": "无",
|
18255
18255
|
"member": "string",
|
18256
18256
|
"name": "PretaxAmount",
|
18257
|
-
"
|
18257
|
+
"output_required": true,
|
18258
18258
|
"type": "string",
|
18259
18259
|
"value_allowed_null": false
|
18260
18260
|
},
|
@@ -18264,7 +18264,7 @@
|
|
18264
18264
|
"example": "无",
|
18265
18265
|
"member": "string",
|
18266
18266
|
"name": "Tax",
|
18267
|
-
"
|
18267
|
+
"output_required": true,
|
18268
18268
|
"type": "string",
|
18269
18269
|
"value_allowed_null": false
|
18270
18270
|
},
|
@@ -18274,7 +18274,7 @@
|
|
18274
18274
|
"example": "无",
|
18275
18275
|
"member": "string",
|
18276
18276
|
"name": "Total",
|
18277
|
-
"
|
18277
|
+
"output_required": true,
|
18278
18278
|
"type": "string",
|
18279
18279
|
"value_allowed_null": false
|
18280
18280
|
},
|
@@ -18284,7 +18284,7 @@
|
|
18284
18284
|
"example": "无",
|
18285
18285
|
"member": "string",
|
18286
18286
|
"name": "TotalCn",
|
18287
|
-
"
|
18287
|
+
"output_required": true,
|
18288
18288
|
"type": "string",
|
18289
18289
|
"value_allowed_null": false
|
18290
18290
|
},
|
@@ -18294,7 +18294,7 @@
|
|
18294
18294
|
"example": "无",
|
18295
18295
|
"member": "string",
|
18296
18296
|
"name": "Seller",
|
18297
|
-
"
|
18297
|
+
"output_required": true,
|
18298
18298
|
"type": "string",
|
18299
18299
|
"value_allowed_null": false
|
18300
18300
|
},
|
@@ -18304,7 +18304,7 @@
|
|
18304
18304
|
"example": "无",
|
18305
18305
|
"member": "string",
|
18306
18306
|
"name": "SellerTaxID",
|
18307
|
-
"
|
18307
|
+
"output_required": true,
|
18308
18308
|
"type": "string",
|
18309
18309
|
"value_allowed_null": false
|
18310
18310
|
},
|
@@ -18314,7 +18314,7 @@
|
|
18314
18314
|
"example": "无",
|
18315
18315
|
"member": "string",
|
18316
18316
|
"name": "Buyer",
|
18317
|
-
"
|
18317
|
+
"output_required": true,
|
18318
18318
|
"type": "string",
|
18319
18319
|
"value_allowed_null": false
|
18320
18320
|
},
|
@@ -18324,7 +18324,7 @@
|
|
18324
18324
|
"example": "无",
|
18325
18325
|
"member": "string",
|
18326
18326
|
"name": "BuyerTaxID",
|
18327
|
-
"
|
18327
|
+
"output_required": true,
|
18328
18328
|
"type": "string",
|
18329
18329
|
"value_allowed_null": false
|
18330
18330
|
},
|
@@ -18334,7 +18334,7 @@
|
|
18334
18334
|
"example": "无",
|
18335
18335
|
"member": "string",
|
18336
18336
|
"name": "Issuer",
|
18337
|
-
"
|
18337
|
+
"output_required": true,
|
18338
18338
|
"type": "string",
|
18339
18339
|
"value_allowed_null": false
|
18340
18340
|
},
|
@@ -18344,7 +18344,7 @@
|
|
18344
18344
|
"example": "无",
|
18345
18345
|
"member": "string",
|
18346
18346
|
"name": "Remark",
|
18347
|
-
"
|
18347
|
+
"output_required": true,
|
18348
18348
|
"type": "string",
|
18349
18349
|
"value_allowed_null": false
|
18350
18350
|
},
|
@@ -18354,7 +18354,7 @@
|
|
18354
18354
|
"example": "无",
|
18355
18355
|
"member": "string",
|
18356
18356
|
"name": "SubTotal",
|
18357
|
-
"
|
18357
|
+
"output_required": true,
|
18358
18358
|
"type": "string",
|
18359
18359
|
"value_allowed_null": false
|
18360
18360
|
},
|
@@ -18364,7 +18364,7 @@
|
|
18364
18364
|
"example": "无",
|
18365
18365
|
"member": "string",
|
18366
18366
|
"name": "SubTax",
|
18367
|
-
"
|
18367
|
+
"output_required": true,
|
18368
18368
|
"type": "string",
|
18369
18369
|
"value_allowed_null": false
|
18370
18370
|
},
|
@@ -18374,9 +18374,19 @@
|
|
18374
18374
|
"example": "无",
|
18375
18375
|
"member": "VatElectronicItemInfo",
|
18376
18376
|
"name": "VatElectronicItems",
|
18377
|
-
"
|
18377
|
+
"output_required": true,
|
18378
18378
|
"type": "list",
|
18379
18379
|
"value_allowed_null": false
|
18380
|
+
},
|
18381
|
+
{
|
18382
|
+
"disabled": false,
|
18383
|
+
"document": "业务类型标志",
|
18384
|
+
"example": "无",
|
18385
|
+
"member": "string",
|
18386
|
+
"name": "ServiceTypeLabel",
|
18387
|
+
"output_required": true,
|
18388
|
+
"type": "string",
|
18389
|
+
"value_allowed_null": false
|
18380
18390
|
}
|
18381
18391
|
],
|
18382
18392
|
"usage": "out"
|
@@ -6803,7 +6803,7 @@
|
|
6803
6803
|
"example": "job-xx",
|
6804
6804
|
"member": "string",
|
6805
6805
|
"name": "JobId",
|
6806
|
-
"
|
6806
|
+
"output_required": true,
|
6807
6807
|
"type": "string",
|
6808
6808
|
"value_allowed_null": false
|
6809
6809
|
},
|
@@ -7268,8 +7268,8 @@
|
|
7268
7268
|
},
|
7269
7269
|
{
|
7270
7270
|
"disabled": false,
|
7271
|
-
"document": "
|
7272
|
-
"example": "
|
7271
|
+
"document": "场景名;调用该接口时,请将 Scenario 中不需要修改的字段保持原样也作为接口的入参,否则场景可能会不可用。",
|
7272
|
+
"example": "scenario name",
|
7273
7273
|
"member": "string",
|
7274
7274
|
"name": "Name",
|
7275
7275
|
"required": false,
|
@@ -7287,7 +7287,7 @@
|
|
7287
7287
|
{
|
7288
7288
|
"disabled": false,
|
7289
7289
|
"document": "压测场景的模式类型。取值范围:pts-http 代表简单模式,pts-js 代表脚本模式,pts-jmeter 代表 JMeter 模式。",
|
7290
|
-
"example": "
|
7290
|
+
"example": "pts-http",
|
7291
7291
|
"member": "string",
|
7292
7292
|
"name": "Type",
|
7293
7293
|
"required": false,
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"AbortCronJobs": [
|
4
4
|
{
|
5
5
|
"document": "停止定时任务",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AbortCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"xx\",\n \"CronJobIds\": [\n \"xx\"\n ]\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AbortCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"CronJobIds\": [\n \"cron-xx\"\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\"\n }\n}",
|
8
8
|
"title": "停止定时任务"
|
9
9
|
}
|
10
10
|
],
|
@@ -91,8 +91,8 @@
|
|
91
91
|
"DeleteCronJobs": [
|
92
92
|
{
|
93
93
|
"document": "删除定时任务",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"xx\",\n \"CronJobIds\": [\n \"xx\"\n ]\n}",
|
95
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"CronJobIds\": [\n \"cron-xx\"\n ]\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\"\n }\n}",
|
96
96
|
"title": "删除定时任务"
|
97
97
|
}
|
98
98
|
],
|
@@ -323,16 +323,16 @@
|
|
323
323
|
"RestartCronJobs": [
|
324
324
|
{
|
325
325
|
"document": "重启状态为已中止的定时任务",
|
326
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestartCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"xx\",\n \"CronJobIds\": [\n \"xx\"\n ]\n}",
|
327
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
326
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestartCronJobs\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"CronJobIds\": [\n \"cron-xx\"\n ]\n}",
|
327
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\"\n }\n}",
|
328
328
|
"title": "重启定时任务"
|
329
329
|
}
|
330
330
|
],
|
331
331
|
"StartJob": [
|
332
332
|
{
|
333
|
-
"document": "",
|
334
|
-
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartJob\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"JobOwner\": \"
|
335
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\",\n \"JobId\": \"job-xx\"\n }\n}",
|
333
|
+
"document": "创建并启动任务",
|
334
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartJob\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"JobOwner\": \"xiaohong\",\n \"ScenarioId\": \"scenario-xx\"\n}",
|
335
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"req-xx\",\n \"JobId\": \"job-xx\"\n }\n}",
|
336
336
|
"title": "创建并启动任务"
|
337
337
|
}
|
338
338
|
],
|