@alicloud/apig20240327 7.1.0 → 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.
Files changed (33) hide show
  1. package/dist/client.d.ts +20 -2
  2. package/dist/client.js +47 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateConsumerAuthorizationRulesRequest.d.ts +10 -10
  5. package/dist/models/CreateConsumerAuthorizationRulesResponseBody.d.ts +4 -4
  6. package/dist/models/DescribeRegionsRequest.d.ts +18 -0
  7. package/dist/models/DescribeRegionsRequest.js +58 -0
  8. package/dist/models/DescribeRegionsRequest.js.map +1 -0
  9. package/dist/models/DescribeRegionsResponse.d.ts +19 -0
  10. package/dist/models/DescribeRegionsResponse.js +69 -0
  11. package/dist/models/DescribeRegionsResponse.js.map +1 -0
  12. package/dist/models/DescribeRegionsResponseBody.d.ts +64 -0
  13. package/dist/models/DescribeRegionsResponseBody.js +110 -0
  14. package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
  15. package/dist/models/ImportHttpApiRequest.d.ts +1 -0
  16. package/dist/models/ImportHttpApiRequest.js +2 -0
  17. package/dist/models/ImportHttpApiRequest.js.map +1 -1
  18. package/dist/models/ImportHttpApiResponseBody.d.ts +30 -0
  19. package/dist/models/ImportHttpApiResponseBody.js +53 -1
  20. package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
  21. package/dist/models/model.d.ts +7 -0
  22. package/dist/models/model.js +32 -18
  23. package/dist/models/model.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/client.ts +51 -2
  26. package/src/models/CreateConsumerAuthorizationRulesRequest.ts +10 -10
  27. package/src/models/CreateConsumerAuthorizationRulesResponseBody.ts +4 -4
  28. package/src/models/DescribeRegionsRequest.ts +31 -0
  29. package/src/models/DescribeRegionsResponse.ts +40 -0
  30. package/src/models/DescribeRegionsResponseBody.ts +111 -0
  31. package/src/models/ImportHttpApiRequest.ts +3 -0
  32. package/src/models/ImportHttpApiResponseBody.ts +64 -0
  33. package/src/models/model.ts +7 -0
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeRegionsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * zh
9
+ */
10
+ language?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ language: 'language',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ language: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeRegionsResponseBody } from "./DescribeRegionsResponseBody";
4
+
5
+
6
+ export class DescribeRegionsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeRegionsResponseBody;
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: DescribeRegionsResponseBody,
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,111 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeRegionsResponseBodyRegionsRegion extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 华东1(杭州)
9
+ */
10
+ localName?: string;
11
+ /**
12
+ * @example
13
+ * cn-hangzhou
14
+ */
15
+ regionId?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ localName: 'localName',
19
+ regionId: 'regionId',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ localName: 'string',
26
+ regionId: '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 DescribeRegionsResponseBodyRegions extends $dara.Model {
40
+ region?: DescribeRegionsResponseBodyRegionsRegion[];
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ region: 'Region',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ region: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegionsRegion },
50
+ };
51
+ }
52
+
53
+ validate() {
54
+ if(Array.isArray(this.region)) {
55
+ $dara.Model.validateArray(this.region);
56
+ }
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class DescribeRegionsResponseBody extends $dara.Model {
66
+ /**
67
+ * @example
68
+ * 200
69
+ */
70
+ code?: string;
71
+ /**
72
+ * @example
73
+ * success
74
+ */
75
+ message?: string;
76
+ regions?: DescribeRegionsResponseBodyRegions;
77
+ /**
78
+ * @example
79
+ * E6BD6C79-32B1-5D7E-A89A-93C5A6B7xxxx
80
+ */
81
+ requestId?: string;
82
+ static names(): { [key: string]: string } {
83
+ return {
84
+ code: 'code',
85
+ message: 'message',
86
+ regions: 'regions',
87
+ requestId: 'requestId',
88
+ };
89
+ }
90
+
91
+ static types(): { [key: string]: any } {
92
+ return {
93
+ code: 'string',
94
+ message: 'string',
95
+ regions: DescribeRegionsResponseBodyRegions,
96
+ requestId: 'string',
97
+ };
98
+ }
99
+
100
+ validate() {
101
+ if(this.regions && typeof (this.regions as any).validate === 'function') {
102
+ (this.regions as any).validate();
103
+ }
104
+ super.validate();
105
+ }
106
+
107
+ constructor(map?: { [key: string]: any }) {
108
+ super(map);
109
+ }
110
+ }
111
+
@@ -153,6 +153,7 @@ export class ImportHttpApiRequest extends $dara.Model {
153
153
  * The versioning configuration for the API. If an existing API matches the specified name (and version, if enabled), this import updates that API.
154
154
  */
155
155
  versionConfig?: HttpApiVersionConfig;
156
+ withGatewayExtension?: boolean;
156
157
  static names(): { [key: string]: string } {
157
158
  return {
158
159
  deployConfigs: 'deployConfigs',
@@ -168,6 +169,7 @@ export class ImportHttpApiRequest extends $dara.Model {
168
169
  strategy: 'strategy',
169
170
  targetHttpApiId: 'targetHttpApiId',
170
171
  versionConfig: 'versionConfig',
172
+ withGatewayExtension: 'withGatewayExtension',
171
173
  };
172
174
  }
173
175
 
@@ -186,6 +188,7 @@ export class ImportHttpApiRequest extends $dara.Model {
186
188
  strategy: 'string',
187
189
  targetHttpApiId: 'string',
188
190
  versionConfig: HttpApiVersionConfig,
191
+ withGatewayExtension: 'boolean',
189
192
  };
190
193
  }
191
194
 
@@ -93,6 +93,32 @@ export class ImportHttpApiResponseBodyDataDryRunInfoFailureOperations extends $d
93
93
  }
94
94
  }
