@alicloud/eas20210701 1.1.1

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,3608 @@
1
+ "use strict";
2
+ var __importStar = (this && this.__importStar) || function (mod) {
3
+ if (mod && mod.__esModule) return mod;
4
+ var result = {};
5
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
+ result["default"] = mod;
7
+ return result;
8
+ };
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ // This file is auto-generated, don't edit it
14
+ /**
15
+ *
16
+ */
17
+ const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
18
+ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
19
+ const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
+ const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
+ const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class Instance extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ hostIP: 'HostIP',
29
+ hostName: 'HostName',
30
+ innerIP: 'InnerIP',
31
+ instanceName: 'InstanceName',
32
+ instancePort: 'InstancePort',
33
+ lastState: 'LastState',
34
+ readyProcesses: 'ReadyProcesses',
35
+ reason: 'Reason',
36
+ restartCount: 'RestartCount',
37
+ startAt: 'StartAt',
38
+ status: 'Status',
39
+ totalProcesses: 'TotalProcesses',
40
+ };
41
+ }
42
+ static types() {
43
+ return {
44
+ hostIP: 'string',
45
+ hostName: 'string',
46
+ innerIP: 'string',
47
+ instanceName: 'string',
48
+ instancePort: 'number',
49
+ lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
50
+ readyProcesses: 'number',
51
+ reason: 'string',
52
+ restartCount: 'number',
53
+ startAt: 'string',
54
+ status: 'string',
55
+ totalProcesses: 'number',
56
+ };
57
+ }
58
+ }
59
+ exports.Instance = Instance;
60
+ class Resource extends $tea.Model {
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ static names() {
65
+ return {
66
+ clusterId: 'ClusterId',
67
+ cpuCount: 'CpuCount',
68
+ createTime: 'CreateTime',
69
+ extraData: 'ExtraData',
70
+ gpuCount: 'GpuCount',
71
+ instanceCount: 'InstanceCount',
72
+ message: 'Message',
73
+ postPaidInstanceCount: 'PostPaidInstanceCount',
74
+ prePaidInstanceCount: 'PrePaidInstanceCount',
75
+ resourceId: 'ResourceId',
76
+ resourceName: 'ResourceName',
77
+ status: 'Status',
78
+ updateTime: 'UpdateTime',
79
+ };
80
+ }
81
+ static types() {
82
+ return {
83
+ clusterId: 'string',
84
+ cpuCount: 'number',
85
+ createTime: 'string',
86
+ extraData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
87
+ gpuCount: 'number',
88
+ instanceCount: 'number',
89
+ message: 'string',
90
+ postPaidInstanceCount: 'number',
91
+ prePaidInstanceCount: 'number',
92
+ resourceId: 'string',
93
+ resourceName: 'string',
94
+ status: 'string',
95
+ updateTime: 'string',
96
+ };
97
+ }
98
+ }
99
+ exports.Resource = Resource;
100
+ class ResourceInstance extends $tea.Model {
101
+ constructor(map) {
102
+ super(map);
103
+ }
104
+ static names() {
105
+ return {
106
+ autoRenewal: 'AutoRenewal',
107
+ chargeType: 'ChargeType',
108
+ createTime: 'CreateTime',
109
+ expiredTime: 'ExpiredTime',
110
+ instanceCpuCount: 'InstanceCpuCount',
111
+ instanceGpuCount: 'InstanceGpuCount',
112
+ instanceId: 'InstanceId',
113
+ instanceIp: 'InstanceIp',
114
+ instanceMemory: 'InstanceMemory',
115
+ instanceName: 'InstanceName',
116
+ instanceStatus: 'InstanceStatus',
117
+ instanceType: 'InstanceType',
118
+ instanceUsedCpu: 'InstanceUsedCpu',
119
+ instanceUsedGpu: 'InstanceUsedGpu',
120
+ instanceUsedMemory: 'InstanceUsedMemory',
121
+ };
122
+ }
123
+ static types() {
124
+ return {
125
+ autoRenewal: 'boolean',
126
+ chargeType: 'string',
127
+ createTime: 'string',
128
+ expiredTime: 'string',
129
+ instanceCpuCount: 'number',
130
+ instanceGpuCount: 'number',
131
+ instanceId: 'string',
132
+ instanceIp: 'string',
133
+ instanceMemory: 'string',
134
+ instanceName: 'string',
135
+ instanceStatus: 'string',
136
+ instanceType: 'string',
137
+ instanceUsedCpu: 'number',
138
+ instanceUsedGpu: 'number',
139
+ instanceUsedMemory: 'string',
140
+ };
141
+ }
142
+ }
143
+ exports.ResourceInstance = ResourceInstance;
144
+ class ResourceInstanceWorker extends $tea.Model {
145
+ constructor(map) {
146
+ super(map);
147
+ }
148
+ static names() {
149
+ return {
150
+ cpuLimit: 'CpuLimit',
151
+ cpuRequest: 'CpuRequest',
152
+ gpuLimit: 'GpuLimit',
153
+ gpuRequest: 'GpuRequest',
154
+ memoryLimit: 'MemoryLimit',
155
+ memoryRquest: 'MemoryRquest',
156
+ name: 'Name',
157
+ ready: 'Ready',
158
+ restartCount: 'RestartCount',
159
+ serviceName: 'ServiceName',
160
+ startTime: 'StartTime',
161
+ status: 'Status',
162
+ };
163
+ }
164
+ static types() {
165
+ return {
166
+ cpuLimit: 'number',
167
+ cpuRequest: 'number',
168
+ gpuLimit: 'number',
169
+ gpuRequest: 'number',
170
+ memoryLimit: 'number',
171
+ memoryRquest: 'number',
172
+ name: 'string',
173
+ ready: 'boolean',
174
+ restartCount: 'number',
175
+ serviceName: 'string',
176
+ startTime: 'string',
177
+ status: 'string',
178
+ };
179
+ }
180
+ }
181
+ exports.ResourceInstanceWorker = ResourceInstanceWorker;
182
+ class Service extends $tea.Model {
183
+ constructor(map) {
184
+ super(map);
185
+ }
186
+ static names() {
187
+ return {
188
+ accessToken: 'AccessToken',
189
+ callerUid: 'CallerUid',
190
+ cpu: 'Cpu',
191
+ createTime: 'CreateTime',
192
+ currentVersion: 'CurrentVersion',
193
+ gpu: 'Gpu',
194
+ image: 'Image',
195
+ internetEndpoint: 'InternetEndpoint',
196
+ intranetEndpoint: 'IntranetEndpoint',
197
+ latestVersion: 'LatestVersion',
198
+ memory: 'Memory',
199
+ message: 'Message',
200
+ namespace: 'Namespace',
201
+ parentUid: 'ParentUid',
202
+ pendingInstance: 'PendingInstance',
203
+ reason: 'Reason',
204
+ region: 'Region',
205
+ requestId: 'RequestId',
206
+ resource: 'Resource',
207
+ runningInstance: 'RunningInstance',
208
+ serviceConfig: 'ServiceConfig',
209
+ serviceId: 'ServiceId',
210
+ serviceName: 'ServiceName',
211
+ status: 'Status',
212
+ totalInstance: 'TotalInstance',
213
+ updatetime: 'Updatetime',
214
+ weight: 'Weight',
215
+ };
216
+ }
217
+ static types() {
218
+ return {
219
+ accessToken: 'string',
220
+ callerUid: 'string',
221
+ cpu: 'number',
222
+ createTime: 'string',
223
+ currentVersion: 'number',
224
+ gpu: 'number',
225
+ image: 'string',
226
+ internetEndpoint: 'string',
227
+ intranetEndpoint: 'string',
228
+ latestVersion: 'number',
229
+ memory: 'number',
230
+ message: 'string',
231
+ namespace: 'string',
232
+ parentUid: 'string',
233
+ pendingInstance: 'number',
234
+ reason: 'string',
235
+ region: 'string',
236
+ requestId: 'string',
237
+ resource: 'string',
238
+ runningInstance: 'number',
239
+ serviceConfig: 'string',
240
+ serviceId: 'string',
241
+ serviceName: 'string',
242
+ status: 'string',
243
+ totalInstance: 'number',
244
+ updatetime: 'string',
245
+ weight: 'number',
246
+ };
247
+ }
248
+ }
249
+ exports.Service = Service;
250
+ class CreateResourceRequest extends $tea.Model {
251
+ constructor(map) {
252
+ super(map);
253
+ }
254
+ static names() {
255
+ return {
256
+ autoRenewal: 'AutoRenewal',
257
+ chargeType: 'ChargeType',
258
+ ecsInstanceCount: 'EcsInstanceCount',
259
+ ecsInstanceType: 'EcsInstanceType',
260
+ };
261
+ }
262
+ static types() {
263
+ return {
264
+ autoRenewal: 'boolean',
265
+ chargeType: 'string',
266
+ ecsInstanceCount: 'number',
267
+ ecsInstanceType: 'string',
268
+ };
269
+ }
270
+ }
271
+ exports.CreateResourceRequest = CreateResourceRequest;
272
+ class CreateResourceResponseBody extends $tea.Model {
273
+ constructor(map) {
274
+ super(map);
275
+ }
276
+ static names() {
277
+ return {
278
+ clusterId: 'ClusterId',
279
+ ownerUid: 'OwnerUid',
280
+ requestId: 'RequestId',
281
+ resourceID: 'ResourceID',
282
+ resourceName: 'ResourceName',
283
+ };
284
+ }
285
+ static types() {
286
+ return {
287
+ clusterId: 'string',
288
+ ownerUid: 'string',
289
+ requestId: 'string',
290
+ resourceID: 'string',
291
+ resourceName: 'string',
292
+ };
293
+ }
294
+ }
295
+ exports.CreateResourceResponseBody = CreateResourceResponseBody;
296
+ class CreateResourceResponse extends $tea.Model {
297
+ constructor(map) {
298
+ super(map);
299
+ }
300
+ static names() {
301
+ return {
302
+ headers: 'headers',
303
+ body: 'body',
304
+ };
305
+ }
306
+ static types() {
307
+ return {
308
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
309
+ body: CreateResourceResponseBody,
310
+ };
311
+ }
312
+ }
313
+ exports.CreateResourceResponse = CreateResourceResponse;
314
+ class CreateResourceInstancesRequest extends $tea.Model {
315
+ constructor(map) {
316
+ super(map);
317
+ }
318
+ static names() {
319
+ return {
320
+ autoRenewal: 'AutoRenewal',
321
+ chargeType: 'ChargeType',
322
+ ecsInstanceCount: 'EcsInstanceCount',
323
+ ecsInstanceType: 'EcsInstanceType',
324
+ userData: 'UserData',
325
+ };
326
+ }
327
+ static types() {
328
+ return {
329
+ autoRenewal: 'boolean',
330
+ chargeType: 'string',
331
+ ecsInstanceCount: 'number',
332
+ ecsInstanceType: 'string',
333
+ userData: 'string',
334
+ };
335
+ }
336
+ }
337
+ exports.CreateResourceInstancesRequest = CreateResourceInstancesRequest;
338
+ class CreateResourceInstancesResponseBody extends $tea.Model {
339
+ constructor(map) {
340
+ super(map);
341
+ }
342
+ static names() {
343
+ return {
344
+ message: 'Message',
345
+ requestId: 'RequestId',
346
+ };
347
+ }
348
+ static types() {
349
+ return {
350
+ message: 'string',
351
+ requestId: 'string',
352
+ };
353
+ }
354
+ }
355
+ exports.CreateResourceInstancesResponseBody = CreateResourceInstancesResponseBody;
356
+ class CreateResourceInstancesResponse extends $tea.Model {
357
+ constructor(map) {
358
+ super(map);
359
+ }
360
+ static names() {
361
+ return {
362
+ headers: 'headers',
363
+ body: 'body',
364
+ };
365
+ }
366
+ static types() {
367
+ return {
368
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
369
+ body: CreateResourceInstancesResponseBody,
370
+ };
371
+ }
372
+ }
373
+ exports.CreateResourceInstancesResponse = CreateResourceInstancesResponse;
374
+ class CreateResourceLogRequest extends $tea.Model {
375
+ constructor(map) {
376
+ super(map);
377
+ }
378
+ static names() {
379
+ return {
380
+ logStore: 'LogStore',
381
+ projectName: 'ProjectName',
382
+ };
383
+ }
384
+ static types() {
385
+ return {
386
+ logStore: 'string',
387
+ projectName: 'string',
388
+ };
389
+ }
390
+ }
391
+ exports.CreateResourceLogRequest = CreateResourceLogRequest;
392
+ class CreateResourceLogResponseBody extends $tea.Model {
393
+ constructor(map) {
394
+ super(map);
395
+ }
396
+ static names() {
397
+ return {
398
+ message: 'Message',
399
+ requestId: 'RequestId',
400
+ };
401
+ }
402
+ static types() {
403
+ return {
404
+ message: 'string',
405
+ requestId: 'string',
406
+ };
407
+ }
408
+ }
409
+ exports.CreateResourceLogResponseBody = CreateResourceLogResponseBody;
410
+ class CreateResourceLogResponse extends $tea.Model {
411
+ constructor(map) {
412
+ super(map);
413
+ }
414
+ static names() {
415
+ return {
416
+ headers: 'headers',
417
+ body: 'body',
418
+ };
419
+ }
420
+ static types() {
421
+ return {
422
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
423
+ body: CreateResourceLogResponseBody,
424
+ };
425
+ }
426
+ }
427
+ exports.CreateResourceLogResponse = CreateResourceLogResponse;
428
+ class CreateServiceRequest extends $tea.Model {
429
+ constructor(map) {
430
+ super(map);
431
+ }
432
+ static names() {
433
+ return {
434
+ body: 'body',
435
+ };
436
+ }
437
+ static types() {
438
+ return {
439
+ body: 'string',
440
+ };
441
+ }
442
+ }
443
+ exports.CreateServiceRequest = CreateServiceRequest;
444
+ class CreateServiceResponseBody extends $tea.Model {
445
+ constructor(map) {
446
+ super(map);
447
+ }
448
+ static names() {
449
+ return {
450
+ internetEndpoint: 'InternetEndpoint',
451
+ intranetEndpoint: 'IntranetEndpoint',
452
+ region: 'Region',
453
+ requestId: 'RequestId',
454
+ serviceId: 'ServiceId',
455
+ serviceName: 'ServiceName',
456
+ status: 'Status',
457
+ };
458
+ }
459
+ static types() {
460
+ return {
461
+ internetEndpoint: 'string',
462
+ intranetEndpoint: 'string',
463
+ region: 'string',
464
+ requestId: 'string',
465
+ serviceId: 'string',
466
+ serviceName: 'string',
467
+ status: 'string',
468
+ };
469
+ }
470
+ }
471
+ exports.CreateServiceResponseBody = CreateServiceResponseBody;
472
+ class CreateServiceResponse extends $tea.Model {
473
+ constructor(map) {
474
+ super(map);
475
+ }
476
+ static names() {
477
+ return {
478
+ headers: 'headers',
479
+ body: 'body',
480
+ };
481
+ }
482
+ static types() {
483
+ return {
484
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
485
+ body: CreateServiceResponseBody,
486
+ };
487
+ }
488
+ }
489
+ exports.CreateServiceResponse = CreateServiceResponse;
490
+ class CreateServiceAutoScalerRequest extends $tea.Model {
491
+ constructor(map) {
492
+ super(map);
493
+ }
494
+ static names() {
495
+ return {
496
+ max: 'Max',
497
+ min: 'Min',
498
+ strategies: 'Strategies',
499
+ };
500
+ }
501
+ static types() {
502
+ return {
503
+ max: 'number',
504
+ min: 'number',
505
+ strategies: CreateServiceAutoScalerRequestStrategies,
506
+ };
507
+ }
508
+ }
509
+ exports.CreateServiceAutoScalerRequest = CreateServiceAutoScalerRequest;
510
+ class CreateServiceAutoScalerResponseBody extends $tea.Model {
511
+ constructor(map) {
512
+ super(map);
513
+ }
514
+ static names() {
515
+ return {
516
+ message: 'Message',
517
+ requestId: 'RequestId',
518
+ };
519
+ }
520
+ static types() {
521
+ return {
522
+ message: 'string',
523
+ requestId: 'string',
524
+ };
525
+ }
526
+ }
527
+ exports.CreateServiceAutoScalerResponseBody = CreateServiceAutoScalerResponseBody;
528
+ class CreateServiceAutoScalerResponse extends $tea.Model {
529
+ constructor(map) {
530
+ super(map);
531
+ }
532
+ static names() {
533
+ return {
534
+ headers: 'headers',
535
+ body: 'body',
536
+ };
537
+ }
538
+ static types() {
539
+ return {
540
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
541
+ body: CreateServiceAutoScalerResponseBody,
542
+ };
543
+ }
544
+ }
545
+ exports.CreateServiceAutoScalerResponse = CreateServiceAutoScalerResponse;
546
+ class CreateServiceCronScalerRequest extends $tea.Model {
547
+ constructor(map) {
548
+ super(map);
549
+ }
550
+ static names() {
551
+ return {
552
+ excludeDates: 'ExcludeDates',
553
+ scaleJobs: 'ScaleJobs',
554
+ };
555
+ }
556
+ static types() {
557
+ return {
558
+ excludeDates: { 'type': 'array', 'itemType': 'string' },
559
+ scaleJobs: { 'type': 'array', 'itemType': CreateServiceCronScalerRequestScaleJobs },
560
+ };
561
+ }
562
+ }
563
+ exports.CreateServiceCronScalerRequest = CreateServiceCronScalerRequest;
564
+ class CreateServiceCronScalerResponseBody extends $tea.Model {
565
+ constructor(map) {
566
+ super(map);
567
+ }
568
+ static names() {
569
+ return {
570
+ message: 'Message',
571
+ requestId: 'RequestId',
572
+ };
573
+ }
574
+ static types() {
575
+ return {
576
+ message: 'string',
577
+ requestId: 'string',
578
+ };
579
+ }
580
+ }
581
+ exports.CreateServiceCronScalerResponseBody = CreateServiceCronScalerResponseBody;
582
+ class CreateServiceCronScalerResponse extends $tea.Model {
583
+ constructor(map) {
584
+ super(map);
585
+ }
586
+ static names() {
587
+ return {
588
+ headers: 'headers',
589
+ body: 'body',
590
+ };
591
+ }
592
+ static types() {
593
+ return {
594
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
595
+ body: CreateServiceCronScalerResponseBody,
596
+ };
597
+ }
598
+ }
599
+ exports.CreateServiceCronScalerResponse = CreateServiceCronScalerResponse;
600
+ class CreateServiceMirrorRequest extends $tea.Model {
601
+ constructor(map) {
602
+ super(map);
603
+ }
604
+ static names() {
605
+ return {
606
+ ratio: 'Ratio',
607
+ target: 'Target',
608
+ };
609
+ }
610
+ static types() {
611
+ return {
612
+ ratio: 'number',
613
+ target: { 'type': 'array', 'itemType': 'string' },
614
+ };
615
+ }
616
+ }
617
+ exports.CreateServiceMirrorRequest = CreateServiceMirrorRequest;
618
+ class CreateServiceMirrorResponseBody extends $tea.Model {
619
+ constructor(map) {
620
+ super(map);
621
+ }
622
+ static names() {
623
+ return {
624
+ message: 'Message',
625
+ requestId: 'RequestId',
626
+ };
627
+ }
628
+ static types() {
629
+ return {
630
+ message: 'string',
631
+ requestId: 'string',
632
+ };
633
+ }
634
+ }
635
+ exports.CreateServiceMirrorResponseBody = CreateServiceMirrorResponseBody;
636
+ class CreateServiceMirrorResponse extends $tea.Model {
637
+ constructor(map) {
638
+ super(map);
639
+ }
640
+ static names() {
641
+ return {
642
+ headers: 'headers',
643
+ body: 'body',
644
+ };
645
+ }
646
+ static types() {
647
+ return {
648
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
649
+ body: CreateServiceMirrorResponseBody,
650
+ };
651
+ }
652
+ }
653
+ exports.CreateServiceMirrorResponse = CreateServiceMirrorResponse;
654
+ class DeleteResourceResponseBody extends $tea.Model {
655
+ constructor(map) {
656
+ super(map);
657
+ }
658
+ static names() {
659
+ return {
660
+ message: 'Message',
661
+ requestId: 'RequestId',
662
+ };
663
+ }
664
+ static types() {
665
+ return {
666
+ message: 'string',
667
+ requestId: 'string',
668
+ };
669
+ }
670
+ }
671
+ exports.DeleteResourceResponseBody = DeleteResourceResponseBody;
672
+ class DeleteResourceResponse extends $tea.Model {
673
+ constructor(map) {
674
+ super(map);
675
+ }
676
+ static names() {
677
+ return {
678
+ headers: 'headers',
679
+ body: 'body',
680
+ };
681
+ }
682
+ static types() {
683
+ return {
684
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
685
+ body: DeleteResourceResponseBody,
686
+ };
687
+ }
688
+ }
689
+ exports.DeleteResourceResponse = DeleteResourceResponse;
690
+ class DeleteResourceDLinkResponseBody extends $tea.Model {
691
+ constructor(map) {
692
+ super(map);
693
+ }
694
+ static names() {
695
+ return {
696
+ message: 'Message',
697
+ requestId: 'RequestId',
698
+ };
699
+ }
700
+ static types() {
701
+ return {
702
+ message: 'string',
703
+ requestId: 'string',
704
+ };
705
+ }
706
+ }
707
+ exports.DeleteResourceDLinkResponseBody = DeleteResourceDLinkResponseBody;
708
+ class DeleteResourceDLinkResponse extends $tea.Model {
709
+ constructor(map) {
710
+ super(map);
711
+ }
712
+ static names() {
713
+ return {
714
+ headers: 'headers',
715
+ body: 'body',
716
+ };
717
+ }
718
+ static types() {
719
+ return {
720
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
721
+ body: DeleteResourceDLinkResponseBody,
722
+ };
723
+ }
724
+ }
725
+ exports.DeleteResourceDLinkResponse = DeleteResourceDLinkResponse;
726
+ class DeleteResourceInstancesRequest extends $tea.Model {
727
+ constructor(map) {
728
+ super(map);
729
+ }
730
+ static names() {
731
+ return {
732
+ allFailed: 'AllFailed',
733
+ instanceList: 'InstanceList',
734
+ };
735
+ }
736
+ static types() {
737
+ return {
738
+ allFailed: 'boolean',
739
+ instanceList: 'string',
740
+ };
741
+ }
742
+ }
743
+ exports.DeleteResourceInstancesRequest = DeleteResourceInstancesRequest;
744
+ class DeleteResourceInstancesResponseBody extends $tea.Model {
745
+ constructor(map) {
746
+ super(map);
747
+ }
748
+ static names() {
749
+ return {
750
+ message: 'Message',
751
+ requestId: 'RequestId',
752
+ };
753
+ }
754
+ static types() {
755
+ return {
756
+ message: 'string',
757
+ requestId: 'string',
758
+ };
759
+ }
760
+ }
761
+ exports.DeleteResourceInstancesResponseBody = DeleteResourceInstancesResponseBody;
762
+ class DeleteResourceInstancesResponse extends $tea.Model {
763
+ constructor(map) {
764
+ super(map);
765
+ }
766
+ static names() {
767
+ return {
768
+ headers: 'headers',
769
+ body: 'body',
770
+ };
771
+ }
772
+ static types() {
773
+ return {
774
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
775
+ body: DeleteResourceInstancesResponseBody,
776
+ };
777
+ }
778
+ }
779
+ exports.DeleteResourceInstancesResponse = DeleteResourceInstancesResponse;
780
+ class DeleteResourceLogResponseBody extends $tea.Model {
781
+ constructor(map) {
782
+ super(map);
783
+ }
784
+ static names() {
785
+ return {
786
+ message: 'Message',
787
+ requestId: 'RequestId',
788
+ };
789
+ }
790
+ static types() {
791
+ return {
792
+ message: 'string',
793
+ requestId: 'string',
794
+ };
795
+ }
796
+ }
797
+ exports.DeleteResourceLogResponseBody = DeleteResourceLogResponseBody;
798
+ class DeleteResourceLogResponse extends $tea.Model {
799
+ constructor(map) {
800
+ super(map);
801
+ }
802
+ static names() {
803
+ return {
804
+ headers: 'headers',
805
+ body: 'body',
806
+ };
807
+ }
808
+ static types() {
809
+ return {
810
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
811
+ body: DeleteResourceLogResponseBody,
812
+ };
813
+ }
814
+ }
815
+ exports.DeleteResourceLogResponse = DeleteResourceLogResponse;
816
+ class DeleteServiceResponseBody extends $tea.Model {
817
+ constructor(map) {
818
+ super(map);
819
+ }
820
+ static names() {
821
+ return {
822
+ message: 'Message',
823
+ requestId: 'RequestId',
824
+ };
825
+ }
826
+ static types() {
827
+ return {
828
+ message: 'string',
829
+ requestId: 'string',
830
+ };
831
+ }
832
+ }
833
+ exports.DeleteServiceResponseBody = DeleteServiceResponseBody;
834
+ class DeleteServiceResponse extends $tea.Model {
835
+ constructor(map) {
836
+ super(map);
837
+ }
838
+ static names() {
839
+ return {
840
+ headers: 'headers',
841
+ body: 'body',
842
+ };
843
+ }
844
+ static types() {
845
+ return {
846
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
847
+ body: DeleteServiceResponseBody,
848
+ };
849
+ }
850
+ }
851
+ exports.DeleteServiceResponse = DeleteServiceResponse;
852
+ class DeleteServiceAutoScalerResponseBody extends $tea.Model {
853
+ constructor(map) {
854
+ super(map);
855
+ }
856
+ static names() {
857
+ return {
858
+ message: 'Message',
859
+ requestId: 'RequestId',
860
+ };
861
+ }
862
+ static types() {
863
+ return {
864
+ message: 'string',
865
+ requestId: 'string',
866
+ };
867
+ }
868
+ }
869
+ exports.DeleteServiceAutoScalerResponseBody = DeleteServiceAutoScalerResponseBody;
870
+ class DeleteServiceAutoScalerResponse extends $tea.Model {
871
+ constructor(map) {
872
+ super(map);
873
+ }
874
+ static names() {
875
+ return {
876
+ headers: 'headers',
877
+ body: 'body',
878
+ };
879
+ }
880
+ static types() {
881
+ return {
882
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
883
+ body: DeleteServiceAutoScalerResponseBody,
884
+ };
885
+ }
886
+ }
887
+ exports.DeleteServiceAutoScalerResponse = DeleteServiceAutoScalerResponse;
888
+ class DeleteServiceCronScalerResponseBody extends $tea.Model {
889
+ constructor(map) {
890
+ super(map);
891
+ }
892
+ static names() {
893
+ return {
894
+ message: 'Message',
895
+ requestId: 'RequestId',
896
+ };
897
+ }
898
+ static types() {
899
+ return {
900
+ message: 'string',
901
+ requestId: 'string',
902
+ };
903
+ }
904
+ }
905
+ exports.DeleteServiceCronScalerResponseBody = DeleteServiceCronScalerResponseBody;
906
+ class DeleteServiceCronScalerResponse extends $tea.Model {
907
+ constructor(map) {
908
+ super(map);
909
+ }
910
+ static names() {
911
+ return {
912
+ headers: 'headers',
913
+ body: 'body',
914
+ };
915
+ }
916
+ static types() {
917
+ return {
918
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
919
+ body: DeleteServiceCronScalerResponseBody,
920
+ };
921
+ }
922
+ }
923
+ exports.DeleteServiceCronScalerResponse = DeleteServiceCronScalerResponse;
924
+ class DeleteServiceInstancesRequest extends $tea.Model {
925
+ constructor(map) {
926
+ super(map);
927
+ }
928
+ static names() {
929
+ return {
930
+ instanceList: 'InstanceList',
931
+ };
932
+ }
933
+ static types() {
934
+ return {
935
+ instanceList: 'string',
936
+ };
937
+ }
938
+ }
939
+ exports.DeleteServiceInstancesRequest = DeleteServiceInstancesRequest;
940
+ class DeleteServiceInstancesResponseBody extends $tea.Model {
941
+ constructor(map) {
942
+ super(map);
943
+ }
944
+ static names() {
945
+ return {
946
+ message: 'Message',
947
+ requestId: 'RequestId',
948
+ };
949
+ }
950
+ static types() {
951
+ return {
952
+ message: 'string',
953
+ requestId: 'string',
954
+ };
955
+ }
956
+ }
957
+ exports.DeleteServiceInstancesResponseBody = DeleteServiceInstancesResponseBody;
958
+ class DeleteServiceInstancesResponse extends $tea.Model {
959
+ constructor(map) {
960
+ super(map);
961
+ }
962
+ static names() {
963
+ return {
964
+ headers: 'headers',
965
+ body: 'body',
966
+ };
967
+ }
968
+ static types() {
969
+ return {
970
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
971
+ body: DeleteServiceInstancesResponseBody,
972
+ };
973
+ }
974
+ }
975
+ exports.DeleteServiceInstancesResponse = DeleteServiceInstancesResponse;
976
+ class DeleteServiceMirrorResponseBody extends $tea.Model {
977
+ constructor(map) {
978
+ super(map);
979
+ }
980
+ static names() {
981
+ return {
982
+ message: 'Message',
983
+ requestId: 'RequestId',
984
+ };
985
+ }
986
+ static types() {
987
+ return {
988
+ message: 'string',
989
+ requestId: 'string',
990
+ };
991
+ }
992
+ }
993
+ exports.DeleteServiceMirrorResponseBody = DeleteServiceMirrorResponseBody;
994
+ class DeleteServiceMirrorResponse extends $tea.Model {
995
+ constructor(map) {
996
+ super(map);
997
+ }
998
+ static names() {
999
+ return {
1000
+ headers: 'headers',
1001
+ body: 'body',
1002
+ };
1003
+ }
1004
+ static types() {
1005
+ return {
1006
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1007
+ body: DeleteServiceMirrorResponseBody,
1008
+ };
1009
+ }
1010
+ }
1011
+ exports.DeleteServiceMirrorResponse = DeleteServiceMirrorResponse;
1012
+ class DescribeResourceResponseBody extends $tea.Model {
1013
+ constructor(map) {
1014
+ super(map);
1015
+ }
1016
+ static names() {
1017
+ return {
1018
+ clusterId: 'ClusterId',
1019
+ cpuCount: 'CpuCount',
1020
+ createTime: 'CreateTime',
1021
+ extraData: 'ExtraData',
1022
+ gpuCount: 'GpuCount',
1023
+ instanceCount: 'InstanceCount',
1024
+ message: 'Message',
1025
+ ownerUid: 'OwnerUid',
1026
+ postPaidInstanceCount: 'PostPaidInstanceCount',
1027
+ prePaidInstanceCount: 'PrePaidInstanceCount',
1028
+ requestId: 'RequestId',
1029
+ resourceId: 'ResourceId',
1030
+ resourceName: 'ResourceName',
1031
+ status: 'Status',
1032
+ updateTime: 'UpdateTime',
1033
+ };
1034
+ }
1035
+ static types() {
1036
+ return {
1037
+ clusterId: 'string',
1038
+ cpuCount: 'number',
1039
+ createTime: 'string',
1040
+ extraData: 'string',
1041
+ gpuCount: 'number',
1042
+ instanceCount: 'number',
1043
+ message: 'string',
1044
+ ownerUid: 'string',
1045
+ postPaidInstanceCount: 'number',
1046
+ prePaidInstanceCount: 'number',
1047
+ requestId: 'string',
1048
+ resourceId: 'string',
1049
+ resourceName: 'string',
1050
+ status: 'string',
1051
+ updateTime: 'string',
1052
+ };
1053
+ }
1054
+ }
1055
+ exports.DescribeResourceResponseBody = DescribeResourceResponseBody;
1056
+ class DescribeResourceResponse extends $tea.Model {
1057
+ constructor(map) {
1058
+ super(map);
1059
+ }
1060
+ static names() {
1061
+ return {
1062
+ headers: 'headers',
1063
+ body: 'body',
1064
+ };
1065
+ }
1066
+ static types() {
1067
+ return {
1068
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1069
+ body: DescribeResourceResponseBody,
1070
+ };
1071
+ }
1072
+ }
1073
+ exports.DescribeResourceResponse = DescribeResourceResponse;
1074
+ class DescribeResourceDLinkResponseBody extends $tea.Model {
1075
+ constructor(map) {
1076
+ super(map);
1077
+ }
1078
+ static names() {
1079
+ return {
1080
+ auxVSwitchList: 'AuxVSwitchList',
1081
+ destinationCIDRs: 'DestinationCIDRs',
1082
+ requestId: 'RequestId',
1083
+ securityGroupId: 'SecurityGroupId',
1084
+ vSwitchId: 'VSwitchId',
1085
+ vpcId: 'VpcId',
1086
+ };
1087
+ }
1088
+ static types() {
1089
+ return {
1090
+ auxVSwitchList: { 'type': 'array', 'itemType': 'string' },
1091
+ destinationCIDRs: 'string',
1092
+ requestId: 'string',
1093
+ securityGroupId: 'string',
1094
+ vSwitchId: 'string',
1095
+ vpcId: 'string',
1096
+ };
1097
+ }
1098
+ }
1099
+ exports.DescribeResourceDLinkResponseBody = DescribeResourceDLinkResponseBody;
1100
+ class DescribeResourceDLinkResponse extends $tea.Model {
1101
+ constructor(map) {
1102
+ super(map);
1103
+ }
1104
+ static names() {
1105
+ return {
1106
+ headers: 'headers',
1107
+ body: 'body',
1108
+ };
1109
+ }
1110
+ static types() {
1111
+ return {
1112
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1113
+ body: DescribeResourceDLinkResponseBody,
1114
+ };
1115
+ }
1116
+ }
1117
+ exports.DescribeResourceDLinkResponse = DescribeResourceDLinkResponse;
1118
+ class DescribeResourceLogResponseBody extends $tea.Model {
1119
+ constructor(map) {
1120
+ super(map);
1121
+ }
1122
+ static names() {
1123
+ return {
1124
+ logStore: 'LogStore',
1125
+ message: 'Message',
1126
+ projectName: 'ProjectName',
1127
+ requestId: 'RequestId',
1128
+ status: 'Status',
1129
+ };
1130
+ }
1131
+ static types() {
1132
+ return {
1133
+ logStore: 'string',
1134
+ message: 'string',
1135
+ projectName: 'string',
1136
+ requestId: 'string',
1137
+ status: 'string',
1138
+ };
1139
+ }
1140
+ }
1141
+ exports.DescribeResourceLogResponseBody = DescribeResourceLogResponseBody;
1142
+ class DescribeResourceLogResponse extends $tea.Model {
1143
+ constructor(map) {
1144
+ super(map);
1145
+ }
1146
+ static names() {
1147
+ return {
1148
+ headers: 'headers',
1149
+ body: 'body',
1150
+ };
1151
+ }
1152
+ static types() {
1153
+ return {
1154
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1155
+ body: DescribeResourceLogResponseBody,
1156
+ };
1157
+ }
1158
+ }
1159
+ exports.DescribeResourceLogResponse = DescribeResourceLogResponse;
1160
+ class DescribeServiceResponse extends $tea.Model {
1161
+ constructor(map) {
1162
+ super(map);
1163
+ }
1164
+ static names() {
1165
+ return {
1166
+ headers: 'headers',
1167
+ body: 'body',
1168
+ };
1169
+ }
1170
+ static types() {
1171
+ return {
1172
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1173
+ body: Service,
1174
+ };
1175
+ }
1176
+ }
1177
+ exports.DescribeServiceResponse = DescribeServiceResponse;
1178
+ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1179
+ constructor(map) {
1180
+ super(map);
1181
+ }
1182
+ static names() {
1183
+ return {
1184
+ maxReplica: 'MaxReplica',
1185
+ minReplica: 'MinReplica',
1186
+ requestId: 'RequestId',
1187
+ serviceName: 'ServiceName',
1188
+ strategies: 'Strategies',
1189
+ };
1190
+ }
1191
+ static types() {
1192
+ return {
1193
+ maxReplica: 'number',
1194
+ minReplica: 'number',
1195
+ requestId: 'string',
1196
+ serviceName: 'string',
1197
+ strategies: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1198
+ };
1199
+ }
1200
+ }
1201
+ exports.DescribeServiceAutoScalerResponseBody = DescribeServiceAutoScalerResponseBody;
1202
+ class DescribeServiceAutoScalerResponse extends $tea.Model {
1203
+ constructor(map) {
1204
+ super(map);
1205
+ }
1206
+ static names() {
1207
+ return {
1208
+ headers: 'headers',
1209
+ body: 'body',
1210
+ };
1211
+ }
1212
+ static types() {
1213
+ return {
1214
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1215
+ body: DescribeServiceAutoScalerResponseBody,
1216
+ };
1217
+ }
1218
+ }
1219
+ exports.DescribeServiceAutoScalerResponse = DescribeServiceAutoScalerResponse;
1220
+ class DescribeServiceCronScalerResponseBody extends $tea.Model {
1221
+ constructor(map) {
1222
+ super(map);
1223
+ }
1224
+ static names() {
1225
+ return {
1226
+ excludeDates: 'ExcludeDates',
1227
+ requestId: 'RequestId',
1228
+ scaleJobs: 'ScaleJobs',
1229
+ serviceName: 'ServiceName',
1230
+ };
1231
+ }
1232
+ static types() {
1233
+ return {
1234
+ excludeDates: { 'type': 'array', 'itemType': 'string' },
1235
+ requestId: 'string',
1236
+ scaleJobs: { 'type': 'array', 'itemType': DescribeServiceCronScalerResponseBodyScaleJobs },
1237
+ serviceName: 'string',
1238
+ };
1239
+ }
1240
+ }
1241
+ exports.DescribeServiceCronScalerResponseBody = DescribeServiceCronScalerResponseBody;
1242
+ class DescribeServiceCronScalerResponse extends $tea.Model {
1243
+ constructor(map) {
1244
+ super(map);
1245
+ }
1246
+ static names() {
1247
+ return {
1248
+ headers: 'headers',
1249
+ body: 'body',
1250
+ };
1251
+ }
1252
+ static types() {
1253
+ return {
1254
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1255
+ body: DescribeServiceCronScalerResponseBody,
1256
+ };
1257
+ }
1258
+ }
1259
+ exports.DescribeServiceCronScalerResponse = DescribeServiceCronScalerResponse;
1260
+ class DescribeServiceLogRequest extends $tea.Model {
1261
+ constructor(map) {
1262
+ super(map);
1263
+ }
1264
+ static names() {
1265
+ return {
1266
+ endTime: 'EndTime',
1267
+ ip: 'Ip',
1268
+ keyword: 'Keyword',
1269
+ pageNum: 'PageNum',
1270
+ pageSize: 'PageSize',
1271
+ startTime: 'StartTime',
1272
+ };
1273
+ }
1274
+ static types() {
1275
+ return {
1276
+ endTime: 'string',
1277
+ ip: 'string',
1278
+ keyword: 'string',
1279
+ pageNum: 'number',
1280
+ pageSize: 'number',
1281
+ startTime: 'string',
1282
+ };
1283
+ }
1284
+ }
1285
+ exports.DescribeServiceLogRequest = DescribeServiceLogRequest;
1286
+ class DescribeServiceLogResponseBody extends $tea.Model {
1287
+ constructor(map) {
1288
+ super(map);
1289
+ }
1290
+ static names() {
1291
+ return {
1292
+ logs: 'Logs',
1293
+ pageNum: 'PageNum',
1294
+ requestId: 'RequestId',
1295
+ totalCount: 'TotalCount',
1296
+ totalPageNum: 'TotalPageNum',
1297
+ };
1298
+ }
1299
+ static types() {
1300
+ return {
1301
+ logs: { 'type': 'array', 'itemType': 'string' },
1302
+ pageNum: 'number',
1303
+ requestId: 'string',
1304
+ totalCount: 'number',
1305
+ totalPageNum: 'number',
1306
+ };
1307
+ }
1308
+ }
1309
+ exports.DescribeServiceLogResponseBody = DescribeServiceLogResponseBody;
1310
+ class DescribeServiceLogResponse extends $tea.Model {
1311
+ constructor(map) {
1312
+ super(map);
1313
+ }
1314
+ static names() {
1315
+ return {
1316
+ headers: 'headers',
1317
+ body: 'body',
1318
+ };
1319
+ }
1320
+ static types() {
1321
+ return {
1322
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1323
+ body: DescribeServiceLogResponseBody,
1324
+ };
1325
+ }
1326
+ }
1327
+ exports.DescribeServiceLogResponse = DescribeServiceLogResponse;
1328
+ class DescribeServiceMirrorResponseBody extends $tea.Model {
1329
+ constructor(map) {
1330
+ super(map);
1331
+ }
1332
+ static names() {
1333
+ return {
1334
+ ratio: 'Ratio',
1335
+ requestId: 'RequestId',
1336
+ serviceName: 'ServiceName',
1337
+ target: 'Target',
1338
+ };
1339
+ }
1340
+ static types() {
1341
+ return {
1342
+ ratio: 'string',
1343
+ requestId: 'string',
1344
+ serviceName: 'string',
1345
+ target: 'string',
1346
+ };
1347
+ }
1348
+ }
1349
+ exports.DescribeServiceMirrorResponseBody = DescribeServiceMirrorResponseBody;
1350
+ class DescribeServiceMirrorResponse extends $tea.Model {
1351
+ constructor(map) {
1352
+ super(map);
1353
+ }
1354
+ static names() {
1355
+ return {
1356
+ headers: 'headers',
1357
+ body: 'body',
1358
+ };
1359
+ }
1360
+ static types() {
1361
+ return {
1362
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1363
+ body: DescribeServiceMirrorResponseBody,
1364
+ };
1365
+ }
1366
+ }
1367
+ exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
1368
+ class ListResourceInstanceWorkerRequest extends $tea.Model {
1369
+ constructor(map) {
1370
+ super(map);
1371
+ }
1372
+ static names() {
1373
+ return {
1374
+ pageNumber: 'PageNumber',
1375
+ pageSize: 'PageSize',
1376
+ };
1377
+ }
1378
+ static types() {
1379
+ return {
1380
+ pageNumber: 'number',
1381
+ pageSize: 'number',
1382
+ };
1383
+ }
1384
+ }
1385
+ exports.ListResourceInstanceWorkerRequest = ListResourceInstanceWorkerRequest;
1386
+ class ListResourceInstanceWorkerResponseBody extends $tea.Model {
1387
+ constructor(map) {
1388
+ super(map);
1389
+ }
1390
+ static names() {
1391
+ return {
1392
+ pageNumber: 'PageNumber',
1393
+ pageSize: 'PageSize',
1394
+ pods: 'Pods',
1395
+ requestId: 'RequestId',
1396
+ totalCount: 'TotalCount',
1397
+ };
1398
+ }
1399
+ static types() {
1400
+ return {
1401
+ pageNumber: 'number',
1402
+ pageSize: 'number',
1403
+ pods: { 'type': 'array', 'itemType': ResourceInstanceWorker },
1404
+ requestId: 'string',
1405
+ totalCount: 'number',
1406
+ };
1407
+ }
1408
+ }
1409
+ exports.ListResourceInstanceWorkerResponseBody = ListResourceInstanceWorkerResponseBody;
1410
+ class ListResourceInstanceWorkerResponse extends $tea.Model {
1411
+ constructor(map) {
1412
+ super(map);
1413
+ }
1414
+ static names() {
1415
+ return {
1416
+ headers: 'headers',
1417
+ body: 'body',
1418
+ };
1419
+ }
1420
+ static types() {
1421
+ return {
1422
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1423
+ body: ListResourceInstanceWorkerResponseBody,
1424
+ };
1425
+ }
1426
+ }
1427
+ exports.ListResourceInstanceWorkerResponse = ListResourceInstanceWorkerResponse;
1428
+ class ListResourceInstancesRequest extends $tea.Model {
1429
+ constructor(map) {
1430
+ super(map);
1431
+ }
1432
+ static names() {
1433
+ return {
1434
+ pageNumber: 'PageNumber',
1435
+ pageSize: 'PageSize',
1436
+ };
1437
+ }
1438
+ static types() {
1439
+ return {
1440
+ pageNumber: 'number',
1441
+ pageSize: 'number',
1442
+ };
1443
+ }
1444
+ }
1445
+ exports.ListResourceInstancesRequest = ListResourceInstancesRequest;
1446
+ class ListResourceInstancesResponseBody extends $tea.Model {
1447
+ constructor(map) {
1448
+ super(map);
1449
+ }
1450
+ static names() {
1451
+ return {
1452
+ instances: 'Instances',
1453
+ pageNumber: 'PageNumber',
1454
+ pageSize: 'PageSize',
1455
+ requestId: 'RequestId',
1456
+ totalCount: 'TotalCount',
1457
+ };
1458
+ }
1459
+ static types() {
1460
+ return {
1461
+ instances: { 'type': 'array', 'itemType': ResourceInstance },
1462
+ pageNumber: 'number',
1463
+ pageSize: 'number',
1464
+ requestId: 'string',
1465
+ totalCount: 'number',
1466
+ };
1467
+ }
1468
+ }
1469
+ exports.ListResourceInstancesResponseBody = ListResourceInstancesResponseBody;
1470
+ class ListResourceInstancesResponse extends $tea.Model {
1471
+ constructor(map) {
1472
+ super(map);
1473
+ }
1474
+ static names() {
1475
+ return {
1476
+ headers: 'headers',
1477
+ body: 'body',
1478
+ };
1479
+ }
1480
+ static types() {
1481
+ return {
1482
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1483
+ body: ListResourceInstancesResponseBody,
1484
+ };
1485
+ }
1486
+ }
1487
+ exports.ListResourceInstancesResponse = ListResourceInstancesResponse;
1488
+ class ListResourceServicesRequest extends $tea.Model {
1489
+ constructor(map) {
1490
+ super(map);
1491
+ }
1492
+ static names() {
1493
+ return {
1494
+ pageNumber: 'PageNumber',
1495
+ pageSize: 'PageSize',
1496
+ };
1497
+ }
1498
+ static types() {
1499
+ return {
1500
+ pageNumber: 'number',
1501
+ pageSize: 'number',
1502
+ };
1503
+ }
1504
+ }
1505
+ exports.ListResourceServicesRequest = ListResourceServicesRequest;
1506
+ class ListResourceServicesResponseBody extends $tea.Model {
1507
+ constructor(map) {
1508
+ super(map);
1509
+ }
1510
+ static names() {
1511
+ return {
1512
+ pageNumber: 'PageNumber',
1513
+ pageSize: 'PageSize',
1514
+ requestId: 'RequestId',
1515
+ services: 'Services',
1516
+ totalCount: 'TotalCount',
1517
+ };
1518
+ }
1519
+ static types() {
1520
+ return {
1521
+ pageNumber: 'number',
1522
+ pageSize: 'number',
1523
+ requestId: 'string',
1524
+ services: { 'type': 'array', 'itemType': Service },
1525
+ totalCount: 'number',
1526
+ };
1527
+ }
1528
+ }
1529
+ exports.ListResourceServicesResponseBody = ListResourceServicesResponseBody;
1530
+ class ListResourceServicesResponse extends $tea.Model {
1531
+ constructor(map) {
1532
+ super(map);
1533
+ }
1534
+ static names() {
1535
+ return {
1536
+ headers: 'headers',
1537
+ body: 'body',
1538
+ };
1539
+ }
1540
+ static types() {
1541
+ return {
1542
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1543
+ body: ListResourceServicesResponseBody,
1544
+ };
1545
+ }
1546
+ }
1547
+ exports.ListResourceServicesResponse = ListResourceServicesResponse;
1548
+ class ListResourcesRequest extends $tea.Model {
1549
+ constructor(map) {
1550
+ super(map);
1551
+ }
1552
+ static names() {
1553
+ return {
1554
+ pageNumber: 'PageNumber',
1555
+ pageSize: 'PageSize',
1556
+ };
1557
+ }
1558
+ static types() {
1559
+ return {
1560
+ pageNumber: 'number',
1561
+ pageSize: 'number',
1562
+ };
1563
+ }
1564
+ }
1565
+ exports.ListResourcesRequest = ListResourcesRequest;
1566
+ class ListResourcesResponseBody extends $tea.Model {
1567
+ constructor(map) {
1568
+ super(map);
1569
+ }
1570
+ static names() {
1571
+ return {
1572
+ pageNumber: 'PageNumber',
1573
+ pageSize: 'PageSize',
1574
+ requestId: 'RequestId',
1575
+ resources: 'Resources',
1576
+ totalCount: 'TotalCount',
1577
+ };
1578
+ }
1579
+ static types() {
1580
+ return {
1581
+ pageNumber: 'number',
1582
+ pageSize: 'number',
1583
+ requestId: 'string',
1584
+ resources: { 'type': 'array', 'itemType': Resource },
1585
+ totalCount: 'number',
1586
+ };
1587
+ }
1588
+ }
1589
+ exports.ListResourcesResponseBody = ListResourcesResponseBody;
1590
+ class ListResourcesResponse extends $tea.Model {
1591
+ constructor(map) {
1592
+ super(map);
1593
+ }
1594
+ static names() {
1595
+ return {
1596
+ headers: 'headers',
1597
+ body: 'body',
1598
+ };
1599
+ }
1600
+ static types() {
1601
+ return {
1602
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1603
+ body: ListResourcesResponseBody,
1604
+ };
1605
+ }
1606
+ }
1607
+ exports.ListResourcesResponse = ListResourcesResponse;
1608
+ class ListServiceInstancesRequest extends $tea.Model {
1609
+ constructor(map) {
1610
+ super(map);
1611
+ }
1612
+ static names() {
1613
+ return {
1614
+ pageNumber: 'PageNumber',
1615
+ pageSize: 'PageSize',
1616
+ };
1617
+ }
1618
+ static types() {
1619
+ return {
1620
+ pageNumber: 'number',
1621
+ pageSize: 'number',
1622
+ };
1623
+ }
1624
+ }
1625
+ exports.ListServiceInstancesRequest = ListServiceInstancesRequest;
1626
+ class ListServiceInstancesResponseBody extends $tea.Model {
1627
+ constructor(map) {
1628
+ super(map);
1629
+ }
1630
+ static names() {
1631
+ return {
1632
+ instances: 'Instances',
1633
+ pageNumber: 'PageNumber',
1634
+ pageSize: 'PageSize',
1635
+ requestId: 'RequestId',
1636
+ totalCount: 'TotalCount',
1637
+ };
1638
+ }
1639
+ static types() {
1640
+ return {
1641
+ instances: { 'type': 'array', 'itemType': Instance },
1642
+ pageNumber: 'number',
1643
+ pageSize: 'number',
1644
+ requestId: 'string',
1645
+ totalCount: 'number',
1646
+ };
1647
+ }
1648
+ }
1649
+ exports.ListServiceInstancesResponseBody = ListServiceInstancesResponseBody;
1650
+ class ListServiceInstancesResponse extends $tea.Model {
1651
+ constructor(map) {
1652
+ super(map);
1653
+ }
1654
+ static names() {
1655
+ return {
1656
+ headers: 'headers',
1657
+ body: 'body',
1658
+ };
1659
+ }
1660
+ static types() {
1661
+ return {
1662
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1663
+ body: ListServiceInstancesResponseBody,
1664
+ };
1665
+ }
1666
+ }
1667
+ exports.ListServiceInstancesResponse = ListServiceInstancesResponse;
1668
+ class ListServicesRequest extends $tea.Model {
1669
+ constructor(map) {
1670
+ super(map);
1671
+ }
1672
+ static names() {
1673
+ return {
1674
+ filter: 'Filter',
1675
+ order: 'Order',
1676
+ pageNumber: 'PageNumber',
1677
+ pageSize: 'PageSize',
1678
+ sort: 'Sort',
1679
+ };
1680
+ }
1681
+ static types() {
1682
+ return {
1683
+ filter: 'string',
1684
+ order: 'string',
1685
+ pageNumber: 'number',
1686
+ pageSize: 'number',
1687
+ sort: 'string',
1688
+ };
1689
+ }
1690
+ }
1691
+ exports.ListServicesRequest = ListServicesRequest;
1692
+ class ListServicesResponseBody extends $tea.Model {
1693
+ constructor(map) {
1694
+ super(map);
1695
+ }
1696
+ static names() {
1697
+ return {
1698
+ pageNumber: 'PageNumber',
1699
+ pageSize: 'PageSize',
1700
+ requestId: 'RequestId',
1701
+ services: 'Services',
1702
+ totalCount: 'TotalCount',
1703
+ };
1704
+ }
1705
+ static types() {
1706
+ return {
1707
+ pageNumber: 'number',
1708
+ pageSize: 'number',
1709
+ requestId: 'string',
1710
+ services: { 'type': 'array', 'itemType': Service },
1711
+ totalCount: 'number',
1712
+ };
1713
+ }
1714
+ }
1715
+ exports.ListServicesResponseBody = ListServicesResponseBody;
1716
+ class ListServicesResponse extends $tea.Model {
1717
+ constructor(map) {
1718
+ super(map);
1719
+ }
1720
+ static names() {
1721
+ return {
1722
+ headers: 'headers',
1723
+ body: 'body',
1724
+ };
1725
+ }
1726
+ static types() {
1727
+ return {
1728
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1729
+ body: ListServicesResponseBody,
1730
+ };
1731
+ }
1732
+ }
1733
+ exports.ListServicesResponse = ListServicesResponse;
1734
+ class ReleaseServiceRequest extends $tea.Model {
1735
+ constructor(map) {
1736
+ super(map);
1737
+ }
1738
+ static names() {
1739
+ return {
1740
+ weight: 'Weight',
1741
+ };
1742
+ }
1743
+ static types() {
1744
+ return {
1745
+ weight: 'number',
1746
+ };
1747
+ }
1748
+ }
1749
+ exports.ReleaseServiceRequest = ReleaseServiceRequest;
1750
+ class ReleaseServiceResponseBody extends $tea.Model {
1751
+ constructor(map) {
1752
+ super(map);
1753
+ }
1754
+ static names() {
1755
+ return {
1756
+ message: 'Message',
1757
+ requestId: 'RequestId',
1758
+ };
1759
+ }
1760
+ static types() {
1761
+ return {
1762
+ message: 'string',
1763
+ requestId: 'string',
1764
+ };
1765
+ }
1766
+ }
1767
+ exports.ReleaseServiceResponseBody = ReleaseServiceResponseBody;
1768
+ class ReleaseServiceResponse extends $tea.Model {
1769
+ constructor(map) {
1770
+ super(map);
1771
+ }
1772
+ static names() {
1773
+ return {
1774
+ headers: 'headers',
1775
+ body: 'body',
1776
+ };
1777
+ }
1778
+ static types() {
1779
+ return {
1780
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1781
+ body: ReleaseServiceResponseBody,
1782
+ };
1783
+ }
1784
+ }
1785
+ exports.ReleaseServiceResponse = ReleaseServiceResponse;
1786
+ class StartServiceResponseBody extends $tea.Model {
1787
+ constructor(map) {
1788
+ super(map);
1789
+ }
1790
+ static names() {
1791
+ return {
1792
+ message: 'Message',
1793
+ requestId: 'RequestId',
1794
+ };
1795
+ }
1796
+ static types() {
1797
+ return {
1798
+ message: 'string',
1799
+ requestId: 'string',
1800
+ };
1801
+ }
1802
+ }
1803
+ exports.StartServiceResponseBody = StartServiceResponseBody;
1804
+ class StartServiceResponse extends $tea.Model {
1805
+ constructor(map) {
1806
+ super(map);
1807
+ }
1808
+ static names() {
1809
+ return {
1810
+ headers: 'headers',
1811
+ body: 'body',
1812
+ };
1813
+ }
1814
+ static types() {
1815
+ return {
1816
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1817
+ body: StartServiceResponseBody,
1818
+ };
1819
+ }
1820
+ }
1821
+ exports.StartServiceResponse = StartServiceResponse;
1822
+ class StopServiceResponseBody extends $tea.Model {
1823
+ constructor(map) {
1824
+ super(map);
1825
+ }
1826
+ static names() {
1827
+ return {
1828
+ message: 'Message',
1829
+ requestId: 'RequestId',
1830
+ };
1831
+ }
1832
+ static types() {
1833
+ return {
1834
+ message: 'string',
1835
+ requestId: 'string',
1836
+ };
1837
+ }
1838
+ }
1839
+ exports.StopServiceResponseBody = StopServiceResponseBody;
1840
+ class StopServiceResponse extends $tea.Model {
1841
+ constructor(map) {
1842
+ super(map);
1843
+ }
1844
+ static names() {
1845
+ return {
1846
+ headers: 'headers',
1847
+ body: 'body',
1848
+ };
1849
+ }
1850
+ static types() {
1851
+ return {
1852
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1853
+ body: StopServiceResponseBody,
1854
+ };
1855
+ }
1856
+ }
1857
+ exports.StopServiceResponse = StopServiceResponse;
1858
+ class UpdateResourceRequest extends $tea.Model {
1859
+ constructor(map) {
1860
+ super(map);
1861
+ }
1862
+ static names() {
1863
+ return {
1864
+ resourceName: 'ResourceName',
1865
+ };
1866
+ }
1867
+ static types() {
1868
+ return {
1869
+ resourceName: 'string',
1870
+ };
1871
+ }
1872
+ }
1873
+ exports.UpdateResourceRequest = UpdateResourceRequest;
1874
+ class UpdateResourceResponseBody extends $tea.Model {
1875
+ constructor(map) {
1876
+ super(map);
1877
+ }
1878
+ static names() {
1879
+ return {
1880
+ requestId: 'RequestId',
1881
+ resourceId: 'ResourceId',
1882
+ resourceName: 'ResourceName',
1883
+ };
1884
+ }
1885
+ static types() {
1886
+ return {
1887
+ requestId: 'string',
1888
+ resourceId: 'string',
1889
+ resourceName: 'string',
1890
+ };
1891
+ }
1892
+ }
1893
+ exports.UpdateResourceResponseBody = UpdateResourceResponseBody;
1894
+ class UpdateResourceResponse extends $tea.Model {
1895
+ constructor(map) {
1896
+ super(map);
1897
+ }
1898
+ static names() {
1899
+ return {
1900
+ headers: 'headers',
1901
+ body: 'body',
1902
+ };
1903
+ }
1904
+ static types() {
1905
+ return {
1906
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1907
+ body: UpdateResourceResponseBody,
1908
+ };
1909
+ }
1910
+ }
1911
+ exports.UpdateResourceResponse = UpdateResourceResponse;
1912
+ class UpdateResourceDLinkRequest extends $tea.Model {
1913
+ constructor(map) {
1914
+ super(map);
1915
+ }
1916
+ static names() {
1917
+ return {
1918
+ destinationCIDRs: 'DestinationCIDRs',
1919
+ securityGroupId: 'SecurityGroupId',
1920
+ vSwitchId: 'VSwitchId',
1921
+ vSwitchIdList: 'VSwitchIdList',
1922
+ };
1923
+ }
1924
+ static types() {
1925
+ return {
1926
+ destinationCIDRs: 'string',
1927
+ securityGroupId: 'string',
1928
+ vSwitchId: 'string',
1929
+ vSwitchIdList: { 'type': 'array', 'itemType': 'string' },
1930
+ };
1931
+ }
1932
+ }
1933
+ exports.UpdateResourceDLinkRequest = UpdateResourceDLinkRequest;
1934
+ class UpdateResourceDLinkResponseBody extends $tea.Model {
1935
+ constructor(map) {
1936
+ super(map);
1937
+ }
1938
+ static names() {
1939
+ return {
1940
+ message: 'Message',
1941
+ requestId: 'RequestId',
1942
+ };
1943
+ }
1944
+ static types() {
1945
+ return {
1946
+ message: 'string',
1947
+ requestId: 'string',
1948
+ };
1949
+ }
1950
+ }
1951
+ exports.UpdateResourceDLinkResponseBody = UpdateResourceDLinkResponseBody;
1952
+ class UpdateResourceDLinkResponse extends $tea.Model {
1953
+ constructor(map) {
1954
+ super(map);
1955
+ }
1956
+ static names() {
1957
+ return {
1958
+ headers: 'headers',
1959
+ body: 'body',
1960
+ };
1961
+ }
1962
+ static types() {
1963
+ return {
1964
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1965
+ body: UpdateResourceDLinkResponseBody,
1966
+ };
1967
+ }
1968
+ }
1969
+ exports.UpdateResourceDLinkResponse = UpdateResourceDLinkResponse;
1970
+ class UpdateServiceRequest extends $tea.Model {
1971
+ constructor(map) {
1972
+ super(map);
1973
+ }
1974
+ static names() {
1975
+ return {
1976
+ body: 'body',
1977
+ };
1978
+ }
1979
+ static types() {
1980
+ return {
1981
+ body: 'string',
1982
+ };
1983
+ }
1984
+ }
1985
+ exports.UpdateServiceRequest = UpdateServiceRequest;
1986
+ class UpdateServiceResponseBody extends $tea.Model {
1987
+ constructor(map) {
1988
+ super(map);
1989
+ }
1990
+ static names() {
1991
+ return {
1992
+ message: 'Message',
1993
+ requestId: 'RequestId',
1994
+ };
1995
+ }
1996
+ static types() {
1997
+ return {
1998
+ message: 'string',
1999
+ requestId: 'string',
2000
+ };
2001
+ }
2002
+ }
2003
+ exports.UpdateServiceResponseBody = UpdateServiceResponseBody;
2004
+ class UpdateServiceResponse extends $tea.Model {
2005
+ constructor(map) {
2006
+ super(map);
2007
+ }
2008
+ static names() {
2009
+ return {
2010
+ headers: 'headers',
2011
+ body: 'body',
2012
+ };
2013
+ }
2014
+ static types() {
2015
+ return {
2016
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2017
+ body: UpdateServiceResponseBody,
2018
+ };
2019
+ }
2020
+ }
2021
+ exports.UpdateServiceResponse = UpdateServiceResponse;
2022
+ class UpdateServiceAutoScalerRequest extends $tea.Model {
2023
+ constructor(map) {
2024
+ super(map);
2025
+ }
2026
+ static names() {
2027
+ return {
2028
+ max: 'Max',
2029
+ min: 'Min',
2030
+ strategies: 'Strategies',
2031
+ };
2032
+ }
2033
+ static types() {
2034
+ return {
2035
+ max: 'number',
2036
+ min: 'number',
2037
+ strategies: UpdateServiceAutoScalerRequestStrategies,
2038
+ };
2039
+ }
2040
+ }
2041
+ exports.UpdateServiceAutoScalerRequest = UpdateServiceAutoScalerRequest;
2042
+ class UpdateServiceAutoScalerResponseBody extends $tea.Model {
2043
+ constructor(map) {
2044
+ super(map);
2045
+ }
2046
+ static names() {
2047
+ return {
2048
+ message: 'Message',
2049
+ requestId: 'RequestId',
2050
+ };
2051
+ }
2052
+ static types() {
2053
+ return {
2054
+ message: 'string',
2055
+ requestId: 'string',
2056
+ };
2057
+ }
2058
+ }
2059
+ exports.UpdateServiceAutoScalerResponseBody = UpdateServiceAutoScalerResponseBody;
2060
+ class UpdateServiceAutoScalerResponse extends $tea.Model {
2061
+ constructor(map) {
2062
+ super(map);
2063
+ }
2064
+ static names() {
2065
+ return {
2066
+ headers: 'headers',
2067
+ body: 'body',
2068
+ };
2069
+ }
2070
+ static types() {
2071
+ return {
2072
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2073
+ body: UpdateServiceAutoScalerResponseBody,
2074
+ };
2075
+ }
2076
+ }
2077
+ exports.UpdateServiceAutoScalerResponse = UpdateServiceAutoScalerResponse;
2078
+ class UpdateServiceCronScalerRequest extends $tea.Model {
2079
+ constructor(map) {
2080
+ super(map);
2081
+ }
2082
+ static names() {
2083
+ return {
2084
+ excludeDates: 'ExcludeDates',
2085
+ scaleJobs: 'ScaleJobs',
2086
+ };
2087
+ }
2088
+ static types() {
2089
+ return {
2090
+ excludeDates: { 'type': 'array', 'itemType': 'string' },
2091
+ scaleJobs: { 'type': 'array', 'itemType': UpdateServiceCronScalerRequestScaleJobs },
2092
+ };
2093
+ }
2094
+ }
2095
+ exports.UpdateServiceCronScalerRequest = UpdateServiceCronScalerRequest;
2096
+ class UpdateServiceCronScalerResponseBody extends $tea.Model {
2097
+ constructor(map) {
2098
+ super(map);
2099
+ }
2100
+ static names() {
2101
+ return {
2102
+ message: 'Message',
2103
+ requestId: 'RequestId',
2104
+ };
2105
+ }
2106
+ static types() {
2107
+ return {
2108
+ message: 'string',
2109
+ requestId: 'string',
2110
+ };
2111
+ }
2112
+ }
2113
+ exports.UpdateServiceCronScalerResponseBody = UpdateServiceCronScalerResponseBody;
2114
+ class UpdateServiceCronScalerResponse extends $tea.Model {
2115
+ constructor(map) {
2116
+ super(map);
2117
+ }
2118
+ static names() {
2119
+ return {
2120
+ headers: 'headers',
2121
+ body: 'body',
2122
+ };
2123
+ }
2124
+ static types() {
2125
+ return {
2126
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2127
+ body: UpdateServiceCronScalerResponseBody,
2128
+ };
2129
+ }
2130
+ }
2131
+ exports.UpdateServiceCronScalerResponse = UpdateServiceCronScalerResponse;
2132
+ class UpdateServiceMirrorRequest extends $tea.Model {
2133
+ constructor(map) {
2134
+ super(map);
2135
+ }
2136
+ static names() {
2137
+ return {
2138
+ ratio: 'Ratio',
2139
+ target: 'Target',
2140
+ };
2141
+ }
2142
+ static types() {
2143
+ return {
2144
+ ratio: 'number',
2145
+ target: { 'type': 'array', 'itemType': 'string' },
2146
+ };
2147
+ }
2148
+ }
2149
+ exports.UpdateServiceMirrorRequest = UpdateServiceMirrorRequest;
2150
+ class UpdateServiceMirrorResponseBody extends $tea.Model {
2151
+ constructor(map) {
2152
+ super(map);
2153
+ }
2154
+ static names() {
2155
+ return {
2156
+ message: 'Message',
2157
+ requestId: 'RequestId',
2158
+ };
2159
+ }
2160
+ static types() {
2161
+ return {
2162
+ message: 'string',
2163
+ requestId: 'string',
2164
+ };
2165
+ }
2166
+ }
2167
+ exports.UpdateServiceMirrorResponseBody = UpdateServiceMirrorResponseBody;
2168
+ class UpdateServiceMirrorResponse extends $tea.Model {
2169
+ constructor(map) {
2170
+ super(map);
2171
+ }
2172
+ static names() {
2173
+ return {
2174
+ headers: 'headers',
2175
+ body: 'body',
2176
+ };
2177
+ }
2178
+ static types() {
2179
+ return {
2180
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2181
+ body: UpdateServiceMirrorResponseBody,
2182
+ };
2183
+ }
2184
+ }
2185
+ exports.UpdateServiceMirrorResponse = UpdateServiceMirrorResponse;
2186
+ class UpdateServiceVersionRequest extends $tea.Model {
2187
+ constructor(map) {
2188
+ super(map);
2189
+ }
2190
+ static names() {
2191
+ return {
2192
+ version: 'Version',
2193
+ };
2194
+ }
2195
+ static types() {
2196
+ return {
2197
+ version: 'number',
2198
+ };
2199
+ }
2200
+ }
2201
+ exports.UpdateServiceVersionRequest = UpdateServiceVersionRequest;
2202
+ class UpdateServiceVersionResponseBody extends $tea.Model {
2203
+ constructor(map) {
2204
+ super(map);
2205
+ }
2206
+ static names() {
2207
+ return {
2208
+ message: 'Message',
2209
+ requestId: 'RequestId',
2210
+ };
2211
+ }
2212
+ static types() {
2213
+ return {
2214
+ message: 'string',
2215
+ requestId: 'string',
2216
+ };
2217
+ }
2218
+ }
2219
+ exports.UpdateServiceVersionResponseBody = UpdateServiceVersionResponseBody;
2220
+ class UpdateServiceVersionResponse extends $tea.Model {
2221
+ constructor(map) {
2222
+ super(map);
2223
+ }
2224
+ static names() {
2225
+ return {
2226
+ headers: 'headers',
2227
+ body: 'body',
2228
+ };
2229
+ }
2230
+ static types() {
2231
+ return {
2232
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2233
+ body: UpdateServiceVersionResponseBody,
2234
+ };
2235
+ }
2236
+ }
2237
+ exports.UpdateServiceVersionResponse = UpdateServiceVersionResponse;
2238
+ class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
2239
+ constructor(map) {
2240
+ super(map);
2241
+ }
2242
+ static names() {
2243
+ return {
2244
+ cpu: 'Cpu',
2245
+ qps: 'Qps',
2246
+ };
2247
+ }
2248
+ static types() {
2249
+ return {
2250
+ cpu: 'number',
2251
+ qps: 'number',
2252
+ };
2253
+ }
2254
+ }
2255
+ exports.CreateServiceAutoScalerRequestStrategies = CreateServiceAutoScalerRequestStrategies;
2256
+ class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
2257
+ constructor(map) {
2258
+ super(map);
2259
+ }
2260
+ static names() {
2261
+ return {
2262
+ name: 'Name',
2263
+ schedule: 'Schedule',
2264
+ targetSize: 'TargetSize',
2265
+ };
2266
+ }
2267
+ static types() {
2268
+ return {
2269
+ name: 'string',
2270
+ schedule: 'string',
2271
+ targetSize: 'number',
2272
+ };
2273
+ }
2274
+ }
2275
+ exports.CreateServiceCronScalerRequestScaleJobs = CreateServiceCronScalerRequestScaleJobs;
2276
+ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2277
+ constructor(map) {
2278
+ super(map);
2279
+ }
2280
+ static names() {
2281
+ return {
2282
+ lastProbeTime: 'LastProbeTime',
2283
+ message: 'Message',
2284
+ name: 'Name',
2285
+ schedule: 'Schedule',
2286
+ state: 'State',
2287
+ targetSize: 'TargetSize',
2288
+ };
2289
+ }
2290
+ static types() {
2291
+ return {
2292
+ lastProbeTime: 'string',
2293
+ message: 'string',
2294
+ name: 'string',
2295
+ schedule: 'string',
2296
+ state: 'string',
2297
+ targetSize: 'number',
2298
+ };
2299
+ }
2300
+ }
2301
+ exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
2302
+ class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
2303
+ constructor(map) {
2304
+ super(map);
2305
+ }
2306
+ static names() {
2307
+ return {
2308
+ cpu: 'Cpu',
2309
+ qps: 'Qps',
2310
+ };
2311
+ }
2312
+ static types() {
2313
+ return {
2314
+ cpu: 'number',
2315
+ qps: 'number',
2316
+ };
2317
+ }
2318
+ }
2319
+ exports.UpdateServiceAutoScalerRequestStrategies = UpdateServiceAutoScalerRequestStrategies;
2320
+ class UpdateServiceCronScalerRequestScaleJobs extends $tea.Model {
2321
+ constructor(map) {
2322
+ super(map);
2323
+ }
2324
+ static names() {
2325
+ return {
2326
+ name: 'Name',
2327
+ schedule: 'Schedule',
2328
+ targetSize: 'TargetSize',
2329
+ };
2330
+ }
2331
+ static types() {
2332
+ return {
2333
+ name: 'string',
2334
+ schedule: 'string',
2335
+ targetSize: 'number',
2336
+ };
2337
+ }
2338
+ }
2339
+ exports.UpdateServiceCronScalerRequestScaleJobs = UpdateServiceCronScalerRequestScaleJobs;
2340
+ class Client extends openapi_client_1.default {
2341
+ constructor(config) {
2342
+ super(config);
2343
+ this._endpointRule = "regional";
2344
+ this._endpointMap = {
2345
+ 'cn-beijing': "pai-eas.cn-beijing.aliyuncs.com",
2346
+ 'cn-zhangjiakou': "pai-eas.cn-zhangjiakou.aliyuncs.com",
2347
+ 'cn-hangzhou': "pai-eas.cn-hangzhou.aliyuncs.com",
2348
+ 'cn-shanghai': "pai-eas.cn-shanghai.aliyuncs.com",
2349
+ 'cn-shenzhen': "pai-eas.cn-shenzhen.aliyuncs.com",
2350
+ 'cn-hongkong': "pai-eas.cn-hongkong.aliyuncs.com",
2351
+ 'ap-southeast-1': "pai-eas.ap-southeast-1.aliyuncs.com",
2352
+ 'ap-southeast-5': "pai-eas.ap-southeast-5.aliyuncs.com",
2353
+ 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
2354
+ 'us-east-1': "pai-eas.us-east-1.aliyuncs.com",
2355
+ 'eu-central-1': "pai-eas.eu-central-1.aliyuncs.com",
2356
+ 'ap-south-1': "pai-eas.ap-south-1.aliyuncs.com",
2357
+ 'cn-shanghai-finance-1': "pai-eas.cn-shanghai-finance-1.aliyuncs.com",
2358
+ 'cn-north-2-gov-1': "pai-eas.cn-north-2-gov-1.aliyuncs.com",
2359
+ 'ap-northeast-1': "eas.aliyuncs.com",
2360
+ 'ap-northeast-2-pop': "eas.aliyuncs.com",
2361
+ 'ap-southeast-2': "eas.aliyuncs.com",
2362
+ 'ap-southeast-3': "eas.aliyuncs.com",
2363
+ 'cn-beijing-finance-1': "eas.aliyuncs.com",
2364
+ 'cn-beijing-finance-pop': "eas.aliyuncs.com",
2365
+ 'cn-beijing-gov-1': "eas.aliyuncs.com",
2366
+ 'cn-beijing-nu16-b01': "eas.aliyuncs.com",
2367
+ 'cn-chengdu': "pai-eas.cn-chengdu.aliyuncs.com",
2368
+ 'cn-edge-1': "eas.aliyuncs.com",
2369
+ 'cn-fujian': "eas.aliyuncs.com",
2370
+ 'cn-haidian-cm12-c01': "eas.aliyuncs.com",
2371
+ 'cn-hangzhou-bj-b01': "eas.aliyuncs.com",
2372
+ 'cn-hangzhou-finance': "eas.aliyuncs.com",
2373
+ 'cn-hangzhou-internal-prod-1': "eas.aliyuncs.com",
2374
+ 'cn-hangzhou-internal-test-1': "eas.aliyuncs.com",
2375
+ 'cn-hangzhou-internal-test-2': "eas.aliyuncs.com",
2376
+ 'cn-hangzhou-internal-test-3': "eas.aliyuncs.com",
2377
+ 'cn-hangzhou-test-306': "eas.aliyuncs.com",
2378
+ 'cn-hongkong-finance-pop': "eas.aliyuncs.com",
2379
+ 'cn-huhehaote': "eas.aliyuncs.com",
2380
+ 'cn-huhehaote-nebula-1': "eas.aliyuncs.com",
2381
+ 'cn-qingdao': "eas.aliyuncs.com",
2382
+ 'cn-qingdao-nebula': "eas.aliyuncs.com",
2383
+ 'cn-shanghai-et15-b01': "eas.aliyuncs.com",
2384
+ 'cn-shanghai-et2-b01': "eas.aliyuncs.com",
2385
+ 'cn-shanghai-inner': "eas.aliyuncs.com",
2386
+ 'cn-shanghai-internal-test-1': "eas.aliyuncs.com",
2387
+ 'cn-shenzhen-finance-1': "eas.aliyuncs.com",
2388
+ 'cn-shenzhen-inner': "eas.aliyuncs.com",
2389
+ 'cn-shenzhen-st4-d01': "eas.aliyuncs.com",
2390
+ 'cn-shenzhen-su18-b01': "eas.aliyuncs.com",
2391
+ 'cn-wuhan': "eas.aliyuncs.com",
2392
+ 'cn-wulanchabu': "eas.aliyuncs.com",
2393
+ 'cn-yushanfang': "eas.aliyuncs.com",
2394
+ 'cn-zhangbei': "eas.aliyuncs.com",
2395
+ 'cn-zhangbei-na61-b01': "eas.aliyuncs.com",
2396
+ 'cn-zhangjiakou-na62-a01': "eas.aliyuncs.com",
2397
+ 'cn-zhengzhou-nebula-1': "eas.aliyuncs.com",
2398
+ 'eu-west-1': "eas.aliyuncs.com",
2399
+ 'eu-west-1-oxs': "eas.aliyuncs.com",
2400
+ 'me-east-1': "eas.aliyuncs.com",
2401
+ 'rus-west-1-pop': "eas.aliyuncs.com",
2402
+ };
2403
+ this.checkConfig(config);
2404
+ this._endpoint = this.getEndpoint("eas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2405
+ }
2406
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
2407
+ if (!tea_util_1.default.empty(endpoint)) {
2408
+ return endpoint;
2409
+ }
2410
+ if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
2411
+ return endpointMap[regionId];
2412
+ }
2413
+ return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2414
+ }
2415
+ async createResource(request) {
2416
+ let runtime = new $Util.RuntimeOptions({});
2417
+ let headers = {};
2418
+ return await this.createResourceWithOptions(request, headers, runtime);
2419
+ }
2420
+ async createResourceWithOptions(request, headers, runtime) {
2421
+ tea_util_1.default.validateModel(request);
2422
+ let body = {};
2423
+ if (!tea_util_1.default.isUnset(request.autoRenewal)) {
2424
+ body["AutoRenewal"] = request.autoRenewal;
2425
+ }
2426
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
2427
+ body["ChargeType"] = request.chargeType;
2428
+ }
2429
+ if (!tea_util_1.default.isUnset(request.ecsInstanceCount)) {
2430
+ body["EcsInstanceCount"] = request.ecsInstanceCount;
2431
+ }
2432
+ if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
2433
+ body["EcsInstanceType"] = request.ecsInstanceType;
2434
+ }
2435
+ let req = new $OpenApi.OpenApiRequest({
2436
+ headers: headers,
2437
+ body: openapi_util_1.default.parseToMap(body),
2438
+ });
2439
+ let params = new $OpenApi.Params({
2440
+ action: "CreateResource",
2441
+ version: "2021-07-01",
2442
+ protocol: "HTTPS",
2443
+ pathname: `/api/v2/resources`,
2444
+ method: "POST",
2445
+ authType: "AK",
2446
+ style: "ROA",
2447
+ reqBodyType: "json",
2448
+ bodyType: "json",
2449
+ });
2450
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
2451
+ }
2452
+ async createResourceInstances(ClusterId, ResourceId, request) {
2453
+ let runtime = new $Util.RuntimeOptions({});
2454
+ let headers = {};
2455
+ return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
2456
+ }
2457
+ async createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
2458
+ tea_util_1.default.validateModel(request);
2459
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2460
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2461
+ let body = {};
2462
+ if (!tea_util_1.default.isUnset(request.autoRenewal)) {
2463
+ body["AutoRenewal"] = request.autoRenewal;
2464
+ }
2465
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
2466
+ body["ChargeType"] = request.chargeType;
2467
+ }
2468
+ if (!tea_util_1.default.isUnset(request.ecsInstanceCount)) {
2469
+ body["EcsInstanceCount"] = request.ecsInstanceCount;
2470
+ }
2471
+ if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
2472
+ body["EcsInstanceType"] = request.ecsInstanceType;
2473
+ }
2474
+ if (!tea_util_1.default.isUnset(request.userData)) {
2475
+ body["UserData"] = request.userData;
2476
+ }
2477
+ let req = new $OpenApi.OpenApiRequest({
2478
+ headers: headers,
2479
+ body: openapi_util_1.default.parseToMap(body),
2480
+ });
2481
+ let params = new $OpenApi.Params({
2482
+ action: "CreateResourceInstances",
2483
+ version: "2021-07-01",
2484
+ protocol: "HTTPS",
2485
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instances`,
2486
+ method: "POST",
2487
+ authType: "AK",
2488
+ style: "ROA",
2489
+ reqBodyType: "json",
2490
+ bodyType: "json",
2491
+ });
2492
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
2493
+ }
2494
+ async createResourceLog(ClusterId, ResourceId, request) {
2495
+ let runtime = new $Util.RuntimeOptions({});
2496
+ let headers = {};
2497
+ return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
2498
+ }
2499
+ async createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime) {
2500
+ tea_util_1.default.validateModel(request);
2501
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2502
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2503
+ let body = {};
2504
+ if (!tea_util_1.default.isUnset(request.logStore)) {
2505
+ body["LogStore"] = request.logStore;
2506
+ }
2507
+ if (!tea_util_1.default.isUnset(request.projectName)) {
2508
+ body["ProjectName"] = request.projectName;
2509
+ }
2510
+ let req = new $OpenApi.OpenApiRequest({
2511
+ headers: headers,
2512
+ body: openapi_util_1.default.parseToMap(body),
2513
+ });
2514
+ let params = new $OpenApi.Params({
2515
+ action: "CreateResourceLog",
2516
+ version: "2021-07-01",
2517
+ protocol: "HTTPS",
2518
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/log`,
2519
+ method: "POST",
2520
+ authType: "AK",
2521
+ style: "ROA",
2522
+ reqBodyType: "json",
2523
+ bodyType: "json",
2524
+ });
2525
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
2526
+ }
2527
+ async createService(request) {
2528
+ let runtime = new $Util.RuntimeOptions({});
2529
+ let headers = {};
2530
+ return await this.createServiceWithOptions(request, headers, runtime);
2531
+ }
2532
+ async createServiceWithOptions(request, headers, runtime) {
2533
+ tea_util_1.default.validateModel(request);
2534
+ let req = new $OpenApi.OpenApiRequest({
2535
+ headers: headers,
2536
+ body: request.body,
2537
+ });
2538
+ let params = new $OpenApi.Params({
2539
+ action: "CreateService",
2540
+ version: "2021-07-01",
2541
+ protocol: "HTTPS",
2542
+ pathname: `/api/v2/services`,
2543
+ method: "POST",
2544
+ authType: "AK",
2545
+ style: "ROA",
2546
+ reqBodyType: "json",
2547
+ bodyType: "json",
2548
+ });
2549
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
2550
+ }
2551
+ async createServiceAutoScaler(ClusterId, ServiceName, request) {
2552
+ let runtime = new $Util.RuntimeOptions({});
2553
+ let headers = {};
2554
+ return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
2555
+ }
2556
+ async createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
2557
+ tea_util_1.default.validateModel(request);
2558
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2559
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2560
+ let body = {};
2561
+ if (!tea_util_1.default.isUnset(request.max)) {
2562
+ body["Max"] = request.max;
2563
+ }
2564
+ if (!tea_util_1.default.isUnset(request.min)) {
2565
+ body["Min"] = request.min;
2566
+ }
2567
+ if (!tea_util_1.default.isUnset($tea.toMap(request.strategies))) {
2568
+ body["Strategies"] = request.strategies;
2569
+ }
2570
+ let req = new $OpenApi.OpenApiRequest({
2571
+ headers: headers,
2572
+ body: openapi_util_1.default.parseToMap(body),
2573
+ });
2574
+ let params = new $OpenApi.Params({
2575
+ action: "CreateServiceAutoScaler",
2576
+ version: "2021-07-01",
2577
+ protocol: "HTTPS",
2578
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
2579
+ method: "POST",
2580
+ authType: "AK",
2581
+ style: "ROA",
2582
+ reqBodyType: "json",
2583
+ bodyType: "json",
2584
+ });
2585
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
2586
+ }
2587
+ async createServiceCronScaler(ClusterId, ServiceName, request) {
2588
+ let runtime = new $Util.RuntimeOptions({});
2589
+ let headers = {};
2590
+ return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
2591
+ }
2592
+ async createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
2593
+ tea_util_1.default.validateModel(request);
2594
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2595
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2596
+ let body = {};
2597
+ if (!tea_util_1.default.isUnset(request.excludeDates)) {
2598
+ body["ExcludeDates"] = request.excludeDates;
2599
+ }
2600
+ if (!tea_util_1.default.isUnset(request.scaleJobs)) {
2601
+ body["ScaleJobs"] = request.scaleJobs;
2602
+ }
2603
+ let req = new $OpenApi.OpenApiRequest({
2604
+ headers: headers,
2605
+ body: openapi_util_1.default.parseToMap(body),
2606
+ });
2607
+ let params = new $OpenApi.Params({
2608
+ action: "CreateServiceCronScaler",
2609
+ version: "2021-07-01",
2610
+ protocol: "HTTPS",
2611
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
2612
+ method: "POST",
2613
+ authType: "AK",
2614
+ style: "ROA",
2615
+ reqBodyType: "json",
2616
+ bodyType: "json",
2617
+ });
2618
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
2619
+ }
2620
+ async createServiceMirror(ClusterId, ServiceName, request) {
2621
+ let runtime = new $Util.RuntimeOptions({});
2622
+ let headers = {};
2623
+ return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
2624
+ }
2625
+ async createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
2626
+ tea_util_1.default.validateModel(request);
2627
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2628
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2629
+ let body = {};
2630
+ if (!tea_util_1.default.isUnset(request.ratio)) {
2631
+ body["Ratio"] = request.ratio;
2632
+ }
2633
+ if (!tea_util_1.default.isUnset(request.target)) {
2634
+ body["Target"] = request.target;
2635
+ }
2636
+ let req = new $OpenApi.OpenApiRequest({
2637
+ headers: headers,
2638
+ body: openapi_util_1.default.parseToMap(body),
2639
+ });
2640
+ let params = new $OpenApi.Params({
2641
+ action: "CreateServiceMirror",
2642
+ version: "2021-07-01",
2643
+ protocol: "HTTPS",
2644
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
2645
+ method: "POST",
2646
+ authType: "AK",
2647
+ style: "ROA",
2648
+ reqBodyType: "json",
2649
+ bodyType: "json",
2650
+ });
2651
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
2652
+ }
2653
+ async deleteResource(ClusterId, ResourceId) {
2654
+ let runtime = new $Util.RuntimeOptions({});
2655
+ let headers = {};
2656
+ return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
2657
+ }
2658
+ async deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
2659
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2660
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2661
+ let req = new $OpenApi.OpenApiRequest({
2662
+ headers: headers,
2663
+ });
2664
+ let params = new $OpenApi.Params({
2665
+ action: "DeleteResource",
2666
+ version: "2021-07-01",
2667
+ protocol: "HTTPS",
2668
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}`,
2669
+ method: "DELETE",
2670
+ authType: "AK",
2671
+ style: "ROA",
2672
+ reqBodyType: "json",
2673
+ bodyType: "json",
2674
+ });
2675
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
2676
+ }
2677
+ async deleteResourceDLink(ClusterId, ResourceId) {
2678
+ let runtime = new $Util.RuntimeOptions({});
2679
+ let headers = {};
2680
+ return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
2681
+ }
2682
+ async deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
2683
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2684
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2685
+ let req = new $OpenApi.OpenApiRequest({
2686
+ headers: headers,
2687
+ });
2688
+ let params = new $OpenApi.Params({
2689
+ action: "DeleteResourceDLink",
2690
+ version: "2021-07-01",
2691
+ protocol: "HTTPS",
2692
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/dlink`,
2693
+ method: "DELETE",
2694
+ authType: "AK",
2695
+ style: "ROA",
2696
+ reqBodyType: "json",
2697
+ bodyType: "json",
2698
+ });
2699
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
2700
+ }
2701
+ async deleteResourceInstances(ClusterId, ResourceId, request) {
2702
+ let runtime = new $Util.RuntimeOptions({});
2703
+ let headers = {};
2704
+ return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
2705
+ }
2706
+ async deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
2707
+ tea_util_1.default.validateModel(request);
2708
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2709
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2710
+ let query = {};
2711
+ if (!tea_util_1.default.isUnset(request.allFailed)) {
2712
+ query["AllFailed"] = request.allFailed;
2713
+ }
2714
+ if (!tea_util_1.default.isUnset(request.instanceList)) {
2715
+ query["InstanceList"] = request.instanceList;
2716
+ }
2717
+ let req = new $OpenApi.OpenApiRequest({
2718
+ headers: headers,
2719
+ query: openapi_util_1.default.query(query),
2720
+ });
2721
+ let params = new $OpenApi.Params({
2722
+ action: "DeleteResourceInstances",
2723
+ version: "2021-07-01",
2724
+ protocol: "HTTPS",
2725
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instances`,
2726
+ method: "DELETE",
2727
+ authType: "AK",
2728
+ style: "ROA",
2729
+ reqBodyType: "json",
2730
+ bodyType: "json",
2731
+ });
2732
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
2733
+ }
2734
+ async deleteResourceLog(ClusterId, ResourceId) {
2735
+ let runtime = new $Util.RuntimeOptions({});
2736
+ let headers = {};
2737
+ return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
2738
+ }
2739
+ async deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
2740
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2741
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2742
+ let req = new $OpenApi.OpenApiRequest({
2743
+ headers: headers,
2744
+ });
2745
+ let params = new $OpenApi.Params({
2746
+ action: "DeleteResourceLog",
2747
+ version: "2021-07-01",
2748
+ protocol: "HTTPS",
2749
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/log`,
2750
+ method: "DELETE",
2751
+ authType: "AK",
2752
+ style: "ROA",
2753
+ reqBodyType: "json",
2754
+ bodyType: "json",
2755
+ });
2756
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
2757
+ }
2758
+ async deleteService(ClusterId, ServiceName) {
2759
+ let runtime = new $Util.RuntimeOptions({});
2760
+ let headers = {};
2761
+ return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
2762
+ }
2763
+ async deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
2764
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2765
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2766
+ let req = new $OpenApi.OpenApiRequest({
2767
+ headers: headers,
2768
+ });
2769
+ let params = new $OpenApi.Params({
2770
+ action: "DeleteService",
2771
+ version: "2021-07-01",
2772
+ protocol: "HTTPS",
2773
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}`,
2774
+ method: "DELETE",
2775
+ authType: "AK",
2776
+ style: "ROA",
2777
+ reqBodyType: "json",
2778
+ bodyType: "json",
2779
+ });
2780
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
2781
+ }
2782
+ async deleteServiceAutoScaler(ClusterId, ServiceName) {
2783
+ let runtime = new $Util.RuntimeOptions({});
2784
+ let headers = {};
2785
+ return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
2786
+ }
2787
+ async deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
2788
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2789
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2790
+ let req = new $OpenApi.OpenApiRequest({
2791
+ headers: headers,
2792
+ });
2793
+ let params = new $OpenApi.Params({
2794
+ action: "DeleteServiceAutoScaler",
2795
+ version: "2021-07-01",
2796
+ protocol: "HTTPS",
2797
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
2798
+ method: "DELETE",
2799
+ authType: "AK",
2800
+ style: "ROA",
2801
+ reqBodyType: "json",
2802
+ bodyType: "json",
2803
+ });
2804
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
2805
+ }
2806
+ async deleteServiceCronScaler(ClusterId, ServiceName) {
2807
+ let runtime = new $Util.RuntimeOptions({});
2808
+ let headers = {};
2809
+ return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
2810
+ }
2811
+ async deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
2812
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2813
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2814
+ let req = new $OpenApi.OpenApiRequest({
2815
+ headers: headers,
2816
+ });
2817
+ let params = new $OpenApi.Params({
2818
+ action: "DeleteServiceCronScaler",
2819
+ version: "2021-07-01",
2820
+ protocol: "HTTPS",
2821
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
2822
+ method: "DELETE",
2823
+ authType: "AK",
2824
+ style: "ROA",
2825
+ reqBodyType: "json",
2826
+ bodyType: "json",
2827
+ });
2828
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
2829
+ }
2830
+ async deleteServiceInstances(ClusterId, ServiceName, request) {
2831
+ let runtime = new $Util.RuntimeOptions({});
2832
+ let headers = {};
2833
+ return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
2834
+ }
2835
+ async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
2836
+ tea_util_1.default.validateModel(request);
2837
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2838
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2839
+ let query = {};
2840
+ if (!tea_util_1.default.isUnset(request.instanceList)) {
2841
+ query["InstanceList"] = request.instanceList;
2842
+ }
2843
+ let req = new $OpenApi.OpenApiRequest({
2844
+ headers: headers,
2845
+ query: openapi_util_1.default.query(query),
2846
+ });
2847
+ let params = new $OpenApi.Params({
2848
+ action: "DeleteServiceInstances",
2849
+ version: "2021-07-01",
2850
+ protocol: "HTTPS",
2851
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/instances`,
2852
+ method: "DELETE",
2853
+ authType: "AK",
2854
+ style: "ROA",
2855
+ reqBodyType: "json",
2856
+ bodyType: "json",
2857
+ });
2858
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
2859
+ }
2860
+ async deleteServiceMirror(ClusterId, ServiceName) {
2861
+ let runtime = new $Util.RuntimeOptions({});
2862
+ let headers = {};
2863
+ return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
2864
+ }
2865
+ async deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
2866
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2867
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2868
+ let req = new $OpenApi.OpenApiRequest({
2869
+ headers: headers,
2870
+ });
2871
+ let params = new $OpenApi.Params({
2872
+ action: "DeleteServiceMirror",
2873
+ version: "2021-07-01",
2874
+ protocol: "HTTPS",
2875
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
2876
+ method: "DELETE",
2877
+ authType: "AK",
2878
+ style: "ROA",
2879
+ reqBodyType: "json",
2880
+ bodyType: "json",
2881
+ });
2882
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
2883
+ }
2884
+ async describeResource(ClusterId, ResourceId) {
2885
+ let runtime = new $Util.RuntimeOptions({});
2886
+ let headers = {};
2887
+ return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
2888
+ }
2889
+ async describeResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
2890
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2891
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2892
+ let req = new $OpenApi.OpenApiRequest({
2893
+ headers: headers,
2894
+ });
2895
+ let params = new $OpenApi.Params({
2896
+ action: "DescribeResource",
2897
+ version: "2021-07-01",
2898
+ protocol: "HTTPS",
2899
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}`,
2900
+ method: "GET",
2901
+ authType: "AK",
2902
+ style: "ROA",
2903
+ reqBodyType: "json",
2904
+ bodyType: "json",
2905
+ });
2906
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
2907
+ }
2908
+ async describeResourceDLink(ClusterId, ResourceId) {
2909
+ let runtime = new $Util.RuntimeOptions({});
2910
+ let headers = {};
2911
+ return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
2912
+ }
2913
+ async describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
2914
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2915
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2916
+ let req = new $OpenApi.OpenApiRequest({
2917
+ headers: headers,
2918
+ });
2919
+ let params = new $OpenApi.Params({
2920
+ action: "DescribeResourceDLink",
2921
+ version: "2021-07-01",
2922
+ protocol: "HTTPS",
2923
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/dlink`,
2924
+ method: "GET",
2925
+ authType: "AK",
2926
+ style: "ROA",
2927
+ reqBodyType: "json",
2928
+ bodyType: "json",
2929
+ });
2930
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
2931
+ }
2932
+ async describeResourceLog(ClusterId, ResourceId) {
2933
+ let runtime = new $Util.RuntimeOptions({});
2934
+ let headers = {};
2935
+ return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
2936
+ }
2937
+ async describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
2938
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2939
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
2940
+ let req = new $OpenApi.OpenApiRequest({
2941
+ headers: headers,
2942
+ });
2943
+ let params = new $OpenApi.Params({
2944
+ action: "DescribeResourceLog",
2945
+ version: "2021-07-01",
2946
+ protocol: "HTTPS",
2947
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/log`,
2948
+ method: "GET",
2949
+ authType: "AK",
2950
+ style: "ROA",
2951
+ reqBodyType: "json",
2952
+ bodyType: "json",
2953
+ });
2954
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
2955
+ }
2956
+ async describeService(ClusterId, ServiceName) {
2957
+ let runtime = new $Util.RuntimeOptions({});
2958
+ let headers = {};
2959
+ return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
2960
+ }
2961
+ async describeServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
2962
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2963
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2964
+ let req = new $OpenApi.OpenApiRequest({
2965
+ headers: headers,
2966
+ });
2967
+ let params = new $OpenApi.Params({
2968
+ action: "DescribeService",
2969
+ version: "2021-07-01",
2970
+ protocol: "HTTPS",
2971
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}`,
2972
+ method: "GET",
2973
+ authType: "AK",
2974
+ style: "ROA",
2975
+ reqBodyType: "json",
2976
+ bodyType: "json",
2977
+ });
2978
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
2979
+ }
2980
+ async describeServiceAutoScaler(ClusterId, ServiceName) {
2981
+ let runtime = new $Util.RuntimeOptions({});
2982
+ let headers = {};
2983
+ return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
2984
+ }
2985
+ async describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
2986
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
2987
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2988
+ let req = new $OpenApi.OpenApiRequest({
2989
+ headers: headers,
2990
+ });
2991
+ let params = new $OpenApi.Params({
2992
+ action: "DescribeServiceAutoScaler",
2993
+ version: "2021-07-01",
2994
+ protocol: "HTTPS",
2995
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
2996
+ method: "GET",
2997
+ authType: "AK",
2998
+ style: "ROA",
2999
+ reqBodyType: "json",
3000
+ bodyType: "json",
3001
+ });
3002
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
3003
+ }
3004
+ async describeServiceCronScaler(ClusterId, ServiceName) {
3005
+ let runtime = new $Util.RuntimeOptions({});
3006
+ let headers = {};
3007
+ return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3008
+ }
3009
+ async describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3010
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3011
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3012
+ let req = new $OpenApi.OpenApiRequest({
3013
+ headers: headers,
3014
+ });
3015
+ let params = new $OpenApi.Params({
3016
+ action: "DescribeServiceCronScaler",
3017
+ version: "2021-07-01",
3018
+ protocol: "HTTPS",
3019
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
3020
+ method: "GET",
3021
+ authType: "AK",
3022
+ style: "ROA",
3023
+ reqBodyType: "json",
3024
+ bodyType: "json",
3025
+ });
3026
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
3027
+ }
3028
+ async describeServiceLog(ClusterId, ServiceName, request) {
3029
+ let runtime = new $Util.RuntimeOptions({});
3030
+ let headers = {};
3031
+ return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
3032
+ }
3033
+ async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3034
+ tea_util_1.default.validateModel(request);
3035
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3036
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3037
+ let query = {};
3038
+ if (!tea_util_1.default.isUnset(request.endTime)) {
3039
+ query["EndTime"] = request.endTime;
3040
+ }
3041
+ if (!tea_util_1.default.isUnset(request.ip)) {
3042
+ query["Ip"] = request.ip;
3043
+ }
3044
+ if (!tea_util_1.default.isUnset(request.keyword)) {
3045
+ query["Keyword"] = request.keyword;
3046
+ }
3047
+ if (!tea_util_1.default.isUnset(request.pageNum)) {
3048
+ query["PageNum"] = request.pageNum;
3049
+ }
3050
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3051
+ query["PageSize"] = request.pageSize;
3052
+ }
3053
+ if (!tea_util_1.default.isUnset(request.startTime)) {
3054
+ query["StartTime"] = request.startTime;
3055
+ }
3056
+ let req = new $OpenApi.OpenApiRequest({
3057
+ headers: headers,
3058
+ query: openapi_util_1.default.query(query),
3059
+ });
3060
+ let params = new $OpenApi.Params({
3061
+ action: "DescribeServiceLog",
3062
+ version: "2021-07-01",
3063
+ protocol: "HTTPS",
3064
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/logs`,
3065
+ method: "GET",
3066
+ authType: "AK",
3067
+ style: "ROA",
3068
+ reqBodyType: "json",
3069
+ bodyType: "json",
3070
+ });
3071
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
3072
+ }
3073
+ async describeServiceMirror(ClusterId, ServiceName) {
3074
+ let runtime = new $Util.RuntimeOptions({});
3075
+ let headers = {};
3076
+ return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
3077
+ }
3078
+ async describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
3079
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3080
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3081
+ let req = new $OpenApi.OpenApiRequest({
3082
+ headers: headers,
3083
+ });
3084
+ let params = new $OpenApi.Params({
3085
+ action: "DescribeServiceMirror",
3086
+ version: "2021-07-01",
3087
+ protocol: "HTTPS",
3088
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
3089
+ method: "GET",
3090
+ authType: "AK",
3091
+ style: "ROA",
3092
+ reqBodyType: "json",
3093
+ bodyType: "json",
3094
+ });
3095
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
3096
+ }
3097
+ async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
3098
+ let runtime = new $Util.RuntimeOptions({});
3099
+ let headers = {};
3100
+ return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
3101
+ }
3102
+ async listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime) {
3103
+ tea_util_1.default.validateModel(request);
3104
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3105
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3106
+ InstanceName = openapi_util_1.default.getEncodeParam(InstanceName);
3107
+ let query = {};
3108
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
3109
+ query["PageNumber"] = request.pageNumber;
3110
+ }
3111
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3112
+ query["PageSize"] = request.pageSize;
3113
+ }
3114
+ let req = new $OpenApi.OpenApiRequest({
3115
+ headers: headers,
3116
+ query: openapi_util_1.default.query(query),
3117
+ });
3118
+ let params = new $OpenApi.Params({
3119
+ action: "ListResourceInstanceWorker",
3120
+ version: "2021-07-01",
3121
+ protocol: "HTTPS",
3122
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instance/${InstanceName}/workers`,
3123
+ method: "GET",
3124
+ authType: "AK",
3125
+ style: "ROA",
3126
+ reqBodyType: "json",
3127
+ bodyType: "json",
3128
+ });
3129
+ return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
3130
+ }
3131
+ async listResourceInstances(ClusterId, ResourceId, request) {
3132
+ let runtime = new $Util.RuntimeOptions({});
3133
+ let headers = {};
3134
+ return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3135
+ }
3136
+ async listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3137
+ tea_util_1.default.validateModel(request);
3138
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3139
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3140
+ let query = {};
3141
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
3142
+ query["PageNumber"] = request.pageNumber;
3143
+ }
3144
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3145
+ query["PageSize"] = request.pageSize;
3146
+ }
3147
+ let req = new $OpenApi.OpenApiRequest({
3148
+ headers: headers,
3149
+ query: openapi_util_1.default.query(query),
3150
+ });
3151
+ let params = new $OpenApi.Params({
3152
+ action: "ListResourceInstances",
3153
+ version: "2021-07-01",
3154
+ protocol: "HTTPS",
3155
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/instances`,
3156
+ method: "GET",
3157
+ authType: "AK",
3158
+ style: "ROA",
3159
+ reqBodyType: "json",
3160
+ bodyType: "json",
3161
+ });
3162
+ return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
3163
+ }
3164
+ async listResourceServices(ClusterId, ResourceId, request) {
3165
+ let runtime = new $Util.RuntimeOptions({});
3166
+ let headers = {};
3167
+ return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3168
+ }
3169
+ async listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3170
+ tea_util_1.default.validateModel(request);
3171
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3172
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3173
+ let query = {};
3174
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
3175
+ query["PageNumber"] = request.pageNumber;
3176
+ }
3177
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3178
+ query["PageSize"] = request.pageSize;
3179
+ }
3180
+ let req = new $OpenApi.OpenApiRequest({
3181
+ headers: headers,
3182
+ query: openapi_util_1.default.query(query),
3183
+ });
3184
+ let params = new $OpenApi.Params({
3185
+ action: "ListResourceServices",
3186
+ version: "2021-07-01",
3187
+ protocol: "HTTPS",
3188
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/services`,
3189
+ method: "GET",
3190
+ authType: "AK",
3191
+ style: "ROA",
3192
+ reqBodyType: "json",
3193
+ bodyType: "json",
3194
+ });
3195
+ return $tea.cast(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
3196
+ }
3197
+ async listResources(request) {
3198
+ let runtime = new $Util.RuntimeOptions({});
3199
+ let headers = {};
3200
+ return await this.listResourcesWithOptions(request, headers, runtime);
3201
+ }
3202
+ async listResourcesWithOptions(request, headers, runtime) {
3203
+ tea_util_1.default.validateModel(request);
3204
+ let query = {};
3205
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
3206
+ query["PageNumber"] = request.pageNumber;
3207
+ }
3208
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3209
+ query["PageSize"] = request.pageSize;
3210
+ }
3211
+ let req = new $OpenApi.OpenApiRequest({
3212
+ headers: headers,
3213
+ query: openapi_util_1.default.query(query),
3214
+ });
3215
+ let params = new $OpenApi.Params({
3216
+ action: "ListResources",
3217
+ version: "2021-07-01",
3218
+ protocol: "HTTPS",
3219
+ pathname: `/api/v2/resources`,
3220
+ method: "GET",
3221
+ authType: "AK",
3222
+ style: "ROA",
3223
+ reqBodyType: "json",
3224
+ bodyType: "json",
3225
+ });
3226
+ return $tea.cast(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
3227
+ }
3228
+ async listServiceInstances(ClusterId, ServiceName, request) {
3229
+ let runtime = new $Util.RuntimeOptions({});
3230
+ let headers = {};
3231
+ return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
3232
+ }
3233
+ async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3234
+ tea_util_1.default.validateModel(request);
3235
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3236
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3237
+ let query = {};
3238
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
3239
+ query["PageNumber"] = request.pageNumber;
3240
+ }
3241
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3242
+ query["PageSize"] = request.pageSize;
3243
+ }
3244
+ let req = new $OpenApi.OpenApiRequest({
3245
+ headers: headers,
3246
+ query: openapi_util_1.default.query(query),
3247
+ });
3248
+ let params = new $OpenApi.Params({
3249
+ action: "ListServiceInstances",
3250
+ version: "2021-07-01",
3251
+ protocol: "HTTPS",
3252
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/instances`,
3253
+ method: "GET",
3254
+ authType: "AK",
3255
+ style: "ROA",
3256
+ reqBodyType: "json",
3257
+ bodyType: "json",
3258
+ });
3259
+ return $tea.cast(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
3260
+ }
3261
+ async listServices(request) {
3262
+ let runtime = new $Util.RuntimeOptions({});
3263
+ let headers = {};
3264
+ return await this.listServicesWithOptions(request, headers, runtime);
3265
+ }
3266
+ async listServicesWithOptions(request, headers, runtime) {
3267
+ tea_util_1.default.validateModel(request);
3268
+ let query = {};
3269
+ if (!tea_util_1.default.isUnset(request.filter)) {
3270
+ query["Filter"] = request.filter;
3271
+ }
3272
+ if (!tea_util_1.default.isUnset(request.order)) {
3273
+ query["Order"] = request.order;
3274
+ }
3275
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
3276
+ query["PageNumber"] = request.pageNumber;
3277
+ }
3278
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
3279
+ query["PageSize"] = request.pageSize;
3280
+ }
3281
+ if (!tea_util_1.default.isUnset(request.sort)) {
3282
+ query["Sort"] = request.sort;
3283
+ }
3284
+ let req = new $OpenApi.OpenApiRequest({
3285
+ headers: headers,
3286
+ query: openapi_util_1.default.query(query),
3287
+ });
3288
+ let params = new $OpenApi.Params({
3289
+ action: "ListServices",
3290
+ version: "2021-07-01",
3291
+ protocol: "HTTPS",
3292
+ pathname: `/api/v2/services`,
3293
+ method: "GET",
3294
+ authType: "AK",
3295
+ style: "ROA",
3296
+ reqBodyType: "json",
3297
+ bodyType: "json",
3298
+ });
3299
+ return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
3300
+ }
3301
+ async releaseService(ClusterId, ServiceName, request) {
3302
+ let runtime = new $Util.RuntimeOptions({});
3303
+ let headers = {};
3304
+ return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
3305
+ }
3306
+ async releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3307
+ tea_util_1.default.validateModel(request);
3308
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3309
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3310
+ let body = {};
3311
+ if (!tea_util_1.default.isUnset(request.weight)) {
3312
+ body["Weight"] = request.weight;
3313
+ }
3314
+ let req = new $OpenApi.OpenApiRequest({
3315
+ headers: headers,
3316
+ body: openapi_util_1.default.parseToMap(body),
3317
+ });
3318
+ let params = new $OpenApi.Params({
3319
+ action: "ReleaseService",
3320
+ version: "2021-07-01",
3321
+ protocol: "HTTPS",
3322
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/release`,
3323
+ method: "PUT",
3324
+ authType: "AK",
3325
+ style: "ROA",
3326
+ reqBodyType: "json",
3327
+ bodyType: "json",
3328
+ });
3329
+ return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
3330
+ }
3331
+ async startService(ClusterId, ServiceName) {
3332
+ let runtime = new $Util.RuntimeOptions({});
3333
+ let headers = {};
3334
+ return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3335
+ }
3336
+ async startServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3337
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3338
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3339
+ let req = new $OpenApi.OpenApiRequest({
3340
+ headers: headers,
3341
+ });
3342
+ let params = new $OpenApi.Params({
3343
+ action: "StartService",
3344
+ version: "2021-07-01",
3345
+ protocol: "HTTPS",
3346
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/start`,
3347
+ method: "PUT",
3348
+ authType: "AK",
3349
+ style: "ROA",
3350
+ reqBodyType: "json",
3351
+ bodyType: "json",
3352
+ });
3353
+ return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
3354
+ }
3355
+ async stopService(ClusterId, ServiceName) {
3356
+ let runtime = new $Util.RuntimeOptions({});
3357
+ let headers = {};
3358
+ return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3359
+ }
3360
+ async stopServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3361
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3362
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3363
+ let req = new $OpenApi.OpenApiRequest({
3364
+ headers: headers,
3365
+ });
3366
+ let params = new $OpenApi.Params({
3367
+ action: "StopService",
3368
+ version: "2021-07-01",
3369
+ protocol: "HTTPS",
3370
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/stop`,
3371
+ method: "PUT",
3372
+ authType: "AK",
3373
+ style: "ROA",
3374
+ reqBodyType: "json",
3375
+ bodyType: "json",
3376
+ });
3377
+ return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
3378
+ }
3379
+ async updateResource(ClusterId, ResourceId, request) {
3380
+ let runtime = new $Util.RuntimeOptions({});
3381
+ let headers = {};
3382
+ return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
3383
+ }
3384
+ async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3385
+ tea_util_1.default.validateModel(request);
3386
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3387
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3388
+ let body = {};
3389
+ if (!tea_util_1.default.isUnset(request.resourceName)) {
3390
+ body["ResourceName"] = request.resourceName;
3391
+ }
3392
+ let req = new $OpenApi.OpenApiRequest({
3393
+ headers: headers,
3394
+ body: openapi_util_1.default.parseToMap(body),
3395
+ });
3396
+ let params = new $OpenApi.Params({
3397
+ action: "UpdateResource",
3398
+ version: "2021-07-01",
3399
+ protocol: "HTTPS",
3400
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}`,
3401
+ method: "PUT",
3402
+ authType: "AK",
3403
+ style: "ROA",
3404
+ reqBodyType: "json",
3405
+ bodyType: "json",
3406
+ });
3407
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
3408
+ }
3409
+ async updateResourceDLink(ClusterId, ResourceId, request) {
3410
+ let runtime = new $Util.RuntimeOptions({});
3411
+ let headers = {};
3412
+ return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
3413
+ }
3414
+ async updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3415
+ tea_util_1.default.validateModel(request);
3416
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3417
+ ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3418
+ let body = {};
3419
+ if (!tea_util_1.default.isUnset(request.destinationCIDRs)) {
3420
+ body["DestinationCIDRs"] = request.destinationCIDRs;
3421
+ }
3422
+ if (!tea_util_1.default.isUnset(request.securityGroupId)) {
3423
+ body["SecurityGroupId"] = request.securityGroupId;
3424
+ }
3425
+ if (!tea_util_1.default.isUnset(request.vSwitchId)) {
3426
+ body["VSwitchId"] = request.vSwitchId;
3427
+ }
3428
+ if (!tea_util_1.default.isUnset(request.vSwitchIdList)) {
3429
+ body["VSwitchIdList"] = request.vSwitchIdList;
3430
+ }
3431
+ let req = new $OpenApi.OpenApiRequest({
3432
+ headers: headers,
3433
+ body: openapi_util_1.default.parseToMap(body),
3434
+ });
3435
+ let params = new $OpenApi.Params({
3436
+ action: "UpdateResourceDLink",
3437
+ version: "2021-07-01",
3438
+ protocol: "HTTPS",
3439
+ pathname: `/api/v2/resources/${ClusterId}/${ResourceId}/dlink`,
3440
+ method: "PUT",
3441
+ authType: "AK",
3442
+ style: "ROA",
3443
+ reqBodyType: "json",
3444
+ bodyType: "json",
3445
+ });
3446
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
3447
+ }
3448
+ async updateService(ClusterId, ServiceName, request) {
3449
+ let runtime = new $Util.RuntimeOptions({});
3450
+ let headers = {};
3451
+ return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
3452
+ }
3453
+ async updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3454
+ tea_util_1.default.validateModel(request);
3455
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3456
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3457
+ let req = new $OpenApi.OpenApiRequest({
3458
+ headers: headers,
3459
+ body: request.body,
3460
+ });
3461
+ let params = new $OpenApi.Params({
3462
+ action: "UpdateService",
3463
+ version: "2021-07-01",
3464
+ protocol: "HTTPS",
3465
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}`,
3466
+ method: "PUT",
3467
+ authType: "AK",
3468
+ style: "ROA",
3469
+ reqBodyType: "json",
3470
+ bodyType: "json",
3471
+ });
3472
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
3473
+ }
3474
+ async updateServiceAutoScaler(ClusterId, ServiceName, request) {
3475
+ let runtime = new $Util.RuntimeOptions({});
3476
+ let headers = {};
3477
+ return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3478
+ }
3479
+ async updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3480
+ tea_util_1.default.validateModel(request);
3481
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3482
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3483
+ let body = {};
3484
+ if (!tea_util_1.default.isUnset(request.max)) {
3485
+ body["Max"] = request.max;
3486
+ }
3487
+ if (!tea_util_1.default.isUnset(request.min)) {
3488
+ body["Min"] = request.min;
3489
+ }
3490
+ if (!tea_util_1.default.isUnset($tea.toMap(request.strategies))) {
3491
+ body["Strategies"] = request.strategies;
3492
+ }
3493
+ let req = new $OpenApi.OpenApiRequest({
3494
+ headers: headers,
3495
+ body: openapi_util_1.default.parseToMap(body),
3496
+ });
3497
+ let params = new $OpenApi.Params({
3498
+ action: "UpdateServiceAutoScaler",
3499
+ version: "2021-07-01",
3500
+ protocol: "HTTPS",
3501
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/autoscaler`,
3502
+ method: "PUT",
3503
+ authType: "AK",
3504
+ style: "ROA",
3505
+ reqBodyType: "json",
3506
+ bodyType: "json",
3507
+ });
3508
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
3509
+ }
3510
+ async updateServiceCronScaler(ClusterId, ServiceName, request) {
3511
+ let runtime = new $Util.RuntimeOptions({});
3512
+ let headers = {};
3513
+ return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3514
+ }
3515
+ async updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3516
+ tea_util_1.default.validateModel(request);
3517
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3518
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3519
+ let body = {};
3520
+ if (!tea_util_1.default.isUnset(request.excludeDates)) {
3521
+ body["ExcludeDates"] = request.excludeDates;
3522
+ }
3523
+ if (!tea_util_1.default.isUnset(request.scaleJobs)) {
3524
+ body["ScaleJobs"] = request.scaleJobs;
3525
+ }
3526
+ let req = new $OpenApi.OpenApiRequest({
3527
+ headers: headers,
3528
+ body: openapi_util_1.default.parseToMap(body),
3529
+ });
3530
+ let params = new $OpenApi.Params({
3531
+ action: "UpdateServiceCronScaler",
3532
+ version: "2021-07-01",
3533
+ protocol: "HTTPS",
3534
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/cronscaler`,
3535
+ method: "PUT",
3536
+ authType: "AK",
3537
+ style: "ROA",
3538
+ reqBodyType: "json",
3539
+ bodyType: "json",
3540
+ });
3541
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
3542
+ }
3543
+ async updateServiceMirror(ClusterId, ServiceName, request) {
3544
+ let runtime = new $Util.RuntimeOptions({});
3545
+ let headers = {};
3546
+ return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
3547
+ }
3548
+ async updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3549
+ tea_util_1.default.validateModel(request);
3550
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3551
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3552
+ let body = {};
3553
+ if (!tea_util_1.default.isUnset(request.ratio)) {
3554
+ body["Ratio"] = request.ratio;
3555
+ }
3556
+ if (!tea_util_1.default.isUnset(request.target)) {
3557
+ body["Target"] = request.target;
3558
+ }
3559
+ let req = new $OpenApi.OpenApiRequest({
3560
+ headers: headers,
3561
+ body: openapi_util_1.default.parseToMap(body),
3562
+ });
3563
+ let params = new $OpenApi.Params({
3564
+ action: "UpdateServiceMirror",
3565
+ version: "2021-07-01",
3566
+ protocol: "HTTPS",
3567
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/mirror`,
3568
+ method: "PUT",
3569
+ authType: "AK",
3570
+ style: "ROA",
3571
+ reqBodyType: "json",
3572
+ bodyType: "json",
3573
+ });
3574
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
3575
+ }
3576
+ async updateServiceVersion(ClusterId, ServiceName, request) {
3577
+ let runtime = new $Util.RuntimeOptions({});
3578
+ let headers = {};
3579
+ return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
3580
+ }
3581
+ async updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3582
+ tea_util_1.default.validateModel(request);
3583
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3584
+ ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3585
+ let body = {};
3586
+ if (!tea_util_1.default.isUnset(request.version)) {
3587
+ body["Version"] = request.version;
3588
+ }
3589
+ let req = new $OpenApi.OpenApiRequest({
3590
+ headers: headers,
3591
+ body: openapi_util_1.default.parseToMap(body),
3592
+ });
3593
+ let params = new $OpenApi.Params({
3594
+ action: "UpdateServiceVersion",
3595
+ version: "2021-07-01",
3596
+ protocol: "HTTPS",
3597
+ pathname: `/api/v2/services/${ClusterId}/${ServiceName}/version`,
3598
+ method: "PUT",
3599
+ authType: "AK",
3600
+ style: "ROA",
3601
+ reqBodyType: "json",
3602
+ bodyType: "json",
3603
+ });
3604
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
3605
+ }
3606
+ }
3607
+ exports.default = Client;
3608
+ //# sourceMappingURL=client.js.map