@alicloud/apig20240327 11.0.1 → 11.0.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.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/models/Backend.d.ts +36 -3
- package/dist/models/Backend.js +12 -0
- package/dist/models/Backend.js.map +1 -1
- package/dist/models/CreateGatewayRequest.d.ts +7 -7
- package/dist/models/CreateHttpApiRouteRequest.d.ts +47 -14
- package/dist/models/CreateHttpApiRouteRequest.js +12 -0
- package/dist/models/CreateHttpApiRouteRequest.js.map +1 -1
- package/dist/models/DeployHttpApiRequest.d.ts +3 -3
- package/dist/models/GetDashboardRequest.d.ts +7 -7
- package/dist/models/GetDashboardResponseBody.d.ts +1 -1
- package/dist/models/GetDashboardShrinkRequest.d.ts +7 -7
- package/dist/models/GetGatewayResponseBody.d.ts +33 -6
- package/dist/models/GetGatewayResponseBody.js.map +1 -1
- package/dist/models/HttpApiApiInfo.d.ts +4 -0
- package/dist/models/HttpApiApiInfo.js.map +1 -1
- package/dist/models/HttpDubboTranscoder.d.ts +53 -7
- package/dist/models/HttpDubboTranscoder.js +16 -16
- package/dist/models/HttpDubboTranscoder.js.map +1 -1
- package/dist/models/InstallPluginRequest.d.ts +2 -2
- package/dist/models/ListTagResourcesRequest.d.ts +3 -3
- package/dist/models/ListTagResourcesResponseBody.d.ts +2 -2
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +3 -3
- package/dist/models/UpdateHttpApiRouteRequest.d.ts +34 -1
- package/dist/models/UpdateHttpApiRouteRequest.js +12 -0
- package/dist/models/UpdateHttpApiRouteRequest.js.map +1 -1
- package/dist/models/model.d.ts +2 -2
- package/dist/models/model.js +3 -3
- package/package.json +1 -1
- package/src/client.ts +2 -2
- package/src/models/Backend.ts +47 -3
- package/src/models/CreateGatewayRequest.ts +7 -7
- package/src/models/CreateHttpApiRouteRequest.ts +58 -14
- package/src/models/DeployHttpApiRequest.ts +3 -3
- package/src/models/GetDashboardRequest.ts +7 -7
- package/src/models/GetDashboardResponseBody.ts +1 -1
- package/src/models/GetDashboardShrinkRequest.ts +7 -7
- package/src/models/GetGatewayResponseBody.ts +33 -6
- package/src/models/HttpApiApiInfo.ts +4 -0
- package/src/models/HttpDubboTranscoder.ts +64 -18
- package/src/models/InstallPluginRequest.ts +2 -2
- package/src/models/ListTagResourcesRequest.ts +3 -3
- package/src/models/ListTagResourcesResponseBody.ts +2 -2
- package/src/models/ListTagResourcesShrinkRequest.ts +3 -3
- package/src/models/UpdateHttpApiRouteRequest.ts +45 -1
- package/src/models/model.ts +2 -2
|
@@ -2,18 +2,27 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
export class
|
|
5
|
+
export class HttpDubboTranscoderMethodMapListParamMapsList extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The key used to extract the input parameter.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* name
|
|
9
12
|
*/
|
|
10
13
|
extractKey?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The input parameter location. Valid values: ALL_QUERY_PARAMETER: request parameter. ALL_HEADER: request header. ALL_PATH: URI of the request. ALL_BODY: request body.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* ALL_QUERY_PARAMETER
|
|
14
20
|
*/
|
|
15
21
|
extractKeySpec?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The backend parameter type.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* java.lang.String
|
|
19
28
|
*/
|
|
@@ -43,30 +52,51 @@ export class HttpDubboTranscoderMothedMapListParamMapsList extends $dara.Model {
|
|
|
43
52
|
}
|
|
44
53
|
}
|
|
45
54
|
|
|
46
|
-
export class
|
|
47
|
-
dubboMothedName?: string;
|
|
55
|
+
export class HttpDubboTranscoderMethodMapList extends $dara.Model {
|
|
48
56
|
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The Dubbo method name.
|
|
59
|
+
*/
|
|
60
|
+
dubboMethodName?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* The HTTP method. Valid values: ALL_GET. ALL_POST. ALL_PUT. ALL_DELETE. ALL_PATCH.
|
|
64
|
+
*
|
|
49
65
|
* @example
|
|
50
66
|
* ALL_GET
|
|
51
67
|
*/
|
|
52
|
-
|
|
68
|
+
httpMethod?: string;
|
|
53
69
|
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The method matching path.
|
|
72
|
+
*
|
|
54
73
|
* @example
|
|
55
74
|
* /mytestzbk/sayhello
|
|
56
75
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
76
|
+
methodPath?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* The parameter mapping list.
|
|
80
|
+
*/
|
|
81
|
+
paramMapsList?: HttpDubboTranscoderMethodMapListParamMapsList[];
|
|
59
82
|
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The header pass-through type. Valid values: PASS_ALL: passes through all headers. PASS_NOT: does not pass through any headers. PASS_ASSIGN: passes through specified headers.
|
|
85
|
+
*
|
|
60
86
|
* @example
|
|
61
87
|
* PASS_NOT
|
|
62
88
|
*/
|
|
63
89
|
passThroughAllHeaders?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @remarks
|
|
92
|
+
* The list of specified pass-through headers.
|
|
93
|
+
*/
|
|
64
94
|
passThroughList?: string[];
|
|
65
95
|
static names(): { [key: string]: string } {
|
|
66
96
|
return {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
97
|
+
dubboMethodName: 'dubboMethodName',
|
|
98
|
+
httpMethod: 'httpMethod',
|
|
99
|
+
methodPath: 'methodPath',
|
|
70
100
|
paramMapsList: 'paramMapsList',
|
|
71
101
|
passThroughAllHeaders: 'passThroughAllHeaders',
|
|
72
102
|
passThroughList: 'passThroughList',
|
|
@@ -75,10 +105,10 @@ export class HttpDubboTranscoderMothedMapList extends $dara.Model {
|
|
|
75
105
|
|
|
76
106
|
static types(): { [key: string]: any } {
|
|
77
107
|
return {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
paramMapsList: { 'type': 'array', 'itemType':
|
|
108
|
+
dubboMethodName: 'string',
|
|
109
|
+
httpMethod: 'string',
|
|
110
|
+
methodPath: 'string',
|
|
111
|
+
paramMapsList: { 'type': 'array', 'itemType': HttpDubboTranscoderMethodMapListParamMapsList },
|
|
82
112
|
passThroughAllHeaders: 'string',
|
|
83
113
|
passThroughList: { 'type': 'array', 'itemType': 'string' },
|
|
84
114
|
};
|
|
@@ -100,16 +130,32 @@ export class HttpDubboTranscoderMothedMapList extends $dara.Model {
|
|
|
100
130
|
}
|
|
101
131
|
|
|
102
132
|
export class HttpDubboTranscoder extends $dara.Model {
|
|
133
|
+
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* The Dubbo service group.
|
|
136
|
+
*/
|
|
103
137
|
dubboServiceGroup?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* The Dubbo service name.
|
|
141
|
+
*/
|
|
104
142
|
dubboServiceName?: string;
|
|
143
|
+
/**
|
|
144
|
+
* @remarks
|
|
145
|
+
* The Dubbo service version.
|
|
146
|
+
*/
|
|
105
147
|
dubboServiceVersion?: string;
|
|
106
|
-
|
|
148
|
+
/**
|
|
149
|
+
* @remarks
|
|
150
|
+
* The method mapping list.
|
|
151
|
+
*/
|
|
152
|
+
methodMapList?: HttpDubboTranscoderMethodMapList[];
|
|
107
153
|
static names(): { [key: string]: string } {
|
|
108
154
|
return {
|
|
109
155
|
dubboServiceGroup: 'dubboServiceGroup',
|
|
110
156
|
dubboServiceName: 'dubboServiceName',
|
|
111
157
|
dubboServiceVersion: 'dubboServiceVersion',
|
|
112
|
-
|
|
158
|
+
methodMapList: 'methodMapList',
|
|
113
159
|
};
|
|
114
160
|
}
|
|
115
161
|
|
|
@@ -118,13 +164,13 @@ export class HttpDubboTranscoder extends $dara.Model {
|
|
|
118
164
|
dubboServiceGroup: 'string',
|
|
119
165
|
dubboServiceName: 'string',
|
|
120
166
|
dubboServiceVersion: 'string',
|
|
121
|
-
|
|
167
|
+
methodMapList: { 'type': 'array', 'itemType': HttpDubboTranscoderMethodMapList },
|
|
122
168
|
};
|
|
123
169
|
}
|
|
124
170
|
|
|
125
171
|
validate() {
|
|
126
|
-
if(Array.isArray(this.
|
|
127
|
-
$dara.Model.validateArray(this.
|
|
172
|
+
if(Array.isArray(this.methodMapList)) {
|
|
173
|
+
$dara.Model.validateArray(this.methodMapList);
|
|
128
174
|
}
|
|
129
175
|
super.validate();
|
|
130
176
|
}
|
|
@@ -5,12 +5,12 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class InstallPluginRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The list of gateway IDs.
|
|
8
|
+
* The list of gateway IDs. This parameter is required. If this parameter is not specified, the service returns InvalidParameter.IsEmpty. This field must be included in the body object.
|
|
9
9
|
*/
|
|
10
10
|
gatewayIds?: string[];
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The plug-in type ID.
|
|
13
|
+
* The plug-in type ID. This parameter is required. If this parameter is not specified, the service returns InvalidParameter.IsEmpty. This field must be included in the body object.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* pls-csqmjndlhtguk0loef21
|
|
@@ -45,7 +45,7 @@ export class ListTagResourcesRequestTag extends $dara.Model {
|
|
|
45
45
|
export class ListTagResourcesRequest extends $dara.Model {
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The token for the next query.
|
|
48
|
+
* The token for the next query start position.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* caeb235b-xxx
|
|
@@ -53,7 +53,7 @@ export class ListTagResourcesRequest extends $dara.Model {
|
|
|
53
53
|
nextToken?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The resource ID.
|
|
56
|
+
* The resource ID. Up to 50 subkeys are supported. At least one of ResourceId and Tag must be provided. If both are empty, the API returns InvalidParameter.BothEmpty (400).
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* ["gw-xxx","gw-yyy"]
|
|
@@ -69,7 +69,7 @@ export class ListTagResourcesRequest extends $dara.Model {
|
|
|
69
69
|
resourceType?: string;
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
* The list of
|
|
72
|
+
* The label list. Up to 20 subkeys are supported. At least one of ResourceId and Tag must be provided. If both are empty, the API returns InvalidParameter.BothEmpty (400).
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* [{"key":"env","value":"prod"}]
|
|
@@ -65,7 +65,7 @@ export class ListTagResourcesResponseBodyTagResources extends $dara.Model {
|
|
|
65
65
|
export class ListTagResourcesResponseBody extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The token for the next query. An empty NextToken indicates that no more results
|
|
68
|
+
* The token for the next query start position. An empty NextToken indicates that there are no more results.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* caeb235b-xxx
|
|
@@ -81,7 +81,7 @@ export class ListTagResourcesResponseBody extends $dara.Model {
|
|
|
81
81
|
requestId?: string;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The
|
|
84
|
+
* The resources.
|
|
85
85
|
*/
|
|
86
86
|
tagResources?: ListTagResourcesResponseBodyTagResources[];
|
|
87
87
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListTagResourcesShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The token for the next query.
|
|
8
|
+
* The token for the next query start position.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* caeb235b-xxx
|
|
@@ -13,7 +13,7 @@ export class ListTagResourcesShrinkRequest extends $dara.Model {
|
|
|
13
13
|
nextToken?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The resource ID.
|
|
16
|
+
* The resource ID. Up to 50 subkeys are supported. At least one of ResourceId and Tag must be provided. If both are empty, the API returns InvalidParameter.BothEmpty (400).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ["gw-xxx","gw-yyy"]
|
|
@@ -29,7 +29,7 @@ export class ListTagResourcesShrinkRequest extends $dara.Model {
|
|
|
29
29
|
resourceType?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The list of
|
|
32
|
+
* The label list. Up to 20 subkeys are supported. At least one of ResourceId and Tag must be provided. If both are empty, the API returns InvalidParameter.BothEmpty (400).
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* [{"key":"env","value":"prod"}]
|
|
@@ -2,17 +2,42 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { HttpRouteMatch } from "./HttpRouteMatch";
|
|
4
4
|
import { HttpApiPolicyConfigs } from "./HttpApiPolicyConfigs";
|
|
5
|
+
import { HttpDubboTranscoder } from "./HttpDubboTranscoder";
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model {
|
|
8
9
|
/**
|
|
9
10
|
* @remarks
|
|
10
|
-
* The
|
|
11
|
+
* The service group. Used in HTTP-to-Dubbo conversion scenarios.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* DEFAULT_GROUP
|
|
15
|
+
*/
|
|
16
|
+
groupName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* The HTTP-to-Dubbo protocol conversion configuration. Only supported for SingleService MSE_NACOS DUBBO backends of HTTP APIs.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* {"dubboServiceName":"com.alibaba.nacos.example.dubbo.service.DemoService","dubboServiceVersion":"1.0.0","dubboServiceGroup":"DEV","methodMapList":[{"dubboMethodName":"sayName","httpMethod":"ALL_GET","methodPath":"/dubbo/sayName","passThroughAllHeaders":"PASS_ALL"}]}
|
|
23
|
+
*/
|
|
24
|
+
httpDubboTranscoder?: HttpDubboTranscoder;
|
|
25
|
+
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* The target model name. This field is shared by multiple existing model backend scenarios. The specific routing or model rewrite semantics are determined by backendConfig.scene. This field is required for the SemanticRouter scenario. If not specified in the AiAutoRouter scenario, the default model of the AI service is used.
|
|
11
28
|
*
|
|
12
29
|
* @example
|
|
13
30
|
* qwen-plus
|
|
14
31
|
*/
|
|
15
32
|
modelName?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The service namespace. Used in HTTP-to-Dubbo conversion scenarios.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* public
|
|
39
|
+
*/
|
|
40
|
+
namespace?: string;
|
|
16
41
|
/**
|
|
17
42
|
* @remarks
|
|
18
43
|
* The service port. Do not specify this parameter for dynamic ports.
|
|
@@ -39,6 +64,14 @@ export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model
|
|
|
39
64
|
* svc-cr6pk4tlhtgm58e***
|
|
40
65
|
*/
|
|
41
66
|
serviceId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The service source type. Use MSE_NACOS for HTTP-to-Dubbo conversion scenarios.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* MSE_NACOS
|
|
73
|
+
*/
|
|
74
|
+
sourceType?: string;
|
|
42
75
|
/**
|
|
43
76
|
* @remarks
|
|
44
77
|
* The service version.
|
|
@@ -57,10 +90,14 @@ export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model
|
|
|
57
90
|
weight?: number;
|
|
58
91
|
static names(): { [key: string]: string } {
|
|
59
92
|
return {
|
|
93
|
+
groupName: 'groupName',
|
|
94
|
+
httpDubboTranscoder: 'httpDubboTranscoder',
|
|
60
95
|
modelName: 'modelName',
|
|
96
|
+
namespace: 'namespace',
|
|
61
97
|
port: 'port',
|
|
62
98
|
protocol: 'protocol',
|
|
63
99
|
serviceId: 'serviceId',
|
|
100
|
+
sourceType: 'sourceType',
|
|
64
101
|
version: 'version',
|
|
65
102
|
weight: 'weight',
|
|
66
103
|
};
|
|
@@ -68,16 +105,23 @@ export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model
|
|
|
68
105
|
|
|
69
106
|
static types(): { [key: string]: any } {
|
|
70
107
|
return {
|
|
108
|
+
groupName: 'string',
|
|
109
|
+
httpDubboTranscoder: HttpDubboTranscoder,
|
|
71
110
|
modelName: 'string',
|
|
111
|
+
namespace: 'string',
|
|
72
112
|
port: 'number',
|
|
73
113
|
protocol: 'string',
|
|
74
114
|
serviceId: 'string',
|
|
115
|
+
sourceType: 'string',
|
|
75
116
|
version: 'string',
|
|
76
117
|
weight: 'number',
|
|
77
118
|
};
|
|
78
119
|
}
|
|
79
120
|
|
|
80
121
|
validate() {
|
|
122
|
+
if(this.httpDubboTranscoder && typeof (this.httpDubboTranscoder as any).validate === 'function') {
|
|
123
|
+
(this.httpDubboTranscoder as any).validate();
|
|
124
|
+
}
|
|
81
125
|
super.validate();
|
|
82
126
|
}
|
|
83
127
|
|
package/src/models/model.ts
CHANGED
|
@@ -80,8 +80,8 @@ export { HttpApiPublishRevisionInfoServiceConfigs } from './HttpApiPublishRevisi
|
|
|
80
80
|
export { HttpApiPublishRevisionInfoVipConfigs } from './HttpApiPublishRevisionInfo';
|
|
81
81
|
export { HttpApiRequestContractBody } from './HttpApiRequestContract';
|
|
82
82
|
export { HttpApiResponseContractItems } from './HttpApiResponseContract';
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
83
|
+
export { HttpDubboTranscoderMethodMapListParamMapsList } from './HttpDubboTranscoder';
|
|
84
|
+
export { HttpDubboTranscoderMethodMapList } from './HttpDubboTranscoder';
|
|
85
85
|
export { HttpRouteDomainInfos } from './HttpRoute';
|
|
86
86
|
export { HttpRouteEnvironmentInfoGatewayInfo } from './HttpRoute';
|
|
87
87
|
export { HttpRouteEnvironmentInfoSubDomains } from './HttpRoute';
|