@huaweicloud/huaweicloud-sdk-cfw 3.1.12 → 3.1.14

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 (53) hide show
  1. package/package.json +2 -2
  2. package/v1/CfwClient.d.ts +1 -1
  3. package/v1/CfwClient.js +10 -7
  4. package/v1/model/AddRuleAclDtoRules.d.ts +5 -5
  5. package/v1/model/AddRuleAclDtoRules.js +1 -5
  6. package/v1/model/CountEipsResponse.d.ts +3 -12
  7. package/v1/model/CountEipsResponse.js +2 -40
  8. package/v1/model/EipCountRespData.d.ts +15 -0
  9. package/v1/model/EipCountRespData.js +51 -0
  10. package/v1/model/EipResource.d.ts +43 -0
  11. package/v1/model/EipResource.js +124 -0
  12. package/v1/model/EipResponseData.d.ts +12 -0
  13. package/v1/model/EipResponseData.js +25 -0
  14. package/v1/model/FirewallInstanceResource.d.ts +27 -0
  15. package/v1/model/FirewallInstanceResource.js +93 -0
  16. package/v1/model/GetEastWestFirewallResponseBody.d.ts +4 -4
  17. package/v1/model/GetEastWestFirewallResponseBody.js +6 -6
  18. package/v1/model/GetFirewallInstanceData.d.ts +12 -0
  19. package/v1/model/GetFirewallInstanceData.js +25 -0
  20. package/v1/model/GetFirewallInstanceResponseRecord.d.ts +75 -0
  21. package/v1/model/GetFirewallInstanceResponseRecord.js +171 -0
  22. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts +3 -0
  23. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.js +4 -0
  24. package/v1/model/IpsSwitchDTO.d.ts +2 -2
  25. package/v1/model/IpsSwitchDTO.js +2 -1
  26. package/v1/model/IpsSwitchResponseDTO.d.ts +13 -0
  27. package/v1/model/IpsSwitchResponseDTO.js +41 -0
  28. package/v1/model/ListAttackLogsRequest.d.ts +2 -2
  29. package/v1/model/ListAttackLogsRequest.js +2 -1
  30. package/v1/model/ListEipResourcesResponse.d.ts +3 -40
  31. package/v1/model/ListEipResourcesResponse.js +3 -114
  32. package/v1/model/ListFirewallUsingGetResponse.d.ts +3 -75
  33. package/v1/model/ListFirewallUsingGetResponse.js +3 -175
  34. package/v1/model/ListIpsSwitchStatusUsingGetResponse.d.ts +3 -12
  35. package/v1/model/ListIpsSwitchStatusUsingGetResponse.js +2 -40
  36. package/v1/model/ListServiceSetDetailsResponse.d.ts +3 -6
  37. package/v1/model/ListServiceSetDetailsResponse.js +2 -10
  38. package/v1/model/PacketMessage.d.ts +13 -0
  39. package/v1/model/PacketMessage.js +41 -0
  40. package/v1/model/RuleAclListResponseDTODataRecords.d.ts +11 -0
  41. package/v1/model/RuleAclListResponseDTODataRecords.js +15 -1
  42. package/v1/model/ServiceItemListResponseDtoData.d.ts +4 -0
  43. package/v1/model/ServiceItemListResponseDtoData.js +14 -0
  44. package/v1/model/ServiceSetDetailResponseDto.d.ts +9 -0
  45. package/v1/model/ServiceSetDetailResponseDto.js +22 -0
  46. package/v1/model/UpdateAddressSetDto.d.ts +13 -0
  47. package/v1/model/UpdateAddressSetDto.js +25 -1
  48. package/v1/model/UpdateBlackWhiteListDto.d.ts +16 -0
  49. package/v1/model/UpdateBlackWhiteListDto.js +38 -1
  50. package/v1/model/UpdateRuleAclDto.d.ts +11 -0
  51. package/v1/model/UpdateRuleAclDto.js +15 -1
  52. package/v1/public-api.d.ts +9 -0
  53. package/v1/public-api.js +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-cfw",
