@alicloud/apig20240327 11.6.0 → 11.7.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 +54 -30
- package/dist/client.js +83 -30
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +13 -15
- package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +10 -7
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/CreateHttpApiOperationRequest.d.ts +1 -1
- package/dist/models/CreateHttpApiOperationResponseBody.d.ts +3 -3
- package/dist/models/CreateHttpApiRequest.d.ts +16 -32
- package/dist/models/CreateHttpApiRequest.js.map +1 -1
- package/dist/models/CreateHttpApiResponseBody.d.ts +1 -1
- package/dist/models/CreateHttpApiRouteRequest.d.ts +33 -8
- package/dist/models/CreateHttpApiRouteRequest.js +25 -1
- package/dist/models/CreateHttpApiRouteRequest.js.map +1 -1
- package/dist/models/GetConsumerAuthorizationRuleResponseBody.d.ts +2 -2
- package/dist/models/GetGatewayDfpExtProcServiceRequest.d.ts +13 -0
- package/dist/models/GetGatewayDfpExtProcServiceRequest.js +54 -0
- package/dist/models/GetGatewayDfpExtProcServiceRequest.js.map +1 -0
- package/dist/models/GetGatewayDfpExtProcServiceResponse.d.ts +19 -0
- package/dist/models/GetGatewayDfpExtProcServiceResponse.js +69 -0
- package/dist/models/GetGatewayDfpExtProcServiceResponse.js.map +1 -0
- package/dist/models/GetGatewayDfpExtProcServiceResponseBody.d.ts +81 -0
- package/dist/models/GetGatewayDfpExtProcServiceResponseBody.js +90 -0
- package/dist/models/GetGatewayDfpExtProcServiceResponseBody.js.map +1 -0
- package/dist/models/GetHttpApiOperationResponseBody.d.ts +1 -1
- package/dist/models/GetHttpApiRequest.d.ts +1 -1
- package/dist/models/GetPluginAttachmentResponseBody.d.ts +2 -2
- package/dist/models/HttpApiDeployConfig.d.ts +44 -19
- package/dist/models/HttpApiDeployConfig.js +25 -1
- package/dist/models/HttpApiDeployConfig.js.map +1 -1
- package/dist/models/HttpRoute.d.ts +30 -5
- package/dist/models/HttpRoute.js +25 -1
- package/dist/models/HttpRoute.js.map +1 -1
- package/dist/models/ImportHttpApiRequest.d.ts +12 -12
- package/dist/models/ImportHttpApiResponseBody.d.ts +12 -12
- package/dist/models/ListConsumerAuthorizationRulesRequest.d.ts +1 -1
- package/dist/models/ListConsumerAuthorizationRulesResponseBody.d.ts +6 -6
- package/dist/models/ListHttpApiOperationsRequest.d.ts +8 -8
- package/dist/models/ListHttpApiOperationsResponseBody.d.ts +2 -2
- package/dist/models/ListHttpApiRoutesRequest.d.ts +11 -11
- package/dist/models/ListHttpApiRoutesResponseBody.d.ts +1 -1
- package/dist/models/ListHttpApisRequest.d.ts +6 -6
- package/dist/models/ListHttpApisResponseBody.d.ts +3 -3
- package/dist/models/ListPluginAttachmentsRequest.d.ts +3 -3
- package/dist/models/ListPluginAttachmentsResponseBody.d.ts +1 -1
- package/dist/models/ListServicesRequest.d.ts +1 -1
- package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +5 -5
- package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +5 -5
- package/dist/models/RevealServiceCredentialResponseBody.d.ts +6 -6
- package/dist/models/Service.d.ts +41 -14
- package/dist/models/Service.js +27 -1
- package/dist/models/Service.js.map +1 -1
- package/dist/models/UpdateHttpApiOperationRequest.d.ts +1 -1
- package/dist/models/UpdateHttpApiRequest.d.ts +9 -9
- package/dist/models/UpdateHttpApiRouteRequest.d.ts +32 -7
- package/dist/models/UpdateHttpApiRouteRequest.js +25 -1
- package/dist/models/UpdateHttpApiRouteRequest.js.map +1 -1
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +67 -49
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +87 -30
- package/src/models/AddGatewayQuotaRuleRequest.ts +13 -15
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +10 -7
- package/src/models/CreateHttpApiOperationRequest.ts +1 -1
- package/src/models/CreateHttpApiOperationResponseBody.ts +3 -3
- package/src/models/CreateHttpApiRequest.ts +16 -32
- package/src/models/CreateHttpApiResponseBody.ts +1 -1
- package/src/models/CreateHttpApiRouteRequest.ts +48 -8
- package/src/models/GetConsumerAuthorizationRuleResponseBody.ts +2 -2
- package/src/models/GetGatewayDfpExtProcServiceRequest.ts +24 -0
- package/src/models/GetGatewayDfpExtProcServiceResponse.ts +40 -0
- package/src/models/GetGatewayDfpExtProcServiceResponseBody.ts +117 -0
- package/src/models/GetHttpApiOperationResponseBody.ts +1 -1
- package/src/models/GetHttpApiRequest.ts +1 -1
- package/src/models/GetPluginAttachmentResponseBody.ts +2 -2
- package/src/models/HttpApiDeployConfig.ts +59 -19
- package/src/models/HttpRoute.ts +45 -5
- package/src/models/ImportHttpApiRequest.ts +12 -12
- package/src/models/ImportHttpApiResponseBody.ts +12 -12
- package/src/models/ListConsumerAuthorizationRulesRequest.ts +1 -1
- package/src/models/ListConsumerAuthorizationRulesResponseBody.ts +6 -6
- package/src/models/ListHttpApiOperationsRequest.ts +8 -8
- package/src/models/ListHttpApiOperationsResponseBody.ts +2 -2
- package/src/models/ListHttpApiRoutesRequest.ts +11 -11
- package/src/models/ListHttpApiRoutesResponseBody.ts +1 -1
- package/src/models/ListHttpApisRequest.ts +6 -6
- package/src/models/ListHttpApisResponseBody.ts +3 -3
- package/src/models/ListPluginAttachmentsRequest.ts +3 -3
- package/src/models/ListPluginAttachmentsResponseBody.ts +1 -1
- package/src/models/ListServicesRequest.ts +1 -1
- package/src/models/QueryConsumerAuthorizationRulesRequest.ts +5 -5
- package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +5 -5
- package/src/models/RevealServiceCredentialResponseBody.ts +6 -6
- package/src/models/Service.ts +58 -14
- package/src/models/UpdateHttpApiOperationRequest.ts +1 -1
- package/src/models/UpdateHttpApiRequest.ts +9 -9
- package/src/models/UpdateHttpApiRouteRequest.ts +47 -7
- package/src/models/model.ts +9 -0
package/dist/client.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ export default class Client extends OpenApi {
|
|
|
12
12
|
* Creates a gateway quota throttling rule.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* This operation adds a quota rule based on consumers or consumer groups
|
|
15
|
+
* This operation adds a quota rule based on consumers or consumer groups for an AI gateway. Note that this operation takes effect only for AI gateways of a version later than 2.1.21.
|
|
16
16
|
* >
|
|
17
|
-
* >
|
|
17
|
+
* > Recommended call logic:
|
|
18
18
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
19
19
|
* > - - Set dryRun=true.
|
|
20
|
-
* > - - The response returns a conflict preview containing
|
|
20
|
+
* > - - The response returns a conflict preview containing conflictHash.
|
|
21
21
|
* > - 2. Formally submit the request after confirmation.
|
|
22
|
-
* > - - If no
|
|
23
|
-
* > - - If
|
|
22
|
+
* > - - If no conflict exists: Set dryRun=false and overwrite=false.
|
|
23
|
+
* > - - If a conflict exists and you confirm to overwrite: Set dryRun=false, overwrite=true, and conflictHash=<value returned in the previous step>.
|
|
24
24
|
*
|
|
25
25
|
* @param request - AddGatewayQuotaRuleRequest
|
|
26
26
|
* @param headers - map
|
|
@@ -34,15 +34,15 @@ export default class Client extends OpenApi {
|
|
|
34
34
|
* Creates a gateway quota throttling rule.
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* This operation adds a quota rule based on consumers or consumer groups
|
|
37
|
+
* This operation adds a quota rule based on consumers or consumer groups for an AI gateway. Note that this operation takes effect only for AI gateways of a version later than 2.1.21.
|
|
38
38
|
* >
|
|
39
|
-
* >
|
|
39
|
+
* > Recommended call logic:
|
|
40
40
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
41
41
|
* > - - Set dryRun=true.
|
|
42
|
-
* > - - The response returns a conflict preview containing
|
|
42
|
+
* > - - The response returns a conflict preview containing conflictHash.
|
|
43
43
|
* > - 2. Formally submit the request after confirmation.
|
|
44
|
-
* > - - If no
|
|
45
|
-
* > - - If
|
|
44
|
+
* > - - If no conflict exists: Set dryRun=false and overwrite=false.
|
|
45
|
+
* > - - If a conflict exists and you confirm to overwrite: Set dryRun=false, overwrite=true, and conflictHash=<value returned in the previous step>.
|
|
46
46
|
*
|
|
47
47
|
* @param request - AddGatewayQuotaRuleRequest
|
|
48
48
|
* @returns AddGatewayQuotaRuleResponse
|
|
@@ -473,7 +473,7 @@ export default class Client extends OpenApi {
|
|
|
473
473
|
*/
|
|
474
474
|
createHttpApi(request: $_model.CreateHttpApiRequest): Promise<$_model.CreateHttpApiResponse>;
|
|
475
475
|
/**
|
|
476
|
-
* Creates
|
|
476
|
+
* Creates an API operation for an HTTP API.
|
|
477
477
|
*
|
|
478
478
|
* @param request - CreateHttpApiOperationRequest
|
|
479
479
|
* @param headers - map
|
|
@@ -484,7 +484,7 @@ export default class Client extends OpenApi {
|
|
|
484
484
|
[key: string]: string;
|
|
485
485
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHttpApiOperationResponse>;
|
|
486
486
|
/**
|
|
487
|
-
* Creates
|
|
487
|
+
* Creates an API operation for an HTTP API.
|
|
488
488
|
*
|
|
489
489
|
* @param request - CreateHttpApiOperationRequest
|
|
490
490
|
* @returns CreateHttpApiOperationResponse
|
|
@@ -1635,6 +1635,30 @@ export default class Client extends OpenApi {
|
|
|
1635
1635
|
* @returns GetGatewayResponse
|
|
1636
1636
|
*/
|
|
1637
1637
|
getGateway(gatewayId: string): Promise<$_model.GetGatewayResponse>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Retrieves the dynamic forwarding ExtProc service bound to the gateway.
|
|
1640
|
+
*
|
|
1641
|
+
* @remarks
|
|
1642
|
+
* Queries the dynamic forwarding ExtProc gRPC service and port currently bound to the specified gateway. If no service is bound, the operation returns bound=false.
|
|
1643
|
+
*
|
|
1644
|
+
* @param request - GetGatewayDfpExtProcServiceRequest
|
|
1645
|
+
* @param headers - map
|
|
1646
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1647
|
+
* @returns GetGatewayDfpExtProcServiceResponse
|
|
1648
|
+
*/
|
|
1649
|
+
getGatewayDfpExtProcServiceWithOptions(gatewayId: string, request: $_model.GetGatewayDfpExtProcServiceRequest, headers: {
|
|
1650
|
+
[key: string]: string;
|
|
1651
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetGatewayDfpExtProcServiceResponse>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Retrieves the dynamic forwarding ExtProc service bound to the gateway.
|
|
1654
|
+
*
|
|
1655
|
+
* @remarks
|
|
1656
|
+
* Queries the dynamic forwarding ExtProc gRPC service and port currently bound to the specified gateway. If no service is bound, the operation returns bound=false.
|
|
1657
|
+
*
|
|
1658
|
+
* @param request - GetGatewayDfpExtProcServiceRequest
|
|
1659
|
+
* @returns GetGatewayDfpExtProcServiceResponse
|
|
1660
|
+
*/
|
|
1661
|
+
getGatewayDfpExtProcService(gatewayId: string, request: $_model.GetGatewayDfpExtProcServiceRequest): Promise<$_model.GetGatewayDfpExtProcServiceResponse>;
|
|
1638
1662
|
/**
|
|
1639
1663
|
* Retrieves the elastic scaling rule of a gateway.
|
|
1640
1664
|
*
|
|
@@ -1782,7 +1806,7 @@ export default class Client extends OpenApi {
|
|
|
1782
1806
|
*/
|
|
1783
1807
|
getHttpApi(httpApiId: string, request: $_model.GetHttpApiRequest): Promise<$_model.GetHttpApiResponse>;
|
|
1784
1808
|
/**
|
|
1785
|
-
* Retrieves
|
|
1809
|
+
* Retrieves API operation information.
|
|
1786
1810
|
*
|
|
1787
1811
|
* @param headers - map
|
|
1788
1812
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1792,7 +1816,7 @@ export default class Client extends OpenApi {
|
|
|
1792
1816
|
[key: string]: string;
|
|
1793
1817
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetHttpApiOperationResponse>;
|
|
1794
1818
|
/**
|
|
1795
|
-
* Retrieves
|
|
1819
|
+
* Retrieves API operation information.
|
|
1796
1820
|
* @returns GetHttpApiOperationResponse
|
|
1797
1821
|
*/
|
|
1798
1822
|
getHttpApiOperation(httpApiId: string, operationId: string): Promise<$_model.GetHttpApiOperationResponse>;
|
|
@@ -2166,7 +2190,7 @@ export default class Client extends OpenApi {
|
|
|
2166
2190
|
*/
|
|
2167
2191
|
handleOidcCallback(request: $_model.HandleOidcCallbackRequest): Promise<$_model.HandleOidcCallbackResponse>;
|
|
2168
2192
|
/**
|
|
2169
|
-
* Imports an HTTP API
|
|
2193
|
+
* Imports an HTTP API and supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST APIs.
|
|
2170
2194
|
*
|
|
2171
2195
|
* @param request - ImportHttpApiRequest
|
|
2172
2196
|
* @param headers - map
|
|
@@ -2177,7 +2201,7 @@ export default class Client extends OpenApi {
|
|
|
2177
2201
|
[key: string]: string;
|
|
2178
2202
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ImportHttpApiResponse>;
|
|
2179
2203
|
/**
|
|
2180
|
-
* Imports an HTTP API
|
|
2204
|
+
* Imports an HTTP API and supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST APIs.
|
|
2181
2205
|
*
|
|
2182
2206
|
* @param request - ImportHttpApiRequest
|
|
2183
2207
|
* @returns ImportHttpApiResponse
|
|
@@ -2718,7 +2742,7 @@ export default class Client extends OpenApi {
|
|
|
2718
2742
|
*/
|
|
2719
2743
|
listHiMarketConsumers(request: $_model.ListHiMarketConsumersRequest): Promise<$_model.ListHiMarketConsumersResponse>;
|
|
2720
2744
|
/**
|
|
2721
|
-
* Retrieves
|
|
2745
|
+
* Retrieves the list of API operations.
|
|
2722
2746
|
*
|
|
2723
2747
|
* @param request - ListHttpApiOperationsRequest
|
|
2724
2748
|
* @param headers - map
|
|
@@ -2729,14 +2753,14 @@ export default class Client extends OpenApi {
|
|
|
2729
2753
|
[key: string]: string;
|
|
2730
2754
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListHttpApiOperationsResponse>;
|
|
2731
2755
|
/**
|
|
2732
|
-
* Retrieves
|
|
2756
|
+
* Retrieves the list of API operations.
|
|
2733
2757
|
*
|
|
2734
2758
|
* @param request - ListHttpApiOperationsRequest
|
|
2735
2759
|
* @returns ListHttpApiOperationsResponse
|
|
2736
2760
|
*/
|
|
2737
2761
|
listHttpApiOperations(httpApiId: string, request: $_model.ListHttpApiOperationsRequest): Promise<$_model.ListHttpApiOperationsResponse>;
|
|
2738
2762
|
/**
|
|
2739
|
-
* Queries the
|
|
2763
|
+
* Queries the routes of an HTTP API.
|
|
2740
2764
|
*
|
|
2741
2765
|
* @param request - ListHttpApiRoutesRequest
|
|
2742
2766
|
* @param headers - map
|
|
@@ -2747,7 +2771,7 @@ export default class Client extends OpenApi {
|
|
|
2747
2771
|
[key: string]: string;
|
|
2748
2772
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListHttpApiRoutesResponse>;
|
|
2749
2773
|
/**
|
|
2750
|
-
* Queries the
|
|
2774
|
+
* Queries the routes of an HTTP API.
|
|
2751
2775
|
*
|
|
2752
2776
|
* @param request - ListHttpApiRoutesRequest
|
|
2753
2777
|
* @returns ListHttpApiRoutesResponse
|
|
@@ -2904,7 +2928,7 @@ export default class Client extends OpenApi {
|
|
|
2904
2928
|
*/
|
|
2905
2929
|
listMseNacosSources(gatewayId: string, request: $_model.ListMseNacosSourcesRequest): Promise<$_model.ListMseNacosSourcesResponse>;
|
|
2906
2930
|
/**
|
|
2907
|
-
* Retrieves the
|
|
2931
|
+
* Retrieves the plugin mount list.
|
|
2908
2932
|
*
|
|
2909
2933
|
* @param request - ListPluginAttachmentsRequest
|
|
2910
2934
|
* @param headers - map
|
|
@@ -2915,7 +2939,7 @@ export default class Client extends OpenApi {
|
|
|
2915
2939
|
[key: string]: string;
|
|
2916
2940
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginAttachmentsResponse>;
|
|
2917
2941
|
/**
|
|
2918
|
-
* Retrieves the
|
|
2942
|
+
* Retrieves the plugin mount list.
|
|
2919
2943
|
*
|
|
2920
2944
|
* @param request - ListPluginAttachmentsRequest
|
|
2921
2945
|
* @returns ListPluginAttachmentsResponse
|
|
@@ -3252,7 +3276,7 @@ export default class Client extends OpenApi {
|
|
|
3252
3276
|
*/
|
|
3253
3277
|
listSecrets(request: $_model.ListSecretsRequest): Promise<$_model.ListSecretsResponse>;
|
|
3254
3278
|
/**
|
|
3255
|
-
* Retrieves
|
|
3279
|
+
* Retrieves a list of services.
|
|
3256
3280
|
*
|
|
3257
3281
|
* @param request - ListServicesRequest
|
|
3258
3282
|
* @param headers - map
|
|
@@ -3263,7 +3287,7 @@ export default class Client extends OpenApi {
|
|
|
3263
3287
|
[key: string]: string;
|
|
3264
3288
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServicesResponse>;
|
|
3265
3289
|
/**
|
|
3266
|
-
* Retrieves
|
|
3290
|
+
* Retrieves a list of services.
|
|
3267
3291
|
*
|
|
3268
3292
|
* @param request - ListServicesRequest
|
|
3269
3293
|
* @returns ListServicesResponse
|
|
@@ -3414,7 +3438,7 @@ export default class Client extends OpenApi {
|
|
|
3414
3438
|
*/
|
|
3415
3439
|
publishProduct(productId: string, request: $_model.PublishProductRequest): Promise<$_model.PublishProductResponse>;
|
|
3416
3440
|
/**
|
|
3417
|
-
* Queries
|
|
3441
|
+
* Queries consumer authorization rules.
|
|
3418
3442
|
*
|
|
3419
3443
|
* @param request - QueryConsumerAuthorizationRulesRequest
|
|
3420
3444
|
* @param headers - map
|
|
@@ -3425,7 +3449,7 @@ export default class Client extends OpenApi {
|
|
|
3425
3449
|
[key: string]: string;
|
|
3426
3450
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.QueryConsumerAuthorizationRulesResponse>;
|
|
3427
3451
|
/**
|
|
3428
|
-
* Queries
|
|
3452
|
+
* Queries consumer authorization rules.
|
|
3429
3453
|
*
|
|
3430
3454
|
* @param request - QueryConsumerAuthorizationRulesRequest
|
|
3431
3455
|
* @returns QueryConsumerAuthorizationRulesResponse
|
|
@@ -3520,10 +3544,10 @@ export default class Client extends OpenApi {
|
|
|
3520
3544
|
*/
|
|
3521
3545
|
restartGateway(gatewayId: string): Promise<$_model.RestartGatewayResponse>;
|
|
3522
3546
|
/**
|
|
3523
|
-
* Queries the currently active credentials for
|
|
3547
|
+
* Queries the currently active credentials for an AI service.
|
|
3524
3548
|
*
|
|
3525
3549
|
* @remarks
|
|
3526
|
-
* Queries the currently active credentials for
|
|
3550
|
+
* Queries the currently active credentials for an AI service.
|
|
3527
3551
|
*
|
|
3528
3552
|
* @param request - RevealServiceCredentialRequest
|
|
3529
3553
|
* @param headers - map
|
|
@@ -3534,10 +3558,10 @@ export default class Client extends OpenApi {
|
|
|
3534
3558
|
[key: string]: string;
|
|
3535
3559
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.RevealServiceCredentialResponse>;
|
|
3536
3560
|
/**
|
|
3537
|
-
* Queries the currently active credentials for
|
|
3561
|
+
* Queries the currently active credentials for an AI service.
|
|
3538
3562
|
*
|
|
3539
3563
|
* @remarks
|
|
3540
|
-
* Queries the currently active credentials for
|
|
3564
|
+
* Queries the currently active credentials for an AI service.
|
|
3541
3565
|
*
|
|
3542
3566
|
* @param request - RevealServiceCredentialRequest
|
|
3543
3567
|
* @returns RevealServiceCredentialResponse
|
package/dist/client.js
CHANGED
|
@@ -61,6 +61,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
61
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
62
|
// This file is auto-generated, don't edit it
|
|
63
63
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
64
|
+
const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
|
|
64
65
|
const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
|
|
65
66
|
const openapi_core_2 = require("@alicloud/openapi-core");
|
|
66
67
|
const $_model = __importStar(require("./models/model"));
|
|
@@ -68,6 +69,9 @@ __exportStar(require("./models/model"), exports);
|
|
|
68
69
|
class Client extends openapi_core_1.default {
|
|
69
70
|
constructor(config) {
|
|
70
71
|
super(config);
|
|
72
|
+
this._productId = "APIG";
|
|
73
|
+
let gatewayClient = new gateway_pop_1.default();
|
|
74
|
+
this._spi = gatewayClient;
|
|
71
75
|
this._endpointRule = "regional";
|
|
72
76
|
this.checkConfig(config);
|
|
73
77
|
this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -85,15 +89,15 @@ class Client extends openapi_core_1.default {
|
|
|
85
89
|
* Creates a gateway quota throttling rule.
|
|
86
90
|
*
|
|
87
91
|
* @remarks
|
|
88
|
-
* This operation adds a quota rule based on consumers or consumer groups
|
|
92
|
+
* This operation adds a quota rule based on consumers or consumer groups for an AI gateway. Note that this operation takes effect only for AI gateways of a version later than 2.1.21.
|
|
89
93
|
* >
|
|
90
|
-
* >
|
|
94
|
+
* > Recommended call logic:
|
|
91
95
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
92
96
|
* > - - Set dryRun=true.
|
|
93
|
-
* > - - The response returns a conflict preview containing
|
|
97
|
+
* > - - The response returns a conflict preview containing conflictHash.
|
|
94
98
|
* > - 2. Formally submit the request after confirmation.
|
|
95
|
-
* > - - If no
|
|
96
|
-
* > - - If
|
|
99
|
+
* > - - If no conflict exists: Set dryRun=false and overwrite=false.
|
|
100
|
+
* > - - If a conflict exists and you confirm to overwrite: Set dryRun=false, overwrite=true, and conflictHash=<value returned in the previous step>.
|
|
97
101
|
*
|
|
98
102
|
* @param request - AddGatewayQuotaRuleRequest
|
|
99
103
|
* @param headers - map
|
|
@@ -163,15 +167,15 @@ class Client extends openapi_core_1.default {
|
|
|
163
167
|
* Creates a gateway quota throttling rule.
|
|
164
168
|
*
|
|
165
169
|
* @remarks
|
|
166
|
-
* This operation adds a quota rule based on consumers or consumer groups
|
|
170
|
+
* This operation adds a quota rule based on consumers or consumer groups for an AI gateway. Note that this operation takes effect only for AI gateways of a version later than 2.1.21.
|
|
167
171
|
* >
|
|
168
|
-
* >
|
|
172
|
+
* > Recommended call logic:
|
|
169
173
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
170
174
|
* > - - Set dryRun=true.
|
|
171
|
-
* > - - The response returns a conflict preview containing
|
|
175
|
+
* > - - The response returns a conflict preview containing conflictHash.
|
|
172
176
|
* > - 2. Formally submit the request after confirmation.
|
|
173
|
-
* > - - If no
|
|
174
|
-
* > - - If
|
|
177
|
+
* > - - If no conflict exists: Set dryRun=false and overwrite=false.
|
|
178
|
+
* > - - If a conflict exists and you confirm to overwrite: Set dryRun=false, overwrite=true, and conflictHash=<value returned in the previous step>.
|
|
175
179
|
*
|
|
176
180
|
* @param request - AddGatewayQuotaRuleRequest
|
|
177
181
|
* @returns AddGatewayQuotaRuleResponse
|
|
@@ -1450,7 +1454,7 @@ class Client extends openapi_core_1.default {
|
|
|
1450
1454
|
return await this.createHttpApiWithOptions(request, headers, runtime);
|
|
1451
1455
|
}
|
|
1452
1456
|
/**
|
|
1453
|
-
* Creates
|
|
1457
|
+
* Creates an API operation for an HTTP API.
|
|
1454
1458
|
*
|
|
1455
1459
|
* @param request - CreateHttpApiOperationRequest
|
|
1456
1460
|
* @param headers - map
|
|
@@ -1481,7 +1485,7 @@ class Client extends openapi_core_1.default {
|
|
|
1481
1485
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHttpApiOperationResponse({}));
|
|
1482
1486
|
}
|
|
1483
1487
|
/**
|
|
1484
|
-
* Creates
|
|
1488
|
+
* Creates an API operation for an HTTP API.
|
|
1485
1489
|
*
|
|
1486
1490
|
* @param request - CreateHttpApiOperationRequest
|
|
1487
1491
|
* @returns CreateHttpApiOperationResponse
|
|
@@ -1511,6 +1515,9 @@ class Client extends openapi_core_1.default {
|
|
|
1511
1515
|
if (!$dara.isNull(request.description)) {
|
|
1512
1516
|
body["description"] = request.description;
|
|
1513
1517
|
}
|
|
1518
|
+
if (!$dara.isNull(request.dfpConfig)) {
|
|
1519
|
+
body["dfpConfig"] = request.dfpConfig;
|
|
1520
|
+
}
|
|
1514
1521
|
if (!$dara.isNull(request.domainIds)) {
|
|
1515
1522
|
body["domainIds"] = request.domainIds;
|
|
1516
1523
|
}
|
|
@@ -4271,6 +4278,49 @@ class Client extends openapi_core_1.default {
|
|
|
4271
4278
|
let headers = {};
|
|
4272
4279
|
return await this.getGatewayWithOptions(gatewayId, headers, runtime);
|
|
4273
4280
|
}
|
|
4281
|
+
/**
|
|
4282
|
+
* Retrieves the dynamic forwarding ExtProc service bound to the gateway.
|
|
4283
|
+
*
|
|
4284
|
+
* @remarks
|
|
4285
|
+
* Queries the dynamic forwarding ExtProc gRPC service and port currently bound to the specified gateway. If no service is bound, the operation returns bound=false.
|
|
4286
|
+
*
|
|
4287
|
+
* @param request - GetGatewayDfpExtProcServiceRequest
|
|
4288
|
+
* @param headers - map
|
|
4289
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4290
|
+
* @returns GetGatewayDfpExtProcServiceResponse
|
|
4291
|
+
*/
|
|
4292
|
+
async getGatewayDfpExtProcServiceWithOptions(gatewayId, request, headers, runtime) {
|
|
4293
|
+
request.validate();
|
|
4294
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4295
|
+
headers: headers,
|
|
4296
|
+
});
|
|
4297
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4298
|
+
action: "GetGatewayDfpExtProcService",
|
|
4299
|
+
version: "2024-03-27",
|
|
4300
|
+
protocol: "HTTPS",
|
|
4301
|
+
pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/dfp-ext-proc-service`,
|
|
4302
|
+
method: "GET",
|
|
4303
|
+
authType: "AK",
|
|
4304
|
+
style: "ROA",
|
|
4305
|
+
reqBodyType: "json",
|
|
4306
|
+
bodyType: "json",
|
|
4307
|
+
});
|
|
4308
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayDfpExtProcServiceResponse({}));
|
|
4309
|
+
}
|
|
4310
|
+
/**
|
|
4311
|
+
* Retrieves the dynamic forwarding ExtProc service bound to the gateway.
|
|
4312
|
+
*
|
|
4313
|
+
* @remarks
|
|
4314
|
+
* Queries the dynamic forwarding ExtProc gRPC service and port currently bound to the specified gateway. If no service is bound, the operation returns bound=false.
|
|
4315
|
+
*
|
|
4316
|
+
* @param request - GetGatewayDfpExtProcServiceRequest
|
|
4317
|
+
* @returns GetGatewayDfpExtProcServiceResponse
|
|
4318
|
+
*/
|
|
4319
|
+
async getGatewayDfpExtProcService(gatewayId, request) {
|
|
4320
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4321
|
+
let headers = {};
|
|
4322
|
+
return await this.getGatewayDfpExtProcServiceWithOptions(gatewayId, request, headers, runtime);
|
|
4323
|
+
}
|
|
4274
4324
|
/**
|
|
4275
4325
|
* Retrieves the elastic scaling rule of a gateway.
|
|
4276
4326
|
*
|
|
@@ -4587,7 +4637,7 @@ class Client extends openapi_core_1.default {
|
|
|
4587
4637
|
return await this.getHttpApiWithOptions(httpApiId, request, headers, runtime);
|
|
4588
4638
|
}
|
|
4589
4639
|
/**
|
|
4590
|
-
* Retrieves
|
|
4640
|
+
* Retrieves API operation information.
|
|
4591
4641
|
*
|
|
4592
4642
|
* @param headers - map
|
|
4593
4643
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4611,7 +4661,7 @@ class Client extends openapi_core_1.default {
|
|
|
4611
4661
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetHttpApiOperationResponse({}));
|
|
4612
4662
|
}
|
|
4613
4663
|
/**
|
|
4614
|
-
* Retrieves
|
|
4664
|
+
* Retrieves API operation information.
|
|
4615
4665
|
* @returns GetHttpApiOperationResponse
|
|
4616
4666
|
*/
|
|
4617
4667
|
async getHttpApiOperation(httpApiId, operationId) {
|
|
@@ -5402,7 +5452,7 @@ class Client extends openapi_core_1.default {
|
|
|
5402
5452
|
return await this.handleOidcCallbackWithOptions(request, headers, runtime);
|
|
5403
5453
|
}
|
|
5404
5454
|
/**
|
|
5405
|
-
* Imports an HTTP API
|
|
5455
|
+
* Imports an HTTP API and supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST APIs.
|
|
5406
5456
|
*
|
|
5407
5457
|
* @param request - ImportHttpApiRequest
|
|
5408
5458
|
* @param headers - map
|
|
@@ -5472,7 +5522,7 @@ class Client extends openapi_core_1.default {
|
|
|
5472
5522
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImportHttpApiResponse({}));
|
|
5473
5523
|
}
|
|
5474
5524
|
/**
|
|
5475
|
-
* Imports an HTTP API
|
|
5525
|
+
* Imports an HTTP API and supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST APIs.
|
|
5476
5526
|
*
|
|
5477
5527
|
* @param request - ImportHttpApiRequest
|
|
5478
5528
|
* @returns ImportHttpApiResponse
|
|
@@ -7061,7 +7111,7 @@ class Client extends openapi_core_1.default {
|
|
|
7061
7111
|
return await this.listHiMarketConsumersWithOptions(request, headers, runtime);
|
|
7062
7112
|
}
|
|
7063
7113
|
/**
|
|
7064
|
-
* Retrieves
|
|
7114
|
+
* Retrieves the list of API operations.
|
|
7065
7115
|
*
|
|
7066
7116
|
* @param request - ListHttpApiOperationsRequest
|
|
7067
7117
|
* @param headers - map
|
|
@@ -7128,7 +7178,7 @@ class Client extends openapi_core_1.default {
|
|
|
7128
7178
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListHttpApiOperationsResponse({}));
|
|
7129
7179
|
}
|
|
7130
7180
|
/**
|
|
7131
|
-
* Retrieves
|
|
7181
|
+
* Retrieves the list of API operations.
|
|
7132
7182
|
*
|
|
7133
7183
|
* @param request - ListHttpApiOperationsRequest
|
|
7134
7184
|
* @returns ListHttpApiOperationsResponse
|
|
@@ -7139,7 +7189,7 @@ class Client extends openapi_core_1.default {
|
|
|
7139
7189
|
return await this.listHttpApiOperationsWithOptions(httpApiId, request, headers, runtime);
|
|
7140
7190
|
}
|
|
7141
7191
|
/**
|
|
7142
|
-
* Queries the
|
|
7192
|
+
* Queries the routes of an HTTP API.
|
|
7143
7193
|
*
|
|
7144
7194
|
* @param request - ListHttpApiRoutesRequest
|
|
7145
7195
|
* @param headers - map
|
|
@@ -7212,7 +7262,7 @@ class Client extends openapi_core_1.default {
|
|
|
7212
7262
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListHttpApiRoutesResponse({}));
|
|
7213
7263
|
}
|
|
7214
7264
|
/**
|
|
7215
|
-
* Queries the
|
|
7265
|
+
* Queries the routes of an HTTP API.
|
|
7216
7266
|
*
|
|
7217
7267
|
* @param request - ListHttpApiRoutesRequest
|
|
7218
7268
|
* @returns ListHttpApiRoutesResponse
|
|
@@ -7630,7 +7680,7 @@ class Client extends openapi_core_1.default {
|
|
|
7630
7680
|
return await this.listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime);
|
|
7631
7681
|
}
|
|
7632
7682
|
/**
|
|
7633
|
-
* Retrieves the
|
|
7683
|
+
* Retrieves the plugin mount list.
|
|
7634
7684
|
*
|
|
7635
7685
|
* @param request - ListPluginAttachmentsRequest
|
|
7636
7686
|
* @param headers - map
|
|
@@ -7685,7 +7735,7 @@ class Client extends openapi_core_1.default {
|
|
|
7685
7735
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginAttachmentsResponse({}));
|
|
7686
7736
|
}
|
|
7687
7737
|
/**
|
|
7688
|
-
* Retrieves the
|
|
7738
|
+
* Retrieves the plugin mount list.
|
|
7689
7739
|
*
|
|
7690
7740
|
* @param request - ListPluginAttachmentsRequest
|
|
7691
7741
|
* @returns ListPluginAttachmentsResponse
|
|
@@ -8615,7 +8665,7 @@ class Client extends openapi_core_1.default {
|
|
|
8615
8665
|
return await this.listSecretsWithOptions(request, headers, runtime);
|
|
8616
8666
|
}
|
|
8617
8667
|
/**
|
|
8618
|
-
* Retrieves
|
|
8668
|
+
* Retrieves a list of services.
|
|
8619
8669
|
*
|
|
8620
8670
|
* @param request - ListServicesRequest
|
|
8621
8671
|
* @param headers - map
|
|
@@ -8664,7 +8714,7 @@ class Client extends openapi_core_1.default {
|
|
|
8664
8714
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListServicesResponse({}));
|
|
8665
8715
|
}
|
|
8666
8716
|
/**
|
|
8667
|
-
* Retrieves
|
|
8717
|
+
* Retrieves a list of services.
|
|
8668
8718
|
*
|
|
8669
8719
|
* @param request - ListServicesRequest
|
|
8670
8720
|
* @returns ListServicesResponse
|
|
@@ -9053,7 +9103,7 @@ class Client extends openapi_core_1.default {
|
|
|
9053
9103
|
return await this.publishProductWithOptions(productId, request, headers, runtime);
|
|
9054
9104
|
}
|
|
9055
9105
|
/**
|
|
9056
|
-
* Queries
|
|
9106
|
+
* Queries consumer authorization rules.
|
|
9057
9107
|
*
|
|
9058
9108
|
* @param request - QueryConsumerAuthorizationRulesRequest
|
|
9059
9109
|
* @param headers - map
|
|
@@ -9123,7 +9173,7 @@ class Client extends openapi_core_1.default {
|
|
|
9123
9173
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryConsumerAuthorizationRulesResponse({}));
|
|
9124
9174
|
}
|
|
9125
9175
|
/**
|
|
9126
|
-
* Queries
|
|
9176
|
+
* Queries consumer authorization rules.
|
|
9127
9177
|
*
|
|
9128
9178
|
* @param request - QueryConsumerAuthorizationRulesRequest
|
|
9129
9179
|
* @returns QueryConsumerAuthorizationRulesResponse
|
|
@@ -9327,10 +9377,10 @@ class Client extends openapi_core_1.default {
|
|
|
9327
9377
|
return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
|
|
9328
9378
|
}
|
|
9329
9379
|
/**
|
|
9330
|
-
* Queries the currently active credentials for
|
|
9380
|
+
* Queries the currently active credentials for an AI service.
|
|
9331
9381
|
*
|
|
9332
9382
|
* @remarks
|
|
9333
|
-
* Queries the currently active credentials for
|
|
9383
|
+
* Queries the currently active credentials for an AI service.
|
|
9334
9384
|
*
|
|
9335
9385
|
* @param request - RevealServiceCredentialRequest
|
|
9336
9386
|
* @param headers - map
|
|
@@ -9356,10 +9406,10 @@ class Client extends openapi_core_1.default {
|
|
|
9356
9406
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RevealServiceCredentialResponse({}));
|
|
9357
9407
|
}
|
|
9358
9408
|
/**
|
|
9359
|
-
* Queries the currently active credentials for
|
|
9409
|
+
* Queries the currently active credentials for an AI service.
|
|
9360
9410
|
*
|
|
9361
9411
|
* @remarks
|
|
9362
|
-
* Queries the currently active credentials for
|
|
9412
|
+
* Queries the currently active credentials for an AI service.
|
|
9363
9413
|
*
|
|
9364
9414
|
* @param request - RevealServiceCredentialRequest
|
|
9365
9415
|
* @returns RevealServiceCredentialResponse
|
|
@@ -10844,6 +10894,9 @@ class Client extends openapi_core_1.default {
|
|
|
10844
10894
|
if (!$dara.isNull(request.description)) {
|
|
10845
10895
|
body["description"] = request.description;
|
|
10846
10896
|
}
|
|
10897
|
+
if (!$dara.isNull(request.dfpConfig)) {
|
|
10898
|
+
body["dfpConfig"] = request.dfpConfig;
|
|
10899
|
+
}
|
|
10847
10900
|
if (!$dara.isNull(request.domainIds)) {
|
|
10848
10901
|
body["domainIds"] = request.domainIds;
|
|
10849
10902
|
}
|