@huaweicloud/huaweicloud-sdk-cfw 3.1.12 → 3.1.13
Sign up to get free protection for your applications and to get access to all the features.
- 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/GetEastWestFirewallResponseBody.d.ts +4 -4
- package/v1/model/GetEastWestFirewallResponseBody.js +6 -6
- package/v1/model/GetFirewallInstanceResponseData.d.ts +78 -0
- package/v1/model/GetFirewallInstanceResponseData.js +185 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts +3 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.js +4 -0
- package/v1/model/IpsSwitchResponseDTO.d.ts +15 -0
- package/v1/model/IpsSwitchResponseDTO.js +51 -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 +7 -0
- package/v1/public-api.js +7 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-cfw",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.13",
|
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.
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.13"
|
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,
|
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,
|
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
|
-
|
4
|
-
private 'eip_total'?;
|
5
|
-
private 'eip_protected'?;
|
4
|
+
data?: EipCountRespData;
|
6
5
|
constructor();
|
7
|
-
|
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.
|
26
|
-
this['
|
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;
|
@@ -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 '
|
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
|
-
|
36
|
-
set
|
37
|
-
get
|
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;
|
@@ -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,78 @@
|
|
1
|
+
import { Flavor } from './Flavor';
|
2
|
+
import { ProtectObjectVO } from './ProtectObjectVO';
|
3
|
+
export declare class GetFirewallInstanceResponseData {
|
4
|
+
private 'fw_instance_id'?;
|
5
|
+
private 'resource_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?: GetFirewallInstanceResponseDataStatusEnum;
|
14
|
+
description?: string;
|
15
|
+
private 'is_old_firewall_instance'?;
|
16
|
+
private 'support_ipv6'?;
|
17
|
+
private 'feature_toggle'?;
|
18
|
+
constructor();
|
19
|
+
withFwInstanceId(fwInstanceId: string): GetFirewallInstanceResponseData;
|
20
|
+
set fwInstanceId(fwInstanceId: string | undefined);
|
21
|
+
get fwInstanceId(): string | undefined;
|
22
|
+
withResourceId(resourceId: string): GetFirewallInstanceResponseData;
|
23
|
+
set resourceId(resourceId: string | undefined);
|
24
|
+
get resourceId(): string | undefined;
|
25
|
+
withName(name: string): GetFirewallInstanceResponseData;
|
26
|
+
withHaType(haType: number): GetFirewallInstanceResponseData;
|
27
|
+
set haType(haType: number | undefined);
|
28
|
+
get haType(): number | undefined;
|
29
|
+
withChargeMode(chargeMode: number): GetFirewallInstanceResponseData;
|
30
|
+
set chargeMode(chargeMode: number | undefined);
|
31
|
+
get chargeMode(): number | undefined;
|
32
|
+
withServiceType(serviceType: number): GetFirewallInstanceResponseData;
|
33
|
+
set serviceType(serviceType: number | undefined);
|
34
|
+
get serviceType(): number | undefined;
|
35
|
+
withEngineType(engineType: string): GetFirewallInstanceResponseData;
|
36
|
+
set engineType(engineType: string | undefined);
|
37
|
+
get engineType(): string | undefined;
|
38
|
+
withFlavor(flavor: Flavor): GetFirewallInstanceResponseData;
|
39
|
+
withProtectObjects(protectObjects: Array<ProtectObjectVO>): GetFirewallInstanceResponseData;
|
40
|
+
set protectObjects(protectObjects: Array<ProtectObjectVO> | undefined);
|
41
|
+
get protectObjects(): Array<ProtectObjectVO> | undefined;
|
42
|
+
withStatus(status: GetFirewallInstanceResponseDataStatusEnum): GetFirewallInstanceResponseData;
|
43
|
+
withDescription(description: string): GetFirewallInstanceResponseData;
|
44
|
+
withIsOldFirewallInstance(isOldFirewallInstance: boolean): GetFirewallInstanceResponseData;
|
45
|
+
set isOldFirewallInstance(isOldFirewallInstance: boolean | undefined);
|
46
|
+
get isOldFirewallInstance(): boolean | undefined;
|
47
|
+
withSupportIpv6(supportIpv6: boolean): GetFirewallInstanceResponseData;
|
48
|
+
set supportIpv6(supportIpv6: boolean | undefined);
|
49
|
+
get supportIpv6(): boolean | undefined;
|
50
|
+
withFeatureToggle(featureToggle: {
|
51
|
+
[key: string]: boolean;
|
52
|
+
}): GetFirewallInstanceResponseData;
|
53
|
+
set featureToggle(featureToggle: {
|
54
|
+
[key: string]: boolean;
|
55
|
+
} | undefined);
|
56
|
+
get featureToggle(): {
|
57
|
+
[key: string]: boolean;
|
58
|
+
} | undefined;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* @export
|
62
|
+
* @enum {string}
|
63
|
+
*/
|
64
|
+
export declare enum GetFirewallInstanceResponseDataStatusEnum {
|
65
|
+
NUMBER_MINUS_1 = -1,
|
66
|
+
NUMBER_0 = 0,
|
67
|
+
NUMBER_1 = 1,
|
68
|
+
NUMBER_2 = 2,
|
69
|
+
NUMBER_3 = 3,
|
70
|
+
NUMBER_4 = 4,
|
71
|
+
NUMBER_5 = 5,
|
72
|
+
NUMBER_6 = 6,
|
73
|
+
NUMBER_7 = 7,
|
74
|
+
NUMBER_8 = 8,
|
75
|
+
NUMBER_9 = 9,
|
76
|
+
NUMBER_10 = 10,
|
77
|
+
NUMBER_11 = 11
|
78
|
+
}
|