Skip to content

Commit 176e57f

Browse files
committed
Support API ListPluginAttachments.
1 parent 0dbfa1d commit 176e57f

9 files changed

+407
-1
lines changed

apig-20240327/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/apig20240327",
3-
"version": "4.0.4",
3+
"version": "4.1.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

apig-20240327/src/client.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,83 @@ export default class Client extends OpenApi {
23782378
return await this.listHttpApisWithOptions(request, headers, runtime);
23792379
}
23802380

2381+
/**
2382+
* 获取挂载列表
2383+
*
2384+
* @param request - ListPluginAttachmentsRequest
2385+
* @param headers - map
2386+
* @param runtime - runtime options for this request RuntimeOptions
2387+
* @returns ListPluginAttachmentsResponse
2388+
*/
2389+
async listPluginAttachmentsWithOptions(request: $_model.ListPluginAttachmentsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginAttachmentsResponse> {
2390+
request.validate();
2391+
let query : {[key: string ]: any} = { };
2392+
if (!$dara.isNull(request.attachResourceId)) {
2393+
query["attachResourceId"] = request.attachResourceId;
2394+
}
2395+
2396+
if (!$dara.isNull(request.attachResourceType)) {
2397+
query["attachResourceType"] = request.attachResourceType;
2398+
}
2399+
2400+
if (!$dara.isNull(request.attachResourceTypes)) {
2401+
query["attachResourceTypes"] = request.attachResourceTypes;
2402+
}
2403+
2404+
if (!$dara.isNull(request.environmentId)) {
2405+
query["environmentId"] = request.environmentId;
2406+
}
2407+
2408+
if (!$dara.isNull(request.gatewayId)) {
2409+
query["gatewayId"] = request.gatewayId;
2410+
}
2411+
2412+
if (!$dara.isNull(request.pageNumber)) {
2413+
query["pageNumber"] = request.pageNumber;
2414+
}
2415+
2416+
if (!$dara.isNull(request.pageSize)) {
2417+
query["pageSize"] = request.pageSize;
2418+
}
2419+
2420+
if (!$dara.isNull(request.pluginId)) {
2421+
query["pluginId"] = request.pluginId;
2422+
}
2423+
2424+
if (!$dara.isNull(request.withParentResource)) {
2425+
query["withParentResource"] = request.withParentResource;
2426+
}
2427+
2428+
let req = new $OpenApiUtil.OpenApiRequest({
2429+
headers: headers,
2430+
query: OpenApiUtil.query(query),
2431+
});
2432+
let params = new $OpenApiUtil.Params({
2433+
action: "ListPluginAttachments",
2434+
version: "2024-03-27",
2435+
protocol: "HTTPS",
2436+
pathname: `/v1/plugin-attachments`,
2437+
method: "GET",
2438+
authType: "AK",
2439+
style: "ROA",
2440+
reqBodyType: "json",
2441+
bodyType: "json",
2442+
});
2443+
return $dara.cast<$_model.ListPluginAttachmentsResponse>(await this.callApi(params, req, runtime), new $_model.ListPluginAttachmentsResponse({}));
2444+
}
2445+
2446+
/**
2447+
* 获取挂载列表
2448+
*
2449+
* @param request - ListPluginAttachmentsRequest
2450+
* @returns ListPluginAttachmentsResponse
2451+
*/
2452+
async listPluginAttachments(request: $_model.ListPluginAttachmentsRequest): Promise<$_model.ListPluginAttachmentsResponse> {
2453+
let runtime = new $dara.RuntimeOptions({ });
2454+
let headers : {[key: string ]: string} = { };
2455+
return await this.listPluginAttachmentsWithOptions(request, headers, runtime);
2456+
}
2457+
23812458
/**
23822459
* ListPlugins
23832460
*

apig-20240327/src/models/GetGatewayResponseBodyData.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class GetGatewayResponseBodyData extends $dara.Model {
5858
* gw-cq2vundlhtg***
5959
*/
6060
gatewayId?: string;
61+
gatewayType?: string;
6162
/**
6263
* @remarks
6364
* List of entry addresses for the gateway.
@@ -170,6 +171,7 @@ export class GetGatewayResponseBodyData extends $dara.Model {
170171
environments: 'environments',
171172
expireTimestamp: 'expireTimestamp',
172173
gatewayId: 'gatewayId',
174+
gatewayType: 'gatewayType',
173175
loadBalancers: 'loadBalancers',
174176
name: 'name',
175177
replicas: 'replicas',
@@ -195,6 +197,7 @@ export class GetGatewayResponseBodyData extends $dara.Model {
195197
environments: { 'type': 'array', 'itemType': GetGatewayResponseBodyDataEnvironments },
196198
expireTimestamp: 'number',
197199
gatewayId: 'string',
200+
gatewayType: 'string',
198201
loadBalancers: { 'type': 'array', 'itemType': GetGatewayResponseBodyDataLoadBalancers },
199202
name: 'string',
200203
replicas: 'string',
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ListPluginAttachmentsRequest extends $dara.Model {
6+
/**
7+
* @example
8+
* hr-cv2h58em1hkg7c6vt43g
9+
*/
10+
attachResourceId?: string;
11+
/**
12+
* @example
13+
* GatewayRoute
14+
*/
15+
attachResourceType?: string;
16+
/**
17+
* @example
18+
* GatewayRoute
19+
*/
20+
attachResourceTypes?: string;
21+
/**
22+
* @example
23+
* env-crlnqhtlhtgqflkqislg
24+
*/
25+
environmentId?: string;
26+
/**
27+
* @example
28+
* gw-cr79f75lhtgme744084g
29+
*/
30+
gatewayId?: string;
31+
/**
32+
* @example
33+
* 1
34+
*/
35+
pageNumber?: number;
36+
/**
37+
* @example
38+
* 10
39+
*/
40+
pageSize?: number;
41+
/**
42+
* @example
43+
* pl-ct8181um1hkiqns9f6e0
44+
*/
45+
pluginId?: string;
46+
/**
47+
* @example
48+
* false
49+
*/
50+
withParentResource?: boolean;
51+
static names(): { [key: string]: string } {
52+
return {
53+
attachResourceId: 'attachResourceId',
54+
attachResourceType: 'attachResourceType',
55+
attachResourceTypes: 'attachResourceTypes',
56+
environmentId: 'environmentId',
57+
gatewayId: 'gatewayId',
58+
pageNumber: 'pageNumber',
59+
pageSize: 'pageSize',
60+
pluginId: 'pluginId',
61+
withParentResource: 'withParentResource',
62+
};
63+
}
64+
65+
static types(): { [key: string]: any } {
66+
return {
67+
attachResourceId: 'string',
68+
attachResourceType: 'string',
69+
attachResourceTypes: 'string',
70+
environmentId: 'string',
71+
gatewayId: 'string',
72+
pageNumber: 'number',
73+
pageSize: 'number',
74+
pluginId: 'string',
75+
withParentResource: 'boolean',
76+
};
77+
}
78+
79+
validate() {
80+
super.validate();
81+
}
82+
83+
constructor(map?: { [key: string]: any }) {
84+
super(map);
85+
}
86+
}
87+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ListPluginAttachmentsResponseBody } from "./ListPluginAttachmentsResponseBody";
4+
5+
6+
export class ListPluginAttachmentsResponse extends $dara.Model {
7+
headers?: { [key: string]: string };
8+
statusCode?: number;
9+
body?: ListPluginAttachmentsResponseBody;
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: ListPluginAttachmentsResponseBody,
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+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ListPluginAttachmentsResponseBodyData } from "./ListPluginAttachmentsResponseBodyData";
4+
5+
6+
export class ListPluginAttachmentsResponseBody extends $dara.Model {
7+
/**
8+
* @example
9+
* Ok
10+
*/
11+
code?: string;
12+
data?: ListPluginAttachmentsResponseBodyData;
13+
/**
14+
* @example
15+
* success
16+
*/
17+
message?: string;
18+
/**
19+
* @remarks
20+
* Id of the request
21+
*
22+
* @example
23+
* 9640D776-794A-5077-9184-A247CA4B45C1
24+
*/
25+
requestId?: string;
26+
static names(): { [key: string]: string } {
27+
return {
28+
code: 'code',
29+
data: 'data',
30+
message: 'message',
31+
requestId: 'requestId',
32+
};
33+
}
34+
35+
static types(): { [key: string]: any } {
36+
return {
37+
code: 'string',
38+
data: ListPluginAttachmentsResponseBodyData,
39+
message: 'string',
40+
requestId: 'string',
41+
};
42+
}
43+
44+
validate() {
45+
if(this.data && typeof (this.data as any).validate === 'function') {
46+
(this.data as any).validate();
47+
}
48+
super.validate();
49+
}
50+
51+
constructor(map?: { [key: string]: any }) {
52+
super(map);
53+
}
54+
}
55+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ListPluginAttachmentsResponseBodyDataItems } from "./ListPluginAttachmentsResponseBodyDataItems";
4+
5+
6+
export class ListPluginAttachmentsResponseBodyData extends $dara.Model {
7+
items?: ListPluginAttachmentsResponseBodyDataItems[];
8+
/**
9+
* @example
10+
* 1
11+
*/
12+
pageNumber?: number;
13+
/**
14+
* @example
15+
* 10
16+
*/
17+
pageSize?: number;
18+
/**
19+
* @example
20+
* 10
21+
*/
22+
totalSize?: number;
23+
static names(): { [key: string]: string } {
24+
return {
25+
items: 'items',
26+
pageNumber: 'pageNumber',
27+
pageSize: 'pageSize',
28+
totalSize: 'totalSize',
29+
};
30+
}
31+
32+
static types(): { [key: string]: any } {
33+
return {
34+
items: { 'type': 'array', 'itemType': ListPluginAttachmentsResponseBodyDataItems },
35+
pageNumber: 'number',
36+
pageSize: 'number',
37+
totalSize: 'number',
38+
};
39+
}
40+
41+
validate() {
42+
if(Array.isArray(this.items)) {
43+
$dara.Model.validateArray(this.items);
44+
}
45+
super.validate();
46+
}
47+
48+
constructor(map?: { [key: string]: any }) {
49+
super(map);
50+
}
51+
}
52+

0 commit comments

Comments
 (0)