@alicloud/waf-openapi20211001 6.6.0 → 6.7.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 +15 -0
- package/dist/client.js +60 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDefenseTemplateRequest.d.ts +1 -0
- package/dist/models/CreateDefenseTemplateRequest.js +2 -0
- package/dist/models/CreateDefenseTemplateRequest.js.map +1 -1
- package/dist/models/DescribeUserTrafficRequest.d.ts +51 -0
- package/dist/models/DescribeUserTrafficRequest.js +70 -0
- package/dist/models/DescribeUserTrafficRequest.js.map +1 -0
- package/dist/models/DescribeUserTrafficResponse.d.ts +19 -0
- package/dist/models/DescribeUserTrafficResponse.js +69 -0
- package/dist/models/DescribeUserTrafficResponse.js.map +1 -0
- package/dist/models/DescribeUserTrafficResponseBody.d.ts +41 -0
- package/dist/models/DescribeUserTrafficResponseBody.js +84 -0
- package/dist/models/DescribeUserTrafficResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +24 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +70 -0
- package/src/models/CreateDefenseTemplateRequest.ts +3 -0
- package/src/models/DescribeUserTrafficRequest.ts +76 -0
- package/src/models/DescribeUserTrafficResponse.ts +40 -0
- package/src/models/DescribeUserTrafficResponseBody.ts +71 -0
- package/src/models/model.ts +4 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeUserTrafficResponseBody } from "./DescribeUserTrafficResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeUserTrafficResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeUserTrafficResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeUserTrafficResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeUserTrafficResponseBodyUserTraffic extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 10
|
|
9
|
+
*/
|
|
10
|
+
index?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1024
|
|
14
|
+
*/
|
|
15
|
+
pv?: number;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
index: 'Index',
|
|
19
|
+
pv: 'Pv',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
index: 'number',
|
|
26
|
+
pv: 'number',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class DescribeUserTrafficResponseBody extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* EC10C9EA-A367-52D5-***-***
|
|
43
|
+
*/
|
|
44
|
+
requestId?: string;
|
|
45
|
+
userTraffic?: DescribeUserTrafficResponseBodyUserTraffic[];
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
requestId: 'RequestId',
|
|
49
|
+
userTraffic: 'UserTraffic',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
requestId: 'string',
|
|
56
|
+
userTraffic: { 'type': 'array', 'itemType': DescribeUserTrafficResponseBodyUserTraffic },
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validate() {
|
|
61
|
+
if(Array.isArray(this.userTraffic)) {
|
|
62
|
+
$dara.Model.validateArray(this.userTraffic);
|
|
63
|
+
}
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -188,6 +188,7 @@ export { DescribeUserApiRequestResponseBodyRequests } from './DescribeUserApiReq
|
|
|
188
188
|
export { DescribeUserAssetResponseBodyAssets } from './DescribeUserAssetResponseBody';
|
|
189
189
|
export { DescribeUserEventTrendResponseBodyTrend } from './DescribeUserEventTrendResponseBody';
|
|
190
190
|
export { DescribeUserEventTypeResponseBodyEvent } from './DescribeUserEventTypeResponseBody';
|
|
191
|
+
export { DescribeUserTrafficResponseBodyUserTraffic } from './DescribeUserTrafficResponseBody';
|
|
191
192
|
export { DescribeVerifyContentResponseBodyDnsContent } from './DescribeVerifyContentResponseBody';
|
|
192
193
|
export { DescribeVerifyContentResponseBodyFileContent } from './DescribeVerifyContentResponseBody';
|
|
193
194
|
export { DescribeVisitTopIpResponseBodyTopIp } from './DescribeVisitTopIpResponseBody';
|
|
@@ -770,6 +771,9 @@ export { DescribeUserLogFieldConfigResponse } from './DescribeUserLogFieldConfig
|
|
|
770
771
|
export { DescribeUserSlsLogRegionsRequest } from './DescribeUserSlsLogRegionsRequest';
|
|
771
772
|
export { DescribeUserSlsLogRegionsResponseBody } from './DescribeUserSlsLogRegionsResponseBody';
|
|
772
773
|
export { DescribeUserSlsLogRegionsResponse } from './DescribeUserSlsLogRegionsResponse';
|
|
774
|
+
export { DescribeUserTrafficRequest } from './DescribeUserTrafficRequest';
|
|
775
|
+
export { DescribeUserTrafficResponseBody } from './DescribeUserTrafficResponseBody';
|
|
776
|
+
export { DescribeUserTrafficResponse } from './DescribeUserTrafficResponse';
|
|
773
777
|
export { DescribeUserWafLogStatusRequest } from './DescribeUserWafLogStatusRequest';
|
|
774
778
|
export { DescribeUserWafLogStatusResponseBody } from './DescribeUserWafLogStatusResponseBody';
|
|
775
779
|
export { DescribeUserWafLogStatusResponse } from './DescribeUserWafLogStatusResponse';
|