@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.js ADDED
@@ -0,0 +1,918 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.EightBenchTestCreateResponse = exports.EightBenchTestCreateRequest = exports.SevenBenchTestCreateResponse = exports.SevenBenchTestCreateRequest = exports.SixBenchTestCreateResponse = exports.SixBenchTestCreateRequest = exports.FiveBenchTestCreateResponse = exports.FiveBenchTestCreateRequest = exports.FourBenchTestCreateResponse = exports.FourBenchTestCreateRequest = exports.ThreeBenchTestCreateResponse = exports.ThreeBenchTestCreateRequest = exports.TwoBenchTestCreateResponse = exports.TwoBenchTestCreateRequest = exports.OneBenchTestCreateResponse = exports.OneBenchTestCreateRequest = exports.ImportAntchainDemosdkCreateThreeResponse = exports.ImportAntchainDemosdkCreateThreeRequest = exports.SumBean = exports.InitPack = exports.DemoTestHf = exports.TestDemo = exports.ResultTests = exports.ResultTest = exports.DemoClass = exports.Config = void 0;
26
+ // This file is auto-generated, don't edit it
27
+ const alipay_util_1 = __importDefault(require("@antchain/alipay-util"));
28
+ const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
29
+ const rpc_util_1 = __importDefault(require("@alicloud/rpc-util"));
30
+ const $tea = __importStar(require("@alicloud/tea-typescript"));
31
+ /**
32
+ * @remarks
33
+ * Model for initing client
34
+ */
35
+ class Config extends $tea.Model {
36
+ constructor(map) {
37
+ super(map);
38
+ }
39
+ static names() {
40
+ return {
41
+ accessKeyId: 'accessKeyId',
42
+ accessKeySecret: 'accessKeySecret',
43
+ securityToken: 'securityToken',
44
+ protocol: 'protocol',
45
+ readTimeout: 'readTimeout',
46
+ connectTimeout: 'connectTimeout',
47
+ httpProxy: 'httpProxy',
48
+ httpsProxy: 'httpsProxy',
49
+ endpoint: 'endpoint',
50
+ noProxy: 'noProxy',
51
+ maxIdleConns: 'maxIdleConns',
52
+ userAgent: 'userAgent',
53
+ socks5Proxy: 'socks5Proxy',
54
+ socks5NetWork: 'socks5NetWork',
55
+ maxIdleTimeMillis: 'maxIdleTimeMillis',
56
+ keepAliveDurationMillis: 'keepAliveDurationMillis',
57
+ maxRequests: 'maxRequests',
58
+ maxRequestsPerHost: 'maxRequestsPerHost',
59
+ };
60
+ }
61
+ static types() {
62
+ return {
63
+ accessKeyId: 'string',
64
+ accessKeySecret: 'string',
65
+ securityToken: 'string',
66
+ protocol: 'string',
67
+ readTimeout: 'number',
68
+ connectTimeout: 'number',
69
+ httpProxy: 'string',
70
+ httpsProxy: 'string',
71
+ endpoint: 'string',
72
+ noProxy: 'string',
73
+ maxIdleConns: 'number',
74
+ userAgent: 'string',
75
+ socks5Proxy: 'string',
76
+ socks5NetWork: 'string',
77
+ maxIdleTimeMillis: 'number',
78
+ keepAliveDurationMillis: 'number',
79
+ maxRequests: 'number',
80
+ maxRequestsPerHost: 'number',
81
+ };
82
+ }
83
+ }
84
+ exports.Config = Config;
85
+ // Demo类1
86
+ class DemoClass extends $tea.Model {
87
+ constructor(map) {
88
+ super(map);
89
+ }
90
+ static names() {
91
+ return {
92
+ someString: 'some_string',
93
+ someDate: 'some_date',
94
+ someBoolean: 'some_boolean',
95
+ someInt: 'some_int',
96
+ someList: 'some_list',
97
+ };
98
+ }
99
+ static types() {
100
+ return {
101
+ someString: 'string',
102
+ someDate: 'string',
103
+ someBoolean: 'boolean',
104
+ someInt: 'number',
105
+ someList: { 'type': 'array', 'itemType': 'string' },
106
+ };
107
+ }
108
+ }
109
+ exports.DemoClass = DemoClass;
110
+ // 返回结果测试类
111
+ class ResultTest extends $tea.Model {
112
+ constructor(map) {
113
+ super(map);
114
+ }
115
+ static names() {
116
+ return {
117
+ name: 'name',
118
+ list: 'list',
119
+ };
120
+ }
121
+ static types() {
122
+ return {
123
+ name: 'string',
124
+ list: DemoClass,
125
+ };
126
+ }
127
+ }
128
+ exports.ResultTest = ResultTest;
129
+ // 返回结果测试类
130
+ class ResultTests extends $tea.Model {
131
+ constructor(map) {
132
+ super(map);
133
+ }
134
+ static names() {
135
+ return {
136
+ name: 'name',
137
+ age: 'age',
138
+ };
139
+ }
140
+ static types() {
141
+ return {
142
+ name: 'string',
143
+ age: 'string',
144
+ };
145
+ }
146
+ }
147
+ exports.ResultTests = ResultTests;
148
+ // 1
149
+ class TestDemo extends $tea.Model {
150
+ constructor(map) {
151
+ super(map);
152
+ }
153
+ static names() {
154
+ return {
155
+ name: 'name',
156
+ number: 'number',
157
+ };
158
+ }
159
+ static types() {
160
+ return {
161
+ name: 'string',
162
+ number: 'number',
163
+ };
164
+ }
165
+ }
166
+ exports.TestDemo = TestDemo;
167
+ // test
168
+ class DemoTestHf extends $tea.Model {
169
+ constructor(map) {
170
+ super(map);
171
+ }
172
+ static names() {
173
+ return {
174
+ info: 'info',
175
+ };
176
+ }
177
+ static types() {
178
+ return {
179
+ info: ResultTest,
180
+ };
181
+ }
182
+ }
183
+ exports.DemoTestHf = DemoTestHf;
184
+ // InitPack
185
+ class InitPack extends $tea.Model {
186
+ constructor(map) {
187
+ super(map);
188
+ }
189
+ static names() {
190
+ return {
191
+ time: 'time',
192
+ operator: 'operator',
193
+ count: 'count',
194
+ };
195
+ }
196
+ static types() {
197
+ return {
198
+ time: 'string',
199
+ operator: 'string',
200
+ count: 'number',
201
+ };
202
+ }
203
+ }
204
+ exports.InitPack = InitPack;
205
+ // 测试实体
206
+ class SumBean extends $tea.Model {
207
+ constructor(map) {
208
+ super(map);
209
+ }
210
+ static names() {
211
+ return {
212
+ eName: 'e_name',
213
+ num: 'num',
214
+ info: 'info',
215
+ };
216
+ }
217
+ static types() {
218
+ return {
219
+ eName: 'string',
220
+ num: 'number',
221
+ info: ResultTests,
222
+ };
223
+ }
224
+ }
225
+ exports.SumBean = SumBean;
226
+ class ImportAntchainDemosdkCreateThreeRequest extends $tea.Model {
227
+ constructor(map) {
228
+ super(map);
229
+ }
230
+ static names() {
231
+ return {
232
+ authToken: 'auth_token',
233
+ productInstanceId: 'product_instance_id',
234
+ timeout: 'timeout',
235
+ };
236
+ }
237
+ static types() {
238
+ return {
239
+ authToken: 'string',
240
+ productInstanceId: 'string',
241
+ timeout: 'string',
242
+ };
243
+ }
244
+ }
245
+ exports.ImportAntchainDemosdkCreateThreeRequest = ImportAntchainDemosdkCreateThreeRequest;
246
+ class ImportAntchainDemosdkCreateThreeResponse extends $tea.Model {
247
+ constructor(map) {
248
+ super(map);
249
+ }
250
+ static names() {
251
+ return {
252
+ reqMsgId: 'req_msg_id',
253
+ resultCode: 'result_code',
254
+ resultMsg: 'result_msg',
255
+ msg: 'msg',
256
+ status: 'status',
257
+ };
258
+ }
259
+ static types() {
260
+ return {
261
+ reqMsgId: 'string',
262
+ resultCode: 'string',
263
+ resultMsg: 'string',
264
+ msg: 'string',
265
+ status: 'string',
266
+ };
267
+ }
268
+ }
269
+ exports.ImportAntchainDemosdkCreateThreeResponse = ImportAntchainDemosdkCreateThreeResponse;
270
+ class OneBenchTestCreateRequest extends $tea.Model {
271
+ constructor(map) {
272
+ super(map);
273
+ }
274
+ static names() {
275
+ return {
276
+ authToken: 'auth_token',
277
+ productInstanceId: 'product_instance_id',
278
+ timeout: 'timeout',
279
+ };
280
+ }
281
+ static types() {
282
+ return {
283
+ authToken: 'string',
284
+ productInstanceId: 'string',
285
+ timeout: 'string',
286
+ };
287
+ }
288
+ }
289
+ exports.OneBenchTestCreateRequest = OneBenchTestCreateRequest;
290
+ class OneBenchTestCreateResponse extends $tea.Model {
291
+ constructor(map) {
292
+ super(map);
293
+ }
294
+ static names() {
295
+ return {
296
+ reqMsgId: 'req_msg_id',
297
+ resultCode: 'result_code',
298
+ resultMsg: 'result_msg',
299
+ msg: 'msg',
300
+ status: 'status',
301
+ };
302
+ }
303
+ static types() {
304
+ return {
305
+ reqMsgId: 'string',
306
+ resultCode: 'string',
307
+ resultMsg: 'string',
308
+ msg: 'string',
309
+ status: 'string',
310
+ };
311
+ }
312
+ }
313
+ exports.OneBenchTestCreateResponse = OneBenchTestCreateResponse;
314
+ class TwoBenchTestCreateRequest extends $tea.Model {
315
+ constructor(map) {
316
+ super(map);
317
+ }
318
+ static names() {
319
+ return {
320
+ authToken: 'auth_token',
321
+ productInstanceId: 'product_instance_id',
322
+ timeout: 'timeout',
323
+ };
324
+ }
325
+ static types() {
326
+ return {
327
+ authToken: 'string',
328
+ productInstanceId: 'string',
329
+ timeout: 'string',
330
+ };
331
+ }
332
+ }
333
+ exports.TwoBenchTestCreateRequest = TwoBenchTestCreateRequest;
334
+ class TwoBenchTestCreateResponse extends $tea.Model {
335
+ constructor(map) {
336
+ super(map);
337
+ }
338
+ static names() {
339
+ return {
340
+ reqMsgId: 'req_msg_id',
341
+ resultCode: 'result_code',
342
+ resultMsg: 'result_msg',
343
+ status: 'status',
344
+ msg: 'msg',
345
+ };
346
+ }
347
+ static types() {
348
+ return {
349
+ reqMsgId: 'string',
350
+ resultCode: 'string',
351
+ resultMsg: 'string',
352
+ status: 'string',
353
+ msg: 'string',
354
+ };
355
+ }
356
+ }
357
+ exports.TwoBenchTestCreateResponse = TwoBenchTestCreateResponse;
358
+ class ThreeBenchTestCreateRequest extends $tea.Model {
359
+ constructor(map) {
360
+ super(map);
361
+ }
362
+ static names() {
363
+ return {
364
+ authToken: 'auth_token',
365
+ productInstanceId: 'product_instance_id',
366
+ timeout: 'timeout',
367
+ };
368
+ }
369
+ static types() {
370
+ return {
371
+ authToken: 'string',
372
+ productInstanceId: 'string',
373
+ timeout: 'string',
374
+ };
375
+ }
376
+ }
377
+ exports.ThreeBenchTestCreateRequest = ThreeBenchTestCreateRequest;
378
+ class ThreeBenchTestCreateResponse extends $tea.Model {
379
+ constructor(map) {
380
+ super(map);
381
+ }
382
+ static names() {
383
+ return {
384
+ reqMsgId: 'req_msg_id',
385
+ resultCode: 'result_code',
386
+ resultMsg: 'result_msg',
387
+ status: 'status',
388
+ msg: 'msg',
389
+ };
390
+ }
391
+ static types() {
392
+ return {
393
+ reqMsgId: 'string',
394
+ resultCode: 'string',
395
+ resultMsg: 'string',
396
+ status: 'string',
397
+ msg: 'string',
398
+ };
399
+ }
400
+ }
401
+ exports.ThreeBenchTestCreateResponse = ThreeBenchTestCreateResponse;
402
+ class FourBenchTestCreateRequest extends $tea.Model {
403
+ constructor(map) {
404
+ super(map);
405
+ }
406
+ static names() {
407
+ return {
408
+ authToken: 'auth_token',
409
+ productInstanceId: 'product_instance_id',
410
+ timeout: 'timeout',
411
+ };
412
+ }
413
+ static types() {
414
+ return {
415
+ authToken: 'string',
416
+ productInstanceId: 'string',
417
+ timeout: 'string',
418
+ };
419
+ }
420
+ }
421
+ exports.FourBenchTestCreateRequest = FourBenchTestCreateRequest;
422
+ class FourBenchTestCreateResponse extends $tea.Model {
423
+ constructor(map) {
424
+ super(map);
425
+ }
426
+ static names() {
427
+ return {
428
+ reqMsgId: 'req_msg_id',
429
+ resultCode: 'result_code',
430
+ resultMsg: 'result_msg',
431
+ status: 'status',
432
+ msg: 'msg',
433
+ };
434
+ }
435
+ static types() {
436
+ return {
437
+ reqMsgId: 'string',
438
+ resultCode: 'string',
439
+ resultMsg: 'string',
440
+ status: 'string',
441
+ msg: 'string',
442
+ };
443
+ }
444
+ }
445
+ exports.FourBenchTestCreateResponse = FourBenchTestCreateResponse;
446
+ class FiveBenchTestCreateRequest extends $tea.Model {
447
+ constructor(map) {
448
+ super(map);
449
+ }
450
+ static names() {
451
+ return {
452
+ authToken: 'auth_token',
453
+ productInstanceId: 'product_instance_id',
454
+ timeout: 'timeout',
455
+ };
456
+ }
457
+ static types() {
458
+ return {
459
+ authToken: 'string',
460
+ productInstanceId: 'string',
461
+ timeout: 'string',
462
+ };
463
+ }
464
+ }
465
+ exports.FiveBenchTestCreateRequest = FiveBenchTestCreateRequest;
466
+ class FiveBenchTestCreateResponse extends $tea.Model {
467
+ constructor(map) {
468
+ super(map);
469
+ }
470
+ static names() {
471
+ return {
472
+ reqMsgId: 'req_msg_id',
473
+ resultCode: 'result_code',
474
+ resultMsg: 'result_msg',
475
+ status: 'status',
476
+ msg: 'msg',
477
+ };
478
+ }
479
+ static types() {
480
+ return {
481
+ reqMsgId: 'string',
482
+ resultCode: 'string',
483
+ resultMsg: 'string',
484
+ status: 'string',
485
+ msg: 'string',
486
+ };
487
+ }
488
+ }
489
+ exports.FiveBenchTestCreateResponse = FiveBenchTestCreateResponse;
490
+ class SixBenchTestCreateRequest extends $tea.Model {
491
+ constructor(map) {
492
+ super(map);
493
+ }
494
+ static names() {
495
+ return {
496
+ authToken: 'auth_token',
497
+ productInstanceId: 'product_instance_id',
498
+ timeout: 'timeout',
499
+ };
500
+ }
501
+ static types() {
502
+ return {
503
+ authToken: 'string',
504
+ productInstanceId: 'string',
505
+ timeout: 'string',
506
+ };
507
+ }
508
+ }
509
+ exports.SixBenchTestCreateRequest = SixBenchTestCreateRequest;
510
+ class SixBenchTestCreateResponse extends $tea.Model {
511
+ constructor(map) {
512
+ super(map);
513
+ }
514
+ static names() {
515
+ return {
516
+ reqMsgId: 'req_msg_id',
517
+ resultCode: 'result_code',
518
+ resultMsg: 'result_msg',
519
+ msg: 'msg',
520
+ status: 'status',
521
+ };
522
+ }
523
+ static types() {
524
+ return {
525
+ reqMsgId: 'string',
526
+ resultCode: 'string',
527
+ resultMsg: 'string',
528
+ msg: 'string',
529
+ status: 'string',
530
+ };
531
+ }
532
+ }
533
+ exports.SixBenchTestCreateResponse = SixBenchTestCreateResponse;
534
+ class SevenBenchTestCreateRequest extends $tea.Model {
535
+ constructor(map) {
536
+ super(map);
537
+ }
538
+ static names() {
539
+ return {
540
+ authToken: 'auth_token',
541
+ productInstanceId: 'product_instance_id',
542
+ timeout: 'timeout',
543
+ };
544
+ }
545
+ static types() {
546
+ return {
547
+ authToken: 'string',
548
+ productInstanceId: 'string',
549
+ timeout: 'string',
550
+ };
551
+ }
552
+ }
553
+ exports.SevenBenchTestCreateRequest = SevenBenchTestCreateRequest;
554
+ class SevenBenchTestCreateResponse extends $tea.Model {
555
+ constructor(map) {
556
+ super(map);
557
+ }
558
+ static names() {
559
+ return {
560
+ reqMsgId: 'req_msg_id',
561
+ resultCode: 'result_code',
562
+ resultMsg: 'result_msg',
563
+ status: 'status',
564
+ msg: 'msg',
565
+ };
566
+ }
567
+ static types() {
568
+ return {
569
+ reqMsgId: 'string',
570
+ resultCode: 'string',
571
+ resultMsg: 'string',
572
+ status: 'string',
573
+ msg: 'string',
574
+ };
575
+ }
576
+ }
577
+ exports.SevenBenchTestCreateResponse = SevenBenchTestCreateResponse;
578
+ class EightBenchTestCreateRequest extends $tea.Model {
579
+ constructor(map) {
580
+ super(map);
581
+ }
582
+ static names() {
583
+ return {
584
+ authToken: 'auth_token',
585
+ productInstanceId: 'product_instance_id',
586
+ };
587
+ }
588
+ static types() {
589
+ return {
590
+ authToken: 'string',
591
+ productInstanceId: 'string',
592
+ };
593
+ }
594
+ }
595
+ exports.EightBenchTestCreateRequest = EightBenchTestCreateRequest;
596
+ class EightBenchTestCreateResponse extends $tea.Model {
597
+ constructor(map) {
598
+ super(map);
599
+ }
600
+ static names() {
601
+ return {
602
+ reqMsgId: 'req_msg_id',
603
+ resultCode: 'result_code',
604
+ resultMsg: 'result_msg',
605
+ };
606
+ }
607
+ static types() {
608
+ return {
609
+ reqMsgId: 'string',
610
+ resultCode: 'string',
611
+ resultMsg: 'string',
612
+ };
613
+ }
614
+ }
615
+ exports.EightBenchTestCreateResponse = EightBenchTestCreateResponse;
616
+ class Client {
617
+ /**
618
+ * @remarks
619
+ * Init client with Config
620
+ *
621
+ * @param config - config contains the necessary information to create a client
622
+ */
623
+ constructor(config) {
624
+ if (tea_util_1.default.isUnset(config)) {
625
+ throw $tea.newError({
626
+ code: "ParameterMissing",
627
+ message: "'config' can not be unset",
628
+ });
629
+ }
630
+ this._accessKeyId = config.accessKeyId;
631
+ this._accessKeySecret = config.accessKeySecret;
632
+ this._securityToken = config.securityToken;
633
+ this._endpoint = config.endpoint;
634
+ this._protocol = config.protocol;
635
+ this._userAgent = config.userAgent;
636
+ this._readTimeout = tea_util_1.default.defaultNumber(config.readTimeout, 20000);
637
+ this._connectTimeout = tea_util_1.default.defaultNumber(config.connectTimeout, 20000);
638
+ this._httpProxy = config.httpProxy;
639
+ this._httpsProxy = config.httpsProxy;
640
+ this._noProxy = config.noProxy;
641
+ this._socks5Proxy = config.socks5Proxy;
642
+ this._socks5NetWork = config.socks5NetWork;
643
+ this._maxIdleConns = tea_util_1.default.defaultNumber(config.maxIdleConns, 60000);
644
+ this._maxIdleTimeMillis = tea_util_1.default.defaultNumber(config.maxIdleTimeMillis, 5);
645
+ this._keepAliveDurationMillis = tea_util_1.default.defaultNumber(config.keepAliveDurationMillis, 5000);
646
+ this._maxRequests = tea_util_1.default.defaultNumber(config.maxRequests, 100);
647
+ this._maxRequestsPerHost = tea_util_1.default.defaultNumber(config.maxRequestsPerHost, 100);
648
+ }
649
+ /**
650
+ * @remarks
651
+ * Encapsulate the request and invoke the network
652
+ *
653
+ * @param action - api name
654
+ * @param protocol - http or https
655
+ * @param method - e.g. GET
656
+ * @param pathname - pathname of every api
657
+ * @param request - which contains request params
658
+ * @param runtime - which controls some details of call api, such as retry times
659
+ * @returns the response
660
+ */
661
+ async doRequest(version, action, protocol, method, pathname, request, headers, runtime) {
662
+ let _runtime = {
663
+ timeouted: "retry",
664
+ readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout),
665
+ connectTimeout: tea_util_1.default.defaultNumber(runtime.connectTimeout, this._connectTimeout),
666
+ httpProxy: tea_util_1.default.defaultString(runtime.httpProxy, this._httpProxy),
667
+ httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy),
668
+ noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
669
+ maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
670
+ maxIdleTimeMillis: this._maxIdleTimeMillis,
671
+ keepAliveDuration: this._keepAliveDurationMillis,
672
+ maxRequests: this._maxRequests,
673
+ maxRequestsPerHost: this._maxRequestsPerHost,
674
+ retry: {
675
+ retryable: runtime.autoretry,
676
+ maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3),
677
+ },
678
+ backoff: {
679
+ policy: tea_util_1.default.defaultString(runtime.backoffPolicy, "no"),
680
+ period: tea_util_1.default.defaultNumber(runtime.backoffPeriod, 1),
681
+ },
682
+ ignoreSSL: runtime.ignoreSSL,
683
+ };
684
+ let _lastRequest = null;
685
+ let _now = Date.now();
686
+ let _retryTimes = 0;
687
+ while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) {
688
+ if (_retryTimes > 0) {
689
+ let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes);
690
+ if (_backoffTime > 0) {
691
+ await $tea.sleep(_backoffTime);
692
+ }
693
+ }
694
+ _retryTimes = _retryTimes + 1;
695
+ try {
696
+ let request_ = new $tea.Request();
697
+ request_.protocol = tea_util_1.default.defaultString(this._protocol, protocol);
698
+ request_.method = method;
699
+ request_.pathname = pathname;
700
+ request_.query = {
701
+ method: action,
702
+ version: version,
703
+ sign_type: "HmacSHA1",
704
+ req_time: alipay_util_1.default.getTimestamp(),
705
+ req_msg_id: alipay_util_1.default.getNonce(),
706
+ access_key: this._accessKeyId,
707
+ base_sdk_version: "TeaSDK-2.0",
708
+ sdk_version: "1.0.0",
709
+ _prod_code: "BENCHTWOCREATE",
710
+ _prod_channel: "default",
711
+ };
712
+ if (!tea_util_1.default.empty(this._securityToken)) {
713
+ request_.query["security_token"] = this._securityToken;
714
+ }
715
+ request_.headers = Object.assign({ host: tea_util_1.default.defaultString(this._endpoint, "openapi.antchain.antgroup.com"), 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, headers);
716
+ let tmp = tea_util_1.default.anyifyMapValue(rpc_util_1.default.query(request));
717
+ request_.body = new $tea.BytesReadable(tea_util_1.default.toFormString(tmp));
718
+ request_.headers["content-type"] = "application/x-www-form-urlencoded";
719
+ let signedParam = Object.assign(Object.assign({}, request_.query), rpc_util_1.default.query(request));
720
+ request_.query["sign"] = alipay_util_1.default.getSignature(signedParam, this._accessKeySecret);
721
+ _lastRequest = request_;
722
+ let response_ = await $tea.doAction(request_, _runtime);
723
+ let raw = await tea_util_1.default.readAsString(response_.body);
724
+ let obj = tea_util_1.default.parseJSON(raw);
725
+ let res = tea_util_1.default.assertAsMap(obj);
726
+ let resp = tea_util_1.default.assertAsMap(res["response"]);
727
+ if (alipay_util_1.default.hasError(raw, this._accessKeySecret)) {
728
+ throw $tea.newError({
729
+ message: resp["result_msg"],
730
+ data: resp,
731
+ code: resp["result_code"],
732
+ });
733
+ }
734
+ return resp;
735
+ }
736
+ catch (ex) {
737
+ if ($tea.isRetryable(ex)) {
738
+ continue;
739
+ }
740
+ throw ex;
741
+ }
742
+ }
743
+ throw $tea.newUnretryableError(_lastRequest);
744
+ }
745
+ /**
746
+ * @remarks
747
+ * Description: 用于个人工作台二期测试使用
748
+ * Summary: 用于个人工作台二期测试使用
749
+ */
750
+ async importAntchainDemosdkCreateThree(request) {
751
+ let runtime = new $Util.RuntimeOptions({});
752
+ let headers = {};
753
+ return await this.importAntchainDemosdkCreateThreeEx(request, headers, runtime);
754
+ }
755
+ /**
756
+ * @remarks
757
+ * Description: 用于个人工作台二期测试使用
758
+ * Summary: 用于个人工作台二期测试使用
759
+ */
760
+ async importAntchainDemosdkCreateThreeEx(request, headers, runtime) {
761
+ tea_util_1.default.validateModel(request);
762
+ return $tea.cast(await this.doRequest("1.0", "antchain.demosdk.create.three.import", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ImportAntchainDemosdkCreateThreeResponse({}));
763
+ }
764
+ /**
765
+ * @remarks
766
+ * Description: 测试使用
767
+ * Summary: 测试使用
768
+ */
769
+ async oneBenchTestCreate(request) {
770
+ let runtime = new $Util.RuntimeOptions({});
771
+ let headers = {};
772
+ return await this.oneBenchTestCreateEx(request, headers, runtime);
773
+ }
774
+ /**
775
+ * @remarks
776
+ * Description: 测试使用
777
+ * Summary: 测试使用
778
+ */
779
+ async oneBenchTestCreateEx(request, headers, runtime) {
780
+ tea_util_1.default.validateModel(request);
781
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.one", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new OneBenchTestCreateResponse({}));
782
+ }
783
+ /**
784
+ * @remarks
785
+ * Description: 工作台二期测试使用
786
+ * Summary: 工作台二期测试使用
787
+ */
788
+ async twoBenchTestCreate(request) {
789
+ let runtime = new $Util.RuntimeOptions({});
790
+ let headers = {};
791
+ return await this.twoBenchTestCreateEx(request, headers, runtime);
792
+ }
793
+ /**
794
+ * @remarks
795
+ * Description: 工作台二期测试使用
796
+ * Summary: 工作台二期测试使用
797
+ */
798
+ async twoBenchTestCreateEx(request, headers, runtime) {
799
+ tea_util_1.default.validateModel(request);
800
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.two", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new TwoBenchTestCreateResponse({}));
801
+ }
802
+ /**
803
+ * @remarks
804
+ * Description: 工作台二期测试使用
805
+ * Summary: 工作台二期测试使用
806
+ */
807
+ async threeBenchTestCreate(request) {
808
+ let runtime = new $Util.RuntimeOptions({});
809
+ let headers = {};
810
+ return await this.threeBenchTestCreateEx(request, headers, runtime);
811
+ }
812
+ /**
813
+ * @remarks
814
+ * Description: 工作台二期测试使用
815
+ * Summary: 工作台二期测试使用
816
+ */
817
+ async threeBenchTestCreateEx(request, headers, runtime) {
818
+ tea_util_1.default.validateModel(request);
819
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.three", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ThreeBenchTestCreateResponse({}));
820
+ }
821
+ /**
822
+ * @remarks
823
+ * Description: 工作台二期测试使用
824
+ * Summary: 工作台二期测试使用
825
+ */
826
+ async fourBenchTestCreate(request) {
827
+ let runtime = new $Util.RuntimeOptions({});
828
+ let headers = {};
829
+ return await this.fourBenchTestCreateEx(request, headers, runtime);
830
+ }
831
+ /**
832
+ * @remarks
833
+ * Description: 工作台二期测试使用
834
+ * Summary: 工作台二期测试使用
835
+ */
836
+ async fourBenchTestCreateEx(request, headers, runtime) {
837
+ tea_util_1.default.validateModel(request);
838
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.four", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new FourBenchTestCreateResponse({}));
839
+ }
840
+ /**
841
+ * @remarks
842
+ * Description: 工作台二期测试使用
843
+ * Summary: 工作台二期测试使用
844
+ */
845
+ async fiveBenchTestCreate(request) {
846
+ let runtime = new $Util.RuntimeOptions({});
847
+ let headers = {};
848
+ return await this.fiveBenchTestCreateEx(request, headers, runtime);
849
+ }
850
+ /**
851
+ * @remarks
852
+ * Description: 工作台二期测试使用
853
+ * Summary: 工作台二期测试使用
854
+ */
855
+ async fiveBenchTestCreateEx(request, headers, runtime) {
856
+ tea_util_1.default.validateModel(request);
857
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.five", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new FiveBenchTestCreateResponse({}));
858
+ }
859
+ /**
860
+ * @remarks
861
+ * Description: 工作台二期测试使用
862
+ * Summary: 工作台二期测试使用
863
+ */
864
+ async sixBenchTestCreate(request) {
865
+ let runtime = new $Util.RuntimeOptions({});
866
+ let headers = {};
867
+ return await this.sixBenchTestCreateEx(request, headers, runtime);
868
+ }
869
+ /**
870
+ * @remarks
871
+ * Description: 工作台二期测试使用
872
+ * Summary: 工作台二期测试使用
873
+ */
874
+ async sixBenchTestCreateEx(request, headers, runtime) {
875
+ tea_util_1.default.validateModel(request);
876
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.six", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SixBenchTestCreateResponse({}));
877
+ }
878
+ /**
879
+ * @remarks
880
+ * Description: 工作台二期测试使用
881
+ * Summary: 工作台二期测试使用
882
+ */
883
+ async sevenBenchTestCreate(request) {
884
+ let runtime = new $Util.RuntimeOptions({});
885
+ let headers = {};
886
+ return await this.sevenBenchTestCreateEx(request, headers, runtime);
887
+ }
888
+ /**
889
+ * @remarks
890
+ * Description: 工作台二期测试使用
891
+ * Summary: 工作台二期测试使用
892
+ */
893
+ async sevenBenchTestCreateEx(request, headers, runtime) {
894
+ tea_util_1.default.validateModel(request);
895
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.seven", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SevenBenchTestCreateResponse({}));
896
+ }
897
+ /**
898
+ * @remarks
899
+ * Description: 工作台二期测试使用
900
+ * Summary: 工作台二期测试使用
901
+ */
902
+ async eightBenchTestCreate(request) {
903
+ let runtime = new $Util.RuntimeOptions({});
904
+ let headers = {};
905
+ return await this.eightBenchTestCreateEx(request, headers, runtime);
906
+ }
907
+ /**
908
+ * @remarks
909
+ * Description: 工作台二期测试使用
910
+ * Summary: 工作台二期测试使用
911
+ */
912
+ async eightBenchTestCreateEx(request, headers, runtime) {
913
+ tea_util_1.default.validateModel(request);
914
+ return $tea.cast(await this.doRequest("1.0", "antdigital.benchtwocreate.bench.test.create.eight", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new EightBenchTestCreateResponse({}));
915
+ }
916
+ }
917
+ exports.default = Client;
918
+ //# sourceMappingURL=client.js.map