@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.
- package/package.json +2 -2
- package/v1/CfwClient.d.ts +1 -1
- package/v1/CfwClient.js +10 -7
- package/v1/model/AddRuleAclDtoRules.d.ts +5 -5
- package/v1/model/AddRuleAclDtoRules.js +1 -5
- package/v1/model/CountEipsResponse.d.ts +3 -12
- package/v1/model/CountEipsResponse.js +2 -40
- package/v1/model/EipCountRespData.d.ts +15 -0
- package/v1/model/EipCountRespData.js +51 -0
- package/v1/model/EipResource.d.ts +43 -0
- package/v1/model/EipResource.js +124 -0
- package/v1/model/EipResponseData.d.ts +12 -0
- package/v1/model/EipResponseData.js +25 -0
- package/v1/model/FirewallInstanceResource.d.ts +27 -0
- package/v1/model/FirewallInstanceResource.js +93 -0
- package/v1/model/GetEastWestFirewallResponseBody.d.ts +4 -4
- package/v1/model/GetEastWestFirewallResponseBody.js +6 -6
- package/v1/model/GetFirewallInstanceData.d.ts +12 -0
- package/v1/model/GetFirewallInstanceData.js +25 -0
- package/v1/model/GetFirewallInstanceResponseRecord.d.ts +75 -0
- package/v1/model/GetFirewallInstanceResponseRecord.js +171 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts +3 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.js +4 -0
- package/v1/model/IpsSwitchDTO.d.ts +2 -2
- package/v1/model/IpsSwitchDTO.js +2 -1
- package/v1/model/IpsSwitchResponseDTO.d.ts +13 -0
- package/v1/model/IpsSwitchResponseDTO.js +41 -0
- package/v1/model/ListAttackLogsRequest.d.ts +2 -2
- package/v1/model/ListAttackLogsRequest.js +2 -1
- package/v1/model/ListEipResourcesResponse.d.ts +3 -40
- package/v1/model/ListEipResourcesResponse.js +3 -114
- package/v1/model/ListFirewallUsingGetResponse.d.ts +3 -75
- package/v1/model/ListFirewallUsingGetResponse.js +3 -175
- package/v1/model/ListIpsSwitchStatusUsingGetResponse.d.ts +3 -12
- package/v1/model/ListIpsSwitchStatusUsingGetResponse.js +2 -40
- package/v1/model/ListServiceSetDetailsResponse.d.ts +3 -6
- package/v1/model/ListServiceSetDetailsResponse.js +2 -10
- package/v1/model/PacketMessage.d.ts +13 -0
- package/v1/model/PacketMessage.js +41 -0
- package/v1/model/RuleAclListResponseDTODataRecords.d.ts +11 -0
- package/v1/model/RuleAclListResponseDTODataRecords.js +15 -1
- package/v1/model/ServiceItemListResponseDtoData.d.ts +4 -0
- package/v1/model/ServiceItemListResponseDtoData.js +14 -0
- package/v1/model/ServiceSetDetailResponseDto.d.ts +9 -0
- package/v1/model/ServiceSetDetailResponseDto.js +22 -0
- package/v1/model/UpdateAddressSetDto.d.ts +13 -0
- package/v1/model/UpdateAddressSetDto.js +25 -1
- package/v1/model/UpdateBlackWhiteListDto.d.ts +16 -0
- package/v1/model/UpdateBlackWhiteListDto.js +38 -1
- package/v1/model/UpdateRuleAclDto.d.ts +11 -0
- package/v1/model/UpdateRuleAclDto.js +15 -1
- package/v1/public-api.d.ts +9 -0
- package/v1/public-api.js +9 -0
@@ -82,16 +82,16 @@ var GetEastWestFirewallResponseBody = /** @class */ (function () {
|
|
82
82
|
enumerable: false,
|
83
83
|
configurable: true
|
84
84
|
});
|
85
|
-
GetEastWestFirewallResponseBody.prototype.
|
86
|
-
this['
|
85
|
+
GetEastWestFirewallResponseBody.prototype.withProtectInfos = function (protectInfos) {
|
86
|
+
this['protect_infos'] = protectInfos;
|
87
87
|
return this;
|
88
88
|
};
|
89
|
-
Object.defineProperty(GetEastWestFirewallResponseBody.prototype, "
|
89
|
+
Object.defineProperty(GetEastWestFirewallResponseBody.prototype, "protectInfos", {
|
90
90
|
get: function () {
|
91
|
-
return this['
|
91
|
+
return this['protect_infos'];
|
92
92
|
},
|
93
|
-
set: function (
|
94
|
-
this['
|
93
|
+
set: function (protectInfos) {
|
94
|
+
this['protect_infos'] = protectInfos;
|
95
95
|
},
|
96
96
|
enumerable: false,
|
97
97
|
configurable: true
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { GetFirewallInstanceResponseRecord } from './GetFirewallInstanceResponseRecord';
|
2
|
+
export declare class GetFirewallInstanceData {
|
3
|
+
limit?: number;
|
4
|
+
offset?: number;
|
5
|
+
total?: number;
|
6
|
+
records?: Array<GetFirewallInstanceResponseRecord>;
|
7
|
+
constructor();
|
8
|
+
withLimit(limit: number): GetFirewallInstanceData;
|
9
|
+
withOffset(offset: number): GetFirewallInstanceData;
|
10
|
+
withTotal(total: number): GetFirewallInstanceData;
|
11
|
+
withRecords(records: Array<GetFirewallInstanceResponseRecord>): GetFirewallInstanceData;
|
12
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetFirewallInstanceData = void 0;
|
4
|
+
var GetFirewallInstanceData = /** @class */ (function () {
|
5
|
+
function GetFirewallInstanceData() {
|
6
|
+
}
|
7
|
+
GetFirewallInstanceData.prototype.withLimit = function (limit) {
|
8
|
+
this['limit'] = limit;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
GetFirewallInstanceData.prototype.withOffset = function (offset) {
|
12
|
+
this['offset'] = offset;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
GetFirewallInstanceData.prototype.withTotal = function (total) {
|
16
|
+
this['total'] = total;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
GetFirewallInstanceData.prototype.withRecords = function (records) {
|
20
|
+
this['records'] = records;
|
21
|
+
return this;
|
22
|
+
};
|
23
|
+
return GetFirewallInstanceData;
|
24
|
+
}());
|
25
|
+
exports.GetFirewallInstanceData = GetFirewallInstanceData;
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { FirewallInstanceResource } from './FirewallInstanceResource';
|
2
|
+
import { Flavor } from './Flavor';
|
3
|
+
import { ProtectObjectVO } from './ProtectObjectVO';
|
4
|
+
export declare class GetFirewallInstanceResponseRecord {
|
5
|
+
private 'fw_instance_id'?;
|
6
|
+
name?: string;
|
7
|
+
private 'ha_type'?;
|
8
|
+
private 'charge_mode'?;
|
9
|
+
private 'service_type'?;
|
10
|
+
private 'engine_type'?;
|
11
|
+
flavor?: Flavor;
|
12
|
+
private 'protect_objects'?;
|
13
|
+
status?: GetFirewallInstanceResponseRecordStatusEnum;
|
14
|
+
private 'is_old_firewall_instance'?;
|
15
|
+
private 'support_ipv6'?;
|
16
|
+
private 'feature_toggle'?;
|
17
|
+
resources?: Array<FirewallInstanceResource>;
|
18
|
+
constructor();
|
19
|
+
withFwInstanceId(fwInstanceId: string): GetFirewallInstanceResponseRecord;
|
20
|
+
set fwInstanceId(fwInstanceId: string | undefined);
|
21
|
+
get fwInstanceId(): string | undefined;
|
22
|
+
withName(name: string): GetFirewallInstanceResponseRecord;
|
23
|
+
withHaType(haType: number): GetFirewallInstanceResponseRecord;
|
24
|
+
set haType(haType: number | undefined);
|
25
|
+
get haType(): number | undefined;
|
26
|
+
withChargeMode(chargeMode: number): GetFirewallInstanceResponseRecord;
|
27
|
+
set chargeMode(chargeMode: number | undefined);
|
28
|
+
get chargeMode(): number | undefined;
|
29
|
+
withServiceType(serviceType: number): GetFirewallInstanceResponseRecord;
|
30
|
+
set serviceType(serviceType: number | undefined);
|
31
|
+
get serviceType(): number | undefined;
|
32
|
+
withEngineType(engineType: number): GetFirewallInstanceResponseRecord;
|
33
|
+
set engineType(engineType: number | undefined);
|
34
|
+
get engineType(): number | undefined;
|
35
|
+
withFlavor(flavor: Flavor): GetFirewallInstanceResponseRecord;
|
36
|
+
withProtectObjects(protectObjects: Array<ProtectObjectVO>): GetFirewallInstanceResponseRecord;
|
37
|
+
set protectObjects(protectObjects: Array<ProtectObjectVO> | undefined);
|
38
|
+
get protectObjects(): Array<ProtectObjectVO> | undefined;
|
39
|
+
withStatus(status: GetFirewallInstanceResponseRecordStatusEnum): GetFirewallInstanceResponseRecord;
|
40
|
+
withIsOldFirewallInstance(isOldFirewallInstance: boolean): GetFirewallInstanceResponseRecord;
|
41
|
+
set isOldFirewallInstance(isOldFirewallInstance: boolean | undefined);
|
42
|
+
get isOldFirewallInstance(): boolean | undefined;
|
43
|
+
withSupportIpv6(supportIpv6: boolean): GetFirewallInstanceResponseRecord;
|
44
|
+
set supportIpv6(supportIpv6: boolean | undefined);
|
45
|
+
get supportIpv6(): boolean | undefined;
|
46
|
+
withFeatureToggle(featureToggle: {
|
47
|
+
[key: string]: boolean;
|
48
|
+
}): GetFirewallInstanceResponseRecord;
|
49
|
+
set featureToggle(featureToggle: {
|
50
|
+
[key: string]: boolean;
|
51
|
+
} | undefined);
|
52
|
+
get featureToggle(): {
|
53
|
+
[key: string]: boolean;
|
54
|
+
} | undefined;
|
55
|
+
withResources(resources: Array<FirewallInstanceResource>): GetFirewallInstanceResponseRecord;
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* @export
|
59
|
+
* @enum {string}
|
60
|
+
*/
|
61
|
+
export declare enum GetFirewallInstanceResponseRecordStatusEnum {
|
62
|
+
NUMBER_MINUS_1 = -1,
|
63
|
+
NUMBER_0 = 0,
|
64
|
+
NUMBER_1 = 1,
|
65
|
+
NUMBER_2 = 2,
|
66
|
+
NUMBER_3 = 3,
|
67
|
+
NUMBER_4 = 4,
|
68
|
+
NUMBER_5 = 5,
|
69
|
+
NUMBER_6 = 6,
|
70
|
+
NUMBER_7 = 7,
|
71
|
+
NUMBER_8 = 8,
|
72
|
+
NUMBER_9 = 9,
|
73
|
+
NUMBER_10 = 10,
|
74
|
+
NUMBER_11 = 11
|
75
|
+
}
|
@@ -0,0 +1,171 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetFirewallInstanceResponseRecordStatusEnum = exports.GetFirewallInstanceResponseRecord = void 0;
|
4
|
+
var GetFirewallInstanceResponseRecord = /** @class */ (function () {
|
5
|
+
function GetFirewallInstanceResponseRecord() {
|
6
|
+
}
|
7
|
+
GetFirewallInstanceResponseRecord.prototype.withFwInstanceId = function (fwInstanceId) {
|
8
|
+
this['fw_instance_id'] = fwInstanceId;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.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
|
+
GetFirewallInstanceResponseRecord.prototype.withName = function (name) {
|
22
|
+
this['name'] = name;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
GetFirewallInstanceResponseRecord.prototype.withHaType = function (haType) {
|
26
|
+
this['ha_type'] = haType;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "haType", {
|
30
|
+
get: function () {
|
31
|
+
return this['ha_type'];
|
32
|
+
},
|
33
|
+
set: function (haType) {
|
34
|
+
this['ha_type'] = haType;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
GetFirewallInstanceResponseRecord.prototype.withChargeMode = function (chargeMode) {
|
40
|
+
this['charge_mode'] = chargeMode;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "chargeMode", {
|
44
|
+
get: function () {
|
45
|
+
return this['charge_mode'];
|
46
|
+
},
|
47
|
+
set: function (chargeMode) {
|
48
|
+
this['charge_mode'] = chargeMode;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
GetFirewallInstanceResponseRecord.prototype.withServiceType = function (serviceType) {
|
54
|
+
this['service_type'] = serviceType;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "serviceType", {
|
58
|
+
get: function () {
|
59
|
+
return this['service_type'];
|
60
|
+
},
|
61
|
+
set: function (serviceType) {
|
62
|
+
this['service_type'] = serviceType;
|
63
|
+
},
|
64
|
+
enumerable: false,
|
65
|
+
configurable: true
|
66
|
+
});
|
67
|
+
GetFirewallInstanceResponseRecord.prototype.withEngineType = function (engineType) {
|
68
|
+
this['engine_type'] = engineType;
|
69
|
+
return this;
|
70
|
+
};
|
71
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "engineType", {
|
72
|
+
get: function () {
|
73
|
+
return this['engine_type'];
|
74
|
+
},
|
75
|
+
set: function (engineType) {
|
76
|
+
this['engine_type'] = engineType;
|
77
|
+
},
|
78
|
+
enumerable: false,
|
79
|
+
configurable: true
|
80
|
+
});
|
81
|
+
GetFirewallInstanceResponseRecord.prototype.withFlavor = function (flavor) {
|
82
|
+
this['flavor'] = flavor;
|
83
|
+
return this;
|
84
|
+
};
|
85
|
+
GetFirewallInstanceResponseRecord.prototype.withProtectObjects = function (protectObjects) {
|
86
|
+
this['protect_objects'] = protectObjects;
|
87
|
+
return this;
|
88
|
+
};
|
89
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "protectObjects", {
|
90
|
+
get: function () {
|
91
|
+
return this['protect_objects'];
|
92
|
+
},
|
93
|
+
set: function (protectObjects) {
|
94
|
+
this['protect_objects'] = protectObjects;
|
95
|
+
},
|
96
|
+
enumerable: false,
|
97
|
+
configurable: true
|
98
|
+
});
|
99
|
+
GetFirewallInstanceResponseRecord.prototype.withStatus = function (status) {
|
100
|
+
this['status'] = status;
|
101
|
+
return this;
|
102
|
+
};
|
103
|
+
GetFirewallInstanceResponseRecord.prototype.withIsOldFirewallInstance = function (isOldFirewallInstance) {
|
104
|
+
this['is_old_firewall_instance'] = isOldFirewallInstance;
|
105
|
+
return this;
|
106
|
+
};
|
107
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "isOldFirewallInstance", {
|
108
|
+
get: function () {
|
109
|
+
return this['is_old_firewall_instance'];
|
110
|
+
},
|
111
|
+
set: function (isOldFirewallInstance) {
|
112
|
+
this['is_old_firewall_instance'] = isOldFirewallInstance;
|
113
|
+
},
|
114
|
+
enumerable: false,
|
115
|
+
configurable: true
|
116
|
+
});
|
117
|
+
GetFirewallInstanceResponseRecord.prototype.withSupportIpv6 = function (supportIpv6) {
|
118
|
+
this['support_ipv6'] = supportIpv6;
|
119
|
+
return this;
|
120
|
+
};
|
121
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "supportIpv6", {
|
122
|
+
get: function () {
|
123
|
+
return this['support_ipv6'];
|
124
|
+
},
|
125
|
+
set: function (supportIpv6) {
|
126
|
+
this['support_ipv6'] = supportIpv6;
|
127
|
+
},
|
128
|
+
enumerable: false,
|
129
|
+
configurable: true
|
130
|
+
});
|
131
|
+
GetFirewallInstanceResponseRecord.prototype.withFeatureToggle = function (featureToggle) {
|
132
|
+
this['feature_toggle'] = featureToggle;
|
133
|
+
return this;
|
134
|
+
};
|
135
|
+
Object.defineProperty(GetFirewallInstanceResponseRecord.prototype, "featureToggle", {
|
136
|
+
get: function () {
|
137
|
+
return this['feature_toggle'];
|
138
|
+
},
|
139
|
+
set: function (featureToggle) {
|
140
|
+
this['feature_toggle'] = featureToggle;
|
141
|
+
},
|
142
|
+
enumerable: false,
|
143
|
+
configurable: true
|
144
|
+
});
|
145
|
+
GetFirewallInstanceResponseRecord.prototype.withResources = function (resources) {
|
146
|
+
this['resources'] = resources;
|
147
|
+
return this;
|
148
|
+
};
|
149
|
+
return GetFirewallInstanceResponseRecord;
|
150
|
+
}());
|
151
|
+
exports.GetFirewallInstanceResponseRecord = GetFirewallInstanceResponseRecord;
|
152
|
+
/**
|
153
|
+
* @export
|
154
|
+
* @enum {string}
|
155
|
+
*/
|
156
|
+
var GetFirewallInstanceResponseRecordStatusEnum;
|
157
|
+
(function (GetFirewallInstanceResponseRecordStatusEnum) {
|
158
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
|
159
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_0"] = 0] = "NUMBER_0";
|
160
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_1"] = 1] = "NUMBER_1";
|
161
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_2"] = 2] = "NUMBER_2";
|
162
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_3"] = 3] = "NUMBER_3";
|
163
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_4"] = 4] = "NUMBER_4";
|
164
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_5"] = 5] = "NUMBER_5";
|
165
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_6"] = 6] = "NUMBER_6";
|
166
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_7"] = 7] = "NUMBER_7";
|
167
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_8"] = 8] = "NUMBER_8";
|
168
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_9"] = 9] = "NUMBER_9";
|
169
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_10"] = 10] = "NUMBER_10";
|
170
|
+
GetFirewallInstanceResponseRecordStatusEnum[GetFirewallInstanceResponseRecordStatusEnum["NUMBER_11"] = 11] = "NUMBER_11";
|
171
|
+
})(GetFirewallInstanceResponseRecordStatusEnum = exports.GetFirewallInstanceResponseRecordStatusEnum || (exports.GetFirewallInstanceResponseRecordStatusEnum = {}));
|
@@ -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;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export declare class IpsSwitchDTO {
|
2
2
|
private 'object_id';
|
3
|
-
private 'ips_type'
|
3
|
+
private 'ips_type';
|
4
4
|
status: number;
|
5
|
-
constructor(objectId?: any, status?: any);
|
5
|
+
constructor(objectId?: any, ipsType?: any, status?: any);
|
6
6
|
withObjectId(objectId: string): IpsSwitchDTO;
|
7
7
|
set objectId(objectId: string | undefined);
|
8
8
|
get objectId(): string | undefined;
|
package/v1/model/IpsSwitchDTO.js
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.IpsSwitchDTOIpsTypeEnum = exports.IpsSwitchDTO = void 0;
|
4
4
|
var IpsSwitchDTO = /** @class */ (function () {
|
5
|
-
function IpsSwitchDTO(objectId, status) {
|
5
|
+
function IpsSwitchDTO(objectId, ipsType, status) {
|
6
6
|
this['object_id'] = objectId;
|
7
|
+
this['ips_type'] = ipsType;
|
7
8
|
this['status'] = status;
|
8
9
|
}
|
9
10
|
IpsSwitchDTO.prototype.withObjectId = function (objectId) {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class IpsSwitchResponseDTO {
|
2
|
+
id?: string;
|
3
|
+
private 'basic_defense_status'?;
|
4
|
+
private 'virtual_patches_status'?;
|
5
|
+
constructor();
|
6
|
+
withId(id: string): IpsSwitchResponseDTO;
|
7
|
+
withBasicDefenseStatus(basicDefenseStatus: number): IpsSwitchResponseDTO;
|
8
|
+
set basicDefenseStatus(basicDefenseStatus: number | undefined);
|
9
|
+
get basicDefenseStatus(): number | undefined;
|
10
|
+
withVirtualPatchesStatus(virtualPatchesStatus: number): IpsSwitchResponseDTO;
|
11
|
+
set virtualPatchesStatus(virtualPatchesStatus: number | undefined);
|
12
|
+
get virtualPatchesStatus(): number | undefined;
|
13
|
+
}
|
@@ -0,0 +1,41 @@
|
|
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.withId = function (id) {
|
8
|
+
this['id'] = id;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
IpsSwitchResponseDTO.prototype.withBasicDefenseStatus = function (basicDefenseStatus) {
|
12
|
+
this['basic_defense_status'] = basicDefenseStatus;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
Object.defineProperty(IpsSwitchResponseDTO.prototype, "basicDefenseStatus", {
|
16
|
+
get: function () {
|
17
|
+
return this['basic_defense_status'];
|
18
|
+
},
|
19
|
+
set: function (basicDefenseStatus) {
|
20
|
+
this['basic_defense_status'] = basicDefenseStatus;
|
21
|
+
},
|
22
|
+
enumerable: false,
|
23
|
+
configurable: true
|
24
|
+
});
|
25
|
+
IpsSwitchResponseDTO.prototype.withVirtualPatchesStatus = function (virtualPatchesStatus) {
|
26
|
+
this['virtual_patches_status'] = virtualPatchesStatus;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(IpsSwitchResponseDTO.prototype, "virtualPatchesStatus", {
|
30
|
+
get: function () {
|
31
|
+
return this['virtual_patches_status'];
|
32
|
+
},
|
33
|
+
set: function (virtualPatchesStatus) {
|
34
|
+
this['virtual_patches_status'] = virtualPatchesStatus;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
return IpsSwitchResponseDTO;
|
40
|
+
}());
|
41
|
+
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
|
-
|
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
|
-
|
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.
|
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.
|
26
|
-
this['
|
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 = {}));
|