@alicloud/eas20210701 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +166 -0
- package/dist/client.js +353 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +469 -0
package/src/client.ts
CHANGED
|
@@ -8,6 +8,55 @@ import OpenApiUtil from '@alicloud/openapi-util';
|
|
|
8
8
|
import EndpointUtil from '@alicloud/endpoint-util';
|
|
9
9
|
import * as $tea from '@alicloud/tea-typescript';
|
|
10
10
|
|
|
11
|
+
export class ContainerInfo extends $tea.Model {
|
|
12
|
+
currentReaon?: string;
|
|
13
|
+
currentStatus?: string;
|
|
14
|
+
currentTimestamp?: string;
|
|
15
|
+
image?: string;
|
|
16
|
+
lastReason?: string;
|
|
17
|
+
lastStatus?: string;
|
|
18
|
+
lastTimestamp?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
port?: number;
|
|
21
|
+
ready?: boolean;
|
|
22
|
+
restartCount?: number;
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
currentReaon: 'CurrentReaon',
|
|
26
|
+
currentStatus: 'CurrentStatus',
|
|
27
|
+
currentTimestamp: 'CurrentTimestamp',
|
|
28
|
+
image: 'Image',
|
|
29
|
+
lastReason: 'LastReason',
|
|
30
|
+
lastStatus: 'LastStatus',
|
|
31
|
+
lastTimestamp: 'LastTimestamp',
|
|
32
|
+
name: 'Name',
|
|
33
|
+
port: 'Port',
|
|
34
|
+
ready: 'Ready',
|
|
35
|
+
restartCount: 'RestartCount',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static types(): { [key: string]: any } {
|
|
40
|
+
return {
|
|
41
|
+
currentReaon: 'string',
|
|
42
|
+
currentStatus: 'string',
|
|
43
|
+
currentTimestamp: 'string',
|
|
44
|
+
image: 'string',
|
|
45
|
+
lastReason: 'string',
|
|
46
|
+
lastStatus: 'string',
|
|
47
|
+
lastTimestamp: 'string',
|
|
48
|
+
name: 'string',
|
|
49
|
+
port: 'number',
|
|
50
|
+
ready: 'boolean',
|
|
51
|
+
restartCount: 'number',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
11
60
|
export class Group extends $tea.Model {
|
|
12
61
|
accessToken?: string;
|
|
13
62
|
clusterId?: string;
|
|
@@ -49,13 +98,16 @@ export class Group extends $tea.Model {
|
|
|
49
98
|
}
|
|
50
99
|
|
|
51
100
|
export class Instance extends $tea.Model {
|
|
101
|
+
currentAmount?: number;
|
|
52
102
|
hostIP?: string;
|
|
53
103
|
hostName?: string;
|
|
54
104
|
innerIP?: string;
|
|
55
105
|
instanceName?: string;
|
|
56
106
|
instancePort?: number;
|
|
107
|
+
isSpot?: boolean;
|
|
57
108
|
lastState?: { [key: string]: any }[];
|
|
58
109
|
namespace?: string;
|
|
110
|
+
originalAmount?: number;
|
|
59
111
|
readyProcesses?: number;
|
|
60
112
|
reason?: string;
|
|
61
113
|
resourceType?: string;
|
|
@@ -68,13 +120,16 @@ export class Instance extends $tea.Model {
|
|
|
68
120
|
totalProcesses?: number;
|
|
69
121
|
static names(): { [key: string]: string } {
|
|
70
122
|
return {
|
|
123
|
+
currentAmount: 'CurrentAmount',
|
|
71
124
|
hostIP: 'HostIP',
|
|
72
125
|
hostName: 'HostName',
|
|
73
126
|
innerIP: 'InnerIP',
|
|
74
127
|
instanceName: 'InstanceName',
|
|
75
128
|
instancePort: 'InstancePort',
|
|
129
|
+
isSpot: 'IsSpot',
|
|
76
130
|
lastState: 'LastState',
|
|
77
131
|
namespace: 'Namespace',
|
|
132
|
+
originalAmount: 'OriginalAmount',
|
|
78
133
|
readyProcesses: 'ReadyProcesses',
|
|
79
134
|
reason: 'Reason',
|
|
80
135
|
resourceType: 'ResourceType',
|
|
@@ -90,13 +145,16 @@ export class Instance extends $tea.Model {
|
|
|
90
145
|
|
|
91
146
|
static types(): { [key: string]: any } {
|
|
92
147
|
return {
|
|
148
|
+
currentAmount: 'number',
|
|
93
149
|
hostIP: 'string',
|
|
94
150
|
hostName: 'string',
|
|
95
151
|
innerIP: 'string',
|
|
96
152
|
instanceName: 'string',
|
|
97
153
|
instancePort: 'number',
|
|
154
|
+
isSpot: 'boolean',
|
|
98
155
|
lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
99
156
|
namespace: 'string',
|
|
157
|
+
originalAmount: 'number',
|
|
100
158
|
readyProcesses: 'number',
|
|
101
159
|
reason: 'string',
|
|
102
160
|
resourceType: 'string',
|
|
@@ -184,6 +242,7 @@ export class ResourceInstance extends $tea.Model {
|
|
|
184
242
|
instanceMemory?: string;
|
|
185
243
|
instanceName?: string;
|
|
186
244
|
instanceStatus?: string;
|
|
245
|
+
instanceSystemDiskSize?: number;
|
|
187
246
|
instanceTenantIp?: string;
|
|
188
247
|
instanceType?: string;
|
|
189
248
|
instanceUsedCpu?: number;
|
|
@@ -191,6 +250,7 @@ export class ResourceInstance extends $tea.Model {
|
|
|
191
250
|
instanceUsedGpuMemory?: string;
|
|
192
251
|
instanceUsedMemory?: string;
|
|
193
252
|
region?: string;
|
|
253
|
+
resourceId?: string;
|
|
194
254
|
zone?: string;
|
|
195
255
|
static names(): { [key: string]: string } {
|
|
196
256
|
return {
|
|
@@ -207,6 +267,7 @@ export class ResourceInstance extends $tea.Model {
|
|
|
207
267
|
instanceMemory: 'InstanceMemory',
|
|
208
268
|
instanceName: 'InstanceName',
|
|
209
269
|
instanceStatus: 'InstanceStatus',
|
|
270
|
+
instanceSystemDiskSize: 'InstanceSystemDiskSize',
|
|
210
271
|
instanceTenantIp: 'InstanceTenantIp',
|
|
211
272
|
instanceType: 'InstanceType',
|
|
212
273
|
instanceUsedCpu: 'InstanceUsedCpu',
|
|
@@ -214,6 +275,7 @@ export class ResourceInstance extends $tea.Model {
|
|
|
214
275
|
instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
|
|
215
276
|
instanceUsedMemory: 'InstanceUsedMemory',
|
|
216
277
|
region: 'Region',
|
|
278
|
+
resourceId: 'ResourceId',
|
|
217
279
|
zone: 'Zone',
|
|
218
280
|
};
|
|
219
281
|
}
|
|
@@ -233,6 +295,7 @@ export class ResourceInstance extends $tea.Model {
|
|
|
233
295
|
instanceMemory: 'string',
|
|
234
296
|
instanceName: 'string',
|
|
235
297
|
instanceStatus: 'string',
|
|
298
|
+
instanceSystemDiskSize: 'number',
|
|
236
299
|
instanceTenantIp: 'string',
|
|
237
300
|
instanceType: 'string',
|
|
238
301
|
instanceUsedCpu: 'number',
|
|
@@ -240,6 +303,7 @@ export class ResourceInstance extends $tea.Model {
|
|
|
240
303
|
instanceUsedGpuMemory: 'string',
|
|
241
304
|
instanceUsedMemory: 'string',
|
|
242
305
|
region: 'string',
|
|
306
|
+
resourceId: 'string',
|
|
243
307
|
zone: 'string',
|
|
244
308
|
};
|
|
245
309
|
}
|
|
@@ -549,12 +613,16 @@ export class CreateResourceRequest extends $tea.Model {
|
|
|
549
613
|
chargeType?: string;
|
|
550
614
|
ecsInstanceCount?: number;
|
|
551
615
|
ecsInstanceType?: string;
|
|
616
|
+
systemDiskSize?: number;
|
|
617
|
+
zone?: string;
|
|
552
618
|
static names(): { [key: string]: string } {
|
|
553
619
|
return {
|
|
554
620
|
autoRenewal: 'AutoRenewal',
|
|
555
621
|
chargeType: 'ChargeType',
|
|
556
622
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
557
623
|
ecsInstanceType: 'EcsInstanceType',
|
|
624
|
+
systemDiskSize: 'SystemDiskSize',
|
|
625
|
+
zone: 'Zone',
|
|
558
626
|
};
|
|
559
627
|
}
|
|
560
628
|
|
|
@@ -564,6 +632,8 @@ export class CreateResourceRequest extends $tea.Model {
|
|
|
564
632
|
chargeType: 'string',
|
|
565
633
|
ecsInstanceCount: 'number',
|
|
566
634
|
ecsInstanceType: 'string',
|
|
635
|
+
systemDiskSize: 'number',
|
|
636
|
+
zone: 'string',
|
|
567
637
|
};
|
|
568
638
|
}
|
|
569
639
|
|
|
@@ -574,6 +644,7 @@ export class CreateResourceRequest extends $tea.Model {
|
|
|
574
644
|
|
|
575
645
|
export class CreateResourceResponseBody extends $tea.Model {
|
|
576
646
|
clusterId?: string;
|
|
647
|
+
instanceIds?: string[];
|
|
577
648
|
ownerUid?: string;
|
|
578
649
|
requestId?: string;
|
|
579
650
|
resourceId?: string;
|
|
@@ -581,6 +652,7 @@ export class CreateResourceResponseBody extends $tea.Model {
|
|
|
581
652
|
static names(): { [key: string]: string } {
|
|
582
653
|
return {
|
|
583
654
|
clusterId: 'ClusterId',
|
|
655
|
+
instanceIds: 'InstanceIds',
|
|
584
656
|
ownerUid: 'OwnerUid',
|
|
585
657
|
requestId: 'RequestId',
|
|
586
658
|
resourceId: 'ResourceId',
|
|
@@ -591,6 +663,7 @@ export class CreateResourceResponseBody extends $tea.Model {
|
|
|
591
663
|
static types(): { [key: string]: any } {
|
|
592
664
|
return {
|
|
593
665
|
clusterId: 'string',
|
|
666
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
594
667
|
ownerUid: 'string',
|
|
595
668
|
requestId: 'string',
|
|
596
669
|
resourceId: 'string',
|
|
@@ -633,14 +706,18 @@ export class CreateResourceInstancesRequest extends $tea.Model {
|
|
|
633
706
|
chargeType?: string;
|
|
634
707
|
ecsInstanceCount?: number;
|
|
635
708
|
ecsInstanceType?: string;
|
|
709
|
+
systemDiskSize?: number;
|
|
636
710
|
userData?: string;
|
|
711
|
+
zone?: string;
|
|
637
712
|
static names(): { [key: string]: string } {
|
|
638
713
|
return {
|
|
639
714
|
autoRenewal: 'AutoRenewal',
|
|
640
715
|
chargeType: 'ChargeType',
|
|
641
716
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
642
717
|
ecsInstanceType: 'EcsInstanceType',
|
|
718
|
+
systemDiskSize: 'SystemDiskSize',
|
|
643
719
|
userData: 'UserData',
|
|
720
|
+
zone: 'Zone',
|
|
644
721
|
};
|
|
645
722
|
}
|
|
646
723
|
|
|
@@ -650,7 +727,9 @@ export class CreateResourceInstancesRequest extends $tea.Model {
|
|
|
650
727
|
chargeType: 'string',
|
|
651
728
|
ecsInstanceCount: 'number',
|
|
652
729
|
ecsInstanceType: 'string',
|
|
730
|
+
systemDiskSize: 'number',
|
|
653
731
|
userData: 'string',
|
|
732
|
+
zone: 'string',
|
|
654
733
|
};
|
|
655
734
|
}
|
|
656
735
|
|
|
@@ -660,10 +739,12 @@ export class CreateResourceInstancesRequest extends $tea.Model {
|
|
|
660
739
|
}
|
|
661
740
|
|
|
662
741
|
export class CreateResourceInstancesResponseBody extends $tea.Model {
|
|
742
|
+
instanceIds?: string[];
|
|
663
743
|
message?: string;
|
|
664
744
|
requestId?: string;
|
|
665
745
|
static names(): { [key: string]: string } {
|
|
666
746
|
return {
|
|
747
|
+
instanceIds: 'InstanceIds',
|
|
667
748
|
message: 'Message',
|
|
668
749
|
requestId: 'RequestId',
|
|
669
750
|
};
|
|
@@ -671,6 +752,7 @@ export class CreateResourceInstancesResponseBody extends $tea.Model {
|
|
|
671
752
|
|
|
672
753
|
static types(): { [key: string]: any } {
|
|
673
754
|
return {
|
|
755
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
674
756
|
message: 'string',
|
|
675
757
|
requestId: 'string',
|
|
676
758
|
};
|
|
@@ -888,11 +970,13 @@ export class CreateServiceResponse extends $tea.Model {
|
|
|
888
970
|
}
|
|
889
971
|
|
|
890
972
|
export class CreateServiceAutoScalerRequest extends $tea.Model {
|
|
973
|
+
behavior?: CreateServiceAutoScalerRequestBehavior;
|
|
891
974
|
max?: number;
|
|
892
975
|
min?: number;
|
|
893
976
|
scaleStrategies?: CreateServiceAutoScalerRequestScaleStrategies[];
|
|
894
977
|
static names(): { [key: string]: string } {
|
|
895
978
|
return {
|
|
979
|
+
behavior: 'behavior',
|
|
896
980
|
max: 'max',
|
|
897
981
|
min: 'min',
|
|
898
982
|
scaleStrategies: 'scaleStrategies',
|
|
@@ -901,6 +985,7 @@ export class CreateServiceAutoScalerRequest extends $tea.Model {
|
|
|
901
985
|
|
|
902
986
|
static types(): { [key: string]: any } {
|
|
903
987
|
return {
|
|
988
|
+
behavior: CreateServiceAutoScalerRequestBehavior,
|
|
904
989
|
max: 'number',
|
|
905
990
|
min: 'number',
|
|
906
991
|
scaleStrategies: { 'type': 'array', 'itemType': CreateServiceAutoScalerRequestScaleStrategies },
|
|
@@ -2210,12 +2295,16 @@ export class DescribeServiceCronScalerResponse extends $tea.Model {
|
|
|
2210
2295
|
|
|
2211
2296
|
export class DescribeServiceEventRequest extends $tea.Model {
|
|
2212
2297
|
endTime?: string;
|
|
2298
|
+
eventType?: string;
|
|
2299
|
+
instanceName?: string;
|
|
2213
2300
|
pageNum?: string;
|
|
2214
2301
|
pageSize?: string;
|
|
2215
2302
|
startTime?: string;
|
|
2216
2303
|
static names(): { [key: string]: string } {
|
|
2217
2304
|
return {
|
|
2218
2305
|
endTime: 'EndTime',
|
|
2306
|
+
eventType: 'EventType',
|
|
2307
|
+
instanceName: 'InstanceName',
|
|
2219
2308
|
pageNum: 'PageNum',
|
|
2220
2309
|
pageSize: 'PageSize',
|
|
2221
2310
|
startTime: 'StartTime',
|
|
@@ -2225,6 +2314,8 @@ export class DescribeServiceEventRequest extends $tea.Model {
|
|
|
2225
2314
|
static types(): { [key: string]: any } {
|
|
2226
2315
|
return {
|
|
2227
2316
|
endTime: 'string',
|
|
2317
|
+
eventType: 'string',
|
|
2318
|
+
instanceName: 'string',
|
|
2228
2319
|
pageNum: 'string',
|
|
2229
2320
|
pageSize: 'string',
|
|
2230
2321
|
startTime: 'string',
|
|
@@ -2293,30 +2384,39 @@ export class DescribeServiceEventResponse extends $tea.Model {
|
|
|
2293
2384
|
}
|
|
2294
2385
|
|
|
2295
2386
|
export class DescribeServiceLogRequest extends $tea.Model {
|
|
2387
|
+
containerName?: string;
|
|
2296
2388
|
endTime?: string;
|
|
2389
|
+
instanceName?: string;
|
|
2297
2390
|
ip?: string;
|
|
2298
2391
|
keyword?: string;
|
|
2299
2392
|
pageNum?: number;
|
|
2300
2393
|
pageSize?: number;
|
|
2394
|
+
previous?: boolean;
|
|
2301
2395
|
startTime?: string;
|
|
2302
2396
|
static names(): { [key: string]: string } {
|
|
2303
2397
|
return {
|
|
2398
|
+
containerName: 'ContainerName',
|
|
2304
2399
|
endTime: 'EndTime',
|
|
2400
|
+
instanceName: 'InstanceName',
|
|
2305
2401
|
ip: 'Ip',
|
|
2306
2402
|
keyword: 'Keyword',
|
|
2307
2403
|
pageNum: 'PageNum',
|
|
2308
2404
|
pageSize: 'PageSize',
|
|
2405
|
+
previous: 'Previous',
|
|
2309
2406
|
startTime: 'StartTime',
|
|
2310
2407
|
};
|
|
2311
2408
|
}
|
|
2312
2409
|
|
|
2313
2410
|
static types(): { [key: string]: any } {
|
|
2314
2411
|
return {
|
|
2412
|
+
containerName: 'string',
|
|
2315
2413
|
endTime: 'string',
|
|
2414
|
+
instanceName: 'string',
|
|
2316
2415
|
ip: 'string',
|
|
2317
2416
|
keyword: 'string',
|
|
2318
2417
|
pageNum: 'number',
|
|
2319
2418
|
pageSize: 'number',
|
|
2419
|
+
previous: 'boolean',
|
|
2320
2420
|
startTime: 'string',
|
|
2321
2421
|
};
|
|
2322
2422
|
}
|
|
@@ -2746,27 +2846,42 @@ export class ListResourceInstanceWorkerResponse extends $tea.Model {
|
|
|
2746
2846
|
|
|
2747
2847
|
export class ListResourceInstancesRequest extends $tea.Model {
|
|
2748
2848
|
chargeType?: string;
|
|
2849
|
+
filter?: string;
|
|
2850
|
+
instanceIP?: string;
|
|
2749
2851
|
instanceId?: string;
|
|
2750
2852
|
instanceName?: string;
|
|
2853
|
+
instanceStatus?: string;
|
|
2854
|
+
order?: string;
|
|
2751
2855
|
pageNumber?: number;
|
|
2752
2856
|
pageSize?: number;
|
|
2857
|
+
sort?: string;
|
|
2753
2858
|
static names(): { [key: string]: string } {
|
|
2754
2859
|
return {
|
|
2755
2860
|
chargeType: 'ChargeType',
|
|
2861
|
+
filter: 'Filter',
|
|
2862
|
+
instanceIP: 'InstanceIP',
|
|
2756
2863
|
instanceId: 'InstanceId',
|
|
2757
2864
|
instanceName: 'InstanceName',
|
|
2865
|
+
instanceStatus: 'InstanceStatus',
|
|
2866
|
+
order: 'Order',
|
|
2758
2867
|
pageNumber: 'PageNumber',
|
|
2759
2868
|
pageSize: 'PageSize',
|
|
2869
|
+
sort: 'Sort',
|
|
2760
2870
|
};
|
|
2761
2871
|
}
|
|
2762
2872
|
|
|
2763
2873
|
static types(): { [key: string]: any } {
|
|
2764
2874
|
return {
|
|
2765
2875
|
chargeType: 'string',
|
|
2876
|
+
filter: 'string',
|
|
2877
|
+
instanceIP: 'string',
|
|
2766
2878
|
instanceId: 'string',
|
|
2767
2879
|
instanceName: 'string',
|
|
2880
|
+
instanceStatus: 'string',
|
|
2881
|
+
order: 'string',
|
|
2768
2882
|
pageNumber: 'number',
|
|
2769
2883
|
pageSize: 'number',
|
|
2884
|
+
sort: 'string',
|
|
2770
2885
|
};
|
|
2771
2886
|
}
|
|
2772
2887
|
|
|
@@ -2994,19 +3109,52 @@ export class ListResourcesResponse extends $tea.Model {
|
|
|
2994
3109
|
}
|
|
2995
3110
|
|
|
2996
3111
|
export class ListServiceInstancesRequest extends $tea.Model {
|
|
3112
|
+
filter?: string;
|
|
3113
|
+
hostIP?: string;
|
|
3114
|
+
instanceIP?: string;
|
|
3115
|
+
instanceName?: string;
|
|
3116
|
+
instanceStatus?: string;
|
|
3117
|
+
instanceType?: string;
|
|
3118
|
+
isSpot?: boolean;
|
|
3119
|
+
order?: string;
|
|
2997
3120
|
pageNumber?: number;
|
|
2998
3121
|
pageSize?: number;
|
|
3122
|
+
resourceType?: string;
|
|
3123
|
+
role?: string;
|
|
3124
|
+
sort?: string;
|
|
2999
3125
|
static names(): { [key: string]: string } {
|
|
3000
3126
|
return {
|
|
3127
|
+
filter: 'Filter',
|
|
3128
|
+
hostIP: 'HostIP',
|
|
3129
|
+
instanceIP: 'InstanceIP',
|
|
3130
|
+
instanceName: 'InstanceName',
|
|
3131
|
+
instanceStatus: 'InstanceStatus',
|
|
3132
|
+
instanceType: 'InstanceType',
|
|
3133
|
+
isSpot: 'IsSpot',
|
|
3134
|
+
order: 'Order',
|
|
3001
3135
|
pageNumber: 'PageNumber',
|
|
3002
3136
|
pageSize: 'PageSize',
|
|
3137
|
+
resourceType: 'ResourceType',
|
|
3138
|
+
role: 'Role',
|
|
3139
|
+
sort: 'Sort',
|
|
3003
3140
|
};
|
|
3004
3141
|
}
|
|
3005
3142
|
|
|
3006
3143
|
static types(): { [key: string]: any } {
|
|
3007
3144
|
return {
|
|
3145
|
+
filter: 'string',
|
|
3146
|
+
hostIP: 'string',
|
|
3147
|
+
instanceIP: 'string',
|
|
3148
|
+
instanceName: 'string',
|
|
3149
|
+
instanceStatus: 'string',
|
|
3150
|
+
instanceType: 'string',
|
|
3151
|
+
isSpot: 'boolean',
|
|
3152
|
+
order: 'string',
|
|
3008
3153
|
pageNumber: 'number',
|
|
3009
3154
|
pageSize: 'number',
|
|
3155
|
+
resourceType: 'string',
|
|
3156
|
+
role: 'string',
|
|
3157
|
+
sort: 'string',
|
|
3010
3158
|
};
|
|
3011
3159
|
}
|
|
3012
3160
|
|
|
@@ -3157,7 +3305,11 @@ export class ListServicesRequest extends $tea.Model {
|
|
|
3157
3305
|
pageNumber?: number;
|
|
3158
3306
|
pageSize?: number;
|
|
3159
3307
|
parentServiceUid?: string;
|
|
3308
|
+
resourceName?: string;
|
|
3309
|
+
serviceName?: string;
|
|
3310
|
+
serviceStatus?: string;
|
|
3160
3311
|
serviceType?: string;
|
|
3312
|
+
serviceUid?: string;
|
|
3161
3313
|
sort?: string;
|
|
3162
3314
|
static names(): { [key: string]: string } {
|
|
3163
3315
|
return {
|
|
@@ -3168,7 +3320,11 @@ export class ListServicesRequest extends $tea.Model {
|
|
|
3168
3320
|
pageNumber: 'PageNumber',
|
|
3169
3321
|
pageSize: 'PageSize',
|
|
3170
3322
|
parentServiceUid: 'ParentServiceUid',
|
|
3323
|
+
resourceName: 'ResourceName',
|
|
3324
|
+
serviceName: 'ServiceName',
|
|
3325
|
+
serviceStatus: 'ServiceStatus',
|
|
3171
3326
|
serviceType: 'ServiceType',
|
|
3327
|
+
serviceUid: 'ServiceUid',
|
|
3172
3328
|
sort: 'Sort',
|
|
3173
3329
|
};
|
|
3174
3330
|
}
|
|
@@ -3182,7 +3338,11 @@ export class ListServicesRequest extends $tea.Model {
|
|
|
3182
3338
|
pageNumber: 'number',
|
|
3183
3339
|
pageSize: 'number',
|
|
3184
3340
|
parentServiceUid: 'string',
|
|
3341
|
+
resourceName: 'string',
|
|
3342
|
+
serviceName: 'string',
|
|
3343
|
+
serviceStatus: 'string',
|
|
3185
3344
|
serviceType: 'string',
|
|
3345
|
+
serviceUid: 'string',
|
|
3186
3346
|
sort: 'string',
|
|
3187
3347
|
};
|
|
3188
3348
|
}
|
|
@@ -3200,7 +3360,11 @@ export class ListServicesShrinkRequest extends $tea.Model {
|
|
|
3200
3360
|
pageNumber?: number;
|
|
3201
3361
|
pageSize?: number;
|
|
3202
3362
|
parentServiceUid?: string;
|
|
3363
|
+
resourceName?: string;
|
|
3364
|
+
serviceName?: string;
|
|
3365
|
+
serviceStatus?: string;
|
|
3203
3366
|
serviceType?: string;
|
|
3367
|
+
serviceUid?: string;
|
|
3204
3368
|
sort?: string;
|
|
3205
3369
|
static names(): { [key: string]: string } {
|
|
3206
3370
|
return {
|
|
@@ -3211,7 +3375,11 @@ export class ListServicesShrinkRequest extends $tea.Model {
|
|
|
3211
3375
|
pageNumber: 'PageNumber',
|
|
3212
3376
|
pageSize: 'PageSize',
|
|
3213
3377
|
parentServiceUid: 'ParentServiceUid',
|
|
3378
|
+
resourceName: 'ResourceName',
|
|
3379
|
+
serviceName: 'ServiceName',
|
|
3380
|
+
serviceStatus: 'ServiceStatus',
|
|
3214
3381
|
serviceType: 'ServiceType',
|
|
3382
|
+
serviceUid: 'ServiceUid',
|
|
3215
3383
|
sort: 'Sort',
|
|
3216
3384
|
};
|
|
3217
3385
|
}
|
|
@@ -3225,7 +3393,11 @@ export class ListServicesShrinkRequest extends $tea.Model {
|
|
|
3225
3393
|
pageNumber: 'number',
|
|
3226
3394
|
pageSize: 'number',
|
|
3227
3395
|
parentServiceUid: 'string',
|
|
3396
|
+
resourceName: 'string',
|
|
3397
|
+
serviceName: 'string',
|
|
3398
|
+
serviceStatus: 'string',
|
|
3228
3399
|
serviceType: 'string',
|
|
3400
|
+
serviceUid: 'string',
|
|
3229
3401
|
sort: 'string',
|
|
3230
3402
|
};
|
|
3231
3403
|
}
|
|
@@ -3894,11 +4066,13 @@ export class UpdateServiceResponse extends $tea.Model {
|
|
|
3894
4066
|
}
|
|
3895
4067
|
|
|
3896
4068
|
export class UpdateServiceAutoScalerRequest extends $tea.Model {
|
|
4069
|
+
behavior?: UpdateServiceAutoScalerRequestBehavior;
|
|
3897
4070
|
max?: number;
|
|
3898
4071
|
min?: number;
|
|
3899
4072
|
scaleStrategies?: UpdateServiceAutoScalerRequestScaleStrategies[];
|
|
3900
4073
|
static names(): { [key: string]: string } {
|
|
3901
4074
|
return {
|
|
4075
|
+
behavior: 'behavior',
|
|
3902
4076
|
max: 'max',
|
|
3903
4077
|
min: 'min',
|
|
3904
4078
|
scaleStrategies: 'scaleStrategies',
|
|
@@ -3907,6 +4081,7 @@ export class UpdateServiceAutoScalerRequest extends $tea.Model {
|
|
|
3907
4081
|
|
|
3908
4082
|
static types(): { [key: string]: any } {
|
|
3909
4083
|
return {
|
|
4084
|
+
behavior: UpdateServiceAutoScalerRequestBehavior,
|
|
3910
4085
|
max: 'number',
|
|
3911
4086
|
min: 'number',
|
|
3912
4087
|
scaleStrategies: { 'type': 'array', 'itemType': UpdateServiceAutoScalerRequestScaleStrategies },
|
|
@@ -4323,6 +4498,91 @@ export class ServiceLabels extends $tea.Model {
|
|
|
4323
4498
|
}
|
|
4324
4499
|
}
|
|
4325
4500
|
|
|
4501
|
+
export class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
4502
|
+
scaleDownGracePeriodSeconds?: number;
|
|
4503
|
+
scaleUpActivationReplicas?: number;
|
|
4504
|
+
static names(): { [key: string]: string } {
|
|
4505
|
+
return {
|
|
4506
|
+
scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
|
|
4507
|
+
scaleUpActivationReplicas: 'scaleUpActivationReplicas',
|
|
4508
|
+
};
|
|
4509
|
+
}
|
|
4510
|
+
|
|
4511
|
+
static types(): { [key: string]: any } {
|
|
4512
|
+
return {
|
|
4513
|
+
scaleDownGracePeriodSeconds: 'number',
|
|
4514
|
+
scaleUpActivationReplicas: 'number',
|
|
4515
|
+
};
|
|
4516
|
+
}
|
|
4517
|
+
|
|
4518
|
+
constructor(map?: { [key: string]: any }) {
|
|
4519
|
+
super(map);
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
|
|
4523
|
+
export class CreateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
|
|
4524
|
+
stabilizationWindowSeconds?: number;
|
|
4525
|
+
static names(): { [key: string]: string } {
|
|
4526
|
+
return {
|
|
4527
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
4528
|
+
};
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4531
|
+
static types(): { [key: string]: any } {
|
|
4532
|
+
return {
|
|
4533
|
+
stabilizationWindowSeconds: 'number',
|
|
4534
|
+
};
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
constructor(map?: { [key: string]: any }) {
|
|
4538
|
+
super(map);
|
|
4539
|
+
}
|
|
4540
|
+
}
|
|
4541
|
+
|
|
4542
|
+
export class CreateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
|
|
4543
|
+
stabilizationWindowSeconds?: number;
|
|
4544
|
+
static names(): { [key: string]: string } {
|
|
4545
|
+
return {
|
|
4546
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
4547
|
+
};
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
static types(): { [key: string]: any } {
|
|
4551
|
+
return {
|
|
4552
|
+
stabilizationWindowSeconds: 'number',
|
|
4553
|
+
};
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4556
|
+
constructor(map?: { [key: string]: any }) {
|
|
4557
|
+
super(map);
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
export class CreateServiceAutoScalerRequestBehavior extends $tea.Model {
|
|
4562
|
+
onZero?: CreateServiceAutoScalerRequestBehaviorOnZero;
|
|
4563
|
+
scaleDown?: CreateServiceAutoScalerRequestBehaviorScaleDown;
|
|
4564
|
+
scaleUp?: CreateServiceAutoScalerRequestBehaviorScaleUp;
|
|
4565
|
+
static names(): { [key: string]: string } {
|
|
4566
|
+
return {
|
|
4567
|
+
onZero: 'onZero',
|
|
4568
|
+
scaleDown: 'scaleDown',
|
|
4569
|
+
scaleUp: 'scaleUp',
|
|
4570
|
+
};
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
static types(): { [key: string]: any } {
|
|
4574
|
+
return {
|
|
4575
|
+
onZero: CreateServiceAutoScalerRequestBehaviorOnZero,
|
|
4576
|
+
scaleDown: CreateServiceAutoScalerRequestBehaviorScaleDown,
|
|
4577
|
+
scaleUp: CreateServiceAutoScalerRequestBehaviorScaleUp,
|
|
4578
|
+
};
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
constructor(map?: { [key: string]: any }) {
|
|
4582
|
+
super(map);
|
|
4583
|
+
}
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4326
4586
|
export class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
4327
4587
|
metricName?: string;
|
|
4328
4588
|
service?: string;
|
|
@@ -4562,6 +4822,91 @@ export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
|
|
|
4562
4822
|
}
|
|
4563
4823
|
}
|
|
4564
4824
|
|
|
4825
|
+
export class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
4826
|
+
scaleDownGracePeriodSeconds?: number;
|
|
4827
|
+
scaleUpActivationReplicas?: number;
|
|
4828
|
+
static names(): { [key: string]: string } {
|
|
4829
|
+
return {
|
|
4830
|
+
scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
|
|
4831
|
+
scaleUpActivationReplicas: 'scaleUpActivationReplicas',
|
|
4832
|
+
};
|
|
4833
|
+
}
|
|
4834
|
+
|
|
4835
|
+
static types(): { [key: string]: any } {
|
|
4836
|
+
return {
|
|
4837
|
+
scaleDownGracePeriodSeconds: 'number',
|
|
4838
|
+
scaleUpActivationReplicas: 'number',
|
|
4839
|
+
};
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4842
|
+
constructor(map?: { [key: string]: any }) {
|
|
4843
|
+
super(map);
|
|
4844
|
+
}
|
|
4845
|
+
}
|
|
4846
|
+
|
|
4847
|
+
export class UpdateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
|
|
4848
|
+
stabilizationWindowSeconds?: number;
|
|
4849
|
+
static names(): { [key: string]: string } {
|
|
4850
|
+
return {
|
|
4851
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
4852
|
+
};
|
|
4853
|
+
}
|
|
4854
|
+
|
|
4855
|
+
static types(): { [key: string]: any } {
|
|
4856
|
+
return {
|
|
4857
|
+
stabilizationWindowSeconds: 'number',
|
|
4858
|
+
};
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
constructor(map?: { [key: string]: any }) {
|
|
4862
|
+
super(map);
|
|
4863
|
+
}
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
export class UpdateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
|
|
4867
|
+
stabilizationWindowSeconds?: number;
|
|
4868
|
+
static names(): { [key: string]: string } {
|
|
4869
|
+
return {
|
|
4870
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
4871
|
+
};
|
|
4872
|
+
}
|
|
4873
|
+
|
|
4874
|
+
static types(): { [key: string]: any } {
|
|
4875
|
+
return {
|
|
4876
|
+
stabilizationWindowSeconds: 'number',
|
|
4877
|
+
};
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4880
|
+
constructor(map?: { [key: string]: any }) {
|
|
4881
|
+
super(map);
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
export class UpdateServiceAutoScalerRequestBehavior extends $tea.Model {
|
|
4886
|
+
onZero?: UpdateServiceAutoScalerRequestBehaviorOnZero;
|
|
4887
|
+
scaleDown?: UpdateServiceAutoScalerRequestBehaviorScaleDown;
|
|
4888
|
+
scaleUp?: UpdateServiceAutoScalerRequestBehaviorScaleUp;
|
|
4889
|
+
static names(): { [key: string]: string } {
|
|
4890
|
+
return {
|
|
4891
|
+
onZero: 'onZero',
|
|
4892
|
+
scaleDown: 'scaleDown',
|
|
4893
|
+
scaleUp: 'scaleUp',
|
|
4894
|
+
};
|
|
4895
|
+
}
|
|
4896
|
+
|
|
4897
|
+
static types(): { [key: string]: any } {
|
|
4898
|
+
return {
|
|
4899
|
+
onZero: UpdateServiceAutoScalerRequestBehaviorOnZero,
|
|
4900
|
+
scaleDown: UpdateServiceAutoScalerRequestBehaviorScaleDown,
|
|
4901
|
+
scaleUp: UpdateServiceAutoScalerRequestBehaviorScaleUp,
|
|
4902
|
+
};
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4905
|
+
constructor(map?: { [key: string]: any }) {
|
|
4906
|
+
super(map);
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
|
|
4565
4910
|
export class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
4566
4911
|
metricName?: string;
|
|
4567
4912
|
service?: string;
|
|
@@ -4721,6 +5066,14 @@ export default class Client extends OpenApi {
|
|
|
4721
5066
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
4722
5067
|
}
|
|
4723
5068
|
|
|
5069
|
+
if (!Util.isUnset(request.systemDiskSize)) {
|
|
5070
|
+
body["SystemDiskSize"] = request.systemDiskSize;
|
|
5071
|
+
}
|
|
5072
|
+
|
|
5073
|
+
if (!Util.isUnset(request.zone)) {
|
|
5074
|
+
body["Zone"] = request.zone;
|
|
5075
|
+
}
|
|
5076
|
+
|
|
4724
5077
|
let req = new $OpenApi.OpenApiRequest({
|
|
4725
5078
|
headers: headers,
|
|
4726
5079
|
body: OpenApiUtil.parseToMap(body),
|
|
@@ -4764,10 +5117,18 @@ export default class Client extends OpenApi {
|
|
|
4764
5117
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
4765
5118
|
}
|
|
4766
5119
|
|
|
5120
|
+
if (!Util.isUnset(request.systemDiskSize)) {
|
|
5121
|
+
body["SystemDiskSize"] = request.systemDiskSize;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
4767
5124
|
if (!Util.isUnset(request.userData)) {
|
|
4768
5125
|
body["UserData"] = request.userData;
|
|
4769
5126
|
}
|
|
4770
5127
|
|
|
5128
|
+
if (!Util.isUnset(request.zone)) {
|
|
5129
|
+
body["Zone"] = request.zone;
|
|
5130
|
+
}
|
|
5131
|
+
|
|
4771
5132
|
let req = new $OpenApi.OpenApiRequest({
|
|
4772
5133
|
headers: headers,
|
|
4773
5134
|
body: OpenApiUtil.parseToMap(body),
|
|
@@ -4872,6 +5233,10 @@ export default class Client extends OpenApi {
|
|
|
4872
5233
|
async createServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceAutoScalerResponse> {
|
|
4873
5234
|
Util.validateModel(request);
|
|
4874
5235
|
let body : {[key: string ]: any} = { };
|
|
5236
|
+
if (!Util.isUnset(request.behavior)) {
|
|
5237
|
+
body["behavior"] = request.behavior;
|
|
5238
|
+
}
|
|
5239
|
+
|
|
4875
5240
|
if (!Util.isUnset(request.max)) {
|
|
4876
5241
|
body["max"] = request.max;
|
|
4877
5242
|
}
|
|
@@ -5503,6 +5868,14 @@ export default class Client extends OpenApi {
|
|
|
5503
5868
|
query["EndTime"] = request.endTime;
|
|
5504
5869
|
}
|
|
5505
5870
|
|
|
5871
|
+
if (!Util.isUnset(request.eventType)) {
|
|
5872
|
+
query["EventType"] = request.eventType;
|
|
5873
|
+
}
|
|
5874
|
+
|
|
5875
|
+
if (!Util.isUnset(request.instanceName)) {
|
|
5876
|
+
query["InstanceName"] = request.instanceName;
|
|
5877
|
+
}
|
|
5878
|
+
|
|
5506
5879
|
if (!Util.isUnset(request.pageNum)) {
|
|
5507
5880
|
query["PageNum"] = request.pageNum;
|
|
5508
5881
|
}
|
|
@@ -5542,10 +5915,18 @@ export default class Client extends OpenApi {
|
|
|
5542
5915
|
async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
|
|
5543
5916
|
Util.validateModel(request);
|
|
5544
5917
|
let query : {[key: string ]: any} = { };
|
|
5918
|
+
if (!Util.isUnset(request.containerName)) {
|
|
5919
|
+
query["ContainerName"] = request.containerName;
|
|
5920
|
+
}
|
|
5921
|
+
|
|
5545
5922
|
if (!Util.isUnset(request.endTime)) {
|
|
5546
5923
|
query["EndTime"] = request.endTime;
|
|
5547
5924
|
}
|
|
5548
5925
|
|
|
5926
|
+
if (!Util.isUnset(request.instanceName)) {
|
|
5927
|
+
query["InstanceName"] = request.instanceName;
|
|
5928
|
+
}
|
|
5929
|
+
|
|
5549
5930
|
if (!Util.isUnset(request.ip)) {
|
|
5550
5931
|
query["Ip"] = request.ip;
|
|
5551
5932
|
}
|
|
@@ -5562,6 +5943,10 @@ export default class Client extends OpenApi {
|
|
|
5562
5943
|
query["PageSize"] = request.pageSize;
|
|
5563
5944
|
}
|
|
5564
5945
|
|
|
5946
|
+
if (!Util.isUnset(request.previous)) {
|
|
5947
|
+
query["Previous"] = request.previous;
|
|
5948
|
+
}
|
|
5949
|
+
|
|
5565
5950
|
if (!Util.isUnset(request.startTime)) {
|
|
5566
5951
|
query["StartTime"] = request.startTime;
|
|
5567
5952
|
}
|
|
@@ -5769,6 +6154,14 @@ export default class Client extends OpenApi {
|
|
|
5769
6154
|
query["ChargeType"] = request.chargeType;
|
|
5770
6155
|
}
|
|
5771
6156
|
|
|
6157
|
+
if (!Util.isUnset(request.filter)) {
|
|
6158
|
+
query["Filter"] = request.filter;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6161
|
+
if (!Util.isUnset(request.instanceIP)) {
|
|
6162
|
+
query["InstanceIP"] = request.instanceIP;
|
|
6163
|
+
}
|
|
6164
|
+
|
|
5772
6165
|
if (!Util.isUnset(request.instanceId)) {
|
|
5773
6166
|
query["InstanceId"] = request.instanceId;
|
|
5774
6167
|
}
|
|
@@ -5777,6 +6170,14 @@ export default class Client extends OpenApi {
|
|
|
5777
6170
|
query["InstanceName"] = request.instanceName;
|
|
5778
6171
|
}
|
|
5779
6172
|
|
|
6173
|
+
if (!Util.isUnset(request.instanceStatus)) {
|
|
6174
|
+
query["InstanceStatus"] = request.instanceStatus;
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
if (!Util.isUnset(request.order)) {
|
|
6178
|
+
query["Order"] = request.order;
|
|
6179
|
+
}
|
|
6180
|
+
|
|
5780
6181
|
if (!Util.isUnset(request.pageNumber)) {
|
|
5781
6182
|
query["PageNumber"] = request.pageNumber;
|
|
5782
6183
|
}
|
|
@@ -5785,6 +6186,10 @@ export default class Client extends OpenApi {
|
|
|
5785
6186
|
query["PageSize"] = request.pageSize;
|
|
5786
6187
|
}
|
|
5787
6188
|
|
|
6189
|
+
if (!Util.isUnset(request.sort)) {
|
|
6190
|
+
query["Sort"] = request.sort;
|
|
6191
|
+
}
|
|
6192
|
+
|
|
5788
6193
|
let req = new $OpenApi.OpenApiRequest({
|
|
5789
6194
|
headers: headers,
|
|
5790
6195
|
query: OpenApiUtil.query(query),
|
|
@@ -5890,6 +6295,38 @@ export default class Client extends OpenApi {
|
|
|
5890
6295
|
async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
|
|
5891
6296
|
Util.validateModel(request);
|
|
5892
6297
|
let query : {[key: string ]: any} = { };
|
|
6298
|
+
if (!Util.isUnset(request.filter)) {
|
|
6299
|
+
query["Filter"] = request.filter;
|
|
6300
|
+
}
|
|
6301
|
+
|
|
6302
|
+
if (!Util.isUnset(request.hostIP)) {
|
|
6303
|
+
query["HostIP"] = request.hostIP;
|
|
6304
|
+
}
|
|
6305
|
+
|
|
6306
|
+
if (!Util.isUnset(request.instanceIP)) {
|
|
6307
|
+
query["InstanceIP"] = request.instanceIP;
|
|
6308
|
+
}
|
|
6309
|
+
|
|
6310
|
+
if (!Util.isUnset(request.instanceName)) {
|
|
6311
|
+
query["InstanceName"] = request.instanceName;
|
|
6312
|
+
}
|
|
6313
|
+
|
|
6314
|
+
if (!Util.isUnset(request.instanceStatus)) {
|
|
6315
|
+
query["InstanceStatus"] = request.instanceStatus;
|
|
6316
|
+
}
|
|
6317
|
+
|
|
6318
|
+
if (!Util.isUnset(request.instanceType)) {
|
|
6319
|
+
query["InstanceType"] = request.instanceType;
|
|
6320
|
+
}
|
|
6321
|
+
|
|
6322
|
+
if (!Util.isUnset(request.isSpot)) {
|
|
6323
|
+
query["IsSpot"] = request.isSpot;
|
|
6324
|
+
}
|
|
6325
|
+
|
|
6326
|
+
if (!Util.isUnset(request.order)) {
|
|
6327
|
+
query["Order"] = request.order;
|
|
6328
|
+
}
|
|
6329
|
+
|
|
5893
6330
|
if (!Util.isUnset(request.pageNumber)) {
|
|
5894
6331
|
query["PageNumber"] = request.pageNumber;
|
|
5895
6332
|
}
|
|
@@ -5898,6 +6335,18 @@ export default class Client extends OpenApi {
|
|
|
5898
6335
|
query["PageSize"] = request.pageSize;
|
|
5899
6336
|
}
|
|
5900
6337
|
|
|
6338
|
+
if (!Util.isUnset(request.resourceType)) {
|
|
6339
|
+
query["ResourceType"] = request.resourceType;
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6342
|
+
if (!Util.isUnset(request.role)) {
|
|
6343
|
+
query["Role"] = request.role;
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
if (!Util.isUnset(request.sort)) {
|
|
6347
|
+
query["Sort"] = request.sort;
|
|
6348
|
+
}
|
|
6349
|
+
|
|
5901
6350
|
let req = new $OpenApi.OpenApiRequest({
|
|
5902
6351
|
headers: headers,
|
|
5903
6352
|
query: OpenApiUtil.query(query),
|
|
@@ -5994,10 +6443,26 @@ export default class Client extends OpenApi {
|
|
|
5994
6443
|
query["ParentServiceUid"] = request.parentServiceUid;
|
|
5995
6444
|
}
|
|
5996
6445
|
|
|
6446
|
+
if (!Util.isUnset(request.resourceName)) {
|
|
6447
|
+
query["ResourceName"] = request.resourceName;
|
|
6448
|
+
}
|
|
6449
|
+
|
|
6450
|
+
if (!Util.isUnset(request.serviceName)) {
|
|
6451
|
+
query["ServiceName"] = request.serviceName;
|
|
6452
|
+
}
|
|
6453
|
+
|
|
6454
|
+
if (!Util.isUnset(request.serviceStatus)) {
|
|
6455
|
+
query["ServiceStatus"] = request.serviceStatus;
|
|
6456
|
+
}
|
|
6457
|
+
|
|
5997
6458
|
if (!Util.isUnset(request.serviceType)) {
|
|
5998
6459
|
query["ServiceType"] = request.serviceType;
|
|
5999
6460
|
}
|
|
6000
6461
|
|
|
6462
|
+
if (!Util.isUnset(request.serviceUid)) {
|
|
6463
|
+
query["ServiceUid"] = request.serviceUid;
|
|
6464
|
+
}
|
|
6465
|
+
|
|
6001
6466
|
if (!Util.isUnset(request.sort)) {
|
|
6002
6467
|
query["Sort"] = request.sort;
|
|
6003
6468
|
}
|
|
@@ -6317,6 +6782,10 @@ export default class Client extends OpenApi {
|
|
|
6317
6782
|
async updateServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceAutoScalerResponse> {
|
|
6318
6783
|
Util.validateModel(request);
|
|
6319
6784
|
let body : {[key: string ]: any} = { };
|
|
6785
|
+
if (!Util.isUnset(request.behavior)) {
|
|
6786
|
+
body["behavior"] = request.behavior;
|
|
6787
|
+
}
|
|
6788
|
+
|
|
6320
6789
|
if (!Util.isUnset(request.max)) {
|
|
6321
6790
|
body["max"] = request.max;
|
|
6322
6791
|
}
|