DOCS: all deprecated fields on create input request

This commit is contained in:
Gabriel Rosa
2022-09-06 09:17:24 -03:00
parent 203a161879
commit 469f165cba
2 changed files with 29 additions and 7 deletions
+28 -6
View File
@@ -14,6 +14,15 @@ export class InputModel {
};
}
export class FileFormatParams {
@ApiProperty()
sep: string;
@ApiProperty()
header: boolean;
@ApiProperty()
encoding: string;
}
class GoogleAnalyticsClientSecrets {
@ApiProperty()
type: string;
@@ -73,12 +82,6 @@ class CredentialsJdbc {
@ApiPropertyOptional()
schema: string;
}
class FileFormatParams {
@ApiPropertyOptional()
file_format: string;
@ApiPropertyOptional()
encoding: string;
}
class Credentials extends CredentialsJdbc {
@ApiProperty()
@@ -164,6 +167,13 @@ export class TestConnectionRes {
@ApiProperty()
database_tables: string[];
}
export class AuthParameters {
@ApiProperty()
aws_access_key_id: string;
@ApiProperty()
aws_secret_access_key: string;
}
export class CreateInputReq {
@ApiProperty({ type: [TableColumns] })
tables: TableColumns[];
@@ -175,6 +185,8 @@ export class CreateInputReq {
plugin: string;
@ApiPropertyOptional()
type: string;
//deprecated attributes (for retro compatibility)
@ApiPropertyOptional({ deprecated: true })
category: string;
@ApiPropertyOptional({ deprecated: true })
@@ -183,6 +195,16 @@ export class CreateInputReq {
options: InputOptions;
@ApiPropertyOptional({ deprecated: true })
info: Info;
@ApiPropertyOptional({ deprecated: true })
cron: string;
@ApiPropertyOptional({ deprecated: true })
source_bucket: string;
@ApiPropertyOptional({ deprecated: true })
source_prefix: string;
@ApiPropertyOptional({ deprecated: true })
auth_parameters: AuthParameters;
@ApiPropertyOptional({ deprecated: true })
file_format_params: FileFormatParams;
}
export class Input {