@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
package/src/client.ts CHANGED
@@ -4301,6 +4301,68 @@ export default class Client extends OpenApi {
4301
4301
  return await this.describeApisecUserOperationsWithOptions(request, runtime);
4302
4302
  }
4303
4303
 
4304
+ /**
4305
+ * 分页查询基础防护规则集变化记录
4306
+ *
4307
+ * @param request - DescribeBaseRuleChangeLogRequest
4308
+ * @param runtime - runtime options for this request RuntimeOptions
4309
+ * @returns DescribeBaseRuleChangeLogResponse
4310
+ */
4311
+ async describeBaseRuleChangeLogWithOptions(request: $_model.DescribeBaseRuleChangeLogRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeBaseRuleChangeLogResponse> {
4312
+ request.validate();
4313
+ let query = { };
4314
+ if (!$dara.isNull(request.instanceId)) {
4315
+ query["InstanceId"] = request.instanceId;
4316
+ }
4317
+
4318
+ if (!$dara.isNull(request.lang)) {
4319
+ query["Lang"] = request.lang;
4320
+ }
4321
+
4322
+ if (!$dara.isNull(request.pageNumber)) {
4323
+ query["PageNumber"] = request.pageNumber;
4324
+ }
4325
+
4326
+ if (!$dara.isNull(request.pageSize)) {
4327
+ query["PageSize"] = request.pageSize;
4328
+ }
4329
+
4330
+ if (!$dara.isNull(request.regionId)) {
4331
+ query["RegionId"] = request.regionId;
4332
+ }
4333
+
4334
+ if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
4335
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
4336
+ }
4337
+
4338
+ let req = new $OpenApiUtil.OpenApiRequest({
4339
+ query: OpenApiUtil.query(query),
4340
+ });
4341
+ let params = new $OpenApiUtil.Params({
4342
+ action: "DescribeBaseRuleChangeLog",
4343
+ version: "2021-10-01",
4344
+ protocol: "HTTPS",
4345
+ pathname: "/",
4346
+ method: "POST",
4347
+ authType: "AK",
4348
+ style: "RPC",
4349
+ reqBodyType: "formData",
4350
+ bodyType: "json",
4351
+ });
4352
+ return $dara.cast<$_model.DescribeBaseRuleChangeLogResponse>(await this.callApi(params, req, runtime), new $_model.DescribeBaseRuleChangeLogResponse({}));
4353
+ }
4354
+
4355
+ /**
4356
+ * 分页查询基础防护规则集变化记录
4357
+ *
4358
+ * @param request - DescribeBaseRuleChangeLogRequest
4359
+ * @returns DescribeBaseRuleChangeLogResponse
4360
+ */
4361
+ async describeBaseRuleChangeLog(request: $_model.DescribeBaseRuleChangeLogRequest): Promise<$_model.DescribeBaseRuleChangeLogResponse> {
4362
+ let runtime = new $dara.RuntimeOptions({ });
4363
+ return await this.describeBaseRuleChangeLogWithOptions(request, runtime);
4364
+ }
4365
+
4304
4366
  /**
4305
4367
  * 查询基础防护系统规则集
4306
4368
  *
@@ -6641,6 +6703,64 @@ export default class Client extends OpenApi {
6641
6703
  return await this.describeDomainsWithOptions(request, runtime);
6642
6704
  }
6643
6705
 
6706
+ /**
6707
+ * Queries the daily billing information of a pay-as-you-go Web Application Firewall (WAF) instance. This allows you to check the daily security capacity unit (SeCU) usage. You can query only data in the previous seven days.
6708
+ *
6709
+ * @param request - DescribeElasticBillsRequest
6710
+ * @param runtime - runtime options for this request RuntimeOptions
6711
+ * @returns DescribeElasticBillsResponse
6712
+ */
6713
+ async describeElasticBillsWithOptions(request: $_model.DescribeElasticBillsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeElasticBillsResponse> {
6714
+ request.validate();
6715
+ let query = { };
6716
+ if (!$dara.isNull(request.instanceId)) {
6717
+ query["InstanceId"] = request.instanceId;
6718
+ }
6719
+
6720
+ if (!$dara.isNull(request.pageNumber)) {
6721
+ query["PageNumber"] = request.pageNumber;
6722
+ }
6723
+
6724
+ if (!$dara.isNull(request.pageSize)) {
6725
+ query["PageSize"] = request.pageSize;
6726
+ }
6727
+
6728
+ if (!$dara.isNull(request.regionId)) {
6729
+ query["RegionId"] = request.regionId;
6730
+ }
6731
+
6732
+ if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
6733
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
6734
+ }
6735
+
6736
+ let req = new $OpenApiUtil.OpenApiRequest({
6737
+ query: OpenApiUtil.query(query),
6738
+ });
6739
+ let params = new $OpenApiUtil.Params({
6740
+ action: "DescribeElasticBills",
6741
+ version: "2021-10-01",
6742
+ protocol: "HTTPS",
6743
+ pathname: "/",
6744
+ method: "POST",
6745
+ authType: "AK",
6746
+ style: "RPC",
6747
+ reqBodyType: "formData",
6748
+ bodyType: "json",
6749
+ });
6750
+ return $dara.cast<$_model.DescribeElasticBillsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeElasticBillsResponse({}));
6751
+ }
6752
+
6753
+ /**
6754
+ * Queries the daily billing information of a pay-as-you-go Web Application Firewall (WAF) instance. This allows you to check the daily security capacity unit (SeCU) usage. You can query only data in the previous seven days.
6755
+ *
6756
+ * @param request - DescribeElasticBillsRequest
6757
+ * @returns DescribeElasticBillsResponse
6758
+ */
6759
+ async describeElasticBills(request: $_model.DescribeElasticBillsRequest): Promise<$_model.DescribeElasticBillsResponse> {
6760
+ let runtime = new $dara.RuntimeOptions({ });
6761
+ return await this.describeElasticBillsWithOptions(request, runtime);
6762
+ }
6763
+
6644
6764
  /**
6645
6765
  * Queries the traffic statistics of requests that are forwarded to Web Application Firewall (WAF).
6646
6766
  *
@@ -8653,6 +8773,64 @@ export default class Client extends OpenApi {
8653
8773
  return await this.describePocFunctionsWithOptions(request, runtime);
8654
8774
  }
8655
8775
 
8776
+ /**
8777
+ * Queries the bills of the burstable QPS (pay-as-you-go) feature. The feature is supported only by subscription Web Application Firewall (WAF) instances.
8778
+ *
8779
+ * @param request - DescribePrepayDailyBillsRequest
8780
+ * @param runtime - runtime options for this request RuntimeOptions
8781
+ * @returns DescribePrepayDailyBillsResponse
8782
+ */
8783
+ async describePrepayDailyBillsWithOptions(request: $_model.DescribePrepayDailyBillsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePrepayDailyBillsResponse> {
8784
+ request.validate();
8785
+ let query = { };
8786
+ if (!$dara.isNull(request.instanceId)) {
8787
+ query["InstanceId"] = request.instanceId;
8788
+ }
8789
+
8790
+ if (!$dara.isNull(request.pageNumber)) {
8791
+ query["PageNumber"] = request.pageNumber;
8792
+ }
8793
+
8794
+ if (!$dara.isNull(request.pageSize)) {
8795
+ query["PageSize"] = request.pageSize;
8796
+ }
8797
+
8798
+ if (!$dara.isNull(request.regionId)) {
8799
+ query["RegionId"] = request.regionId;
8800
+ }
8801
+
8802
+ if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
8803
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
8804
+ }
8805
+
8806
+ let req = new $OpenApiUtil.OpenApiRequest({
8807
+ query: OpenApiUtil.query(query),
8808
+ });
8809
+ let params = new $OpenApiUtil.Params({
8810
+ action: "DescribePrepayDailyBills",
8811
+ version: "2021-10-01",
8812
+ protocol: "HTTPS",
8813
+ pathname: "/",
8814
+ method: "POST",
8815
+ authType: "AK",
8816
+ style: "RPC",
8817
+ reqBodyType: "formData",
8818
+ bodyType: "json",
8819
+ });
8820
+ return $dara.cast<$_model.DescribePrepayDailyBillsResponse>(await this.callApi(params, req, runtime), new $_model.DescribePrepayDailyBillsResponse({}));
8821
+ }
8822
+
8823
+ /**
8824
+ * Queries the bills of the burstable QPS (pay-as-you-go) feature. The feature is supported only by subscription Web Application Firewall (WAF) instances.
8825
+ *
8826
+ * @param request - DescribePrepayDailyBillsRequest
8827
+ * @returns DescribePrepayDailyBillsResponse
8828
+ */
8829
+ async describePrepayDailyBills(request: $_model.DescribePrepayDailyBillsRequest): Promise<$_model.DescribePrepayDailyBillsResponse> {
8830
+ let runtime = new $dara.RuntimeOptions({ });
8831
+ return await this.describePrepayDailyBillsWithOptions(request, runtime);
8832
+ }
8833
+
8656
8834
  /**
8657
8835
  * Queries the cloud service instances to be added to Web Application Firewall (WAF) in transparent proxy mode.
8658
8836
  *
@@ -0,0 +1,69 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeBaseRuleChangeLogRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * waf-cn-mp9153****
12
+ */
13
+ instanceId?: string;
14
+ /**
15
+ * @example
16
+ * zh
17
+ */
18
+ lang?: string;
19
+ /**
20
+ * @example
21
+ * 1
22
+ */
23
+ pageNumber?: number;
24
+ /**
25
+ * @example
26
+ * 10
27
+ */
28
+ pageSize?: number;
29
+ /**
30
+ * @example
31
+ * cn-hangzhou
32
+ */
33
+ regionId?: string;
34
+ /**
35
+ * @example
36
+ * rg-acfm***q
37
+ */
38
+ resourceManagerResourceGroupId?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ instanceId: 'InstanceId',
42
+ lang: 'Lang',
43
+ pageNumber: 'PageNumber',
44
+ pageSize: 'PageSize',
45
+ regionId: 'RegionId',
46
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ instanceId: 'string',
53
+ lang: 'string',
54
+ pageNumber: 'number',
55
+ pageSize: 'number',
56
+ regionId: 'string',
57
+ resourceManagerResourceGroupId: 'string',
58
+ };
59
+ }
60
+
61
+ validate() {
62
+ super.validate();
63
+ }
64
+
65
+ constructor(map?: { [key: string]: any }) {
66
+ super(map);
67
+ }
68
+ }
69
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeBaseRuleChangeLogResponseBody } from "./DescribeBaseRuleChangeLogResponseBody";
4
+
5
+
6
+ export class DescribeBaseRuleChangeLogResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeBaseRuleChangeLogResponseBody;
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: DescribeBaseRuleChangeLogResponseBody,
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,99 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeBaseRuleChangeLogResponseBodyRules extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * CVE-2021-34538
9
+ */
10
+ cveId?: string;
11
+ /**
12
+ * @example
13
+ * add
14
+ */
15
+ operation?: string;
16
+ /**
17
+ * @example
18
+ * 42755
19
+ */
20
+ ruleId?: number;
21
+ /**
22
+ * @example
23
+ * Header XSS Scanner Behavior
24
+ */
25
+ ruleName?: string;
26
+ /**
27
+ * @example
28
+ * 1665460629000
29
+ */
30
+ updateTime?: number;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ cveId: 'CveId',
34
+ operation: 'Operation',
35
+ ruleId: 'RuleId',
36
+ ruleName: 'RuleName',
37
+ updateTime: 'UpdateTime',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ cveId: 'string',
44
+ operation: 'string',
45
+ ruleId: 'number',
46
+ ruleName: 'string',
47
+ updateTime: 'number',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
60
+ export class DescribeBaseRuleChangeLogResponseBody extends $dara.Model {
61
+ /**
62
+ * @example
63
+ * 6FBF08CB-8691-5B65-BBF8-***
64
+ */
65
+ requestId?: string;
66
+ rules?: DescribeBaseRuleChangeLogResponseBodyRules[];
67
+ /**
68
+ * @example
69
+ * 63
70
+ */
71
+ totalCount?: number;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ requestId: 'RequestId',
75
+ rules: 'Rules',
76
+ totalCount: 'TotalCount',
77
+ };
78
+ }
79
+
80
+ static types(): { [key: string]: any } {
81
+ return {
82
+ requestId: 'string',
83
+ rules: { 'type': 'array', 'itemType': DescribeBaseRuleChangeLogResponseBodyRules },
84
+ totalCount: 'number',
85
+ };
86
+ }
87
+
88
+ validate() {
89
+ if(Array.isArray(this.rules)) {
90
+ $dara.Model.validateArray(this.rules);
91
+ }
92
+ super.validate();
93
+ }
94
+
95
+ constructor(map?: { [key: string]: any }) {
96
+ super(map);
97
+ }
98
+ }
99
+
@@ -0,0 +1,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeElasticBillsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the WAF instance.
9
+ *
10
+ * > You can call the [DescribeInstance](https://help.aliyun.com/document_detail/433756.html) operation to query the ID of the WAF instance.
11
+ *
12
+ * This parameter is required.
13
+ *
14
+ * @example
15
+ * waf_v2_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
+ * @example
47
+ * rg-acfm***q
48
+ */
49
+ resourceManagerResourceGroupId?: string;
50
+ static names(): { [key: string]: string } {
51
+ return {
52
+ instanceId: 'InstanceId',
53
+ pageNumber: 'PageNumber',
54
+ pageSize: 'PageSize',
55
+ regionId: 'RegionId',
56
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
57
+ };
58
+ }
59
+
60
+ static types(): { [key: string]: any } {
61
+ return {
62
+ instanceId: 'string',
63
+ pageNumber: 'number',
64
+ pageSize: 'number',
65
+ regionId: 'string',
66
+ resourceManagerResourceGroupId: 'string',
67
+ };
68
+ }
69
+
70
+ validate() {
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeElasticBillsResponseBody } from "./DescribeElasticBillsResponseBody";
4
+
5
+
6
+ export class DescribeElasticBillsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeElasticBillsResponseBody;
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: DescribeElasticBillsResponseBody,
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,124 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeElasticBillsResponseBodyBills extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The total number of SeCUs.
9
+ *
10
+ * @example
11
+ * 2
12
+ */
13
+ cu?: 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
+ * 1717084800000
20
+ */
21
+ endTime?: number;
22
+ /**
23
+ * @remarks
24
+ * The SeCUs generated by the features that you configure.
25
+ *
26
+ * @example
27
+ * 1
28
+ */
29
+ functionCu?: number;
30
+ /**
31
+ * @remarks
32
+ * 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.
33
+ *
34
+ * @example
35
+ * 1665484616000
36
+ */
37
+ startTime?: number;
38
+ /**
39
+ * @remarks
40
+ * The SeCUs generated by traffic processing.
41
+ *
42
+ * @example
43
+ * 1
44
+ */
45
+ trafficCu?: number;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ cu: 'Cu',
49
+ endTime: 'EndTime',
50
+ functionCu: 'FunctionCu',
51
+ startTime: 'StartTime',
52
+ trafficCu: 'TrafficCu',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ cu: 'number',
59
+ endTime: 'number',
60
+ functionCu: 'number',
61
+ startTime: 'number',
62
+ trafficCu: 'number',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ super.validate();
68
+ }
69
+
70
+ constructor(map?: { [key: string]: any }) {
71
+ super(map);
72
+ }
73
+ }
74
+
75
+ export class DescribeElasticBillsResponseBody extends $dara.Model {
76
+ /**
77
+ * @remarks
78
+ * The pay-as-you-go bills.
79
+ */
80
+ bills?: DescribeElasticBillsResponseBodyBills[];
81
+ /**
82
+ * @remarks
83
+ * The ID of the request.
84
+ *
85
+ * @example
86
+ * 6FBF08CB-8691-5B65-BBF8-***
87
+ */
88
+ requestId?: string;
89
+ /**
90
+ * @remarks
91
+ * The total number of entries returned.
92
+ *
93
+ * @example
94
+ * 1
95
+ */
96
+ totalCount?: number;
97
+ static names(): { [key: string]: string } {
98
+ return {
99
+ bills: 'Bills',
100
+ requestId: 'RequestId',
101
+ totalCount: 'TotalCount',
102
+ };
103
+ }
104
+
105
+ static types(): { [key: string]: any } {
106
+ return {
107
+ bills: { 'type': 'array', 'itemType': DescribeElasticBillsResponseBodyBills },
108
+ requestId: 'string',
109
+ totalCount: 'number',
110
+ };
111
+ }
112
+
113
+ validate() {
114
+ if(Array.isArray(this.bills)) {
115
+ $dara.Model.validateArray(this.bills);
116
+ }
117
+ super.validate();
118
+ }
119
+
120
+ constructor(map?: { [key: string]: any }) {
121
+ super(map);
122
+ }
123
+ }
124
+