@huaweicloud/huaweicloud-sdk-cfw 3.1.13 → 3.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/v1/model/FirewallInstanceResource.d.ts +27 -0
- package/v1/model/FirewallInstanceResource.js +93 -0
- package/v1/model/GetFirewallInstanceData.d.ts +12 -0
- package/v1/model/GetFirewallInstanceData.js +25 -0
- package/v1/model/{GetFirewallInstanceResponseData.d.ts → GetFirewallInstanceResponseRecord.d.ts} +20 -23
- package/v1/model/GetFirewallInstanceResponseRecord.js +171 -0
- package/v1/model/IpsSwitchDTO.d.ts +2 -2
- package/v1/model/IpsSwitchDTO.js +2 -1
- package/v1/model/IpsSwitchResponseDTO.d.ts +6 -8
- package/v1/model/IpsSwitchResponseDTO.js +8 -18
- package/v1/model/ListFirewallUsingGetResponse.d.ts +3 -3
- package/v1/public-api.d.ts +3 -1
- package/v1/public-api.js +3 -1
- package/v1/model/GetFirewallInstanceResponseData.js +0 -185
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.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.
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.14"
|
18
18
|
}
|
19
19
|
}
|
@@ -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;
|
@@ -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;
|
package/v1/model/{GetFirewallInstanceResponseData.d.ts → GetFirewallInstanceResponseRecord.d.ts}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
+
import { FirewallInstanceResource } from './FirewallInstanceResource';
|
1
2
|
import { Flavor } from './Flavor';
|
2
3
|
import { ProtectObjectVO } from './ProtectObjectVO';
|
3
|
-
export declare class
|
4
|
+
export declare class GetFirewallInstanceResponseRecord {
|
4
5
|
private 'fw_instance_id'?;
|
5
|
-
private 'resource_id'?;
|
6
6
|
name?: string;
|
7
7
|
private 'ha_type'?;
|
8
8
|
private 'charge_mode'?;
|
@@ -10,58 +10,55 @@ export declare class GetFirewallInstanceResponseData {
|
|
10
10
|
private 'engine_type'?;
|
11
11
|
flavor?: Flavor;
|
12
12
|
private 'protect_objects'?;
|
13
|
-
status?:
|
14
|
-
description?: string;
|
13
|
+
status?: GetFirewallInstanceResponseRecordStatusEnum;
|
15
14
|
private 'is_old_firewall_instance'?;
|
16
15
|
private 'support_ipv6'?;
|
17
16
|
private 'feature_toggle'?;
|
17
|
+
resources?: Array<FirewallInstanceResource>;
|
18
18
|
constructor();
|
19
|
-
withFwInstanceId(fwInstanceId: string):
|
19
|
+
withFwInstanceId(fwInstanceId: string): GetFirewallInstanceResponseRecord;
|
20
20
|
set fwInstanceId(fwInstanceId: string | undefined);
|
21
21
|
get fwInstanceId(): string | undefined;
|
22
|
-
|
23
|
-
|
24
|
-
get resourceId(): string | undefined;
|
25
|
-
withName(name: string): GetFirewallInstanceResponseData;
|
26
|
-
withHaType(haType: number): GetFirewallInstanceResponseData;
|
22
|
+
withName(name: string): GetFirewallInstanceResponseRecord;
|
23
|
+
withHaType(haType: number): GetFirewallInstanceResponseRecord;
|
27
24
|
set haType(haType: number | undefined);
|
28
25
|
get haType(): number | undefined;
|
29
|
-
withChargeMode(chargeMode: number):
|
26
|
+
withChargeMode(chargeMode: number): GetFirewallInstanceResponseRecord;
|
30
27
|
set chargeMode(chargeMode: number | undefined);
|
31
28
|
get chargeMode(): number | undefined;
|
32
|
-
withServiceType(serviceType: number):
|
29
|
+
withServiceType(serviceType: number): GetFirewallInstanceResponseRecord;
|
33
30
|
set serviceType(serviceType: number | undefined);
|
34
31
|
get serviceType(): number | undefined;
|
35
|
-
withEngineType(engineType:
|
36
|
-
set engineType(engineType:
|
37
|
-
get engineType():
|
38
|
-
withFlavor(flavor: Flavor):
|
39
|
-
withProtectObjects(protectObjects: Array<ProtectObjectVO>):
|
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;
|
40
37
|
set protectObjects(protectObjects: Array<ProtectObjectVO> | undefined);
|
41
38
|
get protectObjects(): Array<ProtectObjectVO> | undefined;
|
42
|
-
withStatus(status:
|
43
|
-
|
44
|
-
withIsOldFirewallInstance(isOldFirewallInstance: boolean): GetFirewallInstanceResponseData;
|
39
|
+
withStatus(status: GetFirewallInstanceResponseRecordStatusEnum): GetFirewallInstanceResponseRecord;
|
40
|
+
withIsOldFirewallInstance(isOldFirewallInstance: boolean): GetFirewallInstanceResponseRecord;
|
45
41
|
set isOldFirewallInstance(isOldFirewallInstance: boolean | undefined);
|
46
42
|
get isOldFirewallInstance(): boolean | undefined;
|
47
|
-
withSupportIpv6(supportIpv6: boolean):
|
43
|
+
withSupportIpv6(supportIpv6: boolean): GetFirewallInstanceResponseRecord;
|
48
44
|
set supportIpv6(supportIpv6: boolean | undefined);
|
49
45
|
get supportIpv6(): boolean | undefined;
|
50
46
|
withFeatureToggle(featureToggle: {
|
51
47
|
[key: string]: boolean;
|
52
|
-
}):
|
48
|
+
}): GetFirewallInstanceResponseRecord;
|
53
49
|
set featureToggle(featureToggle: {
|
54
50
|
[key: string]: boolean;
|
55
51
|
} | undefined);
|
56
52
|
get featureToggle(): {
|
57
53
|
[key: string]: boolean;
|
58
54
|
} | undefined;
|
55
|
+
withResources(resources: Array<FirewallInstanceResource>): GetFirewallInstanceResponseRecord;
|
59
56
|
}
|
60
57
|
/**
|
61
58
|
* @export
|
62
59
|
* @enum {string}
|
63
60
|
*/
|
64
|
-
export declare enum
|
61
|
+
export declare enum GetFirewallInstanceResponseRecordStatusEnum {
|
65
62
|
NUMBER_MINUS_1 = -1,
|
66
63
|
NUMBER_0 = 0,
|
67
64
|
NUMBER_1 = 1,
|
@@ -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,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) {
|
@@ -1,15 +1,13 @@
|
|
1
1
|
export declare class IpsSwitchResponseDTO {
|
2
|
-
|
2
|
+
id?: string;
|
3
3
|
private 'basic_defense_status'?;
|
4
|
-
private '
|
4
|
+
private 'virtual_patches_status'?;
|
5
5
|
constructor();
|
6
|
-
|
7
|
-
set objectId(objectId: string | undefined);
|
8
|
-
get objectId(): string | undefined;
|
6
|
+
withId(id: string): IpsSwitchResponseDTO;
|
9
7
|
withBasicDefenseStatus(basicDefenseStatus: number): IpsSwitchResponseDTO;
|
10
8
|
set basicDefenseStatus(basicDefenseStatus: number | undefined);
|
11
9
|
get basicDefenseStatus(): number | undefined;
|
12
|
-
|
13
|
-
set
|
14
|
-
get
|
10
|
+
withVirtualPatchesStatus(virtualPatchesStatus: number): IpsSwitchResponseDTO;
|
11
|
+
set virtualPatchesStatus(virtualPatchesStatus: number | undefined);
|
12
|
+
get virtualPatchesStatus(): number | undefined;
|
15
13
|
}
|
@@ -4,20 +4,10 @@ exports.IpsSwitchResponseDTO = void 0;
|
|
4
4
|
var IpsSwitchResponseDTO = /** @class */ (function () {
|
5
5
|
function IpsSwitchResponseDTO() {
|
6
6
|
}
|
7
|
-
IpsSwitchResponseDTO.prototype.
|
8
|
-
this['
|
7
|
+
IpsSwitchResponseDTO.prototype.withId = function (id) {
|
8
|
+
this['id'] = id;
|
9
9
|
return this;
|
10
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
11
|
IpsSwitchResponseDTO.prototype.withBasicDefenseStatus = function (basicDefenseStatus) {
|
22
12
|
this['basic_defense_status'] = basicDefenseStatus;
|
23
13
|
return this;
|
@@ -32,16 +22,16 @@ var IpsSwitchResponseDTO = /** @class */ (function () {
|
|
32
22
|
enumerable: false,
|
33
23
|
configurable: true
|
34
24
|
});
|
35
|
-
IpsSwitchResponseDTO.prototype.
|
36
|
-
this['
|
25
|
+
IpsSwitchResponseDTO.prototype.withVirtualPatchesStatus = function (virtualPatchesStatus) {
|
26
|
+
this['virtual_patches_status'] = virtualPatchesStatus;
|
37
27
|
return this;
|
38
28
|
};
|
39
|
-
Object.defineProperty(IpsSwitchResponseDTO.prototype, "
|
29
|
+
Object.defineProperty(IpsSwitchResponseDTO.prototype, "virtualPatchesStatus", {
|
40
30
|
get: function () {
|
41
|
-
return this['
|
31
|
+
return this['virtual_patches_status'];
|
42
32
|
},
|
43
|
-
set: function (
|
44
|
-
this['
|
33
|
+
set: function (virtualPatchesStatus) {
|
34
|
+
this['virtual_patches_status'] = virtualPatchesStatus;
|
45
35
|
},
|
46
36
|
enumerable: false,
|
47
37
|
configurable: true
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { GetFirewallInstanceData } from './GetFirewallInstanceData';
|
2
2
|
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
3
3
|
export declare class ListFirewallUsingGetResponse extends SdkResponse {
|
4
|
-
data?:
|
4
|
+
data?: GetFirewallInstanceData;
|
5
5
|
constructor();
|
6
|
-
withData(data:
|
6
|
+
withData(data: GetFirewallInstanceData): ListFirewallUsingGetResponse;
|
7
7
|
}
|
package/v1/public-api.d.ts
CHANGED
@@ -63,9 +63,11 @@ export * from './model/EipResource';
|
|
63
63
|
export * from './model/EipResponseData';
|
64
64
|
export * from './model/ErInstance';
|
65
65
|
export * from './model/EwProtectResourceInfo';
|
66
|
+
export * from './model/FirewallInstanceResource';
|
66
67
|
export * from './model/Flavor';
|
67
68
|
export * from './model/GetEastWestFirewallResponseBody';
|
68
|
-
export * from './model/
|
69
|
+
export * from './model/GetFirewallInstanceData';
|
70
|
+
export * from './model/GetFirewallInstanceResponseRecord';
|
69
71
|
export * from './model/HttpQueryCfwAccessControllerLogsResponseDTOData';
|
70
72
|
export * from './model/HttpQueryCfwAccessControllerLogsResponseDTODataRecords';
|
71
73
|
export * from './model/HttpQueryCfwAttackLogsResponseDTOData';
|
package/v1/public-api.js
CHANGED
@@ -79,9 +79,11 @@ __exportStar(require("./model/EipResource"), exports);
|
|
79
79
|
__exportStar(require("./model/EipResponseData"), exports);
|
80
80
|
__exportStar(require("./model/ErInstance"), exports);
|
81
81
|
__exportStar(require("./model/EwProtectResourceInfo"), exports);
|
82
|
+
__exportStar(require("./model/FirewallInstanceResource"), exports);
|
82
83
|
__exportStar(require("./model/Flavor"), exports);
|
83
84
|
__exportStar(require("./model/GetEastWestFirewallResponseBody"), exports);
|
84
|
-
__exportStar(require("./model/
|
85
|
+
__exportStar(require("./model/GetFirewallInstanceData"), exports);
|
86
|
+
__exportStar(require("./model/GetFirewallInstanceResponseRecord"), exports);
|
85
87
|
__exportStar(require("./model/HttpQueryCfwAccessControllerLogsResponseDTOData"), exports);
|
86
88
|
__exportStar(require("./model/HttpQueryCfwAccessControllerLogsResponseDTODataRecords"), exports);
|
87
89
|
__exportStar(require("./model/HttpQueryCfwAttackLogsResponseDTOData"), exports);
|
@@ -1,185 +0,0 @@
|
|
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 = {}));
|