@alicloud/apig20240327 11.3.1 → 11.3.3
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 +24 -24
- package/dist/client.js +35 -24
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +16 -16
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +6 -11
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/CreateConsumerRequest.d.ts +16 -4
- package/dist/models/CreateConsumerRequest.js +4 -0
- package/dist/models/CreateConsumerRequest.js.map +1 -1
- package/dist/models/CreateHttpApiRequest.d.ts +28 -14
- package/dist/models/CreateHttpApiRequest.js.map +1 -1
- package/dist/models/CreateHttpApiRouteRequest.d.ts +8 -8
- package/dist/models/CreatePluginAttachmentRequest.d.ts +2 -2
- package/dist/models/CreatePolicyAttachmentRequest.d.ts +2 -2
- package/dist/models/CreatePolicyAttachmentResponseBody.d.ts +1 -1
- package/dist/models/CreatePolicyRequest.d.ts +21 -21
- package/dist/models/DeleteGatewayQuotaRuleResponseBody.d.ts +1 -1
- package/dist/models/DeleteHttpApiRequest.d.ts +9 -1
- package/dist/models/DeleteHttpApiRequest.js +2 -0
- package/dist/models/DeleteHttpApiRequest.js.map +1 -1
- package/dist/models/DeployHttpApiRequest.d.ts +11 -11
- package/dist/models/GetDashboardRequest.d.ts +6 -6
- package/dist/models/GetDashboardResponseBody.d.ts +1 -1
- package/dist/models/GetDashboardShrinkRequest.d.ts +6 -6
- package/dist/models/GetHttpApiOperationResponseBody.d.ts +1 -1
- package/dist/models/GetHttpApiRequest.d.ts +1 -1
- package/dist/models/HttpApiDeployConfig.d.ts +25 -9
- package/dist/models/HttpApiDeployConfig.js +7 -0
- package/dist/models/HttpApiDeployConfig.js.map +1 -1
- package/dist/models/ImportHttpApiRequest.d.ts +14 -9
- package/dist/models/ImportHttpApiRequest.js.map +1 -1
- package/dist/models/ImportHttpApiResponseBody.d.ts +12 -8
- package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
- package/dist/models/ListConsumerAuthorizationRulesRequest.d.ts +1 -1
- package/dist/models/ListConsumerAuthorizationRulesResponseBody.d.ts +2 -4
- package/dist/models/ListConsumerAuthorizationRulesResponseBody.js.map +1 -1
- package/dist/models/ListHttpApiOperationsRequest.d.ts +10 -10
- package/dist/models/ListHttpApiOperationsResponseBody.d.ts +3 -3
- package/dist/models/ListPluginAttachmentsRequest.d.ts +4 -4
- package/dist/models/ListPluginAttachmentsResponseBody.d.ts +7 -7
- package/dist/models/UpdatePluginAttachmentRequest.d.ts +2 -2
- package/package.json +1 -1
- package/src/client.ts +38 -24
- package/src/models/AddGatewayQuotaRuleRequest.ts +16 -16
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +6 -11
- package/src/models/CreateConsumerRequest.ts +20 -4
- package/src/models/CreateHttpApiRequest.ts +28 -14
- package/src/models/CreateHttpApiRouteRequest.ts +8 -8
- package/src/models/CreatePluginAttachmentRequest.ts +2 -2
- package/src/models/CreatePolicyAttachmentRequest.ts +2 -2
- package/src/models/CreatePolicyAttachmentResponseBody.ts +1 -1
- package/src/models/CreatePolicyRequest.ts +21 -21
- package/src/models/DeleteGatewayQuotaRuleResponseBody.ts +1 -1
- package/src/models/DeleteHttpApiRequest.ts +11 -1
- package/src/models/DeployHttpApiRequest.ts +11 -11
- package/src/models/GetDashboardRequest.ts +6 -6
- package/src/models/GetDashboardResponseBody.ts +1 -1
- package/src/models/GetDashboardShrinkRequest.ts +6 -6
- package/src/models/GetHttpApiOperationResponseBody.ts +1 -1
- package/src/models/GetHttpApiRequest.ts +1 -1
- package/src/models/HttpApiDeployConfig.ts +32 -9
- package/src/models/ImportHttpApiRequest.ts +14 -9
- package/src/models/ImportHttpApiResponseBody.ts +12 -8
- package/src/models/ListConsumerAuthorizationRulesRequest.ts +1 -1
- package/src/models/ListConsumerAuthorizationRulesResponseBody.ts +2 -4
- package/src/models/ListHttpApiOperationsRequest.ts +10 -10
- package/src/models/ListHttpApiOperationsResponseBody.ts +3 -3
- package/src/models/ListPluginAttachmentsRequest.ts +4 -4
- package/src/models/ListPluginAttachmentsResponseBody.ts +7 -7
- package/src/models/UpdatePluginAttachmentRequest.ts +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export default class Client extends OpenApi {
|
|
|
17
17
|
* > Recommended call sequence:
|
|
18
18
|
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
19
19
|
* > - - Set dryRun to true.
|
|
20
|
-
* > - - The response returns a conflict preview that contains
|
|
21
|
-
* > - Step 2: Submit the
|
|
20
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
21
|
+
* > - Step 2: Submit the rule after confirmation.
|
|
22
22
|
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
23
23
|
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
24
24
|
*
|
|
@@ -39,8 +39,8 @@ export default class Client extends OpenApi {
|
|
|
39
39
|
* > Recommended call sequence:
|
|
40
40
|
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
41
41
|
* > - - Set dryRun to true.
|
|
42
|
-
* > - - The response returns a conflict preview that contains
|
|
43
|
-
* > - Step 2: Submit the
|
|
42
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
43
|
+
* > - Step 2: Submit the rule after confirmation.
|
|
44
44
|
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
45
45
|
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
46
46
|
*
|
|
@@ -419,7 +419,7 @@ export default class Client extends OpenApi {
|
|
|
419
419
|
*/
|
|
420
420
|
createHttpApi(request: $_model.CreateHttpApiRequest): Promise<$_model.CreateHttpApiResponse>;
|
|
421
421
|
/**
|
|
422
|
-
* Creates
|
|
422
|
+
* Creates an operation for an HTTP API.
|
|
423
423
|
*
|
|
424
424
|
* @param request - CreateHttpApiOperationRequest
|
|
425
425
|
* @param headers - map
|
|
@@ -430,7 +430,7 @@ export default class Client extends OpenApi {
|
|
|
430
430
|
[key: string]: string;
|
|
431
431
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHttpApiOperationResponse>;
|
|
432
432
|
/**
|
|
433
|
-
* Creates
|
|
433
|
+
* Creates an operation for an HTTP API.
|
|
434
434
|
*
|
|
435
435
|
* @param request - CreateHttpApiOperationRequest
|
|
436
436
|
* @returns CreateHttpApiOperationResponse
|
|
@@ -587,7 +587,7 @@ export default class Client extends OpenApi {
|
|
|
587
587
|
*/
|
|
588
588
|
createPolicy(request: $_model.CreatePolicyRequest): Promise<$_model.CreatePolicyResponse>;
|
|
589
589
|
/**
|
|
590
|
-
* Creates a policy
|
|
590
|
+
* Creates a policy resource mount.
|
|
591
591
|
*
|
|
592
592
|
* @param request - CreatePolicyAttachmentRequest
|
|
593
593
|
* @param headers - map
|
|
@@ -598,7 +598,7 @@ export default class Client extends OpenApi {
|
|
|
598
598
|
[key: string]: string;
|
|
599
599
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePolicyAttachmentResponse>;
|
|
600
600
|
/**
|
|
601
|
-
* Creates a policy
|
|
601
|
+
* Creates a policy resource mount.
|
|
602
602
|
*
|
|
603
603
|
* @param request - CreatePolicyAttachmentRequest
|
|
604
604
|
* @returns CreatePolicyAttachmentResponse
|
|
@@ -834,10 +834,10 @@ export default class Client extends OpenApi {
|
|
|
834
834
|
*/
|
|
835
835
|
deleteGateway(gatewayId: string): Promise<$_model.DeleteGatewayResponse>;
|
|
836
836
|
/**
|
|
837
|
-
* Deletes a quota throttling rule
|
|
837
|
+
* Deletes a quota throttling rule for a gateway.
|
|
838
838
|
*
|
|
839
839
|
* @remarks
|
|
840
|
-
*
|
|
840
|
+
* Deletes a quota rule based on an API consumer or consumer group for an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
|
|
841
841
|
*
|
|
842
842
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
843
843
|
* @param headers - map
|
|
@@ -848,10 +848,10 @@ export default class Client extends OpenApi {
|
|
|
848
848
|
[key: string]: string;
|
|
849
849
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteGatewayQuotaRuleResponse>;
|
|
850
850
|
/**
|
|
851
|
-
* Deletes a quota throttling rule
|
|
851
|
+
* Deletes a quota throttling rule for a gateway.
|
|
852
852
|
*
|
|
853
853
|
* @remarks
|
|
854
|
-
*
|
|
854
|
+
* Deletes a quota rule based on an API consumer or consumer group for an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
|
|
855
855
|
*
|
|
856
856
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
857
857
|
* @returns DeleteGatewayQuotaRuleResponse
|
|
@@ -1438,7 +1438,7 @@ export default class Client extends OpenApi {
|
|
|
1438
1438
|
*/
|
|
1439
1439
|
getGatewayQuotaRuleSubjectUsage(gatewayId: string, ruleId: string, subjectId: string, request: $_model.GetGatewayQuotaRuleSubjectUsageRequest): Promise<$_model.GetGatewayQuotaRuleSubjectUsageResponse>;
|
|
1440
1440
|
/**
|
|
1441
|
-
* Retrieves HTTP API
|
|
1441
|
+
* Retrieves the information of an HTTP API.
|
|
1442
1442
|
*
|
|
1443
1443
|
* @param request - GetHttpApiRequest
|
|
1444
1444
|
* @param headers - map
|
|
@@ -1449,14 +1449,14 @@ export default class Client extends OpenApi {
|
|
|
1449
1449
|
[key: string]: string;
|
|
1450
1450
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetHttpApiResponse>;
|
|
1451
1451
|
/**
|
|
1452
|
-
* Retrieves HTTP API
|
|
1452
|
+
* Retrieves the information of an HTTP API.
|
|
1453
1453
|
*
|
|
1454
1454
|
* @param request - GetHttpApiRequest
|
|
1455
1455
|
* @returns GetHttpApiResponse
|
|
1456
1456
|
*/
|
|
1457
1457
|
getHttpApi(httpApiId: string, request: $_model.GetHttpApiRequest): Promise<$_model.GetHttpApiResponse>;
|
|
1458
1458
|
/**
|
|
1459
|
-
* Retrieves operation information.
|
|
1459
|
+
* Retrieves the API operation information.
|
|
1460
1460
|
*
|
|
1461
1461
|
* @param headers - map
|
|
1462
1462
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1466,7 +1466,7 @@ export default class Client extends OpenApi {
|
|
|
1466
1466
|
[key: string]: string;
|
|
1467
1467
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetHttpApiOperationResponse>;
|
|
1468
1468
|
/**
|
|
1469
|
-
* Retrieves operation information.
|
|
1469
|
+
* Retrieves the API operation information.
|
|
1470
1470
|
* @returns GetHttpApiOperationResponse
|
|
1471
1471
|
*/
|
|
1472
1472
|
getHttpApiOperation(httpApiId: string, operationId: string): Promise<$_model.GetHttpApiOperationResponse>;
|
|
@@ -1750,7 +1750,7 @@ export default class Client extends OpenApi {
|
|
|
1750
1750
|
*/
|
|
1751
1751
|
getTraceConfig(gatewayId: string, request: $_model.GetTraceConfigRequest): Promise<$_model.GetTraceConfigResponse>;
|
|
1752
1752
|
/**
|
|
1753
|
-
* Imports an HTTP API.
|
|
1753
|
+
* Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
|
|
1754
1754
|
*
|
|
1755
1755
|
* @param request - ImportHttpApiRequest
|
|
1756
1756
|
* @param headers - map
|
|
@@ -1761,7 +1761,7 @@ export default class Client extends OpenApi {
|
|
|
1761
1761
|
[key: string]: string;
|
|
1762
1762
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ImportHttpApiResponse>;
|
|
1763
1763
|
/**
|
|
1764
|
-
* Imports an HTTP API.
|
|
1764
|
+
* Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
|
|
1765
1765
|
*
|
|
1766
1766
|
* @param request - ImportHttpApiRequest
|
|
1767
1767
|
* @returns ImportHttpApiResponse
|
|
@@ -1869,7 +1869,7 @@ export default class Client extends OpenApi {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
listBatchExportTasks(request: $_model.ListBatchExportTasksRequest): Promise<$_model.ListBatchExportTasksResponse>;
|
|
1871
1871
|
/**
|
|
1872
|
-
* Retrieves
|
|
1872
|
+
* Retrieves a list of consumer authorization rules.
|
|
1873
1873
|
*
|
|
1874
1874
|
* @param request - ListConsumerAuthorizationRulesRequest
|
|
1875
1875
|
* @param headers - map
|
|
@@ -1880,7 +1880,7 @@ export default class Client extends OpenApi {
|
|
|
1880
1880
|
[key: string]: string;
|
|
1881
1881
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListConsumerAuthorizationRulesResponse>;
|
|
1882
1882
|
/**
|
|
1883
|
-
* Retrieves
|
|
1883
|
+
* Retrieves a list of consumer authorization rules.
|
|
1884
1884
|
*
|
|
1885
1885
|
* @param request - ListConsumerAuthorizationRulesRequest
|
|
1886
1886
|
* @returns ListConsumerAuthorizationRulesResponse
|
|
@@ -2344,7 +2344,7 @@ export default class Client extends OpenApi {
|
|
|
2344
2344
|
*/
|
|
2345
2345
|
listMseNacosSources(gatewayId: string, request: $_model.ListMseNacosSourcesRequest): Promise<$_model.ListMseNacosSourcesResponse>;
|
|
2346
2346
|
/**
|
|
2347
|
-
* Retrieves the
|
|
2347
|
+
* Retrieves the plug-in mount list.
|
|
2348
2348
|
*
|
|
2349
2349
|
* @param request - ListPluginAttachmentsRequest
|
|
2350
2350
|
* @param headers - map
|
|
@@ -2355,7 +2355,7 @@ export default class Client extends OpenApi {
|
|
|
2355
2355
|
[key: string]: string;
|
|
2356
2356
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginAttachmentsResponse>;
|
|
2357
2357
|
/**
|
|
2358
|
-
* Retrieves the
|
|
2358
|
+
* Retrieves the plug-in mount list.
|
|
2359
2359
|
*
|
|
2360
2360
|
* @param request - ListPluginAttachmentsRequest
|
|
2361
2361
|
* @returns ListPluginAttachmentsResponse
|
|
@@ -2969,7 +2969,7 @@ export default class Client extends OpenApi {
|
|
|
2969
2969
|
* Updates a consumer authorization rule.
|
|
2970
2970
|
*
|
|
2971
2971
|
* @remarks
|
|
2972
|
-
*
|
|
2972
|
+
* This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
|
|
2973
2973
|
*
|
|
2974
2974
|
* @param request - UpdateConsumerAuthorizationRuleRequest
|
|
2975
2975
|
* @param headers - map
|
|
@@ -2983,7 +2983,7 @@ export default class Client extends OpenApi {
|
|
|
2983
2983
|
* Updates a consumer authorization rule.
|
|
2984
2984
|
*
|
|
2985
2985
|
* @remarks
|
|
2986
|
-
*
|
|
2986
|
+
* This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
|
|
2987
2987
|
*
|
|
2988
2988
|
* @param request - UpdateConsumerAuthorizationRuleRequest
|
|
2989
2989
|
* @returns UpdateConsumerAuthorizationRuleResponse
|
package/dist/client.js
CHANGED
|
@@ -90,8 +90,8 @@ class Client extends openapi_core_1.default {
|
|
|
90
90
|
* > Recommended call sequence:
|
|
91
91
|
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
92
92
|
* > - - Set dryRun to true.
|
|
93
|
-
* > - - The response returns a conflict preview that contains
|
|
94
|
-
* > - Step 2: Submit the
|
|
93
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
94
|
+
* > - Step 2: Submit the rule after confirmation.
|
|
95
95
|
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
96
96
|
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
97
97
|
*
|
|
@@ -168,8 +168,8 @@ class Client extends openapi_core_1.default {
|
|
|
168
168
|
* > Recommended call sequence:
|
|
169
169
|
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
170
170
|
* > - - Set dryRun to true.
|
|
171
|
-
* > - - The response returns a conflict preview that contains
|
|
172
|
-
* > - Step 2: Submit the
|
|
171
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
172
|
+
* > - Step 2: Submit the rule after confirmation.
|
|
173
173
|
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
174
174
|
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
175
175
|
*
|
|
@@ -774,6 +774,13 @@ class Client extends openapi_core_1.default {
|
|
|
774
774
|
*/
|
|
775
775
|
async createConsumerWithOptions(request, headers, runtime) {
|
|
776
776
|
request.validate();
|
|
777
|
+
let query = {};
|
|
778
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
779
|
+
query["clientToken"] = request.clientToken;
|
|
780
|
+
}
|
|
781
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
782
|
+
query["dryRun"] = request.dryRun;
|
|
783
|
+
}
|
|
777
784
|
let body = {};
|
|
778
785
|
if (!$dara.isNull(request.akSkIdentityConfigs)) {
|
|
779
786
|
body["akSkIdentityConfigs"] = request.akSkIdentityConfigs;
|
|
@@ -798,6 +805,7 @@ class Client extends openapi_core_1.default {
|
|
|
798
805
|
}
|
|
799
806
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
800
807
|
headers: headers,
|
|
808
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
801
809
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
802
810
|
});
|
|
803
811
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
@@ -1307,7 +1315,7 @@ class Client extends openapi_core_1.default {
|
|
|
1307
1315
|
return await this.createHttpApiWithOptions(request, headers, runtime);
|
|
1308
1316
|
}
|
|
1309
1317
|
/**
|
|
1310
|
-
* Creates
|
|
1318
|
+
* Creates an operation for an HTTP API.
|
|
1311
1319
|
*
|
|
1312
1320
|
* @param request - CreateHttpApiOperationRequest
|
|
1313
1321
|
* @param headers - map
|
|
@@ -1338,7 +1346,7 @@ class Client extends openapi_core_1.default {
|
|
|
1338
1346
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHttpApiOperationResponse({}));
|
|
1339
1347
|
}
|
|
1340
1348
|
/**
|
|
1341
|
-
* Creates
|
|
1349
|
+
* Creates an operation for an HTTP API.
|
|
1342
1350
|
*
|
|
1343
1351
|
* @param request - CreateHttpApiOperationRequest
|
|
1344
1352
|
* @returns CreateHttpApiOperationResponse
|
|
@@ -1838,7 +1846,7 @@ class Client extends openapi_core_1.default {
|
|
|
1838
1846
|
return await this.createPolicyWithOptions(request, headers, runtime);
|
|
1839
1847
|
}
|
|
1840
1848
|
/**
|
|
1841
|
-
* Creates a policy
|
|
1849
|
+
* Creates a policy resource mount.
|
|
1842
1850
|
*
|
|
1843
1851
|
* @param request - CreatePolicyAttachmentRequest
|
|
1844
1852
|
* @param headers - map
|
|
@@ -1881,7 +1889,7 @@ class Client extends openapi_core_1.default {
|
|
|
1881
1889
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePolicyAttachmentResponse({}));
|
|
1882
1890
|
}
|
|
1883
1891
|
/**
|
|
1884
|
-
* Creates a policy
|
|
1892
|
+
* Creates a policy resource mount.
|
|
1885
1893
|
*
|
|
1886
1894
|
* @param request - CreatePolicyAttachmentRequest
|
|
1887
1895
|
* @returns CreatePolicyAttachmentResponse
|
|
@@ -2428,10 +2436,10 @@ class Client extends openapi_core_1.default {
|
|
|
2428
2436
|
return await this.deleteGatewayWithOptions(gatewayId, headers, runtime);
|
|
2429
2437
|
}
|
|
2430
2438
|
/**
|
|
2431
|
-
* Deletes a quota throttling rule
|
|
2439
|
+
* Deletes a quota throttling rule for a gateway.
|
|
2432
2440
|
*
|
|
2433
2441
|
* @remarks
|
|
2434
|
-
*
|
|
2442
|
+
* Deletes a quota rule based on an API consumer or consumer group for an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
|
|
2435
2443
|
*
|
|
2436
2444
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
2437
2445
|
* @param headers - map
|
|
@@ -2457,10 +2465,10 @@ class Client extends openapi_core_1.default {
|
|
|
2457
2465
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteGatewayQuotaRuleResponse({}));
|
|
2458
2466
|
}
|
|
2459
2467
|
/**
|
|
2460
|
-
* Deletes a quota throttling rule
|
|
2468
|
+
* Deletes a quota throttling rule for a gateway.
|
|
2461
2469
|
*
|
|
2462
2470
|
* @remarks
|
|
2463
|
-
*
|
|
2471
|
+
* Deletes a quota rule based on an API consumer or consumer group for an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
|
|
2464
2472
|
*
|
|
2465
2473
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
2466
2474
|
* @returns DeleteGatewayQuotaRuleResponse
|
|
@@ -2523,6 +2531,9 @@ class Client extends openapi_core_1.default {
|
|
|
2523
2531
|
async deleteHttpApiWithOptions(httpApiId, request, headers, runtime) {
|
|
2524
2532
|
request.validate();
|
|
2525
2533
|
let query = {};
|
|
2534
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
2535
|
+
query["clientToken"] = request.clientToken;
|
|
2536
|
+
}
|
|
2526
2537
|
if (!$dara.isNull(request.dryRun)) {
|
|
2527
2538
|
query["dryRun"] = request.dryRun;
|
|
2528
2539
|
}
|
|
@@ -3785,7 +3796,7 @@ class Client extends openapi_core_1.default {
|
|
|
3785
3796
|
return await this.getGatewayQuotaRuleSubjectUsageWithOptions(gatewayId, ruleId, subjectId, request, headers, runtime);
|
|
3786
3797
|
}
|
|
3787
3798
|
/**
|
|
3788
|
-
* Retrieves HTTP API
|
|
3799
|
+
* Retrieves the information of an HTTP API.
|
|
3789
3800
|
*
|
|
3790
3801
|
* @param request - GetHttpApiRequest
|
|
3791
3802
|
* @param headers - map
|
|
@@ -3816,7 +3827,7 @@ class Client extends openapi_core_1.default {
|
|
|
3816
3827
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetHttpApiResponse({}));
|
|
3817
3828
|
}
|
|
3818
3829
|
/**
|
|
3819
|
-
* Retrieves HTTP API
|
|
3830
|
+
* Retrieves the information of an HTTP API.
|
|
3820
3831
|
*
|
|
3821
3832
|
* @param request - GetHttpApiRequest
|
|
3822
3833
|
* @returns GetHttpApiResponse
|
|
@@ -3827,7 +3838,7 @@ class Client extends openapi_core_1.default {
|
|
|
3827
3838
|
return await this.getHttpApiWithOptions(httpApiId, request, headers, runtime);
|
|
3828
3839
|
}
|
|
3829
3840
|
/**
|
|
3830
|
-
* Retrieves operation information.
|
|
3841
|
+
* Retrieves the API operation information.
|
|
3831
3842
|
*
|
|
3832
3843
|
* @param headers - map
|
|
3833
3844
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3851,7 +3862,7 @@ class Client extends openapi_core_1.default {
|
|
|
3851
3862
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetHttpApiOperationResponse({}));
|
|
3852
3863
|
}
|
|
3853
3864
|
/**
|
|
3854
|
-
* Retrieves operation information.
|
|
3865
|
+
* Retrieves the API operation information.
|
|
3855
3866
|
* @returns GetHttpApiOperationResponse
|
|
3856
3867
|
*/
|
|
3857
3868
|
async getHttpApiOperation(httpApiId, operationId) {
|
|
@@ -4449,7 +4460,7 @@ class Client extends openapi_core_1.default {
|
|
|
4449
4460
|
return await this.getTraceConfigWithOptions(gatewayId, request, headers, runtime);
|
|
4450
4461
|
}
|
|
4451
4462
|
/**
|
|
4452
|
-
* Imports an HTTP API.
|
|
4463
|
+
* Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
|
|
4453
4464
|
*
|
|
4454
4465
|
* @param request - ImportHttpApiRequest
|
|
4455
4466
|
* @param headers - map
|
|
@@ -4519,7 +4530,7 @@ class Client extends openapi_core_1.default {
|
|
|
4519
4530
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImportHttpApiResponse({}));
|
|
4520
4531
|
}
|
|
4521
4532
|
/**
|
|
4522
|
-
* Imports an HTTP API.
|
|
4533
|
+
* Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
|
|
4523
4534
|
*
|
|
4524
4535
|
* @param request - ImportHttpApiRequest
|
|
4525
4536
|
* @returns ImportHttpApiResponse
|
|
@@ -4864,7 +4875,7 @@ class Client extends openapi_core_1.default {
|
|
|
4864
4875
|
return await this.listBatchExportTasksWithOptions(request, headers, runtime);
|
|
4865
4876
|
}
|
|
4866
4877
|
/**
|
|
4867
|
-
* Retrieves
|
|
4878
|
+
* Retrieves a list of consumer authorization rules.
|
|
4868
4879
|
*
|
|
4869
4880
|
* @param request - ListConsumerAuthorizationRulesRequest
|
|
4870
4881
|
* @param headers - map
|
|
@@ -4901,7 +4912,7 @@ class Client extends openapi_core_1.default {
|
|
|
4901
4912
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListConsumerAuthorizationRulesResponse({}));
|
|
4902
4913
|
}
|
|
4903
4914
|
/**
|
|
4904
|
-
* Retrieves
|
|
4915
|
+
* Retrieves a list of consumer authorization rules.
|
|
4905
4916
|
*
|
|
4906
4917
|
* @param request - ListConsumerAuthorizationRulesRequest
|
|
4907
4918
|
* @returns ListConsumerAuthorizationRulesResponse
|
|
@@ -6286,7 +6297,7 @@ class Client extends openapi_core_1.default {
|
|
|
6286
6297
|
return await this.listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime);
|
|
6287
6298
|
}
|
|
6288
6299
|
/**
|
|
6289
|
-
* Retrieves the
|
|
6300
|
+
* Retrieves the plug-in mount list.
|
|
6290
6301
|
*
|
|
6291
6302
|
* @param request - ListPluginAttachmentsRequest
|
|
6292
6303
|
* @param headers - map
|
|
@@ -6341,7 +6352,7 @@ class Client extends openapi_core_1.default {
|
|
|
6341
6352
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginAttachmentsResponse({}));
|
|
6342
6353
|
}
|
|
6343
6354
|
/**
|
|
6344
|
-
* Retrieves the
|
|
6355
|
+
* Retrieves the plug-in mount list.
|
|
6345
6356
|
*
|
|
6346
6357
|
* @param request - ListPluginAttachmentsRequest
|
|
6347
6358
|
* @returns ListPluginAttachmentsResponse
|
|
@@ -8018,7 +8029,7 @@ class Client extends openapi_core_1.default {
|
|
|
8018
8029
|
* Updates a consumer authorization rule.
|
|
8019
8030
|
*
|
|
8020
8031
|
* @remarks
|
|
8021
|
-
*
|
|
8032
|
+
* This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
|
|
8022
8033
|
*
|
|
8023
8034
|
* @param request - UpdateConsumerAuthorizationRuleRequest
|
|
8024
8035
|
* @param headers - map
|
|
@@ -8058,7 +8069,7 @@ class Client extends openapi_core_1.default {
|
|
|
8058
8069
|
* Updates a consumer authorization rule.
|
|
8059
8070
|
*
|
|
8060
8071
|
* @remarks
|
|
8061
|
-
*
|
|
8072
|
+
* This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
|
|
8062
8073
|
*
|
|
8063
8074
|
* @param request - UpdateConsumerAuthorizationRuleRequest
|
|
8064
8075
|
* @returns UpdateConsumerAuthorizationRuleResponse
|