@alicloud/elasticsearch20170613 4.1.1 → 4.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.
Files changed (45) hide show
  1. package/dist/client.d.ts +54 -0
  2. package/dist/client.js +150 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ListEventRecordsRequest.d.ts +43 -0
  5. package/dist/models/ListEventRecordsRequest.js +68 -0
  6. package/dist/models/ListEventRecordsRequest.js.map +1 -0
  7. package/dist/models/ListEventRecordsResponse.d.ts +19 -0
  8. package/dist/models/ListEventRecordsResponse.js +69 -0
  9. package/dist/models/ListEventRecordsResponse.js.map +1 -0
  10. package/dist/models/ListEventRecordsResponseBody.d.ts +176 -0
  11. package/dist/models/ListEventRecordsResponseBody.js +193 -0
  12. package/dist/models/ListEventRecordsResponseBody.js.map +1 -0
  13. package/dist/models/ListStatsEventRecordsRequest.d.ts +28 -0
  14. package/dist/models/ListStatsEventRecordsRequest.js +62 -0
  15. package/dist/models/ListStatsEventRecordsRequest.js.map +1 -0
  16. package/dist/models/ListStatsEventRecordsResponse.d.ts +19 -0
  17. package/dist/models/ListStatsEventRecordsResponse.js +69 -0
  18. package/dist/models/ListStatsEventRecordsResponse.js.map +1 -0
  19. package/dist/models/ListStatsEventRecordsResponseBody.d.ts +69 -0
  20. package/dist/models/ListStatsEventRecordsResponseBody.js +112 -0
  21. package/dist/models/ListStatsEventRecordsResponseBody.js.map +1 -0
  22. package/dist/models/ModifyScheduleExecuteTimeRequest.d.ts +23 -0
  23. package/dist/models/ModifyScheduleExecuteTimeRequest.js +60 -0
  24. package/dist/models/ModifyScheduleExecuteTimeRequest.js.map +1 -0
  25. package/dist/models/ModifyScheduleExecuteTimeResponse.d.ts +19 -0
  26. package/dist/models/ModifyScheduleExecuteTimeResponse.js +69 -0
  27. package/dist/models/ModifyScheduleExecuteTimeResponse.js.map +1 -0
  28. package/dist/models/ModifyScheduleExecuteTimeResponseBody.d.ts +26 -0
  29. package/dist/models/ModifyScheduleExecuteTimeResponseBody.js +60 -0
  30. package/dist/models/ModifyScheduleExecuteTimeResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +15 -0
  32. package/dist/models/model.js +45 -15
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +167 -0
  36. package/src/models/ListEventRecordsRequest.ts +66 -0
  37. package/src/models/ListEventRecordsResponse.ts +40 -0
  38. package/src/models/ListEventRecordsResponseBody.ts +288 -0
  39. package/src/models/ListStatsEventRecordsRequest.ts +45 -0
  40. package/src/models/ListStatsEventRecordsResponse.ts +40 -0
  41. package/src/models/ListStatsEventRecordsResponseBody.ts +118 -0
  42. package/src/models/ModifyScheduleExecuteTimeRequest.ts +38 -0
  43. package/src/models/ModifyScheduleExecuteTimeResponse.ts +40 -0
  44. package/src/models/ModifyScheduleExecuteTimeResponseBody.ts +41 -0
  45. package/src/models/model.ts +15 -0