95
95
 
96
+ export class ImportHttpApiResponseBodyDataDryRunInfoFailureRoutes extends $dara.Model {
97
+ errorMessage?: string;
98
+ name?: string;
99
+ static names(): { [key: string]: string } {
100
+ return {
101
+ errorMessage: 'errorMessage',
102
+ name: 'name',
103
+ };
104
+ }
105
+
106
+ static types(): { [key: string]: any } {
107
+ return {
108
+ errorMessage: 'string',
109
+ name: 'string',
110
+ };
111
+ }
112
+
113
+ validate() {
114
+ super.validate();
115
+ }
116
+
117
+ constructor(map?: { [key: string]: any }) {
118
+ super(map);
119
+ }
120
+ }
121
+
96
122
  export class ImportHttpApiResponseBodyDataDryRunInfoSuccessComponents extends $dara.Model {
97
123
  /**
98
124
  * @remarks
@@ -201,6 +227,32 @@ export class ImportHttpApiResponseBodyDataDryRunInfoSuccessOperations extends $d
201
227
  }
202
228
  }
203
229
 
230
+ export class ImportHttpApiResponseBodyDataDryRunInfoSuccessRoutes extends $dara.Model {
231
+ action?: string;
232
+ name?: string;
233
+ static names(): { [key: string]: string } {
234
+ return {
235
+ action: 'action',
236
+ name: 'name',
237
+ };
238
+ }
239
+
240
+ static types(): { [key: string]: any } {
241
+ return {
242
+ action: 'string',
243
+ name: 'string',
244
+ };
245
+ }
246
+
247
+ validate() {
248
+ super.validate();
249
+ }
250
+
251
+ constructor(map?: { [key: string]: any }) {
252
+ super(map);
253
+ }
254
+ }
255
+
204
256
  export class ImportHttpApiResponseBodyDataDryRunInfo extends $dara.Model {
205
257
  /**
206
258
  * @remarks
@@ -222,6 +274,7 @@ export class ImportHttpApiResponseBodyDataDryRunInfo extends $dara.Model {
222
274
  * Operations that failed the dry run.
223
275
  */
224
276
  failureOperations?: ImportHttpApiResponseBodyDataDryRunInfoFailureOperations[];
277
+ failureRoutes?: ImportHttpApiResponseBodyDataDryRunInfoFailureRoutes[];
225
278
  mcpToolsDefinition?: string;
226
279
  /**
227
280
  * @remarks
@@ -233,6 +286,7 @@ export class ImportHttpApiResponseBodyDataDryRunInfo extends $dara.Model {
233
286
  * Operations that passed the dry run.
234
287
  */
235
288
  successOperations?: ImportHttpApiResponseBodyDataDryRunInfoSuccessOperations[];
289
+ successRoutes?: ImportHttpApiResponseBodyDataDryRunInfoSuccessRoutes[];
236
290
  /**
237
291
  * @remarks
238
292
  * Global warning messages. If this list is not empty, some operations or data structures might not be imported.
@@ -244,9 +298,11 @@ export class ImportHttpApiResponseBodyDataDryRunInfo extends $dara.Model {
244
298
  existHttpApiInfo: 'existHttpApiInfo',
245
299
  failureComponents: 'failureComponents',
246
300
  failureOperations: 'failureOperations',
301
+ failureRoutes: 'failureRoutes',
247
302
  mcpToolsDefinition: 'mcpToolsDefinition',
248
303
  successComponents: 'successComponents',
249
304
  successOperations: 'successOperations',
305
+ successRoutes: 'successRoutes',
250
306
  warningMessages: 'warningMessages',
251
307
  };
252
308
  }
@@ -257,9 +313,11 @@ export class ImportHttpApiResponseBodyDataDryRunInfo extends $dara.Model {
257
313
  existHttpApiInfo: HttpApiApiInfo,
258
314
  failureComponents: { 'type': 'array', 'itemType': ImportHttpApiResponseBodyDataDryRunInfoFailureComponents },
259
315
  failureOperations: { 'type': 'array', 'itemType': ImportHttpApiResponseBodyDataDryRunInfoFailureOperations },
316
+ failureRoutes: { 'type': 'array', 'itemType': ImportHttpApiResponseBodyDataDryRunInfoFailureRoutes },
260
317
  mcpToolsDefinition: 'string',
261
318
  successComponents: { 'type': 'array', 'itemType': ImportHttpApiResponseBodyDataDryRunInfoSuccessComponents },
262
319
  successOperations: { 'type': 'array', 'itemType': ImportHttpApiResponseBodyDataDryRunInfoSuccessOperations },
320
+ successRoutes: { 'type': 'array', 'itemType': ImportHttpApiResponseBodyDataDryRunInfoSuccessRoutes },
263
321
  warningMessages: { 'type': 'array', 'itemType': 'string' },
264
322
  };
265
323
  }
@@ -277,12 +335,18 @@ export class ImportHttpApiResponseBodyDataDryRunInfo extends $dara.Model {
277
335
  if(Array.isArray(this.failureOperations)) {
278
336
  $dara.Model.validateArray(this.failureOperations);
279
337
  }
338
+ if(Array.isArray(this.failureRoutes)) {
339
+ $dara.Model.validateArray(this.failureRoutes);
340
+ }
280
341
  if(Array.isArray(this.successComponents)) {
281
342
  $dara.Model.validateArray(this.successComponents);
282
343
  }
283
344
  if(Array.isArray(this.successOperations)) {
284
345
  $dara.Model.validateArray(this.successOperations);
285
346
  }
347
+ if(Array.isArray(this.successRoutes)) {
348
+ $dara.Model.validateArray(this.successRoutes);
349
+ }
286
350
  if(Array.isArray(this.warningMessages)) {
287
351
  $dara.Model.validateArray(this.warningMessages);
288
352
  }
@@ -147,6 +147,8 @@ export { DeployHttpApiRequestRestApiConfigEnvironment } from './DeployHttpApiReq
147
147
  export { DeployHttpApiRequestRestApiConfigOperationDeployments } from './DeployHttpApiRequest';
148
148
  export { DeployHttpApiRequestRestApiConfig } from './DeployHttpApiRequest';
149
149
  export { DeployHttpApiResponseBodyData } from './DeployHttpApiResponseBody';
150
+ export { DescribeRegionsResponseBodyRegionsRegion } from './DescribeRegionsResponseBody';
151
+ export { DescribeRegionsResponseBodyRegions } from './DescribeRegionsResponseBody';
150
152
  export { ExportHttpApiRequestExtensionConfig } from './ExportHttpApiRequest';
151
153
  export { ExportHttpApiResponseBodyData } from './ExportHttpApiResponseBody';
152
154
  export { GetConsumerResponseBodyData } from './GetConsumerResponseBody';
@@ -194,8 +196,10 @@ export { GetTraceConfigResponseBodyData } from './GetTraceConfigResponseBody';
194
196
  export { ImportHttpApiRequestSpecOssConfig } from './ImportHttpApiRequest';
195
197
  export { ImportHttpApiResponseBodyDataDryRunInfoFailureComponents } from './ImportHttpApiResponseBody';
196
198
  export { ImportHttpApiResponseBodyDataDryRunInfoFailureOperations } from './ImportHttpApiResponseBody';
199
+ export { ImportHttpApiResponseBodyDataDryRunInfoFailureRoutes } from './ImportHttpApiResponseBody';
197
200
  export { ImportHttpApiResponseBodyDataDryRunInfoSuccessComponents } from './ImportHttpApiResponseBody';
198
201
  export { ImportHttpApiResponseBodyDataDryRunInfoSuccessOperations } from './ImportHttpApiResponseBody';
202
+ export { ImportHttpApiResponseBodyDataDryRunInfoSuccessRoutes } from './ImportHttpApiResponseBody';
199
203
  export { ImportHttpApiResponseBodyDataDryRunInfo } from './ImportHttpApiResponseBody';
200
204
  export { ImportHttpApiResponseBodyData } from './ImportHttpApiResponseBody';
201
205
  export { InstallPluginResponseBodyDataInstallPluginResults } from './InstallPluginResponseBody';
@@ -483,6 +487,9 @@ export { DeployHttpApiResponseBody } from './DeployHttpApiResponseBody';
483
487
  export { DeployHttpApiResponse } from './DeployHttpApiResponse';
484
488
  export { DeployMcpServerResponseBody } from './DeployMcpServerResponseBody';
485
489
  export { DeployMcpServerResponse } from './DeployMcpServerResponse';
490
+ export { DescribeRegionsRequest } from './DescribeRegionsRequest';
491
+ export { DescribeRegionsResponseBody } from './DescribeRegionsResponseBody';
492
+ export { DescribeRegionsResponse } from './DescribeRegionsResponse';
486
493
  export { ExportHttpApiRequest } from './ExportHttpApiRequest';
487
494
  export { ExportHttpApiResponseBody } from './ExportHttpApiResponseBody';
488
495
  export { ExportHttpApiResponse } from './ExportHttpApiResponse';