mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-22 01:29:09 +00:00
FEAT: network config module using in-factory
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user