@alicloud/esa20240910 2.8.1 → 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 +276 -10
- package/dist/client.js +137 -14
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +346 -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
|
*/
|
|
@@ -23341,6 +23438,8 @@ export class ResetScheduledPreloadJobResponse extends $tea.Model {
|
|
|
23341
23438
|
export class RevokeClientCertificateRequest extends $tea.Model {
|
|
23342
23439
|
/**
|
|
23343
23440
|
* @remarks
|
|
23441
|
+
* The certificate ID.
|
|
23442
|
+
*
|
|
23344
23443
|
* This parameter is required.
|
|
23345
23444
|
*
|
|
23346
23445
|
* @example
|
|
@@ -23349,6 +23448,8 @@ export class RevokeClientCertificateRequest extends $tea.Model {
|
|
|
23349
23448
|
id?: string;
|
|
23350
23449
|
/**
|
|
23351
23450
|
* @remarks
|
|
23451
|
+
* The website ID.
|
|
23452
|
+
*
|
|
23352
23453
|
* This parameter is required.
|
|
23353
23454
|
*
|
|
23354
23455
|
* @example
|
|
@@ -23376,21 +23477,33 @@ export class RevokeClientCertificateRequest extends $tea.Model {
|
|
|
23376
23477
|
|
|
23377
23478
|
export class RevokeClientCertificateResponseBody extends $tea.Model {
|
|
23378
23479
|
/**
|
|
23480
|
+
* @remarks
|
|
23481
|
+
* The certificate ID.
|
|
23482
|
+
*
|
|
23379
23483
|
* @example
|
|
23380
23484
|
* baba39055622c008b90285a8838ed09a
|
|
23381
23485
|
*/
|
|
23382
23486
|
id?: string;
|
|
23383
23487
|
/**
|
|
23488
|
+
* @remarks
|
|
23489
|
+
* The request ID.
|
|
23490
|
+
*
|
|
23384
23491
|
* @example
|
|
23385
23492
|
* 15C66C7B-671A-4297-9187-2C4477247A123425345
|
|
23386
23493
|
*/
|
|
23387
23494
|
requestId?: string;
|
|
23388
23495
|
/**
|
|
23496
|
+
* @remarks
|
|
23497
|
+
* The website ID.
|
|
23498
|
+
*
|
|
23389
23499
|
* @example
|
|
23390
23500
|
* 1234567890123
|
|
23391
23501
|
*/
|
|
23392
23502
|
siteId?: number;
|
|
23393
23503
|
/**
|
|
23504
|
+
* @remarks
|
|
23505
|
+
* The website name.
|
|
23506
|
+
*
|
|
23394
23507
|
* @example
|
|
23395
23508
|
* example.com
|
|
23396
23509
|
*/
|
|
@@ -28989,6 +29102,141 @@ export class WafSiteSettingsAddSecurityHeaders extends $tea.Model {
|
|
|
28989
29102
|
}
|
|
28990
29103
|
}
|
|
28991
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
|
+
|
|
28992
29240
|
export class WafSiteSettingsClientIpIdentifier extends $tea.Model {
|
|
28993
29241
|
headers?: string[];
|
|
28994
29242
|
mode?: string;
|
|
@@ -32707,71 +32955,113 @@ export class GetClientCaCertificateResponseBodyResult extends $tea.Model {
|
|
|
32707
32955
|
|
|
32708
32956
|
export class GetClientCertificateResponseBodyResult extends $tea.Model {
|
|
32709
32957
|
/**
|
|
32958
|
+
* @remarks
|
|
32959
|
+
* The ID of the CA certificate.
|
|
32960
|
+
*
|
|
32710
32961
|
* @example
|
|
32711
32962
|
* babab9db65ee5efcca9f3d41d4b50d66
|
|
32712
32963
|
*/
|
|
32713
32964
|
CACertificateId?: string;
|
|
32714
32965
|
/**
|
|
32966
|
+
* @remarks
|
|
32967
|
+
* The Common Name of the certificate.
|
|
32968
|
+
*
|
|
32715
32969
|
* @example
|
|
32716
32970
|
* www.example.com
|
|
32717
32971
|
*/
|
|
32718
32972
|
commonName?: string;
|
|
32719
32973
|
/**
|
|
32974
|
+
* @remarks
|
|
32975
|
+
* The time when the certificate was created.
|
|
32976
|
+
*
|
|
32720
32977
|
* @example
|
|
32721
32978
|
* 2024-06-24 07:48:51
|
|
32722
32979
|
*/
|
|
32723
32980
|
createTime?: string;
|
|
32724
32981
|
/**
|
|
32982
|
+
* @remarks
|
|
32983
|
+
* The certificate ID.
|
|
32984
|
+
*
|
|
32725
32985
|
* @example
|
|
32726
32986
|
* baba39055622c008b90285a8838ed09a
|
|
32727
32987
|
*/
|
|
32728
32988
|
id?: string;
|
|
32729
32989
|
/**
|
|
32990
|
+
* @remarks
|
|
32991
|
+
* The certificate authority (CA) that issued the certificate.
|
|
32992
|
+
*
|
|
32730
32993
|
* @example
|
|
32731
32994
|
* GlobalSign nv-sa
|
|
32732
32995
|
*/
|
|
32733
32996
|
issuer?: string;
|
|
32734
32997
|
/**
|
|
32998
|
+
* @remarks
|
|
32999
|
+
* The certificate name.
|
|
33000
|
+
*
|
|
32735
33001
|
* @example
|
|
32736
33002
|
* yourCertName
|
|
32737
33003
|
*/
|
|
32738
33004
|
name?: string;
|
|
32739
33005
|
/**
|
|
33006
|
+
* @remarks
|
|
33007
|
+
* The time when the certificate expires.
|
|
33008
|
+
*
|
|
32740
33009
|
* @example
|
|
32741
33010
|
* 2024-03-31 02:08:00
|
|
32742
33011
|
*/
|
|
32743
33012
|
notAfter?: string;
|
|
32744
33013
|
/**
|
|
33014
|
+
* @remarks
|
|
33015
|
+
* The time when the certificate takes effect.
|
|
33016
|
+
*
|
|
32745
33017
|
* @example
|
|
32746
33018
|
* 2023-03-31 02:08:00
|
|
32747
33019
|
*/
|
|
32748
33020
|
notBefore?: string;
|
|
32749
33021
|
/**
|
|
33022
|
+
* @remarks
|
|
33023
|
+
* The public-key algorithm of the certificate.
|
|
33024
|
+
*
|
|
32750
33025
|
* @example
|
|
32751
33026
|
* RSA
|
|
32752
33027
|
*/
|
|
32753
33028
|
pubkeyAlgorithm?: string;
|
|
32754
33029
|
/**
|
|
33030
|
+
* @remarks
|
|
33031
|
+
* The Subject Alternative Name (SAN) of the certificate.
|
|
33032
|
+
*
|
|
32755
33033
|
* @example
|
|
32756
33034
|
* www.example.com,*.example.com
|
|
32757
33035
|
*/
|
|
32758
33036
|
SAN?: string;
|
|
32759
33037
|
/**
|
|
33038
|
+
* @remarks
|
|
33039
|
+
* The signature algorithm of the certificate.
|
|
33040
|
+
*
|
|
32760
33041
|
* @example
|
|
32761
33042
|
* SHA256-RSA
|
|
32762
33043
|
*/
|
|
32763
33044
|
signatureAlgorithm?: string;
|
|
32764
33045
|
/**
|
|
33046
|
+
* @remarks
|
|
33047
|
+
* The certificate status.
|
|
33048
|
+
*
|
|
32765
33049
|
* @example
|
|
32766
33050
|
* active
|
|
32767
33051
|
*/
|
|
32768
33052
|
status?: string;
|
|
32769
33053
|
/**
|
|
33054
|
+
* @remarks
|
|
33055
|
+
* The certificate type.
|
|
33056
|
+
*
|
|
32770
33057
|
* @example
|
|
32771
33058
|
* dcdn
|
|
32772
33059
|
*/
|
|
32773
33060
|
type?: string;
|
|
32774
33061
|
/**
|
|
33062
|
+
* @remarks
|
|
33063
|
+
* The time when the certificate was updated.
|
|
33064
|
+
*
|
|
32775
33065
|
* @example
|
|
32776
33066
|
* 2024-09-22 05:33:13
|
|
32777
33067
|
*/
|
|
@@ -35659,66 +35949,105 @@ export class ListCacheReserveInstancesResponseBodyInstanceInfo extends $tea.Mode
|
|
|
35659
35949
|
|
|
35660
35950
|
export class ListClientCaCertificatesResponseBodyResult extends $tea.Model {
|
|
35661
35951
|
/**
|
|
35952
|
+
* @remarks
|
|
35953
|
+
* The Common Name of the certificate.
|
|
35954
|
+
*
|
|
35662
35955
|
* @example
|
|
35663
35956
|
* www.example.com
|
|
35664
35957
|
*/
|
|
35665
35958
|
commonName?: string;
|
|
35666
35959
|
/**
|
|
35960
|
+
* @remarks
|
|
35961
|
+
* The time when the certificate was created.
|
|
35962
|
+
*
|
|
35667
35963
|
* @example
|
|
35668
35964
|
* 2024-06-24 07:48:51
|
|
35669
35965
|
*/
|
|
35670
35966
|
createTime?: string;
|
|
35671
35967
|
/**
|
|
35968
|
+
* @remarks
|
|
35969
|
+
* The certificate ID.
|
|
35970
|
+
*
|
|
35672
35971
|
* @example
|
|
35673
35972
|
* babab9db65ee5efcca9f3d41d4b5****
|
|
35674
35973
|
*/
|
|
35675
35974
|
id?: string;
|
|
35676
35975
|
/**
|
|
35976
|
+
* @remarks
|
|
35977
|
+
* The CA that issued the certificate.
|
|
35978
|
+
*
|
|
35677
35979
|
* @example
|
|
35678
35980
|
* GlobalSign nv-sa
|
|
35679
35981
|
*/
|
|
35680
35982
|
issuer?: string;
|
|
35681
35983
|
/**
|
|
35984
|
+
* @remarks
|
|
35985
|
+
* The certificate name.
|
|
35986
|
+
*
|
|
35682
35987
|
* @example
|
|
35683
35988
|
* yourCertName
|
|
35684
35989
|
*/
|
|
35685
35990
|
name?: string;
|
|
35686
35991
|
/**
|
|
35992
|
+
* @remarks
|
|
35993
|
+
* The time when the certificate expires.
|
|
35994
|
+
*
|
|
35687
35995
|
* @example
|
|
35688
35996
|
* 2024-03-31 02:08:00
|
|
35689
35997
|
*/
|
|
35690
35998
|
notAfter?: string;
|
|
35691
35999
|
/**
|
|
36000
|
+
* @remarks
|
|
36001
|
+
* The time when the certificate takes effect.
|
|
36002
|
+
*
|
|
35692
36003
|
* @example
|
|
35693
36004
|
* 2023-03-31 02:08:00
|
|
35694
36005
|
*/
|
|
35695
36006
|
notBefore?: string;
|
|
35696
36007
|
/**
|
|
36008
|
+
* @remarks
|
|
36009
|
+
* The public-key algorithm of the certificate.
|
|
36010
|
+
*
|
|
35697
36011
|
* @example
|
|
35698
36012
|
* RSA
|
|
35699
36013
|
*/
|
|
35700
36014
|
pubkeyAlgorithm?: string;
|
|
35701
36015
|
/**
|
|
36016
|
+
* @remarks
|
|
36017
|
+
* The Subject Alternative Name (SAN) of the certificate.
|
|
36018
|
+
*
|
|
35702
36019
|
* @example
|
|
35703
36020
|
* www.example.com,*.example.com
|
|
35704
36021
|
*/
|
|
35705
36022
|
SAN?: string;
|
|
35706
36023
|
/**
|
|
36024
|
+
* @remarks
|
|
36025
|
+
* The signature algorithm of the certificate.
|
|
36026
|
+
*
|
|
35707
36027
|
* @example
|
|
35708
36028
|
* SHA256-RSA
|
|
35709
36029
|
*/
|
|
35710
36030
|
signatureAlgorithm?: string;
|
|
35711
36031
|
/**
|
|
36032
|
+
* @remarks
|
|
36033
|
+
* The certificate status.
|
|
36034
|
+
*
|
|
35712
36035
|
* @example
|
|
35713
36036
|
* OK
|
|
35714
36037
|
*/
|
|
35715
36038
|
status?: string;
|
|
35716
36039
|
/**
|
|
36040
|
+
* @remarks
|
|
36041
|
+
* The certificate type.
|
|
36042
|
+
*
|
|
35717
36043
|
* @example
|
|
35718
36044
|
* upload
|
|
35719
36045
|
*/
|
|
35720
36046
|
type?: string;
|
|
35721
36047
|
/**
|
|
36048
|
+
* @remarks
|
|
36049
|
+
* The time when the certificate was updated.
|
|
36050
|
+
*
|
|
35722
36051
|
* @example
|
|
35723
36052
|
* 2024-07-20 06:18:42
|
|
35724
36053
|
*/
|
|
@@ -39187,6 +39516,7 @@ export class ListWafPhasesResponseBodyPhases extends $tea.Model {
|
|
|
39187
39516
|
}
|
|
39188
39517
|
|
|
39189
39518
|
export class ListWafRulesRequestQueryArgs extends $tea.Model {
|
|
39519
|
+
configValueLike?: string;
|
|
39190
39520
|
/**
|
|
39191
39521
|
* @remarks
|
|
39192
39522
|
* Specifies whether to sort the returned data in descending order.
|
|
@@ -39245,6 +39575,7 @@ export class ListWafRulesRequestQueryArgs extends $tea.Model {
|
|
|
39245
39575
|
status?: string;
|
|
39246
39576
|
static names(): { [key: string]: string } {
|
|
39247
39577
|
return {
|
|
39578
|
+
configValueLike: 'ConfigValueLike',
|
|
39248
39579
|
desc: 'Desc',
|
|
39249
39580
|
id: 'Id',
|
|
39250
39581
|
idNameLike: 'IdNameLike',
|
|
@@ -39257,6 +39588,7 @@ export class ListWafRulesRequestQueryArgs extends $tea.Model {
|
|
|
39257
39588
|
|
|
39258
39589
|
static types(): { [key: string]: any } {
|
|
39259
39590
|
return {
|
|
39591
|
+
configValueLike: 'string',
|
|
39260
39592
|
desc: 'boolean',
|
|
39261
39593
|
id: 'number',
|
|
39262
39594
|
idNameLike: 'string',
|
|
@@ -43325,7 +43657,7 @@ export default class Client extends OpenApi {
|
|
|
43325
43657
|
}
|
|
43326
43658
|
|
|
43327
43659
|
/**
|
|
43328
|
-
*
|
|
43660
|
+
* Deletes a certificate for a website.
|
|
43329
43661
|
*
|
|
43330
43662
|
* @param request - DeleteCertificateRequest
|
|
43331
43663
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -43352,7 +43684,7 @@ export default class Client extends OpenApi {
|
|
|
43352
43684
|
}
|
|
43353
43685
|
|
|
43354
43686
|
/**
|
|
43355
|
-
*
|
|
43687
|
+
* Deletes a certificate for a website.
|
|
43356
43688
|
*
|
|
43357
43689
|
* @param request - DeleteCertificateRequest
|
|
43358
43690
|
* @returns DeleteCertificateResponse
|
|
@@ -43363,7 +43695,7 @@ export default class Client extends OpenApi {
|
|
|
43363
43695
|
}
|
|
43364
43696
|
|
|
43365
43697
|
/**
|
|
43366
|
-
*
|
|
43698
|
+
* Deletes a client CA certificate.
|
|
43367
43699
|
*
|
|
43368
43700
|
* @param request - DeleteClientCaCertificateRequest
|
|
43369
43701
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -43390,7 +43722,7 @@ export default class Client extends OpenApi {
|
|
|
43390
43722
|
}
|
|
43391
43723
|
|
|
43392
43724
|
/**
|
|
43393
|
-
*
|
|
43725
|
+
* Deletes a client CA certificate.
|
|
43394
43726
|
*
|
|
43395
43727
|
* @param request - DeleteClientCaCertificateRequest
|
|
43396
43728
|
* @returns DeleteClientCaCertificateResponse
|
|
@@ -45133,7 +45465,7 @@ export default class Client extends OpenApi {
|
|
|
45133
45465
|
}
|
|
45134
45466
|
|
|
45135
45467
|
/**
|
|
45136
|
-
*
|
|
45468
|
+
* Queries information about a client certificate.
|
|
45137
45469
|
*
|
|
45138
45470
|
* @param request - GetClientCertificateRequest
|
|
45139
45471
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -45160,7 +45492,7 @@ export default class Client extends OpenApi {
|
|
|
45160
45492
|
}
|
|
45161
45493
|
|
|
45162
45494
|
/**
|
|
45163
|
-
*
|
|
45495
|
+
* Queries information about a client certificate.
|
|
45164
45496
|
*
|
|
45165
45497
|
* @param request - GetClientCertificateRequest
|
|
45166
45498
|
* @returns GetClientCertificateResponse
|
|
@@ -46298,6 +46630,10 @@ export default class Client extends OpenApi {
|
|
|
46298
46630
|
async getSiteWafSettingsWithOptions(request: GetSiteWafSettingsRequest, runtime: $Util.RuntimeOptions): Promise<GetSiteWafSettingsResponse> {
|
|
46299
46631
|
Util.validateModel(request);
|
|
46300
46632
|
let query = { };
|
|
46633
|
+
if (!Util.isUnset(request.path)) {
|
|
46634
|
+
query["Path"] = request.path;
|
|
46635
|
+
}
|
|
46636
|
+
|
|
46301
46637
|
if (!Util.isUnset(request.siteId)) {
|
|
46302
46638
|
query["SiteId"] = request.siteId;
|
|
46303
46639
|
}
|
|
@@ -46765,7 +47101,7 @@ export default class Client extends OpenApi {
|
|
|
46765
47101
|
}
|
|
46766
47102
|
|
|
46767
47103
|
/**
|
|
46768
|
-
*
|
|
47104
|
+
* Queries a list of client certificate authority (CA) certificates for a website.
|
|
46769
47105
|
*
|
|
46770
47106
|
* @param request - ListClientCaCertificatesRequest
|
|
46771
47107
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -46792,7 +47128,7 @@ export default class Client extends OpenApi {
|
|
|
46792
47128
|
}
|
|
46793
47129
|
|
|
46794
47130
|
/**
|
|
46795
|
-
*
|
|
47131
|
+
* Queries a list of client certificate authority (CA) certificates for a website.
|
|
46796
47132
|
*
|
|
46797
47133
|
* @param request - ListClientCaCertificatesRequest
|
|
46798
47134
|
* @returns ListClientCaCertificatesResponse
|
|
@@ -48966,7 +49302,7 @@ export default class Client extends OpenApi {
|
|
|
48966
49302
|
}
|
|
48967
49303
|
|
|
48968
49304
|
/**
|
|
48969
|
-
*
|
|
49305
|
+
* Revokes an activated client certificate.
|
|
48970
49306
|
*
|
|
48971
49307
|
* @param request - RevokeClientCertificateRequest
|
|
48972
49308
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -48993,7 +49329,7 @@ export default class Client extends OpenApi {
|
|
|
48993
49329
|
}
|
|
48994
49330
|
|
|
48995
49331
|
/**
|
|
48996
|
-
*
|
|
49332
|
+
* Revokes an activated client certificate.
|
|
48997
49333
|
*
|
|
48998
49334
|
* @param request - RevokeClientCertificateRequest
|
|
48999
49335
|
* @returns RevokeClientCertificateResponse
|