@alicloud/polardb20170801 6.2.1 → 6.4.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 +30 -0
- package/dist/client.js +129 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ClonePolarFsBasicSnapshotRequest.d.ts +33 -0
- package/dist/models/ClonePolarFsBasicSnapshotRequest.js +64 -0
- package/dist/models/ClonePolarFsBasicSnapshotRequest.js.map +1 -0
- package/dist/models/ClonePolarFsBasicSnapshotResponse.d.ts +19 -0
- package/dist/models/ClonePolarFsBasicSnapshotResponse.js +69 -0
- package/dist/models/ClonePolarFsBasicSnapshotResponse.js.map +1 -0
- package/dist/models/ClonePolarFsBasicSnapshotResponseBody.d.ts +41 -0
- package/dist/models/ClonePolarFsBasicSnapshotResponseBody.js +66 -0
- package/dist/models/ClonePolarFsBasicSnapshotResponseBody.js.map +1 -0
- package/dist/models/DescribeHistoryEventsRequest.d.ts +88 -0
- package/dist/models/DescribeHistoryEventsRequest.js +86 -0
- package/dist/models/DescribeHistoryEventsRequest.js.map +1 -0
- package/dist/models/DescribeHistoryEventsResponse.d.ts +19 -0
- package/dist/models/DescribeHistoryEventsResponse.js +69 -0
- package/dist/models/DescribeHistoryEventsResponse.js.map +1 -0
- package/dist/models/DescribeHistoryEventsResponseBody.d.ts +229 -0
- package/dist/models/DescribeHistoryEventsResponseBody.js +176 -0
- package/dist/models/DescribeHistoryEventsResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +35 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +152 -0
- package/src/models/ClonePolarFsBasicSnapshotRequest.ts +52 -0
- package/src/models/ClonePolarFsBasicSnapshotResponse.ts +40 -0
- package/src/models/ClonePolarFsBasicSnapshotResponseBody.ts +62 -0
- package/src/models/DescribeHistoryEventsRequest.ts +129 -0
- package/src/models/DescribeHistoryEventsResponse.ts +40 -0
- package/src/models/DescribeHistoryEventsResponseBody.ts +342 -0
- package/src/models/model.ts +8 -0
package/src/client.ts
CHANGED
|
@@ -1116,6 +1116,60 @@ export default class Client extends OpenApi {
|
|
|
1116
1116
|
return await this.checkServiceLinkedRoleWithOptions(request, runtime);
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* 支持基础版支持clone文件或目录快照
|
|
1121
|
+
*
|
|
1122
|
+
* @param request - ClonePolarFsBasicSnapshotRequest
|
|
1123
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1124
|
+
* @returns ClonePolarFsBasicSnapshotResponse
|
|
1125
|
+
*/
|
|
1126
|
+
async clonePolarFsBasicSnapshotWithOptions(request: $_model.ClonePolarFsBasicSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ClonePolarFsBasicSnapshotResponse> {
|
|
1127
|
+
request.validate();
|
|
1128
|
+
let query = { };
|
|
1129
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
1130
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
if (!$dara.isNull(request.polarFsInstanceId)) {
|
|
1134
|
+
query["PolarFsInstanceId"] = request.polarFsInstanceId;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
if (!$dara.isNull(request.sourcePath)) {
|
|
1138
|
+
query["SourcePath"] = request.sourcePath;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
if (!$dara.isNull(request.targetPath)) {
|
|
1142
|
+
query["TargetPath"] = request.targetPath;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1146
|
+
query: OpenApiUtil.query(query),
|
|
1147
|
+
});
|
|
1148
|
+
let params = new $OpenApiUtil.Params({
|
|
1149
|
+
action: "ClonePolarFsBasicSnapshot",
|
|
1150
|
+
version: "2017-08-01",
|
|
1151
|
+
protocol: "HTTPS",
|
|
1152
|
+
pathname: "/",
|
|
1153
|
+
method: "POST",
|
|
1154
|
+
authType: "AK",
|
|
1155
|
+
style: "RPC",
|
|
1156
|
+
reqBodyType: "formData",
|
|
1157
|
+
bodyType: "json",
|
|
1158
|
+
});
|
|
1159
|
+
return $dara.cast<$_model.ClonePolarFsBasicSnapshotResponse>(await this.callApi(params, req, runtime), new $_model.ClonePolarFsBasicSnapshotResponse({}));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* 支持基础版支持clone文件或目录快照
|
|
1164
|
+
*
|
|
1165
|
+
* @param request - ClonePolarFsBasicSnapshotRequest
|
|
1166
|
+
* @returns ClonePolarFsBasicSnapshotResponse
|
|
1167
|
+
*/
|
|
1168
|
+
async clonePolarFsBasicSnapshot(request: $_model.ClonePolarFsBasicSnapshotRequest): Promise<$_model.ClonePolarFsBasicSnapshotResponse> {
|
|
1169
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1170
|
+
return await this.clonePolarFsBasicSnapshotWithOptions(request, runtime);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1119
1173
|
/**
|
|
1120
1174
|
* 关闭DB4AI
|
|
1121
1175
|
*
|
|
@@ -10376,6 +10430,104 @@ export default class Client extends OpenApi {
|
|
|
10376
10430
|
return await this.describeHALogsWithOptions(request, runtime);
|
|
10377
10431
|
}
|
|
10378
10432
|
|
|
10433
|
+
/**
|
|
10434
|
+
* 事件中心事件列表
|
|
10435
|
+
*
|
|
10436
|
+
* @param request - DescribeHistoryEventsRequest
|
|
10437
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10438
|
+
* @returns DescribeHistoryEventsResponse
|
|
10439
|
+
*/
|
|
10440
|
+
async describeHistoryEventsWithOptions(request: $_model.DescribeHistoryEventsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHistoryEventsResponse> {
|
|
10441
|
+
request.validate();
|
|
10442
|
+
let query = { };
|
|
10443
|
+
if (!$dara.isNull(request.archiveStatus)) {
|
|
10444
|
+
query["ArchiveStatus"] = request.archiveStatus;
|
|
10445
|
+
}
|
|
10446
|
+
|
|
10447
|
+
if (!$dara.isNull(request.eventCategory)) {
|
|
10448
|
+
query["EventCategory"] = request.eventCategory;
|
|
10449
|
+
}
|
|
10450
|
+
|
|
10451
|
+
if (!$dara.isNull(request.eventId)) {
|
|
10452
|
+
query["EventId"] = request.eventId;
|
|
10453
|
+
}
|
|
10454
|
+
|
|
10455
|
+
if (!$dara.isNull(request.eventLevel)) {
|
|
10456
|
+
query["EventLevel"] = request.eventLevel;
|
|
10457
|
+
}
|
|
10458
|
+
|
|
10459
|
+
if (!$dara.isNull(request.eventStatus)) {
|
|
10460
|
+
query["EventStatus"] = request.eventStatus;
|
|
10461
|
+
}
|
|
10462
|
+
|
|
10463
|
+
if (!$dara.isNull(request.eventType)) {
|
|
10464
|
+
query["EventType"] = request.eventType;
|
|
10465
|
+
}
|
|
10466
|
+
|
|
10467
|
+
if (!$dara.isNull(request.fromStartTime)) {
|
|
10468
|
+
query["FromStartTime"] = request.fromStartTime;
|
|
10469
|
+
}
|
|
10470
|
+
|
|
10471
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
10472
|
+
query["InstanceId"] = request.instanceId;
|
|
10473
|
+
}
|
|
10474
|
+
|
|
10475
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
10476
|
+
query["PageNumber"] = request.pageNumber;
|
|
10477
|
+
}
|
|
10478
|
+
|
|
10479
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
10480
|
+
query["PageSize"] = request.pageSize;
|
|
10481
|
+
}
|
|
10482
|
+
|
|
10483
|
+
if (!$dara.isNull(request.regionId)) {
|
|
10484
|
+
query["RegionId"] = request.regionId;
|
|
10485
|
+
}
|
|
10486
|
+
|
|
10487
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
10488
|
+
query["ResourceGroupId"] = request.resourceGroupId;
|
|
10489
|
+
}
|
|
10490
|
+
|
|
10491
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
10492
|
+
query["ResourceType"] = request.resourceType;
|
|
10493
|
+
}
|
|
10494
|
+
|
|
10495
|
+
if (!$dara.isNull(request.taskId)) {
|
|
10496
|
+
query["TaskId"] = request.taskId;
|
|
10497
|
+
}
|
|
10498
|
+
|
|
10499
|
+
if (!$dara.isNull(request.toStartTime)) {
|
|
10500
|
+
query["ToStartTime"] = request.toStartTime;
|
|
10501
|
+
}
|
|
10502
|
+
|
|
10503
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10504
|
+
query: OpenApiUtil.query(query),
|
|
10505
|
+
});
|
|
10506
|
+
let params = new $OpenApiUtil.Params({
|
|
10507
|
+
action: "DescribeHistoryEvents",
|
|
10508
|
+
version: "2017-08-01",
|
|
10509
|
+
protocol: "HTTPS",
|
|
10510
|
+
pathname: "/",
|
|
10511
|
+
method: "POST",
|
|
10512
|
+
authType: "AK",
|
|
10513
|
+
style: "RPC",
|
|
10514
|
+
reqBodyType: "formData",
|
|
10515
|
+
bodyType: "json",
|
|
10516
|
+
});
|
|
10517
|
+
return $dara.cast<$_model.DescribeHistoryEventsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeHistoryEventsResponse({}));
|
|
10518
|
+
}
|
|
10519
|
+
|
|
10520
|
+
/**
|
|
10521
|
+
* 事件中心事件列表
|
|
10522
|
+
*
|
|
10523
|
+
* @param request - DescribeHistoryEventsRequest
|
|
10524
|
+
* @returns DescribeHistoryEventsResponse
|
|
10525
|
+
*/
|
|
10526
|
+
async describeHistoryEvents(request: $_model.DescribeHistoryEventsRequest): Promise<$_model.DescribeHistoryEventsResponse> {
|
|
10527
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10528
|
+
return await this.describeHistoryEventsWithOptions(request, runtime);
|
|
10529
|
+
}
|
|
10530
|
+
|
|
10379
10531
|
/**
|
|
10380
10532
|
* 任务中心任务列表
|
|
10381
10533
|
*
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ClonePolarFsBasicSnapshotRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* pc-**************
|
|
9
|
+
*/
|
|
10
|
+
DBClusterId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* pfs-test*****
|
|
14
|
+
*/
|
|
15
|
+
polarFsInstanceId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* /test
|
|
19
|
+
*/
|
|
20
|
+
sourcePath?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* /testclone
|
|
24
|
+
*/
|
|
25
|
+
targetPath?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
DBClusterId: 'DBClusterId',
|
|
29
|
+
polarFsInstanceId: 'PolarFsInstanceId',
|
|
30
|
+
sourcePath: 'SourcePath',
|
|
31
|
+
targetPath: 'TargetPath',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
DBClusterId: 'string',
|
|
38
|
+
polarFsInstanceId: 'string',
|
|
39
|
+
sourcePath: 'string',
|
|
40
|
+
targetPath: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ClonePolarFsBasicSnapshotResponseBody } from "./ClonePolarFsBasicSnapshotResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ClonePolarFsBasicSnapshotResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ClonePolarFsBasicSnapshotResponseBody;
|
|
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: ClonePolarFsBasicSnapshotResponseBody,
|
|
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,62 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ClonePolarFsBasicSnapshotResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* pc-bp150t3****
|
|
9
|
+
*/
|
|
10
|
+
DBClusterId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* pfs-2ze0i7*****
|
|
14
|
+
*/
|
|
15
|
+
polarFsInstanceId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Id of the request
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* CED079B7-A408-41A1-BFF1-EC608E******
|
|
22
|
+
*/
|
|
23
|
+
requestId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* /test
|
|
27
|
+
*/
|
|
28
|
+
sourcePath?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* /testclone
|
|
32
|
+
*/
|
|
33
|
+
targetPath?: string;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
DBClusterId: 'DBClusterId',
|
|
37
|
+
polarFsInstanceId: 'PolarFsInstanceId',
|
|
38
|
+
requestId: 'RequestId',
|
|
39
|
+
sourcePath: 'SourcePath',
|
|
40
|
+
targetPath: 'TargetPath',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
DBClusterId: 'string',
|
|
47
|
+
polarFsInstanceId: 'string',
|
|
48
|
+
requestId: 'string',
|
|
49
|
+
sourcePath: 'string',
|
|
50
|
+
targetPath: 'string',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
validate() {
|
|
55
|
+
super.validate();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
constructor(map?: { [key: string]: any }) {
|
|
59
|
+
super(map);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeHistoryEventsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* All
|
|
9
|
+
*/
|
|
10
|
+
archiveStatus?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* Exception
|
|
14
|
+
*/
|
|
15
|
+
eventCategory?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 5345398
|
|
19
|
+
*/
|
|
20
|
+
eventId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* high
|
|
24
|
+
*/
|
|
25
|
+
eventLevel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* Succeed
|
|
29
|
+
*/
|
|
30
|
+
eventStatus?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* SystemFailure.Reboot
|
|
34
|
+
*/
|
|
35
|
+
eventType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 2025-01-02T11:31:03Z
|
|
39
|
+
*/
|
|
40
|
+
fromStartTime?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* pc-2zed3m89cw***
|
|
44
|
+
*/
|
|
45
|
+
instanceId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* 1
|
|
49
|
+
*/
|
|
50
|
+
pageNumber?: number;
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* 10
|
|
54
|
+
*/
|
|
55
|
+
pageSize?: number;
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* cn-hangzhou
|
|
59
|
+
*/
|
|
60
|
+
regionId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @example
|
|
63
|
+
* rg-**********
|
|
64
|
+
*/
|
|
65
|
+
resourceGroupId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* @example
|
|
68
|
+
* Instance
|
|
69
|
+
*/
|
|
70
|
+
resourceType?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @example
|
|
73
|
+
* 32077515
|
|
74
|
+
*/
|
|
75
|
+
taskId?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* 2025-01-03T12:31:03Z
|
|
79
|
+
*/
|
|
80
|
+
toStartTime?: string;
|
|
81
|
+
static names(): { [key: string]: string } {
|
|
82
|
+
return {
|
|
83
|
+
archiveStatus: 'ArchiveStatus',
|
|
84
|
+
eventCategory: 'EventCategory',
|
|
85
|
+
eventId: 'EventId',
|
|
86
|
+
eventLevel: 'EventLevel',
|
|
87
|
+
eventStatus: 'EventStatus',
|
|
88
|
+
eventType: 'EventType',
|
|
89
|
+
fromStartTime: 'FromStartTime',
|
|
90
|
+
instanceId: 'InstanceId',
|
|
91
|
+
pageNumber: 'PageNumber',
|
|
92
|
+
pageSize: 'PageSize',
|
|
93
|
+
regionId: 'RegionId',
|
|
94
|
+
resourceGroupId: 'ResourceGroupId',
|
|
95
|
+
resourceType: 'ResourceType',
|
|
96
|
+
taskId: 'TaskId',
|
|
97
|
+
toStartTime: 'ToStartTime',
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static types(): { [key: string]: any } {
|
|
102
|
+
return {
|
|
103
|
+
archiveStatus: 'string',
|
|
104
|
+
eventCategory: 'string',
|
|
105
|
+
eventId: 'string',
|
|
106
|
+
eventLevel: 'string',
|
|
107
|
+
eventStatus: 'string',
|
|
108
|
+
eventType: 'string',
|
|
109
|
+
fromStartTime: 'string',
|
|
110
|
+
instanceId: 'string',
|
|
111
|
+
pageNumber: 'number',
|
|
112
|
+
pageSize: 'number',
|
|
113
|
+
regionId: 'string',
|
|
114
|
+
resourceGroupId: 'string',
|
|
115
|
+
resourceType: 'string',
|
|
116
|
+
taskId: 'string',
|
|
117
|
+
toStartTime: 'string',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
validate() {
|
|
122
|
+
super.validate();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
constructor(map?: { [key: string]: any }) {
|
|
126
|
+
super(map);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeHistoryEventsResponseBody } from "./DescribeHistoryEventsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeHistoryEventsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeHistoryEventsResponseBody;
|
|
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: DescribeHistoryEventsResponseBody,
|
|
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
|
+
|