@huaweicloud/huaweicloud-sdk-cfw 3.1.12 → 3.1.13

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 (47) 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/GetEastWestFirewallResponseBody.d.ts +4 -4
  15. package/v1/model/GetEastWestFirewallResponseBody.js +6 -6
  16. package/v1/model/GetFirewallInstanceResponseData.d.ts +78 -0
  17. package/v1/model/GetFirewallInstanceResponseData.js +185 -0
  18. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts +3 -0
  19. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.js +4 -0
  20. package/v1/model/IpsSwitchResponseDTO.d.ts +15 -0
  21. package/v1/model/IpsSwitchResponseDTO.js +51 -0
  22. package/v1/model/ListAttackLogsRequest.d.ts +2 -2
  23. package/v1/model/ListAttackLogsRequest.js +2 -1
  24. package/v1/model/ListEipResourcesResponse.d.ts +3 -40
  25. package/v1/model/ListEipResourcesResponse.js +3 -114
  26. package/v1/model/ListFirewallUsingGetResponse.d.ts +3 -75
  27. package/v1/model/ListFirewallUsingGetResponse.js +3 -175
  28. package/v1/model/ListIpsSwitchStatusUsingGetResponse.d.ts +3 -12
  29. package/v1/model/ListIpsSwitchStatusUsingGetResponse.js +2 -40
  30. package/v1/model/ListServiceSetDetailsResponse.d.ts +3 -6
  31. package/v1/model/ListServiceSetDetailsResponse.js +2 -10
  32. package/v1/model/PacketMessage.d.ts +13 -0
  33. package/v1/model/PacketMessage.js +41 -0
  34. package/v1/model/RuleAclListResponseDTODataRecords.d.ts +11 -0
  35. package/v1/model/RuleAclListResponseDTODataRecords.js +15 -1
  36. package/v1/model/ServiceItemListResponseDtoData.d.ts +4 -0
  37. package/v1/model/ServiceItemListResponseDtoData.js +14 -0
  38. package/v1/model/ServiceSetDetailResponseDto.d.ts +9 -0
  39. package/v1/model/ServiceSetDetailResponseDto.js +22 -0
  40. package/v1/model/UpdateAddressSetDto.d.ts +13 -0
  41. package/v1/model/UpdateAddressSetDto.js +25 -1
  42. package/v1/model/UpdateBlackWhiteListDto.d.ts +16 -0
  43. package/v1/model/UpdateBlackWhiteListDto.js +38 -1
  44. package/v1/model/UpdateRuleAclDto.d.ts +11 -0
  45. package/v1/model/UpdateRuleAclDto.js +15 -1
  46. package/v1/public-api.d.ts +7 -0
  47. package/v1/public-api.js +7 -0
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetFirewallInstanceResponseDataStatusEnum = exports.GetFirewallInstanceResponseData = void 0;
4
+ var GetFirewallInstanceResponseData = /** @class */ (function () {
5
+ function GetFirewallInstanceResponseData() {
6
+ }
7
+ GetFirewallInstanceResponseData.prototype.withFwInstanceId = function (fwInstanceId) {
8
+ this['fw_instance_id'] = fwInstanceId;
9
+ return this;
10
+ };
11
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "fwInstanceId", {
12
+ get: function () {
13
+ return this['fw_instance_id'];
14
+ },
15
+ set: function (fwInstanceId) {
16
+ this['fw_instance_id'] = fwInstanceId;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ GetFirewallInstanceResponseData.prototype.withResourceId = function (resourceId) {
22
+ this['resource_id'] = resourceId;
23
+ return this;
24
+ };
25
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "resourceId", {
26
+ get: function () {
27
+ return this['resource_id'];
28
+ },
29
+ set: function (resourceId) {
30
+ this['resource_id'] = resourceId;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ GetFirewallInstanceResponseData.prototype.withName = function (name) {
36
+ this['name'] = name;
37
+ return this;
38
+ };
39
+ GetFirewallInstanceResponseData.prototype.withHaType = function (haType) {
40
+ this['ha_type'] = haType;
41
+ return this;
42
+ };
43
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "haType", {
44
+ get: function () {
45
+ return this['ha_type'];
46
+ },
47
+ set: function (haType) {
48
+ this['ha_type'] = haType;
49
+ },
50
+ enumerable: false,
51
+ configurable: true
52
+ });
53
+ GetFirewallInstanceResponseData.prototype.withChargeMode = function (chargeMode) {
54
+ this['charge_mode'] = chargeMode;
55
+ return this;
56
+ };
57
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "chargeMode", {
58
+ get: function () {
59
+ return this['charge_mode'];
60
+ },
61
+ set: function (chargeMode) {
62
+ this['charge_mode'] = chargeMode;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ GetFirewallInstanceResponseData.prototype.withServiceType = function (serviceType) {
68
+ this['service_type'] = serviceType;
69
+ return this;
70
+ };
71
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "serviceType", {
72
+ get: function () {
73
+ return this['service_type'];
74
+ },
75
+ set: function (serviceType) {
76
+ this['service_type'] = serviceType;
77
+ },
78
+ enumerable: false,
79
+ configurable: true
80
+ });
81
+ GetFirewallInstanceResponseData.prototype.withEngineType = function (engineType) {
82
+ this['engine_type'] = engineType;
83
+ return this;
84
+ };
85
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "engineType", {
86
+ get: function () {
87
+ return this['engine_type'];
88
+ },
89
+ set: function (engineType) {
90
+ this['engine_type'] = engineType;
91
+ },
92
+ enumerable: false,
93
+ configurable: true
94
+ });
95
+ GetFirewallInstanceResponseData.prototype.withFlavor = function (flavor) {
96
+ this['flavor'] = flavor;
97
+ return this;
98
+ };
99
+ GetFirewallInstanceResponseData.prototype.withProtectObjects = function (protectObjects) {
100
+ this['protect_objects'] = protectObjects;
101
+ return this;
102
+ };
103
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "protectObjects", {
104
+ get: function () {
105
+ return this['protect_objects'];
106
+ },
107
+ set: function (protectObjects) {
108
+ this['protect_objects'] = protectObjects;
109
+ },
110
+ enumerable: false,
111
+ configurable: true
112
+ });
113
+ GetFirewallInstanceResponseData.prototype.withStatus = function (status) {
114
+ this['status'] = status;
115
+ return this;
116
+ };
117
+ GetFirewallInstanceResponseData.prototype.withDescription = function (description) {
118
+ this['description'] = description;
119
+ return this;
120
+ };
121
+ GetFirewallInstanceResponseData.prototype.withIsOldFirewallInstance = function (isOldFirewallInstance) {
122
+ this['is_old_firewall_instance'] = isOldFirewallInstance;
123
+ return this;
124
+ };
125
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "isOldFirewallInstance", {
126
+ get: function () {
127
+ return this['is_old_firewall_instance'];
128
+ },
129
+ set: function (isOldFirewallInstance) {
130
+ this['is_old_firewall_instance'] = isOldFirewallInstance;
131
+ },
132
+ enumerable: false,
133
+ configurable: true
134
+ });
135
+ GetFirewallInstanceResponseData.prototype.withSupportIpv6 = function (supportIpv6) {
136
+ this['support_ipv6'] = supportIpv6;
137
+ return this;
138
+ };
139
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "supportIpv6", {
140
+ get: function () {
141
+ return this['support_ipv6'];
142
+ },
143
+ set: function (supportIpv6) {
144
+ this['support_ipv6'] = supportIpv6;
145
+ },
146
+ enumerable: false,
147
+ configurable: true
148
+ });
149
+ GetFirewallInstanceResponseData.prototype.withFeatureToggle = function (featureToggle) {
150
+ this['feature_toggle'] = featureToggle;
151
+ return this;
152
+ };
153
+ Object.defineProperty(GetFirewallInstanceResponseData.prototype, "featureToggle", {
154
+ get: function () {
155
+ return this['feature_toggle'];
156
+ },
157
+ set: function (featureToggle) {
158
+ this['feature_toggle'] = featureToggle;
159
+ },
160
+ enumerable: false,
161
+ configurable: true
162
+ });
163
+ return GetFirewallInstanceResponseData;
164
+ }());
165
+ exports.GetFirewallInstanceResponseData = GetFirewallInstanceResponseData;
166
+ /**
167
+ * @export
168
+ * @enum {string}
169
+ */
170
+ var GetFirewallInstanceResponseDataStatusEnum;
171
+ (function (GetFirewallInstanceResponseDataStatusEnum) {
172
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
173
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_0"] = 0] = "NUMBER_0";
174
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_1"] = 1] = "NUMBER_1";
175
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_2"] = 2] = "NUMBER_2";
176
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_3"] = 3] = "NUMBER_3";
177
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_4"] = 4] = "NUMBER_4";
178
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_5"] = 5] = "NUMBER_5";
179
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_6"] = 6] = "NUMBER_6";
180
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_7"] = 7] = "NUMBER_7";
181
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_8"] = 8] = "NUMBER_8";
182
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_9"] = 9] = "NUMBER_9";
183
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_10"] = 10] = "NUMBER_10";
184
+ GetFirewallInstanceResponseDataStatusEnum[GetFirewallInstanceResponseDataStatusEnum["NUMBER_11"] = 11] = "NUMBER_11";
185
+ })(GetFirewallInstanceResponseDataStatusEnum = exports.GetFirewallInstanceResponseDataStatusEnum || (exports.GetFirewallInstanceResponseDataStatusEnum = {}));
@@ -1,4 +1,5 @@
1
1
  import { Packet } from './Packet';
