@alicloud/eas20210701 7.1.11 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +48 -0
- package/dist/client.js +128 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateFaultInjectionRequest.d.ts +29 -0
- package/dist/models/CreateFaultInjectionRequest.js +60 -0
- package/dist/models/CreateFaultInjectionRequest.js.map +1 -0
- package/dist/models/CreateFaultInjectionResponse.d.ts +19 -0
- package/dist/models/CreateFaultInjectionResponse.js +69 -0
- package/dist/models/CreateFaultInjectionResponse.js.map +1 -0
- package/dist/models/CreateFaultInjectionResponseBody.d.ts +26 -0
- package/dist/models/CreateFaultInjectionResponseBody.js +60 -0
- package/dist/models/CreateFaultInjectionResponseBody.js.map +1 -0
- package/dist/models/DeleteFaultInjectionResponse.d.ts +19 -0
- package/dist/models/DeleteFaultInjectionResponse.js +69 -0
- package/dist/models/DeleteFaultInjectionResponse.js.map +1 -0
- package/dist/models/DeleteFaultInjectionResponseBody.d.ts +26 -0
- package/dist/models/DeleteFaultInjectionResponseBody.js +60 -0
- package/dist/models/DeleteFaultInjectionResponseBody.js.map +1 -0
- package/dist/models/DeleteServiceInstancesRequest.d.ts +1 -2
- package/dist/models/DeleteServiceInstancesRequest.js +2 -0
- package/dist/models/DeleteServiceInstancesRequest.js.map +1 -1
- package/dist/models/Instance.d.ts +3 -0
- package/dist/models/Instance.js +6 -0
- package/dist/models/Instance.js.map +1 -1
- package/dist/models/ListServiceInstanceFaultInjectionInfoResponse.d.ts +19 -0
- package/dist/models/ListServiceInstanceFaultInjectionInfoResponse.js +69 -0
- package/dist/models/ListServiceInstanceFaultInjectionInfoResponse.js.map +1 -0
- package/dist/models/ListServiceInstanceFaultInjectionInfoResponseBody.d.ts +75 -0
- package/dist/models/ListServiceInstanceFaultInjectionInfoResponseBody.js +110 -0
- package/dist/models/ListServiceInstanceFaultInjectionInfoResponseBody.js.map +1 -0
- package/dist/models/ListServiceInstancesRequest.d.ts +2 -0
- package/dist/models/ListServiceInstancesRequest.js +4 -0
- package/dist/models/ListServiceInstancesRequest.js.map +1 -1
- package/dist/models/UpdateServiceInstanceRequest.d.ts +2 -0
- package/dist/models/UpdateServiceInstanceRequest.js +4 -0
- package/dist/models/UpdateServiceInstanceRequest.js.map +1 -1
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +25 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +141 -0
- package/src/models/CreateFaultInjectionRequest.ts +44 -0
- package/src/models/CreateFaultInjectionResponse.ts +40 -0
- package/src/models/CreateFaultInjectionResponseBody.ts +41 -0
- package/src/models/DeleteFaultInjectionResponse.ts +40 -0
- package/src/models/DeleteFaultInjectionResponseBody.ts +41 -0
- package/src/models/DeleteServiceInstancesRequest.ts +3 -2
- package/src/models/Instance.ts +9 -0
- package/src/models/ListServiceInstanceFaultInjectionInfoResponse.ts +40 -0
- package/src/models/ListServiceInstanceFaultInjectionInfoResponseBody.ts +122 -0
- package/src/models/ListServiceInstancesRequest.ts +6 -0
- package/src/models/UpdateServiceInstanceRequest.ts +6 -0
- package/src/models/model.ts +9 -0
package/dist/client.d.ts
CHANGED
|
@@ -113,6 +113,24 @@ export default class Client extends OpenApi {
|
|
|
113
113
|
* @returns CreateBenchmarkTaskResponse
|
|
114
114
|
*/
|
|
115
115
|
createBenchmarkTask(request: $_model.CreateBenchmarkTaskRequest): Promise<$_model.CreateBenchmarkTaskResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* 创建故障注入任务
|
|
118
|
+
*
|
|
119
|
+
* @param request - CreateFaultInjectionRequest
|
|
120
|
+
* @param headers - map
|
|
121
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
122
|
+
* @returns CreateFaultInjectionResponse
|
|
123
|
+
*/
|
|
124
|
+
createFaultInjectionWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.CreateFaultInjectionRequest, headers: {
|
|
125
|
+
[key: string]: string;
|
|
126
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateFaultInjectionResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* 创建故障注入任务
|
|
129
|
+
*
|
|
130
|
+
* @param request - CreateFaultInjectionRequest
|
|
131
|
+
* @returns CreateFaultInjectionResponse
|
|
132
|
+
*/
|
|
133
|
+
createFaultInjection(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.CreateFaultInjectionRequest): Promise<$_model.CreateFaultInjectionResponse>;
|
|
116
134
|
/**
|
|
117
135
|
* Creates a gateway.
|
|
118
136
|
*
|
|
@@ -356,6 +374,21 @@ export default class Client extends OpenApi {
|
|
|
356
374
|
* @returns DeleteBenchmarkTaskResponse
|
|
357
375
|
*/
|
|
358
376
|
deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<$_model.DeleteBenchmarkTaskResponse>;
|
|
377
|
+
/**
|
|
378
|
+
* 删除故障注入任务
|
|
379
|
+
*
|
|
380
|
+
* @param headers - map
|
|
381
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
382
|
+
* @returns DeleteFaultInjectionResponse
|
|
383
|
+
*/
|
|
384
|
+
deleteFaultInjectionWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, FaultType: string, headers: {
|
|
385
|
+
[key: string]: string;
|
|
386
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteFaultInjectionResponse>;
|
|
387
|
+
/**
|
|
388
|
+
* 删除故障注入任务
|
|
389
|
+
* @returns DeleteFaultInjectionResponse
|
|
390
|
+
*/
|
|
391
|
+
deleteFaultInjection(ClusterId: string, ServiceName: string, InstanceName: string, FaultType: string): Promise<$_model.DeleteFaultInjectionResponse>;
|
|
359
392
|
/**
|
|
360
393
|
* Deletes a private gateway.
|
|
361
394
|
*
|
|
@@ -1209,6 +1242,21 @@ export default class Client extends OpenApi {
|
|
|
1209
1242
|
* @returns ListServiceContainersResponse
|
|
1210
1243
|
*/
|
|
1211
1244
|
listServiceContainers(ClusterId: string, ServiceName: string, InstanceName: string): Promise<$_model.ListServiceContainersResponse>;
|
|
1245
|
+
/**
|
|
1246
|
+
* 获取故障注入信息
|
|
1247
|
+
*
|
|
1248
|
+
* @param headers - map
|
|
1249
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1250
|
+
* @returns ListServiceInstanceFaultInjectionInfoResponse
|
|
1251
|
+
*/
|
|
1252
|
+
listServiceInstanceFaultInjectionInfoWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {
|
|
1253
|
+
[key: string]: string;
|
|
1254
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServiceInstanceFaultInjectionInfoResponse>;
|
|
1255
|
+
/**
|
|
1256
|
+
* 获取故障注入信息
|
|
1257
|
+
* @returns ListServiceInstanceFaultInjectionInfoResponse
|
|
1258
|
+
*/
|
|
1259
|
+
listServiceInstanceFaultInjectionInfo(ClusterId: string, ServiceName: string, InstanceName: string): Promise<$_model.ListServiceInstanceFaultInjectionInfoResponse>;
|
|
1212
1260
|
/**
|
|
1213
1261
|
* Queries instances of a service.
|
|
1214
1262
|
*
|
package/dist/client.js
CHANGED
|
@@ -359,6 +359,51 @@ class Client extends openapi_core_1.default {
|
|
|
359
359
|
let headers = {};
|
|
360
360
|
return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
|
|
361
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* 创建故障注入任务
|
|
364
|
+
*
|
|
365
|
+
* @param request - CreateFaultInjectionRequest
|
|
366
|
+
* @param headers - map
|
|
367
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
368
|
+
* @returns CreateFaultInjectionResponse
|
|
369
|
+
*/
|
|
370
|
+
async createFaultInjectionWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime) {
|
|
371
|
+
request.validate();
|
|
372
|
+
let body = {};
|
|
373
|
+
if (!$dara.isNull(request.faultArgs)) {
|
|
374
|
+
body["FaultArgs"] = request.faultArgs;
|
|
375
|
+
}
|
|
376
|
+
if (!$dara.isNull(request.faultType)) {
|
|
377
|
+
body["FaultType"] = request.faultType;
|
|
378
|
+
}
|
|
379
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
380
|
+
headers: headers,
|
|
381
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
382
|
+
});
|
|
383
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
384
|
+
action: "CreateFaultInjection",
|
|
385
|
+
version: "2021-07-01",
|
|
386
|
+
protocol: "HTTPS",
|
|
387
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/faults`,
|
|
388
|
+
method: "POST",
|
|
389
|
+
authType: "AK",
|
|
390
|
+
style: "ROA",
|
|
391
|
+
reqBodyType: "json",
|
|
392
|
+
bodyType: "json",
|
|
393
|
+
});
|
|
394
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateFaultInjectionResponse({}));
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* 创建故障注入任务
|
|
398
|
+
*
|
|
399
|
+
* @param request - CreateFaultInjectionRequest
|
|
400
|
+
* @returns CreateFaultInjectionResponse
|
|
401
|
+
*/
|
|
402
|
+
async createFaultInjection(ClusterId, ServiceName, InstanceName, request) {
|
|
403
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
404
|
+
let headers = {};
|
|
405
|
+
return await this.createFaultInjectionWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime);
|
|
406
|
+
}
|
|
362
407
|
/**
|
|
363
408
|
* Creates a gateway.
|
|
364
409
|
*
|
|
@@ -1043,6 +1088,39 @@ class Client extends openapi_core_1.default {
|
|
|
1043
1088
|
let headers = {};
|
|
1044
1089
|
return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
1045
1090
|
}
|
|
1091
|
+
/**
|
|
1092
|
+
* 删除故障注入任务
|
|
1093
|
+
*
|
|
1094
|
+
* @param headers - map
|
|
1095
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1096
|
+
* @returns DeleteFaultInjectionResponse
|
|
1097
|
+
*/
|
|
1098
|
+
async deleteFaultInjectionWithOptions(ClusterId, ServiceName, InstanceName, FaultType, headers, runtime) {
|
|
1099
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1100
|
+
headers: headers,
|
|
1101
|
+
});
|
|
1102
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1103
|
+
action: "DeleteFaultInjection",
|
|
1104
|
+
version: "2021-07-01",
|
|
1105
|
+
protocol: "HTTPS",
|
|
1106
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/faults/${$dara.URL.percentEncode(FaultType)}`,
|
|
1107
|
+
method: "DELETE",
|
|
1108
|
+
authType: "AK",
|
|
1109
|
+
style: "ROA",
|
|
1110
|
+
reqBodyType: "json",
|
|
1111
|
+
bodyType: "json",
|
|
1112
|
+
});
|
|
1113
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFaultInjectionResponse({}));
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* 删除故障注入任务
|
|
1117
|
+
* @returns DeleteFaultInjectionResponse
|
|
1118
|
+
*/
|
|
1119
|
+
async deleteFaultInjection(ClusterId, ServiceName, InstanceName, FaultType) {
|
|
1120
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1121
|
+
let headers = {};
|
|
1122
|
+
return await this.deleteFaultInjectionWithOptions(ClusterId, ServiceName, InstanceName, FaultType, headers, runtime);
|
|
1123
|
+
}
|
|
1046
1124
|
/**
|
|
1047
1125
|
* Deletes a private gateway.
|
|
1048
1126
|
*
|
|
@@ -1493,6 +1571,9 @@ class Client extends openapi_core_1.default {
|
|
|
1493
1571
|
if (!$dara.isNull(request.instanceList)) {
|
|
1494
1572
|
query["InstanceList"] = request.instanceList;
|
|
1495
1573
|
}
|
|
1574
|
+
if (!$dara.isNull(request.isReplica)) {
|
|
1575
|
+
query["IsReplica"] = request.isReplica;
|
|
1576
|
+
}
|
|
1496
1577
|
if (!$dara.isNull(request.softRestart)) {
|
|
1497
1578
|
query["SoftRestart"] = request.softRestart;
|
|
1498
1579
|
}
|
|
@@ -3232,6 +3313,39 @@ class Client extends openapi_core_1.default {
|
|
|
3232
3313
|
let headers = {};
|
|
3233
3314
|
return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
|
|
3234
3315
|
}
|
|
3316
|
+
/**
|
|
3317
|
+
* 获取故障注入信息
|
|
3318
|
+
*
|
|
3319
|
+
* @param headers - map
|
|
3320
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3321
|
+
* @returns ListServiceInstanceFaultInjectionInfoResponse
|
|
3322
|
+
*/
|
|
3323
|
+
async listServiceInstanceFaultInjectionInfoWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime) {
|
|
3324
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3325
|
+
headers: headers,
|
|
3326
|
+
});
|
|
3327
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3328
|
+
action: "ListServiceInstanceFaultInjectionInfo",
|
|
3329
|
+
version: "2021-07-01",
|
|
3330
|
+
protocol: "HTTPS",
|
|
3331
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/faults`,
|
|
3332
|
+
method: "GET",
|
|
3333
|
+
authType: "AK",
|
|
3334
|
+
style: "ROA",
|
|
3335
|
+
reqBodyType: "json",
|
|
3336
|
+
bodyType: "json",
|
|
3337
|
+
});
|
|
3338
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListServiceInstanceFaultInjectionInfoResponse({}));
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* 获取故障注入信息
|
|
3342
|
+
* @returns ListServiceInstanceFaultInjectionInfoResponse
|
|
3343
|
+
*/
|
|
3344
|
+
async listServiceInstanceFaultInjectionInfo(ClusterId, ServiceName, InstanceName) {
|
|
3345
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3346
|
+
let headers = {};
|
|
3347
|
+
return await this.listServiceInstanceFaultInjectionInfoWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
|
|
3348
|
+
}
|
|
3235
3349
|
/**
|
|
3236
3350
|
* Queries instances of a service.
|
|
3237
3351
|
*
|
|
@@ -3264,6 +3378,9 @@ class Client extends openapi_core_1.default {
|
|
|
3264
3378
|
if (!$dara.isNull(request.isSpot)) {
|
|
3265
3379
|
query["IsSpot"] = request.isSpot;
|
|
3266
3380
|
}
|
|
3381
|
+
if (!$dara.isNull(request.listReplica)) {
|
|
3382
|
+
query["ListReplica"] = request.listReplica;
|
|
3383
|
+
}
|
|
3267
3384
|
if (!$dara.isNull(request.memberType)) {
|
|
3268
3385
|
query["MemberType"] = request.memberType;
|
|
3269
3386
|
}
|
|
@@ -3276,6 +3393,9 @@ class Client extends openapi_core_1.default {
|
|
|
3276
3393
|
if (!$dara.isNull(request.pageSize)) {
|
|
3277
3394
|
query["PageSize"] = request.pageSize;
|
|
3278
3395
|
}
|
|
3396
|
+
if (!$dara.isNull(request.replicaName)) {
|
|
3397
|
+
query["ReplicaName"] = request.replicaName;
|
|
3398
|
+
}
|
|
3279
3399
|
if (!$dara.isNull(request.resourceType)) {
|
|
3280
3400
|
query["ResourceType"] = request.resourceType;
|
|
3281
3401
|
}
|
|
@@ -4363,7 +4483,14 @@ class Client extends openapi_core_1.default {
|
|
|
4363
4483
|
*/
|
|
4364
4484
|
async updateServiceInstanceWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime) {
|
|
4365
4485
|
request.validate();
|
|
4486
|
+
let query = {};
|
|
4487
|
+
if (!$dara.isNull(request.isReplica)) {
|
|
4488
|
+
query["IsReplica"] = request.isReplica;
|
|
4489
|
+
}
|
|
4366
4490
|
let body = {};
|
|
4491
|
+
if (!$dara.isNull(request.detach)) {
|
|
4492
|
+
body["Detach"] = request.detach;
|
|
4493
|
+
}
|
|
4367
4494
|
if (!$dara.isNull(request.hibernate)) {
|
|
4368
4495
|
body["Hibernate"] = request.hibernate;
|
|
4369
4496
|
}
|
|
@@ -4372,6 +4499,7 @@ class Client extends openapi_core_1.default {
|
|
|
4372
4499
|
}
|
|
4373
4500
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4374
4501
|
headers: headers,
|
|
4502
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4375
4503
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4376
4504
|
});
|
|
4377
4505
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|