@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/dist/client.js
CHANGED
|
@@ -19,6 +19,42 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
19
19
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
20
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
21
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class ContainerInfo extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
currentReaon: 'CurrentReaon',
|
|
29
|
+
currentStatus: 'CurrentStatus',
|
|
30
|
+
currentTimestamp: 'CurrentTimestamp',
|
|
31
|
+
image: 'Image',
|
|
32
|
+
lastReason: 'LastReason',
|
|
33
|
+
lastStatus: 'LastStatus',
|
|
34
|
+
lastTimestamp: 'LastTimestamp',
|
|
35
|
+
name: 'Name',
|
|
36
|
+
port: 'Port',
|
|
37
|
+
ready: 'Ready',
|
|
38
|
+
restartCount: 'RestartCount',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static types() {
|
|
42
|
+
return {
|
|
43
|
+
currentReaon: 'string',
|
|
44
|
+
currentStatus: 'string',
|
|
45
|
+
currentTimestamp: 'string',
|
|
46
|
+
image: 'string',
|
|
47
|
+
lastReason: 'string',
|
|
48
|
+
lastStatus: 'string',
|
|
49
|
+
lastTimestamp: 'string',
|
|
50
|
+
name: 'string',
|
|
51
|
+
port: 'number',
|
|
52
|
+
ready: 'boolean',
|
|
53
|
+
restartCount: 'number',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ContainerInfo = ContainerInfo;
|
|
22
58
|
class Group extends $tea.Model {
|
|
23
59
|
constructor(map) {
|
|
24
60
|
super(map);
|
|
@@ -55,13 +91,16 @@ class Instance extends $tea.Model {
|
|
|
55
91
|
}
|
|
56
92
|
static names() {
|
|
57
93
|
return {
|
|
94
|
+
currentAmount: 'CurrentAmount',
|
|
58
95
|
hostIP: 'HostIP',
|
|
59
96
|
hostName: 'HostName',
|
|
60
97
|
innerIP: 'InnerIP',
|
|
61
98
|
instanceName: 'InstanceName',
|
|
62
99
|
instancePort: 'InstancePort',
|
|
100
|
+
isSpot: 'IsSpot',
|
|
63
101
|
lastState: 'LastState',
|
|
64
102
|
namespace: 'Namespace',
|
|
103
|
+
originalAmount: 'OriginalAmount',
|
|
65
104
|
readyProcesses: 'ReadyProcesses',
|
|
66
105
|
reason: 'Reason',
|
|
67
106
|
resourceType: 'ResourceType',
|
|
@@ -76,13 +115,16 @@ class Instance extends $tea.Model {
|
|
|
76
115
|
}
|
|
77
116
|
static types() {
|
|
78
117
|
return {
|
|
118
|
+
currentAmount: 'number',
|
|
79
119
|
hostIP: 'string',
|
|
80
120
|
hostName: 'string',
|
|
81
121
|
innerIP: 'string',
|
|
82
122
|
instanceName: 'string',
|
|
83
123
|
instancePort: 'number',
|
|
124
|
+
isSpot: 'boolean',
|
|
84
125
|
lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
85
126
|
namespace: 'string',
|
|
127
|
+
originalAmount: 'number',
|
|
86
128
|
readyProcesses: 'number',
|
|
87
129
|
reason: 'string',
|
|
88
130
|
resourceType: 'string',
|
|
@@ -156,6 +198,7 @@ class ResourceInstance extends $tea.Model {
|
|
|
156
198
|
instanceMemory: 'InstanceMemory',
|
|
157
199
|
instanceName: 'InstanceName',
|
|
158
200
|
instanceStatus: 'InstanceStatus',
|
|
201
|
+
instanceSystemDiskSize: 'InstanceSystemDiskSize',
|
|
159
202
|
instanceTenantIp: 'InstanceTenantIp',
|
|
160
203
|
instanceType: 'InstanceType',
|
|
161
204
|
instanceUsedCpu: 'InstanceUsedCpu',
|
|
@@ -163,6 +206,7 @@ class ResourceInstance extends $tea.Model {
|
|
|
163
206
|
instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
|
|
164
207
|
instanceUsedMemory: 'InstanceUsedMemory',
|
|
165
208
|
region: 'Region',
|
|
209
|
+
resourceId: 'ResourceId',
|
|
166
210
|
zone: 'Zone',
|
|
167
211
|
};
|
|
168
212
|
}
|
|
@@ -181,6 +225,7 @@ class ResourceInstance extends $tea.Model {
|
|
|
181
225
|
instanceMemory: 'string',
|
|
182
226
|
instanceName: 'string',
|
|
183
227
|
instanceStatus: 'string',
|
|
228
|
+
instanceSystemDiskSize: 'number',
|
|
184
229
|
instanceTenantIp: 'string',
|
|
185
230
|
instanceType: 'string',
|
|
186
231
|
instanceUsedCpu: 'number',
|
|
@@ -188,6 +233,7 @@ class ResourceInstance extends $tea.Model {
|
|
|
188
233
|
instanceUsedGpuMemory: 'string',
|
|
189
234
|
instanceUsedMemory: 'string',
|
|
190
235
|
region: 'string',
|
|
236
|
+
resourceId: 'string',
|
|
191
237
|
zone: 'string',
|
|
192
238
|
};
|
|
193
239
|
}
|
|
@@ -423,6 +469,8 @@ class CreateResourceRequest extends $tea.Model {
|
|
|
423
469
|
chargeType: 'ChargeType',
|
|
424
470
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
425
471
|
ecsInstanceType: 'EcsInstanceType',
|
|
472
|
+
systemDiskSize: 'SystemDiskSize',
|
|
473
|
+
zone: 'Zone',
|
|
426
474
|
};
|
|
427
475
|
}
|
|
428
476
|
static types() {
|
|
@@ -431,6 +479,8 @@ class CreateResourceRequest extends $tea.Model {
|
|
|
431
479
|
chargeType: 'string',
|
|
432
480
|
ecsInstanceCount: 'number',
|
|
433
481
|
ecsInstanceType: 'string',
|
|
482
|
+
systemDiskSize: 'number',
|
|
483
|
+
zone: 'string',
|
|
434
484
|
};
|
|
435
485
|
}
|
|
436
486
|
}
|
|
@@ -442,6 +492,7 @@ class CreateResourceResponseBody extends $tea.Model {
|
|
|
442
492
|
static names() {
|
|
443
493
|
return {
|
|
444
494
|
clusterId: 'ClusterId',
|
|
495
|
+
instanceIds: 'InstanceIds',
|
|
445
496
|
ownerUid: 'OwnerUid',
|
|
446
497
|
requestId: 'RequestId',
|
|
447
498
|
resourceId: 'ResourceId',
|
|
@@ -451,6 +502,7 @@ class CreateResourceResponseBody extends $tea.Model {
|
|
|
451
502
|
static types() {
|
|
452
503
|
return {
|
|
453
504
|
clusterId: 'string',
|
|
505
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
454
506
|
ownerUid: 'string',
|
|
455
507
|
requestId: 'string',
|
|
456
508
|
resourceId: 'string',
|
|
@@ -489,7 +541,9 @@ class CreateResourceInstancesRequest extends $tea.Model {
|
|
|
489
541
|
chargeType: 'ChargeType',
|
|
490
542
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
491
543
|
ecsInstanceType: 'EcsInstanceType',
|
|
544
|
+
systemDiskSize: 'SystemDiskSize',
|
|
492
545
|
userData: 'UserData',
|
|
546
|
+
zone: 'Zone',
|
|
493
547
|
};
|
|
494
548
|
}
|
|
495
549
|
static types() {
|
|
@@ -498,7 +552,9 @@ class CreateResourceInstancesRequest extends $tea.Model {
|
|
|
498
552
|
chargeType: 'string',
|
|
499
553
|
ecsInstanceCount: 'number',
|
|
500
554
|
ecsInstanceType: 'string',
|
|
555
|
+
systemDiskSize: 'number',
|
|
501
556
|
userData: 'string',
|
|
557
|
+
zone: 'string',
|
|
502
558
|
};
|
|
503
559
|
}
|
|
504
560
|
}
|
|
@@ -509,12 +565,14 @@ class CreateResourceInstancesResponseBody extends $tea.Model {
|
|
|
509
565
|
}
|
|
510
566
|
static names() {
|
|
511
567
|
return {
|
|
568
|
+
instanceIds: 'InstanceIds',
|
|
512
569
|
message: 'Message',
|
|
513
570
|
requestId: 'RequestId',
|
|
514
571
|
};
|
|
515
572
|
}
|
|
516
573
|
static types() {
|
|
517
574
|
return {
|
|
575
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
518
576
|
message: 'string',
|
|
519
577
|
requestId: 'string',
|
|
520
578
|
};
|
|
@@ -691,6 +749,7 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
|
|
|
691
749
|
}
|
|
692
750
|
static names() {
|
|
693
751
|
return {
|
|
752
|
+
behavior: 'behavior',
|
|
694
753
|
max: 'max',
|
|
695
754
|
min: 'min',
|
|
696
755
|
scaleStrategies: 'scaleStrategies',
|
|
@@ -698,6 +757,7 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
|
|
|
698
757
|
}
|
|
699
758
|
static types() {
|
|
700
759
|
return {
|
|
760
|
+
behavior: CreateServiceAutoScalerRequestBehavior,
|
|
701
761
|
max: 'number',
|
|
702
762
|
min: 'number',
|
|
703
763
|
scaleStrategies: { 'type': 'array', 'itemType': CreateServiceAutoScalerRequestScaleStrategies },
|
|
@@ -1746,6 +1806,8 @@ class DescribeServiceEventRequest extends $tea.Model {
|
|
|
1746
1806
|
static names() {
|
|
1747
1807
|
return {
|
|
1748
1808
|
endTime: 'EndTime',
|
|
1809
|
+
eventType: 'EventType',
|
|
1810
|
+
instanceName: 'InstanceName',
|
|
1749
1811
|
pageNum: 'PageNum',
|
|
1750
1812
|
pageSize: 'PageSize',
|
|
1751
1813
|
startTime: 'StartTime',
|
|
@@ -1754,6 +1816,8 @@ class DescribeServiceEventRequest extends $tea.Model {
|
|
|
1754
1816
|
static types() {
|
|
1755
1817
|
return {
|
|
1756
1818
|
endTime: 'string',
|
|
1819
|
+
eventType: 'string',
|
|
1820
|
+
instanceName: 'string',
|
|
1757
1821
|
pageNum: 'string',
|
|
1758
1822
|
pageSize: 'string',
|
|
1759
1823
|
startTime: 'string',
|
|
@@ -1811,21 +1875,27 @@ class DescribeServiceLogRequest extends $tea.Model {
|
|
|
1811
1875
|
}
|
|
1812
1876
|
static names() {
|
|
1813
1877
|
return {
|
|
1878
|
+
containerName: 'ContainerName',
|
|
1814
1879
|
endTime: 'EndTime',
|
|
1880
|
+
instanceName: 'InstanceName',
|
|
1815
1881
|
ip: 'Ip',
|
|
1816
1882
|
keyword: 'Keyword',
|
|
1817
1883
|
pageNum: 'PageNum',
|
|
1818
1884
|
pageSize: 'PageSize',
|
|
1885
|
+
previous: 'Previous',
|
|
1819
1886
|
startTime: 'StartTime',
|
|
1820
1887
|
};
|
|
1821
1888
|
}
|
|
1822
1889
|
static types() {
|
|
1823
1890
|
return {
|
|
1891
|
+
containerName: 'string',
|
|
1824
1892
|
endTime: 'string',
|
|
1893
|
+
instanceName: 'string',
|
|
1825
1894
|
ip: 'string',
|
|
1826
1895
|
keyword: 'string',
|
|
1827
1896
|
pageNum: 'number',
|
|
1828
1897
|
pageSize: 'number',
|
|
1898
|
+
previous: 'boolean',
|
|
1829
1899
|
startTime: 'string',
|
|
1830
1900
|
};
|
|
1831
1901
|
}
|
|
@@ -2170,19 +2240,29 @@ class ListResourceInstancesRequest extends $tea.Model {
|
|
|
2170
2240
|
static names() {
|
|
2171
2241
|
return {
|
|
2172
2242
|
chargeType: 'ChargeType',
|
|
2243
|
+
filter: 'Filter',
|
|
2244
|
+
instanceIP: 'InstanceIP',
|
|
2173
2245
|
instanceId: 'InstanceId',
|
|
2174
2246
|
instanceName: 'InstanceName',
|
|
2247
|
+
instanceStatus: 'InstanceStatus',
|
|
2248
|
+
order: 'Order',
|
|
2175
2249
|
pageNumber: 'PageNumber',
|
|
2176
2250
|
pageSize: 'PageSize',
|
|
2251
|
+
sort: 'Sort',
|
|
2177
2252
|
};
|
|
2178
2253
|
}
|
|
2179
2254
|
static types() {
|
|
2180
2255
|
return {
|
|
2181
2256
|
chargeType: 'string',
|
|
2257
|
+
filter: 'string',
|
|
2258
|
+
instanceIP: 'string',
|
|
2182
2259
|
instanceId: 'string',
|
|
2183
2260
|
instanceName: 'string',
|
|
2261
|
+
instanceStatus: 'string',
|
|
2262
|
+
order: 'string',
|
|
2184
2263
|
pageNumber: 'number',
|
|
2185
2264
|
pageSize: 'number',
|
|
2265
|
+
sort: 'string',
|
|
2186
2266
|
};
|
|
2187
2267
|
}
|
|
2188
2268
|
}
|
|
@@ -2365,14 +2445,36 @@ class ListServiceInstancesRequest extends $tea.Model {
|
|
|
2365
2445
|
}
|
|
2366
2446
|
static names() {
|
|
2367
2447
|
return {
|
|
2448
|
+
filter: 'Filter',
|
|
2449
|
+
hostIP: 'HostIP',
|
|
2450
|
+
instanceIP: 'InstanceIP',
|
|
2451
|
+
instanceName: 'InstanceName',
|
|
2452
|
+
instanceStatus: 'InstanceStatus',
|
|
2453
|
+
instanceType: 'InstanceType',
|
|
2454
|
+
isSpot: 'IsSpot',
|
|
2455
|
+
order: 'Order',
|
|
2368
2456
|
pageNumber: 'PageNumber',
|
|
2369
2457
|
pageSize: 'PageSize',
|
|
2458
|
+
resourceType: 'ResourceType',
|
|
2459
|
+
role: 'Role',
|
|
2460
|
+
sort: 'Sort',
|
|
2370
2461
|
};
|
|
2371
2462
|
}
|
|
2372
2463
|
static types() {
|
|
2373
2464
|
return {
|
|
2465
|
+
filter: 'string',
|
|
2466
|
+
hostIP: 'string',
|
|
2467
|
+
instanceIP: 'string',
|
|
2468
|
+
instanceName: 'string',
|
|
2469
|
+
instanceStatus: 'string',
|
|
2470
|
+
instanceType: 'string',
|
|
2471
|
+
isSpot: 'boolean',
|
|
2472
|
+
order: 'string',
|
|
2374
2473
|
pageNumber: 'number',
|
|
2375
2474
|
pageSize: 'number',
|
|
2475
|
+
resourceType: 'string',
|
|
2476
|
+
role: 'string',
|
|
2477
|
+
sort: 'string',
|
|
2376
2478
|
};
|
|
2377
2479
|
}
|
|
2378
2480
|
}
|
|
@@ -2496,7 +2598,11 @@ class ListServicesRequest extends $tea.Model {
|
|
|
2496
2598
|
pageNumber: 'PageNumber',
|
|
2497
2599
|
pageSize: 'PageSize',
|
|
2498
2600
|
parentServiceUid: 'ParentServiceUid',
|
|
2601
|
+
resourceName: 'ResourceName',
|
|
2602
|
+
serviceName: 'ServiceName',
|
|
2603
|
+
serviceStatus: 'ServiceStatus',
|
|
2499
2604
|
serviceType: 'ServiceType',
|
|
2605
|
+
serviceUid: 'ServiceUid',
|
|
2500
2606
|
sort: 'Sort',
|
|
2501
2607
|
};
|
|
2502
2608
|
}
|
|
@@ -2509,7 +2615,11 @@ class ListServicesRequest extends $tea.Model {
|
|
|
2509
2615
|
pageNumber: 'number',
|
|
2510
2616
|
pageSize: 'number',
|
|
2511
2617
|
parentServiceUid: 'string',
|
|
2618
|
+
resourceName: 'string',
|
|
2619
|
+
serviceName: 'string',
|
|
2620
|
+
serviceStatus: 'string',
|
|
2512
2621
|
serviceType: 'string',
|
|
2622
|
+
serviceUid: 'string',
|
|
2513
2623
|
sort: 'string',
|
|
2514
2624
|
};
|
|
2515
2625
|
}
|
|
@@ -2528,7 +2638,11 @@ class ListServicesShrinkRequest extends $tea.Model {
|
|
|
2528
2638
|
pageNumber: 'PageNumber',
|
|
2529
2639
|
pageSize: 'PageSize',
|
|
2530
2640
|
parentServiceUid: 'ParentServiceUid',
|
|
2641
|
+
resourceName: 'ResourceName',
|
|
2642
|
+
serviceName: 'ServiceName',
|
|
2643
|
+
serviceStatus: 'ServiceStatus',
|
|
2531
2644
|
serviceType: 'ServiceType',
|
|
2645
|
+
serviceUid: 'ServiceUid',
|
|
2532
2646
|
sort: 'Sort',
|
|
2533
2647
|
};
|
|
2534
2648
|
}
|
|
@@ -2541,7 +2655,11 @@ class ListServicesShrinkRequest extends $tea.Model {
|
|
|
2541
2655
|
pageNumber: 'number',
|
|
2542
2656
|
pageSize: 'number',
|
|
2543
2657
|
parentServiceUid: 'string',
|
|
2658
|
+
resourceName: 'string',
|
|
2659
|
+
serviceName: 'string',
|
|
2660
|
+
serviceStatus: 'string',
|
|
2544
2661
|
serviceType: 'string',
|
|
2662
|
+
serviceUid: 'string',
|
|
2545
2663
|
sort: 'string',
|
|
2546
2664
|
};
|
|
2547
2665
|
}
|
|
@@ -3085,6 +3203,7 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
|
|
|
3085
3203
|
}
|
|
3086
3204
|
static names() {
|
|
3087
3205
|
return {
|
|
3206
|
+
behavior: 'behavior',
|
|
3088
3207
|
max: 'max',
|
|
3089
3208
|
min: 'min',
|
|
3090
3209
|
scaleStrategies: 'scaleStrategies',
|
|
@@ -3092,6 +3211,7 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
|
|
|
3092
3211
|
}
|
|
3093
3212
|
static types() {
|
|
3094
3213
|
return {
|
|
3214
|
+
behavior: UpdateServiceAutoScalerRequestBehavior,
|
|
3095
3215
|
max: 'number',
|
|
3096
3216
|
min: 'number',
|
|
3097
3217
|
scaleStrategies: { 'type': 'array', 'itemType': UpdateServiceAutoScalerRequestScaleStrategies },
|
|
@@ -3429,6 +3549,76 @@ class ServiceLabels extends $tea.Model {
|
|
|
3429
3549
|
}
|
|
3430
3550
|
}
|
|
3431
3551
|
exports.ServiceLabels = ServiceLabels;
|
|
3552
|
+
class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
3553
|
+
constructor(map) {
|
|
3554
|
+
super(map);
|
|
3555
|
+
}
|
|
3556
|
+
static names() {
|
|
3557
|
+
return {
|
|
3558
|
+
scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
|
|
3559
|
+
scaleUpActivationReplicas: 'scaleUpActivationReplicas',
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
static types() {
|
|
3563
|
+
return {
|
|
3564
|
+
scaleDownGracePeriodSeconds: 'number',
|
|
3565
|
+
scaleUpActivationReplicas: 'number',
|
|
3566
|
+
};
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
exports.CreateServiceAutoScalerRequestBehaviorOnZero = CreateServiceAutoScalerRequestBehaviorOnZero;
|
|
3570
|
+
class CreateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
|
|
3571
|
+
constructor(map) {
|
|
3572
|
+
super(map);
|
|
3573
|
+
}
|
|
3574
|
+
static names() {
|
|
3575
|
+
return {
|
|
3576
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
3577
|
+
};
|
|
3578
|
+
}
|
|
3579
|
+
static types() {
|
|
3580
|
+
return {
|
|
3581
|
+
stabilizationWindowSeconds: 'number',
|
|
3582
|
+
};
|
|
3583
|
+
}
|
|
3584
|
+
}
|
|
3585
|
+
exports.CreateServiceAutoScalerRequestBehaviorScaleDown = CreateServiceAutoScalerRequestBehaviorScaleDown;
|
|
3586
|
+
class CreateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
|
|
3587
|
+
constructor(map) {
|
|
3588
|
+
super(map);
|
|
3589
|
+
}
|
|
3590
|
+
static names() {
|
|
3591
|
+
return {
|
|
3592
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
3593
|
+
};
|
|
3594
|
+
}
|
|
3595
|
+
static types() {
|
|
3596
|
+
return {
|
|
3597
|
+
stabilizationWindowSeconds: 'number',
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
exports.CreateServiceAutoScalerRequestBehaviorScaleUp = CreateServiceAutoScalerRequestBehaviorScaleUp;
|
|
3602
|
+
class CreateServiceAutoScalerRequestBehavior extends $tea.Model {
|
|
3603
|
+
constructor(map) {
|
|
3604
|
+
super(map);
|
|
3605
|
+
}
|
|
3606
|
+
static names() {
|
|
3607
|
+
return {
|
|
3608
|
+
onZero: 'onZero',
|
|
3609
|
+
scaleDown: 'scaleDown',
|
|
3610
|
+
scaleUp: 'scaleUp',
|
|
3611
|
+
};
|
|
3612
|
+
}
|
|
3613
|
+
static types() {
|
|
3614
|
+
return {
|
|
3615
|
+
onZero: CreateServiceAutoScalerRequestBehaviorOnZero,
|
|
3616
|
+
scaleDown: CreateServiceAutoScalerRequestBehaviorScaleDown,
|
|
3617
|
+
scaleUp: CreateServiceAutoScalerRequestBehaviorScaleUp,
|
|
3618
|
+
};
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
exports.CreateServiceAutoScalerRequestBehavior = CreateServiceAutoScalerRequestBehavior;
|
|
3432
3622
|
class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
3433
3623
|
constructor(map) {
|
|
3434
3624
|
super(map);
|
|
@@ -3615,6 +3805,76 @@ class ListServiceVersionsResponseBodyVersions extends $tea.Model {
|
|
|
3615
3805
|
}
|
|
3616
3806
|
}
|
|
3617
3807
|
exports.ListServiceVersionsResponseBodyVersions = ListServiceVersionsResponseBodyVersions;
|
|
3808
|
+
class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
3809
|
+
constructor(map) {
|
|
3810
|
+
super(map);
|
|
3811
|
+
}
|
|
3812
|
+
static names() {
|
|
3813
|
+
return {
|
|
3814
|
+
scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
|
|
3815
|
+
scaleUpActivationReplicas: 'scaleUpActivationReplicas',
|
|
3816
|
+
};
|
|
3817
|
+
}
|
|
3818
|
+
static types() {
|
|
3819
|
+
return {
|
|
3820
|
+
scaleDownGracePeriodSeconds: 'number',
|
|
3821
|
+
scaleUpActivationReplicas: 'number',
|
|
3822
|
+
};
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
exports.UpdateServiceAutoScalerRequestBehaviorOnZero = UpdateServiceAutoScalerRequestBehaviorOnZero;
|
|
3826
|
+
class UpdateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
|
|
3827
|
+
constructor(map) {
|
|
3828
|
+
super(map);
|
|
3829
|
+
}
|
|
3830
|
+
static names() {
|
|
3831
|
+
return {
|
|
3832
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
3833
|
+
};
|
|
3834
|
+
}
|
|
3835
|
+
static types() {
|
|
3836
|
+
return {
|
|
3837
|
+
stabilizationWindowSeconds: 'number',
|
|
3838
|
+
};
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
exports.UpdateServiceAutoScalerRequestBehaviorScaleDown = UpdateServiceAutoScalerRequestBehaviorScaleDown;
|
|
3842
|
+
class UpdateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
|
|
3843
|
+
constructor(map) {
|
|
3844
|
+
super(map);
|
|
3845
|
+
}
|
|
3846
|
+
static names() {
|
|
3847
|
+
return {
|
|
3848
|
+
stabilizationWindowSeconds: 'stabilizationWindowSeconds',
|
|
3849
|
+
};
|
|
3850
|
+
}
|
|
3851
|
+
static types() {
|
|
3852
|
+
return {
|
|
3853
|
+
stabilizationWindowSeconds: 'number',
|
|
3854
|
+
};
|
|
3855
|
+
}
|
|
3856
|
+
}
|
|
3857
|
+
exports.UpdateServiceAutoScalerRequestBehaviorScaleUp = UpdateServiceAutoScalerRequestBehaviorScaleUp;
|
|
3858
|
+
class UpdateServiceAutoScalerRequestBehavior extends $tea.Model {
|
|
3859
|
+
constructor(map) {
|
|
3860
|
+
super(map);
|
|
3861
|
+
}
|
|
3862
|
+
static names() {
|
|
3863
|
+
return {
|
|
3864
|
+
onZero: 'onZero',
|
|
3865
|
+
scaleDown: 'scaleDown',
|
|
3866
|
+
scaleUp: 'scaleUp',
|
|
3867
|
+
};
|
|
3868
|
+
}
|
|
3869
|
+
static types() {
|
|
3870
|
+
return {
|
|
3871
|
+
onZero: UpdateServiceAutoScalerRequestBehaviorOnZero,
|
|
3872
|
+
scaleDown: UpdateServiceAutoScalerRequestBehaviorScaleDown,
|
|
3873
|
+
scaleUp: UpdateServiceAutoScalerRequestBehaviorScaleUp,
|
|
3874
|
+
};
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
exports.UpdateServiceAutoScalerRequestBehavior = UpdateServiceAutoScalerRequestBehavior;
|
|
3618
3878
|
class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
|
|
3619
3879
|
constructor(map) {
|
|
3620
3880
|
super(map);
|
|
@@ -3749,6 +4009,12 @@ class Client extends openapi_client_1.default {
|
|
|
3749
4009
|
if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
|
|
3750
4010
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
3751
4011
|
}
|
|
4012
|
+
if (!tea_util_1.default.isUnset(request.systemDiskSize)) {
|
|
4013
|
+
body["SystemDiskSize"] = request.systemDiskSize;
|
|
4014
|
+
}
|
|
4015
|
+
if (!tea_util_1.default.isUnset(request.zone)) {
|
|
4016
|
+
body["Zone"] = request.zone;
|
|
4017
|
+
}
|
|
3752
4018
|
let req = new $OpenApi.OpenApiRequest({
|
|
3753
4019
|
headers: headers,
|
|
3754
4020
|
body: openapi_util_1.default.parseToMap(body),
|
|
@@ -3786,9 +4052,15 @@ class Client extends openapi_client_1.default {
|
|
|
3786
4052
|
if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
|
|
3787
4053
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
3788
4054
|
}
|
|
4055
|
+
if (!tea_util_1.default.isUnset(request.systemDiskSize)) {
|
|
4056
|
+
body["SystemDiskSize"] = request.systemDiskSize;
|
|
4057
|
+
}
|
|
3789
4058
|
if (!tea_util_1.default.isUnset(request.userData)) {
|
|
3790
4059
|
body["UserData"] = request.userData;
|
|
3791
4060
|
}
|
|
4061
|
+
if (!tea_util_1.default.isUnset(request.zone)) {
|
|
4062
|
+
body["Zone"] = request.zone;
|
|
4063
|
+
}
|
|
3792
4064
|
let req = new $OpenApi.OpenApiRequest({
|
|
3793
4065
|
headers: headers,
|
|
3794
4066
|
body: openapi_util_1.default.parseToMap(body),
|
|
@@ -3882,6 +4154,9 @@ class Client extends openapi_client_1.default {
|
|
|
3882
4154
|
async createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
3883
4155
|
tea_util_1.default.validateModel(request);
|
|
3884
4156
|
let body = {};
|
|
4157
|
+
if (!tea_util_1.default.isUnset(request.behavior)) {
|
|
4158
|
+
body["behavior"] = request.behavior;
|
|
4159
|
+
}
|
|
3885
4160
|
if (!tea_util_1.default.isUnset(request.max)) {
|
|
3886
4161
|
body["max"] = request.max;
|
|
3887
4162
|
}
|
|
@@ -4453,6 +4728,12 @@ class Client extends openapi_client_1.default {
|
|
|
4453
4728
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4454
4729
|
query["EndTime"] = request.endTime;
|
|
4455
4730
|
}
|
|
4731
|
+
if (!tea_util_1.default.isUnset(request.eventType)) {
|
|
4732
|
+
query["EventType"] = request.eventType;
|
|
4733
|
+
}
|
|
4734
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
4735
|
+
query["InstanceName"] = request.instanceName;
|
|
4736
|
+
}
|
|
4456
4737
|
if (!tea_util_1.default.isUnset(request.pageNum)) {
|
|
4457
4738
|
query["PageNum"] = request.pageNum;
|
|
4458
4739
|
}
|
|
@@ -4487,9 +4768,15 @@ class Client extends openapi_client_1.default {
|
|
|
4487
4768
|
async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4488
4769
|
tea_util_1.default.validateModel(request);
|
|
4489
4770
|
let query = {};
|
|
4771
|
+
if (!tea_util_1.default.isUnset(request.containerName)) {
|
|
4772
|
+
query["ContainerName"] = request.containerName;
|
|
4773
|
+
}
|
|
4490
4774
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4491
4775
|
query["EndTime"] = request.endTime;
|
|
4492
4776
|
}
|
|
4777
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
4778
|
+
query["InstanceName"] = request.instanceName;
|
|
4779
|
+
}
|
|
4493
4780
|
if (!tea_util_1.default.isUnset(request.ip)) {
|
|
4494
4781
|
query["Ip"] = request.ip;
|
|
4495
4782
|
}
|
|
@@ -4502,6 +4789,9 @@ class Client extends openapi_client_1.default {
|
|
|
4502
4789
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4503
4790
|
query["PageSize"] = request.pageSize;
|
|
4504
4791
|
}
|
|
4792
|
+
if (!tea_util_1.default.isUnset(request.previous)) {
|
|
4793
|
+
query["Previous"] = request.previous;
|
|
4794
|
+
}
|
|
4505
4795
|
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
4506
4796
|
query["StartTime"] = request.startTime;
|
|
4507
4797
|
}
|
|
@@ -4685,18 +4975,33 @@ class Client extends openapi_client_1.default {
|
|
|
4685
4975
|
if (!tea_util_1.default.isUnset(request.chargeType)) {
|
|
4686
4976
|
query["ChargeType"] = request.chargeType;
|
|
4687
4977
|
}
|
|
4978
|
+
if (!tea_util_1.default.isUnset(request.filter)) {
|
|
4979
|
+
query["Filter"] = request.filter;
|
|
4980
|
+
}
|
|
4981
|
+
if (!tea_util_1.default.isUnset(request.instanceIP)) {
|
|
4982
|
+
query["InstanceIP"] = request.instanceIP;
|
|
4983
|
+
}
|
|
4688
4984
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
4689
4985
|
query["InstanceId"] = request.instanceId;
|
|
4690
4986
|
}
|
|
4691
4987
|
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
4692
4988
|
query["InstanceName"] = request.instanceName;
|
|
4693
4989
|
}
|
|
4990
|
+
if (!tea_util_1.default.isUnset(request.instanceStatus)) {
|
|
4991
|
+
query["InstanceStatus"] = request.instanceStatus;
|
|
4992
|
+
}
|
|
4993
|
+
if (!tea_util_1.default.isUnset(request.order)) {
|
|
4994
|
+
query["Order"] = request.order;
|
|
4995
|
+
}
|
|
4694
4996
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
4695
4997
|
query["PageNumber"] = request.pageNumber;
|
|
4696
4998
|
}
|
|
4697
4999
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4698
5000
|
query["PageSize"] = request.pageSize;
|
|
4699
5001
|
}
|
|
5002
|
+
if (!tea_util_1.default.isUnset(request.sort)) {
|
|
5003
|
+
query["Sort"] = request.sort;
|
|
5004
|
+
}
|
|
4700
5005
|
let req = new $OpenApi.OpenApiRequest({
|
|
4701
5006
|
headers: headers,
|
|
4702
5007
|
query: openapi_util_1.default.query(query),
|
|
@@ -4790,12 +5095,45 @@ class Client extends openapi_client_1.default {
|
|
|
4790
5095
|
async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
4791
5096
|
tea_util_1.default.validateModel(request);
|
|
4792
5097
|
let query = {};
|
|
5098
|
+
if (!tea_util_1.default.isUnset(request.filter)) {
|
|
5099
|
+
query["Filter"] = request.filter;
|
|
5100
|
+
}
|
|
5101
|
+
if (!tea_util_1.default.isUnset(request.hostIP)) {
|
|
5102
|
+
query["HostIP"] = request.hostIP;
|
|
5103
|
+
}
|
|
5104
|
+
if (!tea_util_1.default.isUnset(request.instanceIP)) {
|
|
5105
|
+
query["InstanceIP"] = request.instanceIP;
|
|
5106
|
+
}
|
|
5107
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
5108
|
+
query["InstanceName"] = request.instanceName;
|
|
5109
|
+
}
|
|
5110
|
+
if (!tea_util_1.default.isUnset(request.instanceStatus)) {
|
|
5111
|
+
query["InstanceStatus"] = request.instanceStatus;
|
|
5112
|
+
}
|
|
5113
|
+
if (!tea_util_1.default.isUnset(request.instanceType)) {
|
|
5114
|
+
query["InstanceType"] = request.instanceType;
|
|
5115
|
+
}
|
|
5116
|
+
if (!tea_util_1.default.isUnset(request.isSpot)) {
|
|
5117
|
+
query["IsSpot"] = request.isSpot;
|
|
5118
|
+
}
|
|
5119
|
+
if (!tea_util_1.default.isUnset(request.order)) {
|
|
5120
|
+
query["Order"] = request.order;
|
|
5121
|
+
}
|
|
4793
5122
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
4794
5123
|
query["PageNumber"] = request.pageNumber;
|
|
4795
5124
|
}
|
|
4796
5125
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4797
5126
|
query["PageSize"] = request.pageSize;
|
|
4798
5127
|
}
|
|
5128
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
5129
|
+
query["ResourceType"] = request.resourceType;
|
|
5130
|
+
}
|
|
5131
|
+
if (!tea_util_1.default.isUnset(request.role)) {
|
|
5132
|
+
query["Role"] = request.role;
|
|
5133
|
+
}
|
|
5134
|
+
if (!tea_util_1.default.isUnset(request.sort)) {
|
|
5135
|
+
query["Sort"] = request.sort;
|
|
5136
|
+
}
|
|
4799
5137
|
let req = new $OpenApi.OpenApiRequest({
|
|
4800
5138
|
headers: headers,
|
|
4801
5139
|
query: openapi_util_1.default.query(query),
|
|
@@ -4878,9 +5216,21 @@ class Client extends openapi_client_1.default {
|
|
|
4878
5216
|
if (!tea_util_1.default.isUnset(request.parentServiceUid)) {
|
|
4879
5217
|
query["ParentServiceUid"] = request.parentServiceUid;
|
|
4880
5218
|
}
|
|
5219
|
+
if (!tea_util_1.default.isUnset(request.resourceName)) {
|
|
5220
|
+
query["ResourceName"] = request.resourceName;
|
|
5221
|
+
}
|
|
5222
|
+
if (!tea_util_1.default.isUnset(request.serviceName)) {
|
|
5223
|
+
query["ServiceName"] = request.serviceName;
|
|
5224
|
+
}
|
|
5225
|
+
if (!tea_util_1.default.isUnset(request.serviceStatus)) {
|
|
5226
|
+
query["ServiceStatus"] = request.serviceStatus;
|
|
5227
|
+
}
|
|
4881
5228
|
if (!tea_util_1.default.isUnset(request.serviceType)) {
|
|
4882
5229
|
query["ServiceType"] = request.serviceType;
|
|
4883
5230
|
}
|
|
5231
|
+
if (!tea_util_1.default.isUnset(request.serviceUid)) {
|
|
5232
|
+
query["ServiceUid"] = request.serviceUid;
|
|
5233
|
+
}
|
|
4884
5234
|
if (!tea_util_1.default.isUnset(request.sort)) {
|
|
4885
5235
|
query["Sort"] = request.sort;
|
|
4886
5236
|
}
|
|
@@ -5169,6 +5519,9 @@ class Client extends openapi_client_1.default {
|
|
|
5169
5519
|
async updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
|
|
5170
5520
|
tea_util_1.default.validateModel(request);
|
|
5171
5521
|
let body = {};
|
|
5522
|
+
if (!tea_util_1.default.isUnset(request.behavior)) {
|
|
5523
|
+
body["behavior"] = request.behavior;
|
|
5524
|
+
}
|
|
5172
5525
|
if (!tea_util_1.default.isUnset(request.max)) {
|
|
5173
5526
|
body["max"] = request.max;
|
|
5174
5527
|
}
|