Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding objects necessary for mapping Oracle schemas and tables to PostgreSQL databases and tables #6456

Merged
merged 6 commits into from
Jul 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": {
vchske marked this conversation as resolved.
Show resolved Hide resolved
"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": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing change - Where are these being referred?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you referring to the missing parts in Tasks.json? If so, these have been added now.

"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