3
- "version": "3.1.12",
3
+ "version": "3.1.14",
4
4
  "description": "Huaweicloud SDK for cfw",
5
5
  "main": "huaweicloud-sdk-cfw.js",
6
6
  "typings": "huaweicloud-sdk-cfw.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.12"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.14"
18
18
  }
19
19
  }
package/v1/CfwClient.d.ts CHANGED
@@ -329,6 +329,7 @@ export declare class CfwClient {
329
329
  * @param {number} startTime 开始时间
330
330
  * @param {number} endTime 结束时间
331
331
  * @param {number} limit 每页显示个数
332
+ * @param {string} fwInstanceId 防火墙实例ID
332
333
  * @param {string} [srcIp] 源IP
333
334
  * @param {number} [srcPort] 源端口号
334
335
  * @param {string} [dstIp] 目的IP
@@ -338,7 +339,6 @@ export declare class CfwClient {
338
339
  * @param {string} [logId] 日志ID,当是第一页时为空,不是第一页时不为空
339
340
  * @param {number} [nextDate] 下个日期,当是第一页时为空,不是第一页时不为空
340
341
  * @param {number} [offset] 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
341
- * @param {string} [fwInstanceId] 防火墙实例ID
342
342
  * @param {'0' | '1'} [action] 动作0:permit,1:deny
343
343
  * @param {'0' | '1'} [direction] 方向0:外到内1:内到外
344
344
  * @param {string} [attackType] 入侵事件类型
package/v1/CfwClient.js CHANGED
@@ -393,6 +393,7 @@ var CfwClient = /** @class */ (function () {
393
393
  * @param {number} startTime 开始时间
394
394
  * @param {number} endTime 结束时间
395
395
  * @param {number} limit 每页显示个数
396
+ * @param {string} fwInstanceId 防火墙实例ID
396
397
  * @param {string} [srcIp] 源IP
397
398
  * @param {number} [srcPort] 源端口号
398
399
  * @param {string} [dstIp] 目的IP
@@ -402,7 +403,6 @@ var CfwClient = /** @class */ (function () {
402
403
  * @param {string} [logId] 日志ID,当是第一页时为空,不是第一页时不为空
403
404
  * @param {number} [nextDate] 下个日期,当是第一页时为空,不是第一页时不为空
404
405
  * @param {number} [offset] 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
405
- * @param {string} [fwInstanceId] 防火墙实例ID
406
406
  * @param {'0' | '1'} [action] 动作0:permit,1:deny
407
407
  * @param {'0' | '1'} [direction] 方向0:外到内1:内到外
408
408
  * @param {string} [attackType] 入侵事件类型
@@ -1775,6 +1775,7 @@ var ParamCreater = function () {
1775
1775
  var startTime;
1776
1776
  var endTime;
1777
1777
  var limit;
1778
+ var fwInstanceId;
1778
1779
  var srcIp;
1779
1780
  var srcPort;
1780
1781
  var dstIp;
@@ -1784,7 +1785,6 @@ var ParamCreater = function () {
1784
1785
  var logId;
1785
1786
  var nextDate;
1786
1787
  var offset;
1787
- var fwInstanceId;
1788
1788
  var action;
1789
1789
  var direction;
1790
1790
  var attackType;
@@ -1797,6 +1797,7 @@ var ParamCreater = function () {
1797
1797
  startTime = listAttackLogsRequest.startTime;
1798
1798
  endTime = listAttackLogsRequest.endTime;
1799
1799
  limit = listAttackLogsRequest.limit;
1800
+ fwInstanceId = listAttackLogsRequest.fwInstanceId;
1800
1801
  srcIp = listAttackLogsRequest.srcIp;
1801
1802
  srcPort = listAttackLogsRequest.srcPort;
1802
1803
  dstIp = listAttackLogsRequest.dstIp;
@@ -1806,7 +1807,6 @@ var ParamCreater = function () {
1806
1807
  logId = listAttackLogsRequest.logId;
1807
1808
  nextDate = listAttackLogsRequest.nextDate;
1808
1809
  offset = listAttackLogsRequest.offset;
1809
- fwInstanceId = listAttackLogsRequest.fwInstanceId;
1810
1810
  action = listAttackLogsRequest.action;
1811
1811
  direction = listAttackLogsRequest.direction;
1812
1812
  attackType = listAttackLogsRequest.attackType;
@@ -1819,6 +1819,7 @@ var ParamCreater = function () {
1819
1819
  startTime = listAttackLogsRequest['start_time'];
1820
1820
  endTime = listAttackLogsRequest['end_time'];
1821
1821
  limit = listAttackLogsRequest['limit'];
1822
+ fwInstanceId = listAttackLogsRequest['fw_instance_id'];
1822
1823
  srcIp = listAttackLogsRequest['src_ip'];
1823
1824
  srcPort = listAttackLogsRequest['src_port'];
1824
1825
  dstIp = listAttackLogsRequest['dst_ip'];
@@ -1828,7 +1829,6 @@ var ParamCreater = function () {
1828
1829
  logId = listAttackLogsRequest['log_id'];
1829
1830
  nextDate = listAttackLogsRequest['next_date'];
1830
1831
  offset = listAttackLogsRequest['offset'];
1831
- fwInstanceId = listAttackLogsRequest['fw_instance_id'];
1832
1832
  action = listAttackLogsRequest['action'];
1833
1833
  direction = listAttackLogsRequest['direction'];
1834
1834
  attackType = listAttackLogsRequest['attack_type'];
@@ -1858,6 +1858,12 @@ var ParamCreater = function () {
1858
1858
  if (limit !== null && limit !== undefined) {
1859
1859
  localVarQueryParameter['limit'] = limit;
1860
1860
  }
1861
+ if (fwInstanceId === null || fwInstanceId === undefined) {
1862
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listAttackLogs.');
1863
+ }
1864
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
1865
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
1866
+ }
1861
1867
  if (srcIp !== null && srcIp !== undefined) {
1862
1868
  localVarQueryParameter['src_ip'] = srcIp;
1863
1869
  }
@@ -1885,9 +1891,6 @@ var ParamCreater = function () {
1885
1891
  if (offset !== null && offset !== undefined) {
1886
1892
  localVarQueryParameter['offset'] = offset;
1887
1893
  }
1888
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
1889
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
1890
- }
1891
1894
  if (action !== null && action !== undefined) {
1892
1895
  localVarQueryParameter['action'] = action;
1893
1896
  }
@@ -7,17 +7,17 @@ export declare class AddRuleAclDtoRules {
7
7
  private 'address_type';
8
8
  private 'action_type';
9
9
  status: AddRuleAclDtoRulesStatusEnum;
10
- private 'long_connect_time';
11
- private 'long_connect_time_hour';
12
- private 'long_connect_time_minute';
13
- private 'long_connect_time_second';
10
+ private 'long_connect_time'?;
11
+ private 'long_connect_time_hour'?;
12
+ private 'long_connect_time_minute'?;
13
+ private 'long_connect_time_second'?;
14
14
  private 'long_connect_enable';
15
15
  description?: string;
16
16
  direction?: AddRuleAclDtoRulesDirectionEnum;
17
17
  source: RuleAddressDto;
18
18
  destination: RuleAddressDto;
19
19
  service: RuleServiceDto;
20
- constructor(name?: any, sequence?: any, addressType?: any, actionType?: any, status?: any, longConnectTime?: any, longConnectTimeHour?: any, longConnectTimeMinute?: any, longConnectTimeSecond?: any, longConnectEnable?: any, source?: any, destination?: any, service?: any);
20
+ constructor(name?: any, sequence?: any, addressType?: any, actionType?: any, status?: any, longConnectEnable?: any, source?: any, destination?: any, service?: any);
21
21
  withName(name: string): AddRuleAclDtoRules;
22
22
  withSequence(sequence: OrderRuleAclDto): AddRuleAclDtoRules;
23
23
  withAddressType(addressType: AddRuleAclDtoRulesAddressTypeEnum): AddRuleAclDtoRules;
@@ -2,16 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddRuleAclDtoRulesDirectionEnum = exports.AddRuleAclDtoRulesLongConnectEnableEnum = exports.AddRuleAclDtoRulesStatusEnum = exports.AddRuleAclDtoRulesAddressTypeEnum = exports.AddRuleAclDtoRules = void 0;
4
4
  var AddRuleAclDtoRules = /** @class */ (function () {
5
- function AddRuleAclDtoRules(name, sequence, addressType, actionType, status, longConnectTime, longConnectTimeHour, longConnectTimeMinute, longConnectTimeSecond, longConnectEnable, source, destination, service) {
5
+ function AddRuleAclDtoRules(name, sequence, addressType, actionType, status, longConnectEnable, source, destination, service) {
6
6
  this['name'] = name;
7
7
  this['sequence'] = sequence;
8
8
  this['address_type'] = addressType;
9
9
  this['action_type'] = actionType;
10
10
  this['status'] = status;
11
- this['long_connect_time'] = longConnectTime;
12
- this['long_connect_time_hour'] = longConnectTimeHour;
13
- this['long_connect_time_minute'] = longConnectTimeMinute;
14
- this['long_connect_time_second'] = longConnectTimeSecond;
15
11
  this['long_connect_enable'] = longConnectEnable;
16
12
  this['source'] = source;
17
13
  this['destination'] = destination;
@@ -1,16 +1,7 @@
1
+ import { EipCountRespData } from './EipCountRespData';
1
2
  import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
3
  export declare class CountEipsResponse extends SdkResponse {
3
- private 'object_id'?;
4
- private 'eip_total'?;
5
- private 'eip_protected'?;
4
+ data?: EipCountRespData;
6
5
  constructor();
7
- withObjectId(objectId: string): CountEipsResponse;
8
- set objectId(objectId: string | undefined);
9
- get objectId(): string | undefined;
10
- withEipTotal(eipTotal: number): CountEipsResponse;
11
- set eipTotal(eipTotal: number | undefined);
12
- get eipTotal(): number | undefined;
13
- withEipProtected(eipProtected: number): CountEipsResponse;
14
- set eipProtected(eipProtected: number | undefined);
15
- get eipProtected(): number | undefined;
6
+ withData(data: EipCountRespData): CountEipsResponse;
16
7
  }
@@ -22,48 +22,10 @@ var CountEipsResponse = /** @class */ (function (_super) {
22
22
  function CountEipsResponse() {
23
23
  return _super.call(this) || this;
24
24
  }
25
- CountEipsResponse.prototype.withObjectId = function (objectId) {
26
- this['object_id'] = objectId;
25
+ CountEipsResponse.prototype.withData = function (data) {
26
+ this['data'] = data;
27
27
  return this;
28
28
  };
29
- Object.defineProperty(CountEipsResponse.prototype, "objectId", {
30
- get: function () {
31
- return this['object_id'];
32
- },
33
- set: function (objectId) {
34
- this['object_id'] = objectId;
35
- },
36
- enumerable: false,
37
- configurable: true
38
- });
39
- CountEipsResponse.prototype.withEipTotal = function (eipTotal) {
40
- this['eip_total'] = eipTotal;
41
- return this;
42
- };
43
- Object.defineProperty(CountEipsResponse.prototype, "eipTotal", {
44
- get: function () {
45
- return this['eip_total'];
46
- },
47
- set: function (eipTotal) {
48
- this['eip_total'] = eipTotal;
49
- },
50
- enumerable: false,
51
- configurable: true
52
- });
53
- CountEipsResponse.prototype.withEipProtected = function (eipProtected) {
54
- this['eip_protected'] = eipProtected;
55
- return this;
56
- };
57
- Object.defineProperty(CountEipsResponse.prototype, "eipProtected", {
58
- get: function () {
59
- return this['eip_protected'];
60
- },
61
- set: function (eipProtected) {
62
- this['eip_protected'] = eipProtected;
63
- },
64
- enumerable: false,
65
- configurable: true
66
- });
67
29
  return CountEipsResponse;
68
30
  }(SdkResponse_1.SdkResponse));
69
31
  exports.CountEipsResponse = CountEipsResponse;
@@ -0,0 +1,15 @@
1
+ export declare class EipCountRespData {
2
+ private 'object_id'?;
3
+ private 'eip_total'?;
4
+ private 'eip_protected'?;
5
+ constructor();
6
+ withObjectId(objectId: string): EipCountRespData;
7
+ set objectId(objectId: string | undefined);
8
+ get objectId(): string | undefined;
9
+ withEipTotal(eipTotal: number): EipCountRespData;
10
+ set eipTotal(eipTotal: number | undefined);
11
+ get eipTotal(): number | undefined;
12
+ withEipProtected(eipProtected: number): EipCountRespData;
13
+ set eipProtected(eipProtected: number | undefined);
14
+ get eipProtected(): number | undefined;
15
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EipCountRespData = void 0;
4
+ var EipCountRespData = /** @class */ (function () {
5
+ function EipCountRespData() {
6
+ }
7
+ EipCountRespData.prototype.withObjectId = function (objectId) {
8
+ this['object_id'] = objectId;
9
+ return this;
10
+ };
11
+ Object.defineProperty(EipCountRespData.prototype, "objectId", {
12
+ get: function () {
13
+ return this['object_id'];
14
+ },
15
+ set: function (objectId) {
16
+ this['object_id'] = objectId;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ EipCountRespData.prototype.withEipTotal = function (eipTotal) {
22
+ this['eip_total'] = eipTotal;
23
+ return this;
24
+ };
25
+ Object.defineProperty(EipCountRespData.prototype, "eipTotal", {
26
+ get: function () {
27
+ return this['eip_total'];
28
+ },
29
+ set: function (eipTotal) {
30
+ this['eip_total'] = eipTotal;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ EipCountRespData.prototype.withEipProtected = function (eipProtected) {
36
+ this['eip_protected'] = eipProtected;
37
+ return this;
38
+ };
39
+ Object.defineProperty(EipCountRespData.prototype, "eipProtected", {
40
+ get: function () {
41
+ return this['eip_protected'];
42
+ },
43
+ set: function (eipProtected) {
44
+ this['eip_protected'] = eipProtected;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ return EipCountRespData;
50
+ }());
51
+ exports.EipCountRespData = EipCountRespData;
@@ -0,0 +1,43 @@
1
+ export declare class EipResource {
2
+ id?: string;
3
+ private 'public_ip'?;
4
+ status?: EipResourceStatusEnum;
5
+ private 'public_ipv6'?;
6
+ private 'enterprise_project_id'?;
7
+ private 'device_id'?;
8
+ private 'device_name'?;
9
+ private 'device_owner'?;
10
+ private 'associate_instance_type'?;
11
+ constructor();
12
+ withId(id: string): EipResource;
13
+ withPublicIp(publicIp: string): EipResource;
14
+ set publicIp(publicIp: string | undefined);
15
+ get publicIp(): string | undefined;
16
+ withStatus(status: EipResourceStatusEnum): EipResource;
17
+ withPublicIpv6(publicIpv6: string): EipResource;
18
+ set publicIpv6(publicIpv6: string | undefined);
19
+ get publicIpv6(): string | undefined;
20
+ withEnterpriseProjectId(enterpriseProjectId: string): EipResource;
21
+ set enterpriseProjectId(enterpriseProjectId: string | undefined);
22
+ get enterpriseProjectId(): string | undefined;
23
+ withDeviceId(deviceId: string): EipResource;
24
+ set deviceId(deviceId: string | undefined);
25
+ get deviceId(): string | undefined;
26
+ withDeviceName(deviceName: string): EipResource;
27
+ set deviceName(deviceName: string | undefined);
28
+ get deviceName(): string | undefined;
29
+ withDeviceOwner(deviceOwner: string): EipResource;
30
+ set deviceOwner(deviceOwner: string | undefined);
31
+ get deviceOwner(): string | undefined;
32
+ withAssociateInstanceType(associateInstanceType: string): EipResource;
33
+ set associateInstanceType(associateInstanceType: string | undefined);
34
+ get associateInstanceType(): string | undefined;
35
+ }
36
+ /**
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export declare enum EipResourceStatusEnum {
41
+ NUMBER_0 = 0,
42
+ NUMBER_1 = 1
43
+ }
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EipResourceStatusEnum = exports.EipResource = void 0;
4
+ var EipResource = /** @class */ (function () {
5
+ function EipResource() {
6
+ }
7
+ EipResource.prototype.withId = function (id) {
8
+ this['id'] = id;
9
+ return this;
10
+ };
11
+ EipResource.prototype.withPublicIp = function (publicIp) {
12
+ this['public_ip'] = publicIp;
13
+ return this;
14
+ };
15
+ Object.defineProperty(EipResource.prototype, "publicIp", {
16
+ get: function () {
17
+ return this['public_ip'];
18
+ },
19
+ set: function (publicIp) {
20
+ this['public_ip'] = publicIp;
21
+ },
22
+ enumerable: false,
23
+ configurable: true
24
+ });
25
+ EipResource.prototype.withStatus = function (status) {
26
+ this['status'] = status;
27
+ return this;
28
+ };
29
+ EipResource.prototype.withPublicIpv6 = function (publicIpv6) {
30
+ this['public_ipv6'] = publicIpv6;
31
+ return this;
32
+ };
33
+ Object.defineProperty(EipResource.prototype, "publicIpv6", {
34
+ get: function () {
35
+ return this['public_ipv6'];
36
+ },
37
+ set: function (publicIpv6) {
38
+ this['public_ipv6'] = publicIpv6;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ EipResource.prototype.withEnterpriseProjectId = function (enterpriseProjectId) {
44
+ this['enterprise_project_id'] = enterpriseProjectId;
45
+ return this;
46
+ };
47
+ Object.defineProperty(EipResource.prototype, "enterpriseProjectId", {
48
+ get: function () {
49
+ return this['enterprise_project_id'];
50
+ },
51
+ set: function (enterpriseProjectId) {
52
+ this['enterprise_project_id'] = enterpriseProjectId;
53
+ },
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ EipResource.prototype.withDeviceId = function (deviceId) {
58
+ this['device_id'] = deviceId;
59
+ return this;
60
+ };
61
+ Object.defineProperty(EipResource.prototype, "deviceId", {
62
+ get: function () {
63
+ return this['device_id'];
64
+ },
65
+ set: function (deviceId) {
66
+ this['device_id'] = deviceId;
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ EipResource.prototype.withDeviceName = function (deviceName) {
72
+ this['device_name'] = deviceName;
73
+ return this;
74
+ };
75
+ Object.defineProperty(EipResource.prototype, "deviceName", {
76
+ get: function () {
77
+ return this['device_name'];
78
+ },
79
+ set: function (deviceName) {
80
+ this['device_name'] = deviceName;
81
+ },
82
+ enumerable: false,
83
+ configurable: true
84
+ });
85
+ EipResource.prototype.withDeviceOwner = function (deviceOwner) {
86
+ this['device_owner'] = deviceOwner;
87
+ return this;
88
+ };
89
+ Object.defineProperty(EipResource.prototype, "deviceOwner", {
90
+ get: function () {
91
+ return this['device_owner'];
92
+ },
93
+ set: function (deviceOwner) {
94
+ this['device_owner'] = deviceOwner;
95
+ },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
99
+ EipResource.prototype.withAssociateInstanceType = function (associateInstanceType) {
100
+ this['associate_instance_type'] = associateInstanceType;
101
+ return this;
102
+ };
103
+ Object.defineProperty(EipResource.prototype, "associateInstanceType", {
104
+ get: function () {
105
+ return this['associate_instance_type'];
106
+ },
107
+ set: function (associateInstanceType) {
108
+ this['associate_instance_type'] = associateInstanceType;
109
+ },
110
+ enumerable: false,
111
+ configurable: true
112
+ });
113
+ return EipResource;
114
+ }());
115
+ exports.EipResource = EipResource;
116
+ /**
117
+ * @export
118
+ * @enum {string}
119
+ */
120
+ var EipResourceStatusEnum;
121
+ (function (EipResourceStatusEnum) {
122
+ EipResourceStatusEnum[EipResourceStatusEnum["NUMBER_0"] = 0] = "NUMBER_0";
123
+ EipResourceStatusEnum[EipResourceStatusEnum["NUMBER_1"] = 1] = "NUMBER_1";
124
+ })(EipResourceStatusEnum = exports.EipResourceStatusEnum || (exports.EipResourceStatusEnum = {}));
@@ -0,0 +1,12 @@
1
+ import { EipResource } from './EipResource';
2
+ export declare class EipResponseData {
3
+ limit?: number;
4
+ offset?: number;
5
+ total?: number;
6
+ records?: Array<EipResource>;
7
+ constructor();
8
+ withLimit(limit: number): EipResponseData;
9
+ withOffset(offset: number): EipResponseData;
10
+ withTotal(total: number): EipResponseData;
11
+ withRecords(records: Array<EipResource>): EipResponseData;
12
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EipResponseData = void 0;
4
+ var EipResponseData = /** @class */ (function () {
5
+ function EipResponseData() {
6
+ }
7
+ EipResponseData.prototype.withLimit = function (limit) {
8
+ this['limit'] = limit;
9
+ return this;
10
+ };
11
+ EipResponseData.prototype.withOffset = function (offset) {
12
+ this['offset'] = offset;
13
+ return this;
14
+ };
15
+ EipResponseData.prototype.withTotal = function (total) {
16
+ this['total'] = total;
17
+ return this;
18
+ };
19
+ EipResponseData.prototype.withRecords = function (records) {
20
+ this['records'] = records;
21
+ return this;
22
+ };
23
+ return EipResponseData;
24
+ }());
25
+ exports.EipResponseData = EipResponseData;
@@ -0,0 +1,27 @@
1
+ export declare class FirewallInstanceResource {
2
+ private 'resource_id'?;
3
+ private 'cloud_service_type'?;
4
+ private 'resource_type'?;
5
+ private 'resource_spec_code'?;
6
+ private 'resource_size'?;
7
+ private 'resource_size_measure_id'?;
8
+ constructor();
9
+ withResourceId(resourceId: string): FirewallInstanceResource;
10
+ set resourceId(resourceId: string | undefined);
11
+ get resourceId(): string | undefined;
12
+ withCloudServiceType(cloudServiceType: string): FirewallInstanceResource;
13
+ set cloudServiceType(cloudServiceType: string | undefined);
14
+ get cloudServiceType(): string | undefined;
15
+ withResourceType(resourceType: string): FirewallInstanceResource;
16
+ set resourceType(resourceType: string | undefined);
17
+ get resourceType(): string | undefined;
18
+ withResourceSpecCode(resourceSpecCode: string): FirewallInstanceResource;
19
+ set resourceSpecCode(resourceSpecCode: string | undefined);
20
+ get resourceSpecCode(): string | undefined;
21
+ withResourceSize(resourceSize: number): FirewallInstanceResource;
22
+ set resourceSize(resourceSize: number | undefined);
23
+ get resourceSize(): number | undefined;
24
+ withResourceSizeMeasureId(resourceSizeMeasureId: number): FirewallInstanceResource;
25
+ set resourceSizeMeasureId(resourceSizeMeasureId: number | undefined);
26
+ get resourceSizeMeasureId(): number | undefined;
27
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FirewallInstanceResource = void 0;
4
+ var FirewallInstanceResource = /** @class */ (function () {
5
+ function FirewallInstanceResource() {
6
+ }
7
+ FirewallInstanceResource.prototype.withResourceId = function (resourceId) {
8
+ this['resource_id'] = resourceId;
9
+ return this;
10
+ };
11
+ Object.defineProperty(FirewallInstanceResource.prototype, "resourceId", {
12
+ get: function () {
13
+ return this['resource_id'];
14
+ },
15
+ set: function (resourceId) {
16
+ this['resource_id'] = resourceId;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ FirewallInstanceResource.prototype.withCloudServiceType = function (cloudServiceType) {
22
+ this['cloud_service_type'] = cloudServiceType;
23
+ return this;
24
+ };
25
+ Object.defineProperty(FirewallInstanceResource.prototype, "cloudServiceType", {
26
+ get: function () {
27
+ return this['cloud_service_type'];
28
+ },
29
+ set: function (cloudServiceType) {
30
+ this['cloud_service_type'] = cloudServiceType;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ FirewallInstanceResource.prototype.withResourceType = function (resourceType) {
36
+ this['resource_type'] = resourceType;
37
+ return this;
38
+ };
39
+ Object.defineProperty(FirewallInstanceResource.prototype, "resourceType", {
40
+ get: function () {
41
+ return this['resource_type'];
42
+ },
43
+ set: function (resourceType) {
44
+ this['resource_type'] = resourceType;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ FirewallInstanceResource.prototype.withResourceSpecCode = function (resourceSpecCode) {
50
+ this['resource_spec_code'] = resourceSpecCode;
51
+ return this;
52
+ };
53
+ Object.defineProperty(FirewallInstanceResource.prototype, "resourceSpecCode", {
54
+ get: function () {
55
+ return this['resource_spec_code'];
56
+ },
57
+ set: function (resourceSpecCode) {
58
+ this['resource_spec_code'] = resourceSpecCode;
59
+ },
60
+ enumerable: false,
61
+ configurable: true
62
+ });
63
+ FirewallInstanceResource.prototype.withResourceSize = function (resourceSize) {
64
+ this['resource_size'] = resourceSize;
65
+ return this;
66
+ };
67
+ Object.defineProperty(FirewallInstanceResource.prototype, "resourceSize", {
68
+ get: function () {
69
+ return this['resource_size'];
70
+ },
71
+ set: function (resourceSize) {
72
+ this['resource_size'] = resourceSize;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ FirewallInstanceResource.prototype.withResourceSizeMeasureId = function (resourceSizeMeasureId) {
78
+ this['resource_size_measure_id'] = resourceSizeMeasureId;
79
+ return this;
80
+ };
81
+ Object.defineProperty(FirewallInstanceResource.prototype, "resourceSizeMeasureId", {
82
+ get: function () {
83
+ return this['resource_size_measure_id'];
84
+ },
85
+ set: function (resourceSizeMeasureId) {
86
+ this['resource_size_measure_id'] = resourceSizeMeasureId;
87
+ },
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ return FirewallInstanceResource;
92
+ }());
93
+ exports.FirewallInstanceResource = FirewallInstanceResource;
@@ -10,7 +10,7 @@ export declare class GetEastWestFirewallResponseBody {
10
10
  private 'firewall_associated_subnets'?;
11
11
  er?: ErInstance;
12
12
  private 'inspection_vpc'?;
13
- private 'protected_infos'?;
13
+ private 'protect_infos'?;
14
14
  total?: number;
15
15
  offset?: number;
16
16
  limit?: number;
@@ -32,9 +32,9 @@ export declare class GetEastWestFirewallResponseBody {
32
32
  withInspectionVpc(inspectionVpc: VpcDetail): GetEastWestFirewallResponseBody;
33
33
  set inspectionVpc(inspectionVpc: VpcDetail | undefined);
34
34
  get inspectionVpc(): VpcDetail | undefined;
35
- withProtectedInfos(protectedInfos: Array<EwProtectResourceInfo>): GetEastWestFirewallResponseBody;
36
- set protectedInfos(protectedInfos: Array<EwProtectResourceInfo> | undefined);
37
- get protectedInfos(): Array<EwProtectResourceInfo> | undefined;
35
+ withProtectInfos(protectInfos: Array<EwProtectResourceInfo>): GetEastWestFirewallResponseBody;
36
+ set protectInfos(protectInfos: Array<EwProtectResourceInfo> | undefined);
37
+ get protectInfos(): Array<EwProtectResourceInfo> | undefined;
38
38
  withTotal(total: number): GetEastWestFirewallResponseBody;
39
39
  withOffset(offset: number): GetEastWestFirewallResponseBody;
40
40
  withLimit(limit: number): GetEastWestFirewallResponseBody;