@antchain/antdigital-benchtwocreate 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +740 -0
- package/dist/client.js +918 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +1354 -0
package/src/client.ts
ADDED
|
@@ -0,0 +1,1354 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import AntchainUtil from '@antchain/alipay-util';
|
|
3
|
+
import Util, * as $Util from '@alicloud/tea-util';
|
|
4
|
+
import RPCUtil from '@alicloud/rpc-util';
|
|
5
|
+
import * as $tea from '@alicloud/tea-typescript';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* Model for initing client
|
|
10
|
+
*/
|
|
11
|
+
export class Config extends $tea.Model {
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* accesskey id
|
|
15
|
+
*/
|
|
16
|
+
accessKeyId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* accesskey secret
|
|
20
|
+
*/
|
|
21
|
+
accessKeySecret?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* security token
|
|
25
|
+
*/
|
|
26
|
+
securityToken?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* http protocol
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* http
|
|
33
|
+
*/
|
|
34
|
+
protocol?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* read timeout
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 10
|
|
41
|
+
*/
|
|
42
|
+
readTimeout?: number;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* connect timeout
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* 10
|
|
49
|
+
*/
|
|
50
|
+
connectTimeout?: number;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* http proxy
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* http://localhost
|
|
57
|
+
*/
|
|
58
|
+
httpProxy?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* https proxy
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* https://localhost
|
|
65
|
+
*/
|
|
66
|
+
httpsProxy?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* endpoint
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* cs.aliyuncs.com
|
|
73
|
+
*/
|
|
74
|
+
endpoint?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* proxy white list
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* http://localhost
|
|
81
|
+
*/
|
|
82
|
+
noProxy?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* max idle conns
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* 3
|
|
89
|
+
*/
|
|
90
|
+
maxIdleConns?: number;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* user agent
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* Alibabacloud/1
|
|
97
|
+
*/
|
|
98
|
+
userAgent?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* socks5 proxy
|
|
102
|
+
*/
|
|
103
|
+
socks5Proxy?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @remarks
|
|
106
|
+
* socks5 network
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* TCP
|
|
110
|
+
*/
|
|
111
|
+
socks5NetWork?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @remarks
|
|
114
|
+
* 长链接最大空闲时长
|
|
115
|
+
*/
|
|
116
|
+
maxIdleTimeMillis?: number;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* 长链接最大连接时长
|
|
120
|
+
*/
|
|
121
|
+
keepAliveDurationMillis?: number;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* 最大连接数(长链接最大总数)
|
|
125
|
+
*/
|
|
126
|
+
maxRequests?: number;
|
|
127
|
+
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* 每个目标主机的最大连接数(分主机域名的长链接最大总数
|
|
130
|
+
*/
|
|
131
|
+
maxRequestsPerHost?: number;
|
|
132
|
+
static names(): { [key: string]: string } {
|
|
133
|
+
return {
|
|
134
|
+
accessKeyId: 'accessKeyId',
|
|
135
|
+
accessKeySecret: 'accessKeySecret',
|
|
136
|
+
securityToken: 'securityToken',
|
|
137
|
+
protocol: 'protocol',
|
|
138
|
+
readTimeout: 'readTimeout',
|
|
139
|
+
connectTimeout: 'connectTimeout',
|
|
140
|
+
httpProxy: 'httpProxy',
|
|
141
|
+
httpsProxy: 'httpsProxy',
|
|
142
|
+
endpoint: 'endpoint',
|
|
143
|
+
noProxy: 'noProxy',
|
|
144
|
+
maxIdleConns: 'maxIdleConns',
|
|
145
|
+
userAgent: 'userAgent',
|
|
146
|
+
socks5Proxy: 'socks5Proxy',
|
|
147
|
+
socks5NetWork: 'socks5NetWork',
|
|
148
|
+
maxIdleTimeMillis: 'maxIdleTimeMillis',
|
|
149
|
+
keepAliveDurationMillis: 'keepAliveDurationMillis',
|
|
150
|
+
maxRequests: 'maxRequests',
|
|
151
|
+
maxRequestsPerHost: 'maxRequestsPerHost',
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
static types(): { [key: string]: any } {
|
|
156
|
+
return {
|
|
157
|
+
accessKeyId: 'string',
|
|
158
|
+
accessKeySecret: 'string',
|
|
159
|
+
securityToken: 'string',
|
|
160
|
+
protocol: 'string',
|
|
161
|
+
readTimeout: 'number',
|
|
162
|
+
connectTimeout: 'number',
|
|
163
|
+
httpProxy: 'string',
|
|
164
|
+
httpsProxy: 'string',
|
|
165
|
+
endpoint: 'string',
|
|
166
|
+
noProxy: 'string',
|
|
167
|
+
maxIdleConns: 'number',
|
|
168
|
+
userAgent: 'string',
|
|
169
|
+
socks5Proxy: 'string',
|
|
170
|
+
socks5NetWork: 'string',
|
|
171
|
+
maxIdleTimeMillis: 'number',
|
|
172
|
+
keepAliveDurationMillis: 'number',
|
|
173
|
+
maxRequests: 'number',
|
|
174
|
+
maxRequestsPerHost: 'number',
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
constructor(map?: { [key: string]: any }) {
|
|
179
|
+
super(map);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Demo类1
|
|
184
|
+
export class DemoClass extends $tea.Model {
|
|
185
|
+
// 字符串测试
|
|
186
|
+
/**
|
|
187
|
+
* @example
|
|
188
|
+
* some string
|
|
189
|
+
*/
|
|
190
|
+
someString: string;
|
|
191
|
+
// 日期测试
|
|
192
|
+
/**
|
|
193
|
+
* @example
|
|
194
|
+
* 3
|
|
195
|
+
*/
|
|
196
|
+
someDate: string;
|
|
197
|
+
// Boolean测试
|
|
198
|
+
/**
|
|
199
|
+
* @example
|
|
200
|
+
* true
|
|
201
|
+
*/
|
|
202
|
+
someBoolean: boolean;
|
|
203
|
+
// 整数测试
|
|
204
|
+
/**
|
|
205
|
+
* @example
|
|
206
|
+
* 3
|
|
207
|
+
*/
|
|
208
|
+
someInt: number;
|
|
209
|
+
// 列表测试
|
|
210
|
+
someList: string[];
|
|
211
|
+
static names(): { [key: string]: string } {
|
|
212
|
+
return {
|
|
213
|
+
someString: 'some_string',
|
|
214
|
+
someDate: 'some_date',
|
|
215
|
+
someBoolean: 'some_boolean',
|
|
216
|
+
someInt: 'some_int',
|
|
217
|
+
someList: 'some_list',
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
static types(): { [key: string]: any } {
|
|
222
|
+
return {
|
|
223
|
+
someString: 'string',
|
|
224
|
+
someDate: 'string',
|
|
225
|
+
someBoolean: 'boolean',
|
|
226
|
+
someInt: 'number',
|
|
227
|
+
someList: { 'type': 'array', 'itemType': 'string' },
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
constructor(map?: { [key: string]: any }) {
|
|
232
|
+
super(map);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// 返回结果测试类
|
|
237
|
+
export class ResultTest extends $tea.Model {
|
|
238
|
+
// 姓名
|
|
239
|
+
/**
|
|
240
|
+
* @example
|
|
241
|
+
* 张三
|
|
242
|
+
*/
|
|
243
|
+
name?: string;
|
|
244
|
+
// test
|
|
245
|
+
/**
|
|
246
|
+
* @example
|
|
247
|
+
* undefined
|
|
248
|
+
*/
|
|
249
|
+
list: DemoClass;
|
|
250
|
+
static names(): { [key: string]: string } {
|
|
251
|
+
return {
|
|
252
|
+
name: 'name',
|
|
253
|
+
list: 'list',
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
static types(): { [key: string]: any } {
|
|
258
|
+
return {
|
|
259
|
+
name: 'string',
|
|
260
|
+
list: DemoClass,
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
constructor(map?: { [key: string]: any }) {
|
|
265
|
+
super(map);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// 返回结果测试类
|
|
270
|
+
export class ResultTests extends $tea.Model {
|
|
271
|
+
// 姓名
|
|
272
|
+
/**
|
|
273
|
+
* @example
|
|
274
|
+
* 张三
|
|
275
|
+
*/
|
|
276
|
+
name?: string;
|
|
277
|
+
// 年龄
|
|
278
|
+
/**
|
|
279
|
+
* @example
|
|
280
|
+
* 18
|
|
281
|
+
*/
|
|
282
|
+
age: string;
|
|
283
|
+
static names(): { [key: string]: string } {
|
|
284
|
+
return {
|
|
285
|
+
name: 'name',
|
|
286
|
+
age: 'age',
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
static types(): { [key: string]: any } {
|
|
291
|
+
return {
|
|
292
|
+
name: 'string',
|
|
293
|
+
age: 'string',
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
constructor(map?: { [key: string]: any }) {
|
|
298
|
+
super(map);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// 1
|
|
303
|
+
export class TestDemo extends $tea.Model {
|
|
304
|
+
// 1
|
|
305
|
+
/**
|
|
306
|
+
* @example
|
|
307
|
+
* 张三
|
|
308
|
+
*/
|
|
309
|
+
name?: string;
|
|
310
|
+
// 1
|
|
311
|
+
/**
|
|
312
|
+
* @example
|
|
313
|
+
* 23
|
|
314
|
+
*/
|
|
315
|
+
number?: number;
|
|
316
|
+
static names(): { [key: string]: string } {
|
|
317
|
+
return {
|
|
318
|
+
name: 'name',
|
|
319
|
+
number: 'number',
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
static types(): { [key: string]: any } {
|
|
324
|
+
return {
|
|
325
|
+
name: 'string',
|
|
326
|
+
number: 'number',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
constructor(map?: { [key: string]: any }) {
|
|
331
|
+
super(map);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// test
|
|
336
|
+
export class DemoTestHf extends $tea.Model {
|
|
337
|
+
// test
|
|
338
|
+
/**
|
|
339
|
+
* @example
|
|
340
|
+
* undefined
|
|
341
|
+
*/
|
|
342
|
+
info: ResultTest;
|
|
343
|
+
static names(): { [key: string]: string } {
|
|
344
|
+
return {
|
|
345
|
+
info: 'info',
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
static types(): { [key: string]: any } {
|
|
350
|
+
return {
|
|
351
|
+
info: ResultTest,
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
constructor(map?: { [key: string]: any }) {
|
|
356
|
+
super(map);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// InitPack
|
|
361
|
+
export class InitPack extends $tea.Model {
|
|
362
|
+
// 2022-11-07 14:48
|
|
363
|
+
/**
|
|
364
|
+
* @example
|
|
365
|
+
* 2022-11-07 14:48
|
|
366
|
+
*/
|
|
367
|
+
time?: string;
|
|
368
|
+
// wanyi
|
|
369
|
+
/**
|
|
370
|
+
* @example
|
|
371
|
+
* wanyi
|
|
372
|
+
*/
|
|
373
|
+
operator?: string;
|
|
374
|
+
// 1
|
|
375
|
+
/**
|
|
376
|
+
* @example
|
|
377
|
+
* 1
|
|
378
|
+
*/
|
|
379
|
+
count?: number;
|
|
380
|
+
static names(): { [key: string]: string } {
|
|
381
|
+
return {
|
|
382
|
+
time: 'time',
|
|
383
|
+
operator: 'operator',
|
|
384
|
+
count: 'count',
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
static types(): { [key: string]: any } {
|
|
389
|
+
return {
|
|
390
|
+
time: 'string',
|
|
391
|
+
operator: 'string',
|
|
392
|
+
count: 'number',
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
constructor(map?: { [key: string]: any }) {
|
|
397
|
+
super(map);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// 测试实体
|
|
402
|
+
export class SumBean extends $tea.Model {
|
|
403
|
+
// 元素名称
|
|
404
|
+
/**
|
|
405
|
+
* @example
|
|
406
|
+
* 张三
|
|
407
|
+
*/
|
|
408
|
+
eName?: string;
|
|
409
|
+
// 数量
|
|
410
|
+
/**
|
|
411
|
+
* @example
|
|
412
|
+
* 23
|
|
413
|
+
*/
|
|
414
|
+
num?: number;
|
|
415
|
+
// test
|
|
416
|
+
/**
|
|
417
|
+
* @example
|
|
418
|
+
* undefined
|
|
419
|
+
*/
|
|
420
|
+
info: ResultTests;
|
|
421
|
+
static names(): { [key: string]: string } {
|
|
422
|
+
return {
|
|
423
|
+
eName: 'e_name',
|
|
424
|
+
num: 'num',
|
|
425
|
+
info: 'info',
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
static types(): { [key: string]: any } {
|
|
430
|
+
return {
|
|
431
|
+
eName: 'string',
|
|
432
|
+
num: 'number',
|
|
433
|
+
info: ResultTests,
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
constructor(map?: { [key: string]: any }) {
|
|
438
|
+
super(map);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export class ImportAntchainDemosdkCreateThreeRequest extends $tea.Model {
|
|
443
|
+
// OAuth模式下的授权token
|
|
444
|
+
authToken?: string;
|
|
445
|
+
productInstanceId?: string;
|
|
446
|
+
// 3000
|
|
447
|
+
timeout: string;
|
|
448
|
+
static names(): { [key: string]: string } {
|
|
449
|
+
return {
|
|
450
|
+
authToken: 'auth_token',
|
|
451
|
+
productInstanceId: 'product_instance_id',
|
|
452
|
+
timeout: 'timeout',
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
static types(): { [key: string]: any } {
|
|
457
|
+
return {
|
|
458
|
+
authToken: 'string',
|
|
459
|
+
productInstanceId: 'string',
|
|
460
|
+
timeout: 'string',
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
constructor(map?: { [key: string]: any }) {
|
|
465
|
+
super(map);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export class ImportAntchainDemosdkCreateThreeResponse extends $tea.Model {
|
|
470
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
471
|
+
reqMsgId?: string;
|
|
472
|
+
// 结果码,一般OK表示调用成功
|
|
473
|
+
resultCode?: string;
|
|
474
|
+
// 异常信息的文本描述
|
|
475
|
+
resultMsg?: string;
|
|
476
|
+
// SUCCESS le
|
|
477
|
+
msg?: string;
|
|
478
|
+
// OK
|
|
479
|
+
status?: string;
|
|
480
|
+
static names(): { [key: string]: string } {
|
|
481
|
+
return {
|
|
482
|
+
reqMsgId: 'req_msg_id',
|
|
483
|
+
resultCode: 'result_code',
|
|
484
|
+
resultMsg: 'result_msg',
|
|
485
|
+
msg: 'msg',
|
|
486
|
+
status: 'status',
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
static types(): { [key: string]: any } {
|
|
491
|
+
return {
|
|
492
|
+
reqMsgId: 'string',
|
|
493
|
+
resultCode: 'string',
|
|
494
|
+
resultMsg: 'string',
|
|
495
|
+
msg: 'string',
|
|
496
|
+
status: 'string',
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
constructor(map?: { [key: string]: any }) {
|
|
501
|
+
super(map);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export class OneBenchTestCreateRequest extends $tea.Model {
|
|
506
|
+
// OAuth模式下的授权token
|
|
507
|
+
authToken?: string;
|
|
508
|
+
productInstanceId?: string;
|
|
509
|
+
// 3000
|
|
510
|
+
timeout: string;
|
|
511
|
+
static names(): { [key: string]: string } {
|
|
512
|
+
return {
|
|
513
|
+
authToken: 'auth_token',
|
|
514
|
+
productInstanceId: 'product_instance_id',
|
|
515
|
+
timeout: 'timeout',
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
static types(): { [key: string]: any } {
|
|
520
|
+
return {
|
|
521
|
+
authToken: 'string',
|
|
522
|
+
productInstanceId: 'string',
|
|
523
|
+
timeout: 'string',
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
constructor(map?: { [key: string]: any }) {
|
|
528
|
+
super(map);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export class OneBenchTestCreateResponse extends $tea.Model {
|
|
533
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
534
|
+
reqMsgId?: string;
|
|
535
|
+
// 结果码,一般OK表示调用成功
|
|
536
|
+
resultCode?: string;
|
|
537
|
+
// 异常信息的文本描述
|
|
538
|
+
resultMsg?: string;
|
|
539
|
+
// SUCCESS le
|
|
540
|
+
msg?: string;
|
|
541
|
+
// OK
|
|
542
|
+
status?: string;
|
|
543
|
+
static names(): { [key: string]: string } {
|
|
544
|
+
return {
|
|
545
|
+
reqMsgId: 'req_msg_id',
|
|
546
|
+
resultCode: 'result_code',
|
|
547
|
+
resultMsg: 'result_msg',
|
|
548
|
+
msg: 'msg',
|
|
549
|
+
status: 'status',
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
static types(): { [key: string]: any } {
|
|
554
|
+
return {
|
|
555
|
+
reqMsgId: 'string',
|
|
556
|
+
resultCode: 'string',
|
|
557
|
+
resultMsg: 'string',
|
|
558
|
+
msg: 'string',
|
|
559
|
+
status: 'string',
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
constructor(map?: { [key: string]: any }) {
|
|
564
|
+
super(map);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export class TwoBenchTestCreateRequest extends $tea.Model {
|
|
569
|
+
// OAuth模式下的授权token
|
|
570
|
+
authToken?: string;
|
|
571
|
+
productInstanceId?: string;
|
|
572
|
+
// 超时时间
|
|
573
|
+
timeout: string;
|
|
574
|
+
static names(): { [key: string]: string } {
|
|
575
|
+
return {
|
|
576
|
+
authToken: 'auth_token',
|
|
577
|
+
productInstanceId: 'product_instance_id',
|
|
578
|
+
timeout: 'timeout',
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
static types(): { [key: string]: any } {
|
|
583
|
+
return {
|
|
584
|
+
authToken: 'string',
|
|
585
|
+
productInstanceId: 'string',
|
|
586
|
+
timeout: 'string',
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
constructor(map?: { [key: string]: any }) {
|
|
591
|
+
super(map);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export class TwoBenchTestCreateResponse extends $tea.Model {
|
|
596
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
597
|
+
reqMsgId?: string;
|
|
598
|
+
// 结果码,一般OK表示调用成功
|
|
599
|
+
resultCode?: string;
|
|
600
|
+
// 异常信息的文本描述
|
|
601
|
+
resultMsg?: string;
|
|
602
|
+
// OK
|
|
603
|
+
//
|
|
604
|
+
// OK
|
|
605
|
+
//
|
|
606
|
+
status?: string;
|
|
607
|
+
// SUCCESS le
|
|
608
|
+
msg?: string;
|
|
609
|
+
static names(): { [key: string]: string } {
|
|
610
|
+
return {
|
|
611
|
+
reqMsgId: 'req_msg_id',
|
|
612
|
+
resultCode: 'result_code',
|
|
613
|
+
resultMsg: 'result_msg',
|
|
614
|
+
status: 'status',
|
|
615
|
+
msg: 'msg',
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
static types(): { [key: string]: any } {
|
|
620
|
+
return {
|
|
621
|
+
reqMsgId: 'string',
|
|
622
|
+
resultCode: 'string',
|
|
623
|
+
resultMsg: 'string',
|
|
624
|
+
status: 'string',
|
|
625
|
+
msg: 'string',
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
constructor(map?: { [key: string]: any }) {
|
|
630
|
+
super(map);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export class ThreeBenchTestCreateRequest extends $tea.Model {
|
|
635
|
+
// OAuth模式下的授权token
|
|
636
|
+
authToken?: string;
|
|
637
|
+
productInstanceId?: string;
|
|
638
|
+
// 3000
|
|
639
|
+
timeout: string;
|
|
640
|
+
static names(): { [key: string]: string } {
|
|
641
|
+
return {
|
|
642
|
+
authToken: 'auth_token',
|
|
643
|
+
productInstanceId: 'product_instance_id',
|
|
644
|
+
timeout: 'timeout',
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
static types(): { [key: string]: any } {
|
|
649
|
+
return {
|
|
650
|
+
authToken: 'string',
|
|
651
|
+
productInstanceId: 'string',
|
|
652
|
+
timeout: 'string',
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
constructor(map?: { [key: string]: any }) {
|
|
657
|
+
super(map);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export class ThreeBenchTestCreateResponse extends $tea.Model {
|
|
662
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
663
|
+
reqMsgId?: string;
|
|
664
|
+
// 结果码,一般OK表示调用成功
|
|
665
|
+
resultCode?: string;
|
|
666
|
+
// 异常信息的文本描述
|
|
667
|
+
resultMsg?: string;
|
|
668
|
+
// OK
|
|
669
|
+
status?: string;
|
|
670
|
+
// SUCCESS le
|
|
671
|
+
msg?: string;
|
|
672
|
+
static names(): { [key: string]: string } {
|
|
673
|
+
return {
|
|
674
|
+
reqMsgId: 'req_msg_id',
|
|
675
|
+
resultCode: 'result_code',
|
|
676
|
+
resultMsg: 'result_msg',
|
|
677
|
+
status: 'status',
|
|
678
|
+
msg: 'msg',
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
static types(): { [key: string]: any } {
|
|
683
|
+
return {
|
|
684
|
+
reqMsgId: 'string',
|
|
685
|
+
resultCode: 'string',
|
|
686
|
+
resultMsg: 'string',
|
|
687
|
+
status: 'string',
|
|
688
|
+
msg: 'string',
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
constructor(map?: { [key: string]: any }) {
|
|
693
|
+
super(map);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export class FourBenchTestCreateRequest extends $tea.Model {
|
|
698
|
+
// OAuth模式下的授权token
|
|
699
|
+
authToken?: string;
|
|
700
|
+
productInstanceId?: string;
|
|
701
|
+
// 3000
|
|
702
|
+
timeout: string;
|
|
703
|
+
static names(): { [key: string]: string } {
|
|
704
|
+
return {
|
|
705
|
+
authToken: 'auth_token',
|
|
706
|
+
productInstanceId: 'product_instance_id',
|
|
707
|
+
timeout: 'timeout',
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
static types(): { [key: string]: any } {
|
|
712
|
+
return {
|
|
713
|
+
authToken: 'string',
|
|
714
|
+
productInstanceId: 'string',
|
|
715
|
+
timeout: 'string',
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
constructor(map?: { [key: string]: any }) {
|
|
720
|
+
super(map);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export class FourBenchTestCreateResponse extends $tea.Model {
|
|
725
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
726
|
+
reqMsgId?: string;
|
|
727
|
+
// 结果码,一般OK表示调用成功
|
|
728
|
+
resultCode?: string;
|
|
729
|
+
// 异常信息的文本描述
|
|
730
|
+
resultMsg?: string;
|
|
731
|
+
// ok
|
|
732
|
+
status?: string;
|
|
733
|
+
// SUCCESS le
|
|
734
|
+
msg?: string;
|
|
735
|
+
static names(): { [key: string]: string } {
|
|
736
|
+
return {
|
|
737
|
+
reqMsgId: 'req_msg_id',
|
|
738
|
+
resultCode: 'result_code',
|
|
739
|
+
resultMsg: 'result_msg',
|
|
740
|
+
status: 'status',
|
|
741
|
+
msg: 'msg',
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
static types(): { [key: string]: any } {
|
|
746
|
+
return {
|
|
747
|
+
reqMsgId: 'string',
|
|
748
|
+
resultCode: 'string',
|
|
749
|
+
resultMsg: 'string',
|
|
750
|
+
status: 'string',
|
|
751
|
+
msg: 'string',
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
constructor(map?: { [key: string]: any }) {
|
|
756
|
+
super(map);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export class FiveBenchTestCreateRequest extends $tea.Model {
|
|
761
|
+
// OAuth模式下的授权token
|
|
762
|
+
authToken?: string;
|
|
763
|
+
productInstanceId?: string;
|
|
764
|
+
// 3000
|
|
765
|
+
timeout: string;
|
|
766
|
+
static names(): { [key: string]: string } {
|
|
767
|
+
return {
|
|
768
|
+
authToken: 'auth_token',
|
|
769
|
+
productInstanceId: 'product_instance_id',
|
|
770
|
+
timeout: 'timeout',
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
static types(): { [key: string]: any } {
|
|
775
|
+
return {
|
|
776
|
+
authToken: 'string',
|
|
777
|
+
productInstanceId: 'string',
|
|
778
|
+
timeout: 'string',
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
constructor(map?: { [key: string]: any }) {
|
|
783
|
+
super(map);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export class FiveBenchTestCreateResponse extends $tea.Model {
|
|
788
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
789
|
+
reqMsgId?: string;
|
|
790
|
+
// 结果码,一般OK表示调用成功
|
|
791
|
+
resultCode?: string;
|
|
792
|
+
// 异常信息的文本描述
|
|
793
|
+
resultMsg?: string;
|
|
794
|
+
// OK
|
|
795
|
+
status?: string;
|
|
796
|
+
// SUCCESS le
|
|
797
|
+
msg?: string;
|
|
798
|
+
static names(): { [key: string]: string } {
|
|
799
|
+
return {
|
|
800
|
+
reqMsgId: 'req_msg_id',
|
|
801
|
+
resultCode: 'result_code',
|
|
802
|
+
resultMsg: 'result_msg',
|
|
803
|
+
status: 'status',
|
|
804
|
+
msg: 'msg',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
static types(): { [key: string]: any } {
|
|
809
|
+
return {
|
|
810
|
+
reqMsgId: 'string',
|
|
811
|
+
resultCode: 'string',
|
|
812
|
+
resultMsg: 'string',
|
|
813
|
+
status: 'string',
|
|
814
|
+
msg: 'string',
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
constructor(map?: { [key: string]: any }) {
|
|
819
|
+
super(map);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export class SixBenchTestCreateRequest extends $tea.Model {
|
|
824
|
+
// OAuth模式下的授权token
|
|
825
|
+
authToken?: string;
|
|
826
|
+
productInstanceId?: string;
|
|
827
|
+
// 3000
|
|
828
|
+
timeout: string;
|
|
829
|
+
static names(): { [key: string]: string } {
|
|
830
|
+
return {
|
|
831
|
+
authToken: 'auth_token',
|
|
832
|
+
productInstanceId: 'product_instance_id',
|
|
833
|
+
timeout: 'timeout',
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
static types(): { [key: string]: any } {
|
|
838
|
+
return {
|
|
839
|
+
authToken: 'string',
|
|
840
|
+
productInstanceId: 'string',
|
|
841
|
+
timeout: 'string',
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
constructor(map?: { [key: string]: any }) {
|
|
846
|
+
super(map);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export class SixBenchTestCreateResponse extends $tea.Model {
|
|
851
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
852
|
+
reqMsgId?: string;
|
|
853
|
+
// 结果码,一般OK表示调用成功
|
|
854
|
+
resultCode?: string;
|
|
855
|
+
// 异常信息的文本描述
|
|
856
|
+
resultMsg?: string;
|
|
857
|
+
// SUCCESS le
|
|
858
|
+
msg?: string;
|
|
859
|
+
// OK
|
|
860
|
+
status?: string;
|
|
861
|
+
static names(): { [key: string]: string } {
|
|
862
|
+
return {
|
|
863
|
+
reqMsgId: 'req_msg_id',
|
|
864
|
+
resultCode: 'result_code',
|
|
865
|
+
resultMsg: 'result_msg',
|
|
866
|
+
msg: 'msg',
|
|
867
|
+
status: 'status',
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
static types(): { [key: string]: any } {
|
|
872
|
+
return {
|
|
873
|
+
reqMsgId: 'string',
|
|
874
|
+
resultCode: 'string',
|
|
875
|
+
resultMsg: 'string',
|
|
876
|
+
msg: 'string',
|
|
877
|
+
status: 'string',
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
constructor(map?: { [key: string]: any }) {
|
|
882
|
+
super(map);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export class SevenBenchTestCreateRequest extends $tea.Model {
|
|
887
|
+
// OAuth模式下的授权token
|
|
888
|
+
authToken?: string;
|
|
889
|
+
productInstanceId?: string;
|
|
890
|
+
// 3000
|
|
891
|
+
timeout: string;
|
|
892
|
+
static names(): { [key: string]: string } {
|
|
893
|
+
return {
|
|
894
|
+
authToken: 'auth_token',
|
|
895
|
+
productInstanceId: 'product_instance_id',
|
|
896
|
+
timeout: 'timeout',
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
static types(): { [key: string]: any } {
|
|
901
|
+
return {
|
|
902
|
+
authToken: 'string',
|
|
903
|
+
productInstanceId: 'string',
|
|
904
|
+
timeout: 'string',
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
constructor(map?: { [key: string]: any }) {
|
|
909
|
+
super(map);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export class SevenBenchTestCreateResponse extends $tea.Model {
|
|
914
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
915
|
+
reqMsgId?: string;
|
|
916
|
+
// 结果码,一般OK表示调用成功
|
|
917
|
+
resultCode?: string;
|
|
918
|
+
// 异常信息的文本描述
|
|
919
|
+
resultMsg?: string;
|
|
920
|
+
// OK
|
|
921
|
+
status?: string;
|
|
922
|
+
// SUCCESS le
|
|
923
|
+
msg?: string;
|
|
924
|
+
static names(): { [key: string]: string } {
|
|
925
|
+
return {
|
|
926
|
+
reqMsgId: 'req_msg_id',
|
|
927
|
+
resultCode: 'result_code',
|
|
928
|
+
resultMsg: 'result_msg',
|
|
929
|
+
status: 'status',
|
|
930
|
+
msg: 'msg',
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
static types(): { [key: string]: any } {
|
|
935
|
+
return {
|
|
936
|
+
reqMsgId: 'string',
|
|
937
|
+
resultCode: 'string',
|
|
938
|
+
resultMsg: 'string',
|
|
939
|
+
status: 'string',
|
|
940
|
+
msg: 'string',
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
constructor(map?: { [key: string]: any }) {
|
|
945
|
+
super(map);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export class EightBenchTestCreateRequest extends $tea.Model {
|
|
950
|
+
// OAuth模式下的授权token
|
|
951
|
+
authToken?: string;
|
|
952
|
+
productInstanceId?: string;
|
|
953
|
+
static names(): { [key: string]: string } {
|
|
954
|
+
return {
|
|
955
|
+
authToken: 'auth_token',
|
|
956
|
+
productInstanceId: 'product_instance_id',
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
static types(): { [key: string]: any } {
|
|
961
|
+
return {
|
|
962
|
+
authToken: 'string',
|
|
963
|
+
productInstanceId: 'string',
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
constructor(map?: { [key: string]: any }) {
|
|
968
|
+
super(map);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export class EightBenchTestCreateResponse extends $tea.Model {
|
|
973
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
974
|
+
reqMsgId?: string;
|
|
975
|
+
// 结果码,一般OK表示调用成功
|
|
976
|
+
resultCode?: string;
|
|
977
|
+
// 异常信息的文本描述
|
|
978
|
+
resultMsg?: string;
|
|
979
|
+
static names(): { [key: string]: string } {
|
|
980
|
+
return {
|
|
981
|
+
reqMsgId: 'req_msg_id',
|
|
982
|
+
resultCode: 'result_code',
|
|
983
|
+
resultMsg: 'result_msg',
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
static types(): { [key: string]: any } {
|
|
988
|
+
return {
|
|
989
|
+
reqMsgId: 'string',
|
|
990
|
+
resultCode: 'string',
|
|
991
|
+
resultMsg: 'string',
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
constructor(map?: { [key: string]: any }) {
|
|
996
|
+
super(map);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
export default class Client {
|
|
1002
|
+
_endpoint: string;
|
|
1003
|
+
_regionId: string;
|
|
1004
|
+
_accessKeyId: string;
|
|
1005
|
+
_accessKeySecret: string;
|
|
1006
|
+
_protocol: string;
|
|
1007
|
+
_userAgent: string;
|
|
1008
|
+
_readTimeout: number;
|
|
1009
|
+
_connectTimeout: number;
|
|
1010
|
+
_httpProxy: string;
|
|
1011
|
+
_httpsProxy: string;
|
|
1012
|
+
_socks5Proxy: string;
|
|
1013
|
+
_socks5NetWork: string;
|
|
1014
|
+
_noProxy: string;
|
|
1015
|
+
_maxIdleConns: number;
|
|
1016
|
+
_securityToken: string;
|
|
1017
|
+
_maxIdleTimeMillis: number;
|
|
1018
|
+
_keepAliveDurationMillis: number;
|
|
1019
|
+
_maxRequests: number;
|
|
1020
|
+
_maxRequestsPerHost: number;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* @remarks
|
|
1024
|
+
* Init client with Config
|
|
1025
|
+
*
|
|
1026
|
+
* @param config - config contains the necessary information to create a client
|
|
1027
|
+
*/
|
|
1028
|
+
constructor(config: Config) {
|
|
1029
|
+
if (Util.isUnset(config)) {
|
|
1030
|
+
throw $tea.newError({
|
|
1031
|
+
code: "ParameterMissing",
|
|
1032
|
+
message: "'config' can not be unset",
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
this._accessKeyId = config.accessKeyId;
|
|
1037
|
+
this._accessKeySecret = config.accessKeySecret;
|
|
1038
|
+
this._securityToken = config.securityToken;
|
|
1039
|
+
this._endpoint = config.endpoint;
|
|
1040
|
+
this._protocol = config.protocol;
|
|
1041
|
+
this._userAgent = config.userAgent;
|
|
1042
|
+
this._readTimeout = Util.defaultNumber(config.readTimeout, 20000);
|
|
1043
|
+
this._connectTimeout = Util.defaultNumber(config.connectTimeout, 20000);
|
|
1044
|
+
this._httpProxy = config.httpProxy;
|
|
1045
|
+
this._httpsProxy = config.httpsProxy;
|
|
1046
|
+
this._noProxy = config.noProxy;
|
|
1047
|
+
this._socks5Proxy = config.socks5Proxy;
|
|
1048
|
+
this._socks5NetWork = config.socks5NetWork;
|
|
1049
|
+
this._maxIdleConns = Util.defaultNumber(config.maxIdleConns, 60000);
|
|
1050
|
+
this._maxIdleTimeMillis = Util.defaultNumber(config.maxIdleTimeMillis, 5);
|
|
1051
|
+
this._keepAliveDurationMillis = Util.defaultNumber(config.keepAliveDurationMillis, 5000);
|
|
1052
|
+
this._maxRequests = Util.defaultNumber(config.maxRequests, 100);
|
|
1053
|
+
this._maxRequestsPerHost = Util.defaultNumber(config.maxRequestsPerHost, 100);
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* @remarks
|
|
1058
|
+
* Encapsulate the request and invoke the network
|
|
1059
|
+
*
|
|
1060
|
+
* @param action - api name
|
|
1061
|
+
* @param protocol - http or https
|
|
1062
|
+
* @param method - e.g. GET
|
|
1063
|
+
* @param pathname - pathname of every api
|
|
1064
|
+
* @param request - which contains request params
|
|
1065
|
+
* @param runtime - which controls some details of call api, such as retry times
|
|
1066
|
+
* @returns the response
|
|
1067
|
+
*/
|
|
1068
|
+
async doRequest(version: string, action: string, protocol: string, method: string, pathname: string, request: {[key: string]: any}, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> {
|
|
1069
|
+
let _runtime: { [key: string]: any } = {
|
|
1070
|
+
timeouted: "retry",
|
|
1071
|
+
readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
1072
|
+
connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout),
|
|
1073
|
+
httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy),
|
|
1074
|
+
httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
1075
|
+
noProxy: Util.defaultString(runtime.noProxy, this._noProxy),
|
|
1076
|
+
maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
1077
|
+
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
1078
|
+
keepAliveDuration: this._keepAliveDurationMillis,
|
|
1079
|
+
maxRequests: this._maxRequests,
|
|
1080
|
+
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
1081
|
+
retry: {
|
|
1082
|
+
retryable: runtime.autoretry,
|
|
1083
|
+
maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3),
|
|
1084
|
+
},
|
|
1085
|
+
backoff: {
|
|
1086
|
+
policy: Util.defaultString(runtime.backoffPolicy, "no"),
|
|
1087
|
+
period: Util.defaultNumber(runtime.backoffPeriod, 1),
|
|
1088
|
+
},
|
|
1089
|
+
ignoreSSL: runtime.ignoreSSL,
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
let _lastRequest = null;
|
|
1093
|
+
let _now = Date.now();
|
|
1094
|
+
let _retryTimes = 0;
|
|
1095
|
+
while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) {
|
|
1096
|
+
if (_retryTimes > 0) {
|
|
1097
|
+
let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes);
|
|
1098
|
+
if (_backoffTime > 0) {
|
|
1099
|
+
await $tea.sleep(_backoffTime);
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
_retryTimes = _retryTimes + 1;
|
|
1104
|
+
try {
|
|
1105
|
+
let request_ = new $tea.Request();
|
|
1106
|
+
request_.protocol = Util.defaultString(this._protocol, protocol);
|
|
1107
|
+
request_.method = method;
|
|
1108
|
+
request_.pathname = pathname;
|
|
1109
|
+
request_.query = {
|
|
1110
|
+
method: action,
|
|
1111
|
+
version: version,
|
|
1112
|
+
sign_type: "HmacSHA1",
|
|
1113
|
+
req_time: AntchainUtil.getTimestamp(),
|
|
1114
|
+
req_msg_id: AntchainUtil.getNonce(),
|
|
1115
|
+
access_key: this._accessKeyId,
|
|
1116
|
+
base_sdk_version: "TeaSDK-2.0",
|
|
1117
|
+
sdk_version: "1.0.0",
|
|
1118
|
+
_prod_code: "BENCHTWOCREATE",
|
|
1119
|
+
_prod_channel: "default",
|
|
1120
|
+
};
|
|
1121
|
+
if (!Util.empty(this._securityToken)) {
|
|
1122
|
+
request_.query["security_token"] = this._securityToken;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
request_.headers = {
|
|
1126
|
+
host: Util.defaultString(this._endpoint, "openapi.antchain.antgroup.com"),
|
|
1127
|
+
'user-agent': Util.getUserAgent(this._userAgent),
|
|
1128
|
+
...headers,
|
|
1129
|
+
};
|
|
1130
|
+
let tmp = Util.anyifyMapValue(RPCUtil.query(request));
|
|
1131
|
+
request_.body = new $tea.BytesReadable(Util.toFormString(tmp));
|
|
1132
|
+
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
1133
|
+
let signedParam = {
|
|
1134
|
+
...request_.query,
|
|
1135
|
+
...RPCUtil.query(request),
|
|
1136
|
+
};
|
|
1137
|
+
request_.query["sign"] = AntchainUtil.getSignature(signedParam, this._accessKeySecret);
|
|
1138
|
+
_lastRequest = request_;
|
|
1139
|
+
let response_ = await $tea.doAction(request_, _runtime);
|
|
1140
|
+
|
|
1141
|
+
let raw = await Util.readAsString(response_.body);
|
|
1142
|
+
let obj = Util.parseJSON(raw);
|
|
1143
|
+
let res = Util.assertAsMap(obj);
|
|
1144
|
+
let resp = Util.assertAsMap(res["response"]);
|
|
1145
|
+
if (AntchainUtil.hasError(raw, this._accessKeySecret)) {
|
|
1146
|
+
throw $tea.newError({
|
|
1147
|
+
message: resp["result_msg"],
|
|
1148
|
+
data: resp,
|
|
1149
|
+
code: resp["result_code"],
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
return resp;
|
|
1154
|
+
} catch (ex) {
|
|
1155
|
+
if ($tea.isRetryable(ex)) {
|
|
1156
|
+
continue;
|
|
1157
|
+
}
|
|
1158
|
+
throw ex;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
throw $tea.newUnretryableError(_lastRequest);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* @remarks
|
|
1167
|
+
* Description: 用于个人工作台二期测试使用
|
|
1168
|
+
* Summary: 用于个人工作台二期测试使用
|
|
1169
|
+
*/
|
|
1170
|
+
async importAntchainDemosdkCreateThree(request: ImportAntchainDemosdkCreateThreeRequest): Promise<ImportAntchainDemosdkCreateThreeResponse> {
|
|
1171
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1172
|
+
let headers : {[key: string ]: string} = { };
|
|
1173
|
+
return await this.importAntchainDemosdkCreateThreeEx(request, headers, runtime);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @remarks
|
|
1178
|
+
* Description: 用于个人工作台二期测试使用
|
|
1179
|
+
* Summary: 用于个人工作台二期测试使用
|
|
1180
|
+
*/
|
|
1181
|
+
async importAntchainDemosdkCreateThreeEx(request: ImportAntchainDemosdkCreateThreeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ImportAntchainDemosdkCreateThreeResponse> {
|
|
1182
|
+
Util.validateModel(request);
|
|
1183
|
+
return $tea.cast<ImportAntchainDemosdkCreateThreeResponse>(await this.doRequest("1.0", "antchain.demosdk.create.three.import", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ImportAntchainDemosdkCreateThreeResponse({}));
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* @remarks
|
|
1188
|
+
* Description: 测试使用
|
|
1189
|
+
* Summary: 测试使用
|
|
1190
|
+
*/
|
|
1191
|
+
async oneBenchTestCreate(request: OneBenchTestCreateRequest): Promise<OneBenchTestCreateResponse> {
|
|
1192
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1193
|
+
let headers : {[key: string ]: string} = { };
|
|
1194
|
+
return await this.oneBenchTestCreateEx(request, headers, runtime);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* @remarks
|
|
1199
|
+
* Description: 测试使用
|
|
1200
|
+
* Summary: 测试使用
|
|
1201
|
+
*/
|
|
1202
|
+
async oneBenchTestCreateEx(request: OneBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<OneBenchTestCreateResponse> {
|
|
1203
|
+
Util.validateModel(request);
|
|
1204
|
+
return $tea.cast<OneBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.one", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new OneBenchTestCreateResponse({}));
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @remarks
|
|
1209
|
+
* Description: 工作台二期测试使用
|
|
1210
|
+
* Summary: 工作台二期测试使用
|
|
1211
|
+
*/
|
|
1212
|
+
async twoBenchTestCreate(request: TwoBenchTestCreateRequest): Promise<TwoBenchTestCreateResponse> {
|
|
1213
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1214
|
+
let headers : {[key: string ]: string} = { };
|
|
1215
|
+
return await this.twoBenchTestCreateEx(request, headers, runtime);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* @remarks
|
|
1220
|
+
* Description: 工作台二期测试使用
|
|
1221
|
+
* Summary: 工作台二期测试使用
|
|
1222
|
+
*/
|
|
1223
|
+
async twoBenchTestCreateEx(request: TwoBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<TwoBenchTestCreateResponse> {
|
|
1224
|
+
Util.validateModel(request);
|
|
1225
|
+
return $tea.cast<TwoBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.two", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new TwoBenchTestCreateResponse({}));
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* @remarks
|
|
1230
|
+
* Description: 工作台二期测试使用
|
|
1231
|
+
* Summary: 工作台二期测试使用
|
|
1232
|
+
*/
|
|
1233
|
+
async threeBenchTestCreate(request: ThreeBenchTestCreateRequest): Promise<ThreeBenchTestCreateResponse> {
|
|
1234
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1235
|
+
let headers : {[key: string ]: string} = { };
|
|
1236
|
+
return await this.threeBenchTestCreateEx(request, headers, runtime);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* @remarks
|
|
1241
|
+
* Description: 工作台二期测试使用
|
|
1242
|
+
* Summary: 工作台二期测试使用
|
|
1243
|
+
*/
|
|
1244
|
+
async threeBenchTestCreateEx(request: ThreeBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ThreeBenchTestCreateResponse> {
|
|
1245
|
+
Util.validateModel(request);
|
|
1246
|
+
return $tea.cast<ThreeBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.three", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ThreeBenchTestCreateResponse({}));
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* @remarks
|
|
1251
|
+
* Description: 工作台二期测试使用
|
|
1252
|
+
* Summary: 工作台二期测试使用
|
|
1253
|
+
*/
|
|
1254
|
+
async fourBenchTestCreate(request: FourBenchTestCreateRequest): Promise<FourBenchTestCreateResponse> {
|
|
1255
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1256
|
+
let headers : {[key: string ]: string} = { };
|
|
1257
|
+
return await this.fourBenchTestCreateEx(request, headers, runtime);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* @remarks
|
|
1262
|
+
* Description: 工作台二期测试使用
|
|
1263
|
+
* Summary: 工作台二期测试使用
|
|
1264
|
+
*/
|
|
1265
|
+
async fourBenchTestCreateEx(request: FourBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FourBenchTestCreateResponse> {
|
|
1266
|
+
Util.validateModel(request);
|
|
1267
|
+
return $tea.cast<FourBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.four", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new FourBenchTestCreateResponse({}));
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* @remarks
|
|
1272
|
+
* Description: 工作台二期测试使用
|
|
1273
|
+
* Summary: 工作台二期测试使用
|
|
1274
|
+
*/
|
|
1275
|
+
async fiveBenchTestCreate(request: FiveBenchTestCreateRequest): Promise<FiveBenchTestCreateResponse> {
|
|
1276
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1277
|
+
let headers : {[key: string ]: string} = { };
|
|
1278
|
+
return await this.fiveBenchTestCreateEx(request, headers, runtime);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* @remarks
|
|
1283
|
+
* Description: 工作台二期测试使用
|
|
1284
|
+
* Summary: 工作台二期测试使用
|
|
1285
|
+
*/
|
|
1286
|
+
async fiveBenchTestCreateEx(request: FiveBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FiveBenchTestCreateResponse> {
|
|
1287
|
+
Util.validateModel(request);
|
|
1288
|
+
return $tea.cast<FiveBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.five", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new FiveBenchTestCreateResponse({}));
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* @remarks
|
|
1293
|
+
* Description: 工作台二期测试使用
|
|
1294
|
+
* Summary: 工作台二期测试使用
|
|
1295
|
+
*/
|
|
1296
|
+
async sixBenchTestCreate(request: SixBenchTestCreateRequest): Promise<SixBenchTestCreateResponse> {
|
|
1297
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1298
|
+
let headers : {[key: string ]: string} = { };
|
|
1299
|
+
return await this.sixBenchTestCreateEx(request, headers, runtime);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* @remarks
|
|
1304
|
+
* Description: 工作台二期测试使用
|
|
1305
|
+
* Summary: 工作台二期测试使用
|
|
1306
|
+
*/
|
|
1307
|
+
async sixBenchTestCreateEx(request: SixBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SixBenchTestCreateResponse> {
|
|
1308
|
+
Util.validateModel(request);
|
|
1309
|
+
return $tea.cast<SixBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.six", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SixBenchTestCreateResponse({}));
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* @remarks
|
|
1314
|
+
* Description: 工作台二期测试使用
|
|
1315
|
+
* Summary: 工作台二期测试使用
|
|
1316
|
+
*/
|
|
1317
|
+
async sevenBenchTestCreate(request: SevenBenchTestCreateRequest): Promise<SevenBenchTestCreateResponse> {
|
|
1318
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1319
|
+
let headers : {[key: string ]: string} = { };
|
|
1320
|
+
return await this.sevenBenchTestCreateEx(request, headers, runtime);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* @remarks
|
|
1325
|
+
* Description: 工作台二期测试使用
|
|
1326
|
+
* Summary: 工作台二期测试使用
|
|
1327
|
+
*/
|
|
1328
|
+
async sevenBenchTestCreateEx(request: SevenBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SevenBenchTestCreateResponse> {
|
|
1329
|
+
Util.validateModel(request);
|
|
1330
|
+
return $tea.cast<SevenBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.seven", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SevenBenchTestCreateResponse({}));
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* @remarks
|
|
1335
|
+
* Description: 工作台二期测试使用
|
|
1336
|
+
* Summary: 工作台二期测试使用
|
|
1337
|
+
*/
|
|
1338
|
+
async eightBenchTestCreate(request: EightBenchTestCreateRequest): Promise<EightBenchTestCreateResponse> {
|
|
1339
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1340
|
+
let headers : {[key: string ]: string} = { };
|
|
1341
|
+
return await this.eightBenchTestCreateEx(request, headers, runtime);
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* @remarks
|
|
1346
|
+
* Description: 工作台二期测试使用
|
|
1347
|
+
* Summary: 工作台二期测试使用
|
|
1348
|
+
*/
|
|
1349
|
+
async eightBenchTestCreateEx(request: EightBenchTestCreateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EightBenchTestCreateResponse> {
|
|
1350
|
+
Util.validateModel(request);
|
|
1351
|
+
return $tea.cast<EightBenchTestCreateResponse>(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.eight", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new EightBenchTestCreateResponse({}));
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
}
|