@@ -0,0 +1,66 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListEventRecordsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 1746516590000
9
+ */
10
+ beginTime?: string;
11
+ /**
12
+ * @example
13
+ * 1746775790000
14
+ */
15
+ endTime?: string;
16
+ /**
17
+ * @example
18
+ * 1
19
+ */
20
+ page?: number;
21
+ /**
22
+ * @example
23
+ * 10
24
+ */
25
+ size?: number;
26
+ /**
27
+ * @example
28
+ * **
29
+ */
30
+ termContent?: string;
31
+ /**
32
+ * @example
33
+ * InstanceId
34
+ */
35
+ termType?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ beginTime: 'beginTime',
39
+ endTime: 'endTime',
40
+ page: 'page',
41
+ size: 'size',
42
+ termContent: 'termContent',
43
+ termType: 'termType',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ beginTime: 'string',
50
+ endTime: 'string',
51
+ page: 'number',
52
+ size: 'number',
53
+ termContent: 'string',
54
+ termType: 'string',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListEventRecordsResponseBody } from "./ListEventRecordsResponseBody";
4
+
5
+
6
+ export class ListEventRecordsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListEventRecordsResponseBody;
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: ListEventRecordsResponseBody,
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,288 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListEventRecordsResponseBodyResultResultShowContentActionSuggest extends $dara.Model {
6
+ suggestActions?: string[];
7
+ /**
8
+ * @example
9
+ * “”
10
+ */
11
+ suggestText?: string;
12
+ /**
13
+ * @example
14
+ * promptText
15
+ */
16
+ suggestType?: string;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ suggestActions: 'suggestActions',
20
+ suggestText: 'suggestText',
21
+ suggestType: 'suggestType',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ suggestActions: { 'type': 'array', 'itemType': 'string' },
28
+ suggestText: 'string',
29
+ suggestType: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(Array.isArray(this.suggestActions)) {
35
+ $dara.Model.validateArray(this.suggestActions);
36
+ }
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class ListEventRecordsResponseBodyResultResultShowContent extends $dara.Model {
46
+ actionSuggest?: ListEventRecordsResponseBodyResultResultShowContentActionSuggest;
47
+ /**
48
+ * @example
49
+ * Instance.SpecModify
50
+ */
51
+ desc?: string;
52
+ /**
53
+ * @example
54
+ * Executed
55
+ */
56
+ eventStatus?: string;
57
+ /**
58
+ * @example
59
+ * 2025-05-08 18:31:01
60
+ */
61
+ eventTime?: string;
62
+ /**
63
+ * @example
64
+ * 2025-05-08 18:41:01
65
+ */
66
+ executeFinishTime?: string;
67
+ /**
68
+ * @example
69
+ * 2025-05-08 18:31:00
70
+ */
71
+ executeStartTime?: string;
72
+ /**
73
+ * @example
74
+ * es-cn-a5cb2dece****
75
+ */
76
+ instanceId?: string;
77
+ /**
78
+ * @example
79
+ * f183728022a1c769e97b4*****
80
+ */
81
+ opsChangeId?: string;
82
+ static names(): { [key: string]: string } {
83
+ return {
84
+ actionSuggest: 'actionSuggest',
85
+ desc: 'desc',
86
+ eventStatus: 'eventStatus',
87
+ eventTime: 'eventTime',
88
+ executeFinishTime: 'executeFinishTime',
89
+ executeStartTime: 'executeStartTime',
90
+ instanceId: 'instanceId',
91
+ opsChangeId: 'opsChangeId',
92
+ };
93
+ }
94
+
95
+ static types(): { [key: string]: any } {
96
+ return {
97
+ actionSuggest: ListEventRecordsResponseBodyResultResultShowContentActionSuggest,
98
+ desc: 'string',
99
+ eventStatus: 'string',
100
+ eventTime: 'string',
101
+ executeFinishTime: 'string',
102
+ executeStartTime: 'string',
103
+ instanceId: 'string',
104
+ opsChangeId: 'string',
105
+ };
106
+ }
107
+
108
+ validate() {
109
+ if(this.actionSuggest && typeof (this.actionSuggest as any).validate === 'function') {
110
+ (this.actionSuggest as any).validate();
111
+ }
112
+ super.validate();
113
+ }
114
+
115
+ constructor(map?: { [key: string]: any }) {
116
+ super(map);
117
+ }
118
+ }
119
+
120
+ export class ListEventRecordsResponseBodyResultResult extends $dara.Model {
121
+ /**
122
+ * @example
123
+ * false
124
+ */
125
+ autoAlarm?: boolean;
126
+ /**
127
+ * @example
128
+ * Instance.SpecModify
129
+ */
130
+ displayName?: string;
131
+ /**
132
+ * @example
133
+ * false
134
+ */
135
+ dryRun?: boolean;
136
+ /**
137
+ * @example
138
+ * Info
139
+ */
140
+ level?: string;
141
+ /**
142
+ * @example
143
+ * false
144
+ */
145
+ mustOps?: boolean;
146
+ /**
147
+ * @example
148
+ * elasticsearch
149
+ */
150
+ product?: string;
151
+ /**
152
+ * @example
153
+ * 2025-05-08 18:41:01
154
+ */
155
+ scheduleExecuteTime?: string;
156
+ /**
157
+ * @example
158
+ * 2025-05-08 18:41:01
159
+ */
160
+ scheduleFinishTime?: string;
161
+ showContent?: ListEventRecordsResponseBodyResultResultShowContent;
162
+ /**
163
+ * @example
164
+ * webConsole
165
+ */
166
+ source?: string;
167
+ /**
168
+ * @example
169
+ * Executed
170
+ */
171
+ status?: string;
172
+ /**
173
+ * @example
174
+ * UserOperator
175
+ */
176
+ type?: string;
177
+ static names(): { [key: string]: string } {
178
+ return {
179
+ autoAlarm: 'autoAlarm',
180
+ displayName: 'displayName',
181
+ dryRun: 'dryRun',
182
+ level: 'level',
183
+ mustOps: 'mustOps',
184
+ product: 'product',
185
+ scheduleExecuteTime: 'scheduleExecuteTime',
186
+ scheduleFinishTime: 'scheduleFinishTime',
187
+ showContent: 'showContent',
188
+ source: 'source',
189
+ status: 'status',
190
+ type: 'type',
191
+ };
192
+ }
193
+
194
+ static types(): { [key: string]: any } {
195
+ return {
196
+ autoAlarm: 'boolean',
197
+ displayName: 'string',
198
+ dryRun: 'boolean',
199
+ level: 'string',
200
+ mustOps: 'boolean',
201
+ product: 'string',
202
+ scheduleExecuteTime: 'string',
203
+ scheduleFinishTime: 'string',
204
+ showContent: ListEventRecordsResponseBodyResultResultShowContent,
205
+ source: 'string',
206
+ status: 'string',
207
+ type: 'string',
208
+ };
209
+ }
210
+
211
+ validate() {
212
+ if(this.showContent && typeof (this.showContent as any).validate === 'function') {
213
+ (this.showContent as any).validate();
214
+ }
215
+ super.validate();
216
+ }
217
+
218
+ constructor(map?: { [key: string]: any }) {
219
+ super(map);
220
+ }
221
+ }
222
+
223
+ export class ListEventRecordsResponseBodyResult extends $dara.Model {
224
+ result?: ListEventRecordsResponseBodyResultResult[];
225
+ /**
226
+ * @example
227
+ * 4
228
+ */
229
+ total?: string;
230
+ static names(): { [key: string]: string } {
231
+ return {
232
+ result: 'result',
233
+ total: 'total',
234
+ };
235
+ }
236
+
237
+ static types(): { [key: string]: any } {
238
+ return {
239
+ result: { 'type': 'array', 'itemType': ListEventRecordsResponseBodyResultResult },
240
+ total: 'string',
241
+ };
242
+ }
243
+
244
+ validate() {
245
+ if(Array.isArray(this.result)) {
246
+ $dara.Model.validateArray(this.result);
247
+ }
248
+ super.validate();
249
+ }
250
+
251
+ constructor(map?: { [key: string]: any }) {
252
+ super(map);
253
+ }
254
+ }
255
+
256
+ export class ListEventRecordsResponseBody extends $dara.Model {
257
+ /**
258
+ * @example
259
+ * 7F40EAA1-6F1D-4DD9-8DB8-C5F00C4E****
260
+ */
261
+ requestId?: string;
262
+ result?: ListEventRecordsResponseBodyResult;
263
+ static names(): { [key: string]: string } {
264
+ return {
265
+ requestId: 'RequestId',
266
+ result: 'Result',
267
+ };
268
+ }
269
+
270
+ static types(): { [key: string]: any } {
271
+ return {
272
+ requestId: 'string',
273
+ result: ListEventRecordsResponseBodyResult,
274
+ };
275
+ }
276
+
277
+ validate() {
278
+ if(this.result && typeof (this.result as any).validate === 'function') {
279
+ (this.result as any).validate();
280
+ }
281
+ super.validate();
282
+ }
283
+
284
+ constructor(map?: { [key: string]: any }) {
285
+ super(map);
286
+ }
287
+ }
288
+
@@ -0,0 +1,45 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListStatsEventRecordsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * UserOperator
9
+ */
10
+ eventType?: string;
11
+ /**
12
+ * @example
13
+ * Info
14
+ */
15
+ level?: string;
16
+ /**
17
+ * @example
18
+ * Executed
19
+ */
20
+ status?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ eventType: 'eventType',
24
+ level: 'level',
25
+ status: 'status',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ eventType: 'string',
32
+ level: 'string',
33
+ status: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListStatsEventRecordsResponseBody } from "./ListStatsEventRecordsResponseBody";
4
+
5
+
6
+ export class ListStatsEventRecordsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListStatsEventRecordsResponseBody;
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: ListStatsEventRecordsResponseBody,
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,118 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListStatsEventRecordsResponseBodyResultResult extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 4
9
+ */
10
+ cnt?: string;
11
+ /**
12
+ * @example
13
+ * Info
14
+ */
15
+ level?: string;
16
+ /**
17
+ * @example
18
+ * Executed
19
+ */
20
+ status?: string;
21
+ /**
22
+ * @example
23
+ * UserOperator
24
+ */
25
+ type?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ cnt: 'cnt',
29
+ level: 'level',
30
+ status: 'status',
31
+ type: 'type',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ cnt: 'string',
38
+ level: 'string',
39
+ status: 'string',
40
+ type: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class ListStatsEventRecordsResponseBodyResult extends $dara.Model {
54
+ result?: ListStatsEventRecordsResponseBodyResultResult[];
55
+ /**
56
+ * @example
57
+ * 6
58
+ */
59
+ total?: string;
60
+ static names(): { [key: string]: string } {
61
+ return {
62
+ result: 'result',
63
+ total: 'total',
64
+ };
65
+ }
66
+
67
+ static types(): { [key: string]: any } {
68
+ return {
69
+ result: { 'type': 'array', 'itemType': ListStatsEventRecordsResponseBodyResultResult },
70
+ total: 'string',
71
+ };
72
+ }
73
+
74
+ validate() {
75
+ if(Array.isArray(this.result)) {
76
+ $dara.Model.validateArray(this.result);
77
+ }
78
+ super.validate();
79
+ }
80
+
81
+ constructor(map?: { [key: string]: any }) {
82
+ super(map);
83
+ }
84
+ }
85
+
86
+ export class ListStatsEventRecordsResponseBody extends $dara.Model {
87
+ /**
88
+ * @example
89
+ * F99407AB-2FA9-489E-A259-40CF6DCC****
90
+ */
91
+ requestId?: string;
92
+ result?: ListStatsEventRecordsResponseBodyResult;
93
+ static names(): { [key: string]: string } {
94
+ return {
95
+ requestId: 'RequestId',
96
+ result: 'Result',
97
+ };
98
+ }
99
+
100
+ static types(): { [key: string]: any } {
101
+ return {
102
+ requestId: 'string',
103
+ result: ListStatsEventRecordsResponseBodyResult,
104
+ };
105
+ }
106
+
107
+ validate() {
108
+ if(this.result && typeof (this.result as any).validate === 'function') {
109
+ (this.result as any).validate();
110
+ }
111
+ super.validate();
112
+ }
113
+
114
+ constructor(map?: { [key: string]: any }) {
115
+ super(map);
116
+ }
117
+ }
118
+
@@ -0,0 +1,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyScheduleExecuteTimeRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * eb7efbc90864a0***
9
+ */
10
+ eventId?: string;
11
+ /**
12
+ * @example
13
+ * 2026-01-30T08:45:00Z
14
+ */
15
+ scheduleExecuteTime?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ eventId: 'eventId',
19
+ scheduleExecuteTime: 'scheduleExecuteTime',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ eventId: 'string',
26
+ scheduleExecuteTime: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifyScheduleExecuteTimeResponseBody } from "./ModifyScheduleExecuteTimeResponseBody";
4
+
5
+
6
+ export class ModifyScheduleExecuteTimeResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifyScheduleExecuteTimeResponseBody;
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: ModifyScheduleExecuteTimeResponseBody,
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 ModifyScheduleExecuteTimeResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Id of the request
9
+ *
10
+ * @example
11
+ * F99407AB-2FA9-489E-A259-40CF6DCC47D9
12
+ */
13
+ requestId?: string;
14
+ /**
15
+ * @example
16
+ * true
17
+ */
18
+ result?: boolean;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ requestId: 'requestId',
22
+ result: 'result',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ requestId: 'string',
29
+ result: 'boolean',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+