2
+ import { PacketMessage } from './PacketMessage';
2
3
  export declare class HttpQueryCfwAttackLogsResponseDTODataRecords {
3
4
  direction?: HttpQueryCfwAttackLogsResponseDTODataRecordsDirectionEnum;
4
5
  action?: string;
@@ -18,6 +19,7 @@ export declare class HttpQueryCfwAttackLogsResponseDTODataRecords {
18
19
  protocol?: string;
19
20
  packet?: Packet;
20
21
  app?: string;
22
+ packetMessages?: Array<PacketMessage>;
21
23
  constructor();
22
24
  withDirection(direction: HttpQueryCfwAttackLogsResponseDTODataRecordsDirectionEnum): HttpQueryCfwAttackLogsResponseDTODataRecords;
23
25
  withAction(action: string): HttpQueryCfwAttackLogsResponseDTODataRecords;
@@ -59,6 +61,7 @@ export declare class HttpQueryCfwAttackLogsResponseDTODataRecords {
59
61
  withProtocol(protocol: string): HttpQueryCfwAttackLogsResponseDTODataRecords;
60
62
  withPacket(packet: Packet): HttpQueryCfwAttackLogsResponseDTODataRecords;
61
63
  withApp(app: string): HttpQueryCfwAttackLogsResponseDTODataRecords;
64
+ withPacketMessages(packetMessages: Array<PacketMessage>): HttpQueryCfwAttackLogsResponseDTODataRecords;
62
65
  }
63
66
  /**
64
67
  * @export
@@ -186,6 +186,10 @@ var HttpQueryCfwAttackLogsResponseDTODataRecords = /** @class */ (function () {
186
186
  this['app'] = app;
187
187
  return this;
188
188
  };
189
+ HttpQueryCfwAttackLogsResponseDTODataRecords.prototype.withPacketMessages = function (packetMessages) {
190
+ this['packetMessages'] = packetMessages;
191
+ return this;
192
+ };
189
193
  return HttpQueryCfwAttackLogsResponseDTODataRecords;
190
194
  }());
191
195
  exports.HttpQueryCfwAttackLogsResponseDTODataRecords = HttpQueryCfwAttackLogsResponseDTODataRecords;
@@ -0,0 +1,15 @@
1
+ export declare class IpsSwitchResponseDTO {
2
+ private 'object_id'?;
3
+ private 'basic_defense_status'?;
4
+ private 'virtual_patches_stauts'?;
5
+ constructor();
6
+ withObjectId(objectId: string): IpsSwitchResponseDTO;
7
+ set objectId(objectId: string | undefined);
8
+ get objectId(): string | undefined;
9
+ withBasicDefenseStatus(basicDefenseStatus: number): IpsSwitchResponseDTO;
10
+ set basicDefenseStatus(basicDefenseStatus: number | undefined);
11
+ get basicDefenseStatus(): number | undefined;
12
+ withVirtualPatchesStauts(virtualPatchesStauts: number): IpsSwitchResponseDTO;
13
+ set virtualPatchesStauts(virtualPatchesStauts: number | undefined);
14
+ get virtualPatchesStauts(): number | undefined;
15
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IpsSwitchResponseDTO = void 0;
4
+ var IpsSwitchResponseDTO = /** @class */ (function () {
5
+ function IpsSwitchResponseDTO() {
6
+ }
7
+ IpsSwitchResponseDTO.prototype.withObjectId = function (objectId) {
8
+ this['object_id'] = objectId;
9
+ return this;
10
+ };
11
+ Object.defineProperty(IpsSwitchResponseDTO.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
+ IpsSwitchResponseDTO.prototype.withBasicDefenseStatus = function (basicDefenseStatus) {
22
+ this['basic_defense_status'] = basicDefenseStatus;
23
+ return this;
24
+ };
25
+ Object.defineProperty(IpsSwitchResponseDTO.prototype, "basicDefenseStatus", {
26
+ get: function () {
27
+ return this['basic_defense_status'];
28
+ },
29
+ set: function (basicDefenseStatus) {
30
+ this['basic_defense_status'] = basicDefenseStatus;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ IpsSwitchResponseDTO.prototype.withVirtualPatchesStauts = function (virtualPatchesStauts) {
36
+ this['virtual_patches_stauts'] = virtualPatchesStauts;
37
+ return this;
38
+ };
39
+ Object.defineProperty(IpsSwitchResponseDTO.prototype, "virtualPatchesStauts", {
40
+ get: function () {
41
+ return this['virtual_patches_stauts'];
42
+ },
43
+ set: function (virtualPatchesStauts) {
44
+ this['virtual_patches_stauts'] = virtualPatchesStauts;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ return IpsSwitchResponseDTO;
50
+ }());
51
+ exports.IpsSwitchResponseDTO = IpsSwitchResponseDTO;
@@ -12,14 +12,14 @@ export declare class ListAttackLogsRequest {
12
12
  private 'next_date'?;
13
13
  offset?: number;
14
14
  limit: number;
15
- private 'fw_instance_id'?;
15
+ private 'fw_instance_id';
16
16
  action?: ListAttackLogsRequestActionEnum;
17
17
  direction?: ListAttackLogsRequestDirectionEnum;
18
18
  private 'attack_type'?;
19
19
  private 'attack_rule'?;
20
20
  level?: string;
21
21
  source?: string;
22
- constructor(projectId?: any, startTime?: any, endTime?: any, limit?: any);
22
+ constructor(projectId?: any, startTime?: any, endTime?: any, limit?: any, fwInstanceId?: any);
23
23
  withProjectId(projectId: string): ListAttackLogsRequest;
24
24
  set projectId(projectId: string | undefined);
25
25
  get projectId(): string | undefined;
@@ -2,11 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListAttackLogsRequestDirectionEnum = exports.ListAttackLogsRequestActionEnum = exports.ListAttackLogsRequestProtocolEnum = exports.ListAttackLogsRequest = void 0;
4
4
  var ListAttackLogsRequest = /** @class */ (function () {
5
- function ListAttackLogsRequest(projectId, startTime, endTime, limit) {
5
+ function ListAttackLogsRequest(projectId, startTime, endTime, limit, fwInstanceId) {
6
6
  this['project_id'] = projectId;
7
7
  this['start_time'] = startTime;
8
8
  this['end_time'] = endTime;
9
9
  this['limit'] = limit;
10
+ this['fw_instance_id'] = fwInstanceId;
10
11
  }
11
12
  ListAttackLogsRequest.prototype.withProjectId = function (projectId) {
12
13
  this['project_id'] = projectId;
@@ -1,44 +1,7 @@
1
+ import { EipResponseData } from './EipResponseData';
1
2
  import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
3
  export declare class ListEipResourcesResponse extends SdkResponse {
3
- id?: string;
4
- private 'public_ip'?;
5
- status?: ListEipResourcesResponseStatusEnum;
6
- private 'public_ipv6'?;
7
- private 'enterprise_project_id'?;
8
- private 'device_id'?;
9
- private 'device_name'?;
10
- private 'device_owner'?;
11
- private 'associate_instance_type'?;
4
+ data?: EipResponseData;
12
5
  constructor();
13
- withId(id: string): ListEipResourcesResponse;
14
- withPublicIp(publicIp: string): ListEipResourcesResponse;
15
- set publicIp(publicIp: string | undefined);
16
- get publicIp(): string | undefined;
17
- withStatus(status: ListEipResourcesResponseStatusEnum): ListEipResourcesResponse;
18
- withPublicIpv6(publicIpv6: string): ListEipResourcesResponse;
19
- set publicIpv6(publicIpv6: string | undefined);
20
- get publicIpv6(): string | undefined;
21
- withEnterpriseProjectId(enterpriseProjectId: string): ListEipResourcesResponse;
22
- set enterpriseProjectId(enterpriseProjectId: string | undefined);
23
- get enterpriseProjectId(): string | undefined;
24
- withDeviceId(deviceId: string): ListEipResourcesResponse;
25
- set deviceId(deviceId: string | undefined);
26
- get deviceId(): string | undefined;
27
- withDeviceName(deviceName: string): ListEipResourcesResponse;
28
- set deviceName(deviceName: string | undefined);
29
- get deviceName(): string | undefined;
30
- withDeviceOwner(deviceOwner: string): ListEipResourcesResponse;
31
- set deviceOwner(deviceOwner: string | undefined);
32
- get deviceOwner(): string | undefined;
33
- withAssociateInstanceType(associateInstanceType: string): ListEipResourcesResponse;
34
- set associateInstanceType(associateInstanceType: string | undefined);
35
- get associateInstanceType(): string | undefined;
36
- }
37
- /**
38
- * @export
39
- * @enum {string}
40
- */
41
- export declare enum ListEipResourcesResponseStatusEnum {
42
- NUMBER_0 = 0,
43
- NUMBER_1 = 1
6
+ withData(data: EipResponseData): ListEipResourcesResponse;
44
7
  }
@@ -15,128 +15,17 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ListEipResourcesResponseStatusEnum = exports.ListEipResourcesResponse = void 0;
18
+ exports.ListEipResourcesResponse = void 0;
19
19
  var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
20
  var ListEipResourcesResponse = /** @class */ (function (_super) {
21
21
  __extends(ListEipResourcesResponse, _super);
22
22
  function ListEipResourcesResponse() {
23
23
  return _super.call(this) || this;
24
24
  }
25
- ListEipResourcesResponse.prototype.withId = function (id) {
26
- this['id'] = id;
25
+ ListEipResourcesResponse.prototype.withData = function (data) {
26
+ this['data'] = data;
27
27
  return this;
28
28
  };
29
- ListEipResourcesResponse.prototype.withPublicIp = function (publicIp) {
30
- this['public_ip'] = publicIp;
31
- return this;
32
- };
33
- Object.defineProperty(ListEipResourcesResponse.prototype, "publicIp", {
34
- get: function () {
35
- return this['public_ip'];
36
- },
37
- set: function (publicIp) {
38
- this['public_ip'] = publicIp;
39
- },
40
- enumerable: false,
41
- configurable: true
42
- });
43
- ListEipResourcesResponse.prototype.withStatus = function (status) {
44
- this['status'] = status;
45
- return this;
46
- };
47
- ListEipResourcesResponse.prototype.withPublicIpv6 = function (publicIpv6) {
48
- this['public_ipv6'] = publicIpv6;
49
- return this;
50
- };
51
- Object.defineProperty(ListEipResourcesResponse.prototype, "publicIpv6", {
52
- get: function () {
53
- return this['public_ipv6'];
54
- },
55
- set: function (publicIpv6) {
56
- this['public_ipv6'] = publicIpv6;
57
- },
58
- enumerable: false,
59
- configurable: true
60
- });
61
- ListEipResourcesResponse.prototype.withEnterpriseProjectId = function (enterpriseProjectId) {
62
- this['enterprise_project_id'] = enterpriseProjectId;
63
- return this;
64
- };
65
- Object.defineProperty(ListEipResourcesResponse.prototype, "enterpriseProjectId", {
66
- get: function () {
67
- return this['enterprise_project_id'];
68
- },
69
- set: function (enterpriseProjectId) {
70
- this['enterprise_project_id'] = enterpriseProjectId;
71
- },
72
- enumerable: false,
73
- configurable: true
74
- });
75
- ListEipResourcesResponse.prototype.withDeviceId = function (deviceId) {
76
- this['device_id'] = deviceId;
77
- return this;
78
- };
79
- Object.defineProperty(ListEipResourcesResponse.prototype, "deviceId", {
80
- get: function () {
81
- return this['device_id'];
82
- },
83
- set: function (deviceId) {
84
- this['device_id'] = deviceId;
85
- },
86
- enumerable: false,
87
- configurable: true
88
- });
89
- ListEipResourcesResponse.prototype.withDeviceName = function (deviceName) {
90
- this['device_name'] = deviceName;
91
- return this;
92
- };
93
- Object.defineProperty(ListEipResourcesResponse.prototype, "deviceName", {
94
- get: function () {
95
- return this['device_name'];
96
- },
97
- set: function (deviceName) {
98
- this['device_name'] = deviceName;
99
- },
100
- enumerable: false,
101
- configurable: true
102
- });
103
- ListEipResourcesResponse.prototype.withDeviceOwner = function (deviceOwner) {
104
- this['device_owner'] = deviceOwner;
105
- return this;
106
- };
107
- Object.defineProperty(ListEipResourcesResponse.prototype, "deviceOwner", {
108
- get: function () {
109
- return this['device_owner'];
110
- },
111
- set: function (deviceOwner) {
112
- this['device_owner'] = deviceOwner;
113
- },
114
- enumerable: false,
115
- configurable: true
116
- });
117
- ListEipResourcesResponse.prototype.withAssociateInstanceType = function (associateInstanceType) {
118
- this['associate_instance_type'] = associateInstanceType;
119
- return this;
120
- };
121
- Object.defineProperty(ListEipResourcesResponse.prototype, "associateInstanceType", {
122
- get: function () {
123
- return this['associate_instance_type'];
124
- },
125
- set: function (associateInstanceType) {
126
- this['associate_instance_type'] = associateInstanceType;
127
- },
128
- enumerable: false,
129
- configurable: true
130
- });
131
29
  return ListEipResourcesResponse;
132
30
  }(SdkResponse_1.SdkResponse));
133
31
  exports.ListEipResourcesResponse = ListEipResourcesResponse;
134
- /**
135
- * @export
136
- * @enum {string}
137
- */
138
- var ListEipResourcesResponseStatusEnum;
139
- (function (ListEipResourcesResponseStatusEnum) {
140
- ListEipResourcesResponseStatusEnum[ListEipResourcesResponseStatusEnum["NUMBER_0"] = 0] = "NUMBER_0";
141
- ListEipResourcesResponseStatusEnum[ListEipResourcesResponseStatusEnum["NUMBER_1"] = 1] = "NUMBER_1";
142
- })(ListEipResourcesResponseStatusEnum = exports.ListEipResourcesResponseStatusEnum || (exports.ListEipResourcesResponseStatusEnum = {}));
@@ -1,79 +1,7 @@
1
- import { Flavor } from './Flavor';
2
- import { ProtectObjectVO } from './ProtectObjectVO';
1
+ import { GetFirewallInstanceResponseData } from './GetFirewallInstanceResponseData';
3
2
  import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
4
3
  export declare class ListFirewallUsingGetResponse extends SdkResponse {
5
- private 'fw_instance_id'?;
6
- private 'resource_id'?;
7
- name?: string;
8
- private 'ha_type'?;
9
- private 'charge_mode'?;
10
- private 'service_type'?;
11
- private 'engine_type'?;
12
- flavor?: Flavor;
13
- private 'protect_objects'?;
14
- status?: ListFirewallUsingGetResponseStatusEnum;
15
- description?: string;
16
- private 'is_old_firewall_instance'?;
17
- private 'support_ipv6'?;
18
- private 'feature_toggle'?;
4
+ data?: GetFirewallInstanceResponseData;
19
5
  constructor();
20
- withFwInstanceId(fwInstanceId: string): ListFirewallUsingGetResponse;
21
- set fwInstanceId(fwInstanceId: string | undefined);
22
- get fwInstanceId(): string | undefined;
23
- withResourceId(resourceId: string): ListFirewallUsingGetResponse;
24
- set resourceId(resourceId: string | undefined);
25
- get resourceId(): string | undefined;
26
- withName(name: string): ListFirewallUsingGetResponse;
27
- withHaType(haType: number): ListFirewallUsingGetResponse;
28
- set haType(haType: number | undefined);
29
- get haType(): number | undefined;
30
- withChargeMode(chargeMode: number): ListFirewallUsingGetResponse;
31
- set chargeMode(chargeMode: number | undefined);
32
- get chargeMode(): number | undefined;
33
- withServiceType(serviceType: number): ListFirewallUsingGetResponse;
34
- set serviceType(serviceType: number | undefined);
35
- get serviceType(): number | undefined;
36
- withEngineType(engineType: string): ListFirewallUsingGetResponse;
37
- set engineType(engineType: string | undefined);
38
- get engineType(): string | undefined;
39
- withFlavor(flavor: Flavor): ListFirewallUsingGetResponse;
40
- withProtectObjects(protectObjects: Array<ProtectObjectVO>): ListFirewallUsingGetResponse;
41
- set protectObjects(protectObjects: Array<ProtectObjectVO> | undefined);
42
- get protectObjects(): Array<ProtectObjectVO> | undefined;
43
- withStatus(status: ListFirewallUsingGetResponseStatusEnum): ListFirewallUsingGetResponse;
44
- withDescription(description: string): ListFirewallUsingGetResponse;
45
- withIsOldFirewallInstance(isOldFirewallInstance: boolean): ListFirewallUsingGetResponse;
46
- set isOldFirewallInstance(isOldFirewallInstance: boolean | undefined);
47
- get isOldFirewallInstance(): boolean | undefined;
48
- withSupportIpv6(supportIpv6: boolean): ListFirewallUsingGetResponse;
49
- set supportIpv6(supportIpv6: boolean | undefined);
50
- get supportIpv6(): boolean | undefined;
51
- withFeatureToggle(featureToggle: {
52
- [key: string]: boolean;
53
- }): ListFirewallUsingGetResponse;
54
- set featureToggle(featureToggle: {
55
- [key: string]: boolean;
56
- } | undefined);
57
- get featureToggle(): {
58
- [key: string]: boolean;
59
- } | undefined;
60
- }
61
- /**
62
- * @export
63
- * @enum {string}
64
- */
65
- export declare enum ListFirewallUsingGetResponseStatusEnum {
66
- NUMBER_MINUS_1 = -1,
67
- NUMBER_0 = 0,
68
- NUMBER_1 = 1,
69
- NUMBER_2 = 2,
70
- NUMBER_3 = 3,
71
- NUMBER_4 = 4,
72
- NUMBER_5 = 5,
73
- NUMBER_6 = 6,
74
- NUMBER_7 = 7,
75
- NUMBER_8 = 8,
76
- NUMBER_9 = 9,
77
- NUMBER_10 = 10,
78
- NUMBER_11 = 11
6
+ withData(data: GetFirewallInstanceResponseData): ListFirewallUsingGetResponse;
79
7
  }