@alicloud/waf-openapi20211001 4.4.0 → 4.5.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 +30 -0
- package/dist/client.js +96 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCertsRequest.d.ts +66 -0
- package/dist/models/CreateCertsRequest.js +68 -0
- package/dist/models/CreateCertsRequest.js.map +1 -0
- package/dist/models/CreateCertsResponse.d.ts +19 -0
- package/dist/models/CreateCertsResponse.js +69 -0
- package/dist/models/CreateCertsResponse.js.map +1 -0
- package/dist/models/CreateCertsResponseBody.d.ts +29 -0
- package/dist/models/CreateCertsResponseBody.js +60 -0
- package/dist/models/CreateCertsResponseBody.js.map +1 -0
- package/dist/models/DescribeDomainUsedPortsRequest.d.ts +26 -0
- package/dist/models/DescribeDomainUsedPortsRequest.js +60 -0
- package/dist/models/DescribeDomainUsedPortsRequest.js.map +1 -0
- package/dist/models/DescribeDomainUsedPortsResponse.d.ts +19 -0
- package/dist/models/DescribeDomainUsedPortsResponse.js +69 -0
- package/dist/models/DescribeDomainUsedPortsResponse.js.map +1 -0
- package/dist/models/DescribeDomainUsedPortsResponseBody.d.ts +19 -0
- package/dist/models/DescribeDomainUsedPortsResponseBody.js +63 -0
- package/dist/models/DescribeDomainUsedPortsResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +23 -11
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +108 -0
- package/src/models/CreateCertsRequest.ts +89 -0
- package/src/models/CreateCertsResponse.ts +40 -0
- package/src/models/CreateCertsResponseBody.ts +44 -0
- package/src/models/DescribeDomainUsedPortsRequest.ts +41 -0
- package/src/models/DescribeDomainUsedPortsResponse.ts +40 -0
- package/src/models/DescribeDomainUsedPortsResponseBody.ts +37 -0
- package/src/models/model.ts +6 -0
package/dist/client.d.ts
CHANGED
|
@@ -68,6 +68,21 @@ export default class Client extends OpenApi {
|
|
|
68
68
|
* @returns CreateApiExportResponse
|
|
69
69
|
*/
|
|
70
70
|
createApiExport(request: $_model.CreateApiExportRequest): Promise<$_model.CreateApiExportResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Uploads a certificate that uses an internationally accepted algorithm for a domain name added to Web Application Firewall (WAF) in CNAME record mode.
|
|
73
|
+
*
|
|
74
|
+
* @param request - CreateCertsRequest
|
|
75
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
76
|
+
* @returns CreateCertsResponse
|
|
77
|
+
*/
|
|
78
|
+
createCertsWithOptions(request: $_model.CreateCertsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCertsResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Uploads a certificate that uses an internationally accepted algorithm for a domain name added to Web Application Firewall (WAF) in CNAME record mode.
|
|
81
|
+
*
|
|
82
|
+
* @param request - CreateCertsRequest
|
|
83
|
+
* @returns CreateCertsResponse
|
|
84
|
+
*/
|
|
85
|
+
createCerts(request: $_model.CreateCertsRequest): Promise<$_model.CreateCertsResponse>;
|
|
71
86
|
/**
|
|
72
87
|
* Adds a service to Web Application Firewall (WAF). This operation is supported for only the Elastic Compute Service (ECS) and Classic Load Balancer (CLB) services.
|
|
73
88
|
*
|
|
@@ -1019,6 +1034,21 @@ export default class Client extends OpenApi {
|
|
|
1019
1034
|
* @returns DescribeDomainDetailResponse
|
|
1020
1035
|
*/
|
|
1021
1036
|
describeDomainDetail(request: $_model.DescribeDomainDetailRequest): Promise<$_model.DescribeDomainDetailResponse>;
|
|
1037
|
+
/**
|
|
1038
|
+
* 查询域名已使用的端口
|
|
1039
|
+
*
|
|
1040
|
+
* @param request - DescribeDomainUsedPortsRequest
|
|
1041
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1042
|
+
* @returns DescribeDomainUsedPortsResponse
|
|
1043
|
+
*/
|
|
1044
|
+
describeDomainUsedPortsWithOptions(request: $_model.DescribeDomainUsedPortsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDomainUsedPortsResponse>;
|
|
1045
|
+
/**
|
|
1046
|
+
* 查询域名已使用的端口
|
|
1047
|
+
*
|
|
1048
|
+
* @param request - DescribeDomainUsedPortsRequest
|
|
1049
|
+
* @returns DescribeDomainUsedPortsResponse
|
|
1050
|
+
*/
|
|
1051
|
+
describeDomainUsedPorts(request: $_model.DescribeDomainUsedPortsRequest): Promise<$_model.DescribeDomainUsedPortsResponse>;
|
|
1022
1052
|
/**
|
|
1023
1053
|
* Queries the domain names that are added to Web Application Firewall (WAF).
|
|
1024
1054
|
*
|
package/dist/client.js
CHANGED
|
@@ -297,6 +297,60 @@ class Client extends openapi_core_1.default {
|
|
|
297
297
|
let runtime = new $dara.RuntimeOptions({});
|
|
298
298
|
return await this.createApiExportWithOptions(request, runtime);
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Uploads a certificate that uses an internationally accepted algorithm for a domain name added to Web Application Firewall (WAF) in CNAME record mode.
|
|
302
|
+
*
|
|
303
|
+
* @param request - CreateCertsRequest
|
|
304
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
305
|
+
* @returns CreateCertsResponse
|
|
306
|
+
*/
|
|
307
|
+
async createCertsWithOptions(request, runtime) {
|
|
308
|
+
request.validate();
|
|
309
|
+
let query = {};
|
|
310
|
+
if (!$dara.isNull(request.certContent)) {
|
|
311
|
+
query["CertContent"] = request.certContent;
|
|
312
|
+
}
|
|
313
|
+
if (!$dara.isNull(request.certKey)) {
|
|
314
|
+
query["CertKey"] = request.certKey;
|
|
315
|
+
}
|
|
316
|
+
if (!$dara.isNull(request.certName)) {
|
|
317
|
+
query["CertName"] = request.certName;
|
|
318
|
+
}
|
|
319
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
320
|
+
query["InstanceId"] = request.instanceId;
|
|
321
|
+
}
|
|
322
|
+
if (!$dara.isNull(request.regionId)) {
|
|
323
|
+
query["RegionId"] = request.regionId;
|
|
324
|
+
}
|
|
325
|
+
if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
|
|
326
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
327
|
+
}
|
|
328
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
329
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
330
|
+
});
|
|
331
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
332
|
+
action: "CreateCerts",
|
|
333
|
+
version: "2021-10-01",
|
|
334
|
+
protocol: "HTTPS",
|
|
335
|
+
pathname: "/",
|
|
336
|
+
method: "POST",
|
|
337
|
+
authType: "AK",
|
|
338
|
+
style: "RPC",
|
|
339
|
+
reqBodyType: "formData",
|
|
340
|
+
bodyType: "json",
|
|
341
|
+
});
|
|
342
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCertsResponse({}));
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Uploads a certificate that uses an internationally accepted algorithm for a domain name added to Web Application Firewall (WAF) in CNAME record mode.
|
|
346
|
+
*
|
|
347
|
+
* @param request - CreateCertsRequest
|
|
348
|
+
* @returns CreateCertsResponse
|
|
349
|
+
*/
|
|
350
|
+
async createCerts(request) {
|
|
351
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
352
|
+
return await this.createCertsWithOptions(request, runtime);
|
|
353
|
+
}
|
|
300
354
|
/**
|
|
301
355
|
* Adds a service to Web Application Firewall (WAF). This operation is supported for only the Elastic Compute Service (ECS) and Classic Load Balancer (CLB) services.
|
|
302
356
|
*
|
|
@@ -3914,6 +3968,48 @@ class Client extends openapi_core_1.default {
|
|
|
3914
3968
|
let runtime = new $dara.RuntimeOptions({});
|
|
3915
3969
|
return await this.describeDomainDetailWithOptions(request, runtime);
|
|
3916
3970
|
}
|
|
3971
|
+
/**
|
|
3972
|
+
* 查询域名已使用的端口
|
|
3973
|
+
*
|
|
3974
|
+
* @param request - DescribeDomainUsedPortsRequest
|
|
3975
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3976
|
+
* @returns DescribeDomainUsedPortsResponse
|
|
3977
|
+
*/
|
|
3978
|
+
async describeDomainUsedPortsWithOptions(request, runtime) {
|
|
3979
|
+
request.validate();
|
|
3980
|
+
let query = {};
|
|
3981
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
3982
|
+
query["InstanceId"] = request.instanceId;
|
|
3983
|
+
}
|
|
3984
|
+
if (!$dara.isNull(request.regionId)) {
|
|
3985
|
+
query["RegionId"] = request.regionId;
|
|
3986
|
+
}
|
|
3987
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3988
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3989
|
+
});
|
|
3990
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3991
|
+
action: "DescribeDomainUsedPorts",
|
|
3992
|
+
version: "2021-10-01",
|
|
3993
|
+
protocol: "HTTPS",
|
|
3994
|
+
pathname: "/",
|
|
3995
|
+
method: "POST",
|
|
3996
|
+
authType: "AK",
|
|
3997
|
+
style: "RPC",
|
|
3998
|
+
reqBodyType: "formData",
|
|
3999
|
+
bodyType: "json",
|
|
4000
|
+
});
|
|
4001
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDomainUsedPortsResponse({}));
|
|
4002
|
+
}
|
|
4003
|
+
/**
|
|
4004
|
+
* 查询域名已使用的端口
|
|
4005
|
+
*
|
|
4006
|
+
* @param request - DescribeDomainUsedPortsRequest
|
|
4007
|
+
* @returns DescribeDomainUsedPortsResponse
|
|
4008
|
+
*/
|
|
4009
|
+
async describeDomainUsedPorts(request) {
|
|
4010
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4011
|
+
return await this.describeDomainUsedPortsWithOptions(request, runtime);
|
|
4012
|
+
}
|
|
3917
4013
|
/**
|
|
3918
4014
|
* Queries the domain names that are added to Web Application Firewall (WAF).
|
|
3919
4015
|
*
|