@alicloud/esa20240910 2.8.0 → 2.8.2
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 +280 -10
- package/dist/client.js +137 -14
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +350 -10
package/src/client.ts
CHANGED
|
@@ -114,11 +114,13 @@ export class WafRuleConfig extends $tea.Model {
|
|
|
114
114
|
managedRulesets?: WafRuleConfigManagedRulesets[];
|
|
115
115
|
match?: WafRuleMatch;
|
|
116
116
|
name?: string;
|
|
117
|
+
notes?: string;
|
|
117
118
|
rateLimit?: WafRuleConfigRateLimit;
|
|
118
119
|
sigchl?: string[];
|
|
119
120
|
status?: string;
|
|
120
121
|
timer?: WafTimer;
|
|
121
122
|
type?: string;
|
|
123
|
+
value?: string;
|
|
122
124
|
static names(): { [key: string]: string } {
|
|
123
125
|
return {
|
|
124
126
|
action: 'Action',
|
|
@@ -132,11 +134,13 @@ export class WafRuleConfig extends $tea.Model {
|
|
|
132
134
|
managedRulesets: 'ManagedRulesets',
|
|
133
135
|
match: 'Match',
|
|
134
136
|
name: 'Name',
|
|
137
|
+
notes: 'Notes',
|
|
135
138
|
rateLimit: 'RateLimit',
|
|
136
139
|
sigchl: 'Sigchl',
|
|
137
140
|
status: 'Status',
|
|
138
141
|
timer: 'Timer',
|
|
139
142
|
type: 'Type',
|
|
143
|
+
value: 'Value',
|
|
140
144
|
};
|
|
141
145
|
}
|
|
142
146
|
|
|
@@ -153,11 +157,13 @@ export class WafRuleConfig extends $tea.Model {
|
|
|
153
157
|
managedRulesets: { 'type': 'array', 'itemType': WafRuleConfigManagedRulesets },
|
|
154
158
|
match: WafRuleMatch,
|
|
155
159
|
name: 'string',
|
|
160
|
+
notes: 'string',
|
|
156
161
|
rateLimit: WafRuleConfigRateLimit,
|
|
157
162
|
sigchl: { 'type': 'array', 'itemType': 'string' },
|
|
158
163
|
status: 'string',
|
|
159
164
|
timer: WafTimer,
|
|
160
165
|
type: 'string',
|
|
166
|
+
value: 'string',
|
|
161
167
|
};
|
|
162
168
|
}
|
|
163
169
|
|
|
@@ -243,12 +249,14 @@ export class WafRuleMatch2 extends $tea.Model {
|
|
|
243
249
|
export class WafSiteSettings extends $tea.Model {
|
|
244
250
|
addBotProtectionHeaders?: WafSiteSettingsAddBotProtectionHeaders;
|
|
245
251
|
addSecurityHeaders?: WafSiteSettingsAddSecurityHeaders;
|
|
252
|
+
botManagement?: WafSiteSettingsBotManagement;
|
|
246
253
|
clientIpIdentifier?: WafSiteSettingsClientIpIdentifier;
|
|
247
254
|
securityLevel?: WafSiteSettingsSecurityLevel;
|
|
248
255
|
static names(): { [key: string]: string } {
|
|
249
256
|
return {
|
|
250
257
|
addBotProtectionHeaders: 'AddBotProtectionHeaders',
|
|
251
258
|
addSecurityHeaders: 'AddSecurityHeaders',
|
|
259
|
+
botManagement: 'BotManagement',
|
|
252
260
|
clientIpIdentifier: 'ClientIpIdentifier',
|
|
253
261
|
securityLevel: 'SecurityLevel',
|
|
254
262
|
};
|
|
@@ -258,6 +266,7 @@ export class WafSiteSettings extends $tea.Model {
|
|
|
258
266
|
return {
|
|
259
267
|
addBotProtectionHeaders: WafSiteSettingsAddBotProtectionHeaders,
|
|
260
268
|
addSecurityHeaders: WafSiteSettingsAddSecurityHeaders,
|
|
269
|
+
botManagement: WafSiteSettingsBotManagement,
|
|
261
270
|
clientIpIdentifier: WafSiteSettingsClientIpIdentifier,
|
|
262
271
|
securityLevel: WafSiteSettingsSecurityLevel,
|
|
263
272
|
};
|
|
@@ -7333,6 +7342,8 @@ export class CreateWaitingRoomRuleResponse extends $tea.Model {
|
|
|
7333
7342
|
export class DeleteCertificateRequest extends $tea.Model {
|
|
7334
7343
|
/**
|
|
7335
7344
|
* @remarks
|
|
7345
|
+
* The certificate ID.
|
|
7346
|
+
*
|
|
7336
7347
|
* This parameter is required.
|
|
7337
7348
|
*
|
|
7338
7349
|
* @example
|
|
@@ -7341,6 +7352,8 @@ export class DeleteCertificateRequest extends $tea.Model {
|
|
|
7341
7352
|
id?: string;
|
|
7342
7353
|
/**
|
|
7343
7354
|
* @remarks
|
|
7355
|
+
* The website ID, which can be obtained by calling the [ListSites](~~ListSites~~) operation.
|
|
7356
|
+
*
|
|
7344
7357
|
* This parameter is required.
|
|
7345
7358
|
*
|
|
7346
7359
|
* @example
|
|
@@ -7368,21 +7381,33 @@ export class DeleteCertificateRequest extends $tea.Model {
|
|
|
7368
7381
|
|
|
7369
7382
|
export class DeleteCertificateResponseBody extends $tea.Model {
|
|
7370
7383
|
/**
|
|
7384
|
+
* @remarks
|
|
7385
|
+
* The certificate ID.
|
|
7386
|
+
*
|
|
7371
7387
|
* @example
|
|
7372
7388
|
* babaded901474b9693acf530e0fb1d95
|
|
7373
7389
|
*/
|
|
7374
7390
|
id?: string;
|
|
7375
7391
|
/**
|
|
7392
|
+
* @remarks
|
|
7393
|
+
* The request ID.
|
|
7394
|
+
*
|
|
7376
7395
|
* @example
|
|
7377
7396
|
* F32C57AA-7BF8-49AE-A2CC-9F42390F5A19
|
|
7378
7397
|
*/
|
|
7379
7398
|
requestId?: string;
|
|
7380
7399
|
/**
|
|
7400
|
+
* @remarks
|
|
7401
|
+
* The website ID.
|
|
7402
|
+
*
|
|
7381
7403
|
* @example
|
|
7382
7404
|
* 1234567890123
|
|
7383
7405
|
*/
|
|
7384
7406
|
siteId?: number;
|
|
7385
7407
|
/**
|
|
7408
|
+
* @remarks
|
|
7409
|
+
* The website name.
|
|
7410
|
+
*
|
|
7386
7411
|
* @example
|
|
7387
7412
|
* example.com
|
|
7388
7413
|
*/
|
|
@@ -7438,6 +7463,8 @@ export class DeleteCertificateResponse extends $tea.Model {
|
|
|
7438
7463
|
export class DeleteClientCaCertificateRequest extends $tea.Model {
|
|
7439
7464
|
/**
|
|
7440
7465
|
* @remarks
|
|
7466
|
+
* The certificate ID.
|
|
7467
|
+
*
|
|
7441
7468
|
* This parameter is required.
|
|
7442
7469
|
*
|
|
7443
7470
|
* @example
|
|
@@ -7446,6 +7473,8 @@ export class DeleteClientCaCertificateRequest extends $tea.Model {
|
|
|
7446
7473
|
id?: string;
|
|
7447
7474
|
/**
|
|
7448
7475
|
* @remarks
|
|
7476
|
+
* The website ID.
|
|
7477
|
+
*
|
|
7449
7478
|
* This parameter is required.
|
|
7450
7479
|
*
|
|
7451
7480
|
* @example
|
|
@@ -7473,21 +7502,33 @@ export class DeleteClientCaCertificateRequest extends $tea.Model {
|
|
|
7473
7502
|
|
|
7474
7503
|
export class DeleteClientCaCertificateResponseBody extends $tea.Model {
|
|
7475
7504
|
/**
|
|
7505
|
+
* @remarks
|
|
7506
|
+
* The certificate ID.
|
|
7507
|
+
*
|
|
7476
7508
|
* @example
|
|
7477
7509
|
* baba39055622c008b90285a8838ed09a
|
|
7478
7510
|
*/
|
|
7479
7511
|
id?: string;
|
|
7480
7512
|
/**
|
|
7513
|
+
* @remarks
|
|
7514
|
+
* The request ID.
|
|
7515
|
+
*
|
|
7481
7516
|
* @example
|
|
7482
7517
|
* CB1A380B-09F0-41BB-280B-72F8FD6DA2FE
|
|
7483
7518
|
*/
|
|
7484
7519
|
requestId?: string;
|
|
7485
7520
|
/**
|
|
7521
|
+
* @remarks
|
|
7522
|
+
* The website ID.
|
|
7523
|
+
*
|
|
7486
7524
|
* @example
|
|
7487
7525
|
* 1234567890123
|
|
7488
7526
|
*/
|
|
7489
7527
|
siteId?: number;
|
|
7490
7528
|
/**
|
|
7529
|
+
* @remarks
|
|
7530
|
+
* The website name.
|
|
7531
|
+
*
|
|
7491
7532
|
* @example
|
|
7492
7533
|
* example.com
|
|
7493
7534
|
*/
|
|
@@ -11532,6 +11573,8 @@ export class GetClientCaCertificateResponse extends $tea.Model {
|
|
|
11532
11573
|
export class GetClientCertificateRequest extends $tea.Model {
|
|
11533
11574
|
/**
|
|
11534
11575
|
* @remarks
|
|
11576
|
+
* The certificate ID.
|
|
11577
|
+
*
|
|
11535
11578
|
* This parameter is required.
|
|
11536
11579
|
*
|
|
11537
11580
|
* @example
|
|
@@ -11540,6 +11583,8 @@ export class GetClientCertificateRequest extends $tea.Model {
|
|
|
11540
11583
|
id?: string;
|
|
11541
11584
|
/**
|
|
11542
11585
|
* @remarks
|
|
11586
|
+
* The website ID.
|
|
11587
|
+
*
|
|
11543
11588
|
* This parameter is required.
|
|
11544
11589
|
*
|
|
11545
11590
|
* @example
|
|
@@ -11567,27 +11612,46 @@ export class GetClientCertificateRequest extends $tea.Model {
|
|
|
11567
11612
|
|
|
11568
11613
|
export class GetClientCertificateResponseBody extends $tea.Model {
|
|
11569
11614
|
/**
|
|
11615
|
+
* @remarks
|
|
11616
|
+
* The certificate content.
|
|
11617
|
+
*
|
|
11570
11618
|
* @example
|
|
11571
11619
|
* -----BEGIN CERTIFICATE-----
|
|
11572
11620
|
*/
|
|
11573
11621
|
certificate?: string;
|
|
11574
11622
|
/**
|
|
11623
|
+
* @remarks
|
|
11624
|
+
* The request ID.
|
|
11625
|
+
*
|
|
11575
11626
|
* @example
|
|
11576
11627
|
* 0AEDAF20-4DDF-4165-8750-47FF9C1929C9
|
|
11577
11628
|
*/
|
|
11578
11629
|
requestId?: string;
|
|
11630
|
+
/**
|
|
11631
|
+
* @remarks
|
|
11632
|
+
* The certificate information.
|
|
11633
|
+
*/
|
|
11579
11634
|
result?: GetClientCertificateResponseBodyResult;
|
|
11580
11635
|
/**
|
|
11636
|
+
* @remarks
|
|
11637
|
+
* The website ID.
|
|
11638
|
+
*
|
|
11581
11639
|
* @example
|
|
11582
11640
|
* 1234567890123
|
|
11583
11641
|
*/
|
|
11584
11642
|
siteId?: number;
|
|
11585
11643
|
/**
|
|
11644
|
+
* @remarks
|
|
11645
|
+
* The website name.
|
|
11646
|
+
*
|
|
11586
11647
|
* @example
|
|
11587
11648
|
* example.com
|
|
11588
11649
|
*/
|
|
11589
11650
|
siteName?: string;
|
|
11590
11651
|
/**
|
|
11652
|
+
* @remarks
|
|
11653
|
+
* The certificate status.
|
|
11654
|
+
*
|
|
11591
11655
|
* @example
|
|
11592
11656
|
* active
|
|
11593
11657
|
*/
|
|
@@ -14983,6 +15047,7 @@ export class GetSiteLogDeliveryQuotaResponse extends $tea.Model {
|
|
|
14983
15047
|
}
|
|
14984
15048
|
|
|
14985
15049
|
export class GetSiteWafSettingsRequest extends $tea.Model {
|
|
15050
|
+
path?: string;
|
|
14986
15051
|
/**
|
|
14987
15052
|
* @remarks
|
|
14988
15053
|
* The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
|
|
@@ -15001,6 +15066,7 @@ export class GetSiteWafSettingsRequest extends $tea.Model {
|
|
|
15001
15066
|
siteVersion?: number;
|
|
15002
15067
|
static names(): { [key: string]: string } {
|
|
15003
15068
|
return {
|
|
15069
|
+
path: 'Path',
|
|
15004
15070
|
siteId: 'SiteId',
|
|
15005
15071
|
siteVersion: 'SiteVersion',
|
|
15006
15072
|
};
|
|
@@ -15008,6 +15074,7 @@ export class GetSiteWafSettingsRequest extends $tea.Model {
|
|
|
15008
15074
|
|
|
15009
15075
|
static types(): { [key: string]: any } {
|
|
15010
15076
|
return {
|
|
15077
|
+
path: 'string',
|
|
15011
15078
|
siteId: 'number',
|
|
15012
15079
|
siteVersion: 'number',
|
|
15013
15080
|
};
|
|
@@ -16355,17 +16422,25 @@ export class ListCiphersResponse extends $tea.Model {
|
|
|
16355
16422
|
|
|
16356
16423
|
export class ListClientCaCertificatesRequest extends $tea.Model {
|
|
16357
16424
|
/**
|
|
16425
|
+
* @remarks
|
|
16426
|
+
* The page number. Valid values: 1 to 500.
|
|
16427
|
+
*
|
|
16358
16428
|
* @example
|
|
16359
16429
|
* 1
|
|
16360
16430
|
*/
|
|
16361
16431
|
pageNumber?: number;
|
|
16362
16432
|
/**
|
|
16433
|
+
* @remarks
|
|
16434
|
+
* The number of entries per page. Default value: 20. Valid values: 1 to 100.
|
|
16435
|
+
*
|
|
16363
16436
|
* @example
|
|
16364
16437
|
* 20
|
|
16365
16438
|
*/
|
|
16366
16439
|
pageSize?: number;
|
|
16367
16440
|
/**
|
|
16368
16441
|
* @remarks
|
|
16442
|
+
* The website ID, which can be obtained by calling the [ListSites](~~ListSites~~) operation.
|
|
16443
|
+
*
|
|
16369
16444
|
* This parameter is required.
|
|
16370
16445
|
*
|
|
16371
16446
|
* @example
|
|
@@ -16395,32 +16470,54 @@ export class ListClientCaCertificatesRequest extends $tea.Model {
|
|
|
16395
16470
|
|
|
16396
16471
|
export class ListClientCaCertificatesResponseBody extends $tea.Model {
|
|
16397
16472
|
/**
|
|
16473
|
+
* @remarks
|
|
16474
|
+
* The page number.
|
|
16475
|
+
*
|
|
16398
16476
|
* @example
|
|
16399
16477
|
* 1
|
|
16400
16478
|
*/
|
|
16401
16479
|
pageNumber?: number;
|
|
16402
16480
|
/**
|
|
16481
|
+
* @remarks
|
|
16482
|
+
* The number of entries per page.
|
|
16483
|
+
*
|
|
16403
16484
|
* @example
|
|
16404
16485
|
* 20
|
|
16405
16486
|
*/
|
|
16406
16487
|
pageSize?: number;
|
|
16407
16488
|
/**
|
|
16489
|
+
* @remarks
|
|
16490
|
+
* The request ID.
|
|
16491
|
+
*
|
|
16408
16492
|
* @example
|
|
16409
16493
|
* F61CDR30-E83C-4FDA-BF73-9A94CDD44229
|
|
16410
16494
|
*/
|
|
16411
16495
|
requestId?: string;
|
|
16496
|
+
/**
|
|
16497
|
+
* @remarks
|
|
16498
|
+
* The queried client CA certificates.
|
|
16499
|
+
*/
|
|
16412
16500
|
result?: ListClientCaCertificatesResponseBodyResult[];
|
|
16413
16501
|
/**
|
|
16502
|
+
* @remarks
|
|
16503
|
+
* The website ID.
|
|
16504
|
+
*
|
|
16414
16505
|
* @example
|
|
16415
16506
|
* 1234567890123
|
|
16416
16507
|
*/
|
|
16417
16508
|
siteId?: number;
|
|
16418
16509
|
/**
|
|
16510
|
+
* @remarks
|
|
16511
|
+
* The website name.
|
|
16512
|
+
*
|
|
16419
16513
|
* @example
|
|
16420
16514
|
* example.com
|
|
16421
16515
|
*/
|
|
16422
16516
|
siteName?: string;
|
|
16423
16517
|
/**
|
|
16518
|
+
* @remarks
|
|
16519
|
+
* The total number of entries.
|
|
16520
|
+
*
|
|
16424
16521
|
* @example
|
|
16425
16522
|
* 16
|
|
16426
16523
|
*/
|
|
@@ -22528,6 +22625,8 @@ export class PurgeCachesRequest extends $tea.Model {
|
|
|
22528
22625
|
* @remarks
|
|
22529
22626
|
* The website ID. You can call the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation to obtain the ID.
|
|
22530
22627
|
*
|
|
22628
|
+
* This parameter is required.
|
|
22629
|
+
*
|
|
22531
22630
|
* @example
|
|
22532
22631
|
* 123456789****
|
|
22533
22632
|
*/
|
|
@@ -22605,6 +22704,8 @@ export class PurgeCachesShrinkRequest extends $tea.Model {
|
|
|
22605
22704
|
* @remarks
|
|
22606
22705
|
* The website ID. You can call the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation to obtain the ID.
|
|
22607
22706
|
*
|
|
22707
|
+
* This parameter is required.
|
|
22708
|
+
*
|
|
22608
22709
|
* @example
|
|
22609
22710
|
* 123456789****
|
|
22610
22711
|
*/
|
|
@@ -23337,6 +23438,8 @@ export class ResetScheduledPreloadJobResponse extends $tea.Model {
|
|
|
23337
23438
|
export class RevokeClientCertificateRequest extends $tea.Model {
|
|
23338
23439
|
/**
|
|
23339
23440
|
* @remarks
|
|
23441
|
+
* The certificate ID.
|
|
23442
|
+
*
|
|
23340
23443
|
* This parameter is required.
|
|
23341
23444
|
*
|
|
23342
23445
|
* @example
|
|
@@ -23345,6 +23448,8 @@ export class RevokeClientCertificateRequest extends $tea.Model {
|
|
|
23345
23448
|
id?: string;
|
|
23346
23449
|
/**
|
|
23347
23450
|
* @remarks
|
|
23451
|
+
* The website ID.
|
|
23452
|
+
*
|
|
23348
23453
|
* This parameter is required.
|
|
23349
23454
|
*
|
|
23350
23455
|
* @example
|
|
@@ -23372,21 +23477,33 @@ export class RevokeClientCertificateRequest extends $tea.Model {
|
|
|
23372
23477
|
|
|
23373
23478
|
export class RevokeClientCertificateResponseBody extends $tea.Model {
|
|
23374
23479
|
/**
|
|
23480
|
+
* @remarks
|
|
23481
|
+
* The certificate ID.
|
|
23482
|
+
*
|
|
23375
23483
|
* @example
|
|
23376
23484
|
* baba39055622c008b90285a8838ed09a
|
|
23377
23485
|
*/
|
|
23378
23486
|
id?: string;
|
|
23379
23487
|
/**
|
|
23488
|
+
* @remarks
|
|
23489
|
+
* The request ID.
|
|
23490
|
+
*
|
|
23380
23491
|
* @example
|
|
23381
23492
|
* 15C66C7B-671A-4297-9187-2C4477247A123425345
|
|
23382
23493
|
*/
|
|
23383
23494
|
requestId?: string;
|
|
23384
23495
|
/**
|
|
23496
|
+
* @remarks
|
|
23497
|
+
* The website ID.
|
|
23498
|
+
*
|
|
23385
23499
|
* @example
|
|
23386
23500
|
* 1234567890123
|
|
23387
23501
|
*/
|
|
23388
23502
|
siteId?: number;
|
|
23389
23503
|
/**
|
|
23504
|
+
* @remarks
|
|
23505
|
+
* The website name.
|
|
23506
|
+
*
|
|
23390
23507
|
* @example
|
|
23391
23508
|
* example.com
|
|
23392
23509
|
*/
|
|
@@ -28985,6 +29102,141 @@ export class WafSiteSettingsAddSecurityHeaders extends $tea.Model {
|
|
|
28985
29102
|
}
|
|
28986
29103
|
}
|
|
28987
29104
|
|
|
29105
|
+
export class WafSiteSettingsBotManagementDefiniteBots extends $tea.Model {
|
|
29106
|
+
action?: string;
|
|
29107
|
+
id?: number;
|
|
29108
|
+
static names(): { [key: string]: string } {
|
|
29109
|
+
return {
|
|
29110
|
+
action: 'Action',
|
|
29111
|
+
id: 'Id',
|
|
29112
|
+
};
|
|
29113
|
+
}
|
|
29114
|
+
|
|
29115
|
+
static types(): { [key: string]: any } {
|
|
29116
|
+
return {
|
|
29117
|
+
action: 'string',
|
|
29118
|
+
id: 'number',
|
|
29119
|
+
};
|
|
29120
|
+
}
|
|
29121
|
+
|
|
29122
|
+
constructor(map?: { [key: string]: any }) {
|
|
29123
|
+
super(map);
|
|
29124
|
+
}
|
|
29125
|
+
}
|
|
29126
|
+
|
|
29127
|
+
export class WafSiteSettingsBotManagementEffectOnStatic extends $tea.Model {
|
|
29128
|
+
enable?: boolean;
|
|
29129
|
+
static names(): { [key: string]: string } {
|
|
29130
|
+
return {
|
|
29131
|
+
enable: 'Enable',
|
|
29132
|
+
};
|
|
29133
|
+
}
|
|
29134
|
+
|
|
29135
|
+
static types(): { [key: string]: any } {
|
|
29136
|
+
return {
|
|
29137
|
+
enable: 'boolean',
|
|
29138
|
+
};
|
|
29139
|
+
}
|
|
29140
|
+
|
|
29141
|
+
constructor(map?: { [key: string]: any }) {
|
|
29142
|
+
super(map);
|
|
29143
|
+
}
|
|
29144
|
+
}
|
|
29145
|
+
|
|
29146
|
+
export class WafSiteSettingsBotManagementJSDetection extends $tea.Model {
|
|
29147
|
+
enable?: boolean;
|
|
29148
|
+
static names(): { [key: string]: string } {
|
|
29149
|
+
return {
|
|
29150
|
+
enable: 'Enable',
|
|
29151
|
+
};
|
|
29152
|
+
}
|
|
29153
|
+
|
|
29154
|
+
static types(): { [key: string]: any } {
|
|
29155
|
+
return {
|
|
29156
|
+
enable: 'boolean',
|
|
29157
|
+
};
|
|
29158
|
+
}
|
|
29159
|
+
|
|
29160
|
+
constructor(map?: { [key: string]: any }) {
|
|
29161
|
+
super(map);
|
|
29162
|
+
}
|
|
29163
|
+
}
|
|
29164
|
+
|
|
29165
|
+
export class WafSiteSettingsBotManagementLikelyBots extends $tea.Model {
|
|
29166
|
+
action?: string;
|
|
29167
|
+
id?: number;
|
|
29168
|
+
static names(): { [key: string]: string } {
|
|
29169
|
+
return {
|
|
29170
|
+
action: 'Action',
|
|
29171
|
+
id: 'Id',
|
|
29172
|
+
};
|
|
29173
|
+
}
|
|
29174
|
+
|
|
29175
|
+
static types(): { [key: string]: any } {
|
|
29176
|
+
return {
|
|
29177
|
+
action: 'string',
|
|
29178
|
+
id: 'number',
|
|
29179
|
+
};
|
|
29180
|
+
}
|
|
29181
|
+
|
|
29182
|
+
constructor(map?: { [key: string]: any }) {
|
|
29183
|
+
super(map);
|
|
29184
|
+
}
|
|
29185
|
+
}
|
|
29186
|
+
|
|
29187
|
+
export class WafSiteSettingsBotManagementVerifiedBots extends $tea.Model {
|
|
29188
|
+
action?: string;
|
|
29189
|
+
id?: number;
|
|
29190
|
+
static names(): { [key: string]: string } {
|
|
29191
|
+
return {
|
|
29192
|
+
action: 'Action',
|
|
29193
|
+
id: 'Id',
|
|
29194
|
+
};
|
|
29195
|
+
}
|
|
29196
|
+
|
|
29197
|
+
static types(): { [key: string]: any } {
|
|
29198
|
+
return {
|
|
29199
|
+
action: 'string',
|
|
29200
|
+
id: 'number',
|
|
29201
|
+
};
|
|
29202
|
+
}
|
|
29203
|
+
|
|
29204
|
+
constructor(map?: { [key: string]: any }) {
|
|
29205
|
+
super(map);
|
|
29206
|
+
}
|
|
29207
|
+
}
|
|
29208
|
+
|
|
29209
|
+
export class WafSiteSettingsBotManagement extends $tea.Model {
|
|
29210
|
+
definiteBots?: WafSiteSettingsBotManagementDefiniteBots;
|
|
29211
|
+
effectOnStatic?: WafSiteSettingsBotManagementEffectOnStatic;
|
|
29212
|
+
JSDetection?: WafSiteSettingsBotManagementJSDetection;
|
|
29213
|
+
likelyBots?: WafSiteSettingsBotManagementLikelyBots;
|
|
29214
|
+
verifiedBots?: WafSiteSettingsBotManagementVerifiedBots;
|
|
29215
|
+
static names(): { [key: string]: string } {
|
|
29216
|
+
return {
|
|
29217
|
+
definiteBots: 'DefiniteBots',
|
|
29218
|
+
effectOnStatic: 'EffectOnStatic',
|
|
29219
|
+
JSDetection: 'JSDetection',
|
|
29220
|
+
likelyBots: 'LikelyBots',
|
|
29221
|
+
verifiedBots: 'VerifiedBots',
|
|
29222
|
+
};
|
|
29223
|
+
}
|
|
29224
|
+
|
|
29225
|
+
static types(): { [key: string]: any } {
|
|
29226
|
+
return {
|
|
29227
|
+
definiteBots: WafSiteSettingsBotManagementDefiniteBots,
|
|
29228
|
+
effectOnStatic: WafSiteSettingsBotManagementEffectOnStatic,
|
|
29229
|
+
JSDetection: WafSiteSettingsBotManagementJSDetection,
|
|
29230
|
+
likelyBots: WafSiteSettingsBotManagementLikelyBots,
|
|
29231
|
+
verifiedBots: WafSiteSettingsBotManagementVerifiedBots,
|
|
29232
|
+
};
|
|
29233
|
+
}
|
|
29234
|
+
|
|
29235
|
+
constructor(map?: { [key: string]: any }) {
|
|
29236
|
+
super(map);
|
|
29237
|
+
}
|
|
29238
|
+
}
|
|
29239
|
+
|
|
28988
29240
|
export class WafSiteSettingsClientIpIdentifier extends $tea.Model {
|
|
28989
29241
|
headers?: string[];
|
|
28990
29242
|
mode?: string;
|
|
@@ -32703,71 +32955,113 @@ export class GetClientCaCertificateResponseBodyResult extends $tea.Model {
|
|
|
32703
32955
|
|
|
32704
32956
|
export class GetClientCertificateResponseBodyResult extends $tea.Model {
|
|
32705
32957
|
/**
|
|
32958
|
+
* @remarks
|
|
32959
|
+
* The ID of the CA certificate.
|
|
32960
|
+
*
|
|
32706
32961
|
* @example
|
|
32707
32962
|
* babab9db65ee5efcca9f3d41d4b50d66
|
|
32708
32963
|
*/
|
|
32709
32964
|
CACertificateId?: string;
|
|
32710
32965
|
/**
|
|
32966
|
+
* @remarks
|
|
32967
|
+
* The Common Name of the certificate.
|
|
32968
|
+
*
|
|
32711
32969
|
* @example
|
|
32712
32970
|
* www.example.com
|
|
32713
32971
|
*/
|
|
32714
32972
|
commonName?: string;
|
|
32715
32973
|
/**
|
|
32974
|
+
* @remarks
|
|
32975
|
+
* The time when the certificate was created.
|
|
32976
|
+
*
|
|
32716
32977
|
* @example
|
|
32717
32978
|
* 2024-06-24 07:48:51
|
|
32718
32979
|
*/
|
|
32719
32980
|
createTime?: string;
|
|
32720
32981
|
/**
|
|
32982
|
+
* @remarks
|
|
32983
|
+
* The certificate ID.
|
|
32984
|
+
*
|
|
32721
32985
|
* @example
|
|
32722
32986
|
* baba39055622c008b90285a8838ed09a
|
|
32723
32987
|
*/
|
|
32724
32988
|
id?: string;
|
|
32725
32989
|
/**
|
|
32990
|
+
* @remarks
|
|
32991
|
+
* The certificate authority (CA) that issued the certificate.
|
|
32992
|
+
*
|
|
32726
32993
|
* @example
|
|
32727
32994
|
* GlobalSign nv-sa
|
|
32728
32995
|
*/
|
|
32729
32996
|
issuer?: string;
|
|
32730
32997
|
/**
|
|
32998
|
+
* @remarks
|
|
32999
|
+
* The certificate name.
|
|
33000
|
+
*
|
|
32731
33001
|
* @example
|
|
32732
33002
|
* yourCertName
|
|
32733
33003
|
*/
|
|
32734
33004
|
name?: string;
|
|
32735
33005
|
/**
|
|
33006
|
+
* @remarks
|
|
33007
|
+
* The time when the certificate expires.
|
|
33008
|
+
*
|
|
32736
33009
|
* @example
|
|
32737
33010
|
* 2024-03-31 02:08:00
|
|
32738
33011
|
*/
|
|
32739
33012
|
notAfter?: string;
|
|
32740
33013
|
/**
|
|
33014
|
+
* @remarks
|
|
33015
|
+
* The time when the certificate takes effect.
|
|
33016
|
+
*
|
|
32741
33017
|
* @example
|
|
32742
33018
|
* 2023-03-31 02:08:00
|
|
32743
33019
|
*/
|
|
32744
33020
|
notBefore?: string;
|
|
32745
33021
|
/**
|
|
33022
|
+
* @remarks
|
|
33023
|
+
* The public-key algorithm of the certificate.
|
|
33024
|
+
*
|
|
32746
33025
|
* @example
|
|
32747
33026
|
* RSA
|
|
32748
33027
|
*/
|
|
32749
33028
|
pubkeyAlgorithm?: string;
|
|
32750
33029
|
/**
|
|
33030
|
+
* @remarks
|
|
33031
|
+
* The Subject Alternative Name (SAN) of the certificate.
|
|
33032
|
+
*
|
|
32751
33033
|
* @example
|
|
32752
33034
|
* www.example.com,*.example.com
|
|
32753
33035
|
*/
|
|
32754
33036
|
SAN?: string;
|
|
32755
33037
|
/**
|
|
33038
|
+
* @remarks
|
|
33039
|
+
* The signature algorithm of the certificate.
|
|
33040
|
+
*
|
|
32756
33041
|
* @example
|
|
32757
33042
|
* SHA256-RSA
|
|
32758
33043
|
*/
|
|
32759
33044
|
signatureAlgorithm?: string;
|
|
32760
33045
|
/**
|
|
33046
|
+
* @remarks
|
|
33047
|
+
* The certificate status.
|
|
33048
|
+
*
|
|
32761
33049
|
* @example
|
|
32762
33050
|
* active
|
|
32763
33051
|
*/
|
|
32764
33052
|
status?: string;
|
|
32765
33053
|
/**
|
|
33054
|
+
* @remarks
|
|
33055
|
+
* The certificate type.
|
|
33056
|
+
*
|
|
32766
33057
|
* @example
|
|
32767
33058
|
* dcdn
|
|
32768
33059
|
*/
|
|
32769
33060
|
type?: string;
|
|
32770
33061
|
/**
|
|
33062
|
+
* @remarks
|
|
33063
|
+
* The time when the certificate was updated.
|
|
33064
|
+
*
|
|
32771
33065
|
* @example
|
|
32772
33066
|
* 2024-09-22 05:33:13
|
|
32773
33067
|
*/
|
|
@@ -35655,66 +35949,105 @@ export class ListCacheReserveInstancesResponseBodyInstanceInfo extends $tea.Mode
|
|
|
35655
35949
|
|
|
35656
35950
|
export class ListClientCaCertificatesResponseBodyResult extends $tea.Model {
|
|
35657
35951
|
/**
|
|
35952
|
+
* @remarks
|
|
35953
|
+
* The Common Name of the certificate.
|
|
35954
|
+
*
|
|
35658
35955
|
* @example
|
|
35659
35956
|
* www.example.com
|
|
35660
35957
|
*/
|
|
35661
35958
|
commonName?: string;
|
|
35662
35959
|
/**
|
|
35960
|
+
* @remarks
|
|
35961
|
+
* The time when the certificate was created.
|
|
35962
|
+
*
|
|
35663
35963
|
* @example
|
|
35664
35964
|
* 2024-06-24 07:48:51
|
|
35665
35965
|
*/
|
|
35666
35966
|
createTime?: string;
|
|
35667
35967
|
/**
|
|
35968
|
+
* @remarks
|
|
35969
|
+
* The certificate ID.
|
|
35970
|
+
*
|
|
35668
35971
|
* @example
|
|
35669
35972
|
* babab9db65ee5efcca9f3d41d4b5****
|
|
35670
35973
|
*/
|
|
35671
35974
|
id?: string;
|
|
35672
35975
|
/**
|
|
35976
|
+
* @remarks
|
|
35977
|
+
* The CA that issued the certificate.
|
|
35978
|
+
*
|
|
35673
35979
|
* @example
|
|
35674
35980
|
* GlobalSign nv-sa
|
|
35675
35981
|
*/
|
|
35676
35982
|
issuer?: string;
|
|
35677
35983
|
/**
|
|
35984
|
+
* @remarks
|
|
35985
|
+
* The certificate name.
|
|
35986
|
+
*
|
|
35678
35987
|
* @example
|
|
35679
35988
|
* yourCertName
|
|
35680
35989
|
*/
|
|
35681
35990
|
name?: string;
|
|
35682
35991
|
/**
|
|
35992
|
+
* @remarks
|
|
35993
|
+
* The time when the certificate expires.
|
|
35994
|
+
*
|
|
35683
35995
|
* @example
|
|
35684
35996
|
* 2024-03-31 02:08:00
|
|
35685
35997
|
*/
|
|
35686
35998
|
notAfter?: string;
|
|
35687
35999
|
/**
|
|
36000
|
+
* @remarks
|
|
36001
|
+
* The time when the certificate takes effect.
|
|
36002
|
+
*
|
|
35688
36003
|
* @example
|
|
35689
36004
|
* 2023-03-31 02:08:00
|
|
35690
36005
|
*/
|
|
35691
36006
|
notBefore?: string;
|
|
35692
36007
|
/**
|
|
36008
|
+
* @remarks
|
|
36009
|
+
* The public-key algorithm of the certificate.
|
|
36010
|
+
*
|
|
35693
36011
|
* @example
|
|
35694
36012
|
* RSA
|
|
35695
36013
|
*/
|
|
35696
36014
|
pubkeyAlgorithm?: string;
|
|
35697
36015
|
/**
|
|
36016
|
+
* @remarks
|
|
36017
|
+
* The Subject Alternative Name (SAN) of the certificate.
|
|
36018
|
+
*
|
|
35698
36019
|
* @example
|
|
35699
36020
|
* www.example.com,*.example.com
|
|
35700
36021
|
*/
|
|
35701
36022
|
SAN?: string;
|
|
35702
36023
|
/**
|
|
36024
|
+
* @remarks
|
|
36025
|
+
* The signature algorithm of the certificate.
|
|
36026
|
+
*
|
|
35703
36027
|
* @example
|
|
35704
36028
|
* SHA256-RSA
|
|
35705
36029
|
*/
|
|
35706
36030
|
signatureAlgorithm?: string;
|
|
35707
36031
|
/**
|
|
36032
|
+
* @remarks
|
|
36033
|
+
* The certificate status.
|
|
36034
|
+
*
|
|
35708
36035
|
* @example
|
|
35709
36036
|
* OK
|
|
35710
36037
|
*/
|
|
35711
36038
|
status?: string;
|
|
35712
36039
|
/**
|
|
36040
|
+
* @remarks
|
|
36041
|
+
* The certificate type.
|
|
36042
|
+
*
|
|
35713
36043
|
* @example
|
|
35714
36044
|
* upload
|
|
35715
36045
|
*/
|
|
35716
36046
|
type?: string;
|
|
35717
36047
|
/**
|
|
36048
|
+
* @remarks
|
|
36049
|
+
* The time when the certificate was updated.
|
|
36050
|
+
*
|
|
35718
36051
|
* @example
|
|
35719
36052
|
* 2024-07-20 06:18:42
|
|
35720
36053
|
*/
|
|
@@ -39183,6 +39516,7 @@ export class ListWafPhasesResponseBodyPhases extends $tea.Model {
|
|
|
39183
39516
|
}
|
|
39184
39517
|
|
|
39185
39518
|
export class ListWafRulesRequestQueryArgs extends $tea.Model {
|
|
39519
|
+
configValueLike?: string;
|
|
39186
39520
|
/**
|
|
39187
39521
|
* @remarks
|
|
39188
39522
|
* Specifies whether to sort the returned data in descending order.
|
|
@@ -39241,6 +39575,7 @@ export class ListWafRulesRequestQueryArgs extends $tea.Model {
|
|
|
39241
39575
|
status?: string;
|
|
39242
39576
|
static names(): { [key: string]: string } {
|
|
39243
39577
|
return {
|
|
39578
|
+
configValueLike: 'ConfigValueLike',
|
|
39244
39579
|
desc: 'Desc',
|
|
39245
39580
|
id: 'Id',
|
|
39246
39581
|
idNameLike: 'IdNameLike',
|
|
@@ -39253,6 +39588,7 @@ export class ListWafRulesRequestQueryArgs extends $tea.Model {
|
|
|
39253
39588
|
|
|
39254
39589
|
static types(): { [key: string]: any } {
|
|
39255
39590
|
return {
|
|
39591
|
+
configValueLike: 'string',
|
|
39256
39592
|
desc: 'boolean',
|
|
39257
39593
|
id: 'number',
|
|
39258
39594
|
idNameLike: 'string',
|
|
@@ -43321,7 +43657,7 @@ export default class Client extends OpenApi {
|
|
|
43321
43657
|
}
|
|
43322
43658
|
|
|
43323
43659
|
/**
|
|
43324
|
-
*
|
|
43660
|
+
* Deletes a certificate for a website.
|
|
43325
43661
|
*
|
|
43326
43662
|
* @param request - DeleteCertificateRequest
|
|
43327
43663
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -43348,7 +43684,7 @@ export default class Client extends OpenApi {
|
|
|
43348
43684
|
}
|
|
43349
43685
|
|
|
43350
43686
|
/**
|
|
43351
|
-
*
|
|
43687
|
+
* Deletes a certificate for a website.
|
|
43352
43688
|
*
|
|
43353
43689
|
* @param request - DeleteCertificateRequest
|
|
43354
43690
|
* @returns DeleteCertificateResponse
|
|
@@ -43359,7 +43695,7 @@ export default class Client extends OpenApi {
|
|
|
43359
43695
|
}
|
|
43360
43696
|
|
|
43361
43697
|
/**
|
|
43362
|
-
*
|
|
43698
|
+
* Deletes a client CA certificate.
|
|
43363
43699
|
*
|
|
43364
43700
|
* @param request - DeleteClientCaCertificateRequest
|
|
43365
43701
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -43386,7 +43722,7 @@ export default class Client extends OpenApi {
|
|
|
43386
43722
|
}
|
|
43387
43723
|
|
|
43388
43724
|
/**
|
|
43389
|
-
*
|
|
43725
|
+
* Deletes a client CA certificate.
|
|
43390
43726
|
*
|
|
43391
43727
|
* @param request - DeleteClientCaCertificateRequest
|
|
43392
43728
|
* @returns DeleteClientCaCertificateResponse
|
|
@@ -45129,7 +45465,7 @@ export default class Client extends OpenApi {
|
|
|
45129
45465
|
}
|
|
45130
45466
|
|
|
45131
45467
|
/**
|
|
45132
|
-
*
|
|
45468
|
+
* Queries information about a client certificate.
|
|
45133
45469
|
*
|
|
45134
45470
|
* @param request - GetClientCertificateRequest
|
|
45135
45471
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -45156,7 +45492,7 @@ export default class Client extends OpenApi {
|
|
|
45156
45492
|
}
|
|
45157
45493
|
|
|
45158
45494
|
/**
|
|
45159
|
-
*
|
|
45495
|
+
* Queries information about a client certificate.
|
|
45160
45496
|
*
|
|
45161
45497
|
* @param request - GetClientCertificateRequest
|
|
45162
45498
|
* @returns GetClientCertificateResponse
|
|
@@ -46294,6 +46630,10 @@ export default class Client extends OpenApi {
|
|
|
46294
46630
|
async getSiteWafSettingsWithOptions(request: GetSiteWafSettingsRequest, runtime: $Util.RuntimeOptions): Promise<GetSiteWafSettingsResponse> {
|
|
46295
46631
|
Util.validateModel(request);
|
|
46296
46632
|
let query = { };
|
|
46633
|
+
if (!Util.isUnset(request.path)) {
|
|
46634
|
+
query["Path"] = request.path;
|
|
46635
|
+
}
|
|
46636
|
+
|
|
46297
46637
|
if (!Util.isUnset(request.siteId)) {
|
|
46298
46638
|
query["SiteId"] = request.siteId;
|
|
46299
46639
|
}
|
|
@@ -46761,7 +47101,7 @@ export default class Client extends OpenApi {
|
|
|
46761
47101
|
}
|
|
46762
47102
|
|
|
46763
47103
|
/**
|
|
46764
|
-
*
|
|
47104
|
+
* Queries a list of client certificate authority (CA) certificates for a website.
|
|
46765
47105
|
*
|
|
46766
47106
|
* @param request - ListClientCaCertificatesRequest
|
|
46767
47107
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -46788,7 +47128,7 @@ export default class Client extends OpenApi {
|
|
|
46788
47128
|
}
|
|
46789
47129
|
|
|
46790
47130
|
/**
|
|
46791
|
-
*
|
|
47131
|
+
* Queries a list of client certificate authority (CA) certificates for a website.
|
|
46792
47132
|
*
|
|
46793
47133
|
* @param request - ListClientCaCertificatesRequest
|
|
46794
47134
|
* @returns ListClientCaCertificatesResponse
|
|
@@ -48962,7 +49302,7 @@ export default class Client extends OpenApi {
|
|
|
48962
49302
|
}
|
|
48963
49303
|
|
|
48964
49304
|
/**
|
|
48965
|
-
*
|
|
49305
|
+
* Revokes an activated client certificate.
|
|
48966
49306
|
*
|
|
48967
49307
|
* @param request - RevokeClientCertificateRequest
|
|
48968
49308
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -48989,7 +49329,7 @@ export default class Client extends OpenApi {
|
|
|
48989
49329
|
}
|
|
48990
49330
|
|
|
48991
49331
|
/**
|
|
48992
|
-
*
|
|
49332
|
+
* Revokes an activated client certificate.
|
|
48993
49333
|
*
|
|
48994
49334
|
* @param request - RevokeClientCertificateRequest
|
|
48995
49335
|
* @returns RevokeClientCertificateResponse
|