@alicloud/eas20210701 7.1.10 → 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 +131 -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 +3 -0
- package/dist/models/UpdateServiceInstanceRequest.js +6 -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 +145 -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 +9 -0
- package/src/models/model.ts +9 -0
package/src/client.ts
CHANGED
|
@@ -354,6 +354,55 @@ export default class Client extends OpenApi {
|
|
|
354
354
|
return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
+
/**
|
|
358
|
+
* 创建故障注入任务
|
|
359
|
+
*
|
|
360
|
+
* @param request - CreateFaultInjectionRequest
|
|
361
|
+
* @param headers - map
|
|
362
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
363
|
+
* @returns CreateFaultInjectionResponse
|
|
364
|
+
*/
|
|
365
|
+
async createFaultInjectionWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.CreateFaultInjectionRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateFaultInjectionResponse> {
|
|
366
|
+
request.validate();
|
|
367
|
+
let body : {[key: string ]: any} = { };
|
|
368
|
+
if (!$dara.isNull(request.faultArgs)) {
|
|
369
|
+
body["FaultArgs"] = request.faultArgs;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (!$dara.isNull(request.faultType)) {
|
|
373
|
+
body["FaultType"] = request.faultType;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
377
|
+
headers: headers,
|
|
378
|
+
body: OpenApiUtil.parseToMap(body),
|
|
379
|
+
});
|
|
380
|
+
let params = new $OpenApiUtil.Params({
|
|
381
|
+
action: "CreateFaultInjection",
|
|
382
|
+
version: "2021-07-01",
|
|
383
|
+
protocol: "HTTPS",
|
|
384
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/faults`,
|
|
385
|
+
method: "POST",
|
|
386
|
+
authType: "AK",
|
|
387
|
+
style: "ROA",
|
|
388
|
+
reqBodyType: "json",
|
|
389
|
+
bodyType: "json",
|
|
390
|
+
});
|
|
391
|
+
return $dara.cast<$_model.CreateFaultInjectionResponse>(await this.callApi(params, req, runtime), new $_model.CreateFaultInjectionResponse({}));
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* 创建故障注入任务
|
|
396
|
+
*
|
|
397
|
+
* @param request - CreateFaultInjectionRequest
|
|
398
|
+
* @returns CreateFaultInjectionResponse
|
|
399
|
+
*/
|
|
400
|
+
async createFaultInjection(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.CreateFaultInjectionRequest): Promise<$_model.CreateFaultInjectionResponse> {
|
|
401
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
402
|
+
let headers : {[key: string ]: string} = { };
|
|
403
|
+
return await this.createFaultInjectionWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime);
|
|
404
|
+
}
|
|
405
|
+
|
|
357
406
|
/**
|
|
358
407
|
* Creates a gateway.
|
|
359
408
|
*
|
|
@@ -1118,6 +1167,41 @@ export default class Client extends OpenApi {
|
|
|
1118
1167
|
return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
|
|
1119
1168
|
}
|
|
1120
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* 删除故障注入任务
|
|
1172
|
+
*
|
|
1173
|
+
* @param headers - map
|
|
1174
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1175
|
+
* @returns DeleteFaultInjectionResponse
|
|
1176
|
+
*/
|
|
1177
|
+
async deleteFaultInjectionWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, FaultType: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteFaultInjectionResponse> {
|
|
1178
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1179
|
+
headers: headers,
|
|
1180
|
+
});
|
|
1181
|
+
let params = new $OpenApiUtil.Params({
|
|
1182
|
+
action: "DeleteFaultInjection",
|
|
1183
|
+
version: "2021-07-01",
|
|
1184
|
+
protocol: "HTTPS",
|
|
1185
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/faults/${$dara.URL.percentEncode(FaultType)}`,
|
|
1186
|
+
method: "DELETE",
|
|
1187
|
+
authType: "AK",
|
|
1188
|
+
style: "ROA",
|
|
1189
|
+
reqBodyType: "json",
|
|
1190
|
+
bodyType: "json",
|
|
1191
|
+
});
|
|
1192
|
+
return $dara.cast<$_model.DeleteFaultInjectionResponse>(await this.callApi(params, req, runtime), new $_model.DeleteFaultInjectionResponse({}));
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* 删除故障注入任务
|
|
1197
|
+
* @returns DeleteFaultInjectionResponse
|
|
1198
|
+
*/
|
|
1199
|
+
async deleteFaultInjection(ClusterId: string, ServiceName: string, InstanceName: string, FaultType: string): Promise<$_model.DeleteFaultInjectionResponse> {
|
|
1200
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1201
|
+
let headers : {[key: string ]: string} = { };
|
|
1202
|
+
return await this.deleteFaultInjectionWithOptions(ClusterId, ServiceName, InstanceName, FaultType, headers, runtime);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1121
1205
|
/**
|
|
1122
1206
|
* Deletes a private gateway.
|
|
1123
1207
|
*
|
|
@@ -1606,6 +1690,10 @@ export default class Client extends OpenApi {
|
|
|
1606
1690
|
query["InstanceList"] = request.instanceList;
|
|
1607
1691
|
}
|
|
1608
1692
|
|
|
1693
|
+
if (!$dara.isNull(request.isReplica)) {
|
|
1694
|
+
query["IsReplica"] = request.isReplica;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1609
1697
|
if (!$dara.isNull(request.softRestart)) {
|
|
1610
1698
|
query["SoftRestart"] = request.softRestart;
|
|
1611
1699
|
}
|
|
@@ -3517,6 +3605,41 @@ export default class Client extends OpenApi {
|
|
|
3517
3605
|
return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
|
|
3518
3606
|
}
|
|
3519
3607
|
|
|
3608
|
+
/**
|
|
3609
|
+
* 获取故障注入信息
|
|
3610
|
+
*
|
|
3611
|
+
* @param headers - map
|
|
3612
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3613
|
+
* @returns ListServiceInstanceFaultInjectionInfoResponse
|
|
3614
|
+
*/
|
|
3615
|
+
async listServiceInstanceFaultInjectionInfoWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServiceInstanceFaultInjectionInfoResponse> {
|
|
3616
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3617
|
+
headers: headers,
|
|
3618
|
+
});
|
|
3619
|
+
let params = new $OpenApiUtil.Params({
|
|
3620
|
+
action: "ListServiceInstanceFaultInjectionInfo",
|
|
3621
|
+
version: "2021-07-01",
|
|
3622
|
+
protocol: "HTTPS",
|
|
3623
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/faults`,
|
|
3624
|
+
method: "GET",
|
|
3625
|
+
authType: "AK",
|
|
3626
|
+
style: "ROA",
|
|
3627
|
+
reqBodyType: "json",
|
|
3628
|
+
bodyType: "json",
|
|
3629
|
+
});
|
|
3630
|
+
return $dara.cast<$_model.ListServiceInstanceFaultInjectionInfoResponse>(await this.callApi(params, req, runtime), new $_model.ListServiceInstanceFaultInjectionInfoResponse({}));
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* 获取故障注入信息
|
|
3635
|
+
* @returns ListServiceInstanceFaultInjectionInfoResponse
|
|
3636
|
+
*/
|
|
3637
|
+
async listServiceInstanceFaultInjectionInfo(ClusterId: string, ServiceName: string, InstanceName: string): Promise<$_model.ListServiceInstanceFaultInjectionInfoResponse> {
|
|
3638
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3639
|
+
let headers : {[key: string ]: string} = { };
|
|
3640
|
+
return await this.listServiceInstanceFaultInjectionInfoWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3520
3643
|
/**
|
|
3521
3644
|
* Queries instances of a service.
|
|
3522
3645
|
*
|
|
@@ -3556,6 +3679,10 @@ export default class Client extends OpenApi {
|
|
|
3556
3679
|
query["IsSpot"] = request.isSpot;
|
|
3557
3680
|
}
|
|
3558
3681
|
|
|
3682
|
+
if (!$dara.isNull(request.listReplica)) {
|
|
3683
|
+
query["ListReplica"] = request.listReplica;
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3559
3686
|
if (!$dara.isNull(request.memberType)) {
|
|
3560
3687
|
query["MemberType"] = request.memberType;
|
|
3561
3688
|
}
|
|
@@ -3572,6 +3699,10 @@ export default class Client extends OpenApi {
|
|
|
3572
3699
|
query["PageSize"] = request.pageSize;
|
|
3573
3700
|
}
|
|
3574
3701
|
|
|
3702
|
+
if (!$dara.isNull(request.replicaName)) {
|
|
3703
|
+
query["ReplicaName"] = request.replicaName;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3575
3706
|
if (!$dara.isNull(request.resourceType)) {
|
|
3576
3707
|
query["ResourceType"] = request.resourceType;
|
|
3577
3708
|
}
|
|
@@ -4780,13 +4911,27 @@ export default class Client extends OpenApi {
|
|
|
4780
4911
|
*/
|
|
4781
4912
|
async updateServiceInstanceWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.UpdateServiceInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateServiceInstanceResponse> {
|
|
4782
4913
|
request.validate();
|
|
4914
|
+
let query : {[key: string ]: any} = { };
|
|
4915
|
+
if (!$dara.isNull(request.isReplica)) {
|
|
4916
|
+
query["IsReplica"] = request.isReplica;
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4783
4919
|
let body : {[key: string ]: any} = { };
|
|
4920
|
+
if (!$dara.isNull(request.detach)) {
|
|
4921
|
+
body["Detach"] = request.detach;
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
if (!$dara.isNull(request.hibernate)) {
|
|
4925
|
+
body["Hibernate"] = request.hibernate;
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4784
4928
|
if (!$dara.isNull(request.isolate)) {
|
|
4785
4929
|
body["Isolate"] = request.isolate;
|
|
4786
4930
|
}
|
|
4787
4931
|
|
|
4788
4932
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4789
4933
|
headers: headers,
|
|
4934
|
+
query: OpenApiUtil.query(query),
|
|
4790
4935
|
body: OpenApiUtil.parseToMap(body),
|
|
4791
4936
|
});
|
|
4792
4937
|
let params = new $OpenApiUtil.Params({
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateFaultInjectionRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* {
|
|
9
|
+
* "FaultType": "DiskFillTask",
|
|
10
|
+
* "FaultArgs": {
|
|
11
|
+
* "FaultAction": "fill",
|
|
12
|
+
* "Percent": 80
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
faultArgs?: any;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* CpuFullloadTask
|
|
20
|
+
*/
|
|
21
|
+
faultType?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
faultArgs: 'FaultArgs',
|
|
25
|
+
faultType: 'FaultType',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
faultArgs: 'any',
|
|
32
|
+
faultType: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateFaultInjectionResponseBody } from "./CreateFaultInjectionResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateFaultInjectionResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateFaultInjectionResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateFaultInjectionResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateFaultInjectionResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Addon prometheus_discovery is successfully reinstalled
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* Id of the request
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 40325405-579C-4D82***
|
|
17
|
+
*/
|
|
18
|
+
requestId?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
message: 'Message',
|
|
22
|
+
requestId: 'RequestId',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
message: 'string',
|
|
29
|
+
requestId: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteFaultInjectionResponseBody } from "./DeleteFaultInjectionResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteFaultInjectionResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteFaultInjectionResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteFaultInjectionResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteFaultInjectionResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Successfully delete acl policy for gateway
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* Id of the request
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 40325405-579C-4D82****
|
|
17
|
+
*/
|
|
18
|
+
requestId?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
message: 'Message',
|
|
22
|
+
requestId: 'RequestId',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
message: 'string',
|
|
29
|
+
requestId: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -15,12 +15,11 @@ export class DeleteServiceInstancesRequest extends $dara.Model {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* The instances that you want to restart. Separate multiple instance names with commas (,). For more information about how to query the instance name, see [ListServiceInstances](https://help.aliyun.com/document_detail/412108.html).
|
|
17
17
|
*
|
|
18
|
-
* This parameter is required.
|
|
19
|
-
*
|
|
20
18
|
* @example
|
|
21
19
|
* foo-rdsbxxxx,foo-rdsaxxxx
|
|
22
20
|
*/
|
|
23
21
|
instanceList?: string;
|
|
22
|
+
isReplica?: boolean;
|
|
24
23
|
/**
|
|
25
24
|
* @remarks
|
|
26
25
|
* Specifies whether to restart only the container process without recreating the instance. Default value: false. Valid values: true and false.
|
|
@@ -33,6 +32,7 @@ export class DeleteServiceInstancesRequest extends $dara.Model {
|
|
|
33
32
|
return {
|
|
34
33
|
container: 'Container',
|
|
35
34
|
instanceList: 'InstanceList',
|
|
35
|
+
isReplica: 'IsReplica',
|
|
36
36
|
softRestart: 'SoftRestart',
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -41,6 +41,7 @@ export class DeleteServiceInstancesRequest extends $dara.Model {
|
|
|
41
41
|
return {
|
|
42
42
|
container: 'string',
|
|
43
43
|
instanceList: 'string',
|
|
44
|
+
isReplica: 'boolean',
|
|
44
45
|
softRestart: 'boolean',
|
|
45
46
|
};
|
|
46
47
|
}
|
package/src/models/Instance.ts
CHANGED
|
@@ -8,6 +8,7 @@ export class Instance extends $dara.Model {
|
|
|
8
8
|
* 0.444
|
|
9
9
|
*/
|
|
10
10
|
currentAmount?: number;
|
|
11
|
+
detached?: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* @example
|
|
13
14
|
* 192.168.1.100
|
|
@@ -29,6 +30,7 @@ export class Instance extends $dara.Model {
|
|
|
29
30
|
*/
|
|
30
31
|
instanceType?: string;
|
|
31
32
|
isLatest?: boolean;
|
|
33
|
+
isReplica?: boolean;
|
|
32
34
|
/**
|
|
33
35
|
* @example
|
|
34
36
|
* false
|
|
@@ -48,6 +50,7 @@ export class Instance extends $dara.Model {
|
|
|
48
50
|
originalAmount?: number;
|
|
49
51
|
readyProcesses?: number;
|
|
50
52
|
reason?: string;
|
|
53
|
+
replicaName?: string;
|
|
51
54
|
/**
|
|
52
55
|
* @example
|
|
53
56
|
* PublicResource
|
|
@@ -84,6 +87,7 @@ export class Instance extends $dara.Model {
|
|
|
84
87
|
static names(): { [key: string]: string } {
|
|
85
88
|
return {
|
|
86
89
|
currentAmount: 'CurrentAmount',
|
|
90
|
+
detached: 'Detached',
|
|
87
91
|
externalIP: 'ExternalIP',
|
|
88
92
|
externalInstancePort: 'ExternalInstancePort',
|
|
89
93
|
hostIP: 'HostIP',
|
|
@@ -93,6 +97,7 @@ export class Instance extends $dara.Model {
|
|
|
93
97
|
instancePort: 'InstancePort',
|
|
94
98
|
instanceType: 'InstanceType',
|
|
95
99
|
isLatest: 'IsLatest',
|
|
100
|
+
isReplica: 'IsReplica',
|
|
96
101
|
isSpot: 'IsSpot',
|
|
97
102
|
isolated: 'Isolated',
|
|
98
103
|
lastState: 'LastState',
|
|
@@ -100,6 +105,7 @@ export class Instance extends $dara.Model {
|
|
|
100
105
|
originalAmount: 'OriginalAmount',
|
|
101
106
|
readyProcesses: 'ReadyProcesses',
|
|
102
107
|
reason: 'Reason',
|
|
108
|
+
replicaName: 'ReplicaName',
|
|
103
109
|
resourceType: 'ResourceType',
|
|
104
110
|
restartCount: 'RestartCount',
|
|
105
111
|
role: 'Role',
|
|
@@ -116,6 +122,7 @@ export class Instance extends $dara.Model {
|
|
|
116
122
|
static types(): { [key: string]: any } {
|
|
117
123
|
return {
|
|
118
124
|
currentAmount: 'number',
|
|
125
|
+
detached: 'boolean',
|
|
119
126
|
externalIP: 'string',
|
|
120
127
|
externalInstancePort: 'number',
|
|
121
128
|
hostIP: 'string',
|
|
@@ -125,6 +132,7 @@ export class Instance extends $dara.Model {
|
|
|
125
132
|
instancePort: 'number',
|
|
126
133
|
instanceType: 'string',
|
|
127
134
|
isLatest: 'boolean',
|
|
135
|
+
isReplica: 'boolean',
|
|
128
136
|
isSpot: 'boolean',
|
|
129
137
|
isolated: 'boolean',
|
|
130
138
|
lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
@@ -132,6 +140,7 @@ export class Instance extends $dara.Model {
|
|
|
132
140
|
originalAmount: 'number',
|
|
133
141
|
readyProcesses: 'number',
|
|
134
142
|
reason: 'string',
|
|
143
|
+
replicaName: 'string',
|
|
135
144
|
resourceType: 'string',
|
|
136
145
|
restartCount: 'number',
|
|
137
146
|
role: 'string',
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListServiceInstanceFaultInjectionInfoResponseBody } from "./ListServiceInstanceFaultInjectionInfoResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListServiceInstanceFaultInjectionInfoResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListServiceInstanceFaultInjectionInfoResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListServiceInstanceFaultInjectionInfoResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListServiceInstanceFaultInjectionInfoResponseBodyFaultInfoListFaultStatus extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* FaultInjectedSuccess
|
|
9
|
+
*/
|
|
10
|
+
faultStatus?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* Network interface not found
|
|
14
|
+
*/
|
|
15
|
+
faultStatusMessage?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
faultStatus: 'FaultStatus',
|
|
19
|
+
faultStatusMessage: 'FaultStatusMessage',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
faultStatus: 'string',
|
|
26
|
+
faultStatusMessage: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class ListServiceInstanceFaultInjectionInfoResponseBodyFaultInfoList extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* {
|
|
43
|
+
* "FaultType": "DiskBurnTask",
|
|
44
|
+
* "FaultArgs": {
|
|
45
|
+
* "FaultAction": "burn",
|
|
46
|
+
* "Read": true,
|
|
47
|
+
* "Write": true,
|
|
48
|
+
* "Size": 100
|
|
49
|
+
* }
|
|
50
|
+
* }
|
|
51
|
+
*/
|
|
52
|
+
faultArgs?: any;
|
|
53
|
+
faultStatus?: ListServiceInstanceFaultInjectionInfoResponseBodyFaultInfoListFaultStatus;
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* DiskFillTask
|
|
57
|
+
*/
|
|
58
|
+
faultType?: string;
|
|
59
|
+
static names(): { [key: string]: string } {
|
|
60
|
+
return {
|
|
61
|
+
faultArgs: 'FaultArgs',
|
|
62
|
+
faultStatus: 'FaultStatus',
|
|
63
|
+
faultType: 'FaultType',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
faultArgs: 'any',
|
|
70
|
+
faultStatus: ListServiceInstanceFaultInjectionInfoResponseBodyFaultInfoListFaultStatus,
|
|
71
|
+
faultType: 'string',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
validate() {
|
|
76
|
+
if(this.faultStatus && typeof (this.faultStatus as any).validate === 'function') {
|
|
77
|
+
(this.faultStatus as any).validate();
|
|
78
|
+
}
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class ListServiceInstanceFaultInjectionInfoResponseBody extends $dara.Model {
|
|
88
|
+
faultInfoList?: ListServiceInstanceFaultInjectionInfoResponseBodyFaultInfoList[];
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* Id of the request
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* 40325405-579C-4D82****
|
|
95
|
+
*/
|
|
96
|
+
requestId?: string;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
faultInfoList: 'FaultInfoList',
|
|
100
|
+
requestId: 'RequestId',
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static types(): { [key: string]: any } {
|
|
105
|
+
return {
|
|
106
|
+
faultInfoList: { 'type': 'array', 'itemType': ListServiceInstanceFaultInjectionInfoResponseBodyFaultInfoList },
|
|
107
|
+
requestId: 'string',
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
validate() {
|
|
112
|
+
if(Array.isArray(this.faultInfoList)) {
|
|
113
|
+
$dara.Model.validateArray(this.faultInfoList);
|
|
114
|
+
}
|
|
115
|
+
super.validate();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
constructor(map?: { [key: string]: any }) {
|
|
119
|
+
super(map);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|