@alicloud/waf-openapi20211001 6.5.2 → 6.6.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.
Files changed (45) hide show
  1. package/dist/client.d.ts +45 -0
  2. package/dist/client.js +156 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeBaseRuleChangeLogRequest.d.ts +46 -0
  5. package/dist/models/DescribeBaseRuleChangeLogRequest.js +68 -0
  6. package/dist/models/DescribeBaseRuleChangeLogRequest.js.map +1 -0
  7. package/dist/models/DescribeBaseRuleChangeLogResponse.d.ts +19 -0
  8. package/dist/models/DescribeBaseRuleChangeLogResponse.js +69 -0
  9. package/dist/models/DescribeBaseRuleChangeLogResponse.js.map +1 -0
  10. package/dist/models/DescribeBaseRuleChangeLogResponseBody.d.ts +61 -0
  11. package/dist/models/DescribeBaseRuleChangeLogResponseBody.js +92 -0
  12. package/dist/models/DescribeBaseRuleChangeLogResponseBody.js.map +1 -0
  13. package/dist/models/DescribeElasticBillsRequest.d.ts +57 -0
  14. package/dist/models/DescribeElasticBillsRequest.js +66 -0
  15. package/dist/models/DescribeElasticBillsRequest.js.map +1 -0
  16. package/dist/models/DescribeElasticBillsResponse.d.ts +19 -0
  17. package/dist/models/DescribeElasticBillsResponse.js +69 -0
  18. package/dist/models/DescribeElasticBillsResponse.js.map +1 -0
  19. package/dist/models/DescribeElasticBillsResponseBody.d.ts +86 -0
  20. package/dist/models/DescribeElasticBillsResponseBody.js +92 -0
  21. package/dist/models/DescribeElasticBillsResponseBody.js.map +1 -0
  22. package/dist/models/DescribePrepayDailyBillsRequest.d.ts +60 -0
  23. package/dist/models/DescribePrepayDailyBillsRequest.js +66 -0
  24. package/dist/models/DescribePrepayDailyBillsRequest.js.map +1 -0
  25. package/dist/models/DescribePrepayDailyBillsResponse.d.ts +19 -0
  26. package/dist/models/DescribePrepayDailyBillsResponse.js +69 -0
  27. package/dist/models/DescribePrepayDailyBillsResponse.js.map +1 -0
  28. package/dist/models/DescribePrepayDailyBillsResponseBody.d.ts +146 -0
  29. package/dist/models/DescribePrepayDailyBillsResponseBody.js +109 -0
  30. package/dist/models/DescribePrepayDailyBillsResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +12 -0
  32. package/dist/models/model.js +43 -19
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +178 -0
  36. package/src/models/DescribeBaseRuleChangeLogRequest.ts +69 -0
  37. package/src/models/DescribeBaseRuleChangeLogResponse.ts +40 -0
  38. package/src/models/DescribeBaseRuleChangeLogResponseBody.ts +99 -0
  39. package/src/models/DescribeElasticBillsRequest.ts +78 -0
  40. package/src/models/DescribeElasticBillsResponse.ts +40 -0
  41. package/src/models/DescribeElasticBillsResponseBody.ts +124 -0
  42. package/src/models/DescribePrepayDailyBillsRequest.ts +81 -0
  43. package/src/models/DescribePrepayDailyBillsResponse.ts +40 -0
  44. package/src/models/DescribePrepayDailyBillsResponseBody.ts +201 -0
  45. package/src/models/model.ts +12 -0
