FEAT: network config module using in-factory

This commit is contained in:
Gabriel Rosa
2022-07-28 15:41:21 -03:00
parent 97214280bc
commit 43cec9b6fa
7 changed files with 138 additions and 33 deletions
@@ -13,7 +13,7 @@ export enum NetworkConfigPluginsEnum {
}
export class NetworkConfigDto {
@ApiProperty()
config_id: string;
id: string;
@ApiProperty()
secret_id: string;
@ApiProperty()
@@ -23,9 +23,9 @@ export class NetworkConfigDto {
@ApiProperty()
description: string;
@ApiProperty({ enum: NetworkConfigTypesEnum })
type: NetworkConfigTypesEnum;
type: string;
@ApiProperty({ enum: NetworkConfigPluginsEnum })
plugin: NetworkConfigPluginsEnum;
plugin: string;
@ApiProperty()
credentials: any;
@ApiProperty()
@@ -68,11 +68,7 @@ export class CreateNetworkConfigReq extends PickType(NetworkConfigDto, [
}
export class CreateNetworkConfigRes {
@ApiProperty()
id: string;
@ApiProperty()
name: string;
@ApiProperty()
description: string;
network_config: NetworkConfigNoSecrets;
}
export class UpdateNetworkConfigReq {
@@ -83,9 +79,10 @@ export class UpdateNetworkConfigReq {
}
export class UpdateNetworkConfigRes {
@ApiProperty()
id: string;
network_config: NetworkConfigNoSecrets;
}
export class DeleteNetworkConfigRes {
@ApiProperty()
name: string;
@ApiProperty()
description: string;
message: string;
}