@alicloud/cloudfw20171207 6.4.0 → 7.0.1

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 (68) hide show
  1. package/dist/client.d.ts +34 -2
  2. package/dist/client.js +121 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ClearLogStoreStorageRequest.d.ts +18 -0
  5. package/dist/models/ClearLogStoreStorageRequest.js +58 -0
  6. package/dist/models/ClearLogStoreStorageRequest.js.map +1 -0
  7. package/dist/models/DescribeBatchSlsDispatchStatusResponseBody.d.ts +76 -0
  8. package/dist/models/DescribeBatchSlsDispatchStatusResponseBody.js +68 -1
  9. package/dist/models/DescribeBatchSlsDispatchStatusResponseBody.js.map +1 -1
  10. package/dist/models/DescribeLogStoreInfoResponseBody.d.ts +78 -0
  11. package/dist/models/DescribeLogStoreInfoResponseBody.js +49 -1
  12. package/dist/models/DescribeLogStoreInfoResponseBody.js.map +1 -1
  13. package/dist/models/DescribeRegionResourceTypeAutoEnableRequest.d.ts +18 -0
  14. package/dist/models/DescribeRegionResourceTypeAutoEnableRequest.js +58 -0
  15. package/dist/models/DescribeRegionResourceTypeAutoEnableRequest.js.map +1 -0
  16. package/dist/models/DescribeRegionResourceTypeAutoEnableResponse.d.ts +19 -0
  17. package/dist/models/DescribeRegionResourceTypeAutoEnableResponse.js +69 -0
  18. package/dist/models/DescribeRegionResourceTypeAutoEnableResponse.js.map +1 -0
  19. package/dist/models/DescribeRegionResourceTypeAutoEnableResponseBody.d.ts +26 -0
  20. package/dist/models/DescribeRegionResourceTypeAutoEnableResponseBody.js +63 -0
  21. package/dist/models/DescribeRegionResourceTypeAutoEnableResponseBody.js.map +1 -0
  22. package/dist/models/ModifyResourceTypeAutoEnableRequest.d.ts +5 -0
  23. package/dist/models/ModifyResourceTypeAutoEnableRequest.js +2 -0
  24. package/dist/models/ModifyResourceTypeAutoEnableRequest.js.map +1 -1
  25. package/dist/models/ModifySlsDispatchStatusRequest.d.ts +5 -0
  26. package/dist/models/ModifySlsDispatchStatusRequest.js +2 -0
  27. package/dist/models/ModifySlsDispatchStatusRequest.js.map +1 -1
  28. package/dist/models/ModifyUserSlsLogStorageTimeRequest.d.ts +10 -0
  29. package/dist/models/ModifyUserSlsLogStorageTimeRequest.js +4 -0
  30. package/dist/models/ModifyUserSlsLogStorageTimeRequest.js.map +1 -1
  31. package/dist/models/ModifyVpcFirewallAclEngineModeRequest.d.ts +3 -0
  32. package/dist/models/ModifyVpcFirewallAclEngineModeRequest.js.map +1 -1
  33. package/dist/models/PutDisableFwSwitchRequest.d.ts +10 -0
  34. package/dist/models/PutDisableFwSwitchRequest.js +4 -0
  35. package/dist/models/PutDisableFwSwitchRequest.js.map +1 -1
  36. package/dist/models/PutEnableFwSwitchRequest.d.ts +10 -0
  37. package/dist/models/PutEnableFwSwitchRequest.js +4 -0
  38. package/dist/models/PutEnableFwSwitchRequest.js.map +1 -1
  39. package/dist/models/SetAutoProtectNewAssetsRequest.d.ts +31 -0
  40. package/dist/models/SetAutoProtectNewAssetsRequest.js +62 -0
  41. package/dist/models/SetAutoProtectNewAssetsRequest.js.map +1 -0
  42. package/dist/models/SetAutoProtectNewAssetsResponse.d.ts +19 -0
  43. package/dist/models/SetAutoProtectNewAssetsResponse.js +69 -0
  44. package/dist/models/SetAutoProtectNewAssetsResponse.js.map +1 -0
  45. package/dist/models/SetAutoProtectNewAssetsResponseBody.d.ts +23 -0
  46. package/dist/models/SetAutoProtectNewAssetsResponseBody.js +60 -0
  47. package/dist/models/SetAutoProtectNewAssetsResponseBody.js.map +1 -0
  48. package/dist/models/model.d.ts +10 -0
  49. package/dist/models/model.js +47 -26
  50. package/dist/models/model.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/client.ts +138 -4
  53. package/src/models/ClearLogStoreStorageRequest.ts +31 -0
  54. package/src/models/DescribeBatchSlsDispatchStatusResponseBody.ts +125 -0
  55. package/src/models/DescribeLogStoreInfoResponseBody.ts +117 -0
  56. package/src/models/DescribeRegionResourceTypeAutoEnableRequest.ts +31 -0
  57. package/src/models/DescribeRegionResourceTypeAutoEnableResponse.ts +40 -0
  58. package/src/models/DescribeRegionResourceTypeAutoEnableResponseBody.ts +40 -0
  59. package/src/models/ModifyResourceTypeAutoEnableRequest.ts +7 -0
  60. package/src/models/ModifySlsDispatchStatusRequest.ts +7 -0
  61. package/src/models/ModifyUserSlsLogStorageTimeRequest.ts +14 -0
  62. package/src/models/ModifyVpcFirewallAclEngineModeRequest.ts +3 -0
  63. package/src/models/PutDisableFwSwitchRequest.ts +14 -0
  64. package/src/models/PutEnableFwSwitchRequest.ts +14 -0
  65. package/src/models/SetAutoProtectNewAssetsRequest.ts +48 -0
  66. package/src/models/SetAutoProtectNewAssetsResponse.ts +40 -0
  67. package/src/models/SetAutoProtectNewAssetsResponseBody.ts +38 -0
  68. package/src/models/model.ts +10 -0