@@ -0,0 +1,81 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribePrepayDailyBillsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the WAF instance.
9
+ *
10
+ * > You can call the [DescribePayInfo](https://help.aliyun.com/document_detail/86651.html) operation to query the ID of your WAF instance.
11
+ *
12
+ * This parameter is required.
13
+ *
14
+ * @example
15
+ * waf_v3prepaid_public_cn-***
16
+ */
17
+ instanceId?: string;
18
+ /**
19
+ * @remarks
20
+ * The page number. Default value: **1**.
21
+ *
22
+ * @example
23
+ * 1
24
+ */
25
+ pageNumber?: number;
26
+ /**
27
+ * @remarks
28
+ * The number of entries per page. Default value: **10**.
29
+ *
30
+ * @example
31
+ * 10
32
+ */
33
+ pageSize?: number;
34
+ /**
35
+ * @remarks
36
+ * The region ID of the WAF instance. Valid values:
37
+ *
38
+ * * **cn-hangzhou**: Chinese mainland.
39
+ * * **ap-southeast-1**: outside the Chinese mainland.
40
+ *
41
+ * @example
42
+ * cn-hangzhou
43
+ */
44
+ regionId?: string;
45
+ /**
46
+ * @remarks
47
+ * The ID of the Alibaba Cloud resource group.
48
+ *
49
+ * @example
50
+ * rg-acfm***q
51
+ */
52
+ resourceManagerResourceGroupId?: string;
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ instanceId: 'InstanceId',
56
+ pageNumber: 'PageNumber',
57
+ pageSize: 'PageSize',
58
+ regionId: 'RegionId',
59
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
60
+ };
61
+ }
62
+
63
+ static types(): { [key: string]: any } {
64
+ return {
65
+ instanceId: 'string',
66
+ pageNumber: 'number',
67
+ pageSize: 'number',
68
+ regionId: 'string',
69
+ resourceManagerResourceGroupId: 'string',
70
+ };
71
+ }
72
+
73
+ validate() {
74
+ super.validate();
75
+ }
76
+
77
+ constructor(map?: { [key: string]: any }) {
78
+ super(map);
79
+ }
80
+ }
81
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribePrepayDailyBillsResponseBody } from "./DescribePrepayDailyBillsResponseBody";
4
+
5
+
6
+ export class DescribePrepayDailyBillsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribePrepayDailyBillsResponseBody;
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: DescribePrepayDailyBillsResponseBody,
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,201 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribePrepayDailyBillsResponseBodyBills extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The burstable QPS of the WAF instance.
9
+ *
10
+ * @example
11
+ * 100
12
+ */
13
+ elasticQpsSetValue?: number;
14
+ /**
15
+ * @remarks
16
+ * The billing end time. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
17
+ *
18
+ * @example
19
+ * 1687591200
20
+ */
21
+ endTime?: number;
22
+ /**
23
+ * @remarks
24
+ * The status of QPS usage within the current period of time. Valid values:
25
+ *
26
+ * * **0**: normal.
27
+ * * **1**: excess.
28
+ * * **2**: sandbox.
29
+ *
30
+ * @example
31
+ * 0
32
+ */
33
+ exceedStatus?: number;
34
+ /**
35
+ * @remarks
36
+ * The peak QPS within the current period of time.
37
+ *
38
+ * @example
39
+ * 600
40
+ */
41
+ maxQps?: number;
42
+ /**
43
+ * @remarks
44
+ * The unit price in the bill. The price is measured in CNY for bills at the China site (aliyun.com) and in USD for bills at the international site (alibabacloud.com).
45
+ *
46
+ * @example
47
+ * 0.25
48
+ */
49
+ price?: number;
50
+ /**
51
+ * @remarks
52
+ * The extended QPS of the WAF instance.
53
+ *
54
+ * @example
55
+ * 10
56
+ */
57
+ qps?: number;
58
+ /**
59
+ * @remarks
60
+ * The default QPS of the WAF instance.
61
+ *
62
+ * @example
63
+ * 10
64
+ */
65
+ qpsVersion?: number;
66
+ /**
67
+ * @remarks
68
+ * Indicates whether risk identification is enabled. Valid values:
69
+ *
70
+ * * **true**
71
+ * * **false**
72
+ *
73
+ * @example
74
+ * true
75
+ */
76
+ riskControl?: boolean;
77
+ /**
78
+ * @remarks
79
+ * The number of times that risk identification is performed.
80
+ *
81
+ * @example
82
+ * 100
83
+ */
84
+ riskTraffic?: number;
85
+ /**
86
+ * @remarks
87
+ * The billing start time. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
88
+ *
89
+ * @example
90
+ * 1687822980
91
+ */
92
+ startTime?: number;
93
+ /**
94
+ * @remarks
95
+ * The actual QPS in total.
96
+ *
97
+ * @example
98
+ * 0
99
+ */
100
+ total?: number;
101
+ /**
102
+ * @remarks
103
+ * The billing types.
104
+ */
105
+ type?: string[];
106
+ static names(): { [key: string]: string } {
107
+ return {
108
+ elasticQpsSetValue: 'ElasticQpsSetValue',
109
+ endTime: 'EndTime',
110
+ exceedStatus: 'ExceedStatus',
111
+ maxQps: 'MaxQps',
112
+ price: 'Price',
113
+ qps: 'Qps',
114
+ qpsVersion: 'QpsVersion',
115
+ riskControl: 'RiskControl',
116
+ riskTraffic: 'RiskTraffic',
117
+ startTime: 'StartTime',
118
+ total: 'Total',
119
+ type: 'Type',
120
+ };
121
+ }
122
+
123
+ static types(): { [key: string]: any } {
124
+ return {
125
+ elasticQpsSetValue: 'number',
126
+ endTime: 'number',
127
+ exceedStatus: 'number',
128
+ maxQps: 'number',
129
+ price: 'number',
130
+ qps: 'number',
131
+ qpsVersion: 'number',
132
+ riskControl: 'boolean',
133
+ riskTraffic: 'number',
134
+ startTime: 'number',
135
+ total: 'number',
136
+ type: { 'type': 'array', 'itemType': 'string' },
137
+ };
138
+ }
139
+
140
+ validate() {
141
+ if(Array.isArray(this.type)) {
142
+ $dara.Model.validateArray(this.type);
143
+ }
144
+ super.validate();
145
+ }
146
+
147
+ constructor(map?: { [key: string]: any }) {
148
+ super(map);
149
+ }
150
+ }
151
+
152
+ export class DescribePrepayDailyBillsResponseBody extends $dara.Model {
153
+ /**
154
+ * @remarks
155
+ * The bills of the burstable QPS (pay-as-you-go) feature.
156
+ */
157
+ bills?: DescribePrepayDailyBillsResponseBodyBills[];
158
+ /**
159
+ * @remarks
160
+ * The request ID.
161
+ *
162
+ * @example
163
+ * EC10C9EA-A367-52D5-***-***
164
+ */
165
+ requestId?: string;
166
+ /**
167
+ * @remarks
168
+ * The total number of entries returned.
169
+ *
170
+ * @example
171
+ * 10
172
+ */
173
+ totalCount?: number;
174
+ static names(): { [key: string]: string } {
175
+ return {
176
+ bills: 'Bills',
177
+ requestId: 'RequestId',
178
+ totalCount: 'TotalCount',
179
+ };
180
+ }
181
+
182
+ static types(): { [key: string]: any } {
183
+ return {
184
+ bills: { 'type': 'array', 'itemType': DescribePrepayDailyBillsResponseBodyBills },
185
+ requestId: 'string',
186
+ totalCount: 'number',
187
+ };
188
+ }
189
+
190
+ validate() {
191
+ if(Array.isArray(this.bills)) {
192
+ $dara.Model.validateArray(this.bills);
193
+ }
194
+ super.validate();
195
+ }
196
+
197
+ constructor(map?: { [key: string]: any }) {
198
+ super(map);
199
+ }
200
+ }
201
+
@@ -37,6 +37,7 @@ export { DescribeApisecSensitiveDomainStatisticResponseBodyData } from './Descri
37
37
  export { DescribeApisecStatisticsResponseBodyData } from './DescribeApisecStatisticsResponseBody';
