@alicloud/apig20240327 2.0.0 → 2.0.1
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 +89 -0
- package/dist/client.js +160 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +206 -0
package/src/client.ts
CHANGED
|
@@ -1253,6 +1253,95 @@ export class JwtIdentityConfig extends $tea.Model {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
+
export class ParentResourceInfo extends $tea.Model {
|
|
1257
|
+
apiInfo?: HttpApiApiInfo;
|
|
1258
|
+
resourceType?: string;
|
|
1259
|
+
static names(): { [key: string]: string } {
|
|
1260
|
+
return {
|
|
1261
|
+
apiInfo: 'apiInfo',
|
|
1262
|
+
resourceType: 'resourceType',
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
static types(): { [key: string]: any } {
|
|
1267
|
+
return {
|
|
1268
|
+
apiInfo: HttpApiApiInfo,
|
|
1269
|
+
resourceType: 'string',
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
constructor(map?: { [key: string]: any }) {
|
|
1274
|
+
super(map);
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
export class PluginClassInfo extends $tea.Model {
|
|
1279
|
+
alias?: string;
|
|
1280
|
+
configExample?: string;
|
|
1281
|
+
description?: string;
|
|
1282
|
+
executePriority?: number;
|
|
1283
|
+
executeStage?: string;
|
|
1284
|
+
imageName?: string;
|
|
1285
|
+
innerPlugin?: boolean;
|
|
1286
|
+
mode?: string;
|
|
1287
|
+
name?: string;
|
|
1288
|
+
pluginClassId?: string;
|
|
1289
|
+
source?: string;
|
|
1290
|
+
supportedMinGatewayVersion?: string;
|
|
1291
|
+
type?: string;
|
|
1292
|
+
version?: string;
|
|
1293
|
+
versionDescription?: string;
|
|
1294
|
+
wasmLanguage?: string;
|
|
1295
|
+
wasmUrl?: string;
|
|
1296
|
+
static names(): { [key: string]: string } {
|
|
1297
|
+
return {
|
|
1298
|
+
alias: 'alias',
|
|
1299
|
+
configExample: 'configExample',
|
|
1300
|
+
description: 'description',
|
|
1301
|
+
executePriority: 'executePriority',
|
|
1302
|
+
executeStage: 'executeStage',
|
|
1303
|
+
imageName: 'imageName',
|
|
1304
|
+
innerPlugin: 'innerPlugin',
|
|
1305
|
+
mode: 'mode',
|
|
1306
|
+
name: 'name',
|
|
1307
|
+
pluginClassId: 'pluginClassId',
|
|
1308
|
+
source: 'source',
|
|
1309
|
+
supportedMinGatewayVersion: 'supportedMinGatewayVersion',
|
|
1310
|
+
type: 'type',
|
|
1311
|
+
version: 'version',
|
|
1312
|
+
versionDescription: 'versionDescription',
|
|
1313
|
+
wasmLanguage: 'wasmLanguage',
|
|
1314
|
+
wasmUrl: 'wasmUrl',
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
static types(): { [key: string]: any } {
|
|
1319
|
+
return {
|
|
1320
|
+
alias: 'string',
|
|
1321
|
+
configExample: 'string',
|
|
1322
|
+
description: 'string',
|
|
1323
|
+
executePriority: 'number',
|
|
1324
|
+
executeStage: 'string',
|
|
1325
|
+
imageName: 'string',
|
|
1326
|
+
innerPlugin: 'boolean',
|
|
1327
|
+
mode: 'string',
|
|
1328
|
+
name: 'string',
|
|
1329
|
+
pluginClassId: 'string',
|
|
1330
|
+
source: 'string',
|
|
1331
|
+
supportedMinGatewayVersion: 'string',
|
|
1332
|
+
type: 'string',
|
|
1333
|
+
version: 'string',
|
|
1334
|
+
versionDescription: 'string',
|
|
1335
|
+
wasmLanguage: 'string',
|
|
1336
|
+
wasmUrl: 'string',
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
constructor(map?: { [key: string]: any }) {
|
|
1341
|
+
super(map);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1256
1345
|
export class PolicyClassInfo extends $tea.Model {
|
|
1257
1346
|
alias?: string;
|
|
1258
1347
|
attachableResourceTypes?: string[];
|
|
@@ -1388,6 +1477,34 @@ export class PolicyInfo extends $tea.Model {
|
|
|
1388
1477
|
}
|
|
1389
1478
|
}
|
|
1390
1479
|
|
|
1480
|
+
export class ResourceInfo extends $tea.Model {
|
|
1481
|
+
resourceId?: string;
|
|
1482
|
+
resourceName?: string;
|
|
1483
|
+
resourceType?: string;
|
|
1484
|
+
resourceVersion?: string;
|
|
1485
|
+
static names(): { [key: string]: string } {
|
|
1486
|
+
return {
|
|
1487
|
+
resourceId: 'resourceId',
|
|
1488
|
+
resourceName: 'resourceName',
|
|
1489
|
+
resourceType: 'resourceType',
|
|
1490
|
+
resourceVersion: 'resourceVersion',
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
static types(): { [key: string]: any } {
|
|
1495
|
+
return {
|
|
1496
|
+
resourceId: 'string',
|
|
1497
|
+
resourceName: 'string',
|
|
1498
|
+
resourceType: 'string',
|
|
1499
|
+
resourceVersion: 'string',
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
constructor(map?: { [key: string]: any }) {
|
|
1504
|
+
super(map);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1391
1508
|
export class ResourceStatistic extends $tea.Model {
|
|
1392
1509
|
resourceCount?: number;
|
|
1393
1510
|
resourceType?: string;
|
|
@@ -1686,6 +1803,28 @@ export class SubDomainInfo extends $tea.Model {
|
|
|
1686
1803
|
}
|
|
1687
1804
|
}
|
|
1688
1805
|
|
|
1806
|
+
export class TlsCipherSuitesConfig extends $tea.Model {
|
|
1807
|
+
cipherSuites?: TlsCipherSuitesConfigCipherSuites[];
|
|
1808
|
+
configType?: string;
|
|
1809
|
+
static names(): { [key: string]: string } {
|
|
1810
|
+
return {
|
|
1811
|
+
cipherSuites: 'cipherSuites',
|
|
1812
|
+
configType: 'configType',
|
|
1813
|
+
};
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
static types(): { [key: string]: any } {
|
|
1817
|
+
return {
|
|
1818
|
+
cipherSuites: { 'type': 'array', 'itemType': TlsCipherSuitesConfigCipherSuites },
|
|
1819
|
+
configType: 'string',
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
constructor(map?: { [key: string]: any }) {
|
|
1824
|
+
super(map);
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1689
1828
|
export class AddGatewaySecurityGroupRuleRequest extends $tea.Model {
|
|
1690
1829
|
/**
|
|
1691
1830
|
* @remarks
|
|
@@ -1857,6 +1996,7 @@ export class CreateDomainRequest extends $tea.Model {
|
|
|
1857
1996
|
*/
|
|
1858
1997
|
protocol?: string;
|
|
1859
1998
|
resourceGroupId?: string;
|
|
1999
|
+
tlsCipherSuitesConfig?: TlsCipherSuitesConfig;
|
|
1860
2000
|
/**
|
|
1861
2001
|
* @remarks
|
|
1862
2002
|
* Maximum TLS protocol version, supports up to TLS 1.3.
|
|
@@ -1882,6 +2022,7 @@ export class CreateDomainRequest extends $tea.Model {
|
|
|
1882
2022
|
name: 'name',
|
|
1883
2023
|
protocol: 'protocol',
|
|
1884
2024
|
resourceGroupId: 'resourceGroupId',
|
|
2025
|
+
tlsCipherSuitesConfig: 'tlsCipherSuitesConfig',
|
|
1885
2026
|
tlsMax: 'tlsMax',
|
|
1886
2027
|
tlsMin: 'tlsMin',
|
|
1887
2028
|
};
|
|
@@ -1896,6 +2037,7 @@ export class CreateDomainRequest extends $tea.Model {
|
|
|
1896
2037
|
name: 'string',
|
|
1897
2038
|
protocol: 'string',
|
|
1898
2039
|
resourceGroupId: 'string',
|
|
2040
|
+
tlsCipherSuitesConfig: TlsCipherSuitesConfig,
|
|
1899
2041
|
tlsMax: 'string',
|
|
1900
2042
|
tlsMin: 'string',
|
|
1901
2043
|
};
|
|
@@ -3842,6 +3984,7 @@ export class ListHttpApiOperationsRequest extends $tea.Model {
|
|
|
3842
3984
|
* cs-xxx
|
|
3843
3985
|
*/
|
|
3844
3986
|
withConsumerInfoById?: string;
|
|
3987
|
+
withPluginAttachmentByPluginId?: string;
|
|
3845
3988
|
static names(): { [key: string]: string } {
|
|
3846
3989
|
return {
|
|
3847
3990
|
consumerAuthorizationRuleId: 'consumerAuthorizationRuleId',
|
|
@@ -3853,6 +3996,7 @@ export class ListHttpApiOperationsRequest extends $tea.Model {
|
|
|
3853
3996
|
pathLike: 'pathLike',
|
|
3854
3997
|
withConsumerInEnvironmentId: 'withConsumerInEnvironmentId',
|
|
3855
3998
|
withConsumerInfoById: 'withConsumerInfoById',
|
|
3999
|
+
withPluginAttachmentByPluginId: 'withPluginAttachmentByPluginId',
|
|
3856
4000
|
};
|
|
3857
4001
|
}
|
|
3858
4002
|
|
|
@@ -3867,6 +4011,7 @@ export class ListHttpApiOperationsRequest extends $tea.Model {
|
|
|
3867
4011
|
pathLike: 'string',
|
|
3868
4012
|
withConsumerInEnvironmentId: 'string',
|
|
3869
4013
|
withConsumerInfoById: 'string',
|
|
4014
|
+
withPluginAttachmentByPluginId: 'string',
|
|
3870
4015
|
};
|
|
3871
4016
|
}
|
|
3872
4017
|
|
|
@@ -4015,6 +4160,7 @@ export class ListHttpApisRequest extends $tea.Model {
|
|
|
4015
4160
|
* env-xxx
|
|
4016
4161
|
*/
|
|
4017
4162
|
withAuthPolicyInEnvironmentId?: string;
|
|
4163
|
+
withAuthPolicyList?: boolean;
|
|
4018
4164
|
/**
|
|
4019
4165
|
* @remarks
|
|
4020
4166
|
* Each API information in the response carries a list of authorization rules for the specified consumer ID.
|
|
@@ -4024,6 +4170,8 @@ export class ListHttpApisRequest extends $tea.Model {
|
|
|
4024
4170
|
*/
|
|
4025
4171
|
withConsumerInfoById?: string;
|
|
4026
4172
|
withEnvironmentInfo?: boolean;
|
|
4173
|
+
withEnvironmentInfoById?: string;
|
|
4174
|
+
withPluginAttachmentByPluginId?: string;
|
|
4027
4175
|
static names(): { [key: string]: string } {
|
|
4028
4176
|
return {
|
|
4029
4177
|
gatewayId: 'gatewayId',
|
|
@@ -4034,8 +4182,11 @@ export class ListHttpApisRequest extends $tea.Model {
|
|
|
4034
4182
|
resourceGroupId: 'resourceGroupId',
|
|
4035
4183
|
types: 'types',
|
|
4036
4184
|
withAuthPolicyInEnvironmentId: 'withAuthPolicyInEnvironmentId',
|
|
4185
|
+
withAuthPolicyList: 'withAuthPolicyList',
|
|
4037
4186
|
withConsumerInfoById: 'withConsumerInfoById',
|
|
4038
4187
|
withEnvironmentInfo: 'withEnvironmentInfo',
|
|
4188
|
+
withEnvironmentInfoById: 'withEnvironmentInfoById',
|
|
4189
|
+
withPluginAttachmentByPluginId: 'withPluginAttachmentByPluginId',
|
|
4039
4190
|
};
|
|
4040
4191
|
}
|
|
4041
4192
|
|
|
@@ -4049,8 +4200,11 @@ export class ListHttpApisRequest extends $tea.Model {
|
|
|
4049
4200
|
resourceGroupId: 'string',
|
|
4050
4201
|
types: 'string',
|
|
4051
4202
|
withAuthPolicyInEnvironmentId: 'string',
|
|
4203
|
+
withAuthPolicyList: 'boolean',
|
|
4052
4204
|
withConsumerInfoById: 'string',
|
|
4053
4205
|
withEnvironmentInfo: 'boolean',
|
|
4206
|
+
withEnvironmentInfoById: 'string',
|
|
4207
|
+
withPluginAttachmentByPluginId: 'string',
|
|
4054
4208
|
};
|
|
4055
4209
|
}
|
|
4056
4210
|
|
|
@@ -4183,6 +4337,7 @@ export class UpdateDomainRequest extends $tea.Model {
|
|
|
4183
4337
|
* HTTP
|
|
4184
4338
|
*/
|
|
4185
4339
|
protocol?: string;
|
|
4340
|
+
tlsCipherSuitesConfig?: TlsCipherSuitesConfig;
|
|
4186
4341
|
/**
|
|
4187
4342
|
* @remarks
|
|
4188
4343
|
* Maximum TLS protocol version, supports up to TLS 1.3.
|
|
@@ -4206,6 +4361,7 @@ export class UpdateDomainRequest extends $tea.Model {
|
|
|
4206
4361
|
forceHttps: 'forceHttps',
|
|
4207
4362
|
http2Option: 'http2Option',
|
|
4208
4363
|
protocol: 'protocol',
|
|
4364
|
+
tlsCipherSuitesConfig: 'tlsCipherSuitesConfig',
|
|
4209
4365
|
tlsMax: 'tlsMax',
|
|
4210
4366
|
tlsMin: 'tlsMin',
|
|
4211
4367
|
};
|
|
@@ -4218,6 +4374,7 @@ export class UpdateDomainRequest extends $tea.Model {
|
|
|
4218
4374
|
forceHttps: 'boolean',
|
|
4219
4375
|
http2Option: 'string',
|
|
4220
4376
|
protocol: 'string',
|
|
4377
|
+
tlsCipherSuitesConfig: TlsCipherSuitesConfig,
|
|
4221
4378
|
tlsMax: 'string',
|
|
4222
4379
|
tlsMin: 'string',
|
|
4223
4380
|
};
|
|
@@ -6183,6 +6340,28 @@ export class ServicePorts extends $tea.Model {
|
|
|
6183
6340
|
}
|
|
6184
6341
|
}
|
|
6185
6342
|
|
|
6343
|
+
export class TlsCipherSuitesConfigCipherSuites extends $tea.Model {
|
|
6344
|
+
name?: string;
|
|
6345
|
+
supportVersions?: string[];
|
|
6346
|
+
static names(): { [key: string]: string } {
|
|
6347
|
+
return {
|
|
6348
|
+
name: 'name',
|
|
6349
|
+
supportVersions: 'supportVersions',
|
|
6350
|
+
};
|
|
6351
|
+
}
|
|
6352
|
+
|
|
6353
|
+
static types(): { [key: string]: any } {
|
|
6354
|
+
return {
|
|
6355
|
+
name: 'string',
|
|
6356
|
+
supportVersions: { 'type': 'array', 'itemType': 'string' },
|
|
6357
|
+
};
|
|
6358
|
+
}
|
|
6359
|
+
|
|
6360
|
+
constructor(map?: { [key: string]: any }) {
|
|
6361
|
+
super(map);
|
|
6362
|
+
}
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6186
6365
|
export class CreateDomainResponseBodyData extends $tea.Model {
|
|
6187
6366
|
/**
|
|
6188
6367
|
* @remarks
|
|
@@ -6542,6 +6721,7 @@ export class GetDomainResponseBodyData extends $tea.Model {
|
|
|
6542
6721
|
*/
|
|
6543
6722
|
sans?: string;
|
|
6544
6723
|
statisticsInfo?: GetDomainResponseBodyDataStatisticsInfo;
|
|
6724
|
+
tlsCipherSuitesConfig?: TlsCipherSuitesConfig;
|
|
6545
6725
|
/**
|
|
6546
6726
|
* @remarks
|
|
6547
6727
|
* Maximum TLS protocol version, supports up to TLS 1.3.
|
|
@@ -6586,6 +6766,7 @@ export class GetDomainResponseBodyData extends $tea.Model {
|
|
|
6586
6766
|
resourceGroupId: 'resourceGroupId',
|
|
6587
6767
|
sans: 'sans',
|
|
6588
6768
|
statisticsInfo: 'statisticsInfo',
|
|
6769
|
+
tlsCipherSuitesConfig: 'tlsCipherSuitesConfig',
|
|
6589
6770
|
tlsMax: 'tlsMax',
|
|
6590
6771
|
tlsMin: 'tlsMin',
|
|
6591
6772
|
updatetimestamp: 'updatetimestamp',
|
|
@@ -6612,6 +6793,7 @@ export class GetDomainResponseBodyData extends $tea.Model {
|
|
|
6612
6793
|
resourceGroupId: 'string',
|
|
6613
6794
|
sans: 'string',
|
|
6614
6795
|
statisticsInfo: GetDomainResponseBodyDataStatisticsInfo,
|
|
6796
|
+
tlsCipherSuitesConfig: TlsCipherSuitesConfig,
|
|
6615
6797
|
tlsMax: 'string',
|
|
6616
6798
|
tlsMin: 'string',
|
|
6617
6799
|
updatetimestamp: 'number',
|
|
@@ -8335,6 +8517,10 @@ export default class Client extends OpenApi {
|
|
|
8335
8517
|
body["resourceGroupId"] = request.resourceGroupId;
|
|
8336
8518
|
}
|
|
8337
8519
|
|
|
8520
|
+
if (!Util.isUnset(request.tlsCipherSuitesConfig)) {
|
|
8521
|
+
body["tlsCipherSuitesConfig"] = request.tlsCipherSuitesConfig;
|
|
8522
|
+
}
|
|
8523
|
+
|
|
8338
8524
|
if (!Util.isUnset(request.tlsMax)) {
|
|
8339
8525
|
body["tlsMax"] = request.tlsMax;
|
|
8340
8526
|
}
|
|
@@ -9230,6 +9416,10 @@ export default class Client extends OpenApi {
|
|
|
9230
9416
|
query["withConsumerInfoById"] = request.withConsumerInfoById;
|
|
9231
9417
|
}
|
|
9232
9418
|
|
|
9419
|
+
if (!Util.isUnset(request.withPluginAttachmentByPluginId)) {
|
|
9420
|
+
query["withPluginAttachmentByPluginId"] = request.withPluginAttachmentByPluginId;
|
|
9421
|
+
}
|
|
9422
|
+
|
|
9233
9423
|
let req = new $OpenApi.OpenApiRequest({
|
|
9234
9424
|
headers: headers,
|
|
9235
9425
|
query: OpenApiUtil.query(query),
|
|
@@ -9303,6 +9493,10 @@ export default class Client extends OpenApi {
|
|
|
9303
9493
|
query["withAuthPolicyInEnvironmentId"] = request.withAuthPolicyInEnvironmentId;
|
|
9304
9494
|
}
|
|
9305
9495
|
|
|
9496
|
+
if (!Util.isUnset(request.withAuthPolicyList)) {
|
|
9497
|
+
query["withAuthPolicyList"] = request.withAuthPolicyList;
|
|
9498
|
+
}
|
|
9499
|
+
|
|
9306
9500
|
if (!Util.isUnset(request.withConsumerInfoById)) {
|
|
9307
9501
|
query["withConsumerInfoById"] = request.withConsumerInfoById;
|
|
9308
9502
|
}
|
|
@@ -9311,6 +9505,14 @@ export default class Client extends OpenApi {
|
|
|
9311
9505
|
query["withEnvironmentInfo"] = request.withEnvironmentInfo;
|
|
9312
9506
|
}
|
|
9313
9507
|
|
|
9508
|
+
if (!Util.isUnset(request.withEnvironmentInfoById)) {
|
|
9509
|
+
query["withEnvironmentInfoById"] = request.withEnvironmentInfoById;
|
|
9510
|
+
}
|
|
9511
|
+
|
|
9512
|
+
if (!Util.isUnset(request.withPluginAttachmentByPluginId)) {
|
|
9513
|
+
query["withPluginAttachmentByPluginId"] = request.withPluginAttachmentByPluginId;
|
|
9514
|
+
}
|
|
9515
|
+
|
|
9314
9516
|
let req = new $OpenApi.OpenApiRequest({
|
|
9315
9517
|
headers: headers,
|
|
9316
9518
|
query: OpenApiUtil.query(query),
|
|
@@ -9372,6 +9574,10 @@ export default class Client extends OpenApi {
|
|
|
9372
9574
|
body["protocol"] = request.protocol;
|
|
9373
9575
|
}
|
|
9374
9576
|
|
|
9577
|
+
if (!Util.isUnset(request.tlsCipherSuitesConfig)) {
|
|
9578
|
+
body["tlsCipherSuitesConfig"] = request.tlsCipherSuitesConfig;
|
|
9579
|
+
}
|
|
9580
|
+
|
|
9375
9581
|
if (!Util.isUnset(request.tlsMax)) {
|
|
9376
9582
|
body["tlsMax"] = request.tlsMax;
|
|
9377
9583
|
}
|