@alicloud/apig20240327 11.1.0 → 11.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.
- package/dist/client.d.ts +210 -42
- package/dist/client.js +460 -42
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +20 -17
- package/dist/models/AddGatewayQuotaRuleRequest.js +2 -0
- package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +30 -6
- package/dist/models/AddGatewayQuotaRuleResponseBody.js +6 -0
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/AiPluginStatus.d.ts +1 -1
- package/dist/models/CreateGatewayRequest.d.ts +11 -11
- package/dist/models/CreateGatewayResponseBody.d.ts +1 -1
- package/dist/models/DeployHttpApiRequest.d.ts +10 -10
- package/dist/models/DeployHttpApiResponseBody.d.ts +1 -1
- package/dist/models/GetGatewayQuotaRuleRequest.d.ts +7 -2
- package/dist/models/GetGatewayQuotaRuleRequest.js +2 -0
- package/dist/models/GetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +62 -5
- package/dist/models/GetGatewayQuotaRuleResponseBody.js +33 -1
- package/dist/models/GetGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +28 -2
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +6 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
- package/dist/models/HttpApiApiInfo.d.ts +32 -55
- package/dist/models/HttpApiApiInfo.js.map +1 -1
- package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +1 -1
- package/dist/models/HttpRoute.d.ts +36 -36
- package/dist/models/ListExternalServicesRequest.d.ts +3 -8
- package/dist/models/ListExternalServicesRequest.js.map +1 -1
- package/dist/models/ListExternalServicesResponseBody.d.ts +1 -1
- package/dist/models/ListHttpApiRoutesRequest.d.ts +5 -5
- package/dist/models/ListPluginWorkspaceRequest.d.ts +18 -0
- package/dist/models/ListPluginWorkspaceRequest.js +58 -0
- package/dist/models/ListPluginWorkspaceRequest.js.map +1 -0
- package/dist/models/ListPluginWorkspaceResponse.d.ts +19 -0
- package/dist/models/ListPluginWorkspaceResponse.js +69 -0
- package/dist/models/ListPluginWorkspaceResponse.js.map +1 -0
- package/dist/models/ListPluginWorkspaceResponseBody.d.ts +64 -0
- package/dist/models/ListPluginWorkspaceResponseBody.js +92 -0
- package/dist/models/ListPluginWorkspaceResponseBody.js.map +1 -0
- package/dist/models/ListRiskCheckResultsRequest.d.ts +33 -0
- package/dist/models/ListRiskCheckResultsRequest.js +64 -0
- package/dist/models/ListRiskCheckResultsRequest.js.map +1 -0
- package/dist/models/ListRiskCheckResultsResponse.d.ts +19 -0
- package/dist/models/ListRiskCheckResultsResponse.js +69 -0
- package/dist/models/ListRiskCheckResultsResponse.js.map +1 -0
- package/dist/models/ListRiskCheckResultsResponseBody.d.ts +71 -0
- package/dist/models/ListRiskCheckResultsResponseBody.js +100 -0
- package/dist/models/ListRiskCheckResultsResponseBody.js.map +1 -0
- package/dist/models/ListSourcesRequest.d.ts +55 -0
- package/dist/models/ListSourcesRequest.js +66 -0
- package/dist/models/ListSourcesRequest.js.map +1 -0
- package/dist/models/ListSourcesResponse.d.ts +19 -0
- package/dist/models/ListSourcesResponse.js +69 -0
- package/dist/models/ListSourcesResponse.js.map +1 -0
- package/dist/models/ListSourcesResponseBody.d.ts +208 -0
- package/dist/models/ListSourcesResponseBody.js +178 -0
- package/dist/models/ListSourcesResponseBody.js.map +1 -0
- package/dist/models/ListSyncMcpserverRequest.d.ts +28 -0
- package/dist/models/ListSyncMcpserverRequest.js +62 -0
- package/dist/models/ListSyncMcpserverRequest.js.map +1 -0
- package/dist/models/ListSyncMcpserverResponse.d.ts +19 -0
- package/dist/models/ListSyncMcpserverResponse.js +69 -0
- package/dist/models/ListSyncMcpserverResponse.js.map +1 -0
- package/dist/models/ListSyncMcpserverResponseBody.d.ts +46 -0
- package/dist/models/ListSyncMcpserverResponseBody.js +94 -0
- package/dist/models/ListSyncMcpserverResponseBody.js.map +1 -0
- package/dist/models/ListTagResourcesRequest.d.ts +4 -4
- package/dist/models/ListTagResourcesResponseBody.d.ts +1 -1
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +4 -4
- package/dist/models/RefreshPluginOauthCodeRequest.d.ts +18 -0
- package/dist/models/RefreshPluginOauthCodeRequest.js +58 -0
- package/dist/models/RefreshPluginOauthCodeRequest.js.map +1 -0
- package/dist/models/RefreshPluginOauthCodeResponse.d.ts +19 -0
- package/dist/models/RefreshPluginOauthCodeResponse.js +69 -0
- package/dist/models/RefreshPluginOauthCodeResponse.js.map +1 -0
- package/dist/models/RefreshPluginOauthCodeResponseBody.d.ts +31 -0
- package/dist/models/RefreshPluginOauthCodeResponseBody.js +62 -0
- package/dist/models/RefreshPluginOauthCodeResponseBody.js.map +1 -0
- package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +10 -9
- package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +37 -11
- package/dist/models/ResetGatewayQuotaRuleResponseBody.js +6 -0
- package/dist/models/ResetGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/RunPluginPipelineRequest.d.ts +13 -0
- package/dist/models/RunPluginPipelineRequest.js +54 -0
- package/dist/models/RunPluginPipelineRequest.js.map +1 -0
- package/dist/models/RunPluginPipelineResponse.d.ts +19 -0
- package/dist/models/RunPluginPipelineResponse.js +69 -0
- package/dist/models/RunPluginPipelineResponse.js.map +1 -0
- package/dist/models/RunPluginPipelineResponseBody.d.ts +31 -0
- package/dist/models/RunPluginPipelineResponseBody.js +62 -0
- package/dist/models/RunPluginPipelineResponseBody.js.map +1 -0
- package/dist/models/UpdateAuthorizationRuleRequest.d.ts +14 -0
- package/dist/models/UpdateAuthorizationRuleRequest.js +61 -0
- package/dist/models/UpdateAuthorizationRuleRequest.js.map +1 -0
- package/dist/models/UpdateAuthorizationRuleResponse.d.ts +19 -0
- package/dist/models/UpdateAuthorizationRuleResponse.js +69 -0
- package/dist/models/UpdateAuthorizationRuleResponse.js.map +1 -0
- package/dist/models/UpdateAuthorizationRuleResponseBody.d.ts +31 -0
- package/dist/models/UpdateAuthorizationRuleResponseBody.js +62 -0
- package/dist/models/UpdateAuthorizationRuleResponseBody.js.map +1 -0
- package/dist/models/UpdateGatewayElasticPolicyRequest.d.ts +97 -0
- package/dist/models/UpdateGatewayElasticPolicyRequest.js +140 -0
- package/dist/models/UpdateGatewayElasticPolicyRequest.js.map +1 -0
- package/dist/models/UpdateGatewayElasticPolicyResponse.d.ts +19 -0
- package/dist/models/UpdateGatewayElasticPolicyResponse.js +69 -0
- package/dist/models/UpdateGatewayElasticPolicyResponse.js.map +1 -0
- package/dist/models/UpdateGatewayElasticPolicyResponseBody.d.ts +31 -0
- package/dist/models/UpdateGatewayElasticPolicyResponseBody.js +62 -0
- package/dist/models/UpdateGatewayElasticPolicyResponseBody.js.map +1 -0
- package/dist/models/UpdateGatewayLoadBalancerRequest.d.ts +125 -0
- package/dist/models/UpdateGatewayLoadBalancerRequest.js +168 -0
- package/dist/models/UpdateGatewayLoadBalancerRequest.js.map +1 -0
- package/dist/models/UpdateGatewayLoadBalancerResponse.d.ts +19 -0
- package/dist/models/UpdateGatewayLoadBalancerResponse.js +69 -0
- package/dist/models/UpdateGatewayLoadBalancerResponse.js.map +1 -0
- package/dist/models/UpdateGatewayLoadBalancerResponseBody.d.ts +118 -0
- package/dist/models/UpdateGatewayLoadBalancerResponseBody.js +135 -0
- package/dist/models/UpdateGatewayLoadBalancerResponseBody.js.map +1 -0
- package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +8 -8
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +32 -8
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.js +6 -0
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +44 -0
- package/dist/models/model.js +109 -20
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +499 -42
- package/src/models/AddGatewayQuotaRuleRequest.ts +22 -17
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +36 -6
- package/src/models/AiPluginStatus.ts +1 -1
- package/src/models/CreateGatewayRequest.ts +11 -11
- package/src/models/CreateGatewayResponseBody.ts +1 -1
- package/src/models/DeployHttpApiRequest.ts +10 -10
- package/src/models/DeployHttpApiResponseBody.ts +1 -1
- package/src/models/GetGatewayQuotaRuleRequest.ts +9 -2
- package/src/models/GetGatewayQuotaRuleResponseBody.ts +85 -5
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +34 -2
- package/src/models/HttpApiApiInfo.ts +32 -55
- package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -1
- package/src/models/HttpRoute.ts +36 -36
- package/src/models/ListExternalServicesRequest.ts +3 -8
- package/src/models/ListExternalServicesResponseBody.ts +1 -1
- package/src/models/ListHttpApiRoutesRequest.ts +5 -5
- package/src/models/ListPluginWorkspaceRequest.ts +31 -0
- package/src/models/ListPluginWorkspaceResponse.ts +40 -0
- package/src/models/ListPluginWorkspaceResponseBody.ts +102 -0
- package/src/models/ListRiskCheckResultsRequest.ts +52 -0
- package/src/models/ListRiskCheckResultsResponse.ts +40 -0
- package/src/models/ListRiskCheckResultsResponseBody.ts +116 -0
- package/src/models/ListSourcesRequest.ts +76 -0
- package/src/models/ListSourcesResponse.ts +40 -0
- package/src/models/ListSourcesResponseBody.ts +305 -0
- package/src/models/ListSyncMcpserverRequest.ts +45 -0
- package/src/models/ListSyncMcpserverResponse.ts +40 -0
- package/src/models/ListSyncMcpserverResponseBody.ts +86 -0
- package/src/models/ListTagResourcesRequest.ts +4 -4
- package/src/models/ListTagResourcesResponseBody.ts +1 -1
- package/src/models/ListTagResourcesShrinkRequest.ts +4 -4
- package/src/models/RefreshPluginOauthCodeRequest.ts +31 -0
- package/src/models/RefreshPluginOauthCodeResponse.ts +40 -0
- package/src/models/RefreshPluginOauthCodeResponseBody.ts +48 -0
- package/src/models/ResetGatewayQuotaRuleRequest.ts +10 -9
- package/src/models/ResetGatewayQuotaRuleResponseBody.ts +43 -11
- package/src/models/RunPluginPipelineRequest.ts +24 -0
- package/src/models/RunPluginPipelineResponse.ts +40 -0
- package/src/models/RunPluginPipelineResponseBody.ts +48 -0
- package/src/models/UpdateAuthorizationRuleRequest.ts +30 -0
- package/src/models/UpdateAuthorizationRuleResponse.ts +40 -0
- package/src/models/UpdateAuthorizationRuleResponseBody.ts +48 -0
- package/src/models/UpdateGatewayElasticPolicyRequest.ts +165 -0
- package/src/models/UpdateGatewayElasticPolicyResponse.ts +40 -0
- package/src/models/UpdateGatewayElasticPolicyResponseBody.ts +48 -0
- package/src/models/UpdateGatewayLoadBalancerRequest.ts +212 -0
- package/src/models/UpdateGatewayLoadBalancerResponse.ts +40 -0
- package/src/models/UpdateGatewayLoadBalancerResponseBody.ts +190 -0
- package/src/models/UpdateGatewayQuotaRuleRequest.ts +8 -8
- package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +38 -8
- package/src/models/model.ts +44 -0
package/dist/client.js
CHANGED
|
@@ -112,15 +112,15 @@ class Client extends openapi_core_1.default {
|
|
|
112
112
|
* Creates a gateway quota throttling rule.
|
|
113
113
|
*
|
|
114
114
|
* @remarks
|
|
115
|
-
* Creates a consumer-based quota rule for an AI gateway. This operation
|
|
115
|
+
* Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
|
|
116
116
|
* >
|
|
117
|
-
* > Recommended call
|
|
118
|
-
* > -
|
|
119
|
-
* > - - Set dryRun
|
|
120
|
-
* > - - The response contains a conflict preview with
|
|
121
|
-
* > -
|
|
122
|
-
* > - - No conflicts:
|
|
123
|
-
* > - - Conflicts exist and you confirm
|
|
117
|
+
* > Recommended call logic:
|
|
118
|
+
* > - 1. Perform a dry run to check for rule conflicts.
|
|
119
|
+
* > - - Set dryRun=true.
|
|
120
|
+
* > - - The response contains a conflict preview with conflictHash.
|
|
121
|
+
* > - 2. Submit the request after confirmation.
|
|
122
|
+
* > - - No conflicts: dryRun=false, overwrite=false.
|
|
123
|
+
* > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
|
|
124
124
|
*
|
|
125
125
|
* @param request - AddGatewayQuotaRuleRequest
|
|
126
126
|
* @param headers - map
|
|
@@ -160,6 +160,9 @@ class Client extends openapi_core_1.default {
|
|
|
160
160
|
if (!$dara.isNull(request.ruleName)) {
|
|
161
161
|
body["ruleName"] = request.ruleName;
|
|
162
162
|
}
|
|
163
|
+
if (!$dara.isNull(request.subjectType)) {
|
|
164
|
+
body["subjectType"] = request.subjectType;
|
|
165
|
+
}
|
|
163
166
|
if (!$dara.isNull(request.timezone)) {
|
|
164
167
|
body["timezone"] = request.timezone;
|
|
165
168
|
}
|
|
@@ -187,15 +190,15 @@ class Client extends openapi_core_1.default {
|
|
|
187
190
|
* Creates a gateway quota throttling rule.
|
|
188
191
|
*
|
|
189
192
|
* @remarks
|
|
190
|
-
* Creates a consumer-based quota rule for an AI gateway. This operation
|
|
193
|
+
* Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
|
|
191
194
|
* >
|
|
192
|
-
* > Recommended call
|
|
193
|
-
* > -
|
|
194
|
-
* > - - Set dryRun
|
|
195
|
-
* > - - The response contains a conflict preview with
|
|
196
|
-
* > -
|
|
197
|
-
* > - - No conflicts:
|
|
198
|
-
* > - - Conflicts exist and you confirm
|
|
195
|
+
* > Recommended call logic:
|
|
196
|
+
* > - 1. Perform a dry run to check for rule conflicts.
|
|
197
|
+
* > - - Set dryRun=true.
|
|
198
|
+
* > - - The response contains a conflict preview with conflictHash.
|
|
199
|
+
* > - 2. Submit the request after confirmation.
|
|
200
|
+
* > - - No conflicts: dryRun=false, overwrite=false.
|
|
201
|
+
* > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
|
|
199
202
|
*
|
|
200
203
|
* @param request - AddGatewayQuotaRuleRequest
|
|
201
204
|
* @returns AddGatewayQuotaRuleResponse
|
|
@@ -3039,6 +3042,9 @@ class Client extends openapi_core_1.default {
|
|
|
3039
3042
|
/**
|
|
3040
3043
|
* Publishes an MCP server.
|
|
3041
3044
|
*
|
|
3045
|
+
* @remarks
|
|
3046
|
+
* Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
|
|
3047
|
+
*
|
|
3042
3048
|
* @param headers - map
|
|
3043
3049
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3044
3050
|
* @returns DeployMcpServerResponse
|
|
@@ -3062,6 +3068,9 @@ class Client extends openapi_core_1.default {
|
|
|
3062
3068
|
}
|
|
3063
3069
|
/**
|
|
3064
3070
|
* Publishes an MCP server.
|
|
3071
|
+
*
|
|
3072
|
+
* @remarks
|
|
3073
|
+
* Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
|
|
3065
3074
|
* @returns DeployMcpServerResponse
|
|
3066
3075
|
*/
|
|
3067
3076
|
async deployMcpServer(mcpServerId) {
|
|
@@ -3708,6 +3717,9 @@ class Client extends openapi_core_1.default {
|
|
|
3708
3717
|
if (!$dara.isNull(request.withConsumers)) {
|
|
3709
3718
|
query["withConsumers"] = request.withConsumers;
|
|
3710
3719
|
}
|
|
3720
|
+
if (!$dara.isNull(request.withSubjects)) {
|
|
3721
|
+
query["withSubjects"] = request.withSubjects;
|
|
3722
|
+
}
|
|
3711
3723
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3712
3724
|
headers: headers,
|
|
3713
3725
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
@@ -3743,7 +3755,7 @@ class Client extends openapi_core_1.default {
|
|
|
3743
3755
|
* Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
|
|
3744
3756
|
*
|
|
3745
3757
|
* @remarks
|
|
3746
|
-
*
|
|
3758
|
+
* Retrieves the usage details of a specific consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
|
|
3747
3759
|
*
|
|
3748
3760
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
3749
3761
|
* @param headers - map
|
|
@@ -3783,7 +3795,7 @@ class Client extends openapi_core_1.default {
|
|
|
3783
3795
|
* Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
|
|
3784
3796
|
*
|
|
3785
3797
|
* @remarks
|
|
3786
|
-
*
|
|
3798
|
+
* Retrieves the usage details of a specific consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
|
|
3787
3799
|
*
|
|
3788
3800
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
3789
3801
|
* @returns GetGatewayQuotaRuleSubjectUsageResponse
|
|
@@ -5250,7 +5262,7 @@ class Client extends openapi_core_1.default {
|
|
|
5250
5262
|
return await this.listEnvironmentsWithOptions(request, headers, runtime);
|
|
5251
5263
|
}
|
|
5252
5264
|
/**
|
|
5253
|
-
* Retrieves
|
|
5265
|
+
* Retrieves external service information for a gateway.
|
|
5254
5266
|
*
|
|
5255
5267
|
* @remarks
|
|
5256
5268
|
* This operation supports creating multiple services.
|
|
@@ -5296,7 +5308,7 @@ class Client extends openapi_core_1.default {
|
|
|
5296
5308
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListExternalServicesResponse({}));
|
|
5297
5309
|
}
|
|
5298
5310
|
/**
|
|
5299
|
-
* Retrieves
|
|
5311
|
+
* Retrieves external service information for a gateway.
|
|
5300
5312
|
*
|
|
5301
5313
|
* @remarks
|
|
5302
5314
|
* This operation supports creating multiple services.
|
|
@@ -6418,6 +6430,48 @@ class Client extends openapi_core_1.default {
|
|
|
6418
6430
|
let headers = {};
|
|
6419
6431
|
return await this.listPluginRepositoriesWithOptions(request, headers, runtime);
|
|
6420
6432
|
}
|
|
6433
|
+
/**
|
|
6434
|
+
* 获取用户插件webide工作空间列表
|
|
6435
|
+
*
|
|
6436
|
+
* @param request - ListPluginWorkspaceRequest
|
|
6437
|
+
* @param headers - map
|
|
6438
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6439
|
+
* @returns ListPluginWorkspaceResponse
|
|
6440
|
+
*/
|
|
6441
|
+
async listPluginWorkspaceWithOptions(request, headers, runtime) {
|
|
6442
|
+
request.validate();
|
|
6443
|
+
let query = {};
|
|
6444
|
+
if (!$dara.isNull(request.gatewayType)) {
|
|
6445
|
+
query["gatewayType"] = request.gatewayType;
|
|
6446
|
+
}
|
|
6447
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
6448
|
+
headers: headers,
|
|
6449
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
6450
|
+
});
|
|
6451
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
6452
|
+
action: "ListPluginWorkspace",
|
|
6453
|
+
version: "2024-03-27",
|
|
6454
|
+
protocol: "HTTPS",
|
|
6455
|
+
pathname: `/v1/plugin-workspaces`,
|
|
6456
|
+
method: "GET",
|
|
6457
|
+
authType: "AK",
|
|
6458
|
+
style: "ROA",
|
|
6459
|
+
reqBodyType: "json",
|
|
6460
|
+
bodyType: "json",
|
|
6461
|
+
});
|
|
6462
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginWorkspaceResponse({}));
|
|
6463
|
+
}
|
|
6464
|
+
/**
|
|
6465
|
+
* 获取用户插件webide工作空间列表
|
|
6466
|
+
*
|
|
6467
|
+
* @param request - ListPluginWorkspaceRequest
|
|
6468
|
+
* @returns ListPluginWorkspaceResponse
|
|
6469
|
+
*/
|
|
6470
|
+
async listPluginWorkspace(request) {
|
|
6471
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
6472
|
+
let headers = {};
|
|
6473
|
+
return await this.listPluginWorkspaceWithOptions(request, headers, runtime);
|
|
6474
|
+
}
|
|
6421
6475
|
/**
|
|
6422
6476
|
* Retrieves a list of plugins.
|
|
6423
6477
|
*
|
|
@@ -6604,6 +6658,57 @@ class Client extends openapi_core_1.default {
|
|
|
6604
6658
|
let headers = {};
|
|
6605
6659
|
return await this.listPolicyClassesWithOptions(request, headers, runtime);
|
|
6606
6660
|
}
|
|
6661
|
+
/**
|
|
6662
|
+
* 查询风险检测结果
|
|
6663
|
+
*
|
|
6664
|
+
* @param request - ListRiskCheckResultsRequest
|
|
6665
|
+
* @param headers - map
|
|
6666
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6667
|
+
* @returns ListRiskCheckResultsResponse
|
|
6668
|
+
*/
|
|
6669
|
+
async listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime) {
|
|
6670
|
+
request.validate();
|
|
6671
|
+
let query = {};
|
|
6672
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
6673
|
+
query["maxResults"] = request.maxResults;
|
|
6674
|
+
}
|
|
6675
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
6676
|
+
query["nextToken"] = request.nextToken;
|
|
6677
|
+
}
|
|
6678
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
6679
|
+
query["pageNumber"] = request.pageNumber;
|
|
6680
|
+
}
|
|
6681
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
6682
|
+
query["pageSize"] = request.pageSize;
|
|
6683
|
+
}
|
|
6684
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
6685
|
+
headers: headers,
|
|
6686
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
6687
|
+
});
|
|
6688
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
6689
|
+
action: "ListRiskCheckResults",
|
|
6690
|
+
version: "2024-03-27",
|
|
6691
|
+
protocol: "HTTPS",
|
|
6692
|
+
pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/results`,
|
|
6693
|
+
method: "GET",
|
|
6694
|
+
authType: "AK",
|
|
6695
|
+
style: "ROA",
|
|
6696
|
+
reqBodyType: "json",
|
|
6697
|
+
bodyType: "json",
|
|
6698
|
+
});
|
|
6699
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRiskCheckResultsResponse({}));
|
|
6700
|
+
}
|
|
6701
|
+
/**
|
|
6702
|
+
* 查询风险检测结果
|
|
6703
|
+
*
|
|
6704
|
+
* @param request - ListRiskCheckResultsRequest
|
|
6705
|
+
* @returns ListRiskCheckResultsResponse
|
|
6706
|
+
*/
|
|
6707
|
+
async listRiskCheckResults(gatewayId, request) {
|
|
6708
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
6709
|
+
let headers = {};
|
|
6710
|
+
return await this.listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime);
|
|
6711
|
+
}
|
|
6607
6712
|
/**
|
|
6608
6713
|
* Lists secret references.
|
|
6609
6714
|
*
|
|
@@ -6772,6 +6877,60 @@ class Client extends openapi_core_1.default {
|
|
|
6772
6877
|
let headers = {};
|
|
6773
6878
|
return await this.listServicesWithOptions(request, headers, runtime);
|
|
6774
6879
|
}
|
|
6880
|
+
/**
|
|
6881
|
+
* Queries sources.
|
|
6882
|
+
*
|
|
6883
|
+
* @param request - ListSourcesRequest
|
|
6884
|
+
* @param headers - map
|
|
6885
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6886
|
+
* @returns ListSourcesResponse
|
|
6887
|
+
*/
|
|
6888
|
+
async listSourcesWithOptions(request, headers, runtime) {
|
|
6889
|
+
request.validate();
|
|
6890
|
+
let query = {};
|
|
6891
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
6892
|
+
query["gatewayId"] = request.gatewayId;
|
|
6893
|
+
}
|
|
6894
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
6895
|
+
query["pageNumber"] = request.pageNumber;
|
|
6896
|
+
}
|
|
6897
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
6898
|
+
query["pageSize"] = request.pageSize;
|
|
6899
|
+
}
|
|
6900
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
6901
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
6902
|
+
}
|
|
6903
|
+
if (!$dara.isNull(request.type)) {
|
|
6904
|
+
query["type"] = request.type;
|
|
6905
|
+
}
|
|
6906
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
6907
|
+
headers: headers,
|
|
6908
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
6909
|
+
});
|
|
6910
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
6911
|
+
action: "ListSources",
|
|
6912
|
+
version: "2024-03-27",
|
|
6913
|
+
protocol: "HTTPS",
|
|
6914
|
+
pathname: `/v1/sources`,
|
|
6915
|
+
method: "GET",
|
|
6916
|
+
authType: "AK",
|
|
6917
|
+
style: "ROA",
|
|
6918
|
+
reqBodyType: "json",
|
|
6919
|
+
bodyType: "json",
|
|
6920
|
+
});
|
|
6921
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSourcesResponse({}));
|
|
6922
|
+
}
|
|
6923
|
+
/**
|
|
6924
|
+
* Queries sources.
|
|
6925
|
+
*
|
|
6926
|
+
* @param request - ListSourcesRequest
|
|
6927
|
+
* @returns ListSourcesResponse
|
|
6928
|
+
*/
|
|
6929
|
+
async listSources(request) {
|
|
6930
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
6931
|
+
let headers = {};
|
|
6932
|
+
return await this.listSourcesWithOptions(request, headers, runtime);
|
|
6933
|
+
}
|
|
6775
6934
|
/**
|
|
6776
6935
|
* Retrieves a list of certificates.
|
|
6777
6936
|
*
|
|
@@ -6823,6 +6982,54 @@ class Client extends openapi_core_1.default {
|
|
|
6823
6982
|
let headers = {};
|
|
6824
6983
|
return await this.listSslCertsWithOptions(request, headers, runtime);
|
|
6825
6984
|
}
|
|
6985
|
+
/**
|
|
6986
|
+
* 查询已同步的MCP Server列表
|
|
6987
|
+
*
|
|
6988
|
+
* @param request - ListSyncMCPServerRequest
|
|
6989
|
+
* @param headers - map
|
|
6990
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6991
|
+
* @returns ListSyncMCPServerResponse
|
|
6992
|
+
*/
|
|
6993
|
+
async listSyncMCPServerWithOptions(request, headers, runtime) {
|
|
6994
|
+
request.validate();
|
|
6995
|
+
let query = {};
|
|
6996
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
6997
|
+
query["gatewayId"] = request.gatewayId;
|
|
6998
|
+
}
|
|
6999
|
+
if (!$dara.isNull(request.namespace)) {
|
|
7000
|
+
query["namespace"] = request.namespace;
|
|
7001
|
+
}
|
|
7002
|
+
if (!$dara.isNull(request.sourceId)) {
|
|
7003
|
+
query["sourceId"] = request.sourceId;
|
|
7004
|
+
}
|
|
7005
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
7006
|
+
headers: headers,
|
|
7007
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
7008
|
+
});
|
|
7009
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
7010
|
+
action: "ListSyncMCPServer",
|
|
7011
|
+
version: "2024-03-27",
|
|
7012
|
+
protocol: "HTTPS",
|
|
7013
|
+
pathname: `/v1/mcp-servers/sync-mcp-server/list`,
|
|
7014
|
+
method: "GET",
|
|
7015
|
+
authType: "AK",
|
|
7016
|
+
style: "ROA",
|
|
7017
|
+
reqBodyType: "json",
|
|
7018
|
+
bodyType: "json",
|
|
7019
|
+
});
|
|
7020
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSyncMCPServerResponse({}));
|
|
7021
|
+
}
|
|
7022
|
+
/**
|
|
7023
|
+
* 查询已同步的MCP Server列表
|
|
7024
|
+
*
|
|
7025
|
+
* @param request - ListSyncMCPServerRequest
|
|
7026
|
+
* @returns ListSyncMCPServerResponse
|
|
7027
|
+
*/
|
|
7028
|
+
async listSyncMCPServer(request) {
|
|
7029
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
7030
|
+
let headers = {};
|
|
7031
|
+
return await this.listSyncMCPServerWithOptions(request, headers, runtime);
|
|
7032
|
+
}
|
|
6826
7033
|
/**
|
|
6827
7034
|
* Retrieves the list of resource labels.
|
|
6828
7035
|
*
|
|
@@ -7005,6 +7212,48 @@ class Client extends openapi_core_1.default {
|
|
|
7005
7212
|
let headers = {};
|
|
7006
7213
|
return await this.queryConsumerAuthorizationRulesWithOptions(request, headers, runtime);
|
|
7007
7214
|
}
|
|
7215
|
+
/**
|
|
7216
|
+
* 刷新插件托管仓库的oauth code
|
|
7217
|
+
*
|
|
7218
|
+
* @param request - RefreshPluginOAuthCodeRequest
|
|
7219
|
+
* @param headers - map
|
|
7220
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7221
|
+
* @returns RefreshPluginOAuthCodeResponse
|
|
7222
|
+
*/
|
|
7223
|
+
async refreshPluginOAuthCodeWithOptions(request, headers, runtime) {
|
|
7224
|
+
request.validate();
|
|
7225
|
+
let body = {};
|
|
7226
|
+
if (!$dara.isNull(request.code)) {
|
|
7227
|
+
body["code"] = request.code;
|
|
7228
|
+
}
|
|
7229
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
7230
|
+
headers: headers,
|
|
7231
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
7232
|
+
});
|
|
7233
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
7234
|
+
action: "RefreshPluginOAuthCode",
|
|
7235
|
+
version: "2024-03-27",
|
|
7236
|
+
protocol: "HTTPS",
|
|
7237
|
+
pathname: `/v1/plugin-oauth-codes`,
|
|
7238
|
+
method: "POST",
|
|
7239
|
+
authType: "AK",
|
|
7240
|
+
style: "ROA",
|
|
7241
|
+
reqBodyType: "json",
|
|
7242
|
+
bodyType: "json",
|
|
7243
|
+
});
|
|
7244
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RefreshPluginOAuthCodeResponse({}));
|
|
7245
|
+
}
|
|
7246
|
+
/**
|
|
7247
|
+
* 刷新插件托管仓库的oauth code
|
|
7248
|
+
*
|
|
7249
|
+
* @param request - RefreshPluginOAuthCodeRequest
|
|
7250
|
+
* @returns RefreshPluginOAuthCodeResponse
|
|
7251
|
+
*/
|
|
7252
|
+
async refreshPluginOAuthCode(request) {
|
|
7253
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
7254
|
+
let headers = {};
|
|
7255
|
+
return await this.refreshPluginOAuthCodeWithOptions(request, headers, runtime);
|
|
7256
|
+
}
|
|
7008
7257
|
/**
|
|
7009
7258
|
* Deletes an API consumer authorization rule.
|
|
7010
7259
|
*
|
|
@@ -7042,15 +7291,15 @@ class Client extends openapi_core_1.default {
|
|
|
7042
7291
|
* Resets a quota throttling rule on a gateway.
|
|
7043
7292
|
*
|
|
7044
7293
|
* @remarks
|
|
7045
|
-
* Resets a quota throttling rule on a gateway. This operation takes effect
|
|
7294
|
+
* Resets a quota throttling rule on a gateway. This operation only takes effect for AI gateways with versions later than 2.1.19. Resetting clears the historical usage of consumers on the rule.
|
|
7046
7295
|
* >
|
|
7047
|
-
* > Recommended call
|
|
7296
|
+
* > Recommended call logic:
|
|
7048
7297
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
7049
|
-
* > - - Set dryRun
|
|
7298
|
+
* > - - Set dryRun=true.
|
|
7050
7299
|
* > - - The response contains a conflict preview with conflictHash.
|
|
7051
7300
|
* > - 2. Submit the request after confirmation.
|
|
7052
|
-
* > - - No
|
|
7053
|
-
* > - -
|
|
7301
|
+
* > - - No conflict: dryRun=false, overwrite=false.
|
|
7302
|
+
* > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
|
|
7054
7303
|
*
|
|
7055
7304
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
7056
7305
|
* @param headers - map
|
|
@@ -7105,15 +7354,15 @@ class Client extends openapi_core_1.default {
|
|
|
7105
7354
|
* Resets a quota throttling rule on a gateway.
|
|
7106
7355
|
*
|
|
7107
7356
|
* @remarks
|
|
7108
|
-
* Resets a quota throttling rule on a gateway. This operation takes effect
|
|
7357
|
+
* Resets a quota throttling rule on a gateway. This operation only takes effect for AI gateways with versions later than 2.1.19. Resetting clears the historical usage of consumers on the rule.
|
|
7109
7358
|
* >
|
|
7110
|
-
* > Recommended call
|
|
7359
|
+
* > Recommended call logic:
|
|
7111
7360
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
7112
|
-
* > - - Set dryRun
|
|
7361
|
+
* > - - Set dryRun=true.
|
|
7113
7362
|
* > - - The response contains a conflict preview with conflictHash.
|
|
7114
7363
|
* > - 2. Submit the request after confirmation.
|
|
7115
|
-
* > - - No
|
|
7116
|
-
* > - -
|
|
7364
|
+
* > - - No conflict: dryRun=false, overwrite=false.
|
|
7365
|
+
* > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
|
|
7117
7366
|
*
|
|
7118
7367
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
7119
7368
|
* @returns ResetGatewayQuotaRuleResponse
|
|
@@ -7156,6 +7405,43 @@ class Client extends openapi_core_1.default {
|
|
|
7156
7405
|
let headers = {};
|
|
7157
7406
|
return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
|
|
7158
7407
|
}
|
|
7408
|
+
/**
|
|
7409
|
+
* 插件工作空间运行流水线
|
|
7410
|
+
*
|
|
7411
|
+
* @param request - RunPluginPipelineRequest
|
|
7412
|
+
* @param headers - map
|
|
7413
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7414
|
+
* @returns RunPluginPipelineResponse
|
|
7415
|
+
*/
|
|
7416
|
+
async runPluginPipelineWithOptions(workspaceId, request, headers, runtime) {
|
|
7417
|
+
request.validate();
|
|
7418
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
7419
|
+
headers: headers,
|
|
7420
|
+
});
|
|
7421
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
7422
|
+
action: "RunPluginPipeline",
|
|
7423
|
+
version: "2024-03-27",
|
|
7424
|
+
protocol: "HTTPS",
|
|
7425
|
+
pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}/pipeline-run`,
|
|
7426
|
+
method: "POST",
|
|
7427
|
+
authType: "AK",
|
|
7428
|
+
style: "ROA",
|
|
7429
|
+
reqBodyType: "json",
|
|
7430
|
+
bodyType: "json",
|
|
7431
|
+
});
|
|
7432
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunPluginPipelineResponse({}));
|
|
7433
|
+
}
|
|
7434
|
+
/**
|
|
7435
|
+
* 插件工作空间运行流水线
|
|
7436
|
+
*
|
|
7437
|
+
* @param request - RunPluginPipelineRequest
|
|
7438
|
+
* @returns RunPluginPipelineResponse
|
|
7439
|
+
*/
|
|
7440
|
+
async runPluginPipeline(workspaceId, request) {
|
|
7441
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
7442
|
+
let headers = {};
|
|
7443
|
+
return await this.runPluginPipelineWithOptions(workspaceId, request, headers, runtime);
|
|
7444
|
+
}
|
|
7159
7445
|
/**
|
|
7160
7446
|
* Syncs an external MCP server.
|
|
7161
7447
|
*
|
|
@@ -7596,6 +7882,48 @@ class Client extends openapi_core_1.default {
|
|
|
7596
7882
|
let headers = {};
|
|
7597
7883
|
return await this.updateAndAttachPolicyWithOptions(policyId, request, headers, runtime);
|
|
7598
7884
|
}
|
|
7885
|
+
/**
|
|
7886
|
+
* 更新消费者授权规则
|
|
7887
|
+
*
|
|
7888
|
+
* @param request - UpdateAuthorizationRuleRequest
|
|
7889
|
+
* @param headers - map
|
|
7890
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7891
|
+
* @returns UpdateAuthorizationRuleResponse
|
|
7892
|
+
*/
|
|
7893
|
+
async updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime) {
|
|
7894
|
+
request.validate();
|
|
7895
|
+
let body = {};
|
|
7896
|
+
if (!$dara.isNull(request.resources)) {
|
|
7897
|
+
body["resources"] = request.resources;
|
|
7898
|
+
}
|
|
7899
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
7900
|
+
headers: headers,
|
|
7901
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
7902
|
+
});
|
|
7903
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
7904
|
+
action: "UpdateAuthorizationRule",
|
|
7905
|
+
version: "2024-03-27",
|
|
7906
|
+
protocol: "HTTPS",
|
|
7907
|
+
pathname: `/v1/authorization-rules/${$dara.URL.percentEncode(consumerAuthorizationRuleId)}`,
|
|
7908
|
+
method: "PUT",
|
|
7909
|
+
authType: "AK",
|
|
7910
|
+
style: "ROA",
|
|
7911
|
+
reqBodyType: "json",
|
|
7912
|
+
bodyType: "json",
|
|
7913
|
+
});
|
|
7914
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAuthorizationRuleResponse({}));
|
|
7915
|
+
}
|
|
7916
|
+
/**
|
|
7917
|
+
* 更新消费者授权规则
|
|
7918
|
+
*
|
|
7919
|
+
* @param request - UpdateAuthorizationRuleRequest
|
|
7920
|
+
* @returns UpdateAuthorizationRuleResponse
|
|
7921
|
+
*/
|
|
7922
|
+
async updateAuthorizationRule(consumerAuthorizationRuleId, request) {
|
|
7923
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
7924
|
+
let headers = {};
|
|
7925
|
+
return await this.updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime);
|
|
7926
|
+
}
|
|
7599
7927
|
/**
|
|
7600
7928
|
* Updates a consumer.
|
|
7601
7929
|
*
|
|
@@ -7877,6 +8205,48 @@ class Client extends openapi_core_1.default {
|
|
|
7877
8205
|
let headers = {};
|
|
7878
8206
|
return await this.updateEnvironmentWithOptions(environmentId, request, headers, runtime);
|
|
7879
8207
|
}
|
|
8208
|
+
/**
|
|
8209
|
+
* 更新网关弹性策略
|
|
8210
|
+
*
|
|
8211
|
+
* @param request - UpdateGatewayElasticPolicyRequest
|
|
8212
|
+
* @param headers - map
|
|
8213
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8214
|
+
* @returns UpdateGatewayElasticPolicyResponse
|
|
8215
|
+
*/
|
|
8216
|
+
async updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime) {
|
|
8217
|
+
request.validate();
|
|
8218
|
+
let body = {};
|
|
8219
|
+
if (!$dara.isNull(request.elasticPolicy)) {
|
|
8220
|
+
body["elasticPolicy"] = request.elasticPolicy;
|
|
8221
|
+
}
|
|
8222
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
8223
|
+
headers: headers,
|
|
8224
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
8225
|
+
});
|
|
8226
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8227
|
+
action: "UpdateGatewayElasticPolicy",
|
|
8228
|
+
version: "2024-03-27",
|
|
8229
|
+
protocol: "HTTPS",
|
|
8230
|
+
pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
|
|
8231
|
+
method: "POST",
|
|
8232
|
+
authType: "AK",
|
|
8233
|
+
style: "ROA",
|
|
8234
|
+
reqBodyType: "json",
|
|
8235
|
+
bodyType: "json",
|
|
8236
|
+
});
|
|
8237
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayElasticPolicyResponse({}));
|
|
8238
|
+
}
|
|
8239
|
+
/**
|
|
8240
|
+
* 更新网关弹性策略
|
|
8241
|
+
*
|
|
8242
|
+
* @param request - UpdateGatewayElasticPolicyRequest
|
|
8243
|
+
* @returns UpdateGatewayElasticPolicyResponse
|
|
8244
|
+
*/
|
|
8245
|
+
async updateGatewayElasticPolicy(gatewayId, request) {
|
|
8246
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
8247
|
+
let headers = {};
|
|
8248
|
+
return await this.updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
|
|
8249
|
+
}
|
|
7880
8250
|
/**
|
|
7881
8251
|
* Updates the attribute parameters of a gateway.
|
|
7882
8252
|
*
|
|
@@ -7919,6 +8289,54 @@ class Client extends openapi_core_1.default {
|
|
|
7919
8289
|
let headers = {};
|
|
7920
8290
|
return await this.updateGatewayFeatureWithOptions(gatewayId, name, request, headers, runtime);
|
|
7921
8291
|
}
|
|
8292
|
+
/**
|
|
8293
|
+
* 更新网关负载均衡器
|
|
8294
|
+
*
|
|
8295
|
+
* @param request - UpdateGatewayLoadBalancerRequest
|
|
8296
|
+
* @param headers - map
|
|
8297
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8298
|
+
* @returns UpdateGatewayLoadBalancerResponse
|
|
8299
|
+
*/
|
|
8300
|
+
async updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime) {
|
|
8301
|
+
request.validate();
|
|
8302
|
+
let body = {};
|
|
8303
|
+
if (!$dara.isNull(request.loadBalancerDTO)) {
|
|
8304
|
+
body["loadBalancerDTO"] = request.loadBalancerDTO;
|
|
8305
|
+
}
|
|
8306
|
+
if (!$dara.isNull(request.option)) {
|
|
8307
|
+
body["option"] = request.option;
|
|
8308
|
+
}
|
|
8309
|
+
if (!$dara.isNull(request.ports)) {
|
|
8310
|
+
body["ports"] = request.ports;
|
|
8311
|
+
}
|
|
8312
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
8313
|
+
headers: headers,
|
|
8314
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
8315
|
+
});
|
|
8316
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8317
|
+
action: "UpdateGatewayLoadBalancer",
|
|
8318
|
+
version: "2024-03-27",
|
|
8319
|
+
protocol: "HTTPS",
|
|
8320
|
+
pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/update-load-balancer`,
|
|
8321
|
+
method: "POST",
|
|
8322
|
+
authType: "AK",
|
|
8323
|
+
style: "ROA",
|
|
8324
|
+
reqBodyType: "json",
|
|
8325
|
+
bodyType: "json",
|
|
8326
|
+
});
|
|
8327
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayLoadBalancerResponse({}));
|
|
8328
|
+
}
|
|
8329
|
+
/**
|
|
8330
|
+
* 更新网关负载均衡器
|
|
8331
|
+
*
|
|
8332
|
+
* @param request - UpdateGatewayLoadBalancerRequest
|
|
8333
|
+
* @returns UpdateGatewayLoadBalancerResponse
|
|
8334
|
+
*/
|
|
8335
|
+
async updateGatewayLoadBalancer(gatewayId, request) {
|
|
8336
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
8337
|
+
let headers = {};
|
|
8338
|
+
return await this.updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime);
|
|
8339
|
+
}
|
|
7922
8340
|
/**
|
|
7923
8341
|
* 修改网关运维时间
|
|
7924
8342
|
*
|
|
@@ -8009,17 +8427,17 @@ class Client extends openapi_core_1.default {
|
|
|
8009
8427
|
return await this.updateGatewayNameWithOptions(gatewayId, request, headers, runtime);
|
|
8010
8428
|
}
|
|
8011
8429
|
/**
|
|
8012
|
-
* Edits a quota
|
|
8430
|
+
* Edits a quota rate-limiting rule on a gateway.
|
|
8013
8431
|
*
|
|
8014
8432
|
* @remarks
|
|
8015
|
-
* Edits a quota rule on a gateway. This operation takes effect only
|
|
8433
|
+
* Edits a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19. Editing preserves the historical usage of consumers on the rule.
|
|
8016
8434
|
* > Recommended call logic:
|
|
8017
|
-
* > -
|
|
8435
|
+
* > - 1. Perform a dry run to check for rule conflicts.
|
|
8018
8436
|
* > - - Set dryRun to true.
|
|
8019
8437
|
* > - - The response contains a conflict preview with conflictHash.
|
|
8020
|
-
* > -
|
|
8021
|
-
* > - - No
|
|
8022
|
-
* > - -
|
|
8438
|
+
* > - 2. Submit the request after confirmation.
|
|
8439
|
+
* > - - No conflict: Set dryRun to false and overwrite to false.
|
|
8440
|
+
* > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
8023
8441
|
*
|
|
8024
8442
|
* @param request - UpdateGatewayQuotaRuleRequest
|
|
8025
8443
|
* @param headers - map
|
|
@@ -8071,17 +8489,17 @@ class Client extends openapi_core_1.default {
|
|
|
8071
8489
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayQuotaRuleResponse({}));
|
|
8072
8490
|
}
|
|
8073
8491
|
/**
|
|
8074
|
-
* Edits a quota
|
|
8492
|
+
* Edits a quota rate-limiting rule on a gateway.
|
|
8075
8493
|
*
|
|
8076
8494
|
* @remarks
|
|
8077
|
-
* Edits a quota rule on a gateway. This operation takes effect only
|
|
8495
|
+
* Edits a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19. Editing preserves the historical usage of consumers on the rule.
|
|
8078
8496
|
* > Recommended call logic:
|
|
8079
|
-
* > -
|
|
8497
|
+
* > - 1. Perform a dry run to check for rule conflicts.
|
|
8080
8498
|
* > - - Set dryRun to true.
|
|
8081
8499
|
* > - - The response contains a conflict preview with conflictHash.
|
|
8082
|
-
* > -
|
|
8083
|
-
* > - - No
|
|
8084
|
-
* > - -
|
|
8500
|
+
* > - 2. Submit the request after confirmation.
|
|
8501
|
+
* > - - No conflict: Set dryRun to false and overwrite to false.
|
|
8502
|
+
* > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
8085
8503
|
*
|
|
8086
8504
|
* @param request - UpdateGatewayQuotaRuleRequest
|
|
8087
8505
|
* @returns UpdateGatewayQuotaRuleResponse
|