38
38
  export { DescribeApisecSuggestionsResponseBodyData } from './DescribeApisecSuggestionsResponseBody';
39
39
  export { DescribeApisecUserOperationsResponseBodyData } from './DescribeApisecUserOperationsResponseBody';
40
+ export { DescribeBaseRuleChangeLogResponseBodyRules } from './DescribeBaseRuleChangeLogResponseBody';
40
41
  export { DescribeBaseSystemRulesResponseBodyRules } from './DescribeBaseSystemRulesResponseBody';
41
42
  export { DescribeBotRuleLabelsResponseBodyRuleLabels } from './DescribeBotRuleLabelsResponseBody';
42
43
  export { DescribeCertDetailResponseBodyCertDetail } from './DescribeCertDetailResponseBody';
@@ -82,6 +83,7 @@ export { DescribeDomainsResponseBodyDomainsBackedsHttps } from './DescribeDomain
82
83
  export { DescribeDomainsResponseBodyDomainsBackeds } from './DescribeDomainsResponseBody';
83
84
  export { DescribeDomainsResponseBodyDomainsListenPorts } from './DescribeDomainsResponseBody';
84
85
  export { DescribeDomainsResponseBodyDomains } from './DescribeDomainsResponseBody';
86
+ export { DescribeElasticBillsResponseBodyBills } from './DescribeElasticBillsResponseBody';
85
87
  export { DescribeFlowChartResponseBodyFlowChart } from './DescribeFlowChartResponseBody';
86
88
  export { DescribeFlowTopResourceResponseBodyRuleHitsTopResource } from './DescribeFlowTopResourceResponseBody';
