Skip to content

Commit

Permalink
Adding objects necessary for mapping Oracle schemas and tables to Pos…
Browse files Browse the repository at this point in the history
…tgreSQL databases and tables (Azure#6456)

* Update MongoDbTasks.json

* Update readme.md

* Adding objects necessary for mapping Oracle schemas and tables to PostgreSQL databases and tables 2
  • Loading branch information
vchske authored and celikcigdem committed Jul 17, 2019
1 parent b043d9d commit 703740c
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,120 @@
"description": "Target server brand version",
"readOnly": true
},
"validationErrors": {
"description": "Validation errors associated with the task",
"type": "array",
"items": {
"$ref": "./Common.json#/definitions/ReportableException"
},
"readOnly": true
},
"databaseSchemaMap": {
"type": "array",
"description": "Mapping of schemas per database",
"items": {
"type": "object",
"properties": {
"database": {
"type": "string"
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"GetUserTablesOracleTaskInput": {
"type": "object",
"description": "Input for the task that gets the list of tables contained within a provided list of Oracle schemas.",
"properties": {
"connectionInfo": {
"$ref": "./Common.json#/definitions/OracleConnectionInfo",
"description": "Information for connecting to Oracle source"
},
"selectedSchemas": {
"type": "array",
"description": "List of Oracle schemas for which to collect tables",
"items": {
"type": "string"
}
}
},
"required": [
"connectionInfo",
"selectedSchemas"
]
},
"GetUserTablesOracleTaskOutput": {
"type": "object",
"description": "Output for the task that gets the list of tables contained within a provided list of Oracle schemas.",
"properties": {
"schemaName": {
"type": "string",
"description": "The schema this result is for",
"readOnly": true
},
"tables": {
"type": "array",
"description": "List of valid tables found for this schema",
"items": {
"$ref": "./TasksCommon.json#/definitions/DatabaseTable"
},
"readOnly": true
},
"validationErrors": {
"description": "Validation errors associated with the task",
"type": "array",
"items": {
"$ref": "./Common.json#/definitions/ReportableException"
},
"readOnly": true
}
}
},
"GetUserTablesPostgreSqlTaskInput": {
"type": "object",
"description": "Input for the task that gets the list of tables for a provided list of PostgreSQL databases.",
"properties": {
"connectionInfo": {
"$ref": "./Common.json#/definitions/PostgreSqlConnectionInfo",
"description": "Information for connecting to PostgreSQL source"
},
"selectedDatabases": {
"type": "array",
"description": "List of PostgreSQL databases for which to collect tables",
"items": {
"type": "string"
}
}
},
"required": [
"connectionInfo",
"selectedDatabases"
]
},
"GetUserTablesPostgreSqlTaskOutput": {
"type": "object",
"description": "Output for the task that gets the list of tables for a provided list of PostgreSQL databases.",
"properties": {
"databaseName": {
"type": "string",
"description": "The database this result is for",
"readOnly": true
},
"tables": {
"type": "array",
"description": "List of valid tables found for this database",
"items": {
"$ref": "./TasksCommon.json#/definitions/DatabaseTable"
},
"readOnly": true
},
"validationErrors": {
"description": "Validation errors associated with the task",
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,54 @@
}
]
},
"GetUserTablesOracleTaskProperties": {
"x-ms-discriminator-value": "GetUserTablesOracle",
"type": "object",
"description": "Properties for the task that collects user tables for the given list of Oracle schemas",
"properties": {
"input": {
"description": "Task input",
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesOracleTaskInput"
},
"output": {
"description": "Task output. This is ignored if submitted.",
"type": "array",
"items": {
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesOracleTaskOutput"
},
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/ProjectTaskProperties"
}
]
},
"GetUserTablesPostgreSqlTaskProperties": {
"x-ms-discriminator-value": "GetUserTablesPostgreSql",
"type": "object",
"description": "Properties for the task that collects user tables for the given list of databases",
"properties": {
"input": {
"description": "Task input",
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesPostgreSqlTaskInput"
},
"output": {
"description": "Task output. This is ignored if submitted.",
"type": "array",
"items": {
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesPostgreSqlTaskOutput"
},
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/ProjectTaskProperties"
}
]
},
"ConnectToTargetSqlMITaskProperties": {
"x-ms-discriminator-value": "ConnectToTarget.AzureSqlDbMI",
"type": "object",
Expand Down

0 comments on commit 703740c

Please sign in to comment.