package/src/client.ts CHANGED
@@ -697,8 +697,16 @@ export default class Client extends OpenApi {
697
697
  * @param runtime - runtime options for this request RuntimeOptions
698
698
  * @returns ClearLogStoreStorageResponse
699
699
  */
700
- async clearLogStoreStorageWithOptions(runtime: $dara.RuntimeOptions): Promise<$_model.ClearLogStoreStorageResponse> {
701
- let req = new $OpenApiUtil.OpenApiRequest({ });
700
+ async clearLogStoreStorageWithOptions(request: $_model.ClearLogStoreStorageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ClearLogStoreStorageResponse> {
701
+ request.validate();
702
+ let query = { };
703
+ if (!$dara.isNull(request.site)) {
704
+ query["Site"] = request.site;
705
+ }
706
+
707
+ let req = new $OpenApiUtil.OpenApiRequest({
708
+ query: OpenApiUtil.query(query),
709
+ });
702
710
  let params = new $OpenApiUtil.Params({
703
711
  action: "ClearLogStoreStorage",
704
712
  version: "2017-12-07",
@@ -715,11 +723,13 @@ export default class Client extends OpenApi {
715
723
 
716
724
  /**
717
725
  * 清空防火墙日志
726
+ *
727
+ * @param request - ClearLogStoreStorageRequest
718
728
  * @returns ClearLogStoreStorageResponse
719
729
  */
720
- async clearLogStoreStorage(): Promise<$_model.ClearLogStoreStorageResponse> {
730
+ async clearLogStoreStorage(request: $_model.ClearLogStoreStorageRequest): Promise<$_model.ClearLogStoreStorageResponse> {
721
731
  let runtime = new $dara.RuntimeOptions({ });
722
- return await this.clearLogStoreStorageWithOptions(runtime);
732
+ return await this.clearLogStoreStorageWithOptions(request, runtime);
723
733
  }
724
734
 
725
735
  /**
@@ -9498,6 +9508,48 @@ export default class Client extends OpenApi {
9498
9508
  return await this.describeRegionInfoWithOptions(request, runtime);
9499
9509
  }
9500
9510
 
9511
+ /**
9512
+ * 查询地域和资产类型引流设置
9513
+ *
9514
+ * @param request - DescribeRegionResourceTypeAutoEnableRequest
9515
+ * @param runtime - runtime options for this request RuntimeOptions
9516
+ * @returns DescribeRegionResourceTypeAutoEnableResponse
9517
+ */
9518
+ async describeRegionResourceTypeAutoEnableWithOptions(request: $_model.DescribeRegionResourceTypeAutoEnableRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeRegionResourceTypeAutoEnableResponse> {
9519
+ request.validate();
9520
+ let query = { };
9521
+ if (!$dara.isNull(request.lang)) {
9522
+ query["Lang"] = request.lang;
9523
+ }
9524
+
9525
+ let req = new $OpenApiUtil.OpenApiRequest({
9526
+ query: OpenApiUtil.query(query),
9527
+ });
9528
+ let params = new $OpenApiUtil.Params({
9529
+ action: "DescribeRegionResourceTypeAutoEnable",
9530
+ version: "2017-12-07",
9531
+ protocol: "HTTPS",
9532
+ pathname: "/",
9533
+ method: "POST",
9534
+ authType: "AK",
9535
+ style: "RPC",
9536
+ reqBodyType: "formData",
9537
+ bodyType: "json",
9538
+ });
9539
+ return $dara.cast<$_model.DescribeRegionResourceTypeAutoEnableResponse>(await this.callApi(params, req, runtime), new $_model.DescribeRegionResourceTypeAutoEnableResponse({}));
9540
+ }
9541
+
9542
+ /**
9543
+ * 查询地域和资产类型引流设置
9544
+ *
9545
+ * @param request - DescribeRegionResourceTypeAutoEnableRequest
9546
+ * @returns DescribeRegionResourceTypeAutoEnableResponse
9547
+ */
9548
+ async describeRegionResourceTypeAutoEnable(request: $_model.DescribeRegionResourceTypeAutoEnableRequest): Promise<$_model.DescribeRegionResourceTypeAutoEnableResponse> {
9549
+ let runtime = new $dara.RuntimeOptions({ });
9550
+ return await this.describeRegionResourceTypeAutoEnableWithOptions(request, runtime);
9551
+ }
9552
+
9501
9553
  /**
9502
9554
  * 查询资产类型默认引流
9503
9555
  *
@@ -14894,6 +14946,10 @@ export default class Client extends OpenApi {
14894
14946
  query["Lang"] = request.lang;
14895
14947
  }
14896
14948
 
14949
+ if (!$dara.isNull(request.regionNo)) {
14950
+ query["RegionNo"] = request.regionNo;
14951
+ }
14952
+
14897
14953
  if (!$dara.isNull(request.resourceTypeAutoEnable)) {
14898
14954
  query["ResourceTypeAutoEnable"] = request.resourceTypeAutoEnable;
14899
14955
  }
@@ -15002,6 +15058,10 @@ export default class Client extends OpenApi {
15002
15058
  query["NewRegionId"] = request.newRegionId;
15003
15059
  }
15004
15060
 
15061
+ if (!$dara.isNull(request.site)) {
15062
+ query["Site"] = request.site;
15063
+ }
15064
+
15005
15065
  let req = new $OpenApiUtil.OpenApiRequest({
15006
15066
  query: OpenApiUtil.query(query),
15007
15067
  });
@@ -15348,6 +15408,14 @@ export default class Client extends OpenApi {
15348
15408
  query["InstanceId"] = request.instanceId;
15349
15409
  }
15350
15410
 
15411
+ if (!$dara.isNull(request.logVersion)) {
15412
+ query["LogVersion"] = request.logVersion;
15413
+ }
15414
+
15415
+ if (!$dara.isNull(request.slsRegionId)) {
15416
+ query["SlsRegionId"] = request.slsRegionId;
15417
+ }
15418
+
15351
15419
  if (!$dara.isNull(request.storageTime)) {
15352
15420
  query["StorageTime"] = request.storageTime;
15353
15421
  }
@@ -16123,6 +16191,10 @@ export default class Client extends OpenApi {
16123
16191
  async putDisableFwSwitchWithOptions(request: $_model.PutDisableFwSwitchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutDisableFwSwitchResponse> {
16124
16192
  request.validate();
16125
16193
  let query = { };
16194
+ if (!$dara.isNull(request.ipVersion)) {
16195
+ query["IpVersion"] = request.ipVersion;
16196
+ }
16197
+
16126
16198
  if (!$dara.isNull(request.ipaddrList)) {
16127
16199
  query["IpaddrList"] = request.ipaddrList;
16128
16200
  }
@@ -16131,6 +16203,10 @@ export default class Client extends OpenApi {
16131
16203
  query["Lang"] = request.lang;
16132
16204
  }
16133
16205
 
16206
+ if (!$dara.isNull(request.memberUid)) {
16207
+ query["MemberUid"] = request.memberUid;
16208
+ }
16209
+
16134
16210
  if (!$dara.isNull(request.regionList)) {
16135
16211
  query["RegionList"] = request.regionList;
16136
16212
  }
@@ -16251,6 +16327,10 @@ export default class Client extends OpenApi {
16251
16327
  async putEnableFwSwitchWithOptions(request: $_model.PutEnableFwSwitchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutEnableFwSwitchResponse> {
16252
16328
  request.validate();
16253
16329
  let query = { };
16330
+ if (!$dara.isNull(request.ipVersion)) {
16331
+ query["IpVersion"] = request.ipVersion;
16332
+ }
16333
+
16254
16334
  if (!$dara.isNull(request.ipaddrList)) {
16255
16335
  query["IpaddrList"] = request.ipaddrList;
16256
16336
  }
@@ -16259,6 +16339,10 @@ export default class Client extends OpenApi {
16259
16339
  query["Lang"] = request.lang;
16260
16340
  }
16261
16341
 
16342
+ if (!$dara.isNull(request.memberUid)) {
16343
+ query["MemberUid"] = request.memberUid;
16344
+ }
16345
+
16262
16346
  if (!$dara.isNull(request.regionList)) {
16263
16347
  query["RegionList"] = request.regionList;
16264
16348
  }
@@ -16544,6 +16628,56 @@ export default class Client extends OpenApi {
16544
16628
  return await this.resetVpcFirewallRuleHitCountWithOptions(request, runtime);
16545
16629
  }
16546
16630
 
16631
+ /**
16632
+ * 开启自动保护新入资产
16633
+ *
16634
+ * @param request - SetAutoProtectNewAssetsRequest
16635
+ * @param runtime - runtime options for this request RuntimeOptions
16636
+ * @returns SetAutoProtectNewAssetsResponse
16637
+ */
16638
+ async setAutoProtectNewAssetsWithOptions(request: $_model.SetAutoProtectNewAssetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetAutoProtectNewAssetsResponse> {
16639
+ request.validate();
16640
+ let query = { };
16641
+ if (!$dara.isNull(request.autoProtect)) {
16642
+ query["AutoProtect"] = request.autoProtect;
16643
+ }
16644
+
16645
+ if (!$dara.isNull(request.lang)) {
16646
+ query["Lang"] = request.lang;
16647
+ }
16648
+
16649
+ if (!$dara.isNull(request.sourceIp)) {
16650
+ query["SourceIp"] = request.sourceIp;
16651
+ }
16652
+
16653
+ let req = new $OpenApiUtil.OpenApiRequest({
16654
+ query: OpenApiUtil.query(query),
16655
+ });
16656
+ let params = new $OpenApiUtil.Params({
16657
+ action: "SetAutoProtectNewAssets",
16658
+ version: "2017-12-07",
16659
+ protocol: "HTTPS",
16660
+ pathname: "/",
16661
+ method: "POST",
16662
+ authType: "AK",
16663
+ style: "RPC",
16664
+ reqBodyType: "formData",
16665
+ bodyType: "json",
16666
+ });
16667
+ return $dara.cast<$_model.SetAutoProtectNewAssetsResponse>(await this.callApi(params, req, runtime), new $_model.SetAutoProtectNewAssetsResponse({}));
16668
+ }
16669
+
16670
+ /**
16671
+ * 开启自动保护新入资产
16672
+ *
16673
+ * @param request - SetAutoProtectNewAssetsRequest
16674
+ * @returns SetAutoProtectNewAssetsResponse
16675
+ */
16676
+ async setAutoProtectNewAssets(request: $_model.SetAutoProtectNewAssetsRequest): Promise<$_model.SetAutoProtectNewAssetsResponse> {
16677
+ let runtime = new $dara.RuntimeOptions({ });
16678
+ return await this.setAutoProtectNewAssetsWithOptions(request, runtime);
16679
+ }
16680
+
16547
16681
  /**
16548
16682
  * Enables or disables a NAT firewall.
16549
16683
  *
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ClearLogStoreStorageRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * cn
9
+ */
10
+ site?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ site: 'Site',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ site: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -2,12 +2,124 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeBatchSlsDispatchStatusResponseBodyInfoListItemList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * success_finished
9
+ */
10
+ configStatus?: string;
11
+ /**
12
+ * @example
13
+ * 互联网流量日志、VPC流量日志、NAT流量日志
14
+ */
15
+ dispatchName?: string;
16
+ /**
17
+ * @example
18
+ * ipv6_firewall_log
19
+ */
20
+ dispatchValue?: string;
21
+ /**
22
+ * @example
23
+ * true
24
+ */
25
+ enable?: boolean;
26
+ filterKeys?: string[];
27
+ /**
28
+ * @example
29
+ * log_type
30
+ */
31
+ searchName?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ configStatus: 'ConfigStatus',
35
+ dispatchName: 'DispatchName',
36
+ dispatchValue: 'DispatchValue',
37
+ enable: 'Enable',
38
+ filterKeys: 'FilterKeys',
39
+ searchName: 'SearchName',
40
+ };
41
+ }
42
+
43
+ static types(): { [key: string]: any } {
44
+ return {
45
+ configStatus: 'string',
46
+ dispatchName: 'string',
47
+ dispatchValue: 'string',
48
+ enable: 'boolean',
49
+ filterKeys: { 'type': 'array', 'itemType': 'string' },
50
+ searchName: 'string',
51
+ };
52
+ }
53
+
54
+ validate() {
55
+ if(Array.isArray(this.filterKeys)) {
56
+ $dara.Model.validateArray(this.filterKeys);
57
+ }
58
+ super.validate();
59
+ }
60
+
61
+ constructor(map?: { [key: string]: any }) {
62
+ super(map);
63
+ }
64
+ }
65
+
66
+ export class DescribeBatchSlsDispatchStatusResponseBodyInfoList extends $dara.Model {
67
+ itemList?: DescribeBatchSlsDispatchStatusResponseBodyInfoListItemList[];
68
+ /**
69
+ * @example
70
+ * cloudfirewall-logstore
71
+ */
72
+ logstoreName?: string;
73
+ /**
74
+ * @example
75
+ * cloudfirewall-project-1204872307283650-cn-hangzhou
76
+ */
77
+ projectName?: string;
78
+ /**
79
+ * @example
80
+ * cn
81
+ */
82
+ site?: string;
83
+ static names(): { [key: string]: string } {
84
+ return {
85
+ itemList: 'ItemList',
86
+ logstoreName: 'LogstoreName',
87
+ projectName: 'ProjectName',
88
+ site: 'Site',
89
+ };
90
+ }
91
+
92
+ static types(): { [key: string]: any } {
93
+ return {
94
+ itemList: { 'type': 'array', 'itemType': DescribeBatchSlsDispatchStatusResponseBodyInfoListItemList },
95
+ logstoreName: 'string',
96
+ projectName: 'string',
97
+ site: 'string',
98
+ };
99
+ }
100
+
101
+ validate() {
102
+ if(Array.isArray(this.itemList)) {
103
+ $dara.Model.validateArray(this.itemList);
104
+ }
105
+ super.validate();
106
+ }
107
+
108
+ constructor(map?: { [key: string]: any }) {
109
+ super(map);
110
+ }
111
+ }
112
+
5
113
  export class DescribeBatchSlsDispatchStatusResponseBodyItemList extends $dara.Model {
6
114
  /**
7
115
  * @example
8
116
  * success_finished
9
117
  */
10
118
  configStatus?: string;
119
+ /**
120
+ * @example
121
+ * 互联网流量日志、VPC流量日志、NAT流量日志
122
+ */
11
123
  dispatchName?: string;
12
124
  /**
13
125
  * @example
@@ -60,7 +172,13 @@ export class DescribeBatchSlsDispatchStatusResponseBodyItemList extends $dara.Mo
60
172
  }
61
173
 
62
174
  export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
175
+ infoList?: DescribeBatchSlsDispatchStatusResponseBodyInfoList[];
63
176
  itemList?: DescribeBatchSlsDispatchStatusResponseBodyItemList[];
177
+ /**
178
+ * @example
179
+ * 1
180
+ */
181
+ logVersion?: string;
64
182
  /**
65
183
  * @example
66
184
  * rs-stats
@@ -78,7 +196,9 @@ export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
78
196
  requestId?: string;
79
197
  static names(): { [key: string]: string } {
80
198
  return {
199
+ infoList: 'InfoList',
81
200
  itemList: 'ItemList',
201
+ logVersion: 'LogVersion',
82
202
  logstoreName: 'LogstoreName',
83
203
  projectName: 'ProjectName',
84
204
  requestId: 'RequestId',
@@ -87,7 +207,9 @@ export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
87
207
 
88
208
  static types(): { [key: string]: any } {
89
209
  return {
210
+ infoList: { 'type': 'array', 'itemType': DescribeBatchSlsDispatchStatusResponseBodyInfoList },
90
211
  itemList: { 'type': 'array', 'itemType': DescribeBatchSlsDispatchStatusResponseBodyItemList },
212
+ logVersion: 'string',
91
213
  logstoreName: 'string',
92
214
  projectName: 'string',
93
215
  requestId: 'string',
@@ -95,6 +217,9 @@ export class DescribeBatchSlsDispatchStatusResponseBody extends $dara.Model {
95
217
  }
96
218
 
97
219
  validate() {
220
+ if(Array.isArray(this.infoList)) {
221
+ $dara.Model.validateArray(this.infoList);
222
+ }
98
223
  if(Array.isArray(this.itemList)) {
99
224
  $dara.Model.validateArray(this.itemList);
100
225
  }
@@ -2,7 +2,96 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeLogStoreInfoResponseBodyInfoList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * xxx-logstore
9
+ */
10
+ logStoreName?: string;
11
+ /**
12
+ * @example
13
+ * 4
14
+ */
15
+ maxSplitShard?: number;
16
+ /**
17
+ * @example
18
+ * cloudfirewall-project-14151892848****-cn-hangzhou
19
+ */
20
+ projectName?: string;
21
+ /**
22
+ * @example
23
+ * 50000000
24
+ */
25
+ quota?: number;
26
+ /**
27
+ * @example
28
+ * cn-qingdao
29
+ */
30
+ regionId?: string;
31
+ /**
32
+ * @example
33
+ * 2
34
+ */
35
+ shard?: number;
36
+ /**
37
+ * @example
38
+ * cn
39
+ */
40
+ site?: string;
41
+ /**
42
+ * @example
43
+ * 180
44
+ */
45
+ ttl?: number;
46
+ /**
47
+ * @example
48
+ * 21852955752
49
+ */
50
+ used?: number;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ logStoreName: 'LogStoreName',
54
+ maxSplitShard: 'MaxSplitShard',
55
+ projectName: 'ProjectName',
56
+ quota: 'Quota',
57
+ regionId: 'RegionId',
58
+ shard: 'Shard',
59
+ site: 'Site',
60
+ ttl: 'Ttl',
61
+ used: 'Used',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ logStoreName: 'string',
68
+ maxSplitShard: 'number',
69
+ projectName: 'string',
70
+ quota: 'number',
71
+ regionId: 'string',
72
+ shard: 'number',
73
+ site: 'string',
74
+ ttl: 'number',
75
+ used: 'number',
76
+ };
77
+ }
78
+
79
+ validate() {
80
+ super.validate();
81
+ }
82
+
83
+ constructor(map?: { [key: string]: any }) {
84
+ super(map);
85
+ }
86
+ }
87
+
5
88
  export class DescribeLogStoreInfoResponseBody extends $dara.Model {
89
+ infoList?: DescribeLogStoreInfoResponseBodyInfoList[];
90
+ /**
91
+ * @example
92
+ * 2
93
+ */
94
+ logModifyQuota?: number;
6
95
  /**
7
96
  * @remarks
8
97
  * The name of the SLS LogStore in the log service.
@@ -11,6 +100,11 @@ export class DescribeLogStoreInfoResponseBody extends $dara.Model {
11
100
  * xxx-logstore
12
101
  */
13
102
  logStoreName?: string;
103
+ /**
104
+ * @example
105
+ * 2
106
+ */
107
+ logVersion?: number;
14
108
  /**
15
109
  * @remarks
16
110
  * The Project name of the log service.
@@ -43,6 +137,16 @@ export class DescribeLogStoreInfoResponseBody extends $dara.Model {
43
137
  * C6C3B72B********E95FB0A161
44
138
  */
45
139
  requestId?: string;
140
+ /**
141
+ * @example
142
+ * 用户进行日志修改所产生的任务id。
143
+ */
144
+ taskId?: string;
145
+ /**
146
+ * @example
147
+ * 50000000
148
+ */
149
+ totalQuota?: number;
46
150
  /**
47
151
  * @remarks
48
152
  * Log storage duration. Unit: days.
@@ -63,11 +167,16 @@ export class DescribeLogStoreInfoResponseBody extends $dara.Model {
63
167
  used?: number;
64
168
  static names(): { [key: string]: string } {
65
169
  return {
170
+ infoList: 'InfoList',
171
+ logModifyQuota: 'LogModifyQuota',
66
172
  logStoreName: 'LogStoreName',
173
+ logVersion: 'LogVersion',
67
174
  projectName: 'ProjectName',
68
175
  quota: 'Quota',
69
176
  regionId: 'RegionId',
70
177
  requestId: 'RequestId',
178
+ taskId: 'TaskId',
179
+ totalQuota: 'TotalQuota',
71
180
  ttl: 'Ttl',
72
181
  used: 'Used',
73
182
  };
@@ -75,17 +184,25 @@ export class DescribeLogStoreInfoResponseBody extends $dara.Model {
75
184
 
76
185
  static types(): { [key: string]: any } {
77
186
  return {
187
+ infoList: { 'type': 'array', 'itemType': DescribeLogStoreInfoResponseBodyInfoList },
188
+ logModifyQuota: 'number',
78
189
  logStoreName: 'string',
190
+ logVersion: 'number',
79
191
  projectName: 'string',
80
192
  quota: 'number',
81
193
  regionId: 'string',
82
194
  requestId: 'string',
195
+ taskId: 'string',
196
+ totalQuota: 'number',
83
197
  ttl: 'number',
84
198
  used: 'number',
85
199
  };
86
200
  }
87
201
 
88
202
  validate() {
203
+ if(Array.isArray(this.infoList)) {
204
+ $dara.Model.validateArray(this.infoList);
205
+ }
89
206
  super.validate();
90
207
  }
91
208
 
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeRegionResourceTypeAutoEnableRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * zh
9
+ */
10
+ lang?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ lang: 'Lang',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ lang: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeRegionResourceTypeAutoEnableResponseBody } from "./DescribeRegionResourceTypeAutoEnableResponseBody";
4
+
5
+
6
+ export class DescribeRegionResourceTypeAutoEnableResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeRegionResourceTypeAutoEnableResponseBody;
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: DescribeRegionResourceTypeAutoEnableResponseBody,
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,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeRegionResourceTypeAutoEnableResponseBody extends $dara.Model {
6
+ regionResourceAutoEnable?: { [key: string]: {[key: string]: any} };
7
+ /**
8
+ * @remarks
9
+ * Id of the request
10
+ *
11
+ * @example
12
+ * B2841452-CB8D-4F7D-B247-38E1CF7334F8
13
+ */
14
+ requestId?: string;
15
+ static names(): { [key: string]: string } {
16
+ return {
17
+ regionResourceAutoEnable: 'RegionResourceAutoEnable',
18
+ requestId: 'RequestId',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ regionResourceAutoEnable: { 'type': 'map', 'keyType': 'string', 'valueType': '{[key: string]: any}' },
25
+ requestId: 'string',
26
+ };
27
+ }
28
+
29
+ validate() {
30
+ if(this.regionResourceAutoEnable) {
31
+ $dara.Model.validateMap(this.regionResourceAutoEnable);
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+