@huaweicloud/huaweicloud-sdk-vpc 3.1.21 → 3.1.23
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/v2/VpcClient.d.ts +151 -0
- package/v2/VpcClient.js +344 -0
- package/v2/model/CreateFlowLogReq.d.ts +49 -0
- package/v2/model/CreateFlowLogReq.js +126 -0
- package/v2/model/CreateFlowLogReqBody.d.ts +8 -0
- package/v2/model/CreateFlowLogReqBody.js +24 -0
- package/v2/model/CreateFlowLogRequest.d.ts +6 -0
- package/v2/model/CreateFlowLogRequest.js +13 -0
- package/v2/model/CreateFlowLogResponse.d.ts +9 -0
- package/v2/model/CreateFlowLogResponse.js +41 -0
- package/v2/model/DeleteFlowLogRequest.d.ts +7 -0
- package/v2/model/DeleteFlowLogRequest.js +24 -0
- package/v2/model/DeleteFlowLogResponse.d.ts +4 -0
- package/v2/model/DeleteFlowLogResponse.js +27 -0
- package/v2/model/FlowLogResp.d.ts +85 -0
- package/v2/model/FlowLogResp.js +217 -0
- package/v2/model/ListFlowLogsRequest.d.ts +77 -0
- package/v2/model/ListFlowLogsRequest.js +169 -0
- package/v2/model/ListFlowLogsResponse.d.ts +9 -0
- package/v2/model/ListFlowLogsResponse.js +41 -0
- package/v2/model/ShowFlowLogRequest.d.ts +7 -0
- package/v2/model/ShowFlowLogRequest.js +24 -0
- package/v2/model/ShowFlowLogResponse.d.ts +9 -0
- package/v2/model/ShowFlowLogResponse.js +41 -0
- package/v2/model/UpdateFlowLogReq.d.ts +11 -0
- package/v2/model/UpdateFlowLogReq.js +31 -0
- package/v2/model/UpdateFlowLogReqBody.d.ts +8 -0
- package/v2/model/UpdateFlowLogReqBody.js +24 -0
- package/v2/model/UpdateFlowLogRequest.d.ts +10 -0
- package/v2/model/UpdateFlowLogRequest.js +28 -0
- package/v2/model/UpdateFlowLogResponse.d.ts +9 -0
- package/v2/model/UpdateFlowLogResponse.js +41 -0
- package/v2/public-api.d.ts +15 -0
- package/v2/public-api.js +15 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FlowLogResp } from './FlowLogResp';
|
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
3
|
+
export declare class CreateFlowLogResponse extends SdkResponse {
|
|
4
|
+
private 'flow_log'?;
|
|
5
|
+
constructor();
|
|
6
|
+
withFlowLog(flowLog: FlowLogResp): CreateFlowLogResponse;
|
|
7
|
+
set flowLog(flowLog: FlowLogResp | undefined);
|
|
8
|
+
get flowLog(): FlowLogResp | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CreateFlowLogResponse = void 0;
|
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
|
20
|
+
var CreateFlowLogResponse = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CreateFlowLogResponse, _super);
|
|
22
|
+
function CreateFlowLogResponse() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
CreateFlowLogResponse.prototype.withFlowLog = function (flowLog) {
|
|
26
|
+
this['flow_log'] = flowLog;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(CreateFlowLogResponse.prototype, "flowLog", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this['flow_log'];
|
|
32
|
+
},
|
|
33
|
+
set: function (flowLog) {
|
|
34
|
+
this['flow_log'] = flowLog;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
return CreateFlowLogResponse;
|
|
40
|
+
}(SdkResponse_1.SdkResponse));
|
|
41
|
+
exports.CreateFlowLogResponse = CreateFlowLogResponse;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteFlowLogRequest = void 0;
|
|
4
|
+
var DeleteFlowLogRequest = /** @class */ (function () {
|
|
5
|
+
function DeleteFlowLogRequest(flowlogId) {
|
|
6
|
+
this['flowlog_id'] = flowlogId;
|
|
7
|
+
}
|
|
8
|
+
DeleteFlowLogRequest.prototype.withFlowlogId = function (flowlogId) {
|
|
9
|
+
this['flowlog_id'] = flowlogId;
|
|
10
|
+
return this;
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(DeleteFlowLogRequest.prototype, "flowlogId", {
|
|
13
|
+
get: function () {
|
|
14
|
+
return this['flowlog_id'];
|
|
15
|
+
},
|
|
16
|
+
set: function (flowlogId) {
|
|
17
|
+
this['flowlog_id'] = flowlogId;
|
|
18
|
+
},
|
|
19
|
+
enumerable: false,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
return DeleteFlowLogRequest;
|
|
23
|
+
}());
|
|
24
|
+
exports.DeleteFlowLogRequest = DeleteFlowLogRequest;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DeleteFlowLogResponse = void 0;
|
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
|
20
|
+
var DeleteFlowLogResponse = /** @class */ (function (_super) {
|
|
21
|
+
__extends(DeleteFlowLogResponse, _super);
|
|
22
|
+
function DeleteFlowLogResponse() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
return DeleteFlowLogResponse;
|
|
26
|
+
}(SdkResponse_1.SdkResponse));
|
|
27
|
+
exports.DeleteFlowLogResponse = DeleteFlowLogResponse;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare class FlowLogResp {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
private 'tenant_id';
|
|
5
|
+
description: string;
|
|
6
|
+
private 'resource_type';
|
|
7
|
+
private 'resource_id';
|
|
8
|
+
private 'traffic_type';
|
|
9
|
+
private 'log_group_id';
|
|
10
|
+
private 'log_topic_id';
|
|
11
|
+
private 'log_store_type';
|
|
12
|
+
private 'created_at';
|
|
13
|
+
private 'updated_at';
|
|
14
|
+
private 'admin_state';
|
|
15
|
+
status: FlowLogRespStatusEnum;
|
|
16
|
+
constructor(id?: any, name?: any, tenantId?: any, description?: any, resourceType?: any, resourceId?: any, trafficType?: any, logGroupId?: any, logTopicId?: any, logStoreType?: any, createdAt?: any, updatedAt?: any, adminState?: any, status?: any);
|
|
17
|
+
withId(id: string): FlowLogResp;
|
|
18
|
+
withName(name: string): FlowLogResp;
|
|
19
|
+
withTenantId(tenantId: string): FlowLogResp;
|
|
20
|
+
set tenantId(tenantId: string | undefined);
|
|
21
|
+
get tenantId(): string | undefined;
|
|
22
|
+
withDescription(description: string): FlowLogResp;
|
|
23
|
+
withResourceType(resourceType: FlowLogRespResourceTypeEnum): FlowLogResp;
|
|
24
|
+
set resourceType(resourceType: FlowLogRespResourceTypeEnum | undefined);
|
|
25
|
+
get resourceType(): FlowLogRespResourceTypeEnum | undefined;
|
|
26
|
+
withResourceId(resourceId: string): FlowLogResp;
|
|
27
|
+
set resourceId(resourceId: string | undefined);
|
|
28
|
+
get resourceId(): string | undefined;
|
|
29
|
+
withTrafficType(trafficType: FlowLogRespTrafficTypeEnum): FlowLogResp;
|
|
30
|
+
set trafficType(trafficType: FlowLogRespTrafficTypeEnum | undefined);
|
|
31
|
+
get trafficType(): FlowLogRespTrafficTypeEnum | undefined;
|
|
32
|
+
withLogGroupId(logGroupId: string): FlowLogResp;
|
|
33
|
+
set logGroupId(logGroupId: string | undefined);
|
|
34
|
+
get logGroupId(): string | undefined;
|
|
35
|
+
withLogTopicId(logTopicId: string): FlowLogResp;
|
|
36
|
+
set logTopicId(logTopicId: string | undefined);
|
|
37
|
+
get logTopicId(): string | undefined;
|
|
38
|
+
withLogStoreType(logStoreType: FlowLogRespLogStoreTypeEnum): FlowLogResp;
|
|
39
|
+
set logStoreType(logStoreType: FlowLogRespLogStoreTypeEnum | undefined);
|
|
40
|
+
get logStoreType(): FlowLogRespLogStoreTypeEnum | undefined;
|
|
41
|
+
withCreatedAt(createdAt: string): FlowLogResp;
|
|
42
|
+
set createdAt(createdAt: string | undefined);
|
|
43
|
+
get createdAt(): string | undefined;
|
|
44
|
+
withUpdatedAt(updatedAt: string): FlowLogResp;
|
|
45
|
+
set updatedAt(updatedAt: string | undefined);
|
|
46
|
+
get updatedAt(): string | undefined;
|
|
47
|
+
withAdminState(adminState: boolean): FlowLogResp;
|
|
48
|
+
set adminState(adminState: boolean | undefined);
|
|
49
|
+
get adminState(): boolean | undefined;
|
|
50
|
+
withStatus(status: FlowLogRespStatusEnum): FlowLogResp;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
* @enum {string}
|
|
55
|
+
*/
|
|
56
|
+
export declare enum FlowLogRespResourceTypeEnum {
|
|
57
|
+
PORT = "port",
|
|
58
|
+
NETWORK = "network",
|
|
59
|
+
VPC = "vpc"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
* @enum {string}
|
|
64
|
+
*/
|
|
65
|
+
export declare enum FlowLogRespTrafficTypeEnum {
|
|
66
|
+
ALL = "all",
|
|
67
|
+
ACCEPT = "accept",
|
|
68
|
+
REJECT = "reject"
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
* @enum {string}
|
|
73
|
+
*/
|
|
74
|
+
export declare enum FlowLogRespLogStoreTypeEnum {
|
|
75
|
+
LTS = "lts"
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
* @enum {string}
|
|
80
|
+
*/
|
|
81
|
+
export declare enum FlowLogRespStatusEnum {
|
|
82
|
+
ACTIVE = "ACTIVE",
|
|
83
|
+
DOWN = "DOWN",
|
|
84
|
+
ERROR = "ERROR"
|
|
85
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlowLogRespStatusEnum = exports.FlowLogRespLogStoreTypeEnum = exports.FlowLogRespTrafficTypeEnum = exports.FlowLogRespResourceTypeEnum = exports.FlowLogResp = void 0;
|
|
4
|
+
var FlowLogResp = /** @class */ (function () {
|
|
5
|
+
function FlowLogResp(id, name, tenantId, description, resourceType, resourceId, trafficType, logGroupId, logTopicId, logStoreType, createdAt, updatedAt, adminState, status) {
|
|
6
|
+
this['id'] = id;
|
|
7
|
+
this['name'] = name;
|
|
8
|
+
this['tenant_id'] = tenantId;
|
|
9
|
+
this['description'] = description;
|
|
10
|
+
this['resource_type'] = resourceType;
|
|
11
|
+
this['resource_id'] = resourceId;
|
|
12
|
+
this['traffic_type'] = trafficType;
|
|
13
|
+
this['log_group_id'] = logGroupId;
|
|
14
|
+
this['log_topic_id'] = logTopicId;
|
|
15
|
+
this['log_store_type'] = logStoreType;
|
|
16
|
+
this['created_at'] = createdAt;
|
|
17
|
+
this['updated_at'] = updatedAt;
|
|
18
|
+
this['admin_state'] = adminState;
|
|
19
|
+
this['status'] = status;
|
|
20
|
+
}
|
|
21
|
+
FlowLogResp.prototype.withId = function (id) {
|
|
22
|
+
this['id'] = id;
|
|
23
|
+
return this;
|
|
24
|
+
};
|
|
25
|
+
FlowLogResp.prototype.withName = function (name) {
|
|
26
|
+
this['name'] = name;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
FlowLogResp.prototype.withTenantId = function (tenantId) {
|
|
30
|
+
this['tenant_id'] = tenantId;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(FlowLogResp.prototype, "tenantId", {
|
|
34
|
+
get: function () {
|
|
35
|
+
return this['tenant_id'];
|
|
36
|
+
},
|
|
37
|
+
set: function (tenantId) {
|
|
38
|
+
this['tenant_id'] = tenantId;
|
|
39
|
+
},
|
|
40
|
+
enumerable: false,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
FlowLogResp.prototype.withDescription = function (description) {
|
|
44
|
+
this['description'] = description;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
FlowLogResp.prototype.withResourceType = function (resourceType) {
|
|
48
|
+
this['resource_type'] = resourceType;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(FlowLogResp.prototype, "resourceType", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return this['resource_type'];
|
|
54
|
+
},
|
|
55
|
+
set: function (resourceType) {
|
|
56
|
+
this['resource_type'] = resourceType;
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
FlowLogResp.prototype.withResourceId = function (resourceId) {
|
|
62
|
+
this['resource_id'] = resourceId;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(FlowLogResp.prototype, "resourceId", {
|
|
66
|
+
get: function () {
|
|
67
|
+
return this['resource_id'];
|
|
68
|
+
},
|
|
69
|
+
set: function (resourceId) {
|
|
70
|
+
this['resource_id'] = resourceId;
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
FlowLogResp.prototype.withTrafficType = function (trafficType) {
|
|
76
|
+
this['traffic_type'] = trafficType;
|
|
77
|
+
return this;
|
|
78
|
+
};
|
|
79
|
+
Object.defineProperty(FlowLogResp.prototype, "trafficType", {
|
|
80
|
+
get: function () {
|
|
81
|
+
return this['traffic_type'];
|
|
82
|
+
},
|
|
83
|
+
set: function (trafficType) {
|
|
84
|
+
this['traffic_type'] = trafficType;
|
|
85
|
+
},
|
|
86
|
+
enumerable: false,
|
|
87
|
+
configurable: true
|
|
88
|
+
});
|
|
89
|
+
FlowLogResp.prototype.withLogGroupId = function (logGroupId) {
|
|
90
|
+
this['log_group_id'] = logGroupId;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
Object.defineProperty(FlowLogResp.prototype, "logGroupId", {
|
|
94
|
+
get: function () {
|
|
95
|
+
return this['log_group_id'];
|
|
96
|
+
},
|
|
97
|
+
set: function (logGroupId) {
|
|
98
|
+
this['log_group_id'] = logGroupId;
|
|
99
|
+
},
|
|
100
|
+
enumerable: false,
|
|
101
|
+
configurable: true
|
|
102
|
+
});
|
|
103
|
+
FlowLogResp.prototype.withLogTopicId = function (logTopicId) {
|
|
104
|
+
this['log_topic_id'] = logTopicId;
|
|
105
|
+
return this;
|
|
106
|
+
};
|
|
107
|
+
Object.defineProperty(FlowLogResp.prototype, "logTopicId", {
|
|
108
|
+
get: function () {
|
|
109
|
+
return this['log_topic_id'];
|
|
110
|
+
},
|
|
111
|
+
set: function (logTopicId) {
|
|
112
|
+
this['log_topic_id'] = logTopicId;
|
|
113
|
+
},
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
117
|
+
FlowLogResp.prototype.withLogStoreType = function (logStoreType) {
|
|
118
|
+
this['log_store_type'] = logStoreType;
|
|
119
|
+
return this;
|
|
120
|
+
};
|
|
121
|
+
Object.defineProperty(FlowLogResp.prototype, "logStoreType", {
|
|
122
|
+
get: function () {
|
|
123
|
+
return this['log_store_type'];
|
|
124
|
+
},
|
|
125
|
+
set: function (logStoreType) {
|
|
126
|
+
this['log_store_type'] = logStoreType;
|
|
127
|
+
},
|
|
128
|
+
enumerable: false,
|
|
129
|
+
configurable: true
|
|
130
|
+
});
|
|
131
|
+
FlowLogResp.prototype.withCreatedAt = function (createdAt) {
|
|
132
|
+
this['created_at'] = createdAt;
|
|
133
|
+
return this;
|
|
134
|
+
};
|
|
135
|
+
Object.defineProperty(FlowLogResp.prototype, "createdAt", {
|
|
136
|
+
get: function () {
|
|
137
|
+
return this['created_at'];
|
|
138
|
+
},
|
|
139
|
+
set: function (createdAt) {
|
|
140
|
+
this['created_at'] = createdAt;
|
|
141
|
+
},
|
|
142
|
+
enumerable: false,
|
|
143
|
+
configurable: true
|
|
144
|
+
});
|
|
145
|
+
FlowLogResp.prototype.withUpdatedAt = function (updatedAt) {
|
|
146
|
+
this['updated_at'] = updatedAt;
|
|
147
|
+
return this;
|
|
148
|
+
};
|
|
149
|
+
Object.defineProperty(FlowLogResp.prototype, "updatedAt", {
|
|
150
|
+
get: function () {
|
|
151
|
+
return this['updated_at'];
|
|
152
|
+
},
|
|
153
|
+
set: function (updatedAt) {
|
|
154
|
+
this['updated_at'] = updatedAt;
|
|
155
|
+
},
|
|
156
|
+
enumerable: false,
|
|
157
|
+
configurable: true
|
|
158
|
+
});
|
|
159
|
+
FlowLogResp.prototype.withAdminState = function (adminState) {
|
|
160
|
+
this['admin_state'] = adminState;
|
|
161
|
+
return this;
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperty(FlowLogResp.prototype, "adminState", {
|
|
164
|
+
get: function () {
|
|
165
|
+
return this['admin_state'];
|
|
166
|
+
},
|
|
167
|
+
set: function (adminState) {
|
|
168
|
+
this['admin_state'] = adminState;
|
|
169
|
+
},
|
|
170
|
+
enumerable: false,
|
|
171
|
+
configurable: true
|
|
172
|
+
});
|
|
173
|
+
FlowLogResp.prototype.withStatus = function (status) {
|
|
174
|
+
this['status'] = status;
|
|
175
|
+
return this;
|
|
176
|
+
};
|
|
177
|
+
return FlowLogResp;
|
|
178
|
+
}());
|
|
179
|
+
exports.FlowLogResp = FlowLogResp;
|
|
180
|
+
/**
|
|
181
|
+
* @export
|
|
182
|
+
* @enum {string}
|
|
183
|
+
*/
|
|
184
|
+
var FlowLogRespResourceTypeEnum;
|
|
185
|
+
(function (FlowLogRespResourceTypeEnum) {
|
|
186
|
+
FlowLogRespResourceTypeEnum["PORT"] = "port";
|
|
187
|
+
FlowLogRespResourceTypeEnum["NETWORK"] = "network";
|
|
188
|
+
FlowLogRespResourceTypeEnum["VPC"] = "vpc";
|
|
189
|
+
})(FlowLogRespResourceTypeEnum = exports.FlowLogRespResourceTypeEnum || (exports.FlowLogRespResourceTypeEnum = {}));
|
|
190
|
+
/**
|
|
191
|
+
* @export
|
|
192
|
+
* @enum {string}
|
|
193
|
+
*/
|
|
194
|
+
var FlowLogRespTrafficTypeEnum;
|
|
195
|
+
(function (FlowLogRespTrafficTypeEnum) {
|
|
196
|
+
FlowLogRespTrafficTypeEnum["ALL"] = "all";
|
|
197
|
+
FlowLogRespTrafficTypeEnum["ACCEPT"] = "accept";
|
|
198
|
+
FlowLogRespTrafficTypeEnum["REJECT"] = "reject";
|
|
199
|
+
})(FlowLogRespTrafficTypeEnum = exports.FlowLogRespTrafficTypeEnum || (exports.FlowLogRespTrafficTypeEnum = {}));
|
|
200
|
+
/**
|
|
201
|
+
* @export
|
|
202
|
+
* @enum {string}
|
|
203
|
+
*/
|
|
204
|
+
var FlowLogRespLogStoreTypeEnum;
|
|
205
|
+
(function (FlowLogRespLogStoreTypeEnum) {
|
|
206
|
+
FlowLogRespLogStoreTypeEnum["LTS"] = "lts";
|
|
207
|
+
})(FlowLogRespLogStoreTypeEnum = exports.FlowLogRespLogStoreTypeEnum || (exports.FlowLogRespLogStoreTypeEnum = {}));
|
|
208
|
+
/**
|
|
209
|
+
* @export
|
|
210
|
+
* @enum {string}
|
|
211
|
+
*/
|
|
212
|
+
var FlowLogRespStatusEnum;
|
|
213
|
+
(function (FlowLogRespStatusEnum) {
|
|
214
|
+
FlowLogRespStatusEnum["ACTIVE"] = "ACTIVE";
|
|
215
|
+
FlowLogRespStatusEnum["DOWN"] = "DOWN";
|
|
216
|
+
FlowLogRespStatusEnum["ERROR"] = "ERROR";
|
|
217
|
+
})(FlowLogRespStatusEnum = exports.FlowLogRespStatusEnum || (exports.FlowLogRespStatusEnum = {}));
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare class ListFlowLogsRequest {
|
|
2
|
+
id?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
private 'tenant_id'?;
|
|
5
|
+
description?: string;
|
|
6
|
+
private 'resource_type'?;
|
|
7
|
+
private 'resource_id'?;
|
|
8
|
+
private 'traffic_type'?;
|
|
9
|
+
private 'log_group_id'?;
|
|
10
|
+
private 'log_topic_id'?;
|
|
11
|
+
private 'log_store_type'?;
|
|
12
|
+
status?: ListFlowLogsRequestStatusEnum;
|
|
13
|
+
limit?: string;
|
|
14
|
+
marker?: string;
|
|
15
|
+
constructor();
|
|
16
|
+
withId(id: string): ListFlowLogsRequest;
|
|
17
|
+
withName(name: string): ListFlowLogsRequest;
|
|
18
|
+
withTenantId(tenantId: string): ListFlowLogsRequest;
|
|
19
|
+
set tenantId(tenantId: string | undefined);
|
|
20
|
+
get tenantId(): string | undefined;
|
|
21
|
+
withDescription(description: string): ListFlowLogsRequest;
|
|
22
|
+
withResourceType(resourceType: ListFlowLogsRequestResourceTypeEnum): ListFlowLogsRequest;
|
|
23
|
+
set resourceType(resourceType: ListFlowLogsRequestResourceTypeEnum | undefined);
|
|
24
|
+
get resourceType(): ListFlowLogsRequestResourceTypeEnum | undefined;
|
|
25
|
+
withResourceId(resourceId: string): ListFlowLogsRequest;
|
|
26
|
+
set resourceId(resourceId: string | undefined);
|
|
27
|
+
get resourceId(): string | undefined;
|
|
28
|
+
withTrafficType(trafficType: ListFlowLogsRequestTrafficTypeEnum): ListFlowLogsRequest;
|
|
29
|
+
set trafficType(trafficType: ListFlowLogsRequestTrafficTypeEnum | undefined);
|
|
30
|
+
get trafficType(): ListFlowLogsRequestTrafficTypeEnum | undefined;
|
|
31
|
+
withLogGroupId(logGroupId: string): ListFlowLogsRequest;
|
|
32
|
+
set logGroupId(logGroupId: string | undefined);
|
|
33
|
+
get logGroupId(): string | undefined;
|
|
34
|
+
withLogTopicId(logTopicId: string): ListFlowLogsRequest;
|
|
35
|
+
set logTopicId(logTopicId: string | undefined);
|
|
36
|
+
get logTopicId(): string | undefined;
|
|
37
|
+
withLogStoreType(logStoreType: ListFlowLogsRequestLogStoreTypeEnum): ListFlowLogsRequest;
|
|
38
|
+
set logStoreType(logStoreType: ListFlowLogsRequestLogStoreTypeEnum | undefined);
|
|
39
|
+
get logStoreType(): ListFlowLogsRequestLogStoreTypeEnum | undefined;
|
|
40
|
+
withStatus(status: ListFlowLogsRequestStatusEnum): ListFlowLogsRequest;
|
|
41
|
+
withLimit(limit: string): ListFlowLogsRequest;
|
|
42
|
+
withMarker(marker: string): ListFlowLogsRequest;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
* @enum {string}
|
|
47
|
+
*/
|
|
48
|
+
export declare enum ListFlowLogsRequestResourceTypeEnum {
|
|
49
|
+
PORT = "port",
|
|
50
|
+
NETWORK = "network",
|
|
51
|
+
VPC = "vpc"
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
* @enum {string}
|
|
56
|
+
*/
|
|
57
|
+
export declare enum ListFlowLogsRequestTrafficTypeEnum {
|
|
58
|
+
ALL = "all",
|
|
59
|
+
REJECT = "reject",
|
|
60
|
+
ACCEPT = "accept"
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
* @enum {string}
|
|
65
|
+
*/
|
|
66
|
+
export declare enum ListFlowLogsRequestLogStoreTypeEnum {
|
|
67
|
+
LTS = "lts"
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
* @enum {string}
|
|
72
|
+
*/
|
|
73
|
+
export declare enum ListFlowLogsRequestStatusEnum {
|
|
74
|
+
ACTIVE = "ACTIVE",
|
|
75
|
+
DOWN = "DOWN",
|
|
76
|
+
ERROR = "ERROR"
|
|
77
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListFlowLogsRequestStatusEnum = exports.ListFlowLogsRequestLogStoreTypeEnum = exports.ListFlowLogsRequestTrafficTypeEnum = exports.ListFlowLogsRequestResourceTypeEnum = exports.ListFlowLogsRequest = void 0;
|
|
4
|
+
var ListFlowLogsRequest = /** @class */ (function () {
|
|
5
|
+
function ListFlowLogsRequest() {
|
|
6
|
+
}
|
|
7
|
+
ListFlowLogsRequest.prototype.withId = function (id) {
|
|
8
|
+
this['id'] = id;
|
|
9
|
+
return this;
|
|
10
|
+
};
|
|
11
|
+
ListFlowLogsRequest.prototype.withName = function (name) {
|
|
12
|
+
this['name'] = name;
|
|
13
|
+
return this;
|
|
14
|
+
};
|
|
15
|
+
ListFlowLogsRequest.prototype.withTenantId = function (tenantId) {
|
|
16
|
+
this['tenant_id'] = tenantId;
|
|
17
|
+
return this;
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "tenantId", {
|
|
20
|
+
get: function () {
|
|
21
|
+
return this['tenant_id'];
|
|
22
|
+
},
|
|
23
|
+
set: function (tenantId) {
|
|
24
|
+
this['tenant_id'] = tenantId;
|
|
25
|
+
},
|
|
26
|
+
enumerable: false,
|
|
27
|
+
configurable: true
|
|
28
|
+
});
|
|
29
|
+
ListFlowLogsRequest.prototype.withDescription = function (description) {
|
|
30
|
+
this['description'] = description;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
ListFlowLogsRequest.prototype.withResourceType = function (resourceType) {
|
|
34
|
+
this['resource_type'] = resourceType;
|
|
35
|
+
return this;
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "resourceType", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this['resource_type'];
|
|
40
|
+
},
|
|
41
|
+
set: function (resourceType) {
|
|
42
|
+
this['resource_type'] = resourceType;
|
|
43
|
+
},
|
|
44
|
+
enumerable: false,
|
|
45
|
+
configurable: true
|
|
46
|
+
});
|
|
47
|
+
ListFlowLogsRequest.prototype.withResourceId = function (resourceId) {
|
|
48
|
+
this['resource_id'] = resourceId;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "resourceId", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return this['resource_id'];
|
|
54
|
+
},
|
|
55
|
+
set: function (resourceId) {
|
|
56
|
+
this['resource_id'] = resourceId;
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
ListFlowLogsRequest.prototype.withTrafficType = function (trafficType) {
|
|
62
|
+
this['traffic_type'] = trafficType;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "trafficType", {
|
|
66
|
+
get: function () {
|
|
67
|
+
return this['traffic_type'];
|
|
68
|
+
},
|
|
69
|
+
set: function (trafficType) {
|
|
70
|
+
this['traffic_type'] = trafficType;
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
ListFlowLogsRequest.prototype.withLogGroupId = function (logGroupId) {
|
|
76
|
+
this['log_group_id'] = logGroupId;
|
|
77
|
+
return this;
|
|
78
|
+
};
|
|
79
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "logGroupId", {
|
|
80
|
+
get: function () {
|
|
81
|
+
return this['log_group_id'];
|
|
82
|
+
},
|
|
83
|
+
set: function (logGroupId) {
|
|
84
|
+
this['log_group_id'] = logGroupId;
|
|
85
|
+
},
|
|
86
|
+
enumerable: false,
|
|
87
|
+
configurable: true
|
|
88
|
+
});
|
|
89
|
+
ListFlowLogsRequest.prototype.withLogTopicId = function (logTopicId) {
|
|
90
|
+
this['log_topic_id'] = logTopicId;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "logTopicId", {
|
|
94
|
+
get: function () {
|
|
95
|
+
return this['log_topic_id'];
|
|
96
|
+
},
|
|
97
|
+
set: function (logTopicId) {
|
|
98
|
+
this['log_topic_id'] = logTopicId;
|
|
99
|
+
},
|
|
100
|
+
enumerable: false,
|
|
101
|
+
configurable: true
|
|
102
|
+
});
|
|
103
|
+
ListFlowLogsRequest.prototype.withLogStoreType = function (logStoreType) {
|
|
104
|
+
this['log_store_type'] = logStoreType;
|
|
105
|
+
return this;
|
|
106
|
+
};
|
|
107
|
+
Object.defineProperty(ListFlowLogsRequest.prototype, "logStoreType", {
|
|
108
|
+
get: function () {
|
|
109
|
+
return this['log_store_type'];
|
|
110
|
+
},
|
|
111
|
+
set: function (logStoreType) {
|
|
112
|
+
this['log_store_type'] = logStoreType;
|
|
113
|
+
},
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
117
|
+
ListFlowLogsRequest.prototype.withStatus = function (status) {
|
|
118
|
+
this['status'] = status;
|
|
119
|
+
return this;
|
|
120
|
+
};
|
|
121
|
+
ListFlowLogsRequest.prototype.withLimit = function (limit) {
|
|
122
|
+
this['limit'] = limit;
|
|
123
|
+
return this;
|
|
124
|
+
};
|
|
125
|
+
ListFlowLogsRequest.prototype.withMarker = function (marker) {
|
|
126
|
+
this['marker'] = marker;
|
|
127
|
+
return this;
|
|
128
|
+
};
|
|
129
|
+
return ListFlowLogsRequest;
|
|
130
|
+
}());
|
|
131
|
+
exports.ListFlowLogsRequest = ListFlowLogsRequest;
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
* @enum {string}
|
|
135
|
+
*/
|
|
136
|
+
var ListFlowLogsRequestResourceTypeEnum;
|
|
137
|
+
(function (ListFlowLogsRequestResourceTypeEnum) {
|
|
138
|
+
ListFlowLogsRequestResourceTypeEnum["PORT"] = "port";
|
|
139
|
+
ListFlowLogsRequestResourceTypeEnum["NETWORK"] = "network";
|
|
140
|
+
ListFlowLogsRequestResourceTypeEnum["VPC"] = "vpc";
|
|
141
|
+
})(ListFlowLogsRequestResourceTypeEnum = exports.ListFlowLogsRequestResourceTypeEnum || (exports.ListFlowLogsRequestResourceTypeEnum = {}));
|
|
142
|
+
/**
|
|
143
|
+
* @export
|
|
144
|
+
* @enum {string}
|
|
145
|
+
*/
|
|
146
|
+
var ListFlowLogsRequestTrafficTypeEnum;
|
|
147
|
+
(function (ListFlowLogsRequestTrafficTypeEnum) {
|
|
148
|
+
ListFlowLogsRequestTrafficTypeEnum["ALL"] = "all";
|
|
149
|
+
ListFlowLogsRequestTrafficTypeEnum["REJECT"] = "reject";
|
|
150
|
+
ListFlowLogsRequestTrafficTypeEnum["ACCEPT"] = "accept";
|
|
151
|
+
})(ListFlowLogsRequestTrafficTypeEnum = exports.ListFlowLogsRequestTrafficTypeEnum || (exports.ListFlowLogsRequestTrafficTypeEnum = {}));
|
|
152
|
+
/**
|
|
153
|
+
* @export
|
|
154
|
+
* @enum {string}
|
|
155
|
+
*/
|
|
156
|
+
var ListFlowLogsRequestLogStoreTypeEnum;
|
|
157
|
+
(function (ListFlowLogsRequestLogStoreTypeEnum) {
|
|
158
|
+
ListFlowLogsRequestLogStoreTypeEnum["LTS"] = "lts";
|
|
159
|
+
})(ListFlowLogsRequestLogStoreTypeEnum = exports.ListFlowLogsRequestLogStoreTypeEnum || (exports.ListFlowLogsRequestLogStoreTypeEnum = {}));
|
|
160
|
+
/**
|
|
161
|
+
* @export
|
|
162
|
+
* @enum {string}
|
|
163
|
+
*/
|
|
164
|
+
var ListFlowLogsRequestStatusEnum;
|
|
165
|
+
(function (ListFlowLogsRequestStatusEnum) {
|
|
166
|
+
ListFlowLogsRequestStatusEnum["ACTIVE"] = "ACTIVE";
|
|
167
|
+
ListFlowLogsRequestStatusEnum["DOWN"] = "DOWN";
|
|
168
|
+
ListFlowLogsRequestStatusEnum["ERROR"] = "ERROR";
|
|
169
|
+
})(ListFlowLogsRequestStatusEnum = exports.ListFlowLogsRequestStatusEnum || (exports.ListFlowLogsRequestStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FlowLogResp } from './FlowLogResp';
|
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
3
|
+
export declare class ListFlowLogsResponse extends SdkResponse {
|
|
4
|
+
private 'flow_logs'?;
|
|
5
|
+
constructor();
|
|
6
|
+
withFlowLogs(flowLogs: Array<FlowLogResp>): ListFlowLogsResponse;
|
|
7
|
+
set flowLogs(flowLogs: Array<FlowLogResp> | undefined);
|
|
8
|
+
get flowLogs(): Array<FlowLogResp> | undefined;
|
|
9
|
+
}
|