@alicloud/apig20240327 9.3.0 → 10.0.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 +81 -60
- package/dist/client.js +107 -61
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +15 -12
- package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +6 -11
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/Backend.d.ts +5 -5
- package/dist/models/CreateAiModelProviderRequest.d.ts +9 -0
- package/dist/models/CreateAiModelProviderRequest.js.map +1 -1
- package/dist/models/CreateAiModelProviderResponseBody.d.ts +104 -0
- package/dist/models/CreateAiModelProviderResponseBody.js.map +1 -1
- package/dist/models/CreateConsumerAuthorizationRulesRequest.d.ts +9 -3
- package/dist/models/CreateConsumerAuthorizationRulesRequest.js.map +1 -1
- package/dist/models/CreateDomainRequest.d.ts +3 -6
- package/dist/models/CreateDomainRequest.js.map +1 -1
- package/dist/models/CreateHttpApiRequest.d.ts +19 -18
- package/dist/models/CreateHttpApiRequest.js.map +1 -1
- package/dist/models/CreateHttpApiResponseBody.d.ts +1 -1
- package/dist/models/CreateMcpServerRequest.d.ts +9 -9
- package/dist/models/CreatePluginClassRequest.d.ts +56 -0
- package/dist/models/CreatePluginClassRequest.js.map +1 -1
- package/dist/models/CreatePluginClassResponseBody.d.ts +28 -0
- package/dist/models/CreatePluginClassResponseBody.js.map +1 -1
- package/dist/models/CreatePolicyAttachmentRequest.d.ts +5 -5
- package/dist/models/CreatePolicyAttachmentResponseBody.d.ts +5 -5
- package/dist/models/CreatePolicyRequest.d.ts +33 -2
- package/dist/models/CreatePolicyRequest.js.map +1 -1
- package/dist/models/CreateSecretRequest.d.ts +3 -3
- package/dist/models/CreateServiceRequest.d.ts +9 -2
- package/dist/models/CreateServiceRequest.js.map +1 -1
- package/dist/models/CreateSourceRequest.d.ts +5 -5
- package/dist/models/DeleteGatewaySecurityGroupRuleRequest.d.ts +3 -1
- package/dist/models/DeleteGatewaySecurityGroupRuleRequest.js.map +1 -1
- package/dist/models/DeletePluginClassRequest.d.ts +13 -0
- package/dist/models/DeletePluginClassRequest.js +54 -0
- package/dist/models/DeletePluginClassRequest.js.map +1 -0
- package/dist/models/DeletePluginClassResponse.d.ts +19 -0
- package/dist/models/DeletePluginClassResponse.js +69 -0
- package/dist/models/DeletePluginClassResponse.js.map +1 -0
- package/dist/models/DeletePluginClassResponseBody.d.ts +31 -0
- package/dist/models/DeletePluginClassResponseBody.js +62 -0
- package/dist/models/DeletePluginClassResponseBody.js.map +1 -0
- package/dist/models/DeployHttpApiRequest.d.ts +3 -3
- package/dist/models/DomainInfo.d.ts +6 -4
- package/dist/models/DomainInfo.js +4 -0
- package/dist/models/DomainInfo.js.map +1 -1
- package/dist/models/GetConsumerResponseBody.d.ts +20 -4
- package/dist/models/GetConsumerResponseBody.js.map +1 -1
- package/dist/models/GetDomainResponseBody.d.ts +32 -5
- package/dist/models/GetDomainResponseBody.js +6 -0
- package/dist/models/GetDomainResponseBody.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleRequest.d.ts +2 -2
- package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +4 -4
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +2 -2
- package/dist/models/GetGatewayResponseBody.d.ts +89 -73
- package/dist/models/GetGatewayResponseBody.js.map +1 -1
- package/dist/models/GetPluginClassResponseBody.d.ts +70 -0
- package/dist/models/GetPluginClassResponseBody.js.map +1 -1
- package/dist/models/GetSourceResponseBody.d.ts +6 -0
- package/dist/models/GetSourceResponseBody.js.map +1 -1
- package/dist/models/GetTraceConfigRequest.d.ts +1 -2
- package/dist/models/GetTraceConfigRequest.js.map +1 -1
- package/dist/models/GetTraceConfigResponseBody.d.ts +2 -2
- package/dist/models/HiMarketAgentConfig.d.ts +3 -3
- package/dist/models/HiMarketDomain.d.ts +16 -4
- package/dist/models/HiMarketDomain.js.map +1 -1
- package/dist/models/HiMarketHmacConfig.d.ts +13 -4
- package/dist/models/HiMarketHmacConfig.js.map +1 -1
- package/dist/models/HiMarketHttpRoute.d.ts +75 -24
- package/dist/models/HiMarketHttpRoute.js.map +1 -1
- package/dist/models/HiMarketIcon.d.ts +8 -2
- package/dist/models/HiMarketIcon.js.map +1 -1
- package/dist/models/HiMarketIdentityMapping.d.ts +12 -3
- package/dist/models/HiMarketIdentityMapping.js.map +1 -1
- package/dist/models/HiMarketMcpConfig.d.ts +19 -7
- package/dist/models/HiMarketMcpConfig.js.map +1 -1
- package/dist/models/HiMarketModelConfig.d.ts +7 -4
- package/dist/models/HiMarketModelConfig.js.map +1 -1
- package/dist/models/HiMarketModelFeature.d.ts +28 -7
- package/dist/models/HiMarketModelFeature.js.map +1 -1
- package/dist/models/HiMarketOidcConfig.d.ts +71 -20
- package/dist/models/HiMarketOidcConfig.js.map +1 -1
- package/dist/models/HiMarketPortalDeployConfig.d.ts +45 -12
- package/dist/models/HiMarketPortalDeployConfig.js.map +1 -1
- package/dist/models/HiMarketPortalDomainConfig.d.ts +12 -3
- package/dist/models/HiMarketPortalDomainConfig.js.map +1 -1
- package/dist/models/HiMarketPortalSettingConfig.d.ts +12 -12
- package/dist/models/HiMarketProductFeature.d.ts +1 -1
- package/dist/models/HiMarketProductPublicationConifg.d.ts +4 -1
- package/dist/models/HiMarketProductPublicationConifg.js.map +1 -1
- package/dist/models/HiMarketProductPublicationDetail.d.ts +24 -6
- package/dist/models/HiMarketProductPublicationDetail.js.map +1 -1
- package/dist/models/HiMarketProductRefConfig.d.ts +33 -9
- package/dist/models/HiMarketProductRefConfig.js.map +1 -1
- package/dist/models/HttpApiDeployConfig.d.ts +6 -6
- package/dist/models/HttpApiVersionConfig.d.ts +4 -10
- package/dist/models/HttpApiVersionConfig.js.map +1 -1
- package/dist/models/ImportHttpApiRequest.d.ts +18 -10
- package/dist/models/ImportHttpApiRequest.js.map +1 -1
- package/dist/models/ImportHttpApiResponseBody.d.ts +51 -6
- package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
- package/dist/models/ListConsumerQuotaRulesResponseBody.d.ts +3 -3
- package/dist/models/ListExternalServicesRequest.d.ts +6 -6
- package/dist/models/ListGatewayQuotaRulesRequest.d.ts +2 -2
- package/dist/models/ListGatewayQuotaRulesResponseBody.d.ts +3 -3
- package/dist/models/ListGatewaysRequest.d.ts +1 -1
- package/dist/models/ListGatewaysResponseBody.d.ts +15 -15
- package/dist/models/ListGatewaysShrinkRequest.d.ts +1 -1
- package/dist/models/ListPoliciesRequest.d.ts +2 -1
- package/dist/models/ListPoliciesRequest.js.map +1 -1
- package/dist/models/ListSecretsResponseBody.d.ts +1 -1
- package/dist/models/ListTagResourcesRequest.d.ts +1 -1
- package/dist/models/ListTagResourcesResponseBody.d.ts +1 -1
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +1 -1
- package/dist/models/ListZonesRequest.d.ts +25 -0
- package/dist/models/ListZonesRequest.js +58 -0
- package/dist/models/ListZonesRequest.js.map +1 -0
- package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +6 -0
- package/dist/models/QueryConsumerAuthorizationRulesRequest.js.map +1 -1
- package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +11 -1
- package/dist/models/QueryConsumerAuthorizationRulesResponseBody.js.map +1 -1
- package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +11 -9
- package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +10 -5
- package/dist/models/ResetGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/Service.d.ts +18 -6
- package/dist/models/Service.js +4 -0
- package/dist/models/Service.js.map +1 -1
- package/dist/models/ServiceInfo.d.ts +124 -0
- package/dist/models/ServiceInfo.js.map +1 -1
- package/dist/models/TagResourcesRequest.d.ts +1 -1
- package/dist/models/UntagResourcesRequest.d.ts +1 -1
- package/dist/models/UntagResourcesShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateDomainRequest.d.ts +5 -5
- package/dist/models/UpdateDomainResponseBody.d.ts +1 -1
- package/dist/models/UpdateHttpApiRequest.d.ts +10 -10
- package/dist/models/UpdateMcpServerRequest.d.ts +1 -1
- package/dist/models/UpdateServiceRequest.d.ts +11 -4
- package/dist/models/UpdateServiceRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +14 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +110 -61
- package/src/models/AddGatewayQuotaRuleRequest.ts +15 -12
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +6 -11
- package/src/models/Backend.ts +5 -5
- package/src/models/CreateAiModelProviderRequest.ts +9 -0
- package/src/models/CreateAiModelProviderResponseBody.ts +104 -0
- package/src/models/CreateConsumerAuthorizationRulesRequest.ts +9 -3
- package/src/models/CreateDomainRequest.ts +3 -6
- package/src/models/CreateHttpApiRequest.ts +19 -18
- package/src/models/CreateHttpApiResponseBody.ts +1 -1
- package/src/models/CreateMcpServerRequest.ts +9 -9
- package/src/models/CreatePluginClassRequest.ts +56 -0
- package/src/models/CreatePluginClassResponseBody.ts +28 -0
- package/src/models/CreatePolicyAttachmentRequest.ts +5 -5
- package/src/models/CreatePolicyAttachmentResponseBody.ts +5 -5
- package/src/models/CreatePolicyRequest.ts +33 -2
- package/src/models/CreateSecretRequest.ts +3 -3
- package/src/models/CreateServiceRequest.ts +9 -2
- package/src/models/CreateSourceRequest.ts +5 -5
- package/src/models/DeleteGatewaySecurityGroupRuleRequest.ts +3 -1
- package/src/models/DeletePluginClassRequest.ts +24 -0
- package/src/models/DeletePluginClassResponse.ts +40 -0
- package/src/models/DeletePluginClassResponseBody.ts +48 -0
- package/src/models/DeployHttpApiRequest.ts +3 -3
- package/src/models/DomainInfo.ts +10 -4
- package/src/models/GetConsumerResponseBody.ts +20 -4
- package/src/models/GetDomainResponseBody.ts +38 -5
- package/src/models/GetGatewayQuotaRuleRequest.ts +2 -2
- package/src/models/GetGatewayQuotaRuleResponseBody.ts +4 -4
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +2 -2
- package/src/models/GetGatewayResponseBody.ts +89 -73
- package/src/models/GetPluginClassResponseBody.ts +70 -0
- package/src/models/GetSourceResponseBody.ts +6 -0
- package/src/models/GetTraceConfigRequest.ts +1 -2
- package/src/models/GetTraceConfigResponseBody.ts +2 -2
- package/src/models/HiMarketAgentConfig.ts +3 -3
- package/src/models/HiMarketDomain.ts +16 -4
- package/src/models/HiMarketHmacConfig.ts +13 -4
- package/src/models/HiMarketHttpRoute.ts +75 -24
- package/src/models/HiMarketIcon.ts +8 -2
- package/src/models/HiMarketIdentityMapping.ts +12 -3
- package/src/models/HiMarketMcpConfig.ts +19 -7
- package/src/models/HiMarketModelConfig.ts +7 -4
- package/src/models/HiMarketModelFeature.ts +28 -7
- package/src/models/HiMarketOidcConfig.ts +71 -20
- package/src/models/HiMarketPortalDeployConfig.ts +45 -12
- package/src/models/HiMarketPortalDomainConfig.ts +12 -3
- package/src/models/HiMarketPortalSettingConfig.ts +12 -12
- package/src/models/HiMarketProductFeature.ts +1 -1
- package/src/models/HiMarketProductPublicationConifg.ts +4 -1
- package/src/models/HiMarketProductPublicationDetail.ts +24 -6
- package/src/models/HiMarketProductRefConfig.ts +33 -9
- package/src/models/HttpApiDeployConfig.ts +6 -6
- package/src/models/HttpApiVersionConfig.ts +4 -10
- package/src/models/ImportHttpApiRequest.ts +18 -10
- package/src/models/ImportHttpApiResponseBody.ts +51 -6
- package/src/models/ListConsumerQuotaRulesResponseBody.ts +3 -3
- package/src/models/ListExternalServicesRequest.ts +6 -6
- package/src/models/ListGatewayQuotaRulesRequest.ts +2 -2
- package/src/models/ListGatewayQuotaRulesResponseBody.ts +3 -3
- package/src/models/ListGatewaysRequest.ts +1 -1
- package/src/models/ListGatewaysResponseBody.ts +15 -15
- package/src/models/ListGatewaysShrinkRequest.ts +1 -1
- package/src/models/ListPoliciesRequest.ts +2 -1
- package/src/models/ListSecretsResponseBody.ts +1 -1
- package/src/models/ListTagResourcesRequest.ts +1 -1
- package/src/models/ListTagResourcesResponseBody.ts +1 -1
- package/src/models/ListTagResourcesShrinkRequest.ts +1 -1
- package/src/models/ListZonesRequest.ts +38 -0
- package/src/models/QueryConsumerAuthorizationRulesRequest.ts +6 -0
- package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +11 -1
- package/src/models/ResetGatewayQuotaRuleRequest.ts +11 -9
- package/src/models/ResetGatewayQuotaRuleResponseBody.ts +10 -5
- package/src/models/Service.ts +22 -6
- package/src/models/ServiceInfo.ts +124 -0
- package/src/models/TagResourcesRequest.ts +1 -1
- package/src/models/UntagResourcesRequest.ts +1 -1
- package/src/models/UntagResourcesShrinkRequest.ts +1 -1
- package/src/models/UpdateDomainRequest.ts +5 -5
- package/src/models/UpdateDomainResponseBody.ts +1 -1
- package/src/models/UpdateHttpApiRequest.ts +10 -10
- package/src/models/UpdateMcpServerRequest.ts +1 -1
- package/src/models/UpdateServiceRequest.ts +11 -4
- package/src/models/model.ts +4 -0
package/dist/client.js
CHANGED
|
@@ -92,15 +92,15 @@ class Client extends openapi_core_1.default {
|
|
|
92
92
|
* Creates a gateway quota throttling rule.
|
|
93
93
|
*
|
|
94
94
|
* @remarks
|
|
95
|
-
*
|
|
95
|
+
* Creates a consumer-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
|
|
96
96
|
* >
|
|
97
|
-
* > Recommended call
|
|
98
|
-
* > - 1
|
|
99
|
-
* > - - Set dryRun
|
|
100
|
-
* > - - The response contains a conflict preview with conflictHash.
|
|
101
|
-
* > - 2
|
|
102
|
-
* > - - No
|
|
103
|
-
* > - -
|
|
97
|
+
* > Recommended call sequence:
|
|
98
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
99
|
+
* > - - Set dryRun to true.
|
|
100
|
+
* > - - The response contains a conflict preview with a conflictHash value.
|
|
101
|
+
* > - Step 2: Submit the request after confirmation.
|
|
102
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
103
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
104
104
|
*
|
|
105
105
|
* @param request - AddGatewayQuotaRuleRequest
|
|
106
106
|
* @param headers - map
|
|
@@ -167,15 +167,15 @@ class Client extends openapi_core_1.default {
|
|
|
167
167
|
* Creates a gateway quota throttling rule.
|
|
168
168
|
*
|
|
169
169
|
* @remarks
|
|
170
|
-
*
|
|
170
|
+
* Creates a consumer-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
|
|
171
171
|
* >
|
|
172
|
-
* > Recommended call
|
|
173
|
-
* > - 1
|
|
174
|
-
* > - - Set dryRun
|
|
175
|
-
* > - - The response contains a conflict preview with conflictHash.
|
|
176
|
-
* > - 2
|
|
177
|
-
* > - - No
|
|
178
|
-
* > - -
|
|
172
|
+
* > Recommended call sequence:
|
|
173
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
174
|
+
* > - - Set dryRun to true.
|
|
175
|
+
* > - - The response contains a conflict preview with a conflictHash value.
|
|
176
|
+
* > - Step 2: Submit the request after confirmation.
|
|
177
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
178
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
179
179
|
*
|
|
180
180
|
* @param request - AddGatewayQuotaRuleRequest
|
|
181
181
|
* @returns AddGatewayQuotaRuleResponse
|
|
@@ -186,7 +186,7 @@ class Client extends openapi_core_1.default {
|
|
|
186
186
|
return await this.addGatewayQuotaRuleWithOptions(gatewayId, request, headers, runtime);
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
|
-
* Authorizes a security group
|
|
189
|
+
* Authorizes a security group that allows a gateway to access services.
|
|
190
190
|
*
|
|
191
191
|
* @param request - AddGatewaySecurityGroupRuleRequest
|
|
192
192
|
* @param headers - map
|
|
@@ -223,7 +223,7 @@ class Client extends openapi_core_1.default {
|
|
|
223
223
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddGatewaySecurityGroupRuleResponse({}));
|
|
224
224
|
}
|
|
225
225
|
/**
|
|
226
|
-
* Authorizes a security group
|
|
226
|
+
* Authorizes a security group that allows a gateway to access services.
|
|
227
227
|
*
|
|
228
228
|
* @param request - AddGatewaySecurityGroupRuleRequest
|
|
229
229
|
* @returns AddGatewaySecurityGroupRuleResponse
|
|
@@ -276,7 +276,7 @@ class Client extends openapi_core_1.default {
|
|
|
276
276
|
return await this.batchDeleteConsumerAuthorizationRuleWithOptions(request, headers, runtime);
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
|
-
*
|
|
279
|
+
* Moves a resource to a different resource group.
|
|
280
280
|
*
|
|
281
281
|
* @param request - ChangeResourceGroupRequest
|
|
282
282
|
* @param headers - map
|
|
@@ -316,7 +316,7 @@ class Client extends openapi_core_1.default {
|
|
|
316
316
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ChangeResourceGroupResponse({}));
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
319
|
-
*
|
|
319
|
+
* Moves a resource to a different resource group.
|
|
320
320
|
*
|
|
321
321
|
* @param request - ChangeResourceGroupRequest
|
|
322
322
|
* @returns ChangeResourceGroupResponse
|
|
@@ -1274,7 +1274,7 @@ class Client extends openapi_core_1.default {
|
|
|
1274
1274
|
return await this.createPolicyWithOptions(request, headers, runtime);
|
|
1275
1275
|
}
|
|
1276
1276
|
/**
|
|
1277
|
-
* Creates a policy attachment.
|
|
1277
|
+
* Creates a policy attachment to a resource.
|
|
1278
1278
|
*
|
|
1279
1279
|
* @param request - CreatePolicyAttachmentRequest
|
|
1280
1280
|
* @param headers - map
|
|
@@ -1317,7 +1317,7 @@ class Client extends openapi_core_1.default {
|
|
|
1317
1317
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePolicyAttachmentResponse({}));
|
|
1318
1318
|
}
|
|
1319
1319
|
/**
|
|
1320
|
-
* Creates a policy attachment.
|
|
1320
|
+
* Creates a policy attachment to a resource.
|
|
1321
1321
|
*
|
|
1322
1322
|
* @param request - CreatePolicyAttachmentRequest
|
|
1323
1323
|
* @returns CreatePolicyAttachmentResponse
|
|
@@ -1719,7 +1719,7 @@ class Client extends openapi_core_1.default {
|
|
|
1719
1719
|
* Deletes a quota throttling rule from a gateway.
|
|
1720
1720
|
*
|
|
1721
1721
|
* @remarks
|
|
1722
|
-
* Deletes a consumer-based quota rule from an AI gateway. This operation
|
|
1722
|
+
* Deletes a consumer-based quota rule from an AI gateway. This operation takes effect only for AI gateways of version 2.1.19 or later.
|
|
1723
1723
|
*
|
|
1724
1724
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
1725
1725
|
* @param headers - map
|
|
@@ -1748,7 +1748,7 @@ class Client extends openapi_core_1.default {
|
|
|
1748
1748
|
* Deletes a quota throttling rule from a gateway.
|
|
1749
1749
|
*
|
|
1750
1750
|
* @remarks
|
|
1751
|
-
* Deletes a consumer-based quota rule from an AI gateway. This operation
|
|
1751
|
+
* Deletes a consumer-based quota rule from an AI gateway. This operation takes effect only for AI gateways of version 2.1.19 or later.
|
|
1752
1752
|
*
|
|
1753
1753
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
1754
1754
|
* @returns DeleteGatewayQuotaRuleResponse
|
|
@@ -1759,7 +1759,7 @@ class Client extends openapi_core_1.default {
|
|
|
1759
1759
|
return await this.deleteGatewayQuotaRuleWithOptions(gatewayId, ruleId, request, headers, runtime);
|
|
1760
1760
|
}
|
|
1761
1761
|
/**
|
|
1762
|
-
* Deletes a
|
|
1762
|
+
* Deletes a security group rule from a gateway.
|
|
1763
1763
|
*
|
|
1764
1764
|
* @param request - DeleteGatewaySecurityGroupRuleRequest
|
|
1765
1765
|
* @param headers - map
|
|
@@ -1790,7 +1790,7 @@ class Client extends openapi_core_1.default {
|
|
|
1790
1790
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteGatewaySecurityGroupRuleResponse({}));
|
|
1791
1791
|
}
|
|
1792
1792
|
/**
|
|
1793
|
-
* Deletes a
|
|
1793
|
+
* Deletes a security group rule from a gateway.
|
|
1794
1794
|
*
|
|
1795
1795
|
* @param request - DeleteGatewaySecurityGroupRuleRequest
|
|
1796
1796
|
* @returns DeleteGatewaySecurityGroupRuleResponse
|
|
@@ -1965,6 +1965,43 @@ class Client extends openapi_core_1.default {
|
|
|
1965
1965
|
let headers = {};
|
|
1966
1966
|
return await this.deletePluginAttachmentWithOptions(pluginAttachmentId, headers, runtime);
|
|
1967
1967
|
}
|
|
1968
|
+
/**
|
|
1969
|
+
* DeletePluginClass
|
|
1970
|
+
*
|
|
1971
|
+
* @param request - DeletePluginClassRequest
|
|
1972
|
+
* @param headers - map
|
|
1973
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1974
|
+
* @returns DeletePluginClassResponse
|
|
1975
|
+
*/
|
|
1976
|
+
async deletePluginClassWithOptions(pluginClassId, request, headers, runtime) {
|
|
1977
|
+
request.validate();
|
|
1978
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1979
|
+
headers: headers,
|
|
1980
|
+
});
|
|
1981
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1982
|
+
action: "DeletePluginClass",
|
|
1983
|
+
version: "2024-03-27",
|
|
1984
|
+
protocol: "HTTPS",
|
|
1985
|
+
pathname: `/v1/plugin-classes/${$dara.URL.percentEncode(pluginClassId)}`,
|
|
1986
|
+
method: "DELETE",
|
|
1987
|
+
authType: "AK",
|
|
1988
|
+
style: "ROA",
|
|
1989
|
+
reqBodyType: "json",
|
|
1990
|
+
bodyType: "json",
|
|
1991
|
+
});
|
|
1992
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePluginClassResponse({}));
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* DeletePluginClass
|
|
1996
|
+
*
|
|
1997
|
+
* @param request - DeletePluginClassRequest
|
|
1998
|
+
* @returns DeletePluginClassResponse
|
|
1999
|
+
*/
|
|
2000
|
+
async deletePluginClass(pluginClassId, request) {
|
|
2001
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2002
|
+
let headers = {};
|
|
2003
|
+
return await this.deletePluginClassWithOptions(pluginClassId, request, headers, runtime);
|
|
2004
|
+
}
|
|
1968
2005
|
/**
|
|
1969
2006
|
* Deletes a policy.
|
|
1970
2007
|
*
|
|
@@ -2570,7 +2607,7 @@ class Client extends openapi_core_1.default {
|
|
|
2570
2607
|
return await this.getEnvironmentWithOptions(environmentId, request, headers, runtime);
|
|
2571
2608
|
}
|
|
2572
2609
|
/**
|
|
2573
|
-
*
|
|
2610
|
+
* Retrieves basic information about a gateway, including the associated VPC, vSwitch, and gateway ingress.
|
|
2574
2611
|
*
|
|
2575
2612
|
* @param headers - map
|
|
2576
2613
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2594,7 +2631,7 @@ class Client extends openapi_core_1.default {
|
|
|
2594
2631
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayResponse({}));
|
|
2595
2632
|
}
|
|
2596
2633
|
/**
|
|
2597
|
-
*
|
|
2634
|
+
* Retrieves basic information about a gateway, including the associated VPC, vSwitch, and gateway ingress.
|
|
2598
2635
|
* @returns GetGatewayResponse
|
|
2599
2636
|
*/
|
|
2600
2637
|
async getGateway(gatewayId) {
|
|
@@ -2606,7 +2643,7 @@ class Client extends openapi_core_1.default {
|
|
|
2606
2643
|
* Queries the details of a gateway quota rate limiting rule.
|
|
2607
2644
|
*
|
|
2608
2645
|
* @remarks
|
|
2609
|
-
*
|
|
2646
|
+
* Queries the details of a consumer quota rule on an AI gateway.
|
|
2610
2647
|
*
|
|
2611
2648
|
* @param request - GetGatewayQuotaRuleRequest
|
|
2612
2649
|
* @param headers - map
|
|
@@ -2646,7 +2683,7 @@ class Client extends openapi_core_1.default {
|
|
|
2646
2683
|
* Queries the details of a gateway quota rate limiting rule.
|
|
2647
2684
|
*
|
|
2648
2685
|
* @remarks
|
|
2649
|
-
*
|
|
2686
|
+
* Queries the details of a consumer quota rule on an AI gateway.
|
|
2650
2687
|
*
|
|
2651
2688
|
* @param request - GetGatewayQuotaRuleRequest
|
|
2652
2689
|
* @returns GetGatewayQuotaRuleResponse
|
|
@@ -2657,7 +2694,7 @@ class Client extends openapi_core_1.default {
|
|
|
2657
2694
|
return await this.getGatewayQuotaRuleWithOptions(gatewayId, ruleId, request, headers, runtime);
|
|
2658
2695
|
}
|
|
2659
2696
|
/**
|
|
2660
|
-
* Queries the usage details of a subject under a gateway quota
|
|
2697
|
+
* 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.
|
|
2661
2698
|
*
|
|
2662
2699
|
* @remarks
|
|
2663
2700
|
* Retrieves the usage details of a specific consumer under a quota rule. This operation takes effect only for AI gateways with a version later than 2.1.19.
|
|
@@ -2694,7 +2731,7 @@ class Client extends openapi_core_1.default {
|
|
|
2694
2731
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayQuotaRuleSubjectUsageResponse({}));
|
|
2695
2732
|
}
|
|
2696
2733
|
/**
|
|
2697
|
-
* Queries the usage details of a subject under a gateway quota
|
|
2734
|
+
* 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.
|
|
2698
2735
|
*
|
|
2699
2736
|
* @remarks
|
|
2700
2737
|
* Retrieves the usage details of a specific consumer under a quota rule. This operation takes effect only for AI gateways with a version later than 2.1.19.
|
|
@@ -2879,7 +2916,7 @@ class Client extends openapi_core_1.default {
|
|
|
2879
2916
|
return await this.getPluginAttachmentWithOptions(pluginAttachmentId, headers, runtime);
|
|
2880
2917
|
}
|
|
2881
2918
|
/**
|
|
2882
|
-
* Retrieves a custom
|
|
2919
|
+
* Retrieves a custom plug-in class.
|
|
2883
2920
|
*
|
|
2884
2921
|
* @param request - GetPluginClassRequest
|
|
2885
2922
|
* @param headers - map
|
|
@@ -2905,7 +2942,7 @@ class Client extends openapi_core_1.default {
|
|
|
2905
2942
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPluginClassResponse({}));
|
|
2906
2943
|
}
|
|
2907
2944
|
/**
|
|
2908
|
-
* Retrieves a custom
|
|
2945
|
+
* Retrieves a custom plug-in class.
|
|
2909
2946
|
*
|
|
2910
2947
|
* @param request - GetPluginClassRequest
|
|
2911
2948
|
* @returns GetPluginClassResponse
|
|
@@ -3210,7 +3247,7 @@ class Client extends openapi_core_1.default {
|
|
|
3210
3247
|
return await this.getTraceConfigWithOptions(gatewayId, request, headers, runtime);
|
|
3211
3248
|
}
|
|
3212
3249
|
/**
|
|
3213
|
-
* Imports an HTTP API.
|
|
3250
|
+
* Imports an HTTP API. This operation supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
|
|
3214
3251
|
*
|
|
3215
3252
|
* @param request - ImportHttpApiRequest
|
|
3216
3253
|
* @param headers - map
|
|
@@ -3280,7 +3317,7 @@ class Client extends openapi_core_1.default {
|
|
|
3280
3317
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImportHttpApiResponse({}));
|
|
3281
3318
|
}
|
|
3282
3319
|
/**
|
|
3283
|
-
* Imports an HTTP API.
|
|
3320
|
+
* Imports an HTTP API. This operation supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
|
|
3284
3321
|
*
|
|
3285
3322
|
* @param request - ImportHttpApiRequest
|
|
3286
3323
|
* @returns ImportHttpApiResponse
|
|
@@ -3707,10 +3744,10 @@ class Client extends openapi_core_1.default {
|
|
|
3707
3744
|
return await this.listGatewayFeaturesWithOptions(gatewayId, headers, runtime);
|
|
3708
3745
|
}
|
|
3709
3746
|
/**
|
|
3710
|
-
* Queries the list of
|
|
3747
|
+
* Queries the list of consumer quota rules bound to a gateway.
|
|
3711
3748
|
*
|
|
3712
3749
|
* @remarks
|
|
3713
|
-
* Queries the list of
|
|
3750
|
+
* Queries the list of consumer quota rules bound to a gateway.
|
|
3714
3751
|
*
|
|
3715
3752
|
* @param request - ListGatewayQuotaRulesRequest
|
|
3716
3753
|
* @param headers - map
|
|
@@ -3753,10 +3790,10 @@ class Client extends openapi_core_1.default {
|
|
|
3753
3790
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
|
|
3754
3791
|
}
|
|
3755
3792
|
/**
|
|
3756
|
-
* Queries the list of
|
|
3793
|
+
* Queries the list of consumer quota rules bound to a gateway.
|
|
3757
3794
|
*
|
|
3758
3795
|
* @remarks
|
|
3759
|
-
* Queries the list of
|
|
3796
|
+
* Queries the list of consumer quota rules bound to a gateway.
|
|
3760
3797
|
*
|
|
3761
3798
|
* @param request - ListGatewayQuotaRulesRequest
|
|
3762
3799
|
* @returns ListGatewayQuotaRulesResponse
|
|
@@ -4761,15 +4798,22 @@ class Client extends openapi_core_1.default {
|
|
|
4761
4798
|
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
4762
4799
|
}
|
|
4763
4800
|
/**
|
|
4764
|
-
* Retrieves the zones available for a cloud-native API gateway in a
|
|
4801
|
+
* Retrieves the zones available for a cloud-native API gateway in a specific region.
|
|
4765
4802
|
*
|
|
4803
|
+
* @param request - ListZonesRequest
|
|
4766
4804
|
* @param headers - map
|
|
4767
4805
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4768
4806
|
* @returns ListZonesResponse
|
|
4769
4807
|
*/
|
|
4770
|
-
async listZonesWithOptions(headers, runtime) {
|
|
4808
|
+
async listZonesWithOptions(request, headers, runtime) {
|
|
4809
|
+
request.validate();
|
|
4810
|
+
let query = {};
|
|
4811
|
+
if (!$dara.isNull(request.gatewayEdition)) {
|
|
4812
|
+
query["gatewayEdition"] = request.gatewayEdition;
|
|
4813
|
+
}
|
|
4771
4814
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4772
4815
|
headers: headers,
|
|
4816
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4773
4817
|
});
|
|
4774
4818
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4775
4819
|
action: "ListZones",
|
|
@@ -4785,16 +4829,18 @@ class Client extends openapi_core_1.default {
|
|
|
4785
4829
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListZonesResponse({}));
|
|
4786
4830
|
}
|
|
4787
4831
|
/**
|
|
4788
|
-
* Retrieves the zones available for a cloud-native API gateway in a
|
|
4832
|
+
* Retrieves the zones available for a cloud-native API gateway in a specific region.
|
|
4833
|
+
*
|
|
4834
|
+
* @param request - ListZonesRequest
|
|
4789
4835
|
* @returns ListZonesResponse
|
|
4790
4836
|
*/
|
|
4791
|
-
async listZones() {
|
|
4837
|
+
async listZones(request) {
|
|
4792
4838
|
let runtime = new $dara.RuntimeOptions({});
|
|
4793
4839
|
let headers = {};
|
|
4794
|
-
return await this.listZonesWithOptions(headers, runtime);
|
|
4840
|
+
return await this.listZonesWithOptions(request, headers, runtime);
|
|
4795
4841
|
}
|
|
4796
4842
|
/**
|
|
4797
|
-
* Queries
|
|
4843
|
+
* Queries the list of consumer authorization rules.
|
|
4798
4844
|
*
|
|
4799
4845
|
* @param request - QueryConsumerAuthorizationRulesRequest
|
|
4800
4846
|
* @param headers - map
|
|
@@ -4861,7 +4907,7 @@ class Client extends openapi_core_1.default {
|
|
|
4861
4907
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryConsumerAuthorizationRulesResponse({}));
|
|
4862
4908
|
}
|
|
4863
4909
|
/**
|
|
4864
|
-
* Queries
|
|
4910
|
+
* Queries the list of consumer authorization rules.
|
|
4865
4911
|
*
|
|
4866
4912
|
* @param request - QueryConsumerAuthorizationRulesRequest
|
|
4867
4913
|
* @returns QueryConsumerAuthorizationRulesResponse
|
|
@@ -4905,18 +4951,18 @@ class Client extends openapi_core_1.default {
|
|
|
4905
4951
|
return await this.removeConsumerAuthorizationRuleWithOptions(consumerAuthorizationRuleId, headers, runtime);
|
|
4906
4952
|
}
|
|
4907
4953
|
/**
|
|
4908
|
-
* Resets a quota
|
|
4954
|
+
* Resets a quota throttling rule on a gateway.
|
|
4909
4955
|
*
|
|
4910
4956
|
* @remarks
|
|
4911
|
-
* Resets a quota
|
|
4957
|
+
* Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways running version 2.1.19 or later. Resetting a rule clears the historical usage of consumers associated with the rule.
|
|
4912
4958
|
* >
|
|
4913
|
-
* > Recommended call
|
|
4959
|
+
* > Recommended call sequence:
|
|
4914
4960
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
4915
|
-
* > - - Set dryRun
|
|
4961
|
+
* > - - Set dryRun to true.
|
|
4916
4962
|
* > - - The response contains a conflict preview with conflictHash.
|
|
4917
4963
|
* > - 2. Submit the request after confirmation.
|
|
4918
|
-
* > - - No
|
|
4919
|
-
* > - -
|
|
4964
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
4965
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
4920
4966
|
*
|
|
4921
4967
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
4922
4968
|
* @param headers - map
|
|
@@ -4968,18 +5014,18 @@ class Client extends openapi_core_1.default {
|
|
|
4968
5014
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResetGatewayQuotaRuleResponse({}));
|
|
4969
5015
|
}
|
|
4970
5016
|
/**
|
|
4971
|
-
* Resets a quota
|
|
5017
|
+
* Resets a quota throttling rule on a gateway.
|
|
4972
5018
|
*
|
|
4973
5019
|
* @remarks
|
|
4974
|
-
* Resets a quota
|
|
5020
|
+
* Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways running version 2.1.19 or later. Resetting a rule clears the historical usage of consumers associated with the rule.
|
|
4975
5021
|
* >
|
|
4976
|
-
* > Recommended call
|
|
5022
|
+
* > Recommended call sequence:
|
|
4977
5023
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
4978
|
-
* > - - Set dryRun
|
|
5024
|
+
* > - - Set dryRun to true.
|
|
4979
5025
|
* > - - The response contains a conflict preview with conflictHash.
|
|
4980
5026
|
* > - 2. Submit the request after confirmation.
|
|
4981
|
-
* > - - No
|
|
4982
|
-
* > - -
|
|
5027
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
5028
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
4983
5029
|
*
|
|
4984
5030
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
4985
5031
|
* @returns ResetGatewayQuotaRuleResponse
|
|
@@ -5997,7 +6043,7 @@ class Client extends openapi_core_1.default {
|
|
|
5997
6043
|
* Updates an MCP server.
|
|
5998
6044
|
*
|
|
5999
6045
|
* @remarks
|
|
6000
|
-
* Only sources of the **Container Service** type
|
|
6046
|
+
* Only sources of the **Container Service** type can update the Ingress listener configuration.
|
|
6001
6047
|
*
|
|
6002
6048
|
* @param request - UpdateMcpServerRequest
|
|
6003
6049
|
* @param headers - map
|
|
@@ -6064,7 +6110,7 @@ class Client extends openapi_core_1.default {
|
|
|
6064
6110
|
* Updates an MCP server.
|
|
6065
6111
|
*
|
|
6066
6112
|
* @remarks
|
|
6067
|
-
* Only sources of the **Container Service** type
|
|
6113
|
+
* Only sources of the **Container Service** type can update the Ingress listener configuration.
|
|
6068
6114
|
*
|
|
6069
6115
|
* @param request - UpdateMcpServerRequest
|
|
6070
6116
|
* @returns UpdateMcpServerResponse
|