87
89
  export { DescribeFlowTopUrlResponseBodyRuleHitsTopUrl } from './DescribeFlowTopUrlResponseBody';
@@ -129,6 +131,7 @@ export { DescribeNetworkFlowTopNMetricResponseBodyTopNMetaDataDateRange } from '
129
131
  export { DescribeNetworkFlowTopNMetricResponseBodyTopNMetaData } from './DescribeNetworkFlowTopNmetricResponseBody';
130
132
  export { DescribePeakTrendResponseBodyFlowChart } from './DescribePeakTrendResponseBody';
131
133
  export { DescribePocFunctionsResponseBodyFunctions } from './DescribePocFunctionsResponseBody';
134
+ export { DescribePrepayDailyBillsResponseBodyBills } from './DescribePrepayDailyBillsResponseBody';
132
135
  export { DescribeProductInstancesResponseBodyProductInstancesAccessPortAndProtocols } from './DescribeProductInstancesResponseBody';
133
136
  export { DescribeProductInstancesResponseBodyProductInstancesResourcePortsCertificates } from './DescribeProductInstancesResponseBody';
134
137
  export { DescribeProductInstancesResponseBodyProductInstancesResourcePorts } from './DescribeProductInstancesResponseBody';
@@ -401,6 +404,9 @@ export { DescribeApisecSuggestionsResponse } from './DescribeApisecSuggestionsRe
401
404
  export { DescribeApisecUserOperationsRequest } from './DescribeApisecUserOperationsRequest';
402
405
  export { DescribeApisecUserOperationsResponseBody } from './DescribeApisecUserOperationsResponseBody';
403
406
  export { DescribeApisecUserOperationsResponse } from './DescribeApisecUserOperationsResponse';
407
+ export { DescribeBaseRuleChangeLogRequest } from './DescribeBaseRuleChangeLogRequest';
408
+ export { DescribeBaseRuleChangeLogResponseBody } from './DescribeBaseRuleChangeLogResponseBody';
409
+ export { DescribeBaseRuleChangeLogResponse } from './DescribeBaseRuleChangeLogResponse';
404
410
  export { DescribeBaseSystemRulesRequest } from './DescribeBaseSystemRulesRequest';
405
411
  export { DescribeBaseSystemRulesResponseBody } from './DescribeBaseSystemRulesResponseBody';
406
412
  export { DescribeBaseSystemRulesResponse } from './DescribeBaseSystemRulesResponse';
@@ -513,6 +519,9 @@ export { DescribeDomainUsedPortsResponse } from './DescribeDomainUsedPortsRespon
513
519
  export { DescribeDomainsRequest } from './DescribeDomainsRequest';
514
520
  export { DescribeDomainsResponseBody } from './DescribeDomainsResponseBody';
515
521
  export { DescribeDomainsResponse } from './DescribeDomainsResponse';
522
+ export { DescribeElasticBillsRequest } from './DescribeElasticBillsRequest';
523
+ export { DescribeElasticBillsResponseBody } from './DescribeElasticBillsResponseBody';
524
+ export { DescribeElasticBillsResponse } from './DescribeElasticBillsResponse';
516
525
  export { DescribeFlowChartRequest } from './DescribeFlowChartRequest';
517
526
  export { DescribeFlowChartResponseBody } from './DescribeFlowChartResponseBody';
518
527
  export { DescribeFlowChartResponse } from './DescribeFlowChartResponse';
@@ -617,6 +626,9 @@ export { DescribePeakTrendResponse } from './DescribePeakTrendResponse';
617
626
  export { DescribePocFunctionsRequest } from './DescribePocFunctionsRequest';
618
627
  export { DescribePocFunctionsResponseBody } from './DescribePocFunctionsResponseBody';
619
628
  export { DescribePocFunctionsResponse } from './DescribePocFunctionsResponse';
629
+ export { DescribePrepayDailyBillsRequest } from './DescribePrepayDailyBillsRequest';
630
+ export { DescribePrepayDailyBillsResponseBody } from './DescribePrepayDailyBillsResponseBody';
631
+ export { DescribePrepayDailyBillsResponse } from './DescribePrepayDailyBillsResponse';
620
632
  export { DescribeProductInstancesRequest } from './DescribeProductInstancesRequest';
621
633
  export { DescribeProductInstancesResponseBody } from './DescribeProductInstancesResponseBody';
622
634
  export { DescribeProductInstancesResponse } from './DescribeProductInstancesResponse';