From cf052c33f066d74f78d9471877099e1786827266 Mon Sep 17 00:00:00 2001 From: heedaeshin <heedae.shin@namutech.co.kr> Date: Thu, 22 Aug 2024 16:00:22 +0900 Subject: [PATCH] update : gcp structure --- Makefile | 2 +- websrc/controllers/generateHandlers.go | 4 +- websrc/controllers/migrationGCPHandlers.go | 8 +- websrc/controllers/migrationHandlers.go | 4 +- websrc/controllers/migrationNCPHandlers.go | 4 +- websrc/controllers/migrationNoSqlHandlers.go | 14 +- websrc/controllers/migrationS3Handlers.go | 2 +- websrc/controllers/migrationStructs.go | 5 +- websrc/controllers/publicfunc.go | 6 +- websrc/docs/docs.go | 1510 ++++++++++++++++-- websrc/docs/swagger.json | 1510 ++++++++++++++++-- websrc/docs/swagger.yaml | 953 +++++++++-- 12 files changed, 3667 insertions(+), 355 deletions(-) diff --git a/Makefile b/Makefile index d95b79f..dba8256 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ default: # cc: # cd cmd/cm-beetle && $(MAKE) run: - ./mc-data-manager server + ./mc-data-manager server -I 0.0.0.0/0 -P 80 # runwithport: # cd cmd/cm-beetle && $(MAKE) runwithport --port=$(PORT) clean: diff --git a/websrc/controllers/generateHandlers.go b/websrc/controllers/generateHandlers.go index 3a34f76..ab88333 100644 --- a/websrc/controllers/generateHandlers.go +++ b/websrc/controllers/generateHandlers.go @@ -183,7 +183,7 @@ func GenerateS3PostHandler(ctx echo.Context) error { // @Tags [Test Data Generation] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body GenDataParams true "Parameters required to generate test data" +// @Param RequestBody formData GenDataParams true "Parameters required to generate test data" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully generated test data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -483,7 +483,7 @@ func GenerateDynamoDBPostHandler(ctx echo.Context) error { // @Tags [Test Data Generation] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body GenDataParams true "Parameters required to generate test data" +// @Param RequestBody formData GenDataParams true "Parameters required to generate test data" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully generated test data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" diff --git a/websrc/controllers/migrationGCPHandlers.go b/websrc/controllers/migrationGCPHandlers.go index bf5e85d..fb8d60c 100644 --- a/websrc/controllers/migrationGCPHandlers.go +++ b/websrc/controllers/migrationGCPHandlers.go @@ -31,7 +31,7 @@ import ( // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" @@ -97,7 +97,7 @@ func MigrationGCPToLinuxPostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" @@ -163,7 +163,7 @@ func MigrationGCPToWindowsPostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -234,7 +234,7 @@ func MigrationGCPToS3PostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" diff --git a/websrc/controllers/migrationHandlers.go b/websrc/controllers/migrationHandlers.go index 552d139..1ae8af5 100644 --- a/websrc/controllers/migrationHandlers.go +++ b/websrc/controllers/migrationHandlers.go @@ -86,7 +86,7 @@ func MigrationLinuxToS3PostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" @@ -273,7 +273,7 @@ func MigrationWindowsToS3PostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" diff --git a/websrc/controllers/migrationNCPHandlers.go b/websrc/controllers/migrationNCPHandlers.go index bf0000c..3f62c1b 100644 --- a/websrc/controllers/migrationNCPHandlers.go +++ b/websrc/controllers/migrationNCPHandlers.go @@ -203,8 +203,8 @@ func MigrationNCPToS3PostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" -// @Param gcpCredential formData file true "Parameters required to generate test data" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /ncp/gcp [post] diff --git a/websrc/controllers/migrationNoSqlHandlers.go b/websrc/controllers/migrationNoSqlHandlers.go index b3e0873..6cbb228 100644 --- a/websrc/controllers/migrationNoSqlHandlers.go +++ b/websrc/controllers/migrationNoSqlHandlers.go @@ -30,7 +30,7 @@ import ( // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -156,9 +156,9 @@ func MigrationDynamoDBToMongoDBPostHandler(ctx echo.Context) error { // @Summary Migrate data from Firestore to DynamoDB // @Description Migrate data stored in Google Cloud Firestore to AWS DynamoDB. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -225,9 +225,9 @@ func MigrationFirestoreToDynamoDBPostHandler(ctx echo.Context) error { // @Summary Migrate data from Firestore to MongoDB // @Description Migrate data stored in Google Cloud Firestore to Naver Cloud MongoDB. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -353,9 +353,9 @@ func MigrationMongoDBToDynamoDBPostHandler(ctx echo.Context) error { // @Summary Migrate data from MongoDB to Firestore // @Description Migrate data stored in Naver Cloud MongoDB to Google Cloud Firestore. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" diff --git a/websrc/controllers/migrationS3Handlers.go b/websrc/controllers/migrationS3Handlers.go index 05b9020..301e073 100644 --- a/websrc/controllers/migrationS3Handlers.go +++ b/websrc/controllers/migrationS3Handlers.go @@ -140,7 +140,7 @@ func MigrationS3ToWindowsPostHandler(ctx echo.Context) error { // @Tags [Data Migration] // @Accept multipart/form-data // @Produce json -// @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param RequestBody formData MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" diff --git a/websrc/controllers/migrationStructs.go b/websrc/controllers/migrationStructs.go index bb9ba96..de9fa7d 100644 --- a/websrc/controllers/migrationStructs.go +++ b/websrc/controllers/migrationStructs.go @@ -27,7 +27,10 @@ type MigrationForm struct { AWSSecretKey string `form:"awsSecretKey"` AWSBucket string `form:"awsBucket"` - GCPParams GCPMigrationParams `json:"gcpParams"` + ProjectID string `form:"projectid" json:"projectid"` + GCPRegion string `form:"gcpRegion" json:"gcpRegion"` + GCPBucket string `form:"gcpBucket" json:"gcpBucket"` + GCPCredential *multipart.FileHeader `form:"gcpCredential" json:"-" swaggerignore:"true"` NCPRegion string `form:"ncpRegion"` NCPAccessKey string `form:"ncpAccessKey"` diff --git a/websrc/controllers/publicfunc.go b/websrc/controllers/publicfunc.go index 35fae17..0911fa0 100644 --- a/websrc/controllers/publicfunc.go +++ b/websrc/controllers/publicfunc.go @@ -215,7 +215,7 @@ func getGCPCOSC(logger *logrus.Logger, startTime time.Time, jobType string, para if jobType == "gen" { gcpOSC, err = osc.New(gcpfs.New(gc, gparam.ProjectID, gparam.Bucket, gparam.Region), osc.WithLogger(logger)) } else { - gcpOSC, err = osc.New(gcpfs.New(gc, mparam.GCPParams.ProjectID, mparam.GCPParams.GCPBucket, mparam.GCPParams.GCPRegion), osc.WithLogger(logger)) + gcpOSC, err = osc.New(gcpfs.New(gc, mparam.ProjectID, mparam.GCPBucket, mparam.GCPRegion), osc.WithLogger(logger)) } if err != nil { end := time.Now() @@ -328,7 +328,7 @@ func getFirestoreNRDBC(logger *logrus.Logger, startTime time.Time, jobType strin if jobType == "gen" { fc, err = config.NewFireStoreClient(credFileName, gparam.ProjectID) } else { - fc, err = config.NewFireStoreClient(credFileName, mparam.GCPParams.ProjectID) + fc, err = config.NewFireStoreClient(credFileName, mparam.ProjectID) } if err != nil { end := time.Now() @@ -342,7 +342,7 @@ func getFirestoreNRDBC(logger *logrus.Logger, startTime time.Time, jobType strin if jobType == "gen" { NRDBC, err = nrdbc.New(gcpfsdb.New(fc, gparam.Region), nrdbc.WithLogger(logger)) } else { - NRDBC, err = nrdbc.New(gcpfsdb.New(fc, mparam.GCPParams.GCPRegion), nrdbc.WithLogger(logger)) + NRDBC, err = nrdbc.New(gcpfsdb.New(fc, mparam.GCPRegion), nrdbc.WithLogger(logger)) } if err != nil { end := time.Now() diff --git a/websrc/docs/docs.go b/websrc/docs/docs.go index 50c7faa..3526846 100644 --- a/websrc/docs/docs.go +++ b/websrc/docs/docs.go @@ -38,13 +38,94 @@ const docTemplate = `{ "summary": "Migrate data from DynamoDB to Firestore", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -121,7 +202,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in Google Cloud Firestore to AWS DynamoDB.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -132,13 +213,94 @@ const docTemplate = `{ "summary": "Migrate data from Firestore to DynamoDB", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -168,7 +330,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in Google Cloud Firestore to Naver Cloud MongoDB.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -179,13 +341,94 @@ const docTemplate = `{ "summary": "Migrate data from Firestore to MongoDB", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -226,13 +469,94 @@ const docTemplate = `{ "summary": "Migrate data from GCP to Linux", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -279,13 +603,94 @@ const docTemplate = `{ "summary": "Migrate data from GCP to NCP Object Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -326,13 +731,94 @@ const docTemplate = `{ "summary": "Migrate data from GCP to AWS S3", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -373,13 +859,94 @@ const docTemplate = `{ "summary": "Migrate data from GCP to Windows", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -466,13 +1033,169 @@ const docTemplate = `{ "summary": "Generate test data on GCP Firestore", "parameters": [ { - "description": "Parameters required to generate test data", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.GenDataParams" - } + "type": "string", + "name": "accessKey", + "in": "formData" + }, + { + "type": "string", + "name": "bucket", + "in": "formData" + }, + { + "type": "string", + "name": "checkCSV", + "in": "formData" + }, + { + "type": "string", + "name": "checkGIF", + "in": "formData" + }, + { + "type": "string", + "name": "checkJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkPNG", + "in": "formData" + }, + { + "type": "string", + "name": "checkSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkTXT", + "in": "formData" + }, + { + "type": "string", + "name": "checkXML", + "in": "formData" + }, + { + "type": "string", + "name": "checkZIP", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "endpoint", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "provider", + "in": "formData" + }, + { + "type": "string", + "name": "region", + "in": "formData" + }, + { + "type": "string", + "name": "secretKey", + "in": "formData" + }, + { + "type": "string", + "name": "sizeCSV", + "in": "formData" + }, + { + "type": "string", + "name": "sizeGIF", + "in": "formData" + }, + { + "type": "string", + "name": "sizeJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizePNG", + "in": "formData" + }, + { + "type": "string", + "name": "sizeSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeTXT", + "in": "formData" + }, + { + "type": "string", + "name": "sizeXML", + "in": "formData" + }, + { + "type": "string", + "name": "sizeZIP", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -513,13 +1236,169 @@ const docTemplate = `{ "summary": "Generate test data on GCP Cloud Storage", "parameters": [ { - "description": "Parameters required to generate test data", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.GenDataParams" - } + "type": "string", + "name": "accessKey", + "in": "formData" + }, + { + "type": "string", + "name": "bucket", + "in": "formData" + }, + { + "type": "string", + "name": "checkCSV", + "in": "formData" + }, + { + "type": "string", + "name": "checkGIF", + "in": "formData" + }, + { + "type": "string", + "name": "checkJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkPNG", + "in": "formData" + }, + { + "type": "string", + "name": "checkSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkTXT", + "in": "formData" + }, + { + "type": "string", + "name": "checkXML", + "in": "formData" + }, + { + "type": "string", + "name": "checkZIP", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "endpoint", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "provider", + "in": "formData" + }, + { + "type": "string", + "name": "region", + "in": "formData" + }, + { + "type": "string", + "name": "secretKey", + "in": "formData" + }, + { + "type": "string", + "name": "sizeCSV", + "in": "formData" + }, + { + "type": "string", + "name": "sizeGIF", + "in": "formData" + }, + { + "type": "string", + "name": "sizeJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizePNG", + "in": "formData" + }, + { + "type": "string", + "name": "sizeSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeTXT", + "in": "formData" + }, + { + "type": "string", + "name": "sizeXML", + "in": "formData" + }, + { + "type": "string", + "name": "sizeZIP", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -812,13 +1691,94 @@ const docTemplate = `{ "summary": "Migrate data from Linux to GCP Cloud Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -986,7 +1946,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in Naver Cloud MongoDB to Google Cloud Firestore.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -997,13 +1957,94 @@ const docTemplate = `{ "summary": "Migrate data from MongoDB to Firestore", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1084,13 +2125,94 @@ const docTemplate = `{ "summary": "Migrate data from NCP to GCP Cloud Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1263,13 +2385,94 @@ const docTemplate = `{ "summary": "Migrate data from AWS S3 to GCP", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1442,13 +2645,94 @@ const docTemplate = `{ "summary": "Migrate data from Windows to GCP Cloud Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1574,20 +2858,6 @@ const docTemplate = `{ } }, "definitions": { - "controllers.GCPMigrationParams": { - "type": "object", - "properties": { - "gcpBucket": { - "type": "string" - }, - "gcpRegion": { - "type": "string" - }, - "projectid": { - "type": "string" - } - } - }, "controllers.GenDataParams": { "type": "object", "properties": { @@ -1711,8 +2981,11 @@ const docTemplate = `{ "databaseName": { "type": "string" }, - "gcpParams": { - "$ref": "#/definitions/controllers.GCPMigrationParams" + "gcpBucket": { + "type": "string" + }, + "gcpRegion": { + "type": "string" }, "host": { "type": "string" @@ -1741,6 +3014,9 @@ const docTemplate = `{ "port": { "type": "string" }, + "projectid": { + "type": "string" + }, "username": { "type": "string" } diff --git a/websrc/docs/swagger.json b/websrc/docs/swagger.json index a9a24e8..05eea3f 100644 --- a/websrc/docs/swagger.json +++ b/websrc/docs/swagger.json @@ -31,13 +31,94 @@ "summary": "Migrate data from DynamoDB to Firestore", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -114,7 +195,7 @@ "post": { "description": "Migrate data stored in Google Cloud Firestore to AWS DynamoDB.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -125,13 +206,94 @@ "summary": "Migrate data from Firestore to DynamoDB", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -161,7 +323,7 @@ "post": { "description": "Migrate data stored in Google Cloud Firestore to Naver Cloud MongoDB.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -172,13 +334,94 @@ "summary": "Migrate data from Firestore to MongoDB", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -219,13 +462,94 @@ "summary": "Migrate data from GCP to Linux", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -272,13 +596,94 @@ "summary": "Migrate data from GCP to NCP Object Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -319,13 +724,94 @@ "summary": "Migrate data from GCP to AWS S3", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -366,13 +852,94 @@ "summary": "Migrate data from GCP to Windows", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -459,13 +1026,169 @@ "summary": "Generate test data on GCP Firestore", "parameters": [ { - "description": "Parameters required to generate test data", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.GenDataParams" - } + "type": "string", + "name": "accessKey", + "in": "formData" + }, + { + "type": "string", + "name": "bucket", + "in": "formData" + }, + { + "type": "string", + "name": "checkCSV", + "in": "formData" + }, + { + "type": "string", + "name": "checkGIF", + "in": "formData" + }, + { + "type": "string", + "name": "checkJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkPNG", + "in": "formData" + }, + { + "type": "string", + "name": "checkSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkTXT", + "in": "formData" + }, + { + "type": "string", + "name": "checkXML", + "in": "formData" + }, + { + "type": "string", + "name": "checkZIP", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "endpoint", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "provider", + "in": "formData" + }, + { + "type": "string", + "name": "region", + "in": "formData" + }, + { + "type": "string", + "name": "secretKey", + "in": "formData" + }, + { + "type": "string", + "name": "sizeCSV", + "in": "formData" + }, + { + "type": "string", + "name": "sizeGIF", + "in": "formData" + }, + { + "type": "string", + "name": "sizeJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizePNG", + "in": "formData" + }, + { + "type": "string", + "name": "sizeSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeTXT", + "in": "formData" + }, + { + "type": "string", + "name": "sizeXML", + "in": "formData" + }, + { + "type": "string", + "name": "sizeZIP", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -506,13 +1229,169 @@ "summary": "Generate test data on GCP Cloud Storage", "parameters": [ { - "description": "Parameters required to generate test data", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.GenDataParams" - } + "type": "string", + "name": "accessKey", + "in": "formData" + }, + { + "type": "string", + "name": "bucket", + "in": "formData" + }, + { + "type": "string", + "name": "checkCSV", + "in": "formData" + }, + { + "type": "string", + "name": "checkGIF", + "in": "formData" + }, + { + "type": "string", + "name": "checkJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkPNG", + "in": "formData" + }, + { + "type": "string", + "name": "checkSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "checkServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "checkTXT", + "in": "formData" + }, + { + "type": "string", + "name": "checkXML", + "in": "formData" + }, + { + "type": "string", + "name": "checkZIP", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "endpoint", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "provider", + "in": "formData" + }, + { + "type": "string", + "name": "region", + "in": "formData" + }, + { + "type": "string", + "name": "secretKey", + "in": "formData" + }, + { + "type": "string", + "name": "sizeCSV", + "in": "formData" + }, + { + "type": "string", + "name": "sizeGIF", + "in": "formData" + }, + { + "type": "string", + "name": "sizeJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizePNG", + "in": "formData" + }, + { + "type": "string", + "name": "sizeSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerJSON", + "in": "formData" + }, + { + "type": "string", + "name": "sizeServerSQL", + "in": "formData" + }, + { + "type": "string", + "name": "sizeTXT", + "in": "formData" + }, + { + "type": "string", + "name": "sizeXML", + "in": "formData" + }, + { + "type": "string", + "name": "sizeZIP", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -805,13 +1684,94 @@ "summary": "Migrate data from Linux to GCP Cloud Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -979,7 +1939,7 @@ "post": { "description": "Migrate data stored in Naver Cloud MongoDB to Google Cloud Firestore.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -990,13 +1950,94 @@ "summary": "Migrate data from MongoDB to Firestore", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1077,13 +2118,94 @@ "summary": "Migrate data from NCP to GCP Cloud Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1256,13 +2378,94 @@ "summary": "Migrate data from AWS S3 to GCP", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1435,13 +2638,94 @@ "summary": "Migrate data from Windows to GCP Cloud Storage", "parameters": [ { - "description": "Parameters required for migration", - "name": "RequestBody", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/controllers.MigrationForm" - } + "type": "string", + "name": "awsAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "awsBucket", + "in": "formData" + }, + { + "type": "string", + "name": "awsRegion", + "in": "formData" + }, + { + "type": "string", + "name": "awsSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "databaseName", + "in": "formData" + }, + { + "type": "string", + "name": "gcpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "gcpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "host", + "in": "formData" + }, + { + "type": "string", + "name": "ncpAccessKey", + "in": "formData" + }, + { + "type": "string", + "name": "ncpBucket", + "in": "formData" + }, + { + "type": "string", + "name": "ncpEndpoint", + "in": "formData" + }, + { + "type": "string", + "name": "ncpRegion", + "in": "formData" + }, + { + "type": "string", + "name": "ncpSecretKey", + "in": "formData" + }, + { + "type": "string", + "name": "password", + "in": "formData" + }, + { + "type": "string", + "name": "path", + "in": "formData" + }, + { + "type": "string", + "name": "port", + "in": "formData" + }, + { + "type": "string", + "name": "projectid", + "in": "formData" + }, + { + "type": "string", + "name": "username", + "in": "formData" }, { "type": "file", @@ -1567,20 +2851,6 @@ } }, "definitions": { - "controllers.GCPMigrationParams": { - "type": "object", - "properties": { - "gcpBucket": { - "type": "string" - }, - "gcpRegion": { - "type": "string" - }, - "projectid": { - "type": "string" - } - } - }, "controllers.GenDataParams": { "type": "object", "properties": { @@ -1704,8 +2974,11 @@ "databaseName": { "type": "string" }, - "gcpParams": { - "$ref": "#/definitions/controllers.GCPMigrationParams" + "gcpBucket": { + "type": "string" + }, + "gcpRegion": { + "type": "string" }, "host": { "type": "string" @@ -1734,6 +3007,9 @@ "port": { "type": "string" }, + "projectid": { + "type": "string" + }, "username": { "type": "string" } diff --git a/websrc/docs/swagger.yaml b/websrc/docs/swagger.yaml index b75d97b..a49c446 100644 --- a/websrc/docs/swagger.yaml +++ b/websrc/docs/swagger.yaml @@ -1,14 +1,5 @@ basePath: / definitions: - controllers.GCPMigrationParams: - properties: - gcpBucket: - type: string - gcpRegion: - type: string - projectid: - type: string - type: object controllers.GenDataParams: properties: accessKey: @@ -92,8 +83,10 @@ definitions: type: string databaseName: type: string - gcpParams: - $ref: '#/definitions/controllers.GCPMigrationParams' + gcpBucket: + type: string + gcpRegion: + type: string host: type: string ncpAccessKey: @@ -112,6 +105,8 @@ definitions: type: string port: type: string + projectid: + type: string username: type: string type: object @@ -167,12 +162,60 @@ paths: - multipart/form-data description: Migrate data stored in AWS DynamoDB to Google Cloud Firestore. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -226,15 +269,63 @@ paths: /firestore/dynamodb: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in Google Cloud Firestore to AWS DynamoDB. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -257,15 +348,63 @@ paths: /firestore/mongodb: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in Google Cloud Firestore to Naver Cloud MongoDB. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -291,12 +430,60 @@ paths: - multipart/form-data description: Migrate data stored in GCP Cloud Storage to a Linux-based system. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -326,12 +513,60 @@ paths: - multipart/form-data description: Migrate data stored in GCP Cloud Storage to NCP Object Storage. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -357,12 +592,60 @@ paths: - multipart/form-data description: Migrate data stored in GCP Cloud Storage to AWS S3. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -388,12 +671,60 @@ paths: - multipart/form-data description: Migrate data stored in GCP Cloud Storage to a Windows-based system. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -449,12 +780,105 @@ paths: - multipart/form-data description: Generate test data on GCP Firestore. parameters: - - description: Parameters required to generate test data - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.GenDataParams' + - in: formData + name: accessKey + type: string + - in: formData + name: bucket + type: string + - in: formData + name: checkCSV + type: string + - in: formData + name: checkGIF + type: string + - in: formData + name: checkJSON + type: string + - in: formData + name: checkPNG + type: string + - in: formData + name: checkSQL + type: string + - in: formData + name: checkServerJSON + type: string + - in: formData + name: checkServerSQL + type: string + - in: formData + name: checkTXT + type: string + - in: formData + name: checkXML + type: string + - in: formData + name: checkZIP + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: endpoint + type: string + - in: formData + name: host + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: provider + type: string + - in: formData + name: region + type: string + - in: formData + name: secretKey + type: string + - in: formData + name: sizeCSV + type: string + - in: formData + name: sizeGIF + type: string + - in: formData + name: sizeJSON + type: string + - in: formData + name: sizePNG + type: string + - in: formData + name: sizeSQL + type: string + - in: formData + name: sizeServerJSON + type: string + - in: formData + name: sizeServerSQL + type: string + - in: formData + name: sizeTXT + type: string + - in: formData + name: sizeXML + type: string + - in: formData + name: sizeZIP + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -480,12 +904,105 @@ paths: - multipart/form-data description: Generate test data on GCP Cloud Storage. parameters: - - description: Parameters required to generate test data - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.GenDataParams' + - in: formData + name: accessKey + type: string + - in: formData + name: bucket + type: string + - in: formData + name: checkCSV + type: string + - in: formData + name: checkGIF + type: string + - in: formData + name: checkJSON + type: string + - in: formData + name: checkPNG + type: string + - in: formData + name: checkSQL + type: string + - in: formData + name: checkServerJSON + type: string + - in: formData + name: checkServerSQL + type: string + - in: formData + name: checkTXT + type: string + - in: formData + name: checkXML + type: string + - in: formData + name: checkZIP + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: endpoint + type: string + - in: formData + name: host + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: provider + type: string + - in: formData + name: region + type: string + - in: formData + name: secretKey + type: string + - in: formData + name: sizeCSV + type: string + - in: formData + name: sizeGIF + type: string + - in: formData + name: sizeJSON + type: string + - in: formData + name: sizePNG + type: string + - in: formData + name: sizeSQL + type: string + - in: formData + name: sizeServerJSON + type: string + - in: formData + name: sizeServerSQL + type: string + - in: formData + name: sizeTXT + type: string + - in: formData + name: sizeXML + type: string + - in: formData + name: sizeZIP + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -675,12 +1192,60 @@ paths: - multipart/form-data description: Migrate data stored in a Linux-based system to GCP Cloud Storage. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -793,15 +1358,63 @@ paths: /mongodb/firestore: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in Naver Cloud MongoDB to Google Cloud Firestore. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -853,12 +1466,60 @@ paths: - multipart/form-data description: Migrate data stored in NCP Object Storage to GCP Cloud Storage. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -970,12 +1631,60 @@ paths: - multipart/form-data description: Migrate data stored in AWS S3 to Google Cloud Storage. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential @@ -1087,12 +1796,60 @@ paths: - multipart/form-data description: Migrate data stored in a Windows-based system to GCP Cloud Storage. parameters: - - description: Parameters required for migration - in: body - name: RequestBody - required: true - schema: - $ref: '#/definitions/controllers.MigrationForm' + - in: formData + name: awsAccessKey + type: string + - in: formData + name: awsBucket + type: string + - in: formData + name: awsRegion + type: string + - in: formData + name: awsSecretKey + type: string + - in: formData + name: databaseName + type: string + - in: formData + name: gcpBucket + type: string + - in: formData + name: gcpRegion + type: string + - in: formData + name: host + type: string + - in: formData + name: ncpAccessKey + type: string + - in: formData + name: ncpBucket + type: string + - in: formData + name: ncpEndpoint + type: string + - in: formData + name: ncpRegion + type: string + - in: formData + name: ncpSecretKey + type: string + - in: formData + name: password + type: string + - in: formData + name: path + type: string + - in: formData + name: port + type: string + - in: formData + name: projectid + type: string + - in: formData + name: username + type: string - description: Parameters required to generate test data in: formData name: gcpCredential