@alicloud/apig20240327 4.3.0 → 4.3.2
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.js +18 -5
- package/dist/client.js.map +1 -1
- package/dist/models/CreateConsumerAuthorizationRulesRequest.d.ts +2 -0
- package/dist/models/CreateConsumerAuthorizationRulesRequest.js +7 -0
- package/dist/models/CreateConsumerAuthorizationRulesRequest.js.map +1 -1
- package/dist/models/CreateHttpApiRouteRequest.d.ts +1 -0
- package/dist/models/CreateHttpApiRouteRequest.js +2 -0
- package/dist/models/CreateHttpApiRouteRequest.js.map +1 -1
- package/dist/models/GetDashboardRequest.d.ts +1 -0
- package/dist/models/GetDashboardRequest.js +2 -0
- package/dist/models/GetDashboardRequest.js.map +1 -1
- package/dist/models/GetDashboardShrinkRequest.d.ts +1 -0
- package/dist/models/GetDashboardShrinkRequest.js +2 -0
- package/dist/models/GetDashboardShrinkRequest.js.map +1 -1
- package/dist/models/ListPolicyClassesRequest.d.ts +2 -0
- package/dist/models/ListPolicyClassesRequest.js +4 -0
- package/dist/models/ListPolicyClassesRequest.js.map +1 -1
- package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +1 -0
- package/dist/models/QueryConsumerAuthorizationRulesRequest.js +2 -0
- package/dist/models/QueryConsumerAuthorizationRulesRequest.js.map +1 -1
- package/dist/models/UpdateHttpApiRouteRequest.d.ts +17 -0
- package/dist/models/UpdateHttpApiRouteRequest.js +31 -1
- package/dist/models/UpdateHttpApiRouteRequest.js.map +1 -1
- package/dist/models/model.d.ts +1 -0
- package/dist/models/model.js +10 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +24 -5
- package/src/models/CreateConsumerAuthorizationRulesRequest.ts +9 -0
- package/src/models/CreateHttpApiRouteRequest.ts +3 -0
- package/src/models/GetDashboardRequest.ts +3 -0
- package/src/models/GetDashboardShrinkRequest.ts +3 -0
- package/src/models/ListPolicyClassesRequest.ts +6 -0
- package/src/models/QueryConsumerAuthorizationRulesRequest.ts +3 -0
- package/src/models/UpdateHttpApiRouteRequest.ts +38 -0
- package/src/models/model.ts +1 -0
|
@@ -11,6 +11,7 @@ export class CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceId
|
|
|
11
11
|
* env-cti17hem1hktoruj98ug
|
|
12
12
|
*/
|
|
13
13
|
environmentId?: string;
|
|
14
|
+
parentResourceId?: string;
|
|
14
15
|
/**
|
|
15
16
|
* @remarks
|
|
16
17
|
* The resource ID.
|
|
@@ -19,21 +20,29 @@ export class CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceId
|
|
|
19
20
|
* ha-cn-li942gy8p03
|
|
20
21
|
*/
|
|
21
22
|
resourceId?: string;
|
|
23
|
+
resources?: string[];
|
|
22
24
|
static names(): { [key: string]: string } {
|
|
23
25
|
return {
|
|
24
26
|
environmentId: 'environmentId',
|
|
27
|
+
parentResourceId: 'parentResourceId',
|
|
25
28
|
resourceId: 'resourceId',
|
|
29
|
+
resources: 'resources',
|
|
26
30
|
};
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
static types(): { [key: string]: any } {
|
|
30
34
|
return {
|
|
31
35
|
environmentId: 'string',
|
|
36
|
+
parentResourceId: 'string',
|
|
32
37
|
resourceId: 'string',
|
|
38
|
+
resources: { 'type': 'array', 'itemType': 'string' },
|
|
33
39
|
};
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
validate() {
|
|
43
|
+
if(Array.isArray(this.resources)) {
|
|
44
|
+
$dara.Model.validateArray(this.resources);
|
|
45
|
+
}
|
|
37
46
|
super.validate();
|
|
38
47
|
}
|
|
39
48
|
|
|
@@ -124,10 +124,12 @@ export class CreateHttpApiRouteRequestBackendConfig extends $dara.Model {
|
|
|
124
124
|
|
|
125
125
|
export class CreateHttpApiRouteRequestMcpRouteConfig extends $dara.Model {
|
|
126
126
|
exposedUriPath?: string;
|
|
127
|
+
mcpStatisticsEnable?: boolean;
|
|
127
128
|
protocol?: string;
|
|
128
129
|
static names(): { [key: string]: string } {
|
|
129
130
|
return {
|
|
130
131
|
exposedUriPath: 'exposedUriPath',
|
|
132
|
+
mcpStatisticsEnable: 'mcpStatisticsEnable',
|
|
131
133
|
protocol: 'protocol',
|
|
132
134
|
};
|
|
133
135
|
}
|
|
@@ -135,6 +137,7 @@ export class CreateHttpApiRouteRequestMcpRouteConfig extends $dara.Model {
|
|
|
135
137
|
static types(): { [key: string]: any } {
|
|
136
138
|
return {
|
|
137
139
|
exposedUriPath: 'string',
|
|
140
|
+
mcpStatisticsEnable: 'boolean',
|
|
138
141
|
protocol: 'string',
|
|
139
142
|
};
|
|
140
143
|
}
|
|
@@ -74,6 +74,7 @@ export class GetDashboardRequest extends $dara.Model {
|
|
|
74
74
|
*/
|
|
75
75
|
pluginClassId?: string;
|
|
76
76
|
pluginId?: string;
|
|
77
|
+
routeId?: string;
|
|
77
78
|
/**
|
|
78
79
|
* @remarks
|
|
79
80
|
* The dashboard source. Valid values:
|
|
@@ -93,6 +94,7 @@ export class GetDashboardRequest extends $dara.Model {
|
|
|
93
94
|
name: 'name',
|
|
94
95
|
pluginClassId: 'pluginClassId',
|
|
95
96
|
pluginId: 'pluginId',
|
|
97
|
+
routeId: 'routeId',
|
|
96
98
|
source: 'source',
|
|
97
99
|
upstreamCluster: 'upstreamCluster',
|
|
98
100
|
};
|
|
@@ -106,6 +108,7 @@ export class GetDashboardRequest extends $dara.Model {
|
|
|
106
108
|
name: 'string',
|
|
107
109
|
pluginClassId: 'string',
|
|
108
110
|
pluginId: 'string',
|
|
111
|
+
routeId: 'string',
|
|
109
112
|
source: 'string',
|
|
110
113
|
upstreamCluster: 'string',
|
|
111
114
|
};
|
|
@@ -44,6 +44,7 @@ export class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
44
44
|
*/
|
|
45
45
|
pluginClassId?: string;
|
|
46
46
|
pluginId?: string;
|
|
47
|
+
routeId?: string;
|
|
47
48
|
/**
|
|
48
49
|
* @remarks
|
|
49
50
|
* The dashboard source. Valid values:
|
|
@@ -63,6 +64,7 @@ export class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
63
64
|
name: 'name',
|
|
64
65
|
pluginClassId: 'pluginClassId',
|
|
65
66
|
pluginId: 'pluginId',
|
|
67
|
+
routeId: 'routeId',
|
|
66
68
|
source: 'source',
|
|
67
69
|
upstreamCluster: 'upstreamCluster',
|
|
68
70
|
};
|
|
@@ -76,6 +78,7 @@ export class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
76
78
|
name: 'string',
|
|
77
79
|
pluginClassId: 'string',
|
|
78
80
|
pluginId: 'string',
|
|
81
|
+
routeId: 'string',
|
|
79
82
|
source: 'string',
|
|
80
83
|
upstreamCluster: 'string',
|
|
81
84
|
};
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ListPolicyClassesRequest extends $dara.Model {
|
|
6
|
+
attachResourceId?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* Types of attachment points supported by the policy.
|
|
@@ -30,6 +31,7 @@ export class ListPolicyClassesRequest extends $dara.Model {
|
|
|
30
31
|
* InBound
|
|
31
32
|
*/
|
|
32
33
|
direction?: string;
|
|
34
|
+
gatewayId?: string;
|
|
33
35
|
/**
|
|
34
36
|
* @remarks
|
|
35
37
|
* Page number, default is 1.
|
|
@@ -56,8 +58,10 @@ export class ListPolicyClassesRequest extends $dara.Model {
|
|
|
56
58
|
type?: string;
|
|
57
59
|
static names(): { [key: string]: string } {
|
|
58
60
|
return {
|
|
61
|
+
attachResourceId: 'attachResourceId',
|
|
59
62
|
attachResourceType: 'attachResourceType',
|
|
60
63
|
direction: 'direction',
|
|
64
|
+
gatewayId: 'gatewayId',
|
|
61
65
|
pageNumber: 'pageNumber',
|
|
62
66
|
pageSize: 'pageSize',
|
|
63
67
|
type: 'type',
|
|
@@ -66,8 +70,10 @@ export class ListPolicyClassesRequest extends $dara.Model {
|
|
|
66
70
|
|
|
67
71
|
static types(): { [key: string]: any } {
|
|
68
72
|
return {
|
|
73
|
+
attachResourceId: 'string',
|
|
69
74
|
attachResourceType: 'string',
|
|
70
75
|
direction: 'string',
|
|
76
|
+
gatewayId: 'string',
|
|
71
77
|
pageNumber: 'number',
|
|
72
78
|
pageSize: 'number',
|
|
73
79
|
type: 'string',
|
|
@@ -83,6 +83,7 @@ export class QueryConsumerAuthorizationRulesRequest extends $dara.Model {
|
|
|
83
83
|
* HttpApiRoute
|
|
84
84
|
*/
|
|
85
85
|
resourceType?: string;
|
|
86
|
+
resourceTypes?: string;
|
|
86
87
|
static names(): { [key: string]: string } {
|
|
87
88
|
return {
|
|
88
89
|
apiNameLike: 'apiNameLike',
|
|
@@ -95,6 +96,7 @@ export class QueryConsumerAuthorizationRulesRequest extends $dara.Model {
|
|
|
95
96
|
parentResourceId: 'parentResourceId',
|
|
96
97
|
resourceId: 'resourceId',
|
|
97
98
|
resourceType: 'resourceType',
|
|
99
|
+
resourceTypes: 'resourceTypes',
|
|
98
100
|
};
|
|
99
101
|
}
|
|
100
102
|
|
|
@@ -110,6 +112,7 @@ export class QueryConsumerAuthorizationRulesRequest extends $dara.Model {
|
|
|
110
112
|
parentResourceId: 'string',
|
|
111
113
|
resourceId: 'string',
|
|
112
114
|
resourceType: 'string',
|
|
115
|
+
resourceTypes: 'string',
|
|
113
116
|
};
|
|
114
117
|
}
|
|
115
118
|
|
|
@@ -124,6 +124,35 @@ export class UpdateHttpApiRouteRequestBackendConfig extends $dara.Model {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
export class UpdateHttpApiRouteRequestMcpRouteConfig extends $dara.Model {
|
|
128
|
+
exposedUriPath?: string;
|
|
129
|
+
mcpStatisticsEnable?: boolean;
|
|
130
|
+
protocol?: string;
|
|
131
|
+
static names(): { [key: string]: string } {
|
|
132
|
+
return {
|
|
133
|
+
exposedUriPath: 'exposedUriPath',
|
|
134
|
+
mcpStatisticsEnable: 'mcpStatisticsEnable',
|
|
135
|
+
protocol: 'protocol',
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
static types(): { [key: string]: any } {
|
|
140
|
+
return {
|
|
141
|
+
exposedUriPath: 'string',
|
|
142
|
+
mcpStatisticsEnable: 'boolean',
|
|
143
|
+
protocol: 'string',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
validate() {
|
|
148
|
+
super.validate();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
constructor(map?: { [key: string]: any }) {
|
|
152
|
+
super(map);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
127
156
|
export class UpdateHttpApiRouteRequest extends $dara.Model {
|
|
128
157
|
/**
|
|
129
158
|
* @remarks
|
|
@@ -157,6 +186,8 @@ export class UpdateHttpApiRouteRequest extends $dara.Model {
|
|
|
157
186
|
* The rules for matching the route.
|
|
158
187
|
*/
|
|
159
188
|
match?: HttpRouteMatch;
|
|
189
|
+
mcpRouteConfig?: UpdateHttpApiRouteRequestMcpRouteConfig;
|
|
190
|
+
name?: string;
|
|
160
191
|
static names(): { [key: string]: string } {
|
|
161
192
|
return {
|
|
162
193
|
backendConfig: 'backendConfig',
|
|
@@ -165,6 +196,8 @@ export class UpdateHttpApiRouteRequest extends $dara.Model {
|
|
|
165
196
|
domainIds: 'domainIds',
|
|
166
197
|
environmentId: 'environmentId',
|
|
167
198
|
match: 'match',
|
|
199
|
+
mcpRouteConfig: 'mcpRouteConfig',
|
|
200
|
+
name: 'name',
|
|
168
201
|
};
|
|
169
202
|
}
|
|
170
203
|
|
|
@@ -176,6 +209,8 @@ export class UpdateHttpApiRouteRequest extends $dara.Model {
|
|
|
176
209
|
domainIds: { 'type': 'array', 'itemType': 'string' },
|
|
177
210
|
environmentId: 'string',
|
|
178
211
|
match: HttpRouteMatch,
|
|
212
|
+
mcpRouteConfig: UpdateHttpApiRouteRequestMcpRouteConfig,
|
|
213
|
+
name: 'string',
|
|
179
214
|
};
|
|
180
215
|
}
|
|
181
216
|
|
|
@@ -192,6 +227,9 @@ export class UpdateHttpApiRouteRequest extends $dara.Model {
|
|
|
192
227
|
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
193
228
|
(this.match as any).validate();
|
|
194
229
|
}
|
|
230
|
+
if(this.mcpRouteConfig && typeof (this.mcpRouteConfig as any).validate === 'function') {
|
|
231
|
+
(this.mcpRouteConfig as any).validate();
|
|
232
|
+
}
|
|
195
233
|
super.validate();
|
|
196
234
|
}
|
|
197
235
|
|
package/src/models/model.ts
CHANGED
|
@@ -152,6 +152,7 @@ export { UpdateDomainResponseBodyData } from './UpdateDomainResponseBody';
|
|
|
152
152
|
export { UpdateHttpApiRequestIngressConfig } from './UpdateHttpApiRequest';
|
|
153
153
|
export { UpdateHttpApiRouteRequestBackendConfigServices } from './UpdateHttpApiRouteRequest';
|
|
154
154
|
export { UpdateHttpApiRouteRequestBackendConfig } from './UpdateHttpApiRouteRequest';
|
|
155
|
+
export { UpdateHttpApiRouteRequestMcpRouteConfig } from './UpdateHttpApiRouteRequest';
|
|
155
156
|
export { AgentServiceConfig } from './AgentServiceConfig';
|
|
156
157
|
export { AiServiceConfig } from './AiServiceConfig';
|
|
157
158
|
export { AkSkIdentityConfig } from './AkSkIdentityConfig';
|