Skip to content

Commit

Permalink
Add PGSQL to AzurePGSQL swagger changes (#7583)
Browse files Browse the repository at this point in the history
* Add PGSQL to AzurePGSQL swagger changes

* Add trust and encrypt connections flags to the PG scenario

* Renamed postgree to postgres and configured and changed text

* Adding custom words

* Resolving discriminator issues

* Fixing typo

* Renamed 'ResultType' to 'resultType'

* Made result task not read only

* prettier run
  • Loading branch information
ash1625 authored Feb 7, 2020
1 parent e076a1d commit f1e9e42
Show file tree
Hide file tree
Showing 14 changed files with 128 additions and 21 deletions.
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ poolusagemetrics
portalsettings
postbackup
Postgre
Postgres
postgresql
postrestore
powerbi
Expand Down Expand Up @@ -1364,7 +1365,9 @@ sparql
SPDX
SQLAG
SQLDB
SQLDW
SQLMI
SQLRDS
sqlvirtualmachine
sqlvm
Sqoop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,16 @@
"port": {
"type": "integer",
"description": "Port for Server"
},
"encryptConnection": {
"type": "boolean",
"description": "Whether to encrypt the connection",
"default": true
},
"trustServerCertificate": {
"type": "boolean",
"description": "Whether to trust the server certificate",
"default": false
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@
},
"resultType": {
"description": "Type of result - database level or task level",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"ConnectToSourceSqlServerTaskOutputTaskLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel": {
Expand Down Expand Up @@ -95,6 +97,21 @@
"type": "string",
"description": "Target server name",
"readOnly": true
},
"sourceServerType": {
"$ref": "./TasksCommon.json#/definitions/ScenarioSource",
"description": "Source server type.",
"readOnly": true
},
"targetServerType": {
"$ref": "./TasksCommon.json#/definitions/ScenarioTarget",
"description": "Target server type.",
"readOnly": true
},
"state": {
"$ref": "./TasksCommon.json#/definitions/ReplicateMigrationState",
"description": "Migration status",
"readOnly": true
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateSqlServerSqlDbTaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateSqlServerSqlMITaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateSqlServerSqlMISyncTaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateSsisTaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
"totalBytes",
"totalDocuments"
],
"discriminator": "ResultType"
"discriminator": "resultType"
},
"MongoDbMigrationProgress": {
"x-ms-discriminator-value": "Migration",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@
},
"resultType": {
"description": "Result type",
"type": "string",
"readOnly": true
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@
]
},
"MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties": {
"x-ms-discriminator-value": "Migrate.PostgreSql.AzureDbForPostgreSql.Sync",
"x-ms-discriminator-value": "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2",
"type": "object",
"description": "Properties for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,60 @@
"modelAsString": true
}
},
"ScenarioSource": {
"type": "string",
"description": "An enumeration of source type",
"enum": [
"Access",
"DB2",
"MySQL",
"Oracle",
"SQL",
"Sybase",
"PostgreSQL",
"MongoDB",
"SQLRDS",
"MySQLRDS",
"PostgreSQLRDS"
],
"x-ms-enum": {
"name": "ScenarioSource",
"modelAsString": true
}
},
"ScenarioTarget": {
"type": "string",
"description": "An enumeration of target type",
"enum": [
"SQLServer",
"SQLDB",
"SQLDW",
"SQLMI",
"AzureDBForMySql",
"AzureDBForPostgresSQL",
"MongoDB"
],
"x-ms-enum": {
"name": "ScenarioTarget",
"modelAsString": true
}
},
"ReplicateMigrationState": {
"type": "string",
"description": "Wrapper for replicate reported migration states.",
"enum": [
"UNDEFINED",
"VALIDATING",
"PENDING",
"COMPLETE",
"ACTION_REQUIRED",
"FAILED"
],
"x-ms-enum": {
"name": "ReplicateMigrationState",
"modelAsString": true
}
},
"DatabaseObjectName": {
"type": "object",
"description": "A representation of the name of an object in a database",
Expand Down Expand Up @@ -1040,7 +1094,14 @@
"COMPLETE",
"CANCELLING",
"CANCELLED",
"FAILED"
"FAILED",
"VALIDATING",
"VALIDATION_COMPLETE",
"VALIDATION_FAILED",
"RESTORE_IN_PROGRESS",
"RESTORE_COMPLETED",
"BACKUP_IN_PROGRESS",
"BACKUP_COMPLETED"
],
"x-ms-enum": {
"name": "SyncDatabaseMigrationReportingState",
Expand Down

0 comments on commit f1e9e42

Please sign in to comment.