@alicloud/eas20210701 2.0.4 → 2.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.d.ts +209 -0
- package/dist/client.js +384 -0
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +475 -0
package/dist/client.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare class Resource extends $tea.Model {
|
|
|
92
92
|
prePaidInstanceCount?: number;
|
|
93
93
|
resourceId?: string;
|
|
94
94
|
resourceName?: string;
|
|
95
|
+
resourceType?: string;
|
|
95
96
|
status?: string;
|
|
96
97
|
updateTime?: string;
|
|
97
98
|
static names(): {
|
|
@@ -188,6 +189,8 @@ export declare class Service extends $tea.Model {
|
|
|
188
189
|
roleAttrs?: string;
|
|
189
190
|
runningInstance?: number;
|
|
190
191
|
safetyLock?: string;
|
|
192
|
+
secondaryInternetEndpoint?: string;
|
|
193
|
+
secondaryIntranetEndpoint?: string;
|
|
191
194
|
serviceConfig?: string;
|
|
192
195
|
serviceGroup?: string;
|
|
193
196
|
serviceId?: string;
|
|
@@ -285,6 +288,13 @@ export declare class CreateResourceRequest extends $tea.Model {
|
|
|
285
288
|
chargeType?: string;
|
|
286
289
|
ecsInstanceCount?: number;
|
|
287
290
|
ecsInstanceType?: string;
|
|
291
|
+
externalClusterId?: string;
|
|
292
|
+
nodeMatchLabels?: {
|
|
293
|
+
[key: string]: string;
|
|
294
|
+
};
|
|
295
|
+
nodeTolerations?: CreateResourceRequestNodeTolerations[];
|
|
296
|
+
resourceType?: string;
|
|
297
|
+
roleName?: string;
|
|
288
298
|
systemDiskSize?: number;
|
|
289
299
|
zone?: string;
|
|
290
300
|
static names(): {
|
|
@@ -858,7 +868,9 @@ export declare class DeleteServiceCronScalerResponse extends $tea.Model {
|
|
|
858
868
|
});
|
|
859
869
|
}
|
|
860
870
|
export declare class DeleteServiceInstancesRequest extends $tea.Model {
|
|
871
|
+
container?: string;
|
|
861
872
|
instanceList?: string;
|
|
873
|
+
softRestart?: boolean;
|
|
862
874
|
static names(): {
|
|
863
875
|
[key: string]: string;
|
|
864
876
|
};
|
|
@@ -1092,6 +1104,7 @@ export declare class DescribeResourceResponseBody extends $tea.Model {
|
|
|
1092
1104
|
requestId?: string;
|
|
1093
1105
|
resourceId?: string;
|
|
1094
1106
|
resourceName?: string;
|
|
1107
|
+
resourceType?: string;
|
|
1095
1108
|
status?: string;
|
|
1096
1109
|
updateTime?: string;
|
|
1097
1110
|
static names(): {
|
|
@@ -1268,6 +1281,35 @@ export declare class DescribeServiceCronScalerResponse extends $tea.Model {
|
|
|
1268
1281
|
[key: string]: any;
|
|
1269
1282
|
});
|
|
1270
1283
|
}
|
|
1284
|
+
export declare class DescribeServiceDiagnosisResponseBody extends $tea.Model {
|
|
1285
|
+
diagnosisList?: DescribeServiceDiagnosisResponseBodyDiagnosisList[];
|
|
1286
|
+
requestId?: string;
|
|
1287
|
+
static names(): {
|
|
1288
|
+
[key: string]: string;
|
|
1289
|
+
};
|
|
1290
|
+
static types(): {
|
|
1291
|
+
[key: string]: any;
|
|
1292
|
+
};
|
|
1293
|
+
constructor(map?: {
|
|
1294
|
+
[key: string]: any;
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
export declare class DescribeServiceDiagnosisResponse extends $tea.Model {
|
|
1298
|
+
headers: {
|
|
1299
|
+
[key: string]: string;
|
|
1300
|
+
};
|
|
1301
|
+
statusCode: number;
|
|
1302
|
+
body: DescribeServiceDiagnosisResponseBody;
|
|
1303
|
+
static names(): {
|
|
1304
|
+
[key: string]: string;
|
|
1305
|
+
};
|
|
1306
|
+
static types(): {
|
|
1307
|
+
[key: string]: any;
|
|
1308
|
+
};
|
|
1309
|
+
constructor(map?: {
|
|
1310
|
+
[key: string]: any;
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1271
1313
|
export declare class DescribeServiceEventRequest extends $tea.Model {
|
|
1272
1314
|
endTime?: string;
|
|
1273
1315
|
eventType?: string;
|
|
@@ -1317,6 +1359,35 @@ export declare class DescribeServiceEventResponse extends $tea.Model {
|
|
|
1317
1359
|
[key: string]: any;
|
|
1318
1360
|
});
|
|
1319
1361
|
}
|
|
1362
|
+
export declare class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
|
|
1363
|
+
diagnosis?: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
|
|
1364
|
+
requestId?: string;
|
|
1365
|
+
static names(): {
|
|
1366
|
+
[key: string]: string;
|
|
1367
|
+
};
|
|
1368
|
+
static types(): {
|
|
1369
|
+
[key: string]: any;
|
|
1370
|
+
};
|
|
1371
|
+
constructor(map?: {
|
|
1372
|
+
[key: string]: any;
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
export declare class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
|
|
1376
|
+
headers: {
|
|
1377
|
+
[key: string]: string;
|
|
1378
|
+
};
|
|
1379
|
+
statusCode: number;
|
|
1380
|
+
body: DescribeServiceInstanceDiagnosisResponseBody;
|
|
1381
|
+
static names(): {
|
|
1382
|
+
[key: string]: string;
|
|
1383
|
+
};
|
|
1384
|
+
static types(): {
|
|
1385
|
+
[key: string]: any;
|
|
1386
|
+
};
|
|
1387
|
+
constructor(map?: {
|
|
1388
|
+
[key: string]: any;
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1320
1391
|
export declare class DescribeServiceLogRequest extends $tea.Model {
|
|
1321
1392
|
containerName?: string;
|
|
1322
1393
|
endTime?: string;
|
|
@@ -1682,6 +1753,7 @@ export declare class ListResourcesRequest extends $tea.Model {
|
|
|
1682
1753
|
pageSize?: number;
|
|
1683
1754
|
resourceId?: string;
|
|
1684
1755
|
resourceName?: string;
|
|
1756
|
+
resourceType?: string;
|
|
1685
1757
|
static names(): {
|
|
1686
1758
|
[key: string]: string;
|
|
1687
1759
|
};
|
|
@@ -1724,6 +1796,36 @@ export declare class ListResourcesResponse extends $tea.Model {
|
|
|
1724
1796
|
[key: string]: any;
|
|
1725
1797
|
});
|
|
1726
1798
|
}
|
|
1799
|
+
export declare class ListServiceContainersResponseBody extends $tea.Model {
|
|
1800
|
+
containers?: ContainerInfo[];
|
|
1801
|
+
requestId?: string;
|
|
1802
|
+
serviceName?: string;
|
|
1803
|
+
static names(): {
|
|
1804
|
+
[key: string]: string;
|
|
1805
|
+
};
|
|
1806
|
+
static types(): {
|
|
1807
|
+
[key: string]: any;
|
|
1808
|
+
};
|
|
1809
|
+
constructor(map?: {
|
|
1810
|
+
[key: string]: any;
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
export declare class ListServiceContainersResponse extends $tea.Model {
|
|
1814
|
+
headers: {
|
|
1815
|
+
[key: string]: string;
|
|
1816
|
+
};
|
|
1817
|
+
statusCode: number;
|
|
1818
|
+
body: ListServiceContainersResponseBody;
|
|
1819
|
+
static names(): {
|
|
1820
|
+
[key: string]: string;
|
|
1821
|
+
};
|
|
1822
|
+
static types(): {
|
|
1823
|
+
[key: string]: any;
|
|
1824
|
+
};
|
|
1825
|
+
constructor(map?: {
|
|
1826
|
+
[key: string]: any;
|
|
1827
|
+
});
|
|
1828
|
+
}
|
|
1727
1829
|
export declare class ListServiceInstancesRequest extends $tea.Model {
|
|
1728
1830
|
filter?: string;
|
|
1729
1831
|
hostIP?: string;
|
|
@@ -1949,6 +2051,35 @@ export declare class ReleaseServiceResponse extends $tea.Model {
|
|
|
1949
2051
|
[key: string]: any;
|
|
1950
2052
|
});
|
|
1951
2053
|
}
|
|
2054
|
+
export declare class RestartServiceResponseBody extends $tea.Model {
|
|
2055
|
+
message?: string;
|
|
2056
|
+
requestId?: string;
|
|
2057
|
+
static names(): {
|
|
2058
|
+
[key: string]: string;
|
|
2059
|
+
};
|
|
2060
|
+
static types(): {
|
|
2061
|
+
[key: string]: any;
|
|
2062
|
+
};
|
|
2063
|
+
constructor(map?: {
|
|
2064
|
+
[key: string]: any;
|
|
2065
|
+
});
|
|
2066
|
+
}
|
|
2067
|
+
export declare class RestartServiceResponse extends $tea.Model {
|
|
2068
|
+
headers: {
|
|
2069
|
+
[key: string]: string;
|
|
2070
|
+
};
|
|
2071
|
+
statusCode: number;
|
|
2072
|
+
body: RestartServiceResponseBody;
|
|
2073
|
+
static names(): {
|
|
2074
|
+
[key: string]: string;
|
|
2075
|
+
};
|
|
2076
|
+
static types(): {
|
|
2077
|
+
[key: string]: any;
|
|
2078
|
+
};
|
|
2079
|
+
constructor(map?: {
|
|
2080
|
+
[key: string]: any;
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
1952
2083
|
export declare class StartBenchmarkTaskResponseBody extends $tea.Model {
|
|
1953
2084
|
message?: string;
|
|
1954
2085
|
requestId?: string;
|
|
@@ -2107,6 +2238,10 @@ export declare class UpdateBenchmarkTaskResponse extends $tea.Model {
|
|
|
2107
2238
|
});
|
|
2108
2239
|
}
|
|
2109
2240
|
export declare class UpdateResourceRequest extends $tea.Model {
|
|
2241
|
+
nodeMatchLabels?: {
|
|
2242
|
+
[key: string]: string;
|
|
2243
|
+
};
|
|
2244
|
+
nodeTolerations?: UpdateResourceRequestNodeTolerations[];
|
|
2110
2245
|
resourceName?: string;
|
|
2111
2246
|
static names(): {
|
|
2112
2247
|
[key: string]: string;
|
|
@@ -2541,6 +2676,21 @@ export declare class ServiceLabels extends $tea.Model {
|
|
|
2541
2676
|
[key: string]: any;
|
|
2542
2677
|
});
|
|
2543
2678
|
}
|
|
2679
|
+
export declare class CreateResourceRequestNodeTolerations extends $tea.Model {
|
|
2680
|
+
effect?: string;
|
|
2681
|
+
key?: string;
|
|
2682
|
+
operator?: string;
|
|
2683
|
+
value?: string;
|
|
2684
|
+
static names(): {
|
|
2685
|
+
[key: string]: string;
|
|
2686
|
+
};
|
|
2687
|
+
static types(): {
|
|
2688
|
+
[key: string]: any;
|
|
2689
|
+
};
|
|
2690
|
+
constructor(map?: {
|
|
2691
|
+
[key: string]: any;
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2544
2694
|
export declare class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
2545
2695
|
scaleDownGracePeriodSeconds?: number;
|
|
2546
2696
|
scaleUpActivationReplicas?: number;
|
|
@@ -2666,6 +2816,20 @@ export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea
|
|
|
2666
2816
|
[key: string]: any;
|
|
2667
2817
|
});
|
|
2668
2818
|
}
|
|
2819
|
+
export declare class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
|
|
2820
|
+
advices?: string[];
|
|
2821
|
+
causes?: string[];
|
|
2822
|
+
error?: string;
|
|
2823
|
+
static names(): {
|
|
2824
|
+
[key: string]: string;
|
|
2825
|
+
};
|
|
2826
|
+
static types(): {
|
|
2827
|
+
[key: string]: any;
|
|
2828
|
+
};
|
|
2829
|
+
constructor(map?: {
|
|
2830
|
+
[key: string]: any;
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2669
2833
|
export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
|
|
2670
2834
|
message?: string;
|
|
2671
2835
|
reason?: string;
|
|
@@ -2681,6 +2845,20 @@ export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
|
|
|
2681
2845
|
[key: string]: any;
|
|
2682
2846
|
});
|
|
2683
2847
|
}
|
|
2848
|
+
export declare class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
|
|
2849
|
+
advices?: string[];
|
|
2850
|
+
causes?: string[];
|
|
2851
|
+
error?: string;
|
|
2852
|
+
static names(): {
|
|
2853
|
+
[key: string]: string;
|
|
2854
|
+
};
|
|
2855
|
+
static types(): {
|
|
2856
|
+
[key: string]: any;
|
|
2857
|
+
};
|
|
2858
|
+
constructor(map?: {
|
|
2859
|
+
[key: string]: any;
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2684
2862
|
export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
2685
2863
|
availableAgent?: number;
|
|
2686
2864
|
createTime?: string;
|
|
@@ -2717,6 +2895,21 @@ export declare class ListServiceVersionsResponseBodyVersions extends $tea.Model
|
|
|
2717
2895
|
[key: string]: any;
|
|
2718
2896
|
});
|
|
2719
2897
|
}
|
|
2898
|
+
export declare class UpdateResourceRequestNodeTolerations extends $tea.Model {
|
|
2899
|
+
effect?: string;
|
|
2900
|
+
key?: string;
|
|
2901
|
+
operator?: string;
|
|
2902
|
+
value?: string;
|
|
2903
|
+
static names(): {
|
|
2904
|
+
[key: string]: string;
|
|
2905
|
+
};
|
|
2906
|
+
static types(): {
|
|
2907
|
+
[key: string]: any;
|
|
2908
|
+
};
|
|
2909
|
+
constructor(map?: {
|
|
2910
|
+
[key: string]: any;
|
|
2911
|
+
});
|
|
2912
|
+
}
|
|
2720
2913
|
export declare class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
|
|
2721
2914
|
scaleDownGracePeriodSeconds?: number;
|
|
2722
2915
|
scaleUpActivationReplicas?: number;
|
|
@@ -2917,10 +3110,18 @@ export default class Client extends OpenApi {
|
|
|
2917
3110
|
[key: string]: string;
|
|
2918
3111
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse>;
|
|
2919
3112
|
describeServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceCronScalerResponse>;
|
|
3113
|
+
describeServiceDiagnosisWithOptions(ClusterId: string, ServiceName: string, headers: {
|
|
3114
|
+
[key: string]: string;
|
|
3115
|
+
}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceDiagnosisResponse>;
|
|
3116
|
+
describeServiceDiagnosis(ClusterId: string, ServiceName: string): Promise<DescribeServiceDiagnosisResponse>;
|
|
2920
3117
|
describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {
|
|
2921
3118
|
[key: string]: string;
|
|
2922
3119
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse>;
|
|
2923
3120
|
describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse>;
|
|
3121
|
+
describeServiceInstanceDiagnosisWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {
|
|
3122
|
+
[key: string]: string;
|
|
3123
|
+
}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceInstanceDiagnosisResponse>;
|
|
3124
|
+
describeServiceInstanceDiagnosis(ClusterId: string, ServiceName: string, InstanceName: string): Promise<DescribeServiceInstanceDiagnosisResponse>;
|
|
2924
3125
|
describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {
|
|
2925
3126
|
[key: string]: string;
|
|
2926
3127
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse>;
|
|
@@ -2957,6 +3158,10 @@ export default class Client extends OpenApi {
|
|
|
2957
3158
|
[key: string]: string;
|
|
2958
3159
|
}, runtime: $Util.RuntimeOptions): Promise<ListResourcesResponse>;
|
|
2959
3160
|
listResources(request: ListResourcesRequest): Promise<ListResourcesResponse>;
|
|
3161
|
+
listServiceContainersWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {
|
|
3162
|
+
[key: string]: string;
|
|
3163
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListServiceContainersResponse>;
|
|
3164
|
+
listServiceContainers(ClusterId: string, ServiceName: string, InstanceName: string): Promise<ListServiceContainersResponse>;
|
|
2960
3165
|
listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {
|
|
2961
3166
|
[key: string]: string;
|
|
2962
3167
|
}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse>;
|
|
@@ -2973,6 +3178,10 @@ export default class Client extends OpenApi {
|
|
|
2973
3178
|
[key: string]: string;
|
|
2974
3179
|
}, runtime: $Util.RuntimeOptions): Promise<ReleaseServiceResponse>;
|
|
2975
3180
|
releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse>;
|
|
3181
|
+
restartServiceWithOptions(ClusterId: string, ServiceName: string, headers: {
|
|
3182
|
+
[key: string]: string;
|
|
3183
|
+
}, runtime: $Util.RuntimeOptions): Promise<RestartServiceResponse>;
|
|
3184
|
+
restartService(ClusterId: string, ServiceName: string): Promise<RestartServiceResponse>;
|
|
2976
3185
|
startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {
|
|
2977
3186
|
[key: string]: string;
|
|
2978
3187
|
}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse>;
|